(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(356)},function(e,t,n){e.exports=n(412)()},function(e,t,n){"use strict";n.r(t),n.d(t,"getScrollbarWidth",function(){return a}),n.d(t,"setScrollbarWidth",function(){return s}),n.d(t,"isBodyOverflowing",function(){return l}),n.d(t,"getOriginalBodyPadding",function(){return c}),n.d(t,"conditionallyUpdateScrollbar",function(){return u}),n.d(t,"setGlobalCssModule",function(){return d}),n.d(t,"mapToCssModules",function(){return h}),n.d(t,"omit",function(){return p}),n.d(t,"pick",function(){return f}),n.d(t,"warnOnce",function(){return m}),n.d(t,"deprecated",function(){return v}),n.d(t,"DOMElement",function(){return b}),n.d(t,"targetPropType",function(){return C}),n.d(t,"tagPropType",function(){return w}),n.d(t,"TransitionTimeouts",function(){return x}),n.d(t,"TransitionPropTypeKeys",function(){return _}),n.d(t,"TransitionStatuses",function(){return S}),n.d(t,"keyCodes",function(){return M}),n.d(t,"PopperPlacements",function(){return E}),n.d(t,"canUseDOM",function(){return O}),n.d(t,"isReactRefObj",function(){return A}),n.d(t,"toNumber",function(){return k}),n.d(t,"isObject",function(){return D}),n.d(t,"isFunction",function(){return P}),n.d(t,"findDOMElements",function(){return N}),n.d(t,"isArrayOrNodeList",function(){return L}),n.d(t,"getTarget",function(){return R}),n.d(t,"defaultToggleEvents",function(){return F}),n.d(t,"addMultipleEventListeners",function(){return I}),n.d(t,"focusableElements",function(){return z});var r,o=n(1),i=n.n(o);function a(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function s(e){document.body.style.paddingRight=e>0?e+"px":null}function l(){return document.body.clientWidth0;)i[n=r[o-=1]]=e[n];return i}var g={};function m(e){g[e]||("undefined"!==typeof console&&console.error(e),g[e]=!0)}function v(e,t){return function(n,r,o){null!==n[r]&&"undefined"!==typeof n[r]&&m('"'+r+'" property of "'+o+'" has been deprecated.\n'+t);for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,o=t.mapStateToPropsFactories,i=void 0===o?D:o,a=t.mapDispatchToPropsFactories,s=void 0===a?k:a,l=t.mergePropsFactories,c=void 0===l?N:l,u=t.selectorFactory,d=void 0===u?F:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,g=void 0===f?z:f,m=a.areOwnPropsEqual,v=void 0===m?E:m,y=a.areStatePropsEqual,b=void 0===y?E:y,C=a.areMergedPropsEqual,w=void 0===C?E:C,x=Object(p.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),_=I(e,i,"mapStateToProps"),S=I(t,s,"mapDispatchToProps"),M=I(n,c,"mergeProps");return r(d,Object(h.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:S,initMergeProps:M,pure:u,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:w},x))}}var j=B();function V(){return Object(r.useContext)(i)}function W(e){void 0===e&&(e=i);var t=e===i?V:function(){return Object(r.useContext)(e)};return function(){return t().store}}var H=W();function G(e){void 0===e&&(e=i);var t=e===i?H:W(e);return function(){return t().dispatch}}var U=G(),q=function(e,t){return e===t};function Y(e){void 0===e&&(e=i);var t=e===i?V:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=q);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)(function(e){return e+1},0)[1],s=Object(r.useMemo)(function(){return new c(n,o)},[n,o]),l=Object(r.useRef)(),d=Object(r.useRef)(),h=Object(r.useRef)(),p=Object(r.useRef)(),f=n.getState();try{if(e!==d.current||f!==h.current||l.current){var g=e(f);i=void 0!==p.current&&t(g,p.current)?p.current:g}else i=p.current}catch(m){throw l.current&&(m.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),m}return u(function(){d.current=e,h.current=f,p.current=i,l.current=void 0}),u(function(){function e(){try{var e=n.getState(),r=d.current(e);if(t(r,p.current))return;p.current=r,h.current=e}catch(m){l.current=m}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[n,s]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var X,K=Y(),$=n(27);X=$.unstable_batchedUpdates,a=X},function(e,t,n){e.exports=n(558)()},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[n]=e[n]);return o}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(613)()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(30);function o(e){for(var t=1;t1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,de)}de.prototype=Object.create(Error.prototype),de.prototype.constructor=de,de.isError=function(e){return e&&"ValidationError"===e.name},de.formatError=function(e,t){var n;"string"===typeof e&&(n=e,e=function(e){return n.replace(ue,function(t,n){return Q(e[n])})});var r=function(t){return t.path=t.label||t.path||"this","function"===typeof e?e(t):e};return 1===arguments.length?r:r(t)};var he=function(e){return e?ce.SynchronousPromise:Promise},pe=function(e){return void 0===e&&(e=[]),e.inner&&e.inner.length?e.inner:[].concat(e)};function fe(e,t){return e?null:function(e){return t.push(e),e.value}}function ge(e){var t=e.validations,n=e.value,r=e.path,o=e.sync,i=e.errors,a=e.sort;return i=pe(i),function(e,t){var n=he(t);return n.all(e.map(function(e){return n.resolve(e).then(function(e){return{fulfilled:!0,value:e}},function(e){return{fulfilled:!1,value:e}})}))}(t,o).then(function(e){var t=e.filter(function(e){return!e.fulfilled}).reduce(function(e,t){var n=t.value;if(!de.isError(n))throw n;return e.concat(n)},[]);if(a&&t.sort(a),(i=t.concat(i)).length)throw new de(i,n,r);return n})}function me(e){var t,n,r,o=e.endEarly,i=Object(le.a)(e,["endEarly"]);return o?(t=i.validations,n=i.value,r=i.sync,he(r).all(t).catch(function(e){throw"ValidationError"===e.name&&(e.value=n),e}).then(function(){return n})):ge(i)}var ve=function(e){return"[object Object]"===Object.prototype.toString.call(e)};var ye=n(127),be=n(94),Ce={context:"$",value:"."},we=function(){function e(e,t){if(void 0===t&&(t={}),"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ce.context,this.isValue=this.key[0]===Ce.value,this.isSibling=!this.isContext&&!this.isValue;var n=this.isContext?Ce.context:this.isValue?Ce.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Object(be.getter)(this.path,!0),this.map=t.map}var t=e.prototype;return t.getValue=function(e){var t=this.isContext?e.context:this.isValue?e.value:e.parent;return this.getter&&(t=this.getter(t||{})),this.map&&(t=this.map(t)),t},t.cast=function(e,t){return this.getValue(Object(r.a)({},t,{value:e}))},t.resolve=function(){return this},t.describe=function(){return{type:"ref",key:this.key}},t.toString=function(){return"Ref("+this.key+")"},e.isRef=function(e){return e&&e.__isYupRef},e}();we.prototype.__isYupRef=!0;var xe=de.formatError,_e=function(e){return e&&"function"===typeof e.then&&"function"===typeof e.catch};function Se(e){var t=e.value,n=e.label,o=e.resolve,i=e.originalValue,a=Object(le.a)(e,["value","label","resolve","originalValue"]);return function(e){var s=void 0===e?{}:e,l=s.path,c=void 0===l?a.path:l,u=s.message,d=void 0===u?a.message:u,h=s.type,p=void 0===h?a.name:h,f=s.params;return f=Object(r.a)({path:c,value:t,originalValue:i,label:n},function(e,t,n){return Object(ye.a)(Object(r.a)({},e,{},t),n)}(a.params,f,o)),Object(r.a)(new de(xe(d,f),t,c,p),{params:f})}}function Me(e){var t=e.name,n=e.message,o=e.test,i=e.params;function a(e){var a=e.value,s=e.path,l=e.label,c=e.options,u=e.originalValue,d=e.sync,h=Object(le.a)(e,["value","path","label","options","originalValue","sync"]),p=c.parent,f=function(e){return we.isRef(e)?e.getValue({value:a,parent:p,context:c.context}):e},g=Se({message:n,path:s,value:a,originalValue:u,params:i,label:l,resolve:f,name:t}),m=Object(r.a)({path:s,parent:p,type:t,createError:g,resolve:f,options:c},h);return function(e,t,n,r){var o=e.call(t,n);if(!r)return Promise.resolve(o);if(_e(o))throw new Error('Validation test of type: "'+t.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return ce.SynchronousPromise.resolve(o)}(o,m,a,d).then(function(e){if(de.isError(e))throw e;if(!e)throw g()})}return a.OPTIONS=e,a}var Ee=function(e){return e.substr(0,e.length-1).substr(1)};function Oe(e,t,n,r){var o,i,a;return void 0===r&&(r=n),t?(Object(be.forEach)(t,function(s,l,c){var u=l?Ee(s):s;if((e=e.resolve({context:r,parent:o,value:n})).innerType){var d=c?parseInt(u,10):0;if(n&&d>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+s+", in the path: "+t+". because there is no value at that index. ");o=n,n=n&&n[d],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: "+t+". (failed at: "+a+' which is a type: "'+e._type+'")');o=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}var Ae=function(){function e(){this.list=new Set,this.refs=new Map}var t=e.prototype;return t.toArray=function(){return q(this.list).concat(q(this.refs.values()))},t.add=function(e){we.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},t.delete=function(e){we.isRef(e)?this.refs.delete(e.key):this.list.delete(e)},t.has=function(e,t){if(this.list.has(e))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(t(n.value)===e)return!0;return!1},t.clone=function(){var t=new e;return t.list=new Set(this.list),t.refs=new Map(this.refs),t},t.merge=function(e,t){var n=this.clone();return e.list.forEach(function(e){return n.add(e)}),e.refs.forEach(function(e){return n.add(e)}),t.list.forEach(function(e){return n.delete(e)}),t.refs.forEach(function(e){return n.delete(e)}),n},e}();function Te(e){var t=this;if(void 0===e&&(e={}),!(this instanceof Te))return new Te;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new Ae,this._blacklist=new Ae,this.tests=[],this.transforms=[],this.withMutation(function(){t.typeError(ee.notType)}),s(e,"default")&&(this._defaultDefault=e.default),this.type=e.type||"mixed",this._type=e.type||"mixed"}for(var ke=Te.prototype={__isYupSchema__:!0,constructor:Te,clone:function(){var e=this;return this._mutate?this:d(this,function(t){if(ae(t)&&t!==e)return t})},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=Object(r.a)(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=function e(t,n){for(var r in n)if(s(n,r)){var o=n[r],i=t[r];if(void 0===i)t[r]=o;else{if(i===o)continue;ae(i)?ae(o)&&(t[r]=o.concat(i)):ve(i)?ve(o)&&(t[r]=e(i,o)):Array.isArray(i)&&Array.isArray(o)&&(t[r]=o.concat(i))}}return t}(e.clone(),this);return s(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.withMutation(function(t){e.tests.forEach(function(e){t.test(e.OPTIONS)})}),t},isType:function(e){return!(!this._nullable||null!==e)||(!this._typeCheck||this._typeCheck(e))},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce(function(t,n){return n.resolve(t,e)},t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve(Object(r.a)({},t,{value:e})),o=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(o)){var i=Q(e),a=Q(o);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+i+" \n"+(a!==i?"result of cast: "+a:""))}return o},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce(function(n,r){return r.call(t,n,e)},e);return void 0===n&&s(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var o=e,i=null!=t.originalValue?t.originalValue:e,a=this._option("strict",t),s=this._option("abortEarly",t),l=t.sync,c=t.path,u=this._label;a||(o=this._cast(o,Object(r.a)({assert:!1},t)));var d={value:o,path:c,schema:this,options:t,label:u,originalValue:i,sync:l},h=[];return this._typeError&&h.push(this._typeError(d)),this._whitelistError&&h.push(this._whitelistError(d)),this._blacklistError&&h.push(this._blacklistError(d)),me({validations:h,endEarly:s,value:o,path:c,sync:l}).then(function(e){return me({path:c,sync:l,value:e,endEarly:s,validations:n.tests.map(function(e){return e(d)})})})},validate:function(e,t){return void 0===t&&(t={}),this.resolve(Object(r.a)({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,o;if(void 0===t&&(t={}),this.resolve(Object(r.a)({},t,{value:e}))._validate(e,Object(r.a)({},t,{sync:!0})).then(function(e){return n=e}).catch(function(e){return o=e}),o)throw o;return n},isValid:function(e,t){return this.validate(e,t).then(function(){return!0}).catch(function(e){if("ValidationError"===e.name)return!1;throw e})},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(n){if("ValidationError"===n.name)return!1;throw n}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=s(this,"_default")?this._default:this._defaultDefault;return"function"===typeof t?t.call(this):d(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=ee.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter(function(e){return"required"!==e.OPTIONS.name}),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=ee.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=Me(e),r=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter(function(t){if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0}),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),r=[].concat(e).map(function(e){return new we(e)});return r.forEach(function(e){e.isSibling&&n._deps.push(e.key)}),n._conditions.push(new se(r,t)),n},typeError:function(e){var t=this.clone();return t._typeError=Me({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=ee.oneOf);var n=this.clone();return e.forEach(function(e){n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=Me({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=ee.notOneOf);var n=this.clone();return e.forEach(function(e){n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=Me({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return s(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone();return{type:e._type,meta:e._meta,label:e._label,tests:e.tests.map(function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}}).filter(function(e,t,n){return n.findIndex(function(t){return t.name===e.name})===t})}},defined:function(e){return void 0===e&&(e=ee.defined),this.nullable().test({message:e,name:"defined",exclusive:!0,test:function(e){return void 0!==e}})}},De=function(){var e=Ne[Pe];ke[e+"At"]=function(t,n,o){void 0===o&&(o={});var i=Oe(this,t,n,o.context),a=i.parent,s=i.parentPath;return i.schema[e](a&&a[s],Object(r.a)({},o,{parent:a,path:t}))}},Pe=0,Ne=["validate","validateSync"];Pe0},length:function(e,t){return void 0===t&&(t=te.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return Ve(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=te.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Ve(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=te.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return Ve(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,r,o=!1;return t&&("object"===typeof t?(o=t.excludeEmptyString,n=t.message,r=t.name):n=t),this.test({name:r||"matches",message:n||te.matches,params:{regex:e},test:function(t){return Ve(t)||""===t&&o||-1!==t.search(e)}})},email:function(e){return void 0===e&&(e=te.email),this.matches(We,{name:"email",message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=te.url),this.matches(He,{name:"url",message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform(function(e){return null===e?"":e})},trim:function(e){return void 0===e&&(e=te.trim),this.transform(function(e){return null!=e?e.trim():e}).test({message:e,name:"trim",test:Ge})},lowercase:function(e){return void 0===e&&(e=te.lowercase),this.transform(function(e){return Ve(e)?e:e.toLowerCase()}).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Ve(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=te.uppercase),this.transform(function(e){return Ve(e)?e:e.toUpperCase()}).test({message:e,name:"string_case",exclusive:!0,test:function(e){return Ve(e)||e===e.toUpperCase()}})}});function qe(){var e=this;if(!(this instanceof qe))return new qe;Te.call(this,{type:"number"}),this.withMutation(function(){e.transform(function(e){var t=e;if("string"===typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}ze(qe,Te,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!function(e){return e!=+e}(e)},min:function(e,t){return void 0===t&&(t=ne.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Ve(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=ne.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Ve(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=ne.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return Ve(t)||tthis.resolve(e)}})},positive:function(e){return void 0===e&&(e=ne.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=ne.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=ne.integer),this.test({name:"integer",message:e,test:function(e){return Ve(e)||Number.isInteger(e)}})},truncate:function(){return this.transform(function(e){return Ve(e)?e:0|e})},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform(function(t){return Ve(t)?t:Math[e](t)})}});var Ye=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;var Xe=new Date("");function Ke(){var e=this;if(!(this instanceof Ke))return new Ke;Te.call(this,{type:"date"}),this.withMutation(function(){e.transform(function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],o=0;if(n=Ye.exec(e)){for(var i,a=0;i=r[a];++a)n[i]=+n[i]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(o=60*n[10]+n[11],"+"===n[9]&&(o=0-o)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+o,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?Xe:new Date(e))})})}function $e(e,t){return t||(t=e.slice(0)),e.raw=t,e}ze(Ke,Te,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=re.min);var n=e;if(!we.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return Ve(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=re.max);var n=e;if(!we.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return Ve(e)||e<=this.resolve(n)}})}});var Ze=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=r?e:Object(Ot.a)(e,t,n)};var Tt=function(e){return function(t){t=Object(Qe.a)(t);var n=E(t)?z(t):void 0,r=n?n[0]:t.charAt(0),o=n?At(n,1).join(""):t.slice(1);return r[e]()+o}}("toUpperCase");var kt=function(e){return Tt(Object(Qe.a)(e).toLowerCase())},Dt=Mt(function(e,t,n){return t=t.toLowerCase(),e+(n?kt(t):t)}),Pt=n(98),Nt=n(102),Lt=n(78);var Rt=function(e,t){var n={};return t=Object(Lt.a)(t,3),Object(Nt.a)(e,function(e,r,o){Object(Pt.a)(n,t(e,r,o),e)}),n},Ft=n(341),It=n.n(Ft);function zt(e,t){void 0===t&&(t=[]);var n=[],r=[];function o(e,o){var i=Object(be.split)(e)[0];~r.indexOf(i)||r.push(i),~t.indexOf(o+"-"+i)||n.push([o,i])}for(var i in e)if(s(e,i)){var a=e[i];~r.indexOf(i)||r.push(i),we.isRef(a)&&a.isSibling?o(a.path,i):ae(a)&&a._deps&&a._deps.forEach(function(e){return o(e,i)})}return It.a.array(r,n).reverse()}function Bt(e,t){var n=1/0;return e.some(function(e,r){if(-1!==t.path.indexOf(e))return n=r,!0}),n}function jt(e){var t=Object.keys(e);return function(e,n){return Bt(t,e)-Bt(t,n)}}function Vt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0},of:function(e){var t=this.clone();if(!1!==e&&!ae(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+Q(e));return t._subType=e,t.innerType=e,t},min:function(e,t){return t=t||ie.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return Ve(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||ie.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return Ve(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default(function(){return[]}).transform(function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)})},compact:function(e){var t=e?function(t,n,r){return!e(t,n,r)}:function(e){return!!e};return this.transform(function(e){return null!=e?e.filter(t):e})},describe:function(){var e=Te.prototype.describe.call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}});var $t=function(){function e(e){this._resolve=function(t,n){var r=e(t,n);if(!ae(r))throw new TypeError("lazy() functions must return a valid schema");return r.resolve(n)}}var t=e.prototype;return t.resolve=function(e){return this._resolve(e.value,e)},t.cast=function(e,t){return this._resolve(e,t).cast(e,t)},t.validate=function(e,t){return this._resolve(e,t).validate(e,t)},t.validateSync=function(e,t){return this._resolve(e,t).validateSync(e,t)},t.validateAt=function(e,t,n){return this._resolve(t,n).validateAt(e,t,n)},t.validateSyncAt=function(e,t,n){return this._resolve(t,n).validateSyncAt(e,t,n)},e}();$t.prototype.__isYupSchema__=!0;var Zt=Be,Jt=function(e,t){return new we(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"Container",function(){return r.a}),n.d(t,"Row",function(){return o.a}),n.d(t,"Col",function(){return i.a}),n.d(t,"Navbar",function(){return a.a}),n.d(t,"NavbarBrand",function(){return s.a}),n.d(t,"NavbarText",function(){return b}),n.d(t,"NavbarToggler",function(){return x}),n.d(t,"Nav",function(){return _.a}),n.d(t,"NavItem",function(){return S.a}),n.d(t,"NavLink",function(){return M.a}),n.d(t,"Breadcrumb",function(){return A}),n.d(t,"BreadcrumbItem",function(){return D}),n.d(t,"Button",function(){return P.a}),n.d(t,"ButtonToggle",function(){return I}),n.d(t,"ButtonDropdown",function(){return z.a}),n.d(t,"ButtonGroup",function(){return B.a}),n.d(t,"ButtonToolbar",function(){return W}),n.d(t,"Dropdown",function(){return H.a}),n.d(t,"DropdownItem",function(){return G.a}),n.d(t,"DropdownMenu",function(){return U.a}),n.d(t,"DropdownToggle",function(){return q.a}),n.d(t,"DropdownContext",function(){return Y.a}),n.d(t,"Fade",function(){return X.a}),n.d(t,"Badge",function(){return K.a}),n.d(t,"Card",function(){return $.a}),n.d(t,"CardGroup",function(){return Q}),n.d(t,"CardDeck",function(){return ne}),n.d(t,"CardColumns",function(){return ie}),n.d(t,"CardBody",function(){return ae.a}),n.d(t,"CardLink",function(){return ce}),n.d(t,"CardFooter",function(){return ue.a}),n.d(t,"CardHeader",function(){return de.a}),n.d(t,"CardImg",function(){return he.a}),n.d(t,"CardImgOverlay",function(){return ge}),n.d(t,"Carousel",function(){return we}),n.d(t,"UncontrolledCarousel",function(){return ke}),n.d(t,"CarouselControl",function(){return _e}),n.d(t,"CarouselItem",function(){return be}),n.d(t,"CarouselIndicators",function(){return Me}),n.d(t,"CarouselCaption",function(){return Oe}),n.d(t,"CardSubtitle",function(){return Ne}),n.d(t,"CardText",function(){return Fe}),n.d(t,"CardTitle",function(){return Ie.a}),n.d(t,"CustomFileInput",function(){return je}),n.d(t,"CustomInput",function(){return He}),n.d(t,"PopperContent",function(){return Ge.a}),n.d(t,"PopperTargetHelper",function(){return qe}),n.d(t,"Popover",function(){return Ke}),n.d(t,"UncontrolledPopover",function(){return Ze}),n.d(t,"PopoverHeader",function(){return et}),n.d(t,"PopoverBody",function(){return rt}),n.d(t,"Progress",function(){return at}),n.d(t,"Modal",function(){return st.a}),n.d(t,"ModalHeader",function(){return ut}),n.d(t,"ModalBody",function(){return dt.a}),n.d(t,"ModalFooter",function(){return ft}),n.d(t,"Tooltip",function(){return gt.a}),n.d(t,"Table",function(){return mt.a}),n.d(t,"ListGroup",function(){return vt.a}),n.d(t,"Form",function(){return yt.a}),n.d(t,"FormFeedback",function(){return bt.a}),n.d(t,"FormGroup",function(){return Ct.a}),n.d(t,"FormText",function(){return _t}),n.d(t,"Input",function(){return St.a}),n.d(t,"InputGroup",function(){return Mt.a}),n.d(t,"InputGroupAddon",function(){return Et.a}),n.d(t,"InputGroupButtonDropdown",function(){return Tt}),n.d(t,"InputGroupText",function(){return kt.a}),n.d(t,"Label",function(){return Dt.a}),n.d(t,"Media",function(){return Lt}),n.d(t,"Pagination",function(){return Rt.a}),n.d(t,"PaginationItem",function(){return Ft.a}),n.d(t,"PaginationLink",function(){return It.a}),n.d(t,"TabContent",function(){return zt.a}),n.d(t,"TabPane",function(){return Bt.a}),n.d(t,"Jumbotron",function(){return Wt}),n.d(t,"Alert",function(){return Ht.a}),n.d(t,"Toast",function(){return Yt}),n.d(t,"ToastBody",function(){return $t}),n.d(t,"ToastHeader",function(){return Qt}),n.d(t,"Collapse",function(){return en.a}),n.d(t,"ListGroupItem",function(){return tn.a}),n.d(t,"ListGroupItemHeading",function(){return on}),n.d(t,"ListGroupItemText",function(){return ln}),n.d(t,"UncontrolledAlert",function(){return cn.a}),n.d(t,"UncontrolledButtonDropdown",function(){return dn}),n.d(t,"UncontrolledCollapse",function(){return mn}),n.d(t,"UncontrolledDropdown",function(){return vn.a}),n.d(t,"UncontrolledTooltip",function(){return yn.a}),n.d(t,"Spinner",function(){return wn}),n.d(t,"Util",function(){return m});var r=n(235),o=n(254),i=n(251),a=n(234),s=n(236),l=n(3),c=n(7),u=n(0),d=n.n(u),h=n(1),p=n.n(h),f=n(6),g=n.n(f),m=n(2),v={tag:m.tagPropType,className:p.a.string,cssModule:p.a.object},y=function(e){var t=e.className,n=e.cssModule,r=(e.active,e.tag),o=Object(c.a)(e,["className","cssModule","active","tag"]),i=Object(m.mapToCssModules)(g()(t,"navbar-text"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};y.propTypes=v,y.defaultProps={tag:"span"};var b=y,C={tag:m.tagPropType,type:p.a.string,className:p.a.string,cssModule:p.a.object,children:p.a.node},w=function(e){var t=e.className,n=e.cssModule,r=e.children,o=e.tag,i=Object(c.a)(e,["className","cssModule","children","tag"]),a=Object(m.mapToCssModules)(g()(t,"navbar-toggler"),n);return d.a.createElement(o,Object(l.a)({"aria-label":"Toggle navigation"},i,{className:a}),r||d.a.createElement("span",{className:Object(m.mapToCssModules)("navbar-toggler-icon",n)}))};w.propTypes=C,w.defaultProps={tag:"button",type:"button"};var x=w,_=n(240),S=n(241),M=n(259),E={tag:m.tagPropType,listTag:m.tagPropType,className:p.a.string,listClassName:p.a.string,cssModule:p.a.object,children:p.a.node,"aria-label":p.a.string},O=function(e){var t=e.className,n=e.listClassName,r=e.cssModule,o=e.children,i=e.tag,a=e.listTag,s=e["aria-label"],u=Object(c.a)(e,["className","listClassName","cssModule","children","tag","listTag","aria-label"]),h=Object(m.mapToCssModules)(g()(t),r),p=Object(m.mapToCssModules)(g()("breadcrumb",n),r);return d.a.createElement(i,Object(l.a)({},u,{className:h,"aria-label":s}),d.a.createElement(a,{className:p},o))};O.propTypes=E,O.defaultProps={tag:"nav",listTag:"ol","aria-label":"breadcrumb"};var A=O,T={tag:m.tagPropType,active:p.a.bool,className:p.a.string,cssModule:p.a.object},k=function(e){var t=e.className,n=e.cssModule,r=e.active,o=e.tag,i=Object(c.a)(e,["className","cssModule","active","tag"]),a=Object(m.mapToCssModules)(g()(t,!!r&&"active","breadcrumb-item"),n);return d.a.createElement(o,Object(l.a)({},i,{className:a,"aria-current":r?"page":void 0}))};k.propTypes=T,k.defaultProps={tag:"li"};var D=k,P=n(120),N=n(15),L=n(16),R={onClick:p.a.func,onBlur:p.a.func,onFocus:p.a.func,defaultValue:p.a.bool},F=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={toggled:t.defaultValue,focus:!1},n.onBlur=n.onBlur.bind(Object(N.a)(n)),n.onFocus=n.onFocus.bind(Object(N.a)(n)),n.onClick=n.onClick.bind(Object(N.a)(n)),n}Object(L.a)(t,e);var n=t.prototype;return n.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e),this.setState({focus:!1})},n.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e),this.setState({focus:!0})},n.onClick=function(e){this.props.onClick&&this.props.onClick(e),this.setState(function(e){return{toggled:!e.toggled}})},n.render=function(){var e=this.props,t=e.className,n=Object(c.a)(e,["className"]),r=Object(m.mapToCssModules)(g()(t,{focus:this.state.focus}),this.props.cssModule);return d.a.createElement(P.a,Object(l.a)({active:this.state.toggled,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.onClick,className:r},n))},t}(d.a.Component);F.propTypes=R,F.defaultProps={defaultValue:!1};var I=F,z=n(154),B=n(280),j={tag:m.tagPropType,"aria-label":p.a.string,className:p.a.string,cssModule:p.a.object,role:p.a.string},V=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Object(c.a)(e,["className","cssModule","tag"]),i=Object(m.mapToCssModules)(g()(t,"btn-toolbar"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};V.propTypes=j,V.defaultProps={tag:"div",role:"toolbar"};var W=V,H=n(83),G=n(250),U=n(243),q=n(314),Y=n(75),X=n(36),K=n(281),$=n(252),Z={tag:m.tagPropType,className:p.a.string,cssModule:p.a.object},J=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Object(c.a)(e,["className","cssModule","tag"]),i=Object(m.mapToCssModules)(g()(t,"card-group"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};J.propTypes=Z,J.defaultProps={tag:"div"};var Q=J,ee={tag:m.tagPropType,className:p.a.string,cssModule:p.a.object},te=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Object(c.a)(e,["className","cssModule","tag"]),i=Object(m.mapToCssModules)(g()(t,"card-deck"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};te.propTypes=ee,te.defaultProps={tag:"div"};var ne=te,re={tag:m.tagPropType,className:p.a.string,cssModule:p.a.object},oe=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Object(c.a)(e,["className","cssModule","tag"]),i=Object(m.mapToCssModules)(g()(t,"card-columns"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};oe.propTypes=re,oe.defaultProps={tag:"div"};var ie=oe,ae=n(253),se={tag:m.tagPropType,innerRef:p.a.oneOfType([p.a.object,p.a.func,p.a.string]),className:p.a.string,cssModule:p.a.object},le=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=e.innerRef,i=Object(c.a)(e,["className","cssModule","tag","innerRef"]),a=Object(m.mapToCssModules)(g()(t,"card-link"),n);return d.a.createElement(r,Object(l.a)({},i,{ref:o,className:a}))};le.propTypes=se,le.defaultProps={tag:"a"};var ce=le,ue=n(256),de=n(277),he=n(308),pe={tag:m.tagPropType,className:p.a.string,cssModule:p.a.object},fe=function(e){var t=e.className,n=e.cssModule,r=e.tag,o=Object(c.a)(e,["className","cssModule","tag"]),i=Object(m.mapToCssModules)(g()(t,"card-img-overlay"),n);return d.a.createElement(r,Object(l.a)({},o,{className:i}))};fe.propTypes=pe,fe.defaultProps={tag:"div"};var ge=fe,me=n(25),ve=n(50),ye=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={startAnimation:!1},n.onEnter=n.onEnter.bind(Object(N.a)(n)),n.onEntering=n.onEntering.bind(Object(N.a)(n)),n.onExit=n.onExit.bind(Object(N.a)(n)),n.onExiting=n.onExiting.bind(Object(N.a)(n)),n.onExited=n.onExited.bind(Object(N.a)(n)),n}Object(L.a)(t,e);var n=t.prototype;return n.onEnter=function(e,t){this.setState({startAnimation:!1}),this.props.onEnter(e,t)},n.onEntering=function(e,t){var n=e.offsetHeight;return this.setState({startAnimation:!0}),this.props.onEntering(e,t),n},n.onExit=function(e){this.setState({startAnimation:!1}),this.props.onExit(e)},n.onExiting=function(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)},n.onExited=function(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)},n.render=function(){var e=this,t=this.props,n=t.in,r=t.children,o=t.cssModule,i=t.slide,a=t.tag,s=t.className,u=Object(c.a)(t,["in","children","cssModule","slide","tag","className"]);return d.a.createElement(ve.Transition,Object(l.a)({},u,{enter:i,exit:i,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(t){var n=e.context.direction,i=t===m.TransitionStatuses.ENTERED||t===m.TransitionStatuses.EXITING,l=(t===m.TransitionStatuses.ENTERING||t===m.TransitionStatuses.EXITING)&&e.state.startAnimation&&("right"===n?"carousel-item-left":"carousel-item-right"),c=t===m.TransitionStatuses.ENTERING&&("right"===n?"carousel-item-next":"carousel-item-prev"),u=Object(m.mapToCssModules)(g()(s,"carousel-item",i&&"active",l,c),o);return d.a.createElement(a,{className:u},r)})},t}(d.a.Component);ye.propTypes=Object(me.a)({},ve.Transition.propTypes,{tag:m.tagPropType,in:p.a.bool,cssModule:p.a.object,children:p.a.node,slide:p.a.bool,className:p.a.string}),ye.defaultProps=Object(me.a)({},ve.Transition.defaultProps,{tag:"div",timeout:m.TransitionTimeouts.Carousel,slide:!0}),ye.contextTypes={direction:p.a.string};var be=ye,Ce=function(e){function t(t){var n;return(n=e.call(this,t)||this).handleKeyPress=n.handleKeyPress.bind(Object(N.a)(n)),n.renderItems=n.renderItems.bind(Object(N.a)(n)),n.hoverStart=n.hoverStart.bind(Object(N.a)(n)),n.hoverEnd=n.hoverEnd.bind(Object(N.a)(n)),n.handleTouchStart=n.handleTouchStart.bind(Object(N.a)(n)),n.handleTouchEnd=n.handleTouchEnd.bind(Object(N.a)(n)),n.touchStartX=0,n.touchStartY=0,n.state={activeIndex:n.props.activeIndex,direction:"right",indicatorClicked:!1},n}Object(L.a)(t,e);var n=t.prototype;return n.getChildContext=function(){return{direction:this.state.direction}},n.componentDidMount=function(){"carousel"===this.props.ride&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)},t.getDerivedStateFromProps=function(e,t){var n=null,r=t.activeIndex,o=t.direction,i=t.indicatorClicked;return e.activeIndex!==r&&(e.activeIndex===r+1?o="right":e.activeIndex===r-1?o="left":e.activeIndext}),_=W(function(e,t){return e>=t}),S=W(function(e,t){return e=t&&o.getHours()-n.getHours()1&&void 0!==arguments[1]?arguments[1]:n,i=e(r)+o;return t(i)}}function o(e){return function(t){return new Date(e(t).getTime()-1)}}function i(e){return function(t){return e.map(function(e){return e(t)})}}function a(e){if(e instanceof Date)return e.getFullYear();if("number"===typeof e)return e;var t=parseInt(e,10);if("string"===typeof e&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function s(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function l(e){if(e instanceof Date)return e.getMonth()+1;throw new Error("Failed to get human-readable month from date: ".concat(e,"."))}function c(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function u(e){if(e instanceof Date)return e.getHours();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[0],r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get hours from date: ".concat(e,"."))}function d(e){if(e instanceof Date)return e.getMinutes();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[1]||0,r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get minutes from date: ".concat(e,"."))}function h(e){if(e instanceof Date)return e.getSeconds();if("string"===typeof e){var t=e.split(":");if(t.length>=2){var n=t[2]||0,r=parseInt(n,10);if(!isNaN(r))return r}}throw new Error("Failed to get seconds from date: ".concat(e,"."))}function p(e){var t=a(e),n=t+(1-t)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}n.r(t),n.d(t,"getYear",function(){return a}),n.d(t,"getMonth",function(){return s}),n.d(t,"getMonthHuman",function(){return l}),n.d(t,"getDate",function(){return c}),n.d(t,"getHours",function(){return u}),n.d(t,"getMinutes",function(){return d}),n.d(t,"getSeconds",function(){return h}),n.d(t,"getCenturyStart",function(){return p}),n.d(t,"getPreviousCenturyStart",function(){return f}),n.d(t,"getNextCenturyStart",function(){return g}),n.d(t,"getCenturyEnd",function(){return m}),n.d(t,"getPreviousCenturyEnd",function(){return v}),n.d(t,"getNextCenturyEnd",function(){return y}),n.d(t,"getCenturyRange",function(){return b}),n.d(t,"getDecadeStart",function(){return C}),n.d(t,"getPreviousDecadeStart",function(){return w}),n.d(t,"getNextDecadeStart",function(){return x}),n.d(t,"getDecadeEnd",function(){return _}),n.d(t,"getPreviousDecadeEnd",function(){return S}),n.d(t,"getNextDecadeEnd",function(){return M}),n.d(t,"getDecadeRange",function(){return E}),n.d(t,"getYearStart",function(){return O}),n.d(t,"getPreviousYearStart",function(){return A}),n.d(t,"getNextYearStart",function(){return T}),n.d(t,"getYearEnd",function(){return k}),n.d(t,"getPreviousYearEnd",function(){return D}),n.d(t,"getNextYearEnd",function(){return P}),n.d(t,"getYearRange",function(){return N}),n.d(t,"getMonthStart",function(){return R}),n.d(t,"getPreviousMonthStart",function(){return F}),n.d(t,"getNextMonthStart",function(){return I}),n.d(t,"getMonthEnd",function(){return z}),n.d(t,"getPreviousMonthEnd",function(){return B}),n.d(t,"getNextMonthEnd",function(){return j}),n.d(t,"getMonthRange",function(){return V}),n.d(t,"getDayStart",function(){return H}),n.d(t,"getPreviousDayStart",function(){return G}),n.d(t,"getNextDayStart",function(){return U}),n.d(t,"getDayEnd",function(){return q}),n.d(t,"getPreviousDayEnd",function(){return Y}),n.d(t,"getNextDayEnd",function(){return X}),n.d(t,"getDayRange",function(){return K}),n.d(t,"getDaysInMonth",function(){return $}),n.d(t,"getHoursMinutes",function(){return J}),n.d(t,"getHoursMinutesSeconds",function(){return Q}),n.d(t,"getISOLocalMonth",function(){return ee}),n.d(t,"getISOLocalDate",function(){return te}),n.d(t,"getISOLocalDateTime",function(){return ne});var f=r(a,p,-100),g=r(a,p,100),m=o(g),v=r(a,m,-100),y=r(a,m,100),b=i([p,m]);function C(e){var t=a(e),n=t+(1-t)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var w=r(a,C,-10),x=r(a,C,10),_=o(x),S=r(a,_,-10),M=r(a,_,10),E=i([C,_]);function O(e){var t=a(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var A=r(a,O,-1),T=r(a,O,1),k=o(T),D=r(a,k,-1),P=r(a,k,1),N=i([O,k]);function L(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=a(n),i=s(n)+r,l=new Date;return l.setFullYear(o,i,1),l.setHours(0,0,0,0),e(l)}}function R(e){var t=a(e),n=s(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var F=L(R,-1),I=L(R,1),z=o(I),B=L(z,-1),j=L(z,1),V=i([R,z]);function W(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=a(n),i=s(n),l=c(n)+r,u=new Date;return u.setFullYear(o,i,l),u.setHours(0,0,0,0),e(u)}}function H(e){var t=a(e),n=s(e),r=c(e),o=new Date;return o.setFullYear(t,n,r),o.setHours(0,0,0,0),o}var G=W(H,-1),U=W(H,1),q=o(U),Y=W(q,-1),X=W(q,1),K=i([H,q]);function $(e){return c(z(e))}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n="".concat(e);return n.length>=t?e:"0000".concat(n).slice(-t)}function J(e){var t=Z(u(e)),n=Z(d(e));return"".concat(t,":").concat(n)}function Q(e){var t=Z(u(e)),n=Z(d(e)),r=Z(h(e));return"".concat(t,":").concat(n,":").concat(r)}function ee(e){var t=Z(a(e),4),n=Z(l(e));return"".concat(t,"-").concat(n)}function te(e){var t=Z(a(e),4),n=Z(l(e)),r=Z(c(e));return"".concat(t,"-").concat(n,"-").concat(r)}function ne(e){return"".concat(te(e),"T").concat(Q(e))}},,function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return h}),n.d(t,"k",function(){return p}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return g}),n.d(t,"n",function(){return m}),n.d(t,"o",function(){return v}),n.d(t,"p",function(){return y}),n.d(t,"q",function(){return b}),n.d(t,"r",function(){return C}),n.d(t,"s",function(){return w}),n.d(t,"t",function(){return x}),n.d(t,"u",function(){return _}),n.d(t,"v",function(){return S}),n.d(t,"w",function(){return M}),n.d(t,"x",function(){return E}),n.d(t,"y",function(){return O}),n.d(t,"z",function(){return A}),n.d(t,"A",function(){return T}),n.d(t,"B",function(){return k}),n.d(t,"C",function(){return D}),n.d(t,"D",function(){return P}),n.d(t,"E",function(){return N}),n.d(t,"F",function(){return L}),n.d(t,"G",function(){return R}),n.d(t,"H",function(){return F}),n.d(t,"I",function(){return I}),n.d(t,"J",function(){return z}),n.d(t,"K",function(){return B}),n.d(t,"L",function(){return j}),n.d(t,"M",function(){return V}),n.d(t,"N",function(){return W}),n.d(t,"O",function(){return H}),n.d(t,"P",function(){return G}),n.d(t,"Q",function(){return U}),n.d(t,"R",function(){return q}),n.d(t,"S",function(){return Y}),n.d(t,"T",function(){return X}),n.d(t,"U",function(){return K}),n.d(t,"V",function(){return $}),n.d(t,"W",function(){return Z}),n.d(t,"X",function(){return J}),n.d(t,"Y",function(){return Q}),n.d(t,"Z",function(){return ee}),n.d(t,"ab",function(){return te}),n.d(t,"bb",function(){return ne}),n.d(t,"cb",function(){return re}),n.d(t,"db",function(){return oe}),n.d(t,"eb",function(){return ie}),n.d(t,"fb",function(){return ae}),n.d(t,"gb",function(){return se}),n.d(t,"hb",function(){return le}),n.d(t,"ib",function(){return ce}),n.d(t,"jb",function(){return ue}),n.d(t,"kb",function(){return de}),n.d(t,"lb",function(){return he}),n.d(t,"mb",function(){return pe}),n.d(t,"nb",function(){return fe}),n.d(t,"ob",function(){return ge}),n.d(t,"pb",function(){return me}),n.d(t,"qb",function(){return ve}),n.d(t,"rb",function(){return ye});var r={prefix:"fal",iconName:"analytics",icon:[576,512,[],"f643","M80 352H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zM64 480H32v-96h32v96zm496-288h-64c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm-16 288h-32V224h32v256zM502.77 88.68C510.12 93.24 518.71 96 528 96c26.51 0 48-21.49 48-48S554.51 0 528 0s-48 21.49-48 48c0 5.51 1.12 10.71 2.83 15.64l-89.6 71.68c-7.35-4.57-15.94-7.33-25.23-7.33s-17.88 2.76-25.23 7.33l-89.6-71.68C254.88 58.72 256 53.51 256 48c0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.4 1.81 14.32 4.8 20.58L68.58 164.8C62.32 161.81 55.4 160 48 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-7.4-1.81-14.32-4.8-20.58l96.22-96.22C193.68 94.19 200.6 96 208 96c9.29 0 17.88-2.76 25.23-7.33l89.6 71.68c-1.71 4.93-2.83 10.14-2.83 15.65 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.51-1.12-10.72-2.83-15.65l89.6-71.67zM528 32c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 224c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16zM208 64c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16zm160 128c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16zm-128 0h-64c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm-16 288h-32V224h32v256zm176-160h-64c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V336c0-8.84-7.16-16-16-16zm-16 160h-32V352h32v128z"]},o={prefix:"fal",iconName:"arrow-circle-down",icon:[512,512,[],"f0ab","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm216 248c0 118.7-96.1 216-216 216-118.7 0-216-96.1-216-216 0-118.7 96.1-216 216-216 118.7 0 216 96.1 216 216zm-92.5-4.5l-6.9-6.9c-4.7-4.7-12.5-4.7-17.1.2L273 330.3V140c0-6.6-5.4-12-12-12h-10c-6.6 0-12 5.4-12 12v190.3l-82.5-85.6c-4.7-4.8-12.4-4.9-17.1-.2l-6.9 6.9c-4.7 4.7-4.7 12.3 0 17l115 115.1c4.7 4.7 12.3 4.7 17 0l115-115.1c4.7-4.6 4.7-12.2 0-16.9z"]},i={prefix:"fal",iconName:"arrow-circle-up",icon:[512,512,[],"f0aa","M256 504c137 0 248-111 248-248S393 8 256 8 8 119 8 256s111 248 248 248zM40 256c0-118.7 96.1-216 216-216 118.7 0 216 96.1 216 216 0 118.7-96.1 216-216 216-118.7 0-216-96.1-216-216zm92.5-12.5l115-115.1c4.7-4.7 12.3-4.7 17 0l115 115.1c4.7 4.7 4.7 12.3 0 17l-6.9 6.9c-4.7 4.7-12.5 4.7-17.1-.2L273 181.7V372c0 6.6-5.4 12-12 12h-10c-6.6 0-12-5.4-12-12V181.7l-82.5 85.6c-4.7 4.8-12.4 4.9-17.1.2l-6.9-6.9c-4.7-4.8-4.7-12.4 0-17.1z"]},a={prefix:"fal",iconName:"bars",icon:[448,512,[],"f0c9","M442 114H6a6 6 0 0 1-6-6V84a6 6 0 0 1 6-6h436a6 6 0 0 1 6 6v24a6 6 0 0 1-6 6zm0 160H6a6 6 0 0 1-6-6v-24a6 6 0 0 1 6-6h436a6 6 0 0 1 6 6v24a6 6 0 0 1-6 6zm0 160H6a6 6 0 0 1-6-6v-24a6 6 0 0 1 6-6h436a6 6 0 0 1 6 6v24a6 6 0 0 1-6 6z"]},s={prefix:"fal",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.3 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36zM140.3 436.9l33.5-141.6 9.3-39.4h-150L63 32h125.9l-38.7 118-13.8 42h145.7L140.3 436.9z"]},l={prefix:"fal",iconName:"book",icon:[448,512,[],"f02d","M356 160H188c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12zm12 52v-8c0-6.6-5.4-12-12-12H188c-6.6 0-12 5.4-12 12v8c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12zm64.7 268h3.3c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H80c-44.2 0-80-35.8-80-80V80C0 35.8 35.8 0 80 0h344c13.3 0 24 10.7 24 24v368c0 10-6.2 18.6-14.9 22.2-3.6 16.1-4.4 45.6-.4 65.8zM128 384h288V32H128v352zm-96 16c13.4-10 30-16 48-16h16V32H80c-26.5 0-48 21.5-48 48v320zm372.3 80c-3.1-20.4-2.9-45.2 0-64H80c-64 0-64 64 0 64h324.3z"]},c={prefix:"fal",iconName:"book-open",icon:[576,512,[],"f518","M514.91 32h-.16c-24.08.12-144.75 8.83-219.56 48.09-4.05 2.12-10.33 2.12-14.38 0C205.99 40.83 85.32 32.12 61.25 32h-.16C27.4 32 0 58.47 0 91.01v296.7c0 31.41 25.41 57.28 57.85 58.9 34.77 1.76 122.03 8.26 181.89 30.37 5.27 1.95 10.64 3.02 16.25 3.02h64c5.62 0 10.99-1.08 16.26-3.02 59.87-22.11 147.12-28.61 181.92-30.37 32.41-1.62 57.82-27.48 57.82-58.89V91.01C576 58.47 548.6 32 514.91 32zM272 433c0 8.61-7.14 15.13-15.26 15.13-1.77 0-3.59-.31-5.39-.98-62.45-23.21-148.99-30.33-191.91-32.51-15.39-.77-27.44-12.6-27.44-26.93V91.01c0-14.89 13.06-27 29.09-27 19.28.1 122.46 7.38 192.12 38.29 11.26 5 18.64 15.75 18.66 27.84l.13 100.32V433zm272-45.29c0 14.33-12.05 26.16-27.45 26.93-42.92 2.18-129.46 9.3-191.91 32.51-1.8.67-3.62.98-5.39.98-8.11 0-15.26-6.52-15.26-15.13V230.46l.13-100.32c.01-12.09 7.4-22.84 18.66-27.84 69.66-30.91 172.84-38.19 192.12-38.29 16.03 0 29.09 12.11 29.09 27v296.7z"]},u={prefix:"fal",iconName:"boxes",icon:[640,512,[],"f468","M624 224H480V16c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v208H16c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-176 32h64v62.3l-32-10.7-32 10.7V256zM352 32v62.3l-32-10.7-32 10.7V32h64zm-160 0h64v106.7l64-21.3 64 21.3V32h64v192H192V32zm0 224v62.3l-32-10.7-32 10.7V256h64zm-160 0h64v106.7l64-21.3 64 21.3V256h80v224H32V256zm576 224H336V256h80v106.7l64-21.3 64 21.3V256h64v224z"]},d={prefix:"fal",iconName:"boxes-alt",icon:[640,512,[],"f4a1","M624 224H480V16c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v208H16c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-112 32v64h-64v-64h64zM288 32h64v64h-64V32zm-96 0h64v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V32h64v192H192V32zm-64 224h64v64h-64v-64zm176 224H32V256h64v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32v-64h80v224zm304 0H336V256h80v64c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32v-64h64v224z"]},h={prefix:"fal",iconName:"burger-soda",icon:[640,512,[],"f858","M640 376a55.65 55.65 0 0 0-18.46-41.26 58.81 58.81 0 0 0 7.37-77.49C594 208 523 176.06 448 176c-75 .06-146 32-180.88 81.25a58.8 58.8 0 0 0 7.36 77.49 55.14 55.14 0 0 0-4.78 77.52A43.79 43.79 0 0 0 256 444a68.08 68.08 0 0 0 68 68h248a68.08 68.08 0 0 0 68-68 43.79 43.79 0 0 0-13.68-31.74A55.49 55.49 0 0 0 640 376zM293.22 275.73C320 237.87 379 208.06 448 208s128 29.87 154.79 67.73C616 294.39 602.62 320 579.57 320H316.43c-23.04 0-36.43-25.62-23.21-44.27zM572 480H324a36 36 0 0 1-36-36 12 12 0 0 1 12-12h296a12 12 0 0 1 12 12 36 36 0 0 1-36 36zm12-80H312a24 24 0 0 1 0-48h272a24 24 0 0 1 0 48zM448 272a16 16 0 1 0-16-16 16 16 0 0 0 16 16zm80 16a16 16 0 1 0-16-16 16 16 0 0 0 16 16zm-160 0a16 16 0 1 0-16-16 16 16 0 0 0 16 16zM95.89 479.11L63.89 160H344a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H212.5l24-96H280a8 8 0 0 0 8-8V8a8 8 0 0 0-8-8h-43.5a32 32 0 0 0-31.06 24.25L179.5 128H8a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v1.68l32 320.61A31.88 31.88 0 0 0 96 512h155.11a99.79 99.79 0 0 1-20.18-32.14z"]},p={prefix:"fal",iconName:"calendar-alt",icon:[448,512,[],"f073","M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z"]},f={prefix:"fal",iconName:"calendar-day",icon:[448,512,[],"f783","M400 64h-48V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v56H128V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v56H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm16 400c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V192h384v272zm0-304H32v-48c0-8.8 7.2-16 16-16h352c8.8 0 16 7.2 16 16v48zM112 384h96c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-96c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm16-96h64v64h-64v-64z"]},g={prefix:"fal",iconName:"caret-down",icon:[320,512,[],"f0d7","M287.968 160H32.038c-28.425 0-42.767 34.488-22.627 54.627l127.962 128c12.496 12.496 32.758 12.497 45.255 0l127.968-128C330.695 194.528 316.45 160 287.968 160zM160 320L32 192h256L160 320z"]},m={prefix:"fal",iconName:"caret-up",icon:[320,512,[],"f0d8","M32.032 352h255.93c28.425 0 42.767-34.488 22.627-54.627l-127.962-128c-12.496-12.496-32.758-12.497-45.255 0l-127.968 128C-10.695 317.472 3.55 352 32.032 352zM160 192l128 128H32l128-128z"]},v={prefix:"fal",iconName:"cash-register",icon:[512,512,[],"f788","M232 248c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16zm-96 0c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16zm32 48h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm96 0h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm64-48c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16zm183.4 131.5l-25.5-178.3c-3.4-23.6-23.6-41.2-47.5-41.2H192V96h80c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h80v64H73.6c-23.9 0-44.1 17.6-47.5 41.2L.6 379.5c-.4 3-.6 6-.6 9.1V464c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-75.5c0-3-.2-6-.6-9zM96 64V32h160v32H96zM57.8 205.7c1.1-7.8 7.9-13.7 15.8-13.7h364.7c7.9 0 14.7 5.9 15.8 13.7L479.7 384H32.3l25.5-178.3zM480 464c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16v-48h448v48zm-72-232h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm-48 64h-16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16z"]},y={prefix:"fal",iconName:"certificate",icon:[512,512,[],"f0a3","M495.768 272.292l-16.72-16.363 16.719-16.362c30.04-28.786 16.251-79.537-23.83-89.365l-22.768-5.811 6.464-22.698c11.232-39.997-26.115-76.468-65.449-65.451l-22.672 6.461-5.809-22.778C351.926.052 300.89-13.786 272.299 16.142L256 32.934l-16.301-16.791c-28.323-29.647-79.535-16.514-89.405 23.793l-5.807 22.768-22.672-6.461c-39.14-10.992-76.677 25.224-65.449 65.45l6.464 22.698-22.767 5.811c-40.081 9.827-53.87 60.579-23.831 89.365l16.72 16.363-16.719 16.362c-30.04 28.786-16.251 79.537 23.83 89.365l22.768 5.811-6.464 22.698c-11.221 40.203 26.255 76.429 65.449 65.45l22.672-6.461 5.807 22.767c9.93 40.578 60.865 53.609 89.366 23.836L256 479.05l16.254 16.62c28.257 29.9 79.554 16.68 89.452-23.746l5.807-22.767 22.672 6.461c39.472 11.086 76.598-25.509 65.449-65.45l-6.464-22.698 22.767-5.811c40.082-9.829 53.87-60.581 23.831-89.367zm-31.567 58.313l-54.819 13.991 15.453 54.263c4.366 15.605-10.346 30.332-25.953 25.962l-54.245-15.458L330.65 464.2c-3.796 15.884-24.347 21.136-35.285 9.334L256 433.284l-39.366 40.251c-11.051 11.681-31.4 6.919-35.285-9.334l-13.986-54.837-54.245 15.458c-15.603 4.368-30.32-10.354-25.953-25.962l15.453-54.263-54.819-13.991c-15.733-3.762-21.326-23.942-9.331-35.297l40.237-39.379-40.237-39.379c-11.989-11.35-6.407-31.532 9.331-35.296l54.819-13.991L87.165 113c-4.366-15.605 10.346-30.332 25.953-25.962l54.245 15.458 13.986-54.837c3.743-15.664 24.233-21.016 35.285-9.334L256 78.873l39.366-40.548c11.179-11.816 31.583-6.152 35.285 9.334l13.986 54.837 54.245-15.458c15.603-4.368 30.32 10.354 25.953 25.962l-15.453 54.263 54.819 13.991c15.733 3.762 21.326 23.942 9.331 35.296l-40.237 39.379 40.237 39.379c11.989 11.351 6.407 31.533-9.331 35.297z"]},b={prefix:"fal",iconName:"chart-bar",icon:[512,512,[],"f080","M424 352h16c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v240c0 4.4 3.6 8 8 8zm-96 0h16c4.4 0 8-3.6 8-8V200c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm-192 0h16c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm96 0h16c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v208c0 4.4 3.6 8 8 8zm272 64H32V72c0-4.42-3.58-8-8-8H8c-4.42 0-8 3.58-8 8v360c0 8.84 7.16 16 16 16h488c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8z"]},C={prefix:"fal",iconName:"chart-line",icon:[512,512,[],"f201","M504 416H32V72c0-4.42-3.58-8-8-8H8c-4.42 0-8 3.58-8 8v360c0 8.84 7.16 16 16 16h488c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM98.34 263.03c-3.12 3.12-3.12 8.19 0 11.31l11.31 11.31c3.12 3.12 8.19 3.12 11.31 0l72.69-72.01 84.69 84.69c6.25 6.25 16.38 6.25 22.63 0l93.53-93.53 44.04 44.04c4.95 4.95 11.03 7.16 17 7.16 12.48 0 24.46-9.7 24.46-24.34V112.19c0-8.94-7.25-16.19-16.19-16.19H344.34c-21.64 0-32.47 26.16-17.17 41.46l44.71 44.71-82.22 82.22-84.63-84.63c-6.23-6.23-16.32-6.25-22.57-.05l-84.12 83.32zM362.96 128H448v85.04L362.96 128z"]},w={prefix:"fal",iconName:"cogs",icon:[640,512,[],"f085","M538.6 196.4l-2.5-3.9c-4.1.3-8.1.3-12.2 0l-2.5 4c-5.8 9.2-17.1 13.4-27.5 10.1-13.8-4.3-23-8.8-34.3-18.1-9-7.4-11.2-20.3-5.4-30.4l2.5-4.3c-2.3-3.4-4.3-6.9-6.1-10.6h-9.1c-11.6 0-21.4-8.2-23.6-19.6-2.6-13.7-2.7-24.2.1-38.5 2.1-11.3 12.1-19.5 23.6-19.5h9c1.8-3.7 3.8-7.2 6.1-10.6l-2.6-4.5c-5.8-10-3.6-22.7 5.2-30.3 10.6-9.1 19.7-14.3 33.5-19 10.8-3.7 22.7.7 28.5 10.6l2.6 4.4c4.1-.3 8.1-.3 12.2 0l2.6-4.4c5.8-9.9 17.7-14.3 28.6-10.5 13.3 4.5 22.3 9.6 33.5 19.1 8.8 7.5 10.9 20.2 5.1 30.2l-2.6 4.4c2.3 3.4 4.3 6.9 6.1 10.6h5.1c11.6 0 21.4 8.2 23.6 19.6 2.6 13.7 2.7 24.2-.1 38.5-2.1 11.3-12.1 19.5-23.6 19.5h-5c-1.8 3.7-3.8 7.2-6.1 10.6l2.5 4.3c5.9 10.2 3.5 23.1-5.5 30.5-10.7 8.8-19.9 13.4-34 17.9-10.5 3.3-21.9-.8-27.7-10.1zm12.2-34.5l10.6 18.3c6.7-2.8 12.9-6.4 18.7-10.8l-10.6-18.3 6.4-7.5c4.8-5.7 8.6-12.1 11-19.1l3.3-9.3h21.1c.9-7.1.9-14.4 0-21.5h-21.1l-3.3-9.3c-2.5-7-6.2-13.4-11-19.1l-6.4-7.5L580 39.4c-5.7-4.4-12-8-18.7-10.8l-10.6 18.3-9.7-1.8c-7.3-1.4-14.8-1.4-22.1 0l-9.7 1.8-10.6-18.3C492 31.3 485.7 35 480 39.4l10.6 18.3-6.4 7.5c-4.8 5.7-8.6 12.1-11 19.1l-3.3 9.3h-21.1c-.9 7.1-.9 14.4 0 21.5h21.1l3.3 9.3c2.5 7 6.2 13.4 11 19.1l6.4 7.5-10.6 18.4c5.7 4.4 12 8 18.7 10.8l10.6-18.3 9.7 1.8c7.3 1.4 14.8 1.4 22.1 0l9.7-1.8zM145.3 454.4v-31.6c-12.9-5.5-25.1-12.6-36.4-21.1l-27.5 15.9c-9.8 5.6-22.1 3.7-29.7-4.6-24.2-26.3-38.5-49.5-50.6-88.1-3.4-10.7 1.1-22.3 10.8-28L39.2 281c-1.7-14-1.7-28.1 0-42.1l-27.3-15.8c-9.7-5.6-14.2-17.3-10.8-28 12.1-38.4 26.2-61.6 50.6-88.1 7.6-8.3 20-10.2 29.7-4.6l27.4 15.9c11.3-8.5 23.5-15.5 36.4-21.1V65.6c0-11.3 7.8-21 18.8-23.4 34.7-7.8 62-8.7 101.7 0 11 2.4 18.9 12.2 18.9 23.4v31.6c12.9 5.5 25.1 12.6 36.4 21l27.4-15.8c9.8-5.6 22.2-3.7 29.8 4.6 26.9 29.6 41.5 55.9 52.1 88.5 3.4 10.5-.8 21.9-10.2 27.7l-25 15.8c1.7 14 1.7 28.1 0 42.1l28.1 17.5c8.6 5.4 13 15.6 10.8 25.5-6.9 31.3-33 64.6-55.9 89.2-7.6 8.2-19.9 10-29.6 4.4L321 401.8c-11.3 8.5-23.5 15.5-36.4 21.1v31.6c0 11.2-7.8 21-18.8 23.4-37.5 8.3-64.9 8.2-101.9 0-10.8-2.5-18.6-12.3-18.6-23.5zm32-6.2c24.8 5 50.5 5 75.3 0v-47.7l10.7-3.8c16.8-5.9 32.3-14.9 45.9-26.5l8.6-7.4 41.4 23.9c16.8-19.1 34-41.3 42.1-65.2l-41.4-23.9 2.1-11.1c3.2-17.6 3.2-35.5 0-53.1l-2.1-11.1 41.4-23.9c-8.1-23.9-25.3-46.2-42.1-65.2l-41.4 23.9-8.6-7.4c-13.6-11.7-29-20.6-45.9-26.5l-10.7-3.8V71.8c-24.8-5-50.5-5-75.3 0v47.7l-10.7 3.8c-16.8 5.9-32.3 14.9-45.9 26.5l-8.6 7.4-41.4-23.9A192.19 192.19 0 0 0 33 198.5l41.4 23.9-2.1 11.1c-3.2 17.6-3.2 35.5 0 53.1l2.1 11.1L33 321.6c8.1 23.9 20.9 46.2 37.7 65.2l41.4-23.9 8.6 7.4c13.6 11.7 29 20.6 45.9 26.5l10.7 3.8v47.6zm38.4-105.3c-45.7 0-82.9-37.2-82.9-82.9s37.2-82.9 82.9-82.9 82.9 37.2 82.9 82.9-37.2 82.9-82.9 82.9zm0-133.8c-28 0-50.9 22.8-50.9 50.9s22.8 50.9 50.9 50.9c28 0 50.9-22.8 50.9-50.9s-22.8-50.9-50.9-50.9zm322.9 291.7l-2.5-3.9c-4.1.3-8.1.3-12.2 0l-2.5 4c-5.8 9.2-17.1 13.4-27.5 10.1-13.8-4.3-23-8.8-34.3-18.1-9-7.4-11.2-20.3-5.4-30.4l2.5-4.3c-2.3-3.4-4.3-6.9-6.1-10.6h-9.1c-11.6 0-21.4-8.2-23.6-19.6-2.6-13.7-2.7-24.2.1-38.5 2.1-11.3 12.1-19.5 23.6-19.5h9c1.8-3.7 3.8-7.2 6.1-10.6l-2.6-4.5c-5.8-10-3.6-22.7 5.2-30.3 10.6-9.1 19.7-14.3 33.5-19 10.8-3.7 22.7.7 28.5 10.6l2.6 4.4c4.1-.3 8.1-.3 12.2 0l2.6-4.4c5.8-9.9 17.7-14.3 28.6-10.5 13.3 4.5 22.3 9.6 33.5 19.1 8.8 7.5 10.9 20.2 5.1 30.2l-2.6 4.4c2.3 3.4 4.3 6.9 6.1 10.6h5.1c11.6 0 21.4 8.2 23.6 19.6 2.6 13.7 2.7 24.2-.1 38.5-2.1 11.3-12.1 19.5-23.6 19.5h-5c-1.8 3.7-3.8 7.2-6.1 10.6l2.5 4.3c5.9 10.2 3.5 23.1-5.5 30.5-10.7 8.8-19.9 13.4-34 17.9-10.5 3.2-21.9-.9-27.7-10.1zm12.2-34.6l10.6 18.3c6.7-2.8 12.9-6.4 18.7-10.8l-10.6-18.3 6.4-7.5c4.8-5.7 8.6-12.1 11-19.1l3.3-9.3h21.1c.9-7.1.9-14.4 0-21.5h-21.1l-3.3-9.3c-2.5-7-6.2-13.4-11-19.1l-6.4-7.5 10.6-18.3c-5.7-4.4-12-8-18.7-10.8l-10.6 18.3-9.7-1.8c-7.3-1.4-14.8-1.4-22.1 0l-9.7 1.8-10.6-18.3c-6.7 2.8-12.9 6.4-18.7 10.8l10.6 18.3-6.4 7.5c-4.8 5.7-8.6 12.1-11 19.1l-3.3 9.3h-21.1c-.9 7.1-.9 14.4 0 21.5h21.1l3.3 9.3c2.5 7 6.2 13.4 11 19.1l6.4 7.5-10.6 18.3c5.7 4.4 12 8 18.7 10.8l10.6-18.3 9.7 1.8c7.3 1.4 14.8 1.4 22.1 0l9.7-1.8zM560 408c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm0-304.3c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.4 32-32z"]},x={prefix:"fal",iconName:"coins",icon:[512,512,[],"f51e","M336 32c-48.6 0-92.6 9-124.5 23.4-.9.4-51.5 21-51.5 56.6v16.7C76.1 132.2 0 163.4 0 208v192c0 44.2 78.8 80 176 80s176-35.8 176-80v-16.4c89.7-3.7 160-37.9 160-79.6V112c0-37-62.1-80-176-80zm-16 368c0 13.9-50.5 48-144 48S32 413.9 32 400v-50.1c31.8 20.6 84.4 34.1 144 34.1s112.2-13.5 144-34.1V400zm0-96c0 13.9-50.5 48-144 48S32 317.9 32 304v-50.1c31.8 20.6 84.4 34.1 144 34.1s112.2-13.5 144-34.1V304zm-144-48c-81 0-146.7-21.5-146.7-48S95 160 176 160s146.7 21.5 146.7 48S257 256 176 256zm304 48c0 13.1-45 43.6-128 47.3v-64.1c52.8-2.2 99.1-14.6 128-33.3V304zm0-96c0 13.1-45.1 43.4-128 47.2V208c0-5.6-1.7-11-4.1-16.3 54.6-1.7 102.4-14.5 132.1-33.8V208zm-144-48c-7.3 0-14-.5-20.9-.9-36.9-21.7-85-28.2-115.6-30-6.3-5.3-10.1-11-10.1-17.1 0-26.5 65.7-48 146.7-48s146.7 21.5 146.7 48S417 160 336 160z"]},_={prefix:"fal",iconName:"credit-card",icon:[576,512,[],"f09d","M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM48 64h480c8.8 0 16 7.2 16 16v48H32V80c0-8.8 7.2-16 16-16zm480 384H48c-8.8 0-16-7.2-16-16V224h512v208c0 8.8-7.2 16-16 16zm-336-84v8c0 6.6-5.4 12-12 12h-72c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12zm192 0v8c0 6.6-5.4 12-12 12H236c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12z"]},S={prefix:"fal",iconName:"download",icon:[512,512,[],"f019","M452 432c0 11-9 20-20 20s-20-9-20-20 9-20 20-20 20 9 20 20zm-84-20c-11 0-20 9-20 20s9 20 20 20 20-9 20-20-9-20-20-20zm144-48v104c0 24.3-19.7 44-44 44H44c-24.3 0-44-19.7-44-44V364c0-24.3 19.7-44 44-44h99.4L87 263.6c-25.2-25.2-7.3-68.3 28.3-68.3H168V40c0-22.1 17.9-40 40-40h96c22.1 0 40 17.9 40 40v155.3h52.7c35.6 0 53.4 43.1 28.3 68.3L368.6 320H468c24.3 0 44 19.7 44 44zm-261.7 17.7c3.1 3.1 8.2 3.1 11.3 0L402.3 241c5-5 1.5-13.7-5.7-13.7H312V40c0-4.4-3.6-8-8-8h-96c-4.4 0-8 3.6-8 8v187.3h-84.7c-7.1 0-10.7 8.6-5.7 13.7l140.7 140.7zM480 364c0-6.6-5.4-12-12-12H336.6l-52.3 52.3c-15.6 15.6-41 15.6-56.6 0L175.4 352H44c-6.6 0-12 5.4-12 12v104c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12V364z"]},M={prefix:"fal",iconName:"envelope-open-dollar",icon:[512,512,[],"f657","M494.59 164.52c-1.98-1.63-22.19-17.91-46.59-37.53V96c0-17.67-14.33-32-32-32h-46.47c-4.13-3.31-7.71-6.16-10.2-8.14C337.23 38.19 299.44 0 256 0c-43.21 0-80.64 37.72-103.34 55.86-2.53 2.01-6.1 4.87-10.2 8.14H96c-17.67 0-32 14.33-32 32v30.98c-24.52 19.71-44.75 36.01-46.48 37.43A48.002 48.002 0 0 0 0 201.48V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V201.51c0-14.31-6.38-27.88-17.41-36.99zM256 32c21.77 0 44.64 16.72 63.14 32H192.9c18.53-15.27 41.42-32 63.1-32zM96 96h320v173.35c-32.33 26-65.3 52.44-86.59 69.34-16.85 13.43-50.19 45.68-73.41 45.31-23.21.38-56.56-31.88-73.41-45.32-21.29-16.9-54.24-43.33-86.59-69.34V96zM32 201.48c0-4.8 2.13-9.31 5.84-12.36 1.24-1.02 11.62-9.38 26.16-21.08v75.55c-11.53-9.28-22.51-18.13-32-25.78v-16.33zM480 464c0 8.82-7.18 16-16 16H48c-8.82 0-16-7.18-16-16V258.91c42.75 34.44 99.31 79.92 130.68 104.82 20.49 16.36 56.74 52.53 93.32 52.26 36.45.26 72.27-35.46 93.31-52.26C380.72 338.8 437.24 293.34 480 258.9V464zm0-246.19c-9.62 7.75-20.27 16.34-32 25.79v-75.54c14.44 11.62 24.8 19.97 26.2 21.12 3.69 3.05 5.8 7.54 5.8 12.33v16.3zm-251.09 22.77l45 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.11c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V328c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.62-.63 42.67-20.54 42.67-45.07 0-19.97-12.98-37.81-31.58-43.39l-45-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V136c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.62.63-42.67 20.55-42.67 45.07 0 19.97 12.98 37.81 31.58 43.39z"]},E={prefix:"fal",iconName:"euro-sign",icon:[320,512,[],"f153","M303.625 444.131c-1.543-6.481-8.063-10.445-14.538-8.874-10.014 2.43-25.689 5.304-43.827 5.304-80.726 0-141.733-46.614-160.837-120.561h155.241a12 12 0 0 0 11.784-9.731l1.541-8c1.425-7.402-4.246-14.269-11.784-14.269H77.646c-1.849-20.951-1.849-43.664.616-64h178.657a12 12 0 0 0 11.784-9.731l1.541-8c1.425-7.402-4.246-14.269-11.784-14.269H85.04c20.951-70.25 80.111-120.561 159.604-120.561 14.725 0 28.452 2.194 37.551 4.086 6.282 1.306 12.47-2.581 14.05-8.799l3.93-15.475c1.689-6.652-2.529-13.383-9.262-14.718C280.423 34.452 264.068 32 245.26 32 143.582 32 63.472 100.181 39.439 192H12c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h21.893c-2.466 17.87-1.849 49.827-.617 64H12c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h26.207c21.568 96.749 101.678 160 207.053 160 22.511 0 41.595-3.426 53.081-6.106 6.47-1.51 10.465-7.999 8.926-14.462l-3.642-15.301z"]},O={prefix:"fal",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M270.2 160h35.5c3.4 0 6.1 2.8 6 6.2l-7.5 196c-.1 3.2-2.8 5.8-6 5.8h-20.5c-3.2 0-5.9-2.5-6-5.8l-7.5-196c-.1-3.4 2.6-6.2 6-6.2zM288 388c-15.5 0-28 12.5-28 28s12.5 28 28 28 28-12.5 28-28-12.5-28-28-28zm281.5 52L329.6 24c-18.4-32-64.7-32-83.2 0L6.5 440c-18.4 31.9 4.6 72 41.6 72H528c36.8 0 60-40 41.5-72zM528 480H48c-12.3 0-20-13.3-13.9-24l240-416c6.1-10.6 21.6-10.7 27.7 0l240 416c6.2 10.6-1.5 24-13.8 24z"]},A={prefix:"fal",iconName:"eye",icon:[576,512,[],"f06e","M288 288a64 64 0 0 0 0-128c-1 0-1.88.24-2.85.29a47.5 47.5 0 0 1-60.86 60.86c0 1-.29 1.88-.29 2.85a64 64 0 0 0 64 64zm284.52-46.6C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 96a128 128 0 1 1-128 128A128.14 128.14 0 0 1 288 96zm0 320c-107.36 0-205.46-61.31-256-160a294.78 294.78 0 0 1 129.78-129.33C140.91 153.69 128 187.17 128 224a160 160 0 0 0 320 0c0-36.83-12.91-70.31-33.78-97.33A294.78 294.78 0 0 1 544 256c-50.53 98.69-148.64 160-256 160z"]},T={prefix:"fal",iconName:"file",icon:[384,512,[],"f15b","M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8.7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16z"]},k={prefix:"fal",iconName:"file-certificate",icon:[512,512,[],"f5f3","M497.9 97.98L414.02 14.1c-9-9-21.19-14.1-33.89-14.1H176c-26.5.1-47.99 21.6-47.99 48.09V165.7c-5.97 0-11.94-1.68-24.13-5.03-1.7-.46-3.36-.66-4.96-.66-5.56 0-10.43 2.5-13.66 5.79-17.95 18.26-17.07 17.77-41.7 24.5-6.7 1.81-11.97 7.21-13.78 14.07-6.47 24.67-6.09 24.16-24.02 42.32-4.95 5.04-6.9 12.48-5.08 19.43 6.56 24.38 6.52 24.39 0 48.76-1.82 6.95.12 14.4 5.08 19.45 18 18.15 17.58 17.79 24.02 42.29 1.8 6.88 7.08 12.27 13.78 14.1 1.8.48 2.92.8 4.46 1.21V496c0 5.55 2.87 10.69 7.59 13.61 4.66 2.91 10.59 3.16 15.56.7l56.84-28.42 56.84 28.42c2.25 1.12 4.72 1.69 7.16 1.69h272c26.49 0 47.99-21.5 47.99-47.99V131.97c0-12.69-5.1-24.99-14.1-33.99zM384.03 32.59c2.8.7 5.3 2.1 7.4 4.2l83.88 83.88c2.1 2.1 3.5 4.6 4.2 7.4h-95.48V32.59zM33.28 316.68c5.7-22.3 5.7-30.23.01-52.39 15.65-16.2 19.56-22.98 25.63-45.06 21.57-6.13 28.06-9.92 43.88-25.69 9.8 2.62 16.82 4.15 25.21 4.15 8.28 0 15.25-1.49 25.19-4.16 15.56 15.51 22.49 19.58 43.86 25.68 5.98 21.95 9.71 28.63 25.65 45.07-5.77 22.45-5.76 30 0 52.4-15.62 16.17-19.55 22.96-25.61 44.96-14.63 3.92-24 7.36-37.25 19.36-9.94-4.53-20.78-6.89-31.85-6.89s-21.9 2.36-31.85 6.9c-13.18-11.88-22.56-15.34-37.23-19.33-5.97-21.89-9.72-28.57-25.64-45zm101.89 133.01c-4.5-2.25-9.81-2.25-14.31 0l-40.84 20.42V409.9c.12.12.19.17.31.29 3.75 3.82 8.68 5.79 13.64 5.79 3.5 0 7.02-.98 10.16-2.97 7.25-4.59 15.56-6.88 23.87-6.88s16.62 2.29 23.87 6.86c3.16 2.02 6.68 3.01 10.17 3.01 4.96 0 9.87-1.99 13.63-5.79.13-.13.21-.18.34-.32v60.22l-40.84-20.42zm344.84 14.32c0 8.8-7.2 16-16 16h-256V391.9c1.54-.4 2.65-.71 4.44-1.19 6.7-1.82 11.97-7.22 13.77-14.08 6.47-24.68 6.09-24.16 24.03-42.32 4.95-5.04 6.9-12.49 5.07-19.44-6.53-24.33-6.55-24.34 0-48.76 1.83-6.95-.12-14.4-5.07-19.45-18-18.15-17.58-17.79-24.03-42.29-1.8-6.87-7.07-12.27-13.75-14.09-24.23-6.57-23.89-6.23-41.72-24.52-2.94-2.97-6.78-4.52-10.74-5.16V48.09c0-8.8 7.2-16.09 16-16.09h176.03v104.07c0 13.3 10.7 23.93 24 23.93h103.98v304.01z"]},D={prefix:"fal",iconName:"file-csv",icon:[384,512,[],"f6dd","M369.9 97.98L286.02 14.1c-9-9-21.2-14.1-33.89-14.1H47.99C21.5.1 0 21.6 0 48.09v415.92C0 490.5 21.5 512 47.99 512h288.02c26.49 0 47.99-21.5 47.99-47.99V131.97c0-12.69-5.1-24.99-14.1-33.99zM256.03 32.59c2.8.7 5.3 2.1 7.4 4.2l83.88 83.88c2.1 2.1 3.5 4.6 4.2 7.4h-95.48V32.59zm95.98 431.42c0 8.8-7.2 16-16 16H47.99c-8.8 0-16-7.2-16-16V48.09c0-8.8 7.2-16.09 16-16.09h176.04v104.07c0 13.3 10.7 23.93 24 23.93h103.98v304.01zM120 256h-8c-26.51 0-48 21.49-48 48v32c0 26.51 21.49 48 48 48h8c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8h-8c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h8c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm112 0c-4.42 0-8 3.58-8 8v20.8c0 35.48 12.88 68.89 36.28 94.09 3.02 3.25 7.27 5.11 11.72 5.11s8.7-1.86 11.72-5.11c23.41-25.2 36.28-58.61 36.28-94.09V264c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v20.8c0 20.27-5.7 40.17-16 56.88-10.3-16.7-16-36.61-16-56.88V264c0-4.42-3.58-8-8-8h-16zm-52.55 42.47c-1.38-1.19-2.12-2.55-2.12-3.84 0-3.12 4.45-6.62 10.41-6.62H200c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8h-12.27c-23.39 0-42.41 17.33-42.41 38.62 0 10.66 4.86 20.92 13.33 28.14l21.89 18.77c1.38 1.19 2.12 2.55 2.12 3.84 0 3.12-4.45 6.62-10.41 6.62H160c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h12.27c23.39 0 42.41-17.33 42.41-38.62 0-10.66-4.86-20.92-13.33-28.14l-21.9-18.77z"]},P={prefix:"fal",iconName:"file-download",icon:[384,512,[],"f56d","M369.9 97.98L286.02 14.1c-9-9-21.2-14.1-33.89-14.1H47.99C21.5.1 0 21.6 0 48.09v415.92C0 490.5 21.5 512 47.99 512h288.02c26.49 0 47.99-21.5 47.99-47.99V131.97c0-12.69-5.1-24.99-14.1-33.99zM256.03 32.59c2.8.7 5.3 2.1 7.4 4.2l83.88 83.88c2.1 2.1 3.5 4.6 4.2 7.4h-95.48V32.59zm95.98 431.42c0 8.8-7.2 16-16 16H47.99c-8.8 0-16-7.2-16-16V48.09c0-8.8 7.2-16.09 16-16.09h176.04v104.07c0 13.3 10.7 23.93 24 23.93h103.98v304.01zM208 216c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v88.02h-52.66c-11 0-20.59 6.41-25 16.72-4.5 10.52-2.38 22.62 5.44 30.81l68.12 71.78c5.34 5.59 12.47 8.69 20.09 8.69s14.75-3.09 20.09-8.7l68.12-71.75c7.81-8.2 9.94-20.31 5.44-30.83-4.41-10.31-14-16.72-25-16.72H208V216zm42.84 120.02l-58.84 62-58.84-62h117.68z"]},N={prefix:"fal",iconName:"file-excel",icon:[384,512,[],"f1c3","M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zm-22.6 22.7c2.1 2.1 3.5 4.6 4.2 7.4H256V32.5c2.8.7 5.3 2.1 7.4 4.2l83.9 83.9zM336 480H48c-8.8 0-16-7.2-16-16V48c0-8.8 7.2-16 16-16h176v104c0 13.3 10.7 24 24 24h104v304c0 8.8-7.2 16-16 16zM211.7 308l50.5-81.8c4.8-8-.9-18.2-10.3-18.2h-4.1c-4.1 0-7.9 2.1-10.1 5.5-31 48.5-36.4 53.5-45.7 74.5-17.2-32.2-8.4-16-45.8-74.5-2.2-3.4-6-5.5-10.1-5.5H132c-9.4 0-15.1 10.3-10.2 18.2L173 308l-59.1 89.5c-5.1 8 .6 18.5 10.1 18.5h3.5c4.1 0 7.9-2.1 10.1-5.5 37.2-58 45.3-62.5 54.4-82.5 31.5 56.7 44.3 67.2 54.4 82.6 2.2 3.4 6 5.4 10 5.4h3.6c9.5 0 15.2-10.4 10.1-18.4L211.7 308z"]},L={prefix:"fal",iconName:"file-invoice-dollar",icon:[384,512,[],"f571","M219.09 327.42l-45-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V232c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v24.12c-23.62.63-42.67 20.55-42.67 45.07 0 19.97 12.98 37.81 31.58 43.39l45 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.11c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V440c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-24.12c23.62-.63 42.67-20.54 42.67-45.07 0-19.97-12.98-37.81-31.58-43.39zM72 96h112c4.42 0 8-3.58 8-8V72c0-4.42-3.58-8-8-8H72c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8zm120 56v-16c0-4.42-3.58-8-8-8H72c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h112c4.42 0 8-3.58 8-8zm177.9-54.02L286.02 14.1c-9-9-21.2-14.1-33.89-14.1H47.99C21.5.1 0 21.6 0 48.09v415.92C0 490.5 21.5 512 47.99 512h288.02c26.49 0 47.99-21.5 47.99-47.99V131.97c0-12.69-5.1-24.99-14.1-33.99zM256.03 32.59c2.8.7 5.3 2.1 7.4 4.2l83.88 83.88c2.1 2.1 3.5 4.6 4.2 7.4h-95.48V32.59zm95.98 431.42c0 8.8-7.2 16-16 16H47.99c-8.8 0-16-7.2-16-16V48.09c0-8.8 7.2-16.09 16-16.09h176.04v104.07c0 13.3 10.7 23.93 24 23.93h103.98v304.01z"]},R={prefix:"fal",iconName:"file-upload",icon:[384,512,[],"f574","M369.9 97.98L286.02 14.1c-9-9-21.2-14.1-33.89-14.1H47.99C21.5.1 0 21.6 0 48.09v415.92C0 490.5 21.5 512 47.99 512h288.02c26.49 0 47.99-21.5 47.99-47.99V131.97c0-12.69-5.1-24.99-14.1-33.99zM256.03 32.59c2.8.7 5.3 2.1 7.4 4.2l83.88 83.88c2.1 2.1 3.5 4.6 4.2 7.4h-95.48V32.59zm95.98 431.42c0 8.8-7.2 16-16 16H47.99c-8.8 0-16-7.2-16-16V48.09c0-8.8 7.2-16.09 16-16.09h176.04v104.07c0 13.3 10.7 23.93 24 23.93h103.98v304.01zm-180.1-247.32l-68.12 71.75c-7.81 8.2-9.94 20.31-5.44 30.83 4.41 10.31 14 16.72 25 16.72H176V424c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-88.02h52.66c11 0 20.59-6.41 25-16.72 4.5-10.52 2.38-22.62-5.44-30.81l-68.12-71.78c-10.69-11.19-29.51-11.2-40.19.02zm-38.75 87.29l58.84-62 58.84 62H133.16z"]},F={prefix:"fal",iconName:"globe-europe",icon:[496,512,[],"f7a2","M184 119.2c0-7-5.7-12.7-12.7-12.7h-.1c-3.4 0-6.6 1.3-8.9 3.7l-28.5 28.5c-2.4 2.4-3.7 5.6-3.7 8.9v.1c0 7 5.7 12.7 12.7 12.7h18c3.4 0 6.6-1.3 8.9-3.7l10.5-10.5c2.4-2.4 3.7-5.6 3.7-8.9v-18.1zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm48 458.4V432c0-26.5-21.5-48-48-48h-20.2c-3.9 0-13.1-3.1-16.2-5.4l-22.2-16.7c-3.4-2.5-5.4-6.6-5.4-10.8v-23.9c0-4.7 2.5-9.1 6.5-11.6l42.9-25.7c2.1-1.3 4.5-1.9 6.9-1.9h31.2c3.2 0 6.3 1.2 8.8 3.2l52.2 44.8h30.2l17.3 17.3c9.5 9.5 22.1 14.7 35.5 14.7h16.8c-29.9 49.1-78.7 85.3-136.3 98.4zM448.5 336h-32.9c-4.8 0-9.5-1.9-12.9-5.3l-17.3-17.3c-6-6-14.1-9.4-22.6-9.4h-18.3l-43.2-37.1c-8.2-7.1-18.7-10.9-29.6-10.9h-31.2c-8.2 0-16.3 2.2-23.4 6.5l-42.9 25.7c-13.7 8.2-22.1 23-22.1 39v23.9c0 14.3 6.7 27.8 18.2 36.4l22.2 16.7c8.6 6.5 24.6 11.8 35.4 11.8h20.2c8.8 0 16 7.2 16 16v39.2c-5.3.4-10.6.8-16 .8-119.1 0-216-96.9-216-216 0-118.9 96.5-215.6 215.3-216L232 51.1c-10.2 7.7-16 19.2-16 31.4v23.2c0 6.4 3.1 17 5.9 22.3-.8 2.1-21.1 15-24.6 18.5-8.6 8.6-13.3 20-13.3 32.1V195c0 25 20.4 45.4 45.4 45.4h25.3c11 0 21.2-3.9 29.2-10.6 3.9 1.4 8.2 2.1 12.6 2.1h13.4c25.6 0 32.2-20.2 36.1-21.5 5.1 9.1 13.5 16.2 23.5 19.5-4.3 14.2-.9 30.3 10.1 41.6l18.2 19.1c8.7 8.9 20.6 13.9 32.7 13.9h27.7c-2.4 10.8-5.7 21.3-9.7 31.5zm-17.8-63.6c-3.6 0-7.1-1.5-9.6-4L402.6 249a9.93 9.93 0 0 1 .1-14c12.6-12.6 10.5-8.6 10.5-17.8 0-2.5-1-4.9-2.8-6.7l-7.9-7.9c-1.8-1.8-4.2-2.8-6.7-2.8h-13.4c-8.5 0-12.6-10.3-6.7-16.2l7.9-7.3c1.8-1.8 4.2-2.8 6.7-2.8h8.3c5.2 0 9.5-4.2 9.5-9.5v-10.2c0-5.2-4.2-9.5-9.5-9.5h-28.2c-7.4 0-13.4 6-13.4 13.4v5.6c0 5.8-3.7 10.9-9.2 12.7l-26.5 8.8c-4.3 1.4-4.6 5-4.6 8.2 0 3.7-3 6.7-6.7 6.7h-13.4c-3.7 0-6.7-3-6.7-6.7 0-8.4-12.5-8.6-15.3-3-9 12.4-11.5 18.2-19.9 18.2h-25.3c-7.4 0-13.4-6-13.4-13.4v-16.4c0-3.6 1.4-7 3.9-9.5 19.5-14 29.6-17.6 29.6-31.5 0-2.9 1.8-5.5 4.6-6.4l33.6-11.2c1.4-.5 2.7-1.2 3.7-2.3L313.9 95c5-5 3.5-14.9-6.7-14.9h-17.4L276.4 99v6.7c0 3.7-3 6.7-6.7 6.7h-15c-3.7 0-6.7-3-6.7-6.7V82.5c0-2.1 1-4.1 2.7-5.4l44-31.9C391.4 66.7 464 153 464 256c0 5.5-.4 11-.8 16.4h-32.5z"]},I={prefix:"fal",iconName:"hand-holding-usd",icon:[576,512,[],"f4c0","M256.7 135.7l56.4 16.1c8.8 2.5 14.9 10.6 14.9 19.7 0 11.3-9.2 20.5-20.5 20.5h-36.9c-8.2 0-16.1-2.6-22.6-7.3-3-2.2-7.2-1.5-9.8 1.2l-11.4 11.4c-3.5 3.5-2.9 9.2 1 12.2 12.3 9.4 27.2 14.5 42.9 14.5h1.4v24c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-24h1.4c22.8 0 44.3-13.6 51.7-35.2 10.1-29.6-7.3-59.8-35.1-67.8L263 104.1c-8.8-2.5-14.9-10.6-14.9-19.7 0-11.3 9.2-20.5 20.5-20.5h36.9c8.2 0 16.1 2.6 22.6 7.3 3 2.2 7.2 1.5 9.8-1.2l11.4-11.4c3.5-3.5 2.9-9.2-1-12.2C336 37.1 321.1 32 305.4 32H304V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v24h-3.5c-30.6 0-55.1 26.3-52.2 57.5 2 22.1 19 40.1 40.4 46.2zm301.6 197.9c-19.7-17.7-49.4-17.6-69.9-1.2l-61.6 49.3c-1.9 1.5-4.2 2.3-6.7 2.3h-41.6c4.6-9.6 6.5-20.7 4.8-32.3-4-27.9-29.6-47.7-57.8-47.7H181.3c-20.8 0-41 6.7-57.6 19.2L85.3 352H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h88l46.9-35.2c11.1-8.3 24.6-12.8 38.4-12.8H328c13.3 0 24 10.7 24 24s-10.7 24-24 24h-88c-8.8 0-16 7.2-16 16s7.2 16 16 16h180.2c9.7 0 19.1-3.3 26.7-9.3l61.6-49.2c7.7-6.1 20-7.6 28.4 0 10.1 9.1 9.3 24.5-.9 32.6l-100.8 80.7c-7.6 6.1-17 9.3-26.7 9.3H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h400.5c17 0 33.4-5.8 46.6-16.4L556 415c12.2-9.8 19.5-24.4 20-40s-6-30.8-17.7-41.4z"]},z={prefix:"fal",iconName:"hashtag",icon:[448,512,[],"f292","M446.381 182.109l1.429-8c1.313-7.355-4.342-14.109-11.813-14.109h-98.601l20.338-113.891C359.047 38.754 353.392 32 345.92 32h-8.127a12 12 0 0 0-11.813 9.891L304.89 160H177.396l20.338-113.891C199.047 38.754 193.392 32 185.92 32h-8.127a12 12 0 0 0-11.813 9.891L144.89 160H42.003a12 12 0 0 0-11.813 9.891l-1.429 8C27.448 185.246 33.103 192 40.575 192h98.6l-22.857 128H13.432a12 12 0 0 0-11.813 9.891l-1.429 8C-1.123 345.246 4.532 352 12.003 352h98.601L90.266 465.891C88.953 473.246 94.608 480 102.08 480h8.127a12 12 0 0 0 11.813-9.891L143.11 352h127.494l-20.338 113.891C248.953 473.246 254.608 480 262.08 480h8.127a12 12 0 0 0 11.813-9.891L303.11 352h102.886a12 12 0 0 0 11.813-9.891l1.429-8c1.313-7.355-4.342-14.109-11.813-14.109h-98.601l22.857-128h102.886a12 12 0 0 0 11.814-9.891zM276.318 320H148.825l22.857-128h127.494l-22.858 128z"]},B={prefix:"fal",iconName:"home",icon:[576,512,[],"f015","M541 229.16l-61-49.83v-77.4a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v51.33L308.19 39.14a32.16 32.16 0 0 0-40.38 0L35 229.16a8 8 0 0 0-1.16 11.24l10.1 12.41a8 8 0 0 0 11.2 1.19L96 220.62v243a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-128l64 .3V464a16 16 0 0 0 16 16l128-.33a16 16 0 0 0 16-16V220.62L520.86 254a8 8 0 0 0 11.25-1.16l10.1-12.41a8 8 0 0 0-1.21-11.27zm-93.11 218.59h.1l-96 .3V319.88a16.05 16.05 0 0 0-15.95-16l-96-.27a16 16 0 0 0-16.05 16v128.14H128V194.51L288 63.94l160 130.57z"]},j={prefix:"fal",iconName:"inventory",icon:[640,512,[],"f480","M632 0h-16c-4.4 0-8 4.1-8 9.1V192h-64V48c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v144H32V9.1c0-5-3.6-9.1-8-9.1H8C3.6 0 0 4.1 0 9.1V512h32v-32h576v32h32V9.1c0-5-3.6-9.1-8-9.1zM384 64h128v128H384V64zM256 448H128V320h128v128zm32 0V320h128v128H288zm320 0H448V304c0-8.8-7.2-16-16-16H112c-8.8 0-16 7.2-16 16v144H32V224h576v224z"]},V={prefix:"fal",iconName:"layer-group",icon:[512,512,[],"f5fd","M512 256.01c0-9.98-5.81-18.94-14.77-22.81l-99.74-43.27 99.7-43.26c9-3.89 14.81-12.84 14.81-22.81s-5.81-18.92-14.77-22.79L271.94 3.33c-10.1-4.44-21.71-4.45-31.87-.02L14.81 101.06C5.81 104.95 0 113.9 0 123.87s5.81 18.92 14.77 22.79l99.73 43.28-99.7 43.26C5.81 237.08 0 246.03 0 256.01c0 9.97 5.81 18.92 14.77 22.79l99.72 43.26-99.69 43.25C5.81 369.21 0 378.16 0 388.14c0 9.97 5.81 18.92 14.77 22.79l225.32 97.76a40.066 40.066 0 0 0 15.9 3.31c5.42 0 10.84-1.1 15.9-3.31l225.29-97.74c9-3.89 14.81-12.84 14.81-22.81 0-9.98-5.81-18.94-14.77-22.81l-99.72-43.26 99.69-43.25c9-3.89 14.81-12.84 14.81-22.81zM45.23 123.87l208.03-90.26.03-.02c1.74-.71 3.65-.76 5.45.02l208.03 90.26-208.03 90.27c-1.81.77-3.74.77-5.48 0L45.23 123.87zm421.54 264.27L258.74 478.4c-1.81.77-3.74.77-5.48 0L45.23 388.13l110.76-48.06 84.11 36.49a40.066 40.066 0 0 0 15.9 3.31c5.42 0 10.84-1.1 15.9-3.31l84.11-36.49 110.76 48.07zm-208.03-41.87c-1.81.77-3.74.77-5.48 0L45.23 256 156 207.94l84.1 36.5a40.066 40.066 0 0 0 15.9 3.31c5.42 0 10.84-1.1 15.9-3.31l84.1-36.49 110.77 48.07-208.03 90.25z"]},W={prefix:"fal",iconName:"map-marker-alt",icon:[384,512,[],"f3c5","M192 96c-52.935 0-96 43.065-96 96s43.065 96 96 96 96-43.065 96-96-43.065-96-96-96zm0 160c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64zm0-256C85.961 0 0 85.961 0 192c0 77.413 26.97 99.031 172.268 309.67 9.534 13.772 29.929 13.774 39.465 0C357.03 291.031 384 269.413 384 192 384 85.961 298.039 0 192 0zm0 473.931C52.705 272.488 32 256.494 32 192c0-42.738 16.643-82.917 46.863-113.137S149.262 32 192 32s82.917 16.643 113.137 46.863S352 149.262 352 192c0 64.49-20.692 80.47-160 281.931z"]},H={prefix:"fal",iconName:"mobile",icon:[320,512,[],"f10b","M192 416c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zM320 48v416c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h224c26.5 0 48 21.5 48 48zm-32 0c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v416c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V48z"]},G={prefix:"fal",iconName:"music",icon:[512,512,[],"f001","M481.44 0a29.38 29.38 0 0 0-9.25 1.5l-290.78 96C168.72 101.72 160 114 160 128v244.75C143 360 120.69 352 96 352c-53 0-96 35.81-96 80s43 80 96 80 96-35.81 96-80V256l288-96v148.75C463 296 440.69 288 416 288c-53 0-96 35.81-96 80s43 80 96 80 96-35.81 96-80V32c0-18.25-14.31-32-30.56-32zM96 480c-34.69 0-64-22-64-48s29.31-48 64-48 64 22 64 48-29.31 48-64 48zm320-64c-34.69 0-64-22-64-48s29.31-48 64-48 64 22 64 48-29.31 48-64 48zm64-289.72l-288 96V128h-.56v-.12L480 32.62z"]},U={prefix:"fal",iconName:"pen",icon:[512,512,[],"f304","M493.25 56.26l-37.51-37.51C443.25 6.25 426.87 0 410.49 0s-32.76 6.25-45.26 18.74L12.85 371.12.15 485.34C-1.45 499.72 9.88 512 23.95 512c.89 0 1.78-.05 2.69-.15l114.14-12.61 352.48-352.48c24.99-24.99 24.99-65.51-.01-90.5zM126.09 468.68l-93.03 10.31 10.36-93.17 263.89-263.89 82.77 82.77-263.99 263.98zm344.54-344.54l-57.93 57.93-82.77-82.77 57.93-57.93c6.04-6.04 14.08-9.37 22.63-9.37 8.55 0 16.58 3.33 22.63 9.37l37.51 37.51c12.47 12.48 12.47 32.78 0 45.26z"]},q={prefix:"fal",iconName:"percent",icon:[384,512,[],"f295","M96 224c53 0 96-43 96-96s-43-96-96-96S0 75 0 128s43 96 96 96zm0-156c33.1 0 60 26.9 60 60s-26.9 60-60 60-60-26.9-60-60 26.9-60 60-60zm192 220c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 156c-33.1 0-60-26.9-60-60s26.9-60 60-60 60 26.9 60 60-26.9 60-60 60zm59.8-412H378c5 0 7.8 5.7 4.8 9.6L41 477.6c-1.1 1.5-2.9 2.4-4.8 2.4H6c-5 0-7.8-5.7-4.8-9.6L343 34.4c1.1-1.5 2.9-2.4 4.8-2.4z"]},Y={prefix:"fal",iconName:"percentage",icon:[320,512,[],"f541","M317.66 132.28c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L296.5 153.44l21.16-21.16zM64 224c16.38 0 32.76-6.25 45.25-18.74 24.99-24.99 24.99-65.52 0-90.51C96.76 102.25 80.38 96 64 96s-32.76 6.25-45.26 18.75c-24.99 24.99-24.99 65.52 0 90.51C31.24 217.75 47.62 224 64 224zm-22.62-86.63C47.42 131.33 55.45 128 64 128s16.58 3.33 22.63 9.37c12.48 12.48 12.47 32.78 0 45.25C80.59 188.67 72.55 192 64 192c-8.55 0-16.58-3.33-22.62-9.37-12.48-12.48-12.48-32.78 0-45.26zM256 288c-16.38 0-32.76 6.25-45.26 18.75-24.99 24.99-24.99 65.52 0 90.51C223.24 409.75 239.62 416 256 416s32.76-6.25 45.25-18.74c24.99-24.99 24.99-65.52 0-90.51C288.76 294.25 272.38 288 256 288zm22.63 86.63c-6.04 6.04-14.08 9.37-22.63 9.37-8.55 0-16.58-3.33-22.62-9.37-12.48-12.48-12.48-32.78 0-45.26 6.04-6.04 14.08-9.37 22.62-9.37 8.55 0 16.58 3.33 22.63 9.37 12.48 12.48 12.47 32.78 0 45.26z"]},X={prefix:"fal",iconName:"phone",icon:[512,512,[],"f095","M487.8 24.1L387 .8c-14.7-3.4-29.8 4.2-35.8 18.1l-46.5 108.5c-5.5 12.7-1.8 27.7 8.9 36.5l53.9 44.1c-34 69.2-90.3 125.6-159.6 159.6l-44.1-53.9c-8.8-10.7-23.8-14.4-36.5-8.9L18.9 351.3C5 357.3-2.6 372.3.8 387L24 487.7C27.3 502 39.9 512 54.5 512 306.7 512 512 307.8 512 54.5c0-14.6-10-27.2-24.2-30.4zM55.1 480l-23-99.6 107.4-46 59.5 72.8c103.6-48.6 159.7-104.9 208.1-208.1l-72.8-59.5 46-107.4 99.6 23C479.7 289.7 289.6 479.7 55.1 480z"]},K={prefix:"fal",iconName:"plus",icon:[384,512,[],"f067","M376 232H216V72c0-4.42-3.58-8-8-8h-32c-4.42 0-8 3.58-8 8v160H8c-4.42 0-8 3.58-8 8v32c0 4.42 3.58 8 8 8h160v160c0 4.42 3.58 8 8 8h32c4.42 0 8-3.58 8-8V280h160c4.42 0 8-3.58 8-8v-32c0-4.42-3.58-8-8-8z"]},$={prefix:"fal",iconName:"receipt",icon:[448,512,[],"f543","M344 240H104c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm0 96H104c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zM418.1 0c-5.8 0-11.8 1.8-17.3 5.7L357.3 37 318.7 9.2c-8.4-6-18.2-9.1-28.1-9.1-9.8 0-19.6 3-28 9.1L224 37 185.4 9.2C177 3.2 167.1.1 157.3.1s-19.6 3-28 9.1L90.7 37 47.2 5.7C41.8 1.8 35.8 0 29.9 0 14.4.1 0 12.3 0 29.9v452.3C0 499.5 14.3 512 29.9 512c5.8 0 11.8-1.8 17.3-5.7L90.7 475l38.6 27.8c8.4 6 18.2 9.1 28.1 9.1 9.8 0 19.6-3 28-9.1L224 475l38.6 27.8c8.4 6 18.3 9.1 28.1 9.1s19.6-3 28-9.1l38.6-27.8 43.5 31.3c5.4 3.9 11.4 5.7 17.3 5.7 15.5 0 29.8-12.2 29.8-29.8V29.9C448 12.5 433.7 0 418.1 0zM416 477.8L376 449l-18.7-13.5-18.7 13.5-38.6 27.8c-2.8 2-6 3-9.3 3-3.4 0-6.6-1.1-9.4-3.1L242.7 449 224 435.5 205.3 449l-38.6 27.8c-2.8 2-6 3-9.4 3-3.4 0-6.6-1.1-9.4-3.1L109.3 449l-18.7-13.5L72 449l-40 29.4V34.2L72 63l18.7 13.5L109.4 63 148 35.2c2.8-2 6-3 9.3-3 3.4 0 6.6 1.1 9.4 3.1L205.3 63 224 76.5 242.7 63l38.6-27.8c2.8-2 6-3 9.4-3 3.4 0 6.6 1.1 9.4 3.1L338.7 63l18.7 13.5L376 63l40-28.8v443.6zM344 144H104c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8z"]},Z={prefix:"fal",iconName:"sack-dollar",icon:[512,512,[],"f81d","M334.89 121.63l43.72-71.89C392.77 28.47 377.53 0 352 0H160.15c-25.56 0-40.8 28.5-26.61 49.76l43.57 71.88C-9.27 240.59.08 392.36.08 412c0 55.23 49.11 100 109.68 100h292.5c60.58 0 109.68-44.77 109.68-100 0-19.28 8.28-172-177.05-290.37zM160.15 32H352l-49.13 80h-93.73zM480 412c0 37.49-34.85 68-77.69 68H109.76c-42.84 0-77.69-30.51-77.69-68v-3.36c-.93-59.86 20-173 168.91-264.64h110.1C459.64 235.46 480.76 348.94 480 409zM285.61 310.74l-49-14.54c-5.66-1.62-9.57-7.22-9.57-13.68 0-7.86 5.76-14.21 12.84-14.21h30.57a26.78 26.78 0 0 1 13.93 4 8.92 8.92 0 0 0 11-.75l12.73-12.17a8.54 8.54 0 0 0-.65-13 63.12 63.12 0 0 0-34.17-12.17v-17.6a8.68 8.68 0 0 0-8.7-8.62H247.2a8.69 8.69 0 0 0-8.71 8.62v17.44c-25.79.75-46.46 22.19-46.46 48.57 0 21.54 14.14 40.71 34.38 46.74l49 14.54c5.66 1.61 9.58 7.21 9.58 13.67 0 7.87-5.77 14.22-12.84 14.22h-30.61a26.72 26.72 0 0 1-13.93-4 8.92 8.92 0 0 0-11 .76l-12.84 12.06a8.55 8.55 0 0 0 .65 13 63.2 63.2 0 0 0 34.17 12.17v17.55a8.69 8.69 0 0 0 8.71 8.62h17.41a8.69 8.69 0 0 0 8.7-8.62V406c25.68-.64 46.46-22.18 46.57-48.56.02-21.5-14.13-40.67-34.37-46.7z"]},J={prefix:"fal",iconName:"search",icon:[512,512,[],"f002","M508.5 481.6l-129-129c-2.3-2.3-5.3-3.5-8.5-3.5h-10.3C395 312 416 262.5 416 208 416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c54.5 0 104-21 141.1-55.2V371c0 3.2 1.3 6.2 3.5 8.5l129 129c4.7 4.7 12.3 4.7 17 0l9.9-9.9c4.7-4.7 4.7-12.3 0-17zM208 384c-97.3 0-176-78.7-176-176S110.7 32 208 32s176 78.7 176 176-78.7 176-176 176z"]},Q={prefix:"fal",iconName:"shipping-fast",icon:[640,512,[],"f48b","M280 192c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240zm352 192h-24V275.9c0-16.8-6.8-33.3-18.8-45.2l-83.9-83.9c-11.8-12-28.3-18.8-45.2-18.8H416V78.6c0-25.7-22.2-46.6-49.4-46.6H113.4C86.2 32 64 52.9 64 78.6V96H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H96V78.6c0-8.1 7.8-14.6 17.4-14.6h253.2c9.6 0 17.4 6.5 17.4 14.6V384H207.6C193 364.7 170 352 144 352c-18.1 0-34.6 6.2-48 16.4V288H64v144c0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16h195.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H632c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm-488 96c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm272-320h44.1c8.4 0 16.7 3.4 22.6 9.4l83.9 83.9c.8.8 1.1 1.9 1.8 2.8H416V160zm80 320c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-96h-16.4C545 364.7 522 352 496 352s-49 12.7-63.6 32H416v-96h160v96zM256 248v-16c0-4.4-3.6-8-8-8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8z"]},ee={prefix:"fal",iconName:"shopping-cart",icon:[576,512,[],"f07a","M551.991 64H129.28l-8.329-44.423C118.822 8.226 108.911 0 97.362 0H12C5.373 0 0 5.373 0 12v8c0 6.627 5.373 12 12 12h78.72l69.927 372.946C150.305 416.314 144 431.42 144 448c0 35.346 28.654 64 64 64s64-28.654 64-64a63.681 63.681 0 0 0-8.583-32h145.167a63.681 63.681 0 0 0-8.583 32c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-17.993-7.435-34.24-19.388-45.868C506.022 391.891 496.76 384 485.328 384H189.28l-12-64h331.381c11.368 0 21.177-7.976 23.496-19.105l43.331-208C578.592 77.991 567.215 64 551.991 64zM240 448c0 17.645-14.355 32-32 32s-32-14.355-32-32 14.355-32 32-32 32 14.355 32 32zm224 32c-17.645 0-32-14.355-32-32s14.355-32 32-32 32 14.355 32 32-14.355 32-32 32zm38.156-192H171.28l-36-192h406.876l-40 192z"]},te={prefix:"fal",iconName:"sigma",icon:[320,512,[],"f68b","M296 160h16c4.42 0 8-3.58 8-8V96c0-17.67-14.32-32-31.99-32H33.39C22.2 64 11.2 69.12 5.19 78.56c-7.69 12.08-6.76 26.87 2.8 38.5L138.09 256 7.3 395.73c-8.81 10.77-9.82 25.69-2.07 37.78C11.3 442.96 22.38 448 33.61 448h254.4c17.67 0 31.99-14.33 31.99-32v-56c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v56l-256.65.81 130.07-138.92c11.53-12.28 11.53-31.5.03-43.77L32.05 96h255.96v56c0 4.42 3.58 8 7.99 8z"]},ne={prefix:"fal",iconName:"sign-out-alt",icon:[512,512,[],"f2f5","M160 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l141.6 143.1c6.3 6.3 6.3 16.4 0 22.7L333.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H176c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l141.7-143c18.8-18.8 18.8-49.2 0-68L356.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H176c-26.5 0-48 21.6-48 48zM0 112v288c0 26.5 21.5 48 48 48h132c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12H48c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h132c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12H48C21.5 64 0 85.5 0 112z"]},re={prefix:"fal",iconName:"sliders-v",icon:[448,512,[],"f3f1","M160 168v-48c0-13.3-10.7-24-24-24H96V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v88H24c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h40v312c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8V192h40c13.3 0 24-10.7 24-24zm-32-8H32v-32h96v32zm152 160h-40V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v312h-40c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h40v88c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-88h40c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm-8 64h-96v-32h96v32zm152-224h-40V8c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v152h-40c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h40v248c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8V256h40c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm-8 64h-96v-32h96v32z"]},oe={prefix:"fal",iconName:"sticky-note",icon:[448,512,[],"f249","M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-120.569 95.196a15.89 15.89 0 0 1-7.431 4.195v-95.509h95.509a15.88 15.88 0 0 1-4.195 7.431l-83.883 83.883zM416 80v239.988H312c-13.255 0-24 10.745-24 24v104H48c-8.837 0-16-7.163-16-16V80c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16z"]},ie={prefix:"fal",iconName:"sync",icon:[512,512,[],"f021","M492 8h-10c-6.627 0-12 5.373-12 12v110.627C426.929 57.261 347.224 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h10.016c6.353 0 11.646-4.949 11.977-11.293C48.157 132.216 141.097 42 256 42c82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12zm-.301 248h-10.015c-6.352 0-11.647 4.949-11.977 11.293C463.841 380.158 370.546 470 256 470c-82.608 0-154.672-46.952-190.299-116H180c6.627 0 12-5.373 12-12v-10c0-6.627-5.373-12-12-12H20c-6.627 0-12 5.373-12 12v160c0 6.627 5.373 12 12 12h10c6.627 0 12-5.373 12-12V381.373C85.071 454.739 164.777 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"]},ae={prefix:"fal",iconName:"table",icon:[512,512,[],"f0ce","M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM160 448H48c-8.837 0-16-7.163-16-16v-80h128v96zm0-128H32v-96h128v96zm0-128H32V96h128v96zm160 256H192v-96h128v96zm0-128H192v-96h128v96zm0-128H192V96h128v96zm160 160v80c0 8.837-7.163 16-16 16H352v-96h128zm0-32H352v-96h128v96zm0-128H352V96h128v96z"]},se={prefix:"fal",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 152c13.26 0 24-10.74 24-24s-10.74-24-24-24-24 10.74-24 24 10.74 24 24 24zm-136 8c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm272 0c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm56 136c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zM288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm221.5 416l-442.8.68C44 409.75 32 365.26 32 320 32 178.84 146.84 64 288 64s256 114.84 256 256c0 45.26-12 89.75-34.5 128zM96 296c-13.26 0-24 10.74-24 24s10.74 24 24 24 24-10.74 24-24-10.74-24-24-24zm269.22-167.12c-8.19-2.78-17.44 1.55-20.34 9.89l-51.83 149.74c-1.69-.13-3.31-.51-5.04-.51-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64c0-22.25-11.38-41.82-28.62-53.29l51.74-149.48c2.87-8.34-1.54-17.46-9.91-20.35zM288 384c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"]},le={prefix:"fal",iconName:"tasks",icon:[512,512,[],"f0ae","M145.35 207a8 8 0 0 0-11.35 0l-71 71-39-39a8 8 0 0 0-11.31 0L1.35 250.34a8 8 0 0 0 0 11.32l56 56a8 8 0 0 0 11.31 0l88-88a8 8 0 0 0 0-11.32zM62.93 384c-17.67 0-32.4 14.33-32.4 32s14.73 32 32.4 32a32 32 0 0 0 0-64zm82.42-337A8 8 0 0 0 134 47l-71 71-39-39a8 8 0 0 0-11.31 0L1.35 90.34a8 8 0 0 0 0 11.32l56 56a8 8 0 0 0 11.31 0l88-88a8 8 0 0 0 0-11.32zM503 400H199a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h304a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8zm0-320H199a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h304a8 8 0 0 0 8-8V88a8 8 0 0 0-8-8zm0 160H199a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h304a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8z"]},ce={prefix:"fal",iconName:"times",icon:[320,512,[],"f00d","M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"]},ue={prefix:"fal",iconName:"toolbox",icon:[512,512,[],"f552","M502.63 214.63l-45.25-45.26c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.47-21.53-48-48-48H176c-26.47 0-48 21.53-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V448c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V237.25c0-8.48-3.37-16.62-9.37-22.62zM160 80c0-8.83 7.19-16 16-16h160c8.81 0 16 7.17 16 16v80H160V80zm320 368H32v-96h96v24c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-24h192v24c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-24h96v96zm-96-128v-24c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v24H160v-24c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v24H32v-82.75L77.25 192h357.49L480 237.25V320h-96z"]},de={prefix:"fal",iconName:"tools",icon:[512,512,[],"f7d9","M502.6 389.5L378.2 265c-15.6-15.6-36.1-23.4-56.6-23.4-15.4 0-30.8 4.4-44.1 13.3L192 169.4V96L64 0 0 64l96 128h73.4l85.5 85.5c-20.6 31.1-17.2 73.3 10.2 100.7l124.5 124.5c6.2 6.2 14.4 9.4 22.6 9.4 8.2 0 16.4-3.1 22.6-9.4l67.9-67.9c12.4-12.6 12.4-32.8-.1-45.3zM160 158.1v1.9h-48L42.3 67 67 42.3l93 69.7v46.1zM412.1 480L287.7 355.5c-9.1-9.1-14.1-21.1-14.1-33.9 0-12.8 5-24.9 14.1-33.9 9.1-9.1 21.1-14.1 33.9-14.1 12.8 0 24.9 5 33.9 14.1L480 412.1 412.1 480zM64 432c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zM276.8 66.9C299.5 44.2 329.4 32 360.6 32c6.9 0 13.8.6 20.7 1.8L312 103.2l13.8 83 83.1 13.8 69.3-69.3c6.7 38.2-5.3 76.8-33.1 104.5-8.9 8.9-19.1 16-30 21.5l23.6 23.6c10.4-6.2 20.2-13.6 29-22.5 37.8-37.8 52.7-91.4 39.7-143.3-2.3-9.5-9.7-17-19.1-19.6-9.5-2.6-19.7 0-26.7 7l-63.9 63.9-44.2-7.4-7.4-44.2L410 50.3c6.9-6.9 9.6-17.1 7-26.5-2.6-9.5-10.2-16.8-19.7-19.2C345.6-8.3 292 6.5 254.1 44.3c-12.9 12.9-22.9 27.9-30.1 44v67.8l22.1 22.1c-9.6-40.4 1.6-82.2 30.7-111.3zM107 467.1c-16.6 16.6-45.6 16.6-62.2 0-17.1-17.1-17.1-45.1 0-62.2l146.1-146.1-22.6-22.6L22.2 382.3c-29.6 29.6-29.6 77.8 0 107.5C36.5 504.1 55.6 512 75.9 512c20.3 0 39.4-7.9 53.7-22.3L231.4 388c-6.7-9.2-11.8-19.3-15.5-29.8L107 467.1z"]},he={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M440 64H336l-33.6-44.8A48 48 0 0 0 264 0h-80a48 48 0 0 0-38.4 19.2L112 64H8a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h18.9l33.2 372.3a48 48 0 0 0 47.8 43.7h232.2a48 48 0 0 0 47.8-43.7L421.1 96H440a8 8 0 0 0 8-8V72a8 8 0 0 0-8-8zM171.2 38.4A16.1 16.1 0 0 1 184 32h80a16.1 16.1 0 0 1 12.8 6.4L296 64H152zm184.8 427a15.91 15.91 0 0 1-15.9 14.6H107.9A15.91 15.91 0 0 1 92 465.4L59 96h330z"]},pe={prefix:"fal",iconName:"trophy",icon:[576,512,[],"f091","M448 64V12c0-6.6-5.4-12-12-12H140c-6.6 0-12 5.4-12 12v52H12C5.4 64 0 69.4 0 76v61.6C0 199.7 68.1 272 160.7 285.7c29.4 60.7 73.7 90.3 111.3 96.9V480h-86c-14.4 0-26 11.7-26 26.1 0 3.3 2.7 5.9 6 5.9h244c3.3 0 6-2.6 6-5.9 0-14.4-11.6-26.1-26-26.1h-86v-97.4c37.7-6.6 81.9-36.2 111.3-96.9C508 272 576 199.6 576 137.6V76c0-6.6-5.4-12-12-12H448zM32 137.6V96h96v24c0 51.8 7 94.9 18.5 130.2C77.9 232.5 32 178 32 137.6zM288 352c-72 0-128-104-128-232V32h256v88c0 128-56 232-128 232zm256-214.4c0 40.4-46 94.9-114.5 112.6C441 214.9 448 171.8 448 120V96h96v41.6z"]},fe={prefix:"fal",iconName:"user",icon:[448,512,[],"f007","M313.6 288c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zM416 464c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16v-41.6C32 365.9 77.9 320 134.4 320c19.6 0 39.1 16 89.6 16 50.4 0 70-16 89.6-16 56.5 0 102.4 45.9 102.4 102.4V464zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm0-224c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"]},ge={prefix:"fal",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm0-224c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96zm272 192c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm0 256c-61.8 0-112-50.2-112-112s50.2-112 112-112 112 50.2 112 112-50.2 112-112 112zm-135.8 0H48c-8.8 0-16-7.2-16-16v-41.6C32 365.9 77.9 320 134.4 320c19.6 0 39.1 16 89.6 16 50.4 0 70-16 89.6-16 4.4 0 8.6.8 12.9 1.3 2.9-10.7 6.9-21 11.7-30.8-8-1.5-16.1-2.5-24.5-2.5-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h346.9c-12.9-9.1-24.7-19.8-34.7-32zm190.1-128H512v-54.3c0-5.3-4.4-9.7-9.7-9.7h-12.6c-5.3 0-9.7 4.4-9.7 9.7v76.6c0 5.3 4.4 9.7 9.7 9.7h60.6c5.3 0 9.7-4.4 9.7-9.7v-12.6c0-5.3-4.4-9.7-9.7-9.7z"]},me={prefix:"fal",iconName:"user-hard-hat",icon:[448,512,[],"f82c","M313.6 352c-28.72 0-42.45 16-89.6 16s-60.88-16-89.56-16A134.4 134.4 0 0 0 0 486.4 25.6 25.6 0 0 0 25.6 512h396.8a25.6 25.6 0 0 0 25.6-25.6A134.4 134.4 0 0 0 313.6 352zM32.2 480a102.54 102.54 0 0 1 102.24-96c19.82 0 38.92 16 89.56 16 51 0 69.6-16 89.6-16a102.53 102.53 0 0 1 102.2 96zM88 160h12.66A124.32 124.32 0 0 0 96 192a128 128 0 0 0 256 0 124.32 124.32 0 0 0-4.66-32H360a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8h-8c0-51.52-35-94.46-82.33-107.52A31.89 31.89 0 0 0 240 0h-32a31.89 31.89 0 0 0-29.67 20.48C131 33.54 96 76.48 96 128h-8a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zM272 54.91A79.94 79.94 0 0 1 320 128h-48zM208 32h32v96h-32zm-80 96a79.94 79.94 0 0 1 48-73.09V128zm6 32h180a92 92 0 0 1 6 32 96 96 0 0 1-192 0 92 92 0 0 1 6-32z"]},ve={prefix:"fal",iconName:"user-tie",icon:[448,512,[],"f508","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm0-224c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96zm91.9 272.2L276.2 442l-33.9-101.7 25-25c10.1-10.1 2.9-27.3-11.3-27.3h-64c-14.3 0-21.4 17.2-11.3 27.3l25 25L171.8 442l-39.7-137.7C58.9 305.5 0 365 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-73.4-58.9-132.9-132.1-134.2zM48 480c-8.8 0-16-7.2-16-16v-25.6c0-47.2 32.8-87.5 76.9-98.9L149.5 480H48zm144.9 0l31.1-93.4 31.1 93.4h-62.2zM416 464c0 8.8-7.2 16-16 16H298.5L339 339.5c44.1 11.4 76.9 51.7 76.9 98.9V464z"]},ye={prefix:"fal",iconName:"utensils",icon:[480,512,[],"f2e7","M344.1 470.3l14.2-164.8c-42.1-33.1-70.4-77-70.4-129.5C288 81.7 376.1 0 440 0c22.1 0 40 17.3 40 38.5v435c0 21.2-17.9 38.5-40 38.5h-56c-22.8 0-41.8-18.7-39.9-41.7zM320 176c0 51 32.2 85.5 71.8 114.5L376 473.1c-.3 3.7 3.4 6.9 8 6.9h56c4.3 0 8-3 8-6.5v-435c0-3.5-3.7-6.5-8-6.5-44.6 0-120 65.8-120 144zM240.7 33.8C237.4 14.3 219.5 0 194.6 0c-11.9 0-24.1 3.4-33.3 11.2C152.9 4.1 141.3 0 128 0s-24.9 4.1-33.3 11.2C85.5 3.4 73.3 0 61.4 0 36.2 0 18.6 14.5 15.3 33.8 13.5 43.2 0 118.4 0 149.9c0 50.9 26.7 91.6 71 110.7L59.6 471.4C58.4 493.4 75.9 512 98 512h60c22 0 39.6-18.5 38.4-40.6L185 260.6c44.2-19.1 71-59.8 71-110.7 0-31.5-13.5-106.7-15.3-116.1zM152.3 240l12.2 233.1c.2 3.7-2.7 6.9-6.5 6.9H98c-3.7 0-6.7-3.1-6.5-6.9L103.7 240C61.3 231.2 32 197 32 149.9c0-29.7 14.8-110.6 14.8-110.6 1.6-9.9 28.3-9.7 29.5.2V162c.9 11.5 28.2 11.7 29.5.2l7.4-122.9c1.6-9.7 27.9-9.7 29.5 0l7.4 122.9c1.3 11.4 28.6 11.2 29.5-.2V39.6c1.2-9.9 27.9-10.1 29.5-.2 0 0 14.8 80.9 14.8 110.6.1 46.8-29 81.2-71.6 90z"]}},function(e,t,n){"use strict";n.d(t,"a",function(){return re}),n.d(t,"b",function(){return oe}),n.d(t,"c",function(){return Q});var r=n(0),o=n(91),i=n.n(o),a=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||c,n.isMergeableObject=n.isMergeableObject||a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=l(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=u(e[o],t[o],n):r[o]=l(t[o],n)}),r}(e,t,n):l(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return u(e,n,t)},{})};var d=u,h=n(160),p=n(100),f=4;var g=function(e){return Object(p.a)(e,f)},m=n(70),v=n(130),y=n(31),b=n(62),C=n(192),w=n(65),x=n(68);var _=function(e){return Object(y.a)(e)?Object(m.a)(e,w.a):Object(b.a)(e)?[e]:Object(v.a)(Object(C.a)(Object(x.a)(e)))},S=n(57),M=n(218),E=n(105),O=n.n(E),A=1,T=4;var k=function(e){return Object(p.a)(e,A|T)};function D(){return(D=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var R=function(e){return Array.isArray(e)&&0===e.length},F=function(e){return"function"===typeof e},I=function(e){return null!==e&&"object"===typeof e},z=function(e){return String(Math.floor(Number(e)))===e},B=function(e){return"[object String]"===Object.prototype.toString.call(e)},j=function(e){return 0===r.Children.count(e)},V=function(e){return I(e)&&F(e.then)};function W(e,t,n,r){void 0===r&&(r=0);for(var o=_(t);e&&r=0?[]:{}}}return(0===i?e:o)[a[i]]===n?e:(void 0===n?delete o[a[i]]:o[a[i]]=n,0===i&&void 0===n&&delete r[a[i]],r)}function G(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var o=0,i=Object.keys(e);o=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;W(t,a.path)||(t=H(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),T=Object(r.useCallback)(function(e,t){return new Promise(function(n){return n(x.current[e].validate(t))})},[]),k=Object(r.useCallback)(function(e){var t=Object.keys(x.current).filter(function(e){return F(x.current[e].validate)}),n=t.length>0?t.map(function(t){return T(t,W(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n?e:(n&&(e=H(e,t[r],n)),e)},{})})},[T]),P=Object(r.useCallback)(function(e){return Promise.all([k(e),m.validationSchema?A(e):{},m.validate?O(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return d.all([t,n,r],{arrayMerge:ee})})},[m.validate,m.validationSchema,k,O,A]),L=ne(function(e){return void 0===e&&(e=S.values),Object(M.unstable_runWithPriority)(M.LowPriority,function(){return P(e).then(function(e){return w.current&&E({type:"SET_ERRORS",payload:e}),e}).catch(function(e){0})})}),R=ne(function(e){return void 0===e&&(e=S.values),E({type:"SET_ISVALIDATING",payload:!0}),P(e).then(function(e){return w.current&&(E({type:"SET_ISVALIDATING",payload:!1}),i()(S.errors,e)||E({type:"SET_ERRORS",payload:e})),e})});Object(r.useEffect)(function(){l&&!0===w.current&&L(m.initialValues)},[m.initialValues,l,L]);var z=Object(r.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:y.current?y.current:m.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:m.initialTouched||{},o=e&&e.status?e.status:C.current?C.current:m.initialStatus;v.current=t,y.current=n,b.current=r,C.current=o,E({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:o,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})},[m.initialErrors,m.initialStatus,m.initialTouched]);Object(r.useEffect)(function(){p&&!0===w.current&&!i()(v.current,m.initialValues)&&(v.current=m.initialValues,z())},[p,m.initialValues,z]),Object(r.useEffect)(function(){p&&!0===w.current&&!i()(y.current,m.initialErrors)&&(y.current=m.initialErrors||$,E({type:"SET_ERRORS",payload:m.initialErrors||$}))},[p,m.initialErrors]),Object(r.useEffect)(function(){p&&!0===w.current&&!i()(b.current,m.initialTouched)&&(b.current=m.initialTouched||Z,E({type:"SET_TOUCHED",payload:m.initialTouched||Z}))},[p,m.initialTouched]),Object(r.useEffect)(function(){p&&!0===w.current&&!i()(C.current,m.initialStatus)&&(C.current=m.initialStatus,E({type:"SET_STATUS",payload:m.initialStatus}))},[p,m.initialStatus,m.initialTouched]);var j=ne(function(e){if(F(x.current[e].validate)){var t=W(S.values,e),n=x.current[e].validate(t);return V(n)?(E({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),E({type:"SET_ISVALIDATING",payload:!1})})):(E({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()}),G=Object(r.useCallback)(function(e,t){var n=t.validate;x.current[e]={validate:n}},[]),U=Object(r.useCallback)(function(e){delete x.current[e]},[]),q=ne(function(e,t){return E({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?L(S.values):Promise.resolve()}),Y=Object(r.useCallback)(function(e){E({type:"SET_ERRORS",payload:e})},[]),X=ne(function(e,t){return E({type:"SET_VALUES",payload:e}),(void 0===t?n:t)?L(e):Promise.resolve()}),J=Object(r.useCallback)(function(e,t){E({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),Q=ne(function(e,t,r){return E({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?L(H(S.values,e,t)):Promise.resolve()}),te=Object(r.useCallback)(function(e,t){var n,r=t,o=e;if(!B(e)){e.persist&&e.persist();var i=e.target?e.target:e.currentTarget,a=i.type,s=i.name,l=i.id,c=i.value,u=i.checked,d=(i.outerHTML,i.options),h=i.multiple;r=t||(s||l),o=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[];if(Array.isArray(e))r=e;else if("true"==n||"false"==n)return!!t;var o=e.indexOf(n),i=o>=0;if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(W(S.values,r),u,c):h?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):c}r&&Q(r,o)},[Q,S.values]),re=Object(r.useCallback)(function(e){if(B(e))return function(t){return te(t,e)};te(e)},[te]),oe=ne(function(e,t,n){return void 0===t&&(t=!0),E({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?L(S.values):Promise.resolve()}),ie=Object(r.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,o=n.id,i=(n.outerHTML,t||(r||o));oe(i,!0)},[oe]),ae=Object(r.useCallback)(function(e){if(B(e))return function(t){return ie(t,e)};ie(e)},[ie]),se=Object(r.useCallback)(function(e){F(e)?E({type:"SET_FORMIK_STATE",payload:e}):E({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),le=Object(r.useCallback)(function(e){E({type:"SET_STATUS",payload:e})},[]),ce=Object(r.useCallback)(function(e){E({type:"SET_ISSUBMITTING",payload:e})},[]),ue={resetForm:z,validateForm:R,validateField:j,setErrors:Y,setFieldError:J,setFieldTouched:oe,setFieldValue:Q,setStatus:le,setSubmitting:ce,setTouched:q,setValues:X,setFormikState:se},de=ne(function(){return f(S.values,ue)}),he=ne(function(){return E({type:"SUBMIT_ATTEMPT"}),R().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=de()))return}catch(r){throw r}return Promise.resolve(n).then(function(){w.current&&E({type:"SUBMIT_SUCCESS"})}).catch(function(e){if(w.current)throw E({type:"SUBMIT_FAILURE"}),e})}if(w.current&&(E({type:"SUBMIT_FAILURE"}),t))throw e})}),pe=ne(function(e){e&&e.preventDefault&&F(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&F(e.stopPropagation)&&e.stopPropagation(),he().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),fe=ne(function(e){if(e&&e.preventDefault&&F(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&F(e.stopPropagation)&&e.stopPropagation(),m.onReset){var t=m.onReset(S.values,ue);V(t)?t.then(z):z()}else z()}),ge=Object(r.useCallback)(function(e){return{value:W(S.values,e),error:W(S.errors,e),touched:!!W(S.touched,e),initialValue:W(v.current,e),initialTouched:!!W(b.current,e),initialError:W(y.current,e)}},[S.errors,S.touched,S.values]),me=Object(r.useCallback)(function(e){return{setValue:function(t){return Q(e,t)},setTouched:function(t){return oe(e,t)},setError:function(t){return J(e,t)}}},[Q,oe,J]),ve=Object(r.useCallback)(function(e){var t=I(e),n=t?e.name:e,r=W(S.values,n),o={name:n,value:r,onChange:re,onBlur:ae};if(t){var i=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===i?void 0===a?o.checked=!!r:(o.checked=!(!Array.isArray(r)||!~r.indexOf(a)),o.value=a):"radio"===i?(o.checked=r===a,o.value=a):"select"===s&&l&&(o.value=o.value||[],o.multiple=!0)}return o},[ae,re,S.values]),ye=Object(r.useMemo)(function(){return!i()(v.current,S.values)},[v.current,S.values]),be=Object(r.useMemo)(function(){return"undefined"!==typeof c?ye?S.errors&&0===Object.keys(S.errors).length:!1!==c&&F(c)?c(m):c:S.errors&&0===Object.keys(S.errors).length},[c,ye,S.errors,m]);return D({},S,{initialValues:v.current,initialErrors:y.current,initialTouched:b.current,initialStatus:C.current,handleBlur:ae,handleChange:re,handleReset:fe,handleSubmit:pe,resetForm:z,setErrors:Y,setFormikState:se,setFieldTouched:oe,setFieldValue:Q,setFieldError:J,setStatus:le,setSubmitting:ce,setTouched:q,setValues:X,submitForm:he,validateForm:R,validateField:j,isValid:be,dirty:ye,unregisterField:U,registerField:G,getFieldProps:ve,getFieldMeta:ge,getFieldHelpers:me,validateOnBlur:a,validateOnChange:n,validateOnMount:l})}function Q(e){var t=J(e),n=e.component,o=e.children,i=e.render;return Object(r.useEffect)(function(){0},[]),Object(r.createElement)(q,{value:t},n?Object(r.createElement)(n,t):i?i(t):o?F(o)?o(t):j(o)?null:r.Children.only(o):null)}function ee(e,t,n){var r=e.slice();return t.forEach(function(t,o){if("undefined"===typeof r[o]){var i=!1!==n.clone&&n.isMergeableObject(t);r[o]=i?d(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[o]=d(e[o],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var te="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;function ne(e){var t=Object(r.useRef)(e);return te(function(){t.current=e}),Object(r.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;re?t:e},0);return Array.from(D({},e,{length:t+1}))}return[]},de=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var o=n.props,i=o.name;(0,o.formik.setFormikState)(function(n){var o="function"===typeof r?r:e,a="function"===typeof t?t:e,s=H(n.values,i,e(W(n.values,i))),l=r?o(W(n.errors,i)):void 0,c=t?a(W(n.touched,i)):void 0;return R(l)&&(l=void 0),R(c)&&(c=void 0),D({},n,{values:s,errors:r?H(n.errors,i,l):n.errors,touched:t?H(n.touched,i,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(ue(t),[k(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return se(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return ae(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return le(n,e,t)},function(t){return le(t,e,null)},function(t){return le(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return ce(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(L(n)),n.pop=n.pop.bind(L(n)),n}P(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){!i()(W(e.formik.values,e.name),W(this.props.formik.values,this.props.name))&&this.props.formik.validateOnChange&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?ue(n):[];return t||(t=r[e]),F(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,o=t.render,i=t.children,a=t.name,s=t.formik,l=(s.validate,s.validationSchema,D({},e,{form:N(s,["validate","validationSchema"]),name:a}));return n?Object(r.createElement)(n,l):o?o(l):i?"function"===typeof i?i(l):j(i)?null:r.Children.only(i):null},t}(r.Component);de.defaultProps={validateOnChange:!0};r.Component,r.Component},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(121);function o(e){for(var t=1;t>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},W={};function H(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(W[e]=o),t&&(W[t[0]]=function(){return z(o.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=U(t,e.localeData()),V[t]=V[t]||function(e){var t,n,r,o=e.match(B);for(t=0,n=o.length;t=0&&j.test(e);)e=e.replace(j,r),j.lastIndex=0,n-=1;return e}var q=/\d/,Y=/\d\d/,X=/\d{3}/,K=/\d{4}/,$=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,te=/\d{1,4}/,ne=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=T(t)?t:function(e,r){return e&&n?n:t}}function ue(e,t){return u(le,e)?le[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Oe,Ae=Te("FullYear",!0);function Te(e,t){return function(n){return null!=n?(De(this,e,n),r.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function De(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function We(e,t,n){var r=7+t-n,o=(7+Ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function He(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=We(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Me(i=e-1)+c:c>Me(e)?(i=e+1,a=c-Me(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ue(o,t,n)):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ue(e,t,n){var r=We(e,t,n),o=We(e+1,t,n);return(Me(e)-r+o)/7}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),I("week",5),I("isoWeek",5),ce("w",Z),ce("ww",Z,Y),ce("W",Z),ce("WW",Z,Y),fe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),I("day",11),I("weekday",11),I("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:p(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=se,$e=se,Ze=se;function Je(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=de(s[t]),l[t]=de(l[t]),c[t]=de(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tt(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Qe),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+Qe.apply(this)+z(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Qe.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),et("a",!0),et("A",!1),N("hour","h"),I("hour",13),ce("a",tt),ce("A",tt),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,Y),ce("hh",Z,Y),ce("kk",Z,Y),ce("hmm",J),ce("hmmss",Q),ce("Hmm",J),ce("Hmmss",Q),pe(["H","HH"],be),pe(["k","kk"],function(e,t,n){var r=x(e);t[be]=24===r?0:r}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[be]=x(e),p(n).bigHour=!0}),pe("hmm",function(e,t,n){var r=e.length-2;t[be]=x(e.substr(0,r)),t[Ce]=x(e.substr(r)),p(n).bigHour=!0}),pe("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[be]=x(e.substr(0,r)),t[Ce]=x(e.substr(r,2)),t[we]=x(e.substr(o)),p(n).bigHour=!0}),pe("Hmm",function(e,t,n){var r=e.length-2;t[be]=x(e.substr(0,r)),t[Ce]=x(e.substr(r))}),pe("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[be]=x(e.substr(0,r)),t[Ce]=x(e.substr(r,2)),t[we]=x(e.substr(o))});var nt,rt=Te("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Le,monthsShort:Re,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Xe,weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},it={},at={};function st(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var n=null;if(!it[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=nt._abbr,!function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),ct(n)}catch(r){}return it[t]}function ct(e,t){var n;return e&&((n=a(t)?dt(e):ut(e,t))?nt=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ut(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=it[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])r=it[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return at[t.parentLocale]||(at[t.parentLocale]=[]),at[t.parentLocale].push({name:e,config:t}),null;r=n._config}return it[e]=new D(k(r,t)),at[e]&&at[e].forEach(function(e){ut(e.name,e.config)}),ct(e),it[e]}return delete it[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!o(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=lt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&_(o,n,!0)>=t-1)break;t--}i++}return nt}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ve]<0||n[ve]>11?ve:n[ye]<1||n[ye]>Pe(n[me],n[ve])?ye:n[be]<0||n[be]>24||24===n[be]&&(0!==n[Ce]||0!==n[we]||0!==n[xe])?be:n[Ce]<0||n[Ce]>59?Ce:n[we]<0||n[we]>59?we:n[xe]<0||n[xe]>999?xe:-1,p(e)._overflowDayOfYear&&(tye)&&(t=ye),p(e)._overflowWeeks&&-1===t&&(t=_e),p(e)._overflowWeekday&&-1===t&&(t=Se),p(e).overflow=t),e}function pt(e,t,n){return null!=e?e:null!=t?t:n}function ft(e){var t,n,o,i,a,s=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[ve]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=pt(t.GG,e._a[me],Ge(Tt(),1,4).year),r=pt(t.W,1),((o=pt(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=Ge(Tt(),i,a);n=pt(t.gg,e._a[me],c.year),r=pt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Ue(n,i,a)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=He(n,r,o,i,a),e._a[me]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=pt(e._a[me],o[me]),(e._dayOfYear>Me(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ve(a,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[Ce]&&0===e._a[we]&&0===e._a[xe]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ve:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ct=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,o,i,a,s=e._i,l=gt.exec(s)||mt.exec(s);if(l){for(p(e).iso=!0,t=0,n=yt.length;t0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),W[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=l-c,s.length>0&&p(e).unusedInput.push(s),e._a[be]<=12&&!0===p(e).bigHour&&e._a[be]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),ft(e),ht(e)}else Mt(e);else wt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||dt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new b(ht(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:g()});function Pt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,o){var i=He(e,t,n,r,o),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),I("weekYear",1),I("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",Z,Y),ce("gg",Z,Y),ce("GGGG",te,K),ce("gggg",te,K),ce("GGGGG",ne,$),ce("ggggg",ne,$),fe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),fe(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),H("Q",0,"Qo","quarter"),N("quarter","Q"),I("quarter",7),ce("Q",q),pe("Q",function(e,t){t[ve]=3*(x(e)-1)}),H("D",["DD",2],"Do","date"),N("date","D"),I("date",9),ce("D",Z),ce("DD",Z,Y),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],ye),pe("Do",function(e,t){t[ye]=x(e.match(Z)[0])});var on=Te("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),I("dayOfYear",4),ce("DDD",ee),ce("DDDD",X),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),H("m",["mm",2],0,"minute"),N("minute","m"),I("minute",14),ce("m",Z),ce("mm",Z,Y),pe(["m","mm"],Ce);var an=Te("Minutes",!1);H("s",["ss",2],0,"second"),N("second","s"),I("second",15),ce("s",Z),ce("ss",Z,Y),pe(["s","ss"],we);var sn,ln=Te("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),N("millisecond","ms"),I("millisecond",16),ce("S",ee,q),ce("SS",ee,Y),ce("SSS",ee,X),sn="SSSS";sn.length<=9;sn+="S")ce(sn,re);function cn(e,t){t[xe]=x(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,cn);var un=Te("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var dn=b.prototype;function hn(e){return e}dn.add=$t,dn.calendar=function(e,t){var n=e||Tt(),o=jt(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(T(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Tt(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=jt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=L(t)){case"year":i=Jt(this,r)/12;break;case"month":i=Jt(this,r);break;case"quarter":i=Jt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:w(i)},dn.endOf=function(e){return void 0===(e=L(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Tt(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Tt(),e)},dn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Tt(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Tt(),e)},dn.get=function(e){return T(this[e=L(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=C(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=Ae,dn.isLeapYear=function(){return Ee(this.year())},dn.weekYear=function(e){return rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Ie,dn.daysInMonth=function(){return Pe(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},dn.date=on,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=rt,dn.minute=dn.minutes=an,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=un,dn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=Bt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Vt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Ut(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Vt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=Bt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60===0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Wt,dn.isUTC=Wt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=M("dates accessor is deprecated. Use date instead.",on),dn.months=M("months accessor is deprecated. Use month instead",Ie),dn.years=M("years accessor is deprecated. Use year instead",Ae),dn.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),dn.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Ot(e))._a){var t=e._isUTC?h(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var pn=D.prototype;function fn(e,t,n,r){var o=dt(),i=h().set(r,t);return o[n](i,e)}function gn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=fn(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"===typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o,i=dt(),a=e?i._week.dow:0;if(null!=n)return fn(t,(n+a)%7,r,"day");var l=[];for(o=0;o<7;o++)l[o]=fn(t,(o+a)%7,r,"day");return l}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=hn,pn.postformat=hn,pn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return T(o)?o(e,t,n,r):o.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},pn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Oe.call(this._shortMonthsParse,a))?o:-1!==(o=Oe.call(this._longMonthsParse,a))?o:null:-1!==(o=Oe.call(this._longMonthsParse,a))?o:-1!==(o=Oe.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},pn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ze),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},pn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Oe.call(this._minWeekdaysParse,a))?o:-1!==(o=Oe.call(this._weekdaysParse,a))?o:-1!==(o=Oe.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=M("moment.lang is deprecated. Use moment.locale instead.",ct),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",dt);var vn=Math.abs;function yn(e,t,n,r){var o=Ut(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var _n=xn("ms"),Sn=xn("s"),Mn=xn("m"),En=xn("h"),On=xn("d"),An=xn("w"),Tn=xn("M"),kn=xn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pn=Dn("milliseconds"),Nn=Dn("seconds"),Ln=Dn("minutes"),Rn=Dn("hours"),Fn=Dn("days"),In=Dn("months"),zn=Dn("years"),Bn=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11},Vn=Math.abs;function Wn(e){return(e>0)-(e<0)||+e}function Hn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Vn(this._milliseconds)/1e3,r=Vn(this._days),o=Vn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var i=w(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",p=Wn(this._months)!==Wn(d)?"-":"",f=Wn(this._days)!==Wn(d)?"-":"",g=Wn(this._milliseconds)!==Wn(d)?"-":"";return h+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?f+s+"D":"")+(l||c||u?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(u?g+u+"S":"")}var Gn=Lt.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Gn.add=function(e,t){return yn(this,e,t,1)},Gn.subtract=function(e,t){return yn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=L(e))||"year"===e)return t=this._days+r/864e5,n=this._months+Cn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(wn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=_n,Gn.asSeconds=Sn,Gn.asMinutes=Mn,Gn.asHours=En,Gn.asDays=On,Gn.asWeeks=An,Gn.asMonths=Tn,Gn.asYears=kn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*bn(wn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=w(i/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,a+=w(n/24),o=w(Cn(a)),s+=o,a-=bn(wn(o)),r=w(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Gn.clone=function(){return Ut(this)},Gn.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Pn,Gn.seconds=Nn,Gn.minutes=Ln,Gn.hours=Rn,Gn.days=Fn,Gn.weeks=function(){return w(this.days()/7)},Gn.months=In,Gn.years=zn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ut(e).abs(),o=Bn(r.as("s")),i=Bn(r.as("m")),a=Bn(r.as("h")),s=Bn(r.as("d")),l=Bn(r.as("M")),c=Bn(r.as("y")),u=o<=jn.ss&&["s",o]||o0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Hn,Gn.toString=Hn,Gn.toJSON=Hn,Gn.locale=Qt,Gn.localeData=tn,Gn.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),Gn.lang=en,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),pe("x",function(e,t,n){n._d=new Date(x(e))}),r.version="2.23.0",t=Tt,r.fn=dn,r.min=function(){return Pt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Pt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Tt(1e3*e)},r.months=function(e,t){return gn(e,t,"months")},r.isDate=l,r.locale=ct,r.invalid=g,r.duration=Ut,r.isMoment=C,r.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},r.parseZone=function(){return Tt.apply(null,arguments).parseZone()},r.localeData=dt,r.isDuration=Rt,r.monthsShort=function(e,t){return gn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},r.defineLocale=ut,r.updateLocale=function(e,t){if(null!=t){var n,r,o=ot;null!=(r=lt(e))&&(o=r._config),t=k(o,t),(n=new D(t)).parentLocale=it[e],it[e]=n,ct(e)}else null!=it[e]&&(null!=it[e].parentLocale?it[e]=it[e].parentLocale:null!=it[e]&&delete it[e]);return it[e]},r.locales=function(){return E(it)},r.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},r.normalizeUnits=L,r.relativeTimeRounding=function(e){return void 0===e?Bn:"function"===typeof e&&(Bn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=dn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(116)(e))},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"===typeof e||"number"===typeof e)o+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t=0;h--){var p=o[h];"."===p?l(o,h):".."===p?(l(o,h),d++):d&&(l(o,h),d--)}if(!c)for(;d--;d)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var d=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"===typeof t||"object"===typeof n){var r=u(t),o=u(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1},h=n(51);function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(a.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=c(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r=0;h--){var p=o[h];"."===p?c(o,h):".."===p?(c(o,h),d++):d&&(c(o,h),d--)}if(!s)for(;d--;d)o.unshift("..");!s||""===o[0]||o[0]&&l(o[0])||o.unshift("");var f=o.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};var d=n(51);function h(e){return"/"===e.charAt(0)?e:"/"+e}function p(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function g(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function v(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(s.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=u(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r0,o.isLikelyNode="undefined"!==typeof e&&"undefined"===typeof window,o.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],o.DPI=96,o.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",o.commaWsp="(?:\\s+,?\\s*|,\\s*)",o.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,o.reNonWord=/[ \n\.,;!\?\-]/,o.fontPaths={},o.iMatrix=[1,0,0,1,0,0],o.svgNS="http://www.w3.org/2000/svg",o.perfLimitSizeTotal=2097152,o.maxCacheSideLimit=4096,o.minCacheSideLimit=256,o.charWidthsCache={},o.textureSize=2048,o.disableStyleCopyPaste=!1,o.enableGLFiltering=!0,o.devicePixelRatio=o.window.devicePixelRatio||o.window.webkitDevicePixelRatio||o.window.mozDevicePixelRatio||1,o.browserShadowBlurConstant=1,o.arcToSegmentsCache={},o.boundsOfCurveCache={},o.cachesBoundsOfCurve=!0,o.forceGLPutImageData=!1,o.initFilterBackend=function(){return o.enableGLFiltering&&o.isWebglSupported&&o.isWebglSupported(o.textureSize)?(console.log("max texture size: "+o.maxTextureSize),new o.WebglFilterBackend({tileSize:o.textureSize})):o.Canvas2dFilterBackend?new o.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=o),function(){function e(e,t){if(this.__eventListeners[e]){var n=this.__eventListeners[e];t?n[n.indexOf(t)]=!1:o.util.array.fill(n,!1)}}o.Observable={fire:function(e,t){if(!this.__eventListeners)return this;var n=this.__eventListeners[e];if(!n)return this;for(var r=0,o=n.length;r-1},complexity:function(){return this._objects.reduce(function(e,t){return e+=t.complexity?t.complexity():0},0)}},o.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof o.Gradient||this.set(t,new o.Gradient(e))},_initPattern:function(e,t,n){!e||!e.source||e instanceof o.Pattern?n&&n():this.set(t,new o.Pattern(e,n))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,n=Math.atan2,r=Math.pow,i=Math.PI/180,a=Math.PI/2;o.util={cos:function(e){if(0===e)return 1;switch(e<0&&(e=-e),e/a){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=1;switch(e<0&&(t=-1),e/a){case 1:return t;case 2:return 0;case 3:return-t}return Math.sin(e)},removeFromArray:function(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*i},radiansToDegrees:function(e){return e/i},rotatePoint:function(e,t,n){e.subtractEquals(t);var r=o.util.rotateVector(e,n);return new o.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var n=o.util.sin(t),r=o.util.cos(t);return{x:e.x*r-e.y*n,y:e.x*n+e.y*r}},transformPoint:function(e,t,n){return n?new o.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new o.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var n=0;nr;)(r+=s[p++%h])>u&&(r=u),e[f?"lineTo":"moveTo"](r,0),f=!f;e.restore()},createCanvasElement:function(){return o.document.createElement("canvas")},copyCanvasElement:function(e){var t=o.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,n){return e.toDataURL("image/"+t,n)},createImage:function(){return o.document.createElement("img")},multiplyTransformMatrices:function(e,t,n){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var o=n(e[1],e[0]),a=r(e[0],2)+r(e[1],2),s=t(a),l=(e[0]*e[3]-e[2]*e[1])/s,c=n(e[0]*e[2]+e[1]*e[3],a);return{angle:o/i,scaleX:s,scaleY:l,skewX:c/i,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return o.iMatrix.concat();var t=o.util.degreesToRadians(e.angle),n=o.util.cos(t),r=o.util.sin(t);return[n,r,-r,n,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,n="undefined"===typeof e.scaleY?1:e.scaleY,r=[e.flipX?-t:t,0,0,e.flipY?-n:n,0,0],i=o.util.multiplyTransformMatrices,a=o.util.degreesToRadians;return e.skewX&&(r=i(r,[1,0,Math.tan(a(e.skewX)),1],!0)),e.skewY&&(r=i(r,[1,Math.tan(a(e.skewY)),0,1],!0)),r},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],n=o.util.multiplyTransformMatrices;return e.angle&&(t=n(t,o.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=n(t,o.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,n,r){r>0&&(t>r?t-=r:t=0,n>r?n-=r:n=0);var o,i=!0,a=e.getImageData(t,n,2*r||1,2*r||1),s=a.data.length;for(o=3;o0?k-=2*u:1===l&&k<0&&(k+=2*u);for(var D=Math.ceil(Math.abs(k/u*2)),P=[],N=k/D,L=8/3*Math.sin(N/4)*Math.sin(N/4)/Math.sin(N/2),R=T+N,F=0;F=o?i-o:2*Math.PI-(o-i)}function s(t,n,r,i,a,s,l,c){var u;if(o.cachesBoundsOfCurve&&(u=e.call(arguments),o.boundsOfCurveCache[u]))return o.boundsOfCurveCache[u];var d,h,p,f,g,m,v,y,b=Math.sqrt,C=Math.min,w=Math.max,x=Math.abs,_=[],S=[[],[]];h=6*t-12*r+6*a,d=-3*t+9*r-9*a+3*l,p=3*r-3*t;for(var M=0;M<2;++M)if(M>0&&(h=6*n-12*i+6*s,d=-3*n+9*i-9*s+3*c,p=3*i-3*n),x(d)<1e-12){if(x(h)<1e-12)continue;0<(f=-p/h)&&f<1&&_.push(f)}else(v=h*h-4*p*d)<0||(0<(g=(-h+(y=b(v)))/(2*d))&&g<1&&_.push(g),0<(m=(-h-y)/(2*d))&&m<1&&_.push(m));for(var E,O,A,T=_.length,k=T;T--;)E=(A=1-(f=_[T]))*A*A*t+3*A*A*f*r+3*A*f*f*a+f*f*f*l,S[0][T]=E,O=A*A*A*n+3*A*A*f*i+3*A*f*f*s+f*f*f*c,S[1][T]=O;S[0][k]=t,S[1][k]=n,S[0][k+1]=l,S[1][k+1]=c;var D=[{x:C.apply(null,S[0]),y:C.apply(null,S[1])},{x:w.apply(null,S[0]),y:w.apply(null,S[1])}];return o.cachesBoundsOfCurve&&(o.boundsOfCurveCache[u]=D),D}function l(e,t,n){for(var r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=i(n[6]-e,n[7]-t,r,o,s,l,a),u=0,d=c.length;u1e-4;)n=s(i),o=i,(r=c(l.x,l.y,n.x,n.y))+a>t?i-=u/=2:(l=n,i+=u,a+=r);return n.angle=d(o),n}function m(e){for(var t,n,r,o,i=0,a=e.length,s=0,l=0,g=0,m=0,v=[],y=0;y_)for(var M=1,E=m.length;M0&&r=t})}}}(),function(){function e(t,n,r){if(r)if(!o.isLikelyNode&&n instanceof Element)t=n;else if(n instanceof Array){t=[];for(var i=0,a=n.length;i57343)return e.charAt(t);if(55296<=n&&n<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var r=e.charCodeAt(t+1);if(56320>r||r>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var o=e.charCodeAt(t-1);if(55296>o||o>56319)throw"Low surrogate without preceding high surrogate";return!1}o.util.string={camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},escapeXml:function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")},graphemeSplit:function(t){var n,r=0,o=[];for(r=0;r-1?e.prototype[o]=function(e){return function(){var n=this.constructor.superclass;this.constructor.superclass=r;var o=t[e].apply(this,arguments);if(this.constructor.superclass=n,"initialize"!==e)return o}}(o):e.prototype[o]=t[o],n&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function i(){}function a(t){for(var n=null,r=this;r.constructor.superclass;){var o=r.constructor.superclass.prototype[t];if(r[t]!==o){n=o;break}r=r.constructor.superclass.prototype}return n?arguments.length>1?n.apply(this,e.call(arguments,1)):n.call(this):console.log("tried to callSuper "+t+", method not found in prototype chain",this)}o.util.createClass=function(){var n=null,o=e.call(arguments,0);function s(){this.initialize.apply(this,arguments)}"function"===typeof o[0]&&(n=o.shift()),s.superclass=n,s.subclasses=[],n&&(i.prototype=n.prototype,s.prototype=new i,n.subclasses.push(s));for(var l=0,c=o.length;l-1||"touch"===e.pointerType}}(),function(){var e=o.document.createElement("div"),t="string"===typeof e.style.opacity,n="string"===typeof e.style.filter,r=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,i=function(e){return e};t?i=function(e,t){return e.style.opacity=t,e}:n&&(i=function(e,t){var n=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(n.zoom=1),r.test(n.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",n.filter=n.filter.replace(r,t)):n.filter+=" alpha(opacity="+100*t+")",e}),o.util.setStyle=function(e,t){var n=e.style;if(!n)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?i(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var r in t)"opacity"===r?i(e,t[r]):n["float"===r||"cssFloat"===r?"undefined"===typeof n.styleFloat?"cssFloat":"styleFloat":r]=t[r];return e}}(),function(){var e=Array.prototype.slice;var t,n,r=function(t){return e.call(t,0)};try{t=r(o.document.childNodes)instanceof Array}catch(s){}function i(e,t){var n=o.document.createElement(e);for(var r in t)"class"===r?n.className=t[r]:"for"===r?n.htmlFor=t[r]:n.setAttribute(r,t[r]);return n}function a(e){for(var t=0,n=0,r=o.document.documentElement,i=o.document.body||{scrollLeft:0,scrollTop:0};e&&(e.parentNode||e.host)&&((e=e.parentNode||e.host)===o.document?(t=i.scrollLeft||r.scrollLeft||0,n=i.scrollTop||r.scrollTop||0):(t+=e.scrollLeft||0,n+=e.scrollTop||0),1!==e.nodeType||"fixed"!==e.style.position););return{left:t,top:n}}t||(r=function(e){for(var t=new Array(e.length),n=e.length;n--;)t[n]=e[n];return t}),n=o.document.defaultView&&o.document.defaultView.getComputedStyle?function(e,t){var n=o.document.defaultView.getComputedStyle(e,null);return n?n[t]:void 0}:function(e,t){var n=e.style[t];return!n&&e.currentStyle&&(n=e.currentStyle[t]),n},function(){var e=o.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";o.util.makeElementUnselectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=o.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e},o.util.makeElementSelectable=function(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}}(),o.util.setImageSmoothing=function(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t},o.util.getById=function(e){return"string"===typeof e?o.document.getElementById(e):e},o.util.toArray=r,o.util.addClass=function(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)},o.util.makeElement=i,o.util.wrapElement=function(e,t,n){return"string"===typeof t&&(t=i(t,n)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t},o.util.getScrollLeftTop=a,o.util.getElementOffset=function(e){var t,r,o=e&&e.ownerDocument,i={left:0,top:0},s={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!o)return s;for(var c in l)s[l[c]]+=parseInt(n(e,c),10)||0;return t=o.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(i=e.getBoundingClientRect()),r=a(e),{left:i.left+r.left-(t.clientLeft||0)+s.left,top:i.top+r.top-(t.clientTop||0)+s.top}},o.util.getNodeCanvas=function(e){var t=o.jsdomImplForWrapper(e);return t._canvas||t._image},o.util.cleanUpJsdomNode=function(e){if(o.isLikelyNode){var t=o.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}}(),function(){function e(){}o.util.request=function(t,n){n||(n={});var r=n.method?n.method.toUpperCase():"GET",i=n.onComplete||function(){},a=new o.window.XMLHttpRequest,s=n.body||n.parameters;return a.onreadystatechange=function(){4===a.readyState&&(i(a),a.onreadystatechange=e)},"GET"===r&&(s=null,"string"===typeof n.parameters&&(t=function(e,t){return e+(/\?/.test(e)?"&":"?")+t}(t,n.parameters))),a.open(r,t,!0),"POST"!==r&&"PUT"!==r||a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(s),a}}(),o.log=console.log,o.warn=console.warn,function(){function e(){return!1}function t(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}var n=o.window.requestAnimationFrame||o.window.webkitRequestAnimationFrame||o.window.mozRequestAnimationFrame||o.window.oRequestAnimationFrame||o.window.msRequestAnimationFrame||function(e){return o.window.setTimeout(e,1e3/60)},r=o.window.cancelAnimationFrame||o.window.clearTimeout;function i(){return n.apply(o.window,arguments)}o.util.animate=function(n){i(function(r){n||(n={});var o,a=r||+new Date,s=n.duration||500,l=a+s,c=n.onChange||e,u=n.abort||e,d=n.onComplete||e,h=n.easing||t,p="startValue"in n?n.startValue:0,f="endValue"in n?n.endValue:100,g=n.byValue||f-p;n.onStart&&n.onStart(),function e(t){var n=(o=t||+new Date)>l?s:o-a,r=n/s,m=h(n,p,g,s),v=Math.abs((m-p)/g);if(!u())return o>l?(c(f,1,1),void d(f,1,1)):(c(m,v,r),void i(e));d(f,1,1)}(a)})},o.util.requestAnimFrame=i,o.util.cancelAnimFrame=function(){return r.apply(o.window,arguments)}}(),function(){function e(e,t,n){var r="rgba("+parseInt(e[0]+n*(t[0]-e[0]),10)+","+parseInt(e[1]+n*(t[1]-e[1]),10)+","+parseInt(e[2]+n*(t[2]-e[2]),10);return r+=","+(e&&t?parseFloat(e[3]+n*(t[3]-e[3])):1),r+=")"}o.util.animateColor=function(t,n,r,i){var a=new o.Color(t).getSource(),s=new o.Color(n).getSource(),l=i.onComplete,c=i.onChange;i=i||{},o.util.animate(o.util.object.extend(i,{duration:r||500,startValue:a,endValue:s,byValue:s,easing:function(t,n,r,o){return e(n,r,i.colorEasing?i.colorEasing(t,o):1-Math.cos(t/o*(Math.PI/2)))},onComplete:function(t,n,r){if(l)return l(e(s,s,0),n,r)},onChange:function(t,n,r){if(c){if(Array.isArray(t))return c(e(t,t,0),n,r);c(t,n,r)}}}))}}(),function(){function e(e,t,n,r){return e-1&&u>-1&&u-1&&(n="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return n;if("imageSmoothing"===e)return"optimizeQuality"===n;s=l?n.map(i):i(n,o)}}else n="";return!l&&isNaN(s)?n:s}function d(e){return new RegExp("^("+e.join("|")+")\\b","i")}function h(e,t){var n,r,o,i,a=[];for(o=0,i=t.length;o1;)l.shift(),c=t.util.multiplyTransformMatrices(c,l[0]);return c}}();var m=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function v(e){if(t.svgViewBoxElementsRegEx.test(e.nodeName)){var n,r,o,a,s,l,c=e.getAttribute("viewBox"),u=1,d=1,h=e.getAttribute("width"),p=e.getAttribute("height"),f=e.getAttribute("x")||0,g=e.getAttribute("y")||0,v=e.getAttribute("preserveAspectRatio")||"",y=!c||!(c=c.match(m)),b=!h||!p||"100%"===h||"100%"===p,C=y&&b,w={},x="",_=0,S=0;if(w.width=0,w.height=0,w.toBeParsed=C,y&&(f||g)&&"#document"!==e.parentNode.nodeName&&(x=" translate("+i(f)+" "+i(g)+") ",s=(e.getAttribute("transform")||"")+x,e.setAttribute("transform",s),e.removeAttribute("x"),e.removeAttribute("y")),C)return w;if(y)return w.width=i(h),w.height=i(p),w;if(n=-parseFloat(c[1]),r=-parseFloat(c[2]),o=parseFloat(c[3]),a=parseFloat(c[4]),w.minX=n,w.minY=r,w.viewBoxWidth=o,w.viewBoxHeight=a,b?(w.width=o,w.height=a):(w.width=i(h),w.height=i(p),u=w.width/o,d=w.height/a),"none"!==(v=t.util.parsePreserveAspectRatioAttribute(v)).alignX&&("meet"===v.meetOrSlice&&(d=u=u>d?d:u),"slice"===v.meetOrSlice&&(d=u=u>d?u:d),_=w.width-o*u,S=w.height-a*u,"Mid"===v.alignX&&(_/=2),"Mid"===v.alignY&&(S/=2),"Min"===v.alignX&&(_=0),"Min"===v.alignY&&(S=0)),1===u&&1===d&&0===n&&0===r&&0===f&&0===g)return w;if((f||g)&&"#document"!==e.parentNode.nodeName&&(x=" translate("+i(f)+" "+i(g)+") "),s=x+" matrix("+u+" 0 0 "+d+" "+(n*u+_)+" "+(r*d+S)+") ","svg"===e.nodeName){for(l=e.ownerDocument.createElementNS(t.svgNS,"g");e.firstChild;)l.appendChild(e.firstChild);e.appendChild(l)}else(l=e).removeAttribute("x"),l.removeAttribute("y"),s=l.getAttribute("transform")+s;return l.setAttribute("transform",s),w}}function y(e,t){var n=g(e,t.getAttribute("xlink:href").substr(1));if(n&&n.getAttribute("xlink:href")&&y(e,n),["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"].forEach(function(e){n&&!t.hasAttribute(e)&&n.hasAttribute(e)&&t.setAttribute(e,n.getAttribute(e))}),!t.children.length)for(var r=n.cloneNode(!0);r.firstChild;)t.appendChild(r.firstChild);t.removeAttribute("xlink:href")}t.parseSVGDocument=function(e,n,o,i){if(e){!function(e){for(var n=h(e,["use","svg:use"]),r=0;n.length&&re.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new n(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new n(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new n(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,n=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=n},clone:function(){return new n(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=n,t.Intersection.prototype={constructor:n,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,r,o,i){var a,s=(i.x-o.x)*(e.y-o.y)-(i.y-o.y)*(e.x-o.x),l=(r.x-e.x)*(e.y-o.y)-(r.y-e.y)*(e.x-o.x),c=(i.y-o.y)*(r.x-e.x)-(i.x-o.x)*(r.y-e.y);if(0!==c){var u=s/c,d=l/c;0<=u&&u<=1&&0<=d&&d<=1?(a=new n("Intersection")).appendPoint(new t.Point(e.x+u*(r.x-e.x),e.y+u*(r.y-e.y))):a=new n}else a=new n(0===s||0===l?"Coincident":"Parallel");return a},t.Intersection.intersectLinePolygon=function(e,t,r){var o,i,a,s,l=new n,c=r.length;for(s=0;s0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var r,o=new n,i=e.length;for(r=0;r0&&(o.status="Intersection"),o},t.Intersection.intersectPolygonRectangle=function(e,r,o){var i=r.min(o),a=r.max(o),s=new t.Point(a.x,i.y),l=new t.Point(i.x,a.y),c=n.intersectLinePolygon(i,s,e),u=n.intersectLinePolygon(s,a,e),d=n.intersectLinePolygon(a,l,e),h=n.intersectLinePolygon(l,i,e),p=new n;return p.appendPoints(c.points),p.appendPoints(u.points),p.appendPoints(d.points),p.appendPoints(h.points),p.points.length>0&&(p.status="Intersection"),p})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=n,t.Color.prototype={_tryParsingColor:function(e){var t;e in n.colorNameMap&&(e=n.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=n.sourceFromHex(e)),t||(t=n.sourceFromRgb(e)),t||(t=n.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,n,r){e/=255,n/=255,r/=255;var o,i,a,s=t.util.array.max([e,n,r]),l=t.util.array.min([e,n,r]);if(a=(s+l)/2,s===l)o=i=0;else{var c=s-l;switch(i=a>.5?c/(2-s-l):c/(s+l),s){case e:o=(n-r)/c+(n0)-(e<0)||+e};function p(e,t){var n=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(n%360/45)}function f(e,n){var r=n.transform.target,o=r.canvas,i=t.util.object.clone(n);i.target=r,o&&o.fire("object:"+e,i),r.fire(e,n)}function g(e,t){var n=t.canvas,r=e[n.uniScaleKey];return n.uniformScaling&&!r||!n.uniformScaling&&r}function m(e){return e.originX===c&&e.originY===c}function v(e,t,n){var r=e.lockScalingX,o=e.lockScalingY;return!(!r||!o)||(!(t||!r&&!o||!n)||(!(!r||"x"!==t)||!(!o||"y"!==t)))}function y(e,t,n,r){return{e:e,transform:t,pointer:{x:n,y:r}}}function b(e){return function(t,n,r,o){var i=n.target,a=i.getCenterPoint(),s=i.translateToOriginPoint(a,n.originX,n.originY),l=e(t,n,r,o);return i.setPositionByOrigin(s,n.originX,n.originY),l}}function C(e,n,r,o,i){var a=e.target,s=a.controls[e.corner],l=a.canvas.getZoom(),c=a.padding/l,u=a.toLocalPoint(new t.Point(o,i),n,r);return u.x>=c&&(u.x-=c),u.x<=-c&&(u.x+=c),u.y>=c&&(u.y-=c),u.y<=c&&(u.y+=c),u.x-=s.offsetX,u.y-=s.offsetY,u}function w(e){return e.flipX!==e.flipY}function x(e,t,n,r,o){if(0!==e[t]){var i=o/e._getTransformedDimensions()[r]*e[n];e.set(n,i)}}function _(e,t,n,r){var o,c=t.target,u=c._getTransformedDimensions(0,c.skewY),h=C(t,t.originX,t.originY,n,r),p=Math.abs(2*h.x)-u.x,g=c.skewX;p<2?o=0:(o=d(Math.atan2(p/c.scaleX,u.y/c.scaleY)),t.originX===i&&t.originY===l&&(o=-o),t.originX===s&&t.originY===a&&(o=-o),w(c)&&(o=-o));var m=g!==o;if(m){var v=c._getTransformedDimensions().y;c.set("skewX",o),x(c,"skewY","scaleY","y",v),f("skewing",y(e,t,n,r))}return m}function S(e,t,n,r){var o,c=t.target,u=c._getTransformedDimensions(c.skewX,0),h=C(t,t.originX,t.originY,n,r),p=Math.abs(2*h.y)-u.y,g=c.skewY;p<2?o=0:(o=d(Math.atan2(p/c.scaleY,u.x/c.scaleX)),t.originX===i&&t.originY===l&&(o=-o),t.originX===s&&t.originY===a&&(o=-o),w(c)&&(o=-o));var m=g!==o;if(m){var v=c._getTransformedDimensions().x;c.set("skewY",o),x(c,"skewX","scaleX","x",v),f("skewing",y(e,t,n,r))}return m}function M(e,t,n,r,o){o=o||{};var i,a,s,l,c,d,p=t.target,b=p.lockScalingX,w=p.lockScalingY,x=o.by,_=g(e,p),S=v(p,x,_),M=t.gestureScale;if(S)return!1;if(M)a=t.scaleX*M,s=t.scaleY*M;else{if(i=C(t,t.originX,t.originY,n,r),c="y"!==x?h(i.x):1,d="x"!==x?h(i.y):1,t.signX||(t.signX=c),t.signY||(t.signY=d),p.lockScalingFlip&&(t.signX!==c||t.signY!==d))return!1;if(l=p._getTransformedDimensions(),_&&!x){var E,O=Math.abs(i.x)+Math.abs(i.y),A=t.original,T=O/(Math.abs(l.x*A.scaleX/p.scaleX)+Math.abs(l.y*A.scaleY/p.scaleY));a=A.scaleX*T,s=A.scaleY*T}else a=Math.abs(i.x*p.scaleX/l.x),s=Math.abs(i.y*p.scaleY/l.y);m(t)&&(a*=2,s*=2),t.signX!==c&&"y"!==x&&(t.originX=u[t.originX],a*=-1,t.signX=c),t.signY!==d&&"x"!==x&&(t.originY=u[t.originY],s*=-1,t.signY=d)}var k=p.scaleX,D=p.scaleY;return x?("x"===x&&p.set("scaleX",a),"y"===x&&p.set("scaleY",s)):(!b&&p.set("scaleX",a),!w&&p.set("scaleY",s)),(E=k!==p.scaleX||D!==p.scaleY)&&f("scaling",y(e,t,n,r)),E}o.scaleCursorStyleHandler=function(e,t,r){var o=g(e,r),i="";if(0!==t.x&&0===t.y?i="x":0===t.x&&0!==t.y&&(i="y"),v(r,i,o))return"not-allowed";var a=p(r,t);return n[a]+"-resize"},o.skewCursorStyleHandler=function(e,t,n){if(0!==t.x&&n.lockSkewingY)return"not-allowed";if(0!==t.y&&n.lockSkewingX)return"not-allowed";var o=p(n,t)%4;return r[o]+"-resize"},o.scaleSkewCursorStyleHandler=function(e,t,n){return e[n.canvas.altActionKey]?o.skewCursorStyleHandler(e,t,n):o.scaleCursorStyleHandler(e,t,n)},o.rotationWithSnapping=b(function(e,t,n,r){var o=t,i=o.target,a=i.translateToOriginPoint(i.getCenterPoint(),o.originX,o.originY);if(i.lockRotation)return!1;var s,l=Math.atan2(o.ey-a.y,o.ex-a.x),c=Math.atan2(r-a.y,n-a.x),u=d(c-l+o.theta);if(i.snapAngle>0){var h=i.snapAngle,p=i.snapThreshold||h,g=Math.ceil(u/h)*h,m=Math.floor(u/h)*h;Math.abs(u-m)0?i:s:(u>0&&(o=d===a?i:s),u<0&&(o=d===a?s:i),w(l)&&(o=o===i?s:i)),t.originX=o,b(_)(e,t,n,r))},o.skewHandlerY=function(e,t,n,r){var o,s=t.target,u=s.skewY,d=t.originX;return!s.lockSkewingY&&(0===u?o=C(t,c,c,n,r).y>0?a:l:(u>0&&(o=d===i?a:l),u<0&&(o=d===i?l:a),w(s)&&(o=o===a?l:a)),t.originY=o,b(S)(e,t,n,r))},o.dragHandler=function(e,t,n,r){var o=t.target,i=n-t.offsetX,a=r-t.offsetY,s=!o.get("lockMovementX")&&o.left!==i,l=!o.get("lockMovementY")&&o.top!==a;return s&&o.set("left",i),l&&o.set("top",a),(s||l)&&f("moving",y(e,t,n,r)),s||l},o.scaleOrSkewActionName=function(e,t,n){var r=e[n.canvas.altActionKey];return 0===t.x?r?"skewX":"scaleY":0===t.y?r?"skewY":"scaleX":void 0},o.rotationStyleHandler=function(e,t,n){return n.lockRotation?"not-allowed":t.cursorStyle},o.fireEvent=f,o.wrapWithFixedAnchor=b,o.getLocalPoint=C,t.controlsUtils=o}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.degreesToRadians,r=t.controlsUtils;r.renderCircleControl=function(e,t,n,r,o){r=r||{};var i,a=this.sizeX||r.cornerSize||o.cornerSize,s=this.sizeY||r.cornerSize||o.cornerSize,l="undefined"!==typeof r.transparentCorners?r.transparentCorners:this.transparentCorners,c=l?"stroke":"fill",u=!l&&(r.cornerStrokeColor||o.cornerStrokeColor),d=t,h=n;e.save(),e.fillStyle=r.cornerColor||o.cornerColor,e.strokeStyle=r.cornerStrokeColor||o.cornerStrokeColor,a>s?(i=a,e.scale(1,s/a),h=n*a/s):s>a?(i=s,e.scale(a/s,1),d=t*s/a):i=a,e.lineWidth=1,e.beginPath(),e.arc(d,h,i/2,0,2*Math.PI,!1),e[c](),u&&e.stroke(),e.restore()},r.renderSquareControl=function(e,t,r,o,i){o=o||{};var a=this.sizeX||o.cornerSize||i.cornerSize,s=this.sizeY||o.cornerSize||i.cornerSize,l="undefined"!==typeof o.transparentCorners?o.transparentCorners:i.transparentCorners,c=l?"stroke":"fill",u=!l&&(o.cornerStrokeColor||i.cornerStrokeColor),d=a/2,h=s/2;e.save(),e.fillStyle=o.cornerColor||i.cornerColor,e.strokeStyle=o.cornerStrokeColor||i.cornerStrokeColor,e.lineWidth=1,e.translate(t,r),e.rotate(n(i.angle)),e[c+"Rect"](-d,-h,a,s),u&&e.strokeRect(-d,-h,a,s),e.restore()}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Control=function(e){for(var t in e)this[t]=e[t]},t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var n=e._controlsVisibility;return n&&"undefined"!==typeof n[t]?n[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,n){return t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},n)},calcCornerCoords:function(e,n,r,o,i){var a,s,l,c,u=i?this.touchSizeX:this.sizeX,d=i?this.touchSizeY:this.sizeY;if(u&&d&&u!==d){var h=Math.atan2(d,u),p=Math.sqrt(u*u+d*d)/2,f=h-t.util.degreesToRadians(e),g=Math.PI/2-h-t.util.degreesToRadians(e);a=p*t.util.cos(f),s=p*t.util.sin(f),l=p*t.util.cos(g),c=p*t.util.sin(g)}else{p=.7071067812*(u&&d?u:n);f=t.util.degreesToRadians(45-e);a=l=p*t.util.cos(f),s=c=p*t.util.sin(f)}return{tl:{x:r-c,y:o-l},tr:{x:r+a,y:o-s},bl:{x:r-a,y:o+s},br:{x:r+c,y:o+l}}},render:function(e,n,r,o,i){switch((o=o||{}).cornerStyle||i.cornerStyle){case"circle":t.controlsUtils.renderCircleControl.call(this,e,n,r,o,i);break;default:t.controlsUtils.renderSquareControl.call(this,e,n,r,o,i)}}}}(t),function(){function e(e,t){var n,r,i,a,s=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=(l=parseFloat(l)/(/%$/.test(l)?100:1))<0?0:l>1?1:l,s){var c=s.split(/\s*;\s*/);for(""===c[c.length-1]&&c.pop(),a=c.length;a--;){var u=c[a].split(/\s*:\s*/),d=u[0].trim(),h=u[1].trim();"stop-color"===d?n=h:"stop-opacity"===d&&(i=h)}}return n||(n=e.getAttribute("stop-color")||"rgb(0,0,0)"),i||(i=e.getAttribute("stop-opacity")),r=(n=new o.Color(n)).getAlpha(),i=isNaN(parseFloat(i))?1:parseFloat(i),i*=r*t,{offset:l,color:n.toRgb(),opacity:i}}var t=o.util.object.clone;o.Gradient=o.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,n=this;Object.keys(e).forEach(function(t){n[t]=e[t]}),this.id?this.id+="_"+o.Object.__uid++:this.id=o.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var n=new o.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:n.toRgb(),opacity:n.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return o.util.populateWithProperties(this,t,e),t},toSVG:function(e,n){var r,i,a,s,l=t(this.coords,!0),c=(n=n||{},t(this.colorStops,!0)),u=l.r1>l.r2,d=this.gradientTransform?this.gradientTransform.concat():o.iMatrix.concat(),h=-this.offsetX,p=-this.offsetY,f=!!n.additionalTransform,g="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(c.sort(function(e,t){return e.offset-t.offset}),"objectBoundingBox"===g?(h/=e.width,p/=e.height):(h+=e.width/2,p+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(h-=e.pathOffset.x,p-=e.pathOffset.y),d[4]-=h,d[5]-=p,s='id="SVGID_'+this.id+'" gradientUnits="'+g+'"',s+=' gradientTransform="'+(f?n.additionalTransform+" ":"")+o.util.matrixToSVG(d)+'" ',"linear"===this.type?a=["\n']:"radial"===this.type&&(a=["\n']),"radial"===this.type){if(u)for((c=c.concat()).reverse(),r=0,i=c.length;r0){var v=m/Math.max(l.r1,l.r2);for(r=0,i=c.length;r\n')}return a.push("linear"===this.type?"\n":"\n"),a.join("")},toLive:function(e){var t,n,r,i=o.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(i.x1,i.y1,i.x2,i.y2):"radial"===this.type&&(t=e.createRadialGradient(i.x1,i.y1,i.r1,i.x2,i.y2,i.r2)),n=0,r=this.colorStops.length;n1?1:a,isNaN(a)&&(a=1);var s,l,c,u,d=t.getElementsByTagName("stop"),h="userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage",p=t.getAttribute("gradientTransform")||"",f=[],g=0,m=0;for("linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?(s="linear",l=function(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}(t)):(s="radial",l=function(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}(t)),c=d.length;c--;)f.push(e(d[c],a));return u=o.parseTransformAttribute(p),function(e,t,n,r){var o,i;Object.keys(t).forEach(function(e){"Infinity"===(o=t[e])?i=1:"-Infinity"===o?i=0:(i=parseFloat(t[e],10),"string"===typeof o&&/^(\d+\.\d+)%|(\d+)%$/.test(o)&&(i*=.01,"pixels"===r&&("x1"!==e&&"x2"!==e&&"r2"!==e||(i*=n.viewBoxWidth||n.width),"y1"!==e&&"y2"!==e||(i*=n.viewBoxHeight||n.height)))),t[e]=i})}(0,l,i,h),"pixels"===h&&(g=-n.left,m=-n.top),new o.Gradient({id:t.getAttribute("id"),type:s,coords:l,colorStops:f,gradientUnits:h,gradientTransform:u,offsetX:g,offsetY:m})}})}(),function(){"use strict";var e=o.util.toFixed;o.Pattern=o.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=o.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var n=this;this.source=o.util.createImage(),o.util.loadImage(e.source,function(e,r){n.source=e,t&&t(n,r)},null,this.crossOrigin)}},toObject:function(t){var n,r,i=o.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?n=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(n=this.source.toDataURL()),r={type:"pattern",source:n,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,i),offsetY:e(this.offsetY,i),patternTransform:this.patternTransform?this.patternTransform.concat():null},o.util.populateWithProperties(this,r,t),r},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,n=t.width/e.width,r=t.height/e.height,o=this.offsetX/e.width,i=this.offsetY/e.height,a="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(r=1,i&&(r+=Math.abs(i))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,o&&(n+=Math.abs(o))),t.src?a=t.src:t.toDataURL&&(a=t.toDataURL()),'\n\n\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var n in"string"===typeof e&&(e=this._parseShadow(e)),e)this[n]=e[n];this.id=t.Object.__uid++},_parseShadow:function(e){var n=e.trim(),r=t.Shadow.reOffsetsAndBlur.exec(n)||[];return{color:(n.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseInt(r[1],10)||0,offsetY:parseInt(r[2],10)||0,blur:parseInt(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var r=40,o=40,i=t.Object.NUM_FRACTION_DIGITS,a=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),s=new t.Color(this.color);return e.width&&e.height&&(r=100*n((Math.abs(a.x)+this.blur)/e.width,i)+20,o=100*n((Math.abs(a.y)+this.blur)/e.height,i)+20),e.flipX&&(a.x*=-1),e.flipY&&(a.y*=-1),'\n\t\n\t\n\t\n\t\n\t\n\t\t\n\t\t\n\t\n\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},n=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(t){this[t]!==n[t]&&(e[t]=this[t])},this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:px)?(?:\s?|$))?(-?\d+(?:px)?(?:\s?|$))?(\d+(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(o.StaticCanvas)o.warn("fabric.StaticCanvas is already defined.");else{var e=o.util.object.extend,t=o.util.getElementOffset,n=o.util.removeFromArray,r=o.util.toFixed,i=o.util.transformPoint,a=o.util.invertTransform,s=o.util.getNodeCanvas,l=o.util.createCanvasElement,c=new Error("Could not initialize `canvas` element");o.StaticCanvas=o.util.createClass(o.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:o.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var n=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,n),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,n),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,n),t.overlayColor&&this.setOverlayColor(t.overlayColor,n),this.calcOffset()},_isRetinaScaling:function(){return 1!==o.devicePixelRatio&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?o.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=o.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,n){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),n.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,n){return this.__setBgOverlayImage("overlayImage",e,t,n)},setBackgroundImage:function(e,t,n){return this.__setBgOverlayImage("backgroundImage",e,t,n)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,n,r){return"string"===typeof t?o.util.loadImage(t,function(t,i){if(t){var a=new o.Image(t,r);this[e]=a,a.canvas=this}n&&n(t,i)},this,r&&r.crossOrigin):(r&&t.setOptions(r),this[e]=t,t&&(t.canvas=this),n&&n(t,!1)),this},__setBgOverlayColor:function(e,t,n){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,n),this},_createCanvasElement:function(){var e=l();if(!e)throw c;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw c;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=o.util.getById(e)||this._createCanvasElement(),o.util.addClass(this.lowerCanvasEl,"lower-canvas"),this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var n;for(var r in t=t||{},e)n=e[r],t.cssOnly||(this._setBackstoreDimension(r,e[r]),n+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(r,n);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,n,r,o=this._activeObject,i=this.backgroundImage,a=this.overlayImage;for(this.viewportTransform=e,n=0,r=this._objects.length;n\n'),this._setSVGBgOverlayColor(n,"background"),this._setSVGBgOverlayImage(n,"backgroundImage",t),this._setSVGObjects(n,t),this.clipPath&&n.push("\n"),this._setSVGBgOverlayColor(n,"overlay"),this._setSVGBgOverlayImage(n,"overlayImage",t),n.push(""),n.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('\n','\n')},_setSVGHeader:function(e,t){var n,i=t.width||this.width,a=t.height||this.height,s='viewBox="0 0 '+this.width+" "+this.height+'" ',l=o.Object.NUM_FRACTION_DIGITS;t.viewBox?s='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(n=this.viewportTransform,s='viewBox="'+r(-n[4]/n[0],l)+" "+r(-n[5]/n[3],l)+" "+r(this.width/n[0],l)+" "+r(this.height/n[3],l)+'" '),e.push("\n',"Created with Fabric.js ",o.version,"\n","\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+o.Object.__uid++,'\n'+this.clipPath.toClipPathSVG(e.reviver)+"\n"):""},createSVGRefElementsMarkup:function(){var e=this;return["background","overlay"].map(function(t){var n=e[t+"Color"];if(n&&n.toLive){var r=e[t+"Vpt"],i=e.viewportTransform,a={width:e.width/(r?i[0]:1),height:e.height/(r?i[3]:1)};return n.toSVG(a,{additionalTransform:r?o.util.matrixToSVG(i):""})}}).join("")},createSVGFontFacesMarkup:function(){var e,t,n,r,i,a,s,l,c="",u={},d=o.fontPaths,h=[];for(this._objects.forEach(function e(t){h.push(t),t._objects&&t._objects.forEach(e)}),s=0,l=h.length;s',"\n",c,"","\n"].join("")),c},_setSVGObjects:function(e,t){var n,r,o,i=this._objects;for(r=0,o=i.length;r\n")}else e.push('\n")},sendToBack:function(e){if(!e)return this;var t,r,o,i=this._activeObject;if(e===i&&"activeSelection"===e.type)for(t=(o=i._objects).length;t--;)r=o[t],n(this._objects,r),this._objects.unshift(r);else n(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,r,o,i=this._activeObject;if(e===i&&"activeSelection"===e.type)for(o=i._objects,t=0;t0+c&&(a=i-1,n(this._objects,o),this._objects.splice(a,0,o)),c++;else 0!==(i=this._objects.indexOf(e))&&(a=this._findNewLowerIndex(e,i,t),n(this._objects,e),this._objects.splice(a,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,n){var r,o;if(n)for(r=t,o=t-1;o>=0;--o){if(e.intersectsWithObject(this._objects[o])||e.isContainedWithinObject(this._objects[o])||this._objects[o].isContainedWithinObject(e)){r=o;break}}else r=t-1;return r},bringForward:function(e,t){if(!e)return this;var r,o,i,a,s,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(r=(s=l._objects).length;r--;)o=s[r],(i=this._objects.indexOf(o))"}}),e(o.StaticCanvas.prototype,o.Observable),e(o.StaticCanvas.prototype,o.Collection),e(o.StaticCanvas.prototype,o.DataURLExporter),e(o.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var n=t.getContext("2d");if(!n)return null;switch(e){case"setLineDash":return"undefined"!==typeof n.setLineDash;default:return null}}}),o.StaticCanvas.prototype.toJSON=o.StaticCanvas.prototype.toObject,o.isLikelyNode&&(o.StaticCanvas.prototype.createPNGStream=function(){var e=s(this.lowerCanvasEl);return e&&e.createPNGStream()},o.StaticCanvas.prototype.createJPEGStream=function(e){var t=s(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),o.BaseBrush=o.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var e=this.canvas.contextTop;e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,o.StaticCanvas.supports("setLineDash")&&e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,n=e.contextTop,r=e.getZoom();e&&e._isRetinaScaling()&&(r*=o.devicePixelRatio),n.shadowColor=t.color,n.shadowBlur=t.blur*r,n.shadowOffsetX=t.offsetX*r,n.shadowOffsetY=t.offsetY*r}},needsFullRender:function(){return new o.Color(this.color).getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),o.PencilBrush=o.util.createClass(o.BaseBrush,{decimate:.4,initialize:function(e){this.canvas=e,this._points=[]},_drawSegment:function(e,t,n){var r=t.midPointFrom(n);return e.quadraticCurveTo(t.x,t.y,r.x,r.y),r},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var n=this._points,r=n.length,o=this.canvas.contextTop;this._saveAndTransform(o),this.oldEnd&&(o.beginPath(),o.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(o,n[r-2],n[r-1],!0),o.stroke(),o.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new o.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(e){var t=new o.Point(e.x,e.y);return this._addPoint(t)},_render:function(){var e,t,n=this.canvas.contextTop,r=this._points[0],i=this._points[1];if(this._saveAndTransform(n),n.beginPath(),2===this._points.length&&r.x===i.x&&r.y===i.y){var a=this.width/1e3;r=new o.Point(r.x,r.y),i=new o.Point(i.x,i.y),r.x-=a,i.x+=a}for(n.moveTo(r.x,r.y),e=1,t=this._points.length;e2;for(u&&(l=e[2].xe[t-2].x?1:i.x===e[t-2].x?0:-1,c=i.y>e[t-2].y?1:i.y===e[t-2].y?0:-1),n.push("L ",i.x+l*r," ",i.y+c*r),n},createPath:function(e){var t=new o.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new o.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var n,r=this.canvas.getZoom(),i=Math.pow(t/r,2),a=e.length-1,s=e[0],l=[s];for(n=1;n=i&&(s=e[n],l.push(s));return 1===l.length&&l.push(new o.Point(l[0].x,l[0].y)),l},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var e=this.convertPointsToSVGPath(this._points).join("");if("M 0 0 Q 0 0 0 0 L 0 0"!==e){var t=this.createPath(e);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:t}),this.canvas.add(t),this.canvas.requestRenderAll(),t.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:t})}else this.canvas.requestRenderAll()}}),o.CircleBrush=o.util.createClass(o.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),n=this.canvas.contextTop;this._saveAndTransform(n),this.dot(n,t),n.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,n=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(n),e=0,t=r.length;e0&&!this.preserveObjectStacking){t=[],n=[];for(var o=0,i=this._objects.length;o1&&(this._activeObject._objects=n),t.push.apply(t,n)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var n=e.calcTransformMatrix(),r=o.util.invertTransform(n),i=this.restorePointerVpt(t);return o.util.transformPoint(i,r)},isTargetTransparent:function(e,t,n){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var r=this._normalizePointer(e,{x:t,y:n}),i=Math.max(e.cacheTranslationX+r.x*e.zoomX,0),a=Math.max(e.cacheTranslationY+r.y*e.zoomY,0);return o.util.isTransparent(e._cacheContext,Math.round(i),Math.round(a),this.targetFindTolerance)}var s=this.contextCache,l=e.selectionBackgroundColor,c=this.viewportTransform;return e.selectionBackgroundColor="",this.clearContext(s),s.save(),s.transform(c[0],c[1],c[2],c[3],c[4],c[5]),e.render(s),s.restore(),e.selectionBackgroundColor=l,o.util.isTransparent(s,t,n,this.targetFindTolerance)},_isSelectionKeyPressed:function(e){return"[object Array]"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find(function(t){return!0===e[t]}):e[this.selectionKey]},_shouldClearSelection:function(e,t){var n=this.getActiveObjects(),r=this._activeObject;return!t||t&&r&&n.length>1&&-1===n.indexOf(t)&&r!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&r&&r!==t},_shouldCenterTransform:function(e,t,n){var r;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?r=this.centeredScaling||e.centeredScaling:"rotate"===t&&(r=this.centeredRotation||e.centeredRotation),r?!n:n},_getOriginFromCorner:function(e,t){var n={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?n.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(n.x="left"),"tl"===t||"mt"===t||"tr"===t?n.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(n.y="top"),n},_getActionFromCorner:function(e,t,n,r){if(!t||!e)return"drag";var o=r.controls[t];return o.getActionName(n,o,r)},_setupCurrentTransform:function(e,n,r){if(n){var i=this.getPointer(e),a=n.__corner,s=n.controls[a],l=r&&a?s.getActionHandler(e,n,s):o.controlsUtils.dragHandler,c=this._getActionFromCorner(r,a,e,n),u=this._getOriginFromCorner(n,a),d=e[this.centeredKey],h={target:n,action:c,actionHandler:l,corner:a,scaleX:n.scaleX,scaleY:n.scaleY,skewX:n.skewX,skewY:n.skewY,offsetX:i.x-n.left,offsetY:i.y-n.top,originX:u.x,originY:u.y,ex:i.x,ey:i.y,lastX:i.x,lastY:i.y,theta:t(n.angle),width:n.width*n.scaleX,shiftKey:e.shiftKey,altKey:d,original:o.util.saveObjectTransform(n)};this._shouldCenterTransform(n,c,d)&&(h.originX="center",h.originY="center"),h.original.originX=u.x,h.original.originY=u.y,this._currentTransform=h,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=t.left,a=t.top,s=n(i),l=n(a);if(this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(t.ex-(i>0?0:-i),t.ey-(a>0?0:-a),s,l)),this.selectionLineWidth&&this.selectionBorderColor)if(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,this.selectionDashArray.length>1&&!r){var c=t.ex+.5-(i>0?0:s),u=t.ey+.5-(a>0?0:l);e.beginPath(),o.util.drawDashedLine(e,c,u,c+s,u,this.selectionDashArray),o.util.drawDashedLine(e,c,u+l-1,c+s,u+l-1,this.selectionDashArray),o.util.drawDashedLine(e,c,u,c,u+l,this.selectionDashArray),o.util.drawDashedLine(e,c+s-1,u,c+s-1,u+l,this.selectionDashArray),e.closePath(),e.stroke()}else o.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(t.ex+.5-(i>0?0:s),t.ey+.5-(a>0?0:l),s,l)},findTarget:function(e,t){if(!this.skipTargetFind){var n,r,o=this.getPointer(e,!0),a=this._activeObject,s=this.getActiveObjects(),l=i(e),c=s.length>1&&!t||1===s.length;if(this.targets=[],c&&a._findTargetCorner(o,l))return a;if(s.length>1&&!t&&a===this._searchPossibleTargets([a],o))return a;if(1===s.length&&a===this._searchPossibleTargets([a],o)){if(!this.preserveObjectStacking)return a;n=a,r=this.targets,this.targets=[]}var u=this._searchPossibleTargets(this._objects,o);return e[this.altSelectionKey]&&u&&n&&u!==n&&(u=n,this.targets=r),u}},_checkTarget:function(e,t,n){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,n.x,n.y))return!0}},_searchPossibleTargets:function(e,t){for(var n,r,i=e.length;i--;){var a=e[i],s=a.group?this._normalizePointer(a.group,t):t;if(this._checkTarget(s,a,t)){(n=e[i]).subTargetCheck&&n instanceof o.Group&&(r=this._searchPossibleTargets(n._objects,t))&&this.targets.push(r);break}}return n},restorePointerVpt:function(e){return o.util.transformPoint(e,o.util.invertTransform(this.viewportTransform))},getPointer:function(t,n){if(this._absolutePointer&&!n)return this._absolutePointer;if(this._pointer&&n)return this._pointer;var r,o=e(t),i=this.upperCanvasEl,a=i.getBoundingClientRect(),s=a.width||0,l=a.height||0;s&&l||("top"in a&&"bottom"in a&&(l=Math.abs(a.top-a.bottom)),"right"in a&&"left"in a&&(s=Math.abs(a.right-a.left))),this.calcOffset(),o.x=o.x-this._offset.left,o.y=o.y-this._offset.top,n||(o=this.restorePointerVpt(o));var c=this.getRetinaScaling();return 1!==c&&(o.x/=c,o.y/=c),r=0===s||0===l?{width:1,height:1}:{width:i.width/s,height:i.height/l},{x:o.x*r.width,y:o.y*r.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,n=this.upperCanvasEl;n?n.className="":(n=this._createCanvasElement(),this.upperCanvasEl=n),o.util.addClass(n,"upper-canvas "+e),this.wrapperEl.appendChild(n),this._copyCanvasStyle(t,n),this._applyCanvasStyle(n),this.contextTop=n.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=o.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),o.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),o.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,n=this.height||e.height;o.util.setStyle(e,{position:"absolute",width:t+"px",height:n+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=n,o.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var n=!1,r=this.getActiveObjects(),o=[],i=[];e.forEach(function(e){-1===r.indexOf(e)&&(n=!0,e.fire("deselected",{e:t,target:e}),i.push(e))}),r.forEach(function(r){-1===e.indexOf(r)&&(n=!0,r.fire("selected",{e:t,target:r}),o.push(r))}),e.length>0&&r.length>0?n&&this.fire("selection:updated",{e:t,selected:o,deselected:i,updated:o[0]||i[0],target:this._activeObject}):r.length>0?this.fire("selection:created",{e:t,selected:o,target:this._activeObject}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:i})},setActiveObject:function(e,t){var n=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(n,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var n=this._activeObject;if(n){if(n.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),n=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:n,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){o.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,o.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,n){var r=this._realizeGroupTransformOnObject(e),o=this.callSuper("_toObject",e,t,n);return this._unwindGroupTransformOnObject(e,r),o},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach(function(n){t[n]=e[n]}),o.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),t}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,n){var r=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,n),this._unwindGroupTransformOnObject(t,r)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),o.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),o.StaticCanvas)"prototype"!==a&&(o.Canvas[a]=o.StaticCanvas[a])}(),function(){var e=o.util.addListener,t=o.util.removeListener,n={passive:!1};function r(e,t){return e.button&&e.button===t-1}o.util.object.extend(o.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var r=this.upperCanvasEl,i=this._getEventPrefix();e(o.window,"resize",this._onResize),e(r,i+"down",this._onMouseDown),e(r,i+"move",this._onMouseMove,n),e(r,i+"out",this._onMouseOut),e(r,i+"enter",this._onMouseEnter),e(r,"wheel",this._onMouseWheel),e(r,"contextmenu",this._onContextMenu),e(r,"dblclick",this._onDoubleClick),e(r,"dragover",this._onDragOver),e(r,"dragenter",this._onDragEnter),e(r,"dragleave",this._onDragLeave),e(r,"drop",this._onDrop),this.enablePointerEvents||e(r,"touchstart",this._onTouchStart,n),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](r,"gesture",this._onGesture),eventjs[t](r,"drag",this._onDrag),eventjs[t](r,"orientation",this._onOrientationChange),eventjs[t](r,"shake",this._onShake),eventjs[t](r,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(o.document,e+"up",this._onMouseUp),t(o.document,"touchend",this._onTouchEnd,n),t(o.document,e+"move",this._onMouseMove,n),t(o.document,"touchmove",this._onMouseMove,n)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var n=this;this._hoveredTargets.forEach(function(r){n.fire("mouse:out",{target:t,e:e}),r&&t.fire("mouseout",{e:e})}),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach(function(e){e.isEditing&&e.hiddenTextarea.focus()})},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(r){r.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(r)),this.__onMouseDown(r),this._resetTransformEventData();var i=this.upperCanvasEl,a=this._getEventPrefix();e(o.document,"touchend",this._onTouchEnd,n),e(o.document,"touchmove",this._onMouseMove,n),t(i,a+"down",this._onMouseDown)},_onMouseDown:function(r){this.__onMouseDown(r),this._resetTransformEventData();var i=this.upperCanvasEl,a=this._getEventPrefix();t(i,a+"move",this._onMouseMove,n),e(o.document,a+"up",this._onMouseUp),e(o.document,a+"move",this._onMouseMove,n)},_onTouchEnd:function(r){if(!(r.touches.length>0)){this.__onMouseUp(r),this._resetTransformEventData(),this.mainTouchId=null;var i=this._getEventPrefix();t(o.document,"touchend",this._onTouchEnd,n),t(o.document,"touchmove",this._onMouseMove,n);var a=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){e(a.upperCanvasEl,i+"down",a._onMouseDown),a._willAddMouseDown=0},400)}},_onMouseUp:function(r){this.__onMouseUp(r),this._resetTransformEventData();var i=this.upperCanvasEl,a=this._getEventPrefix();this._isMainEvent(r)&&(t(o.document,a+"up",this._onMouseUp),t(o.document,a+"move",this._onMouseMove,n),e(i,a+"move",this._onMouseMove,n))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,n=this._currentTransform,i=this._groupSelector,a=!1,s=!i||0===i.left&&0===i.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),r(e,3))this.fireRightClick&&this._handleEvent(e,"up",3,s);else{if(r(e,2))return this.fireMiddleClick&&this._handleEvent(e,"up",2,s),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(n&&(this._finalizeCurrentTransform(e),a=n.actionPerformed),!s){var l=t===this._activeObject;this._maybeGroupObjects(e),a||(a=this._shouldRender(t)||!l&&t===this._activeObject)}if(t){if(t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),a=!0;else{var c=t._findTargetCorner(this.getPointer(e,!0),o.util.isTouchEvent(e)),u=t.controls[c],d=u&&u.getMouseUpHandler(e,t,u);if(d){var h=this.getPointer(e);d(e,n,h.x,h.y)}}t.isMoving=!1}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",1,s),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),a?this.requestRenderAll():s||this.renderTop()}}},_simpleEventHandler:function(e,t){var n=this.findTarget(t),r=this.targets,o={e:t,target:n,subTargets:r};if(this.fire(e,o),n&&n.fire(e,o),!r)return n;for(var i=0;i1&&(t=new o.ActiveSelection(n.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(n){for(var r,i=[],a=this._groupSelector.ex,s=this._groupSelector.ey,l=a+this._groupSelector.left,c=s+this._groupSelector.top,u=new o.Point(e(a,l),e(s,c)),d=new o.Point(t(a,l),t(s,c)),h=!this.selectionFullyContained,p=a===l&&s===c,f=this._objects.length;f--&&!((r=this._objects[f])&&r.selectable&&r.visible&&(h&&r.intersectsWithRect(u,d)||r.isContainedWithinRect(u,d)||h&&r.containsPoint(u)||h&&r.containsPoint(d))&&(i.push(r),p)););return i.length>1&&(i=i.filter(function(e){return!e.onSelect({e:n})})),i},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),o.util.object.extend(o.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",n=e.quality||1,r=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),i=this.toCanvasElement(r,e);return o.util.toDataURL(i,t,n)},toCanvasElement:function(e,t){e=e||1;var n=((t=t||{}).width||this.width)*e,r=(t.height||this.height)*e,i=this.getZoom(),a=this.width,s=this.height,l=i*e,c=this.viewportTransform,u=(c[4]-(t.left||0))*e,d=(c[5]-(t.top||0))*e,h=this.interactive,p=[l,0,0,l,u,d],f=this.enableRetinaScaling,g=o.util.createCanvasElement(),m=this.contextTop;return g.width=n,g.height=r,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=p,this.width=n,this.height=r,this.calcViewportBoundaries(),this.renderCanvas(g.getContext("2d"),this._objects),this.viewportTransform=c,this.width=a,this.height=s,this.calcViewportBoundaries(),this.interactive=h,this.enableRetinaScaling=f,this.contextTop=m,g}}),o.util.object.extend(o.StaticCanvas.prototype,{loadFromJSON:function(e,t,n){if(e){var r="string"===typeof e?JSON.parse(e):o.util.object.clone(e),i=this,a=r.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete r.clipPath,this._enlivenObjects(r.objects,function(e){i.clear(),i._setBgOverlay(r,function(){a?i._enlivenObjects([a],function(n){i.clipPath=n[0],i.__setupCanvas.call(i,r,e,s,t)}):i.__setupCanvas.call(i,r,e,s,t)})},n),this}},__setupCanvas:function(e,t,n,r){var o=this;t.forEach(function(e,t){o.insertAt(e,t)}),this.renderOnAddRemove=n,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),r&&r()},_setBgOverlay:function(e,t){var n={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var r=function(){n.backgroundImage&&n.overlayImage&&n.backgroundColor&&n.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,n,r),this.__setBgOverlay("overlayImage",e.overlayImage,n,r),this.__setBgOverlay("backgroundColor",e.background,n,r),this.__setBgOverlay("overlayColor",e.overlay,n,r)}else t&&t()},__setBgOverlay:function(e,t,n,r){var i=this;if(!t)return n[e]=!0,void(r&&r());"backgroundImage"===e||"overlayImage"===e?o.util.enlivenObjects([t],function(t){i[e]=t[0],n[e]=!0,r&&r()}):this["set"+o.util.string.capitalize(e,!0)](t,function(){n[e]=!0,r&&r()})},_enlivenObjects:function(e,t,n){e&&0!==e.length?o.util.enlivenObjects(e,function(e){t&&t(e)},null,n):t&&t([])},_toDataURL:function(e,t){this.clone(function(n){t(n.toDataURL(e))})},_toDataURLWithMultiplier:function(e,t,n){this.clone(function(r){n(r.toDataURLWithMultiplier(e,t))})},clone:function(e,t){var n=JSON.stringify(this.toJSON(t));this.cloneWithoutData(function(t){t.loadFromJSON(n,function(){e&&e(t)})})},cloneWithoutData:function(e){var t=o.util.createCanvasElement();t.width=this.width,t.height=this.height;var n=new o.Canvas(t);this.backgroundImage?(n.setBackgroundImage(this.backgroundImage.src,function(){n.renderAll(),e&&e(n)}),n.backgroundImageOpacity=this.backgroundImageOpacity,n.backgroundImageStretch=this.backgroundImageStretch):e&&e(n)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed,i=t.util.string.capitalize,a=t.util.degreesToRadians,s=t.StaticCanvas.supports("setLineDash"),l=!t.isLikelyNode;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:l,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var n=t.perfLimitSizeTotal,r=e.width,o=e.height,i=t.maxCacheSideLimit,a=t.minCacheSideLimit;if(r<=i&&o<=i&&r*o<=n)return ru&&(e.zoomX/=r/u,e.width=u,e.capped=!0),o>d&&(e.zoomY/=o/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),n=t.x*e.scaleX/this.scaleX,r=t.y*e.scaleY/this.scaleY;return{width:n+2,height:r+2,zoomX:e.scaleX,zoomY:e.scaleY,x:n,y:r}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var n=e._currentTransform.target,r=e._currentTransform.action;if(this===n&&r.slice&&"scale"===r.slice(0,5))return!1}var o,i,a=this._cacheCanvas,s=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,c=s.width,u=s.height,d=s.zoomX,h=s.zoomY,p=c!==this.cacheWidth||u!==this.cacheHeight,f=this.zoomX!==d||this.zoomY!==h,g=p||f,m=0,v=0,y=!1;if(p){var b=this._cacheCanvas.width,C=this._cacheCanvas.height,w=c>b||u>C;y=w||(c<.9*b||u<.9*C)&&b>l&&C>l,w&&!s.capped&&(c>l||u>l)&&(m=.1*c,v=.1*u)}return!!g&&(y?(a.width=Math.ceil(c+m),a.height=Math.ceil(u+v)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,a.width,a.height)),o=s.x/2,i=s.y/2,this.cacheTranslationX=Math.round(a.width/2-o)+o,this.cacheTranslationY=Math.round(a.height/2-i)+i,this.cacheWidth=c,this.cacheHeight=u,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(d,h),this.zoomX=d,this.zoomY=h,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,n=this.calcTransformMatrix(!t);e.transform(n[0],n[1],n[2],n[3],n[4],n[5])},toObject:function(e){var n=t.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:o(this.left,n),top:o(this.top,n),width:o(this.width,n),height:o(this.height,n),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:o(this.strokeWidth,n),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:o(this.strokeMiterLimit,n),scaleX:o(this.scaleX,n),scaleY:o(this.scaleY,n),angle:o(this.angle,n),flipX:this.flipX,flipY:this.flipY,opacity:o(this.opacity,n),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:o(this.skewX,n),skewY:o(this.skewY,n)};return this.clipPath&&(r.clipPath=this.clipPath.toObject(e),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,r,e),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var n=t.util.getKlass(e.type).prototype;return n.stateProperties.forEach(function(t){"left"!==t&&"top"!==t&&(e[t]===n[t]&&delete e[t],"[object Array]"===Object.prototype.toString.call(e[t])&&"[object Array]"===Object.prototype.toString.call(n[t])&&0===e[t].length&&0===n[t].length&&delete e[t])}),e},toString:function(){return"#"},getObjectScaling:function(){var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,n=e.scaleY;if(this.canvas){var r=this.canvas.getZoom(),o=this.canvas.getRetinaScaling();t*=r*o,n*=r*o}return{scaleX:t,scaleY:n}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,n){var r="scaleX"===e||"scaleY"===e,o=this[e]!==n,i=!1;return r&&(n=this._constrainScale(n)),"scaleX"===e&&n<0?(this.flipX=!this.flipX,n*=-1):"scaleY"===e&&n<0?(this.flipY=!this.flipY,n*=-1):"shadow"!==e||!n||n instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",n):n=new t.Shadow(n),this[e]=n,o&&(i=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,i&&this.group.set("dirty",!0)):i&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e){var n=this.clipPath;if(e.save(),n.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",n.absolutePositioned){var r=t.util.invertTransform(this.calcTransformMatrix());e.transform(r[0],r[1],r[2],r[3],r[4],r[5])}n.transform(e),e.scale(1/n.zoomX,1/n.zoomY),e.drawImage(n._cacheCanvas,-n.cacheTranslationX,-n.cacheTranslationY),e.restore()},drawObject:function(e,t){var n=this.fill,r=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e),this.fill=n,this.stroke=r},_drawClipPath:function(e){var t=this.clipPath;t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!e){var t=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-n/2,t,n)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var n=t.stroke;n&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,n.toLive?"percentage"===n.gradientUnits||n.gradientTrasnform||n.patternTransform?this._applyPatternForTransformedGradient(e,n):(e.strokeStyle=n.toLive(e,this),this._applyPatternGradientTransform(e,n)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var n=t.fill;n&&(n.toLive?(e.fillStyle=n.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=n)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t,n){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),s?e.setLineDash(t):n&&n(e))},_renderControls:function(e,n){var r,o,i,s=this.getViewportTransform(),l=this.calcTransformMatrix();o="undefined"!==typeof(n=n||{}).hasBorders?n.hasBorders:this.hasBorders,i="undefined"!==typeof n.hasControls?n.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(s,l),r=t.util.qrDecompose(l),e.save(),e.translate(r.translateX,r.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),n.forActiveSelection?(e.rotate(a(r.angle)),o&&this.drawBordersInGroup(e,r,n)):(e.rotate(a(this.angle)),o&&this.drawBorders(e,n)),i&&this.drawControls(e,n),e.restore()},_setShadow:function(e){if(this.shadow){var n,r=this.shadow,o=this.canvas,i=o&&o.viewportTransform[0]||1,a=o&&o.viewportTransform[3]||1;n=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),o&&o._isRetinaScaling()&&(i*=t.devicePixelRatio,a*=t.devicePixelRatio),e.shadowColor=r.color,e.shadowBlur=r.blur*t.browserShadowBlurConstant*(i+a)*(n.scaleX+n.scaleY)/4,e.shadowOffsetX=r.offsetX*i*n.scaleX,e.shadowOffsetY=r.offsetY*a*n.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var n=t.gradientTransform||t.patternTransform,r=-this.width/2+t.offsetX||0,o=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,r,o):e.transform(1,0,0,1,r,o),n&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:r,offsetY:o}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray,this._renderDashedStroke),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,n){var r,o=this._limitCacheSize(this._getCacheCanvasDimensions()),i=t.util.createCanvasElement(),a=this.canvas.getRetinaScaling(),s=o.x/this.scaleX/a,l=o.y/this.scaleY/a;i.width=s,i.height=l,(r=i.getContext("2d")).beginPath(),r.moveTo(0,0),r.lineTo(s,0),r.lineTo(s,l),r.lineTo(0,l),r.closePath(),r.translate(s/2,l/2),r.scale(o.zoomX/this.scaleX/a,o.zoomY/this.scaleY/a),this._applyPatternGradientTransform(r,n),r.fillStyle=n.toLive(e),r.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(a*this.scaleX/o.zoomX,a*this.scaleY/o.zoomY),e.strokeStyle=r.createPattern(i,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var n=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),n=t.util.transformPoint(n,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,n.x+=e.offsetLeft,n.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(n,"center","center")},clone:function(e,n){var r=this.toObject(n);this.constructor.fromObject?this.constructor.fromObject(r,e):t.Object._fromObject("Object",r,e)},cloneAsImage:function(e,n){var r=this.toCanvasElement(n);return e&&e(new t.Image(r)),this},toCanvasElement:function(e){e||(e={});var n=t.util,r=n.saveObjectTransform(this),o=this.group,i=this.shadow,a=Math.abs,s=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&n.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,c,u,d,h=t.util.createCanvasElement(),p=this.getBoundingRect(!0,!0),f=this.shadow,g={x:0,y:0};f&&(c=f.blur,l=f.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),g.x=2*Math.round(a(f.offsetX)+c)*a(l.scaleX),g.y=2*Math.round(a(f.offsetY)+c)*a(l.scaleY)),u=p.width+g.x,d=p.height+g.y,h.width=Math.ceil(u),h.height=Math.ceil(d);var m=new t.StaticCanvas(h,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(m.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(m.width/2,m.height/2),"center","center");var v=this.canvas;m.add(this);var y=m.toCanvasElement(s||1,e);return this.shadow=i,this.set("canvas",v),o&&(this.group=o),this.set(r).setCoords(),m._objects=[],m.dispose(),m=null,y},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,n){n=n||this.canvas.getPointer(e);var r=new t.Point(n.x,n.y),o=this._getLeftTopCoords();return this.angle&&(r=t.util.rotatePoint(r,o,a(-this.angle))),{x:r.x-o.x,y:r.y-o.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),n(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object._fromObject=function(e,n,o,i){var a=t[e];n=r(n,!0),t.util.enlivenPatterns([n.fill,n.stroke],function(e){"undefined"!==typeof e[0]&&(n.fill=e[0]),"undefined"!==typeof e[1]&&(n.stroke=e[1]),t.util.enlivenObjects([n.clipPath],function(e){n.clipPath=e[0];var t=i?new a(n[i],n):new a(n);o&&o(t)})})},t.Object.__uid=0)}(t),function(){var e=o.util.degreesToRadians,t={left:-.5,center:0,right:.5},n={top:-.5,center:0,bottom:.5};o.util.object.extend(o.Object.prototype,{translateToGivenOrigin:function(e,r,i,a,s){var l,c,u,d=e.x,h=e.y;return"string"===typeof r?r=t[r]:r-=.5,"string"===typeof a?a=t[a]:a-=.5,"string"===typeof i?i=n[i]:i-=.5,"string"===typeof s?s=n[s]:s-=.5,c=s-i,((l=a-r)||c)&&(u=this._getTransformedDimensions(),d=e.x+l*u.x,h=e.y+c*u.y),new o.Point(d,h)},translateToCenterPoint:function(t,n,r){var i=this.translateToGivenOrigin(t,n,r,"center","center");return this.angle?o.util.rotatePoint(i,t,e(this.angle)):i},translateToOriginPoint:function(t,n,r){var i=this.translateToGivenOrigin(t,"center","center",n,r);return this.angle?o.util.rotatePoint(i,t,e(this.angle)):i},getCenterPoint:function(){var e=new o.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var n=this.getCenterPoint();return this.translateToOriginPoint(n,e,t)},toLocalPoint:function(t,n,r){var i,a,s=this.getCenterPoint();return i="undefined"!==typeof n&&"undefined"!==typeof r?this.translateToGivenOrigin(s,"center","center",n,r):new o.Point(this.left,this.top),a=new o.Point(t.x,t.y),this.angle&&(a=o.util.rotatePoint(a,s,-e(this.angle))),a.subtractEquals(i)},setPositionByOrigin:function(e,t,n){var r=this.translateToCenterPoint(e,t,n),o=this.translateToOriginPoint(r,this.originX,this.originY);this.set("left",o.x),this.set("top",o.y)},adjustPosition:function(n){var r,i,a=e(this.angle),s=this.getScaledWidth(),l=o.util.cos(a)*s,c=o.util.sin(a)*s;r="string"===typeof this.originX?t[this.originX]:this.originX-.5,i="string"===typeof n?t[n]:n-.5,this.left+=l*(i-r),this.top+=c*(i-r),this.setCoords(),this.originX=n},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){var e=o.util,t=e.degreesToRadians,n=e.multiplyTransformMatrices,r=e.transformPoint;e.object.extend(o.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(e,t){return n=this._getCoords(e,t),[new o.Point(n.tl.x,n.tl.y),new o.Point(n.tr.x,n.tr.y),new o.Point(n.br.x,n.br.y),new o.Point(n.bl.x,n.bl.y)];var n},intersectsWithRect:function(e,t,n,r){var i=this.getCoords(n,r);return"Intersection"===o.Intersection.intersectPolygonRectangle(i,e,t).status},intersectsWithObject:function(e,t,n){return"Intersection"===o.Intersection.intersectPolygonPolygon(this.getCoords(t,n),e.getCoords(t,n)).status||e.isContainedWithinObject(this,t,n)||this.isContainedWithinObject(e,t,n)},isContainedWithinObject:function(e,t,n){for(var r=this.getCoords(t,n),o=t?e.aCoords:e.lineCoords,i=0,a=e._getImageLines(o);i<4;i++)if(!e.containsPoint(r[i],a))return!1;return!0},isContainedWithinRect:function(e,t,n,r){var o=this.getBoundingRect(n,r);return o.left>=e.x&&o.left+o.width<=t.x&&o.top>=e.y&&o.top+o.height<=t.y},containsPoint:function(e,t,n,r){var o=this._getCoords(n,r),i=(t=t||this._getImageLines(o),this._findCrossPoints(e,t));return 0!==i&&i%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br;return!!this.getCoords(!0,e).some(function(e){return e.x<=n.x&&e.x>=t.x&&e.y<=n.y&&e.y>=t.y})||(!!this.intersectsWithRect(t,n,!0,e)||this._containsCenterOfCanvas(t,n,e))},_containsCenterOfCanvas:function(e,t,n){var r={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(r,null,!0,n)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br;return!!this.intersectsWithRect(t,n,!0,e)||this.getCoords(!0,e).every(function(e){return(e.x>=n.x||e.x<=t.x)&&(e.y>=n.y||e.y<=t.y)})&&this._containsCenterOfCanvas(t,n,e)},_getImageLines:function(e){return{topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}}},_findCrossPoints:function(e,t){var n,r,o,i=0;for(var a in t)if(!((o=t[a]).o.y=e.y&&o.d.y>=e.y)&&(o.o.x===o.d.x&&o.o.x>=e.x?r=o.o.x:(0,n=(o.d.y-o.o.y)/(o.d.x-o.o.x),r=-(e.y-0*e.x-(o.o.y-n*o.o.x))/(0-n)),r>=e.x&&(i+=1),2===i))break;return i},getBoundingRect:function(t,n){var r=this.getCoords(t,n);return e.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){var n=(t=t||{}).reviver,r=t.additionalTransform||"",o=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(""),i=e.indexOf("COMMON_PARTS");return e[i]=o,n?n(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){var n,r,i=(t=t||{}).noStyle,a=t.reviver,s=i?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",c=this.clipPath,u=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=c&&c.absolutePositioned,h=this.stroke,p=this.fill,f=this.shadow,g=[],m=e.indexOf("COMMON_PARTS"),v=t.additionalTransform;return c&&(c.clipPathId="CLIPPATH_"+o.Object.__uid++,r='\n'+c.toClipPathSVG(a)+"\n"),d&&g.push("\n"),g.push("\n"),n=[s,u,i?"":this.addPaintOrder()," ",v?'transform="'+v+'" ':""].join(""),e[m]=n,p&&p.toLive&&g.push(p.toSVG(this)),h&&h.toLive&&g.push(h.toSVG(this)),f&&g.push(f.toSVG(this)),c&&g.push(r),g.push(e.join("")),g.push("\n"),d&&g.push("\n"),a?a(g.join("")):g.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=o.util.object.extend;function t(t,n,r){var o={};r.forEach(function(e){o[e]=t[e]}),e(t[n],o,!0)}o.util.object.extend(o.Object.prototype,{hasStateChanged:function(e){var t="_"+(e=e||"stateProperties");return Object.keys(this[t]).length=0;l--)if(o=s[l],this.isControlVisible(o)&&(r=this._getImageLines(t?this.oCoords[o].touchCorner:this.oCoords[o].corner),0!==(n=this._findCrossPoints({x:i,y:a},r))&&n%2===1))return this.__corner=o,o;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var n=this.controls[t];e[t].corner=n.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=n.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var n=this.getCenterPoint(),r=this._calculateCurrentDimensions(),o=this.canvas.viewportTransform;return t.translate(n.x,n.y),t.scale(1/o[0],1/o[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-r.x/2,-r.y/2,r.x,r.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var n=this._calculateCurrentDimensions(),r=this.borderScaleFactor,o=n.x+r,i=n.y+r,a="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,s=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray,null),e.strokeRect(-o/2,-i/2,o,i),a&&(e.beginPath(),this.forEachControl(function(t,n,r){t.withConnection&&t.getVisibility(r,n)&&(s=!0,e.moveTo(t.x*o,t.y*i),e.lineTo(t.x*o+t.offsetX,t.y*i+t.offsetY))}),s&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,n){n=n||{};var r=o.util.sizeAfterTransform(this.width,this.height,t),i=this.strokeWidth,a=this.strokeUniform,s=this.borderScaleFactor,l=r.x+i*(a?this.canvas.getZoom():t.scaleX)+s,c=r.y+i*(a?this.canvas.getZoom():t.scaleY)+s;return e.save(),this._setLineDash(e,n.borderDashArray||this.borderDashArray,null),e.strokeStyle=n.borderColor||this.borderColor,e.strokeRect(-l/2,-c/2,l,c),e.restore(),this},drawControls:function(e,t){return t=t||{},e.save(),e.setTransform(this.canvas.getRetinaScaling(),0,0,this.canvas.getRetinaScaling(),0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray,null),this.setCoords(),this.forEachControl(function(n,r,o){n.getVisibility(o,r)&&n.render(e,o.oCoords[r].x,o.oCoords[r].y,t,o)}),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),o.util.object.extend(o.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){var n=function(){},r=(t=t||{}).onComplete||n,i=t.onChange||n,a=this;return o.util.animate({startValue:e.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),a.requestRenderAll(),i()},onComplete:function(){e.setCoords(),r()}}),this},fxCenterObjectV:function(e,t){var n=function(){},r=(t=t||{}).onComplete||n,i=t.onChange||n,a=this;return o.util.animate({startValue:e.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),a.requestRenderAll(),i()},onComplete:function(){e.setCoords(),r()}}),this},fxRemove:function(e,t){var n=function(){},r=(t=t||{}).onComplete||n,i=t.onChange||n,a=this;return o.util.animate({startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),a.requestRenderAll(),i()},onComplete:function(){a.remove(e),r()}}),this}}),o.util.object.extend(o.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,n=[];for(e in arguments[0])n.push(e);for(var r=0,o=n.length;r-1||i&&a.colorProperties.indexOf(i[1])>-1,l=i?this.get(i[0])[i[1]]:this.get(e);"from"in n||(n.from=l),s||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var c={startValue:n.from,endValue:t,byValue:n.by,easing:n.easing,duration:n.duration,abort:n.abort&&function(){return n.abort.call(a)},onChange:function(t,o,s){i?a[i[0]][i[1]]=t:a.set(e,t),r||n.onChange&&n.onChange(t,o,s)},onComplete:function(e,t,o){r||(a.setCoords(),n.onComplete&&n.onComplete(e,t,o))}};s?o.util.animateColor(c.startValue,c.endValue,c.duration,c):o.util.animate(c)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.object.clone,o={x1:1,x2:1,y1:1,y2:1},i=t.StaticCanvas.supports("setLineDash");function a(e,t){var n=e.origin,r=e.axis1,o=e.axis2,i=e.dimension,a=t.nearest,s=t.center,l=t.farthest;return function(){switch(this.get(n)){case a:return Math.min(this.get(r),this.get(o));case s:return Math.min(this.get(r),this.get(o))+.5*this.get(i);case l:return Math.max(this.get(r),this.get(o))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof o[e]&&this._setWidthHeight(),this},_getLeftToOriginX:a({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:a({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){if(e.beginPath(),!this.strokeDashArray||this.strokeDashArray&&i){var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2)}e.lineWidth=this.strokeWidth;var n=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=n},_renderDashedStroke:function(e){var n=this.calcLinePoints();e.beginPath(),t.util.drawDashedLine(e,n.x1,n.y1,n.x2,n.y2,this.strokeDashArray),e.closePath()},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return n(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,n=e*this.width*.5,r=t*this.height*.5;return{x1:n,x2:e*this.width*-.5,y1:r,y2:t*this.height*-.5}},_toSVG:function(){var e=this.calcLinePoints();return["\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,r,o){o=o||{};var i=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),a=[i.x1||0,i.y1||0,i.x2||0,i.y2||0];r(new t.Line(a,n(i,o)))},t.Line.fromObject=function(e,n){var o=r(e,!0);o.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",o,function(e){delete e.points,n&&n(e)},"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=Math.PI;t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:2*n,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,r=(this.endAngle-this.startAngle)%(2*n);if(0===r)e=["\n'];else{var o=t.util.cos(this.startAngle)*this.radius,i=t.util.sin(this.startAngle)*this.radius,a=t.util.cos(this.endAngle)*this.radius,s=t.util.sin(this.endAngle)*this.radius,l=r>n?"1":"0";e=['\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,n){var r,o=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!("radius"in(r=o)&&r.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");o.left=(o.left||0)-o.radius,o.top=(o.top||0)-o.radius,n(new t.Circle(o))},t.Circle.fromObject=function(e,n){return t.Object._fromObject("Circle",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,n),e.lineTo(0,-n),e.lineTo(t,n),e.closePath(),this._renderPaintInOrder(e)},_renderDashedStroke:function(e){var n=this.width/2,r=this.height/2;e.beginPath(),t.util.drawDashedLine(e,-n,r,0,-r,this.strokeDashArray),t.util.drawDashedLine(e,0,-r,n,r,this.strokeDashArray),t.util.drawDashedLine(e,n,r,-n,r,this.strokeDashArray),e.closePath()},_toSVG:function(){var e=this.width/2,t=this.height/2;return["']}}),t.Triangle.fromObject=function(e,n){return t.Object._fromObject("Triangle",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,n,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,n){var r=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,n(new t.Ellipse(r))},t.Ellipse.fromObject=function(e,n){return t.Object._fromObject("Ellipse",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,n=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,o=this.height,i=-this.width/2,a=-this.height/2,s=0!==t||0!==n,l=.4477152502;e.beginPath(),e.moveTo(i+t,a),e.lineTo(i+r-t,a),s&&e.bezierCurveTo(i+r-l*t,a,i+r,a+l*n,i+r,a+n),e.lineTo(i+r,a+o-n),s&&e.bezierCurveTo(i+r,a+o-l*n,i+r-l*t,a+o,i+r-t,a+o),e.lineTo(i+t,a+o),s&&e.bezierCurveTo(i+l*t,a+o,i,a+o-l*n,i,a+o-n),e.lineTo(i,a+n),s&&e.bezierCurveTo(i,a+l*n,i+l*t,a,i+t,a),e.closePath(),this._renderPaintInOrder(e)},_renderDashedStroke:function(e){var n=-this.width/2,r=-this.height/2,o=this.width,i=this.height;e.beginPath(),t.util.drawDashedLine(e,n,r,n+o,r,this.strokeDashArray),t.util.drawDashedLine(e,n+o,r,n+o,r+i,this.strokeDashArray),t.util.drawDashedLine(e,n+o,r+i,n,r+i,this.strokeDashArray),t.util.drawDashedLine(e,n,r+i,n,r,this.strokeDashArray),e.closePath()},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,r,o){if(!e)return r(null);o=o||{};var i=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);i.left=i.left||0,i.top=i.top||0,i.height=i.height||0,i.width=i.width||0;var a=new t.Rect(n(o?t.util.object.clone(o):{},i));a.visible=a.visible&&a.width>0&&a.height>0,r(a)},t.Rect.fromObject=function(e,n){return t.Object._fromObject("Rect",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.array.min,o=t.util.array.max,i=t.util.toFixed;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_setPositionDimensions:function(e){var t,n=this._calcDimensions(e);this.width=n.width,this.height=n.height,e.fromSVG||(t=this.translateToGivenOrigin({x:n.left-this.strokeWidth/2,y:n.top-this.strokeWidth/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?n.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?n.top:t.y),this.pathOffset={x:n.left+this.width/2,y:n.top+this.height/2}},_calcDimensions:function(){var e=this.points,t=r(e,"x")||0,n=r(e,"y")||0;return{left:t,top:n,width:(o(e,"x")||0)-t,height:(o(e,"y")||0)-n}},toObject:function(e){return n(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],n=this.pathOffset.x,r=this.pathOffset.y,o=t.Object.NUM_FRACTION_DIGITS,a=0,s=this.points.length;a\n']},commonRender:function(e){var t,n=this.points.length,r=this.pathOffset.x,o=this.pathOffset.y;if(!n||isNaN(this.points[n-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-r,this.points[0].y-o);for(var i=0;i"},toObject:function(e){return o(this.callSuper("toObject",e),{path:this.path.map(function(e){return e.slice()})})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){return["\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+a(-this.pathOffset.x,e)+", "+a(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,o,i=[],a=[],s=0,l=0,c=0,u=0,d=0,h=this.path.length;d"},addWithUpdate:function(e){var n=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(n&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,n?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,n){var r=this._objects.length;if(this.useSetOnGroup)for(;r--;)this._objects[r].setOnGroup(e,n);if("canvas"===e)for(;r--;)this._objects[r]._set(e,n);t.Object.prototype._set.call(this,e,n)},toObject:function(e){var n=this.includeDefaultValues,r=this._objects.map(function(t){var r=t.includeDefaultValues;t.includeDefaultValues=n;var o=t.toObject(e);return t.includeDefaultValues=r,o}),o=t.Object.prototype.toObject.call(this,e);return o.objects=r,o},toDatalessObject:function(e){var n,r=this.sourcePath;if(r)n=r;else{var o=this.includeDefaultValues;n=this._objects.map(function(t){var n=t.includeDefaultValues;t.includeDefaultValues=o;var r=t.toDatalessObject(e);return t.includeDefaultValues=n,r})}var i=t.Object.prototype.toDatalessObject.call(this,e);return i.objects=n,i},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var n=0,r=this._objects.length;n\n"],n=0,r=this._objects.length;n\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],n=0,r=this._objects.length;n"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,n){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),"undefined"===typeof(n=n||{}).hasControls&&(n.hasControls=!1),n.forActiveSelection=!0;for(var r=0,o=this._objects.length;r\n','\t\n',"\n"),s=' clip-path="url(#imageCrop_'+c+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),n.push("\t\n"),this.stroke||this.strokeDashArray){var u=this.fill;this.fill=null,e=["\t\n'],this.fill=u}return t="fill"!==this.paintFirst?t.concat(e,n):t.concat(n,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,n){return o.util.loadImage(e,function(e,r){this.setElement(e,n),this._setWidthHeight(),t&&t(this,r)},this,n&&n.crossOrigin),this},toString:function(){return'#'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,n=this.getTotalObjectScaling(),r=n.scaleX,i=n.scaleY,a=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||r>t&&i>t)return this._element=a,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=r,void(this._lastScaleY=i);o.filterBackend||(o.filterBackend=o.initFilterBackend());var s=o.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,c=a.width,u=a.height;s.width=c,s.height=u,this._element=s,this._lastScaleX=e.scaleX=r,this._lastScaleY=e.scaleY=i,o.filterBackend.applyFilters([e],a,c,u,this._element,l),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(e){if(e=(e=e||this.filters||[]).filter(function(e){return e&&!e.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,n=t.naturalWidth||t.width,r=t.naturalHeight||t.height;if(this._element===this._originalElement){var i=o.util.createCanvasElement();i.width=n,i.height=r,this._element=i,this._filteredEl=i}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,n,r),this._lastScaleX=1,this._lastScaleY=1;return o.filterBackend||(o.filterBackend=o.initFilterBackend()),o.filterBackend.applyFilters(e,this._originalElement,n,r,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){o.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){o.util.setImageSmoothing(e,this.imageSmoothing),o.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var n=this._filterScalingX,r=this._filterScalingY,o=this.width,i=this.height,a=Math.min,s=Math.max,l=s(this.cropX,0),c=s(this.cropY,0),u=t.naturalWidth||t.width,d=t.naturalHeight||t.height,h=l*n,p=c*r,f=a(o*n,u-h),g=a(i*r,d-p),m=-o/2,v=-i/2,y=a(o,u/n-l),b=a(i,d/r-c);t&&e.drawImage(t,h,p,f,g,m,v,y,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(o.util.getById(e),t),o.util.addClass(this.getElement(),o.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?o.util.enlivenObjects(e,function(e){t&&t(e)},"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=o.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),n=this._element.width,r=this._element.height,i=1,a=1,s=0,l=0,c=0,u=0,d=this.width,h=this.height,p={width:d,height:h};return!t||"none"===t.alignX&&"none"===t.alignY?(i=d/n,a=h/r):("meet"===t.meetOrSlice&&(e=(d-n*(i=a=o.util.findScaleToFit(this._element,p)))/2,"Min"===t.alignX&&(s=-e),"Max"===t.alignX&&(s=e),e=(h-r*a)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(e=n-d/(i=a=o.util.findScaleToCover(this._element,p)),"Mid"===t.alignX&&(c=e/2),"Max"===t.alignX&&(c=e),e=r-h/a,"Mid"===t.alignY&&(u=e/2),"Max"===t.alignY&&(u=e),n=d/i,r=h/a)),{width:n,height:r,scaleX:i,scaleY:a,offsetLeft:s,offsetTop:l,cropX:c,cropY:u}}}),o.Image.CSS_CANVAS="canvas-img",o.Image.prototype.getSvgSrc=o.Image.prototype.getSrc,o.Image.fromObject=function(e,t){var n=o.util.object.clone(e);o.util.loadImage(n.src,function(e,r){r?t&&t(null,!0):o.Image.prototype._initFilters.call(n,n.filters,function(r){n.filters=r||[],o.Image.prototype._initFilters.call(n,[n.resizeFilter],function(r){n.resizeFilter=r[0],o.util.enlivenObjects([n.clipPath],function(r){n.clipPath=r[0];var i=new o.Image(e,n);t(i,!1)})})})},null,n.crossOrigin)},o.Image.fromURL=function(e,t,n){o.util.loadImage(e,function(e,r){t&&t(new o.Image(e,n),r)},null,n&&n.crossOrigin)},o.Image.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),o.Image.fromElement=function(e,n,r){var i=o.parseAttributes(e,o.Image.ATTRIBUTE_NAMES);o.Image.fromURL(i["xlink:href"],n,t(r?o.util.object.clone(r):{},i))})}(t),o.util.object.extend(o.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(e){var t=function(){},n=(e=e||{}).onComplete||t,r=e.onChange||t,i=this;return o.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){i.rotate(e),r()},onComplete:function(){i.setCoords(),n()}}),this}}),o.util.object.extend(o.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){"use strict";function e(e,t){var n="precision "+t+" float;\nvoid main(){}",r=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(r,n),e.compileShader(r),!!e.getShaderParameter(r,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}o.isWebglSupported=function(t){if(o.isLikelyNode)return!1;t=t||o.WebglFilterBackend.prototype.tileSize;var n=document.createElement("canvas"),r=n.getContext("webgl")||n.getContext("experimental-webgl"),i=!1;if(r){o.maxTextureSize=r.getParameter(r.MAX_TEXTURE_SIZE),i=o.maxTextureSize>=t;for(var a=["highp","mediump","lowp"],s=0;s<3;s++)if(e(r,a[s])){o.webGlPrecision=a[s];break}}return this.isSupported=i,i},o.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var n,r="undefined"!==typeof window.performance;try{new ImageData(1,1),n=!0}catch(f){n=!1}var i="undefined"!==typeof ArrayBuffer,l="undefined"!==typeof Uint8ClampedArray;if(r&&n&&i&&l){var c=o.util.createCanvasElement(),u=new ArrayBuffer(e*t*4);if(o.forceGLPutImageData)return this.imageBuffer=u,void(this.copyGLTo2D=s);var d,h,p={imageBuffer:u,destinationWidth:e,destinationHeight:t,targetCanvas:c};c.width=e,c.height=t,d=window.performance.now(),a.call(p,this.gl,p),h=window.performance.now()-d,d=window.performance.now(),s.call(p,this.gl,p),h>window.performance.now()-d?(this.imageBuffer=u,this.copyGLTo2D=s):this.copyGLTo2D=a}},createWebGLCanvas:function(e,t){var n=o.util.createCanvasElement();n.width=e,n.height=t;var r={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},i=n.getContext("webgl",r);i||(i=n.getContext("experimental-webgl",r)),i&&(i.clearColor(0,0,0,0),this.canvas=n,this.gl=i)},applyFilters:function(e,t,n,r,o,i){var a,s=this.gl;i&&(a=this.getCachedTexture(i,t));var l={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:n,sourceHeight:r,destinationWidth:n,destinationHeight:r,context:s,sourceTexture:this.createTexture(s,n,r,!a&&t),targetTexture:this.createTexture(s,n,r),originalTexture:a||this.createTexture(s,n,r,!a&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:o},c=s.createFramebuffer();return s.bindFramebuffer(s.FRAMEBUFFER,c),e.forEach(function(e){e&&e.applyTo(l)}),function(e){var t=e.targetCanvas,n=t.width,r=t.height,o=e.destinationWidth,i=e.destinationHeight;n===o&&r===i||(t.width=o,t.height=i)}(l),this.copyGLTo2D(s,l),s.bindTexture(s.TEXTURE_2D,null),s.deleteTexture(l.sourceTexture),s.deleteTexture(l.targetTexture),s.deleteFramebuffer(c),o.getContext("2d").setTransform(1,0,0,1,0,0),l},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,n,r){var o=e.createTexture();return e.bindTexture(e.TEXTURE_2D,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),r?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,n,0,e.RGBA,e.UNSIGNED_BYTE,null),o},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var n=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=n,n},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:a,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var n=e.getExtension("WEBGL_debug_renderer_info");if(n){var r=e.getParameter(n.UNMASKED_RENDERER_WEBGL),o=e.getParameter(n.UNMASKED_VENDOR_WEBGL);r&&(t.renderer=r.toLowerCase()),o&&(t.vendor=o.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}o.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,n,r,o){var i=o.getContext("2d");i.drawImage(t,0,0,n,r);var a={sourceWidth:n,sourceHeight:r,imageData:i.getImageData(0,0,n,r),originalEl:t,originalImageData:i.getImageData(0,0,n,r),canvasEl:o,ctx:i,filterBackend:this};return e.forEach(function(e){e.applyTo(a)}),a.imageData.width===n&&a.imageData.height===r||(o.width=a.imageData.width,o.height=a.imageData.height),i.putImageData(a.imageData,0,0),a}}}(),o.Image=o.Image||{},o.Image.filters=o.Image.filters||{},o.Image.filters.BaseFilter=o.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,n){t=t||this.fragmentSource,n=n||this.vertexSource,"highp"!==o.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+o.webGlPrecision+" float"));var r=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var i=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(i,t),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(i));var a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(a));var s=this.getAttributeLocations(e,a),l=this.getUniformLocations(e,a)||{};return l.uStepW=e.getUniformLocation(a,"uStepW"),l.uStepH=e.getUniformLocation(a,"uStepH"),{program:a,attributeLocations:s,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,n){var r=t.aPosition,o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.enableVertexAttribArray(r),e.vertexAttribPointer(r,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,n,r=e.context;e.passes>1?(t=e.destinationWidth,n=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===n||(r.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(r,t,n)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=o.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var n=t[e].length;n--;)if(this[e][n]!==t[e][n])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,n=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(n.program),this.sendAttributeData(t,n.attributeLocations,e.aPosition),t.uniform1f(n.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(n.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,n.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,n){e.activeTexture(n),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),o.Image.filters.BaseFilter.fromObject=function(e,t){var n=new o.Image.filters[e.type](e);return t&&t(n),n},function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.ColorMatrix=r(n.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,n,r,o,i,a=e.imageData.data,s=a.length,l=this.matrix,c=this.colorsOnly;for(i=0;i=C||a<0||a>=b||(l=4*(s*b+a),c=m[p*v+h],t+=g[l]*c,n+=g[l+1]*c,r+=g[l+2]*c,_||(o+=g[l+3]*c));x[i]=t,x[i+1]=n,x[i+2]=r,x[i+3]=_?g[i+3]:o}e.imageData=w},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return n(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Grayscale=r(n.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,n,r=e.imageData.data,o=r.length,i=this.mode;for(t=0;tc[0]&&o>c[1]&&i>c[2]&&r 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,n=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(n)||(t=this.buildSource(this.mode),e.programCache[n]=this.createProgram(e.context,t)),e.programCache[n]},applyTo2d:function(e){var t,r,o,i,a,s,l,c=e.imageData.data,u=c.length,d=1-this.alpha;t=(l=new n.Color(this.color).getSource())[0]*this.alpha,r=l[1]*this.alpha,o=l[2]*this.alpha;for(var h=0;h=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;var n=(t*=Math.PI)/e;return s(t)/t*s(n)/n}},applyTo2d:function(e){var t=e.imageData,n=this.scaleX,r=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/r;var o,i=t.width,s=t.height,l=a(i*n),c=a(s*r);"sliceHack"===this.resizeType?o=this.sliceByTwo(e,i,s,l,c):"hermite"===this.resizeType?o=this.hermiteFastResize(e,i,s,l,c):"bilinear"===this.resizeType?o=this.bilinearFiltering(e,i,s,l,c):"lanczos"===this.resizeType&&(o=this.lanczosResize(e,i,s,l,c)),e.imageData=o},sliceByTwo:function(e,n,o,i,a){var s,l,c=e.imageData,u=!1,d=!1,h=.5*n,p=.5*o,f=t.filterBackend.resources,g=0,m=0,v=n,y=0;for(f.sliceByTwo||(f.sliceByTwo=document.createElement("canvas")),((s=f.sliceByTwo).width<1.5*n||s.height=t)){P=r(1e3*i(S-w.x)),C[P]||(C[P]={});for(var L=x.y-b;L<=x.y+b;L++)L<0||L>=a||(N=r(1e3*i(L-w.y)),C[P][N]||(C[P][N]=p(o(n(P*m,2)+n(N*v,2))/1e3)),(M=C[P][N])>0&&(O+=M,A+=M*u[E=4*(L*t+S)],T+=M*u[E+1],k+=M*u[E+2],D+=M*u[E+3]))}h[E=4*(_*s+l)]=A/O,h[E+1]=T/O,h[E+2]=k/O,h[E+3]=D/O}return++l1&&N<-1||(b=2*N*N*N-3*N*N+1)>0&&(M+=b*p[(P=4*(D+O*t))+3],w+=b,p[P+3]<255&&(b=b*p[P+3]/250),x+=b*p[P],_+=b*p[P+1],S+=b*p[P+2],C+=b)}g[y]=x/C,g[y+1]=_/C,g[y+2]=S/C,g[y+3]=M/w}return f},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Contrast=r(n.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,n=e.imageData.data,r=n.length,o=Math.floor(255*this.contrast),i=259*(o+255)/(255*(259-o));for(t=0;t1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?n[0]=e:n[1]=e,n}}),n.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Gamma=r(n.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],n.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,n=e.imageData.data,r=this.gamma,o=n.length,i=1/r[0],a=1/r[1],s=1/r[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,o=256;t'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,n){e.textBaseline="alphabetic",e.font=this._getFontDeclaration(t,n)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,n=this._textLines.length;te&&(e=r)}return e},_renderTextLine:function(e,t,n,r,o,i){this._renderChars(e,t,n,r,o,i)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,n,r,o,i,a,s=e.fillStyle,l=this._getLeftOffset(),c=this._getTopOffset(),u=0,d=0,h=this.path,p=0,f=this._textLines.length;ps&&(d%=s),this._setGraphemeOnPath(d,i,a)),u[n]=i,l+=i.kernedWidth,d+=i.kernedWidth,o=r;return u[n]={left:i?i.left+i.width:0,width:0,kernedWidth:0,height:this.fontSize},{width:l,numOfSpaces:0}},_setGraphemeOnPath:function(e,n,r){var o=e+n.kernedWidth/2,i=this.path,a=t.util.getPointOnPath(i.path,o,i.segmentsInfo);n.renderLeft=a.x-r.x,n.renderTop=a.y-r.y,n.angle=a.angle},_getGraphemeBox:function(e,t,n,r,o){var i,a=this.getCompleteStyleDeclaration(t,n),s=r?this.getCompleteStyleDeclaration(t,n-1):{},l=this._measureChar(e,a,r,s),c=l.kernedWidth,u=l.width;0!==this.charSpacing&&(u+=i=this._getWidthOfCharSpacing(),c+=i);var d={width:u,left:0,height:a.fontSize,kernedWidth:c,deltaY:a.deltaY};if(n>0&&!o){var h=this.__charBounds[t][n-1];d.left=h.left+h.width+l.kernedWidth-l.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],n=this.getHeightOfChar(e,0),r=1,o=t.length;r0?(c&&v&&(e.fillStyle=v,e.fillRect(y+i+d,u+this.offsets[t]*r+a,h,this.fontSize/15)),d=p.left,h=p.width,c=f,v=m,r=o,a=s):h+=p.kernedWidth;e.fillStyle=m,f&&m&&e.fillRect(y+i+d,u+this.offsets[t]*r+a,h-w,this.fontSize/15),b+=n}else b+=n;this._removeShadow(e)}},_getFontDeclaration:function(e,n){var r=e||this,o=this.fontFamily,i=t.Text.genericFonts.indexOf(o.toLowerCase())>-1,a=void 0===o||o.indexOf("'")>-1||o.indexOf(",")>-1||o.indexOf('"')>-1||i?r.fontFamily:'"'+r.fontFamily+'"';return[t.isLikelyNode?r.fontWeight:r.fontStyle,t.isLikelyNode?r.fontStyle:r.fontWeight,n?this.CACHE_FONT_SIZE+"px":r.fontSize+"px",a].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var n=e.split(this._reNewline),r=new Array(n.length),o=["\n"],i=[],a=0;a-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}o.IText=o.util.createClass(o.Text,o.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,n=this.canvas.viewportTransform;t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,n=this.height+4;e.clearRect(-t/2,-n/2,t,n)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),n=this._getTopOffset(),r=this._getCursorBoundariesOffsets(e);return{left:t,top:n,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,n,r,o,i=0,a=0,s=this.get2DCursorLocation(e);r=s.charIndex,n=s.lineIndex;for(var l=0;l0?a:0)},this.cursorOffsetCache=o,this.cursorOffsetCache},renderCursor:function(e,t){var n=this.get2DCursorLocation(),r=n.lineIndex,o=n.charIndex>0?n.charIndex-1:0,i=this.getValueOfPropertyAt(r,o,"fontSize"),a=this.scaleX*this.canvas.getZoom(),s=this.cursorWidth/a,l=e.topOffset,c=this.getValueOfPropertyAt(r,o,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-i*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,o,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-s/2,l+e.top+c,s,i)},renderSelection:function(e,t){for(var n=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,o=-1!==this.textAlign.indexOf("justify"),i=this.get2DCursorLocation(n),a=this.get2DCursorLocation(r),s=i.lineIndex,l=a.lineIndex,c=i.charIndex<0?0:i.charIndex,u=a.charIndex<0?0:a.charIndex,d=s;d<=l;d++){var h,p=this._getLineLeftOffset(d)||0,f=this.getHeightOfLine(d),g=0,m=0;if(d===s&&(g=this.__charBounds[s][c].left),d>=s&&d1)&&(f/=this.lineHeight),this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",t.fillRect(e.left+p+g,e.top+e.topOffset+f,m-g,1)):(t.fillStyle=this.selectionColor,t.fillRect(e.left+p+g,e.top+e.topOffset,m-g,f)),e.topOffset+=h}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),o.IText.fromObject=function(t,n){if(e(t),t.styles)for(var r in t.styles)for(var i in t.styles[r])e(t.styles[r][i]);o.Object._fromObject("IText",t,n,"text")}}(),function(){var e=o.util.object.clone;o.util.object.extend(o.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))})},initRemovedHandler:function(){var e=this;this.on("removed",function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],o.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))})},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach(function(e){e.__isMousedown=!1})},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,n,r){var o;return o={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:n,onComplete:function(){o.isAborted||e[r]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return o.isAborted}}),o},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(e){var t=this,n=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){t._tick()},n)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,n=e-1;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n--;for(;/\S/.test(this._text[n])&&n>-1;)t++,n--;return e-t},findWordBoundaryRight:function(e){var t=0,n=e;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)t++,n++;for(;/\S/.test(this._text[n])&&n-1;)t++,n--;return e-t},findLineBoundaryRight:function(e){for(var t=0,n=e;!/\n/.test(this._text[n])&&n0&&rthis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,n){var r=n.slice(0,e),i=o.util.string.graphemeSplit(r).length;if(e===t)return{selectionStart:i,selectionEnd:i};var a=n.slice(e,t);return{selectionStart:i,selectionEnd:i+o.util.string.graphemeSplit(a).length}},fromGraphemeToStringSelection:function(e,t,n){var r=n.slice(0,e).join("").length;return e===t?{selectionStart:r,selectionEnd:r}:{selectionStart:r,selectionEnd:r+n.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),n=this.get2DCursorLocation(e),r=n.lineIndex,i=n.charIndex,a=this.getValueOfPropertyAt(r,i,"fontSize")*this.lineHeight,s=t.leftOffset,l=this.calcTransformMatrix(),c={x:t.left+s,y:t.top+t.topOffset+a},u=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,h=d.width/u,p=d.height/u,f=h-a,g=p-a,m=d.clientWidth/h,v=d.clientHeight/p;return c=o.util.transformPoint(c,l),(c=o.util.transformPoint(c,this.canvas.viewportTransform)).x*=m,c.y*=v,c.x<0&&(c.x=0),c.x>f&&(c.x=f),c.y<0&&(c.y=0),c.y>g&&(c.y=g),c.x+=this.canvas._offset.left,c.y+=this.canvas._offset.top,{left:c.x+"px",top:c.y+"px",fontSize:a+"px",charHeight:a}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var n,r,o=this.get2DCursorLocation(e,!0),i=this.get2DCursorLocation(t,!0),a=o.lineIndex,s=o.charIndex,l=i.lineIndex,c=i.charIndex;if(a!==l){if(this.styles[a])for(n=s;n=c&&(r[u-h]=r[d],delete r[d])}},shiftLineStyles:function(t,n){var r=e(this.styles);for(var o in this.styles){var i=parseInt(o,10);i>t&&(this.styles[i+n]=r[i],r[i-n]||delete this.styles[i])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,n,r,o){var i,a={},s=!1,l=this._unwrappedTextLines[t].length===n;for(var c in r||(r=1),this.shiftLineStyles(t,r),this.styles[t]&&(i=this.styles[t][0===n?n:n-1]),this.styles[t]){var u=parseInt(c,10);u>=n&&(s=!0,a[u-n]=this.styles[t][c],l&&0===n||delete this.styles[t][c])}var d=!1;for(s&&!l&&(this.styles[t+r]=a,d=!0),d&&r--;r>0;)o&&o[r-1]?this.styles[t+r]={0:e(o[r-1])}:i?this.styles[t+r]={0:e(i)}:delete this.styles[t+r],r--;this._forceClearCache=!0},insertCharStyleObject:function(t,n,r,o){this.styles||(this.styles={});var i=this.styles[t],a=i?e(i):{};for(var s in r||(r=1),a){var l=parseInt(s,10);l>=n&&(i[l+r]=a[l],a[l-r]||delete i[l])}if(this._forceClearCache=!0,o)for(;r--;)Object.keys(o[r]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][n+r]=e(o[r]));else if(i)for(var c=i[n?n-1:1];c&&r--;)this.styles[t][n+r]=e(c)},insertNewStyleBlock:function(e,t,n){for(var r=this.get2DCursorLocation(t,!0),o=[0],i=0,a=0;a0&&(this.insertCharStyleObject(r.lineIndex,r.charIndex,o[0],n),n=n&&n.slice(o[0]+1)),i&&this.insertNewlineStyleObject(r.lineIndex,r.charIndex+o[0],i);for(a=1;a0?this.insertCharStyleObject(r.lineIndex+a,0,o[a],n):n&&(this.styles[r.lineIndex+a][0]=n[0]),n=n&&n.slice(o[a]+1);o[a]>0&&this.insertCharStyleObject(r.lineIndex+a,0,o[a],n)},setSelectionStartEndWithShift:function(e,t,n){n<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=n):n>e&&ne?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),o.util.object.extend(o.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),n=this.selectionStart,r=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(n,r,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t=this.getLocalPointer(e),n=0,r=0,o=0,i=0,a=0,s=0,l=this._textLines.length;s0&&(i+=this._textLines[s-1].length+this.missingNewlineOffset(s-1));r=this._getLineLeftOffset(a)*this.scaleX;for(var c=0,u=this._textLines[a].length;ci||a<0?0:1);return this.flipX&&(s=o-s),s>this._text.length&&(s=this._text.length),s}}),o.util.object.extend(o.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=o.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\uff70top: "+e.fontSize+";",o.document.body.appendChild(this.hiddenTextarea),o.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),o.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),o.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),o.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),o.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),o.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),o.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),o.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),o.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(o.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){if(e.keyCode in this.keysMap)this[this.keysMap[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown&&(e.ctrlKey||e.metaKey)))return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var n,r,i,a,s,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,c=this._text.length,u=l.length,d=u-c,h=this.selectionStart,p=this.selectionEnd,f=h!==p;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var g=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),m=h>g.selectionStart;f?(n=this._text.slice(h,p),d+=p-h):u0&&(r+=(n=this.__charBounds[e][t-1]).left+n.width),r},getDownCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),o=r.lineIndex;if(o===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-n;var i=r.charIndex,a=this._getWidthBeforeCursor(o,i),s=this._getIndexOnLine(o+1,a);return this._textLines[o].slice(i).length+s+1+this.missingNewlineOffset(o)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),o=r.lineIndex;if(0===o||e.metaKey||33===e.keyCode)return-n;var i=r.charIndex,a=this._getWidthBeforeCursor(o,i),s=this._getIndexOnLine(o-1,a),l=this._textLines[o].slice(0,i),c=this.missingNewlineOffset(o-1);return-this._textLines[o-1].length+s-l.length+(1-c)},_getIndexOnLine:function(e,t){for(var n,r,o=this._textLines[e],i=this._getLineLeftOffset(e),a=0,s=0,l=o.length;st){r=!0;var c=i-n,u=i,d=Math.abs(c-t);a=Math.abs(u-t)=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var n=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(n):this.moveCursorWithoutShift(n),0!==n&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,n){var r;if(e.altKey)r=this["findWordBoundary"+n](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===n?-1:1,!0;r=this["findLineBoundary"+n](this[t])}if(void 0!==typeof r&&this[t]!==r)return this[t]=r,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var n="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?n+="Shift":n+="outShift",this[n](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,n,r){"undefined"===typeof r&&(r=n),r>n&&this.removeStyleFromTo(n,r);var i=o.util.string.graphemeSplit(e);this.insertNewStyleBlock(i,n,t),this._text=[].concat(this._text.slice(0,n),i,this._text.slice(r)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=o.util.toFixed,t=/ +/g;o.util.object.extend(o.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t",e.textSpans.join(""),"\n"]},_getSVGTextAndBg:function(e,t){var n,r=[],o=[],i=e;this._setSVGBg(o);for(var a=0,s=this._textLines.length;a",o.util.string.escapeXml(n),""].join("")},_setSVGTextLineText:function(e,t,n,r){var o,i,a,s,l,c=this.getHeightOfLine(t),u=-1!==this.textAlign.indexOf("justify"),d="",h=0,p=this._textLines[t];r+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var f=0,g=p.length-1;f<=g;f++)l=f===g||this.charSpacing,d+=p[f],a=this.__charBounds[t][f],0===h?(n+=a.kernedWidth-a.width,h+=a.width):h+=a.kernedWidth,u&&!l&&this._reSpaceAndTab.test(p[f])&&(l=!0),l||(o=o||this.getCompleteStyleDeclaration(t,f),i=this.getCompleteStyleDeclaration(t,f+1),l=this._hasStyleChangedForSvg(o,i)),l&&(s=this._getStyleDeclaration(t,f)||{},e.push(this._createTextCharSpan(d,s,n,r)),d="",o=i,n+=h,h=0)},_pushTextBgRect:function(t,n,r,i,a,s){var l=o.Object.NUM_FRACTION_DIGITS;t.push("\t\t\n')},_setSVGTextLineBg:function(e,t,n,r){for(var o,i,a=this._textLines[t],s=this.getHeightOfLine(t)/this.lineHeight,l=0,c=0,u=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,h=a.length;dthis.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,n=0,r=0,o={},i=0;i0?(n=0,r++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[r])&&i>0&&(n++,r++),o[i]={line:t,offset:n},r+=e.graphemeLines[i].length,n+=e.graphemeLines[i].length;return o},styleHas:function(e,n){if(this._styleMap&&!this.isWrapping){var r=this._styleMap[n];r&&(n=r.line)}return t.Text.prototype.styleHas.call(this,e,n)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,n,r=0,o=!1,i=this._styleMap[e],a=this._styleMap[e+1];for(var s in i&&(e=i.line,r=i.offset),a&&(o=a.line===e,t=a.offset),n="undefined"===typeof e?this.styles:{line:this.styles[e]})for(var l in n[s])if(l>=r&&(!o||lr&&!m?(s.push(l),l=[],i=p,m=!0):i+=v,m||a||l.push(h),l=l.concat(u),f=a?0:this._measureWord([h],n,d),d++,m=!1,p>g&&(g=p);return y&&s.push(l),g+o>this.dynamicMinWidth&&(this.dynamicMinWidth=g-v+o),s},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e){return this.splitByGrapheme?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var n=t.Text.prototype._splitTextIntoLines.call(this,e),r=this._wrapText(n.lines,this.width),o=new Array(r.length),i=0;i>>1,V=[["ary",M],["bind",y],["bindKey",b],["curry",w],["curryRight",x],["flip",O],["partial",_],["partialRight",S],["rearg",E]],W="[object Arguments]",H="[object Array]",G="[object AsyncFunction]",U="[object Boolean]",q="[object Date]",Y="[object DOMException]",X="[object Error]",K="[object Function]",$="[object GeneratorFunction]",Z="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ie="[object Symbol]",ae="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",he="[object Float64Array]",pe="[object Int8Array]",fe="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ve="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",Ce=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Me=RegExp(_e.source),Ee=RegExp(Se.source),Oe=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ne.source),Re=/^\s+/,Fe=/\s/,Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,je=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,He=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Ue=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,$e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ze=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Qe+"]",ot="\\d+",it="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+ot+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lt="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",ut="(?:\\ud83c[\\udde6-\\uddff]){2}",dt="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+at+"|"+st+")",ft="(?:"+ht+"|"+st+")",gt="(?:"+rt+"|"+lt+")"+"?",mt="[\\ufe0e\\ufe0f]?"+gt+("(?:\\u200d(?:"+[ct,ut,dt].join("|")+")[\\ufe0e\\ufe0f]?"+gt+")*"),vt="(?:"+[it,ut,dt].join("|")+")"+mt,yt="(?:"+[ct+rt+"?",rt,ut,dt,tt].join("|")+")",bt=RegExp("['\u2019]","g"),Ct=RegExp(rt,"g"),wt=RegExp(lt+"(?="+lt+")|"+yt+mt,"g"),xt=RegExp([ht+"?"+at+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[nt,ht,"$"].join("|")+")",ft+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[nt,ht+pt,"$"].join("|")+")",ht+"?"+pt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ot,vt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Et=-1,Ot={};Ot[de]=Ot[he]=Ot[pe]=Ot[fe]=Ot[ge]=Ot[me]=Ot[ve]=Ot[ye]=Ot[be]=!0,Ot[W]=Ot[H]=Ot[ce]=Ot[U]=Ot[ue]=Ot[q]=Ot[X]=Ot[K]=Ot[Z]=Ot[J]=Ot[ee]=Ot[ne]=Ot[re]=Ot[oe]=Ot[se]=!1;var At={};At[W]=At[H]=At[ce]=At[ue]=At[U]=At[q]=At[de]=At[he]=At[pe]=At[fe]=At[ge]=At[Z]=At[J]=At[ee]=At[ne]=At[re]=At[oe]=At[ie]=At[me]=At[ve]=At[ye]=At[be]=!0,At[X]=At[K]=At[se]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kt=parseFloat,Dt=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Nt="object"==typeof self&&self&&self.Object===Object&&self,Lt=Pt||Nt||Function("return this")(),Rt=t&&!t.nodeType&&t,Ft=Rt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Ft&&Ft.exports===Rt,zt=It&&Pt.process,Bt=function(){try{var e=Ft&&Ft.require&&Ft.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch(t){}}(),jt=Bt&&Bt.isArrayBuffer,Vt=Bt&&Bt.isDate,Wt=Bt&&Bt.isMap,Ht=Bt&&Bt.isRegExp,Gt=Bt&&Bt.isSet,Ut=Bt&&Bt.isTypedArray;function qt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Qt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function _n(e,t){for(var n=e.length;n--&&cn(t,e[n],0)>-1;);return n}var Sn=fn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Mn=fn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+Tt[e]}function On(e){return _t.test(e)}function An(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Tn(e,t){return function(n){return e(t(n))}}function kn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var In=function e(t){var n=(t=null==t?Lt:In.defaults(Lt.Object(),t,In.pick(Lt,Mt))).Array,r=t.Date,o=t.Error,Fe=t.Function,Qe=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=Fe.prototype,at=et.prototype,st=t["__core-js_shared__"],lt=it.toString,ct=at.hasOwnProperty,ut=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=at.toString,pt=lt.call(et),ft=Lt._,gt=tt("^"+lt.call(ct).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=It?t.Buffer:i,vt=t.Symbol,yt=t.Uint8Array,wt=mt?mt.allocUnsafe:i,_t=Tn(et.getPrototypeOf,et),Tt=et.create,Pt=at.propertyIsEnumerable,Nt=ot.splice,Rt=vt?vt.isConcatSpreadable:i,Ft=vt?vt.iterator:i,zt=vt?vt.toStringTag:i,Bt=function(){try{var e=ji(et,"defineProperty");return e({},"",{}),e}catch(t){}}(),an=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,fn=r&&r.now!==Lt.Date.now&&r.now,zn=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Bn=Qe.ceil,jn=Qe.floor,Vn=et.getOwnPropertySymbols,Wn=mt?mt.isBuffer:i,Hn=t.isFinite,Gn=ot.join,Un=Tn(et.keys,et),qn=Qe.max,Yn=Qe.min,Xn=r.now,Kn=t.parseInt,$n=Qe.random,Zn=ot.reverse,Jn=ji(t,"DataView"),Qn=ji(t,"Map"),er=ji(t,"Promise"),tr=ji(t,"Set"),nr=ji(t,"WeakMap"),rr=ji(et,"create"),or=nr&&new nr,ir={},ar=ha(Jn),sr=ha(Qn),lr=ha(er),cr=ha(tr),ur=ha(nr),dr=vt?vt.prototype:i,hr=dr?dr.valueOf:i,pr=dr?dr.toString:i;function fr(e){if(Ts(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof vr)return e;if(ct.call(e,"__wrapped__"))return pa(e)}return new vr(e)}var gr=function(){function e(){}return function(t){if(!As(t))return{};if(Tt)return Tt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function mr(){}function vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Fr(e,t,n,r,o,a){var s,l=t&p,c=t&f,u=t&g;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var d=ys(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return oi(e,s)}else{var h=Hi(e),m=h==K||h==$;if(xs(e))return Jo(e,l);if(h==ee||h==W||m&&!o){if(s=c||m?{}:Ui(e),!l)return c?function(e,t){return ii(e,Wi(e),t)}(e,function(e,t){return e&&ii(t,al(t),e)}(s,e)):function(e,t){return ii(e,Vi(e),t)}(e,Pr(s,e))}else{if(!At[h])return o?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case ce:return Qo(e);case U:case q:return new o(+e);case ue:return function(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case he:case pe:case fe:case ge:case me:case ve:case ye:case be:return ei(e,n);case Z:return new o;case J:case oe:return new o(e);case ne:return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new o;case ie:return r=e,hr?et(hr.call(r)):{}}}(e,h,l)}}a||(a=new _r);var v=a.get(e);if(v)return v;a.set(e,s),Ls(e)?e.forEach(function(r){s.add(Fr(r,t,n,r,e,a))}):ks(e)&&e.forEach(function(r,o){s.set(o,Fr(r,t,n,o,e,a))});var y=d?i:(u?c?Ni:Pi:c?al:il)(e);return Xt(y||e,function(r,o){y&&(r=e[o=r]),Tr(s,o,Fr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function zr(e,t,n){if("function"!=typeof e)throw new rt(l);return ia(function(){e.apply(i,n)},t)}function Br(e,t,n,r){var o=-1,i=Jt,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=en(t,bn(n))),r?(i=Qt,s=!1):t.length>=a&&(i=wn,s=!1,t=new xr(t));e:for(;++o-1},Cr.prototype.set=function(e,t){var n=this.__data__,r=kr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(Qn||Cr),string:new br}},wr.prototype.delete=function(e){var t=zi(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return zi(this,e).get(e)},wr.prototype.has=function(e){return zi(this,e).has(e)},wr.prototype.set=function(e,t){var n=zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,u),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new Cr,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Cr){var r=n.__data__;if(!Qn||r.length0&&n(s)?t>1?Ur(s,t-1,n,r,o):tn(o,s):r||(o[o.length]=s)}return o}var qr=ci(),Yr=ci(!0);function Xr(e,t){return e&&qr(e,t,il)}function Kr(e,t){return e&&Yr(e,t,il)}function $r(e,t){return Zt(t,function(t){return Ms(e[t])})}function Zr(e,t){for(var n=0,r=(t=Xo(t,e)).length;null!=e&&nt}function to(e,t){return null!=e&&ct.call(e,t)}function no(e,t){return null!=e&&t in et(e)}function ro(e,t,r){for(var o=r?Qt:Jt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=en(h,bn(t))),u=Yn(h.length,u),c[l]=!r&&(t||a>=120&&h.length>=120)?new xr(l&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function Co(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Nt.call(s,l,1),Nt.call(e,l,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Yi(o)?Nt.call(e,o,1):jo(e,o)}}return e}function _o(e,t){return e+jn($n()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),(t=jn(t/2))&&(e+=e)}while(t);return n}function Mo(e,t){return aa(ta(e,t,Dl),e+"")}function Eo(e){return Mr(fl(e))}function Oo(e,t){var n=fl(e);return ca(n,Rr(t,0,n.length))}function Ao(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Xo(t,e)).length,s=a-1,l=e;null!=l&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Fs(a)&&(n?a<=t:a=a){var u=t?null:Si(e);if(u)return Dn(u);s=!1,o=wn,c=new xr}else c=t?[]:l;e:for(;++r=r?e:Po(e,t,n)}var Zo=an||function(e){return Lt.clearTimeout(e)};function Jo(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Qo(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function ei(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ti(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=Fs(e),s=t!==i,l=null===t,c=t===t,u=Fs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Xi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function fi(e){return Di(function(t){var n=t.length,r=n,o=vr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(l);if(o&&!s&&"wrapper"==Ri(a))var s=new vr([],!0)}for(r=s?r:n;++r1&&C.reverse(),h&&ul))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=n&v?new xr:i;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(V,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(Be):[]}(r),n)))}function la(e){var t=0,n=0;return function(){var r=Xn(),o=D-(r-n);if(n=r,o>0){if(++t>=k)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ca(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Na(e,n)});function ja(e){var t=fr(e);return t.__chain__=!0,t}function Va(e,t){return t(e)}var Wa=Di(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Va,args:[o],thisArg:i}),new vr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ha=ai(function(e,t,n){ct.call(e,n)?++e[n]:Nr(e,n,1)});var Ga=pi(va),Ua=pi(ya);function qa(e,t){return(ys(e)?Xt:jr)(e,Ii(t,3))}function Ya(e,t){return(ys(e)?Kt:Vr)(e,Ii(t,3))}var Xa=ai(function(e,t,n){ct.call(e,n)?e[n].push(t):Nr(e,n,[t])});var Ka=Mo(function(e,t,r){var o=-1,i="function"==typeof t,a=Cs(e)?n(e.length):[];return jr(e,function(e){a[++o]=i?qt(t,e,r):oo(e,t,r)}),a}),$a=ai(function(e,t,n){Nr(e,n,t)});function Za(e,t){return(ys(e)?en:fo)(e,Ii(t,3))}var Ja=ai(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Qa=Mo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xi(e,t[0],t[1])?t=[]:n>2&&Xi(t[0],t[1],t[2])&&(t=[t[0]]),bo(e,Ur(t,1),[])}),es=fn||function(){return Lt.Date.now()};function ts(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ei(e,M,i,i,i,i,t)}function ns(e,t){var n;if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var rs=Mo(function(e,t,n){var r=y;if(n.length){var o=kn(n,Fi(rs));r|=_}return Ei(e,r,t,n,o)}),os=Mo(function(e,t,n){var r=y|b;if(n.length){var o=kn(n,Fi(os));r|=_}return Ei(t,r,e,n,o)});function is(e,t,n){var r,o,a,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new rt(l);function g(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=a}function v(){var e=es();if(m(e))return y(e);c=ia(v,function(e){var n=t-(e-u);return p?Yn(n,a-(e-d)):n}(e))}function y(e){return c=i,f&&r?g(e):(r=o=i,s)}function b(){var e=es(),n=m(e);if(r=arguments,o=this,u=e,n){if(c===i)return function(e){return d=e,c=ia(v,t),h?g(e):s}(u);if(p)return Zo(c),c=ia(v,t),g(u)}return c===i&&(c=ia(v,t)),s}return t=Gs(t)||0,As(n)&&(h=!!n.leading,a=(p="maxWait"in n)?qn(Gs(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==i&&Zo(c),d=0,r=u=o=c=i},b.flush=function(){return c===i?s:y(es())},b}var as=Mo(function(e,t){return zr(e,1,t)}),ss=Mo(function(e,t,n){return zr(e,Gs(t)||0,n)});function ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(l);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ls.Cache||wr),n}function cs(e){if("function"!=typeof e)throw new rt(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ls.Cache=wr;var us=Ko(function(e,t){var n=(t=1==t.length&&ys(t[0])?en(t[0],bn(Ii())):en(Ur(t,1),bn(Ii()))).length;return Mo(function(r){for(var o=-1,i=Yn(r.length,n);++o=t}),vs=io(function(){return arguments}())?io:function(e){return Ts(e)&&ct.call(e,"callee")&&!Pt.call(e,"callee")},ys=n.isArray,bs=jt?bn(jt):function(e){return Ts(e)&&Qr(e)==ce};function Cs(e){return null!=e&&Os(e.length)&&!Ms(e)}function ws(e){return Ts(e)&&Cs(e)}var xs=Wn||Gl,_s=Vt?bn(Vt):function(e){return Ts(e)&&Qr(e)==q};function Ss(e){if(!Ts(e))return!1;var t=Qr(e);return t==X||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Ms(e){if(!As(e))return!1;var t=Qr(e);return t==K||t==$||t==G||t==te}function Es(e){return"number"==typeof e&&e==Ws(e)}function Os(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var ks=Wt?bn(Wt):function(e){return Ts(e)&&Hi(e)==Z};function Ds(e){return"number"==typeof e||Ts(e)&&Qr(e)==J}function Ps(e){if(!Ts(e)||Qr(e)!=ee)return!1;var t=_t(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==pt}var Ns=Ht?bn(Ht):function(e){return Ts(e)&&Qr(e)==ne};var Ls=Gt?bn(Gt):function(e){return Ts(e)&&Hi(e)==re};function Rs(e){return"string"==typeof e||!ys(e)&&Ts(e)&&Qr(e)==oe}function Fs(e){return"symbol"==typeof e||Ts(e)&&Qr(e)==ie}var Is=Ut?bn(Ut):function(e){return Ts(e)&&Os(e.length)&&!!Ot[Qr(e)]};var zs=wi(po),Bs=wi(function(e,t){return e<=t});function js(e){if(!e)return[];if(Cs(e))return Rs(e)?Ln(e):oi(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Hi(e);return(t==Z?An:t==re?Dn:fl)(e)}function Vs(e){return e?(e=Gs(e))===L||e===-L?(e<0?-1:1)*F:e===e?e:0:0===e?e:0}function Ws(e){var t=Vs(e),n=t%1;return t===t?n?t-n:t:0}function Hs(e){return e?Rr(Ws(e),0,z):0}function Gs(e){if("number"==typeof e)return e;if(Fs(e))return I;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=yn(e);var n=qe.test(e);return n||Xe.test(e)?Dt(e.slice(2),n?2:8):Ue.test(e)?I:+e}function Us(e){return ii(e,al(e))}function qs(e){return null==e?"":zo(e)}var Ys=si(function(e,t){if(Ji(t)||Cs(t))ii(t,il(t),e);else for(var n in t)ct.call(t,n)&&Tr(e,n,t[n])}),Xs=si(function(e,t){ii(t,al(t),e)}),Ks=si(function(e,t,n,r){ii(t,al(t),e,r)}),$s=si(function(e,t,n,r){ii(t,il(t),e,r)}),Zs=Di(Lr);var Js=Mo(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Xi(t[0],t[1],o)&&(r=1);++n1),t}),ii(e,Ni(e),n),r&&(n=Fr(n,p|f|g,Ti));for(var o=t.length;o--;)jo(n,t[o]);return n});var ul=Di(function(e,t){return null==e?{}:function(e,t){return Co(e,t,function(t,n){return tl(e,n)})}(e,t)});function dl(e,t){if(null==e)return{};var n=en(Ni(e),function(e){return[e]});return t=Ii(t),Co(e,n,function(e,n){return t(e,n[0])})}var hl=Mi(il),pl=Mi(al);function fl(e){return null==e?[]:Cn(e,il(e))}var gl=di(function(e,t,n){return t=t.toLowerCase(),e+(n?ml(t):t)});function ml(e){return Sl(qs(e).toLowerCase())}function vl(e){return(e=qs(e))&&e.replace($e,Sn).replace(Ct,"")}var yl=di(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bl=di(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Cl=ui("toLowerCase");var wl=di(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xl=di(function(e,t,n){return e+(n?" ":"")+Sl(t)});var _l=di(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Sl=ui("toUpperCase");function Ml(e,t,n){return e=qs(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(je)||[]}(e):e.match(t)||[]}var El=Mo(function(e,t){try{return qt(e,i,t)}catch(n){return Ss(n)?n:new o(n)}}),Ol=Di(function(e,t){return Xt(t,function(t){t=da(t),Nr(e,t,rs(e[t],e))}),e});function Al(e){return function(){return e}}var Tl=fi(),kl=fi(!0);function Dl(e){return e}function Pl(e){return co("function"==typeof e?e:Fr(e,p))}var Nl=Mo(function(e,t){return function(n){return oo(n,e,t)}}),Ll=Mo(function(e,t){return function(n){return oo(e,n,t)}});function Rl(e,t,n){var r=il(t),o=$r(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=$r(t,il(t)));var i=!(As(n)&&"chain"in n)||!!n.chain,a=Ms(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=oi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,tn([this.value()],arguments))})}),e}function Fl(){}var Il=yi(en),zl=yi($t),Bl=yi(on);function jl(e){return Ki(e)?pn(da(e)):function(e){return function(t){return Zr(t,e)}}(e)}var Vl=Ci(),Wl=Ci(!0);function Hl(){return[]}function Gl(){return!1}var Ul=vi(function(e,t){return e+t},0),ql=_i("ceil"),Yl=vi(function(e,t){return e/t},1),Xl=_i("floor");var Kl=vi(function(e,t){return e*t},1),$l=_i("round"),Zl=vi(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new rt(l);return e=Ws(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=ts,fr.assign=Ys,fr.assignIn=Xs,fr.assignInWith=Ks,fr.assignWith=$s,fr.at=Zs,fr.before=ns,fr.bind=rs,fr.bindAll=Ol,fr.bindKey=os,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},fr.chain=ja,fr.chunk=function(e,t,r){t=(r?Xi(e,t,r):t===i)?1:qn(Ws(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=n(Bn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ws(r))<0&&(r+=o),r=n>r?0:Hs(r);n>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ns(t))&&!(t=zo(t))&&On(e)?$o(Ln(e),0,n):e.split(t,n):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new rt(l);return t=null==t?0:qn(Ws(t),0),Mo(function(n){var r=n[t],o=$o(n,0,t);return r&&tn(o,r),qt(e,this,o)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},fr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:Ws(t))<0?0:t):[]},fr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:Ws(t)))<0?0:t,r):[]},fr.takeRightWhile=function(e,t){return e&&e.length?Wo(e,Ii(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?Wo(e,Ii(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(l);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),is(e,t,{leading:r,maxWait:t,trailing:o})},fr.thru=Va,fr.toArray=js,fr.toPairs=hl,fr.toPairsIn=pl,fr.toPath=function(e){return ys(e)?en(e,da):Fs(e)?[e]:oi(ua(qs(e)))},fr.toPlainObject=Us,fr.transform=function(e,t,n){var r=ys(e),o=r||xs(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Ms(i)?gr(_t(e)):{}}return(o?Xt:Xr)(e,function(e,r,o){return t(n,e,r,o)}),n},fr.unary=function(e){return ts(e,1)},fr.union=Ta,fr.unionBy=ka,fr.unionWith=Da,fr.uniq=function(e){return e&&e.length?Bo(e):[]},fr.uniqBy=function(e,t){return e&&e.length?Bo(e,Ii(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Bo(e,i,t):[]},fr.unset=function(e,t){return null==e||jo(e,t)},fr.unzip=Pa,fr.unzipWith=Na,fr.update=function(e,t,n){return null==e?e:Vo(e,t,Yo(n))},fr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Vo(e,t,Yo(n),r)},fr.values=fl,fr.valuesIn=function(e){return null==e?[]:Cn(e,al(e))},fr.without=La,fr.words=Ml,fr.wrap=function(e,t){return ds(Yo(t),e)},fr.xor=Ra,fr.xorBy=Fa,fr.xorWith=Ia,fr.zip=za,fr.zipObject=function(e,t){return Uo(e||[],t||[],Tr)},fr.zipObjectDeep=function(e,t){return Uo(e||[],t||[],Ao)},fr.zipWith=Ba,fr.entries=hl,fr.entriesIn=pl,fr.extend=Xs,fr.extendWith=Ks,Rl(fr,fr),fr.add=Ul,fr.attempt=El,fr.camelCase=gl,fr.capitalize=ml,fr.ceil=ql,fr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Gs(n))===n?n:0),t!==i&&(t=(t=Gs(t))===t?t:0),Rr(Gs(e),t,n)},fr.clone=function(e){return Fr(e,g)},fr.cloneDeep=function(e){return Fr(e,p|g)},fr.cloneDeepWith=function(e,t){return Fr(e,p|g,t="function"==typeof t?t:i)},fr.cloneWith=function(e,t){return Fr(e,g,t="function"==typeof t?t:i)},fr.conformsTo=function(e,t){return null==t||Ir(e,t,il(t))},fr.deburr=vl,fr.defaultTo=function(e,t){return null==e||e!==e?t:e},fr.divide=Yl,fr.endsWith=function(e,t,n){e=qs(e),t=zo(t);var r=e.length,o=n=n===i?r:Rr(Ws(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},fr.eq=fs,fr.escape=function(e){return(e=qs(e))&&Ee.test(e)?e.replace(Se,Mn):e},fr.escapeRegExp=function(e){return(e=qs(e))&&Le.test(e)?e.replace(Ne,"\\$&"):e},fr.every=function(e,t,n){var r=ys(e)?$t:Wr;return n&&Xi(e,t,n)&&(t=i),r(e,Ii(t,3))},fr.find=Ga,fr.findIndex=va,fr.findKey=function(e,t){return sn(e,Ii(t,3),Xr)},fr.findLast=Ua,fr.findLastIndex=ya,fr.findLastKey=function(e,t){return sn(e,Ii(t,3),Kr)},fr.floor=Xl,fr.forEach=qa,fr.forEachRight=Ya,fr.forIn=function(e,t){return null==e?e:qr(e,Ii(t,3),al)},fr.forInRight=function(e,t){return null==e?e:Yr(e,Ii(t,3),al)},fr.forOwn=function(e,t){return e&&Xr(e,Ii(t,3))},fr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},fr.get=el,fr.gt=gs,fr.gte=ms,fr.has=function(e,t){return null!=e&&Gi(e,t,to)},fr.hasIn=tl,fr.head=Ca,fr.identity=Dl,fr.includes=function(e,t,n,r){e=Cs(e)?e:fl(e),n=n&&!r?Ws(n):0;var o=e.length;return n<0&&(n=qn(o+n,0)),Rs(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&cn(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ws(n);return o<0&&(o=qn(r+o,0)),cn(e,t,o)},fr.inRange=function(e,t,n){return t=Vs(t),n===i?(n=t,t=0):n=Vs(n),function(e,t,n){return e>=Yn(t,n)&&e=-R&&e<=R},fr.isSet=Ls,fr.isString=Rs,fr.isSymbol=Fs,fr.isTypedArray=Is,fr.isUndefined=function(e){return e===i},fr.isWeakMap=function(e){return Ts(e)&&Hi(e)==se},fr.isWeakSet=function(e){return Ts(e)&&Qr(e)==le},fr.join=function(e,t){return null==e?"":Gn.call(e,t)},fr.kebabCase=yl,fr.last=Sa,fr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ws(n))<0?qn(r+o,0):Yn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):ln(e,dn,o,!0)},fr.lowerCase=bl,fr.lowerFirst=Cl,fr.lt=zs,fr.lte=Bs,fr.max=function(e){return e&&e.length?Hr(e,Dl,eo):i},fr.maxBy=function(e,t){return e&&e.length?Hr(e,Ii(t,2),eo):i},fr.mean=function(e){return hn(e,Dl)},fr.meanBy=function(e,t){return hn(e,Ii(t,2))},fr.min=function(e){return e&&e.length?Hr(e,Dl,po):i},fr.minBy=function(e,t){return e&&e.length?Hr(e,Ii(t,2),po):i},fr.stubArray=Hl,fr.stubFalse=Gl,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Kl,fr.nth=function(e,t){return e&&e.length?yo(e,Ws(t)):i},fr.noConflict=function(){return Lt._===this&&(Lt._=ft),this},fr.noop=Fl,fr.now=es,fr.pad=function(e,t,n){e=qs(e);var r=(t=Ws(t))?Nn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return bi(jn(o),n)+e+bi(Bn(o),n)},fr.padEnd=function(e,t,n){e=qs(e);var r=(t=Ws(t))?Nn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=$n();return Yn(e+o*(t-e+kt("1e-"+((o+"").length-1))),t)}return _o(e,t)},fr.reduce=function(e,t,n){var r=ys(e)?nn:gn,o=arguments.length<3;return r(e,Ii(t,4),n,o,jr)},fr.reduceRight=function(e,t,n){var r=ys(e)?rn:gn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Vr)},fr.repeat=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Ws(t),So(qs(e),t)},fr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,n){var r=-1,o=(t=Xo(t,e)).length;for(o||(o=1,e=i);++rR)return[];var n=z,r=Yn(e,z);t=Ii(t),e-=z;for(var o=vn(r,t);++n=a)return e;var l=n-Nn(r);if(l<1)return r;var c=s?$o(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),Ns(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=tt(o.source,qs(Ge.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(zo(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},fr.unescape=function(e){return(e=qs(e))&&Me.test(e)?e.replace(_e,Fn):e},fr.uniqueId=function(e){var t=++ut;return qs(e)+t},fr.upperCase=_l,fr.upperFirst=Sl,fr.each=qa,fr.eachRight=Ya,fr.first=Ca,Rl(fr,function(){var e={};return Xr(fr,function(t,n){ct.call(fr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),fr.VERSION="4.17.21",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Xt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:qn(Ws(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,z),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Dl)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Mo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return oo(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(cs(Ii(e)))},yr.prototype.slice=function(e,t){e=Ws(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ws(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(z)},Xr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=fr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof yr,c=s[0],u=l||ys(t),d=function(e){var t=o.apply(fr,tn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,g=l&&!p;if(!a&&u){t=g?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:Va,args:[d],thisArg:i}),new vr(m,h)}return f&&g?e.apply(this,s):(m=this.thru(d),f?r?m.value()[0]:m.value():m)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ys(o)?o:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Xr(yr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";ct.call(ir,r)||(ir[r]=[]),ir[r].push({name:t,func:n})}}),ir[gi(i,b).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=oi(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,n=this;n instanceof mr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Va,args:[Aa],thisArg:i}),new vr(t,this.__chain__)}return this.thru(Aa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Ho(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Ft&&(fr.prototype[Ft]=function(){return this}),fr}();Lt._=In,(o=function(){return In}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(63),n(116)(e))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ns))return!1;var f=i.get(e),g=i.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&p?new c:void 0;for(i.set(e,t),i.set(t,e);++m=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(this.getMenuCtrl()===e.target&&(!this.props.isOpen&&[g.keyCodes.space,g.keyCodes.enter,g.keyCodes.up,g.keyCodes.down].indexOf(e.which)>-1?(this.toggle(e),setTimeout(function(){return t.getMenuItems()[0].focus()})):this.props.isOpen&&e.which===g.keyCodes.esc&&this.toggle(e)),this.props.isOpen&&"menuitem"===e.target.getAttribute("role"))))if([g.keyCodes.tab,g.keyCodes.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([g.keyCodes.space,g.keyCodes.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([g.keyCodes.down,g.keyCodes.up].indexOf(e.which)>-1||[g.keyCodes.n,g.keyCodes.p].indexOf(e.which)>-1&&e.ctrlKey){var n=this.getMenuItems(),r=n.indexOf(e.target);g.keyCodes.up===e.which||g.keyCodes.p===e.which&&e.ctrlKey?r=0!==r?r-1:n.length-1:(g.keyCodes.down===e.which||g.keyCodes.n===e.which&&e.ctrlKey)&&(r=r===n.length-1?0:r+1),n[r].focus()}else if(g.keyCodes.end===e.which){var o=this.getMenuItems();o[o.length-1].focus()}else if(g.keyCodes.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var i=this.getMenuItems(),a=String.fromCharCode(e.which).toLowerCase(),s=0;s-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return m.head.insertBefore(t,r),e}}var ee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function te(){for(var e=12,t="";e-- >0;)t+=ee[62*Math.random()|0];return t}function ne(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function re(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function oe(e){return e.size!==J.size||e.x!==J.x||e.y!==J.y||e.rotate!==J.rotate||e.flipX||e.flipY}function ie(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ae={x:0,y:0,width:"100%",height:"100%"};function se(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function le(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,l=e.symbol,c=e.title,u=e.maskId,d=e.titleId,h=e.extra,p=e.watchable,f=void 0!==p&&p,g=r.found?r:n,m=g.width,v=g.height,y="fak"===o,b=y?"":"fa-w-".concat(Math.ceil(m/v*16)),C=[O.replacementClass,i?"".concat(O.familyPrefix,"-").concat(i):"",b].filter(function(e){return-1===h.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(h.classes).join(" "),x={children:[],attributes:s({},h.attributes,{"data-prefix":o,"data-icon":i,class:C,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},_=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};f&&(x.attributes[w]=""),c&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(d||te())},children:[c]});var S=s({},x,{prefix:o,iconName:i,main:n,mask:r,maskId:u,transform:a,symbol:l,styles:s({},_,h.styles)}),M=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.maskId,l=e.transform,c=o.width,u=o.icon,d=i.width,h=i.icon,p=ie({transform:l,containerWidth:d,iconWidth:c}),f={tag:"rect",attributes:s({},ae,{fill:"white"})},g=u.children?{children:u.children.map(se)}:{},m={tag:"g",attributes:s({},p.inner),children:[se(s({tag:u.tag,attributes:s({},u.attributes,p.path)},g))]},v={tag:"g",attributes:s({},p.outer),children:[m]},y="mask-".concat(a||te()),b="clip-".concat(a||te()),C={tag:"mask",attributes:s({},ae,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,v]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=h,"g"===t.tag?t.children:[t])},C]};return n.push(w,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},ae)}),{children:n,attributes:r}}(S):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=re(e.styles);if(i.length>0&&(n.style=i),oe(o)){var a=ie({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(S),E=M.children,A=M.attributes;return S.children=E,S.attributes=A,l?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},o,{id:!0===i?"".concat(t,"-").concat(O.familyPrefix,"-").concat(n):i}),children:r}]}]}(S):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(oe(a)&&n.found&&!r.found){var l={x:n.width/n.height/2,y:.5};o.style=re(s({},i,{"transform-origin":"".concat(l.x+a.x/16,"em ").concat(l.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(S)}var ce=function(){},ue=(O.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o").concat(i.map(ge).join(""),"")}var me=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e},t):t};function ve(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ve.prototype=Object.create(Error.prototype),ve.prototype.constructor=ve;var ye={fill:"currentColor"},be={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Ce={tag:"path",attributes:s({},ye,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},we=s({},be,{attributeName:"opacity"});s({},ye,{cx:"256",cy:"364",r:"28"}),s({},be,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},we,{values:"1;0;1;1;0;1;"}),s({},ye,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},we,{values:"1;0;0;0;0;1;"}),s({},ye,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},we,{values:"0;0;1;1;0;0;"}),T.styles;function xe(e){var t=e[0],n=e[1],r=l(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(O.familyPrefix,"-").concat(S.GROUP)},children:[{tag:"path",attributes:{class:"".concat(O.familyPrefix,"-").concat(S.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(O.familyPrefix,"-").concat(S.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}T.styles;var _e='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';function Se(){var e=b,t=C,n=O.familyPrefix,r=O.replacementClass,o=_e;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}function Me(){O.autoAddCss&&!ke&&(Q(Se()),ke=!0)}function Ee(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return ge(e)})}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Oe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return fe(Te.definitions,n,r)||fe(T.styles,n,r)}var Ae,Te=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,o=void 0!==r&&r,i=Object.keys(n).reduce(function(e,t){var r=n[t];return r.icon?e[r.iconName]=r.icon:e[t]=r,e},{});"function"!==typeof T.hooks.addPack||o?T.styles[t]=s({},T.styles[t]||{},i):T.hooks.addPack(t,i),"fas"===t&&e("fa",n)}(t,o[t]),pe()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],o=r.prefix,i=r.iconName,a=r.icon;e[o]||(e[o]={}),e[o][i]=a}),e}}])&&i(t.prototype,n),r&&i(t,r),e}()),ke=!1,De={transform:function(e){return me(e)}},Pe=(Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?J:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,l=void 0===a?null:a,c=t.maskId,u=void 0===c?null:c,d=t.title,h=void 0===d?null:d,p=t.titleId,f=void 0===p?null:p,g=t.classes,m=void 0===g?[]:g,v=t.attributes,y=void 0===v?{}:v,b=t.styles,C=void 0===b?{}:b;if(e){var w=e.prefix,x=e.iconName,_=e.icon;return Ee(s({type:"icon"},e),function(){return Me(),O.autoA11y&&(h?y["aria-labelledby"]="".concat(O.replacementClass,"-title-").concat(f||te()):(y["aria-hidden"]="true",y.focusable="false")),le({icons:{main:xe(_),mask:l?xe(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:x,transform:s({},J,r),symbol:i,title:h,maskId:u,titleId:f,extra:{attributes:y,styles:C,classes:m}})})}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Oe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Oe(r||{})),Ae(n,s({},t,{mask:r}))})}).call(this,n(63),n(371).setImmediate)},function(e,t,n){"use strict";(function(e){var r=n(179),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.a.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();t.a=s}).call(this,n(209)(e))},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i});var r=function(e){return Array.isArray(e)?e[0]:e},o=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var o=/[^.^\]^[]+|(?=\[\]|\.\.)/g,i=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,l=/^\s*(['"]?)(.*?)(\1)\s*$/,c=new r(512),u=new r(512),d=new r(512);function h(e){return c.get(e)||c.set(e,p(e).map(function(e){return e.replace(l,"$2")}))}function p(e){return e.match(o)}function f(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function g(e){return!f(e)&&(function(e){return e.match(a)&&!e.match(i)}(e)||function(e){return s.test(e)}(e))}e.exports={Cache:r,split:p,normalizePath:h,setter:function(e){var t=h(e);return u.get(e)||u.set(e,function(e,n){for(var r=0,o=t.length,i=e;r-1};var u=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(171),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(f){var o=p(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;mr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0p)&&(B=(W=W.replace(" ",":")).length),0=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},v={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var y=/[A-Z]|^ms/g,b=/_EMO_([^_]+?)_([^]*?)_EMO_/g,C=function(e){return 45===e.charCodeAt(1)},w=function(e){return null!=e&&"boolean"!==typeof e},x=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return C(e)?e:e.replace(y,"-$&").toLowerCase()}),_=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(b,function(e,t,n){return M={name:t,styles:n,next:M},t})}return 1===v[e]||C(e)||"number"!==typeof t||0===t?t:t+"px"};function S(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return M={name:n.name,styles:n.styles,next:M},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)M={name:o.name,styles:o.styles,next:M},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},U=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},q=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t-1}function Z(e){return $(e)?window.pageYOffset:e.scrollTop}function J(e,t){$(e)?window.scrollTo(0,t):e.scrollTop=t}function Q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Y,i=Z(e),a=t-i,s=10,l=0;!function t(){var c,u=a*((c=(c=l+=s)/n-1)*c*c+1)+i;J(e,u),l=p)return{placement:"bottom",maxHeight:t};if(_>=p&&!a)return i&&Q(l,S,160),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&w>=r)return i&&Q(l,S,160),{placement:"bottom",maxHeight:a?w-y:_-y};if("auto"===o||a){var E=t;return(!a&&x>=r||a&&C>=r)&&(E=a?C-y-s.controlHeight:x-y-s.controlHeight),{placement:"top",maxHeight:E}}if("bottom"===o)return J(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(C>=p)return{placement:"top",maxHeight:t};if(x>=p&&!a)return i&&Q(l,M,160),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&C>=r){var O=t;return(!a&&x>=r||a&&C>=r)&&(O=a?C-b:x-b),i&&Q(l,M,160),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return c}var ne=function(e){return"auto"===e?"bottom":e},re=function(e){function t(){var e,n,r;B(this,t);for(var o=arguments.length,i=Array(o),a=0;a0,f=u-d-c,g=!1;f>t&&r.isBottom&&(i&&i(e),r.isBottom=!1),p&&r.isTop&&(s&&s(e),r.isTop=!1),p&&t>f?(o&&!r.isBottom&&o(e),h.scrollTop=u,g=!0,r.isBottom=!0):!p&&-t>c&&(a&&!r.isTop&&a(e),h.scrollTop=0,g=!0,r.isTop=!0),g&&r.cancelScroll(e)},r.onWheel=function(e){r.handleEventDelta(e,e.deltaY)},r.onTouchStart=function(e){r.touchStart=e.changedTouches[0].clientY},r.onTouchMove=function(e){var t=r.touchStart-e.changedTouches[0].clientY;r.handleEventDelta(e,t)},r.getScrollTarget=function(e){r.scrollTarget=e},U(r,n)}return H(t,e),j(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"===typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"===typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return a.a.createElement(Ce,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(i.Component),Pe=function(e){function t(){return B(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return H(t,e),j(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=G(e,["isEnabled"]);return t?a.a.createElement(De,n):this.props.children}}]),t}(i.Component);Pe.defaultProps={isEnabled:!0};var Ne,Le,Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label;switch(e){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(o||"Select")+" is focused "+(n?",type to refine list":"")+", press Down to open the menu, "+(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Enter to remove the currently focused value"}},Fe=function(e,t){var n=t.value;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+n+", deselected.";case"select-option":return"option "+n+", selected."}},Ie=function(e){function t(){return B(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return H(t,e),j(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,s=e.hasValue,l=e.emotion;return a.a.createElement("div",{className:r(l.css(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":s},n)},t)}}]),t}(i.Component),ze=(Ne=["@keyframes "," {\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n };"],Le=["@keyframes "," {\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n };"],Object.freeze(Object.defineProperties(Ne,{raw:{value:Object.freeze(Le)}}))),Be=function(e){var t=e.size,n=e.emotion,r=G(e,["size","emotion"]);return a.a.createElement("svg",W({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:n.css({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},r))},je=function(e){return a.a.createElement(Be,W({size:20},e),a.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ve=function(e){return a.a.createElement(Be,W({size:20},e),a.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},We=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},He=We,Ge=We,Ue=!1,qe=function(e){var t=e.color,n=e.delay,r=e.offset,o=e.emotion;return a.a.createElement("span",{className:o.css({animationDuration:"1s",animationDelay:n+"ms",animationIterationCount:"infinite",animationName:"react-select-loading-indicator",animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},Ye=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isFocused,s=e.isRtl,l=e.emotion,c=e.theme.colors,u=i?c.neutral80:c.neutral20;return Ue||(l.injectGlobal(ze,"react-select-loading-indicator"),Ue=!0),a.a.createElement("div",W({},o,{className:n(l.css(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),a.a.createElement(qe,{emotion:l,color:u,delay:0,offset:s}),a.a.createElement(qe,{emotion:l,color:u,delay:160,offset:!0}),a.a.createElement(qe,{emotion:l,color:u,delay:320,offset:!s}))};Ye.defaultProps={size:4};var Xe=function(e){return{background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Ke=function(e){var t=e.children,n=e.innerProps;return a.a.createElement("div",n,t)},$e=Ke,Ze=Ke,Je=function(e){function t(){return B(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return H(t,e),j(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps,r=e.emotion;return a.a.createElement("div",n,t||a.a.createElement(je,{size:14,emotion:r}))}}]),t}(i.Component),Qe=function(e){function t(){return B(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return H(t,e),j(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,s=e.getStyles,l=e.innerProps,c=e.isDisabled,u=e.removeProps,d=e.selectProps,h=e.emotion,p=r.Container,f=r.Label,g=r.Remove,m=W({className:o(h.css(s("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},l),v={className:o(h.css(s("multiValueLabel",this.props)),{"multi-value__label":!0},n)},y=W({className:o(h.css(s("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},u);return a.a.createElement(p,{data:i,innerProps:m,selectProps:d},a.a.createElement(f,{data:i,innerProps:v,selectProps:d},t),a.a.createElement(g,{data:i,innerProps:y,selectProps:d,emotion:h}))}}]),t}(i.Component);Qe.defaultProps={cropWithEllipsis:!0};var et={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.emotion;return a.a.createElement("div",W({},i,{className:r(s.css(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||a.a.createElement(je,{emotion:s}))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,s=e.isFocused,l=e.innerRef,c=e.innerProps,u=e.emotion;return a.a.createElement("div",W({ref:l,className:n(u.css(r("control",e)),{control:!0,"control--is-disabled":i,"control--is-focused":s},o)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.emotion;return a.a.createElement("div",W({},i,{className:r(s.css(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||a.a.createElement(Ve,{emotion:s}))},DownChevron:Ve,CrossIcon:je,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,s=e.headingProps,l=e.label,c=e.theme,u=e.emotion,d=e.selectProps;return a.a.createElement("div",{className:r(u.css(o("group",e)),{group:!0},n)},a.a.createElement(i,W({},s,{selectProps:d,emotion:u,theme:c,getStyles:o,cx:r}),l),a.a.createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=e.emotion,s=(e.selectProps,G(e,["className","cx","getStyles","theme","emotion","selectProps"]));return a.a.createElement("div",W({className:n(i.css(r("groupHeading",W({theme:o},s))),{"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.emotion;return a.a.createElement("div",{className:r(i.css(o("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.emotion;return a.a.createElement("span",W({},o,{className:n(i.css(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,s=e.isDisabled,l=e.theme,c=e.emotion,u=(e.selectProps,G(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","emotion","selectProps"]));return a.a.createElement("div",{className:c.css(r("input",W({theme:l},u)))},a.a.createElement(L.a,W({className:n(null,{input:!0},t),inputRef:o,inputStyle:Xe(i),disabled:s},u)))},LoadingIndicator:Ye,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,s=e.innerProps,l=r(e.emotion.css(o("menu",e)),{menu:!0},n);return a.a.createElement("div",W({className:l},s,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,s=e.innerRef,l=e.emotion;return a.a.createElement("div",{className:r(l.css(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":i},n),ref:s},t)},MenuPortal:ce,LoadingMessage:le,NoOptionsMessage:se,MultiValue:Qe,MultiValueContainer:$e,MultiValueLabel:Ze,MultiValueRemove:Je,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,s=e.isFocused,l=e.isSelected,c=e.innerRef,u=e.innerProps,d=e.emotion;return a.a.createElement("div",W({ref:c,className:r(d.css(o("option",e)),{option:!0,"option--is-disabled":i,"option--is-focused":s,"option--is-selected":l},n)},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.emotion;return a.a.createElement("div",W({className:r(s.css(o("placeholder",e)),{placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,s=e.isDisabled,l=e.isRtl,c=e.emotion;return a.a.createElement("div",W({className:r(c.css(o("container",e)),{"--is-disabled":s,"--is-rtl":l},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,s=e.innerProps,l=e.emotion;return a.a.createElement("div",W({className:r(l.css(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":i},n)},s),t)},ValueContainer:Ie},tt=function(e){return W({},et,e.components)},nt={clearIndicator:Ge,container:function(e){var t=e.isDisabled;return{direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px "+o.primary:null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:He,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ae,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return V(t={},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),V(t,"backgroundColor",a.neutral0),V(t,"borderRadius",o),V(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),V(t,"marginBottom",i.menuGutter),V(t,"marginTop",i.menuGutter),V(t,"position","absolute"),V(t,"width","100%"),V(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:ie,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:2*i.baseUnit+"px "+3*i.baseUnit+"px",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - "+2*r.baseUnit+"px)",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:t.baseUnit/2+"px "+2*t.baseUnit+"px",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var rt,ot={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},it={backspaceRemovesValue:!0,blurInputOnSelect:ee(),captureMenuScroll:!ee(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=W({ignoreCase:!0,ignoreAccents:!0,stringify:ve,trim:!0,matchFrom:"any"},rt),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?me(t):t,c=a?me(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=ge(l),c=ge(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},at=1,st=F(function(e){return P(e?{nonce:e}:{})}),lt=function(e){function t(e){B(this,t);var n=U(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));ct.call(n);var r=e.value;n.cacheComponents=F(n.cacheComponents,pe).bind(n),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++at);var o=K(r),i=n.buildMenuOptions(e,o);return n.emotion=st(e.nonce),n.state.menuOptions=i,n.state.selectValue=o,n}return H(t,e),j(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==o){var i=K(e.value),a=this.buildMenuOptions(e,i),s=this.getNextFocusedValue(i),l=this.getNextFocusedOption(a.focusable);this.setState({menuOptions:a,selectValue:i,focusedOption:l,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?J(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o-1&&(i=a)}this.scrollToFocusedOptionOnUpdate=!0,this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var l=i.length-1,c=-1;if(i.length){switch(e){case"previous":c=0===s?0:-1===s?l:s-1;break;case"next":s>-1&&s0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions.focusable;if(o.length){var i=0,a=o.indexOf(r);r||(a=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?i=a>0?a-1:o.length-1:"down"===e?i=(a+1)%o.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(ot):W({},ot,this.props.theme):ot}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,s=o.isRtl,l=o.options,c=this.state.selectValue,u=this.hasValue();return{cx:function(e,t,n,r){var o=[t,r];if(n&&e)for(var i in n)n.hasOwnProperty(i)&&n[i]&&o.push(""+X(e,i));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}.bind(null,i),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:a,isRtl:s,options:l,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme(),emotion:this.emotion}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"===typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"===typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some(function(e){return n.getOptionValue(e)===r})}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),s=n.getOptionLabel(e),l=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:l,data:e},o))){var c=i?void 0:function(){return n.onOptionHover(e)},u=i?void 0:function(){return n.selectOption(e)},d=n.getElementId("option")+"-"+r;return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,role:"option",tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:d,label:s,type:"option",value:l}}};return i.reduce(function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map(function(t,n){var o=a(t,r+"-"+n);return o&&!o.isDisabled&&e.focusable.push(t),o}).filter(Boolean);if(o.length){var i=n.getElementId("group")+"-"+r;e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,""+r);s&&(e.render.push(s),s.isDisabled||e.focusable.push(t))}return e},{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,l=i.inputValue,c=i.screenReaderStatus;return(r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"")+" "+(o&&s?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option "+n(t)+" focused, "+(r.indexOf(t)+1)+" of "+r.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:l,screenReaderMessage:c({count:this.countOptions()})})+" "+t}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,s=this.components.Input,l=this.state.inputIsHidden,c=r||this.getElementId("input");if(!n)return a.a.createElement(be,{id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Y,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:"",emotion:this.emotion});var u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},d=this.commonProps,h=d.cx,p=d.theme,f=d.selectProps;return a.a.createElement(s,W({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:h,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:f,spellCheck:"false",tabIndex:i,theme:p,type:"text",value:o,emotion:this.emotion},u))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,h=u.isDisabled,p=u.isMulti,f=u.inputValue,g=u.placeholder,m=this.state,v=m.selectValue,y=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!d)return f?null:a.a.createElement(l,W({},c,{key:"placeholder",isDisabled:h,isFocused:b}),g);if(p)return v.map(function(t){var s=t===y;return a.a.createElement(n,W({},c,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:h,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var C=v[0];return a.a.createElement(s,W({},c,{data:C,isDisabled:h}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,W({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return a.a.createElement(e,W({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.a.createElement(n,W({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,W({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,h=this.state,p=h.focusedOption,f=h.menuOptions,g=this.props,m=g.captureMenuScroll,v=g.inputValue,y=g.isLoading,b=g.loadingMessage,C=g.minMenuHeight,w=g.maxMenuHeight,x=g.menuIsOpen,_=g.menuPlacement,S=g.menuPosition,M=g.menuPortalTarget,E=g.menuShouldBlockScroll,O=g.menuShouldScrollIntoView,A=g.noOptionsMessage,T=g.onMenuScrollToTop,k=g.onMenuScrollToBottom;if(!x)return null;var D=function(t){var n=p===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,a.a.createElement(u,W({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))},P=void 0;if(this.hasOptions())P=f.render.map(function(t){if("group"===t.type){t.type;var o=G(t,["type"]),i=t.key+"-heading";return a.a.createElement(n,W({},d,o,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return D(e)}))}if("option"===t.type)return D(t)});else if(y){var N=b({inputValue:v});if(null===N)return null;P=a.a.createElement(l,d,N)}else{var L=A({inputValue:v});if(null===L)return null;P=a.a.createElement(c,d,L)}var R={minMenuHeight:C,maxMenuHeight:w,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:O},F=a.a.createElement(re,W({},d,R),function(t){var n=t.ref,r=t.placerProps,s=r.placement,l=r.maxHeight;return a.a.createElement(o,W({},d,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),a.a.createElement(Pe,{isEnabled:m,onTopArrive:T,onBottomArrive:k},a.a.createElement(ke,{emotion:e.emotion,isEnabled:E},a.a.createElement(i,W({},d,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:l}),P))))});return M||"fixed"===S?a.a.createElement(s,W({},d,{appendTo:M,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return a.a.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return a.a.createElement("input",{key:"i-"+n,name:i,type:"hidden",value:e.getOptionValue(t)})}):a.a.createElement("input",{name:i,type:"hidden"});return a.a.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return a.a.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?a.a.createElement(ye,{emotion:this.emotion,"aria-live":"assertive"},a.a.createElement("p",{id:"aria-selection-event"},"\xa0",this.state.ariaLiveSelection),a.a.createElement("p",{id:"aria-context"},"\xa0",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return a.a.createElement(r,W({},d,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),a.a.createElement(t,W({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u}),a.a.createElement(o,W({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.a.createElement(n,W({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(i.Component);lt.defaultProps=it;var ct=function(){var e=this;this.state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,isComposing:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},this.blockOptionHover=!1,this.clearFocusValueOnUpdate=!1,this.hasGroups=!1,this.initialTouchX=0,this.initialTouchY=0,this.instancePrefix="",this.openAfterFocus=!1,this.scrollToFocusedOptionOnUpdate=!1,this.controlRef=null,this.getControlRef=function(t){e.controlRef=t},this.focusedOptionRef=null,this.getFocusedOptionRef=function(t){e.focusedOptionRef=t},this.menuListRef=null,this.getMenuListRef=function(t){e.menuListRef=t},this.inputRef=null,this.getInputRef=function(t){e.inputRef=t},this.cacheComponents=function(t){e.components=tt({components:t})},this.focus=this.focusInput,this.blur=this.blurInput,this.onChange=function(t,n){var r=e.props,o=r.onChange,i=r.name;o(t,W({},n,{name:i}))},this.setValue=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments[2],o=e.props,i=o.closeMenuOnSelect,a=o.isMulti;e.onInputChange("",{action:"set-value"}),i&&(e.inputIsHiddenAfterUpdate=!a,e.onMenuClose()),e.clearFocusValueOnUpdate=!0,e.onChange(t,{action:n,option:r})},this.selectOption=function(t){var n=e.props,r=n.blurInputOnSelect;if(n.isMulti){var o=e.state.selectValue;if(e.isOptionSelected(t,o)){var i=e.getOptionValue(t);e.setValue(o.filter(function(t){return e.getOptionValue(t)!==i}),"deselect-option",t),e.announceAriaLiveSelection({event:"deselect-option",context:{value:e.getOptionLabel(t)}})}else e.setValue([].concat(q(o),[t]),"select-option",t),e.announceAriaLiveSelection({event:"select-option",context:{value:e.getOptionLabel(t)}})}else e.setValue(t,"select-option"),e.announceAriaLiveSelection({event:"select-option",context:{value:e.getOptionLabel(t)}});r&&e.blurInput()},this.removeValue=function(t){var n=e.state.selectValue,r=e.getOptionValue(t);e.onChange(n.filter(function(t){return e.getOptionValue(t)!==r}),{action:"remove-value",removedValue:t}),e.announceAriaLiveSelection({event:"remove-value",context:{value:t?e.getOptionLabel(t):void 0}}),e.focusInput()},this.clearValue=function(){var t=e.props.isMulti;e.onChange(t?[]:null,{action:"clear"})},this.popValue=function(){var t=e.state.selectValue,n=t[t.length-1];e.announceAriaLiveSelection({event:"pop-value",context:{value:n?e.getOptionLabel(n):void 0}}),e.onChange(t.slice(0,t.length-1),{action:"pop-value",removedValue:n})},this.getOptionLabel=function(t){return e.props.getOptionLabel(t)},this.getOptionValue=function(t){return e.props.getOptionValue(t)},this.getStyles=function(t,n){var r=nt[t](n);r.boxSizing="border-box";var o=e.props.styles[t];return o?o(r,n):r},this.getElementId=function(t){return e.instancePrefix+"-"+t},this.getActiveDescendentId=function(){var t=e.props.menuIsOpen,n=e.state,r=n.menuOptions,o=n.focusedOption;if(o&&t){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}},this.announceAriaLiveSelection=function(t){var n=t.event,r=t.context;e.setState({ariaLiveSelection:Fe(n,r)})},this.announceAriaLiveContext=function(t){var n=t.event,r=t.context;e.setState({ariaLiveContext:Re(n,W({},r,{label:e.props["aria-label"]}))})},this.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),e.focusInput())},this.onMenuMouseMove=function(t){e.blockOptionHover=!1},this.onControlMouseDown=function(t){var n=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?"INPUT"!==t.target.tagName&&e.onMenuClose():e.openMenu("first"):(n&&(e.openAfterFocus=!0),e.focusInput()),"INPUT"!==t.target.tagName&&t.preventDefault()},this.onDropdownIndicatorMouseDown=function(t){if((!t||"mousedown"!==t.type||0===t.button)&&!e.props.isDisabled){var n=e.props,r=n.isMulti,o=n.menuIsOpen;e.focusInput(),o?(e.inputIsHiddenAfterUpdate=!r,e.onMenuClose()):e.openMenu("first"),t.preventDefault(),t.stopPropagation()}},this.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(e.clearValue(),t.stopPropagation(),e.openAfterFocus=!1,setTimeout(function(){return e.focusInput()}))},this.onScroll=function(t){"boolean"===typeof e.props.closeMenuOnScroll?t.target instanceof HTMLElement&&$(t.target)&&e.props.onMenuClose():"function"===typeof e.props.closeMenuOnScroll&&e.props.closeMenuOnScroll(t)&&e.props.onMenuClose()},this.onCompositionStart=function(){e.setState({isComposing:!0})},this.onCompositionEnd=function(){e.setState({isComposing:!1})},this.onTouchStart=function(t){var n=t.touches.item(0);n&&(e.initialTouchX=n.clientX,e.initialTouchY=n.clientY,e.userIsDragging=!1)},this.onTouchMove=function(t){var n=t.touches.item(0);if(n){var r=Math.abs(n.clientX-e.initialTouchX),o=Math.abs(n.clientY-e.initialTouchY);e.userIsDragging=r>5||o>5}},this.onTouchEnd=function(t){if(!e.userIsDragging){var n=t.target;e.controlRef&&!e.controlRef.contains(n)&&e.menuListRef&&!e.menuListRef.contains(n)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0}},this.onControlTouchEnd=function(t){e.userIsDragging||e.onControlMouseDown(t)},this.onClearIndicatorTouchEnd=function(t){e.userIsDragging||e.onClearIndicatorMouseDown(t)},this.onDropdownIndicatorTouchEnd=function(t){e.userIsDragging||e.onDropdownIndicatorMouseDown(t)},this.handleInputChange=function(t){var n=t.currentTarget.value;e.inputIsHiddenAfterUpdate=!1,e.onInputChange(n,{action:"input-change"}),e.onMenuOpen()},this.onInputFocus=function(t){var n=e.props,r=n.isSearchable,o=n.isMulti;e.props.onFocus&&e.props.onFocus(t),e.inputIsHiddenAfterUpdate=!1,e.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),e.setState({isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu("first"),e.openAfterFocus=!1},this.onInputBlur=function(t){e.menuListRef&&e.menuListRef.contains(document.activeElement)?e.inputRef.focus():(e.props.onBlur&&e.props.onBlur(t),e.onInputChange("",{action:"input-blur"}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1}))},this.onOptionHover=function(t){e.blockOptionHover||e.state.focusedOption===t||e.setState({focusedOption:t})},this.shouldHideSelectedOptions=function(){var t=e.props,n=t.hideSelectedOptions,r=t.isMulti;return void 0===n?r:n},this.onKeyDown=function(t){var n=e.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,h=n.openMenuOnFocus,p=e.state,f=p.isComposing,g=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!l&&("function"!==typeof u||(u(t),!t.defaultPrevented))){switch(e.blockOptionHover=!0,t.key){case"ArrowLeft":if(!r||a)return;e.focusValue("previous");break;case"ArrowRight":if(!r||a)return;e.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)e.removeValue(m);else{if(!o)return;r?e.popValue():s&&e.clearValue()}break;case"Tab":if(f)return;if(t.shiftKey||!c||!d||!g||h&&e.isOptionSelected(g,v))return;e.selectOption(g);break;case"Enter":if(c){if(!g)return;if(f)return;e.selectOption(g)}else e.focusOption("first");break;case"Escape":c?(e.inputIsHiddenAfterUpdate=!1,e.onInputChange("",{action:"menu-close"}),e.onMenuClose()):s&&i&&e.clearValue();break;case" ":if(a)return;if(!c){e.openMenu("first");break}if(!g)return;e.selectOption(g);break;case"ArrowUp":c?e.focusOption("up"):e.openMenu("last");break;case"ArrowDown":c?e.focusOption("down"):e.openMenu("first");break;case"PageUp":if(!c)return;e.focusOption("pageup");break;case"PageDown":if(!c)return;e.focusOption("pagedown");break;case"Home":if(!c)return;e.focusOption("first");break;case"End":if(!c)return;e.focusOption("last");break;default:return}t.preventDefault()}}},ut=function(e){var t,n;return n=t=function(t){function n(){var e,t,r;B(this,n);for(var o=arguments.length,i=Array(o),a=0;a1?n-1:0),o=1;o=0||(o[n]=e[n]);return o}(e,["code","style","size"]);return o.a.createElement("img",i({},c,{alt:t,src:"https://unpkg.com/"+a+"@"+s+"/assets/"+t+".svg",style:i({},n,{height:l+"px",width:l+"px",display:"inline-block"})}))}},function(e,t,n){var r=n(478),o=n(483);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?u:10===e?d:u||d}function p(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function g(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e)}(a)?a:p(a);var s=f(e);return s.host?g(s.host,t):g(e,f(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function v(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],h(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=h(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var C=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=h(10),o="HTML"===t.nodeName,i=M(e),s=M(t),c=l(e),u=a(t),d=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=S({top:i.top-s.top-d,left:i.left-s.left-p,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var g=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);f.top-=d-g,f.bottom-=d-g,f.left-=p-v,f.right-=p-v,f.marginTop=g,f.marginLeft=v}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),o=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(f,t)),f}function O(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function A(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},u=o?O(e):g(e,c(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),s=t?0:m(n,"left");return S({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(u,o);else{var d=void 0;"scrollParent"===r?"BODY"===(d=l(s(t))).nodeName&&(d=e.ownerDocument.documentElement):d="window"===r?e.ownerDocument.documentElement:r;var h=E(d,u,o);if("HTML"!==d.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===a(t,"position"))return!0;var r=s(t);return!!r&&e(r)}(u))i=h;else{var p=b(e.ownerDocument),f=p.height,v=p.width;i.top+=h.top-h.marginTop,i.bottom=f+h.top,i.left+=h.left-h.marginLeft,i.right=v+h.left}}var y="number"===typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function T(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=A(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return _({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return E(n,r?O(t):g(t,c(n)),r)}function D(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function P(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=D(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[P(s)],o}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=L(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))}),t}function F(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function I(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=q.indexOf(e),r=q.slice(n+1).concat(q.slice(0,n));return t?r.reverse():r}var X={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function K(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(L(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){V(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var $={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:x({},l,i[l]),end:x({},l,i[l]+i[c]-a[c])};e.offsets.popper=_({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=V(+n)?[+n,0]:K(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=I("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=A(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),x({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!G(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),p=c?"left":"top",f=c?"bottom":"right",g=D(r)[u];l[f]-gs[f]&&(e.offsets.popper[h]+=l[h]+g-s[f]),e.offsets.popper=S(e.offsets.popper);var m=l[h]+l[u]/2-g/2,v=a(e.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),C=m-e.offsets.popper[h]-y-b;return C=Math.max(Math.min(s[u]-g,C),0),e.arrowElement=r,e.offsets.arrow=(x(n={},h,Math.round(C)),x(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=A(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=P(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case X.FLIP:a=[r,o];break;case X.CLOCKWISE:a=Y(r);break;case X.COUNTERCLOCKWISE:a=Y(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=P(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),g=d(c.top)d(n.bottom),v="left"===r&&p||"right"===r&&f||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&f||!y&&"start"===i&&g||!y&&"end"===i&&m),C=!!t.flipVariationsByContent&&(y&&"start"===i&&f||y&&"end"===i&&p||!y&&"start"===i&&m||!y&&"end"===i&&g),w=b||C;(h||v||w)&&(e.flipped=!0,(h||v)&&(r=a[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=_({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=P(t),e.offsets.popper=S(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!G(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};C(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=_({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){r.options.modifiers[t]=_({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return _({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=T(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),e}();Z.Utils=("undefined"!==typeof window?window:e).PopperUtils,Z.placements=U,Z.Defaults=$,t.a=Z}).call(this,n(63))},function(e,t,n){"use strict";var r=n(56),o=Object(r.a)(Object,"create");var i=function(){this.__data__=o?o(null):{},this.size=0};var a=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},s="__lodash_hash_undefined__",l=Object.prototype.hasOwnProperty;var c=function(e){var t=this.__data__;if(o){var n=t[e];return n===s?void 0:n}return l.call(t,e)?t[e]:void 0},u=Object.prototype.hasOwnProperty;var d=function(e){var t=this.__data__;return o?void 0!==t[e]:u.call(t,e)},h="__lodash_hash_undefined__";var p=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?h:t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++te.length)&&(t=e.length);for(var n=0,r=new Array(t);no?new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(i(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var o=e.minDate;return o&&r-1&&e%1==0&&e<=r}},function(e,t,n){"use strict";var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.a=function(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&o.test(e))&&e>-1&&e%1==0&&eo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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 i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=c(e,"#"),o=r(n,2),i=o[0],a=o[1];return Object.assign({url:i.split("?")[0]||"",query:v(g(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:p(a,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query),s=t.stringify(a,n);s&&(s="?".concat(s));var l=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#".concat(h(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(l)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var o=t.parseUrl(e,r),i=o.url,a=o.query,s=o.fragmentIdentifier;return t.stringifyUrl({url:i,query:u(a,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var o=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,o,r)}},function(e,t,n){"use strict";n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",function(){return c}),n.d(t,"applyMiddleware",function(){return m}),n.d(t,"bindActionCreators",function(){return f}),n.d(t,"combineReducers",function(){return h}),n.d(t,"compose",function(){return g}),n.d(t,"createStore",function(){return d});var r=n(121);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=a.MATCHES?p=g:p>m&&(p=m),p>i&&(i=p,l=o,c=v,f=d),{rankedItem:f,rank:i,keyIndex:l,keyThreshold:c}},{rank:a.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}(r,o,t,n),c=l.rankedItem,d=l.rank,p=l.keyIndex,f=l.keyThreshold;d>=(void 0===f?s:f)&&e.push({rankedItem:c,item:r,rank:d,index:i,keyIndex:p});return e},[]).sort(function(e,t){return function(e,t,n){var r=e.rank,o=e.keyIndex,i=t.rank,a=t.keyIndex;return r===i?o===a?n(e,t):oi?-1:1}(e,t,d)}).map(function(e){return e.item})}function u(e,t,n){if(e=d(e,n),(t=d(t,n)).length>e.length)return a.NO_MATCH;if(e===t)return a.CASE_SENSITIVE_EQUAL;var r=function(e){var t=e.toLowerCase()!==e,n=e.indexOf("-")>=0,r=e.indexOf("_")>=0;if(!t&&!r&&n)return s.KEBAB;if(!t&&r&&!n)return s.SNAKE;if(t&&!n&&!r){var o=e[0].toUpperCase()===e[0];return o?s.PASCAL:s.CAMEL}return s.NO_CASE}(e),o=function(e,t,n){var r=e.toLowerCase().indexOf(t.toLowerCase());switch(n){case s.SNAKE:return"_"===e[r-1];case s.KEBAB:return"-"===e[r-1];case s.PASCAL:case s.CAMEL:return-1!==r&&e[r]===e[r].toUpperCase();default:return!1}}(e,t,r),i=function(e,t,n){var r=null;switch(n){case s.SNAKE:r="_";break;case s.KEBAB:r="-";break;case s.PASCAL:case s.CAMEL:r=/(?=[A-Z])/;break;default:r=null}var o=e.split(r);return t.toLowerCase().split("").reduce(function(e,t,n){var r=o[n];return e&&r&&r[0].toLowerCase()===t},!0)}(e,t,r);return(e=e.toLowerCase())===(t=t.toLowerCase())?a.EQUAL+r:0===e.indexOf(t)?a.STARTS_WITH+r:-1!==e.indexOf(" "+t)?a.WORD_STARTS_WITH+r:o?a.STRING_CASE+r:r>0&&i?a.STRING_CASE_ACRONYM+r:-1!==e.indexOf(t)?a.CONTAINS+r:1===t.length?a.NO_MATCH:-1!==function(e){var t="";return e.split(" ").forEach(function(e){e.split("-").forEach(function(e){t+=e.substr(0,1)})}),t}(e).indexOf(t)?a.ACRONYM+r:function(e,t){var n=0,r=0;function o(e,t,r){for(var o=r;o-1;if(!c)return a.NO_MATCH}return function(e){var r=n/t.length;return a.MATCHES+r*(1/e)}(r-i)}(e,t)}function d(e,t){return e=""+e,t.keepDiacritics||(e=i()(e)),e}function h(e){return"string"===typeof e&&(e={key:e}),Object(r.a)({maxRanking:1/0,minRanking:-1/0},e)}t.a=c},function(e,t,n){"use strict";function r(e){return getComputedStyle(e)}function o(e,t){for(var n in t){var r=t[n];"number"===typeof r&&(r+="px"),e.style[n]=r}return e}function i(e){var t=document.createElement("div");return t.className=e,t}var a="undefined"!==typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(e,t){if(!a)throw new Error("No element matching method supported");return a.call(e,t)}function l(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){return Array.prototype.filter.call(e.children,function(e){return s(e,t)})}var u={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},d={x:null,y:null};function h(e,t){var n=e.element.classList,r=u.state.scrolling(t);n.contains(r)?clearTimeout(d[t]):n.add(r)}function p(e,t){d[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(u.state.scrolling(t))},e.settings.scrollingThreshold)}var f=function(e){this.element=e,this.handlers={}},g={isEmpty:{configurable:!0}};f.prototype.bind=function(e,t){"undefined"===typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},f.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter(function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)})},f.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},g.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(f.prototype,g);var m=function(){this.eventElements=[]};function v(e){if("function"===typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}m.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new f(e),this.eventElements.push(t)),t},m.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},m.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},m.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},m.prototype.once=function(e,t,n){var r=this.eventElement(e);r.bind(t,function e(o){r.unbind(t,e),n(o)})};var y=function(e,t,n,r,o){var i;if(void 0===r&&(r=!0),void 0===o&&(o=!1),"top"===t)i=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");i=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,o){var i=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0);void 0===o&&(o=!1);var d=e.element;e.reach[l]=null,d[s]<1&&(e.reach[l]="start");d[s]>e[i]-e[a]-1&&(e.reach[l]="end");t&&(d.dispatchEvent(v("ps-scroll-"+l)),t<0?d.dispatchEvent(v("ps-scroll-"+c)):t>0&&d.dispatchEvent(v("ps-scroll-"+u)),r&&function(e,t){h(e,t),p(e,t)}(e,l));e.reach[l]&&(t||o)&&d.dispatchEvent(v("ps-"+l+"-reach-"+e.reach[l]))}(e,n,i,r,o)};function b(e){return parseInt(e,10)||0}var C={isWebKit:"undefined"!==typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!==typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!==typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!==typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},w=function(e){var t=e.element,n=Math.floor(t.scrollTop);e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(c(t,u.element.rail("x")).forEach(function(e){return l(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(c(t,u.element.rail("y")).forEach(function(e){return l(e)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},r=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft;t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-r:n.top=t.scrollbarXTop+r;o(t.scrollbarXRail,n);var i={top:r,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:i.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+e.scrollLeft;o(t.scrollbarYRail,i),o(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),o(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(u.state.active("x")):(t.classList.remove(u.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(u.state.active("y")):(t.classList.remove(u.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)};function x(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function _(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=t[6],c=t[7],d=t[8],f=e.element,g=null,m=null,v=null;function y(t){f[l]=g+v*(t[o]-m),h(e,c),w(e),t.stopPropagation(),t.preventDefault()}function b(){p(e,c),e[d].classList.remove(u.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",y)}e.event.bind(e[a],"mousedown",function(t){g=f[l],m=t[o],v=(e[r]-e[n])/(e[i]-e[s]),e.event.bind(e.ownerDocument,"mousemove",y),e.event.once(e.ownerDocument,"mouseup",b),e[d].classList.add(u.state.clicking),t.stopPropagation(),t.preventDefault()})}var S={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,w(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,w(e),t.stopPropagation()})},"drag-thumb":function(e){_(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),_(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(s(t,":hover")||s(e.scrollbarX,":focus")||s(e.scrollbarY,":focus"))){var r,o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(s(r=o,"input,[contenteditable]")||s(r,"select,[contenteditable]")||s(r,"textarea,[contenteditable]")||s(r,"button,[contenteditable]"))return}var i=0,a=0;switch(n.which){case 37:i=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:a=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:i=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:a=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:a=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==i||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=i,w(e),function(n,r){var o=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===o&&r>0||o>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var i=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===i&&n<0||i>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(i,a)&&n.preventDefault())}})},wheel:function(e){var t=e.element;function n(n){var o=function(e){var t=e.deltaX,n=-1*e.deltaY;return"undefined"!==typeof t&&"undefined"!==typeof n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!==t&&n!==n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),i=o[0],a=o[1];if(!function(e,n,o){if(!C.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(u.element.consuming))return!0;var a=r(i);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var s=i.scrollHeight-i.clientHeight;if(s>0&&!(0===i.scrollTop&&o>0)&&!(i.scrollTop===s&&o<0))return!0;var l=i.scrollWidth-i.clientWidth;if(l>0&&!(0===i.scrollLeft&&n<0)&&!(i.scrollLeft===l&&n>0))return!0}i=i.parentNode}return!1}(n.target,i,a)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?t.scrollTop-=a*e.settings.wheelSpeed:t.scrollTop+=i*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(i?t.scrollLeft+=i*e.settings.wheelSpeed:t.scrollLeft-=a*e.settings.wheelSpeed,s=!0):(t.scrollTop-=a*e.settings.wheelSpeed,t.scrollLeft+=i*e.settings.wheelSpeed),w(e),(s=s||function(n,r){var o=Math.floor(t.scrollTop),i=0===t.scrollTop,a=o+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(r)>Math.abs(n)?i||a:s||l)||!e.settings.wheelPropagation}(i,a))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}"undefined"!==typeof window.onwheel?e.event.bind(t,"wheel",n):"undefined"!==typeof window.onmousewheel&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(C.supportsTouch||C.supportsIePointer){var t=e.element,n={},o=0,i={},a=null;C.supportsTouch?(e.event.bind(t,"touchstart",d),e.event.bind(t,"touchmove",h),e.event.bind(t,"touchend",p)):C.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",d),e.event.bind(t,"pointermove",h),e.event.bind(t,"pointerup",p)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",d),e.event.bind(t,"MSPointerMove",h),e.event.bind(t,"MSPointerUp",p)))}function s(n,r){t.scrollTop-=r,t.scrollLeft-=n,w(e)}function l(e){return e.targetTouches?e.targetTouches[0]:e}function c(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!(!e.targetTouches||1!==e.targetTouches.length)||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function d(e){if(c(e)){var t=l(e);n.pageX=t.pageX,n.pageY=t.pageY,o=(new Date).getTime(),null!==a&&clearInterval(a)}}function h(a){if(c(a)){var d=l(a),h={pageX:d.pageX,pageY:d.pageY},p=h.pageX-n.pageX,f=h.pageY-n.pageY;if(function(e,n,o){if(!t.contains(e))return!1;for(var i=e;i&&i!==t;){if(i.classList.contains(u.element.consuming))return!0;var a=r(i);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var s=i.scrollHeight-i.clientHeight;if(s>0&&!(0===i.scrollTop&&o>0)&&!(i.scrollTop===s&&o<0))return!0;var l=i.scrollLeft-i.clientWidth;if(l>0&&!(0===i.scrollLeft&&n<0)&&!(i.scrollLeft===l&&n>0))return!0}i=i.parentNode}return!1}(a.target,p,f))return;s(p,f),n=h;var g=(new Date).getTime(),m=g-o;m>0&&(i.x=p/m,i.y=f/m,o=g),function(n,r){var o=Math.floor(t.scrollTop),i=t.scrollLeft,a=Math.abs(n),s=Math.abs(r);if(s>a){if(r<0&&o===e.contentHeight-e.containerHeight||r>0&&0===o)return 0===window.scrollY&&r>0&&C.isChrome}else if(a>s&&(n<0&&i===e.contentWidth-e.containerWidth||n>0&&0===i))return!0;return!0}(p,f)&&a.preventDefault()}}function p(){e.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){e.isInitialized?clearInterval(a):i.x||i.y?Math.abs(i.x)<.01&&Math.abs(i.y)<.01?clearInterval(a):(s(30*i.x,30*i.y),i.x*=.8,i.y*=.8):clearInterval(a)},10))}}},M=function(e,t){var n=this;if(void 0===t&&(t={}),"string"===typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var a in this.element=e,e.classList.add(u.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)n.settings[a]=t[a];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return e.classList.add(u.state.focus)},l=function(){return e.classList.remove(u.state.focus)};this.isRtl="rtl"===r(e).direction,this.isNegativeScroll=function(){var t,n=e.scrollLeft;return e.scrollLeft=-1,t=e.scrollLeft<0,e.scrollLeft=n,t}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new m,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=i(u.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=i(u.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=r(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=b(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=b(c.borderLeftWidth)+b(c.borderRightWidth),o(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=b(c.marginLeft)+b(c.marginRight),o(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(u.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=i(u.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=r(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=b(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=r(e);return b(t.width)+b(t.paddingLeft)+b(t.paddingRight)+b(t.borderLeftWidth)+b(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=b(d.borderTopWidth)+b(d.borderBottomWidth),o(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=b(d.marginTop)+b(d.marginBottom),o(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return S[e](n)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return n.onScroll(e)}),w(this)};M.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,o(this.scrollbarXRail,{display:"block"}),o(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=b(r(this.scrollbarXRail).marginLeft)+b(r(this.scrollbarXRail).marginRight),this.railYMarginHeight=b(r(this.scrollbarYRail).marginTop)+b(r(this.scrollbarYRail).marginBottom),o(this.scrollbarXRail,{display:"none"}),o(this.scrollbarYRail,{display:"none"}),w(this),y(this,"top",0,!1,!0),y(this,"left",0,!1,!0),o(this.scrollbarXRail,{display:""}),o(this.scrollbarYRail,{display:""}))},M.prototype.onScroll=function(e){this.isAlive&&(w(this),y(this,"top",this.element.scrollTop-this.lastScrollTop),y(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},M.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},M.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},t.a=M},function(e,t,n){"use strict";n.d(t,"b",function(){return h});var r=n(3),o=n(15),i=n(16),a=n(0),s=n.n(a),l=n(1),c=n.n(l),u=n(175),d=n(2),h={placement:c.a.oneOf(d.PopperPlacements),target:d.targetPropType.isRequired,container:d.targetPropType,isOpen:c.a.bool,disabled:c.a.bool,hideArrow:c.a.bool,boundariesElement:c.a.oneOfType([c.a.string,d.DOMElement]),className:c.a.string,innerClassName:c.a.string,arrowClassName:c.a.string,popperClassName:c.a.string,cssModule:c.a.object,toggle:c.a.func,autohide:c.a.bool,placementPrefix:c.a.string,delay:c.a.oneOfType([c.a.shape({show:c.a.number,hide:c.a.number}),c.a.number]),modifiers:c.a.object,offset:c.a.oneOfType([c.a.string,c.a.number]),innerRef:c.a.oneOfType([c.a.func,c.a.string,c.a.object]),trigger:c.a.string,fade:c.a.bool,flip:c.a.bool},p={show:0,hide:50},f={isOpen:!1,hideArrow:!1,autohide:!1,delay:p,toggle:function(){},trigger:"click",fade:!0};function g(e,t){return t&&(e===t||t.contains(e))}function m(e,t){return void 0===t&&(t=[]),t&&t.length&&t.find(function(t){return g(e,t)})}var v=function(e){function t(t){var n;return(n=e.call(this,t)||this)._targets=[],n.currentTargetElement=null,n.addTargetEvents=n.addTargetEvents.bind(Object(o.a)(n)),n.handleDocumentClick=n.handleDocumentClick.bind(Object(o.a)(n)),n.removeTargetEvents=n.removeTargetEvents.bind(Object(o.a)(n)),n.toggle=n.toggle.bind(Object(o.a)(n)),n.showWithDelay=n.showWithDelay.bind(Object(o.a)(n)),n.hideWithDelay=n.hideWithDelay.bind(Object(o.a)(n)),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(Object(o.a)(n)),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(Object(o.a)(n)),n.show=n.show.bind(Object(o.a)(n)),n.hide=n.hide.bind(Object(o.a)(n)),n.onEscKeyDown=n.onEscKeyDown.bind(Object(o.a)(n)),n.getRef=n.getRef.bind(Object(o.a)(n)),n.state={isOpen:t.isOpen},n._isMounted=!1,n}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.updateTarget()},n.componentWillUnmount=function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()},t.getDerivedStateFromProps=function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null},n.onMouseOverTooltipContent=function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())},n.onMouseLeaveTooltipContent=function(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))},n.onEscKeyDown=function(e){"Escape"===e.key&&this.hide(e)},n.getRef=function(e){var t=this.props.innerRef;t&&("function"===typeof t?t(e):"object"===typeof t&&(t.current=e)),this._popover=e},n.getDelay=function(e){var t=this.props.delay;return"object"===typeof t?isNaN(t[e])?p[e]:t[e]:t},n.show=function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||e.target:null,e&&e.composedPath&&"function"===typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}},n.showWithDelay=function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))},n.hide=function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))},n.hideWithDelay=function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))},n.clearShowTimeout=function(){clearTimeout(this._showTimeout),this._showTimeout=void 0},n.clearHideTimeout=function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0},n.handleDocumentClick=function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||m(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!g(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&m(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))},n.addEventOnTargets=function(e,t,n){this._targets.forEach(function(r){r.addEventListener(e,t,n)})},n.removeEventOnTargets=function(e,t,n){this._targets.forEach(function(r){r.removeEventListener(e,t,n)})},n.addTargetEvents=function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}},n.removeTargetEvents=function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)},n.updateTarget=function(){var e=Object(d.getTarget)(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())},n.toggle=function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)},n.render=function(){if(!this.props.isOpen)return null;this.updateTarget();var e=this.props,t=e.className,n=e.cssModule,o=e.innerClassName,i=e.isOpen,a=e.hideArrow,l=e.boundariesElement,c=e.placement,p=e.placementPrefix,f=e.arrowClassName,g=e.popperClassName,m=e.container,v=e.modifiers,y=e.offset,b=e.fade,C=e.flip,w=Object(d.omit)(this.props,Object.keys(h)),x=Object(d.mapToCssModules)(g,n),_=Object(d.mapToCssModules)(o,n);return s.a.createElement(u.a,{className:t,target:this.currentTargetElement||this._targets[0],isOpen:i,hideArrow:a,boundariesElement:l,placement:c,placementPrefix:p,arrowClassName:f,popperClassName:x,container:m,modifiers:v,offset:y,cssModule:n,fade:b,flip:C},s.a.createElement("div",Object(r.a)({},w,{ref:this.getRef,className:_,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown})))},t}(s.a.Component);v.propTypes=h,v.defaultProps=f,t.a=v},function(e,t,n){"use strict";n.d(t,"a",function(){return Ar}),n.d(t,"b",function(){return Dr});var r=n(3),o=n(7),i=n(16),a=n(29),s=n.n(a),l=n(0),c=n.n(l),u=n(69),d=n.n(u),h=function(){};function p(e,t){return void 0!==e[t]}function f(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}var g=n(119),m="/Users/jquense/src/uncontrollable/src/uncontrollable.js";var v=n(39),y=n(15),b=n(27),C=n.n(b),w=n(13),x=n(131),_=n(76),S=n(66),M=n(125),E=n(46);var O=function(e,t,n){if(!Object(E.a)(n))return!1;var r=typeof t;return!!("number"==r?Object(S.a)(n)&&Object(M.a)(t,n.length):"string"==r&&t in n)&&Object(_.a)(n[t],e)},A=/\s/;var T=function(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t},k=/^\s+/;var D=function(e){return e?e.slice(0,T(e)+1).replace(k,""):e},P=n(62),N=NaN,L=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,F=/^0o[0-7]+$/i,I=parseInt;var z=function(e){if("number"==typeof e)return e;if(Object(P.a)(e))return N;if(Object(E.a)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(E.a)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=D(e);var n=R.test(e);return n||F.test(e)?I(e.slice(2),n?2:8):L.test(e)?N:+e},B=1/0,j=1.7976931348623157e308;var V=function(e){return e?(e=z(e))===B||e===-B?(e<0?-1:1)*j:e===e?e:0:0===e?e:0};var W=function(e){var t=V(e),n=t%1;return t===t?n?t-n:t:0},H=Math.ceil,G=Math.max;var U=function(e,t,n){t=(n?O(e,t,n):void 0===t)?1:G(W(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(H(r/t));o1?n-1:0),o=1;o0&&r(l)?n>1?e(l,n-1,r,o,i):Object(Ze.a)(i,l):o||(i[i.length]=l)}return i},ot=n(70),it=n(96),at=n(102);var st=function(e,t){return function(n,r){if(null==n)return n;if(!Object(S.a)(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++it||i&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index},pt=n(95);var ft=function(e,t,n){t=t.length?Object(ot.a)(t,function(e){return Object(et.a)(e)?function(t){return Object(it.a)(t,1===e.length?e[0]:e)}:e}):[pt.a];var r=-1;t=Object(ot.a)(t,Object(ut.a)(je.a));var o=lt(e,function(e,n,o){return{criteria:Object(ot.a)(t,function(t){return t(e)}),index:++r,value:e}});return ct(o,function(e,t){return ht(e,t,n)})};var gt=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},mt=Math.max;var vt=function(e,t,n){return t=mt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=mt(r.length-t,0),a=Array(i);++o0){if(++t>=wt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Ct);var Mt,Et=function(e,t){return St(vt(e,t,pt.a),e+"")},Ot=Et(function(e,t){if(null==e)return[];var n=t.length;return n>1&&O(e,t[0],t[1])?t=[]:n>2&&O(t[0],t[1],t[2])&&(t=[t[0]]),ft(e,rt(t,1),[])});function At(e,t){var n=ee(e);return n?n.innerWidth:t?e.clientWidth:oe(e).width}function Tt(e){if((!Mt&&0!==Mt||e)&&le.a){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Mt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Mt}function kt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Dt=n(100),Pt=n(93);var Nt=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var Lt=function(e,t){return t.length<2?e:Object(it.a)(e,Object(x.a)(t,0,-1))},Rt=n(65);var Ft=function(e,t){return t=Object(Pt.a)(t,e),null==(e=Lt(e,t))||delete e[Object(Rt.a)(Nt(t))]},It=n(77),zt=n(160);var Bt=function(e){return Object(zt.a)(e)?void 0:e};var jt=function(e){return null!=e&&e.length?rt(e,1):[]};var Vt=function(e){return St(vt(e,void 0,jt),e+"")},Wt=n(188),Ht=Vt(function(e,t){var n={};if(null==e)return n;var r=!1;t=Object(ot.a)(t,function(t){return t=Object(Pt.a)(t,e),r||(r=t.length>1),t}),Object(It.a)(e,Object(Wt.a)(e),n),r&&(n=Object(Dt.a)(n,7,Bt));for(var o=t.length;o--;)Ft(n,t[o]);return n}),Gt=n(103),Ut=Object.prototype,qt=Ut.hasOwnProperty,Yt=Et(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&O(t[0],t[1],o)&&(r=1);++n2?n-2:0),o=2;o1,k=g.eventProp(i,O,E,a),D=c.a.createElement("div",{className:"rbc-event-content",title:M||void 0},b?c.a.createElement(b,{event:i,continuesPrior:h,continuesAfter:p,title:S,isAllDay:A,localizer:d,slotStart:w,slotEnd:x}):S);return c.a.createElement(C,Object(r.a)({},this.props,{type:"date"}),c.a.createElement("div",Object(r.a)({},_,{tabIndex:0,style:Object(r.a)({},k.style,t),className:Object(v.default)("rbc-event",n,k.className,{"rbc-selected":a,"rbc-event-allday":T,"rbc-event-continues-prior":h,"rbc-event-continues-after":p}),onClick:function(e){return l&&l(i,e)},onDoubleClick:function(e){return u&&u(i,e)}}),"function"===typeof m?m(D):D))},t}(c.a.Component);function wn(e,t){return!(!e||null==t)&&-1!==[].concat(t).indexOf(e)}function xn(e,t){return(e.right-e.left)/t}function _n(e,t,n,r){var o=xn(e,r);return n?r-1-Math.floor((t-e.left)/o):Math.floor((t-e.left)/o)}Cn.propTypes={};var Sn=function(e){function t(){return e.apply(this,arguments)||this}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t,n=this.props,r=n.popupOffset,o=void 0===r?5:r,i=oe(n.popperRef.current),a=i.top,s=i.left,l=i.width,c=i.height,u=window.innerHeight+re(window),d=window.innerWidth+ne(window),h=a+c,p=s+l;(h>u||p>d)&&(h>u&&(e=h-u+(o.y||+o||0)),p>d&&(t=p-d+(o.x||+o||0)),this.setState({topOffset:e,leftOffset:t}))},n.render=function(){var e=this.props,t=e.events,n=e.selected,o=e.getters,i=e.accessors,a=e.components,s=e.onSelect,l=e.onDoubleClick,u=e.slotStart,d=e.slotEnd,h=e.localizer,p=e.popperRef,f=this.props.position.width,g={top:-((this.state||{}).topOffset||0),left:-((this.state||{}).leftOffset||0),minWidth:f+f/2};return c.a.createElement("div",{style:Object(r.a)({},this.props.style,g),className:"rbc-overlay",ref:p},c.a.createElement("div",{className:"rbc-overlay-header"},h.format(u,"dayHeaderFormat")),t.map(function(e,t){return c.a.createElement(Cn,{key:t,type:"popup",event:e,getters:o,onSelect:s,accessors:i,components:a,onDoubleClick:l,continuesPrior:Object(w.lt)(i.end(e),u,"day"),continuesAfter:Object(w.gte)(i.start(e),d,"day"),slotStart:u,slotEnd:d,selected:wn(e,n)})}))},t}(c.a.Component);Sn.propTypes={};var Mn=c.a.forwardRef(function(e,t){return c.a.createElement(Sn,Object(r.a)({popperRef:t},e))});function En(e,t,n){return void 0===n&&(n=document),Object(_e.default)(n,e,t,{passive:!1})}function On(e,t){return!!function(e,t){var n=t.clientX,r=t.clientY,o=document.elementFromPoint(n,r);return Object(ze.default)(o,".rbc-event",e)}(e,t)}function An(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}var Tn=function(){function e(e,t){var n=void 0===t?{}:t,r=n.global,o=void 0!==r&&r,i=n.longPressThreshold,a=void 0===i?250:i;this.isDetached=!1,this.container=e,this.globalMouse=!e||o,this.longPressThreshold=a,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=En("touchmove",function(){},window),this._removeKeyDownListener=En("keydown",this._keyListener),this._removeKeyUpListener=En("keyup",this._keyListener),this._removeDropFromOutsideListener=En("drop",this._dropFromOutsideListener),this._onDragOverfromOutisde=En("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}var t=e.prototype;return t.on=function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);return n.push(t),{remove:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},t.emit=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r(void 0===g?d:g)||s-nf)}function Dn(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),n=t.left+Pn("left"),r=t.top+Pn("top");return{top:r,left:n,right:(e.offsetWidth||0)+n,bottom:(e.offsetHeight||0)+r}}function Pn(e){return"left"===e?window.pageXOffset||document.body.scrollLeft||0:"top"===e?window.pageYOffset||document.body.scrollTop||0:void 0}var Nn=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).state={selecting:!1},r}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.selectable&&this._selectable()},n.componentWillUnmount=function(){this._teardownSelectable()},n.UNSAFE_componentWillReceiveProps=function(e){e.selectable&&!this.props.selectable&&this._selectable(),!e.selectable&&this.props.selectable&&this._teardownSelectable()},n.render=function(){var e=this.props,t=e.range,n=e.getNow,r=e.getters,o=e.date,i=e.components.dateCellWrapper,a=this.state,s=a.selecting,l=a.startIdx,u=a.endIdx,d=n();return c.a.createElement("div",{className:"rbc-row-bg"},t.map(function(e,n){var a=s&&n>=l&&n<=u,h=r.dayProp(e),p=h.className,f=h.style;return c.a.createElement(i,{key:n,value:e,range:t},c.a.createElement("div",{style:f,className:Object(v.default)("rbc-day-bg",p,a&&"rbc-selected-cell",Object(w.eq)(e,d,"day")&&"rbc-today",o&&Object(w.month)(o)!==Object(w.month)(e)&&"rbc-off-range-bg")}))}))},n._selectable=function(){var e=this,t=Object(b.findDOMNode)(this),n=this._selector=new Tn(this.props.container,{longPressThreshold:this.props.longPressThreshold}),o=function(n,r){if(!On(Object(b.findDOMNode)(e),n)){var o=Dn(t),i=e.props,a=i.range,s=i.rtl;if(function(e,t){var n=t.x,r=t.y;return r>=e.top&&r<=e.bottom&&n>=e.left&&n<=e.right}(o,n)){var l=_n(o,n.x,s,a.length);e._selectSlot({startIdx:l,endIdx:l,action:r,box:n})}}e._initial={},e.setState({selecting:!1})};n.on("selecting",function(r){var o=e.props,i=o.range,a=o.rtl,s=-1,l=-1;if(e.state.selecting||(sn(e.props.onSelectStart,[r]),e._initial={x:r.x,y:r.y}),n.isSelected(t)){var c=Dn(t),u=function(e,t,n,r,o){var i=-1,a=-1,s=r-1,l=xn(t,r),c=_n(t,n.x,o,r),u=t.topn.y,d=t.tope.y,h=e.y>t.bottom,p=t.top>e.y;return n.topt.bottom&&(i=0,a=s),u&&(p?(i=0,a=c):h&&(i=c,a=s)),d&&(i=a=o?s-Math.floor((e.x-t.left)/l):Math.floor((e.x-t.left)/l),u?c=t?a.push(o):(i[r]||(i[r]=[])).push(o)}for(n=0;n=e.left})}function Wn(e,t,n){var r=+Object(w.startOf)(n.start(e),"day")-+Object(w.startOf)(n.start(t),"day"),o=bn(n.start(e),gn(n.end(e),"day"),"day"),i=bn(n.start(t),gn(n.end(t),"day"),"day");return r||Math.max(i,1)-Math.max(o,1)||!!n.allDay(t)-!!n.allDay(e)||+n.start(e)-+n.start(t)}In.propTypes={},In.defaultProps=Object(r.a)({},Ln);var Hn=function(e,t){return e.left<=t&&e.right>=t},Gn=function(e,t){return e.filter(function(e){return Hn(e,t)}).length},Un=function(e){function t(){return e.apply(this,arguments)||this}Object(i.a)(t,e);var n=t.prototype;return n.render=function(){for(var e=this.props,t=e.segments,n=e.slotMetrics.slots,r=Bn(t).levels[0],o=1,i=1,a=[];o<=n;){var s="_lvl_"+o,l=r.filter(function(e){return Hn(e,o)})[0]||{},u=l.event,d=l.left,h=l.right,p=l.span;if(u){var f=Math.max(0,d-i);if(this.canRenderSlotEvent(d,p)){var g=Rn(this.props,u);f&&a.push(Fn(n,f,s+"_gap")),a.push(Fn(n,p,s,g)),i=o=h+1}else f&&a.push(Fn(n,f,s+"_gap")),a.push(Fn(n,1,s,this.renderShowMore(t,o))),i=o+=1}else o++}return c.a.createElement("div",{className:"rbc-row"},a)},n.canRenderSlotEvent=function(e,t){var n=this.props.segments;return qe(e,e+t).every(function(e){return 1===Gn(n,e)})},n.renderShowMore=function(e,t){var n=this,r=this.props.localizer,o=Gn(e,t);return!!o&&c.a.createElement("a",{key:"sm_"+t,href:"#",className:"rbc-show-more",onClick:function(e){return n.showMore(t,e)}},r.messages.showMore(o))},n.showMore=function(e,t){t.preventDefault(),this.props.onShowMore(e,t.target)},t}(c.a.Component);Un.propTypes={},Un.defaultProps=Object(r.a)({},Ln);var qn=function(e,t){return e.left<=t&&e.right>=t},Yn=function(e,t){return e[0].range===t[0].range&&e[0].events===t[0].events};function Xn(){return Ke(function(e){for(var t=e.range,n=e.events,o=e.maxRows,i=e.minRows,a=e.accessors,s=zn(t),l=s.first,c=s.last,u=n.map(function(e){return function(e,t,n){var r=zn(t),o=r.first,i=r.last,a=bn(o,i,"day"),s=Object(w.max)(Object(w.startOf)(n.start(e),"day"),o),l=Object(w.min)(gn(n.end(e),"day"),i),c=We(t,function(e){return Object(w.eq)(e,s,"day")}),u=bn(s,l,"day");return u=Math.min(u,a),{event:e,span:u=Math.max(u,1),left:c+1,right:Math.max(c+u,1)}}(e,t,a)}),d=Bn(u,Math.max(o-1,1)),h=d.levels,p=d.extra;h.lengthr*(d-1)&&!Object(w.eq)(n,o)?(s-r)/(r*d)*100:s/(r*d)*100;return{top:c,height:l/(r*d)*100-c,start:b(e),startDate:e,end:b(o),endDate:o}},getCurrentTimePosition:function(e){return b(e)/(r*d)*100}}}var rr=function(){function e(e,t){var n=t.accessors,r=t.slotMetrics.getRange(n.start(e),n.end(e)),o=r.start,i=r.startDate,a=r.end,s=r.endDate,l=r.top,c=r.height;this.start=o,this.end=a,this.startMs=+i,this.endMs=+s,this.top=l,this.height=c,this.data=e}return Object($e.a)(e,[{key:"_width",get:function(){if(this.rows)return 100/(this.rows.reduce(function(e,t){return Math.max(e,t.leaves.length+1)},0)+1);var e=100-this.container._width;return this.leaves?e/(this.leaves.length+1):this.row._width}},{key:"width",get:function(){var e=this._width,t=Math.min(100,1.7*this._width);if(this.rows)return t;if(this.leaves)return this.leaves.length>0?t:e;var n=this.row.leaves;return n.indexOf(this)===n.length-1?e:t}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var e=this.row,t=e.leaves,n=e.xOffset,r=e._width;return n+(t.indexOf(this)+1)*r}}]),e}();function or(e,t,n){return Math.abs(t.start-e.start)e.start&&t.start0;){var r=t.shift();n.push(r);for(var o=0;oi.startMs)){if(o>0){var a=t.splice(o,1)[0];n.push(a)}break}}}return n}(t.map(function(e){return new rr(e,{slotMetrics:r,accessors:o})})),a=[],s=function(e){var t=i[e],r=a.find(function(e){return e.end>t.start||Math.abs(t.start-e.start)=0;s--)or(r.rows[s],t,n)&&(o=r.rows[s]);o?(o.leaves.push(t),t.row=o):(t.leaves=[],r.rows.push(t))},l=0;l-1)){t=t>e.friends[r].idx?t:e.friends[r].idx,n.push(e.friends[r]);var o=ar(e.friends[r],t,n);t=t>o?t:o}return t}var sr={overlap:ir,"no-overlap":function(e){var t=ir({events:e.events,minimumStartDifference:e.minimumStartDifference,slotMetrics:e.slotMetrics,accessors:e.accessors});t.sort(function(e,t){return e=e.style,t=t.style,e.top!==t.top?e.top>t.top?1:-1:e.top+e.heightS?x:S}x<=w.idx&&(w.size=100-w.idx*w.size);var M=0===w.idx?0:3;w.style.width="calc("+w.size+"% - "+M+"px)",w.style.height="calc("+w.style.height+"% - 2px)",w.style.xOffset="calc("+w.style.left+"% + "+M+"px)"}return t}};var lr=function(e){function t(){return e.apply(this,arguments)||this}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.renderSlot,n=e.resource,o=e.group,i=e.getters,a=e.components,s=(a=void 0===a?{}:a).timeSlotWrapper,l=void 0===s?nn:s,u=i?i.slotGroupProp():{};return c.a.createElement("div",Object(r.a)({className:"rbc-timeslot-group"},u),o.map(function(e,o){var a=i?i.slotProp(e,n):{};return c.a.createElement(l,{key:o,value:e,resource:n},c.a.createElement("div",Object(r.a)({},a,{className:Object(v.default)("rbc-time-slot",a.className)}),t&&t(e,o)))}))},t}(l.Component);function cr(e){return"string"===typeof e?e:e+"%"}function ur(e){var t,n=e.style,o=e.className,i=e.event,a=e.accessors,s=e.rtl,l=e.selected,u=e.label,d=e.continuesEarlier,h=e.continuesLater,p=e.getters,f=e.onClick,g=e.onDoubleClick,m=e.components,y=m.event,b=m.eventWrapper,C=a.title(i),w=a.tooltip(i),x=a.end(i),_=a.start(i),S=p.eventProp(i,_,x,l),M=n.height,E=n.top,O=n.width,A=n.xOffset,T=[c.a.createElement("div",{key:"1",className:"rbc-event-label"},u),c.a.createElement("div",{key:"2",className:"rbc-event-content"},y?c.a.createElement(y,{event:i,title:C}):C)];return c.a.createElement(b,Object(r.a)({type:"time"},e),c.a.createElement("div",{onClick:f,onDoubleClick:g,style:Object(r.a)({},S.style,(t={top:cr(E)},t[s?"right":"left"]=cr(A),t.width=cr(O),t.height=cr(M),t)),title:w?("string"===typeof u?u+": ":"")+w:void 0,className:Object(v.default)("rbc-event",o,S.className,{"rbc-selected":l,"rbc-event-continues-earlier":d,"rbc-event-continues-later":h})},T))}lr.propTypes={};var dr=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i=t&&r<=n){var o=this.slotMetrics.getCurrentTimePosition(r);this.setState({timeIndicatorPosition:o})}else this.clearTimeIndicatorInterval()},n.render=function(){var e=this.props,t=e.max,n=e.rtl,r=e.isNow,i=e.resource,a=e.accessors,s=e.localizer,l=e.getters,u=l.dayProp,d=Object(o.a)(l,["dayProp"]),h=e.components,p=h.eventContainerWrapper,f=Object(o.a)(h,["eventContainerWrapper"]),g=this.slotMetrics,m=this.state,y=m.selecting,b=m.top,C=m.height,w={start:m.startDate,end:m.endDate},x=u(t),_=x.className,S=x.style;return c.a.createElement("div",{style:S,className:Object(v.default)(_,"rbc-day-slot","rbc-time-column",r&&"rbc-now",r&&"rbc-today",y&&"rbc-slot-selecting")},g.groups.map(function(e,t){return c.a.createElement(lr,{key:t,group:e,resource:i,getters:d,components:f})}),c.a.createElement(p,{localizer:s,resource:i,accessors:a,getters:d,components:f,slotMetrics:g},c.a.createElement("div",{className:Object(v.default)("rbc-events-container",n&&"rtl")},this.renderEvents())),y&&c.a.createElement("div",{className:"rbc-slot-selection",style:{top:b,height:C}},c.a.createElement("span",null,s.format(w,"selectRangeFormat"))),r&&c.a.createElement("div",{className:"rbc-current-time-indicator",style:{top:this.state.timeIndicatorPosition+"%"}}))},t}(c.a.Component);dr.propTypes={},dr.defaultProps={dragThroughEvents:!0,timeslots:2};var hr=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;oe.clientHeight;n.state.isOverflowing!==t&&(n._updatingOverflow=!0,n.setState({isOverflowing:t},function(){n._updatingOverflow=!1}))}},n.memoizedResources=Ke(function(e,t){return function(e,t){return{map:function(n){return e?e.map(function(e,r){return n([t.resourceId(e),e],r)}):[n([gr,null],0)]},groupEvents:function(n){var r=new Map;return e?(n.forEach(function(e){var n=t.resource(e)||gr,o=r.get(n)||[];o.push(e),r.set(n,o)}),r):(r.set(gr,n),r)}}}(e,t)}),n.state={gutterWidth:void 0,isOverflowing:null},n.scrollRef=c.a.createRef(),n.contentRef=c.a.createRef(),n._scrollRatio=null,n}Object(i.a)(t,e);var n=t.prototype;return n.UNSAFE_componentWillMount=function(){this.calculateScroll()},n.componentDidMount=function(){this.checkOverflow(),null==this.props.width&&this.measureGutter(),this.applyScroll(),window.addEventListener("resize",this.handleResize)},n.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize),pe(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)},n.componentDidUpdate=function(){null==this.props.width&&this.measureGutter(),this.applyScroll()},n.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.range,r=t.scrollToTime;Object(w.eq)(e.range[0],n[0],"minute")&&Object(w.eq)(e.scrollToTime,r,"minute")||this.calculateScroll(e)},n.renderEvents=function(e,t,n){var o=this,i=this.props,a=i.min,s=i.max,l=i.components,u=i.accessors,d=i.localizer,h=i.dayLayoutAlgorithm,p=this.memoizedResources(this.props.resources,u),f=p.groupEvents(t);return p.map(function(t,i){var p=t[0],g=t[1];return e.map(function(e,t){var m=(f.get(p)||[]).filter(function(t){return Object(w.inRange)(e,u.start(t),u.end(t),"day")});return c.a.createElement(dr,Object(r.a)({},o.props,{localizer:d,min:vn(e,a),max:vn(e,s),resource:g&&p,components:l,isNow:Object(w.eq)(e,n,"day"),key:i+"-"+t,date:e,events:m,dayLayoutAlgorithm:h}))})})},n.render=function(){var e=this.props,t=e.events,n=e.range,r=e.width,o=e.rtl,i=e.selected,a=e.getNow,s=e.resources,l=e.components,u=e.accessors,d=e.getters,h=e.localizer,p=e.min,f=e.max,g=e.showMultiDayTimes,m=e.longPressThreshold;r=r||this.state.gutterWidth;var y=n[0],b=n[n.length-1];this.slots=n.length;var C=[],x=[];return t.forEach(function(e){if(jn(e,y,b,u)){var t=u.start(e),n=u.end(e);u.allDay(e)||yn(t)&&yn(n)||!g&&!Object(w.eq)(t,n,"day")?C.push(e):x.push(e)}}),C.sort(function(e,t){return Wn(e,t,u)}),c.a.createElement("div",{className:Object(v.default)("rbc-time-view",s&&"rbc-time-view-resources")},c.a.createElement(fr,{range:n,events:C,width:r,rtl:o,getNow:a,localizer:h,selected:i,resources:this.memoizedResources(s,u),selectable:this.props.selectable,accessors:u,getters:d,components:l,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:m,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectAlldayEvent,onDoubleClickEvent:this.props.onDoubleClickEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView}),c.a.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},c.a.createElement(hr,{date:y,ref:this.gutterRef,localizer:h,min:vn(y,p),max:vn(y,f),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:l,className:"rbc-time-gutter",getters:d}),this.renderEvents(n,x,a())))},n.clearSelection=function(){clearTimeout(this._selectTimer),this._pendingSelection=[]},n.measureGutter=function(){var e=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame(function(){var t=At(e.gutter);t&&e.state.gutterWidth!==t&&e.setState({gutterWidth:t})})},n.applyScroll=function(){if(null!=this._scrollRatio){var e=this.contentRef.current;e.scrollTop=e.scrollHeight*this._scrollRatio,this._scrollRatio=null}},n.calculateScroll=function(e){void 0===e&&(e=this.props);var t=e,n=t.min,r=t.max,o=t.scrollToTime,i=o-Object(w.startOf)(o,"day"),a=bn(r,n);this._scrollRatio=i/a},t}(l.Component);mr.propTypes={},mr.defaultProps={step:30,timeslots:2,min:Object(w.startOf)(new Date,"day"),max:Object(w.endOf)(new Date,"day"),scrollToTime:Object(w.startOf)(new Date,"day")};var vr=function(e){function t(){return e.apply(this,arguments)||this}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,n=e.date,i=Object(o.a)(e,["date"]),a=t.range(n);return c.a.createElement(mr,Object(r.a)({},i,{range:a,eventOffset:10}))},t}(c.a.Component);vr.propTypes={},vr.range=function(e){return[Object(w.startOf)(e,"day")]},vr.navigate=function(e,t){switch(t){case rn.PREVIOUS:return Object(w.add)(e,-1,"day");case rn.NEXT:return Object(w.add)(e,1,"day");default:return e}},vr.title=function(e,t){return t.localizer.format(e,"dayHeaderFormat")};var yr=function(e){function t(){return e.apply(this,arguments)||this}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,n=e.date,i=Object(o.a)(e,["date"]),a=t.range(n,this.props);return c.a.createElement(mr,Object(r.a)({},i,{range:a,eventOffset:15}))},t}(c.a.Component);function br(e,t){return yr.range(e,t).filter(function(e){return-1===[6,0].indexOf(e.getDay())})}yr.propTypes={},yr.defaultProps=mr.defaultProps,yr.navigate=function(e,t){switch(t){case rn.PREVIOUS:return Object(w.add)(e,-1,"week");case rn.NEXT:return Object(w.add)(e,1,"week");default:return e}},yr.range=function(e,t){var n=t.localizer.startOfWeek();return mn(Object(w.startOf)(e,"week",n),Object(w.endOf)(e,"week",n))},yr.title=function(e,t){var n=t.localizer,r=yr.range(e,{localizer:n}),o=r[0],i=r.slice(1);return n.format({start:o,end:i.pop()},"dayRangeHeaderFormat")};var Cr=function(e){function t(){return e.apply(this,arguments)||this}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.date,n=Object(o.a)(e,["date"]),i=br(t,this.props);return c.a.createElement(mr,Object(r.a)({},n,{range:i,eventOffset:15}))},t}(c.a.Component);Cr.propTypes={},Cr.defaultProps=mr.defaultProps,Cr.range=br,Cr.navigate=yr.navigate,Cr.title=function(e,t){var n=t.localizer,r=br(e,{localizer:n}),o=r[0],i=r.slice(1);return n.format({start:o,end:i.pop()},"dayRangeHeaderFormat")};var wr,xr=function(e){function t(t){var n;return(n=e.call(this,t)||this).renderDay=function(e,t,r){var o=n.props,i=o.selected,a=o.getters,s=o.accessors,l=o.localizer,u=o.components,d=u.event,h=u.date;return(t=t.filter(function(t){return jn(t,Object(w.startOf)(e,"day"),Object(w.endOf)(e,"day"),s)})).map(function(o,u){var p=s.title(o),f=s.end(o),g=s.start(o),m=a.eventProp(o,g,f,wn(o,i)),v=0===u&&l.format(e,"agendaDateFormat"),y=0===u&&c.a.createElement("td",{rowSpan:t.length,className:"rbc-agenda-date-cell"},h?c.a.createElement(h,{day:e,label:v}):v);return c.a.createElement("tr",{key:r+"_"+u,className:m.className,style:m.style},y,c.a.createElement("td",{className:"rbc-agenda-time-cell"},n.timeRangeLabel(e,o)),c.a.createElement("td",{className:"rbc-agenda-event-cell"},d?c.a.createElement(d,{event:o,title:p}):p))},[])},n.timeRangeLabel=function(e,t){var r=n.props,o=r.accessors,i=r.localizer,a="",s=r.components.time,l=i.messages.allDay,u=o.end(t),d=o.start(t);return o.allDay(t)||(Object(w.eq)(d,u)?l=i.format(d,"agendaTimeFormat"):Object(w.eq)(d,u,"day")?l=i.format({start:d,end:u},"agendaTimeRangeFormat"):Object(w.eq)(e,d,"day")?l=i.format(d,"agendaTimeFormat"):Object(w.eq)(e,u,"day")&&(l=i.format(u,"agendaTimeFormat"))),Object(w.gt)(e,d,"day")&&(a="rbc-continues-prior"),Object(w.lt)(e,u,"day")&&(a+=" rbc-continues-after"),c.a.createElement("span",{className:a.trim()},s?c.a.createElement(s,{event:t,day:e,label:l}):l)},n._adjustHeader=function(){if(n.tbodyRef.current){var e=n.headerRef.current,t=n.tbodyRef.current.firstChild;if(t){var r,o,i=n.contentRef.current.scrollHeight>n.contentRef.current.clientHeight,a=n._widths||[];n._widths=[At(t.children[0]),At(t.children[1])],a[0]===n._widths[0]&&a[1]===n._widths[1]||(n.dateColRef.current.style.width=n._widths[0]+"px",n.timeColRef.current.style.width=n._widths[1]+"px"),i?(o="rbc-header-overflowing",(r=e).classList?r.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,o)||("string"===typeof r.className?r.className=r.className+" "+o:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+o)),e.style.marginRight=Tt()+"px"):function(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=kt(e.className,t):e.setAttribute("class",kt(e.className&&e.className.baseVal||"",t))}(e,"rbc-header-overflowing")}}},n.headerRef=c.a.createRef(),n.dateColRef=c.a.createRef(),n.timeColRef=c.a.createRef(),n.contentRef=c.a.createRef(),n.tbodyRef=c.a.createRef(),n}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._adjustHeader()},n.componentDidUpdate=function(){this._adjustHeader()},n.render=function(){var e=this,t=this.props,n=t.length,r=t.date,o=t.events,i=t.accessors,a=t.localizer.messages,s=Object(w.add)(r,n,"day"),l=mn(r,s,"day");return(o=o.filter(function(e){return jn(e,r,s,i)})).sort(function(e,t){return+i.start(e)-+i.start(t)}),c.a.createElement("div",{className:"rbc-agenda-view"},0!==o.length?c.a.createElement(c.a.Fragment,null,c.a.createElement("table",{ref:this.headerRef,className:"rbc-agenda-table"},c.a.createElement("thead",null,c.a.createElement("tr",null,c.a.createElement("th",{className:"rbc-header",ref:this.dateColRef},a.date),c.a.createElement("th",{className:"rbc-header",ref:this.timeColRef},a.time),c.a.createElement("th",{className:"rbc-header"},a.event)))),c.a.createElement("div",{className:"rbc-agenda-content",ref:this.contentRef},c.a.createElement("table",{className:"rbc-agenda-table"},c.a.createElement("tbody",{ref:this.tbodyRef},l.map(function(t,n){return e.renderDay(t,o,n)}))))):c.a.createElement("span",{className:"rbc-agenda-empty"},a.noEventsInRange))},t}(c.a.Component);xr.propTypes={},xr.defaultProps={length:30},xr.range=function(e,t){var n=t.length,r=void 0===n?xr.defaultProps.length:n;return{start:e,end:Object(w.add)(e,r,"day")}},xr.navigate=function(e,t,n){var r=n.length,o=void 0===r?xr.defaultProps.length:r;switch(t){case rn.PREVIOUS:return Object(w.add)(e,-o,"day");case rn.NEXT:return Object(w.add)(e,o,"day");default:return e}},xr.title=function(e,t){var n=t.length,r=void 0===n?xr.defaultProps.length:n,o=t.localizer,i=Object(w.add)(e,r,"day");return o.format({start:e,end:i},"agendaHeaderFormat")};var _r=((wr={})[on.MONTH]=Qn,wr[on.WEEK]=yr,wr[on.WORK_WEEK]=Cr,wr[on.DAY]=vr,wr[on.AGENDA]=xr,wr);var Sr=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o1)return n.map(function(n){return c.a.createElement("button",{type:"button",key:n,className:Object(v.default)({"rbc-active":r===n}),onClick:t.view.bind(null,n)},e[n])})},t}(c.a.Component);Sr.propTypes={};var Mr=function(e){return function(t){return function(e,t){var n=null;return"function"===typeof t?n=t(e):"string"===typeof t&&"object"===typeof e&&null!=e&&t in e&&(n=e[t]),n}(t,e)}};function Er(e){return Array.isArray(e)?e:Object.keys(e)}var Or=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),a=0;a1?a-1:0),l=1;l2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);ne)return t;if(n&&n=0||(o[n]=e[n]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(3),o=n(0),i=n.n(o),a=n(1),s=n.n(a),l=n(83),c={children:s.a.node},u=function(e){return i.a.createElement(l.a,Object(r.a)({group:!0},e))};u.propTypes=c,t.a=u},function(e,t,n){"use strict";n.r(t),n.d(t,"getUserLocales",function(){return i}),n.d(t,"getUserLocale",function(){return a});var r=n(220),o=n.n(r);var i=o()(function(){var e=[];return"undefined"!==typeof window&&(window.navigator.languages&&(e=e.concat(window.navigator.languages)),window.navigator.language&&e.push(window.navigator.language),window.navigator.userLanguage&&e.push(window.navigator.userLanguage),window.navigator.browserLanguage&&e.push(window.navigator.browserLanguage),window.navigator.systemLanguage&&e.push(window.navigator.systemLanguage)),e.push("en-US"),function(e){return e.map(function(e){if(!e||-1===e.indexOf("-")||e.toLowerCase()!==e)return e;var t=e.split("-");return"".concat(t[0],"-").concat(t[1].toUpperCase())})}(e.filter(function(e,t,n){return n.indexOf(e)===t}))});var a=o()(function(){return i()[0]});t.default=a},function(e,t,n){"use strict";var r=n(3),o=n(0),i=n.n(o),a=n(6),s=n.n(a),l=n(143),c=function(e){var t=s()("tooltip","show",e.popperClassName),n=s()("tooltip-inner",e.innerClassName);return i.a.createElement(l.a,Object(r.a)({},e,{popperClassName:t,innerClassName:n}))};c.propTypes=l.b,c.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"},t.a=c},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return f});var r=n(64),o=n.n(r),i=n(26),a=n.n(i),s=n(35),l=n.n(s),c=n(0),u=n(216),d=n.n(u),h=d()(),p=d()(),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ol;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(12),o=n(42),i=n(44),a=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(43),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(43),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(9),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(12),o=n(39).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},function(e,t,n){n(50);var r=n(38).Object,o=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},function(e,t,n){var r=n(4),o=n(9),i=n(12),a=n(7).f,s=n(8),l=o(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){n(52);var r=n(38).Object,o=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(o.sham=!0)},function(e,t,n){var r=n(4),o=n(8);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(22).f})},function(e,t,n){n(54);var r=n(38).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(4)({target:"Object",stat:!0,sham:!n(8)},{create:n(55)})},function(e,t,n){var r,o=n(23),i=n(56),a=n(45),s=n(34),l=n(58),c=n(20),u=n(30),d=u("IE_PROTO"),h=function(){},p=function(e){return"";r.addJob("getSVG",function(){e(o&&o.toSVG&&o.toSVG(n))},p.priorityList.postRender)},t.lockResize=function(e){return"boolean"!=typeof e?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=e},t.showChartMessage=function(e,t,n,r){var o=e||k,i=t||k,a=n||k,s=r||{},l=this,c=l.apiInstance,u=function(){l._showChartMessage(o,i,a,s)};return c&&("base"===c.getName()?l.addEventListener("renderComplete",u):u()),o},t._showChartMessage=function(e,t,n,r){void 0===r&&(r={});var o,i=this,s=e,l=i.jsVars,c=i.apiInstance,u=i.options;c._hideChartMessage(),void 0!==s?(o={fontFamily:(0,a.pluck)(r.font,u.baseChartMessageFont,"Verdana,sans"),fontSize:(0,a.pluck)(r.fontSize,u.baseChartMessageFontSize,10),color:(0,a.pluck)(r.color&&(0,a.convertColor)(r.color,r.alpha),u.baseChartMessageColor)},l.msgStore[s]&&(s=l.msgStore[s]),c.addJob("showMsg",function(){t&&c&&c.config.hasRendered?(c._show&&c._show(),i.showMessage(s,o,n)):(c._hide&&c._hide(),c.setChartMessage(s,{_chartMessageStyle:o}),c.drawChartMessage())},p.priorityList.postRender)):i.hideChartMessage()},t._resize=function(){var e=this.apiInstance,t=this.jsVars.container;this.__state.resize=!0,e?(e.config.elScroll=!1,e.getFromEnv("animationManager").setAnimationState("resize"),e.addToEnv("chartWidth",t.offsetWidth),e.addToEnv("chartHeight",t.offsetHeight),this._addChartDependency("resize",{resolve:function(){return{state:3}}})):this._addChartDependency("resize",{resolve:function(){return{state:1}}}),this._setState(),this.__state.resize=!1},t.hideChartMessage=function(){var e=this.apiInstance;e._hideChartMessage(),e._show&&e._show()},t.showMessage=function(e,t,n){void 0===e&&(e="");var r,o,i,s=this.apiInstance,l=s.config,c=s.getFromEnv("paper"),u=s.getFromEnv("smartLabel"),d=s.getFromEnv("animationManager"),h=s.getGraphicalElement("messageText"),p=s.getGraphicalElement("messageVeil"),f=c.width,g=c.height;o=s.getChildContainer("messageGroup"),d.setAnimationState("showmessage"),(r=d.setAnimation({el:o||"group",attr:{name:"messageGroup"},component:s,label:"group"})).show().toFront(),o||s.addChildContainer("messageGroup",r),(p=d.setAnimation({el:p||"rect",attr:{x:0,y:0,width:f,height:g,fill:"rgba(0,0,0,0.2)",stroke:"none"},container:r,component:s,label:"rect"})).off("fc-click",r.hide),p.show().toFront().attr("cursor",n?a.POINTER:"default"),n&&p.on("fc-click",s._hideChartMessage,s),s.addGraphicalElement("messageVeil",p),u.setStyle(t),i=u.getSmartText(e,f-(l.marginRight||0)-(l.marginLeft||0),g-(l.marginTop||0)-(l.marginBotton||0)),(h=d.setAnimation({el:h||"text",attr:{"font-size":t.fontSize,"font-family":t.fontFamily,fill:t.color,text:i.text,"line-height":14,x:f/2,y:g/2},container:r,component:s,label:"text"})).attr("cursor",n?a.POINTER:"default")[n?"click":"unclick"](s._hideChartMessage,s).show().toFront(),s.addGraphicalElement("messageText",h)},t.scheduleResize=function(e){var t,n=this,r=n.ref;r&&(n._addChartDependency("resize",{resolve:function(){return{state:2}}}),n.apiInstance.addJob("resizeScheduled",function(){t=(0,a.normalizeCSSDimension)(e.width,e.height,r),"undefined"!=typeof e.width&&(r.style.width=t.width),"undefined"!==e.height&&(r.style.height=t.height),n._resize()},p.priorityList.instant))},e}();De.id="FusionCharts",De.options={html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts.",export:{useCanvas:!1},scriptBaseUri:(ke=function(e){var t,n,r=window.document.getElementsByTagName("script"),o=r.length;for(n=0;nGenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):ke),set creditLabel(e){console.warn("FusionCharts.options.creditLabel property is deprecated. Please use FusionCharts.options.license with a valid license key to remove the watermark.")},license:function(e){e&&_.default.storeObj(De,e)}},n.p=De.getScriptBaseURI(),De.version=P.split(/[\.\-]/g),De.versionDetails=[De.version,N],De.items={},(0,s.setRootSender)(De),T=!1,a.hasSVG||De.addDep({name:"vml",type:"dependency",extension:n.e(15).then(n.t.bind(null,1236,7))}),setTimeout(function(){T=!0,(0,s.triggerEvent)("ready",De,{version:De.version,now:!0})},1),De.addEventListener("dependencyAdded",function(e,t){if("maps"===t.type){var n={};n[t.name]=["fusioncharts.maps.js"],De.getDep("dependency")||De.addDep({name:"dependency",extension:n})}}),De.addEventListener("initialized",function e(){De.removeEventListener("initialized",e),D=new h.default(document.body||document.getElementsByTagName("body")[0]),d.globalStore.addToEnv("smartLabel",D)}),De.addDep(f.default),De.addDep(v.default),De.addDep(x.default),De.addDep(y.default),De.addDep(b.default),De.addDep(C.default),De.addDep(w.default);var Pe=De;t.default=Pe},function(e,t,n){var r=n(216);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.isInterActiveEvt=function(e){return!!ve[e]},t.addInterActiveEvtName=function(e){e&&e.toLowerCase&&(ve[e.toLowerCase()]=!0)},t.getMouseCoordinate=function(e,t,n){var r,o,i,a=A.webkitIsFullScreen||A.mozFullScreen||A.msFullscreenElement||A.fullscreenElement,s=de(we(t)),l=a?s.clientX:s.pageX,u=a?s.clientY:s.pageY,p=n&&n.config||{},f=t.type,g=p&&p.itemFixed,m=(0,c.default)(p.applycsstransform,0),v=g?S.pageYOffset||S.scrollY||A.documentElement.scrollTop:0,y=g?S.pageXOffset||S.scrollX||A.documentElement.scrollLeft:0;if(p.elScroll&&p.posOb&&!m?i=p.posOb:(p.elScroll=!0,i=Ce(e),p.posOb=i),"touchend"===f?(isNaN(l)&&(l=d),isNaN(u)&&(u=h)):"touchmove"!==f&&"touchstart"!==f||(d=l,h=u),r=l-i.left-y,o=u-i.top-v,m){var b=function(e,t){var n,r,o,i,a,s,l=t.x,c=t.y,u=e,d=[],h=0,p=0,f=!1,g=0,m=0;do{if(n=window.getComputedStyle(u),"BODY"===u.tagName||"auto"!==n.getPropertyValue("overflow")&&"scroll"!==n.getPropertyValue("overflow")||(u.scrollHeight>u.offsetHeight&&(g+=u.scrollTop),u.scrollWidth>u.offsetWidth&&(m+=u.scrollLeft)),n.getPropertyValue("transform")&&"none"!==n.getPropertyValue("transform")){var v=n.getPropertyValue("transform-origin").split(" ").map(function(e){return+e.replace(/px/gi,"")});if(r=v[0],o=v[1],6===(i=n.getPropertyValue("transform").split("(")[1].split(")")[0].split(",").map(function(e){return parseFloat(e.trim())})).length){var y=i,b=y[0],C=y[1],w=y[2],x=y[3],_=y[4],S=y[5];h=0,p=0,s=u;do{h+=s.offsetLeft,p+=s.offsetTop,s=s.offsetParent}while(s);d.push({elem:u,oriX:r,oriY:o,invM:Te([b,w,_,C,x,S]),matrix:[b,w,_,C,x,S],offsetLeft:h,offsetTop:p}),f=!0}}u=u.parentElement}while(u);l+=m,c+=g,h=0,p=0,s=e;do{h+=s.offsetLeft,p+=s.offsetTop,s=s.offsetParent}while(s);if(f)for(;u=d.pop();)l-=u.offsetLeft,c-=u.offsetTop,a=ke({x:l,y:c},{oriX:u.oriX,oriY:u.oriY},u.invM),l=a.x+u.offsetLeft,c=a.y+u.offsetTop;return{x:l-=h,y:c-=p}}(e,{x:l,y:u});r=b.x,o=b.y}return{chartX:r,chartY:o,pageX:l,pageY:u,clientX:s.clientX,clientY:s.clientY}},t.getTouchEvent=we,t.imprint=function(e,t,n){var r,o=e;if("object"!=typeof o||null===o)return o=t,t;if("object"!=typeof t||null===t)return o;for(r in t)(o[r]===u||!n&&null===o[r])&&(o[r]=t[r]);return o},t.pluck=Ae,t.computeFontSize=function(e){var t,n,r=parseFloat(e),o=function(e){return e&&"string"==typeof e&&oe.find(function(t){return e.indexOf(t)>-1})||"px"}(e),i=this.getLinkedParent(),a=parseInt(window.getComputedStyle(document.documentElement,null).fontSize,10);if("px"===o)return r;switch(o){case"em":t=(t=i.config.style?i.config.style.fontSize:u)||i.config.baseFontSize||a,r*=t;break;case"rem":r*=a;break;case"vw":n=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),r=r/100*n;break;case"%":t=(t=i.config.style?i.config.style.fontSize:u)||i.config.baseFontSize||a,r=r/100*t}return r},t.getFirstDefinedValue=function(){var e,t,n;for(t=0,n=arguments.length;t=n?n:e},t.fastTrim=function(e){for(var t=e.replace(/^\s\s*/,""),n=t.length;/\s/.test(t.charAt(n-=1)););return t.slice(0,n+1)},t.parseUnsafeString=function(e,t){void 0===t&&(t=!0);var n=-1;return"string"==typeof e?t?e.replace(/<|>|\'|\"/g,function(e,t,r){switch(e){case"<":return/^/gi.test(r.slice(t,r.length))?(n=t,e):"<";case">":return n>=0&&/$/gi.test(r.slice(n,t+1))?(n=-1,e):">";case'"':return""";case"'":return"'"}}).replace(W,"
"):e.replace(W,"
"):""},t.toPrecision=Ne,t.regescape=function(e){return e&&e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t.regReplaceEscape=Me,t.getImageURL=function(e){var t={image:!1},n=e;return n!==u&&(n=n.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(n)?(t.image=!0,t.string=n.replace(/^i\s*[\-]\s*/i,"")):t.string=n.replace(/^\\/,"")),t},t.getCripValues=t.getCrispValue=function(e,t,n){var r=n%2/2,o=X(e+r)-r,i=X(e+t+r)-r-o;return{position:o,distance:i}},t.stableSort=function(e,t){var n,r=e.length;for(n=0;n1&&(r=1),n||(n="#FFFFFF"),P&&!k?r?n:"transparent":(n=n.replace(/^#?([a-f0-9]+)/gi,"$1"),(n=(0,s.HEXtoRGB)(n))[3]=r.toString(),"rgba("+n.join(",")+")")},t.capitalizeString=function(e,t){return e?e.replace(t?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,function(e,t,n){return t+n.toUpperCase()}):e},t.pInt=function(e,t){return parseInt(e,t||10)},t.defined=be,t.trimString=function(e){for(var t=e.replace(/^\s\s*/,""),n=t.length;/\s/.test(t.charAt(n-=1)););return t.slice(0,n+1)},t.getSuggestiveRotation=function(){var e,t,n,r;return e=arguments[0],1===arguments.length?(t=e.angle,n=e.x,r=e.y):(t=e,n=arguments[1],r=arguments[2]),"r"+(t=t||0)+","+n+","+r},t.normalizeCSSDimension=function(e,t,n){var r,o=void 0===e?n.offsetWidth||parseFloat(n.style.width):e,i=void 0===t?n.offsetHeight||parseFloat(n.style.height):t,a={},s=n.style;if(s.width=o=o.toString?o.toString():"0",s.height=i=i.toString?i.toString():"0",(a.widthIsRelative=o.match(/^\s*\d*\.?\d*\%\s*$/)&&!o.match(/^\s*0\%\s*$/))&&0===n.offsetWidth)for(r=n;r=r.offsetParent;)if(r.offsetWidth>0){o=(r.offsetWidth*parseFloat(o.match(/\d*/)[0])/100).toString();break}if((a.heightIsRelative=i.match(/^\s*\d*\.?\d*\%\s*$/)&&!i.match(/^\s*0\%\s*$/))&&n.offsetHeight<=20)for(r=n;r=r.offsetParent;)if(r.offsetHeight>0){i=(r.offsetHeight*parseFloat(i.match(/\d*/)[0])/100).toString();break}return a.width=o.replace?o.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):o,a.height=i.replace?i.replace(/^\s*(\d*\.?\d*)\s*$/gi,"$1px"):i,s.width=a.width,s.height=a.height,a.pixelWidth=a.widthIsRelative?n.offsetWidth:parseInt(a.width,10)||0,a.pixelHeight=a.heightIsRelative?n.offsetHeight:parseInt(a.height,10)||0,a},t._manageInteractiveSpace=function(){var e,t,n,r,o,i,a=this.config,s=this.getChildren(),l=s.xAxis[0],c=s.yAxis[0],u=s.canvas&&s.canvas[0],d=u.config,h=d.canvasBorderWidth,p=d.canvasPaddingTop,f=d.canvasPadding||0,g=d.canvasPaddingLeft,m=a.xAxisSpaceAllocation,v=a.yAxisSpaceAllocation[0].spaceTaken;t=a.xAxisSpaceAllocation=l.placeAxis(a.availableHeight+m.bottom),n=a.yAxisSpaceAllocation[0].spaceTaken=c.placeAxis(a.availableWidth+v.left),e=t.bottom-m.bottom,o=t.top-m.top,r=n.left-v.left,i=n.right-v.right,e&&this._allocateSpace({top:o,bottom:e}),(r||i)&&this._allocateSpace({left:r,right:i}),l&&l.setAxisDimention({x:a.canvasLeft+Math.max(g,f),y:l.config.isOpposit?a.canvasTop-h:a.canvasBottom+h,opposite:l.config.isOpposit?a.canvasBottom+h:a.canvasTop-h,axisLength:a.canvasWidth-Math.max(g,f)-Math.max(d.canvasPaddingRight,f)}),c&&c.setAxisDimention({x:c.config.isOpposit?a.canvasRight+h:a.canvasLeft-h,y:a.canvasTop+p,opposite:c.config.isOpposit?a.canvasLeft-h:a.canvasRight+h,axisLength:a.canvasHeight-p-d.canvasPaddingBottom}),(o||e||r||i)&&u.asyncDraw()},t.removeAllTooltipOnChart=function(e,t){for(var n=e.implicit,r=e.explicit,o=0;o;&]/,F=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,I="rgba(192,192,192,"+(P?.002:1e-6)+")",z="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+escape("3.16.0"),B="70|117|115|105|111|110|67|104|97|114|116|115|32|84|114|105|97|108".split("|").map(function(e){return String.fromCharCode(+e)}).join(""),j=parseFloat,V=/fusioncharts\.com|fusioncharts\.github\.io$/i,W=/\{br\}\s*/gi,H=/^#?/,G=/^rgba/i,U=/[#\s]/gi,q=Math.abs,Y=Math.pow,X=Math.round,K=Y(2,-24),$="ontouchstart"in A,Z=$&&!(T.maxTouchPoints||T.msMaxTouchPoints),J=!V.test(S.location.hostname),Q=Math,ee=Q.max,te=Q.min,ne={pageX:0,pageY:0},re=["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],oe=["rem","em","vw","%","px"],ie={paletteColors:[re,re,re,re,re],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD","EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],TrendLightShadeOffset:30},ae={numDecimals:function(e){var t=e;t=Ne(t,10);var n=Ne((t=Math.abs(t))-Math.floor(t),10),r=String(n).length-2;return r=r<0?0:r},toRadians:function(e){return e/180*Math.PI},toDegrees:function(e){return e/Math.PI*180},flashToStandardAngle:function(e){return-1*e},standardToFlashAngle:function(e){return-1*e},flash180ToStandardAngle:function(e){var t=e,n=360-((t%=360)<0?t+360:t);return 360===n?0:n},getAngularPoint:function(e,t,n,r){var o=r*(Math.PI/180);return{x:e+n*Math.cos(o),y:t-n*Math.sin(o)}},remainderOf:function(e,t){return Math.ceil(e%t)},boundAngle:function(e){return e>=0?ae.prototype.remainderOf(e,360):360-ae.prototype.remainderOf(Math.abs(e),360)},toNearestTwip:function(e){var t=e,n=t<0?-1:1,r=Math.abs(t),o=Math.round(100*r),i=Math.floor(o/5);return n*((Number(String(o-5*i))>2?5*i+5:5*i)/100)},roundUp:function(e,t){var n=e,r=t;r=r||2;var o=Math.pow(10,r);return n*=o,n=Math.round(Number(String(n))),n/=o}},se=2*Q.PI,le=k?0:.5,ce=["color"],ue=function(){if(Array.isArray)return Array.isArray;var e=Object.prototype.toString;return function(t){return e.call(t)===e.call([])}}(),de=function(e){return e.pageX===u&&(e.pageX=e.clientX+A.body.scrollLeft+A.documentElement.scrollLeft,e.pageY=e.clientY+A.body.scrollTop+A.documentElement.scrollTop),e},he=(y="innerWidth",b="innerHeight",C=A.documentElement||A.body,w=C,"innerWidth"in S?w=S:(y="clientWidth",b="clientHeight"),function(){return{width:w[y],height:w[b],scrollTop:C.scrollTop,scrollLeft:C.scrollLeft}}),pe=(v=/^@window_/g,function(e,t,n){var r,o,i,a,s=e.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),l=S,c="";for(i=s.length,a=0;a1?2:.5,Number(s)/Number(l)f(n))},function(e,t,n,r,o,i,a,s){var l,c,d,h,f,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F,I,z=0,B=e,j=t,V=o,W=i,H=a;if((B=!0===isNaN(B)||B===u?.1:B)===(j=!0===isNaN(j)||j===u?0:j)&&0===B&&(B=.1),V=void 0===V||V,W=void 0===W||W,v=Math.floor(Math.log(Math.abs(B))/Math.LN10),y=Math.floor(Math.log(Math.abs(j))/Math.LN10),b=Math.max(y,v),C=Math.pow(10,b),Math.abs(B)/C<2&&Math.abs(j)/C<2&&(b--,C=Math.pow(10,b)),w=Math.floor(Math.log(B-j)/Math.LN10),x=Math.pow(10,w),B-j>0&&C/x>=10&&(C=x,b=w),_=(Math.floor(B/C)+1)*C,S=j<0?(Math.floor(Math.abs(j/C))+1)*C*-1:W||(S=Math.floor(Math.abs(j/C)-1)*C)<0?0:S,V&&B<=0&&(_=0),c=!(!r&&0!==r),d=0==(l=!(!n&&0!==n))||!0===l&&Number(n)K?_:Number(n),h=!1===c||!0===c&&Number(r)>j&&Number(r)-j>K?S:Number(r),f=Math.abs(d-h),m=C,!1===c&&!1===l&&s)if(d>0&&h<0){for(E=!1,A=p(h,d,H,O=m>10?m/10:m,!1)-(H+1)*O;!1===E;)if(g(A+=(H+1)*O,H,O))if(M=A-f,T=A/(H+1),k=(D=Math.min(Math.abs(h),d))===Math.abs(h)?-1:1,0===H)E=!0;else for(N=1;N<=Math.floor((H+1)/2);N++)(P=T*N)-D>M||P>D&&(F=A-P)/T===Math.floor(F/T)&&P/T===Math.floor(P/T)&&(f=A,d=-1===k?F:P,h=-1===k?-P:-F,E=!0)}else M=(L=p(h,d,H,m,!0))-f,f=L,d>0?d+=M:h-=M;else s&&(I=function(e,t,n){for(var r,o=0,i=1;!g(t,r=0===(r=e+o*i)?1:r,n);){if((o=-1===i||o>e?++o:o)>25){r=0;break}i=o<=e?-1*i:1}return r},H>0&&(0===(R=I(H,f,m))&&(R=I(H,f+1,m),z=1),H=R));return{Max:d,Min:h,Range:f,interval:m,divGap:(d-h+z)/(H+1)}}),ve={keyup:!0,blur:!0,click:!0,load:!0,dragstart:!0,dragmove:!0,dragend:!0,dblclick:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,"fc-wheel":!0,"fc-click":!0,"fc-dragstart":!0,"fc-dragmove":!0,"fc-dragend":!0,"fc-dbclick":!0,"fc-mousedown":!0,"fc-mousemove":!0,"fc-mouseout":!0,"fc-mouseover":!0,"fc-mouseup":!0,"fc-pinchstart":$||Z,"fc-pinchmove":$||Z,"fc-pinchend":$||Z,touchstart:$||Z,touchmove:$||Z,touchend:$||Z,touchcancel:$||Z},ye={stripWhitespace:/\s+/g,dropHash:H,startsRGBA:G,cleanColorCode:U,breakPlaceholder:W,hexcode:/^#?[0-9a-f]{6}/i};function be(e){return null!=e}function Ce(e){var t={},n=e.getBoundingClientRect();return t.left=n.left+(window.pageXOffset||document.documentElement.scrollLeft),t.top=n.top+(window.pageYOffset||document.documentElement.scrollTop),t}function we(e){var t=e&&(e.sourceEvent||e.originalEvent||e);return $&&t&&(t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0])||t||ne}function xe(e){var t,n,r,o=e.data,i=o.chart,a=i.getFromEnv("animationManager"),s=de(we(e.originalEvent)),l=i.getChildren("canvas")[0],c=t=l.getGraphicalElement("resizeBox"),u=o.layerX=s.pageX-o.chartPosLeft,d=o.layerY=s.pageY-o.chartPosTop,h=u-o.ox,p=d-o.oy,f=o.bBox,g=o.ox,m=o.oy,v=o.zoomX,y=o.zoomY,b=o.canvasY,C=o.canvasX,w=o.canvasX2,x=o.canvasY2,_=o.strokeWidth,S=o.attr;switch(e.state){case"start":n=Ce(this),o.chartPosLeft=n.left,o.chartPosTop=n.top,u=s.pageX-o.chartPosLeft,d=s.pageY-o.chartPosTop,o.oy=d,o.ox=u,o.allowMove=!1,S.x=0,S.y=0,S.height=0,S.width=0,c=l.addGraphicalElement("resizeBox",a.setAnimation({el:t||"rect",attr:S,container:i.getChildContainer("trackerGroup")})).show(),t||l.addGraphicalElement("resizeBox",c),u>C&&ub&&dt.canvasX&&it.canvasY&&a2)switch(n=2*Math.PI/a,d){case 0:for(r=0;r=n||s>=r)&&(s=Math.floor(Math.min(n,r)/2)||s);var l=e,c=t,u=e+n,d=s/2,h=s%2,p=t+r;return c=i.top?Math.round(c)+d-le:h?Math.floor(c)+.5-le:Math.round(c)-le,p=i.bottom?Math.round(p)-d-le:a&&i.top?Math.round(p)+d-le:h?Math.floor(p)+.5-le:Math.round(p)-le,l=i.left?Math.round(l)+d-le:a&&i.right?Math.round(l)-d-le:h?Math.floor(l)+.5-le:Math.round(l)-le,u=i.right?Math.round(u)-d-le:h?Math.floor(u)+.5-le:Math.round(u)-le,{x:l,y:c,width:Math.abs(u-l),height:Math.abs(p-c),"stroke-width":s}},t.supportedStyle={font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color","border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},t.chartPaletteStr={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},t.normalizeAngle=function(e,t){var n=t?360:se,r=(e||0)%n;return r<0?n+r:r},t.MathExt=ae,t.xssEncode=function(e){var t=e;return null==t||"function"!=typeof t.toString?"":t=t.toString().replace(/&/g,"&").replace(/\'/g,"'").replace(/\"/g,""").replace(//g,">")},t.isXSSSafe=function(e,t){return(!t||null===F.exec(e))&&null===R.exec(e)},t.domInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},t.defaultGaugePaletteOptions=ie,t.txtLabel=J,t.hasTouch=Z,t.touchEnabled=$,t.mathRound=X,t.mathAbs=q,t.validhexcolor=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,t.cleanColorCode=U,t.startsRGBA=G,t.dropHash=H,t.TXT_REGEX=V,t.visibleStr="visible",t.hiddenStr="hidden",t.animationObjStr="animationObj",t.configStr="config",t.lineHeightFactor=1.2,t.HOVER_THRESHOLD_PIXELS=1,t.CLICK_THRESHOLD_PIXELS=5,t.TOUCH_THRESHOLD_PIXELS=15,t.canvasBorderColorStr="canvasBorderColor",t.TXT_STRING=B,t.TXT_HREF=z,t.FIT="fit",t.FILL="fill",t.TILE="tile",t.HAND="pointer",t.POINTER="pointer",t.BOLD="bold",t.NORMAL="normal",t.UNDERSCORE="_",t.ROUND="round",t.canvasBGAlphaStr="canvasBgAlpha",t.TEXTANCHOR="text-anchor",t.COMMASPACE=", ",t.PXSTRING="px",t.VISIBLE="visible",t.INITIALSTR="initial",t.FINALSTR="final",t.HUNDREDSTRING="100",t.SHAPE_RECT="rect",t.FC_CONFIG_STRING="_FCconf",t.POSITION_END="end",t.POSITION_START="start",t.MIDDLESTR=t.POSITION_MIDDLE="middle",t.POSITION_BOTTOM="bottom",t.POSITION_TOP="top",t.STRINGUNDEFINED="undefined",t.DECIMALSTRING=".",t.ONESTRING="1",t.TESTSTR="Ag",t.MOUSEMOVE="fc-mousemove",t.MOUSEOUT="fc-mouseout",t.ZEROSTRING="0",t.COMMA=",",t.COMMASTRING=",",t.BLANKSTRING="",t.BLANK="",t.OBJECTSTRING="object",t.STRINGSTRING="string",t.BREAKSTRING="
",t.HASHSTRING="#",t.COLOR_TRANSPARENT="rgba(0,0,0,0)",t.COLOR_WHITE="FFFFFF",t.COLOR_GLASS="rgba(255, 255, 255, 0.3)",t.COLOR_BLACK="000000",t.SAMPLESTRING="Ay0",t.BLANKSTRINGPLACEHOLDER="#BLANK#",t.UNDEF=u,t.POSITION_CENTER="center",t.POSITION_LEFT="left",t.POSITION_RIGHT="right",t.POSITION_ABSOLUTE="absolute",t.TRACKER_FILL=I,t.attrTypeBool=2,t.attrTypeNum=1,t.DEFAULT_FT_FONT="Helvetica, Arial, sans-serif",t.isIpad=L,t.isEdge=N,t.isIE=P,t.isIE11=D,t.hasSVG=k,t.isFirefox=O,t.isIE9=E,t.getEmptyConstractor=function(){return M},t.stubFN=M,t.DASH_DEF="none",t.BGRATIOSTRING=void 0,t.isSimilarObject=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;var n;for(n in e)if(e[n]!==t[n])return!1;return!0},t.snapPoint=function(e,t,n){for(var r=t.length,o=n.lastSnap,i=1,a=r,s=n.config.setValue;a--;)if(q(t[a]-s)a&&l.configure&&l.configure(o[a]);if(a<(s=c&&c.length))for(;ai&&s.configure&&s.configure(o[i]);if(i<(a=l&&l.length))for(;ii&&l.__end&&(d=l[l.__end],l[d.__prev].__next=null,delete l[l.__end],l.__end=d.__prev,c--)),(h=l.__start)!==u&&(u.__prev=null,u.__next=h,h&&(h.__prev=p),l.__start=u),l[p][r]}}},function(e,t,n){"use strict";t.__esModule=!0,t.convertColor=function(e,t,n){var r,o,i=0,a=0,s=0,l=t;if(n&&n.match(u)&&(o=n.split(","),i=o[0].slice(o[0].indexOf("(")+1),a=o[1],s=o[2],l||0===l||(l=parseInt(100*o[3].slice(0,o[3].indexOf(")")),10))),e)if(e.match(u))o=e.split(","),i=o[0].slice(o[0].indexOf("(")+1),a=o[1],s=o[2];else{switch((r=e.replace(d,"").split(",")[0]).length){case 3:r=r.charAt(0)+r.charAt(0)+r.charAt(1)+r.charAt(1)+r.charAt(2)+r.charAt(2);break;case 6:break;default:r=(r+"FFFFFF").slice(0,6)}i=parseInt(r.slice(0,2),16)||0,a=parseInt(r.slice(2,4),16)||0,s=parseInt(r.slice(4,6),16)||0}return l||0===l||(l=100),"string"==typeof l&&(l=l.split(",")[0]),l=parseInt(l,10)/100,"rgba("+i+","+a+","+s+","+l+")"},t.getDarkColor=m,t.getLightColor=v,t.mapSymbolName=function(e,t){var n=r,a=e;return(a=h(a))>=3&&(n=(t?i:o)+a),n},t.getColumnColor=function(e,t,n,r,o,i,a,s,l){var c,u,d,h,p,f,y,b=e,C=t;return u=b.split(","),d=C.split(","),h=i.split(","),y=a.split(","),b=b.replace(/\s/g,"").replace(/\,$/,""),l?c={FCcolor:{color:u[0],alpha:d[0]}}:o?(p=u[0],f=d[0],c={FCcolor:{color:m(p,75)+","+v(p,10)+","+m(p,90)+","+v(p,55)+","+m(p,80),alpha:f+","+f+","+f+","+f+","+f,ratio:"0,11,14,57,18",angle:s?"90":"0"}},h=[m(p,70)]):(C=function(e,t,n){var r,o=e.split(","),i=void 0;for(void 0!==i&&(i=Number(i.split(",")[0])),i=isNaN(i)?void 0:i,o[0]=g(o[0],i),r=1;r100||t<0)&&(t=100),t}function g(e,t){var n=e;return n=Number(n),n=isNaN(n)?100:n,void 0!==t&&(n=n*t/100),n%101}function m(e,t){var n=e,r=t;r=r<0||r>100?100:r,r/=100,n=n.replace(d,"");var o=parseInt(n,16),i=Math.floor(o/65536),a=Math.floor((o-65536*i)/256);return("000000"+(i*r<<16|a*r<<8|(o-65536*i-256*a)*r).toString(16)).slice(-6)}function v(e,t){var n=e,r=t;r=r<0||r>100?100:r,r/=100,n=n.replace(d,"");var o=parseInt(n,16),i=Math.floor(o/65536),a=Math.floor((o-65536*i)/256);return("000000"+(256-(256-i)*r<<16|256-(256-a)*r<<8|256-(256-(o-65536*i-256*a))*r).toString(16)).slice(-6)}function y(e){return e.replace(d,"").replace(l,"#")}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){var s={};switch(t){case"top":s.y=e;break;case"bottom":s.y=a-o-e;break;case"middle":s.y=(a-o)/2}switch(n){case"left":s.x=e;break;case"right":s.x=i-r-e;break;case"middle":s.x=(i-r)/2}return s}t.__esModule=!0,t.getAlignImage=function(e,t,n,o,i,a,s,l,c,u){var d,h,p,f,g={};switch(n){case"center":g.width=o,g.height=i,g.y=s/2-i/2,g.x=a/2-o/2;break;case"stretch":g.width=a-2*l,g.height=s-2*l,g.y=l,g.x=l;break;case"tile":g.width=o,g.height=i,g.tileInfo={},g.tileInfo.xCount=h=Math.ceil(c/o),g.tileInfo.yCount=p=Math.ceil(u/i),f=r(l,e,t,o*h,i*p,a,s),g.y=f.y,g.x=f.x;break;case"fit":d=o/i>c/u?c/o:u/i,g.width=o*d,g.height=i*d,f=r(l,e,t,g.width,g.height,a,s),g.y=f.y,g.x=f.x;break;case"fill":d=o/i>c/u?u/i:c/o,g.width=o*d,g.height=i*d,f=r(l,e,t,g.width,g.height,a,s),g.y=f.y,g.x=f.x;break;default:f=r(l,e,t,o,i,a,s),g.width=o,g.height=i,g.y=f.y,g.x=f.x}return g}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){var e,t,n;for(t=0,n=arguments.length;t> ";o instanceof Error?(o.name=g[n],o.module="FusionCharts"+r,o.level=i,o.message=a+o.message,a=o.message,setTimeout(function(){throw o},0)):a+=o,p(i,e,{id:t,nature:g[n],source:"FusionCharts"+r,message:a})},v=function(e,t,n,r,o){m(e,t,n,r,o,"Error")};t.setRootSender=function(e){void 0===e&&(e={}),o=e},t.raiseEventGroup=function(e,t,n,o,i,a,s){var l=o.id,c=e+l;r[c]?(clearTimeout(r[c]),delete r[c]):l&&c?r[c]=setTimeout(function(){p(t,o,n,i,a,s),delete r[c]},0):p(t,o,n,i,a,s)},t.raiseWarning=function(e,t,n,r,o){m(e,t,n,r,o,"Warning")},t.raiseError=v,t.disposeEvents=function(e){var t,n=e?e._evtListeners:d;for(t in n)n[t].length&&(n[t].length=0)},t.getListeners=f,t.triggerEvent=p,t.removeListener=function e(t,n,r){var o,i;if("function"==typeof n){if(t instanceof Array)for(i=0;i=0;i-=1)o[i][0]===n&&o[i][1]===r&&(o[i].removed=!0)}else v(r,"03091560","param","::removeListener",new Error("Invalid Event Listener"))},t.addListener=function e(t,n,r,o){var i,a,s,l=t;if(l instanceof Array){for(i=[],a=0;a=0;o--)if(n[o].getId&&n[o].getId()===e)return t(n[o],o,n)}else if(n.getId&&n.getId()===e)return t(r,void 0,i)},n.getChildren=function(e){return e?this._components[e]:this._components},t}(s.default);t.default=l},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r=n(215);t.__esModule=!0,t._mapSubFnForward=t.addAllEventsOnGraphic=t.removeAllEventsFromGraphic=t.default=void 0;var o=n(218),i=n(225),a=r(n(230)),s=function(e){e&&e.draw&&e.syncDraw()},l=function(e){return e.setDefaults()},c=function(e){e.prepareAttributes&&e.prepareAttributes()},u={},d={executionDelay:16},h=function(e,t){var n,r,o,i;if(e&&e.hasOwnProperty&&t&&t.call)for(n in e)if(e.hasOwnProperty(n))if((r=e[n])instanceof Array)for(i=r.length,o=0;o=1&&e&&e.off(n,t[n])},t.addAllEventsOnGraphic=function(e,t,n){var r,o;if(t&&t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(o=(0,i.getListeners)(r,n))&&o.length>=1&&e&&e.on(r,t[r])},t._mapSubFnForward=h;var p=function(){function e(){var e=this;e.config={},e._jobList={},e._env={},e._extListeners={},e._state={},e._factories=[],e._factoriyNames={},e._graphics={},e.__drawJob=function(){e.updateVisual()},e.computeFontSize=o.computeFontSize.bind(e),e.__remove=function(){e.getState("removed")&&e._dispose()},e._setRemoveAnim=function(t,n){var r=e.getFromEnv("animationManager");r.setAnimation({el:t,component:e,label:n,props:t.__props}),e._setRemoveAnim=function(t,n){r.setAnimation({el:t,component:e,label:n,props:t.__props})}},e.__instantRemoveFn=function(t){var n=e.getFromEnv("animationManager");n.removeElement(t,!0),e.__instantRemoveFn=function(e){return n.removeElement(e,!0)}}}var t=e.prototype;return t.configure=function(e){this.preConfigure(e),this.configureAttributes(e),this.postConfigure(e),this.invokeFactories()},t.preConfigure=function(e){this.fireEvent("preconfigure",e)},t.configureAttributes=function(){return this},t.postConfigure=function(e){this.fireEvent("postconfigure",e)},t.prepareAttributes=function(){this.fireEvent("beforeattributeprepared"),this.allocatePosition&&this.allocatePosition(),this._mapChildren(c),this.fireEvent("attributeprepared")},t.setDefaults=function(){this.__setDefaultConfig(),this._mapChildren(l)},t.__setDefaultConfig=function(){return this},t.setData=function(e,t){void 0===t&&(t=!1);var n,r=this.getLinkedParent();this.asyncDraw(),!t&&this.setDefaults(),this.configure&&this.configure(e),(n=this.getState("change-info"))&&n.hasNoExternalEffect||r&&r.childChange&&r.childChange(n,this.getId())},t.getName=function(){return"generic"},t.getType=function(){return"generic"},t.getComponentVersion=function(){return this._version},t.getId=function(){return this._id||this.setId(),this._id},t.setId=function(e){var t,n=e;n===o.UNDEF&&(t=this.getType()+o.UNDERSCORE+this.getName(),u[t]||(u[t]=1),n=t+o.UNDERSCORE+u[t],u[t]+=1),this._id=n},t.iterateComponents=function(e){this._mapChildren(function t(n,r,o){!1!==e(n,r,o)&&n._mapChildren&&n._mapChildren(t)})},t.getFromEnv=function(e){return e?this._env[e]:this._env},t.addToEnv=function(e,t){e&&(this._env[e]=t)},t.deleteFromEnv=function(e){delete this._env[e]},t._updateParentEnv=function(){var e,t,n,r,o=this.getLinkedParent(),i=this._env;if(o){if(e=o.getFromEnv(),((t=function(){}).prototype=e).constructor=t,n=new t,i)for(r in i)i.hasOwnProperty(r)&&(n[r]=i[r]);this._env=n,this._mapChildren(function(e){e._updateParentEnv&&e._updateParentEnv()})}},t.addJob=function(e,t,n,r){this._jobList[e]?this._jobList[e]=a.default.updateJob(this._jobList[e],t,n,r):this._jobList[e]=a.default.addJob(t,n,r)},t.removeJob=function(e){var t=this._jobList[e];t&&(a.default.removeJob(t),delete this._jobList[e])},t.removeAllJobs=function(){var e,t=this._jobList;for(e in t)t.hasOwnProperty(e)&&(a.default.removeJob(t[e]),delete t[name])},t.asyncDraw=function(){this.addJob("draw",this.__drawJob,a.priorityList&&a.priorityList.draw,d)},t.syncDraw=function(){var e=this;e.fireEvent("predraw"),e.removeJob("draw"),e.getState("removed")?e.removingDraw():e.draw&&e.draw(),e.addExtEventListener("animationComplete",e.__remove,e.getFromEnv("animationManager")),e.childrenSyncDraw(),e.setState("dirty",!1),e.setState("parentChanged",!1),e.addJob("draw-complete",function(){e.fireEvent("drawn")},a.priorityList.instant)},t.updateVisual=function(){this.fireEvent("beforevisualupdate"),this.removeJob("visualupdate"),this.manageSpace&&this.manageSpace(),this.prepareAttributes(),this.syncDraw(),this.fireEvent("visualupdated")},t.childrenSyncDraw=function(){this._mapChildren(s)},t.addEventListener=function(e,t,n){var r,a=this,s=e;return!!(s&&s.toLowerCase&&(s=s.toLowerCase(),(0,i.addListener)(s,t,a,n)))&&((0,o.isInterActiveEvt)(s)&&(r=(0,i.getListeners)(s,a))&&1===r.length?(a._middleListeners||(a._middleListeners={}),a._middleListeners[s]||(a._middleListeners[s]=function(e){a.fireEvent(s,o.UNDEF,o.UNDEF,o.UNDEF,e)}),!0):t)},t.removeEventListener=function(e,t){var n,r=e;if(r&&r.toLowerCase&&(r=r.toLowerCase(),(0,i.removeListener)(r,t,this),(0,o.isInterActiveEvt)(r)&&(n=(0,i.getListeners)(r,this))&&0===n.length&&this._middleListeners&&this._middleListeners[r]))return!0},t.fireEvent=function(e,t,n,r,o){(0,i.triggerEvent)(e,this,t,o,n,r)},t.showWarning=function(e,t,n,r){(0,i.raiseWarning)(this.getFromEnv("chartInstance"),e,t,n,r)},t.showError=function(e,t,n,r){(0,i.raiseError)(this.getFromEnv("chartInstance"),e,t,n,r)},t.addExtEventListener=function(e,t,n){return!!(n&&n.addEventListener&&n.addEventListener(e,t))&&(this._extListeners[e]||(this._extListeners[e]=[]),this._extListeners[e].push({fn:t,component:n}),t)},t.removeExtEventListener=function(e,t,n){var r,o;if(n&&n.addEventListener&&this._extListeners&&this._extListeners[e])for(r=(o=this._extListeners[e]).length-1;r>=0;r-=1)if(o[r]&&o[r].fn===t&&o[r].component===n)return n.removeEventListener(e,t),void o.splice(r,1)},t._setLinkedParent=function(e){var t=this._linkedParent;this._linkedParent=e,t&&t!==e&&(this.setState("parentChanged",!0),this.fireEvent("parentdetached",{oldParent:t}),e&&this.fireEvent("parentAttached",{newParent:e})),this._updateParentEnv&&this._updateParentEnv()},t.getLinkedParent=function(){return this._linkedParent},t.setLinkedItem=function(e,t){this.linkedItems||(this.linkedItems={}),e===o.UNDEF&&t===o.UNDEF||(this.linkedItems[e]=t)},t.getLinkedItem=function(e){if(this.linkedItems)return e!==o.UNDEF?this.linkedItems[e]:this.linkedItems},t.removeLinkedItem=function(e){this.linkedItems&&this.linkedItems[e]&&delete this.linkedItems[e]},t._detachChild=function(e){var t,n=e&&e.getId(),r=this;return n===o.UNDEF?o.UNDEF:(r._searchChildren(n,function(e,n,i){i&&i.constructor===Array?t=i.splice(n,1)[0]:(t=i[e],delete i[e]),t._setLinkedParent(o.UNDEF),r.fireEvent("childdetached",{detachedChild:t})}),t)},t._mapChildren=function(e,t){t?function(e,t){var n,r,o;if(e&&e.hasOwnProperty&&t&&t.call)for(n in e)if(e.hasOwnProperty(n))if((r=e[n])instanceof Array)for(o=r.length-1;o>=0;o--)t(r[o],n,o);else t(r,n)}(this.getChildren(),e):h(this.getChildren(),e)},t._dispose=function(){var e,t,n,r;if(this&&this!==window&&!0!==this._disposing){if(this._disposing=!0,this.fireEvent("beforeremove"),(e=this.getLinkedParent())&&e._detachChild&&!e._disposing&&e._detachChild(this),this._extListeners)for(n in this._extListeners)for(t=(r=this._extListeners[n]).length-1;t>=0;t--)r[t].component&&r[t].component.addEventListener&&r[t].component.removeEventListener(n,r[t].fn);return this.removeAllJobs(),!0}},t.remove=function(e){this.setState("removed",!0),this.getChildren()&&this._mapChildren(function(t){t&&t.remove&&t.remove(e)},!0),e&&e.instant&&this._dispose()},t.setState=function(e,t){this._state[e]=t},t.getState=function(e){return this._state&&this._state[e]},t.registerFactory=function(e,t,n){var r={name:e,factory:t,dep:n};if(this._factoriyNames[e])for(var o=0,i=this._factories.length,a=!1;o=0&&!t(r[o],n,o);o--);},d=function(e,t){var n,r,o,i;if(e&&e.hasOwnProperty&&t&&t.call)for(r in e)for(i=0,n=(o=e[r].elemStore)&&o.length;i=0;t--)r[t].component&&r[t].component.addEventListener&&r[t].component.removeEventListener(n,r[t].fn);for(e in this.removeAllJobs(),this._linkedParent&&1===this._linkedParent.getComponentVersion()&&this._linkedParent._detachChild(this),this.getFromEnv("paper")&&!this.getFromEnv("paper").removed&&d(this.getGraphicalElement(),this.__instantRemoveFn),this)this.hasOwnProperty(e)&&delete this[e];this.fireEvent("removed")}},n.configure=function(t){this._resetComponentStore(),e.prototype.configure.call(this,t)},n._resetComponentStore=function(){this._oldComponentStore.push(this._componentStore),this._componentStore={}},n._mapChildren=function(e,t){t?u(this.getChildren(),e):d(this.getChildren(),e)},n.attachChild=function(e,t,n){var r,o,i=this._componentStore[t]||(this._componentStore[t]={elemStore:[],idMap:{},indexMap:{},lastIndexUsed:-1}),a=this._oldComponentStore&&this._oldComponentStore.length&&this._oldComponentStore[this._oldComponentStore.length-1][t],s=i.lastIndexUsed+=1;if(a){var c=a.elemStore,u=c[s];n&&a.idMap[n]!==l.UNDEF?(o=c[r=a.idMap[n]],delete c[r],delete a.indexMap[r],delete a.idMap[n]):u&&u.constructor===e&&(a.indexMap[s]||(o=u,delete c[s]))}return o||(o=new e(n)),i.elemStore[s]=o,n&&(i.idMap[n]=s,i.indexMap[s]=n),o._setLinkedParent(this),o},n.childrenSyncDraw=function(){this._mapChildren(function(e){e&&e.draw&&e.syncDraw()}),this._removeUnusedChildren()},n._removeUnusedChildren=function(){for(var e=this._oldComponentStore,t=e.length,n=0,r=function(e){e&&(e._remove(),e.syncDraw(),e._setLinkedParent(l.UNDEF))};n0&&t&&t[a("0xd")]>0){for(var o=this._generateCharSet(),i=0;i-1&&(n+=r[a("0x9")](s,1),r=this[a("0x13")](r,t.charCodeAt(i)))}return n}return""},t[a("0x13")]=function(e,t){var n=t;return(n%=e.length)<0&&(n=e[a("0xd")]+n),0!==n?e.substr(e.length-n,n)+e[a("0x9")](0,e[a("0xd")]-n):e},t[a("0x0")]=function(e,t){var n,r,o=this;if(t&&(!0===t[a("0x1b")]||!1===t.creditLabel)){var i=this._mapMain(e,t[a("0xb")]);n=e,(r=i)?(n[a("0x16")][a("0x1")]=r[a("0x9")](r[a("0xd")]/2),n[a("0x16")][a("0x4")]=r[a("0x9")](0,r[a("0xd")]/2)):(n[a("0x16")][a("0x1")]=null,n[a("0x16")][a("0x4")]=null),e[a("0x16")].isCreditLabel=t[a("0x1b")];var s=e.items;s&&Object.keys(s).forEach(function(t){s[t][a("0x19")]()&&o[a("0x7")](e,s[t])})}},t[a("0x7")]=function(e,t){var n=e.options,r=n[a("0x4")],o=n._chartSel,i=n.isCreditLabel,s=null;if(r&&o){var c=r+o;s=this[a("0x1c")](e,c)}l.default[a("0x5")](t,i,s,e[a("0x12")][1])},t._tripod=function(e,t){var n="",r=this[a("0x3")](e),o=this._generateCharSet();if(r[a("0xd")]>0&&t[a("0xd")]>0){for(var i=0;i-1&&(n+=o[a("0x9")](s,1),o=this[a("0x13")](o,-o[a("0xe")](s)))}return n}return""},t._generateDimeSet=function(e){var t="",n=[],r=this[a("0xf")](),o=!1,i=e[a("0x16")][a("0x1d")]||[];i&&i.length>0&&(o=!0);for(var s=0;s80&&(t+=n[a("0x8")](),n++);return""+r+e+t+"%-="},e}(),u=Object[a("0xc")](new c);t[a("0x6")]=u},function(e,t,n){var r,o,i=["prototype","childObj","_mapperSeed","utilityArrSet","moduleChartMapper","default","freeze","trierFirst"];r=i,o=460,function(e){for(;--e;)r.push(r.shift())}(++o);var a=function(e,t){return i[e-=0]},s=n(211);t.__esModule=!0,t[a("0x1")]=void 0;var l,c=s(n(240)),u=n(241),d=Object[a("0x2")](new(l=Symbol(a("0x5")),function(){function e(){this[l]=Object[a("0x2")](new(c[a("0x1")]))}return e[a("0x4")][a("0x6")]=function(e,t,n,r){this[l][a("0x3")](e,n,t,r,u[a("0x7")],u[a("0x0")])},e}()));t.default=d},function(e,t){var n,r,o=["luv","_hostFetcher","floor","length","indexOf","getTime","config","default","0.0.0.0","split","fcs","removeGraphicalElement","isUpgrade","utility_version","fromCharCode","_fromRange","127.0.0.1","fusionMaps","modules","filter","match","observer","creditLabel","products","_trierDomainMapper","_trierValidator","fusionCharts","Your FusionCharts license is expiring in ","powerCharts","checker","toLowerCase","elementReprocator","startDate","prototype","chartGenMinimizer","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789","charCodeAt","_trierStraightner","parse","toString","endDate","map","round","string","trim","getGraphicalElement","_foo","random","name","localhost","fusionChartsSuite","location","_trierDateMapper","chartType","fusionWidgets","getName","apiInstance","warn","disconnect"];n=o,r=259,function(e){for(;--e;)n.push(n.shift())}(++r);var i=function(e,t){return o[e-=0]};t.__esModule=!0,t[i("0x2b")]=void 0;var a=function(){function e(){}return e[i("0xa")].trierFirst=function(e,t,n,r,o,a){var s=this._trierStraightner(t);if(s){var l=o.filter(function(e){return e[i("0x31")]===s[i("0x24")]});if(l&&l.length>0){var c=l[0];if(this[i("0x1d")](s,c,r)){var u=this._trierProductMapper(s,c);if(u&&this._trierModuleMapper(s,c,e[i("0x1e")](),u,a)&&this[i("0x1")](s,c)&&!n)return void this[i("0x2")](e)}}}return e[i("0x21")]._drawMain(!0),!1},e}();t[i("0x2b")]=a,a[i("0xa")][i("0x2")]=function(e){for(var t=Math[i("0x26")](12*Math[i("0x18")]())+2,n=e.apiInstance[i("0x20")]()[i("0x27")],r=0;r10?n%9+1:n},a[i("0xa")]._fromRange=function(e,t,n){for(var r=Math.abs(n),o=e;r-- >0;)o-=t;return n<0&&(o+=123),o},a[i("0xa")][i("0x17")]=function(e){return e},a[i("0xa")][i("0xe")]=function(e){if(!e)return e;for(var t="",n=i("0xc").indexOf(e[0]),r=this[i("0x17")](i("0xd")),o=this._foo(i("0x32")),a=1;ac)return!1;if(s&&ad)return!1;if(s&&a0?r[0]:null}return null},a[i("0xa")]._trierModuleMapper=function(e,t,n,r,o){var a=e[t[i("0x12")][i("0x36")]];if(r[i("0x19")]===i("0x2e")){if(a[i("0x27")]>0){for(var s=0;s-1||o[i("0x5")].indexOf(n)>-1||o[i("0x1f")].indexOf(n)>-1||o[i("0x35")][i("0x28")](n)>-1)return!0}else if(o[l][i("0x28")](n)>-1)return!0}return!1}return!1}return!1},a[i("0xa")].elementReprocator=function(e){e[i("0x2f")](e[i("0x16")](i("0x3a")))},a.prototype[i("0x1")]=function(e,t){var n=e[t[i("0x12")].domain]||"a",r=this[i("0x25")]();if(!r)return!1;if("localhost"===r||r===i("0x34")||r===i("0x2c"))return!0;if(n&&"a"!==n){for(var o=n[i("0x2d")](","),a=!1,s=0;s-1){a=!0;break}}return a}return"a"===n},a[i("0xa")][i("0x25")]=function(){var e=window[i("0x1c")].href[i("0x38")](/:\/\/(www[0-9]?\.)?((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\0-\.0-9;-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/);return null!=e&&e[i("0x27")]>2&&typeof e[2]===i("0x14")&&e[2].length>0?e[2][i("0x7")]():null}},function(e,t,n){"use strict";t.__esModule=!0,t.moduleChartMapper=t.utilityArrSet=void 0,t.moduleChartMapper={fusionCharts:["column2d","column3d","histogram","pie2d","pie3d","line","bar2d","bar3d","area2d","doughnut2d","doughnut3d","pareto2d","pareto3d","mscolumn2d","newmscolumn2d","mscolumn3d","msbar2d","msbar3d","msline","zoomline","zoomlinedy","zoomscatter","msarea","stackedcolumn2d","newstackedcolumn2d","marimekko","stackedcolumn3d","stackedarea2d","stackedcolumn2dline","stackedcolumn3dline","stackedbar2d","stackedbar3d","msstackedcolumn2d","msstackedcombidy2d","mscombi2d","mscombi3d","mscolumnline3d","mscombidy2d","mscombidy3d","mscolumn3dlinedy","stackedcolumn3dlinedy","stackedcolumn2dlinedy","stackedarea2dlinedy","msstackedcolumn2dlinedy","scrollmsstackedcolumn2dlinedy","scatter","bubble","ssgrid","scrollcolumn2d","scrollmsstackedcolumn2d","scrollbar2d","scrollline2d","scrollarea2d","scrollstackedcolumn2d","scrollstackedbar2d","scrollcombi2d","scrollcombidy2d","treemap","overlappedcolumn2d","overlappedbar2d","msstackedcolumn2dsplinedy","mscombi2dspline","mscombidy2dspline","stackedcolumn2dspline","scrollcombi2dspline","scrollcombidy2dspline","aeroplaneseating","fusionhall"],powerCharts:["spline","splinearea","msspline","mssplinedy","mssplinearea","multiaxisline","multilevelpie","sunburst","waterfall2d","msstepline","difference","errorbar2d","horizontalerrorbar2d","errorscatter","errorline","logmsline","logmscolumn2d","logstackedcolumn2d","radar","chord","dragnode","candlestick","selectscatter","heatmap","boxandwhisker2d","sankey","dateaxis","dragcolumn2d","dragline","dragarea","kagi","inversemsline","inversemscolumn2d","inversemsarea"],fusionWidgets:["angulargauge","progressgauge","funnel","pyramid","sparkline","sparkcolumn","sparkwinloss","hbullet","vbullet","hlineargauge","hled","vled","thermometer","cylinder","bulb","gantt","drawingpad","realtimearea","realtimecolumn","realtimeline","realtimelinedy","realtimestackedarea","realtimestackedcolumn"],fusionMaps:["world","worldwithcountries","world8","europe","northamerica","centralamerica","southamerica","asia","africa","middleeast","oceania","asia3","northamericawocentral","usa","alaska","alabama","arizona","arkansas","california","colorado","connecticut","delaware","districtofcolumbia","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kentucky","kansas","lousiana","maine","maryland","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","newhampshire","newjersey","newmexico","newyork","northcarolina","northdakota","ohio","oklahoma","oregon","pennsylvania","rhodeisland","southcarolina","southdakota","tennessee","texas","utah","washington","vermont","virginia","westvirginia","wisconsin","wyoming","usaregion","usanortheastregion","usanorthwestregion","usacentralregion","usasoutheastregion","usasouthwestregion","europewithcountries","europe2","albania","andorra","austria","belarus","belgium","bosniaherzegovina","bulgaria","croatia","cyprus","cyprus2","czechrepublic","denmark","denmarkregion","england","estonia","finland","france","francedepartment","germany","greece","hungary","hungaryregions","iceland","ireland","italy","latvia","liechtenstein","lithuania","luxembourg","macedonia","malta","moldova","monaco","montenegro","netherlands","norway","norway","polandcounties","poland","portugal","romania","sanmarino","scotland","serbia","slovakia","slovenia","spain","spainprovinces","sweden","switzerland","turkey","uk","ukraine","vaticancity","europeregion","easteuropeanregion","westeuropeanregion","centraleuropeanregion","northeuropeanregion","southeuropeanregion","uk","uk7","englandregion","scotlandregion","wales","northireland","antigua","bahamas","barbados","canada","caymanislands","cuba","dominica","dominicanrepublic","greenland","grenada","haiti","jamaica","mexico","puertorico","saintkittsandnevis","saintlucia","saintvincentandthegrenadines","trinidadandtobago","argentina","bolivia","brazil","brazilregion","chile","colombia","ecuador","falklandisland","frenchguiana","guyana","paraguay","peru","suriname","uruguay","venezuela","centralamericawithcaribbean","centralamerica2","belize","costarica","elsalvador","guatemala","honduras","nicaragua","panama","alberta","britishcolumbia","manitoba","newbrunswick","newfoundlandandlabrador","northwestterritories","novascotia","nunavut","ontario","princeedwardisland","quebec","saskatchewan","yukonterritory","armenia","azerbaijan","bangladesh","bhutan","brunei","burma","cambodia","china","china2","georgia","easttimor","hongkong","india","indonesia","japan","kazakhstan","laos","macau","malaysia","mongolia","nepal","northkorea","philippines","russia","singapore","southkorea","srilanka","taiwan","thailand","tibet","vietnam","afghanistan","bahrain","iran","iraq","israel","jordan","kuwait","kyrgyzstan","lebanon","oman","pakistan","qatar","saudiarabia","syria","tajikistan","turkmenistan","unitedarabemirates","uzbekistan","yemen","oceania","australia","australia2","fiji","kiribati","marshallisland","micronesia","nauru","newcaledonia","newzealand","palau","papuanewguinea","samoa","solomonisland","tonga","tuvalu","vanuatu","algeria","angola","benin","botswana","burkinafaso","burundi","cameroon","capeverde","centralafricanrepublic","chad","comoros","congo","cotedivoire","democraticrepublicofthecongo","djibouti","egypt","equatorialguinea","eritrea","ethiopia","gabon","gambia","ghana","guinea","guineabissau","kenya","lesotho","liberia","libya","madagascarregions","malawi","mali","mauritania","mauritius","morocco","mozambique","namibia","niger","nigeria","rwanda","saotomeandprincipe","senegal","seychelles","sierraleone","somalia","southafrica","sudan","swaziland","tanzania","togo","tunisia","uganda","westernsahara","zambia","zimbabwe","aguascalientes","bajacalifornia","bajacaliforniasur","campeche","colima","distritofederal","guanajuato","nayarit","queretarodearteaga","quintanaroo","sonora","tamaulipas","zacatecas","andamanandnicobar","andhrapradesh","arunachalpradesh","assam","bihar","chandigarh","chattisgarh","dadraandnagarhaveli","damananddiu","delhi","goa","gujarat","haryana","himachalpradesh","jammuandkashmir","jharkhand","karnataka","kerala","lakshadweep","madhyapradesh","maharashtra","manipur","meghalaya","mizoram","nagaland","orissa","puducherry","punjab","rajasthan","sikkim","tamilnadu","tripura","uttarakhand","uttarpradesh","westbengal","acre","alagaos","amapa","amazonas","bahia","ceara","distritofederal","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","para","paraiba","parana","perambuco","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","sanpaulo","santacatarina","sergipe","tocantin","caribbeanregions","anguilla","aruba","bonaire","britishvirginisland","curacao","guadaloupe","martinique","montserrat","saintbarthelemy","sainteustatius","saintmartin","turksandcaicos","usvirginisland","antwerpen","brussels","eastflanders","flemishbrabant","hainaut","liege","limburg","luxembourg","namur","walloonbrabant","westflanders","centralbohemianregion","hradeckralove","karlovyvaryregion","liberecregion","moraviasilesia","olomouc","pardubice","plzen","prague","southbohemia","southmoravia","ustinadlabem","vysocina","zlin","iledefrance","paris","lyon","marseille","badenwurttemberg","bavaria","berlin","brandenburg","hesse","lowersaxony","mecklenburgvorpommern","northrhinewestphalia","rhinelandpalatinate","saarland","sachsenanhalt","saxony","schleswigholstein","thuringia","abruzzo","apulia","basilicata","calabria","campania","emiliaromagna","friuliveneziagiulia","lazio","liguria","lombardy","marche","molise","piedmont","sardinia","sicily","trentinoaltoadige","tuscany","umbria","veneto","blekinge","dalarna","gavleborg","halland","jamtland","jonkoping","kalmar","kronoberg","norrbotten","orebro","ostergotland","skane","sodermanland","stockholmcounty","uppsala","varmland","vasterbotten","vasternorrland","vastmanland","vastragotaland","aargau","appenzellausserrhoden","appenzellinnerrhoden","bern","basellandschaft","fribourg","geneva","graubunden","jura","lucerne","neuchatel","nidwalden","obwalden","schaffhausen","schwyz","solothurn","st.gallen","thurgau","ticino","valais","vaud","zurich","romania","burgenland","karnten","niederosterreich","oberosterreich","salzburg","steiermark","tirol","vorarlberg","wien","aveiro","beja","braga","braganca","castelobranco","coimbra","evora","faro","guarda","lieria","lisboa","portalegre","porto","santarem","setubal","vianadocastelo","vilareal","viseu","acre","amapa","amazonas","australia","bahia","ceara","distritofederal","egypt","espiritosanto","goias","maranhao","matogrosso","matogrossodosul","minasgerais","montana","para","paraiba","parana","piaui","riodejaneiro","riograndedonorte","riograndedosul","rondonia","roraima","santacatarina","sergipe","tibet","africaregion","aichi","akita","alabamaareacode","alabamacongressional","alagoas","alaskaareacode","alaskacongressional","alexandria","alminya","alsharqeyah","americansamoacongressional","anhui","aomori","arizonaareacode","arizonacongressional","arkansasareacode","arkansascongressional","asiaregion","aswan","asyut","auckland","australiancapitalterritory","bahera","baniswaif","bayofplenty","beijing","blagoevgrad","bostonareacode","burgas","busan","cairo","californiaareacode","californiacongressional","canterbury","centralhungary","centraltransdanubia","chagang","chiba","chicagoareacode","china3","chongqing","chungcheongbukdo","chungcheongnamdo","coloradoareacode","coloradocongressional","connecticutareacode","connecticutcongressional","czechrepublicdistricts","daegu","daejeon","dallasfortworthareacode","daqahliya","delawareareacode","delawarecongressional","detroitareacode","districtofcolumbiaareacode","districtofcolumbiacongressional","dobrich","domyat","eastnorthcentraldma","eastsouthcentraldma","ehime","fayoum","floridaareacode","floridacongressional","fujian","fukui","fukuoka","fukushima","gabrovo","gangwondo","gansu","georgiaareacode","georgiacongressional","gharbiya","gifu","gisborne","giza","gradsofia","guamcongressional","guangdong","guangxi","guizhou","gunma","gwangju","gyeonggido","gyeongsangbukdo","gyeongsangnamdo","hainan","haskovo","hawaiiareacode","hawaiicongressional","hawkesbay","hebei","heilongjiang","helwan","henan","hiroshima","hokkaido","hovedstaden","hubei","hunan","hyogo","ibaraki","idahoareacode","idahocongressional","illinoisareacode","illinoiscongressional","incheon","indianaareacode","indianacongressional","iowaareacode","iowacongressional","ishikawa","ismailia","iwate","jejudo","jeollabukdo","jeollanamdo","jiangsu","jiangxi","jilin","kaesong","kafralsheikh","kagawa","kagoshima","kanagawa","kangwon","kansasareacode","kansascongressional","kardzhali","kentuckyareacode","kentuckycongressional","kochi","kumamoto","kumgangsan","kyoto","kyustendil","liaoning","louisianaareacode","louisianacongressional","lovech","luxer","maineareacode","mainecongressional","manawatuwanganui","marlborough","marylandareacode","marylandcongressional","massachusettsareacode","massachusettscongressional","matrouh","michiganareacode","michigancongressional","middleatlanticdma","midtjylland","mie","minnesotaareacode","minnesotacongressional","mississippiareacode","mississippicongressional","missouriareacode","missouricongressional","miyagi","miyazaki","monofiya","montanaareacode","montanacongressional","mountaindma","nagano","nagasaki","nara","nebraskaareacode","nebraskacongressional","neimongol","nelson","nevadaareacode","nevadacongressional","newenglanddma","newhampshireareacode","newhampshirecongressional","newjerseyareacode","newjerseycongressional","newmexicoareacode","newmexicocongressional","newsouthwales","newyorkareaareacode","newyorkareacode","newyorkcongressional","niigata","ningxiahui","nordjylland","northcarolinaareacode","northcarolinacongressional","northdakotaareacode","northdakotacongressional","northerncaliforniabayareacode","northerngreatplain","northernhungary","northernterritory","northhamgyong","northhwangae","northland","northpyongan","northsinai","ohioareacode","ohiocongressional","oita","okayama","okinawa","oklahomaareacode","oklahomacongressional","oregonareacode","oregoncongressional","osaka","otago","pacificdma","pazardzhik","pennsylvaniaareacode","pennsylvaniacongressional","pernambuco","pernik","phoenixareacode","pleven","plovdiv","portsaid","puertoricocongressional","pyongyang","qalyoubiya","qina","qinghai","queensland","rason","razgrad","redsea","rhodeislandareacode","rhodeislandcongressional","ruse","ryanggang","saga","saitama","saopaulo","seattleareacode","seoul","shaanxi","shandong","shanghai","shanxi","shiga","shimane","shizuoka","shumen","sichuan","silistra","sinuiju","sixoctober","sj\xe3\xa6lland","sliven","smolyan","sofia","southatlanticdma","southaustralia","southcarolinaareacode","southcarolinacongressional","southdakotaareacode","southdakotacongressional","southerncalifornialaareacode","southerngreatplain","southerntransdanubia","southhamgyong","southhwangae","southland","southpyongan","southsinai","starazagora","suez","suhaj","syddanmark","taranaki","targovishte","tasman","tasmania","telangana","tennesseeareacode","tennesseecongressional","texasareacode","texascongressional","tianjin","tocantins","tochigi","tokushima","tokyo","tottori","toyama","ulsan","usadma","usatimezone","usvirginislandscongressional","utahareacode","utahcongressional","varna","velikotarnovo","vermontareacode","vermontcongressional","victoria","vidin","virginiaareacode","virginiacongressional","vratsa","wadygadid","waikato","wakayama","washingtonareacode","washingtoncongressional","wellington","westcoast","westernaustralia","westerntransdanubia","westnorthcentraldma","westsouthcentraldma","westvirginiaareacode","westvirginiacongressional","wisconsinareacode","wisconsincongressional","wyomingareacode","wyomingcongressional","xinjiang","yamagata","yamaguchi","yamanashi","yambol","yunnan","zhejiang","dummy"],fusionTime:["timeseries"]},t.utilityArrSet=[{utility_version:"1.0.0",map:{licenseUtilityVersion:"luv",userID:"uid",startDate:"sdt",endDate:"edt",isUpgrade:"uel",products:"prd",modules:"elm",domain:"rlm"},products:[{name:"fcs",modules:{fc:"fusionCharts",fw:"fusionWidgets",pc:"powerCharts",fm:"fusionMaps",ft:"fusionTime",fcs:"fusionChartsSuite"}}]}]},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=r(n(243)),a=r(n(244));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t/g,void 0,e,"
",""))}function x(e){return C(b(//g,/<\/u>/g,e,"",""),b(//g,/<\/b>/g,e,"",""),b(//g,/<\/em>/g,e,"",""),b(//g,/<\/strike>/g,e,"",""),b(//g,/<\/sub>/g,e,"",""),b(//g,/<\/sup>/g,e,"",""),function(e,t,n,r,o){for(var i,a,s,l=[],c=[];i=e.exec(n);)a=document.createElement("p"),s=i[0]+"Dummy",a.innerHTML=s,l.push({tagName:i[0],index:i.index,title:a.childNodes[0].title?a.childNodes[0].title:"",endTagName:o});for(;i=t.exec(n);)c.push({tagName:o,index:i.index});return{tag:l,endtag:c}}(/]+)>/g,/<\/abbr>/g,e,0,""),function(e,t,n,r,o){for(var i,a,s,l=[],c=[];i=e.exec(n);)a=document.createElement("p"),s=i[0]+"",a.innerHTML=s,l.push({tagName:i[0],index:i.index,href:a.childNodes[0].href?a.childNodes[0].href:"",target:a.childNodes[0].target?a.childNodes[0].target:"",hreflang:a.childNodes[0].hreflang?a.childNodes[0].hreflang:"",referrerpolicy:a.childNodes[0].referrerpolicy?a.childNodes[0].referrerpolicy:"",rel:a.childNodes[0].rel?a.childNodes[0].rel:"",endTagName:o});for(;i=t.exec(n);)c.push({tagName:o,index:i.index});return{tag:l,endtag:c}}(/]+)>/g,/<\/a>/g,e,0,""),function(e,t,n,r,o){for(var i,a,s,l,c=[],u=[];i=e.exec(n);)a=document.createElement("p"),s=i[0]+"Dummy",a.innerHTML=s,l=y(a.childNodes[0]),c.push({tagName:i[0],index:i.index,style:l||"",endTagName:o});for(;i=t.exec(n);)u.push({tagName:o,index:i.index});return{tag:c,endtag:u}}(/]+)>/g,/<\/span>/g,e,0,""),b(//g,/<\/strong>/g,e,"",""),b(//g,/<\/i>/g,e,"",""),b(//g,/<\/del>/g,e,"",""),b(//g,/<\/s>/g,e,"",""),b(//g,void 0,e,"
",""))}function _(e,t,n,r){return t<0&&(t=e.length+t)<0&&(t=0),e.slice(0,t)+(r||"")+e.slice(t+n)}function S(e,t,n,r){var o,i,a,s=e,l=n.index,c=n.index,u=n.index+6;if(!t.length)return{text:e,charOffset:r};for(i=0,a=t.length-1,t[i].endTagName&&(u=c+t[i].endTagName.length+6);i<=a;)if(t[i].endTagName)if(i===a)s=_(s,c,0,t[i].endTagName),s=_(s,u,0,t[i].tagName),c=(l+=t[i].endTagName.length)-t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,r+=t[i].endTagName.length,r+=t[i].tagName.length,i++,a--;else if(t[i].endTagName!==t[a].tagName){for(o=i;o<=a;o++)if(t[o+1]&&t[i].endTagName===t[o+1].tagName){i=o+2;break}o>a&&(s=_(s,c,0,t[i].endTagName),s=_(s,c+t[i].endTagName.length+6,0,t[i].tagName),l+=t[i].endTagName.length,c+=t[i].endTagName.length,u=l+t[i].endTagName.length+6+t[i].tagName.length,r+=t[i].endTagName.length,r+=t[i].tagName.length,i++)}else i++,a--;else i++,a--;return{text:s,charOffset:r,newBrIndex:l}}function M(e,t){var n,r,o,i=x(e),a=w(t),s=w(e),l=t,c=0;if(e===t)return e;if(s.length){for(o=0;o"!==e[n];)c++,n++;e=_(e,s[o].index,c+1,""),s[o+1]&&(r=o+1,s[o+1].index-=r*(c+1))}if(a.length)for(o=0;o"!==l[n];)c++,n++;l=_(l,a[o].index,c+1,"
"),a[o+1]&&(r=o+1,a[o+1].index-=r*(c+1),a[o+1].index+=6*r)}t=l,i=x(e),a=w(t)}return i.length?a.length?function(e){var t,n,r,o=w(e),i=0,a={},s=0;if(!e)return"";if(!o.length)return e;for(n=o[0].index,t=0;t0?(n=o[t].index+a.charOffset,o[t].index=n):n=o[t].index,r=x(e.substring(s,n)),i=a.charOffset?a.charOffset:i,(a=S(e,r,o[t],i)).newBrIndex&&(s=a.newBrIndex+6),e=a.text;return e}(function(e,t){var n,r,o,i=e,a=t,s="",l="",c=0;if(i===a)return i;if(""===i&&""!==a)return a;if(""===a&&""!==i)return i;for(r=0,o=0;r"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[r],r++,o++):(n=x(l))&&n.length?(s+=l,r+=l.length):(s+=l,r+=l.length,o+=l.length)}else s+=i[r],r++,o++;else if("<"===i[r]){for(l=i[r],c=r+1;c"===i[c]){l+=i[c];break}l+=i[c],c++}c>=i.length?(s+=i[r],r++,o++):(n=x(l))&&n.length?(s+=l,r+=l.length):(s+=l,r+=l.length,o+=l.length)}else if("<"===a[o]){for(l=a[o],c=o+1;c"===a[c]){l+=a[c];break}l+=a[c],c++}c>=a.length?(s+=a[o],r++,o++):(n=x(l))&&n.length?(s+=l,o+=l.length):(s+=l,r+=l.length,o+=l.length)}else" "===i[r]?r++:" "===a[o]&&o++}return s}(e,t)):function(e,t){var n,r=0,o=e,i=t.length-1,a=e.length;if(!t.length)return e;for(;r<=i;)if(t[r].endTagName)if(r===i)o=_(o,a,0,t[r].endTagName),r++,i--;else if(t[r].endTagName!==t[i].tagName){for(n=r;n<=i;n++)if(t[n+1]&&t[r].endTagName===t[n+1].tagName){r=n+2;break}n>i&&(o=_(o,a,0,t[r].endTagName),r++)}else r++,i--;else r++,i--;return o}(e,i):t}v.textToLines=function(e){return(e=e||{}).text?"string"!=typeof e.text&&(e.text=e.text.toString()):e.text="",e.lines=e.text.split(/\n|/gi),e},v.prototype._calCharDimWithCache=function(e,t,n){if(void 0===e&&(e=""),!this._init)return!1;var r,o,i,a,s,l,c,u,d,h=this.options.maxCacheLimit,p=this.style||{};return l=this._advancedCache=this._advancedCache||(this._advancedCache={}),c=this._advancedCacheKey||(this._advancedCacheKey=[]),u=e+p.fontSize+p.fontFamily+p.fontWeight+p.fontStyle,d=e+"init"+p.fontSize+p.fontFamily+p.fontWeight+p.fontStyle,!this.ctx&&f[e]&&(e=f[e]),t?void 0===(s=l[d])&&(o=this._getDimention(e.repeat?e.repeat(n):Array(n+1).join(e)).width,i=this._getDimention(e).width,s=l[d]=(o-n*i)/(n+1),c.push(d),c.length>h&&delete l[c.shift()]):s=0,(a=l[u])?{width:a.width,height:a.height}:((r=this._getDimention(e)).width+=s,l[u]={width:r.width,height:r.height},c.push(u),c.length>h&&delete l[c.shift()],r)},v.prototype._getDimention=function(e){return this.requireDiv||!this.ctx?c._getDimentionUsingDiv(e,this):c._getDimentionUsingCanvas(e,this)},v.prototype._getWidthFn=function(){var e=this,t=e._containerObj.svgText;return t?function(e){var n,r;return t.textContent=e,(r=(n=t.getBBox()).width-m)<1&&(r=n.width),r}:function(t){return e.requireDiv||!e.ctx?c._getDimentionUsingDiv(t,e).width:c._getDimentionUsingCanvas(t,e).width}},v.prototype._isSameStyle=function(){var e=this.oldStyle||{},t=this.style;return t.fontSize===e.fontSize&&t.fontFamily===e.fontFamily&&t.fontStyle===e.fontStyle&&t.fontWeight===e.fontWeight&&t.fontVariant===e.fontVariant},v.prototype._setStyleOfCanvas=function(){if(!this._isSameStyle()){var e,t,n=this.style,r=n.fontStyle,o=n.fontVariant,i=n.fontWeight,a=n.fontSize,s=n.fontFamily;e=r+" "+o+" "+i+" "+(a+=-1===a.indexOf("px")?"px":"")+" "+s,this.ctx.font=e,t=this._containerObj=this._containerManager.get(n),this._containerObj?(this._container=t.node,this._context=t.context,this._cache=t.charCache,this._lineHeight=t.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0,t.ellipsesWidth=this._calCharDimWithCache("...",!1).width,t.dotWidth=this._calCharDimWithCache(".",!1).width,t.lineHeight=this._lineHeight=t.lineHeight||c._getCleanHeight(n.lineHeight),this.oldStyle=n}},v.prototype._setStyleOfDiv=function(){var e,t=this.style;this._containerObj=e=this._containerManager.get(t),e.node||this._containerManager._makeDivNode(this._containerObj),this._containerObj?(this._container=e.node,this._context=e.context,this._cache=e.charCache,this._lineHeight=e.lineHeight,this._styleNotSet=!1):this._styleNotSet=!0},v.prototype._updateStyle=function(){return this.requireDiv||!this.ctx?this._setStyleOfDiv():this._setStyleOfCanvas()},v.prototype.setStyle=function(e){return this.style=c.parseStyle(e),c.setLineHeight(this.style),this},v.prototype.useEllipsesOnOverflow=function(e){return this._init?(this._showNoEllipses=!e,this):this},v.prototype.getSmartText=function(e,t,n,r){if(!this._init)return!1;void 0===e||null===e?e="":"string"!=typeof e&&(e=e.toString());var o,i,a,s,l,d,p,f,m,v,y,b,C,w,x,_,S,E,O,A,T,k,D,P,N,L,R,F,I,z,B,j,V,W,H,G,U=0,q=-1,Y=-1,X=-1,K=0,$=0,Z=[],J="",Q=0,ee=this._showNoEllipses?"":"...",te=this.ctx,ne=[],re=-1,oe=-1,ie=-1,ae=function(e){for(var t=/\s/,n=(e=e.replace(/^\s\s*/,"")).length;t.test(e.charAt(n-=1)););return e.slice(0,n+1)},se={text:e,maxWidth:t,maxHeight:n,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:e,isTruncated:!1};if(R=c.xmlTagRegEx.test(e)||c.nbspRegex.test(e),H=c._hasOnlyBRTag(e),this.requireDiv=R&&!H,this._updateStyle(),I=this._lineHeight,z=this._context,B=this._container,V=(j=this._containerObj).ellipsesWidth,W=j.dotWidth,d=e.replace(c.spanAdditionRegx,"$2"),b=this._getWidthFn(),I-n<=1&&I-n>=0&&(n*=1.2),te||B){if(!g.isBrowserLess){if(s=e=e.replace(c.ltgtquotRegex,function(e){switch(e){case"<":return"<";case">":return">";case""":case""":return'"';case"'":return"'"}}),F=e,s=e=s.replace(//g,"").replace(/<\/u>/g,"").replace(//g,"").replace(/<\/b>/g,"").replace(//g,"").replace(/<\/strong>/g,"").replace(//g,"").replace(/<\/em>/g,"").replace(//g,"").replace(/<\/i>/g,"").replace(//g,"").replace(/<\/strike>/g,"").replace(//g,"").replace(/<\/s>/g,"").replace(//g,"").replace(/<\/del>/g,"").replace(//g,"").replace(/<\/sub>/g,"").replace(//g,"").replace(/<\/sup>/g,"").replace(/]+)>/g,"").replace(/<\/a>/g,"").replace(/]+)>/g,"").replace(/<\/abbr>/g,"").replace(/]+)>/g,"").replace(/<\/span>/g,""),R?H?(e=e.replace(c.brRegex,"
"),G=c._getDimentionOfMultiLineText(e,this),se.oriTextWidth=p=G.width,se.oriTextHeight=f=G.height):(B.innerHTML=e,se.oriTextWidth=p=B.offsetWidth,se.oriTextHeight=f=B.offsetHeight):(s=e=e.replace(c.ltgtquotRegex,function(e){switch(e){case"<":return"<";case">":return">";case""":case""":return'"';case"'":return"'"}}),s=e=s.replace(//g,"").replace(/<\/u>/g,"").replace(//g,"").replace(/<\/b>/g,"").replace(//g,"").replace(/<\/strong>/g,"").replace(//g,"").replace(/<\/em>/g,"").replace(//g,"").replace(/<\/i>/g,"").replace(//g,"").replace(/<\/strike>/g,"").replace(//g,"").replace(/<\/s>/g,"").replace(//g,"").replace(/<\/del>/g,"").replace(//g,"").replace(/<\/sub>/g,"").replace(//g,"").replace(/<\/sup>/g,"").replace(/]+)>/g,"").replace(/<\/a>/g,"").replace(/]+)>/g,"").replace(/<\/abbr>/g,"").replace(/]+)>/g,"").replace(/<\/span>/g,""),x=this.getSize(s,!0,{hasHTMLTag:R,hasOnlyBrTag:H,cleanText:!0}),se.oriTextWidth=p=x.width,se.oriTextHeight=f=x.height),f<=n&&p<=t)return J=M(F,e),se.text=J,se.width=se.oriTextWidth=p,se.height=se.oriTextHeight=f,se;if(I>n)return se.text="",se.width=se.oriTextWidth=0,se.height=se.oriTextHeight=0,se}if(e=ae(e).replace(/(\s+)/g," "),l=this._showNoEllipses?t:t-V,!R||H){if(o=(Z=c._getTextArray(e)).length,i="",a=[],y=Z[0],this._cache[y]?O=this._cache[y].width:(O=b(y),this._cache[y]={width:O}),l>O&&!H)a=e.substr(0,c.getNearestBreakIndex(e,l,this)).split("");else{if(O>t)return se.text="",se.width=se.oriTextWidth=se.height=se.oriTextHeight=0,se;ee&&((l=t-2*W)>O?ee="..":(l=t-W)>O?ee=".":(l=0,ee=""))}if(Q=a.length,K=b(a.join("")),$=this._lineHeight,r){for(;Q"!==a[Q]){if(this._cache[y]?O=this._cache[y].width:(x&&(O=x.detailObj[y])||(O=b(y)),this._cache[y]={width:O}),(K+=O)>l&&(i||(i=a.slice(0,-1).join("")),K>t))return se.text=ae(i)+ee,se.tooltext=se.oriText,se.width=h(U,K),se.height=$,se.isTruncated=!0,se}else $+=this._lineHeight,X=Q,U=h(U,K),K=0,i=null;return se.text=a.join(""),se.width=h(U,K),se.height=$,se}for(;Q"===a[Q]){if(U=h(U,K),($+=this._lineHeight)<=n){X=Q,K=0,i=null;continue}if($>n)return i=a.slice(0,-1).join(""),se.text=ae(i)+ee,se.tooltext=d,se.width=U,se.height=$-this._lineHeight,se.isTruncated=!0,se}if(this._cache[y]?O=this._cache[y].width:(x&&(O=x.detailObj[y])||(O=b(y)),this._cache[y]={width:O}),(K+=O)>l&&(i||(i=a.slice(0,-1).join("")),K>t)){if("
"===Z[Q+1])continue;if(Y=c._findLastIndex(Z.slice(0,a.length)," "),q=c._findLastIndex(Z.slice(0,a.length),"-"),Y>X?(K=b(a.slice(X+1,Y).join("")),a.splice(Y,1,"
"),X=Y,m=Y+1):q>X?(q===a.length-1?(K=b(a.slice(X+1,Y).join("")),a.splice(q,1,"
-")):(K=b(a.slice(X+1,Y).join("")),a.splice(q,1,"-
")),X=q,m=q+1):(a.splice(a.length-1,1,"
"+Z[Q]),ie=a.length-2,K=b(a.slice(X+1,ie+1).join("")),X=ie,m=Q),($+=this._lineHeight)>n)return se.text=ae(i)+ee,se.tooltext=se.oriText,se.width=t,se.height=$-this._lineHeight,se.isTruncated=!0,se;U=h(U,K),i=null,H?K=c._getDimentionOfMultiLineText(a.slice(X+1).join(""),this).width:(v=c.getNearestBreakIndex(e.substr(m),l,this),K=b(e.substr(m,v||1)),a.length)/g,'$1'),B.innerHTML=e,S=0,E=(_=B[g.childRetriverFn](g.childRetriverString)).length;St||!o)return se.text="",se.width=se.oriTextWidth=se.height=se.oriTextHeight=0,se;if(O>l&&!this._showNoEllipses&&((l=t-2*W)>O?ee="..":(l=t-W)>O?ee=".":(l=0,ee="")),C=ne[0].elem.offsetLeft,w=ne[0].elem.offsetTop,r)for(;Ql&&(L||(L=Q),B.offsetWidth>t&&(N=Q,Q=o));else for(;Ql?(L||(L=Q),k>t&&(Y=ne[Q].spaceIdx,q=ne[Q].dashIdx,Y>X?(ne[Y].elem.innerHTML="
",X=Y):q>X?(ne[q].elem.innerHTML=q===Q?"
-":"-
",X=q):A.parentNode.insertBefore(P=u.createElement("br"),A),A.offsetHeight+A.offsetTop>n?(P?P.parentNode.removeChild(P):X===q?ne[q].elem.innerHTML="-":ne[Y].elem.innerHTML=" ",N=Q,Q=o):L=null)):D>n&&(N=Q,Q=o);if(N=L;Q-=1)(A=ne[Q].elem).parentNode.removeChild(A);for(;Q>=0;Q-=1)A=ne[Q].elem,c.classNameBrReg.test(A.className)?A.parentNode.removeChild(A):Q=0}return se.text=B.innerHTML.replace(c.spanRemovalRegx,"$1").replace(/\&\;/g,"&"),se.isTruncated&&(se.text+=ee,se.tooltext=d),se.height=B.offsetHeight,se.width=B.offsetWidth,se}return se.error=new Error("Body Tag Missing!"),se},v.prototype.getSize=function(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=!0),void 0===n&&(n={}),!this._init)return!1;void 0===e||null===e?e="":"string"!=typeof e&&(e=e.toString());var r,o,i,a,s,u,d=0,f=0,g={},m=n.hasHTMLTag,v=n.hasOnlyBrTag;if(void 0===m&&(m=c.xmlTagRegEx.test(e)||c.nbspRegex.test(e)),void 0===v&&(v=c._hasOnlyBRTag(e)),this.requireDiv=m&&!v,n.cleanText||(e=(e=e.replace(c.ltgtquotRegex,function(e){switch(e){case"<":return"<";case">":return">";case""":case""":return'"';case"'":return"'"}})).replace(//g,"").replace(/<\/u>/g,"").replace(//g,"").replace(/<\/b>/g,"").replace(//g,"").replace(/<\/strong>/g,"").replace(//g,"").replace(/<\/em>/g,"").replace(//g,"").replace(/<\/i>/g,"").replace(//g,"").replace(/<\/strike>/g,"").replace(//g,"").replace(/<\/s>/g,"").replace(//g,"").replace(/<\/del>/g,"").replace(//g,"").replace(/<\/sub>/g,"").replace(//g,"").replace(/<\/sup>/g,"").replace(/]+)>/g,"").replace(/<\/a>/g,"").replace(/]+)>/g,"").replace(/<\/abbr>/g,"").replace(/]+)>/g,"").replace(/<\/span>/g,"")),this._updateStyle(),u=this._container,!t)return this._calCharDimWithCache(e);for(a=0,s=(r=e.split("")).length;a]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/gi,spanAdditionReplacer:'$1$2',spanRemovalRegx:new RegExp("\\]+?"+l+"[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),xmlTagRegEx:new RegExp("<[^>][^<]*[^>]+>","i"),brRegex:new RegExp("({br[ ]*})|()|()|()|()","g"),ltgtquotRegex:/<|>|"|"|'/g,nbspRegex:/ | | /g,htmlSpecialEntityRegex:/&|"|<|>/g,brReplaceRegex://gi,testStrAvg:"WgI",parentContainerStyle:{position:"absolute",top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},supportedStyle:{font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",fontStyle:"font-style","font-style":"font-style"},getDocumentSupport:function(){var r,o,i;return t.getElementsByClassName?(r="getElementsByClassName",o=l,i=!0):(r="getElementsByTagName",o="span",i=!1),{isIE:/msie/i.test(n)&&!e.opera,hasSVG:Boolean(e.SVGAngle||t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),isHeadLess:new RegExp(" HtmlUnit").test(n),isWebKit:new RegExp(" AppleWebKit/").test(n),childRetriverFn:r,childRetriverString:o,noClassTesting:i}},createContainer:function(e){var n,r;if(e&&(e.offsetWidth||e.offsetHeight)){if(e.appendChild)return e.appendChild(r=t.createElement("DIV")),r.className=s,r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation"),r}else if((n=t.getElementsByTagName("body")[0])&&n.appendChild)return(r=t.createElement("DIV")).className=s,r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation"),n.appendChild(r),r},getNearestBreakIndex:function(e,t,n){if(!e||!e.length)return 0;var r,a=n._getWidthFn(),s=0,l=0,c=a(e),u=c/e.length;if(r=t,s=o(t/u),ce.length&&(r=t-c,s=e.length);r>0;){if(r=t-a(e.substr(0,s)),!(l=i(r/u)))return s;s+=l}for(;r<0;){if(r=t-a(e.substr(0,s)),!(l=i(r/u)))return s;s+=l}return s},parseStyle:function(e){void 0===e&&(e={});var t={};return t.fontSize=(e.fontSize||e["font-size"]||"12px")+"",t.fontVariant=e.fontVariant||e["font-variant"]||"normal",t.fontWeight=e.fontWeight||e["font-weight"]||"normal",t.fontStyle=e.fontStyle||e["font-style"]||"normal",t.fontFamily=e.fontFamily||e["font-family"]||"Verdana,sans",t.fontSize+=-1===t.fontSize.indexOf("px")?"px":"",t},setLineHeight:function(e){var t=e.fontSize;return e.lineHeight=e.lineHeight||e["line-height"]||1.2*parseInt(t,10)+"px",e},_getCleanHeight:function(e){return e=e.replace(/px/g,""),Number(e)},_getDimentionUsingDiv:function(e,t){void 0===e&&(e="");var n=t._container;return e instanceof Array&&(e=e.join("")),n.innerHTML=e,{width:n.offsetWidth,height:n.offsetHeight}},_getDimentionUsingCanvas:function(e,t){void 0===e&&(e="");var n=t.ctx,o=t.style,i=r._getCleanHeight(o.lineHeight);return e=e instanceof Array?(e=e.join("")).replace(/
/g,""):e.replace(/
/g,""),{width:n.measureText(e).width,height:i}},_hasOnlyBRTag:function(e){return void 0===e&&(e=""),!r.xmlTagRegEx.test(e)&&r.brRegex.test(e)},_getDimentionOfMultiLineText:function(e,t){void 0===e&&(e="");var n,o,i,a=e.replace(r.brRegex,"
"),s=r._getTextArray(a),l=0,c=0,u=t._getWidthFn(),d=r._getCleanHeight(t.style.lineHeight),h=d,p={};for(n=0,o=s.length;n"===s[n]?(c=Math.max(c,l),l=0,h+=d):(l+=i=u(s[n]),p[s[n]]=i);return{height:h,width:c=Math.max(c,l),detailObj:p}},_getTextArray:function(e){void 0===e&&(e="");var t,n,r,o,i,a,s=[];for(r=(i=e.split("
")).length,t=0;t")}return s},_findLastIndex:function(e,t){var n;for(void 0===e&&(e=[]),n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}}}},o=r;t.default=o},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(243)).default.init(window),i=o.win.document,a=o.getDocumentSupport(),s=a.isWebKit?0:4.5;function l(e,t,n){var r;n=(n=n>5?n:5)<20?n:20,this.maxContainers=n,this.first=null,this.last=null,this.containers={},this.length=0,this.rootNode=e,t&&((r=i.createElementNS("http://www.w3.org/2000/svg","svg")).setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink"),r.setAttributeNS("http://www.w3.org/2000/svg","height","0"),r.setAttributeNS("http://www.w3.org/2000/svg","width","0"),this.svgRoot=r,this.rootNode.appendChild(r))}l.prototype.get=function(e){var t,n,r,i=this.containers,a=this.length,s=this.maxContainers,l="";for(n in o.supportedStyle)void 0!==e[n]&&(l+=o.supportedStyle[n]+":"+e[n]+";");if(!l)return!1;if(r=i[l])this.first!==r&&(r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),r.next=this.first,r.next.prev=r,this.last===r&&(this.last=r.prev),r.prev=null,this.first=r);else{if(a>=s)for(t=a-s+1;t--;)this.removeContainer(this.last);r=this.addContainer(l)}return r},l.prototype._makeDivNode=function(e){var t,n=e.keyStr;e.node||(e.node=i.createElement("div"),e.node.className="fusioncharts-div",this.rootNode.appendChild(e.node)),t=e.node,a.isIE&&!a.hasSVG?t.style.setAttribute("cssText",n):t.setAttribute("style",n),t.setAttribute("aria-hidden","true"),t.setAttribute("role","presentation"),t.style.display="inline-block",t.innerHTML=o.testStrAvg,e.lineHeight=t.offsetHeight,e.avgCharWidth=t.offsetWidth/3,a.isBrowserLess?(e.svgText||(e.svgText=i.createElementNS("http://www.w3.org/2000/svg","text"),this.svgRoot.appendChild(t)),(t=e.svgText).setAttribute("style",n),t.textContent=o.testStrAvg,e.lineHeight=t.getBBox().height,e.avgCharWidth=(t.getBBox().width-s)/3,t.textContent="...",e.ellipsesWidth=t.getBBox().width-s,t.textContent=".",e.dotWidth=t.getBBox().width-s):(t.innerHTML="...",e.ellipsesWidth=t.offsetWidth,t.innerHTML=".",e.dotWidth=t.offsetWidth,t.innerHTML="")},l.prototype.addContainer=function(e){var t;return this.containers[e]=t={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:e,charCache:{}},t.next=this.first,t.next&&(t.next.prev=t),this.first=t,this.last||(this.last=t),this.length+=1,t},l.prototype.removeContainer=function(e){var t=e.keyStr;t&&this.length&&e&&(this.length-=1,e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev),e.node&&e.node.parentNode.removeChild(e.node),delete this.containers[t])},l.prototype.dispose=function(){var e,t=this.containers;for(e in this.maxContainers=null,t)this.removeContainer(t[e]);this.rootNode.parentNode.removeChild(this.rootNode),this.rootNode=null,this.first=null,this.last=null};var c=l;t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.getFile=t.addFile=void 0;var r={},o=function(e){r[e]=!0},i=function(e){return r[e]};t.getFile=i,t.addFile=o;var a={extension:function(e){e.addFile=o,e.getFile=i},name:"fileStore",type:"plugin",requiresFusionCharts:!0};t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton"],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type"],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize","10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage","Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],browserNotSupportedMessage:["browserNotSupportedMessage","This browser is not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."],messageURL:["messageURL",""],containerElementId:["renderAt"],renderer:["renderer"],containerElementType:["containerElementType"],showChartLoadingMessage:["showChartLoadingMessage",!0],visibilityTrackingInterval:300,events:["events",{}]},jsVars:{},attributes:{lang:["lang","EN"],id:["id"]},link:["link"],width:["width","400"],height:["height","300"]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o,i,a,s,l=n(218),c=Math.abs,u=Math.pow,d=Math.round,h={formatnumber:"1",formatnumberscale:"1",forcenumberscale:"0",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1e3,1e3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sforcenumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1e3,1e3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xforcenumberscale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1e3,1e3],xNumberPrefix:"",xNumberSuffix:""},p={mscombidy2d:{formatnumberscale:"1"}},f=function(){function e(e,t){var n=e.getName&&e.getName(),r=this.csConf=(0,l.extend2)({},h),o=p[n];this.cleaneValueCacheStore={},this.percentStrCacheStore={},o&&(r=(0,l.extend2)(r,o)),this.linkedItems={chart:e},this.configure(t)}var t=e.prototype;return t.setDefaults=function(){var e=this.linkedItems.chart,t=e.getName&&e.getName(),n=this.csConf=(0,l.extend2)({},h),r=p[t];r&&(0,l.extend2)(n,r)},t.configure=function(e){var t,n,r,o,i,a,s,c,u,d,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D=this,P=D.linkedItems.chart,N=e||P.getFromEnv("chart-attrib"),L=P.getName&&P.getName(),R=P.config,F=D.csConf;if(R||(R=P),D.csConf=F,D.useScaleRecursively=R.useScaleRecursively,(0,l.getValidValue)(N.numberscaleunit)&&(t=N.numberscaleunit.split(",")),(n=(0,l.getValidValue)(N.snumberscaleunit,N.numberscaleunit))&&(n=n.split(",")),(r=(0,l.getValidValue)(N.xnumberscaleunit,N.numberscaleunit))&&(r=r.split(",")),(o=(0,l.getValidValue)(N.ticknumberscaleunit,N.numberscaleunit))&&(o=o.split(",")),(i=(0,l.getValidValue)(N.ynumberscaleunit,N.numberscaleunit))&&(i=i.split(",")),(0,l.getValidValue)(N.numberscalevalue)&&(a=N.numberscalevalue.split(",")),(p=(0,l.getValidValue)(N.snumberscalevalue,N.numberscalevalue))&&(p=p.split(",")),(s=(0,l.getValidValue)(N.xnumberscalevalue,N.numberscalevalue))&&(s=s.split(",")),(c=(0,l.getValidValue)(N.ticknumberscalevalue,N.numberscalevalue))&&(c=c.split(",")),(u=(0,l.getValidValue)(N.ynumberscalevalue,N.numberscalevalue))&&(u=u.split(",")),(0,l.getValidValue)(N.thousandseparatorposition))for(b=(d=N.thousandseparatorposition.split(",")).length,w=h.thousandseparatorposition[0];b--;)(C=parseInt(d[b],10))<=0&&(C=w),w=d[b]=C;x=(0,l.pluckNumber)(N.scalerecursively,0),_=(0,l.pluckNumber)(N.sscalerecursively,x),S=(0,l.pluckNumber)(N.xscalerecursively,x),M=(0,l.pluckNumber)(N.maxscalerecursion,-1),E=(0,l.pluckNumber)(N.smaxscalerecursion,M),O=(0,l.pluckNumber)(N.xmaxscalerecursion,M),A=(0,l.getValidValue)(N.scaleseparator," "),T=(0,l.getValidValue)(N.sscaleseparator,A),k=(0,l.getValidValue)(N.xscaleseparator,A),M||(M=-1),D.baseConf=y={cacheStore:[],formatnumber:(0,l.pluck)(N.formatnumber,F.formatnumber),formatnumberscale:(0,l.pluck)(N.formatnumberscale,R.formatnumberscale,F.formatnumberscale),forcenumberscale:(0,l.pluck)(N.forcenumberscale,F.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(N.defaultnumberscale,F.defaultnumberscale),numberscaleunit:(0,l.pluck)(t,F.numberscaleunit).concat(),numberscalevalue:(0,l.pluck)(a,F.numberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(N.numberprefix,F.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(N.numbersuffix,F.numbersuffix)),decimalprecision:parseInt("auto"===N.decimals?F.decimalprecision:(0,l.pluck)(N.decimals,N.decimalprecision,R.decimals,F.decimals,R.decimalprecision,F.decimalprecision),10),forcedecimals:(0,l.pluck)(N.forcedecimals,F.forcedecimals),decimalseparator:(0,l.pluck)(N.decimalseparator,F.decimalseparator),thousandseparator:(0,l.pluck)(N.thousandseparator,F.thousandseparator),thousandseparatorposition:(0,l.pluck)(d,F.thousandseparatorposition),indecimalseparator:(0,l.getFirstValue)(N.indecimalseparator,F.indecimalseparator),inthousandseparator:(0,l.getFirstValue)(N.inthousandseparator,F.inthousandseparator),scalerecursively:x,maxscalerecursion:M,scaleseparator:A},(0,l.getValidValue)(y.inthousandseparator)&&(D.baseConf._REGinthousandseparator=new RegExp((0,l.regescape)(y.inthousandseparator),"g")),(0,l.getValidValue)(y.indecimalseparator)&&(D.baseConf._REGindecimalseparator=new RegExp((0,l.regescape)(y.indecimalseparator))),D.Y=[],f={cacheStore:[],formatnumber:y.formatnumber,formatnumberscale:y.formatnumberscale,forcenumberscale:y.forcenumberscale,defaultnumberscale:y.defaultnumberscale,numberscaleunit:y.numberscaleunit.concat(),numberscalevalue:y.numberscalevalue.concat(),numberprefix:y.numberprefix,numbersuffix:y.numbersuffix,decimalprecision:y.decimalprecision,forcedecimals:y.forcedecimals,decimalseparator:y.decimalseparator,thousandseparator:y.thousandseparator,thousandseparatorposition:y.thousandseparatorposition,indecimalseparator:y.indecimalseparator,inthousandseparator:y.inthousandseparator,scalerecursively:x,maxscalerecursion:M,scaleseparator:A},R.useScaleRecursively&&(f.numberscalevalue&&f.numberscalevalue.length)===(f.numberscaleunit&&f.numberscaleunit.length)||(f.scalerecursively=x=0),m={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,forcenumberscale:f.forcenumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:parseInt((0,l.pluck)(N.yaxisvaluedecimals,f.decimalprecision,2),10),forcedecimals:(0,l.pluck)(N.forceyaxisvaluedecimals,f.forcedecimals),decimalseparator:f.decimalseparator,thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:x,maxscalerecursion:M,scaleseparator:A},v={cacheStore:[],formatnumber:(0,l.pluck)(N.sformatnumber,h.sformatnumber),formatnumberscale:(0,l.pluck)(N.sformatnumberscale,h.sformatnumberscale),forcenumberscale:(0,l.pluck)(N.sforcenumberscale,h.sforcenumberscale),defaultnumberscale:(0,l.getFirstValue)(N.sdefaultnumberscale,f.defaultnumberscale),numberscaleunit:(0,l.pluck)(n,h.snumberscaleunit).concat(),numberscalevalue:(0,l.pluck)(p,h.snumberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(N.snumberprefix,h.snumberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(N.snumbersuffix,h.snumbersuffix)),decimalprecision:parseInt((0,l.pluck)(N.syaxisvaluedecimals,N.sdecimals,N.decimals,h.sdecimals),10),forcedecimals:(0,l.pluck)(N.forcesyaxisvaluedecimals,N.sforcedecimals,N.forcedecimals,h.sforcedecimals),decimalseparator:(0,l.pluck)(N.decimalseparator,h.decimalseparator),thousandseparator:(0,l.pluck)(N.thousandseparator,h.thousandseparator),thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:(0,l.parseUnsafeString)((0,l.pluck)(N.indecimalseparator,h.indecimalseparator)),inthousandseparator:(0,l.parseUnsafeString)((0,l.pluck)(N.inthousandseparator,h.inthousandseparator)),scalerecursively:_,maxscalerecursion:E,scaleseparator:T},(g=(0,l.extend2)({},v)).decimalprecision=parseInt((0,l.pluck)(N.sdecimals,N.decimals,N.syaxisvaluedecimals,h.sdecimals),10),g.forcedecimals=(0,l.pluck)(N.sforcedecimals,N.forcedecimals,N.forcesyaxisvaluedecimals,h.sforcedecimals),g.cacheStore=[],R.useScaleRecursively&&(v.numberscalevalue&&v.numberscalevalue.length)===(v.numberscaleunit&&v.numberscaleunit.length)||(v.scalerecursively=_=0),/^(bubble|scatter|selectscatter|zoomscatter)$/gi.test(L)&&(m.formatnumber=(0,l.pluck)(N.yformatnumber,m.formatnumber),m.formatnumberscale=(0,l.pluck)(N.yformatnumberscale,m.formatnumberscale),m.forcenumberscale=(0,l.pluck)(N.yforcenumberscale,m.forcenumberscale),m.defaultnumberscale=(0,l.getFirstValue)(N.ydefaultnumberscale,m.defaultnumberscale),m.numberscaleunit=(0,l.pluck)(i,m.numberscaleunit),m.numberscalevalue=(0,l.pluck)(u,m.numberscalevalue),m.numberprefix=(0,l.parseUnsafeString)((0,l.pluck)(N.ynumberprefix,m.numberprefix)),m.numbersuffix=(0,l.parseUnsafeString)((0,l.pluck)(N.ynumbersuffix,m.numbersuffix)),f.formatnumber=(0,l.pluck)(N.yformatnumber,f.formatnumber),f.formatnumberscale=(0,l.pluck)(N.yformatnumberscale,f.formatnumberscale),f.forcenumberscale=(0,l.pluck)(N.yforcenumberscale,f.forcenumberscale),f.defaultnumberscale=(0,l.getFirstValue)(N.ydefaultnumberscale,f.defaultnumberscale),f.numberscaleunit=(0,l.pluck)(N.ynumberscaleunit,f.numberscaleunit.concat()),f.numberscalevalue=(0,l.pluck)(N.ynumberscalevalue,f.numberscalevalue.concat()),f.numberprefix=(0,l.parseUnsafeString)((0,l.pluck)(N.ynumberprefix,f.numberprefix)),f.numbersuffix=(0,l.parseUnsafeString)((0,l.pluck)(N.ynumbersuffix,f.numbersuffix))),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(L)&&(f.decimalprecision=(0,l.pluck)(N.decimals,"2")),x&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),m.numberscalevalue.push(1),m.numberscaleunit.unshift(m.defaultnumberscale)),_&&(v.numberscalevalue.push(1),v.numberscaleunit.unshift(v.defaultnumberscale),g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale)),D.Y[0]={yAxisLabelConf:m,dataLabelConf:f},D.Y[1]={yAxisLabelConf:v,dataLabelConf:g},D.paramLabels=f,D.param1=m,D.param2=v,D.paramLabels2=g,D.paramX={cacheStore:[],formatnumber:(0,l.pluck)(N.xformatnumber,y.formatnumber),formatnumberscale:(0,l.pluck)(N.xformatnumberscale,y.formatnumberscale),forcenumberscale:(0,l.pluck)(N.xforcenumberscale,y.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(N.xdefaultnumberscale,y.defaultnumberscale),numberscaleunit:(0,l.pluck)(r,y.numberscaleunit.concat()),numberscalevalue:(0,l.pluck)(s,y.numberscalevalue.concat()),numberprefix:(0,l.parseUnsafeString)((0,l.pluck)(N.xnumberprefix,y.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.pluck)(N.xnumbersuffix,y.numbersuffix)),decimalprecision:parseInt((0,l.pluck)(N.xaxisvaluedecimals,N.xaxisvaluesdecimals,y.decimalprecision,2),10),forcedecimals:(0,l.pluck)(N.forcexaxisvaluedecimals,0),decimalseparator:y.decimalseparator,thousandseparator:y.thousandseparator,thousandseparatorposition:y.thousandseparatorposition.concat(),indecimalseparator:y.indecimalseparator,inthousandseparator:y.inthousandseparator,scalerecursively:S,maxscalerecursion:O,scaleseparator:k},D.paramLegend=(0,l.extend2)((0,l.extend2)({},y),{cacheStore:[],decimalprecision:parseInt((0,l.pluckNumber)(N.legendvaluedecimals,y.decimalprecision,2),10),forcedecimals:(0,l.pluckNumber)(N.legendvalueforcedecimals,y.forcedecimals,0),formatnumberscale:(0,l.pluck)(N.legendvalueformatnumberscale,y.formatnumberscale),forcenumberscale:(0,l.pluck)(N.legendvalueforcenumberscale,y.forcenumberscale),formatnumber:(0,l.pluck)(N.legendvalueformatnumber,y.formatnumber)}),x&&(D.paramLegend.numberscalevalue.push(1),D.paramLegend.numberscaleunit.unshift(D.paramLegend.defaultnumberscale)),R.useScaleRecursively&&(D.paramX.numberscalevalue&&D.paramX.numberscalevalue.length)===(D.paramX.numberscaleunit&&D.paramX.numberscaleunit.length)||(D.paramX.scalerecursively=S=0),S&&(D.paramX.numberscalevalue.push(1),D.paramX.numberscaleunit.unshift(D.paramX.defaultnumberscale)),D.paramScale={cacheStore:[],formatnumber:(0,l.pluck)(N.tickformatnumber,y.formatnumber),formatnumberscale:(0,l.pluck)(N.tickformatnumberscale,y.formatnumberscale),forcenumberscale:(0,l.pluck)(N.tickforcenumberscale,y.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(N.tickdefaultnumberscale,y.defaultnumberscale),numberscaleunit:(0,l.pluck)(o,y.numberscaleunit.concat()),numberscalevalue:(0,l.pluck)(c,y.numberscalevalue.concat()),numberprefix:(0,l.parseUnsafeString)((0,l.pluck)(N.ticknumberprefix,y.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.pluck)(N.ticknumbersuffix,y.numbersuffix)),decimalprecision:parseInt((0,l.pluck)(N.tickvaluedecimals,y.decimalprecision,"2"),10),forcedecimals:(0,l.pluck)(N.forcetickvaluedecimals,y.forcedecimals,0),decimalseparator:y.decimalseparator,thousandseparator:y.thousandseparator,thousandseparatorposition:y.thousandseparatorposition.concat(),indecimalseparator:y.indecimalseparator,inthousandseparator:y.inthousandseparator,scalerecursively:x,maxscalerecursion:M,scaleseparator:A},x&&(D.paramScale.numberscalevalue.push(1),D.paramScale.numberscaleunit.unshift(D.paramScale.defaultnumberscale)),D.timeConf={inputDateFormat:(0,l.pluck)(N.inputdateformat,N.dateformat,"mm/dd/yyyy"),outputDateFormat:(0,l.pluck)(N.outputdateformat,N.inputdateformat,N.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]},D.cleaneValueCacheStore={},D.percentStrCacheStore={}},t.dispose=function(){var e=this;e.Y&&delete e.Y,e.cleaneValueCacheStore&&delete e.cleaneValueCacheStore,e.percentStrCacheStore&&delete e.percentStrCacheStore,e.paramLabels&&delete e.paramLabels,e.param1&&delete e.param1,e.param2&&delete e.param2,e.paramLabels2&&delete e.paramLabels2,e.csConf&&delete e.csConf,e.chart&&delete e.chart,e.baseConf&&delete e.baseConf,e.timeConf&&delete e.timeConf,e.paramX&&delete e.paramX,e.paramScale&&delete e.paramScale},t.parseMLAxisConf=function(e,t){var n,r,o,i,a,s,u,d,p=this.baseConf,f=this.csConf,g=(0,l.pluckNumber)(e.scalerecursively,p.scalerecursively),m=(0,l.pluckNumber)(e.maxscalerecursion,p.maxscalerecursion),v=(0,l.getValidValue)(e.scaleseparator,p.scaleseparator),y=(0,l.pluckNumber)(t,this.Y.length);if((0,l.getValidValue)(e.numberscaleunit)&&(r=e.numberscaleunit.split(",")),(0,l.getValidValue)(e.numberscalevalue)&&(o=e.numberscalevalue.split(",")),m||(m=-1),(0,l.getValidValue)(e.thousandseparatorposition))for(s=(a=e.thousandseparatorposition.split(",")).length,d=h.thousandseparatorposition[0];s--;)(u=(0,l.pluckNumber)(c(a[s])))?d=u:u=d,a[s]=u;n={cacheStore:[],formatnumber:(0,l.pluck)(e.formatnumber,p.formatnumber),formatnumberscale:(0,l.pluck)(e.formatnumberscale,p.formatnumberscale),forcenumberscale:(0,l.pluck)(e.forcenumberscale,p.forcenumberscale),defaultnumberscale:(0,l.getFirstValue)(e.defaultnumberscale,p.defaultnumberscale),numberscaleunit:(0,l.pluck)(r,p.numberscaleunit).concat(),numberscalevalue:(0,l.pluck)(o,p.numberscalevalue).concat(),numberprefix:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.numberprefix,p.numberprefix)),numbersuffix:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.numbersuffix,p.numbersuffix)),forcedecimals:(0,l.pluck)(e.forcedecimals,p.forcedecimals),decimalprecision:parseInt("auto"===e.decimals?f.decimalprecision:(0,l.pluck)(e.decimals,p.decimalprecision),10),decimalseparator:(0,l.pluck)(e.decimalseparator,p.decimalseparator),thousandseparator:(0,l.pluck)(e.thousandseparator,p.thousandseparator),thousandseparatorposition:(0,l.pluck)(a,p.thousandseparatorposition),indecimalseparator:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.indecimalseparator,p.indecimalseparator)),inthousandseparator:(0,l.parseUnsafeString)((0,l.getFirstValue)(e.inthousandseparator,p.inthousandseparator)),scalerecursively:g,maxscalerecursion:m,scaleseparator:v},this.useScaleRecursively&&(n.numberscalevalue&&n.numberscalevalue.length)===(n.numberscaleunit&&n.numberscaleunit.length)||(n.scalerecursively=g=0),i={cacheStore:[],formatnumber:n.formatnumber,formatnumberscale:n.formatnumberscale,forcenumberscale:n.forcenumberscale,defaultnumberscale:n.defaultnumberscale,numberscaleunit:n.numberscaleunit.concat(),numberscalevalue:n.numberscalevalue.concat(),numberprefix:n.numberprefix,numbersuffix:n.numbersuffix,decimalprecision:parseInt((0,l.pluck)(e.yaxisvaluedecimals,n.decimalprecision,2),10),forcedecimals:(0,l.pluck)(e.forceyaxisvaluedecimals,n.forcedecimals),decimalseparator:n.decimalseparator,thousandseparator:n.thousandseparator,thousandseparatorposition:n.thousandseparatorposition.concat(),indecimalseparator:n.indecimalseparator,inthousandseparator:n.inthousandseparator,scalerecursively:g,maxscalerecursion:m,scaleseparator:v},g&&(n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale),i.numberscalevalue.push(1),i.numberscaleunit.unshift(i.defaultnumberscale)),this.Y[y]={dataLabelConf:n,yAxisLabelConf:i}},t.percentValue=function(e){var t,n=this.percentStrCacheStore[e];return void 0===n&&(t=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,n=this.percentStrCacheStore[e]=s(a(e,t,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%"),n},t.yAxisPercentValue=function(e,t){window.th=this;var n,r,o=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(n=(o=o&&o.yAxisLabelConf||this.baseConf).cacheStore[e])&&(r=isNaN(o.decimalprecision)?"2":o.decimalprecision,n=o.cacheStore[e]=s(a(e,r,o.forcedecimals),o.decimalseparator,o.thousandseparator,o.thousandseparatorposition)+"%"),n},t.getCleanValue=function(e,t){var n,r=this.cleaneValueCacheStore[e];return(void 0===r||t)&&(n=i(e,this.baseConf),this.cleaneValueCacheStore[e]=r=isNaN(n)?null:t?c(n):n),r},t.dataLabels=function(e,t){var n,o=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(n=(o=o&&o.dataLabelConf||this.baseConf).cacheStore[e])&&(n=o.cacheStore[e]=r(e,o)),n},t.formatValue=function(e){var t,n=this.baseConf;return void 0===(t=n.cacheStore[e])&&(t=n.cacheStore[e]=r(e,n)),t},t.yAxis=function(e,t){var n,o=this.Y[t]||(t?this.Y[1]:this.Y[0]);return void 0===(n=(o=o&&o.yAxisLabelConf||this.baseConf).cacheStore[e])&&(n=o.cacheStore[e]=r(e,o,!0)),n},t.xAxis=function(e){var t=this.paramX.cacheStore[e];return void 0===t&&(t=this.paramX.cacheStore[e]=r(e,this.paramX,!0)),t},t.sYAxis=function(e){var t,n=this.Y[1];return void 0===(t=(n=n&&n.yAxisLabelConf||this.baseConf).cacheStore[e])&&(t=n.cacheStore[e]=r(e,n)),t},t.scale=function(e){var t=this.paramScale.cacheStore[e];return void 0===t&&(t=this.paramScale.cacheStore[e]=r(e,this.paramScale)),t},t.legendValue=function(e){var t=this.paramLegend.cacheStore[e];return void 0===t&&(t=this.paramLegend.cacheStore[e]=r(e,this.paramLegend)),t},t.legendPercentValue=function(e){var t,n=this.percentStrCacheStore[e],r=this.paramLegend;return void 0===n&&(t=isNaN(r.decimalprecision)?"2":r.decimalprecision,n=this.percentStrCacheStore[e]=s(a(e,t,r.forcedecimals),r.decimalseparator,r.thousandseparator,r.thousandseparatorposition)+"%"),n},t.getDateValue=function(e){var t,n,r,o,i,a=e;return a&&!/\//.test(this.timeConf.inputDateFormat)&&(a=a.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/gi,"").slice(0,1),"g"),"/")),a=/^dd/.test(this.timeConf.inputDateFormat)&&a&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a,/\s24:/.test(a)?(a=a.replace(/\s24:/," 00:"),(t=new Date(a)).setDate(t.getDate()+1)):t=new Date(a),!(i=t.getTime())&&a&&/\:/.test(a)&&(a=a.split(":"),n=(0,l.pluckNumber)(a[0],0),r=(0,l.pluckNumber)(a[1],0),o=(0,l.pluckNumber)(a[2],0),n=n>23?24===n&&0===r&&0===o?n:23:n,r=r>59?59:r,o=o>59?59:o,(t=new Date).setHours(n),t.setMinutes(r),t.setSeconds(o),i=t.getTime()),{ms:i,date:t}},t.getFormattedDate=function(e,t){var n="object"==typeof e&&e||new Date(e),r=this.timeConf,o=(0,l.pluck)(t,r.outputDateFormat),i=n.getFullYear(),a=n.getMonth(),s=n.getDate(),c=n.getDay(),u=n.getMinutes(),d=n.getSeconds(),h=n.getHours();return u=u>9?""+u:"0"+u,d=d>9?""+d:"0"+d,h=h>9?""+h:"0"+h,o.match(/dnl/)&&(o=o.replace(/dnl/gi,r.days[c])),o.match(/dns/)&&(o=o.replace(/dns/gi,r.days[c]&&r.days[c].substr(0,3))),o.match(/dd/)&&(o=o.replace(/dd/gi,s)),o.match(/mnl/)&&(o=o.replace(/mnl/gi,r.months[a])),o.match(/mns/)&&(o=o.replace(/mns/gi,r.months[a]&&r.months[a].substr(0,3))),o.match(/mm/)&&(o=o.replace(/mm/gi,a+1)),o.match(/yyyy/)&&(o=o.replace(/yyyy/gi,i)),o.match(/yy/)&&(o=o.replace(/yy/gi,(i%1e3%100+"").replace(/^(\d)$/,"0$1"))),o.match(/hh12/)&&(o=o.replace(/hh12/gi,h%12||12)),o.match(/hh/)&&(o=o.replace(/hh/gi,h)),o.match(/mn/)&&(o=o.replace(/mn/gi,u)),o.match(/ss/)&&(o=o.replace(/ss/gi,d)),o.match(/ampm/)&&(o=o.replace(/ampm/gi,h<12?"AM":"PM")),o.match(/ds/)&&(o=o.replace(/ds/gi,r.daySuffix[s])),o},e}();r=function(e,t,n){var r,i,c,u,d,h,p,f,g,m,v,y=e;if(null!==y){if(r=(y=Number(y))+"",i=1===Number(t.formatnumberscale)?t.defaultnumberscale:"",m=(g=r.split(".")[1])?g.length:t.forcedecimals?"2":"",1===Number(t.formatnumberscale)&&(r=(v=o(y,t.defaultnumberscale,t.numberscalevalue,t.numberscaleunit,t.scalerecursively,t.forcenumberscale)).value,y=v.value,i=v.scale),t.scalerecursively&&0!==t.formatnumberscale&&"0"!==t.formatnumberscale){if(c=v.value,u=v.scale,d=-1===Number(t.maxscalerecursion)?c.length:Math.min(c.length,t.maxscalerecursion),1===Number(t.formatnumber))for(r=l.BLANKSTRING,f=0;f=c&&p=c)){0===p&&""===t&&v&&(h=r[0]||"",m=Number(m)/c);break}h=r[p]||"",m=Number(m)/c}d.value=m,d.scale=h}return d},a=function(e,t,n){var r,o,i,a,s=e,l=t;if(l<=0)return d(s)+"";if(isNaN(l))return(s+="").length>12&&-1!==s.indexOf(".")&&(l=12-s.split(".")[0].length,r=u(10,l),s=o=d(s*r)/r+""),s;if(r=u(10,l),o=d(s*r)/r+"",1===Number(n))for(-1===o.indexOf(".")&&(o+=".0"),i=l-o.split(".")[1].length,a=1;a<=i;a++)o+="0";return o},s=function(e,t,n,r,o){var i,a,s,l,c=Number(e),u="",d=!1,h="",p="",f=0,g=0;if(isNaN(c))return"";if(c>1e15)return i=o?1:14,c.toExponential(i);if(f=0,g=e.length,-1!==e.indexOf(".")&&(u=e.substring(e.indexOf(".")+1,e.length),g=e.indexOf(".")),c<0&&(d=!0,f=1),(a=(h=e.substring(f,g)).length)<(l=r[s=r.length-1]))p=h;else for(;a>=l;)p=(a-l?n:"")+h.substr(a-l,l)+p,(a-=l)<(l=(s-=1)<=0?r[0]:r[s])&&(p=h.substring(a,0)+p);return""!==u&&(p=p+t+u),!0===d&&(p="-"+p),p},i=function(e,t){var n=e;return n+="",t._REGinthousandseparator&&(n=n.replace(t._REGinthousandseparator,"")),t._REGindecimalseparator&&(n=n.replace(t._REGindecimalseparator,".")),n=parseFloat(n),isFinite(n)?n:NaN};var g=f;t.default=g},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(249));o.default.stopPartialEventPropagation=!0,o.default._stopabsolutePath=!0;var i={extension:o.default,name:"redraphael",type:"plugin"};t.default=i},function(e,t,n){"use strict";(function(e){var r=n(211),o=n(215);t.__esModule=!0,t.default=void 0;var i,a=r(n(250)),s=o(n(221)),l="undefined"!=typeof window?window:void 0!==e?e:null;function c(e){var t,n,r;return void 0===c._url&&(c._url=f),c.is(e,M)?u?e():a.default.on("raphael.DOMload",e):c.is(e,w)?c._engine.create[v](c,e.splice(0,3+c.is(e[0],b))).add(e):(n=(0,s.getArrayCopy)(arguments),t=Array.prototype.slice.call(n,0),c.is(t[t.length-1],M)?(r=t.pop(),u?r.call(c._engine.create[v](c,t)):a.default.on("raphael.DOMload",function(){r.call(c._engine.create[v](c,t))})):c._engine.create[v](c,arguments))}c.upgrade="1.0.0",c.version="2.1.0",c.eve=a.default;var u,d,h,p,f="",g=" ",m="hasOwnProperty",v="apply",y="concat",b="number",C="string",w="array",x="object",_="split",S="none",M="function",E=/R/i,O=/trident/i.test(l.navigator.userAgent),A={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},T=Array.prototype.splice,k=function(){}.hasOwnProperty("prototype"),D={doc:l.document,win:l},P=D.doc,N=D.win,L=c.safePointerEventMapping={mouseover:"pointerover",mousedown:"pointerdown",mousemove:"pointermove",mouseup:"pointerup",mouseout:"pointerout"},R=N.navigator,F=c.supportsTouch="ontouchstart"in P||R.maxTouchPoints||R.msMaxTouchPoints,I=c.supportsPointer="onpointerover"in P,z=c.isEdge=/Edge/.test(R.userAgent),B=c.isIE11=/trident/i.test(R.userAgent)&&/rv:11/i.test(R.userAgent)&&!N.opera,j=(c.isIE10=-1!==R.appVersion.indexOf("MSIE 10"),c.isFirefox=/Firefox/.test(R.userAgent)),V=c.isWindows=/Windows/.test(R.userAgent),W="L",H=[],G=/[a-z]/i,U=function(e,t,n){var r=t.toLowerCase(),o=[],i=0;if(H.length=0,n.replace(_e,function(e,t){t&&H.push(+t)}),"r"===r)d.push([t][y](H));else if("z"===r)d.push([t]);else if(H.length>=A[r]){for(;i=0&&(o=i),a=0&&(o=a),o===r)break;this._swap(o,r),r=o}return e},je.prototype.enq=function(e){for(var t=this._elements.push(e),n=t-1;n>0;){var r=Math.floor((n-1)/2);if(this._compare(n,r)<=0)break;this._swap(r,n),n=r}return t},je.prototype.size=function(){return this._elements.length},je.prototype._compare=function(e,t){return this._comparator(this._elements[e],this._elements[t])},je.prototype._swap=function(e,t){var n=this._elements[e];this._elements[e]=this._elements[t],this._elements[t]=n},c.type=N.ENABLE_RED_CANVAS&&(N.CanvasRenderingContext2D||P.createElement("canvas").getContext)?"CANVAS":N.SVGAngle||P.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",c.svg=!((c.vml="VML"===c.type)||(c.canvas="CANVAS"===c.type)),c._Paper=Y,c._id=0,c._oid=0,c.rad=function(e){return e%360*ue},c.deg=function(e){return e*de%360};var Ve=function(e){if(c.vml){var t,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write(""),r.close(),t=r.body}catch(a){t=createPopup().document.body}var o=t.createTextRange();Ve=(0,s.cacher)(function(e){try{t.style.color=Z(e).replace(n,f);var r=o.queryCommandValue("ForeColor");return"#"+("000000"+(r=(255&r)<<16|65280&r|(16711680&r)>>>16).toString(16)).slice(-6)}catch(a){return S}})}else{var i=D.doc.createElement("i");i.title="Rapha\xebl Colour Picker",i.style.display=S,D.doc.body.appendChild(i),Ve=(0,s.cacher)(function(e){return i.style.color=e,D.doc.defaultView.getComputedStyle(i,f).getPropertyValue("color")})}return Ve(e)},We=function(){return"hsb("+[this.h,this.s,this.b]+")"},He=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ge=function(){return this.hex},Ue=function(e,t,n){if(null==t&&Ie(e,x)&&"r"in e&&"g"in e&&"b"in e&&(n=e.b,t=e.g,e=e.r),null==t&&Ie(e,C)){var r=c.getRGB(e);e=r.r,t=r.g,n=r.b}return(e>1||t>1||n>1)&&(e/=255,t/=255,n/=255),[e,t,n]},qe=function(e,t,n,r){var o={r:e*=255,g:t*=255,b:n*=255,hex:c.rgb(e,t,n),toString:Ge};return Ie(r,"finite")&&(o.opacity=r),o};function Ye(){return this.hex}function Xe(e,t){for(var n=[],r=0,o=e.length;o-2*!t>r;r+=2){var i=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?o-4===r?i[3]={x:+e[0],y:+e[1]}:o-2===r&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[o-2],y:+e[o-1]}:o-4===r?i[3]=i[2]:r||(i[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}c.color=function(e){var t;return c.is(e,x)&&"h"in e&&"s"in e&&"b"in e?(t=c.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):c.is(e,x)&&"h"in e&&"s"in e&&"l"in e?(t=c.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):(c.is(e,C)&&(e=c.getRGB(e)),c.is(e,x)&&"r"in e&&"g"in e&&"b"in e?(t=c.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=c.rgb2hsb(e),e.v=t.b):(e={hex:S}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=Ge,e},c.hsb2rgb=function(e,t,n,r){var o,i,a,s,l;return this.is(e,x)&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,r=(e=e.h).o),s=(l=n*t)*(1-re((e=(e*=360)%360/60)%2-1)),o=i=a=n-l,qe(o+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],a+=[0,0,s,l,l,s][e],r)},c.hsl2rgb=function(e,t,n,r){var o,i,a,s,l;return this.is(e,x)&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),s=(l=2*t*(n<.5?n:1-n))*(1-re((e=(e*=360)%360/60)%2-1)),o=i=a=n-l/2,qe(o+=[l,s,0,0,s,l][e=~~e],i+=[s,l,l,s,0,0][e],a+=[0,0,s,l,l,s][e],r)},c.rgb2hsb=function(e,t,n){var r,o;return e=(n=Ue(e,t,n))[0],t=n[1],n=n[2],{h:((0===(o=(r=te(e,t,n))-ne(e,t,n))?null:r===e?(t-n)/o:r===t?(n-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0===o?0:o/r,b:r,toString:We}},c.rgb2hsl=function(e,t,n){var r,o,i,a;return e=(n=Ue(e,t,n))[0],t=n[1],n=n[2],r=((o=te(e,t,n))+(i=ne(e,t,n)))/2,{h:((0===(a=o-i)?null:o===e?(t-n)/a:o===t?(n-e)/a+2:(e-t)/a+4)+360)%6*60/360,s:0===a?0:r<.5?a/(2*r):a/(2-2*r),l:r,toString:He}},c._path2string=function(){return this.join(",").replace(Ce,"$1")},c._cacher=s.cacher,c.getRGB=(0,s.cacher)(function(e){var t,n,r,o,i,a,s;return e&&Ie(e,x)&&"opacity"in e&&(t=e.opacity),!e||(e=Z(e)).indexOf("-")+1?{r:-1,g:-1,b:-1,hex:S,error:1,toString:Ye}:e===S?{r:-1,g:-1,b:-1,hex:S,toString:Ye}:(!Me[m](e.toLowerCase().substring(0,2))&&"#"!==e.charAt()&&(e=Ve(e)),(s=e.match(ve))?(s[2]&&(o=Q(s[2].substring(5),16),r=Q(s[2].substring(3,5),16),n=Q(s[2].substring(1,3),16)),s[3]&&(o=Q((i=s[3].charAt(3))+i,16),r=Q((i=s[3].charAt(2))+i,16),n=Q((i=s[3].charAt(1))+i,16)),s[4]&&(a=s[4][_](be),n=J(a[0]),"%"===a[0].slice(-1)&&(n*=2.55),r=J(a[1]),"%"===a[1].slice(-1)&&(r*=2.55),o=J(a[2]),"%"===a[2].slice(-1)&&(o*=2.55),"rgba"===s[1].toLowerCase().slice(0,4)&&(t=J(a[3])),a[3]&&"%"===a[3].slice(-1)&&(t/=100)),s[5]?(a=s[5][_](be),n=J(a[0]),"%"===a[0].slice(-1)&&(n*=2.55),r=J(a[1]),"%"===a[1].slice(-1)&&(r*=2.55),o=J(a[2]),"%"===a[2].slice(-1)&&(o*=2.55),("deg"===a[0].slice(-3)||"\xb0"===a[0].slice(-1))&&(n/=360),"hsba"===s[1].toLowerCase().slice(0,4)&&(t=J(a[3])),a[3]&&"%"===a[3].slice(-1)&&(t/=100),c.hsb2rgb(n,r,o,t)):s[6]?(a=s[6][_](be),n=J(a[0]),"%"===a[0].slice(-1)&&(n*=2.55),r=J(a[1]),"%"===a[1].slice(-1)&&(r*=2.55),o=J(a[2]),"%"===a[2].slice(-1)&&(o*=2.55),("deg"===a[0].slice(-3)||"\xb0"===a[0].slice(-1))&&(n/=360),"hsla"===s[1].toLowerCase().slice(0,4)&&(t=J(a[3])),a[3]&&"%"===a[3].slice(-1)&&(t/=100),c.hsl2rgb(n,r,o,t)):((s={r:n,g:r,b:o,toString:Ye}).hex="#"+(16777216|o|r<<8|n<<16).toString(16).slice(1),c.is(t,"finite")&&(s.opacity=t),s)):{r:-1,g:-1,b:-1,hex:S,error:1,toString:Ye})},c),c.tintshade=(0,s.cacher)(function(e,t){var n,r=c.getRGB(e),o=255;return t<0&&(t*=-1,o=0),t>1&&(t=1),(n=0===t?r:{r:o-(o-r.r)*t,g:o-(o-r.g)*t,b:o-(o-r.b)*t,toString:Ye}).hex=c.rgb(n.r,n.g,n.b),r.error&&(n.error=r.error),"opacity"in r?(n.rgba="rgba("+[n.r,n.g,n.b,r.opacity].join(",")+")",n.opacity=r.opacity):n.rgba="rgb("+[n.r,n.g,n.b].join(",")+")",n},c),c.rgb=(0,s.cacher)(function(e,t,n){return"#"+(16777216|n|t<<8|e<<16).toString(16).slice(1)}),c.sanitizePath=function(e){var t;return t=e.join?e.join(","):e,t=E.test(t)?c._pathToAbsolute(t):t.replace(Ce,"$1")},c.parsePathString=function(e){if(!e||!e.length)return null;var t=Ke(e);if(t.arr)return Qe(t.arr);if(d=void 0,c.is(e,w))if(e=Z(e).replace(/,?([A-Z]),?/g,",$1,").replace(/(^,?)|(,?$)/g,"").replace(/,,?/g,",").split(","),c.is(e[0],w))d=Qe(e);else{var n,r,o,i=[],a=e.length;for(d=[],n=0;n1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var f=c*u[p]+c,g=$e(f,e,n,o,a),m=$e(f,t,r,i,s);h+=d[p]*se(g*g+m*m)}return c*h}c.findDotsAtSegment=function(e,t,n,r,o,i,a,s,l){var c=1-l,u=oe(c,3),d=oe(c,2),h=l*l,p=h*l,f=u*e+3*d*l*n+3*c*l*l*o+p*a,g=u*t+3*d*l*r+3*c*l*l*i+p*s,m=e+2*l*(n-e)+h*(o-2*n+e),v=t+2*l*(r-t)+h*(i-2*r+t),y=n+2*l*(o-n)+h*(a-2*o+n),b=r+2*l*(i-r)+h*(s-2*i+r),C=c*e+l*n,w=c*t+l*r,x=c*o+l*a,_=c*i+l*s,S=90-180*ee.atan2(m-y,v-b)/ce;return(m>y||v1&&(r*=C=se(C),o*=C);var w=r*r,x=o*o,S=(a===l?-1:1)*se(re((w*x-w*b*b-x*v*v)/(w*b*b+x*v*v))),M=S*r*b/o+(t+c)/2,E=S*-o*v/r+(n+u)/2,O=ee.asin(((n-E)/o).toFixed(9)),A=ee.asin(((u-E)/o).toFixed(9));(O=tA&&(O-=2*ce),!l&&A>O&&(A-=2*ce)}var T=A-O;if(re(T)>p){var k=A,D=c,P=u;g=e(c=M+r*ie(A=O+p*(l&&A>O?1:-1)),u=E+o*ae(A),r,o,i,0,l,D,P,[A,k,M,E])}T=A-O;var N=ie(O),L=ae(O),R=ie(A),F=ae(A),I=ee.tan(T/4),z=4/3*r*I,B=4/3*o*I,j=[t,n],V=[t+z*L,n-B*N],W=[c+z*F,u-B*R],H=[c,u];if(V[0]=2*j[0]-V[0],V[1]=2*j[1]-V[1],d)return[V,W,H][y](g);for(var G=[],U=0,q=(g=[V,W,H][y](g).join()[_](",")).length;U"1e12"&&(h=.5),re(p)>"1e12"&&(p=.5),h>0&&h<1&&(l=ot(e,t,n,r,o,i,a,s,h),g.push(l.x),f.push(l.y)),p>0&&p<1&&(l=ot(e,t,n,r,o,i,a,s,p),g.push(l.x),f.push(l.y)),h=(-(u=2*(r-t)-2*(i-r))+se(u*u-4*(c=i-2*r+t-(s-2*i+r))*(d=t-r)))/2/c,p=(-u-se(u*u-4*c*d))/2/c,re(h)>"1e12"&&(h=.5),re(p)>"1e12"&&(p=.5),h>0&&h<1&&(l=ot(e,t,n,r,o,i,a,s,h),g.push(l.x),f.push(l.y)),p>0&&p<1&&(l=ot(e,t,n,r,o,i,a,s,p),g.push(l.x),f.push(l.y)),{min:{x:ne[v](0,g),y:ne[v](0,f)},max:{x:te[v](0,g),y:te[v](0,f)}}}),at=c._path2curve=(0,s.cacher)(function(e,t){var n=!t&&Ke(e);if(!t&&n.curve)return Qe(n.curve);for(var r=et(e),o=t&&et(t),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=function(e,t){if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][y](rt[v](0,[t.x,t.y][y](e.slice(1))));break;case"S":e=["C",t.x+(t.x-(t.bx||t.x)),t.y+(t.y-(t.by||t.y))][y](e.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x)),t.qy=t.y+(t.y-(t.qy||t.y)),e=["C"][y](nt(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][y](nt(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][y](tt(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][y](tt(t.x,t.y,e[1],t.y));break;case"V":e=["C"][y](tt(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][y](tt(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)e.splice(t++,0,["C"][y](n.splice(0,6)));e.splice(t,1),d=te(r.length,o&&o.length||0)}},c=function(e,t,n,i,a){e&&t&&"M"===e[a][0]&&"M"!=t[a][0]&&!a&&(t.splice(a,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=e[a][1],n.y=e[a][2],d=te(r.length,o&&o.length||0))},u=0,d=te(r.length,o&&o.length||0);u=2.5||Math.abs(i-l._drag.y)>=2.5)||l._blockDrag||I&&F&&!e.isPrimary))for(;u--;){if(F&&"touchmove"===e.type)for(var d,h=e.touches.length;h--;)if((d=e.touches[h]).identifier===l._drag.id){o=d.clientX+r,i=d.clientY+n;break}if(!l.removed){if(l.dragStartFn&&(l.dragStartFn(u),l.dragStartFn=void 0,l.dragInfo._dragmove=!0),D.win.opera){var p=c._engine.getNode(l),f=p.nextSibling,g=p.parentNode,m=p.style.display;g.removeChild(p),p.style.display=S,p.style.display=m,f?g.insertBefore(p,f):g.appendChild(p)}yt(s,e),t=s.data=[o-l._drag.x,i-l._drag.y,o,i],(0,a.default)("raphael.drag.move."+l.id,l.dragInfo.move_scope[u]||l,s,t)}}},wt=function e(t){var n=this,r=n.dragInfo,o=r.onend.length;if(n.dragInfo._dragmove)for(;o--;)n._drag={},(0,a.default)("raphael.drag.end."+n.id,r.end_scope[o]||r.start_scope[o]||r.move_scope[o]||n,t);n.dragInfo._dragmove=void 0,F&&!B&&!z&&(!V||!j)&&(n.paper.canvas.style["touch-action"]="auto"),c.undragmove.call(n,Ct),c.undragend.call(n,e),c.unmousemove.call(n,Ct).unmouseup.call(n,e)},xt=c.el={},_t=K.length;_t--;)!function(e){c[e]=xt[e]=function(t,n,r){return c.is(t,M)&&(this.events=this.events||[],this.events.push({name:e,f:t,unbind:bt(r||this.shape||this.node||D.doc,e,t,n||this)})),this},c["un"+e]=xt["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)if(n[r].name===e&&n[r].f===t)return n[r].unbind(),n.splice(r,1),!n.length&&delete this.events,this;return this}}(K[_t]);xt.data=function(e,t){var n=Ae[this.id]=Ae[this.id]||{};if(1===arguments.length){if(c.is(e,x)){for(var r in e)e[m](r)&&this.data(r,e[r]);return this}return c.stopPartialEventPropagation||(0,a.default)("raphael.data.get."+this.id,this,n[e],e),n[e]}return n[e]=t,c.stopPartialEventPropagation||(0,a.default)("raphael.data.set."+this.id,this,t,e),this},xt.removeData=function(e){return null==e?delete Ae[this.id]:Ae[this.id]&&delete Ae[this.id][e],this},xt.dbclick=function(e,t){var n,r=this,o=function(n){var o;I&&!n.isPrimary||(n&&n.preventDefault(),(!(o=n).touches||o.touches&&1===o.touches.length)&&(r._tappedOnce?(e.call(t||r,n),r._tappedOnce=!1):(r._tappedOnce=!0,setTimeout(function(){r._tappedOnce=!1},500))))};n=I?"pointerup":c.supportsTouch?"touchstart":"mouseup",r.node.addEventListener(n,o),c.storeHandlers(r,e,o)},xt.undbclick=function(e){var t=removeHandlers(this,e);t&&this.node.removeEventListener(I?"pointerup":c.supportsTouch?"touchstart":"mouseup",t)},xt.getData=function(){return ze(Ae[this.id]||{})};var St=[],Mt=function(){this.untrack=bt(D.doc,"mouseup",Et,this)},Et=function(){return this.untrack(),this.untrack=null,this.fn&&this.fn.apply(this.scope||this.el,arguments)};xt.mouseup=function(e,t,n,r){return n?(St.push(n={el:this,fn:e,scope:t}),n.unbind=bt(this.shape||this.node||D.doc,"mousedown",Mt,n),this):c.mouseup.apply(this,[e,t,r])},xt.unmouseup=function(e){for(var t,n=St.length;n--;)St[n].el===this&&St[n].fn===e&&((t=St[n]).unbind(),t.untrack&&t.untrack(),St.splice(n,1));return t?this:c.unmouseup.apply(this,arguments)},xt.hover=function(e,t,n,r){return this.on("fc-mouseover",e,n).on("fc-mouseout",t,r)},xt.unhover=function(e,t){return this.off("fc-mouseover",e).off("fc-mouseout",t)},xt.fcclick=function(e,t){var n,r,o,i,a,s=this,l=s.node,u=function(e){s._lastEventTriggered="mousedown",o=void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,i=void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY},d=function(e){var t=void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,n=void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(o-t)>=2.5||Math.abs(i-n)>=2.5)&&(s._lastEventTriggered=void 0)};if(s._clickStoreActual||(s._clickStoreActual=[]),s._clickStoreDerived||(s._clickStoreDerived=[]),!s._clickHandlerHelper){for(n in a=!I&&c.supportsTouch?{touchstart:function(){s._lastEventTriggered="touchstart",s._lastEventTriggeredAt=(new Date).getTime()},touchmove:d}:I&&c.supportsTouch?{pointerdown:u,pointermove:d}:{mousedown:u,mousemove:d})l.addEventListener?l.addEventListener(n,a[n]):l.attachEvent("on"+n,a[n]);s._clickHandlerHelper=a}return!I&&c.supportsTouch?(n="touchend",r=function(n){"touchstart"===s._lastEventTriggered&&(new Date).getTime()-s._lastEventTriggeredAt<=500&&setTimeout(function(){e.call(t||s,n)},0)}):(n="click",r=function(n){"mousedown"===s._lastEventTriggered&&e.call(t||s,n)}),l.addEventListener?l.addEventListener(n,r):l.attachEvent("on"+n,r),s._clickStoreDerived.push(r),s._clickStoreActual.push(e),s},xt.fcunclick=function(e){var t,n,r=this.node,o=this._clickHandlerHelper,i=this._clickStoreActual,a=this._clickStoreDerived;if(i){for(t=i.length-1;t>=0;t--)i[t]===e&&(r.removeEventListener?r.removeEventListener(!I&&c.supportsTouch?"touchend":"click",a[t]):r.detachEvent("onclick",a[t]),i.splice(t,1),a.splice(t,1));if(!i.length){for(n in o)r.removeEventListener?r.removeEventListener(n,o[n]):r.detachEvent("on"+n,o[n]);this._clickHandlerHelper=void 0}}return this};var Ot=[];function At(){return this.x+g+this.y+g+this.width+" \xd7 "+this.height}xt.drag=function(e,t,n,r,o,i){var s=this,l=s.dragInfo||(s.dragInfo={onmove:[],onstart:[],onend:[],move_scope:[],start_scope:[],end_scope:[]});return e&&l.onmove.push(e)&&l.move_scope.push(r),t&&l.onstart.push(t)&&l.start_scope.push(o),n&&l.onend.push(n)&&l.end_scope.push(i),s.dragFn=s.dragFn||function(e){var t,n,r,o,i,l,u,d,h,p,f=D.doc.documentElement.scrollTop||D.doc.body.scrollTop,g=D.doc.documentElement.scrollLeft||D.doc.body.scrollLeft,m={},v=s.dragInfo,y=[Ct,void 0,D.doc];if(!I||e.isPrimary){for(F&&(I?B||z||V&&j||(s.paper.canvas.style["touch-action"]="none"):e.preventDefault()),s._drag.x=h=(void 0!==e.clientX?e.clientX:e.changedTouches&&e.changedTouches[0].clientX)+g,s._drag.y=p=(void 0!==e.clientY?e.clientY:e.changedTouches&&e.changedTouches[0].clientY)+f,s._drag.id=e.identifier,F&&!I?c.dragmove.apply(s,y):c.mousemove.apply(s,y).mouseup.call(s,wt,void 0,void 0,D.doc),F&&c.dragend.call(s,wt,void 0,D.doc),yt(m,e),t=m.data=[h,p],n=0,i=v.onstart.length;n0&&(n.children=[]),o=0;o.01;)c=Ze(e,t,n,r,o,i,a,s,d+=(cr){if(t&&!h.start){if(d+=["C"+(u=Tt(i,a,s[1],s[2],s[3],s[4],s[5],s[6],r-p)).start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],o)return d;h.start=d,d=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,s[5],s[6]].join(),p+=l,i=+s[5],a=+s[6];continue}if(!e&&!t)return{x:(u=Tt(i,a,s[1],s[2],s[3],s[4],s[5],s[6],r-p)).x,y:u.y,alpha:u.alpha}}p+=l,i=+s[5],a=+s[6]}d+=s.shift()+s}return h.end=d,(u=e?p:t?h:c.findDotsAtSegment(i,a,s[0],s[1],s[2],s[3],s[4],s[5],1)).alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},Dt=kt(1),Pt=kt();kt(0,1),c.getTotalLength=Dt,c.getPointAtLength=Pt,xt.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Dt(this.attrs.path)},xt.getPointAtLength=function(e){if("path"==this.type)return Pt(this.attrs.path,e)};var Nt=c.easing_formulas={linear:function(e){return e},"<":function(e){return oe(e,1.7)},">":function(e){return oe(e,.48)},"<>":function(e){var t=.48-e/1.04,n=se(.1734+t*t),r=n-t,o=-n-t,i=oe(re(r),1/3)*(r<0?-1:1)+oe(re(o),1/3)*(o<0?-1:1)+.5;return 3*(1-i)*i*i+i*i*i},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e===!!e?e:oe(2,-10*e)*ae(2*ce*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},oneBounceOut:function(e){return e<=.9?1.33*Nt.easeIn(e):1.2-e/5},elasticOnce:function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.225)*(2*Math.PI)/.9)+1},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}};Nt.easeIn=Nt["ease-in"]=Nt["<"],Nt.easeOut=Nt["ease-out"]=Nt[">"],Nt.easeInOut=Nt["ease-in-out"]=Nt["<>"],Nt["back-in"]=Nt.backIn,Nt["back-out"]=Nt.backOut;var Lt,Rt=[],Ft=function e(){for(var t,n,r,o=+new Date,i=0,s=[],l=0;i1&&!u.next){for(p in _)_[m](p)&&(O[p]=u.totalOrigin[p]);u.el.attr(O),Ht(u.anim,u.el,u.anim.percents[0],null,u.totalOrigin,u.repeat-1)}u.next&&!u.stop&&Ht(u.anim,u.el,u.next,null,u.totalOrigin,u.repeat)}}}for(c.svg&&S&&S.paper&&S.paper.safari(),i=0,t=s.length;i255?255:e<0?0:e},zt=function(e){return e>1&&(e=1),e<0&&(e=0),e};function Bt(e,t){var n=[],r={};if(this.ms=t,this.times=1,e){for(var o in e)e[m](o)&&(r[J(o)]=e[o],n.push(J(o)));n.sort(Te)}this.anim=r,this.top=n[n.length-1],this.percents=n}function jt(e,t,n){var r,o,i=0,a=0,s=[],l=[],c={},u=0,d=[];if(e=e.constructor===Array?e[0]:e,t=t.constructor===Array?t[0]:t,r=e.split("-"),o=t.split("-"),1===r.length&&1===o.length)return[e,t];for(r=h(r),o=h(o),!r.defaultAngleSet&&o.defaultAngleSet&&(o[0]=r[0]),!o.defaultAngleSet&&r.defaultAngleSet&&(r[0]=o[0]),function e(t,n,r){t.isRadial&&!n.isRadial&&(n[0],n[0]={f1:0,f2:0,f3:0,f4:0,f5:0,f6:f},n.isRadial=!0),r||e(n,t,!0)}(r,o),i=1,a=r.length;i=e){n=r;break}for(a in i=(e-this[t].position)/(this[n].position-this[t].position),isNaN(i)&&(i=0),s)s[a]=It((1-i)*this[t][a]+i*this[n][a]);return s.position=e,s.opacity=(1-i)*this[t].opacity+i*this[n].opacity,s},e}}function Vt(e,t){var n,r=[],o=[],i=d(e),a=d(t),s=0,l=0,c=document.createElementNS&&document.createElementNS.bind(document),u=c&&c("http://www.w3.org/2000/svg","path");if(!i||!a||!u)return[e,t];if(function(e,t){var n,r,o=f,i=f;if(u.setAttribute("d","M300 10 L300 300 C50 310,50 640,350 650C600 640,600 310,400 300 L400 10 L295 10"),n=u.getTotalLength(),r=u.getPointAtLength(10),n<1829.1||n>1829.2)return!0;if(300!==Math.round(r.x)||20!==Math.round(r.y))return!0;function a(e){for(var t=e.length;t---1&&e[t].join(f)===e[t-1].join(f);)e.pop()}function s(e){for(var t=f,n=0,r=e.length;n2||i.split(/[Mm]/).length>2)&&e.length===t.length}(e,t))return[e,t];if(!e||!t)return[e,t];if(!document.createElementNS)return[e,t];if(i=d(e),a=d(t),-1!==i.join().indexOf("undefined"))return[e,t];if(-1!==a.join().indexOf("undefined"))return[e,t];if(!u.getTotalLength||!u.getPointAtLength)return[e,t];function d(e){var t=[],n=0,r=e.length;if(typeof e===C)return e;for(n=0;n=0;)a=e.length-1,e.push(e.slice(a)[0]),--u;for(i=e.length,a=0;a<=t;++a)o.push(Math.round(a/t*i));for(a=0,n=o.length-1;a0?(n=a,l=!1):(e=-e,n=i),s=0,t=n.length;s=o)return{index:a,mapValue:i[s],diff:a-n};return-1}function x(e){var t=e.length-1;return["M",e[t-1],e[t]].join(g)}function _(e){return e.join(f)}for(e=b(e),t=b(t),C(e,u),C(t,d),n=e.length,r=t.length,a=0,s=0;ai.diff)&&(l=i.mapValue,c=i.index),~o||~i||(l=n-1,c=r-1);a<=l;)h[m].push(e[a].stringValue),++a;for(;s<=c;)p[v].push(t[s].stringValue),++s}h[m]=_(h[m]),p[v]=_(p[v])}if(ar*e.top){n=e.percents[A],f=e.percents[A-1]||0,w=w/e.top*(n-f),p=e.percents[A+1],u=e.anim[n];break}r&&t.attr(e.anim[e.percents[A]])}if(u){if(d)d.initstatus=r,d.start=new Date-d.ms*r;else{for(var k in u)if(u[m](k))if(Oe[m](k)||t.ca[k]){switch(x[k]=l.from[k]||t.attr(k),null==x[k]&&(x[k]=Ee[k]),M[k]=u[k],b=!1,Oe[k]){case"number":((v=M[k]-x[k])||isNaN(v))&&(b=!0),E[k]=v/w;break;case"colour":if(x[k]===M[k])break;b=!0;var D=jt(x[k],M[k],c.getRGB);x[k]=D[0];var P=D[1];if(typeof P===C)x[k].toLowerCase()!==S?(x[k]=c.getRGB(x[k]),x[k].opacity||(x[k].opacity=1)):x[k]={r:0,g:0,b:0,opacity:0},M[k].toLowerCase()!==S?(P=c.getRGB(M[k])).opacity||(P.opacity=1):P={r:0,g:0,b:0,opacity:0},E[k]={r:(P.r-x[k].r)/w,g:(P.g-x[k].g)/w,b:(P.b-x[k].b)/w,opacity:(P.opacity-x[k].opacity)/w};else for(E[k]=[],A=0,T=x[k].length;Ar)return r;for(;ni?n=o:r=o,o=(r-n)/2+n}return o}(e,t);return((d*n+u)*n+c)*n}(e,1/(200*i))}(e,+U[1],+U[2],+U[3],+U[4],w)}}else G=ke;if(g=u.start||e.start||+new Date,t.e=O={anim:e,percent:n,timestamp:g,start:g+(e.del||0),status:0,initstatus:r||0,stop:!1,ms:w,easing:G,from:x,diff:E,to:M,el:t,callback:u.callback,prev:f,next:p,repeat:i||e.times,origin:t.attr(),totalOrigin:o,parentEl:s,delayend:l&&l.end,delaystart:l&&l.start},Rt.push(O),r&&!d&&!h&&(O.stop=!0,O.start=new Date-w*r,1===Rt.length))return Ft();h&&(O.start=new Date-O.ms*r),1===Rt.length&&(Lt||c.getAnimFrameFn())(Ft)}(0,a.default)("raphael.anim.start."+t.id,t,e)}}}function Gt(e){var t;void 0===e&&(e=this);for(var n=0;n=a.end&&(a.start=a.end),!a.from&&a.start>.01?(e.animElements=e.animElements||new je(function(e,t){return t.pos-e.pos}),e.animElements.enq({pos:a.start,attr:a.start===a.end,params:[d,l,d.percents[0],null,l.attr(),void 0,e,{start:a.start,end:a.end,smartMorph:a.smartMorph,hookFn:a.hookFn},n],executeOb:{el:this,attrs:n,callback:i,hookFn:a.hookFn}})):Ht(d,l,d.percents[0],null,l.attr(),void 0,e,a);for(var h=0,p=Rt.length;h=0;i--)!((r=Rt[i]).el.id===this.id||r.parentEl&&r.parentEl.id===this.id)||e&&Rt[i].anim!==e||(o=r.el,n&&o.attr(r.to),r.callback&&r.callback.call(o),delete o.e,delete r.el,Rt.splice(i,1));else for(var i=0;i1)for(var r=0,s=n.length;r/i,_=/<|>|"|'|"|
/g,/<\/under>/g,e,"",""),c=ee(//g,/<\/bold>/g,e,"",""),u=ee(//g,/<\/em>/g,e,"",""),d=ee(//g,/<\/strike>/g,e,"",""),h=ee(//g,/<\/sub>/g,e,"",""),p=ee(//g,/<\/sup>/g,e,"",""),f=$(/]+)>/g,/<\/abbr>/g,e,"",""),g=Q(/]+)>/g,/<\/a>/g,e,"",""),m=J(/]+)>/g,/<\/span>/g,e,"","");if((o=K(l,c,u,d,h,p,f,g,m)).length){for(o[0].index>s&&(r=e.substring(s,o[0].index),a=Y(a,r,i,t,o),s=o[0].index+o[0].tagName.length),n=0;n":{action:"add",tagAttr:"font-weight",tagAttrVal:"bold"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"font-style",tagAttrVal:"italic"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"text-decoration",tagAttrVal:"line-through"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"sub"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"baseline-shift",tagAttrVal:"super"},"":{action:"remove",actionTag:""},"":{action:"add",tagAttr:"text-decoration",tagAttrVal:"underline"},"":{action:"remove",actionTag:""},"":{action:"add"},"":{action:"remove",actionTag:""},"":{action:"add"},"":{action:"remove",actionTag:""}},q=function(e,t){var n,r;if(t.tagName.match(/]+)>/g))r=X({tag:"",sortedIndex:t}),e.push(r);else if(t.tagName.match(/]+)>/g))r=X({tag:"",sortedIndex:t}),e.push(r);else if(t.tagName.match(/]+)>/g))r=X({tag:"",sortedIndex:t}),e.push(r);else if("add"===U[t.tagName].action)r=X({tag:t.tagName,sortedIndex:t}),e.push(r);else if("remove"===U[t.tagName].action)for(n=e.length-1;n>=0;n--)if(e[n].tag===U[t.tagName].actionTag){e.splice(n,1);break}return e},Y=function(t,n,r,s,l,c){var u,d,h,p,g=e._g.doc.createTextNode(n),m={},v=!1,y=!1,b=!1,C="";if((f||o.isFirefox)&&(a&&(m.dy=-6,a=!1),i&&(m.dy=6,i=!1)),r.length){for(p=0;p"===r[p].tag?(y=!0,C=r[p].sortedIndex.title):""===r[p].tag?(v=!0,""!==r[p].href&&(m.href=r[p].sortedIndex.href),""!==s.target&&(m.target=r[p].sortedIndex.target),""!==s.hreflang&&(m.hreflang=r[p].sortedIndex.hreflang),""!==s.referrerpolicy&&(m.referrerpolicy=r[p].sortedIndex.referrerpolicy),""!==s.rel&&(m.rel=r[p].sortedIndex.rel),d=re("a",m)):""===r[p].tag&&(b=!0,u=r[p].sortedIndex.style),U[r[p].tag].tagAttr&&U[r[p].tag].tagAttrVal&&((f||o.isFirefox)&&(""===r[p].tag?(m.dy=-6,i=!0):""===r[p].tag&&(m.dy=6,a=!0)),m[U[r[p].tag].tagAttr]=U[r[p].tag].tagAttrVal);v?""!==n&&((h=re("tspan",m)).appendChild(g),d.appendChild(h),t.push(d),v=!1):y?""!==n&&((h=re("tspan",m)).appendChild(g),l.push({tspan:h,title:C}),t.push(h)):b?""!==n&&(m=X(m,u),(h=re("tspan",m)).appendChild(g),t.push(h)):""!==n&&((h=re("tspan",m)).appendChild(g),t.push(h))}else(h=re("tspan",m)).appendChild(g),t.push(h);return t},X=function e(t,n){for(var o in n)try{n[o].constructor==Object?t[o]=e(t[o],n[o]):t[o]=n[o]}catch(r){t[o]=n[o]}return t},K=function(e,t,n,r,o,i,a,s,l){var c,u,d=[e,t,n,r,o,i,a,s,l],h=[];for(u=0;u",a.innerHTML=s,l=a.childNodes[0]?a.childNodes[0].title:"",c.push({tagName:i[0],index:i.index,title:l||""});for(;i=t.exec(n);)u.push({tagName:o,index:i.index});return{tag:c,endtag:u}},Z=function(e){var t={};if(!e||!e.style||!e.style.cssText)return t;for(var n=e.style.cssText.split(";"),r=0;r",a.innerHTML=s,l=Z(a.childNodes[0]),c.push({tagName:i[0],index:i.index,style:l||""});for(;i=t.exec(n);)u.push({tagName:o,index:i.index});return{tag:c,endtag:u}},Q=function(e,t,n,r,o){for(var i,a,s,l,c=[],u=[];i=e.exec(n);)a=document.createElement("p"),s=i[0]+"",a.innerHTML=s,l=!!encodeURIComponent(a.childNodes[0].href).match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g),c.push({tagName:i[0],index:i.index,href:l?a.childNodes[0].href:"",target:a.childNodes[0].target?a.childNodes[0].target:"",hreflang:a.childNodes[0].hreflang?a.childNodes[0].hreflang:"",referrerpolicy:a.childNodes[0].referrerpolicy?a.childNodes[0].referrerpolicy:"",rel:a.childNodes[0].rel?a.childNodes[0].rel:""});for(;i=t.exec(n);)u.push({tagName:o,index:i.index});return{tag:c,endtag:u}},ee=function(e,t,n,r,o){for(var i,a=[],s=[];i=e.exec(n);)a.push({tagName:r,index:i.index});for(;i=t.exec(n);)s.push({tagName:o,index:i.index});return{tag:a,endtag:s}},te={"accent-height":!0,accumulate:!0,additive:!0,"alignment-baseline":!0,alphabetic:!0,amplitude:!0,"arabic-form":!0,ascent:!0,azimuth:!0,"baseline-shift":!0,bbox:!0,begin:!0,bias:!0,by:!0,"cap-height":!0,class:!0,clip:!0,"clip-path":!0,"clip-rule":!0,color:!0,"color-interpolation":!0,"color-interpolation-filters":!0,"color-profile":!0,"color-rendering":!0,cursor:!0,cx:!0,cy:!0,d:!0,decelerate:!0,descent:!0,direction:!0,display:!0,divisor:!0,"dominant-baseline":!0,dur:!0,dx:!0,dy:!0,elevation:!0,"enable-background":!0,end:!0,exponent:!0,fill:!0,"fill-opacity":!0,"fill-rule":!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,format:!0,fr:!0,from:!0,fx:!0,fy:!0,g1:!0,g2:!0,"glyph-name":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,hanging:!0,height:!0,"horiz-adv-x":!0,"horiz-origin-x":!0,href:!0,hreflang:!0,id:!0,ideographic:!0,"image-rendering":!0,in2:!0,in:!0,intercept:!0,k1:!0,k2:!0,k3:!0,k4:!0,k:!0,kerning:!0,lang:!0,"letter-spacing":!0,"lighting-color":!0,local:!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,mathematical:!0,max:!0,media:!0,method:!0,min:!0,mode:!0,name:!0,offset:!0,opacity:!0,operator:!0,order:!0,orient:!0,orientation:!0,origin:!0,overflow:!0,"overline-position":!0,"overline-thickness":!0,"paint-order":!0,"panose-1":!0,path:!0,ping:!0,"pointer-events":!0,points:!0,r:!0,radius:!0,rel:!0,"rendering-intent":!0,restart:!0,result:!0,rotate:!0,rx:!0,ry:!0,scale:!0,seed:!0,"shape-rendering":!0,slope:!0,spacing:!0,speed:!0,stemh:!0,stemv:!0,"stop-color":!0,"stop-opacity":!0,"strikethrough-position":!0,"strikethrough-thickness":!0,string:!0,stroke:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,style:!0,tabindex:!0,target:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,to:!0,transform:!0,type:!0,u1:!0,u2:!0,"underline-position":!0,"underline-thickness":!0,unicode:!0,"unicode-bidi":!0,"unicode-range":!0,"units-per-em":!0,"v-alphabetic":!0,"v-hanging":!0,"v-ideographic":!0,"v-mathematical":!0,values:!0,"vector-effect":!0,version:!0,"vert-adv-y":!0,"vert-origin-x":!0,"vert-origin-y":!0,visibility:!0,width:!0,widths:!0,"word-spacing":!0,"writing-mode":!0,x1:!0,x2:!0,x:!0,"x-height":!0,"xlink:actuate":!0,"xlink:arcrole":!0,"xlink:href":!0,"xlink:role":!0,"xlink:show":!0,"xlink:title":!0,"xlink:type":!0,"xml:base":!0,"xml:lang":!0,"xml:space":!0,y1:!0,y2:!0,y:!0,z:!0};I&&W.addEventListener(F?"pointerover":"touchstart",function(e){if(V.srcElement&&V.srcElement!==(e.srcElement||e.target)){var t,n,r,o=(t=V.elementInfo).length;for(r=0;r.5)-1,(r=y(w-.5,2))+y(x-.5,2)>.25&&r<.25&&(x=b(.25-r)*n+.5)&&.5!==x&&(x=x.toFixed(5)-1e-5*n)),f&&g&&(a=u(f),n=2*((s=u(g))>.5)-1,(r=y(a-.5,2))+y(s-.5,2)>.25&&r<.25&&(s=b(.25-r)*n+.5)&&.5!==s&&(s=s.toFixed(5)-1e-5*n),m||(w=a,x=s)),A)})).split(/\s*-\s*/),"linear"===p){var E,O=n.shift(),T=O.match(/\((.*)\)/);if(T=T&&T[1]&&T[1].split(/\s*,\s*/),O=-u(O),isNaN(O))return null;T&&T.length?(T[0]in oe?(l=T.shift(),T[0]in ie&&(d=T.shift())):(T[4]&&(l=T[4]),T[5]&&(d=T[5])),h=[T[0]||"0%",T[1]||"0%",T[2]||"100%",T[3]||"0%"]):(h=[0,0,g.cos(e.rad(O)),g.sin(e.rad(O))],E=1/(m(v(h[2]),v(h[3]))||1),h[2]*=E,h[3]*=E,h[2]<0&&(h[0]=-h[2],h[2]=0),h[3]<0&&(h[1]=-h[3],h[3]=0))}var k=e._parseDots(n);if(!k)return null;(M=re(p+"Gradient",{id:C})).refCount=0,l in oe&&M.setAttribute("gradientUnits",c(l)),d in ie&&M.setAttribute("spreadMethod",c(d)),"radial"===p?(void 0!==i&&M.setAttribute("r",c(i)),void 0!==a&&void 0!==s&&(M.setAttribute("cx",c(a)),M.setAttribute("cy",c(s))),M.setAttribute("fx",c(w)),M.setAttribute("fy",c(x))):re(M,{x1:h[0],y1:h[1],x2:h[2],y2:h[3]});for(var D=0,P=k.length;D1?D.opacity/100:D.opacity,n._.fillOpacityDirty=!0):n._.fillOpacityDirty&&e.is(f["fill-opacity"],"undefined")&&e.is(o["fill-opacity"],"undefined")&&(p.removeAttribute("fill-opacity"),delete n._.fillOpacityDirty);case"stroke":(D=e.getRGB(s)).error?"circle"!==n.type&&"ellipse"!==n.type&&"r"===c(s).charAt()||ae(n,s,"stroke"):(y[a]=D.hex,ne(n,void 0,a)),"stroke"===a&&(D[t]("opacity")?(y["stroke-opacity"]=D.opacity>1?D.opacity/100:D.opacity,n._.strokeOpacityDirty=!0):n._.strokeOpacityDirty&&e.is(f["stroke-opacity"],"undefined")&&e.is(o["stroke-opacity"],"undefined")&&(p.removeAttribute("stroke-opacity"),delete n._.strokeOpacityDirty),n._.arrows&&("startString"in n._.arrows&&le(n,n._.arrows.startString),"endString"in n._.arrows&&le(n,n._.arrows.endString,1)));break;case"gradient":("circle"===n.type||"ellipse"===n.type||"r"!==c(s).charAt())&&ae(n,s);break;case"visibility":"hidden"===s?n.hide():n.show();break;case"opacity":s=s>1?s/100:s,y.opacity=s;break;case"fill-opacity":s=s>1?s/100:s,y["fill-opacity"]=s;break;case"shape-rendering":n.attrs[a]=s=N[s]||s||"auto",y[a]=s,p.style.shapeRendering=s;break;case"line-height":case"vertical-align":break;default:"font-size"===a&&(s=d(s,10)+"px"),n._.dirty=1,y[a]=s,r.dashedAttr2CSSMap[a]&&(b[r.dashedAttr2CSSMap[a]]=s)}else a in f&&(delete f[a],p.removeAttribute("src"===a?"href":a));else a in te&&(s===A&&a in f?(delete f[a],p.removeAttribute(a)):(f[a]=s,b[a]=s));for(a in b)p.style[a]=b[a];for(a in y)p.setAttribute(a,y[a]);"text"===n.type&&!o["_do-not-tune"]&&pe(n,o)}},he=e._updateFollowers=function(){var e,t,n,o=(0,r.getArrayCopy)(arguments),i=M.call(o),a=M.call(o);for(e=0,t=i.followers.length;e"):null==o.text?N.pathText:o.text,delete N.pathText,(M=M.toString())!==N.text&&(H=!0,M&&_.test(M)&&(M=M.replace(/</g,"<").replace(/>/g,">").replace(/"|"/g,'"').replace(/'/g,"'").replace(/&lt;|&lt;|<;/g,"<
").replace(/&gt;|&gt;|>;/g,">
")),M=M.replace(//g,"").replace(/<\/u>/g,"").replace(//g,"").replace(/<\/b>/g,"").replace(//g,"").replace(/<\/strong>/g,"").replace(//g,"").replace(/<\/em>/g,"").replace(//g,"").replace(/<\/i>/g,"").replace(//g,"").replace(/<\/strike>/g,"").replace(//g,"").replace(/<\/s>/g,"").replace(//g,"").replace(/<\/del>/g,"").replace(//g,"").replace(/<\/sub>/g,"").replace(//g,"").replace(/<\/sup>/g,""),N.text=O.text=M,x.test(M)?(N.noTSpan&&(N.noTSpan=!(E=!0)),m=(y=c(M).split(x)).length):(E=!0,N.noTSpan=!0,m=1),N.lineCount!==m&&(N.lineCount=m,W=!0))),L!==N.lineHeight&&(N.lineHeight=L,N.baseLineDiff=.75*L,W=!0),E)for(;P.firstChild;)P.removeChild(P.firstChild);if(N.lineCount>1){if("pre"===P.style.whiteSpace&&(P.style.whiteSpace=""),s={},N.tspanAttr||(N.tspanAttr={},N.tspan0Attr={}),N.tspanAttr.dy!==N.lineHeight&&(N.tspanAttr.dy=s.dy=N.lineHeight,I=!0),o[t]("x")&&N.tspanAttr.x!==o.x&&(N.tspan0Attr.x=N.tspanAttr.x=s.x=O.x,I=!0),H)for(w=P.childNodes,d=0;dv)for(d=P.childNodes.length-1;d>=v;d-=1)P.removeChild(P.childNodes[d])}else if(H){if(U(M)?(M=q(M),P.style.whiteSpace="pre"):"pre"===P.style.whiteSpace&&(P.style.whiteSpace=""),(B=G(M,j)).length)for(var ne=0;ne123?"darkFilter":"brightFilter"}(l)].join(" "),r=e.getElementID(n.replace(/[\(\)\s%:,\xb0#]/g,"_")),a=(i=e.isFirefox?s.addDefs({filter:{tagName:"filter",id:r,children:[{tagName:"feMorphology",result:"DILATED",in:"SourceAlpha",operator:"dilate",radius:e.isIE11?"1.5":"1"},{tagName:"feFlood",result:"FLOOD","flood-color":"darkFilter"===o?"#000000":"#ffffff","flood-opacity":"1"},{tagName:"feComposite",result:"OUTLINE",in:"FLOOD",in2:"DILATED",operator:"in"},{tagName:"feMerge",children:[{tagName:"feMergeNode",in:"OUTLINE"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}}):s.addDefs({filter:{tagName:"filter",id:r,children:[{tagName:"feColorMatrix",result:"COLORED",in:"SourceGraphic",type:"matrix",values:"darkFilter"===o?"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0":"1 1 1 1 255 1 1 1 1 255 1 1 1 1 255 0 0 0 1 0"},{tagName:"feOffset",dx:"1",dy:"1",result:"OFFSET11",in:"COLORED"},{tagName:"feOffset",dx:"-1",dy:"-1",result:"OFFSET-1-1",in:"COLORED"},{tagName:"feOffset",dx:"-1",dy:"1",result:"OFFSET-11",in:"COLORED"},{tagName:"feOffset",dx:"1",dy:"-1",result:"OFFSET1-1",in:"COLORED"},{tagName:"feMerge",children:[{tagName:"feMergeNode",in:"OFFSET1-1"},{tagName:"feMergeNode",in:"OFFSET-1-1"},{tagName:"feMergeNode",in:"OFFSET11"},{tagName:"feMergeNode",in:"OFFSET-11"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}})).filter.children,u[o]={hash:n,id:r,filter:i.filter.element,morph:a[0].element,flood:a[1].element,composite:a[2].element,merge:a[3].element}},e.el.outlineText=function(t,n){var o;if(n&&"none"!==n){o=/(^#[0-9A-Fa-f]{6}$)|(^#[0-9A-Fa-f]{3}$)/.test(n)?(0,r.convertColor)(n):n;var i,a,s=this.node,l=this.paper,c=l.outlineFilterCaches||(l.outlineFilterCaches={}),u=l.filterColorMap||(l.filterColorMap={}),d=function(e){var t=e.split("(")[1].split(")")[0].split(",");return{R:+t[0],G:+t[1],B:+t[2]}}(o),h="rgb-"+d.R+"-"+d.G+"-"+d.B;t?(a=(i=u[h])&&c[i]?c[i]:e.createOutlineFilter({rgbObj:d,paper:l,colorMapText:h}),s.setAttribute("filter",'url("'+e._url+"#"+a.id+'")')):s.removeAttribute("filter")}}):e.el.outlineText=function(){return this}};var r=n(218)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=/rgba\([\d]+\,[\d]+\,[\d]+\,0\)$/,n=window,o=Math,i=o.cos,a=o.sin,s=o.PI,l=n.parseInt,c=n.parseFloat,u=String,d=Array.prototype.slice,h="hasOwnProperty",p="none",f="M",g="L",m="Z",v="text-bound",y=/\s*\,\s*/g;e&&e._availableAnimAttrs&&e._availableAnimAttrs.cx&&(e._availableAnimAttrs["scroll-position"]=e._availableAnimAttrs.cx),e.define&&e.define([{name:"polypath",polypath:function(){return this.path(void 0,e._lastArgIfGroup(arguments))},ca:{polypath:function(t,n,r,o,u,d){var h,p,v,y,b,C=t,w=n,x=r,_=o,S=u,M=d;if(h=[],C=l(C,10)||0,w=c(w)||0,x=c(x)||0,_=c(_)||0,S=null===S||isNaN(S)?.5*s:e.rad(S),M=null===M||isNaN(M)?0:c(M),y=S,C>2)switch(p=2*s/C,M){case 0:for(v=0;v3?["M",e,t,"h",o,"v",r,"h",-o,"v",-r,"z"]:["M",e-o,t-o,"h",o*=2,"v",o,"h",-o,"v",-o,"z"]})},e.fn.symbol.ca={symbol:function(t){var n,r,o=t,i=e.is(o,"object")&&1===arguments.length&&!e.is(o,"function")?o:arguments;i===o&&(o=i[0]),r=(n=e.is(o,"function")&&o||e.fn.symbol.cache[o]||e.fn.symbol.cache[""])&&n.apply(e,d.call(i,1)),e.is(r,"array")||e.is(r,"string")?this.attr("path",r):r&&this.attr(r)}},e.addSymbol=function(t,n){var r,o,i=n,a=e.fn.symbol.cache,s=[];for(o in r=e.is(i,"function")&&((r={})[t]=i,r)||t)i=r[o],a[o]=e.is(i,"function")&&e._cacher(i,e)||(s.push(o),i);for(o=s.pop();o;)a[o]=a[a[o]],o=s.pop()}};var r=n(218)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=function(e,t,r){return function(){var o,i,a,s=n(e._.imageGridAttr,t),l=1,c=1,u=1;if(s.tileInfo&&(l=s.tileInfo.xCount,c=u=s.tileInfo.yCount,a=s.y,delete s.tileInfo),e._.gridElem){for(i=0;i|><\/option>|>[\s\S]*?<\/option>)/gi);y.firstChild;)y.removeChild(y.firstChild);for(f=0,g=a.length;f|>[\s\S]*<\/option>)/gi.test(s)&&(m.value=s.replace(/|>[\s\S]*<\/option>)/gi,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,"$1")),m.text=s.replace(/|\>]([\s\S]*)<\/option>/gi,"$1 "),y.options.add(m)}else"input"!==y.nodeName.toLowerCase()&&void 0!==r&&(y.innerHTML=r||"");o=!0}else/^text$/i.test(t)?("input"!==y.nodeName.toLowerCase()&&(y.innerHTML="",void 0!==r&&y.appendChild(l.createTextNode(r))),o=!0):/^type$/i.test(t)&&c&&this.added&&(o=!0);o&&(b[t]=r,delete e[t],o=!1)}for(t in e)y.setAttribute(t,e[t]);for(t in b)this[t]=this.attrs[t]=e[t]=b[t],delete b[t];return this},val:function(e){var t=this.element,n=void 0===e;if("input"===this.nodeName&&"checkbox"===t.getAttribute("type"))return n?this.checked()?1:0:this.checked(e);if("select"===this.nodeName){var r=t.childNodes,o=t.selectedIndex,a=r.length;if(""===e)return;if(!n)for(var s=0;s=2.5||Math.abs(s-r)>=2.5)&&(e._lastEventTriggered=void 0)};for(o in l=!h&&d?{touchstart:function(){e._lastEventTriggered="touchstart",e._lastEventTriggeredAt=(new Date).getTime()},touchmove:u}:h&&d?{pointerdown:c,pointermove:u}:{mousedown:c,mousemove:u})e.addEventListener?e.addEventListener(o,l[o]):e.attachEvent("on"+o,l[o]);e._clickHandlerHelper=l,e._clickEventCount=0}return++e._clickEventCount,!h&&d?(o="touchend",i=function(r){"touchstart"===e._lastEventTriggered&&(new Date).getTime()-e._lastEventTriggeredAt<=500&&setTimeout(function(){t.call(n,r)},0)}):(o="click",i=function(r){"mousedown"===e._lastEventTriggered&&t.call(n,r)}),(r={})[o]=i,r}(e,n)}var i,u=t,p=u.match(/fc-/),f=n;return p&&(u=u.replace(/fc-/,"")),p&&d&&(i=u,u=(h?s[u]:l[u])||u,"mouseout"===i&&(f=function(e){h&&d&&!e.isPrimary||(a.elementInfo.push({el:r,callback:n}),a.srcElement=e.srcElement||e.target)},u=h?"pointerover":"touchstart")),f===n&&(f=function(e){(!h||!d||e.isPrimary||c[e.type])&&n.call(r,e)}),(o={})[u]=f,o};d&&document.addEventListener(h?"pointerover":"touchstart",function(e){if(a.srcElement&&a.srcElement!==(e.srcElement||e.target)){var t,n,r=a.elementInfo,o=r.length;for(n=0;n.*$/,repStr:"/svg>"},{reg:/[^<]*<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/]+?[^\/])\>/gi,repStr:""},{reg:/<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(e){return e.toLowerCase()}},{reg:/NS\d+\:href=/g,repStr:"xlink:href="}],n=function(e){var t=JSON.stringify(e);return t=t=(t=(t=(t=t.replace(/([a-z]+)([A-Z]+)([a-z]+)/g,function(e,t,n,r){return t+"-"+n.toLowerCase()+r})).replace(/\"\,\"/g,'";"')).replace(/\"/g," ")).replace(/\{|\}/g,"")};e.svg&&(e.fn.toSVG=function(e){var r,o="",i=0,a=t.length;if(this.canvas&&this.canvas.parentNode){for(o=this.canvas.parentNode.innerHTML;i]+("+s+")[^>]+","g"),u=u.replace(c,d));return u}(o,this._stylesheet.rules))}return e||(o=o.replace(/]*\>/gi,function(e){return e.match(/href=\"data\:image/i)?e:""})),o})}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){e&&(e.svg?e.el.addPattern=function(t,n){if(void 0===t&&(t={}),void 0===n&&(n=0),this.patternInfo&&(this.patternInfo.element.remove(),delete this.patternInfo),n){var r=this.paper.addDefs({pattern:c({},d(t))}).pattern;this.node.setAttribute("fill",'url("'+e._url+"#"+r.id+'")'),this.patternInfo=r}}:e.el.addPattern=function(){return this})};var o=r(n(217)),i=r(n(266)),a=r(n(267)),s=r(n(268));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t.2&&(i=.2),r=o.end-o.start,o.start*=1-i,o.start+=i,o.end=o.start+(1-i)*r,o.start=Math.round(100*o.start)/100,o.end=Math.round(100*o.end)/100,o},b=function(e,t,n){var r,i=f[t],a=s.BLANKSTRING,l={};if(i&&e&&e.el&&e.el[0]){for(a in i)l[a]=e.el.attrs[a],l[a]===o&&(l[a]=null),e.attrs[a]=i[a].end,e.el.attr(a,i[a].start);r=e.callback,e.callback=function(){n&&g[t]&&g[t].call(this),r&&r.call&&r.call(this),this.attr(l)}}},C=function(e,t){var n,r=t,o=!0;if(r){for(e.attrs=e.attrs||{},~(r=r.split("-")).indexOf("nc")&&(o=!1),n=r.length;n--;)b(e,r[n],o);return e}},w=function(e,t,n,r,o,i,a,s){e.animateWith(o,i,t,a,s,n,r)},x=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&"__esModule"!==n){var r=e[n];_(t,r)}return t},_=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(!e[n]&&(e[n]=[]),e[n].push(t[n]))},S=function(e){return"function"==typeof e};function M(e,t,n,r){var o,i,a,s,l,c=e.length,u=0,d=0,h=t;for(i=0,a=0,l=0;lx"},{cursor:"pointer",_cursor:"hand"},a.dialog).on("fc-click",function(){m&&o.hide()})),a.logWrapper=s.html("div",{id:"logWrapper"},{overflow:"auto"},a.dialog).on("scroll",function(){var e=this&&this.scrollTop,t=this&&this.scrollHeight,n=this&&this.offsetHeight;i.dynamicScrolling?i.dynamicScrolling=!1:i.scrollToBottom=t-e===n}),a.log=s.html("div",{id:"log",x:0,y:0},{},a.logWrapper)),O.css({fontFamily:h.fontFamily}),a.dialog.attr({fill:"ffffff",stroke:M}),a.logBackground.attr({fill:E}),e={width:c,height:u},t={x:w,y:x,width:b,height:C},n={width:b,height:C},r={x:(b-_)/2,y:(C-S)/2,width:_,height:S},A?(O.animate(e,A,"normal"),a.veil.animate(e,A,"normal"),a.dialog.animate(t,A,"normal"),a.logBackground.animate(n,A,"normal"),a.logWrapper.animate(r,A,"normal")):(O.attr(e),a.veil.attr(e),a.dialog.attr(t),a.logBackground.attr(n),a.logWrapper.attr(r))},t}(a.ComponentInterface);t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218),o=8===window.document.documentMode,i={},a={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"};i.literal=i.info={title:'$titleVal$',body:'$msgVal$'},i.link={title:i.info.title,body:'$msgVal$'},i.error={title:'$titleVal$',body:'$msgVal$'};var s=function(){function e(e,t){this.config={},this.messageType=(e.msgType&&e.msgType.replace(/^[\r\n]+|\.|[\r\n]+$/g,"")||"").toLowerCase(),this.msgTitle=e.msgTitle,this.msgText=e.msgText,this.msgLink=e.msgLink,this.graphics={},this.linkedItems={msgLogger:t},this.msgObj=i[this.messageType]||i.literal,this.configureMsgTextAndMsgTitle()}var t=e.prototype;return t.configureMsgTextAndMsgTitle=function(){this.config.totalHTML=r.BLANKSTRING,this.msgTitle&&(this.config.titleHTML=this.msgObj.title.replace("$titleVal$",this.msgTitle),this.config.totalHTML+=this.config.titleHTML),this.msgText&&(this.config.msgHTML=this.msgObj.body.replace("$msgVal$",this.msgText),this.config.msgHTML=this.config.msgHTML.replace("$msgLinkVal$",this.msgText),this.config.totalHTML+=this.config.msgHTML)},t.draw=function(){var e,t,n,i=this.graphics.element,s=this.linkedItems.msgLogger,l=s.graphics,c=l&&l.log&&l.log.element,u=l.logWrapper&&l.logWrapper.element,d=s.config;if(!i){for(e in i=this.graphics.element=window.document.createElement("span"),a)i.style[e]=a[e];c.appendChild&&c.appendChild(i)}this.graphics.element.innerHTML=this.config.totalHTML,r.isIE&&o&&(t=c.innerHTML,c.innerHTML=t),d.scrollToBottom&&(d.dynamicScrolling=!0,n=u.scrollHeight,u.scrollTop=n)},t.dispose=function(){var e=this.linkedItems.msgLogger;e&&e.graphics&&e.graphics.log&&e.graphics.log.element&&e.graphics.log.element.removeChild&&e.graphics.log.element.removeChild(this.graphics.element),delete this.graphics.element,r.componentDispose.call(this)},e}();t.default=s},function(e,t,n){"use strict";var r=n(211),o=n(215);t.__esModule=!0,t.default=void 0;var i=o(n(281)),a=n(225),s=n(218),l=r(n(220)),c=s.regex.dropHash;function u(e,t){return(e.options.containerElement===t.options.containerElement||e.options.containerElementId===t.options.containerElementId)&&e.options.insertMode===s.domInsertModes.REPLACE}function d(e){var t;e.sender.link instanceof i.default&&!e.sender.link.root.disposed?e.sender.link.parent instanceof this&&!(t=e.sender.link.parent.link.items)[e.sender.id]&&(t[e.sender.id]=e.sender):e.sender.link=new i.default(e.sender)}function h(e,t){var n,r=t;if(e instanceof Array){for(n=0;n/g,">")}var s,l,c,u,d=(u={arr:{set:!0,node:!0,nodes:!0,link:!0,links:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,tasks:!0,linkeddata:!0,application:!0,definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},tag:{chart:"linkedchart",map:"linkedmap",set:"data",node:"nodes",link:"links",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},attr:{vline:{vline:"true"}},ins:{chart:!0,map:!0,graph:!0},dsv:{dataset:"data",categories:"category"},text:{target:"target",value:"value"},group:{styles:{definition:!0,application:!0},chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}}},s={append:function(e,t,n,r){!u.arr[n]||!0!==u.arr[n]&&!0!==u.arr[n][r]?t[n]=e:(t[n]instanceof Array||(t[n]=[]),t[n].push(e))},child:function(e,t,n,r){var i,a,l,c,d,h;for(i=0;i/g,"").replace(/<\?xml[\s\S]*?\?>/gi,"").replace(/&(?!([^;\n\r]+?;))/g,"&$1"),!(g=(0,o.fastTrim)(g)))return f;try{if(window.DOMParser?t=(new window.DOMParser).parseFromString(g,"text/xml"):document.body&&r.options.allowIESafeXMLParsing?((n=document.createElement("xml")).innerHTML=g,document.body.appendChild(n),t=n.XMLDocument,document.body.removeChild(n),n=null):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(g)),!(t&&t.childNodes&&1===t.childNodes.length&&(i=t.childNodes[0])&&i.nodeName&&(a=i.nodeName.toLowerCase()))||"chart"!==a&&"map"!==a&&"graph"!==a)return l.errorObject=new TypeError("xml2json.parse()"),f;if("graph"===a){for(c=t.createElement("chart"),p=(d=i.attributes)&&d.length||0;p--;)c.setAttribute(d[p].name,d[p].value),d.removeNamedItem(d[p].name);for((p=(h=i.childNodes)&&h.length||0)&&(p-=1,u=i.removeChild(h[p]),c.appendChild(u));p--;)u=i.removeChild(h[p]),c.insertBefore(u,c.firstChild);t.replaceChild(c,i),i=c}}catch(m){l.errorObject=m}return i?(i.attributes&&(f[a]=s.attr(i.attributes)),i.childNodes&&s.child(f,i.childNodes,a,f),delete l.errorObject):l.errorObject=new TypeError("xml2json.parse()"),f},function(e){return delete l.errorObject,c=arguments[arguments.length-1],{data:l(e),error:l.errorObject}}),h=function(){var e,t;return e={items:{explode:{data:"set",nodes:"node",links:"link",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},attr:{chart:{chart:"chart"},graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:i},t=function(n,r,i,a){var s,l,c,u,d=o.BLANKSTRING,h=o.BLANKSTRING,p=o.BLANKSTRING,f=o.BLANKSTRING,g=r;if(g&&"function"==typeof g.toLowerCase&&(g=g.toLowerCase()),void 0===i&&n[g])for(l in n[g])"compactdatamode"===(c=l.toLowerCase())&&(a.applyDSV=1===n[g][l]);if(n instanceof Array)for(l=0;l\{\}\[\]\\\/]/gi,""),n[l]instanceof Array&&(u=e.qualify("group",c,g))?h+="<"+(s=e.qualify("tag",c,g)||c)+">"+t(n[l],u,g,a)+"":"object"==typeof n[l]?(u=e.qualify("attr",c,g))?(f=t(n[l],u,g,a).replace(/\s*\/\>/gi,""),g=c):h+=t(n[l],c,g,a):a.applyDSV&&(u=e.qualify("dsv",c,g))?h+=n[l]:(u=e.qualify("text",c,g))?h+="<"+(s=e.qualify("tag",c,g)||u)+">"+n[l]+"":"vline"===c&&Boolean(n[l])?g="vline":d+=" "+c+'="'+(0,o.xssEncode)(n[l]).toString().replace(/\"/gi,""")+'"';(u=e.qualify("explode",i,g))&&(g=u),s=g,p=(""!==f?f:"<"+s)+d+(""!==h?">"+h+"":" />")}return p},function(e){delete t.errorObject;var n=e;if(n&&"string"==typeof n)try{n=JSON.parse(n)}catch(o){t.errorObject=o}var r=n&&n.graph?"graph":n&&n.map?"map":"chart";return{data:t(n,r,void 0,{}),error:t.errorObject}}}(),p=function(){return this.getChartData("xml")},f=function(e){this.setChartData(e,"xml")},g={extension:function(e){return e&&(r=e,e.prototype.getXMLData=p,e.prototype.setXMLData=f),{format:"xml",toJSON:d,fromJSON:h}},name:"XML",type:"transcoder",requiresFusionCharts:!0};t.default=g},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=n(225),a=n(218),s=r(n(284)),l=r(n(285));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var u,d,h,p,f,g,m,v,y,b,C,w,x=window,_=x.parseInt,S=x.parseFloat,M=function(e){return e},E=function(){function e(e){this.data=[],this.rowCount=0,this.columnCount=0,this.configure(e)}var t=e.prototype;return t.set=function(e,t,n){var r;if(this.rowCount<=e){for(r=this.rowCount;r<=e;r+=1)this.data[r]=[];this.rowCount=e+1}this.columnCount<=t&&(this.columnCount=t+1),this.data[e][t]=n},t.setRow=function(e,t){var n;if(this.rowCount<=e){for(n=this.rowCount;n<=e;n+=1)this.data[n]=[];this.rowCount=e+1}this.columnCount0&&(n=n.slice(0,n.length-2)),n},e}();function O(){return this.getChartData("csv")}function A(){return this.getCSVData()}E.decodeLiterals=function(e,t){return e!==d&&null!==e&&e.toString?e.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):t},f=function(e){var t={},n=[];for(var r in(0,s.default)(e)&&e.forEach(function(e){t[e.id]=function(e){for(var t=1;t=0;t--)r.set(t+1,w,m[t]);return{data:r.toString(),error:d,predictedFormat:{multilevel:!0}}},h=function(e,t){var n,r,o,i,a,s,c,h,p,g,m,v,y,C,w,x,_,O,A,T,k,D,P,N,L,R,F,I,z,B,j,V,W,H,G,U,q,Y,X,K,$,Z,J,Q,ee=e,te=t&&t.jsVars,ne=te&&te.instanceAPI,re=ee.chart||ee.map||ee.graph||{},oe=ne&&ne.getFromEnv("number-formatter"),ie=oe?function(e){return oe.getCleanValue(e)}:t&&t._getCleanValue?function(e){return t._getCleanValue(e,re)}:M,ae=Boolean(re.exporterrorcolumns||0),se=ee.categories&&ee.categories[0]&&ee.categories[0].category||[],le=ee.map&&!ee.chart||te&&te.instanceAPI&&"geo"===te.instanceAPI.defaultSeriesType,ce=!1,ue=!1,de=!1,he=!1,pe=!1,fe=!1,ge=M,me={},ve=ee.tasks?Array.isArray(ee.tasks)?ee.tasks[0].task:ee.tasks.task:d,ye=ee.processes?ee.processes.process:d,be=ee.datatable?Array.isArray(ee.datatable)?ee.datatable[0]:ee.datatable:d,Ce=be?be.datacolumn:d,we=ve&&ye,xe=0,_e=-1,Se="timeseries"===t.args.type,Me=ne.config.defaultDatasetType,Ee=0,Oe=0,Ae=0,Te=0;if(!Se&&(e.category||e.data&&e.data[0].data))return b(e);if(n=new E({separator:re.exportdataseparator,qualifier:re.exportdataqualifier,numberFormatted:re.exportdataformattedval}),u.formatNumber&&n.numberFormatted&&(ge=function(e,t){return u.formatNumber(e,re,t)}),Se){for(J=ee.data.getSchema(),K=ee.data.isUTCEnabled(J[0].name),$=J[0].format,Z=K?l.default.utcFormatter($):l.default.formatter($),p=ee.data.getData().data,a=0;a0?(n.setRow(0,["Win","Loss","Draw","Error"]),n.setRow(1,[Ee,Oe,Ae,Te])):(n.setRow(0,["Win","Loss","Draw"]),n.setRow(1,[Ee,Oe,Ae]))),D&&(o+=D,D=0),o+=1}g&&(p=p.slice(0,-g.length)),m&&(p=p.slice(0,-m.length))}else if(p=ee.data){for(n.set(0,1,re.yaxisname||"Value"),me.singleseries=!0,fe="1"==re.showsumatend,a=0,y=p.length;a0&&n.get(0,0)===d&&n.set(0,0,re.xaxisname||"Label"),a=1;a68?1900:2e3),n+r[0].length):-1},k=function(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1},D=function(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1},P=function(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1},N=function(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1},L=function(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1},R=function(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1},F=function(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1},I=function(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1},z=function(e,t,n){var r=f.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1},B=function(e,t,n){var r=m.exec(t.slice(n,n+1));return r?n+r[0].length:-1},j=function(e,t,n){var r=f.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1},V=function(e,t,n){var r=f.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1},W=function(e,t){return y(e.getDate(),t,2)},H=function(e,t){return y(e.getHours(),t,2)},G=function(e,t){return y(e.getHours()%12||12,t,2)},U=function(e,t){return y(1+c.default.count(u.default.floor(e),e),t,3)},q=function(e,t){return y(e.getMilliseconds(),t,3)},Y=function(e,t){return q(e,t)+"000"},X=function(e,t){return y(e.getMonth()+1,t,2)},K=function(e,t){return y(e.getMinutes(),t,2)},$=function(e,t){return y(e.getSeconds(),t,2)},Z=function(e,t){return"Q"+Math.ceil((e.getMonth()+1)/3)},J=function(e){var t=e.getDay();return 0===t?7:t},Q=function(e,t){return y(s.sunday.count(u.default.floor(e),e),t,2)},ee=function(e,t){var n=e,r=n.getDay();return n=r>=4||0===r?s.thursday.floor(n):s.thursday.ceil(n),y(s.thursday.count(u.default.floor(n),n)+(4===u.default.floor(n).getDay()),t,2)},te=function(e){return e.getDay()},ne=function(e,t){return y(s.monday.count(u.default.floor(e),e),t,2)},re=function(e,t){return y(e.getFullYear()%100,t,2)},oe=function(e,t){return y(e.getFullYear()%1e4,t,4)},ie=function(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+y(t/60|0,"0",2)+y(t%60,"0",2)},ae=function(e,t){return y(e.getUTCDate(),t,2)},se=function(e,t){return y(e.getUTCHours(),t,2)},le=function(e,t){return y(e.getUTCHours()%12||12,t,2)},ce=function(e,t){return y(1+d.default.count(h.default.floor(e),e),t,3)},ue=function(e,t){return y(e.getUTCMilliseconds(),t,3)},de=function(e,t){return ue(e,t)+"000"},he=function(e,t){return y(e.getUTCMonth()+1,t,2)},pe=function(e,t){return y(e.getUTCMinutes(),t,2)},fe=function(e,t){return y(e.getUTCSeconds(),t,2)},ge=function(e,t){return"Q"+Math.ceil((e.getUTCMonth()+1)/3)},me=function(e){var t=e.getUTCDay();return 0===t?7:t},ve=function(e,t){return y(l.utcSunday.count(h.default.floor(e),e),t,2)},ye=function(e,t){var n=e,r=n.getUTCDay();return n=r>=4||0===r?l.utcThursday.floor(n):l.utcThursday.ceil(n),y(l.utcThursday.count(h.default.floor(n),n)+(4===h.default.floor(n).getUTCDay()),t,2)},be=function(e){return e.getUTCDay()},Ce=function(e,t){return y(l.utcMonday.count(h.default.floor(e),e),t,2)},we=function(e,t){return y(e.getUTCFullYear()%100,t,2)},xe=function(e,t){return y(e.getUTCFullYear()%1e4,t,4)},_e=function(){return"+0000"},Se=function(){return"%"},Me=function(e){return+e},Ee=function(e){return Math.floor(+e/1e3)},Oe=function(){function e(e){var t=this,n=e.dateTime,r=e.date,o=e.time,s=e.periods,l=e.days,c=e.shortDays,u=e.months,d=e.shortMonths,h=C(s),p=w(s),f=C(l),g=w(l),m=C(c),v=w(c),y=C(u),b=w(u),Oe=C(d),Ae=w(d);this._formats={a:function(e){return c[e.getDay()]},A:function(e){return l[e.getDay()]},b:function(e){return d[e.getMonth()]},B:function(e){return u[e.getMonth()]},d:W,e:W,f:Y,H:H,I:G,j:U,L:q,m:X,M:K,p:function(e){return s[+(e.getHours()>=12)]},q:Z,Q:Me,s:Ee,S:$,u:J,U:Q,V:ee,w:te,W:ne,y:re,Y:oe,Z:ie,"%":Se},this._utcFormats={a:function(e){return c[e.getUTCDay()]},A:function(e){return l[e.getUTCDay()]},b:function(e){return d[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},d:ae,e:ae,f:de,H:se,I:le,j:ce,L:ue,m:he,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:ge,Q:Me,s:Ee,S:fe,u:me,U:ve,V:ye,w:be,W:Ce,y:we,Y:xe,Z:_e,"%":Se},this._parses={a:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=v[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=g[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.m=Ae[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},c:null,d:P,e:P,f:z,H:L,I:L,j:N,L:I,m:D,M:R,p:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.p=p[r[0].toLowerCase()],n+r[0].length):-1},Q:j,q:O,s:V,S:F,u:_,U:S,V:M,w:x,W:E,x:null,X:null,y:T,Y:A,Z:k,"%":B},this._formats.x=function(e){return new i.default(r,t._formats).format(e)},this._formats.X=function(e){return new i.default(o,t._formats).format(e)},this._formats.c=function(e){return new i.default(n,t._formats).format(e)},this._utcFormats.x=function(e){return new i.default(r,t._utcFormats).format(e)},this._utcFormats.X=function(e){return new i.default(o,t._utcFormats).format(e)},this._utcFormats.c=function(e){return new i.default(n,t._utcFormats).format(e)},this._parses.c=function(e,r,o){return new a.default(n,t._parses).parseSpecifier(e,r,o)},this._parses.x=function(e,n,o){return new a.default(r,t._parses).parseSpecifier(e,n,o)},this._parses.X=function(e,n,r){return new a.default(o,t._parses).parseSpecifier(e,n,r)}}var t=e.prototype;return t.formatter=function(e){return void 0===e&&(e=""),new i.default(e.toString(),this._formats)},t.utcFormatter=function(e){return void 0===e&&(e=""),new i.default(e.toString(),this._utcFormats)},t.parser=function(e){var t=e;return new a.default(t+="",this._parses,function(e){if(e.y>=0&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)})},t.utcParser=function(e){var t=e;return new a.default(t+="",this._parses,a.utcDate)},e}();t.TimeConverter=Oe;var Ae=new Oe(p.default);t.default=Ae},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(287)),i=function(){function e(e,t){this._specifier=e,this._formats=t}var t=e.prototype;return t.format=function(e){var t,n,r,i=[],a=e,s=-1,l=0,c=this._specifier,u=c.length;for(a instanceof Date||(a=new Date(+a));++s=0&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))};t.utcDate=u;var d=function(){function e(e,t,n){this._specifier=e,this._parses=t,this._newDate=n}var t=e.prototype;return t.parseSpecifier=function(e,t,n){for(var r,i,a=0,s=this._specifier.length,l=t.length,c=n;a=l)return-1;if(37===(r=this._specifier.charCodeAt(a++))){if(r=this._specifier.charAt(a++),!(i=this._parses[r in o.default?this._specifier.charAt(a++):r])||(c=i(e,t,c))<0)return-1}else if(r!==t.charCodeAt(c++))return-1}return c},t.parse=function(e){var t,n,r=c(1900),o=e;if(o+="",this.parseSpecifier(r,o,0)!==o.length)return null;if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(n=(t=u(c(r.y))).getUTCDay(),t=n>4||0===n?s.utcMonday.ceil(t):s.utcMonday.floor(t),t=a.default.offset(t,7*(r.V-1)),r.y=t.getUTCFullYear(),r.m=t.getUTCMonth(),r.d=t.getUTCDate()+(r.w+6)%7):(n=(t=this._newDate(c(r.y))).getDay(),t=n>4||0===n?l.monday.ceil(t):l.monday.floor(t),t=i.default.offset(t,7*(r.V-1)),r.y=t.getFullYear(),r.m=t.getMonth(),r.d=t.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),n="Z"in r?u(c(r.y)).getUTCDay():this._newDate(c(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(n+5)%7:r.w+7*r.U-(n+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,u(r)):this._newDate(r)},t.toString=function(){return this._specifier},e}();t.default=d},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.dayObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"day",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationDay-Math.floor(o/i.durationDay)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setDate(1),s.setHours(0,0,0,0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getDate()-r.getDate()-Math.floor(l/i.durationDay)}},l=new o.default(s);t.dayObj=s;var c=l;t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=new Date,o=new Date,i=function(e){return null==e},a=function(){function e(e){this._name=e.name,this._floori=e.floor,this._offseti=e.offset,this._count=e.count,this._field=e.field}var t=e.prototype;return t.name=function(){return this._name},t.floor=function(e){var t=new Date(Number(e));return t=this._floori(t,this._clipDates,this._timeUniverse)},t.setClipDates=function(e){this._clipDates=e},t.setTimeUniverse=function(e){this._timeUniverse=e},t.ceil=function(e){var t=new Date(e-1);return t=this._floori(t,this._clipDates,this._timeUniverse),t=this._offseti(t,1,this._clipDates,this._timeUniverse),t=this._floori(t,this._clipDates,this._timeUniverse)},t.round=function(e){var t=this.floor(e),n=this.ceil(e);return e-t0))return o;do{r=new Date(Number(a)),o.push(r),a=this._offseti(a,s,this._clipDates,this._timeUniverse),a=this._floori(a,this._clipDates,this._timeUniverse)}while(r=0;)do{i=n._offseti(i,1,n._clipDates,n._timeUniverse)}while(!t(i));return Number(i)}})},t.count=function(e,t){var n=0;return this._count&&(r.setTime(Number(e)),o.setTime(Number(t)),r=this._floori(r,this._clipDates,this._timeUniverse),o=this._floori(o,this._clipDates,this._timeUniverse),n=Math.floor(this._count(r,o,this._clipDates))),n},t.every=function(e){var t=this,n=Math.floor(e);return this._count&&Number.isFinite(n)&&n>0?n>1?this.filter(this._field?function(e){return t._field(e,t._clipDates,t._timeUniverse)%n==0}:function(e){return t.count(0,e)%n==0}):this:null},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.durationYear=t.durationQuarter=t.durationMonth=t.durationWeek=t.durationDay=t.durationHour=t.durationMinute=t.durationSecond=void 0,t.durationYear=31536e6,t.durationQuarter=78894e5,t.durationMonth=2592e6,t.durationWeek=6048e5,t.durationDay=864e5,t.durationHour=36e5,t.durationMinute=6e4,t.durationSecond=1e3},function(e,t,n){"use strict";t.__esModule=!0,t.getClipArray=t.getClippedDatesWithin=t.getClampRangesAround=t.getValidDatesWithin=t.getFloor=t.clampDownDateWithinClip=t.clampUpDateWithinClip=void 0;var r=n(293),o=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e,t,n,r){if(r&&Array.isArray(r)&&r.length>0){if(Number(t)>=Number(r[1]))return r[1];if(Number(t)<=Number(r[0]))return r[0]}if(!n||n.length<=0)return t;var o=t,i=n,l=a(i,e,o);return s(o,l,i,r)},a=function(e,t,n){var r=c(e,t,n),o=[];return!e||e.length<=0?o:o=u(r,o)},s=function(e,t,n,r){var o,a=t,s=l(n,e),c=e,d=0;return(a=u(s,a)).length>0&&a.forEach(function(e){d+=Number(e.to)-Number(e.from)}),o=new Date(Number(c.setTime(Number(c)+d))),Number(o)===Number(c)?c:o=i(c,o,n,r)},l=function(e,t){var n=Number(t),i=e,a=0,s=[];if(!e||e.length<=0)return s;if(Array.isArray(i))for(var l=0;l=v&&nn&&s.push(c)}return s},c=function(e,t,n){var i=+t,a=+n,s=e,l=0,c=[];if(Array.isArray(s))for(var u=0;uNumber(i)&&Number(C)<=Number(a)&&c.push({from:b,to:C}),y=Number(d.repeat.multiplier),b=+b,C=+C,"month"===String(d.repeat.unit).toLowerCase()?(b=new Date(Number(new Date(b).setMonth(new Date(b).getMonth()+y))),C=new Date(Number(new Date(C).setMonth(new Date(C).getMonth()+y)))):"year"===String(d.repeat.unit).toLowerCase()?(b=new Date(Number(new Date(b).setFullYear(new Date(b).getFullYear()+y))),C=new Date(Number(new Date(C).setFullYear(new Date(C).getFullYear()+y)))):(b=new Date(Number(b)+m),C=new Date(Number(C)+m))}else h>i&&p<=a&&c.push(d)}return c},u=function(e,t){var n,r=e,o=t;if(!e||e.length<=0)return o;var i=function(){var e=r[n];o.every(function(t){return!(e.from>=t.from&&e.to<=t.to)&&(e.from<=t.from&&e.to>=t.to?t.entryEnabled=!1:e.from>=t.from&&e.from<=t.to&&e.to>=t.to?(e.from=t.from,t.entryEnabled=!1):e.to>=t.from&&e.to<=t.to&&e.from<=t.from?(e.to=t.to,t.entryEnabled=!1):t.entryEnabled=!0,!0)})&&(e.entryEnabled=!0,o.push(e))};for(n=0;n0){if(Number(t)>=Number(r[1]))return r[1];if(Number(t)<=Number(r[0]))return r[0]}if(!n||n.length<=0)return t;var o=t,i=n,s=a(i,o,e);return h(o,s,i,r)},h=function(e,t,n,r){var o,i=t,a=l(n,e),s=e,c=0;return(i=u(a,i)).length>0&&i.forEach(function(e){c+=Number(e.to)-Number(e.from)}),o=new Date(Number(s.setTime(Number(s)-c))),Number(o)===Number(s)?s:o=d(s,o,n,r)};t.getFloor=function e(t,n,r){if(r&&Array.isArray(r)&&r.length>0){if(Number(t)>=Number(r[1]))return r[1];if(Number(t)<=Number(r[0]))return r[0]}if(!n||n.length<=0)return t;var o,i=t,a=l(n,t),s=[];return 0===a.length?i:(o=(s=u(a,s)).reduce(function(e,t){return e.to>t.to?+new Date(Number(e.to)):+new Date(Number(t.to))},0),Number(o)===Number(i)?o:e(o,n,r))},t.clampUpDateWithinClip=d,t.getClipArray=u,t.getClippedDatesWithin=c,t.getClampRangesAround=l,t.getValidDatesWithin=a,t.clampDownDateWithinClip=i},function(e,t,n){"use strict";t.__esModule=!0,t.Weekdays=t.DatetimeUnits=void 0;var r=n(291),o={Millisecond:{name:"Millisecond",ms:1},Second:{name:"Second",ms:r.durationSecond},Minute:{name:"Minute",ms:r.durationMinute},Hour:{name:"Hour",ms:r.durationHour},Day:{name:"Day",ms:r.durationDay},Week:{name:"Week",ms:r.durationWeek},Month:{name:"Month",ms:r.durationMonth},Quarter:{name:"Quarter",ms:r.durationQuarter},Year:{name:"Year",ms:r.durationYear}};t.Weekdays={Sunday:{name:"Sunday",id:0},Monday:{name:"Monday",id:1},Tuesday:{name:"Tuesday",id:2},Wednesday:{name:"Wednesday",id:3},Thursday:{name:"Thursday",id:4},Friday:{name:"Friday",id:5},Saturday:{name:"Saturday",id:6}},t.DatetimeUnits=o},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcDayObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"day",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t-e-Math.floor(o/i.durationDay)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCDate(1),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCDate()-r.getUTCDate()-Math.floor(l/i.durationDay)}},l=new o.default(s);t.utcDayObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcWeekObj=t.utcSaturday=t.utcFriday=t.utcThursday=t.utcWednesday=t.utcTuesday=t.utcMonday=t.utcSunday=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"week",floor:function(e,t,n){return e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-0)%7),new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t-e-Math.floor(o/i.durationWeek)}},l=function(e,t){return new o.default({name:t,floor:function(t,n,r){return t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),new Date(Number((0,a.getFloor)(new Date(Number(t.setUTCHours(0,0,0,0))),n,r)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCDate(s.getUTCDate()+7*t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t-e-Math.floor(o/i.durationWeek)}})},c=l(0,"week"),u=l(0,"sunday"),d=l(1,"monday"),h=l(2,"tuesday"),p=l(3,"wednesday"),f=l(4,"thursday"),g=l(5,"friday"),m=l(6,"saturday");t.utcSaturday=m,t.utcFriday=g,t.utcThursday=f,t.utcWednesday=p,t.utcTuesday=h,t.utcMonday=d,t.utcSunday=u,t.utcWeekObj=s;var v=c;t.default=v},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.weekObj=t.saturday=t.friday=t.thursday=t.wednesday=t.tuesday=t.monday=t.sunday=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"week",floor:function(e,t,n){return e.setDate(e.getDate()-(e.getDay()+7-0)%7),new Date(Number((0,a.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e-Math.floor(o/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}},l=function(e,t){return new o.default({name:t,floor:function(t,n,r){return t.setDate(t.getDate()-(t.getDay()+7-e)%7),new Date(Number((0,a.getFloor)(new Date(Number(t.setHours(0,0,0,0))),n,r)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setDate(s.getDate()+7*t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e-Math.floor(o/i.durationWeek)-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.durationMinute)/i.durationWeek}})},c=l(0,"week"),u=l(0,"sunday"),d=l(1,"monday"),h=l(2,"tuesday"),p=l(3,"wednesday"),f=l(4,"thursday"),g=l(5,"friday"),m=l(6,"saturday");t.saturday=m,t.friday=g,t.thursday=f,t.wednesday=p,t.tuesday=h,t.monday=d,t.sunday=u,t.weekObj=s;var v=c;t.default=v},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.yearObj=t.default=void 0;var o=r(n(298)),i=n(291),a=n(292),s={name:"year",floor:function(e,t,n){return e.setMonth(0,1),new Date(Number((0,a.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setFullYear(s.getFullYear()+t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t.getFullYear()-e.getFullYear()-Math.floor(o/i.durationYear)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setFullYear(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getFullYear()-r.getFullYear()-Math.floor(l/i.durationYear)}},l=new o.default(s);t.yearObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(290)),a=n(292),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?new i.default({name:"year",floor:function(e,n,r){return e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),new Date(Number((0,a.getFloor)(new Date(Number(e.setHours(0,0,0,0)))),n,"year",r))},offset:function(e,n,r,o){var i=n>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+n*t))),r,"year",o):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setFullYear(l.getFullYear()+n*t))),r,"year",o)))}}):null},t}(i.default);t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcYearObj=t.default=void 0;var o=r(n(300)),i=n(292),a=n(291),s={name:"year",floor:function(e,t,n){return e.setUTCMonth(0,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,a={date:new Date(Number(e))},s=new Date(Number(JSON.parse(JSON.stringify(a)).date));return new Date(Number(o?(0,i.clampDownDateWithinClip)(a.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),n,r):(0,i.clampUpDateWithinClip)(a.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+t))),n,r)))},count:function(e,t,n){var r=(0,i.getValidDatesWithin)(n,e,t),o=0,s=(0,i.getClampRangesAround)(n,t);return(r=(0,i.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t.getUTCFullYear()-e.getUTCFullYear()-Math.floor(o/a.durationYear)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCFullYear(0),r=(0,i.getFloor)(new Date(Number(s)),t,n),(0,i.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCFullYear()-r.getUTCFullYear()-Math.floor(l/a.durationYear)}},l=new o.default(s);t.utcYearObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(290)),a=n(292),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.prototype.every=function(e){var t=e;return isFinite(t=Math.floor(t))&&t>0?new i.default({name:"year",floor:function(e,n){return e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),n)))},offset:function(e,n,r){var o=n>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+n*t))),r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCFullYear(s.getUTCFullYear()+n*t))),r)))}}):null},t}(i.default);t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(225),o=n(303);function i(e,t,n,i,a){(0,r.triggerEvent)("dataLoadRequested",a,{source:o.sourceName,url:e,dataFormat:"json",silent:!!i,config:t,successcallback:n},void 0,o.onDataLoadRequest,o.onDataLoadRequestCancel)}function a(e){this.setChartDataUrl(e,"jsonurl")}var s={extension:function(e){return e&&(e.prototype.setJSONUrl=a),{format:"jsonurl",toJSON:i}},name:"JSONUrl",type:"transcoder",requiresFusionCharts:!0};t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.onDataLoadRequest=function(e,t){var n=e.sender,r=n.__state,i=t.url;n.options.dataSource=t.url,r.dhmXhrObj||(r.dhmXhrObj=new o.default(l,c)),r.dhmXhrObj.get("function"==typeof window.decodeURIComponent?window.decodeURIComponent(i):window.unescape(i),{obj:n,args:t})},t.onDataLoadRequestCancel=function(e,t){var n=e.sender,r=n.__state;(0,i.triggerEvent)("dataLoadRequestCancelled",n,t),r&&r.dhmXhrObj&&r.dhmXhrObj.abort()},t.sourceName=void 0;var o=r(n(304)),i=n(225);function a(e,t){e.sender.jsVars.stallLoad=!1,e.sender.setChartData(t.dataSource,t.dataFormat,t.config,t.successcallback,t.silent)}function s(e,t){(0,i.triggerEvent)("dataLoadCancelled",e.sender,t),t.xmlHttpRequestObject.abort()}function l(e,t,n,r){var o=n.args;o.dataSource=e,o.xmlHttpRequestObject=t,o.source="XmlHttpRequest",o.url=r,(0,i.triggerEvent)("dataLoadRequestCompleted",n.obj,o,void 0,a,s)}function c(e,t,n){var r=n.obj,o=n.args;o.error=e,o.httpStatus=t.xmlhttp&&t.xmlhttp.status?t.xmlhttp.status:-1,o.xmlHttpRequestObject=t,r._addChartDependency("data",{resolve:function(){return{state:1,msg:r.options.dataLoadErrorMessage,msgStyle:{image:{imageHAlign:r.args.dataLoadErrorMessageImageHAlign||r.options.baseChartMessageImageHAlign,imageVAlign:r.args.dataLoadErrorMessageImageVAlign||r.options.baseChartMessageImageVAlign,imageAlpha:r.args.dataLoadErrorMessageImageAlpha||r.options.baseChartMessageImageAlpha,imageScale:r.args.dataLoadErrorMessageImageScale||r.options.baseChartMessageImageScale},message:{color:r.args.dataLoadErrorMessageColor||r.options.baseChartMessageColor,fontFamily:r.args.dataLoadErrorMessageFont||r.options.baseChartMessageFont,fontSize:r.args.dataLoadErrorMessageFontSize||r.options.baseChartMessageFontSize}}}}}),r._setState(),(0,i.triggerEvent)("dataLoadError",r,o)}t.sourceName="XmlHttpRequest"},function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.default=void 0;var r=n(225),o=n(218),i=window,a=parseFloat(i.navigator.appVersion.split("MSIE")[1]),s=!!(a>=5.5&&a<=7),l="file:"===i.location.protocol,c=i.ActiveXObject,u=(!c||!l)&&i.XMLHttpRequest,d={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},h=function(){var e;if(u)return(h=function(){return d.xhr++,new u})();try{e=new c("Msxml2.XMLHTTP"),h=function(){return d.xhr++,new c("Msxml2.XMLHTTP")}}catch(t){try{e=new c("Microsoft.XMLHTTP"),h=function(){return d.xhr++,new c("Microsoft.XMLHTTP")}}catch(n){e=!1}}return e},p=function(){function t(e,t){this.onSuccess=e,this.onError=t,this.open=!1,d.objects++,d.idle++}t.stats=function(e){return e?d[e]:(0,o.extend2)({},d)};var n=t.prototype;return n.transact=function(n,a,c,u){var p,f,g=this,m=g.xmlhttp,v=t.headers,y=g.onError,b=g.onSuccess,C="POST"===n,w=Object.prototype.hasOwnProperty;-1!==a.search(/^(http:\/\/|https:\/\/)/)&&i.location.hostname!==/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(a)[2]?delete v["X-Requested-By"]:!w.call(v,"X-Requested-By")&&(v["X-Requested-By"]="FusionCharts"),(!m||s||o.isFirefox)&&(m=h(),g.xmlhttp=m),m.onreadystatechange=function(){try{4===m.readyState&&(!m.status&&l||m.status>=200&&m.status<300||304===m.status||1223===m.status||0===m.status?(b&&b(m.responseText,g,u,a),d.success++):y&&(y(new Error("XmlHttprequest Error"),g,u,a),d.failure++),d.idle--,g.open=!1)}catch(e){y&&y(e,g,u,a),i.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw e},0),d.failure++}};try{if(m.open(C?"POST":"GET",a,!0),m.overrideMimeType&&m.overrideMimeType("text/plain"),C)if("string"==typeof c)p=c;else{for(f in p=[],c)p.push(f+"="+(c[f]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));p=p.join("&")}else p=null;for(f in v)m.setRequestHeader(f,v[f]);m.send(p),d.requests++,d.idle++,g.open=!0}catch(x){(0,r.raiseError)(e.core,"1110111515A","run","XmlHttprequest Error",x.message)}return m},n.get=function(e,t){return this.transact("GET",e,void 0,t)},n.post=function(e,t,n){return this.transact("POST",e,t,n)},n.abort=function(){var e=this.xmlhttp;return this.open=!1,e&&"function"==typeof e.abort&&e.readyState&&0!==e.readyState&&e.abort()},n.dispose=function(){var e=this;return e.open&&e.abort(),delete e.onError,delete e.onSuccess,delete e.xmlhttp,delete e.open,d.objects--,null},t}();p.headers={"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"};var f=p;t.default=f}).call(this,n(6))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(225),o=n(303);function i(e,t,n,i,a){void 0===e&&(e=""),void 0===t&&(t={}),(0,r.triggerEvent)("dataLoadRequested",a,{source:o.sourceName,url:e,dataFormat:"xml",silent:!!i,config:t,successcallback:n},void 0,o.onDataLoadRequest,o.onDataLoadRequestCancel)}function a(e){this.setChartDataUrl(e,"xmlurl")}function s(){(0,r.raiseWarning)(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "setDataURL()". Replace with "setXMLUrl()".'),this.setXMLUrl.apply(this,arguments)}var l={extension:function(e){return e&&(e.prototype.setXMLUrl=a),e&&(e.prototype.setDataURL=s),{format:"xmlurl",toJSON:i}},name:"XMLUrl",type:"transcoder",requiresFusionCharts:!0};t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218),o=["series","styledefinition"],i={extension:function(e){e.addEventListener("beforedataupdate",function(e,t){t.data=function e(t,n){void 0===n&&(n=!1);var i=typeof t;if("string"===i||"number"===i||"function"===i||"boolean"===i)return t;if(null===t||t===r.UNDEF)return t;if(Array.isArray(t)){for(var a=[],s=0;s=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;if(!n&&S.getState("visible")){for(k.alpha=k.alpha||30,o=0;o0,P=d.config.lineOb,N="";if(!n&&d.getState("visible")){for(_.alpha||(_.alpha=30),l=0;l0&&u.some(function(n){return!(!(o=n).getData("active")||o.data.targetElement!==e)&&(o.show(t),!0)}),e.data(a,t),c):(o=c._getAvailableToolTip("implicit",n),c.disableToolTip(e),e.data(a,t),e.data("__FC_onTooltipMove",s.bind(e,o,c)),e.data("__FC_onTooltipOut",l.bind(e,o)),e.data("__FC_onTooltipOver",(i=e,function(t){c.draw(t,e.data(a),o),o.setData("targetElement",i),c.config.lastActiveToolip=o})),e.on("fc-mousemove",e.data("__FC_onTooltipMove")),e.on("fc-mouseout",e.data("__FC_onTooltipOut")),e.on("fc-mouseover",e.data("__FC_onTooltipOver")),c):(c.disableToolTip(e),c)},t.disableToolTip=function(e){var t=e.data("__FC_onTooltipOut"),n=e.data("__FC_onTooltipMove"),r=e.data("__FC_onTooltipOver");return n&&e.off("fc-mousemove",n),t&&e.off("fc-mouseout",t),r&&e.off("fc-mouseover",r),e.removeData(a),this},t.draw=function(t,n,r,o){var a,s,l=(0,i.getMouseCoordinate)(this.universe,(0,i.getTouchEvent)(t),this.chart),c=r&&!r.disposed?r:this._getAvailableToolTip("explicit",o);return a=l.chartX,s=l.chartY,a+=11,s+=11,e._draw.call(this,a,s,n,c),c},t.drawAt=function(t,n,r,o,i){var a=o&&!o.disposed?o:this._getAvailableToolTip("explicit",i);return e._draw.call(this,t,n,r,a),a},e._draw=function(e,t,n,r){var o=this.config;(0,i.isSimilarObject)(r.previousStyle,o.tooltipStyle)||(r.setStyle(o.tooltipStyle),r.previousStyle=Object.assign({},o.tooltipStyle)),r.show(n),r.update(e,t)},t._getAvailableToolTip=function(e,t){for(var n,r=this.toolTips[e],o=0,i=r.length;o";case""":case""":return'"';case"'":return"'"}});this.text!==e&&(this.text=e,this.element.innerHTML=t),this.setData("active",!0),"visible"!==this.element.style.visibility&&(this.element.style.visibility="visible"),this.element.style["will-change"]="left, top",this.element.style["max-width"]=this.universeBounds.right-this.universeBounds.left-12+"px"},t.update=function(e,t){void 0===e&&(e=this.x),void 0===t&&(t=this.y);var n=this.universeBounds,r=(this.restrictWithinCanvas.bottom?n.bottom:this.universe.clientHeight)-12,a=(this.restrictWithinCanvas.right?n.right:this.universe.clientWidth)-12,s=(this.restrictWithinCanvas.left?n.left:0)+12,l=this.element,c=l.offsetWidth,u=l.offsetHeight,d=l.style;e+c=s?d.left=e-c-12+"px":(d.left=a-c+"px",d.whiteSpace=i):(d.left=n.left+"px",d.whiteSpace=i),d.top=t+u'+t+""},a=function(e,t){return t.hovered?e+1:e},s=function(e){return e.originalPlotColor||e.plotColor||e.color||"#000000"},l=function(e,t){return t.getJSONIndex()-e.getJSONIndex()};function c(e){var t=e.sender.getFromEnv("chart"),n=t.config.tooltipgrayoutcolor,o=t.config.plotcolorintooltip,c=t.getFromEnv("toolTipController"),u=t.getDatasets().sort(l),d=t.getFromEnv("consolidated-tooltip"),h=(0,r.getMouseCoordinate)(e.sender.getFromEnv("chart-container"),e.originalEvent,t),p=h.chartX,f=h.chartY,g=!1,m=u.map(function(e){return e.getPlotInCategoryAt(p,f)}).filter(Boolean),v=m.reduce(a,0),y=m.map(function(e){var t=e.pointObj.config,i=t.finalTooltext||t.toolText,a=s(t);return v>0?!g&&e.hovered?(i='
'+i+"
",g=!0):(a=n,i='
'+i+"
"):i='
'+i+"
",o?'
■ 
'+i:i}),b=[].concat(y).reverse().reduce(i,"");this.isWithinCanvas(p,f)&&b?d?c.draw(e.originalEvent,b,d):t.addToEnv("consolidated-tooltip",c.draw(e.originalEvent,b)):d&&c.hide(d)}function u(e){var t=e.sender.getFromEnv("chart"),n=t.getFromEnv("consolidated-tooltip");n&&t.getFromEnv("toolTipController").hide(n)}function d(e){var t=this.apiInstance,n=t.getDatasets().sort(l),o=t.config.plotcolorintooltip,a=t.getFromEnv("toolTipController"),c=t.getFromEnv("consolidated-tooltip"),u=n.map(function(t){var n=t.components.data;return n[e]&&n[e]}).filter(Boolean),d=u[0]&&{x:u[0].config._Px-u[0]._width,y:u[0].config._Py,width:u[0].config._width},h=u.map(function(e){var t=e.config,n=t.finalTooltext||t.toolText;return o?'
■ 
'+n+"
":'
'+n+"
"}).reduce(i,"");h&&d?c?a.drawAt(d.x,d.y,h,c):t.addToEnv("consolidated-tooltip",a.drawAt(d.x,d.y,h)):c&&a.hide(c)}var h={extension:function(e){e.addEventListener("predraw",function(e){var t,n;if(e.sender.getType&&"chartAPI"===e.sender.getType()&&(n=e.sender,!o[n.getName().toLowerCase()])){var r=(t=e.sender).getChildren("canvas");t.getFromEnv("chartInstance").drawConsolidatedToolTip=d,r&&r.forEach(function(e){if(!t.config.drawTrendRegion||!t.config.showtooltip)return e.removeEventListener("fc-mouseover",c),e.removeEventListener("fc-mousemove",c),e.removeEventListener("fc-mouseout",u),void e.setState("consolidatedTooltipEventListenerAttached",!1);!e.getState("consolidatedTooltipEventListenerAttached")&&t.config.showtooltip&&(e.addEventListener("fc-mouseover",c),e.addEventListener("fc-mousemove",c),e.addEventListener("fc-mouseout",u),e.setState("consolidatedTooltipEventListenerAttached",!0))})}})},name:"ConsolidatedToolTip",type:"extension",requiresFusionCharts:!0};t.default=h},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(315)),i=n(218),a=function(e){e.sender.apiInstance.getChildren("alertManager")&&e.sender.apiInstance.getChildren("alertManager")[0].processRTData(e.data)},s=function(e){if("dataset"===e.sender.getType()){var t,n,r=e.sender,o=r.config,a=o.JSONData,s=r.getFromEnv("chart").getChildren("alertManager");if(!s||!a)return;t=(0,i.pluckNumber)(a&&a.checkforalerts,1),(n=(s=s[0]).config||(s.config={})).datasetMap=n.datasetMap||{},n.datasetMap[o.index]=t}},l=function(e){"chartAPI"===e.sender.getType()&&e.sender.registerFactory("alertManager",function(e){e.getChildren("alertManager")?e.getChildren("alertManager")[0].configure():(0,i.componentFactory)(e.getFromEnv("chart"),o.default,"alertManager",1,[{}])})},c={extension:function(e){e.addEventListener("instantiated",l),e.addEventListener("updateDataReceived",a),e.addEventListener("postConfigure",s)},name:"alertManagerLinker",type:"extension",requiresFusionCharts:!0};t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=n(233),s=function(e){function t(){var t;return(t=e.call(this)||this).pIndex=1,t.linkedItems={chart:{}},t}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"extension"},n.getName=function(){return"AlertManager"},n.configure=function(){var e,t,n,r=this.getFromEnv("dataSource"),o=r&&r.alerts&&r.alerts.alert,i=this.getFromEnv("number-formatter"),a=this.config||(this.config={});if(o&&o.length)for(a.alertArr=o,e=o.length,t=0;t=e){if("1"!==t.occuronce||!t.hasOccurred){switch(t.hasOccurred=!0,t.state="1",r){case"calljs":setTimeout((0,i.pseudoEval)(t.param));break;case"showannotation":o.showAnnotation&&o.showAnnotation(t.param)}o.fireChartInstanceEvent("AlertComplete",{alertValue:e,alertMaxValue:t.maxvalue,alertMinValue:t.minvalue})}}else"showannotation"===r&&"1"===t.state&&o.hideAnnotation&&o.hideAnnotation(t.param),t.state="2"},t}(a.ComponentInterface);t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(317)),i=n(319),a={extension:function(e){e.addEventListener("preconfigure",function(e){var t=e.sender,n=t.getFromEnv("chart");i.allowedCharts[n&&n.getName()]&&("dataset"===t.getType()&&"cartesianStackGroup"!==t.getLinkedParent().getName()?(t.setState("applySkippingOnConf",!0),o.default.dataSkipping({component:t,datasetType:t.getName(),compType:"dataset"})):"cartesianStackGroup"===t.getName()&&(t.setState("applySkippingOnConf",!0),o.default.dataSkipping({component:t,datasetType:t.getName(),compType:"group"})))}),e.addEventListener("preattributeprepared",function(e){var t=e.sender.getFromEnv&&e.sender.getFromEnv("chart");if(i.allowedCharts[t&&t.getName()])if("dataset"===e.sender.getType()){var n=e.sender,r=n.getFromEnv("canvasConfig"),a=n.getFromEnv("chart").isBar?r.canvasHeight:r.canvasWidth;"cartesianStackGroup"!==n.getLinkedParent().getName()&&(n.getState("applySkippingOnConf")?n.setState("applySkippingOnConf",!1):o.default.dataSkipping({component:n,compType:"dataset",datasetType:n.getName(),width:a}))}else if("cartesianStackGroup"===e.sender.getName()){var s=e.sender,l=s.getFromEnv("canvasConfig"),c=s.getFromEnv("chart").isBar?l.canvasHeight:l.canvasWidth,u=Object.keys(s.getChildren())[0];s.getState("applySkippingOnConf")?s.setState("applySkippingOnConf",!1):o.default.dataSkipping({component:s,compType:"group",datasetType:s.getChildren(u)[0].getName(),width:c})}}),e.addEventListener("dataplotdragend",function(e,t){if(e.sender.getType&&"dataset"===e.sender.getType()){var n=e.sender,r=n.getSkippingInfo&&n.getSkippingInfo();r&&r.skippingApplied&&o.default.updateDragMap({component:n,compType:"dataset",evenType:"dataplotdragend",eventArgs:t})}})},name:"DataSkipping",type:"extension",requiresFusionCharts:!0};t.default=a},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(318)),i=n(319),a=n(218),s=[],l=0,c={},u=[];function d(e){return void 0===e&&(e=[]),e.filter(function(e){return!s[e]})}function h(e,t){for(var n=0,r=[],o=1;o=1.5&&o>1&&(c.plotsPerBin=o,c.noOfPlotBins=Math.ceil(n/c.plotsPerBin),!0)}(e)?t.setSkippingInfo&&t.setSkippingInfo():t.setSkippingInfo&&t.setSkippingInfo(function(e){var t,n,r,a,p,f,g,m=i.filterType[e.datasetType],v=e.component,y=v.getSkippingInfo&&v.getSkippingInfo(),b=y&&y.draw.slice(0),C=y&&(y.labelDraw||[]).slice(0),w={},x=[],_=v.getFromEnv("xAxis").getTicksLen();if((!b||!b.length)&&(void 0===(g=l)&&(g=0),b=Array.from(new Array(g),function(e,t){return t})),(!C||!C.length)&&(C=b),u=y&&y.dragHashMap,"cartesianStackGroup"===v.getName()){for(a=c.jsonData.length,t=0;t<_;++t){for(r=0,n=0;n=e;--l)(i=void 0!==r[l]?r[l]:n[l].value)>a&&(a=i,s=l);return o.push(s),o},o=function(e,t,n,r,o){void 0===r&&(r=[]);for(var i,a=n[t].value,s=t,l=n[t].value,c=t,u=t-1;u>=e;--u)(i=void 0!==r[u]?r[u]:n[u].value)>a?(a=i,s=u):i-1?(0,i.computeSliceBounds)(a[3],n.config):f.indexOf(r.getName().toLowerCase())>-1?(0,i.compute3DSliceBounds)(a[3],n.config):(o=(0,i.computePlotBounds)(n,r.getName()),(0,i.xyCalculator)(a[3],o))},xaxis:(0,i.axisMacroParser)(e,"xAxis"),yaxis:(0,i.axisMacroParser)(e,"yAxis"),gaugestartx:o.gaugeStartX,gaugestarty:o.gaugeStartY,gaugeendx:o.gaugeEndX,gaugeendy:o.gaugeEndY,gaugecenterx:o.gaugeCenterX,gaugecentery:o.gaugeCenterY,gaugestartangle:o.gaugeStartAngle,gaugeendangle:o.gaugeEndAngle,gaugeradius:o.gaugeRadius,plotwidth:o.plotWidth,plotsemiwidth:o.plotSemiWidth})),this.addGraphicalElement({el:"group",attr:{name:"upperannotations"},component:this,container:{label:"group",id:"abovePlotGroup",isParent:!0},id:"upperAnnotationGroup",label:"group"}),this.addGraphicalElement({el:"group",attr:{name:"lowerannotations"},component:this,container:{label:"group",id:"belowPlotGroup",isParent:!0},id:"lowerAnnotationGroup",label:"group"})},t}(h.SmartRenderer);t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.getEventData=t.getScaledVal=t.parseEquation=t.solveEquation=t.isMacro=t.trim=t.pluckBoolean=t.DEFAULT_MACRO_SEPARATOR=t.DEFAULT_MACRO_PREFIX=t.UNDERSCORE=t.xyCalculator=t.axisMacroParser=t.arrangeItems=t.cleanMacro=t.compute3DSliceBounds=t.computeSliceBounds=t.computePlotBounds=t.getQuadrant=t.polarToCartesian=t.deg2Rad=void 0;var r=n(218);t.UNDEF=r.UNDEF;var o=2*Math.PI,i=[-o,-3*o/4,-o/2,-o/4,0],a=[o,3*o/4,o/2,o/4,0],s=function(e){return e*e},l=function(e){return e*(Math.PI/180)},c=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r={});var o=t;return n||(o=l(t)),{x:e*Math.cos(o)+(r.x||0),y:e*Math.sin(o)+(r.y||0)}},u=function(e,t,n){return 0===e||0===t?0:e*t/Math.sqrt(s(t)*s(Math.cos(n))+s(e)*s(Math.sin(n)))},d=function(e){var t,n,a,s,l,u,d,h,p,f=e.ringpath,g=[],m=[],v=1/0,y=1/0,b=-1/0,C=-1/0;for(t=(0,r.pluckNumber)(f[2]),n=(0,r.pluckNumber)(f[3]),a=(0,r.pluckNumber)(f[4])%o,s=(0,r.pluckNumber)(f[5])%o,l=(0,r.pluckNumber)(f[0]),u=(0,r.pluckNumber)(f[1]),h=c(t,a,!0,{x:l,y:u}),p=c(t,s,!0,{x:l,y:u}),m.push(h),m.push(p),d=0;d=a&&i[d]<=s&&g.push(d);for(d=0;do/4&&n<3*o/4?r*=-1:r=Math.abs(r),n>o/2&&n=i&&a[h]<=s&&g.push(h);for(h=0;h=t?e.y<=n?0:3:e.y<=n?1:2},t.polarToCartesian=c,t.deg2Rad=l,t.DEFAULT_MACRO_SEPARATOR=".",t.DEFAULT_MACRO_PREFIX="$",t.UNDERSCORE="_"},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]},o={"initial.extension.annotation":function(){return{"polypath.appearing":r,"text.appearing":r,"image.appearing":r,"ellipse.appearing":r,"ringpath.appearing":r,"path.appearing":r,"rect.appearing":r,"*":null}}};t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=Math,n=t.cos,r=t.sin,o=t.abs,i=t.pow,a=t.PI,s=2*a,l="M",c="A",u=i(2,-24);e.define&&e.define([{name:"ringpath",ringpath:function(){return this.path(void 0,e._lastArgIfGroup(arguments))},ca:function(e,t,i,d,h,p,f,g){var m,v,y,b,C,w,x,_,S,M,E,O,A,T,k=p%s-h%s,D=p-h,P=f,N=g;return isNaN(P)&&(P=i),isNaN(N)&&(N=d),this._.ringangle=.5*(h+p),o(D)u&&+(o(D)%s180?1:0,1,e+n*Math.cos(a),t+n*Math.sin(a)]}}}])}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=n(322),s=r(n(327)),l=r(n(328)),c=r(n(339)),u=r(n(340)),d=r(n(341)),h=r(n(342)),p=r(n(343)),f=r(n(236)),g={circle:l.default,arc:l.default,line:c.default,path:c.default,rectangle:u.default,polygon:p.default,image:d.default,text:h.default},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).groups=[],n.items=[],n}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"group"},n.configureAttributes=function(e){var t,n=this,r=n.config;n.rawConfig=e||{},r.id=n.rawConfig.id||n.getId("group"),r.autoScale=(0,i.pluckNumber)(n.rawConfig.autoScale,1),r.scaleText=(0,i.pluckNumber)(n.rawConfig.scaleText,0),r.scaleX=r.origScaleX=(0,i.pluckNumber)(n.rawConfig.xScale)/100,r.scaleY=r.origScaleY=(0,i.pluckNumber)(n.rawConfig.yScale)/100,r.scaleImages=(0,i.pluckNumber)(n.rawConfig.scaleImages,0),r.constrainedScale=(0,i.pluckNumber)(n.rawConfig.constrainedScale,1),r.origH=Number(n.rawConfig.origH),r.origW=Number(n.rawConfig.origW),r.link=n.rawConfig.link,r.color=n.rawConfig.color||"#FF0000",r.alpha=(0,i.pluckNumber)(parseFloat(n.rawConfig.alpha),100),r.showShadow=(0,i.pluckNumber)(n.rawConfig.showShadow,0),r.x=(0,i.pluckNumber)(n.rawConfig.x,n.rawConfig.xPos,0),r.y=(0,i.pluckNumber)(n.rawConfig.y,n.rawConfig.yPos,0),r.font=(0,i.pluck)(n.rawConfig.font,"Verdana, sans"),r.fontSize=(0,i.pluckFontSize)(n.rawConfig.fontSize,10),r.textAlign=(0,i.pluck)(n.rawConfig.textAlign),r.textVAlign=(0,i.pluck)(n.rawConfig.textVAlign),r.rotateText=(0,i.pluck)(n.rawConfig.rotateText),r.wrapText=(0,i.pluck)(n.rawConfig.wrapText),r.grpXShift=(0,i.pluckNumber)(n.rawConfig.grpXShift,0),r.grpYShift=(0,i.pluckNumber)(n.rawConfig.grpYShift,0),r.xShift=(0,i.pluckNumber)(n.rawConfig.xShift,0),r.yShift=(0,i.pluckNumber)(n.rawConfig.yShift,0),r.toolText=n.rawConfig.toolText,r.isVisible=(0,a.pluckBoolean)(n.rawConfig.isVisible,!0),r.elementType="group",r.containerConfiguration={id:n.rawConfig.showBelow?"lowerAnnotationGroup":"upperAnnotationGroup",label:"group",isParent:!0},r.animationLabel="group",n.rawConfig.customComponent instanceof f.default?r.customComponent=r.rawConfig.customComponent:delete r.customComponent,n.rawConfig.itemConfigs.forEach(function(e){t=e.type&&e.type.toLowerCase(),g[t]&&n.attachChild(g[t],"item",e.id).configure(e)}),n.items=n.getChildren("item")||[]},n.updateScale=function(){var e,t,n,r,o,i=this.config,a=this.getFromEnv("chart"),s=+a.getFromEnv("chartHeight"),l=+a.getFromEnv("chartWidth"),c=i.autoScale,u=i.constrainedScale;this._setConfig("origW",Number(i.origW)||l),this._setConfig("origH",Number(i.origH)||s),c?(t=l/i.origW*(Number(i.origScaleX)||1),n=s/i.origH*(Number(i.origScaleY)||1)):t=n=1,e=Math.min(t,n),this._setConfig("scaleValue",e),(c>0||isNaN(i.scaleX))&&(r=u?e:t,this._setConfig("scaleX",r)),(c>0||isNaN(i.scaleY))&&(o=u?e:n,this._setConfig("scaleY",o)),i.scaleFont=i.scaleText?Math.min(i.scaleX,i.scaleY):1,i.scaleImageX=i.scaleImages?i.scaleX:1,i.scaleImageY=i.scaleImages?i.scaleY:1,i.scaleInfo={scaleX:i.scaleX,scaleY:i.scaleY,scaleValue:i.scaleValue}},n.updateAttr=function(){var e,t,n,r=this.config,o=r.calculatedAttrs;for(e in o)o[e]&&(r[e]=o[e]);t=this.getScaledVal(r.grpXShift)+r.xShift,n=this.getScaledVal(r.grpYShift)+r.yShift,this._setConfig("attr",{transform:"T"+t+","+n})},n.retrieveItem=function(e){var t,n;for(t=0,n=this.items.length;t0||e.innerYRadius>0}(this.config)?this.config.elementType="ringpath":this.config.elementType="ellipse"},n.updateAttr=function(){var e,t=this.config,n=t.calculatedAttrs,r=this.getFromEnv("chart"),o=+r.getFromEnv("chartHeight"),a=+r.getFromEnv("chartWidth"),l=this.getScaledVal(t.xRadius),c=this.getScaledVal(t.yRadius),u=this.getScaledVal(t.innerRadius),d=this.getScaledVal(t.innerYRadius);switch((0,i.pluck)(t.radius)||(t.radius=at.radius&&(u+=t.radius,t.radius=u-t.radius,u-=t.radius),l=c=t.radius,d=u),t.elementType){case"ringpath":e={ringpath:[(0,i.pluckNumber)(n.x,this.getScaledVal(t.x,!0)),(0,i.pluckNumber)(n.y,this.getScaledVal(t.y,!1)),l,u,s(360-t.endAngle),s(360-t.startAngle),c,d]};break;default:e={cx:(0,i.pluckNumber)(n.x,this.getScaledVal(t.x,!0)),cy:(0,i.pluckNumber)(n.y,this.getScaledVal(t.y,!1))}}this._setConfig("attr",e)},n._getAnnotationAttrs=function(){var e,t=this.config,n=this.config.attr||{},r=t.x,o=t.y,i=this.getScaledVal(t.xRadius),a=this.getScaledVal(t.yRadius);switch(t.xRadius||(i=0),t.yRadius||(a=0),n.fill=t.color,n.stroke=t.borderColor,n["stroke-width"]=t.borderThickness,n["stroke-dasharray"]=t.dashArrayStr,this.config.elementType){case"ringpath":e=[this.getScaledVal(r,!0),this.getScaledVal(o,!1),i,this.getScaledVal(t.innerRadius),s(360-t.endAngle),s(360-t.startAngle),a,this.getScaledVal(t.innerYRadius)],n.ringpath=n.ringpath||e;break;default:n.rx=i,n.ry=a,n.cx="undefined"==typeof n.cx?this.getScaledVal(r,!0):n.cx,n.cy="undefined"==typeof n.cy?this.getScaledVal(o,!1):n.cy}return n},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(330)),a=r(n(327)),s=n(218),l=n(322),c=r(n(236)),u=function(e){return void 0===e?void 0:1},d=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(e){var t,n,r=this,o=r.config,a=r.getFromEnv("chart"),d=r.getLinkedParent();r.groupConfig={},r.rawConfig={},null!==d&&(r.groupConfig.x=d._getConfig("x"),r.groupConfig.y=d._getConfig("y"),r.groupConfig.grpXShift=d._getConfig("grpXShift"),r.groupConfig.grpYShift=d._getConfig("grpYShift"),r.groupConfig.color=d._getConfig("color"),r.groupConfig.alpha=d._getConfig("alpha"),r.groupConfig.font=d._getConfig("font"),r.groupConfig.fontSize=d._getConfig("fontSize"),r.groupConfig.textAlign=d._getConfig("textAlign"),r.groupConfig.textVAlign=d._getConfig("textVAlign"),r.groupConfig.rotateText=d._getConfig("rotateText"),r.groupConfig.wrapText=d._getConfig("wrapText"),r.groupConfig.toolText=d._getConfig("toolText"),r.groupConfig.scaleX=d._getConfig("scaleX"),r.groupConfig.scaleY=d._getConfig("scaleY"),r.groupConfig.scaleImageX=d._getConfig("scaleImageX"),r.groupConfig.scaleImageY=d._getConfig("scaleImageY"),r.groupConfig.link=d._getConfig("link")),r.rawConfig=(0,i.default)(r.rawConfig,e)||{},o.type=r.rawConfig.type,o.color=r._getFillColor(r.rawConfig,this.groupConfig),o.link=(0,s.pluck)(r.rawConfig.link,r.groupConfig.link),o.borderThickness=(0,s.pluckNumber)(parseFloat(r.rawConfig.borderThickness),parseFloat(r.rawConfig.thickness),2),o.showBorder=(0,s.pluckNumber)(r.rawConfig.showBorder,parseFloat(r.rawConfig.borderThickness),parseFloat(r.rawConfig.thickness),u(r.rawConfig.borderColor),u(r.rawConfig.borderAlpha),0),o.borderColor=r._getBorderColor(r.rawConfig),o.dashed=(0,s.pluckNumber)(r.rawConfig.dashed,0),o.dashLen=(0,s.pluckNumber)(r.rawConfig.dashLen,5),o.dashGap=(0,s.pluckNumber)(parseFloat(r.rawConfig.dashGap),3),o.dashArrayStr=o.dashed?(0,s.getDashStyle)(o.dashLen,o.dashGap):"none",o.x=(0,s.pluckNumber)(r.rawConfig.x,r.rawConfig.xPos,0),o.y=(0,s.pluckNumber)(r.rawConfig.y,r.rawConfig.yPos,0),o.tox=(0,s.pluckNumber)(r.rawConfig.toX,o.x,0),o.toy=(0,s.pluckNumber)(r.rawConfig.toY,o.y,0),o.toy>=0&&o.y>=0&&o.toy=0&&o.x>=0&&o.tox="0"||"-"===e||"."===e?0:e<="z"&&e>="a"||e<="Z"&&e>="A"?1:2}var c=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"path"},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.rawConfig;this.config.pathStr=(0,i.pluck)(n.path),this.config.x=(0,i.pluckNumber)(n.x,0),this.config.y=(0,i.pluckNumber)(n.y,0),this.config.tox=(0,i.pluckNumber)(n.toX,this.config.x),this.config.toy=(0,i.pluckNumber)(n.toY,this.config.y),this.config.elementType="path"},n.getScaledPath=function(){var e,t,n,r,o,s=this.config.pathStr,c=[],u=i.BLANKSTRING;for(o=s&&s.length,n=0;n=0&&r>=0&&a=0&&n>=0&&o-1},t.hasRegressionLine=function(e,t){return t.showregressionline||e.showregressionline||t.showpolynomialregressionline||e.showpolynomialregressionline},t.isValidDataset=void 0;var r=["scatter","bubble","errorScatter","selectScatter"];t.isValidDataset=function(e){return function(e){return"dataset"===e.getType()}(e)&&r.indexOf(e.getName())>=0}},function(e,t,n){"use strict";function r(){var e,t=this.getFromEnv("chart").getChildren("canvas")[0],n=0,r=[],o=[];for(r.push(t.config.canvasLeft),r.push(t.config.canvasTop),r.push(0),r.push(t.config.canvasHeight),e=r.length;nn&&e.y>r&&e.widthn.width+n.x&&(t.x=n.width+n.x),t.y>n.height+n.y&&(t.y=n.height+n.y);var o,i=t.x-e.x,a=e.y-t.y;return i>0&&a>0?o=r?"ne-resize":"e-resize":i<0&&a>0?o=r?"nw-resize":"w-resize":i<0&&a<0?o=r?"sw-resize":"w-resize":i>0&&a<0&&(o=r?"se-resize":"e-resize"),{x:l(e.x,t.x),y:l(e.y,t.y),width:i=c(i),height:a=c(a),cursor:o}}(this.dragBoxConfig.startPos,this.dragBoxConfig.currentPos,r,this.getFromEnv("chart").isXY),t.scaleX||(e.x=r.x,e.width=r.width),t.scaleY||(e.y=r.y,e.height=r.height),n.attr(e),n.show()},n.onDragEnd=function(e){var t,n,r,o,i=this.config,a=this.getFromEnv("canvas").getGraphicalElement("canvasElement").attrs,s=this.getGraphicalElement("box")||{},l=s.attrs;l&&i.dragmove&&(i.dragmove=!1,s.hide(),i.startPosX=t=(l.x-a.x)/a.width,i.endPosX=n=(l.x+l.width-a.x)/a.width,i.startPosY=r=(l.y-a.y)/a.height,i.endPosY=o=(l.y+l.height-a.y)/a.height,n-t<.01||o-r<.01||this.zoomTo(void 0,void 0,e))},n.zoomTo=function(e,t,n){var r,o,i,a,s,l,c,u,d=this,h=d.config,p=!1,f={},g=h.catZoomLimit-1;d.getFromEnv("axesObArr").forEach(function(m){var v=m.axis,y=v.getFromEnv("chart"),b=y.getChildren("scrollBar")&&y.getChildren("scrollBar")[0],C=v.getVisibleConfig(),w=m.isY?C.maxValue:C.minValue,x=C.maxValue-C.minValue;m.isY?(a=r=void 0===e?w-x*h.endPosY:e,l=o=void 0===t?w-h.startPosY*x:t):(s=r=void 0===e?w+h.startPosX*x:e,c=o=void 0===t?w+x*h.endPosX:t,f=d.constructor._getZoomInfo(s,c,v)),g&&!v.config.isVertical&&Math.round(o-r)1||o-r>1)&&(h.dragendFn&&"function"==typeof h.dragendFn&&h.dragendFn(n,r,o),u=v.setVisibleConfig(r,o),y.setScrollBarDimension&&y.setScrollBarDimension(),b&&!b.getState("removed")&&b.asyncDraw(),p=p||u,m.stack.push(C),i=m.stack.length+1)}),p&&d._raiseZoomEvents("zoomin","zoomedin",Object.assign(f,{level:i,startX:s,endX:c,startY:a,endY:l},{originalEvent:n&&n.originalEvent}))},n.onDrag=function(e){var t=this.config,n=this.getCoordinates(e.originalEvent);t.dragmove=!0,this.getFromEnv("animationManager").setAnimationState("drag"),t.dragmoveFn&&"function"==typeof t.dragmoveFn&&t.dragmoveFn(e),this.dragBoxConfig.currentPos=n,this.drawBox()},n.dragStart=function(e){var t=this.config,n=this.getCoordinates(e.originalEvent);t.dragstartFn&&"function"==typeof t.dragstartFn&&t.dragstartFn(e),this.dragBoxConfig={startPos:n,currentPos:n}},n.enable=function(){!0!==this.config.enabled&&(this.config.enabled=!0,this.config.state="pressed",this.fireEvent("dragzoomenabled"),this.setControl())},n.disable=function(){!1!==this.config.enabled&&(this.config.enabled=!1,this.config.state="activated",this.fireEvent("dragzoomdisabled"),this.setControl())},n.dependancyFn=function(e){"pinenabled"===e.type||"panenabled"===e.type?this.disable():"pindisabled"!==e.type&&"pandisabled"!==e.type||this.enable()},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(355),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.configure=function(){var e=this.config={},t=this.getFromEnv("inputOptions")||{};Object.assign(e,t[this.getName()])},n._checkStackLen=function(){var e=this.getFromEnv("axesObArr"),t=0;return e&&e.forEach(function(e){t+=e.stack.length}),t},t._getZoomInfo=function(e,t,n){var r={startIndex:Math.ceil(e),endIndex:Math.floor(t)};return n.getLabel&&(r.startLabel=n.getLabel(r.startIndex).label,r.endLabel=n.getLabel(r.endIndex).label),r},n._raiseZoomEvents=function(e,t,n,r){var o=this.getFromEnv("chart");e&&this.fireEvent(e),t&&o.fireChartInstanceEvent(t,n,r),t&&o.fireChartInstanceEvent("zoomed",n,r)},n.getType=function(){return"canvasInput"},n.enable=function(e){!0!==this.config.enabled&&(this.config.enabled=!0,e&&this.fireEvent(e),this.setControl())},n.disable=function(e){!1!==this.config.enabled&&(this.config.enabled=!1,e&&this.fireEvent(e),this.setControl())},n.toggle=function(e){this.isEnabled()?this.disable(e):this.enable(e)},n.isEnabled=function(){return this.config.enabled},n.setControl=function(){var e=this.getLinkedItem("button");e&&e.setCurrentState(this.isEnabled()?this.config.state:"disabled")},n.createButton=function(e){var t,n=this.getLinkedParent().getFromEnv("chart");for(var r in(t=n.getFromEnv("toolbar").attachChild(a.Tool,"tool",this.getId())).configure(Object.assign({},n.getFromEnv("tool-config"),{name:e.icon,tooltext:e.tooltext})),e.handlers)e.handlers.hasOwnProperty(r)&&t.addEventListener("fc-"+r,e.handlers[r]);return t.setLinkedItem("input",this),t},t}(i.ComponentInterface);t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0;var o=n(356);t.ScrollBar=o.ScrollBar,t.Checkbox=o.Checkbox,t.Hamburger=o.Hamburger,t.Label=o.Label,t.MenuItemContainer=o.MenuItemContainer,t.Tool=o.Tool;var i=r(n(370));t.ToolBar=i.default},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0;var o=r(n(357));t.ScrollBar=o.default;var i=r(n(364));t.Checkbox=i.default;var a=r(n(365));t.Hamburger=a.default;var s=r(n(368));t.Label=s.default;var l=r(n(369));t.Separator=l.default;var c=r(n(366));t.MenuItemContainer=c.default;var u=r(n(359));t.Tool=u.default},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=r(n(358)),s=r(n(359)),l=r(n(361)),c=r(n(362)),u=r(n(363)),d=n(360),h=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.scale=1},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,r=this.getFromEnv("chart-attrib");n.conf={},n.isOpposite=t&&!t.isHorizontal?(0,a.default)(r.scrollposition,"right"):(0,a.default)(r.scrollposition,"top"),n.color=r.scrollcolor&&(0,i.convertColor)(r.scrollcolor),n.padding=(0,i.pluckNumber)(r.scrollpadding,0),n.height=(0,i.pluckNumber)(r.scrollheight,12),n.width=(0,i.pluckNumber)(r.scrollwidth,12),n.displayFlat=(0,i.pluckNumber)(r.flatscrollbars,0),n.scrollBar3DLighting=(0,i.pluckNumber)(r.scrollbar3dlighting,1),n.startPercent=Math.min(1,Math.max(0,parseFloat(r.scrolltoend)||0)),n.showButtons=!!(0,i.pluckNumber)(r.scrollshowbuttons,1),n.buttonPadding=(0,i.pluckNumber)(r.scrollbtnpadding,0),n.style=t.style,n.drawStripes=t.drawStripes,n.restrictScrollAnchor=(0,i.pluckNumber)(t.restrictScrollAnchor,1),this.setConfiguaration(t),n.evt={tooltext:void 0,click:i.stubFN,hover:[i.stubFN,i.stubFN]},this.createScrollItems()},n.createScrollItems=function(){var e=this.config,t=e.style||{},n=this.getChildren("scrollTrack")&&this.getChildren("scrollTrack")[0],r=this.getChildren("scrollAnchor")&&this.getChildren("scrollAnchor")[0],o=this.getChildren("scrollButtons")&&this.getChildren("scrollButtons")[0],i=this.getChildren("scrollButtons")&&this.getChildren("scrollButtons")[0];n||((n=this.attachChild(l.default,"scrollTrack")).configure({style:{track:t.track},color:e.color,displayFlat:e.displayFlat,isHorizontal:e.isHorizontal}),n.attachEventHandlers()),r||((r=this.attachChild(c.default,"scrollAnchor")).configure({style:{scroller:t.scroller,grip:t.grip},drawStripes:e.drawStripes,color:e.color,displayFlat:e.displayFlat,isHorizontal:e.isHorizontal}),r.attachEventHandlers()),!o&&e.showButtons&&((o=this.attachChild(u.default,"scrollStartButton")).configure({type:"start",color:e.color,style:{button:t.button,arrow:t.arrow}}),o.attachEventHandlers()),!i&&e.showButtons&&((i=this.attachChild(u.default,"scrollEndButton")).configure({type:"end",color:e.color,style:{button:t.button,arrow:t.arrow}}),i.attachEventHandlers())},n.getName=function(){return"scrollbar"},n.getType=function(){return"scrollbar"},n.setConfiguaration=function(e){var t=this.config;t.color||(t.color="#"+this.getFromEnv("chart").getFromEnv("color-manager").getColor("altHGridColor")),(0,d.mergeConf)(e,t)},n.getLogicalSpace=function(){var t=this.config,n=t.conf,r={};return(0,d.mergeConf)(t,r),(0,d.mergeConf)(r,n),e.prototype.getLogicalSpace.call(this)},n.setDimension=function(t){e.prototype.setDimension.call(this,t);var n=this.getLinkedParent(),r=n.getPosition&&n.getPosition()||{},o=this.getChildren("scrollTrack")[0].config;o.transLateX=r.x||0,o.transLateY=r.y||0},n.draw=function(){var e=this.config,t={};e.conf.isHorizontal?delete t.width:delete t.height,(0,d.mergeConf)(t,e,!0),this.addGraphicalElement({el:"group",attr:{name:"scrollContainer"},component:this,container:{id:"scrollbarContainer",label:"scrollbar",isParent:!0},label:"scrollbarGroup",id:"scrollbarGroup"})},n.attachEventHandlers=function(e){var t=this.config.evt;return e&&(e.scroll&&"function"==typeof e.scroll&&(t.scroll=e.scroll),e.scrollStart&&"function"==typeof e.scrollStart&&(t.scrollStart=e.scrollStart),e.scrollEnd&&"function"==typeof e.scrollEnd&&(t.scrollEnd=e.scrollEnd)),this},t}(s.default);h.registerSymbol=void 0,h._setConfiguaration=i.stubFN;var p=h;t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t){return String(e).toLowerCase()===String(t).toLowerCase()}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(218),s=n(360),l=function(e){function t(t){var n;return(n=e.call(this,t)||this)._listeners={},n}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"button"},n.getType=function(){return"tool"},n.__setDefaultConfig=function(){var e=this.config;e.scale=1.15,e.width=a.touchEnabled?20:15,e.height=a.touchEnabled?20:15,e.radius=a.touchEnabled?4:2,e.spacing=2.5,e.marginTop=2.5,e.marginLeft=2.5,e.marginRight=2.5,e.marginBottom=2.5,e.fill="ffffff",e.fillAlpha="cccccc",e.symbolFill="ffffff",e.stroke="bbbbbb",e.symbolStroke="9a9a9a",e.strokeWidth=1,e.symbolStrokeWidth=1,e.symbolPadding=5,e.symbolHPadding=5,e.symbolVPadding=5,e.fillAlpha=100,e.stateStyle={},e.text=a.BLANKSTRING,e.marginTop=e.marginLeft=e.marginRight=e.marginBottom=2.5,e.labelFontSize=12},n.configureAttributes=function(e){void 0===e&&(e={});var t,n,r,o=this.config,i=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];(n===a.UNDEF||!/tooltext/.test(t)&&""===n)&&delete e[t]}return e}(e);Object.assign(o,i),o.symbolName=o.name,this.setState("visible",!0!==o.isHidden),o.marginTop=(0,a.pluckNumber)(i.marginTop,i.spacing,o.marginTop),o.marginLeft=(0,a.pluckNumber)(i.marginLeft,i.spacing,o.marginLeft),o.marginRight=(0,a.pluckNumber)(i.marginRight,i.spacing,o.marginRight),o.marginBottom=(0,a.pluckNumber)(i.marginBottom,i.spacing,o.marginBottom),o.fill=(0,a.pluck)(i.fill,o.fill),o.fillAlpha=(0,a.pluckNumber)(i.fillAlpha,o.fillAlpha),o.labelFill=(0,a.pluck)(i.labelFill,o.labelFill),o.symbolFill=(0,a.pluck)(i.symbolFill,o.symbolFill),o.hoverFill=(0,a.pluck)(i.hoverFill,o.hoverFill),o.stroke=(0,a.pluck)(i.stroke,o.stroke),o.symbolStroke=(0,a.pluck)(i.symbolStroke,o.symbolStroke),o.strokeWidth=(0,a.pluckNumber)(i.strokeWidth,o.strokeWidth),o.symbolStrokeWidth=(0,a.pluckNumber)(i.symbolStrokeWidth,o.symbolStrokeWidth),t=o.symbolPadding=(0,a.pluckNumber)(i.symbolPadding,o.symbolPadding),o.symbolHPadding=(0,a.pluckNumber)(i.symbolHPadding,t),o.symbolVPadding=(0,a.pluckNumber)(i.symbolVPadding,t),o.hAlign=(0,a.pluck)(i.hAlign,"center").toLowerCase(),o.vAlign=(0,a.pluck)(i.vAlign,"middle").toLowerCase(),o.containerInfo=i.containerInfo||{id:"group",label:"group",isParent:!0},n=i.x,r=i.y,void 0===n||void 0===r?o.spaceNotHardCoded=!0:(o.x=n,o.y=r,o.spaceNotHardCoded=!1)},n.setDimension=function(e){void 0===e&&(e={});var t=this.config;e.x!==a.UNDEF&&(t.x=e.x),e.y!==a.UNDEF&&(t.y=e.y),e.width!==a.UNDEF&&(t.width=e.width),e.height!==a.UNDEF&&(t.height=e.height)},n.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},n.getLogicalSpace=function(){var e=this.config,t=e.width,n=e.height,r=e.marginTop,o=e.marginLeft,i=e.marginRight,a=e.marginBottom,s=e.scale;return t*=s,n*=s,(this.config.skipGraphics||this.getState("removed"))&&(t=n=a=o=i=r=0),{width:t,height:n,marginTop:r,marginLeft:o,marginRight:i,marginBottom:a}},n.setCurrentState=function(e){this.config.state=e,this.asyncDraw()},n.getCurrentState=function(){return this.config.state},n.draw=function(){var e,t,n,r=this.config,o=r,i=r.text,l=this.getFromEnv("tool-config");r.skipGraphics||(t={width:r.width*r.scale,height:r.height*r.scale,r:r.radius*r.scale,verticalPadding:r.symbolVPadding*r.scale,horizontalPadding:r.symbolHPadding},e=(0,a.extend2)({},r.stateStyle[r.state]||s.preConfig[r.state]||{}),"activated"!==r.state&&"disabled"!==r.state&&"pressed"!==r.state||(e.config.normal.fill=(0,a.convertColor)((0,a.pluck)(l.fill,e.config.normal.fill)),e.config.normal["symbol-stroke"]=(0,a.convertColor)((0,a.pluck)(l.symbolStroke,e.config.normal["symbol-stroke"])),e.config.normal.symbolFill=(0,a.convertColor)((0,a.pluck)(l.symbolFill,e.config.normal.symbolFill)),e.config.normal.stroke=(0,a.convertColor)((0,a.pluck)(l.stroke,e.config.normal.stroke)),e.config.normal.symbolStroke=(0,a.convertColor)((0,a.pluck)(l.symbolStroke,e.config.normal.symbolStroke)),e.config.hover.fill=(0,a.convertColor)((0,a.pluck)(l.hoverFill,e.config.hover.fill))),(n=(0,a.extend2)({button:[r.x,r.y,i,r.symbolName,t,r.labelFontSize,r.labelFontFamily],"button-label":i,"button-padding":[r.symbolHPadding,r.symbolVPadding*r.scale],"button-repaint":[o.x,o.y,r.width*r.scale,r.height*r.scale,r.radius*r.scale],fill:(0,a.convertColor)(r.fill),labelFill:(0,a.convertColor)(r.labelFill),symbolFill:(0,a.convertColor)(r.symbolFill),hoverFill:r.hoverFill,stroke:(0,a.convertColor)(r.stroke),"symbol-stroke":(0,a.convertColor)(r.symbolStroke||r.stroke),"stroke-width":r.strokeWidth,"symbol-stroke-width":(0,a.pluckNumber)(r.symbolStrokeWidth,r.strokeWidth)},e)).fill=(0,a.convertColor)((0,a.pluck)(r.fill,e.fill)),!r.isHidden&&this.addGraphicalElement({el:"button",attr:n,css:r.btnTextStyle,component:this,container:r.containerInfo,label:"button",id:"button",tooltext:r.tooltext}))},n.hide=function(){this.config.isHidden=!0,this.setState("visible",!1),this.asyncDraw()},n.show=function(){this.config.isHidden=!1,this.setState("visible",!0),this.asyncDraw()},t}(i.SmartRenderer);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.getEventHandlersFor=function(e,t){var n=function(){o.default.listen(t,"mousemove",function(e){e.originalEvent.stopPropagation()})};switch(e){case"click":return function(e){o.default.listen(t,"click",function(t){t.target&&t.target.parentNode&&e.call(t.target)}),n()};case"hover":return function(e,r){o.default.listen(t,"pointerhover",function(t){t.target&&t.target.parentNode&&("start"===t.state?e:r).call(t.target)}),n()}}},t.mergeConf=function(e,t,n){var r,o;for(r in e)if((o=e[r])!==a.UNDEF&&null!==o)if(n){if(t[r])continue;t[r]=o}else t[r]=o},t.bottomPath=function(e,t,n,r,o){var i=e,a=t,s=r/2,l=Math.round(o/4+1),c=a+l+3;return["M",i-s,c,"L",i+s,c]},t.RSymbolFns=t.defaultTextStyle=t.SymbolStore=t.preConfig=t.DEFAULT_TIMEOUT=t.CLICK=t.HOVER=void 0;var o=r(n(220)),i=n(226),a=n(218);t.preConfig={activated:{config:{hover:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#aaaaaa","symbol-stroke":"#aaaaaa",cursor:"pointer"},normal:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff",stroke:"#c2c2c2","symbol-stroke":"#c2c2c2","stroke-width":1,cursor:"pointer"},disable:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"pointer"},pressed:{fill:"#efefef",labelFill:"#efefef",symbolFill:"#efefef",hoverFill:"#efefef","fill-symbol":"#efefef","stroke-width":1,stroke:"#c2c2c2","symbol-stroke":"#c2c2c2",cursor:"pointer"}},"button-disabled":!1,fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff",stroke:"#c2c2c2","symbol-stroke":"#c2c2c2","stroke-opacity":1,cursor:"pointer"},disabled:{config:{hover:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3",cursor:"default"},normal:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff",stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-width":1,cursor:"default"},disable:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"default"},pressed:{fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","fill-symbol":"#ffffff","stroke-width":1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3",cursor:"default"}},fill:"#ffffff",labelFill:"#ffffff",symbolFill:"#ffffff",hoverFill:"#ffffff","button-disabled":!1,stroke:"#e3e3e3","symbol-stroke":"#e3e3e3","stroke-opacity":1,cursor:"default"},pressed:{config:{hover:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},normal:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"},pressed:{fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}},fill:"#dcdcdc",labelFill:"#dcdcdc",symbolFill:"#ffffff",hoverFill:"#dcdcdc","fill-symbol":"#ffffff","stroke-width":1,stroke:"#b7b7b7","symbol-stroke":"#b7b7b7",cursor:"pointer"}},t.CLICK="click",t.HOVER="hover",t.DEFAULT_TIMEOUT=300;var s=(0,i.getDep)("redraphael","plugin"),l={CB_NOT_CHECKED:function(e,t,n){return["M",e-n,t-n]},CB_CHECKED:function(e,t,n){var r=n/4;return["M",e-3*r,t,"L",e-r,t+n,e+n,t-n]}},c=(s.addSymbol("Internal_CB",l.CB_NOT_CHECKED),{register:function(){var e,t,n,r;if(1===arguments.length){if(null===(n=arguments[0])&&n===a.UNDEF||"object"!=typeof n)return;r=n}else{if(!(arguments.length>1))return;if(t=arguments[1],"string"!=typeof(e=arguments[0])||"function"!=typeof t)return;(r={})[e]=t}for(e in r)t=r[e],{}.hasOwnProperty.call(r,e)&&s.addSymbol(e,t)}});t.defaultTextStyle={fill:"#555555",labelFill:"#555555",symbolFill:"#555555",hoverFill:"#555555",fontFamily:"Verdana,sans",fontSize:"12px",fontStyle:"normal",fontWeight:"normal",lineHeight:"14.399999999999999px"},t.SymbolStore=c,t.RSymbolFns=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(359)),a=n(226),s=n(230),l=n(218),c=(0,a.getDep)("redraphael","plugin"),u=Math.max,d=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(e){void 0===e&&(e={}),this.config.style={track:Object.assign({},{fill:e.displayFlat&&e.color||[90*e.isHorizontal,c.tintshade(e.color,.15).rgba,e.color].join("-"),stroke:c.tintshade(e.color,-.75).rgba},e.style.track)}},n.attachEventHandlers=function(){var e,t,n,r,o,i=this,a=i.config,l=i.getLinkedParent(),c=l.config,u=function(){c.scrollPosition>1?(c.scrollPosition=1,t=!1):(c.scrollPosition<0||isNaN(c.scrollPosition))&&(c.scrollPosition=0,t=!1),r.asyncDraw(),"function"==typeof c.evt.scroll&&c.evt.scroll(c.scrollPosition)},d=function e(){c.scrollPosition+=.01,n>=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorRight",e,s.priorityList.draw))},h=function e(){c.scrollPosition-=.01,n<=c.scrollPosition&&t&&(u(),i.addJob("dragScrollAnchorLeft",e,s.priorityList.draw))};i.addEventListener("fc-mousedown",i._evtHandlers.mousedown||(i._evtHandlers.mousedown=function(u){r=l.getChildren("scrollAnchor")[0],o=r.config,t=!0,e=c.isHorizontal?u.originalEvent.layerX-(o._nodeDimensions.x+a.transLateX+o._nodeDimensions.width/2):u.originalEvent.layerY-(o._nodeDimensions.y+a.transLateY+o._nodeDimensions.height/2),(n=e/o.trackLength+c.scrollPosition)>=c.scrollPosition?i.addJob("dragScrollAnchorRight",d,s.priorityList.draw):i.addJob("dragScrollAnchorLeft",h,s.priorityList.draw)})),i.addEventListener("fc-mouseup",i._evtHandlers.mouseup||(i._evtHandlers.mouseup=function(){t=!1}))},n.draw=function(){var e=this.config,t=this.getLinkedParent().config,n=(0,l.crispBound)(t.x+.5,t.y+t.padding+.5,t.width-1,t.height-1,t.strokeWidth);this.addGraphicalElement({el:"rect",attr:{x:n.x,y:n.y,width:u(n.width,0),height:u(n.height,0),r:t.roundEdges?2:0,opacity:e.style.track.opacity},css:e.style.track,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarTrack",id:"scrollbarTrack"})},t}(i.default);t.default=d},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(359)),a=n(218),s=(0,n(226).getDep)("redraphael","plugin"),l=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.drawStripes=(0,a.pluckNumber)(e.drawStripes,0),t._nodeDimensions={},t.style={scroller:Object.assign({},{fill:e.displayFlat&&s.tintshade(e.color,-.6).rgba||[270*e.isHorizontal,s.tintshade(e.color,.3).rgba+":40",s.tintshade(e.color,-.7).rgba].join("-"),stroke:s.tintshade(e.color,-.6).rgba},e.style.scroller),grip:Object.assign({},{stroke:"#5F5F5F","stroke-linecap":"round","stroke-width":2},e.style.grip)}},n.attachEventHandlers=function(){var e,t,n,r=this,o=this.getLinkedParent().config,i=o.isHorizontal;r.addEventListener("fc-dragmove",r._evtHandlers.dragmove||(r._evtHandlers.dragmove=function(i){(n=e+i.originalEvent.data[t]/this.config.trackLength)>=1?n=1:(n<=0||isNaN(n))&&(n=0),o.scrollPosition=n,r.asyncDraw(),"function"==typeof o.evt.scroll&&o.evt.scroll(o.scrollPosition)})),r.addEventListener("fc-dragstart",r._evtHandlers.dragstart||(r._evtHandlers.dragstart=function(){t=i?0:1,e=o.scrollPosition,"function"==typeof o.evt.scrollStart&&o.evt.scrollStart(o.scrollPosition)})),r.addEventListener("fc-dragend",r._evtHandlers.dragend||(r._evtHandlers.dragend=function(){"function"==typeof o.evt.scrollEnd&&o.evt.scrollEnd(o.scrollPosition)}))},n.draw=function(){var e,t,n=this.config,r=this.getLinkedParent().config,o=r.x+.5,i=r.y+r.padding+.5,s=r.width-1,l=r.height-1<1?1:r.height-1,c=r.restrictScrollAnchor?Math.max(r.scrollRatio,.01):r.scrollRatio,u=r.isHorizontal,d=(0,a.pluckNumber)(r.scrollPosition,r.startPercent,0),h=0,p=u?s*c:l*c;d>=1?d=1:(d<=0||isNaN(d))&&(d=0),r.showButtons&&(p-=2*(h=u?Math.min(l,.5*s):Math.min(s,.5*l))*c),n.trackLength=e=u?s-2*h-p:l-2*h-p,n.trackOffset=t=u?o+h+.5:i+h+.5,n._nodeDimensions={x:u?t+e*d:o,y:u?i:t+e*d,width:u?p-1<1?1:p-1:s<1?1:s,height:u?l<1?1:l:p-1<1?1:p-1},this.addGraphicalElement({el:"rect",attr:{x:n._nodeDimensions.x,y:n._nodeDimensions.y,width:n._nodeDimensions.width,height:n._nodeDimensions.height,r:r.roundEdges?2:0,opacity:n.style.scroller.opacity},css:n.style.scroller,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarAnchor",id:"scrollbarAnchor"}),n.drawStripes&&n._nodeDimensions.width>=8&&this.addGraphicalElement({el:"path",attr:{path:["M",n._nodeDimensions.x+n._nodeDimensions.width/2-3,n._nodeDimensions.y+.2*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height,"m",3,-.6*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height,"m",3,-.6*n._nodeDimensions.height,"v",.6*n._nodeDimensions.height],opacity:n.style.grip.opacity},css:n.style.grip,container:{id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},component:this,label:"scrollbarAnchorStripe",id:"scrollbarAnchorStripe"})},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(359)),a=n(226),s=n(218),l=n(230),c=(0,a.getDep)("redraphael","plugin"),u=function(e){function t(){var t;return(t=e.call(this)||this)._evtHandlers={},t}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.type=e.type,t.style={button:Object.assign({},{fill:s.TRACKER_FILL,stroke:"none"},e.style.button),arrow:Object.assign({},{fill:c.tintshade(e.color,-.4).rgba,stroke:"none"},e.style.arrow)}},n.attachEventHandlers=function(){var e,t,n=this,r=n.config,o=n.getLinkedParent(),i=o.config,a=o.getChildren("scrollAnchor")[0],s=function(){i.scrollPosition>=1?i.scrollPosition=1:(i.scrollPosition<=0||isNaN(i.scrollPosition))&&(i.scrollPosition=0),a.asyncDraw(),"function"==typeof i.evt.scroll&&i.evt.scroll(i.scrollPosition)},c=function e(){t=!0,"start"===r.type?i.scrollPosition-=.01:i.scrollPosition+=.01,s(),n.addJob("dragScrollAnchor",e,l.priorityList.draw)};n.addEventListener("fc-mousedown",n._evtHandlers.mousedown||(n._evtHandlers.mousedown=function(){e=setTimeout(function(){n.addJob("dragScrollAnchor",c,l.priorityList.draw)},300)})),n.addEventListener("fc-mouseup",n._evtHandlers.mouseup||(n._evtHandlers.mouseup=function(){clearTimeout(e),n.removeJob("dragScrollAnchor"),t||("start"===r.type?i.scrollPosition-=.1:i.scrollPosition+=.1,s()),t=!1})),n.addEventListener("fc-mouseout",function(){t&&n._evtHandlers.mouseup()})},n.draw=function(){var e=this.config,t=this.getLinkedParent().config,n={id:"scrollbarGroup",label:"scrollbarGroup",isParent:!0},r=t.isHorizontal,o=t.x+.5,i=t.y+t.padding+.5,a=t.width-1<1?1:t.width-1,l=t.height-1<1?1:t.height-1,c=r?Math.min(l,.5*a):Math.min(a,.5*l),u=r?(0,s.polyPathToPath)([3,o+.5*c,i+.5*l,.25*c,180]):(0,s.polyPathToPath)([3,o+.5*a,i+.5*c,.25*c,90]),d=r?(0,s.polyPathToPath)([3,o+a-.5*c,i+.5*c,.25*c,0]):(0,s.polyPathToPath)([3,o+.5*a,i+l-.5*c,.25*c,-90]);this.addGraphicalElement({el:"rect",attr:{x:"start"===e.type?o:r?o+a-c:o,y:"start"===e.type||r?i:i+l-c,width:(e.type,r?c:a),height:(e.type,r?l:c),opacity:e.style.button.opacity},css:e.style.button,container:n,component:this,label:"scrollbar"+e.type+"ButtonRect",id:"scrollbar"+e.type+"ButtonRect"}),this.addGraphicalElement({el:"path",attr:{path:"start"===e.type?u:d,opacity:e.style.arrow.opacity},css:e.style.arrow,container:n,component:this,label:"scrollbar"+e.type+"ButtonPath",id:"scrollbar"+e.type+"ButtonPath"})},t}(i.default);t.default=u},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(359)),a=n(218),s=n(360),l=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;n.checked=!!t.isChecked,n.interPadding=3,n.symbolName="Internal_CB",n.text=(0,a.pluck)(t.text,""),n.textStyle=s.defaultTextStyle},n.check=function(){this.config.checked=!0,this.asyncDraw()},n.uncheck=function(){this.config.checked=!1,this.asyncDraw()},n.toggle=function(){this.config.checked?this.uncheck():this.check()},n.getContainer=function(){return this.getFromEnv("chart").getChildContainer("buttonGroup")},n.draw=function(){this.config.checked?s.SymbolStore.register("Internal_CB",s.RSymbolFns.CB_CHECKED):s.SymbolStore.register("Internal_CB",s.RSymbolFns.CB_NOT_CHECKED),e.prototype.draw.call(this)},t}(i.default);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(359)),a=n(218),s=r(n(366)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,r=this.getFromEnv("dataSource").chart;n.baseFontFamily=(0,a.pluck)(t.baseFontFamily,r.basefont,"Verdana,sans"),n.baseFontSize=(0,a.pluckNumber)(t.baseFontSize,r.basefontsize,10),n.baseFontSize=this.computeFontSize((0,a.pluckFontSizeMaintainUnit)(t.baseFontSize,r.basefontsize,10)),n.baseFontColor=(0,a.pluck)(t.baseFontColor,r.basefontcolor,"595959"),n.skipGraphics=!0,this.createListContainer()},n.createListContainer=function(){this.attachChild(s.default,"listContainer","listContainer").configure()},n.appendInMenu=function(e){void 0===e&&(e=[]);var t,n,r=this.getChild("listContainer");for(n=e.length,t=0;ts?(c.left="auto",c.right=s-n-o+a.PXSTRING):(c.left=n+a.PXSTRING,c.right="auto"),c.top=r+i+5+a.PXSTRING,c.bottom="auto",c.display="block"},n.hide=function(e){void 0===e&&(e={});var t,n=this.getGraphicalElement("menu","menu").element;e.instant?n.style.display="none":(t=(0,a.pluckNumber)(e.timeout,l.DEFAULT_TIMEOUT),this.config.hideTimer=setTimeout(function(){n.style.display="none"},t))},n.addItem=function(e){void 0===e&&(e={}),function(e,t){var n,r,o,i;if(void 0===t&&(t={}),(r=e.attachChild(s.default,"item",t.id)).configure(t),t.menu instanceof Array&&(i=t.menu.length))for(n=r.attachChild(u,"subContainer","subContainer"),e.config.hasSubMenu=!0,n.configure(),o=0;on?t.width:n,t.height=t.height>r?t.height:r),{width:n,height:r,marginTop:e.marginTop,marginLeft:e.marginLeft,marginRight:e.marginLeft,marginBottom:e.marginLeft}},n.manageSpace=function(){var e,t=this.getChildren("tool")||[];for(var n in e="horizontal"===this.config.orientation?this._placeToolHorizontally():this._placeToolVertically())e.hasOwnProperty(n)&&this.getChild(n).setDimension(e[n]);t.forEach(s)},n._placeToolHorizontally=function(){var e,t,n,r=this,o=r.config,i=r.props,a=o.hPadding,s=i.width-o.hPadding,l={},c={left:[],right:[],center:[]},u={left:0,right:0,center:0};return r.getChildren("tool")&&r.getChildren("tool").length&&((o.hDirection>0?r.getChildren("tool"):r.getChildren("tool").slice(0).reverse()).forEach(function(e){if(!e.getState("removed")){var t=e.getAlignment().hAlign,n=e.getLogicalSpace(),a=n.width,s=n.height,d=n.marginTop,h=n.marginLeft,p=n.marginRight,f=n.marginBottom,g=e.getId();u[t]+=a+(h||0)+(p||0),c[t].push(g),l[g]={},l[g].y=r.props.y+d+o.vPadding+(i.height-2*o.vPadding-(s+f+d))/2}}),c.left.forEach(function(e){var t=r.getChild(e).getLogicalSpace(),n=t.width,i=t.marginLeft,s=t.marginRight;a+=i||0,l[e].x=r.props.x+o.hPadding+a,a+=n+(s||0)}),c.right.reverse().forEach(function(e){var t=r.getChild(e).getLogicalSpace(),n=t.width,i=t.marginLeft,a=t.marginRight;s-=n+(a||0),l[e].x=r.props.x+o.hPadding+s,s-=i||0}),e=[u.left+o.hPadding,i.width-(u.right+o.hPadding)],t=Math.abs(e[0]-e[1]),n=e[0]+t/2-u.center/2,c.center.forEach(function(e){var t=r.getChild(e).getLogicalSpace(),i=t.width,a=t.marginLeft,s=t.marginRight;n+=a||0,l[e].x=r.props.x+o.hPadding+n,n+=i+s||0})),l},n.getAlignment=function(){return{hAlign:this.config.hAlign,vAlign:this.config.vAlign}},n._placeToolVertically=function(){var e,t,n,r=this,o=r.config,i=r.props,a=o.vPadding,s=i.height-o.vPadding,l={top:[],middle:[],bottom:[]},c={top:0,middle:0,bottom:0},u={};return r.getChildren("tool")&&r.getChildren("tool").length&&((o.vDirection>0?r.getChildren("tool"):r.getChildren("tool").reverse()).forEach(function(e){if(!e.getState("removed")){var t=e.getAlignment().vAlign,n=e.getLogicalSpace(),a=n.width,s=n.height,d=n.marginTop,h=n.marginLeft,p=n.marginRight,f=n.marginBottom,g=e.getId();c[t]+=s+(d||0)+(f||0),l[t].push(e.getId()),u[g]={},u[g].x=r.props.x+h+o.hPadding+h+(i.width-2*o.hPadding-(a+h+p))/2}}),l.top.forEach(function(e){var t=r.getChild(e).getLogicalSpace(),n=t.height,i=t.marginTop,s=t.marginBottom;a+=i||0,u[e].y=r.props.y+o.vPadding+a,a+=n+(s||0)}),l.bottom.reverse().forEach(function(e){var t=r.getChild(e).getLogicalSpace(),n=t.height,i=t.marginTop,a=t.marginBottom;s-=n+(a||0),u[e].y=r.props.y+o.vPadding+s,s-=i||0}),e=[c.top+o.vPadding,i.height-(c.bottom+o.vPadding)],t=Math.abs(e[0]-e[1]),n=e[0]+t/2-c.middle/2,l.middle.forEach(function(e){var t=r.getChild(e).getLogicalSpace(),i=t.height,a=t.marginTop,s=t.marginBottom;n+=a||0,u[e].y=r.props.y+o.vPadding+n,n+=i+s||0})),u},n.setDimension=function(e){void 0===e&&(e={}),e.x!==a.UNDEF&&(this.props.x=e.x),e.y!==a.UNDEF&&(this.props.y=e.y),e.width!==a.UNDEF&&(this.props.width=e.width),e.height!==a.UNDEF&&(this.props.height=e.height)},n.getDimension=function(){return this.props},n.draw=function(){var e=this.config;this.addGraphicalElement({id:"group",el:"group",attr:{name:"toolbar"},container:{id:"toolbar-master",isParent:!0},component:this,label:"group"}),this.addGraphicalElement({id:"carpet",el:"rect",attr:Object.assign({fill:(0,a.toRaphaelColor)({color:e.backgroundcolor,alpha:e.backgroundalpha}),stroke:(0,a.toRaphaelColor)({color:e.bordercolor,alpha:e.borderalpha}),"stroke-width":e.borderthickness},this.getDimension()),container:{label:"group",id:"group"},component:this,label:"carpet"})},n.getName=function(){return"toolbar"},n.getType=function(){return"Toolbar"},t}(i.SmartRenderer);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=r(n(354)),s=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n._toggle=function(){n.isEnabled()&&n.zoomOut()},t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"zoomResetButton"},n.configure=function(){e.prototype.configure.call(this);var t=this.getLinkedParent();this.configureButton(),this.disable(),t.registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:this.dependancyFn,component:this}])},n.configureButton=function(){!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"resetIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"disabled"})),this.disable()},n.enable=function(){this.config.state="activated",e.prototype.enable.call(this)},n.zoomOut=function(){var e,t,n,r,o,i,a,s=this,l=s.config.hookFn,c={};s.getFromEnv("axesObArr").forEach(function(u){e=s.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],(a=u.stack[0])&&(s.getFromEnv("chart").getFromEnv("animationManager").setAnimationState("zoomOut"),l&&l(a.minValue,a.maxValue),u.isY?(o=a.minValue,i=a.maxValue):(n=a.minValue,r=a.maxValue,c=s.constructor._getZoomInfo(n,r,u.axis)),u.axis.setVisibleConfig(a.minValue,a.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw(),u.stack.length=0)}),s._raiseZoomEvents("zoomout","zoomreset",Object.assign(c,{level:1,startX:n,endX:r,startY:o,endY:i})),s.disable()},n.dependancyFn=function(e){"zoomin"===e.type?this.enable():"zoomout"===e.type&&(this._checkStackLen()||this.disable())},t}(a.default);t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n._toggle=function(){n.isEnabled()&&n.zoomOut()},t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"zoomOutButton"},n.configureButton=function(){!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"zoomOutIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"activated"}))},n.zoomOut=function(){var e,t,n,r,o,i,a,s,l=this,c=l.config.hookFn,u={},d=0;l.getFromEnv("axesObArr").forEach(function(h){e=l.getFromEnv("chart"),t=e.getChildren("scrollBar")&&e.getChildren("scrollBar")[0],n=h.stack.pop(),r=h.stack.length,d+=r,n&&(h.isY?(a=n.minValue,s=n.maxValue):(o=n.minValue,i=n.maxValue,u=l.constructor._getZoomInfo(o,i,h.axis)),c&&c(n.minValue,n.maxValue),h.axis.setVisibleConfig(n.minValue,n.maxValue),e.setScrollBarDimension&&e.setScrollBarDimension(),t&&!t.getState("removed")&&t.asyncDraw())}),l._raiseZoomEvents("zoomout","zoomedout",Object.assign(u,{level:r,startX:o,endX:i,startY:a,endY:s})),d||this.disable()},t}(r(n(371)).default);t.default=a},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n._toggle=function(){n.isEnabled()&&n.zoom()},t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"zoomInButton"},n.configure=function(){e.prototype.configure.call(this);var t=this.config;t.stepZoom=t.stepZoom||5.33,!t.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"zoomInIcon",handlers:{click:this._toggle},tooltext:this.config.tooltext,state:"activated"})),this.enable()},n.zoom=function(){var e,t,n,r,o,i,a,s,l,c=this,u={},d=c.config,h=d.hookFn,p=!1,f=Math.pow(10,d.zoomDecimalLimit)||1;c.getFromEnv("animationManager").setAnimationState("zoom"),c.getFromEnv("axesObArr").forEach(function(g){n=g.axis,e=n.getVisibleConfig(),(t=Math.round((e.maxValue-e.minValue)/d.stepZoom*f)/f)>Number.EPSILON&&(g.stack.push(e),g.isY?(i=e.minValue+t,a=e.maxValue-t):(r=e.minValue+t,o=e.maxValue-t,u=c.constructor._getZoomInfo(r,o,n)),s=g.stack.length+1,h&&h(e.minValue,e.maxValue),l=n.setVisibleConfig(e.minValue+t,e.maxValue-t),p=p||l)}),p&&c._raiseZoomEvents("zoomin","zoomedin",Object.assign(u,{level:s,startX:r,endX:o,startY:i,endY:a}))},t}(r(n(354)).default);t.default=a},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=r(n(354)),s=n(218),l=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n.controlArr=[{nativeInteraction:["fc-dbclick"],callback:n.zoom.bind(n),component:n}],t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"dbTapZoom"},n.configure=function(){e.prototype.configure.call(this),this.enable()},n.setControl=function(){var e=this.controlArr,t=this.getLinkedParent();t.releaseControl(e),this.isEnabled()&&t.getControl(e)},n.zoom=function(e){var t,n,r,o,i,a,l,c,u,d,h=this,p=h.getFromEnv("chart"),f=(0,s.getMouseCoordinate)(p.getLinkedItem("container"),e,p),g=h.config,m=g.hookFn,v={},y=!1,b=Math.pow(10,g.zoomDecimalLimit)||1;p.getFromEnv("animationManager").setAnimationState("zoom"),h.getFromEnv("axesObArr").forEach(function(e){t=e.axis,n=t.getValue(e.isY?f.chartY:f.chartX),o=t.getVisibleConfig(),r=function(e,t,n,r){var o=t-e.minValue,i=e.maxValue-t;return{min:Math.round((t-o/n*(n-1))*r)/r,max:Math.round((t+i/n*(n-1))*r)/r}}(o,n,g.stepzoom,b),e.isY?(c=r.min,u=r.max):(a=r.min,l=r.max,v=h.constructor._getZoomInfo(a,l,t)),t.getZoom()<=b&&(m&&"function"==typeof g.hookFn&&m(r.min,r.max),i=t.setVisibleConfig(r.min,r.max),y=y||i,e.stack.push(o),d=e.stack.length+1)}),y&&h._raiseZoomEvents("zoomin","zoomedin",Object.assign(v,{level:d,startX:a,endX:l,startY:c,endY:u},e.originalEvent))},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=r(n(354)),s=n(218),l=n(230),c=n(226),u=Math,d=u.min,h=u.max,p=u.abs,f="rgba(255,0,0,"+(s.isIE?.002:1e-6)+")",g=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n.controlArr=[{nativeInteraction:["fc-dragstart"],callback:n.dragstart.bind(n),component:n},{nativeInteraction:["fc-dragmove"],callback:n.dragmove.bind(n),component:n},{nativeInteraction:["fc-dragend"],callback:n.dragend.bind(n),component:n}],n.toggle=n.toggle.bind(n),t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"dragPin"},n.configure=function(){e.prototype.configure.call(this);var t=this.getFromEnv("chartConfig"),n=this.getFromEnv("dataSource").chart,r=this.config;r.attr=r.attr||{stroke:"#3399ff",fill:"#b9d5f1","stroke-width":0},r.pinAttr=r.pinAttr||{"stroke-width":0,stroke:"none",fill:"#b9d5f1","shape-rendering":"crisp"},r.borderWidth=t.borderWidth||(t.borderWidth=(0,s.pluckNumber)(n.showborder,1)?(0,s.pluckNumber)(n.borderthickness,1):0),!this.config.skipGraphics&&this.setLinkedItem("button",this.createButton({icon:"pinModeIcon",tooltext:(0,s.pluckNumber)(n.showtoolbarbuttontooltext,1)?(0,s.pluck)(this.config.tooltext,"Pin mode"):"",handlers:{click:this.toggle},state:"activated"})),this.getLinkedParent().registerDependancy([{derivedInteraction:["zoomin","zoomout"],callback:this.dependancyFn,component:this}]),this.disable(void 0,!1)},n.enable=function(e,t){var n=this.config;!0!==n.enabled&&(n.enabled=!0,n.state="pressed",this.fireEvent("pinenabled"),this.setControl(),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!0},e&&e.originalEvent))},n.dependancyFn=function(e){"zoomin"!==e.type&&"zoomout"!==e.type||this.disable(e)},n.draw=function(){var e,t=this,n=t.config;t.createPin(),t.config.pinElemVisible&&t.addJob("resizePinElem",function(){e=t.getFromEnv("xAxis")[0],t.pinRangePixels(e.getPixel(n.boxStartValue),e.getPixel(n.boxEndValue))},l.priorityList.postRender)},n._setConfig=function(){var e=this.getFromEnv("chart"),t=this.getFromEnv("chartConfig"),n=this.config,r=Object.assign({},n.attr||{}),o=r["stroke-width"]=(0,s.pluckNumber)(r.strokeWidth,r["stroke-width"],1),i=(0,s.getPosition)(e.getFromEnv("chart-container"),e);n.zoomX="horizontal"===n.orientation||"both"===n.orientation,n.zoomY="vertical"===n.orientation||"both"===n.orientation,n.canvasY=t.canvasTop,n.canvasX=t.canvasLeft,n.canvasW=t.canvasWidth,n.canvasH=t.canvasHeight,n.canvasX2=t.canvasLeft+t.canvasWidth,n.canvasY2=t.canvasTop+t.canvasHeight,n.strokeWidth=o,n.chartPosLeft=i.left,n.chartPosTop=i.top},n.disable=function(e,t){var n=this.config,r=this.getContainer("pingroup"),o=this.getGraphicalElement("pintracker");!1!==n.enabled&&(n.enabled=!1,n.state="activated",r&&r.hide(),o&&o.hide(),this.fireEvent("pindisabled"),!t&&this.getFromEnv("chart").fireChartInstanceEvent("zoommodechanged",{pinModeActive:!1},e&&e.originalEvent),this.setControl(),n.pinElemVisible=!1)},n.setControl=function(){var e=this.getLinkedParent(),t=this.controlArr,n=this.getLinkedItem("button");e.releaseControl(t),this.isEnabled()&&e.getControl(t),n&&n.setCurrentState(this.config.state)},n.createPin=function(){var e,t,n,r,o,i=this,a=i.getFromEnv("chart"),l=i.getFromEnv("chartConfig"),u=i.getFromEnv("animationManager"),d=l.canvasTop,h=l.canvasBottom,p=l.canvasHeight,g=l.canvasLeft,m=i.config.borderWidth,v=l["clip-pinrect"],y=i.getContainer("pingroup"),b=i.getContainer("pinElemGroup"),C=i.getGraphicalElement("pinrect"),w=i.getGraphicalElement("pintracker");r=l._visw=l.canvasWidth,o=l._visx=l.canvasLeft,e=(0,c.getDep)("redraphael","plugin").crispBound(0,d-h,0,p,m),v=l["clip-pinrect"]=[e.x,d,e.width,e.height],y||i.addContainer("pingroup",y=u.setAnimation({el:"group",finalAttr:{name:"zoompin"},component:i,label:"group"}).insertBefore(a.getChildContainer("plotGroup")).hide()),y.transform(l._pingrouptransform=["T",o,h]),b||i.addContainer("pinElemGroup",b=u.setAnimation({el:"group",attr:{name:"zoompinelements"},component:i,container:y,label:"group"})),i.config.pinAttr.x=0,i.config.pinAttr.y=d-h,i.config.pinAttr.width=r,i.config.pinAttr.height=p,t=u.setAnimation({el:C||"rect",attr:i.config.pinAttr,container:y,component:i}),C||i.addGraphicalElement("pinrect",t),n=u.setAnimation({el:w||"rect",attr:{transform:y.transform(),x:0,y:d-h,width:0,height:p,stroke:"none",fill:f,cursor:s.hasSVG?"ew-resize":"e-resize"},container:a.getChildContainer("trackerGroup"),component:i}).hide(),w||i.addGraphicalElement("pintracker",n),n.undrag(),n.drag(function(e){var t=e.data[0],r=o+t+this.__pindragdelta,a=this.__pinboundleft,l=this.__pinboundright,c=this.data("cliprect").slice(0);rl&&(r=l),y.transform(["T",r,h]),n.transform(y.transform()),s.hasSVG||(c[0]=c[0]+r-o-this.__pindragdelta,u.setAnimation({el:y,attr:{"clip-rect":c},component:i})),this.__pindragoffset=t},function(){this.__pinboundleft=0-v[0]+o+g,this.__pinboundright=this.__pinboundleft+r-v[2],this.data("cliprect",y.attr("clip-rect")),y._.clipispath=!0},function(){y._.clipispath=!1,this.__pindragdelta+=this.__pindragoffset,delete this.__pindragoffset,delete this.__pinboundleft,delete this.__pinboundright})},n.pinRangePixels=function(e,t,n){var r,o,i,a,s,l=this.getFromEnv("chart"),c=l.config,u=c.canvasLeft,d=this.getFromEnv("xAxis")[0],h=d.getLimit(),p=h.max,f=h.min,g=this.getContainer("pingroup"),m=c["clip-pinrect"],v=this.getFromEnv("animationManager"),y=c._pingrouptransform,b=[],C=t-e,w=this.getGraphicalElement("pintracker");if(l.iterateComponents(function(e){e.getType&&"dataset"===e.getType()&&b.push(e)}),g&&this.getGraphicalElement("pinrect")){for(e===t&&(g.hide(),w.hide()),s=b.length;s--;)b[s].fireEvent("createpinelements",{group:this.getContainer("pinElemGroup")});m[0]=e+u,m[2]=C,v.setAnimation({el:g,attr:{"clip-rect":m,transform:y},component:this}).show(),w.__pindragdelta=0,w.show(),v.setAnimation({el:w,attr:{transform:y,x:e,width:C},component:this}),this.config.pinElemVisible=!0,r=(r=Math.round(d.getValue(e+u,{wrtVisible:!0})))p?p:o,i=d.getLabel(r).label,a=d.getLabel(o).label,n&&l.fireChartInstanceEvent("pinned",{startIndex:r||Math.abs(r),endIndex:o||Math.abs(o),startLabel:i,endLabel:a},n.originalEvent)}},n.dragstart=function(e){this._setConfig();var t,n,r=this.getFromEnv("animationManager"),o=this.getFromEnv("chart-container"),i=this.config,a=i.attr,l=this.getGraphicalElement("resizeBox"),c=e.originalEvent,u=i.layerX=(c.pageX||c.data[0])-i.chartPosLeft,d=i.layerY=(c.pageY||c.data[1])-i.chartPosTop,h=i.canvasY,p=i.canvasX,f=i.canvasX2,g=i.canvasY2;t=(0,s.getPosition)(o),i.chartPosLeft=t.left,i.chartPosTop=t.top,i.oy=d,i.ox=u,i.allowMove=!1,a.x=0,a.y=0,a.width=0,a.height=0,n=r.setAnimation({el:l||"rect",attr:a,container:this.getFromEnv("chart").getChildContainer("trackerGroup"),component:this,callback:function(){this.show()}}),l||this.addGraphicalElement("resizeBox",n),u>p&&uh&&d0)r=Math.min(a.max-n,r);else{if(!(r<0))return;r=-Math.min(t-a.min,-r)}n=(t+=r)+o,i.setVisibleConfig(t,n)}):(this.getFromEnv("axesObArr").forEach(function(e){e.origConfig=e.axis.getVisibleConfig(),e.startCoord=h}),this.setDrag(!0)))},n.dependancyFn=function(e){"zoomout"===e.type?!this._checkStackLen()&&this.disable():"zoomin"===e.type?this.enable(e):"dragzoomdisabled"===e.type?this._checkStackLen()&&this.enable(e):"dragzoomenabled"===e.type&&this.disable(e)},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=r(n(354)),s=n(218),l=function(e){return e<0?-e:e},c=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n.controlArr=[{nativeInteraction:["fc-pinchstart"],callback:n.pinchstart.bind(n),component:n},{nativeInteraction:["fc-pinchmove"],callback:n.pinchmove.bind(n),component:n}],t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"pinchZoom"},n.configure=function(){e.prototype.configure.call(this),this.enable()},n.getCenter=function(e,t){var n=this.getFromEnv("chart"),r=(0,s.getMouseCoordinate)(n.getLinkedItem("container"),{pageX:(e.pageX+t.pageX)/2,pageY:(e.pageY+t.pageY)/2},n);return{x:r.chartX,y:r.chartY}},n.pinchmove=function(e){var t,n,r,o,i,a,s,c,u=this,d=e.originalEvent.data,h=d.distanceX,p=d.distanceY,f=u.config,g=f.touchConfig,m={},v=!1,y={},b=u.getFromEnv("chart"),C=u.getFromEnv("axesObArr"),w=Math.pow(10,f.zoomDecimalLimit)||1,x=b.getChildContainer().plotGroup;t=l(h/g.distanceX),n=l(p/g.distanceY),C.forEach(function(){x.transform(""),x.scale(t,n,g.center.x,g.center.y)}),clearTimeout(f.chartDraw),f.chartDraw=setTimeout(function(){x.transform(""),C.forEach(function(e){var l=e.axis,d=function(e,t,n,r,o){var i=e.getVisibleConfig(),a=e.getValue(t[r?"y":"x"]+e.getTranslation()),s=a-i.minValue,l=i.maxValue-a,c=e.config.axisRange;return{min:Math.round(Math.max(c.min,a-s/n)*o)/o,max:Math.round(Math.min(c.max,a+l/n)*o)/o}}(l,g.center,e.isY?n:t,e.isY,w),h=d.min,p=d.max,f=e.stack,b=l.getVisibleConfig(),C=l.getLimit(),x=f.length-1,_=f[x],S=Math.floor(h)===C.min&&Math.ceil(p)===C.max,M=l.getZoom()>=w;if(_)if(S)e.stack=[],m.zoomout=!0;else if(_.minValue>h&&_.maxValueh&&_.maxValuev&&v===p.maxValue||(g=0?t:u.EXPORTACTION.DOWNLOAD):u.EXPORTACTION.DOWNLOAD,s.exporttargetwindow=(0,l.pluck)(c.exporttargetwindow,C?"_parent":"_self"),s.exportfilename=(0,l.pluck)(c.exportfilename,"FusionCharts"),s.exportparameters=(0,l.pluck)(c.exportparameters,""),s.exportcallback=(0,l.pluck)(c.exportcallback,""),s.exportwithimages=(0,l.pluckNumber)(c.exportwithimages,1),s.exportmode=("undefined"!=typeof c.exportatclientside&&(n={1:u.EXPORTMODE.AUTO,0:u.EXPORTMODE.AUTO}[c.exportatclientside]),n=(n=c.exportmode||n||u.EXPORTMODE.AUTO).toLowerCase()),s.logenabled=(0,l.pluckNumber)(c.logenabled,0),s.loghandler=(0,l.pluck)(c.html5loghandler,c.loghandler,b),s.logmode=void 0!==(r=c.logmode)&&"string"==typeof r&&r.toUpperCase()in u.LOGMODE?u.LOGMODE[r.toUpperCase()]:u.LOGMODE.AUTO,s.bgcolor=function(e){return e.jsVars.transparent||0===(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)?l.BLANKSTRING:e.options.containerBackgroundColor||"#FFFFFF"}(o),s.bgalpha=function(e){return e.jsVars.transparent?0:(0,l.pluckNumber)(e.options.containerBackgroundOpacity,1)+""}(o),s.exportshowmenuitem&&this.configureMenuBar()},n.exportChart=function(e){var t,n,r,o=this,i=o.getFromEnv("chartInstance"),a=o.getFromEnv("chart"),p="object"==typeof e&&function(e){var t,n={};for(t in e)n[t.toLowerCase()]=e[t];return n}(e)||{},y=(0,l.extend2)((0,l.extend2)({},o.config.exportOption),p),b=(y.exportformat||u.EXPORTFORMAT.PNG).toLowerCase(),C=y.exporthandler,w=y.exportaction,x=y.exporttargetwindow||"",_=y.exportfilename,S=y.exportparameters,M=y.exportcallback,E=y.exportwithimages,O=y.exportmode,A=y.logenabled,T=y.loghandler,k=y.logmode,D=function(e){a.fireChartInstanceEvent("exportDataReady",e)};a.fireChartInstanceEvent("beforeExport",y,void 0,function(){var e,p,P,N,L,R,F,I,z,B=i.id,j=o.config.chartConfig.caption,V=o.config.chartConfig.subcaption,W=this.apiInstance.getFromEnv("paper"),H=this.apiInstance.getFromEnv("core-options").export.useCanvas,G=(0,c.default)(a.getChildren("chartMenuBar"))?a.getChildren("chartMenuBar")[0]:a.getChildren("actionBar")[0],U=G.getChild("hamburgerMenu-"+G.getId()+"-"+a.getId()+"-0"),q={DOMId:B,height:W.height,width:W.width,fileName:_+"."+b,statusCode:void 0,statusMessage:void 0,notice:void 0},Y={exportAction:w,exportTargetWindow:x,exportCallback:M,fusionCharts:i,paper:W,chartId:B,exportHandler:C,logEnabled:A,logMode:k,logHandler:T},X=function(e,t,n){var r;return r=!!A,k===u.LOGMODE.CLIENT&&(r=!1),{charttype:i.chartType(),stream_type:e||"",stream:t||"",meta_bgColor:y.bgcolor||"",meta_bgAlpha:y.bgalpha||"1",meta_DOMId:i.id,meta_width:W.width||o.config.chartConfig.width,meta_height:W.height||o.config.chartConfig.height,chart_caption:j,chart_sub_caption:V,is_single_export:!0,is_full_version:!1,version:l.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:r,parameters:["exportfilename="+_,"exportformat="+b,"exportaction="+(0,u.createExportActionOldString)(w),"exportactionnew="+w,"configuredexportaction="+(n||w),"exportparameters="+S].join("|")}},K=function(){return{chartType:i.chartType(),chartCaption:j,chartSubCaption:V,isSingleExport:!0,isFullVersion:!1,exportAction:w,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[_,b].join("."),exportFormat:b,version:l.PROJECT_VERSION}},$=function(e){(0,h.downloadCharts)(null,null,null,X(u.EXPORTFORMAT.SVG,e),Y)},Z=function(e,t,n){var r;(r=v.createElement("canvas")).width=W.width,r.height=W.height,(0,h.drawSvgOnCanvas)({svg:P,canvas:r,x:0,y:0,width:W.width,height:W.height,useCanvas:H},function(){switch(e){case u.EXPORTFORMAT.PNG:t(e,r.toDataURL("image/png"),_,n);break;case u.EXPORTFORMAT.JPEG:case u.EXPORTFORMAT.PDF:default:t(e,r.toDataURL("image/jpeg"),_,n)}})},J=D,Q=function(e){e===u.LOGMODE.CLIENT&&(0,u.logCharts)(K(),Y)},ee=function(t,n){if(L="undefined"!=typeof m.btoa&&("Chrome"===h.browserDetails.name||"Firefox"===h.browserDetails.name||"Safari"===h.browserDetails.name||"Edge"===h.browserDetails.name||"ie"===h.browserDetails.name),"server"!==O&&L)w!==u.EXPORTACTION.DOWNLOAD&&w!==u.EXPORTACTION.DOWNLOADSAVE||((0,h.downloadCharts)("blob",t,_+"."+b,null,Y),a.fireChartInstanceEvent("exported",q)),w===u.EXPORTACTION.SAVE||w===u.EXPORTACTION.DOWNLOADSAVE?(R=w,w===u.EXPORTACTION.DOWNLOADSAVE&&(w=u.EXPORTACTION.SAVE),e=X("IMAGE-DATA",t,R),(0,h.downloadCharts)(null,null,null,e,Y),Q(k)):k!==u.LOGMODE.SERVER&&(0,u.logCharts)(K(),Y);else{var r=new FileReader;r.onload=function(e){for(var t=l.BLANKSTRING,r=new Uint8Array(e.target.result),o=r.byteLength,i=0;i]+/i,function(e){var t=e;return t.match(/height/i)||!W.height&&!o.config.chartConfig.height||(t+=' height="'+(W.height||o.config.chartConfig.height)+'"'),t.match(/width/i)||!W.width&&!o.config.chartConfig.width||(t+=' width="'+(W.width||o.config.chartConfig.width)+'"'),t})).replace(/(([\w]+\-)?opacity\s*=\s*)['"][\d\.]+e[\-\+][\d]+["']/gi,'$1"0.001"')).replace(/(([\w]+\-)?opacity\s*:\s*)[\d\.]+e[\-\+][\d]+/gi,"$10.001")).replace(/]+/gi,function(e){var t=e;return t=(t=(t=(t=(t=(t=(t=(t=t.replace(/stroke\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-width\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-width\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/stroke-opacity\=[\"\']([a-z0-9\#]+)?[\"\']/gi,"")).replace(/stroke-opacity\s*\:\s*([a-z0-9\#]+)?;?/gi,"")).replace(/(]+fill\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,'$1$2 stroke=$2 stroke-width="0.2"$3')).replace(/(]+fill-opacity\=)([\"\'][^\"\']+[\"\'])([^\>]+)/gi,"$1$2 stroke-opacity=$2 $3")})).replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/gi,function(e,t){return e+"<"+t+(f.exec(e)||"")+(g.exec(e)||"")+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}),p=(0,u.makeImageUrlsAbsolute)(p),P=(0,u.makeImageUrlsAbsolute)(P),I=O===u.EXPORTMODE.SERVER,(0,u.cacheAllImages)(p,I,function(){e=X(u.EXPORTFORMAT.SVG,p),J(e),e=null;var t,n,r,o,i,s,l,c,f="undefined"!=typeof m.btoa&&("Chrome"===h.browserDetails.name||"Firefox"===h.browserDetails.name||"Safari"===h.browserDetails.name||"Edge"===h.browserDetails.name||"ie"===h.browserDetails.name);(O===u.EXPORTMODE.CLIENT||O===u.EXPORTMODE.AUTO&&!(0,u.hasUndownloadableImage)(p))&&f?(P=(0,u.replaceImagesWithNonDataUrl)(P),w!==u.EXPORTACTION.DOWNLOAD&&w!==u.EXPORTACTION.DOWNLOADSAVE||(i=P,s=Y,l=O,b===u.EXPORTFORMAT.SVG?(c=(0,u.svgStrToDataUrl)(i),e=l===u.EXPORTMODE.AUTO?X("IMAGE-DATA",c):null,(0,h.downloadCharts)("url",c,_+"."+b,e,s)):Z(b,function(){!function(t,n,r,o,i){var a=n;t===u.EXPORTFORMAT.PDF&&((0,d.addImage)(a,W.height,W.width),a=(0,d.getDataUrl)()),e=i===u.EXPORTMODE.AUTO?X("IMAGE-DATA",a):null,(0,h.downloadCharts)("url",a,r+"."+t,e,o)}(arguments[0],arguments[1],arguments[2],arguments[3],l)},s),a.fireChartInstanceEvent("exported",q)),w===u.EXPORTACTION.SAVE||w===u.EXPORTACTION.DOWNLOADSAVE?(t=w,w===u.EXPORTACTION.DOWNLOADSAVE&&(w=u.EXPORTACTION.SAVE),function(e,t,n){var r;b===u.EXPORTFORMAT.SVG?(r=(0,u.svgStrToDataUrl)(e),n(r,t)):Z(b,function(){n(arguments[1],t)},t)}(P,Y,function(n,r){e=X("IMAGE-DATA",n,t),(0,h.downloadCharts)(null,null,null,e,r),Q(k)}),a.fireChartInstanceEvent("exported",q)):k!==u.LOGMODE.SERVER&&(0,u.logCharts)(K(),Y)):O===u.EXPORTMODE.AUTO?(o=p,h.browserDetails.hasCanvas&&"undefined"!=typeof m.btoa?((n=v.createElement("canvas")).width=W.width,n.height=W.height,o=(0,u.embedImagesWithNonDataURL)(o),P=(0,u.replaceImagesWithNonDataUrl)(P),(0,u.hasUndownloadableImage)(o)||b===u.EXPORTFORMAT.SVG?(r=X(u.EXPORTFORMAT.SVG,o),(0,h.downloadCharts)(null,null,null,r,Y)):(0,h.drawSvgOnCanvas)({svg:P,canvas:n,x:0,y:0,width:W.width,height:W.height,useCanvas:H},function(){var e;switch(b){case u.EXPORTFORMAT.PNG:e=n.toDataURL("image/png");break;case u.EXPORTFORMAT.JPEG:e=n.toDataURL("image/jpeg");break;case u.EXPORTFORMAT.PDF:(0,d.addImage)(n.toDataURL("image/jpeg"),W.height,W.width),e=(0,d.getDataUrl)();break;default:e=n.toDataURL("image/jpeg")}r=X("IMAGE-DATA",e),(0,h.downloadCharts)(null,null,null,r,Y)})):$(o),Q(k)):O===u.EXPORTMODE.SERVER&&($(p),Q(k))})},function(){a.fireChartInstanceEvent("exportCancelled",y)})},t}(a.ComponentInterface);t.default=w},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(284));t.default=function(e){return(0,o.default)(e)&&e.length}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.svgStrToDataUrl=t.logCharts=t.extractNonDataImageFromSVG=t.parseUrl=t.extractNonDataURLFromSVG=t.removeImagesWithNonDataURL=t.hasUndownloadableImage=t.replaceImagesWithNonDataUrl=t.embedImagesWithNonDataURL=t.makeImageUrlsAbsolute=t.isCacheAllImagesCompleted=t.getImageCachedDetails=t.cacheAllImages=t.objCacheFunctions=t.createExportActionOldString=t.LOGMODE=t.EXPORTFORMAT=t.EXPORTMODE=t.EXPORTACTION=void 0;var o,i=n(385),a=r(n(304)),s=n(218),l=function(e){var t,n,r,o,i,a;t=/(]*href=["']([^\>'"]*)["'][^\>]*\>)/g,n=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,r=[];do{null!==(o=t.exec(e))&&(i=o[1],a=o[2],n.test(a)||r.push(i))}while(o&&null!==o);return r},c=function(e){var t,n,r,o=e;for(t=l(o),n=0;n]*href=["']([^\>'"]*)["'][^\>]*\>/g,r=/^\s*data:([a-z]+\/[a-z]+(;[a-z\-]+\=[a-z\-]+)?)?(;base64)?,[a-z0-9\!\$\&\'\,\(\)\*\+\,\;\=\-\.\_\~\:\@\/\?\%\s]*\s*$/i,o=[];do{if(null!==(i=n.exec(e))){if(a=i[1],r.test(a))continue;t&&(a=d(a).href),o.push(a)}}while(i&&null!==i);return o},d=function(e){var t=document.createElement("div");return t.innerHTML="",t.firstChild.href=e,t.innerHTML=t.innerHTML,t.firstChild},h={DOWNLOAD:"download",SAVE:"save",DOWNLOADSAVE:"download-save"},p={CLIENT:"client",SERVER:"server",AUTO:"auto"},f=((o={}).cacheCompleted=!1,{cacheAllImages:function(e,t,n){var r,a,l,c;if(void 0===t&&(t=!1),r=u(e),a=r.length,(0,i.isCanvasElemSupported)()&&!t&&a)for(l=0,c=0;c]*\>/gi,y)},C=function(e){var t,n,r,o,i=b(e);for(t=u(i),n=0;n\n '+e}(e);return t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(t)))},t.logCharts=function(e,t){t.logEnabled&&t.logMode!==p.SERVER&&function(e,t){var n=new a.default(s.stubFN,s.stubFN);for(var r in e)e.hasOwnProperty(r)&&(e[r]=encodeURIComponent(e[r]));n.post(t.logHandler,e)}(e,t)},t.hasUndownloadableImage=function(e){var t=C(e);return t!==c(t)},t.replaceImagesWithNonDataUrl=function(e){return c(C(e))},t.embedImagesWithNonDataURL=C,t.makeImageUrlsAbsolute=b,t.isCacheAllImagesCompleted=v,t.getImageCachedDetails=m,t.cacheAllImages=g,t.objCacheFunctions=f,t.createExportActionOldString=function(e){return{download:h.DOWNLOAD,"download-save":h.DOWNLOAD,save:h.SAVE}[e]},t.LOGMODE=p,t.EXPORTFORMAT={PNG:"png",SVG:"svg",JPEG:"jpeg",JPG:"jpg",PDF:"pdf",XLSX:"xlsx",CSV:"csv"},t.EXPORTMODE={CLIENT:"client",SERVER:"server",AUTO:"auto"},t.EXPORTACTION=h,t.parseUrl=d,t.extractNonDataURLFromSVG=u,t.removeImagesWithNonDataURL=c,t.extractNonDataImageFromSVG=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.isCanvasElemSupported=t.drawSvgOnCanvas=t.browserDetails=t.downloadCharts=void 0;var o=r(n(386)),i=n(218),a=n(225),s=r(n(304)),l=window,c=l.Image,u=document,d=function(){var e=u.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},h=function(){var e,t=l.navigator.userAgent;return-1!==(e=t.indexOf("Edge"))?{name:"Edge",version:t.substring(e+5,e+11)}:-1!==(e=t.indexOf("Chrome"))?{name:"Chrome",version:t.substring(e+7,e+11)}:-1!==(e=t.indexOf("MSIE"))||-1!==(e=t.indexOf("rv"))&&-1!==t.indexOf("Trident")?{name:"ie",version:t.substring(e+5,e+9)}:-1!==(e=t.indexOf("Firefox"))?{name:"Firefox",version:t.substring(e+8,e+12)}:-1!==(e=t.indexOf("Safari"))?{name:"Safari",version:t.substring(e+7,e+11)}:{name:"default",version:"Not Known"}},p=h();t.drawSvgOnCanvas=function(e,t){void 0===e&&(e={});var n,r,i,s,u=e,d=u.svg,h=u.canvas,f=u.x,g=u.y,m=u.width,v=u.height,y=u.useCanvas;"ie"===p.name||"Edge"===p.name||y?new o.default(d,h,f,g,m,v,function(){t()}):(s=function(e){return'\n '+e}(d),i=s="data:image/svg+xml;base64,"+l.btoa(l.unescape(encodeURIComponent(s))),n=h.getContext("2d"),(r=new c).onload=function(){n.drawImage(r,f,g,m,v),t()},r.onerror=function(){(0,a.raiseWarning)(this,"","run","libSVGToCanvas:drawSvgOnCanvas","Unable to load image for canvas drawing. Aborting attempt.")},r.src=i)},t.downloadCharts=function(e,t,n,r,o){var c;!t||(c=t,p.name.toLowerCase()==="Chrome".toLowerCase()&&function(e){var t,n,r;for(t=e.length,r=e.length-1;r>=0;r--)(n=e.charCodeAt(r))>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--;return t}(c)>void 0)?r&&function(e,t){var n,r,o,c,d,h,p,f,g=t.exportAction,m=t.exportTargetWindow,v=t.exportCallback,y=t.fusionCharts.apiInstance,b=t.paper,C=t.chartId,w=t.exportHandler,x=e.parameters;if("download"===g||"download-save"===g){for(n in/(webkit|gecko)/gi.test(l.navigator.userAgent)&&"_self"===m&&(m=o=C+"export_iframe",f||(f=c=(0,i.createElement)("IFRAME",{name:o,width:"1px",height:"1px"},u.body),c.style.cssText="position:absolute;left:-10px;top:-10px;")),r=(0,i.createElement)("form",{method:"POST",action:w,target:m,style:"display:none;"},u.body),e)(0,i.createElement)("input",{type:"hidden",name:n,value:e[n]},r);return r.submit(),u.body.removeChild(r),r=void 0,h=x.match(/exportfilename=([^|]+)/)[1],p=x.match(/exportformat=([^|]+)/)[1],(0,a.triggerEvent)("exported",y,{DOMId:C,height:b.height,width:b.width,fileName:h+"."+p,statusCode:void 0,statusMessage:void 0,notice:void 0}),v&&l[v]&&"function"==typeof l[v]&&l[v]({statusCode:1,statusMessage:"success",DOMId:C,width:b&&b.width,height:b&&b.height}),!0}for(n in d=new s.default(function(e){var t={};e.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(e,n,r,o){t[n]=o}),v&&l[v]&&"function"==typeof l[v]&&l[v](t),(0,a.triggerEvent)("exported",y,t)},function(e){var t={statusCode:0,statusMessage:"failure",error:e,DOMId:C,width:b&&b.width,height:b&&b.height};v&&l[v]&&"function"==typeof l[v]&&l[v](t),(0,a.triggerEvent)("exported",y,t,[t])}),e)e.hasOwnProperty(n)&&(e[n]=encodeURIComponent(e[n]));d.post(w,e)}(r,o):function(e,t,n,r){void 0===r&&(r={});var o,i,a=h(),s=r.chartId,c=r.exportCallback,d=r.paper,p=t;"Chrome"===a.name||"Firefox"===a.name||"Safari"===a.name?("blob"===e&&(p=l.URL.createObjectURL(p)),(i=u.createElement("a")).download=n,i.href=p,u.body.appendChild(i),i.onclick=function(){c&&l[c]&&"function"==typeof l[c]&&l[c]({statusCode:1,statusMessage:"success",DOMId:s,width:d&&d.width,height:d&&d.height}),i.parentNode.removeChild(i)},i.click()):"ie"!==a.name&&"Edge"!==a.name||l.navigator.msSaveBlob&&(o="url"===e?function(e){var t,n,r,o;for(t=e.split(",")[0].indexOf("base64")>=0?l.atob(e.split(",")[1]):l.unescape(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(t.length),o=0;o1&&(N*=Math.sqrt(T),L*=Math.sqrt(T)),k=N>L?N:L,D=N>L?1:N/L,P=N>L?L/N:1,x=(m===v?-1:1)*Math.sqrt((Math.pow(N,2)*Math.pow(L,2)-Math.pow(N,2)*Math.pow(w,2)-Math.pow(L,2)*Math.pow(C,2))/(Math.pow(N,2)*Math.pow(w,2)+Math.pow(L,2)*Math.pow(C,2))),isNaN(x)&&(x=0),S=L*C*-x/N,M=(_=x*(N*w)/L)*Math.cos(g)-S*Math.sin(g)+(h+y)/2,E=_*Math.sin(g)+S*Math.cos(g)+(p+b)/2,O=s.angleBetweenVectors(1,0,(C-_)/N,(w-S)/L),A=s.angleBetweenVectors((C-_)/N,(w-S)/L,(-C-_)/N,(-w-S)/L),0===v&&A>0&&(A-=Math.PI/180*360),1===v&&A<0&&(A+=Math.PI/180*360),0===N&&0===L){t.lineTo(y,b);break}t.save();var R=s.combineTransformMatrix([[1,0,M,0,1,E],[Math.cos(g),Math.sin(g),0,Math.sin(g),Math.cos(g),0],[D,0,0,0,P,0]]);t.transform(R[0],R[3],R[1],R[4],R[2],R[5]),t.arc(0,0,k,O,O+A,1-v),t.restore(),s.arcBBox(0,0,k,O,O+A,1-v,[R[0],R[3],R[1],R[4],R[2],R[5]],d),"A"===a?(h=Number(l[c+5]),p=Number(l[c+6])):(h+=Number(l[c+5]),p+=Number(l[c+6]))}break;case"Z":case"z":t.closePath(),h=f.cx,p=f.cy}"draw"===r&&((!e.attributes.fill||e.attributes.fill&&"none"!==e.attributes.fill.value)&&(s.applyFillEffect(e,t,n,d),t.fill(),s.endFillEffect(e,t)),(!e.attributes.stroke||e.attributes.stroke&&"none"!==e.attributes.stroke.value)&&(s.applyStrokeEffect(e,t,n,d),t.stroke(),s.endStrokeEffect(e,t)),o())},s.drawNodes=function(e,t,n,r,o){var i=e.length,s=-1,l=0,c=0;!function u(){var d;(s+=1)-1&&(n=s.stringToArgs(o[r]),t.transform(n[0],n[1],n[2],n[3],n[4],n[5])),o[r].indexOf("translate")>-1&&(n=s.stringToArgs(o[r]),t.translate(n[0]||0,n[1]||0)),o[r].indexOf("rotate")>-1&&(3===(n=s.stringToArgs(o[r])).length?(t.translate(n[1],n[2]),t.rotate(n[0]*(Math.PI/180)),t.translate(-n[1],-n[2])):t.rotate(n[0]*(Math.PI/180))),o[r].indexOf("scale")>-1&&(1===(n=s.stringToArgs(o[r])).length?t.scale(n[0]||1,n[0]||1):t.scale(n[0]||1,n[1]||1)),o[r].indexOf("skewX")>-1&&(n=s.stringToArgs(o[r]),t.transform(1,0,Math.tan(n[0]*(Math.PI/180)),1,0,0)),o[r].indexOf("skewY")>-1&&(n=s.stringToArgs(o[r]),t.transform(1,Math.tan(n[0]*(Math.PI/180)),0,1,0,0)))},s.resetTransform=function(e){e.setTransform(1,0,0,1,0,0)},s.stringToArgs=function(e){var t=/\(([^)]+)/.exec(e)[1];return s.getArgsAsArray(t)},s.getArgsAsArray=function(e){var t;for(e=e.trim().split(/[\s,]+/),t=0;t-1?(o=s.getFillStyleById(/url\(.*#([^)'"]+)/.exec(e.attributes.fill.value)[1],t,n,r),t.fillStyle=o):e.attributes.fill?t.fillStyle=e.attributes.fill.value:t.fillStyle="#000000"},s.endFillEffect=function(e,t){t.globalAlpha=1},s.applyStrokeEffect=function(e,t,n,r){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=e.attributes["stroke-opacity"].value),e.attributes["stroke-width"]&&(t.lineWidth=e.attributes["stroke-width"].value,"0"===e.attributes["stroke-width"].value&&(t.globalAlpha=0)),e.attributes["stroke-linecap"]&&"none"!==e.attributes["stroke-linecap"].value&&(t.lineCap=e.attributes["stroke-linecap"].value),e.attributes["stroke-linejoin"]&&"none"!==e.attributes["stroke-linejoin"].value&&(t.lineJoin=e.attributes["stroke-linejoin"].value),e.attributes["stroke-dasharray"]&&"none"!==e.attributes["stroke-dasharray"].value&&t.setLineDash&&t.setLineDash(s.getArgsAsArray(e.attributes["stroke-dasharray"].value)),e.attributes.stroke?t.strokeStyle=e.attributes.stroke.value:t.strokeStyle="#000000"},s.endStrokeEffect=function(e,t){e.attributes["stroke-opacity"]&&"none"!==e.attributes["stroke-opacity"].value&&(t.globalAlpha=1,t.setLineDash&&t.setLineDash([]),t.lineWidth=1),t.globalAlpha=1},s.applyClip=function(e,t,n){var r,o,i,l,c,u=n.getSVG();if(-1!==e.indexOf("url(")){for(l in r=/url\(.*#([^)'"]+)/.exec(e)[1],(o=u.getElementById(r)).attributes&&(t.save(),o.attributes.transform&&s.startTransform(o.attributes.transform.value,t)),i=o.childNodes)i.hasOwnProperty(l)&&i[l].tagName&&i[l].constructor!==Array&&(c="draw"+i[l].tagName,i[l].attributes&&(t.save(),i[l].attributes.transform&&s.startTransform(i[l].attributes.transform.value,t)),a[c]&&(a[c](i[l],t,n,"clip"),t.closePath()),i[l].attributes&&t.restore());o.attributes&&t.restore(),t.clip()}},s.getFillStyleById=function(e,t,n,r){var o=n.getSVG().getElementById(e);return"linearGradient"===o.tagName?s.getLinearGradient(o,t,r):"radialGradient"===o.tagName?s.getRadialGradient(o,t,r):"#FFFFFF"},s.getLinearGradient=function(e,t,n){var r,o,i,a,l,c=e.attributes.x1?s.getPercentValue(e.attributes.x1.value,n.xMax-n.xMin,n.xMin):0,u=e.attributes.y1?s.getPercentValue(e.attributes.y1.value,n.yMax-n.yMin,n.yMin):0,d=e.attributes.x2?s.getPercentValue(e.attributes.x2.value,n.xMax-n.xMin,n.xMin):0,h=e.attributes.y2?s.getPercentValue(e.attributes.y2.value,n.yMax-n.yMin,n.yMin):0;for(i in r=t.createLinearGradient(c,u,d,h),o=e.childNodes)o.hasOwnProperty(i)&&o[i].attributes&&o[i].attributes["stop-color"]&&(a=s.toRGB(o[i].attributes["stop-color"].value),l=o[i].attributes["stop-opacity"]?o[i].attributes["stop-opacity"].value:1,a.status?r.addColorStop(s.getPercentValue(o[i].attributes.offset.value,1,0),"rgba("+a.r+","+a.g+","+a.b+","+Number(l)+")"):r.addColorStop(s.getPercentValue(o[i].attributes.offset.value,1,0),o[i].attributes["stop-color"].value));return r},s.getRadialGradient=function(e,t,n){var r,o,i,a,l,c=e.attributes.cx?s.getPercentValue(e.attributes.cx.value,n.xMax-n.xMin,n.xMin):n.xMin+.5*(n.xMax-n.xMin),u=e.attributes.cy?s.getPercentValue(e.attributes.cy.value,n.yMax-n.yMin,n.yMin):n.yMin+.5*(n.yMax-n.yMin),d=e.attributes.fx?s.getPercentValue(e.attributes.fx.value,n.xMax-n.xMin,n.xMin):n.xMin+.5*(n.xMax-n.xMin),h=e.attributes.fy?s.getPercentValue(e.attributes.fy.value,n.yMax-n.yMin,n.yMin):n.yMin+.5*(n.yMax-n.yMin),p=e.attributes.r?s.getPercentValue(e.attributes.r.value,(n.yMax-n.yMin+n.xMax-n.xMin)/2,0):s.getPercentValue("50%",(n.yMax-n.yMin+n.xMax-n.xMin)/2,0);for(i in r=t.createRadialGradient(d,h,0,c,u,p),o=e.childNodes)o.hasOwnProperty(i)&&o[i].attributes&&o[i].attributes["stop-color"]&&(a=s.toRGB(o[i].attributes["stop-color"].value),l=o[i].attributes["stop-opacity"]?o[i].attributes["stop-opacity"].value:1,a.status?r.addColorStop(s.getPercentValue(o[i].attributes.offset.value,1,0),"rgba("+a.r+","+a.g+","+a.b+","+Number(l)+")"):r.addColorStop(s.getPercentValue(o[i].attributes.offset.value,1,0),o[i].attributes["stop-color"].value));return r},s.getPercentValue=function(e,t,n){var r;return-1!==e.indexOf("%")?((r=/(\d.*)%/.exec(e)[1])>100&&(r=100),r*t/100+1*n):e>1?e:e*t+1*n},s.bBoxFromPoint=function(e,t,n){"undefined"!=typeof n.xMin&&(e.push(n.xMin,n.xMax),t.push(n.yMin,n.yMax)),n.xMin=Math.min.apply(this,e),n.xMax=Math.max.apply(this,e),n.yMin=Math.min.apply(this,t),n.yMax=Math.max.apply(this,t)},s.arcBBox=function(e,t,n,r,o,i,a,s){var l,c,u,d,h,p,f,g,m,v,y;a instanceof Array&&(e=e*a[0]+e*a[2]+a[4],t=t*a[1]+t*a[3]+a[5]),y=function(e,t,n){return(e=(e+2*Math.PI)%(2*Math.PI))<=(t=(t+2*Math.PI)%(2*Math.PI))?e<=n&&n<=t:e>=t?!(e>=n&&n>=t):void 0},l=r%(2*Math.PI),c=o%(2*Math.PI),i&&(l=o%(2*Math.PI),c=r%(2*Math.PI)),u=e+n*Math.cos(l),d=t+n*Math.sin(l),m=[u,e+n*Math.cos(c)],v=[d,t+n*Math.sin(c)],y(l,c,0)&&(m.push(1*e+1*n),v.push(t)),y(l,c,.5*Math.PI)&&(m.push(e),v.push(1*t+1*n)),y(l,c,Math.PI)&&(m.push(e-1*n),v.push(t)),y(l,c,1.5*Math.PI)&&(m.push(e),v.push(t-1*n)),f=Math.max.apply(this,m),h=Math.min.apply(this,m),g=Math.max.apply(this,v),p=Math.min.apply(this,v),"undefined"!=typeof s.xMin?(s.xMin=Math.min(h,s.xMin),s.xMax=Math.max(f,s.xMax),s.yMin=Math.min(p,s.yMin),s.yMax=Math.max(g,s.yMax)):(s.xMin=h,s.xMax=f,s.yMin=p,s.yMax=g)},s.qBezierBBox=function(e,t,n,r,o,i,a){var s,l,c,u,d,h,p,f,g=1*e-2*n+1*o,m=1*t-2*r+1*i;0===g||0===m?(d=Math.max(e,o),c=Math.min(e,o),h=Math.max(t,i),u=Math.min(t,i)):(s=(e-n)/g,l=(t-r)/m,p=e*Math.pow(1-s,2)+2*n*(1-s)*s+o*Math.pow(s,2),f=t*Math.pow(1-l,2)+2*r*(1-l)*l+i*Math.pow(l,2),d=Math.max(e,o,p),c=Math.min(e,o,p),h=Math.max(t,i,f),u=Math.min(t,i,f)),"undefined"!=typeof a.xMin?(a.xMin=Math.min(c,a.xMin),a.xMax=Math.max(d,a.xMax),a.yMin=Math.min(u,a.yMin),a.yMax=Math.max(h,a.yMax)):(a.xMin=c,a.xMax=d,a.yMin=u,a.yMax=h)},s.cBezierBBox=function(e,t,n,r,o,i,a,s,l){var c,u,d,h,p,f,g,m,v,y,b,C,w;null===o&&null===i&&(o=t+2/3*(r-t),r=(n=e+2/3*(n-e))+1/3*(a-e),i=o+1/3*(s-t)),b=function(e,t,n,r,o){return e*Math.pow(1-o,3)+3*t*o*Math.pow(1-o,2)+3*n*o*o*(1-o)+r*o*o*o},p=3*a-9*o+9*n-3*e,f=6*e-12*n+6*o,g=3*n-3*e,a<(c=e)&&(c=a),a>(u=e)&&(u=a),(m=Math.pow(f,2)-4*p*g)>=0&&((v=(-f+Math.sqrt(m))/(2*p))>0&&v<1&&((C=b(e,n,o,a,v))u&&(u=C)),(y=(-f-Math.sqrt(m))/(2*p))>0&&y<1&&((C=b(e,n,o,a,y))u&&(u=C))),p=3*s-9*i+9*r-3*t,f=6*t-12*r+6*i,g=3*r-3*t,s<(d=t)&&(d=s),s>(h=t)&&(h=s),(m=Math.pow(f,2)-4*p*g)>=0&&((v=(-f+Math.sqrt(m))/(2*p))>0&&v<1&&((w=b(t,r,i,s,v))h&&(h=w)),(y=(-f-Math.sqrt(m))/(2*p))>0&&y<1&&((w=b(t,r,i,s,y))h&&(h=w))),"undefined"!=typeof l.xMin?(l.xMin=Math.min(c,l.xMin),l.xMax=Math.max(u,l.xMax),l.yMin=Math.min(d,l.yMin),l.yMax=Math.max(h,l.yMax)):(l.xMin=c,l.xMax=u,l.yMin=d,l.yMax=h)},s.combineTransformMatrix=function(e){var t,n,r=e.length-1;if(r<=0)return e[0];for(n=e[0],t=1;t<=r;t++)n[0]=n[0]*e[t][0]+n[1]*e[t][3],n[1]=n[0]*e[t][1]+n[1]*e[t][4],n[2]=n[0]*e[t][2]+n[1]*e[t][5]+1*n[2],n[3]=n[3]*e[t][0]+n[4]*e[t][3],n[4]=n[3]*e[t][1]+n[4]*e[t][4],n[5]=n[3]*e[t][2]+n[4]*e[t][5]+1*n[5];return n},s.angleBetweenVectors=function(e,t,n,r){var o=e*r255&&(e[r]=255));return o={r:e[0],g:e[1],b:e[2],status:1}},(e=e.trim()).match(/^rgb\(|^rgba\(/i)?(t=/\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})/.exec(e),n([parseInt(t[1]),parseInt(t[2]),parseInt(t[3])])):e.match(/^#/)&&(t=/(\w{2})(\w{2})(\w{2})/.exec(e),n([parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)])),o},s.StrToDom=function(e){var t;return o.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new o.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e)),t};var l=r;t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.addImage=function(e,t,n){a=[],s=0,r=void 0,o=void 0,i=void 0,r=t||500,o=n||500,i=atob(/base64,(.+?)$/g.exec(e)[1])},t.getDataUrl=function(){return"data:application/pdf;base64,"+btoa(function(){var e,t,n=[];for(l("%PDF-1.7"),n[1]=s,l("1 0 obj"),l("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),l("endobj"),n[4]=s,l("4 0 obj"),l("<< /Length 36>>"),l("stream"),l("q "+o+" 0 0 "+r+" 0 0 cm /Im3 Do Q"),l("endstream"),l("endobj"),n[5]=s,l("5 0 obj"),l("<> /XObject <> >> >>"),l("endobj"),n[3]=s,l("3 0 obj"),l("<>"),l("stream"),l(i),l("endstream"),l("endobj"),n[2]=s,l("2 0 obj"),l("<>"),l("endobj"),n[6]=s,l("6 0 obj"),l("<>"),l("endobj"),e=s,l("xref"),l("0 7"),l("0000000000 65535 f "),t=1;t<=6;t++)l(("0000000000"+n[t]).slice(-10)+" 00000 n ");return l("trailer"),l("<>"),l("startxref"),l(e),l("%%EOF"),a.join("\n")}())};var r,o,i,a=[],s=0;function l(e){s+=e.length+1,a.push(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o,i=n(385),a=n(387),s=n(218),l=n(384),c=n(225),u=window,d=Math.max,h=u.Image,p=u.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),f="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/api/v1.0/logs":"http://export.api3.fusioncharts.com/api/v1.0/logs",g="https:"===u.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",m=function(e){return!e.match(/http:\/\/|https:\/\//)||!/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(e)[2]||u.location.hostname===/(http:\/\/|https:\/\/)([^\/\:]*)/.exec(e)[2]},v=function(e,t,n,r){var o=e,i=t;return isNaN(o)&&(o=(0,s.pluckNumber)(t,r)*(n/r)),isNaN(i)&&(i=(0,s.pluckNumber)(e,n)*(r/n)),{width:o,height:i}},y=function(){(0,c.triggerEvent)("exportcancelled")};function b(){var e,t,n,b,C,w,x,_,S,M,E,O,A,T=arguments[0],k=T||{},D=0,P=!1,N={exportTargetWindow:(0,s.pluck)(k.exportTargetWindow,p?"_parent":"_self"),exportAction:k.exportAction&&"string"==typeof k.exportAction?(O=k.exportAction.toLowerCase(),[l.EXPORTACTION.DOWNLOAD,l.EXPORTACTION.SAVE,l.EXPORTACTION.DOWNLOADSAVE].indexOf(O)>=0?O:l.EXPORTACTION.DOWNLOAD):l.EXPORTACTION.DOWNLOAD,exportFileName:(0,s.pluck)(k.exportFileName,"FusionCharts"),exportHandler:(0,s.pluck)(k.exportHandler,g),exportParameters:(0,s.pluck)(k.exportParameters,""),exportFormat:(0,s.pluck)(k.exportFormat,l.EXPORTFORMAT.PNG),exportCallback:(0,s.pluck)(k.exportCallback,""),exportAtClientSide:(0,s.pluckNumber)(k.exportAtClientSide,1),exportMode:("undefined"!=typeof k.exportAtClientSide&&(E={1:l.EXPORTMODE.AUTO,0:l.EXPORTMODE.SERVER}[k.exportAtClientSide]),E=(E=k.exportMode||E||l.EXPORTMODE.AUTO).toLowerCase()),logEnabled:(0,s.pluckNumber)(k.logEnabled,0),logMode:(M=k.logMode,void 0!==M&&"string"==typeof M&&M.toUpperCase()in l.LOGMODE?l.LOGMODE[M.toUpperCase()]:l.LOGMODE.AUTO),logHandler:(0,s.pluck)(k.logHandler,f)},L=N.exportFormat.toLowerCase(),R=0,F=0,I=o.items,z=v,B=function(e,t,n){var r;return r=!!N.logEnabled,N.logMode===l.LOGMODE.CLIENT&&(r=!1),{charttype:"combined",stream_type:e||"",stream:t||"",is_single_export:!1,is_full_version:!1,version:s.PROJECT_VERSION,user_time_zone:-(new Date).getTimezoneOffset(),log_enabled:r,parameters:["exportfilename="+N.exportFileName,"exportformat="+N.exportFormat,"exportaction="+(0,l.createExportActionOldString)(N.exportAction),"exportactionnew="+N.exportAction,"configuredexportaction="+(n||N.exportAction),"exportparameters="+N].join("|")}},j=function(){return{chartType:"combined",isSingleExport:!1,isFullVersion:!1,exportAction:N.exportAction,userTimeZone:-(new Date).getTimezoneOffset(),exportFileName:[N.exportFileName,N.exportFormat].join("."),exportFormat:N.exportFormat,version:s.PROJECT_VERSION}},V=function(e){e===l.LOGMODE.CLIENT&&(0,l.logCharts)(j(),N)},W=function(e){var t,n,o;(0,c.triggerEvent)("beforeexport",r,r,r,function(){n="undefined"!=typeof u.btoa&&("Chrome"===i.browserDetails.name||"Firefox"===i.browserDetails.name||"Safari"===i.browserDetails.name||"Edge"===i.browserDetails.name||"ie"===i.browserDetails.name),N.exportMode===l.EXPORTMODE.CLIENT||N.exportMode===l.EXPORTMODE.AUTO&&n?(N.exportAction!==l.EXPORTACTION.DOWNLOAD&&N.exportAction!==l.EXPORTACTION.DOWNLOADSAVE||(t=N.exportMode===l.EXPORTMODE.AUTO?B("IMAGE-DATA",e):null,(0,i.downloadCharts)("url",e,N.exportFileName+"."+L,t,N),(0,c.triggerEvent)("exported",r,{fileName:N.exportFileName+"."+L})),N.exportAction===l.EXPORTACTION.SAVE||N.exportAction===l.EXPORTACTION.DOWNLOADSAVE?(o=N.exportAction,N.exportAction===l.EXPORTACTION.DOWNLOADSAVE&&(N.exportAction=l.EXPORTACTION.SAVE),t=B("IMAGE-DATA",e,o),N.paper={width:r,height:r},N.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,N),delete N.paper,delete N.fusioncharts,V(N.logMode)):N.logMode!==l.LOGMODE.SERVER&&(0,l.logCharts)(j(),N)):(t=B("IMAGE-DATA",e),N.paper={width:r,height:r},N.fusionCharts={},(0,i.downloadCharts)(null,null,null,t,N),delete N.paper,delete N.fusioncharts,V(N.logMode))},y)},H=function(){if(0===(D-=1)&&P)switch(L){case"png":W(n.toDataURL("image/png"));break;case"jpeg":W(n.toDataURL("image/jpeg"));break;case"pdf":(0,a.addImage)(n.toDataURL("image/jpeg"),R,F),W((0,a.getDataUrl)());break;default:W(n.toDataURL("image/png"))}},G=function(){var e=this;(0,i.drawSvgOnCanvas)({svg:arguments[0],canvas:n,x:e.x,y:e.y,width:e.width,height:e.height,useCanvas:arguments[1]},H)},U=function(t,n){var r,i;(e=o.items[t]).jsVars.instanceAPI&&(C=(C=(C=(C=e.jsVars.instanceAPI.getFromEnv("paper").toSVG(!0)).replace(/NS\d+:/gi,"xlink:")).replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/gi,"$1M 0 0 L 0 0$2")).replace(/(xlink:title\s*=\s*)['"].*?["']/gi,""),D+=1,r=C,i=o.options.export.useCanvas,(0,l.cacheAllImages)(r,!1,function(){r=(0,l.replaceImagesWithNonDataUrl)(r),G.call(n||e,r,i)}))};if((A={})[l.EXPORTMODE.CLIENT]=1,A[l.EXPORTMODE.AUTO]=0,A[l.EXPORTMODE.SERVER]=0,N.exportatclientside=A[N.exportMode],i.browserDetails.hasCanvas){for(function(){var e,n,r,o,i,a,s=k.charts;if(t=[],s)for(r in s)s.hasOwnProperty(r)&&(e=I[s[r].id])&&(n=s[r],i=e.width,a=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(a))&&(a=e.apiInstance.getFromEnv("chartHeight")),o=z(Number(n.width),Number(n.height),i,a),t.push({id:e.id,width:o.width,height:o.height,x:n.x,y:n.y}));else for(r in I)I.hasOwnProperty(r)&&(i=(e=I[r]).width,a=e.height,isNaN(Number(i))&&(i=e.apiInstance.getFromEnv("chartWidth")),isNaN(Number(a))&&(a=e.apiInstance.getFromEnv("chartHeight")),t.push({id:e.id,width:i,height:a}))}(),S=0,w=t.length;S-1;n--)e[t[n]].stop(a.UNDEF,!0,!0),e[t[n]].remove(),delete e[t[n]]},t}(i.ComponentInterface);t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={crossline:{crossline:{path:{updating:function(e){return[{initialAttr:{path:e.el.attr("path")},finalAttr:{path:e.attr.path}}]}}}}}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(218),s=n(233),l=a.hasSVG?0:.5,c=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,state:"appearing",component:n,label:"group"})},u=function(e){function t(){var t,n;return(t=e.call(this)||this)._handlerAPI=(n=(0,o.default)(t),{onhover:function(e,t){!n.config.axisScrolling&&n.show(t.axes?{axesInfo:t.axes}:{event:e})},onhoverout:function(e){n.hide({event:e})}}),t.mouseOutTimer=a.UNDEF,t}(0,i.default)(t,e);var n=t.prototype;return n.getAttachedAxisInfo=function(e){void 0===e&&(e={});var t,n,r,o,i=this.getLinkedParent().getAxes(),s=e.originalEvent&&(0,a.getMouseCoordinate)(this.getLinkedParent().getFromEnv("chart-container"),e.originalEvent,this.getFromEnv("chart")),l=s&&s.chartX||0,c=s&&s.chartY||0;for(t=i.length-1;t>=0;t--)if(n=i[t].axis,!i[t].isY)return r=!!n.config.isVertical,o=n.getTranslation(),{value:r?n.getValue(c+o):n.getValue(l+o),axis:n,isVertical:r,isY:!1}},n.configure=function(){var e=this.config,t=this.getFromEnv("chartConfig"),n=this.getFromEnv("chart-attrib");e.drawCrossLine=(0,a.pluckNumber)(n.drawcrossline,t.drawcrossline,0),e.bandStyle={fillcolor:(0,a.pluck)(n.crosslinecolor,t.crosslinecolor,"#EEEEEE"),alpha:(0,a.pluckNumber)(n.crosslinealpha,t.crosslinealpha,50),thickness:(0,a.pluckNumber)(t.defaultcrosslinethickness),managerId:this.getId(),onTop:(0,a.pluckNumber)(n.drawcrosslineontop,t.drawcrosslineontop,0),cursor:"pointer",animDuration:(0,a.pluckNumber)(n.crosslineanimation,0)&&1e3*(0,a.pluckNumber)(n.crosslineanimationduration,.09)}},n.createGroup=function(){var e=this.getLinkedParent().getChildContainer("crosslineBottom"),t=this.getLinkedParent().getChildContainer("crosslineTop");!this.getChildContainer("crosslineTop")&&this.addChildContainer("crosslineTop",c("crosslineTop",t,this)),!this.getChildContainer("crosslineBottom")&&this.addChildContainer("crosslineBottom",c("crosslineBottom",e,this))},n.show=function(e){void 0===e&&(e={});var t=e.event;clearTimeout(this.mouseOutTimer),this.config.attachedCanvasAxisInfo=this.getAttachedAxisInfo(t),this._setAptAxesInfo(e.axesInfo,e.value),this._show(t)},n._setAptAxesInfo=function(e,t){void 0===e&&(e=[]);var n,r,o=e.length,i=this.config.attachedCanvasAxisInfo;if(e.length)for(r=0;rf||this.config.lastIndex!==g&&c.drawCrossLine&&((r=v.thickness)===a.UNDEF&&(!1===u._hascolumn?r=1:(t=p.getPixel(0),n=p.getPixel(1),r=Math.abs(n-t))),i=m,s=r,o=Math.round(i+(s%2/2+l))-(s%2/2+l),this.createGroup(),v.thickness=r,v=h.isVertical?Object.assign(v,{x1:C,y1:o,x2:C+y.canvasWidth,y2:o}):Object.assign(v,{x1:o,y1:b,x2:o,y2:b+y.canvasHeight}),d.show(v),this.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{currentIndex:g,lastIndex:this.config.lastIndex,source:e?"mouse interaction":"public API"}),this.config.lastIndex=g)},n.hide=function(e){var t=this;void 0===e&&(e={});var n=this;this.mouseOutTimer=setTimeout(function(){n.getFromEnv("chart").fireChartInstanceEvent("onChangeCrossLine",{lastIndex:n.config.lastIndex,source:e.event?"mouse interaction":"public API"}),delete t.config.lastIndex,t.getChildren("crossline")[0].hide()},20)},n.getType=function(){return"crossline-manager"},n.getName=function(){return"crossline-manager-band-category-axis"},t}(s.ComponentInterface);t.default=u},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=n(218),l={candlestick:!0},c=function(e){if(e.sender.getType&&"chartAPI"===e.sender.getType()&&l[e.sender.getName&&e.sender.getName()]){var t,n,r=e.sender;r.registerFactory("multiCanvasCrossline",function(){(0,s.componentFactory)(r,u,"multiCanvasCrosslineManager"),t=r.getChildren("multiCanvasCrosslineManager")[0],n=t._handlers,r.iterateComponents(function(e){"canvas"===e.getName()&&(e.addEventListener("fc-mouseover",n.onhover),e.addEventListener("fc-mousemove",n.onhover),e.addEventListener("fc-mouseout",n.onhoverout))})},["canvas"])}},u=function(e){function t(){var t,n;return(t=e.call(this)||this)._handlers=(n=(0,o.default)(t),{onhover:function(e){e.originalEvent&&n.show(e)},onhoverout:function(e){e.originalEvent&&n.hide(e)}}),t}(0,i.default)(t,e);var n=t.prototype;return n.getAxesInfo=function(e,t){void 0===e&&(e={});var n,r,o,i,a=t.getAxes(),l=[],c=(0,s.getMouseCoordinate)(this.getFromEnv("chart-container"),e.originalEvent,this.getFromEnv("chart")),u=c.chartX||0,d=c.chartY||0;for(n=a.length-1;n>=0;n--)r=a[n].axis,o=a[n].isY,i=!!r.config.isVertical,l.push({value:i?r.getValue(d):r.getValue(u),axis:r,isVertical:i,isY:o});return l},n.getName=function(){return"multiCanvasCrosslineManager"},n.getType=function(){return"multiCanvasCrosslineManager"},n.show=function(e){var t=this,n=e.sender;this.getFromEnv("chart").iterateComponents(function(r){"canvas"===r.getName()&&r!==n&&r.fireEvent("fc-mousemove",{axes:t.getAxesInfo(e,n)})})},n.hide=function(e){var t=e.sender,n=(0,s.getMouseCoordinate)(t.getFromEnv("chart-container"),e&&e.originalEvent,t.getFromEnv("chart"));t.isWithinCanvas(n.chartX,n.chartY)||this.getFromEnv("chart").iterateComponents(function(e){"canvas"===e.getName()&&e!==t&&e.fireEvent("fc-mouseout")})},t}(a.ComponentInterface),d={extension:function(e){e.addEventListener("instantiated",c)},name:"multi-canvas-crossline-manager",type:"extension",requiresFusionCharts:!0};t.default=d},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(402)),i=n(409);t.getConfig=i.getConfig,t.setConfig=i.setConfig;var a=o.default;t.default=a},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(403)).default;t.default=o},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(404)),i=n(411),a=n(405),s=function(){function e(e,t,n){this.dataTables={},this._defaultDataTable=null,this._id=+new Date+"",e&&t&&e.constructor===Array&&t.constructor===Array&&this.createDataTable(e,t,n)}var t=e.prototype;return t.createDataTable=function(e,t,n,r){if(!e||!t)throw new Error("Both data and schema must be provided to build DataTable");if(e.constructor!==Array)throw new Error("Data must be provided in 2D array format or array of json objects");if(t.constructor!==Array||0===t.length)throw new Error("Input schema is not in a correct format - schema must be an array of column configurations");var i,s,l={},c=r;if(s=Object.keys(this.dataTables),c){if(s.includes(c))throw new Error("A table with the id "+c+" already exists in the DataStore. Please use a different id.")}else c=(0,a.createTableID)(s);return Object.assign(l,{enableIndex:!0,enableUTC:!1},n),i=new o.default(this,(0,a.parseAndIndexData)(e,t,l),t,l,null,null,c),0===s.length&&(this._defaultDataTable=i),this.dataTables[c]=i,i},t.appendRows=function(e,t){var n,r,o,i=this.getDataTable(t),s=i.getSchema();o=(0,a.buildDateColumnsFormatter)(s),r=(0,a.parseData)(e,s,o),(n=i._data).push.apply(n,r),(0,a.indexData)(i._data,s,i._config,o),i.flushResults(),this.trigger("itemsAdded",{rows:e,parsedRows:r,tableID:t})},t.deleteRows=function(e,t){var n=this.getDataTable(t),r=n.query(e),o=r.getData().data,i=n.indexOf("_row_id"),a=r.indexOf("_row_id"),s=o.map(function(e){return e[a]});n._data=n._data.filter(function(e){return!s.includes(e[i])}),n.flushResults(),this.trigger("itemsRemoved",{rows:o,tableID:t}),r.dispose()},t.getDataTable=function(e){if(e){if(!this.dataTables[e])throw new Error("DataTable with id "+e+" is not found in the DataStore.");return this.dataTables[e]}return this._defaultDataTable},t.on=function(e,t){(0,i.addHandler)(e,t,this)},t.off=function(e,t){(0,i.removeHandler)(e,t,this)},t.trigger=function(e,t){(0,i.triggerEvent)(e,this,t)},t.dispose=function(){var e=this;for(var t in e.dataTables)e.dataTables.hasOwnProperty(t)&&(e.dataTables[t].dispose(),delete e.dataTables[t]);delete e._id,delete e.dataTables,delete e._defaultDataTable,this.trigger("disposed"),e=null},t._propagate=function(e){for(var t in this.trigger("payloadReceived",e),this.dataTables)this.dataTables.hasOwnProperty(t)&&this.dataTables[t]._payloadReceiver(e)},e}();t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=n(405),i=n(411),a=r(n(412)),s=function(){function e(e,t,n,r,o,i,a){this._dataStore=e,this._parentTable=o,this._children=[],this._childrenTableIDs=[],this._opsFunnel=i,this._data=t||[],this._schema=n,this._config=r,this._id=a;var s,l=1;if(this._id||(s=this._parentTable&&this._parentTable._id?this._parentTable._id:"table_1",this._id=s+"_"+l),this._parentTable){for(;this._parentTable._childrenTableIDs.includes(this._id);)this._id=s?s+"_"+ ++l:this._id+"_1";this._parentTable._children.push(this),this._parentTable._childrenTableIDs.push(this._id)}this._result=null}var t=e.prototype;return t.count=function(){return this._executeFunnel().data.length},t.getSchema=function(){return this._executeFunnel().schema},t.getID=function(){return this._id},t.getDataStore=function(){return this._dataStore},t.getChildren=function(e){if(e){for(var t=0;t0?r+o:o),schema:n.schema}},t.dispose=function(){var e=this;if(e._parentTable&&e._parentTable._children){var t;for(t=0;t=0;e--)this._children[e].dispose();this._children=[],this._childrenTableIDs=[]},t.min=function(e){var t=this.getData();return(0,o.columnMinValue)(e,t.data,t.schema)},t.max=function(e){var t=this.getData();return(0,o.columnMaxValue)(e,t.data,t.schema)},t.unique=function(e){var t=this.getData();return(0,o.columnUnique)(e,t.data,t.schema)},t.extents=function(e){var t=this.getData();return(0,o.columnExtents)(e,t.data,t.schema)},t.addColumns=function(){for(var e=arguments.length,t=new Array(e),n=0;n0){var l=(0,o.addColumnsSchema)(this._result.schema,this._calcColumns);this._result.schema=l.schema,this._result.data=(0,o.addColumnsData)(this._result.data,this._result.schema,l.calcColumns),delete this._calcColumns}return this._result},t.flushResults=function(){var e=this._result&&this._result.schema.length||0,t=this._children&&this._children.length||0;e&&(this._calcColumns=[]);for(var n=0;n0){var a;i=Number.POSITIVE_INFINITY;for(var s=0;s0){var a;i=Number.NEGATIVE_INFINITY;for(var s=0;si&&(i=a)}return i},t.columnMinDiff=function(e,t,n,r){var a,s,l=t,c=t.length;if(null===(a=u(e,n))||-1===a)return null;if(n[a]&&["date","number"].indexOf(n[a].type)<0)throw new Error("Operation valid only on date or number columns");if(r&&e===r||(l=t.slice(0)).sort(function(e,t){return(0,i.numberComparator)(e[a],t[a])}),l&&c>0){var d,h,p;s=Number.POSITIVE_INFINITY;for(var f=0;f=0&&d0)for(var l=0;la&&(a=r);return{min:i,max:a}},t.columnUnique=function(e,t,n){var r,o=u(e,n),i=[];if(null===o||-1===o)return[];for(var a=0;a0?1===(r=Array.from(new Set(i))).length&&"undefined"==typeof r[0]?[]:r:[]},t.addColumnsSchema=function(e,t){for(var n=t.length,r=e.slice(0),o=0;o0){var o,i=n,a=t.findIndex(function(e){return"_row_id"===e.name});i||(i=h(t)),-1===a&&(a=t.push({name:"_row_id",type:"string"})-1);for(var s=0;s0)n.indexBy=c[0];else{for(o=0;o>1);l(d,e[h])<0?u=h:c=h+1}while(cc;--p)e[p]=e[p-1];e[c]=d}}function o(e,t,n,r){var o=n+1;if(o===r)return 1;if(t(e[o++],e[n])<0){for(;o=0;)o++;return o-n}function i(e,t,n,r,o,i){var a,s,l=0,c=0,u=1;if(i(e,t[n+o])>0){for(c=r-o;u0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=o,u+=o}else{for(c=o+1;uc&&(u=c),a=l,l=o-u,u=o-a}for(l++;l>>1))])>0?l=s+1:u=s;return u}function a(e,t,n,r,o,i){var a,s,l=0,c=0,u=1;if(i(e,t[n+o])<0){for(c=o+1;uc&&(u=c),a=l,l=o-u,u=o-a}else{for(c=r-o;u=0;)l=u,(u=1+(u<<1))<=0&&(u=c);u>c&&(u=c),l+=o,u+=o}for(l++;l>>1))])<0?u=s:l=s+1;return u}t.__esModule=!0,t.binaryInsertionSort=r,t.mergeSort=function e(t,n){var r,o,i,a=n;if(t.constructor!==Array)throw new TypeError("Merge sort can only be applied on Array.");return 1===t.length?t:(a||(a=function(e,t){return e-t}),r=Math.floor(t.length/2),o=t.slice(0,r),i=t.slice(r),function(e,t,n){for(var r=[],o=0,i=0;o>>1:256,this.tmp=new Array(this.tmpStorageLen),this.runBaseArr=new Array(40),this.runLenArr=new Array(40),this.minGallop=7,this.stackSize=0}var t=e.prototype;return t.pushRun=function(e,t){this.runBaseArr[this.stackSize]=e,this.runLenArr[this.stackSize]=t,this.stackSize++},t.mergeCollapse=function(){for(var e;this.stackSize>1;){if((e=this.stackSize-2)>=1&&this.runLenArr[e-1]<=this.runLenArr[e]+this.runLenArr[e+1]||e>=2&&this.runLenArr[e-2]<=this.runLenArr[e]+this.runLenArr[e-1])this.runLenArr[e-1]this.runLenArr[e+1])break;this.mergeAt(e)}},t.mergeForceCollapse=function(){for(var e;this.stackSize>1;)(e=this.stackSize-2)>0&&this.runLenArr[e-1]=7||l>=7);if(c)break;o<0&&(o=0),o+=2}if(this.minGallop=o,o<1&&(this.minGallop=1),1===f){for(u=0;u=0;u--)this.arr[v+u]=this.arr[m+u];if(0===d){c=!0;break}}if(this.arr[g--]=this.tmp[f--],1==--h){c=!0;break}if(0!==(l=h-i(this.arr[p],this.tmp,0,h,h-1,this.comparer))){for(h-=l,v=1+(g-=l),m=1+(f-=l),u=0;u=7||l>=7);if(c)break;o<0&&(o=0),o+=2}if(this.minGallop=o,o<1&&(this.minGallop=1),1===h){for(v=1+(g-=d),m=1+(p-=d),u=d-1;u>=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[f]}else for(m=g-(h-1),u=0;u=0;u--)this.arr[v+u]=this.arr[m+u];this.arr[g]=this.tmp[f]}else for(m=g-(h-1),u=0;u=64;)t|=1&n,n>>=1;return n+t}(a),u=new s(e,f);do{(l=o(e,f,h,h+a))=0)return u=p(n,c),i&&i.indexBy===e?s(c,r,a,u).fn(d,n,i):{data:d,schema:n,config:i,generatorFn:function(){return d.filter(function(e){return u(e,r)>=0&&u(e,a)<=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColEquals=l,t.equals=function(e,t){var n=t;return{ops:"equals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){n=e},fn:function(t,r,i,a){var s,c,u=t;if(a&&(u=a.call()),(s=(0,o.columnIndexOf)(e,r))>=0)return c=p(r,s),i&&i.indexBy===e?l(s,n,c).fn(u,r,i):{data:u,schema:r,config:i,generatorFn:function(){return u.filter(function(e){return 0===c(e,n)})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColLess=c,t.less=function(e,t){var n=t;return{ops:"less",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){n=e},fn:function(t,r,i,a){var s,l,u=t;if(a&&(u=a.call()),(s=(0,o.columnIndexOf)(e,r))>=0)return l=p(r,s),i&&i.indexBy===e?c(s,n,l).fn(u,r,i):{data:u,schema:r,config:i,generatorFn:function(){return u.filter(function(e){return l(e,n)<0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColLessEquals=u,t.lessEquals=function(e,t){var n=t;return{ops:"lessEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){n=e},fn:function(t,r,i,a){var s,l,c=t;if(a&&(c=a.call()),(s=(0,o.columnIndexOf)(e,r))>=0)return l=p(r,s),i&&i.indexBy===e?u(s,n,l).fn(c,r,i):{data:c,schema:r,config:i,generatorFn:function(){return c.filter(function(e){return l(e,n)<=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColGreater=d,t.greater=function(e,t){var n=t;return{ops:"greater",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){n=e},fn:function(t,r,i,a){var s,l,c=t;if(a&&(c=a.call()),(s=(0,o.columnIndexOf)(e,r))>=0)return l=p(r,s),i&&i.indexBy===e?d(s,n,l).fn(c,r,i):{data:c,schema:r,config:i,generatorFn:function(){return c.filter(function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,n)>0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}},t.indexColGreaterEquals=h,t.greaterEquals=function(e,t){var n=t;return{ops:"greaterEquals",type:i.OperatorTypes.GenericFilter,_updateArgs:function(e){n=e},fn:function(t,r,i,a){var s,l,c=t;if(a&&(c=a.call()),(s=(0,o.columnIndexOf)(e,r))>=0)return l=p(r,s),i&&i.indexBy===e?h(s,n,l).fn(c,r,i):{data:c,schema:r,config:i,generatorFn:function(){return c.filter(function(e){return null!==e[s]&&"undefined"!=typeof e[s]&&l(e,n)>=0})}};throw new Error("Column '"+e+"' is not found in the schema.")}}};var r=n(416),o=n(405),i=n(417),a=n(407);function s(e,t,n,o){var s=t,l=n,c=o;return{ops:"indexColBetween",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e,t){s=e,l=t},fn:function(t,n,o,i){var u,d,h,f=t;return i&&(f=i.call()),c||(c=p(n,e)),h="interval"===n[e].type?function(t,n){return(0,a.numberComparator)(t[e].end,n)}:c,u=(0,r.leftMostExactOrGreater)(s,f,c,0,f.length),d=(0,r.rightMostExactOrLesser)(l,f,h,u,f.length),{data:f,schema:n,config:o,generatorFn:function(){return f.slice(u,d+1)}}}}}function l(e,t,n){var o=t,a=n;return{ops:"indexColEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){o=e},fn:function(t,n,i,s){var l,c,u=t;return s&&(u=s.call()),a||(a=p(n,e)),(l=(0,r.leftMostExactOrGreater)(o,u,a,0,u.length))>=u.length||0!==a(u[l],o)?{data:[],schema:n,config:i}:(c=(0,r.rightMostExactOrLesser)(o,u,a,l,u.length),{data:u,schema:n,config:i,generatorFn:function(){return u.slice(l,c+1)}})}}}function c(e,t,n){var o=t,a=n;return{ops:"indexColLess",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){o=e},fn:function(t,n,i,s){var l,c=t;return s&&(c=s.call()),a||(a=p(n,e)),l=(0,r.leftMostExactOrGreater)(o,c,a,0,c.length),{data:c,schema:n,config:i,generatorFn:function(){return c.slice(0,l)}}}}}function u(e,t,n){var o=t,a=n;return{ops:"indexColLessEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){o=e},fn:function(t,n,i,s){var l,c=t;return s&&(c=s.call()),a||(a=p(n,e)),l=(0,r.rightMostExactOrLesser)(o,c,a,0,c.length),{data:c,schema:n,config:i,generatorFn:function(){return c.slice(0,l+1)}}}}}function d(e,t,n){var o=t,a=n;return{ops:"indexColGreater",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){o=e},fn:function(t,n,i,s){var l,c,u=t;return s&&(u=s.call()),a||(a=p(n,e)),l=(0,r.rightMostExactOrLesser)(o,u,a,0,u.length),c=(0,r.leftMostExactOrGreater)(null,u,a,l,u.length),{data:u,schema:n,config:i,generatorFn:function(){return u.slice(l+1,c)}}}}}function h(e,t,n){var o=t,a=n;return{ops:"indexColGreaterEquals",type:i.OperatorTypes.IndexOpsFilter,_updateArgs:function(e){o=e},fn:function(t,n,i,s){var l,c,u=t;return s&&(u=s.call()),a||(a=p(n,e)),l=(0,r.leftMostExactOrGreater)(o,u,a,0,u.length),c=(0,r.leftMostExactOrGreater)(null,u,a,l,u.length),{data:u,schema:n,config:i,generatorFn:function(){return u.slice(l,c)}}}}}var p=function(e,t){switch(e[t].type){case"interval":return function(e,n){return(0,a.numberComparator)(e[t].start,n)};case"number":case"date":return function(e,n){return(0,a.numberComparator)(e[t],n)};default:return function(e,n){return(0,a.stringComparator)(String(e[t]).toLowerCase(),String(n).toLowerCase())}}}},function(e,t,n){"use strict";t.__esModule=!0,t.leftMostExactOrGreater=function(e,t,n,r,o){for(var i=r,a=o;i0?a=s:i=s+1}return i-1}},function(e,t,n){"use strict";t.__esModule=!0,t.OperatorTypes=void 0,t.OperatorTypes={IndexOpsFilter:0,GenericFilter:1,GroupBy:2,Sort:3,Select:4}},function(e,t,n){"use strict";t.__esModule=!0,t.select=function(e,t){var n=e,i=t;return n=n&&n.constructor!==Array?[n]:n,{ops:"select",type:r.OperatorTypes.Select,fn:function(e,t,r,a){var s,l,c=[],u=[];if(n)if((i=i||{exclude:!1}).exclude)for(s=0;s-1&&!u.includes(l)&&(c.push(t[l]),u.push(l));else c=t;return{data:e,schema:c,config:r,generatorFn:function(){var t=u.length;if(t>0){var n,r,o,i=[];for(n=0;n=a[0].end){var l;switch(r.duration.Unit){case"Month":case"Quarter":case"Year":l=(0,i.getDateStart)(n,r.duration,r.enableUTC,r.weekStartFrom,o);break;default:l=n-(n-o)%r.duration.ms}a=[(0,s.interval)(l,r)],e.push(a)}return a}function v(){var e={};return function(t,n,r){if(!e[t]){var i=(0,o.columnIndexOf)(t,n),a=n[i];if(void 0===a)throw new Error("incorrect column name in config - "+t);e[t]=a,e[t].column=t,e[t].index=i,"date"===a.type&&r&&(e[t].peaks=(0,o.columnExtents)(t,r,n))}return e[t]}}function y(e,t,n,r,o,a,l,c,u,d){var h,p,f,g,m="",v=[],y=n.length,C=c;if(e.length>0){for(h=0;he[p.index])return C;switch(n[h].timeUnit.name){case"Month":case"Quarter":case"Year":a[h].value=(0,i.getDateStart)(e[p.index],a[h].intervalConfig.duration,a[h].intervalConfig.enableUTC,a[h].intervalConfig.weekStartFrom,a[h].startValFloorVal);break;default:a[h].value=e[p.index]-(e[p.index]-a[h].startValFloorVal)%a[h].intervalConfig.duration.ms}m+=a[h].value+"-"}else v[h]=e[p.index],m+=e[p.index]+"-";if(l[m=m.slice(0,-1)]>=0)v=u[l[m]],f=l[m];else{for(var w in l[m]=C++,a)g=(0,s.interval)(a[w].value,a[w].intervalConfig),v[w]=g;u.push(v),f=u.length-1}return d[f]=d[f]||{},v&&b(e,t,v,y,r,o,d[f]),C}}function b(e,t,n,r,o,i,a){var s,c,u,d,h=o.length;for(d=0;d0&&(S=p.enableUTC||(0,c.getConfig)("enableUTC"),"date"===p.type&&(C=(0,a.duration)(r.timeUnit,Math.abs(r.binSize)||1),e[0]&&e[0][p.index]&&e[k-1]&&e[k-1][p.index]||(E=(0,o.columnExtents)(r.column,e,t,n.indexBy)),O=e[0]&&e[0][p.index]||E.min,(A=r.startValue&&parseInt(r.startValue,10))?A>=O?(w=(0,i.getDateStart)(A,(0,a.duration)(r.timeUnit,1),S,r.weekStartFrom),D=(0,d.leftMostExactOrGreater)(w,e,function(e,t){return(0,h.numberComparator)(e[p.index],t)},0,e.length)):w=(0,i.getDateStart)(O,C,S,r.weekStartFrom,A):w=(0,i.getDateStart)(O,(0,a.duration)(r.timeUnit,1),S,r.weekStartFrom),y=e[k-1]&&e[k-1][p.index]||E.max),void 0===w||w<=y)){var L={duration:C,outputFormat:r.outputFormat,enableUTC:S,weekStartFrom:r.weekStartFrom};for(void 0!==w&&(x=[(0,s.interval)(w,L)],T.push(x)),M=D;M0&&("date"===p.type?x=m(T,x,e[M][p.index],L,w):"string"!==p.type&&"number"!==p.type||(x=g(T,x,e[M][p.index])),_=T.length-1,N[_]=N[_]||{},x&&b(e[M],t,x,1,l,P,N[_]))}return{data:T,schema:u,config:{indexBy:r.outputAs||r.column}}}(p,t,l,n[0],r):function(e,t,n,r,o){var s,l,u,d,h,p=[],g=[],m=!0,b=e.length,C=r.length,w={},x=[],_=v(),S={},M=0;for(h=0;h=l.peaks.max&&(m=!1),w[h]=Object.assign({},l),w[h].intervalConfig={duration:(0,a.duration)(r[h].timeUnit,Math.abs(r[h].binSize)||1),outputFormat:r[h].outputFormat,enableUTC:l.enableUTC||(0,c.getConfig)("enableUTC"),weekStartFrom:r[h].weekStartFrom},u=parseInt(r[h].startValue,10)||l.peaks.min,w[h].startValFloorVal=u&&(0,i.getDateStart)(u,(0,a.duration)(r[h].timeUnit,1),w[h].intervalConfig.enableUTC,w[h].intervalConfig.weekStartFrom,parseInt(r[h].startValue,10)),w[h].max=l.peaks.max)),g[h]=l,d||r[h].column!==n.indexBy||(d=r[h].outputAs||r[h].column);if(s=f(t,g,o,_),m&&b>0)for(h=0;h1?" - "+e.format(new Date(this.end-1)):"");case"Week":case"Quarter":return e.format(new Date(this.start))+" - "+e.format(new Date(this.end-1))}},t.dateRangeCaclulator=function(e,t,n,r,o){var i,a,s;return void 0===o&&(o=!1),i=e,o&&((s=Object.assign({},t)).number=1,i=h(i,s,n,r)),a=p(i,t.Unit,t.number,n),{startDate:i,endDate:a}},t.getDateStart=h,t.getDateOffset=p;var i=o(n(421)),a=o(n(429)),s=n(293),l=r(n(285)),c={Year:"%Y",Month:"%b %Y",Day:"%b %d, %Y",Hour:"%b %d, %Y %H hrs",Minute:"%b %d, %Y %H:%M",Second:"%b %d, %Y %H:%M:%S",Millisecond:"%b %d, %Y %H:%M:%S:%L"},u={Millisecond:i.timeMillisecond,Second:i.timeSecond,Minute:i.timeMinute,Hour:i.timeHour,Day:i.timeDay,Week:{0:i.timeSunday,1:i.timeMonday,2:i.timeTuesday,3:i.timeWednesday,4:i.timeThursday,5:i.timeFriday,6:i.timeSaturday},Month:i.timeMonth,Quarter:i.timeQuarter,Year:i.timeYear},d={Millisecond:a.utcMillisecond,Second:a.utcSecond,Minute:a.utcMinute,Hour:a.utcHour,Day:a.utcDay,Week:{0:a.utcSunday,1:a.utcMonday,2:a.utcTuesday,3:a.utcWednesday,4:a.utcThursday,5:a.utcFriday,6:a.utcSaturday},Month:a.utcMonth,Quarter:a.utcQuarter,Year:a.utcYear};function h(e,t,n,r,o){var i,a=void 0!==n&&n?d[t.Unit]:u[t.Unit],l=r;if(l&&!s.Weekdays[l.name])throw new Error("Invalid weekStartFrom provided: "+l);return 1===t.number?"Week"===t.Unit?+a[(l=l||s.Weekdays.Sunday).id].floor(new Date(e)):+a.floor(new Date(e)):o?"Week"===t.Unit?(i=a[(l=l||s.Weekdays.Sunday).id].count(o,e)%t.number)?p(+a[l.id].floor(e),t.Unit,-i,n):+a[l.id].floor(e):(i=a.count(o,e)%t.number)?p(+a.floor(e),t.Unit,-i,n):+a.floor(e):"Week"===t.Unit?+a[(l=l||s.Weekdays.Sunday).id].every(t.number).floor(new Date(e)):+a.every(t.number).floor(new Date(e))}function p(e,t,n,r,o){switch(t){case"Month":case"Quarter":case"Year":return+(void 0!==r&&r?d[t]:u[t]).offset(new Date(e),n);default:return e+s.DatetimeUnits[t].ms*n}}},function(e,t,n){"use strict";var r=n(215);t.__esModule=!0;var o=r(n(422));t.timeMillisecond=o.default,t.millisecondObj=o.millisecondObj;var i=r(n(424));t.timeSecond=i.default,t.secondObj=i.secondObj;var a=r(n(425));t.timeMinute=a.default,t.minuteObj=a.minuteObj;var s=r(n(426));t.timeHour=s.default,t.hourObj=s.hourObj;var l=r(n(289));t.timeDay=l.default,t.dayObj=l.dayObj;var c=r(n(296));t.timeWeek=c.default,t.timeSunday=c.sunday,t.timeMonday=c.monday,t.timeTuesday=c.tuesday,t.timeWednesday=c.wednesday,t.timeThursday=c.thursday,t.timeFriday=c.friday,t.timeSaturday=c.saturday,t.weekObj=c.weekObj;var u=r(n(427));t.timeQuarter=u.default,t.quarterObj=u.quarterObj;var d=r(n(428));t.timeMonth=d.default,t.monthObj=d.monthObj;var h=r(n(297));t.timeYear=h.default,t.yearObj=h.yearObj},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.millisecondObj=t.default=void 0;var o=r(n(423)),i=n(292),a={name:"millisecond",floor:function(e){return e},offset:function(e,t,n,r){var o=t>0,a={date:new Date(Number(e))},s=new Date(Number(a.date));return new Date(Number(o?(0,i.clampDownDateWithinClip)(a.date,new Date(Number(s.setTime(Number(s)+Number(t)))),n,r):(0,i.clampUpDateWithinClip)(a.date,new Date(Number(s.setTime(Number(s)+Number(t)))),n,r)))},count:function(e,t,n){var r=(0,i.getValidDatesWithin)(n,e,t),o=0,a=(0,i.getClampRangesAround)(n,t);return(r=(0,i.getClipArray)(a,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t-e-o}},s=new o.default(a);t.millisecondObj=a;var l=s;t.default=l},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(290)),a=n(292),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.prototype.every=function(e){var t=Math.floor(e);return this.count&&Number.isFinite(t)&&t>0?t>1?new i.default({name:"millisecond",floor:function(e,n,r){return new Date(Number((0,a.getFloor)(new Date(Number(e.setTime(Math.floor(e/t)*t))),n,r)))},offset:function(e,n,r,o){var i=n>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(i?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+n*t))),r,o):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+n*t))),r,o)))},count:function(e,n,r){var o=(0,a.getValidDatesWithin)(r,e,n),i=0,s=(0,a.getClampRangesAround)(r,n);return(o=(0,a.getClipArray)(s,o)).forEach(function(e){i+=Number(e.to)-Number(e.from)}),n-e-Math.floor(i/t)}}):this:null},t}(i.default);t.default=s},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.secondObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"second",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationSecond)*i.durationSecond))),t,n)))},offset:function(e,t,n,r){var o=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),n,r):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationSecond))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e)/i.durationSecond-Math.floor(o/i.durationSecond)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCSeconds(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCSeconds()-r.getUTCSeconds()-l/i.durationSecond}},l=new o.default(s);t.secondObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.minuteObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"minute",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setTime(Math.floor(e/i.durationMinute)*i.durationMinute))),t,n)))},offset:function(e,t,n,r){var o=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),n,r):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e)/i.durationMinute-Math.floor(o/i.durationMinute)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setMinutes(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getMinutes()-r.getMinutes()-Math.floor(l/i.durationMinute)}},l=new o.default(s);t.minuteObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.hourObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"hour",floor:function(e,t,n){var r=e.getTimezoneOffset()*i.durationMinute%i.durationHour;return r<0&&(r+=i.durationHour),new Date(Number((0,a.getFloor)(new Date(Number(e.setTime(Math.floor((Number(e)-r)/i.durationHour)*i.durationHour+r))),t,n)))},offset:function(e,t,n,r){var o=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),n,r):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e)/i.durationHour-Math.floor(o/i.durationHour)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setHours(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getHours()-r.getHours()-l/i.durationHour}},l=new o.default(s);t.hourObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.quarterObj=t.default=void 0;var o=r(n(290)),i=n(292),a=n(291),s={name:"quarter",floor:function(e,t,n){return e.setMonth(e.getMonth()-(e.getMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,a={date:new Date(Number(e))},s=new Date(Number(a.date));return new Date(Number(o?(0,i.clampDownDateWithinClip)(a.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),n,r):(0,i.clampUpDateWithinClip)(a.date,new Date(Number(s.setMonth(s.getMonth()+3*t))),n,r)))},count:function(e,t,n){var r=(0,i.getValidDatesWithin)(n,e,t),o=0,s=(0,i.getClampRangesAround)(n,t);return(r=(0,i.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t.getMonth()-(t.getMonth()+3)%3-(e.getMonth()-(e.getMonth()+3)%3)-Math.floor(o/a.durationMonth))/3+4*(t.getFullYear()-e.getFullYear())},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setMonth(0),r=(0,i.getFloor)(new Date(Number(s)),t,n),(0,i.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),Math.floor((e.getMonth()-r.getMonth()-Math.floor(l/a.durationMonth))/3)}},l=new o.default(s);t.quarterObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.monthObj=t.default=void 0;var o=r(n(290)),i=n(292),a=n(291),s={name:"month",floor:function(e,t,n){return e.setDate(1),new Date(Number((0,i.getFloor)(new Date(Number(e.setHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,a={date:new Date(Number(e))},s=new Date(Number(a.date));return new Date(Number(o?(0,i.clampDownDateWithinClip)(a.date,new Date(Number(s.setMonth(s.getMonth()+t))),n,r):(0,i.clampUpDateWithinClip)(a.date,new Date(Number(s.setMonth(s.getMonth()+t))),n,r)))},count:function(e,t,n){var r=(0,i.getValidDatesWithin)(n,e,t),o=0,s=(0,i.getClampRangesAround)(n,t);return(r=(0,i.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t.getMonth()-e.getMonth()-Math.floor(o/a.durationMonth)+12*(t.getFullYear()-e.getFullYear())},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setMonth(0),r=(0,i.getFloor)(new Date(Number(s)),t,n),(0,i.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getMonth()-r.getMonth()-Math.floor(l/a.durationMonth)}},l=new o.default(s);t.monthObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(215);t.__esModule=!0,t.default=void 0;var o=r(n(422));t.utcMillisecond=o.default,t.millisecondObj=o.millisecondObj;var i=r(n(424));t.utcSecond=i.default,t.secondObj=i.secondObj;var a=r(n(430));t.utcMinute=a.default,t.utcMinuteObj=a.utcMinuteObj;var s=r(n(431));t.utcHour=s.default,t.utcHourObj=s.utcHourObj;var l=r(n(294));t.utcDay=l.default,t.utcDayObj=l.utcDayObj;var c=r(n(295));t.utcWeek=c.default,t.utcSunday=c.utcSunday,t.utcMonday=c.utcMonday,t.utcTuesday=c.utcTuesday,t.utcWednesday=c.utcWednesday,t.utcThursday=c.utcThursday,t.utcFriday=c.utcFriday,t.utcSaturday=c.utcSaturday,t.utcWeekObj=c.utcWeekObj;var u=r(n(432));t.utcQuarter=u.default,t.utcQuarterObj=u.utcQuarterObj;var d=r(n(433));t.utcMonth=d.default,t.utcMonthObj=d.utcMonthObj;var h=r(n(299));t.utcYear=h.default,t.utcYearObj=h.utcYearObj;var p={getInterval:function(e){switch(e+""){case"millisecond":return o.default;case"second":return i.default;case"minute":return a.default;case"hour":return s.default;case"day":return l.default;case"week":return c.default;case"sunday":return c.utcSunday;case"monday":return c.utcMonday;case"tuesday":return c.utcTuesday;case"wednesday":return c.utcWednesday;case"thursday":return c.utcThursday;case"friday":return c.utcFriday;case"saturday":return c.utcSaturday;case"quarter":return u.default;case"month":return d.default;case"year":return h.default}}};t.default=p},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcMinuteObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"minute",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCSeconds(0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,s={date:new Date(e)},l=new Date(JSON.parse(JSON.stringify(s)).date);return new Date(Number(o?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),n,r):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationMinute))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e)/i.durationMinute-Math.floor(o/i.durationMinute)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCMinutes(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCMinutes()-r.getUTCMinutes()-Math.floor(l/i.durationMinute)}},l=new o.default(s);t.utcMinuteObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcHourObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"hour",floor:function(e,t,n){return new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCMinutes(0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,s={date:new Date(Number(e))},l=new Date(Number(s.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),n,r):(0,a.clampUpDateWithinClip)(s.date,new Date(Number(l.setTime(Number(l)+t*i.durationHour))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t-e)/i.durationHour-Math.floor(o/i.durationHour)},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTChours(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCHours()-r.getUTCHours()-Math.floor(l/i.durationHour)}},l=new o.default(s);t.utcHourObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcQuarterObj=t.default=void 0;var o=r(n(290)),i=n(292),a=n(291),s={name:"quarter",floor:function(e,t,n){return e.setUTCMonth(e.getUTCMonth()-(e.getUTCMonth()+3)%3,1),new Date(Number((0,i.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,a={date:new Date(Number(e))},s=new Date(Number(a.date));return new Date(Number(o?(0,i.clampDownDateWithinClip)(a.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),n,r):(0,i.clampUpDateWithinClip)(a.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+3*t))),n,r)))},count:function(e,t,n){var r=(0,i.getValidDatesWithin)(n,e,t),o=0,s=(0,i.getClampRangesAround)(n,t);return(r=(0,i.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),(t.getUTCMonth()-(t.getUTCMonth()+3)%3-(e.getUTCMonth()-(e.getUTCMonth()+3)%3)-Math.floor(o/a.durationMonth))/3+4*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCMonth(0),r=(0,i.getFloor)(new Date(Number(s)),t,n),(0,i.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),Math.floor(e.getUTCMonth()-r.getUTCMonth()-Math.floor(l/a.durationMonth))}},l=new o.default(s);t.utcQuarterObj=s;var c=l;t.default=c},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.utcMonthObj=t.default=void 0;var o=r(n(290)),i=n(291),a=n(292),s={name:"month",floor:function(e,t,n){return e.setUTCDate(1),new Date(Number((0,a.getFloor)(new Date(Number(e.setUTCHours(0,0,0,0))),t,n)))},offset:function(e,t,n,r){var o=t>0,i={date:new Date(Number(e))},s=new Date(Number(i.date));return new Date(Number(o?(0,a.clampDownDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),n,r):(0,a.clampUpDateWithinClip)(i.date,new Date(Number(s.setUTCMonth(s.getUTCMonth()+t))),n,r)))},count:function(e,t,n){var r=(0,a.getValidDatesWithin)(n,e,t),o=0,s=(0,a.getClampRangesAround)(n,t);return(r=(0,a.getClipArray)(s,r)).forEach(function(e){o+=Number(e.to)-Number(e.from)}),t.getUTCMonth()-e.getUTCMonth()-Math.floor(o/i.durationMonth)+12*(t.getUTCFullYear()-e.getUTCFullYear())},field:function(e,t,n){var r,o={date:new Date(Number(e))},s=new Date(Number(o.date)),l=0;return s.setUTCMonth(0),r=(0,a.getFloor)(new Date(Number(s)),t,n),(0,a.getValidDatesWithin)(t,new Date(Number(r)),o.date).forEach(function(e){l+=Number(e.to)-Number(e.from)}),e.getUTCMonth()-r.getUTCMonth()-Math.floor(l/i.durationMonth)}},l=new o.default(s);t.utcMonthObj=s;var c=l;t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.duration=function(e,t){var n=t;if(!e||!r.DatetimeUnits[e.name])throw new Error("Invalid Unit provided: "+e);return n=Math.abs(n)||1,{Unit:e.name,number:n,ms:e.ms*n}};var r=n(293)},function(e,t,n){"use strict";t.__esModule=!0,t.interval=function(e,t,n){if(void 0===n&&(n=!1),t.duration.ms){var i=(0,o.dateRangeCaclulator)(e,t.duration,t.enableUTC,t.weekStartFrom||r.Weekdays.Sunday,n),a=i.startDate,s=i.endDate;return t.outputFormat=t.outputFormat||(0,o.getDefaultOutputFormat)(t.duration.Unit),{start:a,end:s,config:t,toString:o.dateIntervalToString}}};var r=n(293),o=n(420)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(437),o={store:{},_defaultAggregators:{sum:r.sum,avg:r.avg,count:r.count,min:r.min,max:r.max,first:r.first,last:r.last,variance:r.variance,stddev:r.stddev},register:function(e,t){return this.store[e]=t,this},getRegisteredAggregations:function(){return Object.assign(this.store)},getDefaultAggregations:function(){return Object.assign(this._defaultAggregators)},resolve:function(e){return this._defaultAggregators[e]||this.store[e]}};t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.stddev=t.variance=t.last=t.first=t.max=t.min=t.count=t.avg=t.sum=void 0;var r=function(e,t,n){return((n-1)*e+t)/n},o=function(e,t,n){var o,i=t,a=0;return e&&(i=e.avg,a=e.variance),o=i,n>1&&(a=(a*(n-2)+(t-(i=r(i,t,n)))*(t-o))/(n-1)),{avg:i,variance:a}};t.stddev=function(e,t,n){var r,i;return e&&(r={avg:e.avg,variance:e.stddev*e.stddev}),{avg:(i=o(r,t,n)).avg,stddev:Math.sqrt(i.variance)}},t.variance=o,t.last=function(e,t){return t},t.first=function(e,t){return null===e?t:e},t.max=function(e,t){return null!==e?et?t:e:t},t.count=function(e){return e+1},t.avg=r,t.sum=function(e,t){return e+t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=" --fcsep-- "},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e,t=[],n=[],i=[],a=function(e,t){for(var n=[],r=e.length,i=0;i0&&(0,o.binaryInsertionSort)(n,function(e,t){return e.type-t.type}),n},s=arguments.length,l=new Array(s),c=0;c=3&&e[r].type===t[t.length-1].type&&t.pop(),t.push(e[r]);return t}(t))};var r=n(417),o=n(408)},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=n(417),i=n(405),a=n(407),s=r(n(408));t.default=function(e){var t=e;return{ops:"sort",type:o.OperatorTypes.Sort,_updateArgs:function(e){t=e},fn:function(e,n,r,o){var l=e;return{data:l,schema:n,config:t.constructor===Array&&t.length?{indexBy:t[0].column}:t.constructor===Object?{indexBy:t.column}:void 0,generatorFn:function(){var e;if(o&&(l=o.call()),t.constructor===Function)e=t;else{t.constructor!==Array&&(t=[t]);var r,c,u,d=[],h=[];for(r=0;r0&&(k=w.enableUTC||(0,u.getConfig)("enableUTC"),"date"===w.type&&(E=(0,s.duration)(r.timeUnit,Math.abs(r.binSize)||1),e[0]&&e[0][C]&&e[I-1]&&e[I-1][C]||(N=(0,i.columnExtents)(r.column,e,t,n.indexBy)),L=e[0]&&e[0][C]||N.min,(R=r.startValue&&parseInt(r.startValue,10))?R>=L?(O=(0,a.getDateStart)(R,(0,s.duration)(r.timeUnit,1),k,r.weekStartFrom),z=(0,f.leftMostExactOrGreater)(O,e,function(e,t){return(0,p.numberComparator)(e[C],t)},0,e.length)):O=(0,a.getDateStart)(L,E,k,r.weekStartFrom,R):O=(0,a.getDateStart)(L,(0,s.duration)(r.timeUnit,1),k,r.weekStartFrom),S=e[I-1]&&e[I-1][C]||N.max),void 0===O||O<=S)){var V={duration:E,outputFormat:r.outputFormat,enableUTC:k,weekStartFrom:r.weekStartFrom};for(void 0!==O&&(A=[(0,l.interval)(O,V)],F.push(A)),D=z;D0&&("date"===w.type?A=(0,h._singleSortedAddRowDate)(F,A,e[D][C],V,O):"string"!==w.type&&"number"!==w.type||(A=(0,h._singleSortedAddRow)(F,A,e[D][C])),T=F.length-1,j[T]=j[T]||{},A&&m(e[D],t,A,1,o,x,y,B,j[T]))}return{data:F,schema:v,config:{indexBy:r.outputAs||r.column}}}(e,t,n,r[0],v,o):function(e,t,n,r,o,a,s){var l,c,u,d,f,m,v,y,b,C,w={},x={},_=function(e){return x.hasOwnProperty(e)?x[e]:-1},S=function(e,t){x[e]=t},M=function(e,t,n,r){return e+g.default+(t||n+(r?g.default+r:""))},E=[];switch(l=(0,h.default)(o.concat({column:s}),a),c=l.fn(e,t,n,r),d=(0,i.columnUnique)(s,e,t),v=(0,i.columnIndexOf)(s,c.schema),c.schema[v].type){case"number":case"date":u=p.numberComparator;break;default:u=p.stringComparator}return f=d&&d.sort(function(e,t){return u(e,t)})||[],m=c.schema.filter(function(e){return e.name!==s}),y=m.length,b=o.map(function(e){return e.outputAs||e.column}),C=function(){for(var e,t=[],n=function(n){if(b.includes(m[n].name))t.push(m[n]),w[m[n].name]=n;else{e=a.filter(function(e){return(e.outputAs||e.column+(e.operation?g.default+e.operation:""))===m[n].name})[0];for(var r=0;r0&&(E=function(e){var t,n,r,o,i,l=[],u=e.length,d={},h={},p="";for(t=0;t-1){var f=l[r];for(var m in h)f[m]=h[m]}else{var y=new Array(u);for(var b in h)y[b]=h[b];l.push(y),S(p,l.length-1)}}return l}(C)),{data:E,schema:C,config:{indexBy:c.config.indexBy===s?void 0:c.config.indexBy}}}(e,t,n,d,r,v,o)}}}},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0;var o=r(n(436));t.aggregatorStore=o.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(444);t.before=r.before,t.after=r.after;var o=n(445);t.parseDate=o.parseDate,t.formatDate=o.formatDate;var i=n(434);t.duration=i.duration;var a=n(293);t.DatetimeUnits=a.DatetimeUnits,t.Weekdays=a.Weekdays},function(e,t,n){"use strict";t.__esModule=!0,t.before=function(e,t,n,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,r.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,-e.number,n,i||o.Weekdays.Sunday)},t.after=function(e,t,n,i){if(!e)throw new Error("duration is missing");if(t&&(isNaN(t)||isNaN(+new Date(t))))throw new Error("timestamp is incorrect");return(0,r.getDateOffset)(isNaN(t)||null===t?+new Date:t,e.Unit,e.number,n,i||o.Weekdays.Sunday)};var r=n(420),o=n(293)},function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.parseDate=function(e,t,n){var r,i;if(t&&(r=void 0!==n&&n?o.default.utcParser(t):o.default.parser(t),i=(i=r.parse(e))&&i.getTime()),i||(i=void 0!==n&&n?+new Date(e+"Z"):+new Date(e)),!i)throw new Error("Incorrect string or format provided");return i},t.formatDate=function(e,t,n){var r,i,a=t;if(isNaN(parseInt(e,10)))throw new Error("Timestamp must be a number: "+e);if(a||(a="%a, %-d %b %Y, %H:%M:%S:%L"),r=void 0!==n&&n?o.default.utcFormatter(a):o.default.formatter(a),!(i=r.format(new Date(e))))throw new Error("Incorrect format provided: "+a);return i};var o=r(n(285))},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={column2d:"charts",column3d:"charts",bar2d:"charts",bar3d:"charts",pie2d:"charts",pie3d:"charts",line:"charts",area2d:"charts",doughnut2d:"charts",doughnut3d:"charts",pareto2d:"charts",pareto3d:"charts",mscolumn2d:"charts",mscolumn3d:"charts",msline:"charts",msarea:"charts",msbar2d:"charts",msbar3d:"charts",stackedcolumn2d:"charts",marimekko:"charts",stackedcolumn3d:"charts",stackedarea2d:"charts",stackedcolumn2dline:"charts",stackedcolumn3dline:"charts",stackedbar2d:"charts",stackedbar3d:"charts",msstackedcolumn2d:"charts",mscombi2d:"charts",mscombi3d:"charts",mscolumnline3d:"charts",mscombidy2d:"charts",mscombidy3d:"charts",mscolumn3dlinedy:"charts",stackedcolumn2dlinedy:"charts",stackedarea2dlinedy:"charts",stackedcolumn3dlinedy:"charts",msstackedcolumn2dlinedy:"charts",scatter:"charts",bubble:"charts",ssgrid:"charts",scrollbar2d:"charts",scrollcolumn2d:"charts",scrollcolumn3d:"charts",scrollline2d:"charts",scrollarea2d:"charts",scrollstackedcolumn2d:"charts",scrollstackedbar2d:"charts",scrollcombi2d:"charts",scrollmsstackedcolumn2d:"charts",scrollmsstackedcolumn2dlinedy:"charts",scrollcombidy2d:"charts",spline:"charts",splinearea:"charts",msspline:"charts",mssplinearea:"charts",mssplinedy:"charts",multiaxisline:"powercharts",multilevelpie:"powercharts",sunburst:"powercharts",waterfall2d:"powercharts",msstepline:"powercharts",inversemsline:"powercharts",inversemscolumn2d:"powercharts",inversemsarea:"powercharts",errorbar2d:"powercharts",errorscatter:"powercharts",errorline:"powercharts",logmsline:"powercharts",logmscolumn2d:"powercharts",logstackedcolumn2d:"powercharts",radar:"powercharts",chord:"powercharts",dragnode:"powercharts",candlestick:"powercharts",selectscatter:"powercharts",dragcolumn2d:"powercharts",dragline:"powercharts",dragarea:"powercharts",boxandwhisker2d:"powercharts",kagi:"powercharts",heatmap:"powercharts",sankey:"powercharts",angulargauge:"widgets",bulb:"widgets",cylinder:"widgets",drawingpad:"widgets",funnel:"widgets",hbullet:"widgets",hled:"widgets",hlineargauge:"widgets",vlineargauge:"widgets",pyramid:"widgets",realtimearea:"widgets",realtimecolumn:"widgets",realtimeline:"widgets",realtimelinedy:"widgets",realtimestackedarea:"widgets",realtimestackedcolumn:"widgets",sparkcolumn:"widgets",sparkline:"widgets",sparkwinloss:"widgets",thermometer:"widgets",vbullet:"widgets",vled:"widgets",zoomline:"zoomline",zoomlinedy:"zoomline",gantt:"gantt",treemap:"treemap",zoomscatter:"zoomscatter",overlappedbar2d:"overlappedbar2d",overlappedcolumn2d:"overlappedcolumn2d",msstackedcolumn2dsplinedy:"msstackedcolumn2dsplinedy",timeseries:"timeseries"}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218),o={};t.default=function(e){var t=e;if(!o[t]){var n=document.getElementsByTagName("head")[0],i=document.createElement("script"),a=setTimeout(function(){i.onerror({type:"timeout",target:i})},12e4);i.charset="utf-8",i.timeout=12e4,o[t]=new Promise(function(e,t){i.onreadystatechange=function(){"loaded"===i.readyState&&i.onload({})},i.onload=function(t){i.onerror=i.onload=null,clearTimeout(a),e(t)},i.onerror=function(e){i.onerror=i.onload=null,clearTimeout(a),t(e)}}),(0,r.isXSSSafe)(t,!1)||(t="function"==typeof window.encodeURIComponent?window.encodeURIComponent(t):window.escape(t)),i.src=t,n.appendChild(i)}return o[t]}},function(e,t){(function(t){e.exports=t}).call(this,{})}]).default,(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[2],{1042:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){!function(e){var t=e.getChildren("colorManager");e.getFromEnv("dataSource").colorrange?t?(e.addToEnv("colorManager",t[0]),t[0].configure()):(t=new o.default,e.attachChild(t,"colorManager"),e.addToEnv("colorManager",t),t.configure()):(t&&(t[0].config.legendItemIds=[]),e.deleteFromEnv("colorManager"))}(e)};var o=r(n(1043))},1043:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=r(n(1044)),s=r(n(1045)),l=n(218);function c(e){var t=e||p;return(0,l.getValidColor)(t)||p}var u,d,h="rgba(192,192,192,"+(l.isIE?.002:1e-6)+")",p="#000000",f=((d={}).legendCarpetConf={spreadFactor:.85,allowDrag:!1,captionAlignment:"center",padding:{v:3,h:3},style:{fill:"#e4d9c1",stroke:"#c4b89d"}},d.legendCaptionConf={spreadFactor:.2,padding:{v:2,h:2},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"bold",fontStyle:"normal"},bound:{style:{stroke:"none"}}},d.legendBodyConf={spreadFactor:.8,padding:{v:2,h:2},bound:{style:{stroke:"none"}}},d.legendAxisConf={legendAxisHeight:11,spreadFactor:.4,padding:{v:1,h:1},style:{stroke:"none","stroke-opacity":0,"stroke-width":1},line:{grooveLength:3,offset:8,style:{stroke:"rgba(255, 255, 255, 0.65)","stroke-width":1.5}},shadow:{style:{stroke:"none",fill:(0,l.toRaphaelColor)({FCcolor:{alpha:"25,0,0",angle:360,color:"000000,FFFFFF,FFFFFF",ratio:"0,30,40"}})}},bound:{style:{stroke:"none"}}},d.sliderGroupConf={showTooltip:1,outerCircle:{rFactor:1.4,style:{fill:h,stroke:"#757575","stroke-width":3}},innerCircle:{rFactor:.65,style:{fill:h,stroke:"#FFFFFF"}}},d.axisTextItemConf={spreadFactor:.3,padding:{v:1,h:1},style:{fill:"#786B50",fontFamily:"sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal"}},{init:function(e){u=e.chart},legacyDataParser:function(e,t){var n,r,o,i,a,s,d,h,p,f,g,m,v,y={},b=u.getFromEnv("number-formatter"),C=u.getFromEnv("dataSource"),w=C.data,x=t||{};if(!e)return!1;for("maps"!==u.defaultDatasetType||void 0!==x.min&&void 0!==x.max?"HeatMap"!==u.getName()||void 0!==x.min&&void 0!==x.max||(x={min:1/0,max:-1/0},C.dataset.forEach(function(e){e.data&&e.data.forEach(function(e){x.min=Math.min(x.min,(0,l.pluckNumber)(e.value,x.min)),x.max=Math.max(x.max,(0,l.pluckNumber)(e.value,x.max))})})):(x={min:1/0,max:-1/0},w&&w.forEach(function(e){x.min=Math.min(x.min,(0,l.pluckNumber)(e.value,x.min)),x.max=Math.max(x.max,(0,l.pluckNumber)(e.value,x.min))})),y.mapByPercent=g=!!(0,l.pluckNumber)(e.mapbypercent,0),n=e.color||[],void 0===e.minvalue&&(e.minvalue=void 0!==x.min?g?0:x.min:0),void 0===e.maxvalue&&(e.maxvalue=void 0!==x.max?g?100:x.max:100),e.maxvalue!==e.minvalue&&x.min!==1/0&&x.max!==-1/0||(e.minvalue=0,e.maxvalue=100),m=!1,a=0,d=n.length;a"+g.dataLabels(h):g.dataLabels(h)+"-"+g.dataLabels(d)):(e.minvalue=h=x,d=g.getCleanValue(e.maxvalue),e.rangeLabel=h===-1/0?"<"+g.dataLabels(d):g.dataLabels(h)+"-"+g.dataLabels(d))}),v.sort(l),v&&(t=v.length)){for(_.length=0,n=0;n=h||f&&p)&&_.push({code:r,alpha:o||"100",oriAlpha:o,maxvalue:d,minvalue:h,label:(0,a.parseUnsafeString)(p),labelId:p.toLowerCase(),bordercolor:s,borderAlpha:i,name:c.name});this.sortedColorArr=this.colorArr.slice(0)}else this.noValidRange=!0,this.colorArr=[],this.sortedColorArr=[]}},n.getColorObj=function(e){if(void 0===e)return{outOfRange:!0};var t,n,r=this.sortedColorArr,o=this.gradient?1:0,i=r[o],s=e;if(this.mapByCategory){for(s=(0,a.parseUnsafeString)(s).toLowerCase()||s.toString().toLowerCase();i;){if(i.labelId===s||i.maxvalue>=s&&i.minvalue<=s)return{code:i.code,alpha:i.alpha||"100",oriAlpha:i.oriAlpha,seriesIndex:o,legendItemId:i.legendItemId};i=r[o+=1]}return{outOfRange:!0}}if(this.gradient){if(this.scaleMin<=s&&this.scaleMax>=s){for(;i&&i.maxvaluei.maxvalue&&o===r.length-1)return{code:i.code,alpha:i.alpha||"100",oriAlpha:i.oriAlpha,seriesIndex:o,name:i.name,label:i.label,outOfRange:!0,bordercolor:i.bordercolor,borderalpha:i.borderAlpha};if(i.maxvalue>s&&i.minvalue<=s)return{code:i.code,alpha:i.alpha||"100",oriAlpha:i.oriAlpha,seriesIndex:o,name:i.name,label:i.label,bordercolor:i.bordercolor,borderalpha:i.borderAlpha};if(s===i.maxvalue&&(t={code:i.code,alpha:i.alpha||"100",oriAlpha:i.oriAlpha,seriesIndex:o,name:i.name,label:i.label,bordercolor:i.bordercolor,borderalpha:i.borderAlpha}),o===r.length-1&&t)return t;i=r[o+=1]}return r.length?void 0:{outOfRange:!0}},n.getColorRangeArr=function(e,t){var n,r,o,i,s,l,c,u,d=[],h=e,p=t;if(!this.defaultAsigned&&(h>p&&(n=h,h=p,p=n),hi[n]){r=!0;break}if(e>i[n]&&ei[n]){r=!0;break}if(e>i[n]&&ea.props.height+a.props.y||(r=a.props.y+a.props.height)),o&&o.config&&o.config.text&&o.config.text!==d.BLANKSTRING&&o.config.height&&1===o.config.isOnTop&&(r=o.config.height+o.config.y+o.config.captionPadding),i&&i.config&&i.config.height&&1===i.config.isOnTop&&(r=i.config.y+i.config.height+(o&&o.config&&o.config.captionPadding||0)),r>e?r:e},t.allocatePosition=function(){var e,t,n,r,o,i,a,s,l=this.getFromEnv("chart"),c=l.config,u=this.conf||{},d=u.legendPosition.split("-"),h=c.canvasLeft,p=c.canvasTop,f=c.canvasWidth,g=c.canvasHeight,m=c.marginTop,v=c.marginBottom,y=c.marginRight,b=c.marginLeft;u.axisTextItemConf.style.fontSize=this.computeFontSize(u.axisTextItemConf.style.fontSizeWithUnit),u.legendCaptionConf.style.fontSize=this.computeFontSize(u.legendCaptionConf.style.fontSizeWithUnit),l.config.gLegendEnabled&&(e=this.getCalculatedLogicalSpace(),n=u.width=e.width,r=u.height=e.height,"absolute"===d[0]?(a=c.width-n,s=c.height-r,o=u.legendXPosition<0?0:u.legendXPosition>a?a:u.legendXPosition,i=u.legendYPosition<0?0:u.legendYPosition>s?s:u.legendYPosition):"top"===d[0]||"bottom"===d[0]?(t=f-n,o="left"===d[1]?h:"right"===d[1]?h+(t>0?t:0):h+(t<0?0:t/2),i="top"===d[0]?this._calculateTopPosition(m):c.height-e.height-v-(c.actionBarHeight||0)):(t=g-r,i="top"===d[1]?p:"bottom"===d[1]?p+t:p+(t<0?0:t/2),o="left"===d[0]?b:c.width-e.width-y),u.xPos=o,u.yPos=i)},t.draw=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("dataSource").colorrange,n=this.conf||{},r=e.hasGradientLegend;e.config.gLegendEnabled&&t&&r&&this.drawLegendComponent(n.xPos,n.yPos,{parentGroup:e.getContainer("parentgroup"),animationManager:e.getFromEnv("animationManager")})},t.drawLegendComponent=function(e,t,n){var r,o=this.conf;this._dontPlot||(o.showLegend?(this.drawOptions.animationManager=n.animationManager,this.drawOptions.parentGroup=n.parentGroup,this.drawOptions.x=e,this.drawOptions.y=t,this.drawOptions.maxOtherSide=this.drawOptions.maxOtherSide||n.maxOtherSide,r=this.elem.gl.draw(this.drawOptions).getBBox(),o.xPos=r.x,o.yPos=r.y,o.height=r.height,o.width=r.width,this.enabled=!0):this.enabled=!1)},n}(h.ComponentInterface),_=function(){function e(e){this.carpet=e}var t=e.prototype;return t.draw=function(e){return this.carpet.draw(e)},t.getLogicalSpace=function(e,t){return this.carpet.getLogicalSpace(e,t)},t.dispose=function(){this.carpet&&this.carpet.group&&this.carpet.group.remove()},e}(),S=function(){function e(e){this.conf=e,this._id="GL_CARPET",this.compositionsByCategory={},this.node=o,this.group=o,this._lSpace=o,this.autoRecalculate=!1,this.groupName="fc-gradient-legend",this.moveInstructions={}}var t=e.prototype;return t.configure=function(e){this.conf=e},t.getName=function(){return"LegendCarpet"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.removeCompositions=function(e){delete this.compositionsByCategory[e]},t.getBoundingBox=function(e){var t,n,r=this.conf,i=r.spreadFactor,a=e.refSide,s=e.alignment,l=e.refOffset,c=e.x,u=e.y;return"bottom"===this.conf.legendPosition?(t=r.width=a*i,n=e.maxOtherSide,!s||c!==o&&null!==c||(c=(l+a)/2-t/2)):(n=r.height=a*i,t=e.maxOtherSide,!s||u!==o&&null!==u||(u=(l+a)/2-n/2)),{width:t,height:n,x:c,y:u}},t.getPostCalcDecisionsH=function(e,t){var n,r=this.conf.padding,o=0;for(n in this.moveInstructions={},t)o+=t[n].height||0;e.height=o+2*r.v},t.getLogicalSpace=function(e,t){var n,r,o,i,a,s=this._lSpace,l=["CAPTION","LEGEND_BODY"],c=this.conf.padding,u=this.compositionsByCategory,d=0,h={},p=0;if(s&&!t)return s.isImpure=!0,s;(w((s=this._lSpace=r=this.getBoundingBox(e)).x)||w(s.y)||w(s.height)||w(s.width))&&(this.autoRecalculate=!0),(o=y(r,{})).height-=2*c.v,o.width-=2*c.h,o.x+=c.h,o.y+=c.v;for(var f=0;f=3?(s=arguments[0],l=arguments[1],c=arguments[2]):arguments.length>=2&&(s=arguments[0],c=arguments[1]),e=c.parentLayer,d=c.animationManager,this.group=t=d.setAnimation({el:this.group||"group",attr:{name:"legend-caption"},css:h.style,component:a,container:e}),this.getLogicalSpace(l,c),u=(o=this._lSpace).node,r=o.bound,this.bound=n=d.setAnimation({el:this.bound||"rect",attr:r,css:p.style,container:t,component:a}),i="string"==typeof s?this.LegendCaption[s.toUpperCase()].x(u.smartText,l||u.logicArea):s,this.node=d.setAnimation({el:this.node||"text",attr:{text:u.smartText.text,x:i,y:u.logicArea.y+u.smartText.height/2,lineHeight:this._metaStyle.lineHeight,fill:h.style.fill},container:t,component:a}),{group:t,bound:n,node:this.node}},t.dispose=function(){this.group.remove(),this.bound.remove(),this.node.remove()},e}(),E=function(){function e(e,t,n){this.colorRange=e,this.conf=t,this.childTextConf=n,this._id="GL_BODY",this.bound=o,this.group=o,this.compositionsByCategory={},this._lSpace=o,this.SC_STACK=[p.AXIS_LABEL,p.LEGEND_AXIS,p.AXIS_VALUE],this.DARW_STACK=[p.AXIS_VALUE,p.LEGEND_AXIS,p.AXIS_LABEL]}var t=e.prototype;return t.configure=function(e,t,n){this.colorRange=e,this.conf=t,this.childTextConf=n,this.compositionsByCategory={}},t.getName=function(){return"LegendBody"},t.getType=function(){return"legend"},t.addCompositions=function(e,t){this.compositionsByCategory[t]=e},t.getSpaceTaken=function(e){return"bottom"===this.conf.legendPosition?e.height:e.width},t.getLogicalSpace=function(e,t,n){var r,i,a,s,l,c,u,d=this._lSpace,h=this.conf.padding,p=this.compositionsByCategory,f=0;if(d&&!n)return d.isImpure=!0,d;for(d=this._lSpace={bound:{height:0,width:0},node:{logicArea:o}},(s=y(e,{})).height-=2*h.v,s.width-=2*h.h,s.x+=h.h,s.y+=h.v,l=this.getCompositionPlotAreaFor(s),t.colorRange=this.colorRange,c=0,u=this.SC_STACK.length;c=3?(i=arguments[1],l=arguments[2]):arguments.length>=2&&(l=arguments[1]),t=l.parentLayer,e=l.animationManager,this.getLogicalSpace(i,l),s=this._lSpace,this.group=o=e.setAnimation({el:this.group||"group",attr:{name:"legend-body",transform:"t0,0"},css:d.style,container:t,component:a}),this.bound=n=e.setAnimation({el:this.bound||"rect",attr:s.bound,css:h,container:o,component:a}),l.colorRange=this.colorRange,l.parentLayer=o,c=0,u=this.DARW_STACK.length;c1?(f[F[l-1].oriIndex]-f[F[0].oriIndex])/2*T/100:Math.max(f[F[0].oriIndex],100-f[F[0].oriIndex])/2*T/100,k?((E=i.getSmartText(F[0].label,m,w.height)).x=f[F[0].oriIndex]*w.width/100,c=E.x+E.width):((E=i.getSmartText(F[0].label,m,w.width)).y=f[F[0].oriIndex]*w.height/100,c=E.y+E.width),L.push(E.height),v[F[0].oriIndex]=E,k?((E=i.getSmartText(F[l-1].label,m,w.height)).x=f[F[l-1].oriIndex]*w.width/100,u=E.x-E.width):((E=i.getSmartText(F[l-1].label,m,w.width)).y=f[F[l-1].oriIndex]*w.height/100,u=E.y-E.width),L.push(E.height),v[F[l-1].oriIndex]=E,M=c,s=1;s2*x.width&&(k?(E=i.getSmartText(p,g,w.height)).x=f[O]*w.width/100:(E=i.getSmartText(p,g,w.width)).y=f[O]*w.height/100,M=g,L.push(E.height)),v[F[s].oriIndex]=E;return b=Math.max.apply(Math,L),k?(w.height=b,e.height=b+2*N.v):(w.width=b,e.width=b+2*N.v),D.node.logicArea=w,D.bound=e,e},t.draw=function(){var e,t,n,r,o,i,s,l,c,u,d,h,p="bottom"===this.conf.legendPosition,f=this.conf,g=f.bound&&f.bound.style||{stroke:"none"},m={};arguments.length>=2&&arguments[1]?(r=arguments[0],s=arguments[1]):arguments.length>=1&&(s=arguments[0]),h=s.animationManager,e=s.parentLayer,this.getLogicalSpace(r,s),c=(i=this._lSpace).node.logicArea,u=i.node.smartTexts,this.group=n=h.setAnimation({el:this.group||"group",attr:{name:"legend-labels"},container:e,component:a}),this.bound=t=h.setAnimation({el:this.bound||"rect",attr:i.bound,css:g,container:n,component:a});for(var v=0;v=2?(t=arguments[0],h=arguments[1]):arguments.length>=1&&(h=arguments[0]),f=h.animationManager,e=h.parentLayer,o=(r=h.colorRange).getCumulativeValueRatio(),this.getLogicalSpace(t,h),d=this._lSpace,this.group=s=f.setAnimation({el:this.group||"group",attr:{name:"legend-axis"},container:e,component:a}),this.bound=f.setAnimation({el:this.bound||"rect",attr:d.bound,css:b,component:a,container:s}),u=this.getDrawableAxisArea(d.node.logicArea),c=this.getColorGradient(r),m.style.fill=c.axis,m.shadow.style.fill=c.shadow,this.node=f.setAnimation({el:this.node||"rect",attr:u,css:m.style,container:s,component:a}),this.shadow=f.setAnimation({el:this.shadow||"rect",attr:u,css:m.shadow.style,container:s,component:a}),g=this.getScaleMarkerPathStr(u,o),this.path=f.setAnimation({el:this.path||"path",attr:{path:g},css:y.style,container:s,component:a}),C)switch(i=C[n],n){case p.RANGE:h[(l=this.preDrawingRangeParam(u)).prop]=l[l.prop],h.key=l.prop,h.rCalcBase=l.calculationBase,h.parentLayer=s,i.draw(l.rangeStart,l.rangeEnd,h)}},t.getScaleMarkerPathStr=function(e,t){return"bottom"===this.conf.legendPosition?this.getScaleMarkerPathStrH(e,t):this.getScaleMarkerPathStrV(e,t)},t.getColorGradient=function(e){return"bottom"===this.conf.legendPosition?this.getColorGradientH(e):this.getColorGradientV(e)},t.getScaleMarkerPathStrV=function(e,t){var n,r,o,i,a,s=y(e,{}),l=this.conf.line,c=d.BLANKSTRING,u=d.BLANKSTRING;for(s.y+=s.r,s.height-=2*s.r,i=s.x+s.width,n=0,o=t.length;nh&&(p-=g-h),a.attr({transform:e?"t0,"+(i.currPos+p):"t"+(i.currPos+p)+",0"}),n=p,r&&clearTimeout(r),r=setTimeout(function(){l.updateWhenInRest(i,i.currPos+p)},100),f=l.updateWhenInMove(i,i.currPos+p),i.conf.showTooltip&&i.tracker.data("__FC_tooltipText",f),o=!0,!0},dragStart:function(e){e.stopPropagation(),t=i.swing,o=!1,l.dragStarted(i)},dragEnd:function(){var e;l.dragCompleted(i,o,i.currPos+n),o&&(r&&clearTimeout(r),r=setTimeout(function(){l.updateWhenInRest(i,i.currPos)},100),i.currPos+=n,e=t[+s]+i.currPos,l.updateRange(i,e))}}},t.dispose=function(){this.node.remove(),this.oCircle.remove(),this.iCircle.remove(),this.tracker.remove()},e}(),k=function(){function e(e){var t=e,n={};this._id="GL_SG1",this.conf=e,n.conf=t,this.extremes=[],this.sliders={},this.min=o,this.max=o,n.sliderGroup=this,this.valueRange=[],this.callbacks=[],this.sliders[!1]=new T(!1,n,this._id+"_0"),this.sliders[!0]=new T(!0,n,this._id+"_1")}var t=e.prototype;return t.configure=function(e){var t=e,n={};this.min=o,this.max=o,this.conf=e,n.conf=t,n.sliderGroup=this,this.sliders[!1].configure(!1,n,this._id+"_0"),this.sliders[!0].configure(!0,n,this._id+"_1")},t.getType=function(){return"slider"},t.getName=function(){return"SliderGroup"},t.initRange=function(e,t){var n=e.sliderIndex;this.extremes[+n]=t},t.updateRange=function(e,t){var n=e.sliderIndex;this.sliders[!n].updateSwingRange(n,t)},t.reset=function(){var e={};e.conf=this.conf,e.sliderGroup=this,this.min=o,this.max=o,this.sliders[!1].configure(!1,e,this._id+"_0"),this.sliders[!0].configure(!0,e,this._id+"_1"),this.draw.apply(this,this._drawParams)},t.draw=function(e,t,n){var r,o,i,a,s,l,c=this.sliders,u=c[!1],d=c[!0],h=n.colorRange,p=h.colorRange,f=h.data.mapByPercent,g=n.gLegend.getFromEnv("number-formatter");return this._fcChart=n.gLegend.getFromEnv("chart"),this.getValueFormPixel=function(e,t,n,r){var o=(t-e)/(r-n);this.getValueFormPixel=function(t){return e+o*t}},this.updateWhenInMove=function(e,t){this.updateWhenInMove=function(n,r){var o,i,a=this.extremes;return o=n.sliderIndex?a[1]-a[0]+r:r,i=this.getValueFormPixel(o),t?parseFloat(i).toFixed(2)+"%":e.legendValue(i)}},this._drawParams=[e,t,n],this.updateWhenInMove(g,f),i=u.conf.outerCircle,o=u.conf.innerCircle,a=Math.ceil(o.rFactor*n.rCalcBase/2),a+=Math.ceil(i.style["stroke-width"]/2),this.extremes[0]=e+a,this.extremes[1]=t-a,s=this.extremes[1]-this.extremes[0],this.min=this.min?this.min:p[0].value,this.max=this.max?this.max:p[p.length-1].value,l=p[p.length-1].value-p[0].value,u.currPos=s*(this.min-p[0].value)/l,d.currPos=s*(this.max-p[0].value)/l-s,u.draw(e,f?g.legendPercentValue(this.min):g.legendValue(this.min),n[n.key],n),r=d.draw(t,f?g.legendPercentValue(this.max):g.legendValue(this.max),n[n.key],n),u.swing=this.extremes.slice(0),d.swing=this.extremes.slice(0),u.swing[1]+=d.currPos,d.swing[0]+=u.currPos,this.getValueFormPixel(p[0].value,p[p.length-1].value,this.extremes[0],this.extremes[1]),r},t.updateWhenInRest=function(e,t){var n,r,o=this.sliders,i=this.extremes,a=e.sliderIndex;a?(n=o[!a].currPos,r=i[1]-i[0]+t):(n=t,r=i[1]-i[0]+o[!a].currPos),this.min=Number(this.getValueFormPixel(n).toFixed(2)),this.max=Number(this.getValueFormPixel(r).toFixed(2)),this.gLegend.fireEvent("rangeUpdated",[{min:this.min,max:this.max}])},t.dragStarted=function(e){var t=this.sliders,n=this.extremes,r=e.conf,o=this._fcChart;o.fireChartInstanceEvent("legendpointerdragstart",{pointerIndex:+e.sliderIndex,pointers:[{value:this.getValueFormPixel(t.false.currPos)},{value:this.getValueFormPixel(n[1]-n[0]+t.true.currPos)}],legendPointerHeight:r.outerRadius,legendPointerWidth:r.innerRadius,outerRadius:r.outerRadius,innerRadius:r.innerRadius},[o.id])},t.dragCompleted=function(e,t,n){var r,o,i=this.sliders,a=this.extremes,s=e.conf,l=this.getValueFormPixel(i.false.currPos),c=this.getValueFormPixel(a[1]-a[0]+i.true.currPos),u=this._fcChart;e.sliderIndex?(r=l,o=this.getValueFormPixel(a[1]-a[0]+n)):(r=this.getValueFormPixel(n),o=c),t&&u.fireChartInstanceEvent("legendrangeupdated",{previousMinValue:l,previousMaxValue:c,minValue:r,maxValue:o},[u.id]),u.fireChartInstanceEvent("legendpointerdragstop",{pointerIndex:+e.sliderIndex,pointers:[{value:r},{value:o}],legendPointerHeight:s.outerRadius,legendPointerWidth:s.innerRadius,outerRadius:s.outerRadius,innerRadius:s.innerRadius},[u.id])},t.dispose=function(){this.sliders[!1].dispose(),this.sliders[!0].dispose()},e}(),D=function(e){function t(){var t;return(t=e.call(this,arguments[0])||this)._id="GL_VALUES",t.node=[],t}(0,u.default)(t,e);var n=t.prototype;return n.configure=function(e){this.conf=e},n.getName=function(){return"LegendValues"},n.getType=function(){return"legend"},n.getLogicalSpace=function(e,t,n){var r,i,a,s,l,c,u,d,h,p,f,g,m,v,b,w,x,_,S,M,E,O,A,T,k,D="bottom"===this.conf.legendPosition,P=this._lSpace,N=this.conf,L=N.padding,R=t.gLegend.getFromEnv("chartConfig"),F=[],I=[];if(P&&!n)return P.isImpure=!0,P;for(r=t.colorRange,i=t.smartLabel,a=r.colorRange,u=r.getCumulativeValueRatio(),k=(P=this._lSpace={bound:{height:0,width:0},node:{logicArea:o,smartTexts:[]}}).node.smartTexts,(M=y(e,{})).height-=2*L.v,M.width-=2*L.h,M.x+=L.h,M.y+=L.v,i.useEllipsesOnOverflow(R.useEllipsesWhenOverflow),T=y(N.style,{}),C(this._metaStyle=T),i.setStyle(T),A=i.getSmartText("W"),c=a.length,D?(f=d=(u[c-1]-u[0])/2*M.width/100,O=a[0].displayValue,(s=i.getSmartText("string"!=typeof O&&O!==o&&O.toString()||O,f,M.height)).x=u[0]*M.width/100,g=s.x+s.width,F.push(s.height)):(f=d=(u[c-1]-u[0])/2*M.height/100,(s=i.getSmartText(a[0].displayValue,M.width,f)).y=u[0]*M.height/100,b=s.y+s.width,I.push(s.width)),k[0]=s,D?((s=i.getSmartText(a[c-1].displayValue,f,M.height)).x=u[c-1]*M.width/100,v=s.x-s.width,F.push(s.height),m=g):((s=i.getSmartText(a[c-1].displayValue,M.width,f)).y=u[c-1]*M.height/100,x=s.y-s.height,I.push(s.width),w=b),k[c-1]=s,l=1;l1.5*A.width&&((s=i.getSmartText(E,2*d,M.height)).x=u[l]*M.width/100,m=d,F.push(s.height))):(h=l+1===c-1?x:u[l+1]*M.height/100,p=u[l]*M.height/100,(d=Math.min(p-w,h-p))>2*A.height&&((s=i.getSmartText(E,M.width,2*d)).y=u[l]*M.height/100,w=d,I.push(s.width))),k[l]=s;return D?(_=Math.max.apply(Math,F),M.height=_,e.height=_+2*L.v):(S=Math.max.apply(Math,I),M.width=S,e.width=S+2*L.h),P.node.logicArea=M,P.bound=e,e},n.draw=function(){var e,t,n,r,o,i,s,l,c,u,d,h,p,f=this.conf,g="bottom"===f.legendPosition,m=f.bound&&f.bound.style||{stroke:"none"},v={};arguments.length>=2&&arguments[1]?(r=arguments[0],s=arguments[1]):arguments.length>=1&&(s=arguments[0]),p=s.animationManager,e=s.parentLayer,l=s.colorRange.getCumulativeValueRatio(),this.getLogicalSpace(r,s),i=(o=this._lSpace).node.logicArea,d=o.node.smartTexts,this.group=n=p.setAnimation({el:this.group||"group",attr:{name:"legend-values"},container:e,component:a}),this.bound=t=p.setAnimation({el:this.bound||"rect",attr:o.bound,css:m,container:n,component:a});for(var y=0;y=0||e<0&&t<0?r+=180:e>0&&t<0&&(r+=360),{radius:n,theta:i(r)}},l=function(e,t,n){void 0===n&&(n=!0);var r=t;return n||(r=i(r)),{x:e*Math.cos(r),y:e*Math.sin(r)}};t.getPlotFromPixel=function(e,t){var n,r,o=e.x,i=e.y,l=t.getScale();return r=s(o,i),n=l.getDomainValue(r.theta),a(n)},t.getCoordinates=function(e,t){var n,r,i=t.getScale(),a=e.radius,s=t.config,c=s.axisDimention.centerX,u=s.axisDimention.centerY;return a=(0,o.default)(a,s.radius,0),n=i.getRangeValue(e.theta),(r=l(a,n)).x+=c,r.y+=u,r},t.polarToCartesian=l,t.cartesianToPolar=s,t.rad2Deg=a,t.deg2Rad=i},1056:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},1072:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(396)).default;t.default=o},1174:function(e,t,n){"use strict";t.__esModule=!0,t.symbolList=void 0;var r,o=(0,n(226).getDep)("redraphael","plugin"),i=Math.cos,a=Math.sin,s=Math.PI;t.symbolList=r,t.symbolList=r={pinModeIcon:function(e,t,n){var r=.5*n,o=e-n,i=e+n,a=e-r,s=e+r,l=e+.5,c=l+1,u=l+1.5,d=t-n,h=t+r,p=t-r,f=t+(n-r);return["M",o,d,"L",a,p,a,f,o,h,e-.5,h,e,t+n+.5,l,h,i,h,s,f,s,p,i,d,u,d,u,p,u,f,c,f,c,p,u,p,u,d,"Z"]},zoomOutIcon:function(e,t,n){var r=e-.2*n,s=t-.2*n,l=.8*n,c=o.rad(43),u=o.rad(48),d=r+l*i(c),h=s+l*a(c),p=r+l*i(u),f=s+l*a(u),g=n,m=o.rad(45);return["M",d,h,"A",l,l,0,1,0,p,f,"Z","M",d+1,h+1,"L",d+g*i(m),h+g*a(m),p+g*i(m),f+g*a(m),p+1,f+1,"Z","M",r-2,s,"L",r+2,s,"Z"]},resetIcon:function(e,t,n){var r=n,o=e-r,l=t,c=(s/2+s)/2,u=e+r*i(c),d=t+r*a(c),h=2*r/3;return["M",o,l,"A",r,r,0,1,1,u,d,"L",u+h,d-1,u+2,d+h-.5,u,d]},zoomInIcon:function(e,t,n){var r=e-.2*n,s=t-.2*n,l=.8*n,c=o.rad(43),u=o.rad(48),d=r+l*i(c),h=s+l*a(c),p=r+l*i(u),f=s+l*a(u),g=n,m=o.rad(45);return["M",d,h,"A",l,l,0,1,0,p,f,"Z","M",d+1,h+1,"L",d+g*i(m),h+g*a(m),p+g*i(m)-1,f+g*a(m)-1,p+1,f+1,"Z","M",r-2,s,"L",r+2,s,"Z","M",r,s-2,"L",r,s+2,"Z"]},zoomModeIcon:function(e,t,n){var r=[],s=e-.2*n,l=t-.2*n,c=.8*n,u=o.rad(43),d=o.rad(48),h=s+c*i(u),p=l+c*a(u),f=s+c*i(d),g=l+c*a(d),m=n,v=o.rad(45),y=h+m*i(v),b=p+m*a(v),C=f+m*i(v)-1,w=g+m*a(v)-1;return r.concat(["M",h,p,"A",c,c,0,1,0,f,g,"Z","M",h+1,p+1,"L",y,b,C,w,C+1,w-1,C+1.5,w+1.5,C-1,w+1,C,w,f+1,g+1,"Z","M",s-2,l,"L",s+2,l,"Z","M",s,l-2,"L",s,l+2,"Z"])},panModeIcon:function(e,t,n){var r,o=n;return[].concat(["M",(r=e)-(o*=2.5)/16,t-o/8,"L",r+o/16,t-o/8,"L",r+o/16,t-o/3.2,"L",r+6*o/32,t-10*o/32,"L",r,t-o/2,"L",r-6*o/32,t-10*o/32,"L",r-o/16,t-o/3.2,"Z","M",r+4*o/32,t-2*o/32,"L",r+10*o/32,t-2*o/32,"L",r+10*o/32,t-6*o/32,"L",r+16*o/32,t,"L",r+10*o/32,t+6*o/32,"L",r+10*o/32,t+2*o/32,"L",r+4*o/32,t+2*o/32,"Z","M",r+2*o/32,t+5*o/32,"L",r+2*o/32,t+10*o/32,"L",r+6*o/32,t+10*o/32,"L",r,t+16*o/32,"L",r-6*o/32,t+10*o/32,"L",r-2*o/32,t+10*o/32,"L",r-2*o/32,t+5*o/32,"Z","M",r-4*o/32,t-2*o/32,"L",r-10*o/32,t-2*o/32,"L",r-10*o/32,t-6*o/32,"L",r-16*o/32,t,"L",r-10*o/32,t+6*o/32,"L",r-10*o/32,t+2*o/32,"L",r-4*o/32,t+2*o/32,"Z"])}}},1215:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(618)),a=n(218),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"group"},n.getName=function(){return"columnOverlappedGroup"},n.setColumnPosition=function(){var e,t=this.getFromEnv("chart-attrib"),n=this.getFromEnv("xAxis"),r=this.getFromEnv("chart"),o=this.getFromEnv("numOfColumns"),i=Math.max((0,a.pluckNumber)(t.plotspacepercent),0),s=Math.max((0,a.pluckNumber)(i,20)%100,0),l=s/200,c=n.getPixel(0),u=n.getPixel(1),d=r.isBar?r.config.maxBarHeight:r.config.maxColWidth,h=Math.abs(u-c),p=!0,f=0,g=0;this.addToEnv("groupMaxWidth",h),this._mapChildren(function(e){e.getState("removed")||!1===e.getState("visible")||g++}),this.addToEnv("numOfColumns",g),this.addToEnv("numColDiff",(0,a.pluckNumber)(o-g,0)),void 0===(e=this.getFromEnv("plotWidth"))&&(e=(1-.01*i)*h||Math.min(h*(1-2*l),d*(g||1))),this._mapChildren(function(t){t.getState("removed")||!1===t.getState("visible")||(t.addToEnv("plotWidth",e-e/g*f),f++)}),u-NaN-(c-NaN+void 0)<4&&(p=!1),0===s&&(p=!0),this.addToEnv("isCrisp",p)},t}(i.default);t.default=s},1225:function(e,t,n){"use strict";(function(e){var r=n(1226),o=n(1227),i=n(1228);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;ho&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function P(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function L(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);othis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);D(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(6))},1226:function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(3*(a+s)/4-s),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},1227:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*g}},1228:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},452:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(453)),a=r(n(527)),s=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",a.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"SSCartesian"};var n=t.prototype;return n.getName=function(){return"SSCartesian"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!1,t.linethickness=4},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").data;if(!e||!e.length)return!0},n._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),n=e.dataset,r=e.data||n&&n[0].data;t[0].setTickValues(r)},t}(i.default);t.default=s},453:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(454)),a=n(218),s=r(n(469)),l=r(n(470)),c=r(n(520)),u=r(n(523)),d=r(n(525)),h=r(n(358)),p=n(356),f=Math.max,g=Math.min,m=function(e,t){return e0?t-e:0},v=function(e){var t=e.sender,n=e.data.scrollPosition,r=t.getChildren("xAxis")[0],o=r.config,i=r.getVisibleConfig(),a=i.maxValue-i.minValue,l=o.axisRange.max-a,c=(0,s.default)(o.axisRange.min,l),u=o.isReverse?c(1-n):c(n);r.setVisibleConfig(u,u+a)},y={wrtVisible:!0},b=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",l.default,["canvas"]),t.registerFactory("canvas",c.default),t.registerFactory("vCanvas",u.default,["axis"]),t.registerFactory("mouseTracker",d.default,["canvas"]),t.addEventListener("onScroll",v),t}(0,o.default)(t,e),t.getName=function(){return"Cartesian"};var n=t.prototype;return n.getName=function(){return"Cartesian"},n.getType=function(){return"chartAPI"},n._allocateXAxisLabelSpace=function(e){var t,n=this.config,r=e.getAxisEndLabelDisplaySpace(),o=r.left,i=r.right,a=r.top,s=r.bottom,l=n.availableWidth,c=n.availableHeight,u=n.canvasLeft,d=n.canvasRight,h=n.canvasTop,p=n.canvasBottom,f=n.width,g=n.height;a+s>c&&(a=c*a/(t=a+s),s=c*s/t),o+i>l&&(o=l*o/(t=o+i),i=l*i/t),o=m(u,o),i=m(f-d,i),a=m(h,a),s=m(g-p,s),this._allocateSpace({left:o,right:i,top:a,bottom:s})},n._setCategories=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("xAxis"),n=e.categories&&e.categories.length&&e.categories[0].category;t&&t[0].setTickValues(n)},n._feedAxesRawData=function(){var e,t,n=this.config,r=this.getFromEnv("dataSource");return e=this.getSpecificxAxisConf(),t=this.getSpecificyAxisConf(),e.vtrendlines=(0,a.extend2)([],r.vtrendlines),t.trendlines=(0,a.extend2)([],r.trendlines),n.isstacked&&(t.isPercent=(0,a.pluckNumber)(n.stack100percent,0)),{yAxisConf:[t],xAxisConf:[e]}},n.allocatePosition=function(){this.setScrollBarDimension()},n.setScrollBarDimension=function(){this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0]&&this.getChildren("scrollBar")[0].setDimension(this.getScrollbarDimension())},n.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config,n=this.config.is3D,r=this.getBasexAxisConf();return r.isReverse=t.reverseXAxis,r.axisLineColor=(0,a.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),r.showAlternateGridColor=(0,a.pluckNumber)(e.showalternatevgridcolor,0),r.numDivLines=(0,a.pluckNumber)(e.numvdivlines,t.numVDivLines),r.axisName=e.xaxisname,r.setAdaptiveMin=(0,a.pluckNumber)(e.setadaptivexmin,t.setadaptivexmin,t.setadaptivexmin),r.showLimits=(0,a.pluckNumber)(e.showvlimits,t.showvlimits),r.showDivLineValues=(0,a.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues,t.showvdivlinevalues),r.zeroPlaneThickness=(0,a.pluckNumber)(e.vzeroplanethickness,e.vdivlinethickness,t.zeroplanethickness,2),r.zeroPlaneAlpha=(0,a.pluckNumber)(e.vzeroplanealpha,e.vdivlinealpha,t.zeroplanealpha),r.showZeroPlaneValue=(0,a.pluckNumber)(e.showvzeroplanevalue,t.showzeroplanevalue),r.showAxisLine=n?0:(0,a.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,t.showxaxisline,0),r.maxLabelHeight=e.maxlabelheight,r.showZeroPlane=(0,a.pluckNumber)(e.showvzeroplane,t.showzeroplane),r},n.getSpecificyAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config,n=this.config.is3D,r=n?a.chartPaletteStr.chart3D:a.chartPaletteStr.chart2D,o=t.isInverse,i=this.getFromEnv("color-manager"),s=(0,a.pluckNumber)(e.showzeroplane,t.showzeroplane,1),l=(0,a.pluckNumber)(e.showzeroplanevalue,t.showzeroplanevalue),c=(0,a.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return s||void 0!==l||(l=0),{isVertical:!0,isReverse:!o,isOpposit:(0,h.default)(e.yaxisposition,"right"),outCanfontFamily:(0,a.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(c),outCanfontSizeWithUnit:c,outCancolor:(0,a.pluck)(e.outcnvbasefontcolor,e.basefontcolor,i.getColor(r.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisBreaks:e.yaxisbreaks,axisNamePadding:e.yaxisnamepadding,axisValuePadding:e.yaxisvaluespadding,axisNameFont:e.yaxisnamefont,axisNameFontSize:this.computeFontSize(e.yaxisnamefontsize),axisNameFontSizeWithUnit:e.yaxisnamefontsize,axisNameFontColor:e.yaxisnamefontcolor,axisNameFontBold:e.yaxisnamefontbold,axisNameFontItalic:e.yaxisnamefontitalic,axisNameBgColor:e.yaxisnamebgcolor,axisNameBorderColor:e.yaxisnamebordercolor,axisNameAlpha:e.yaxisnamealpha,axisNameFontAlpha:e.yaxisnamefontalpha,axisNameBgAlpha:e.yaxisnamebgalpha,axisNameBorderAlpha:e.yaxisnameborderalpha,axisNameBorderPadding:e.yaxisnameborderpadding,axisNameBorderRadius:e.yaxisnameborderradius,axisNameBorderThickness:e.yaxisnameborderthickness,axisNameBorderDashed:e.yaxisnameborderdashed,axisNameBorderDashLen:e.yaxisnameborderdashlen,axisNameBorderDashGap:e.yaxisnameborderdashgap,axisNameWidth:e.yaxisnamewidth,useEllipsesWhenOverflow:e.useellipseswhenoverflow,rotateAxisName:(0,a.pluckNumber)(e.rotateyaxisname,1),axisName:e.yaxisname,divLineColor:(0,a.pluck)(e.divlinecolor,i.getColor(r.divLineColor)),divLineAlpha:(0,a.pluck)(e.divlinealpha,n?i.getColor("divLineAlpha3D"):i.getColor("divLineAlpha")),divLineThickness:(0,a.pluckNumber)(e.divlinethickness,1),divLineIsDashed:Boolean((0,a.pluckNumber)(e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,a.pluckNumber)(e.divlinedashlen,4),divLineDashGap:(0,a.pluckNumber)(e.divlinedashgap,2),showAlternateGridColor:(0,a.pluckNumber)(e.showalternatehgridcolor,1),alternateGridColor:(0,a.pluck)(e.alternatehgridcolor,i.getColor("altHGridColor")),alternateGridAlpha:(0,a.pluck)(e.alternatehgridalpha,i.getColor("altHGridAlpha")),numDivLines:(0,a.pluckNumber)(e.numdivlines,t.numDivLines),axisMinValue:t.yRangeMin||e.yaxisminvalue,axisMaxValue:t.yRangeMax||e.yaxismaxvalue,setAdaptiveMin:(0,a.pluckNumber)(e.setadaptivesymin,e.setadaptiveymin,t.setAdaptiveMin),adjustDiv:e.adjustdiv,labelStep:e.yaxisvaluesstep,showAxisValues:(0,a.pluckNumber)(e.showyaxisvalues,e.showyaxisvalue,t.showyaxisvalues),showLimits:(0,a.pluckNumber)(e.showyaxislimits,e.showlimits,this.showLimits),showDivLineValues:(0,a.pluckNumber)(e.showdivlinevalues,e.showdivlinevalue,t.showdivlinevalues),showZeroPlane:s,zeroPlaneColor:e.zeroplanecolor,zeroPlaneThickness:(0,a.pluckNumber)(e.zeroplanethickness,e.divlinethickness,t.zeroplanethickness,2),zeroPlaneAlpha:(0,a.pluckNumber)(e.zeroplanealpha,e.divlinealpha,t.zeroplanealpha),showZeroPlaneValue:l,showZeroPlaneOnTop:t.showzeroplaneontop,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,showAxisLine:n?0:(0,a.pluckNumber)(e.showyaxisline,e.showaxislines,e.drawAxisLines,t.showyaxisline,0),axisLineThickness:(0,a.pluckNumber)(e.yaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,a.pluckNumber)(e.yaxislinealpha,e.axislinealpha,100),axisLineColor:(0,a.pluck)(e.yaxislinecolor,e.axislinecolor,"#000000"),forceTrendBelow:!!t.is3D,labelFont:e.yaxisvaluefont,labelFontSize:this.computeFontSize(e.yaxisvaluefontsize),labelFontSizeWithUnit:e.yaxisvaluefontsize,labelFontColor:e.yaxisvaluefontcolor,labelAlpha:e.yaxisvaluealpha,labelFontBold:e.yaxisvaluefontbold,labelFontItalic:e.yaxisvaluefontitalic,labelBdrColor:e.yaxisvaluebordercolor,labelBdrAlpha:e.yaxisvalueborderalpha,labelBgAlpha:e.yaxisvaluebgalpha,labelLink:e.yaxisvaluelink,labelBgColor:e.yaxisvaluebgcolor,labelBdrThickness:e.yaxisvalueborderthickness,labelBdrPadding:e.yaxisvalueborderpadding,labelBdrRadius:e.yaxisvalueborderradius,labelBdrDashed:e.yaxisvalueborderdashed,labelBdrDashLen:e.yaxisvalueborderdashlen,labelBdrDashGap:e.yaxisvalueborderdashgap}},n.getBasexAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config.is3D,n=t?a.chartPaletteStr.chart3D:a.chartPaletteStr.chart2D,r=this.getFromEnv("color-manager"),o=(0,a.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return{isVertical:!1,isOpposit:(0,h.default)(e.xaxisposition,"top"),outCanfontFamily:(0,a.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(o),outCanfontSizeWithUnit:o,outCancolor:(0,a.pluck)(e.outcnvbasefontcolor,e.basefontcolor,r.getColor(n.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:e.xaxisnamepadding,axisValuePadding:e.labelpadding,axisNameFont:e.xaxisnamefont,axisNameFontSize:this.computeFontSize(e.xaxisnamefontsize),axisNameFontSizeWithUnit:e.xaxisnamefontsize,axisNameFontColor:e.xaxisnamefontcolor,axisNameFontBold:e.xaxisnamefontbold,axisNameFontItalic:e.xaxisnamefontitalic,axisNameBgColor:e.xaxisnamebgcolor,axisNameBorderColor:e.xaxisnamebordercolor,axisNameAlpha:e.xaxisnamealpha,axisNameFontAlpha:e.xaxisnamefontalpha,axisNameBgAlpha:e.xaxisnamebgalpha,axisNameBorderAlpha:e.xaxisnameborderalpha,axisNameBorderPadding:e.xaxisnameborderpadding,axisNameBorderRadius:e.xaxisnameborderradius,axisNameBorderThickness:e.xaxisnameborderthickness,axisNameBorderDashed:e.xaxisnameborderdashed,axisNameBorderDashLen:e.xaxisnameborderdashlen,axisNameBorderDashGap:e.xaxisnameborderdashgap,useEllipsesWhenOverflow:e.useellipseswhenoverflow,divLineColor:(0,a.pluck)(e.vdivlinecolor,e.divlinecolor,r.getColor(n.divLineColor)),divLineAlpha:(0,a.pluck)(e.vdivlinealpha,e.divlinealpha,t?r.getColor("divLineAlpha3D"):r.getColor("divLineAlpha")),divLineThickness:(0,a.pluckNumber)(e.vdivlinethickness,e.divlinethickness,1),divLineIsDashed:Boolean((0,a.pluckNumber)(e.vdivlinedashed,e.vdivlineisdashed,e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,a.pluckNumber)(e.vdivlinedashlen,e.divlinedashlen,4),divLineDashGap:(0,a.pluckNumber)(e.vdivlinedashgap,e.divlinedashgap,2),alternateGridColor:(0,a.pluck)(e.alternatevgridcolor,r.getColor("altVGridColor")),alternateGridAlpha:(0,a.pluck)(e.alternatevgridalpha,r.getColor("altVGridAlpha")),labelFont:e.labelfont,labelFontSize:this.computeFontSize(e.labelfontsize),labelFontSizeWithUnit:e.labelfontsize,labelFontColor:e.labelfontcolor,labelAlpha:e.labelalpha,labelFontBold:e.labelfontbold,labelFontItalic:e.labelfontitalic,labelBdrColor:e.labelbordercolor,labelBdrAlpha:e.labelborderalpha,labelLink:e.labellink,labelBgColor:e.labelbgcolor,labelBdrThickness:e.labelborderthickness,labelBdrPadding:e.labelborderpadding,labelBdrRadius:e.labelborderradius,labelBdrDashed:e.labelborderdashed,labelBgAlpha:e.labelbgalpha,labelBdrDashLen:e.labelborderdashlen,labelBdrDashGap:e.labelborderdashgap,axisMinValue:e.xaxisminvalue,axisMaxValue:e.xaxismaxvalue,adjustDiv:e.adjustvdiv,labelDisplay:e.labeldisplay,showLabels:e.showlabels,rotateLabels:e.rotatelabels,slantLabel:(0,a.pluckNumber)(e.slantlabels,e.slantlabel),labelStep:(0,a.pluckNumber)(e.labelstep,e.xaxisvaluesstep),showAxisValues:(0,a.pluckNumber)(e.showxaxisvalues,e.showxaxisvalue),zeroPlaneColor:e.vzeroplanecolor,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,axisLineThickness:(0,a.pluckNumber)(e.xaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,a.pluckNumber)(e.xaxislinealpha,e.axislinealpha,100)}},n.getConfig=function(e){return e?this.config[e]:this.config},n._getSumValueSpace=function(e){var t,n={},r=this.config,o=this.isBar,i=this.getFromEnv("dataSource").chart,s=r.showSum=(0,a.pluckNumber)(i.showsum,r.showSum,0),l=(0,a.pluckNumber)(r.stack100percent),c=r.isstacked,u=0,d=[],h=0;if(this.iterateComponents(function(e){"cartesianStackGroup"!==e.getName()&&"marimekkoStackgroup"!==e.getName()||d.push(e)}),s&&l&&c&&d.length){for(t=d.length-1;t>=0;t--)n=d[t].getMaxSumValueSpace(),o?u=Math.max(u,n.maxWidth):h=Math.max(h,n.maxHeight);h>e&&(h=e),u>e&&(u=e)}return{top:h,right:u}},n.setAxisDimention=function(){var e,t,n=this.getChildren("xAxis")&&this.getChildren("xAxis")[0],r=this.getChildren("yAxis")&&this.getChildren("yAxis")[0],o=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0]&&this.getChildren("scrollBar")[0].config,i=this.config,s=i.xDepth||0,l=this.getFromEnv("chart-attrib"),c=(0,a.pluckNumber)(l.canvasleftpadding),u=(0,a.pluckNumber)(l.canvasrightpadding),d=this.getChildren("canvas")&&this.getChildren("canvas")[0].config,h=d&&d.canvasBorderWidth,p=this.isScrollEnabled(),f=(p||i.is3D)&&i.shift||0,g=d.canvasPadding,m=d.canvasLeft,v=m+d.canvasWidth,y=d.canvasPaddingLeft,b=d.canvasPaddingRight,C=d.canvasTop,w=i.sumValueSpace&&i.sumValueSpace.top||0,x=d.canvasPaddingTop;e=null==c?Math.max(y,g):c,t=null==u?Math.max(b,g):u,n&&n.setAxisConfig({canvasPaddingLeft:e,canvasPaddingRight:t}),n&&n.setAxisDimention({x:m+s+e,y:n.config.isOpposit?C-h-(p&&+o.isOpposite===n.config.isOpposit?f:0)-w:i.canvasBottom+(i.is3D||p&&+o.isOpposite===n.config.isOpposit?f:0)+h,opposite:n.config.isOpposit?i.canvasBottom+f+h:C-h-f,axisLength:d.canvasWidth-s-e-t}),r&&r.setAxisDimention({x:r.config.isOpposit?v+h:m-h,y:C+x,opposite:r.config.isOpposit?m-h:v+h,axisLength:d.canvasHeight-x-d.canvasPaddingBottom})},n._getTrendLineMinMax=function(e,t){var n,r,o,i,a,s=t,l="v"===e?this.getFromEnv("dataSource").vtrendlines:this.getFromEnv("dataSource").trendlines,c={max:-1/0,min:1/0};if(s=s||"p",l)for(r=0,i=l.length;rF-T-k&&(z=!0,t=g.canvasWidth-P,f=T+k,T=g.canvasMarginLeft=t*T/f,k=g.canvasMarginRight=t*k/f),o=T>g.canvasLeft?T-g.canvasLeft:0,i=k>F-g.canvasRight?k+g.canvasRight-F:0,this._allocateSpace({left:o,right:i}),z&&(f=V+W,(l=g.canvasWidth)>P&&(o=(t=l-P)*V/f,i=t*W/f),this._allocateSpace({left:o,right:i})),g.actualCanvasMarginRight=i,g.actualCanvasMarginBottom=r,this._manageChartMenuBar(e),e=.2*g.availableHeight,this._getSumValueSpace?(g.sumValueSpace=this._getSumValueSpace(e),this._allocateSpace(g.sumValueSpace)):g.sumValueSpace={top:0,right:0},e=.3*g.availableHeight,g.realtimeEnabled&&(M?this._allocateSpace(this._realTimeValuePositioning(e)):this._hideRealTimeValue()),this._resetViewPortConfig&&this._resetViewPortConfig(),this._setAxisScale&&this._setAxisScale(),e=.6*g.availableHeight,m&&this._calculateChartShift("xAxis"),g.xAxisSpaceAllocation=p=m&&m.placeAxis(e),m&&this._allocateSpace(p),g.canvasHeight-2*SR-O-A&&(I=!0,t=g.canvasHeight-D,f=O+A,O=g.canvasMarginTop=t*O/f,A=g.canvasMarginBottom=t*A/f),n=O>g.canvasTop?O-g.canvasTop:0,r=A>R-g.canvasBottom?A+g.canvasBottom-R:0,this._allocateSpace({top:n,bottom:r}),I&&(f=B+j,(s=g.canvasHeight)>D&&(n=(t=s-D)*B/f,r=t*j/f),this._allocateSpace({top:n,bottom:r})),g.actualCanvasMarginTop=n,g.actualCanvasMarginLeft=o,_.setDimension({top:g.canvasTop,left:g.canvasLeft,width:g.canvasWidth,height:g.canvasHeight})},n._manageYAxisSpace=function(){var e,t,n,r=this.config,o=this.getChildren("yAxis"),i=[];for(t=0;t<(o&&o.length);t++)(e=o[t])&&this._calculateChartShift("yAxis"),n=e&&e.placeAxis(.7*r.availableWidth)||{},i.push({axisIndex:t,spaceTaken:n}),e&&this._allocateSpace(n);r.yAxisSpaceAllocation=i},n._postSpaceManagement=function(){var e,t=this.config,n=this.getChildren(),r=n.xAxis&&n.xAxis[0],o=n.legend&&n.legend[0],i=t.xDepth,a=this.getChildren("canvas");for(this.setAxisDimention&&this.setAxisDimention(),r&&this._allocateXAxisLabelSpace(r),r&&r.shiftLabels(-i,0),o&&o.postSpaceManager(),e=0;e<(a&&a.length);e++)a[e].setCanvasPadding();this.setAxisDimention&&this.setAxisDimention(),this.allocateDimensionOfChartMenuBar()},n._calculateChartShift=function(e){var t,n=this.getChildren("scrollBar")&&this.getChildren("scrollBar")[0],r=this.getChildren(e)&&this.getChildren(e)[0],o=n&&n.config,i=r.config.isVertical,a={};n&&!n.getState("removed")&&(t=n.getLogicalSpace())&&(i&&!o.isHorizontal?(this.config.shift=t.width+o.conf.padding,a[o.isOpposite?"right":"left"]=this.config.shift,this._allocateSpace(a)):!i&&o.isHorizontal&&(this.config.shift=t.height+o.conf.padding,a[o.isOpposite?"top":"bottom"]=this.config.shift,this._allocateSpace(a)))},t}(i.default);t.default=s},455:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t._drawDataset=F,t.configurer=I,t.default=void 0;var o=r(n(232)),i=r(n(217)),a=r(n(269)),s=r(n(456)),l=r(n(459)),c=n(226),u=r(n(460)),d=n(355),h=r(n(462)),p=r(n(464)),f=r(n(466)),g=r(n(247)),m=n(225),v=r(n(468)),y=n(218),b=r(n(220)),C=["line","circle","square"],w=(0,c.getDep)("redraphael","plugin"),x="VML"===w.type,_=Math.max,S=Math.min,M=Math.round,E={datalabelclick:!0,connectorclick:!0,categoryclick:!0,processclick:!0,milestoneclick:!0,labelclick:!0,dataplotclick:!0},O=y.preDefStr.SEVENTYSTRING,A=y.preDefStr.AUTOSTRING,T="onpointerover"in window.document,k=function(e,t,n){return n.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,state:"appearing",component:n,label:"group"})},D=function(e){var t=e.data.config;t._containerMouseState="mousedown",t._mdx1=e.clientX!==y.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,t.mdy1=e.clientY!==y.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY,"touchstart"===e.type&&(t._touchStartedAt=(new Date).getTime())},P=function(e){var t=e.data.config,n=e.clientX!==y.UNDEF?e.clientX:e.changedTouches&&e.changedTouches[0].clientX,r=e.clientY!==y.UNDEF?e.clientY:e.changedTouches&&e.changedTouches[0].clientY;(Math.abs(t._mdx1-n)>=2.5||Math.abs(t.mdy1-r)>=2.5)&&(e.data.config._containerMouseState=y.UNDEF)},N=function(e){(new Date).getTime()-e.data.config._touchStartedAt<500&&setTimeout(function(){L(e)})},L=function(e){var t,n=e.data,r=n.getFromEnv("chartInstance"),o=e.originalEvent,i=n.config,a=(0,y.getMouseCoordinate)(n.getFromEnv("chart-container"),o,n);r.ref&&"mousemove"!==i._containerMouseState&&(t=(0,y.extend2)({height:r.args.height,width:r.args.width,pixelHeight:n.getFromEnv("chartHeight"),pixelWidth:n.getFromEnv("chartWidth"),id:r.args.id,renderer:r.args.renderer,container:r.options.containerElement},a),n.fireChartInstanceEvent("chartclick",t),i.link&&(!i.hotElemClicked||i.clickURLOverridesPlotLinks)&&n.getFromEnv("linkClickFN").call({link:i.link}),i.hotElemClicked=!1)},R=function(e){var t=e.type,n=e.data,r=n.getFromEnv("eventListeners");if("mouseover"!==t&&"touchstart"!==t||!1!==n.config.mouseStateIn)"mouseout"!==t&&"touchend"!==t||(n.config.posOb=!1);else{if(z.hoverChart){var o=z.hoverChart;o.forceRollOut=!0,z.winMouseHover(o)}n.config.mouseStateIn=!0,z.onContainerRollOver(e),r.push(b.default.listen(x?document:window,"mouseover",z.winMouseHover,n)),z.hoverChart=e}};function F(){this.getChildren("canvas")[0]._mapChildren(function(e){e.syncDraw()})}function I(e){this.config.skipConfigureIteration={},this.parseChartAttr(e),this.createComponent(e),this.setTooltipStyle(),this.configureChildren()}(0,c.addDep)({name:"commonAnimation",type:"animationRule",extension:v.default});var z=function(e){(0,o.default)(n,e),n.getName=function(){return"CommonAPI"};var t=n.prototype;function n(){var t;return(t=e.call(this)||this).addToEnv("stringConstants",{COMPONENT:"component",CANVAS:"canvas",CAPTION:"caption"}),t.addToEnv("getMouseCoordinate",y.getMouseCoordinate),t._drawDataset=F,t.config.mouseStateIn=!1,t.registerFactory("toolbox",l.default),t.registerFactory("canvas",s.default),t._firstConfigure=!0,t}return t.plotEventHandler=function(e,t,n,r){void 0===t&&(t={});var o,i,a=t.type,s=n,l=(0,y.getMouseCoordinate)(this.getFromEnv("chart-container"),t,this),c=e&&e.data("eventArgs")||r,u=(0,y.extend2)(l,c),d=this.fireGroupEvent,h=e&&e.data("groupId"),p=function(e,n){t.FusionChartsPreventEvent=!0};"index"in u&&!("dataIndex"in u)&&(u.dataIndex=u.index),"value"in u&&!("dataValue"in u)&&(u.dataValue=u.value),"dataplotrollover"===(s=(0,y.pluck)(s,"dataplotclick").toLowerCase())?(t.FusionChartsPreventEvent=!1,d?(0,m.raiseEventGroup)(h,s,u,this.getFromEnv("chartInstance"),y.UNDEF,y.UNDEF,p):this.fireChartInstanceEvent(s,u,y.UNDEF,y.UNDEF,p)):d&&!E[s]?(0,m.raiseEventGroup)(h,s,u,this.getFromEnv("chartInstance")):this.fireChartInstanceEvent(s,u),"fc-click"!==a&&"click"!==a&&"mouseup"!==a&&"touchend"!==a||!/click/i.test(s)||(i=(o=this.getFromEnv())&&o.linkClickFN,u.link&&i&&i.call({link:u.link},!0))},t.getName=function(){return"Cartesian"},t.preConfigure=function(t){var n=this.getFromEnv("number-formatter");this.addToEnv("chart-attrib",t.chart),n?n.configure():this.addToEnv("number-formatter",new g.default(this)),e.prototype.preConfigure.call(this,t)},t.postConfigure=function(t){e.prototype.postConfigure.call(this,t),this._firstConfigure=!1},t.setDefaults=function(){e.prototype.setDefaults.call(this);var t=this.getFromEnv("number-formatter");t&&t.setDefaults&&t.setDefaults()},t.getType=function(){return"chartAPI"},t.parseChartAttr=function(e){var t,n,r,o,i,a,s,l,c,u,d,h,p,g,m,v=e||this.getFromEnv("dataSource"),b=this.config.is3D,w=b?y.chartPaletteStr.chart3D:y.chartPaletteStr.chart2D,x=this.isBar,M=this.getFromEnv("color-manager");M||(M=new f.default(this),this.addToEnv("color-manager",M)),v.chart=v.chart||v.graph||v.map||{},delete v.map,delete v.graph,!(t=v.chart)&&(t=v.chart={}),n=this.config||(this.config={}),(0,y.parseConfiguration)(t,n,{},{showvalues:!0,crosslinecolor:!0,drawcrosslineontop:!0,crosslinealpha:!0,drawcrossline:!0}),n.showValues=(0,y.pluckNumber)(t.showvalues,n.showvalues),n.viewPortConfig={scaleY:1,scaleX:1,x:0,y:0},this.addToEnv("tool-config",function(){for(var e=arguments.length,t=new Array(e),n=0;nn.labelbinsize?n.plotbinsize:n.labelbinsize,n.enableMouseOutEvent=(0,y.pluckNumber)(t.enablemouseoutevent,this.enableMouseOutEvent,1),n.plotSpacePercent=Math.max((0,y.pluckNumber)(t.plotspacepercent,this.plotSpacePercent),0),n.maxColWidth=Math.abs((0,y.pluckNumber)(t.maxcolwidth,50)),n.maxBarHeight=Math.abs((0,y.pluckNumber)(t.maxbarheight,50)),n.overlapColumns=(0,y.pluckNumber)(t.overlapcolumns,t.overlapbars,n.is3D?0:1),n.plotPaddingPercent=t.plotpaddingpercent,n.tooltipgrayoutcolor=(0,y.pluck)(t.tooltipgrayoutcolor,y.preDefStr.colors.AAAAAA),n.clickURLOverridesPlotLinks=(0,y.pluckNumber)(t.clickurloverridesplotlinks,0),n.toolbarX=(0,y.pluckNumber)(t.toolbarx),n.toolbarY=(0,y.pluckNumber)(t.toolbary),n.toolbarPosition=function(e){var t=e;switch(t){case"tr":case"rt":case"top right":case"right top":t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl";break;default:t="tr"}return t}((0,y.pluck)(t.toolbarposition,"tr").toLowerCase()),n.toolbarHAlign="left"===(y.BLANKSTRING+t.toolbarhalign).toLowerCase()?"l":n.toolbarPosition.charAt(1),n.toolbarVAlign="bottom"===(y.BLANKSTRING+t.toolbarvalign).toLowerCase()?"b":n.toolbarPosition.charAt(0),n.toolbarVMargin=(0,y.pluckNumber)(t.toolbarvmargin,6),n.toolbarHMargin=(0,y.pluckNumber)(t.toolbarhmargin,10),this.addToEnv("chartConfig",n),this.addToEnv("linkClickFN",(0,y.getLinkAction)(this.getFromEnv("dataSource"),this)),this.addToEnv("dataLabelStyle",p)},t.createComponent=function(){var e;e=this.config.skipConfigureIteration,this.createBaseComponent(),this.getFromEnv("animationManager").setAnimationState(this._firstConfigure?"initial":"update"),(0,y.componentFactory)(this,u.default,"caption"),e.caption=!0,(0,y.componentFactory)(this,h.default,"subCaption"),e.subCaption=!0,(0,y.componentFactory)(this,p.default,"background"),e.background=!0,this._createConfigurableComponents&&this._createConfigurableComponents(),this.config.realtimeEnabled&&this._realTimeConfigure&&this._realTimeConfigure()},t.configureChildren=function(){var e=this;e._mapChildren(function(t){!t.getState("removed")&&e.config.skipConfigureIteration[t.getName()]&&t.configure&&t.configure()})},t.attachMenuButtons=function(){(function(){var e,t,n,r,o=this,i=o,a=o.config,s="t"===a.toolbarVAlign?"chartMenuBar":"actionBar",l=o.getFromEnv("tool-config");e=o.getChildren(s)[0],t=a.printOption.enabled,n=i.config.realTimeConfig||{},r=e.attachChild(d.Hamburger,"tool","hamburgerMenu-"+e.getId()+"-"+o.getId()+"-0"),o.addToEnv("hamburger",r),r.configure(Object.assign({},l,{name:"ContextIcon"})),r._mouseOutEvent||(r._mouseOutEvent=function(){this.getChild("listContainer").hide()}),r._mouseOverEvent||(r._mouseOverEvent=function(){this.getChild("listContainer").show()}),r.addEventListener("fc-mouseover",r._mouseOverEvent),r.addEventListener("fc-mouseout",r._mouseOutEvent),t&&r.appendInMenu([{name:"Print",action:"click",handler:function(){o.getFromEnv("chartInstance").print()}}]),i._setRTmenu&&i._setRTmenu(n.showRTmenuItem,n.useMessageLog)}).call(this)},t.configureAttributes=function(e){I.call(this,e)},t.setTooltipStyle=function(){var e=this.config;this.getFromEnv("toolTipController").setStyle({backgroundColor:y.hasSVG?(0,y.convertColor)(e.tooltipbgcolor||"FFF",e.tooltipbgalpha||100):(e.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(e.tooltipcolor||e.basefontcolor||"545454").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:y.hasSVG?(0,y.convertColor)(e.tooltipbordercolor||"666",e.tooltipborderalpha||100):(e.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,y.pluckNumber)(e.tooltipborderthickness,1)+"px",showToolTipShadow:(0,y.pluckNumber)(e.showtooltipshadow,e.showshadow,1),borderRadius:(0,y.pluckNumber)(e.tooltipborderradius,0)+"px",fontSize:(0,y.pluckNumber)(this.computeFontSize(e.basefontsize),10)+"px",fontFamily:e.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,y.pluckNumber)(e.tooltippadding||3)+"px"})},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.zeroplanethickness=y.UNDEF,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=y.UNDEF,t.plothovereffect=y.UNDEF,t.anchorhovereffect=y.UNDEF,t.plotborderdashed=y.UNDEF,t.stack100percent=y.UNDEF,t.showpercentvalues=y.UNDEF,t.showpercentintooltip=y.UNDEF,t.plotbordercolor=y.UNDEF,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha=O,t.showvalues=1,t.valueposition=A,t.drawcrossline=y.UNDEF,t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=y.UNDEF,t.plotfillratio=y.UNDEF,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.formatnumberscale=1,t.decimals=2,t.decimalprecision=10,t.tooltipbgcolor="FFF",t.tooltipcolor=y.UNDEF,t.tooltipbordercolor="666",t.tooltipbgalpha=100,t.tooltipborderthickness=1,t.showtooltipshadow=y.UNDEF,t.basefontsize=10,t.basefont="Verdana, sans",t.tooltipborderradius=0,t.tooltippadding=3,t.tooltipborderalpha=100,t.origw=y.UNDEF,t.origh=y.UNDEF,t.showBorder=y.UNDEF,t.usePattern=0,t.patternType=C[0],t.patternDensity=6,t.patternAlpha=100,t.patternBgColor=y.TRACKER_FILL},t.configure=function(t){var n=t;this.sanitizeData(n),this.addToEnv("dataSource",n),this.fireEvent("internal.dataSanitized",{}),n=this.getFromEnv("dataSource"),e.prototype.configure.call(this,n)},t._checkInvalidData=function(){var e=this.getFromEnv("dataSource"),t=this.getFromEnv("chartInstance");if(!(this.isWidget||this.isMap||e.data&&0!==e.data.length||e.dataset||e.value||e.lineset||e.annotations||e.category||e.tasks||e.process||e.axis))return t.__state.dataReady=!1,t.jsVars.hasNativeMessage=!0,t.jsVars.drawCount+=1,!0},t._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource"),t=e.dataset,n=e.categories;if(!t||!n||0===n.length||!n[0].category)return!0},t.sanitizeData=function(e){e.chart=e.chart||e.graph||e.map||{}},t.setChartEvents=function(){var e=this.getFromEnv("eventListeners"),t=this.getFromEnv("dataSource"),r=t&&t.chart,o=this.getFromEnv("paper")&&this.getFromEnv("paper").canvas,i=this.getFromEnv("chart-container"),a=r&&(0,y.pluckNumber)(r.enablechartmousemoveevent,0);(r||o)&&(b.default.unlisten(i,T?"click":"touchend",T?L:N),e.push(b.default.listen(i,"mousedown touchstart",D,this)),e.push(b.default.listen(i,"mousemove touchmove",P,this)),e.push(b.default.listen(i,T?"click":"touchend",T?L:N,this)),b.default.unlisten(o,"mouseover",R,this),b.default.unlisten(o,"touchstart",R,this),b.default.unlisten(o,"mouseout",R,this),b.default.unlisten(o,"touchend",R,this),e.push(b.default.listen(o,"mouseover touchstart mouseout touchend",R,this)),b.default.unlisten(i,"mousemove",n.onContainerMouseMove,this),b.default.unlisten(i,"touchmove",n.onContainerMouseMove,this),a&&e.push(b.default.listen(i,"mousemove touchmove",n.onContainerMouseMove,this)))},t.get=function(e,t){var n=this[e];return t?n&&n[t]:n},t.prepareAttributes=function(){this.config.hasChartMessage||e.prototype.prepareAttributes.call(this)},t.disposeChartStyleSheet=function(){var e=this.getFromEnv("paper");e&&e.cssClear()},t.createChartStyleSheet=function(){this.getFromEnv("paper").cssRender()},t._dispose=function(){for(var t=this.getFromEnv("eventListeners"),n=t&&t.length;n--;)t[n].unlisten();e.prototype._dispose.call(this)},t._allocateSpace=function(e){var t,n,r=this.getChildren("canvas"),o=r&&r[0].config,i=this.config,a=i.canvasHeight,s=i.canvasWidth,l=i.availableHeight,c=i.availableWidth;n=i.canvasLeft+=e.left||0,t=i.canvasTop+=e.top||0,s=i.canvasWidth=_(s-((e.left||0)+(e.right||0)),0),a=i.canvasHeight=_(a-((e.top||0)+(e.bottom||0)),0),i.availableHeight=_(l-((e.top||0)+(e.bottom||0)),0),i.availableWidth=_(c-((e.left||0)+(e.right||0)),0),i.canvasRight=n+s,i.canvasBottom=t+a,o&&(o.canvasPaddingLeft=_(o.canvasPaddingLeft,e.paddingLeft||0),o.canvasPaddingRight=_(o.canvasPaddingRight,e.paddingRight||0),o.canvasPaddingTop=_(o.canvasPaddingTop,e.paddingTop||0),o.canvasPaddingBottom=_(o.canvasPaddingBottom,e.paddingBottom||0)),r&&r[0].setDimension({top:t,left:n,width:s,height:a})},t._fetchCaptionPos=function(e){var t=this.config,n=t.width,r=this.getChildren("chartMenuBar")&&this.getChildren("chartMenuBar")[0],o=(r?r.getLogicalSpace():{}).width||0,i=(this.getChildren("caption")&&this.getChildren("caption")[0]).config,a=i.width,s="l"===t.toolbarHAlign,l=t.width-e,c=s?e:l,u=t.origMarginRight,d=t.origMarginLeft,h=s?d:u;return i.align===y.POSITION_MIDDLE?c-a/2-h-o:"start"===i.align?s?-1:n-t.canvasLeft-h-a-o+i.horizontalPadding:s?n-(u+d+o+a):-1},t._manageCaptionSpacing=function(e,t){return this.getChildren("caption")[0].manageSpace(e,t)},t._manageChartMenuBar=function(e){var t,n,r,o=this.config,i=this.getChildren("chartMenuBar")&&this.getChildren("chartMenuBar")[0],a=o.toolbarY!==y.UNDEF,s=i?i.getLogicalSpace():{height:0,width:0},l=(this.getChildren("caption")&&this.getChildren("caption")[0]).config,c=l.isOnTop,u=o.width/2,d=o.canvasRight,h=this.getFromEnv("gLegend")||{},p=!!(h.conf||{}).showLegend,f=0,g=d?(o.canvasLeft+d)/2:u,m=0,v=l.alignWithCanvas?g:u;return a&&(s.height=0),i&&i.setDimension({x:o.toolbarX!==y.UNDEF?o.toolbarX:(0,y.pluckNumber)("l"===o.toolbarHAlign?0:+o.width),y:o.toolbarY!==y.UNDEF?o.toolbarY:(0,y.pluckNumber)("t"===o.toolbarVAlign?0:+o.height),width:s.width,height:s.height}),delete l._offsetHeight,r=l.alignWithCanvas?o.canvasWidth:o.width-o.origMarginLeft-o.origMarginRight,c?(t=this._manageCaptionSpacing(e,r),m=this._fetchCaptionPos(v),l._offsetHeight=m<0?s.height:0,t.top=m<0?(0,y.pluckNumber)(t.top,0)+s.height:_(t.top,s.height),this._allocateSpace(t)):(this._allocateSpace({top:s.height}),t=this._manageCaptionSpacing(e,r),this._allocateSpace(t)),p&&this.config.gLegendEnabled&&(f=h.getCalculatedLogicalSpace().width-h.getLogicalSpace().width,"left"===(n=h.conf.legendPosition?h.conf.legendPosition.split("-"):[])[0]?this._allocateSpace({left:-f}):"right"===n[0]&&this._allocateSpace({right:-f})),{top:s?_(s.height,t.top):t.top,bottom:t.bottom}},t._manageSpace=function(){var e,t,n,r,o,i,a,s,l,c,u,d,h=this.getChildren("canvas")&&this.getChildren("canvas")[0],p=h&&h.config,f=this.config,g=this.getFromEnv("chartWidth"),m=this.getFromEnv("chartHeight");f.width=g,f.height=m,f.minChartHeight=l=f.minChartHeightPercent*m,f.minChartWidth=c=f.minChartWidthPercent*g,f.minCanvasWidth=e=f.minCanvasWidthPercent*c,f.minCanvasHeight=t=f.minCanvasHeightPercent*l,f.marginTop=n=f.origMarginTop,f.marginLeft=r=f.origMarginLeft,f.marginBottom=o=f.origMarginBottom,f.marginRight=i=f.origMarginRight,f.canvasMarginTop=f.origCanvasTopMargin,f.canvasMarginLeft=f.origCanvasLeftMargin,f.canvasMarginBottom=f.origCanvasBottomMargin,f.canvasMarginRight=f.origCanvasRightMargin,f.canvasHeight=a=f.height-f.marginTop-f.marginBottom,f.canvasWidth=s=f.width-f.marginLeft-f.marginRight,f.availableHeight=a-t,f.availableWidth=s-e,a0?b:null}),l||(l=this.addChildContainer("axisReferenceVisualsFloor",f("axisReferenceVisualsFloor",r,this)).insertAfter(n.axisBottomGroup)),l.attr({"clip-rect":b}),!this.getChildContainer("crossline")&&this.addChildContainer("crossline",f("crossline",r,this)).insertBefore(n.plotGroup),!this.getChildContainer("crosslineBottom")&&this.addChildContainer("crosslineBottom",f("crosslineBottom",r,this)).insertBefore(n.plotGroup),!this.getChildContainer("crosslineTop")&&this.addChildContainer("crosslineTop",f("crosslineTop",r,this)).insertBefore(n.abovePlotGroup),!this.getChildContainer("datalabelsGroup")&&this.addChildContainer("datalabelsGroup",f("canvasdatalabel",t.getChildContainer("datalabelsGroup"),this)),u||(u=this.addChildContainer("axisReferenceVisualsMiddle",f("axisReferenceVisualsMiddle",r,this)).insertBefore(n.plotGroup)),u.attr({"clip-rect":b}),d||(d=this.addChildContainer("axisReferenceVisualsTop",f("axisReferenceVisualsTop",r,this)).insertBefore(n.datalabelsGroup)),!this.getChildContainer("quadrantGroup")&&this.addChildContainer("quadrantGroup",f("quadrant",r,this)).insertAfter(u),h||this.addChildContainer("axisReferenceVisualsCeil",f("axisReferenceVisualsCeil",r,this)).insertBefore(n.datalabelsGroup),!this.getChildContainer("sumLabelsLayer")&&this.addChildContainer("sumLabelsLayer",n.sumLabelsLayer),v||(v=this.addChildContainer("columnShadowGroup",f("column-shadow-group",y,this))),m||(m=this.addChildContainer("columnGroup",f("column",y,this))),g||(g=this.addChildContainer("areaShadowGroup",f("area-shadow-group",y,this))),p||(p=this.addChildContainer("areaGroup",f("area",y,this))),a?(v.insertBefore(g),m.insertBefore(g)):(g.insertBefore(v),p.insertBefore(v)),!this.getChildContainer("lineShadowGroup")&&this.addChildContainer("lineShadowGroup",f("line-shadow-group",y,this)),!this.getChildContainer("lineGroup")&&this.addChildContainer("lineGroup",f("line",y,this)),!this.getChildContainer("defaultShadowGroup")&&this.addChildContainer("defaultShadowGroup",f("default-shadow-group",y,this)),!this.getChildContainer("defaultGroup")&&this.addChildContainer("defaultGroup",f("default",y,this))},n.isWithinCanvas=function(e,t){var n=this.config,r=n.canvasLeft,o=r+n.canvasWidth,i=n.canvasTop,a=i+n.canvasHeight;return e>=r&&e<=o&&t>=i&&t<=a},n.setCanvasPadding=function(){var e,t=this.config;e=this.getCanvasPadding(),t.canvasPaddingLeft=u(t.canvasPaddingLeft,e.paddingLeft||0),t.canvasPaddingRight=u(t.canvasPaddingRight,e.paddingRight||0),t.canvasPaddingTop=u(t.canvasPaddingTop,e.paddingTop||0),t.canvasPaddingBottom=u(t.canvasPaddingBottom,e.paddingBottom||0)},n.getEffectiveDimensions=function(){var e=this.config;return{left:e.canvasLeft,top:e.canvasTop,width:e.canvasWidth,height:e.canvasHeight,paddingLeft:e.canvasPaddingLeft,paddingTop:e.canvasPaddingTop,paddingRight:e.canvasPaddingRight,paddingBottom:e.canvasPaddingBottom}},n.setDimension=function(e){var t=this.config;t.canvasTop=e.top,t.canvasLeft=e.left,t.canvasWidth=e.width,t.canvasHeight=e.height},n.getCanvasPadding=function(){var e,t,n,r,o=this.getFromEnv("chartConfig").canvasWidth,i=this.config.maxPaddingPercent*o/100,a={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._mapChildren(function(n){for(t in e=n.getCanvasPadding&&n.getCanvasPadding()||{})e.hasOwnProperty(t)&&(a[t]=u(e[t],a[t]))}),n=a.paddingLeft||0,r=a.paddingRight||0,i2?p:d},V?(x&&x.show(),t=m.setAnimation({el:x||"rect",component:l,attr:{x:S-L,y:M-L,width:E+N,height:O+N,r:P,"stroke-width":N,stroke:R,"stroke-linejoin":N>2?p:d},label:"rect",container:k}).shadow(z),x||l.addGraphicalElement("canvasBorderElement",t)):x&&(l.removeGraphicalElement(x),m.setAnimation({el:x,component:l,callback:function(){x.hide()}})),i=V?0:y.oriCanvasBorderThickness,b["clip-canvas"]=[u(0,S-A-i),u(0,M-T-i),u(1,E+2*A+2*i),u(1,O+T+2*i)],b["clip-sum-value"]=[u(0,S-A),f?M:0,u(1,f?v.width-S:E+2*A),u(1,f?O+T:M+O)],b["clip-canvas-init"]=[u(0,S-A),u(0,M-T),1,u(1,O+2*T)],e=b["clip-canvas"].slice(0),a=function(e,t){m.setAnimation({el:e,attr:{"clip-rect":t},label:"container",component:l,state:e.attrs["clip-rect"]?"updating":"appearing"})},v.skipClipping||(a(C,e),a(w,e),a(D,e),a(l.getChildContainer("sumLabelsLayer"),b["clip-sum-value"])),B?(o={x:S,y:M,width:E,height:O,r:P,"stroke-width":0,stroke:h,fill:(0,s.toRaphaelColor)(r)},_&&_.show(),n=m.setAnimation({el:_||"rect",attr:o,label:"rect",container:k,component:l}),_||l.addGraphicalElement("canvasElement",n),j?n.shadow({opacity:I/100}):n.shadow(!1)):_&&m.setAnimation({el:_,component:l,callback:function(){_.hide()}})},t}(a.ComponentInterface);t.default=g},458:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"initial.canvas.canvas":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]},"*":null}},"update.canvas.canvas":{"rect.updating":[{slot:"middle"}]}}},459:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=e,s=n.config,l=n.getFromEnv("chart-attrib"),c="t"===s.toolbarVAlign?"chartMenuBar":"actionBar",u="t"===s.toolbarVAlign?"actionBar":"chartMenuBar";(0,r.componentFactory)(n,o.ToolBar,u,0,[l]),(0,r.componentFactory)(n,o.ToolBar,c,1,[l]),t=n.getChildren(c)[0],n.addToEnv("toolbar",t),i.SymbolStore.register("ContextIcon",function(e,t,n){var r=e,o=t,i=2*n,s=a(i/4),l=.7*a(i/2),c=r-l,u=r+l,d=o+s,h=o-s;return["M",c,o,"L",u,o,"M",c,d,"L",u,d,"M",c,h,"L",u,h]}),n.attachMenuButtons()};var r=n(218),o=n(355),i=n(360),a=Math.round},460:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=n(233),s=n(226),l=r(n(461)),c=Math.max,u=Math.min,d=Math.ceil;(0,s.addDep)({name:"captionAnimation",type:"animationRule",extension:l.default});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"caption"},n.getName=function(){return"caption"},n.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),n=this.config||{},r=e.getFromEnv("style"),o=r.outCanfontFamily,a=r.outCancolor,s=["top","center"];switch(this.config.text=(0,i.parseUnsafeString)(t.caption),n.style={fontFamily:(0,i.pluck)(t.captionfont,o),color:(0,i.convertColor)((0,i.pluck)(t.captionfontcolor,a).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,i.pluckNumber)(this.computeFontSize(t.captionfontsize),this.computeFontSize(r.fontSizeWithUnit)+3)+"px",fontWeight:0===(0,i.pluckNumber)(t.captionfontbold)?i.NORMAL:i.BOLD},n.align||(n.align=i.BLANKSTRING),n.align=(0,i.pluck)(t.captionposition,t.captionalignment,"center"),n.align&&((s=n.align.split("-"))[0]&&(s[0]=s[0].toLowerCase()),s[1]&&(s[1]=s[1].toLowerCase()),s.length<2&&(s[1]=s[0])),s[0]){case"top":n.isOnTop=1;break;case"bottom":n.isOnTop=0;break;default:n.isOnTop=(0,i.pluckNumber)(t.captionontop,1)}switch(s[1]){case"right":n.align="end";break;case"left":n.align="start";break;default:n.align="middle"}n.isOnLeft=!(0,i.pluckNumber)(t.captiononright,0),n.captionPosition=(0,i.getValidValue)(t.captionposition,"top").toLowerCase(),n.alignWithCanvas=(0,i.pluckNumber)(t.aligncaptionwithcanvas,e.config.alignCaptionWithCanvas,1),n.horizontalPadding=(0,i.pluckNumber)(t.captionhorizontalpadding,n.alignWithCanvas?0:15),n.drawCaption=!0,(0,i.setLineHeight)(n.style)},n.allocatePosition=function(){this.getFromEnv("chart")._manageCaptionPosition()},n.draw=function(){var e,t=this.getFromEnv("chart"),n=t.config,r=t.getFromEnv("animationManager"),o=t.config.textDirection,a=t.getChildContainer().captionGroup,s=t.getFromEnv("smartLabel"),l=this.getGraphicalElement("captionElement"),c=this.getFromEnv("toolTipController"),u=this.config,d=u.style,h=u.text,p=u.x,f=u.align;h?(e={text:u.text,fill:d.color,x:p,y:u.y,"text-anchor":f||"middle","vertical-align":u.verticalAlign||"top",visibility:u.drawCaption?i.visibleStr:i.hiddenStr,direction:o},(l=this.addGraphicalElement("captionElement",r.setAnimation({el:l||"text",attr:e,container:a,state:void 0,component:this,label:"text"}))).css(d),n.showtooltip?c.enableToolTip(l,u.originalText):c.disableToolTip(l),s&&(s.useEllipsesOnOverflow(n.useEllipsesWhenOverflow),s.setStyle(d))):l&&r.setAnimation({el:l,component:this,callback:function(){this.hide()},doNotRemove:!0}),n.savedCaption=l},n.manageSpace=function(e,t){var n,r,o,a,s,l=this.getFromEnv("chart"),h=l.config,p=l.getChildren("caption")[0],f=l.getChildren("subCaption")[0],g=l.getFromEnv("style").fontSizeWithUnit,m=p.config,v=f.config,y=m.style,b=v.style,C=l.getFromEnv("dataSource").chart,w=l.getFromEnv("smartLabel"),x=e,_=(0,i.parseUnsafeString)(C.caption),S=(0,i.parseUnsafeString)(C.subcaption),M=(0,i.pluckNumber)(C.captionpadding,10),E=M,O=!1,A=0,T=0,k=0,D=0,P=0,N=l.getChildren("canvas"),L=c(N&&N[0].config.canvasBorderThickness,0),R=0,F=0;return y.fontSize=(0,i.pluckNumber)(this.computeFontSize(C.captionfontsize),this.computeFontSize(g)+3)+"px",(0,i.setLineHeight)(y),b.fontSize=(0,i.pluckNumber)(this.computeFontSize(C.subcaptionfontsize),(0,i.pluckNumber)(c((0,i.pluckNumber)(this.computeFontSize(C.captionfontsize))-3,-1),this.computeFontSize(g))+(0,i.pluckNumber)(l.subTitleFontSizeExtender,1))+"px",(0,i.setLineHeight)(b),x>3?(M0||P>0?((A=D+P+M)>(x=c(x,0))?(O=!0,(T=A-x)T?(k=P-T+10,P=0,v._originalText=v.text,v.text=i.BLANKSTRING):(T-=P,P=0,D>T&&(k=D-T)))):k=x-A,w.useEllipsesOnOverflow(h.useEllipsesWhenOverflow),D>0&&(w.setStyle(o),k=(D+=k)-(n=w.getSmartText(_,t,D)).height,m.height=D=n.height,m.text=n.text,m.originalText=!!n.tooltext&&n.tooltext,R=n.width),P>0&&(w.setStyle(s),k=(P+=k)-(r=w.getSmartText(S,t,P)).height,P=r.height,v.text=r.text,v.height=r.height,v.originalText=!!r.tooltext&&r.tooltext,F=r.width),O&&k>0&&(M+=u(E-M,k)),m.captionPadding=M,m.height=D,m.width=R,v.width=F,v.height=P,A=D+P+M):(m.height=0,v.height=0),A>h.canvasHeight?(A=0,m.drawCaption=!1):m.drawCaption=!0,a=m.isOnTop?{top:A}:{bottom:A,top:5}):(a={bottom:0,top:0},m.drawCaption=!1),a},n.setDimention=function(e){var t=this.config;t.x=e.x,t.y=e.y},t}(a.ComponentInterface);t.default=h},461:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"initial.caption.caption":function(){return{"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},462:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=r(n(460)),s=n(226),l=r(n(463)),c=Math.max;(0,s.addDep)({name:"subcaptionAnimation",type:"animationRule",extension:l.default});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"caption"},n.getName=function(){return"subCaption"},n.configure=function(){var e=this.getFromEnv("chart"),t=e.getFromEnv("chart-attrib"),n=this.config||{},r=e.getFromEnv("style"),o=e.getChildren("caption")[0],a=r.outCanfontFamily,s=r.outCancolor,l=r.fontSizeWithUnit,u=["top","center"];switch(n.text=(0,i.parseUnsafeString)(t.subcaption),n.align||(n.align=i.BLANKSTRING),n.align=(0,i.pluck)(t.captionposition,t.captionalignment,"center"),o.config.align&&((u=o.config.align.split("-"))[0]&&(u[0]=u[0].toLowerCase()),u[1]&&(u[1]=u[1].toLowerCase()),u.length<2&&(u[1]=u[0])),u[0]){case"top":n.isOnTop=1;break;case"bottom":n.isOnTop=0;break;default:n.isOnTop=(0,i.pluckNumber)(t.captionontop,1)}n.alignWithCanvas=(0,i.pluckNumber)(e.aligncaptionwithcanvas,t.aligncaptionwithcanvas,1),n.horizontalPadding=(0,i.pluckNumber)(t.captionhorizontalpadding,o.config.alignWithCanvas?0:15),n.style={fontFamily:(0,i.pluck)(t.subcaptionfont,t.captionfont,a),color:(0,i.convertColor)((0,i.pluck)(t.subcaptionfontcolor,t.captionfontcolor,s).replace(/^#? ([a-f0-9]+)/gi,"#$1")),fontSize:(0,i.pluckNumber)(this.computeFontSize(t.subcaptionfontsize),(0,i.pluckNumber)(c((0,i.pluckNumber)(this.computeFontSize(t.captionfontsize))-3,-1),this.computeFontSize(l))+(0,i.pluckNumber)(e.subTitleFontSizeExtender,1))+"px",fontWeight:0===(0,i.pluckNumber)(t.subcaptionfontbold,e.subTitleFontWeight,t.captionfontbold)?i.NORMAL:i.BOLD},(0,i.setLineHeight)(n.style)},n.draw=function(){var e,t=this.getFromEnv("chart"),n=t.getFromEnv("animationManager"),r=t.getChildren("caption")[0],o=t.config,a=o.textDirection,s=t.getChildContainer().captionGroup,l=this.getGraphicalElement("subCaptionElement"),c=this.getFromEnv("toolTipController"),u=this.config,d=u.style,h=u.text,p=r.config.align;h?(e={text:u.text,fill:d.color,x:u.x,y:u.y,"text-anchor":p||"middle","vertical-align":"top",direction:a,visibility:r.config.drawCaption?i.visibleStr:i.hiddenStr},(l=this.addGraphicalElement("subCaptionElement",n.setAnimation({el:l||"text",attr:e,container:s,state:void 0,component:this,hookFn:function(){this.css(d)},label:"text"}))).css(d),o.showtooltip?c.enableToolTip(l,u.originalText):c.disableToolTip(l)):l&&this.removeGraphicalElement(l),o.savedSubCaption=l},n.setDimention=function(e){this.config.x=e.x,this.config.y=e.y},t}(a.default);t.default=u},463:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o={"initial.caption.subCaption":r(n(461)).default["initial.caption.caption"]};t.default=o},464:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=n(218),l=n(226),c=r(n(465)),u="BackgroundLoaded",d="BackgroundLoadError";(0,l.addDep)({name:"backgroundAnimation",type:"animationRule",extension:c.default});var h=function(e){function t(){var t,n,r;return(t=e.call(this)||this).config.handler=(n=(0,o.default)(t),r=n.config,{load:function(){var e=r.bgImageDisplayMode,t=r.bgImageVAlign,o=r.bgImageHAlign,i=r.bgImageScale,a=r.bgSWFAlpha,s=r.bgSWF,l=n.getGraphicalElement("backgroundImage")._.RefImg;n.getFromEnv("chart").fireChartInstanceEvent(u,{url:s,bgImageAlpha:a,bgImageDisplayMode:e,bgImageVAlign:t,bgImageHAlign:o,bgImageScale:i,imageheight:l.height,imagewidth:l.width})},error:function(e){var t=r.bgImageDisplayMode,o=r.bgImageVAlign,i=r.bgImageHAlign,a=r.bgImageScale,s=r.bgSWFAlpha,l=r.bgSWF;n.getFromEnv("chart").fireChartInstanceEvent(d,{url:l,bgImageAlpha:s,error:e,bgImageDisplayMode:t,bgImageVAlign:o,bgImageHAlign:i,bgImageScale:a})}}),t}(0,i.default)(t,e);var n=t.prototype;return n.getName=function(){return"background"},n.getType=function(){return"background"},n._getBackgroundCosmetics=function(){var e=this.getFromEnv("chart-attrib"),t=this.getFromEnv("color-manager"),n=this.getFromEnv("chartConfig").is3D?s.chartPaletteStr.chart3D:s.chartPaletteStr.chart2D;return{FCcolor:{color:(0,s.pluck)(e.bgcolor,t.getColor(n.bgColor)),alpha:(0,s.pluck)(e.bgalpha,t.getColor(n.bgAlpha)),angle:(0,s.pluck)(e.bgangle,t.getColor(n.bgAngle)),ratio:(0,s.pluck)(e.bgratio,t.getColor(n.bgRatio))}}},n.configureAttributes=function(){var e,t,n,r=this.config,o=this.getFromEnv("chart-attrib"),i=this.getFromEnv("chartConfig"),a=i.is3D,l=this.getFromEnv("color-manager"),c=r.bgImageDisplayMode=(0,s.pluck)(o.bgimagedisplaymode,"none").toLowerCase();r.bgSWF=(0,s.pluck)(o.bgimage,o.bgswf),r.bgSWFAlpha=(0,s.pluckNumber)(o.bgimagealpha,o.bgswfalpha,100),e=r.showBorder=(0,s.pluckNumber)(o.showborder,i.showBorder,a?0:1),r.borderWidth=Math.max(e?(0,s.pluckNumber)(o.borderthickness,1):0,0),r.borderRadius=(0,s.pluckNumber)(o.borderradius,0),r.borderDashStyle=(0,s.pluckNumber)(o.borderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(o.borderdashlen,4),(0,s.pluckNumber)(o.borderdashgap,2),void 0):"none",r.borderAlpha=(0,s.pluck)(o.borderalpha,a?"100":l&&l.getColor("borderAlpha")),r.borderColor=(0,s.convertColor)((0,s.pluck)(o.bordercolor,a?"#666666":l&&l.getColor("borderColor")),r.borderAlpha),r.bgImageVAlign=t=(0,s.getValidValue)(o.bgimagevalign,"").toLowerCase(),r.bgImageHAlign=n=(o.bgimagehalign||"").toLowerCase(),r.bgImageScale=(0,s.pluckNumber)(o.bgimagescale,100),r.containerBackgroundColor=(0,s.getContainerBackgroundColor)(this.getFromEnv("chartInstance")),r.backgroundColor=this._getBackgroundCosmetics(),"tile"===c||"fill"===c||"fit"===c?("top"!==t&&"middle"!==t&&"bottom"!==t&&(r.bgImageVAlign="middle"),"left"!==n&&"middle"!==n&&"right"!==n&&(r.bgImageHAlign="middle")):("top"!==t&&"middle"!==t&&"bottom"!==t&&(r.bgImageVAlign="top"),"left"!==n&&"middle"!==n&&"right"!==n&&(r.bgImageHAlign="left"))},n.draw=function(){var e,t,n,r,o,i,a=this.getFromEnv("paper"),l=this.getGraphicalElement("backgroundElement"),c=this.getGraphicalElement("borderElement"),u=this.config,d=this.getFromEnv("chart"),h=this.getFromEnv("chartConfig"),p=u.backgroundColor,f=this.getFromEnv("animationManager"),g=this.getGraphicalElement("backgroundImage"),m=u.bgSWF,v=d.getChildContainer("backgroundGroup"),y=h.width,b=h.height,C=u.borderWidth||0,w=u.borderRadius,x=u.borderDashStyle,_=u.borderColor,S=u.bgSWFAlpha,M=C+","+C+","+(y-2*C)+","+(b-2*C),E=u.bgImageDisplayMode,O=u.bgImageVAlign,A=u.bgImageHAlign,T=u.bgImageScale;a.canvas.style.backgroundColor=u.containerBackgroundColor,n={x:C,y:C,width:(i=y-2*C)<0?0:i,height:(o=b-2*C)>0?o:0,stroke:s.preDefStr.noneStr,fill:(0,s.toRaphaelColor)(p)},(e=f.setAnimation({el:l||"rect",attr:n,container:v,component:this,label:"rect"})).show(),l||this.addGraphicalElement("backgroundElement",e),n={x:C/2,y:C/2,width:(i=y-C)<0?0:i,height:(o=b-C)>0?o:0,stroke:_,"stroke-width":C,"stroke-dasharray":x,fill:s.preDefStr.noneStr,r:w||0},(t=f.setAnimation({el:c||"rect",attr:n,container:v,component:this,label:"rect"})).show(),c||this.addGraphicalElement("borderElement",t),m&&!this.getState("removed")?((r=f.setAnimation({el:g||"imagegrid",attr:{imagegrid:[E,O,A,T,C,y,b],src:m,opacity:.01*S,"clip-rect":M},container:v,component:this,label:"imagegrid"})).show(),g||(this.addGraphicalElement("backgroundImage",r),r.on("load",u.handler.load),r.on("error",u.handler.error))):g&&this.removeGraphicalElement(g)},t}(a.ComponentInterface);t.default=h},465:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"initial.background.background":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}}}},466:function(e,t,n){"use strict";var r=n(211),o=n(215);t.__esModule=!0,t.default=void 0;var i=n(218),a=o(n(467)),s=r(n(284));function l(e,t){var n,r,o,a,s,l,c,u,h,p,f,g=d.stringConstants,m=t.replace(/\s/g,g.BLANK).toLowerCase(),v=[];if(m===g.BLANK||null==m)v=[e];else for(o=m.split(g.COMMASTRING),a=e.split(g.COMMASTRING),s=Math.max(o.length,a.length,1),l=o[0],c=a[0],p=/[\{\}]/gi,f=0;f100?100:n,i[r]=n,a+=n;if(a=a>100?100:a,o.length0&&o.palette<6?o.palette:(0,i.pluckNumber)(r.paletteIndex,1))-1,t.iterator=0,t.paletteColors=l.paletteColors[t.themeEnabled?0:t.paletteIndex],e.defined(o.palettecolors)&&o.palettecolors!==n.BLANK&&(t.paletteColors=(0,s.default)(o.palettecolors)?o.palettecolors.slice():o.palettecolors.split(/\s*\,\s*/)),t.paletteLen=t.paletteColors.length,t.useFlatColors=(0,i.pluckNumber)(o.useflatdataplotcolor,r.useFlatColor,0),c&&(t.paletteIndex=5,l.bgColor[5]=(0,i.getLightColor)(c,35)+n.COMMASTRING+(0,i.getLightColor)(c,10),l.bgAngle[5]=270,l.bgRatio[5]=n.BGRATIOSTRING,l.bgAlpha[5]="50,50",l.canvasBgColor[5]=n.COLOR_WHITE,l.canvasBgAngle[5]=0,l.canvasBgAlpha[5]=n.HUNDREDSTRING,l.canvasBgRatio[5]=n.BLANK,l.canvasBorderColor[5]=(0,i.getDarkColor)(c,80),l.canvasBorderAlpha[5]=100,l.showShadow[5]=1,l.divLineColor[5]=(0,i.getDarkColor)(c,20),l.divLineAlpha[5]=40,l.altHGridColor[5]=(0,i.getLightColor)(c,20),l.altHGridAlpha[5]=15,l.altVGridColor[5]=(0,i.getLightColor)(c,80),l.altVGridAlpha[5]=10,l.anchorBgColor[5]=n.COLOR_WHITE,l.toolTipBgColor[5]=n.COLOR_WHITE,l.toolTipBorderColor[5]=(0,i.getDarkColor)(c,80),l.baseFontColor[5]=c.split&&c.split(n.COMMASTRING)[0],l.borderColor[5]=(0,i.getDarkColor)(c,60),l.borderAlpha[5]=50,l.legendBgColor[5]=n.COLOR_WHITE,l.legendBorderColor[5]=(0,i.getDarkColor)(c,80),l.plotGradientColor[5]=n.COLOR_WHITE,l.plotBorderColor[5]=(0,i.getDarkColor)(c,85),l.plotFillColor[5]=(0,i.getDarkColor)(c,85),l.bgColor3D[5]=n.COLOR_WHITE,l.bgAlpha3D[5]=n.HUNDREDSTRING,l.bgAngle3D[5]=90,l.bgRatio3D[5]=n.BLANK,l.canvasBgColor3D[5]=(0,i.getLightColor)(c,20),l.canvasBaseColor3D[5]=(0,i.getLightColor)(c,40),l.divLineColor3D[5]=(0,i.getDarkColor)(c,20),l.divLineAlpha3D[5]=40,l.legendBgColor3D[5]=n.COLOR_WHITE,l.legendBorderColor3D[5]=(0,i.getDarkColor)(c,80),l.toolTipbgColor3D[5]=n.COLOR_WHITE,l.toolTipBorderColor3D[5]=(0,i.getDarkColor)(c,80),l.baseFontColor3D[5]=c.split&&c.split(n.COMMASTRING)[0],l.anchorBgColor3D[5]=n.COLOR_WHITE,l.tickColor&&(l.tickColor[5]=(0,i.getDarkColor)(c,90)),l.trendDarkColor&&(l.trendDarkColor[5]=(0,i.getDarkColor)(c,90)),l.trendLightColor&&(l.trendLightColor[5]=(0,i.getLightColor)(c,l.TrendLightShadeOffset)),l.msgLogColor&&(l.msgLogColor[5]=(0,i.getLightColor)(c,80)),l.dialColor&&(l.dialColor[5]=(0,i.getDarkColor)(c,95)+",FFFFFF,"+(0,i.getDarkColor)(c,95)),l.dialBorderColor&&(l.dialBorderColor[5]=(0,i.getDarkColor)(c,95)+",FFFFFF,"+(0,i.getDarkColor)(c,95)),l.pivotColor&&(l.pivotColor[5]=(0,i.getLightColor)(c,95)+",FFFFFF,"+(0,i.getLightColor)(c,95)),l.pivotBorderColor&&(l.pivotBorderColor[5]=(0,i.getDarkColor)(c,95)+",FFFFFF,"+(0,i.getDarkColor)(c,95)),l.pointerBorderColor&&(l.pointerBorderColor[5]=(0,i.getDarkColor)(c,75)),l.pointerBgColor&&(l.pointerBgColor[5]=(0,i.getDarkColor)(c,75)),l.thmBorderColor&&(l.thmBorderColor[5]=(0,i.getDarkColor)(c,90)),l.thmFillColor&&(l.thmFillColor[5]=(0,i.getLightColor)(c,55)),l.gaugeBorderColor&&(l.gaugeBorderColor[5]=(0,i.getDarkColor)(c,90)),l.gaugeFillColor&&(l.gaugeFillColor[5]=(0,i.getLightColor)(c,55)),l.cylFillColor&&(l.cylFillColor[5]=(0,i.getLightColor)(c,55)),l.periodColor&&(l.periodColor[5]=(0,i.getLightColor)(c,10)),l.winColor&&(l.winColor[5]="666666"),l.lossColor&&(l.lossColor[5]="CC0000"),l.drawColor&&(l.drawColor[5]="666666"),l.scorelessColor&&(l.scorelessColor[5]="FF0000"),l.gridColor&&(l.gridColor[5]=(0,i.getLightColor)(c,30)),l.categoryBgColor&&(l.categoryBgColor[5]=(0,i.getLightColor)(c,10)),l.dataTableBgColor&&(l.dataTableBgColor[5]=(0,i.getLightColor)(c,10)),l.gridResizeBarColor&&(l.gridResizeBarColor[5]=(0,i.getDarkColor)(c,90)),l.scrollBarColor&&(l.scrollBarColor[5]=(0,i.getLightColor)(c,50)))},t.getColor=function(e){return this.paletteOptions[e][this.paletteIndex]},t.getPlotColor=function(e){var t=this,n=t.paletteColors,r=t.useFlatColors?t.getColor("plotFillColor"):n[e%t.paletteLen];return r||(t.iterator===t.paletteLen&&(t.iterator=0),r=n[t.iterator],t.iterator+=1),r},e}();d.stringConstants={BLANK:"",COMMASTRING:",",BGRATIOSTRING:"0,100",COLOR_WHITE:"FFFFFF",HUNDREDSTRING:"100"},d.defined=function(e){return null!=e};var h=d;t.default=h},467:function(e,t,n){"use strict";t.__esModule=!0,t.anchorBgColor3D=t.baseFontColor3D=t.toolTipBorderColor3D=t.toolTipbgColor3D=t.legendBorderColor3D=t.legendBgColor3D=t.divLineAlpha3D=t.divLineColor3D=t.canvasBaseColor3D=t.canvasBgColor3D=t.bgRatio3D=t.bgAngle3D=t.bgAlpha3D=t.bgColor3D=t.plotFillColor=t.plotBorderColor=t.plotGradientColor=t.legendBorderColor=t.legendBgColor=t.borderAlpha=t.borderColor=t.baseFontColor=t.toolTipBorderColor=t.toolTipBgColor=t.anchorBgColor=t.altVGridAlpha=t.altVGridColor=t.altHGridAlpha=t.altHGridColor=t.divLineAlpha=t.divLineColor=t.showShadow=t.canvasBorderAlpha=t.canvasBorderColor=t.canvasBgRatio=t.canvasBgAlpha=t.canvasBgAngle=t.canvasBgColor=t.bgAlpha=t.bgRatio=t.bgAngle=t.bgColor=t.paletteColors=void 0;var r=["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600","663300","6DCFF6"],o=[r,r,r,r,r];t.anchorBgColor3D=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.baseFontColor3D=["49563A","4A4A4A","49351D","48505A","681C09"],t.toolTipBorderColor3D=["49563A","666666","49351D","576373","681C09"],t.toolTipbgColor3D=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.legendBorderColor3D=["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],t.legendBgColor3D=["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],t.divLineAlpha3D=[100,100,100,100,100],t.divLineColor3D=["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],t.canvasBaseColor3D=["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],t.canvasBgColor3D=["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],t.bgRatio3D=["","","","",""],t.bgAngle3D=[90,90,90,90,90],t.bgAlpha3D=["100","100","100","100","100"],t.bgColor3D=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.plotFillColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.plotBorderColor=["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],t.plotGradientColor=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.legendBorderColor=["545454","545454","415D6F","845001","D55979"],t.legendBgColor=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.borderAlpha=[50,50,50,50,50],t.borderColor=["767575","545454","415D6F","845001","68001B"],t.baseFontColor=["555555","60634E","025B6A","A15E01","68001B"],t.toolTipBorderColor=["545454","545454","415D6F","845001","68001B"],t.toolTipBgColor=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.anchorBgColor=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.altVGridAlpha=[10,20,10,15,10],t.altVGridColor=["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.altHGridAlpha=[50,35,10,20,15],t.altHGridColor=["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],t.divLineAlpha=[40,45,65,40,30],t.divLineColor=["717170","7B7D6D","92CDD6","965B01","68001B"],t.showShadow=[0,1,1,1,1],t.canvasBorderAlpha=[100,100,100,90,100],t.canvasBorderColor=["545454","545454","415D6F","845001","68001B"],t.canvasBgRatio=["","","","",""],t.canvasBgAlpha=["100","100","100","100","100"],t.canvasBgAngle=[0,0,0,0,0],t.canvasBgColor=["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],t.bgAlpha=["50,50","60,50","40,20","20,10","30,30"],t.bgRatio=["0,100","0,100","0,100","0,100","0,100"],t.bgAngle=[270,270,270,270,270],t.bgColor=["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],t.paletteColors=o},468:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"*.*.*":{"*.disappearing":[{finalAttr:{opacity:0},slot:"initial",callback:function(){this.hide()}}]}}},469:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){var n=Number(e),r=Number(t)-n;return function(e){return r*e+n}}},470:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t,n,r=e.getChildren("canvas")[0],s=r.getChildren("axisRefVisualCartesian")[0],l={zoomable:!0,pannable:!0},c=e._feedAxesRawData(),u=function(e){var t=e.sender;s.addexplicitDrawItems(t.getId(),t),s.asyncDraw()};(0,o.componentFactory)(e,i.default,"yAxis",1,c.yAxisConf),(0,o.componentFactory)(e,a.default,"xAxis",1,c.xAxisConf),t=e.getChildren("yAxis")[0],n=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",r),n.setLinkedItem("canvas",r),s.setLinkedItem(t.getId(),t),s.setLinkedItem(n.getId(),n),s.addExtEventListener("visiblerangeset",u,n),s.addExtEventListener("visiblerangeset",u,t),r.attachAxis(n,!1,e.zoomX?l:{}),r.attachAxis(t,!0,e.zoomY?l:{}),e._setCategories()};var o=n(218),i=r(n(471)),a=r(n(518))},471:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(472)),a=r(n(475)),s=r(n(497)),l=r(n(498)),c=r(n(499)),u=n(506),d=n(218),h=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new a.default,t}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"numeric"},n.generateTicks=function(){var e,t,n,r=this.getScale(),o=this.config,i=o.numDivLines+1,a=r.getDomain(),c=a[0],u=a[1],d=o.axisRange,h=d.min,p=d.max,f=o.dataLimit;return c===h&&u===p?((0,l.default)(f.min,f.max,r,o),o.ticks):(e=r.ticks(i),t=Math.abs(e[1]-e[0]),c===h&&-1===e.indexOf(h)&&e.unshift(h),u===p&&-1===e.indexOf(p)&&e.push(p),(n=Math.abs(h%t))&&(h-=n),(n=Math.abs(p%t))&&(p-=n),o._allTicks=(0,s.default)(h,p,t).concat(p),d.tickInterval=t,e)},n.setTickValues=function(e){this.config.userTicks=e||[],this.config.tickValues={tickValue:[]}},n._parseTickValues=function(e){var t,n,r,o,i=this.getFromEnv("chart"),a=this.config,s=e&&e.length,l=0;for(a.tickValues={},t=a.tickValues.tickValue=[],r=0;ra))if(u.min===o&&u.max===a||(n=!0),void 0===s.visibleMin||s.setPadding||n){var h=(0,i.default)([o,a,u.min,u.max]);if(o=h[0],a=h[1],u.min=o,u.max=a,this.fireEvent("dataLimitSet",Object.assign({},u)),d){if(d.limit){if(!(t=d.dataLimit))return;var p=(0,i.default)([o,a,t.min,t.max]);o=p[0],a=p[1],s.isDataLimitSet=!0}if(d.count&&void 0===d.numDivLines)return}(0,l.default)(o,a,this.getScale(),s),r=s.isZeroTickForced?3:2,this.fireEvent("divlinesSet",s.ticks.length-r),s.tickValues&&this.calculateTicksOnLabelMode(),this.setVisibleConfig(c.min,c.max)}else s.setPadding=!1},n.getTicks=function(){return this.config.ticks},t}(c.default);h.prototype.setDataLimit=u.setDataLimit;var p=h;t.default=p},472:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(473)),i=r(n(474));t.default=function(e,t){return void 0===e&&(e=[]),[(0,o.default)(e,t),(0,i.default)(e,t)]}},473:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){void 0===e&&(e=[]);var n,r,o=e.length,i=-1;if("function"==typeof t){for(;++i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r}},475:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(232)),a=r(n(476)),s=r(n(492)),l=o(n(469)),c=n(493),u=function(e){function t(){return e.call(this,a.deInterpolateLinear,l.default)||this}(0,i.default)(t,e);var n=t.prototype;return n.ticks=function(e){void 0===e&&(e=7);var t=this.getDomain();return this.majorTicks=(0,s.default)(t[0],t[t.length-1],e)},n.tickFormat=function(e,t){return(0,c.tickFormat)(this.getDomain(),e,t,this._localeConverter)},n.nice=function(e){void 0===e&&(e=7);var t,n=this.getDomain(),r=0,o=n.length-1,i=n[r],a=n[o];return a0?(i=Math.floor(i/t)*t,a=Math.ceil(a/t)*t,t=(0,s.tickIncrement)(i,a,e)):t<0&&(i=Math.ceil(i*t)/t,a=Math.floor(a*t)/t,t=(0,s.tickIncrement)(i,a,e)),t>0?(n[r]=Math.floor(i/t)*t,n[o]=Math.ceil(a/t)*t,this.setDomain(n)):t<0&&(n[r]=Math.ceil(i*t)/t,n[o]=Math.floor(a*t)/t,this.setDomain(n)),this},n.copy=function(){return(0,a.copyScale)(this,new t)},n.minorTicks=function(e,t){void 0===e&&(e=4),void 0===t&&(t=this.majorTicks||this.ticks());var n,r,o,i,a=t.length,s=t[1]-t[0],l=[];for(i=0;ie[1]?(o=n(e[1],e[0]),i=r(t[1],t[0])):(o=n(e[0],e[1]),i=r(t[0],t[1])),function(e){return i(o(e))}}function h(e,t){var n=Number(e),r=Number(t)-n;return r?function(e){return(e-n)/r}:(0,a.default)(r)}var p=function(){function e(e,t){this.domain=u,this.range=u,this.deInterpolate=e,this.reInterpolate=t,this.interpolate=o.default,this.clamp=!1,this.input=null,this.output=null,this.locale=s.default,this._localeConverter=new l.NumberConverter(s.default),this._rescale(),this._id="scale_"+c++}var t=e.prototype;return t._rescale=function(){return this.input=null,this.output=null,this},t.setDomain=function(e){return void 0===e&&(e=u),this.domain=e.map(Number),this._rescale()},t.getDomain=function(){return this.domain.slice()},t.setRange=function(e){return void 0===e&&(e=u),this.range=e.slice(),this._rescale()},t.getRange=function(){return this.range.slice()},t.setInterpolate=function(e){return void 0===e&&(e=o.default),this.interpolate=e,this._rescale()},t.getInterpolate=function(){return this.interpolate},t.setClamp=function(e){return void 0===e&&(e=!1),this.clamp=!!e,this._rescale()},t.getClamp=function(){return this.clamp},t.rangeRound=function(e){return void 0===e&&(e=u),this.range=e.slice(),this.interpolate=i.default,this._rescale()},t.getRangeValue=function(e){var t=null!==e?e:void 0,n=this.getClamp()?function(e){return function(t,n){var r=Number(t),o=Number(n),i=e(r,o);return function(e){return e<=r?0:e>=o?1:i(e)}}}(this.deInterpolate):this.deInterpolate;return this.output||(this.output=d(this.getDomain(),this.getRange(),n,this.interpolate)),this.output(Number(t))},t.getDomainValue=function(e){var t=this.getClamp()?function(e){return function(t,n){var r=Number(t),o=Number(n),i=e(r,o);return function(e){return e<=0?r:e>=1?o:i(e)}}}(this.reInterpolate):this.reInterpolate;return this.input||(this.input=d(this.getRange(),this.getDomain(),h,t)),this.input(Number(e))},t.setLocale=function(e){return void 0===e&&(e=s.default),this.locale=e,this._localeConverter=new l.NumberConverter(e),this},t.getLocale=function(){return this.locale},t.getId=function(){return this._id},e}();t.default=p},477:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(469)),i=r(n(478));function a(e){return null!=e}t.default=function(e,t){var n=o.default;return a(t)&&a(e)&&"boolean"!=typeof t?n(e,t):(0,i.default)(t)}},478:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return function(){return e}}},479:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){var n=Number(e),r=Number(t)-n;return function(e){return Math.round(r*e+n)}}},480:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={decimal:".",thousands:",",grouping:[3],prefix:"$",suffix:""}},481:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t.NumberConverter=void 0;var o=r(n(480)),i=r(n(482)),a=r(n(484)),s=r(n(490)),l=r(n(491)),c=r(n(485)),u=function(e){return e},d=function(){function e(e){this.localeInfo={group:e.grouping&&e.thousands?(0,s.default)(e.grouping,e.thousands):u,prefix:e.prefix,suffix:e.suffix,decimal:e.decimal,numerals:e.numerals?(0,l.default)(e.numerals):u,percent:e.percent||"%",prefixes:e.prefixes||["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"]}}var t=e.prototype;return t.formatter=function(e){return new a.default(e,this.localeInfo)},t.formatPrefix=function(e,t){var n=new c.default(e);n.type="f";var r=this.localeInfo.prefix,o=this.localeInfo.suffix,s=Object.assign({},this.localeInfo,{prefix:"",suffix:""}),l=new a.default(n,s),u=3*Math.max(-8,Math.min(8,Math.floor((0,i.default)(t)/3))),d=Math.pow(10,-u),h=this.localeInfo.prefixes[8+u/3];return{format:function(e){return r+l.format(d*e)+h+o},setCustomPrefix:function(e){return l.setCustomPrefix(e),this},getCustomPrefix:function(e){return l.getCustomPrefix(e)},setCustomSuffix:function(e){return l.setCustomSuffix(e),this},getCustomSuffix:function(e){return l.getCustomSuffix(e)}}},e}();t.NumberConverter=d;var h=new d(o.default);t.default=h},482:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(483));t.default=function(e){var t=(0,o.default)(Math.abs(e));return t?t[1]:NaN}},483:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){var n,r,o;return(n=(o=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0?null:[(r=o.slice(0,n)).length>1?r[0]+r.slice(2):r,+o.slice(n+1)]}},484:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(485)),i=r(n(486)),a=r(n(489)),s=n(487),l=function(e){return null==e},c=function(){function e(e,t){this.specifier=new o.default(e),this.localeInfo=t;var n=this.specifier.symbol;this.fill=this.specifier.fill,this.align=this.specifier.align,this.sign=this.specifier.sign,this.zero=this.specifier.zero,this.width=this.specifier.width,this.comma=this.specifier.comma,this.precision=this.specifier.precision,this.trim=this.specifier.trim,this.type=this.specifier.type,"n"===this.type?(this.comma=!0,this.type="g"):i.default[this.type]||(l(this.precision)&&(this.precision=12),this.trim=!0,this.type="g"),(this.zero||"0"===this.fill&&"="===this.align)&&(this.zero=!0,this.fill="0",this.align="="),"$"===n?this.prefix=this.localeInfo.prefix:"#"===n&&/[boxX]/.test(this.type)?this.prefix="0"+this.type.toLowerCase():this.prefix="","$"===n?this.suffix=this.localeInfo.suffix:/[%p]/.test(this.type)?this.suffix=this.localeInfo.percent:this.suffix="",this.formatType=i.default[this.type],this.mayHaveSuffix=/[defgprs%]/.test(this.type),l(this.precision)?this.precision=6:/[gprs]/.test(this.type)?this.precision=Math.max(1,Math.min(21,this.precision)):this.precision=Math.max(0,Math.min(20,this.precision)),this.setCustomPrefix(""),this.setCustomSuffix("")}var t=e.prototype;return t.format=function(e){var t,n,r,o,i,l,c=this.prefix,u=this.suffix,d=this.formatType,h=e;if("c"===this.type)u=d(h)+u,h="";else if(t=(h=+h)<0,h=d(Math.abs(h),this.precision),this.trim&&(h=(0,a.default)(h)),t&&0==+h&&(t=!1),c=t?("("===this.sign?this.sign:"-")+c:"-"===this.sign||"("===this.sign?""+c:this.sign+c,u="s"===this.type?this.localeInfo.prefixes[8+s.prefixExponent/3]+u:""+u,u+=t&&"("===this.sign?")":"",this.mayHaveSuffix)for(o=-1,i=h.length;++o57){u=(46===l?this.localeInfo.decimal+h.slice(o+1):h.slice(o))+u,h=h.slice(0,o);break}switch(this.comma&&!this.zero&&(h=this.localeInfo.group(h,1/0)),r=(n=c.length+h.length+u.length)=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,o=function(e){return null==e},i=function(){function e(e){var t=r.exec(e);if(!t)throw new Error("Invalid number format specifier: "+e);this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=Boolean(t[5]),this.width=t[6]&&Number(t[6]),this.comma=Boolean(t[7]),this.precision=t[8]&&Number(t[8].slice(1)),this.trim=Boolean(t[9]),this.type=t[10]||""}return e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(o(this.width)?"":Math.max(1,0|this.width))+(this.comma?",":"")+(o(this.precision)?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},e}();t.default=i},486:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(487)),i=r(n(488)),a={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return(0,i.default)(100*e,t)},r:i.default,s:o.default,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};t.default=a},487:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t.prefixExponent=void 0;var o,i=r(n(483));t.prefixExponent=o;t.default=function(e,n){var r,a,s,l,c=(0,i.default)(e,n);return c?(r=c[0],(s=(a=c[1])-(t.prefixExponent=o=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1)===(l=r.length)?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+(0,i.default)(e,Math.max(0,n+s-1))[0]):e+""}},488:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(483));t.default=function(e,t){var n,r,i=(0,o.default)(e,t);return i?(n=i[0],r=i[1],Number(r)<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")):e+""}},489:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){for(var t,n=e.length,r=1,o=-1;r0){if(!+e[r])break;o=0}return o>0?e.slice(0,o)+e.slice(t+1):e}},490:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}},491:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}},492:function(e,t,n){"use strict";t.__esModule=!0,t.tickIncrement=s,t.tickStep=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var a=Math.abs(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=Math.pow(10,s),c=a/l;return c>=r?l*=10:c>=o?l*=5:c>=i&&(l*=2),t=r?10:e>=o?5:e>=i?2:1}function s(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?a(i)*Math.pow(10,o):-Math.pow(10,-o)/a(i)}t.default=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var r,o,i,a=-1,l=[],c=+t,u=+e,d=+n;if(u===c&&d>0)return[u];if((r=c0)for(u=Math.ceil(u/i),c=Math.floor(c/i),o=Math.ceil(c-u+1);++a=c?10:e>=u?5:e>=d?2:1}function f(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?p(i)*Math.pow(10,o):-Math.pow(10,-o)/p(i)}function g(e,t,n){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=7);var r=Math.abs(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=Math.pow(10,o),a=r/i;return a>=c?i*=10:a>=u?i*=5:a>=d&&(i*=2),t0)return[a];if((r=s0)for(a=Math.ceil(a/i),s=Math.floor(s/i),o=Math.ceil(s-a+1);++c2?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):1===arguments.length?(e=0,t=arguments.length<=0?void 0:arguments[0],n=1):(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=1),r=Math.floor(Math.max(0,Math.ceil((t-e)/n))),isFinite(r))for(o=0;o0&&p/C>=10&&(p=C,h=b),g=(Math.floor(D/p)+1)*p,m=P<0?(Math.floor(Math.abs(P/p))+1)*p*-1:I?(m=Math.floor(Math.abs(P/p)-1)*p)<0?0:m:0,!I&&D<=0&&(g=0),v=!(!L&&0!==L),y=!(!N&&0!==N),r.freezeLimit||(!1===v||!0===v&&Number(L)B?(D=g,v=!1):D=Number(L),!1===y||!0===y&&Number(N)>P&&Number(N)-P>B?(P=m,y=!1):P=Number(N))):(y=!(!N&&0!==N),!0===(v=!(!L&&0!==L))&&(Number(L)>=D||t===l.UNDEF)?D=Number(L):v=!1,!0===y&&(Number(N)<=P||e===l.UNDEF)?P=Number(N):y=!1),y&&!v&&t===l.UNDEF&&(D=P<0?0:P+1),v&&!y&&e===l.UNDEF&&(P=D>0?0:D-1),S=[P,D],n.setDomain(S),R&&!r.freezeLimit)v||y?(A=(w=(O=function(e,t,n,r,o,i){for(var a,s,c,u,d,h,p,f,g,m,v,y,b=t-e,C=e,w=Math.ceil(n*(1-r)),x=Math.floor(n*(1+r)),_=[],S=-1,M=function(e){return function(e){var t,n,r=[10,5,2,1],o=r.length;for(t=0;t=x&&(v=!0),u=M(y))||((y=n-S)<=w&&(m=!0),u=M(y))););for(e<0&&t>0&&o&&(c=!0),s=0;s0&&(_.push(0),d=!0),C+=a,_.push(C);return u===l.UNDEF&&o&&((p=(_=i.ticks(n)).length)>1?(h=.2*(a=Math.abs(_[0]-_[1])),f=_[0],g=_[p-1],Math.abs(e-f)<=h&&0!==f&&_.shift(),Math.abs(t-g)<=h&&0!==g&&_.pop(),0!==f&&0!==g||(d=!0)):0===_[0]&&(d=!0)),c&&!d&&-1===_.indexOf(0)&&(e<0&&_[0]>0?_=[0].concat(_):t>0&&_[_.length-1]<0?_.push(0):_=[0],d=!0),{output:_,interval:a,isZeroTickForced:d}}(P,D,i,V=(k=i)>=100?.2:k<=1?0:c(k)/100,r.forceZeroTick,n)).output).length,T=O.isZeroTickForced,Math.abs((i-A+(T?1:0))/i)>V?f=(D-P)/a:(f=0===A||1===A&&T?D-P:O.interval,r.isZeroTickForced=T,r.ticks=T&&0===P?w.concat(D):[P].concat(w,D),W=!1)):(r.ticks=i?n.nice(a).ticks(a):n.getDomain(),f=Math.abs(r.ticks[1]-r.ticks[0]),W=!1);else if(v||y||r.freezeLimit)f=(D-P)/a;else{var U=n.nice(a).getDomain();((_=(x=U[0])+(f=function(e){if(e<=1)return 1;var t=[],n=Math.ceil(e);return t[2]=n%2,t[5]=n%5,t[10]=n%10,(0,s.default)(t)+n}(p=((_=U[1])-x)/a))*a)-D)/D>V||(x-P)/P>V?(n.setDomain([P,D]),f=(D-P)/a):(P=x,D=_,n.setDomain([P,D]))}W&&(P<0&&D>0&&r.forceZeroTick?(0===(E=(M=(0,o.default)(P,0,f))[M.length-1]+f)?E+=f:r.isZeroTickForced=!0,r.ticks=M.concat(0,(0,o.default)(E,D,f),D)):r.ticks=(0,o.default)(P,D,f).concat(D));var q=n.getDomain();P=q[0],D=q[1],r._allTicks=r.ticks.slice(),z.tickInterval=f,z.min=P,z.max=D}},499:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(232)),a=r(n(500)),s=n(218),l=n(506),c=o(n(474)),u=function(e){function t(){return e.apply(this,arguments)||this}(0,i.default)(t,e);var n=t.prototype;return n._getHMaxLabelDimention=function(e){var t,n,r,o,i,l,u,d,h,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F,I,z,B=this,j=e,V=B.config,W=B.getFromEnv("chart"),H=W.config,G=W.getFromEnv("smartLabel"),U=V.axisRange,q=V.labels,Y=V.labelDisplay,X=V.slantLabel,K=q.style,$=V.maxLabelHeight,Z=B.getInterval(),J=V.staggerLines,Q=V.labelStep,ee=H.canvasLeft,te=H.canvasRight,ne=J-2,re=U.max,oe=U.min,ie=0,ae=V.tickValues&&V.tickValues.tickValue,se=ae&&ae.length,le=W.distributedColumns,ce=0,ue={text:s.UNDEF,width:0,style:s.UNDEF},de=0,he=4,pe=s.stubFN,fe=s.stubFN,ge=s.stubFN,me={},ve=0,ye=!1,be=0,Ce=!1,we=Number.POSITIVE_INFINITY,xe=V.ticks,_e=Number.POSITIVE_INFINITY;if(le)for(b=0;bC[t].label.length&&(C[t].label=i):C[t]={label:i,style:l});for(a in C)C.hasOwnProperty(a)&&(n=C[a].style,r=C[a].label,n.lineHeight=(0,s.setLineHeight)(n),G.setStyle(n),x&&(f=parseInt(n.lineHeight,10)),d=G.getSmartText(r,s.UNDEF,f),(p=0===x?d.width>60?60:d.width:d.height)>b&&(b=p,g=C[a]));return _&&(b=Math.min(I,b)),h=Math.floor(Math.abs(B._getCustomPixel(re)-B._getCustomPixel(oe))/b),m=Math.max(Math.ceil(w/h),V.labelStep),u=Math.abs(B._getCustomPixel(oe)-B._getCustomPixel(oe+m)),_&&0===x&&(G.setStyle(g.style),(0,c.default)(Object.values(G.getOriSize(g.label).detailObj))>u-2*he)?(m+=1,u=Math.abs(B._getCustomPixel(oe)-B._getCustomPixel(oe+m)),m):w<=h?V.labelStep:m}},me._inProp={},me.getCopyById=function(e){var t,n=this._inProp,r=this.__root__,o=n.copyStore;return(t=(o=o||{})[e])||(0,s.extend2)(t=o[e]={},r),t},V.tickValues){switch(Y){case"rotate":q.rotation=X?300:270,f=me.getCopyById("rotate");break;case"stagger":(f=me.getCopyById("stagger")).getHeight=function(e){var t,n;return n=(t=V.tickValues.tickValue[e])&&t.style||(t.style={}),l={fontSize:K.fontSize,fontFamily:K.fontFamily,lineHeight:K.lineHeight,fontWeight:K.fontWeight},(0,s.extend2)(l,n),G.setStyle(l),G.getOriSize(t.label).height},f.getWidth=function(e){return he=1,e.individualIW?e.individualIW:2*u*n-he},ge=function(e){var t,n,r,o,i,a,s=e.length,l=0;if(G.setStyle(K),r=G.getOriSize("WWW").height,n=e[s-1],Math.floor(n._cumulativeSum)<=Math.ceil(s*(r+2)))i=Math.floor(j/r),J=i-J<0?i:J;else{i=Math.floor(j/(r+4));do{for(l=0,o=(a=i)-1,s=e.length;o-~j){ye=!0;break}ye=!1,l=t._cumulativeSum,o+=a}}while(i--&&ye);i++,J=Math.min(J,i)}V.drawnStaggerLines=J},pe=function(e){var t,n,o,i,a=0;for(i=0,n=e.length;i=u&&0!==V.rotateLabels)){for(q.rotation=X?300:270,q.forceRotate=!0,f=me.getCopyById("rotate"),h=f.getWidth,p=f.getHeight,ue.width=0,n=0,r=t.length;nie&&(g=w,ie=w.length);for(ue.height=Math.max(de,ue.height||0),D=ae.length,b=0,ce=ae.length;b=0&&!(k=ae[b])._sLabel;b--);P=1!==B.getZoom(),q.rotation||P||!T._sLabel?(V.axisEndLabelDisplaySpace.left=0,V.axisEndLabelDisplaySpace.right=0):(V.axisEndLabelDisplaySpace.left=Math.max(ee-(B._getCustomPixel(T.x||0)-T._sLabel.width/2),0),V.axisEndLabelDisplaySpace.right=Math.max(B._getCustomPixel(k.x||D-1)+k._sLabel.width/2-te,0)),S=ue}else{for(_=V.numberFormatterFn?W.getFromEnv("number-formatter")[V.numberFormatterFn]:V.isPercent?W.getFromEnv("number-formatter").percentValue:W.getFromEnv("number-formatter").xAxis,b=0,R=xe&&xe.length;bie&&(g=w,ie=w.length);G.setStyle({fontSize:K.fontSize,fontFamily:K.fontFamily,lineHeight:K.lineHeight,fontWeight:K.fontWeight}),S=G.getOriSize(g||""),"rotate"===Y&&(q.rotation=270),V.rotateLabels&&(q.rotation=X?300:270),q.rotation||(v=G.getOriSize(v||""),y=G.getOriSize(y||""),V.axisEndLabelDisplaySpace.left=v.width/2+2,V.axisEndLabelDisplaySpace.right=y.width/2+2)}return V.tickValues&&"stagger"===Y&&(S.height=J*ue.height),S.width=E?Math.min(E,S.width):S.width,S.width=(0,s.pluckNumber)(S.width),S.maxWidth=(0,s.pluckNumber)(S.maxWidth),S},n._getVMaxLabelDimention=function(e){var t,n,r,o,i,a,l,c,u,d,h,p,f,g,m=e,v=this.config,y=this.getFromEnv("chart"),b=y.config,C=y.getFromEnv("smartLabel"),w=v.labels.style,x=v.useEllipsesWhenOverflow,_=v.maxLabelWidthPercent,S=v.minLabelWidthPercent,M=0,E=y.getFromEnv("dataSource").categories,O={height:0,width:0},A=v.ticks,T={};if(C.useEllipsesOnOverflow(b.useEllipsesWhenOverflow),C.setStyle({fontSize:w.fontSize,fontFamily:w.fontFamily,lineHeight:w.lineHeight,fontWeight:w.fontWeight}),v.tickValues){for(E&&(T={fontFamily:E[0].font,fontSize:E[0].fontsize,color:E[0].fontcolor}),_&&(n=_/100*b.width)m&&(m=r),o=0,u=(c=v.tickValues.tickValue).length;oM&&(O=h,M=h.width));return O}for(p=v.numberFormatterFn?y.getFromEnv("number-formatter")[v.numberFormatterFn]:v.isPercent?y.getFromEnv("number-formatter").yAxisPercentValue:y.getFromEnv("number-formatter").yAxis,o=0,i=A&&A.length;oM&&(t=l,M=l.length);return C.getOriSize(t)},n.getCleanValue=function(e,t){return this.getFromEnv("number-formatter").getCleanValue(e,t)},n.generateMinorTicks=function(){if(this)return[]},n.setCanvas=function(e){this.config.canvas=e},n._adjustNumberFormatter=function(e){var t,n,r=this.config,o=r.axisIndex,i=r.isVertical,a=this.getFromEnv("chart").getFromEnv("number-formatter"),l=r._defaultDecimalPrecision,c=r._defaultForceDecimal,u=0;n=i||"yAxis"===r.numberFormatterFn?(a.Y[o]||a.Y[0]).yAxisLabelConf:a.paramX,l!==s.UNDEF?n.decimalprecision=l:r._defaultDecimalPrecision=n.decimalprecision,c!==s.UNDEF?n.forcedecimals=c:r._defaultForceDecimal=n.forcedecimals,parseInt(e,10)>0||(t=e.toString().split(".")[1])&&((u=t.match(/^[0]*/)[0].length+1)>n.decimalprecision&&(n.forcedecimals=1),n.decimalprecision=Math.max(u,n.decimalprecision))},n.setLabelConfig=function(e){var t,n=this.config.labels;for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t])},t}(a.default);u.prototype._parseLabel=l._parseLabel,u.prototype._drawLabel=l._drawLabel,u.prototype.getTrendLineLimits=l.getTrendLineLimits,u.prototype.setAxisPadding=l.setAxisPadding,u.prototype.getLabel=l.getLabel;var d=u;t.default=d},500:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.minimumEnquiry=t.getCrispPath=t.default=void 0;var o=r(n(232)),i=r(n(501)),a=n(218),s=r(n(502)),l=r(n(503)),c=r(n(504)),u=n(226),d=n(506),h=function(e,t){var n,r,o=!1,i=t%2;return e[1]===e[4]&&(n=e[1],r=Math.round(n),e[1]=e[4]=i?r>n?r-.5:r+.5:r,o=!0),e[2]===e[5]&&(n=e[2],r=Math.round(n),e[2]=e[5]=i?r>n?r-.5:r+.5:r,o=!0),{path:e,isCrisped:o}},p=function(e){return function(t,n){return!!(e.minValue<=t&&e.maxValue>=t||e.minValue<=n&&e.maxValue>=n)}},f=function(e){return function(t){return!!(e.minValue<=t&&e.maxValue>=t)}},g={wrtVisible:!0},m=function(e){for(var t=0,n=e.length;tC&&!w.tickValues||0===p.width)&&(w.labels.isDraw=0),w.labels.isDraw&&(w.labelMaxW=p.width>$?p.width:$,w.labelMaxH=p.height,W=j=w.labelMaxW+w.labelPadding),w.drawTrendLines&&w.drawTrendLabels&&I&&I.length){for(o=w.isPercent?T.percentValue:w.isVertical?T.yAxis:T.xAxis,S.useEllipsesOnOverflow(_.useEllipsesWhenOverflow),S.setStyle({fontSize:R.fontSize,fontFamily:R.fontFamily,lineHeight:R.lineHeight,fontWeight:R.fontWeight}),t=0,n=I.length;t=d&&b<=u&&b>=d&&(l=1===(m=(0,a.pluckNumber)(g.valueonright,A?1:0))?g.endvalue||g.startvalue:g.startvalue||g.endvalue,(h=(0,a.parseUnsafeString)(g.origText||g.displayvalue||l||""))===l&&(h=""+o.call(T,h)),m?h.length>X.length&&(X=h):h.length>Y.length&&(Y=h));for(U=(p=S.getOriSize(X)).width?p.width+w.labelPadding:0,G=(p=S.getOriSize(Y)).width?p.width+w.labelPadding:0,A?(U>W&&U>C&&(U=C),G>C-(W=Math.max(W,U+w.labelPadding))&&(G=Math.min(G,C-W))):(G>W&&G>C&&(G=C),U>C-(W=Math.max(W,G+w.labelPadding))&&(U=Math.min(U,C-W))),t=0,n=I.length;t=0&&(w.nameMaxW=Math.min(w.nameMaxW,w.axisNameWidth)),H=w.nameMaxW+P)),A?(z?(q.left+=Math.max(j,G),q.right+=U):(q.left+=G,q.right+=Math.max(j,U)),B?(w.axisNamePadding=q.left+P,q.left+=H):(w.axisNamePadding=q.right+P,q.right+=H)):(z?(q.left+=G,q.right+=Math.max(j,U)):(q.left+=Math.max(j,G),q.right+=U),B?(w.axisNamePadding=q.right+P,q.right+=H):(w.axisNamePadding=q.left+P,q.left+=H)),O.isDraw&&w.axisNamePadding+w.nameMaxW>C&&(w.axisNamePadding=C-w.nameMaxW,H=w.nameMaxW+w.axisNamePadding-W),q},n._placeHorizontalAxis=function(e){var t,n,r,o,i,s,l,c,u,d,h,p,f,g,m,v,y,b,C=e,w=this.config,x=this.getFromEnv("chart"),_=x.config,S=x.getFromEnv("smartLabel"),M=w.axisRange,E=w.name,O=w.isOpposit,A=x.getFromEnv("number-formatter"),T=w.drawLabelsOpposit,k=w.drawAxisNameOpposit,D=0,P=_.canvasWidth,N=w.labelPadding=(0,a.pluckNumber)(w.rawAttr.axisValuePadding,4),L=(0,a.pluckNumber)(w.rawAttr.axisNamePadding,5),R=w.useEllipsesWhenOverflow,F=w.name.style,I=w.trend.trendStyle,z=w.axisName,B=w.vTrendLines,j=0,V=0,W=0,H={top:0,bottom:0},G=0,U=0;if(N<0&&(w.labelPadding=2),v=w.drawTick&&w.tickLength?w.axisLineThickness+w.tickLength:w.axisLineThickness,w.showAxisLine?(w.labelPadding=(0,a.pluckNumber)(N,2)+v,w.labelPadding<0&&(w.labelPadding=(w.axisLineThickness<0?0:v)+2),C-=w.axisLineThickness):(w.labelPadding=(0,a.pluckNumber)(N,2),w.labelPadding<0&&(w.labelPadding=2)),l=M.max,c=M.min,w.labels.rotation=0,w.labels.step=w.labelStep,w.labels.isDraw=1,w.labels.drawNormalVal=w.showDivLineValues,w.labels.drawLimitVal=w.showLimits,U=F.lineHeight,U=Number(U.replace(/px/i,"")),z&&UC&&!w.tickValues&&(w.labels.isDraw=0):g.height+w.labelPadding>C&&!w.tickValues&&(w.labels.isDraw=0),w.labels.isDraw&&(w.labels.rotation?(w.labelMaxW=g.height,w.labelMaxH=g.width,D=g.width+w.labelPadding):(w.labelMaxW=g.width,w.labelMaxH=g.height,D=g.height+w.labelPadding),j=D),h=(j=Math.max(j,w.labelPadding))<=C?C-j:C,w.drawTrendLines&&w.drawTrendLabels&&B&&w.isActive)for(m=w.isPercent?this.getFromEnv("number-formatter").percentValue:w.isVertical?this.getFromEnv("number-formatter").yAxis:this.getFromEnv("number-formatter").xAxis,S.useEllipsesOnOverflow(_.useEllipsesWhenOverflow),S.setStyle({fontSize:I.fontSize,fontFamily:I.fontFamily,lineHeight:I.lineHeight,fontWeight:I.fontWeight}),n=0,r=B.length;n=c&&b<=l&&b>=c&&(t=1===(0,a.pluckNumber)(p.valueonright,0)?p.endvalue||p.startvalue:p.startvalue||p.endvalue,(u=(0,a.parseUnsafeString)(p.origText||p.displayvalue||t||""))===t&&(u=""+m.call(x.getFromEnv("number-formatter"),u)),p.origText=u,h-((f=S.getSmartText(u,x.canvasWidth,I.lineHeight,R)).height+2)<0?p.displayvalue=a.BLANKSTRING:((o=w.parsedTrendLabels[V++])&&(o.attr.text=p.displayvalue=f.text),G=GC&&(w.axisNamePadding=C-i.height,W=i.height+w.axisNamePadding-j)),O?(T?H.bottom+=D+G:(H.top+=D,H.bottom+=G),w.trendBottomPadding=H.bottom-G+2,k?H.bottom+=W:H.top+=W):(T?(H.top+=D,H.bottom+=G):H.bottom+=D+G,w.trendBottomPadding=H.bottom-G+2,k?H.top+=W:H.bottom+=W),H},n._parseCategoryPlotLine=function(){var e,t,n,r=this.config,o=r.axisRange,i=r.tickValues.tickValue,s=(0,a.convertColor)(r.divLineColor,r.divLineAlpha),l=r.divLineThickness,c=r.divLineIsDashed?(0,a.getDashStyle)(r.divLineDashLen,r.divLineDashGap,l):a.DASH_DEF,u=f(this.getVisibleConfig()),d=r._allTicks,h=d.length;if(e={stroke:s,"stroke-width":l,"stroke-dasharray":c},(!i[0]||i[0].x===a.UNDEF&&i[0].y===a.UNDEF)&&r.lines.isDraw&&r.categoryNumDivLines)for(t=0;t(l=s+(u-s)/2)||Ds||Df?v.height/2:h+f/2,e.text=t.text,e.x=C?(A||m)+S+E/2:(A||d)-S-E/2,e.y=i):(n=(t=x.getSmartText(b,p,M)).tooltext,C&&v.canvasMarginTop&&(S=Math.max(S,v.canvasMarginTop-v.marginTop-M)),!C&&v.canvasMarginBottom&&(S=Math.max(S,v.canvasMarginBottom-v.marginBottom-M)),e.text=t.text,e.x=d+p/2,e.y=C?(A||h)-S-M/2:(A||g)+S+M/2),e["text-bound"]=""===t.text?[]:[y.backgroundColor,y.borderColor,y.borderColor?y.borderThickness:0,y.borderPadding,y.borderRadius,y.borderDash],e.transform=P.getSuggestiveRotation(w?D:0,e.x,e.y),k=this.addGraphicalElement("axisName",u.setAnimation({css:N,el:k||"text",attr:e,container:_,component:this,label:"text"})),s.showTooltip?l.enableToolTip(k,n):l.disableToolTip(k)):k&&this.removeGraphicalElement(k)},n._drawAxisLine=function(){var e,t,n,r,o,i,s,c,u,d,p,f,m,v,y,b,C,w,x=this.config,_=x.isVertical,S=x.isOpposit,M=this.getFromEnv("chart"),E=this.getLinkedItem("canvas").getEffectiveDimensions(),O=this.getFromEnv("animationManager"),A=E.top,T=E.left,k=A+E.height,D=T+E.width,P=x.axisDimention,N=_?P.x:P.y,L=x.drawAxisLineWRTCanvas,R=M.getFromEnv("chart-attrib"),F=x.axisAxisLineContainerBottom,I=this.getGraphicalElement("axisLine"),z=[];if(r=1===(0,a.pluckNumber)(R.showyaxisline,R.showyaxisline)?(0,a.pluckNumber)(R.yaxislinethickness,R.pyaxislinethickness,1):0,x.showAxisLine){if(_?(o=S?(N=L?D:N)+x.axisLineThickness/2:(N=L?T:N)-x.axisLineThickness/2,n=(b=h(["M",o,k,"L",o,A],x.axisLineThickness)).path):(o=S?(N=L?A:N)-x.axisLineThickness/2:(N=L?k:N)+x.axisLineThickness/2,n=(b=h(["M",T-r,o,"L",D,o],x.axisLineThickness)).path),c={path:n,stroke:x.axisLineColor,"stroke-linecap":"butt","stroke-width":x.axisLineThickness,"shape-rendering":b.isCrisped?"crisp":a.UNDEF},x.drawTick&&x.tickLength)for(e={stroke:x.tickColor,"stroke-width":x.tickWidth},i=_?S?o+x.tickLength:o-x.tickLength:S?o-x.tickLength:o+x.tickLength,y=0,w=(C=x.tickValues?x.tickValues.tickValue.map(function(e){return _?e.y:e.x}):x.ticks).length;yE&&(x=Math.ceil(D.labelMaxH/E)),x>D.labels.step&&(D.labels.step=x)),te&&(M=2*Math.abs(this.getPixel(Q,g)-this.getPixel(Q+D.labels.step,g))*D.sWidthAdjstFactor-1),A=(r=D.labels.rotation)?D.labelMaxH:D.labelMaxW,T=r?D.labelMaxW:D.labelMaxH,D.drawLabelsOpposit&&(B=!B,X=K),$&&$[0]&&"auto"!==D.xAxisLabelMode&&(Z.fontFamily=$[0].font,Z.fontSize=$[0].fontsize,Z.color=$[0].fontcolor),D.ParentCss=p={fontFamily:(0,a.pluck)(Z.fontFamily,V.fontFamily),fontSize:(0,a.pluck)(Z.fontSize,this.computeFontSize(V.fontSizeWithUnit)+a.PXSTRING),fontWeight:(0,a.pluck)(V.fontWeight),fontStyle:(0,a.pluck)(V.fontStyle)},p.lineHeight=(0,a.setLineHeight)(p),C=this._getCategoryArr(),R.labelIndexArr=[],e=0,w=C.length;ec&&(p=Math.ceil(d.labelMaxH/c)),p>d.labels.step&&(d.labels.step=p)),l=d.labels.step>0?d.labels.step:1,u=1!==this.getZoom(),i=this.getVisibleConfig(),t=r;t<=n;t+=l)(o=e[t])&&(s=(0,a.pluckNumber)(o.x,o.y,t),0!==(0,a.pluckNumber)(o.showlabel,d.showLabels,1)&&(u&&(si.maxValue)?o.labelCount=f++:("auto"!==d.xAxisLabelMode&&"mixed"!==d.xAxisLabelMode||0!==d.showZeroPlane&&0!==d.showZeroPlaneValue||0!==s)&&(d.labels.drawNormalVal||d.labels.drawLimitVal&&(t===r||t===n))&&(d.labels.drawNormalVal||t===r||t===n)&&(d.labels.drawLimitVal||t!==r&&t!==n)&&(o.labelCount=f++,v.push({index:t,value:s}))));return v},n.getValue=function(e,t){void 0===t&&(t={wrtVisible:!1});var n=this.getScale(),r=this.getTranslation();return n.getDomainValue(t.wrtVisible?e:e-r)},n.getPixel=function(e,t){void 0===t&&(t={wrtVisible:!1});var n=this.getScale(),r=this.getTranslation(),o=n.getRangeValue(e);return t.wrtVisible?o:o+r},n._getCustomPixel=function(e,t,n){if(void 0===n&&(n={wrtVisible:!1}),!t)return this.getPixel(e,n);var r=this.getScale().copy(),o=r.getRange(),i=o[0],a=o[1],s=Math.min(i,a),l=r.getRangeValue(e),c=this.getTranslation();return r.setRange([s,s+t]),n.wrtVisible?l:l+c},n.getTranslation=function(){return this.config.translation||0},n.setVisibleConfig=function(e,t){var n,r=this.config,o=this.getZoom(),i=this.getScale();return!(e>=t||er.axisRange.max)&&(n=i.setDomain([e,t]).getDomain(),r.visibleMin=n[0],r.visibleMax=n[1],r.zoom=this._computeZoom(),r.translation=this._computeTranslation(),1===o&&1===this.getZoom()||(r.ticks=this.generateTicks(),r.minorTicks=this.generateMinorTicks(),r.tickValues&&this.calculateTicksOnLabelMode&&this.calculateTicksOnLabelMode()),this.clearReferenceInfo(),this._parseReferenceVisuals(),this.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),this.asyncDraw(),!0)},n.hide=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.hide(),e.axisContainer.hide(),e.axisNameContainer.hide(),e.axisTrendLabelContainer.hide(),e.axisAxisLineContainer.hide(),e.axisAxisLineContainerBottom.hide())},n.show=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.show(),e.axisContainer.show(),e.axisNameContainer.show(),e.axisTrendLabelContainer.show(),e.axisAxisLineContainer.show(),e.axisAxisLineContainerBottom.show())},n.getZoom=function(){return this.config.zoom||1},n._computeTranslation=function(){var e=this.config,t=this.getVisibleConfig(),n=(0,a.pluckNumber)(t.minValue,e.axisRange.min,0),r=(0,a.pluckNumber)(e.axisRange.min,t.minValue,0);return this.getPixel(n)-this.getPixel(r)},n._computeZoom=function(){var e=this.config,t=this.getVisibleConfig(),n=(0,a.pluckNumber)(t.minValue,e.axisRange.min,0),r=(0,a.pluckNumber)(t.maxValue,e.axisRange.max,1),o=(0,a.pluckNumber)(e.axisRange.min,t.minValue,0),i=(0,a.pluckNumber)(e.axisRange.max,t.maxValue,1),s=e.maxZoomLimit,l=(i-o)/(r-n);return l>s?s:l},n.getTickValues=function(){var e=this.config.tickValues;return e&&e.tickValue||[]},n.dataLabels=function(e){var t=this.config.axisIndex;return this.getFromEnv("number-formatter").dataLabels(e,t)},n.getAxisBase=function(){var e=this.getVisibleConfig(),t=e.minValue,n=e.maxValue;return t<0&&n>0?0:n<=0?n:t},n._parseReferenceVisuals=function(){var e,t,n=this.config,r=this.getTickValues(),o=r.length,i=this.getFromEnv("chartConfig").is3D;n.isActive||(e=n.lines.isDraw,t=n.band.isDraw,n.lines.isDraw=0,n.band.isDraw=0),n.tickValues?n.drawLabels&&this._parseCategoryLine(r,0,o):n.drawPlotlines&&this._parsePlotLine(),n.tickValues&&"auto"!==n.xAxisLabelMode?(n.drawPlotlines&&!i&&this._parseCategoryPlotLine(),n.drawPlotBands&&!i&&this._parseCategoryPlotBand(),"mixed"===n.xAxisLabelMode&&n.drawPlotBands&&!i&&this._parsePlotBand()):n.drawPlotBands&&!i&&this._parsePlotBand(),n.isActive||(n.lines.isDraw=e,n.band.isDraw=t),n.drawTrendLines&&this._parseTrendLine()},n._parseCategoryPlotBand=function(){var e,t,n,r,o,i=this.config,s=i.tickValues.tickValue,l=i.showAlternateGridColor,c=i.alternateGridColor,u=i.alternateGridAlpha,d=i._allTicks,h=this.getLimit(),f=h.min,g=h.max,m=p(this.getVisibleConfig());if((!s[0]||s[0].x===a.UNDEF&&s[0].y===a.UNDEF)&&l&&i.band.isDraw&&i.categoryNumDivLines)for(e={fill:(0,a.toRaphaelColor)((0,a.convertColor)(c,u)),"stroke-width":0},t=0,o=0;oO||fO||gi.maxValue)||((s={stroke:(0,a.convertColor)((0,a.pluck)(o.linecolor,g.verticalLineColor,h.divLineColor,p.getColor("divLineColor")),(0,a.pluck)(o.linealpha,g.verticalLineAlpha,p.getColor("divLineAlpha"))),"stroke-width":(0,a.pluckNumber)(o.linethickness,g.verticalLineThickness,1)})["stroke-dasharray"]=(0,a.pluckNumber)(o.linedashed,g.verticalLineDashed,0)?(0,a.getDashStyle)((0,a.pluckNumber)(o.linedashLen,g.verticalLineDashLen,4),(0,a.pluckNumber)(o.linedashgap,g.verticalLineDashGap,2),s["stroke-width"]):a.DASH_DEF,this.setReferenceInfo({type:"line",from:l,layer:1,attr:s}))))},n._parsePlotBand=function(){var e,t,n,r,o,i,s=this.config,l=s.showAlternateGridColor,c=s.alternateGridColor,u=s.alternateGridAlpha,d=s._allTicks,h=p(this.getVisibleConfig()),f=s.isReverse;if(l&&s.band.isDraw)for(t=1,e={fill:(0,a.toRaphaelColor)((0,a.convertColor)(c,u)),"stroke-width":0},r=0,n=d.length;r0&&(r.setPadding=!0,this._setAxisRange({min:s-n,max:l+n})),r.tickValues||r.originalMax&&r.originalMin&&this.setDataLimit(r.originalMax,r.originalMin)},t._createContainer=function(){var e,t,n,r,o,i=this.config,a=i.isVertical,s=this.getLinkedParent().getChildContainer(),l=s.axisBottomGroup,c=s.axisTopGroup,u=-this.getTranslation(),d=a?"T0,"+u:"T"+u+",0";t=this.createContainer("axisNameGroup",{name:"dataset-Name-group"},l),e=this.createContainer("axisLineGroup",{name:"axis-Line-group"},c),n=this.createContainer("axisTrendGroupTop",{name:"dataset-Trend-group-top"},c),r=this.createContainer("axisLabelGroup",{name:"dataset-Label-group"},l),o=this.createContainer("axisLabelGroupTop",{name:"dataset-Label-group"},c),i.axisContainer=this.createGroup("axisContainer",{name:"dataset-axis",transform:d},r),i.axisLabelContainerTop=this.createGroup("axisLabelContainerTop",{name:"dataset-top-label",transform:d},o),i.axisAxisLineContainer=this.createGroup("axisAxisLineContainer",{name:"axis-line-tick"},e),i.axisTrendLabelContainer=this.createGroup("axisTrendLabelContainer",{name:"dataset-axis-trend-label"},n),i.axisNameContainer=this.createGroup("axisNameContainer",{name:"dataset-axis-name"},t),i.axisAxisLineContainerBottom=this.createGroup("axisAxisLineContainerBottom",{name:"axis-line-tick-bottom"},l)},t.shiftLabels=function(e,t){var n=this.config.labels;n.shiftX=e,n.shiftY=t},t.setTickValues=function(e){var t,n,r,o=e&&e.length,i=this.config,s=i.startPad||0,c=this.getFromEnv("chart"),u=0,d=i.tickValues={},h=d.tickValue=[],p=d.vline=[],f=d.tickIdMap={},g=i.endPad||0;for(i.hasCategory=1,t=0;tY&&!C.tickValues&&(l=Math.ceil(C.labelMaxH/Y)),u["text-anchor"]=E?a.POSITION_START:a.POSITION_END):(C.labelMaxW>Y&&!C.tickValues&&(l=Math.ceil(C.labelMaxW/Y)),n?(u["text-anchor"]=E?a.POSITION_START:a.POSITION_END,u["vertical-align"]="middle"):u["vertical-align"]=E?a.POSITION_BOTTOM:a.POSITION_TOP,h=I,p=S.width-B),l>C.labels.step&&(C.labels.step=l),c=C.numberFormatterFn?R[C.numberFormatterFn]:C.isPercent?R.yAxisPercentValue:P?R.yAxis:R.xAxis,V.firstLabel={},V.lastLabel={},v=K.filter(function(e,t,n){return 0!==e||C.showZeroPlaneValue?!(!P&&(C.isReverse?0!==t:t!==n.length-1)&&b.getPixel(e,s)+C.labelMaxW>B)&&!(t%C.labels.step!=0&&(!C.labels.drawLimitVal||0!==t&&t!==n.length-1)||(X[$++]=t,0)):!(!Q||Q&&ee.max!==e&&ee.min!==e)&&(X[$++]=t,!0)}),C.isZeroTickForced&&-1!==v.indexOf(0)&&($=0,X=[],m=b.getPixel(0),v=v.filter(function(e,t,n){return y=b.getPixel(e),0===n[t+1]||0===n[t-1]?P?!(y+G>=m&&m>=y-G)&&(X[$++]=t,!0):!(y+U>=m&&m>=y-U)&&(X[$++]=t,!0):(X[$++]=t,!0)})),o=(P?U:Y/2)*C.labels.step,i=P?Y/2:G,A.labelIndexArr=X.slice(),e=0,t=v.length;er&&(d["vertical-align"]=a.POSITION_BOTTOM),(Z&&f===N&&C.upperLimitDisplay||!Z&&f===L&&C.lowerLimitDisplay)&&g&&g.height>r&&(d["vertical-align"]=a.POSITION_TOP),C.placeValuesInside&&(d["text-anchor"]=E?a.POSITION_END:a.POSITION_START)):(d.x=b.getPixel(f,s),d.y=E?(W||F)-j:(W||z)+j,(!Z&&f===L||Z&&f===N)&&g&&g.width>2*h&&(d["text-anchor"]=a.POSITION_START),(!Z&&f===N||Z&&f===L)&&g&&g.width>2*p&&(d["text-anchor"]=a.POSITION_END),C.placeValuesInside?d["vertical-align"]=E?a.POSITION_TOP:a.POSITION_BOTTOM:d["vertical-align"]=E?a.POSITION_BOTTOM:a.POSITION_TOP),d["text-bound"]=void 0===f?[]:[(0,a.pluck)(k.backgroundColor,a.BLANKSTRING),(0,a.pluck)(k.borderColor,a.BLANKSTRING),(0,a.pluck)(k.borderThickness,a.BLANKSTRING),(0,a.pluck)(k.borderPadding,0),(0,a.pluck)(k.borderRadius,0),(0,a.pluck)(k.borderDash,"none")],O.shiftX&&(d.x+=O.shiftX),O.shiftY&&(d.y+=O.shiftY),d.transform=(0,a.getSuggestiveRotation)(n,d.x,d.y),T[X[e]].config.props.label.attr=d},t._drawLabel=function(){var e,t,n,r,i,a,s,l,c,u,d,h=this.config,p=this.getFromEnv("animationManager"),f=this.getFromEnv("toolTipController"),g=h.axisRange,m=h.labels.style,v=this.components,y=g.max,b=g.min,C=h.axisContainer,w=h.extremeLabels,x=h.ticks,_=[],S={fontFamily:m.fontFamily,fontSize:m.fontSize,fontWeight:m.fontWeight,fontStyle:m.fontStyle,lineHeight:m.lineHeight};if(h.labels.isDraw)for(d=v.labels,u=v.labelIndexArr,C.css(S),t=0,n=u&&u.length;t=0}},509:function(e,t,n){var r=n(510);e.exports=function(e,t,n){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;n=0;){if(n[h]===e)return r[h]===t;h-=1}switch(o){case"Map":return e.size===t.size&&u(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&u(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=l(e);if(p.length!==l(t).length)return!1;var f=n.concat([e]),g=r.concat([t]);for(h=p.length-1;h>=0;){var m=p[h];if(!a(m,t)||!d(t[m],e[m],f,g))return!1;h-=1}return!0}e.exports=d},512:function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},513:function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},514:function(e,t,n){var r=n(331)(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t});e.exports=r},515:function(e,t,n){var r=n(332),o=n(338),i=n(516),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n=0;)o(t=s[n],e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)});e.exports=u},516:function(e,t,n){var r=n(338),o=Object.prototype.toString;e.exports=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return r("callee",e)}}},517:function(e,t,n){var r=n(332)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});e.exports=r},518:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(499)),a=r(n(497)),s=r(n(519)),l=n(218),c=n(506),u=l.preDefStr.POSITION_START,d=l.preDefStr.POSITION_MIDDLE,h=l.preDefStr.POSITION_TOP,p=l.preDefStr.POSITION_BOTTOM,f=l.preDefStr.POSITION_END,g={wrtVisible:!0},m=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new s.default,t}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"category"},n.getCategoryFromId=function(e){var t=this.config.tickValues;return(t&&t.tickIdMap)[e]||{}},n.generateTicks=function(){var e=this.getScale(),t=this.config,n=e.getDomain(),r=t.categoryNumDivLines+1,o=(n[1]-n[0])/r,i=t.axisRange,s=i.min,l=i.max,c=(l-s)/r;return t._allTicks=(0,a.default)(s,l,c).concat(l),i.tickInterval=c,(0,a.default)(n[0],n[1],o).concat(n[1])},n._parseCategoryVline=function(){var e,t,n,r,o,i,a,s,c,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F=this.config,I=F.axisRange,z=I.min,B=I.max,j=this.getFromEnv("chart").config,V=j.style||{},W=F.isVertical,H={fontFamily:j.style.inCanfontFamily,fontSize:j.style.inCanfontSize,color:j.style.inCancolor,lineHeight:j.style.inCanLineHeight};for(n=(t=F.tickValues.vline).length,P=1!==this.getZoom(),N=this.getVisibleConfig(),i=0;i1?.5:m,g=g<0||g>1?0:g,b=(0,l.convertColor)(b,v?y:"0"),R=r.animate&&!W?r.startIndex+1:r.startIndex,D=this._getVlinePos(R,m)-(r.animate?r.leftShift:0),P&&(DN.maxValue)||DB||(E={opacity:1,stroke:b,"stroke-width":w,"stroke-dasharray":x?(0,l.getDashStyle)(_,M):"none"},A={opacity:1,text:o,"text-anchor":s,"vertical-align":c,"text-bound":[]},O={fontSize:H.fontSize,fontFamily:H.fontFamily,lineHeight:H.lineHeight},L={from:D,layer:(0,l.pluckNumber)(r.showontop,F.showVLinesOnTop,0)?3:2,attr:E,type:"line",startIndex:r.startIndex,linePosition:m},o&&(A["text-bound"]=[C,v&&a?b:l.BLANKSTRING,v&&a?1:0,2,l.UNDEF,v&&a?"solid":l.BLANKSTRING],A.fill=v?T:b,L.text={label:o,attr:A,layer:4,labelRotation:k,labelPosition:g,css:O}),this.setReferenceInfo(L),this.config.parsedVlineInfo.push(L))},n._parseReferenceVisuals=function(){e.prototype._parseReferenceVisuals.call(this),this.config.drawPlotlines&&this._parseCategoryVline()},n.categoryInsert=function(e,t,n){var r,o,i,a,s,c=e,u=this.config,d=u.axisRange.min,h=t.length,p=u.endPad||0;for(r=u.tickValues.tickValue,i=u.tickValues.tickIdMap,o=u.tickValues.vline,a=0;a=e&&("right"===n?o.startIndex+=t:o.startIndex-=t,(o.startIndex<0||o.startIndex>=s)&&(a.splice(r,1),l-=1,r-=1))},n.categoryTranslate=function(e){var t,n=e,r=this.config;n=(n||0)*(this.getPixel(1,g)-this.getPixel(0,g)),r.isReverse&&(n=-n),t=["T",n,",","0"].join(""),this.realTimeTranslatableGroups=[{group:r.axisContainer,translationStr:t},{group:r.axisTrendLabelContainer,translationStr:t}]},n.updateTicksValues=function(e,t){var n,r,o,i,a,s,l,c=this.config,u=c.parsedVlineInfo;if((n=c.tickValues.tickValue)[e])for(l in t)t.hasOwnProperty(l)&&("x"===l&&(r=!0),n[e][l]=t[l]);if(r)for(i=0,a=u.length;io||(d===o&&h===r||(t=!0),i.visibleMin===l.UNDEF||i.setPadding||t?(u.max=o,u.min=r,c&&(i.categoryNumDivLines=(o-r)/c-1),n=(o-r)/(i.categoryNumDivLines+1),this.getScale().setDomain([r,o]),i.ticks=(0,a.default)(r,o,n).concat(o),i._allTicks=i.ticks.slice(),s.min=r,s.max=o,s.tickInterval=n,this.setVisibleConfig(s.min,s.max)):i.setPadding=!1)},t}(i.default);m.prototype.setTickValues=c.setTickValues;var v=m;t.default=v},519:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(232)),a=r(n(476)),s=o(n(469)),l=function(e){function t(){return e.call(this,a.deInterpolateLinear,s.default)||this}return(0,i.default)(t,e),t.prototype.copy=function(){return(0,a.copyScale)(this,new t)},t}(a.default);t.default=l},520:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t,n=e._parseCanvasCosmetics&&e._parseCanvasCosmetics();if((0,a.componentFactory)(e,o.default,"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas"))for(var r=0,s=t.length;r=0))for((i=d[r])||(i=d[r]=[]),e=s[r],t=0;tf?(t=u,n=c):(t=f,n=p),t>0&&this.removeData(n,t,!1)}},n.hidePlots=function(){var e,t=this,n=t.components.data,r=t.getSkippingInfo(),o=r.hide,i=r.hideLabel;o.forEach(function(r){(e=n[r])&&e.graphics&&(T(e.graphics,t.__removeElem),e&&(e.graphics={}))}),i.forEach(function(r){(e=n[r])&&e.graphics&&(T(e.graphics,t.__removeElem),e&&(e.graphics={}))})},n._setConfigure=function(e,t){var n,r,o,i,s,l,c,d,f=this,g=f.getFromEnv("chart"),m=g.config,v=f.config,y=f.getFromEnv("xAxis"),b=g.isRealTime,C=m.realTimeConfig&&m.realTimeConfig.numDisplaySets,w=f.getFromEnv("dataSource").categories&&f.getFromEnv("dataSource").categories[0]&&f.getFromEnv("dataSource").categories[0].category,x=v.initCatLen=b?w&&Array.isArray(w)&&w.filter(function(e){return!e.vline}).length||0:y.getTicksLen(),_=v.JSONData||[],S=e||_.data,M=e&&e.data.length,E=v.showplotborder,O=m.plotborderthickness,A=f.components.data,T=m.isDrag,k=f.getSkippingInfo&&f.getSkippingInfo(),D=k&&k.draw||[],P=k&&k.skippingApplied;for(c=M===h&&x>C?x-C:0,n=b?(0,a.pluckNumber)(M,x):Math.min(x,S&&S.length),m.dragTolerance=T?(E&&O>5?O/2+1:5)+p:0,A||(A=f.components.data=[]),P&&(n=D.length),l=c;l=0?ve:0,be=H.usedataplotcolorforlabels;V=X.getLabel(n?e-n:ye+e),he.origLabel=j=(0,a.getValidValue)((0,a.parseUnsafeString)(V.label)),y=he.label=(0,a.getValidValue)((0,a.parseUnsafeString)(V.tooltext))||j,t.tooltext!==h&&(t.tooltext=(0,a.parseTooltext)(t.tooltext,[3],{label:V.label},t,$,U)),he.dataLabelStyle=this._configureDataLabelStyle(t),he.minplotheightforvalue=(0,a.pluckNumber)(t.minplotheightforvalue,G.minplotheightforvalue),he.showValue=(0,a.pluckNumber)(t.showvalue,G.showValues),he.givenPlotShowValue=(0,a.pluckNumber)(t.showvalue),he.setValue=v=Y.getCleanValue(t.value,(0,a.pluckNumber)(H.stack100percent)),he.setLink=(0,a.pluck)(t.link),he.toolTipValue=R=Y.dataLabels(v),he.setDisplayValue=F=(0,a.parseUnsafeString)(t.displayvalue),he.displayValue=(0,a.pluck)(F,R),he.dashed=I=(0,a.pluckNumber)(t.dashed,G.dashed),z=(0,a.pluckNumber)(t.dashlen,ie),B=ae=(0,a.pluckNumber)(t.dashgap,ae),he.valuePadding=(0,a.pluckNumber)(t.valuepadding,U.valuepadding,H.valuepadding),null!==v&&(G.maxValue=w(G.maxValue,v),G.minValue=C(G.minValue,v),0!==v&&G.minAbsNonZeroValue>Math.abs(v)&&(G.minAbsNonZeroValue=Math.abs(v),G.minAbsNonZeroData=he)),he.plotBorderDashStyle=m=1===I?(0,a.getDashStyle)(z,B):0===I?"none":de,q?(Q=Z.getPlotColor((0,a.pluckNumber)(e-n,e)),Q=(0,a.pluck)(t.color,Q),be&&X.updateTicksValues(e,{labelfontcolor:(0,a.convertColor)(Q)}),g=(0,a.pluck)(t.alpha,t.borderalpha,G.plotborderalpha,p).toString(),he.id=t.id?(0,a.pluck)(t.id,he.id):(0,a.getValidValue)((0,a.parseUnsafeString)(V.label))):(Q=(0,a.pluck)(t.color,G.plotColor),g=(0,a.pluck)(t.alpha,G.plotborderalpha,p).toString(),he.id=t.id?(0,a.pluck)(t.id,he.id):(0,a.getValidValue)((0,a.parseUnsafeString)(V.label))+"-"+(U.seriesname?U.seriesname:this.getJSONIndex())),Q=(0,a.hashify)(Q),f=(0,a.pluck)(t.ratio,G.ratio),p=(0,a.pluck)(t.alpha,G.plotfillalpha),he.plotFillAlpha=p,he.plotBorderAlpha=g,he.shadow={opacity:G.showShadow?p/100:0},v<0&&!le&&(c=G.plotfillangle,ue=pe?180-ue:360-ue),he.plotbordercolor=G.usePattern&&!$.plotbordercolor?Q:G.plotbordercolor,he.colorArr=b=(0,a.getColumnColor)(Q+","+G.plotgradientcolor,p,f,ue,le,he.plotbordercolor,g,pe?1:0,!!fe),he.originalPlotColor=Q,he.patternType=d.includes(t.patterntype)?t.patterntype:G.patternType,he.patternAngle=(0,a.pluckNumber)(t.patternangle,U.patternangle,$.patternangle,he.patternType===d[0]?40:0),he.patternDensity=(0,a.pluckNumber)(t.patterndensity,G.patternDensity),he.patternSize=(0,a.pluckNumber)(t.patternsize,U.patternsize,he.patternType===d[0]?2:4),he.patternAlpha=(0,a.pluckNumber)(t.patternalpha,G.patternAlpha),he.patternBgColor=(0,a.pluck)(t.patternbgcolor,G.patternBgColor),0!==ce&&(x=(0,a.pluck)(t.hovercolor,U.hovercolor,$.plotfillhovercolor,$.columnhovercolor,Q),_=(0,a.pluck)(t.hoveralpha,U.hoveralpha,$.plotfillhoveralpha,$.columnhoveralpha,p),!(S=(0,a.pluck)(t.hovergradientcolor,U.hovergradientcolor,$.plothovergradientcolor,G.plotgradientcolor))&&(S=""),M=(0,a.pluck)(t.hoverratio,U.hoverratio,$.plothoverratio,f),E=(0,a.pluckNumber)(360-t.hoverangle,360-U.hoverangle,360-$.plothoverangle,ue),O=(0,a.pluck)(t.borderhovercolor,U.borderhovercolor,$.plotborderhovercolor,G.plotbordercolor),A=(0,a.pluck)(t.borderhoveralpha,U.borderhoveralpha,$.plotborderhoveralpha,$.plotfillhoveralpha,$.columnhoveralpha,g,p),T=(0,a.pluckNumber)(t.borderhoverthickness,U.borderhoverthickness,$.plotborderhoverthickness,G.showplotborder&&se),k=t.borderhoverdashed||U.borderhoverdashed||$.plotborderhoverdashed,D=(0,a.pluckNumber)(t.borderhoverdashgap,U.borderhoverdashgap,$.plotborderhoverdashgap,ie),P=(0,a.pluckNumber)(t.borderhoverdashlen,U.borderhoverdashlen,$.plotborderhoverdashlen,ae),N=k!==h?Number(k)?(0,a.getDashStyle)(P,D):"":m,(H.drawTrendRegion&&!fe||1===ce&&x===Q)&&(x=(0,a.getLightColor)(x,70)),L=(0,a.getColumnColor)(x+","+S,_,M,E,le,O,A.toString(),pe?1:0,!!fe),he.setRolloutAttr={fill:fe?[(0,a.toRaphaelColor)(b[0]),!ge]:(0,a.toRaphaelColor)(b[0]),stroke:J?(0,a.toRaphaelColor)(b[1]):a.TRACKER_FILL,"stroke-width":J?se:0,"stroke-dasharray":m},he.setRolloverAttr={fill:fe?[(0,a.toRaphaelColor)(L[0]),!ge]:(0,a.toRaphaelColor)(L[0]),stroke:O?(0,a.toRaphaelColor)(L[1]):a.TRACKER_FILL,"stroke-width":T,"stroke-dasharray":N},he.hoverColor=x,he.hoverAlpha=_,he.hoverBorderColor=O,he.hoverBorderAlpha=A),r=he.toolTipValue,he.origToolText=i=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(t.tooltext,U.plottooltext,$.plottooltext),!1)),ee?null===r?u=!1:i!==h?(l=[1,2,3,4,5,6,7],o={yaxisName:te,xaxisName:ne,formattedValue:r,label:y},u=(0,a.parseTooltext)(i,l,o,t,$,U)):(oe&&(s=(0,a.getFirstValue)(U&&U.seriesname)),u=s?s+re:"",u+=y?y+re:""):u=!1,he.toolText=u,he.setTooltext=u,c&&(ue=c),he._x=e,he._y=v},n.updateYForStack=function(){var e,t,n,r,o,i,s=this.getFromEnv("chartConfig"),l=(0,a.pluckNumber)(s.showpercentvalues),c=(0,a.pluckNumber)(s.showpercentintooltip),u=this.config.JSONData,d=this.getFromEnv("chart-attrib"),p=this.getFromEnv("xAxis").getTicksLen(),f=this.components.data,g=this.getFromEnv("stackValues"),m=l||c?-1:1,v=this.getSkippingInfo&&this.getSkippingInfo(),y=v&&v.skippingApplied,b=v&&v.draw||[],C=b&&b.length;for(y&&(p=C),r=0;r=0;e--)s[e].remove(),s.pop();if(r.getState("visible"))for(e=r.config.scrollMinVal;e=u;c--){if(!(r=v[c]))return;if(r._height=0?w:0),s=i>=-C/2&&i<=(C||r._width)+g&&a>=-b/2&&a<=(b||r._height)+g+(o<0?2*w:w))))return{pointIndex:c,hovered:s,pointObj:v[c]}}},n._getHoveredPlot=function(e,t){var n,r,o=e,i=t,a=this.getFromEnv("chart").isBar,s=this.getFromEnv("xAxis");return a?i+=s.getTranslation():o+=s.getTranslation(),n=s.getValue(a?i:o),(r=Math.round(n))-n>0?this._checkPointerOverColumn(r,o,i)||this._checkPointerOverColumn(r-1,o,i):this._checkPointerOverColumn(r+1,o,i)||this._checkPointerOverColumn(r,o,i)},n.getPlotInCategoryAt=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n,r,o,i,a=this.components.data,s=this.getFromEnv("xAxis"),l=this.getFromEnv("yAxis"),c=s.getTranslation()||0,u=l.getTranslation()||0,d=this.getState("visible"),h=e+c,p=t+u;if("category"===s.getName()&&s.config.hasCategory)r=s;else{if("category"!==l.getName()||!l.config.hasCategory)return!1;r=l}return null!=(o=r.config.isVertical)&&(n=a[Math.round(r.getValue(o?p:h))],i=this._getHoveredPlot(e,t),d&&i?i:!(!d||!n)&&{pointIndex:n._index,hovered:!1,pointObj:n})},n._decideTooltipType=function(e,t){var n=this.getFromEnv("chart").config.drawTrendRegion,r=this.components,o=this.getFromEnv("toolTipController"),i=r.data[e],a=i&&(i.config.finalTooltext||i.config.toolText),s=this.config.currentToolTip,l=t.originalEvent;a&&!n&&(s?l.target&&"tspan"===l.target.nodeName&&i.graphics&&i.graphics.label&&i.graphics.label.abbrArr&&i.graphics.label.abbrArr.length?o.hide(s):o.draw(l,a,s):s=this.config.currentToolTip=o.draw(l,a))},n._firePlotEvent=function(e,t,n){var r,o=this.getFromEnv("chart"),i=this.components,a=this.getFromEnv("toolTipController"),s=i.data[t],l=s.graphics&&s.graphics.element,c=s.graphics&&s.graphics.label,u=this.config.currentToolTip;if(l)switch(r=s.config.setLink,e){case"fc-mouseover":this._decideTooltipType(t,n),function(e,t,n,r,o){var i=t.graphics,a=i&&i.element,s=e.getFromEnv("animationManager"),l=a&&a.getData();!0!==l.draged&&(a&&0!==l.showHoverEffect&&(s.setAnimationState("mouseOver"),s.setAnimation({el:a,label:"rect",component:o,attr:a.getData().setRolloverAttr})),a&&e.plotEventHandler(a,n,"DataPlotRollOver"))}(o,s,n,0,this),r&&(l.css({cursor:"pointer"}),c&&c.css({cursor:"pointer"}));break;case"fc-mouseout":a.hide(u),function(e,t,n,r,o){var i=t.graphics,a=i&&i.element,s=e.getFromEnv("animationManager"),l=a&&a.getData();!0!==l.draged&&(a&&0!==l.showHoverEffect&&(s.setAnimationState("mouseOut"),s.setAnimation({el:a,label:"rect",component:o,attr:a.getData().setRolloutAttr})),a&&e.plotEventHandler(a,n,"DataPlotRollOut"))}(o,s,n,0,this),r&&(l.css({cursor:g}),c&&c.css({cursor:g}));break;case"fc-click":o.plotEventHandler(l,n);break;case"fc-mousemove":this._decideTooltipType(t,n)}},n.createContainer=function(){var e,t,n,r,o,i=this.getType(),a=this.getFromEnv("chart"),s=this.getLinkedParent(),l=this.config.primitiveType||i;!s.getChildContainer(l+"VcanvasGroup")&&(l="default"),e=s.getChildContainer(l+"VcanvasGroup"),o=s.getChildContainer(l+"ShadowVcanvasGroup"),t=s.getChildContainer("commonElemGroup")||e,r=s.getChildContainer("commonElemGroupLine"),n=s.getChildContainer("anchorGroup")||e,!this.getContainer("shadowGroup")&&this.addContainer("shadowGroup",k("shadow-group",o,this)),!this.getContainer("errorShadowGroup")&&this.addContainer("errorShadowGroup",k("error-shadow-group",o,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("commonElemsGroup",k("common-elems-group",t,this)),r?!this.getContainer("commonElemsGroupLine")&&this.addContainer("commonElemsGroupLine",k("common-elems-group",r,this)):this.removeContainer("commonElemsGroupLine"),!this.getContainer("plotGroup")&&this.addContainer("plotGroup",k("plot-group",n,this)),!this.getContainer("errorPlotGroup")&&this.addContainer("errorPlotGroup",k("error-plot-group",e,this)),a.hasAnchor&&this.getContainer("errorPlotGroup").insertBefore(this.getContainer("plotGroup")),!this.getContainer("labelGroup")&&this.addContainer("labelGroup",k("label-group",s.getChildContainer("vcanvasLabelGroup"),this).attr("class","fusioncharts-datalabels"))},n.createCoordinates=function(){var e,t,n,r,o,i,a,s,l,c,u=this.config,d=this.components.data,p=this.getFromEnv("chart"),f=p.isBar,g=this.getFromEnv("yAxis"),m=this.getFromEnv("xAxis"),v=g.getAxisBase(),y=g.getPixel(v),b=m.config.isVertical,C=p.config.xDepth||0,w=p.config.yDepth||0,x=d.length,_=this.components,S=this.getLinkedParent(),M=S.getstackConf&&S.getstackConf(),E=_.data,O=this.getSkippingInfo&&this.getSkippingInfo(),A=O&&O.skippingApplied,T=O&&O.draw||[],k=T&&T.length;for(!f&&(C=-C),f&&(w=-w),A&&(x=k),o=0;of&&this.flushOnScroll(f,a>g?g:a),s0?S:M:ee._Py-ee._Pby>0?E:_,g=(0,a.getValidValue)((0,a.parseUnsafeString)((0,a.pluck)(ee.origToolText,R.plottooltext,I.plottooltext),!1)),this.fineTunePlotDimension&&(A=(N=this.fineTunePlotDimension(A,T,D,k,W)).xPos,T=N.yPos,k=N.width,D=N.height),r=A,o=T,d=k,h=D,i=$.getPixel(1)-$.getPixel(0)-(q?h:d),!isFinite(h)&&(h=0),H){if(i<5&&this.getFromEnv("columnWidth")<5||(w=(0,a.crispBound)(A,T,d,h,re,n,z)),w?(r=w.x,o=w.y,re=w["stroke-width"],d=w.width,h=w.height):(r=A,o=T),$.config.isVertical){if(0===d){var he=L.minAbsNonZeroData,pe=x(he._Px-he._Pbx);d=pe<.5?pe:.5}}else if(0===h){var fe=L.minAbsNonZeroData,ge=x(fe._Py-fe._Pby);h=ge>0&&ge<.5?ge:.5,o===ne&&(o-=h)}ee.setRolloutAttr&&(ee.setRolloutAttr["stroke-width"]=L.showplotborder?re:0)}f=ee.finalTooltext=!1!==ee.toolText?ee.toolText+(g?"":ee.toolTipValue):"",b=ee.plotBorderDashStyle,(O=e.trackerConfig={}).eventArgs={index:W,link:m,value:ee.setValue,displayValue:v,categoryLabel:ee.origLabel,toolText:f,id:ee.id,datasetIndex:V,datasetName:R.seriesname,visible:H},this.addDatasetSpecificEvtArgs(e),P=ne===o+0,ee.props={element:{attr:{x:r||0,width:d||0,height:h||0,y:o||0,r:oe,fill:(0,a.toRaphaelColor)(y[0])||"",stroke:de?B.usePattern?ee.originalPlotColor:(0,a.toRaphaelColor)(y[1])||"":a.TRACKER_FILL,"stroke-width":de?re:0,"stroke-dasharray":b,"stroke-linejoin":"miter",visibility:H,cursor:m?"pointer":""}}},ee.props.element.patternAttr={patternType:ee.patternType,patternAngle:ee.patternAngle,patternDensity:ee.patternDensity,patternSize:ee.patternSize,color:ee.originalPlotColor,patternAlpha:ee.patternAlpha,patternBgColor:ee.patternBgColor,alpha:ee.plotFillAlpha,x:ee.props.element.attr.x,y:ee.props.element.attr.y},U&&(ee.props.element.attr.noGradient=!ie,ee.props.element.attr.xDepth=Y,ee.props.element.attr.yDepth=X),e._xPos=r+Y,e._width=d,e._yPos=o-X,e._height=h,e._index=W,e._plotBorderThickness=re,(m||Z)&&(hs?(u.yAxisMaxPixel=a,u.yAxisMinPixel=s):(u.yAxisMaxPixel=s,u.yAxisMinPixel=a),t=0;ti)||(n=p[e])&&(this.parsePlotAttributes(n,e),this.parseLabelAttributes(n))},n.draw=function(){var e,t,n=this,r=n.config,o=n.getState("visible"),i=n.getFromEnv("xAxis"),a=i.getPixel(0),s=i.getPixel(1),l=n.getFromEnv("groupMaxWidth"),c=n.getFromEnv("chart").config.xDepth||0,d=n.getFromEnv("yAxis"),h=r.drawn,p=d.getLimit(),f=p.max,g=p.min,m=f>0&&g<0,v=n._contextChanged(),y=(n.getSkippingInfo&&n.getSkippingInfo()||{}).skippingApplied;l||(l=x(s-a),n.addToEnv("groupMaxWidth",l)),(n.getState("removed")||n.getState("dirty")||v&&o)&&(!h&&n.createContainer(),n.setContainerVisibility(!0),y&&n.hidePlots(),n.drawPlots(),n.drawCommonElements&&!n.config.skipCommonElements&&n.drawCommonElements(),e=r.scrollMinValForLabel,t=r.scrollMaxValForLabel,r.drawn?n.drawLabel(e,t):n.addJob("labelDrawID",function(){n.drawLabel(e,t)},u.priorityList.label),r.drawn=!0,n.removePlots(),r.oldGroupMaxWidth=l,r.oldDataIsPositiveNegative=m,r.oldZeroAxisPos=d.getPixel(d.getAxisBase())+c,n.drawErrorValue&&n.drawErrorValue(),r.prevVisible=o,r.catDiff=0)},n.show=function(){var e=this.getLinkedParent(),t=this.getFromEnv("legend");t&&t.getItem(this.config.legendItemId)&&t.getItem(this.config.legendItemId).removeLegendState("hidden"),this.setState("visible",!0),this.config.appearing=!0,this._conatinerHidden=!1,this.setState("dirty",!0),e.childChanged(),this.config.appearing=!1,this.asyncDraw()},n.hide=function(){var e=this.getLinkedParent(),t=this.getFromEnv("legend");t&&t.getItem(this.config.legendItemId)&&t.getItem(this.config.legendItemId).setLegendState("hidden"),this.setState("dirty",!0),this.setState("visible",!1),e.childChanged(),this.asyncDraw()},n.drawLabel=function(e,t){var n,r,o,i,s,l,c,u,d,p,f,g,m=this.getFromEnv("chart"),v=this.getFromEnv("animationManager"),y=this.getFromEnv("toolTipController"),b=m.config,C=this.getFromEnv("xAxis"),w=this.getFromEnv("paper"),x=this.getState("visible"),_=m.getFromEnv("smartLabel"),S=m.config.dataLabelStyle,M=this.config,E=C.getTicksLen(),O=this.components,A=O.data,T=O.pool,k=b.rotatevalues?270:0,D=M.labelDrawn,P=this.getSkippingInfo&&this.getSkippingInfo(),N=P&&P.skippingApplied,L=P&&P.labelDraw||[],R=L.length,F=(0,a.pluckNumber)(e,0),I=(0,a.pluckNumber)(t,N?R:E),z=R===Math.abs(I-(F+1)),B=function(){this.attr({"text-bound":[]}),this.hide()};for((g=this.getContainer("labelGroup")).css({fontFamily:S.fontFamily,fontSize:S.fontSize,fontWeight:S.fontWeight,fontStyle:S.fontStyle}),g.show(),_.useEllipsesOnOverflow(m.config.useEllipsesWhenOverflow),_.setStyle(S),i=F;i=s?(r=b+(i?M-l:l),x&&(n-=g,r+=m)):t>=s?(r=b+(i?M+l:-l),x&&i&&(n-=g,r+=m)):(r=b+(i?M-l:l),x&&(n-=g,r+=m)):t>=s?(r=b+(i?M+l:-l),x&&(i?(n-=g,r+=m):n-=g/2)):(r=b+(i?M-l:l),x&&(n-=g,r+=m)),{textX:n,textY:r}},n.getDataLimits=function(){return{max:this.config.maxValue,min:this.config.minValue}},n.addData=function(e,t,n){var r,o=this.components,i=o.data,a=e.data.length;for(o.addDataArr=e.data,0===t?this.startPosition=!0:t+a!==i.length&&t!==h||(this.startPosition=!1),r=0;r=0;r--)u[r]||u.splice(r,1);this.removeDataLen=o,n&&this.asyncDraw()},n.updateData=function(e,t,n){var r=this.config,o=r.maxValue,i=r.prevMin,a=this.getFromEnv("chart"),s=this.groupManager||this,l=a.getFromEnv("xAxis"),c=a.getFromEnv("yAxis");this._setConfigure(e,t),this.getDataLimits(),r.maxValue===o&&r.minValue===i||(this.maxminFlag=!0),n&&(a._setAxisLimits(),l&&l[0].asyncDraw(),c&&c[0].asyncDraw(),s.asyncDraw())},n.removePlots=function(){var e=this.components,t=e&&e.removeDataArr;D(t,this.__removeElem)},n.removeGraphicElem=function(e,t){this.__removeElem(e,t)},n.getAxisValuePadding=function(){return this.config.defaultPadding},n.getCanvasPadding=function(){var e,t,n,r,o,i,s=this.config||(this.config={}),l=this.components||{},c=this.getFromEnv("chart"),u=c.config.rotatevalues,d=this.getFromEnv("xAxis"),p=this.getFromEnv("yAxis"),f=c.config.dataLabelStyle,g=this.getSkippingInfo(),m=g.skippingApplied,v=g.draw,y=l.data||[],b=m?v[0]:0,C=m?v[v.length-1]:y.length-1,x=s.leftMostData||y[b],_=s.rightMostData||y[C],S={},M={},E=0,O=0,A=0,T=d.getPixel(0),k=this.getFromEnv("smartLabel"),D={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0},P=0,N=d.getValuePadding(),L=s.topMostData,R=s.bottomMostData;return this.setColumnPosition(),i={xPosOffset:this.getFromEnv("columnXShift"),columnWidth:this.getFromEnv("columnWidth"),height:h},x&&(r=(e=x.config).showValue,n=e&&e.anchorProps||{},r&&(t=e.displayValue,k.useEllipsesOnOverflow(c.config.useEllipsesWhenOverflow),k.setStyle(f),M=k.getOriSize(t),P=u?M.height:M.width),null!==e.setValue&&(o=d.getPixel(N.left),(A=(E=n.enabled&&(0,a.pluckNumber)(n.radius,0)+(0,a.pluckNumber)(n.borderThickness,0)/2||0)-(o-T))<0&&(A=0),(O=(P||0)/2-(o-T)-(i&&i.xPosOffset+i.columnWidth/2||0))<0&&(O=0)),D.paddingLeft=w(A,O)),A=O=0,_&&(r=(e=_.config).showValue,n=e&&e.anchorProps||{},r&&!u&&(t=e.displayValue,k.setStyle(f),S=k.getOriSize(t),P=u?S.height:S.width),null!==e.setValue&&(o=d.getPixel(N.right),(A=(E=n.enabled&&(0,a.pluckNumber)(n.radius,0)+(0,a.pluckNumber)(n.borderThickness,0)/2||0)-(o-T))<0&&(A=0),(O=(P||0)/2-(o-T)+(i&&i.xPosOffset+i.columnWidth/2||0))<0&&(O=0)),D.paddingRight=w(A,O)),L&&(r=(e=L.config).showValue,n=e&&e.anchorProps||{},null!==e.setValue&&(E=(0,a.pluckNumber)(n.radius,0)+(0,a.pluckNumber)(n.borderThickness,0)/2,O=Math.max(E-(p.getPixel(e.setValue.y)-p.getPixel(p.getLimit().max)),0)),D.paddingTop=O),R&&(n=(e=R.config)&&e.anchorProps||{},null!==e.setValue&&(E=(0,a.pluckNumber)(n.radius,0)+(0,a.pluckNumber)(n.borderThickness,0)/2,O=Math.max(E-(p.getPixel(p.getLimit().min)-p.getPixel(e.setValue.y)),0)),D.paddingBottom=O),D},n.getEventArgs=function(){var e=this.config||{};return{datasetName:(this.config.JSONData||{}).seriesname,datasetIndex:this.getJSONIndex(),id:e.userID,visible:!this.getState("visible")}},n.getData=function(){return this.components.data},n.setJSONIndex=function(e){this.config.index=e},n.getJSONIndex=function(){return this.config.index||0},n.remove=function(t){var n=this.config.legendItemId,r=this.getFromEnv("chart").getChildren("legend"),o=this.getFromEnv("legend");r&&r.length&&o&&n&&o.disposeItem(n),e.prototype.remove.call(this,t)},n.setMaxMin=function(e){var t,n,r,o=this.components,i=o.data,a=o.removeDataArr,s=this.config,l=i.length,c=-1/0,u=1/0,d=s.maxValue,p=s.minValue,f=a.length,g=!1;if(e)g=d===e.startValue||p===e.startValue||de.config.setValue;else if(f)for(t=0;t=0?(d>v&&d<=b+.7&&(y[o]=v,h>b&&(y[i]=h-y[o])),h>v&&h<=b+.7&&(y[i]=v-(y[o]||0===y[o]?y[o]:d))):(d=b-.7&&(y[o]=v,h>v&&(y[i]=h-y[o])),h=b-.7&&(y[i]=v-(y[o]||0===y[o]?y[o]:d))),p=!0),e.config.catDiff&&(y[a]=m[a],y[s]=m[s],p=!0),c._plot_1Start=y,p)return{finalAttr:y,slot:"axis"}};return{"rect.appearing":function(u){var d,h,p,f,g=l.getPixel(l.getAxisBase())+(t.isBar?-n:n),m=u.props&&u.props.originalIndex||u.index,v=e.components.data[m],y=u.attr;return c.config.isVertical&&(o="x",i="width",a="y",s="height"),d=y[o],h=y[i],f=Math.sign(d+h/2-g),p=1===f?d:d+h,v._posWRT0=f,[{initialAttr:function(){var e={};return e[o]=p,e.opacity=0,e[i]=0,e},finalAttr:{opacity:1},startEnd:function(){var t=u.length;return r.animHelperFN.getTimeByValue(r.animHelperFN.animByWeight(u.index,t,.6),{startPx:g,endPx:1===f?e.config.yAxisMaxPixel:e.config.yAxisMinPixel},{startPx:p,endPx:1===f?y[o]+y[i]:y[o]})},hookFn:function(){this.attr({opacity:1})},effect:"linear",slot:"plot"}]},"rect.updating":function(r){var d,h,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F,I,z,B=[],j=e.components.data[r.props&&r.props.originalIndex||r.index],V=r.attr,W=j&&j.graphics&&j.graphics.element,H=l.getPixel(l.getAxisBase())+(t.isBar?-n:n),G=0,U=e.getFromEnv("numColDiff");return c.config.isVertical&&(o="x",i="width",a="y",s="height"),(z=u(r,j))&&B.push(z),_=(x=j.prevDataObj)&&x._plot_1Start,T=x&&x._plot_1End,S=x&&x._plot_2Start,M=j.oldPrevDataObj,E=j.oldPrevDataObj&&j.oldPrevDataObj._plot_1End,p=(d=(y=j._plot_1Start)[o])+(h=y[i]),f=d+h/2,v=(g=V[o])+(m=V[i])/2,O=(p+(g+m))/2,k=Math.sign(f-H),D=Math.sign(v-H),(w={})[o]=(C={})[o]=(d+g)/2,w[i]=C[i]=(h+m)/2,h?k!==D?(w[i]=C[i]=0,C[o]=M&&M._oldPosWRT0===k?E[o]+(1===k?E[i]:0):H,w[o]=S?S[o]+(1===D?S[i]:0):H,A=b=!0):x!==M&&(N=(P=E||!(!T||Math.sign(T[o]+T[i]/2-H)!==k)&&T)?P[o]+(1===k?P[i]:0):H,1===k?(w[o]=C[o]=N,w[i]=C[i]=O-C[o]):w[i]=C[i]=N-C[o],b=!0):x&&x._oldPosWRT0===D||0===e.stackIndex?((F={})[i]=0,F[o]=_?_[o]+(x._posWRT0>0?_[i]:0):H,j._posWRT0=D,j._plot_1Start=F,w[o]=C[o]=(F[o]+g)/2,w[i]=C[i]=m/2):f===H&&(D!==j._posWRT0?G=.5:(b=!0,C[o]=1===D?H:H-C[i])),U<0?(C[a]=V[a],C[s]=V[s],b=!0):U>0?G=.5:y[a]===V[a]&&y[s]===V[s]||(.5===G?((F={})[a]=V[a],F[s]=V[s],L=function(){A&&W.attr(w),W.attr(F)}):(C[a]=V[a],C[s]=V[s],b=!0,L&&(R=function(){W.attr(F)},L=void 0))),b&&(B.push({finalAttr:C,startEnd:{start:0,end:.5},hookFn:R,slot:"plot"}),G=.5),!L&&(L=function(){A&&W.attr(w)}),B.push({effect:"linear",startEnd:{start:G,end:1},finalAttr:{x:V.x,y:V.y,width:V.width,height:V.height},callback:function(){null!==j.config.setValue&&void 0!==j.config.setValue||this.hide()},hookFn:L,slot:"plot"}),delete(I=Object.assign({},V)).x,delete I.y,delete I.width,delete I.height,B.push({finalAttr:I,effect:"linear",slot:"plot"}),j._plot_1End=C,j._plot_2Start=w,j._oldPosWRT0=j._posWRT0,j._posWRT0=D,B},"rect._disappearing":function(r){var a,s,c,d,h,p=l.getPixel(l.getAxisBase())+(t.isBar?-n:n),f=e.components.removeDataArr,g=f&&f[r.props&&r.props.originalIndex||r.index]||e.components.data[r.props&&r.props.originalIndex||r.index],m=g&&g.graphics&&g.graphics.element,v=g.oldPrevDataObj&&g.oldPrevDataObj._plot_1End,y=[];if(m)return(d=u(r,g))&&y.push(d),l.config.isVertical||(o="x",i="width"),a=(s=(h=g._plot_1Start)[o])+h[i]/2>p?v?v[o]+v[i]:s:v?v[o]:p,(c={})[o]=a,c[i]=0,c.width=g._width,c.x=g._xPos,y.push({startEnd:{start:0,end:e.getFromEnv("numOfColumns")<1?1:.5},finalAttr:c,slot:"plot"}),g._plot_1End=r.finalAttr,y},"plotLabel.appearing":[{initialAttr:{opacity:0},slot:"final"}],"plotLabel._disappearing":[{hookFn:function(){this.hide()},slot:"initial"}],"plotLabel.updating":[{hookFn:function(){this.hide()},slot:"initial"},{hookFn:function(){this.show()},initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}}};t.default=o},545:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(546)),a=n(218),s=n(226),l=r(n(548)),c=Math.abs;(0,s.addDep)({name:"lineAnimation",type:"animationRule",extension:l.default});var u=function(e){function t(){var t;return(t=e.call(this)||this).updateYForStack=a.stubFN,t.config.primitiveType="line",t}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"line"},n.createPinElem=function(){var e,t,n,r=this,o=r.getFromEnv("chart"),i=arguments[1].group,a=r.config.lineOb,s=r.getGraphicalElement("pinElems")||r.addGraphicalElement("pinElems",[]),l=r.getFromEnv("paper"),u=r.getLinkedParent().getChildContainer("lineVcanvasGroup");for(t=s.length-1;t>=0;t--)s[t].remove(),s.pop();if(r.getState("visible"))for(n in a)e=a[n].el,s.push(l.path(i).attr({path:e.attrs.path,transform:["T",-(o.config._visx+c(u.transform()[0][1])),-o.config.canvasBottom]}).attr(r.config.pin))},n._addLegend=function(){var e,t,n,r=this.getFromEnv("chart"),o=this.config,i=this.getFromEnv("chart-attrib"),s=r.getChildren("legend")[0],l=(0,a.pluckNumber)(o.drawanchors,1),c=this.config.JSONData||{};o.includeinlegend?(n={enabled:o.includeinlegend,type:this.getName(),drawLine:(0,a.pluck)(o.drawLine,!0),index:this.getJSONIndex(),anchorSide:l?o.anchorsides:0,label:(0,a.getFirstValue)(this.config.JSONData.seriesname),legendIconAlpha:(0,a.pluckNumber)(c.legendiconalpha)},(e=s.getItem(this.config.legendItemId))||(this.config.legendItemId=s.createItem(this),e=s.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",function(){e.itemClickFn()},e)),t={symbol:{fill:(0,a.toRaphaelColor)({color:o.anchorbgcolor,alpha:o.anchorbgalpha}),bgAlpha:(0,a.pluckNumber)(c.legendiconbgalpha,c.legendiconalpha,i.legendiconbgalpha,i.legendiconalpha,o.anchorbgalpha),borderAlpha:(0,a.pluckNumber)(c.legendiconborderalpha,c.legendiconalpha,i.legendiconborderalpha,i.legendiconalpha,"100"),rawFillColor:o.anchorbgcolor,rawStrokeColor:o.anchorbordercolor,stroke:(0,a.toRaphaelColor)({color:o.anchorbordercolor,alpha:"100"}),"stroke-width":o.anchorborderthickness,lineWidth:o.linethickness}},e.setStateCosmetics("default",t),this.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden"),e.configure(n)):this.config.legendItemId&&s.disposeItem(this.config.legendItemId)},n._getDataLimits=function(){var e=this.config,t=this.getFromEnv("chart").config,n=e.maxValue,r=e.minValue,o=t.transposeAxis;return!1===this.getState("visible")&&o&&(n=-1/0,r=1/0),{max:n,min:r}},n._drawCommonElementsHelper=function(e){var t,n,r,o=this,i=a.BLANKSTRING,s={},l=o.getFromEnv("animationManager"),c=o.config,u=c.shadow,d=c.linethickness,h=o.getContainer("commonElemsGroup"),p=function(){!1===o.getState("visible")&&this.hide()};for(i in e){for(t=["M0,0"],n=0,r=(s=e[i]).path&&s.path.length;n2?"round":"miter"}},k=[];for(C.x.minPixel=p.getPixel(C.x.min),C.x.maxPixel=p.getPixel(C.x.max),C.y.minPixel=f.getPixel(C.y.min),C.y.maxPixel=f.getPixel(C.y.max),C.y.base=f.getPixel(0),C.x.base=p.getPixel(0),A&&(w=O),r=0;r(h=O(L.anchorAlpha,L.anchorBorderAlpha))&&(z=h)),P.bgAlpha&&P.borderAlpha&&I>(d=O(P.bgAlpha,P.borderAlpha))&&(I=d),(m=S.element).attr(Object.assign(b,{path:g.path})),m.attr({cursor:R?"pointer":""}).data("alwaysInvisible",!r).data("setRolloverProperties",L).data("hoverEnabled",L.enabled).data(w,p).data(x,g).data("anchorRadius",r).data("anchorHoverRadius",L&&L.radius).data("eventArgs",A).shadow(o,N),s=(0,c.polyPathToPath)([n||2,k,D,l>0?l:0,P.startAngle,void 0]),i=(0,c.polyPathToPath)([n||2,k,D,a>0?a:0,L.startAngle,L.dip]),P.imgRefWidth=T.width,P.imgRefHeight=T.height,P.imgRefScale=F,P.rolloutClipRadius=l,g={x:k-T.width*F*.005,y:D-T.height*F*.005,width:V,height:j,"clip-path":s},p={x:k-T.width*B*.005,y:D-T.height*B*.005,width:W,height:H,alpha:z,"clip-path":i},M.attr({x:g.x,y:g.y,width:g.width,height:g.height,"clip-path":g["clip-path"]}).data("alwaysInvisible",!F).data("setRolloverProperties",L).data(w,p).data(x,g).data("anchorRadius",F).data("imgRef",T).data("anchorHoverRadius",B),_.isAnchorsDrawn=!0,r=O(r,L&&L.anchorRadius||0,2)),t._xPos=k,t._yPos=D,e.parseLabelAttributes(t,t._index)};(0,d.addDep)({name:"areaAnimation",type:"animationRule",extension:h.default});var k=function(e){function t(){var t;t=e.call(this)||this;var n=(0,a.default)(t);return n.__removeElem=function(e,t){n._setRemoveAnim(e,"element"===t||"image"===t?"anchor":"label")},n.config.primitiveType="area",t}(0,s.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"area"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valueposition=i,t.plotborderdashlen=i,t.plotborderdashgap=i,t.plotborderdashstyle=i,t.plotborderthickness=i,t.linethickness=i,t.linedashlen=i,t.linedashgap=i,t.dashed=i,t.linedashstyle=i,t.linecolor=i,t.linealpha=i,t.anchorbgcolor=i,t.anchorbordercolor=i,t.anchorradius=i,t.anchoralpha=i,t.anchorimageurl=i,t.anchorsides=i,t.anchorbgalpha=i,t.anchorborderthickness=i,t.anchorshadow=i,t.anchorstartangle=i,t.anchorimagealpha=i,t.anchorimagescale=i,t.anchorimagepadding=i,t.alpha=i,t.parentyaxis=i,t.inheritplotbordercolor=i},n._getHoveredPlot=function(e,t){var n,r,o,i,a,s=e,l=this.getFromEnv("xAxis"),c=this.components.data,u=c.length,d=this.config,h=this.getFromEnv("chartConfig").viewPortConfig.step||1,p=d&&d.radius||0,f=(this.getSkippingInfo&&this.getSkippingInfo()).plotsPerBin;for(s+=l.getTranslation(),r=Math.floor(Math.max(l.getValue(s-p),0)),o=Math.ceil(Math.min(l.getValue(s+p),u-1)),f>1&&(r=(A(r/f)-1)*f+1,o=A(o/f)*f),a=o;a>=r&&(!(n=c[a])||a%h||!(i=this.isWithinShape(n,a,s,t)));a--);return i},n.getClip=function(e){var t=this.getFromEnv("xAxis"),n=this.getFromEnv("yAxis"),r=n.getLimit(),o=t.getLimit(),i=t.getPixel(o.min),a=n.getPixel(r.min),s=n.getPixel(r.max),l=Math.abs(t.getPixel(o.max)-i),c=a-s,u=[];return u.push(i),u.push(c<0?a:s),"init"===e?u.push(0):"canvas"===e&&u.push(l),u.push(Math.abs(c)),u},n.isWithinShape=function(e,t,n,r,o){var i,a,s,l,u,d,h,p,f,g,m,v,y,C,w=o;if(e&&((w=e.config.setValue)||0===w))return i=e.config.anchorProps,a=e.config,l=i&&i.borderThickness,u=this.getFromEnv("chart").config.viewPortConfig,d=this.components.data,h=(0,c.pluckNumber)(a.dragTolerance,0),C=u?u.x*u.scaleX:0,p=e._xPos-C,null!==(f=e._yPos)?(y=e.config.hoverEffects,(s=Math.max(i&&i.radius,y&&y.anchorRadius||0,b)+l/2)||(s=3),g=n-p,m=r-f,((v=Math.sqrt(Math.pow(g,2)+Math.pow(m,2)))<=s||v<=h)&&{pointIndex:t,hovered:!0,pointObj:d[t]}):void 0},n._parseShadowOptions=function(){var e=this.getFromEnv("chart"),t=this.config,n=e.getFromEnv("dataSource").chart,r=this.getFromEnv("color-manager"),o=(0,c.pluckNumber)(e.defaultPlotShadow,r.getColor("showShadow"));return{opacity:(0,c.pluckNumber)(n.showshadow,o)?t.alpha/100:0}},n._firePlotEvent=function(e,t,n){var r,o,a,s=this.getFromEnv("chart"),l=this.components,c=this.getFromEnv("toolTipController"),u=l.data[t]||{},d=this.getGraphicalElement("sharedAnchor"),h=u.graphics&&u.graphics.element||(u.config&&u.config.setValue)!==i&&d,p=this.config.currentToolTip,f=s.getFromEnv("paper").canvas.style;if(h)switch(a=(r=u.config).setLink,o=r.eventArgs,e){case"fc-mouseover":this._decideTooltipType(t,n),this._rolloverResponseSetter(s,u,n),a&&(f.cursor="pointer");break;case"fc-mouseout":c.hide(p),this._rolloutResponseSetter(s,u,n),f.cursor=C;break;case"fc-click":s.plotEventHandler(h,n,"dataplotclick",o);break;case"fc-mousemove":this._decideTooltipType(t,n)}},n._rolloverResponseSetter=function(e,t,n,r){var o=t.graphics,i=o&&(o.element||this.getAnchor(t)),a=i&&i.data("draged"),s=i&&i.data("hoverEnabled");!0!==a&&(this._hoverFunc(t,g,s,e.getFromEnv("dataSource").chart),!r&&i&&e.plotEventHandler(i,n,g))},n._rolloutResponseSetter=function(e,t,n,r){var o=t.graphics,i=o&&(o.element||this.getAnchor(t)),a=i&&i.data("draged"),s=i&&i.data("hoverEnabled"),l=this.type,c=t.config,u=c.anchorProps,d=u.radius&&u.anchorAlpha;!0!==a&&(this._hoverFunc(t,m,s,e.getFromEnv("dataSource").chart),!r&&i&&e.plotEventHandler(i,n,m)),c.isAnchorsDrawn&&!d&&"area"===l&&i&&i.hide()},n.getAnchor=function(e){void 0===e&&(e={});var t,n,r,o,i,a,s,l,c,u=this.getFromEnv("animationManager"),d=this.getGraphicalElement("sharedAnchor"),h=e.config;return d?(t=h.anchorProps,n=h.eventArgs,(a=(i=h.hoverEffects).enabled)&&(r=i.attrs&&i.attrs.setRolloutAttr,o=i.attrs&&i.attrs.setRolloverAttr),s=t.radius,l=t.shadow,c=this.getFromEnv("chartConfig").prevAnchorHovered,i.anchorAnimation=0,e._index!==c&&(d.shadow(l,this.getContainer("shadowGroup")).data("anchorRadius",s).data("anchorHoverRadius",i.anchorRadius).data("hoverEnabled",a).data("eventArgs",n),a&&d.data(w,o).data(x,r)),this.getFromEnv("chartConfig").prevAnchorHovered=e._index,d):(d=u.setAnimation({el:"path",container:this.getContainer("plotGroup"),label:"anchor",doNotRemove:!0,component:this}),this.addGraphicalElement("sharedAnchor",d),d)},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e);var t=this.getFromEnv("chart");this.config.JSONData=e,this.parseAttributes(),this._setConfigure(),this._realTimeConfigure&&this._realTimeConfigure(),!1!==t.config.hasLegend&&t.config.showLegend&&this._addLegend(),this.setState("dirty",!0)},n.parseAttributes=function(){var e,t,n=this.getFromEnv("chart"),r=n.config,o=this.config,a=this.getName(),s=this.config.JSONData,u=n.getFromEnv("chart-attrib"),d=n.config.singleseries,h=this.getFromEnv("color-manager"),p=Math.floor(this.getJSONIndex()),f=(0,c.pluckNumber)(s.showplotborder,u.showplotborder||1),g=(0,c.getFirstColor)(!d||(0,c.getValidValue)(u.palettecolors)?h.getPlotColor(p):h.getColor("plotFillColor").split(/\s*\,\s*/)[0]),m=r.isdual,v=r.haslineset;o.showTextOutline=(0,c.pluckNumber)(u.textoutline,0),o.maxValue=-1/0,o.minValue=1/0,(0,c.parseConfiguration)(s,o,n.config,{data:!0}),o.inheritplotbordercolor=(0,c.pluckNumber)(s.inheritplotbordercolor,u.inheritplotbordercolor,0),o.showValues=(0,c.pluckNumber)(s.showvalues,u.showvalues,"radar"===a?0:1),o.anchorimageurl=(0,c.pluck)(s.anchorimageurl,u.anchorimageurl,i),o.plotColor=g,o.parentYAxis=m&&(v||"s"===(0,c.pluck)(s.parentyaxis&&s.parentyaxis.toLowerCase(),"p"))?1:0,o.valueposition=o.valueposition.toLowerCase(),o.plotfillcolor=(0,c.pluck)(s.color,u.plotfillcolor,g),o.seriesname=(0,c.parseUnsafeString)(s.seriesname),e=r.useplotgradientcolor,o.plotgradientcolor=0!==e?(0,c.getDefinedColor)(u.plotgradientcolor,h.getColor("plotGradientColor")):"",o.usePattern=(0,c.pluckNumber)(r.usePattern,0),o.patternType=l.PATTERN_TYPES.includes(s.patterntype)?s.patterntype:r.patternType,o.patternDensity=(0,c.pluckNumber)(s.patterndensity,r.patternDensity),o.patternAlpha=(0,c.pluckNumber)(s.patternalpha,r.patternAlpha),o.patternBgColor=(0,c.pluck)(s.patternbgcolor,r.patternBgColor,o.patternBgColor),o.patternAngle=(0,c.pluckNumber)(s.patternangle,u.patternangle,o.patternType===l.PATTERN_TYPES[0]?40:0),o.patternSize=(0,c.pluckNumber)(s.patternsize,u.patternsize,o.patternType===l.PATTERN_TYPES[0]?2:4),o.plotfillalpha=(0,c.pluckNumber)(s.alpha,r.plotfillalpha),o.fillColor={color:o.plotfillcolor+(o.plotgradientcolor?","+o.plotgradientcolor:""),alpha:o.plotfillalpha,angle:o.plotfillangle},o.plotborderalpha=f?(0,c.pluck)(s.plotborderalpha,u.plotborderalpha,s.alpha,o.inheritplotbordercolor?"100":u.plotfillalpha,"95"):0,o.plotbordercolor=(0,c.pluck)(s.plotbordercolor,u.plotbordercolor,u.areabordercolor,o.usePattern?o.plotfillcolor:o.inheritplotbordercolor?o.fillColor.color:d?(0,c.getValidValue)(u.palettecolors)?h.getPlotColor(0):h.getColor("plotBorderColor").split(/\s*\,\s*/)[0]:"666666"),o.plotborderColorObject={color:o.plotbordercolor,alpha:o.plotborderalpha,angle:o.plotfillangle},o.drawLine=(0,c.pluckNumber)(s.drawline,u.drawlines,1),o.plotborderdashstyle=o.dashed?(0,c.getDashStyle)(o.plotborderdashlen,o.plotborderdashgap):"none",o.linecolor=(0,c.pluck)(s.color,u.linecolor,o.plotColor),o.legendSymbolColor="line"===this.type?o.linecolor:o.plotfillcolor,o.includeinlegend=(0,c.pluckNumber)(s.includeinlegend,o.seriesname?1:0),t=(0,c.getDashStyle)(o.linedashlen,o.linedashgap),o.lineDashStyle=o.dashed?t:"none",o.defaultPadding={left:0,right:0},o.shadow=this._parseShadowOptions(),o.drawanchors=(0,c.pluckNumber)(s.drawanchors,s.showanchors,u.showanchors,u.drawanchors),o.anchorbgcolor=(0,c.getFirstColor)((0,c.pluck)("inherit"===s.anchorbgcolor?o.linecolor:s.anchorbgcolor,"inherit"===u.anchorbgcolor?o.linecolor:r.anchorbgcolor,h.getColor("anchorBgColor"))),o.anchorbordercolor=(0,c.getFirstColor)((0,c.pluck)("inherit"===s.anchorbordercolor?o.linecolor:s.anchorbordercolor,"inherit"===u.anchorbordercolor?o.linecolor:r.anchorbordercolor,o.linecolor,o.plotColor)),this.setState("visible",1===(0,c.pluckNumber)(s.visible,!Number(s.initiallyhidden),1)&&o.drawLine)},n._setConfigure=function(e,t){var n,r,o,a,s,l,d,h,p,f=this.getFromEnv("chart"),g=this.config,m=f.config,v=this.config.JSONData||[],y=this.getFromEnv("xAxis"),C=f.isRealTime,w=m.realTimeConfig&&m.realTimeConfig.numDisplaySets,x=this.getFromEnv("dataSource").categories&&this.getFromEnv("dataSource").categories[0]&&this.getFromEnv("dataSource").categories[0].category,_=g.initCatLen=C?x&&Array.isArray(x)&&x.filter(function(e){return!e.vline}).length||0:y.getTicksLen(),S=e||v.data,M=e&&e.data.length,E=m.isDrag,O=this.getSkippingInfo&&this.getSkippingInfo(),A=O&&O.draw||[],T=A.length,k=O&&O.skippingApplied;for(p=M===i&&_>w?_-w:0,o=C?(0,c.pluckNumber)(M,_):Math.min(_,S&&S.length),g.imageCount=0,(a=this.components.data)||(a=this.components.data=[]),g.maxRadius=-1/0,m.dragTolerance=m.dragTolerance||-1/0,k&&(o=T),l=p;l5?m.dragTolerance:5.5)+b:0,this.ErrorValueConfigure&&this.ErrorValueConfigure()},n._configureRestData=function(){var e,t,n,r,o,i,a=this.getFromEnv("chart"),s=this.config,l=a.config,c=this.config.JSONData.data||[],u=(this.getSkippingInfo&&this.getSkippingInfo()).drawOnlyMap,d=this.getFromEnv("xAxis").getTicksLen();for(s.imageCount=0,(n=this.components.data)||(n=this.components.data=[]),s.maxRadius=-1/0,l.dragTolerance=l.dragTolerance||-1/0,s.maxValue=-1/0,s.minValue=1/0,r=0;r=0?L:0;p=_.getLabel(n?e-n:R+e),A.label=(0,c.getValidValue)((0,c.parseUnsafeString)(p.tooltext||p.label)),t.tooltext!==i&&(t.tooltext=(0,c.parseTooltext)(t.tooltext,[3],{label:p.label},t,w,C)),A.id=m?t.id?(0,c.pluck)(t.id,A.id):(0,c.getValidValue)((0,c.parseUnsafeString)(p.label)):t.id?(0,c.pluck)(t.id,A.id):(0,c.getValidValue)((0,c.parseUnsafeString)(p.label))+"-"+(C.seriesname?C.seriesname:this.getJSONIndex()),A.dataLabelStyle=this._configureDataLabelStyle(t),A.setValue=a=S.getCleanValue(t.value,v.stack100percent),A.setLink=(0,c.pluck)(t.link),A.valuePadding=(0,c.pluckNumber)(t.valuepadding,C.valuepadding,y.valuepadding),A.dragTolerance=M?(f<6?5.5:f+.5)+b:0,A.label=(0,c.getValidValue)((0,c.parseUnsafeString)(p.tooltext||p.label)),A.showValue=(0,c.pluckNumber)(t.showvalue,v.showValues),A.givenPlotShowValue=(0,c.pluckNumber)(t.showvalue),A.dashed=(0,c.pluckNumber)(t.dashed,P),A.dashStyle=A.dashed?(0,c.getDashStyle)(v.linedashlen,v.linedashgap):"none",A.color=(0,c.pluck)(t.color,v.linecolor),A.setColor=t.color,A.setAlpha=t.alpha,A.setDashed=t.dashed,A.alpha=(0,c.pluck)(t.alpha,t.linealpha,v.alpha,v.linealpha),A.origLabel=(0,c.getValidValue)((0,c.parseUnsafeString)(p.label)),A.anchorProps=this._parseAnchorProperties(e),v.maxRadius=O(A.anchorProps.radius+A.anchorProps.borderThickness/2,v.maxRadius),f=A.anchorProps.radius+A.anchorProps.borderThickness/2,null!==a&&(v.maxValue=O(v.maxValue,a),v.minValue=E(v.minValue,a)),A.setTooltext=(0,c.parseUnsafeString)(t.toolText,!1),A.toolTipValue=o=S.dataLabels(a),A.setDisplayValue=s=(0,c.parseUnsafeString)(t.displayvalue),A.displayValue=(0,c.pluck)(s,o),A.formatedVal=d=A.toolTipValue,A.setTooltext=(0,c.getValidValue)((0,c.parseUnsafeString)((0,c.pluck)(t.tooltext,C.plottooltext,w.plottooltext),!1)),A.valuePosition=(0,c.pluck)(t.valueposition,v.valueposition),A.valuePosition&&(A.valuePosition=A.valuePosition.toLowerCase()),y.showtooltip?null===d?r=!1:A.setTooltext!==i?(l=[1,2,3,4,5,6,7],u={yaxisName:T,xaxisName:k,formattedValue:d,label:A.label},r=(0,c.parseTooltext)(A.setTooltext,l,u,t,w,C)):(y.seriesnameintooltip&&(h=(0,c.getFirstValue)(C&&C.seriesname)),r=h?h+D:"",r+=A.label?A.label+D:"",r+=A.setTooltext?"":A.toolTipValue):r=!1,A.toolText=r,A.setTooltext=r,A.setLevelTooltext=A.setTooltext,A._x=t.index===i?e:t.index,A._y=a,A.finalTooltext=A.setTooltext=r,A.hoverEffects=this._parseHoverEffectOptions(x,t),A.anchorProps.isAnchorHoverRadius=A.hoverEffects.anchorRadius,y.dragTolerance=O(y.dragTolerance,v.maxRadius,A.hoverEffects.anchorRadius)},n.drawCommonElements=function(){var e,t,n,r,o,a,s,l,u,d,h,f,g,m=this,v=m.components.data,y=m.getFromEnv("chart"),b=m.config,C=y.config,w=m.getLinkedParent(),x=m.getJSONIndex(),_=w.config.firstDataSetIndex,S=m.getFromEnv("xAxis"),M=m.getFromEnv("yAxis"),E=b.scrollMinVal,O=b.scrollMaxVal,A=!C.drawfullareaborder,T=b.plotborderColorObject,k=b.plotborderdashstyle,D=b.plotborderthickness,P=b.fillColor,N=m.getFromEnv("animationManager"),L={x:S.getLimit(),y:M.getLimit()},R=[],F=0,I=0,z="",B=b.shadow,j=m.getContainer("shadowGroup"),V=S.getState("scrolling"),W=m.getSkippingInfo&&m.getSkippingInfo(),H=W&&W.draw||[],G=H.length,U=W&&W.skippingApplied;for(L.x.minPixel=S.getPixel(L.x.min),L.x.maxPixel=S.getPixel(L.x.max),L.y.minPixel=M.getPixel(L.y.min),L.y.maxPixel=M.getPixel(L.y.max),L.y.base=M.getPixel(0),L.x.base=S.getPixel(0),U&&(E=0,O=G),f=E;f2?"round":"miter","stroke-dasharray":k},el:d||"path",container:m.getContainer("commonElemsGroup"),component:m,label:"bottomPath",callback:function(){!m.getState("visible")&&this.hide()}}))}d&&!u&&m.removeGraphicalElement(d),s=m.addGraphicalElement("connector",N.setAnimation({attr:{path:r,stroke:(0,c.toRaphaelColor)(T),"stroke-width":D,"stroke-linecap":"round","stroke-linejoin":D>2?"round":"miter","stroke-dasharray":k},el:s||"path",container:m.getContainer("commonElemsGroupLine")||m.getContainer("commonElemsGroup"),component:m,label:o,callback:function(){!m.getState("visible")&&this.hide()}})),b.prevLim=L,b.prevDataStore=R,"realTimeUpdate"===y.state&&(m.realTimeUpdated=!0),C.connectnulldataOld=C.connectnulldata},n.addDatasetSpecificEvtArgs=function(e){var t=this.config,n=e.config,r=n.anchorProps,o=n.eventArgs,a=n.hoverEffects;Object.assign(o,{color:n.color,alpha:n.alpha,anchorBgColor:r.bgColor,anchorBgAlpha:r.anchorBgAlpha,anchorAlpha:r.anchorAlpha,anchorBorderColor:r.borderColor,anchorBorderThickness:r.borderThickness,anchorRadius:r.radius,anchorSides:r.sides,anchorStartAngle:r.startAngle,anchorHoverColor:a.anchorColor,anchorHoverAlpha:a.anchorAlpha,anchorHoverSides:a.anchorSides,dashed:n.dashed,valuePosition:n.valuePosition}),this.config.usePattern?(o.pattern={patternType:t.patternType,patternColor:t.plotfillcolor,patternBgColor:t.patternBgColor===c.TRACKER_FILL?i:t.patternBgColor},delete o.color):delete o.pattern},n.parsePlotAttributes=function(e,t){var n,r,o,i,a,s,l,u,d,h,p,f=this.getJSONIndex(),g=this.getState("visible"),m=this.config,v=this.config.JSONData,y=t,b={},C={},_={};u=(p=e.config)._Px,d=p._Py,n=p._x,r=p._y,i=p.setLink,o=p.setValue,b=p.anchorProps,h=p.displayValue,l=p.hoverEffects,s=p.finalTooltext=p.toolText,p.eventArgs={index:y,link:i,value:o,displayValue:h,categoryLabel:p.origLabel,toolText:s,id:p.id,datasetIndex:f||0,datasetName:v.seriesname,visible:g},this.addDatasetSpecificEvtArgs(e),a=b.symbol,e._xPos=u,e._yPos=d,e._xVal=n,e._yVal=r,e._index=y,null!==r&&null!==n?(p.eventArgs.x=n,p.eventArgs.y=r,l.enabled&&(_={path:(0,c.polyPathToPath)([l.anchorSides||2,u,d,l.anchorRadius,l.startAngle,l.dip?l.dip:+("spoke"===m.dip)]),fill:(0,c.toRaphaelColor)({color:l.anchorColor,alpha:l.anchorBgAlpha}),stroke:(0,c.toRaphaelColor)({color:l.anchorBorderColor,alpha:l.anchorBorderAlpha}),"stroke-width":l.anchorBorderThickness},C={path:(0,c.polyPathToPath)([a[1]||2,u,d,b.radius,b.startAngle,p.dip||0]),fill:(0,c.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,c.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness},l.attrs={hoverEnabled:l.enabled,anchorRadius:b.radius,anchorHoverRadius:l.anchorRadius},l.attrs[w]=_,l.attrs[x]=C,b.isAnchorHoverRadius=l.attrs.anchorRadius),b.imageUrl&&(p.anchorImageLoaded=!1),p.props={element:{attr:{path:(0,c.polyPathToPath)([a[1]||2,u,d,b.radius,b.startAngle,p.dip||0]),fill:(0,c.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,c.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness}}}):o&&(o.isNull=!0)},n.parseLabelAttributes=function(e,t){var n,r,o,a,s,l,c,u,d,h,p,f,g,m,v,y,b,C,w,x,_,M,E,O,A=this.getFromEnv("chart"),T=A.config,k=this.getFromEnv("smartLabel"),D=A.config.dataLabelStyle,P=this.components.data,N=T.stack100percent,L=T.rotatevalues?270:0,R=T.canvasTop,F=T.canvasHeight,I=A.config.isstacked,z=t;if(M=(m=e&&e.config)&&m.setValue,e!==i&&M!==i&&null!==M&&!0!==m.labelSkip){switch(h=m.anchorProps,y=e._yPos||e.config._Py,v=e._xPos||e.config._Px,_=h.markerRadius||h.radius-3,o=m.valuePadding+2+_,m.valuePosition){case"above":p=0;break;case"below":p=1;break;default:b=P[z-1]&&P[z-1].config||{},I&&N?(C=b.value,w=m.value):(C=b.setValue,w=m.setValue),p=z&&C>w?1:0}if(n=m.displayValue,x=m.showValue,r=m.dataLabelStyle,S(n)&&""!==n&&null!==w&&x){if(O={text:n,fill:r.color,"text-bound":[r.backgroundColor,r.borderColor,D.borderThickness,D.borderPadding,D.borderRadius,D.borderDash]},a=k.getOriSize(n),m._state=m._state||{},L?(m._state.labelWidth=a.height,m._state.labelHeight=a.width,m._rotated=!0):(m._state.labelWidth=a.width,m._state.labelHeight=a.height,m._rotated=!1),s=l=m._state.labelHeight,d=.5*l+o,f=y-R,g=R+F-y,c=y,u=v,E=(s+=o)+4,p?g>E?(c+=d,m._valueBelowPoint=1):f>E&&(c-=d,m._valueBelowPoint=0):f>E?(c-=d,m._valueBelowPoint=0):g>E&&(c+=d,m._valueBelowPoint=1),this.getFromEnv("useImprovedLabelPlacement")&&T.showSum&&!N){var B=s+2;cR+F-B-s/2+d&&(c=R+F-B-s/2+d)}O.x=u,O.y=c}m.props=m.props||{},m.props.label={attr:O}}else m&&delete m.labelSkip},n.allocatePosition=function(){var e,t,n=this,r=n.config,o=n.getFromEnv("chart"),a=o.config,s=n.components,l=s.data,c=n.getFromEnv("xAxis"),u=0,d=0,h=a.isstacked,p=a.viewPortConfig.step||1,f=o.hasScroll,g=n.getSkippingInfo&&n.getSkippingInfo(),m=g&&g.labelDraw||[],v=g&&g.draw||[];for(t=s.animAttrs=[],n.calculateScrollRange(),c.getState("scrolling")||h&&n.updateYForStack(),n.createCoordinates(),d=r.scrollMinVal;dvoid 0)||((e=l[u])&&e.config?n.parsePlotAttributes(e,u):t[u]=i);for(p>1&&r.skipIgnorerIndices.map(function(e){return l[e]}).filter(function(e){return e||e.config}).forEach(function(e){return n.parsePlotAttributes(e,u)}),d=r.scrollMinValForLabel;dh&&r.flushOnScroll(h,t>p?p:t),n1&&s.skipIgnorerIndices.map(function(e){return l[e]}).filter(function(e){return e||e.config}).forEach(function(e){return r.drawPlot(e,c)}),0===c||s.drawanchors?f&&f.hide():f?f.hide():r.getAnchor()},n.drawAnchorImage=function(e){var t,n=this.getContainer("plotGroup"),r=e.graphics,o=this.getFromEnv("animationManager"),i=f?r.element:r.image,a=e.config.anchorProps,s=a.anchorAlpha&&a.radius,l=a.imageAlpha;this.getState("visible")&&s?(f||(r.element=o.setAnimation({el:r.element||"path",container:n,attr:e.config.props.element.attr,label:"anchor",component:this}).show()),e.config.props.element.attr.opacity=.01*l,t=o.setAnimation({el:i||"image",container:n,component:this,label:"anchor",attr:{opacity:.01*l}}),f?r.element=t:r.image=t,i?t.attrs.src!==a.imageUrl?t.attr("src",a.imageUrl):t._.RefImg&&T(this,e):(t.on("load",this._onAnchorImageLoad(e)),t.attr("src",a.imageUrl)),t.show()):(r.image&&o.setAnimation({el:r.image,state:"disappearing",component:this,doNotRemove:!0,callback:function(){this.hide()}}),r.element&&o.setAnimation({el:r.element,state:"disappearing",component:this,doNotRemove:!0,callback:function(){this.hide()}}))},n.getLineSegment=function(e,t,n){var r=t._Px,o=t._Py,a=t._Pbx,s=t._Pby,l=this.getFromEnv("yAxis").getPixel(0),c=t.setValue,u="path-"+e.pathCount,d=this.getFromEnv("chart").config.connectnulldata;return"zero"===n?(o=l,s=l):"base"===n&&(o=t._Pby),e.pathMap[u]||(e.pathMap[u]=[]),e.path2Map[u]||(e.path2Map[u]=[]),null===c||c.isNull?d||(e.pointsJoined>0&&e.path2Map[u][e.path2Map[u].length-1]!==y&&s!==i&&e.path2Map[u].push(y),e.temp=[],e.temp2=[],e.lastValidValue=!1):e.lastValidValue?(e.temp.length&&(e.pathMap[u]=e.pathMap[u].concat(e.temp),a!==i&&(e.path2Map[u]=e.temp2,e.temp2=[]),e.temp=[],e.pointsJoined++),e.pathMap[u].push([v,r,o]),s!==i&&e.path2Map[u].unshift([v,r,s])):(e.temp.push(["M",r,o]),s!==i&&e.temp2.push([v,a,s]),e.pointsJoined=0,e.lastValidValue=!0,e.pathCount++),e},n.getLinePath=function(e,t,n){var r,o,a,s,l,c,u,d,h,p=this,f=p.getFromEnv("chart").config,g=e.length,m=t&&t.begin||0,v=p.getState("visible")?t&&t.end||g:0,b=f.viewPortConfig.step||1,C=(p.removeDataLen,[]),w=p.getSkippingInfo&&p.getSkippingInfo(),x=w&&w.draw||[],S=x.length,M=w&&w.skippingApplied,E=p.config.skipIgnorerIndices,O=[],A={},T=0;for(C=C.concat(e),M&&(m=0,v=S),o=m+0;o1)for(;E[T]1)for(r=c+1;r<=o;r++)(l=C[x[r]||r])&&((a=l.config).setValue===i||a&&!0===a.isSkipped?a&&delete a.isSkipped:E.includes(r)&&(O=O.concat(a),s=a._Pby));return h="path-"+(A=O.reduce(function(e,t){return p.getLineSegment(e,t,n)},{temp:[],temp2:[],pathMap:{},path2Map:{},pointsJoined:0,lastValidValue:!1,getPathArr:_,pathCount:0})).pathCount,A.path2Map[h]&&A.path2Map[h][A.path2Map[h].length-1]!==y&&A.pointsJoined>0&&s!==i&&A.path2Map[h].push(y),A},n._removeDataVisuals=function(e){var t,n,r,o,i=this.components.pool||(this.components.pool={});if(e)for(n in r=e.graphics)t=i[n]||(i[n]=[]),(o=r[n])&&o.hide&&"function"==typeof o.hide&&(o.attr({"text-bound":[]}),o.hide(),o.shadow&&o.shadow(!1)),t.push(r[n])},n._parseAnchorProperties=function(e,t){var n,r,o,a=this.config,s=this.getName(),l=this.getFromEnv("chart"),u=l.config.anchoralpha,d=this.components.data[e],h=d&&d.config,p=!l.config.anchoralpha&&/area/gi.test(s)?0:1,f=a.JSONData,g=l.getFromEnv("dataSource").chart,m=(t||f.data||[])[e]||{},v={};return r=(0,c.pluck)(m.anchorstartangle,f.anchorstartangle,g.anchorstartangle,m.anchorimagealpha,f.anchorimagealpha,g.anchorimagealpha,m.anchorimagescale,f.anchorimagescale,g.anchorimagescale,m.anchorimagepadding,f.anchorimagepadding,g.anchorimagepadding,m.anchorimageurl,f.anchorimageurl,g.anchorimageurl,m.anchorradius,f.anchorradius,g.anchorradius,m.anchorbgcolor,f.anchorbgcolor,g.anchorbgcolor,m.anchorbordercolor,f.anchorbordercolor,g.anchorbordercolor,m.anchoralpha,f.anchoralpha,g.anchoralpha,m.anchorsides,f.anchorsides,g.anchorsides,m.anchorborderthickness,f.anchorborderthickness,g.anchorborderthickness,i)!==i,o=(0,c.pluckNumber)(m.drawanchors,a.drawanchors),v.enabled=r?(0,c.pluckNumber)(o,r):(0,c.pluckNumber)(o,p),v.startAngle=(0,c.pluckNumber)(m.anchorstartangle,a.anchorstartangle),v.imageAlpha=(0,c.pluckNumber)("inherit"===m.anchorimagealpha?h.alpha:m.anchorimagealpha,"inherit"===f.anchorimagealpha?h.alpha:f.anchorimagealpha,"inherit"===g.anchorimagealpha?h.alpha:g.anchorimagealpha,a.anchorimagealpha),v.imageScale=(0,c.pluckNumber)(m.anchorimagescale,a.anchorimagescale),v.imagePadding=(0,c.pluckNumber)(m.anchorimagepadding,a.anchorimagepadding),v.imagePadding<0&&(v.imagePadding=0),v.imageUrl=(0,c.pluck)(m.anchorimageurl,a.anchorimageurl),v.imageUrl&&a.imageCount++,v.radius=v.enabled?(0,c.pluckNumber)(m.anchorradius,a.anchorradius):0,v.isAnchorRadius=(0,c.pluck)(m.anchorradius,f.anchorradius,g.anchorradius),v.bgColor=(0,c.pluck)("inherit"===m.anchorbgcolor?h.color:m.anchorbgcolor,"inherit"===f.anchorbgcolor?h.color:f.anchorbgcolor,"inherit"===g.anchorbgcolor?h.color:a.anchorbgcolor),u=v.enabled?(0,c.getFirstAlpha)((0,c.pluck)("inherit"===m.anchoralpha?h.alpha:m.anchoralpha,"inherit"===f.anchoralpha?h.alpha:f.anchoralpha,"inherit"===g.anchoralpha?h.alpha:g.anchoralpha,a.anchoralpha,v.enabled?c.HUNDREDSTRING:"0")):0,v.anchorAlpha=u,v.anchorBgAlpha=(0,c.pluckNumber)("inherit"===m.anchorbgalpha?h.alpha:m.anchorbgalpha,"inherit"===f.anchorbgalpha?h.alpha:f.anchorbgalpha,"inherit"===g.anchorbgalpha?h.alpha:g.anchorbgalpha,a.anchorbgalpha,u),v.bgAlpha=(0,c.getFirstAlpha)(v.anchorBgAlpha)*u/100,v.imageAlpha=v.imageAlpha*u/100,v.borderColor=(0,c.pluck)("inherit"===m.anchorbordercolor?h.color:m.anchorbordercolor,"inherit"===f.anchorbordercolor?h.color:f.anchorbordercolor,"inherit"===g.anchorbordercolor?h.color:a.anchorbordercolor),v.borderAlpha=u,v.sides=(0,c.pluck)(m.anchorsides,a.anchorsides),v.borderThickness=(0,c.pluck)(m.anchorborderthickness,a.anchorborderthickness),v.symbol=(0,c.mapSymbolName)(v.sides).split("_"),n=(0,c.pluckNumber)(m.anchorshadow,a.anchorshadow)&&v.radius>=1,v.shadow={opacity:n?u/100:0},v},n._hideGraphics=function(e){var t,n;for(n in e)if(e.hasOwnProperty(n)){if(!(t=e[n]))continue;t.hide?t.hide():this._hideGraphics(t)}},n._parseHoverEffectOptions=function(e,t){var n=t,r=this.config.JSONData,o=this.getFromEnv("chart"),a=o.getFromEnv("dataSource").chart,s=o.config,l=e.config,u=this.config,d=l.anchorProps||{},h=s.plothovereffect,p=u.drawanchors,f={enabled:!1};return n=n||{},0!==h&&0!==p&&(f.enabled=(0,c.pluck)(n.hovercolor,n.anchorhovercolor,n.hovercolor,r.hovercolor,n.anchorbghovercolor,r.anchorbghovercolor,a.anchorbghovercolor,r.anchorhovercolor,a.anchorhovercolor,n.hoveralpha,n.anchorhoveralpha,r.anchorhoveralpha,a.anchorhoveralpha,n.bghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,a.anchorbghoveralpha,n.anchorborderhovercolor,n.borderhovercolor,r.anchorborderhovercolor,a.anchorborderhovercolor,n.anchorborderhoverthickness,n.borderhoverthickness,r.anchorborderhoverthickness,a.anchorborderhoverthickness,n.anchorborderhoveralpha,n.borderhoveralpha,r.anchorborderhoveralpha,a.anchorborderhoveralpha,n.hoverdip,n.anchorhoverdip,r.anchorhoverdip,a.anchorhoverdip,n.anchorhoverstartangle,r.anchorhoverstartangle,a.anchorhoverstartangle,n.hoversides,n.anchorhoversides,r.anchorhoversides,a.anchorhoversides,n.hoverradius,n.anchorhoverradius,r.anchorhoverradius,a.anchorhoverradius,r.plotfillhovercolor,a.plotfillhovercolor,s.plothovereffect,i)!==i,f.startAngle=(0,c.pluckNumber)(n.anchorhoverstartangle,r.anchorhoverstartangle,a.anchorhoverstartangle,d.startAngle),f.hoverColor=(0,c.pluck)(n.hovercolor,n.anchorhovercolor,r.hovercolor,n.anchorbghovercolor,r.anchorbghovercolor,a.anchorbghovercolor,r.anchorhovercolor,a.anchorhovercolor,a.plotfillhovercolor),f.hoverAlpha=(0,c.pluck)(n.hoveralpha,n.anchorhoveralpha,r.anchorhoveralpha,a.anchorhoveralpha,n.bghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,a.anchorbghoveralpha,r.hoveralpha,a.plotfillhoveralpha),f.anchorSides=(0,c.pluckNumber)(n.hoversides,n.anchorhoversides,r.anchorhoversides,a.anchorhoversides,d.sides),f.anchorRadius=(0,c.pluckNumber)(n.anchorhoverradius,r.anchorhoverradius,a.anchorhoverradius),f.isAnchorHoverRadius=f.anchorRadius,f.anchorRadius=(0,c.pluckNumber)(f.anchorRadius,d.radius+(h?2:0)),f.anchorScale=(0,c.pluck)(n.hoverscale,r.anchorscale,a.anchorscale),f.imageHoverScale=(0,c.pluckNumber)(n.anchorimagehoverScale,r.anchorimagehoverscale,a.anchorimagehoverscale,110),f.imageHoverAlpha=(0,c.pluckNumber)(n.anchorimagehoveralpha,r.anchorimaghoverealpha,a.anchorimagehoveralpha),f.anchorAlpha=(0,c.pluck)(n.anchorhoveralpha,n.hoveralpha,r.anchorhoveralpha,a.anchorhoveralpha,d.anchorAlpha),f.anchorColor=(0,c.getFirstColor)((0,c.pluck)(n.hovercolor,n.anchorhovercolor,n.hoverColor,n.anchorbghovercolor,r.anchorbghovercolor,r.anchorhovercolor,r.hovercolor,a.anchorbghovercolor,a.anchorhovercolor,a.plotfillhovercolor,d.bgColor)),f.anchorBgAlpha=(0,c.pluck)(n.bghoveralpha,n.anchorbghoveralpha,r.anchorbghoveralpha,a.anchorbghoveralpha,a.plotfillhoveralpha,d.bgAlpha),f.anchorBgAlpha=f.anchorBgAlpha*f.anchorAlpha/100,f.anchorBorderColor=(0,c.pluck)(n.borderhovercolor,n.anchorborderhovercolor,r.anchorborderhovercolor,a.anchorborderhovercolor,d.borderColor),f.anchorBorderAlpha=(0,c.pluck)(n.borderhoveralpha,n.anchorborderhoveralpha,r.anchorborderhoveralpha,a.anchorborderhoveralpha,f.anchorAlpha,d.borderAlpha),f.anchorBorderThickness=(0,c.pluckNumber)(n.borderhoverthickness,n.anchorborderhoverthickness,r.anchorborderhoverthickness,a.anchorborderhoverthickness,a.anchorBorderThickness,d.borderThickness),f.dip=(0,c.pluck)(n.hoverdip,n.anchorhoverdip,r.anchorhoverdip,a.anchorhoverdip,d.dip),f.anchorAnimation=(0,c.pluckNumber)(n.anchorhoveranimation,r.anchorhoveranimation,a.anchorhoveranimation,1)),f},n._hoverPlotAnchor=function(e,t){var n,r,o,i,a,s=this.getFromEnv("smartLabel"),l=this.getFromEnv("chart").getChildren("canvas")[0].getEffectiveDimensions(),c=l.top,u=c+l.height,d=e.config._Py,h=this.getFromEnv("animationManager"),p=this.getGraphicalElement("sharedAnchor"),v=e.graphics.element||p,y=e.graphics.label,b=e.config||{},C=b.anchorProps.anchorAlpha,_=b&&b.anchorProps.imageUrl,S=f&&_?e.graphics.element:e.graphics.image,M="image"===v.type,E=v.data("anchorRadius"),O=v.data("anchorHoverRadius"),A=v.data(w)||{},T=v.data(x)||{},k=y&&(y.data("isBelow")?1:-1)*(M?.5*(A.height-T.height):O-E),D=t===g?A:T,P=!0,N={path:D.path},L={fill:D.fill,"stroke-width":D["stroke-width"],stroke:D.stroke},R=y&&y.data("rotation")||"";d-3*(n=s.getOriSize(b.displayValue).height)/2+ku&&(k=u-d-3*n/2),a={transform:"T0,"+(t===g?k:0)+R},h.setAnimationState(t===g?"mouseOver":"mouseOut"),S&&(o=S.data(w),i=S.data(x),(r=t===g?o:i).alpha*=.01),M?N.alpha*=.01:Object.assign(N,L),(t===g&&!O||t===m&&!E)&&(P=!1),h.setAnimation({el:v,label:"anchor",component:this,doNotRemove:!0,callback:function(){!P&&v.hide()},attr:P&&N}),P&&v.show(),S&&(h.setAnimation({el:S,label:"anchor",component:this,attr:P&&r}),P&&S.show()),(e.graphics&&e.graphics.element||p&&p.element)&&C&&y&&h.setAnimation({el:y,label:"label",component:this,doNotRemove:!0,attr:a})},n.drawLabel=function(e,t){var n,r,o,a,s,l,u,d,h,p,f,g,m=this.config,v=this.getFromEnv("chart"),y=v.config,b=this.getFromEnv("smartLabel"),C=v.config.dataLabelStyle,w=this.getFromEnv("toolTipController"),x=this.components.data,_=this.getFromEnv("paper"),M=this.getFromEnv("animationManager"),E="",O=y.rotatevalues?270:0,A=this.getContainer("labelGroup"),T=this.getState("visible"),k=x.length,D=this.getSkippingInfo&&this.getSkippingInfo(),P=D&&D.skippingApplied,N=D&&D.labelDraw||[],L=N.length,R=(0,c.pluckNumber)(e,0),F=(0,c.pluckNumber)(t,P?L:k),I=L===Math.abs(F-(R+1));for(u={"font-weight":C.fontWeight,"font-style":C.fontStyle,"font-family":C.fontFamily,"font-size":C.fontSize,"line-height":C.lineHeight},b.setStyle(u),h=R;hU-z-B&&(Y=!0,r=C.canvasWidth-V,b=z+B,z=C.canvasMarginLeft=r*z/b,B=C.canvasMarginRight=r*B/b),a=z>C.canvasLeft?z-C.canvasLeft:0,l=B>U-C.canvasRight?B+C.canvasRight-U:0,this._allocateSpace({left:a,right:l}),this._allocateSpace({left:D}),Y&&(b=$+Z,(u=C.canvasWidth)>V&&(a=(r=u-V)*$/b,l=r*Z/b),this._allocateSpace({left:a,right:l})),C.actualCanvasMarginRight=l,C.actualCanvasMarginBottom=i,this._manageChartMenuBar(t),t=.2*C.availableHeight,C.sumValueSpace=this._getSumValueSpace(t),this._allocateSpace(C.sumValueSpace),t=.3*C.availableHeight,C.realtimeEnabled&&(L?this._allocateSpace(this._realTimeValuePositioning(t)):this._hideRealTimeValue()),t=.6*C.availableHeight,this._calculateChartShift("xAxis"),C.xAxisSpaceAllocation=y=x&&x.placeAxis(t),x&&this._allocateSpace(y),t=.3*C.availableHeight,this._manageScrollbarPosition&&this._manageScrollbarPosition(t),C.canvasHeight-2*NG-F-I&&(q=!0,r=C.canvasHeight-j,b=F+I,F=C.canvasMarginTop=r*F/b,I=C.canvasMarginBottom=r*I/b),o=F>C.canvasTop?F-C.canvasTop:0,i=I>G-C.canvasBottom?I+C.canvasBottom-G:0,this._allocateSpace({top:o,bottom:i}),q&&(b=X+K,(c=C.canvasHeight)>j&&(o=(r=c-j)*X/b,i=r*K/b),this._allocateSpace({top:o,bottom:i})),C.actualCanvasMarginTop=o,C.actualCanvasMarginLeft=a,T.setDimension({top:C.canvasTop,left:C.canvasLeft,width:C.canvasWidth,height:C.canvasHeight})}function d(){var e,t,n,r,o=this.config,i=this.getChildren(),a=i.xAxis&&i.xAxis[0],s=i.yAxis&&i.yAxis[0],l=i.scrollBar&&i.scrollBar[0]&&i.scrollBar[0].config,c=i.legend&&i.legend[0],u=o.xDepth||0,d=i.canvas[0].config,h=d.canvasBorderWidth,p=d.canvasPadding,f=d.canvasTop,g=d.canvasLeft,m=f-h,v=f+d.canvasHeight+h,y=g-(o.shift||0)-h,b=g+d.canvasWidth+h+o.sumValueSpace.right;s&&this._allocateXAxisLabelSpace(s),e=d.canvasPaddingLeft,t=d.canvasPaddingRight,n=d.canvasPaddingTop,r=d.canvasPaddingBottom,s&&s.setAxisDimention({x:d.canvasLeft+e,y:s.config.isOpposit?m:v,opposite:s.config.isOpposit?v:m,axisLength:d.canvasWidth-e-t}),a&&a.setAxisDimention({x:(a.config.isOpposit?b:y)+(this.isScrollEnabled()&&l.isOpposite&&o.shift||0),y:f+u+Math.max(n,p),opposite:a.config.isOpposit?y:b,axisLength:d.canvasHeight-u-Math.max(n,p)-Math.max(r,p)}),c&&c.postSpaceManager(),this.allocateDimensionOfChartMenuBar()}var h=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"MSBarCartesian"},t.getName=function(){return"MSBarCartesian"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.enablemousetracking=!0},n._feedAxesRawData=function(){return c.call(this)},n._spaceManager=function(){u.call(this)},n._postSpaceManagement=function(){d.call(this)},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=h},555:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(453)),a=n(556),s=r(n(557)),l=r(n(558)),c=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("dataset",s.default,["vCanvas"]),t.registerFactory("legend",l.default),t}(0,o.default)(t,e),t.getName=function(){return"MSCartesian"};var n=t.prototype;return n.getName=function(){return"MSCartesian"},n.getType=function(){return"chartAPI"},n._manageLegendSpace=function(){a._manageLegendSpace.call(this)},n.manageGradientLegendSpace=function(e){return a.manageGradientLegendSpace.call(this,e)},t}(i.default);t.default=c},556:function(e,t,n){"use strict";t.__esModule=!0,t._manageLegendSpace=function(){var e,t,n,o,i=this.config,a=this.getChildren("legend")&&this.getChildren("legend")[0],s=this.getChildren("gLegend")&&this.getChildren("gLegend")[0],l=this.getFromEnv("dataSource").colorrange,c=i.hasLegend,u={},d=this.hasGradientLegend,h=this.getFromEnv("dataSource").chart,p=(0,r.pluckNumber)(h.mapbycategory,0);d&&l&&(0,r.pluckNumber)(l.gradient)&&!p?(e=s.conf,d=!0,i.gLegendEnabled=!0,o=(t=e.legendPosition?e.legendPosition.split("-"):[])[0]===r.POSITION_RIGHT||t[0]===r.POSITION_LEFT?.4:.5):(e=a&&a.config,d=!1,i.gLegendEnabled=!1,o=(t=e&&e.legendPos?e.legendPos.split("-"):[r.POSITION_BOTTOM])[0]===r.POSITION_RIGHT||t[0]===r.POSITION_LEFT?.8:.4),n=t[0]===r.POSITION_ABSOLUTE?.4*i.availableHeight:t[0]===r.POSITION_RIGHT||t[0]===r.POSITION_LEFT?i.availableWidth*o:i.availableHeight*o,d?u=this.manageGradientLegendSpace(n):!1!==c&&a&&!a.getState("removed")&&(u=a&&a._manageLegendPosition(n)),u&&this._allocateSpace(u)},t.manageGradientLegendSpace=function(e){var t,n,o,i=this.config,a=this.getFromEnv("gLegend"),s=a&&a.conf,l={top:0,bottom:0,left:0,right:0};return i.gLegendPadding=(0,r.pluckNumber)(this.getFromEnv("chart-attrib").legendpadding,10),n=Math.min(i.gLegendPadding,.5*e),s&&(t=s.legendPosition?s.legendPosition.split("-"):[],o=a.getLogicalSpace(e),t[0]===r.POSITION_BOTTOM?l.bottom=(o.height||0)+n:t[0]===r.POSITION_TOP?l.top=(o.height||0)+n:t[0]===r.POSITION_LEFT?l.left=(o.width||0)+n:t[0]!==r.POSITION_ABSOLUTE&&(l.right=(o.width||0)+n)),l};var r=n(218)},557:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n,o,i,a=e.getFromEnv("dataSource").dataset,s=t=e.getChildren().canvas[0].getChildren("vCanvas")[0],l=e.config.defaultDatasetType||"";a?((o=e.getDSGroupdef())&&((0,r.componentFactory)(t,o,"datasetGroup_"+l,1,[a]),i=t.getChildren("datasetGroup_"+l)),i&&(s=i[0]),n=e.getDSdef(),(0,r.datasetFactory)(s,n,"dataset",a.length,a)):e.setChartMessage()};var r=n(218)},558:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t;(0,o.componentFactory)(e,i.default,"legend"),(t=e.getChildren("legend")[0]).configure(),e.addToEnv("legend",t),e.config.showLegend||t.remove()};var o=n(218),i=r(n(559))},559:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=r(n(235)),a=r(n(232)),s=n(218),l=n(233),c=r(n(560)),u=n(226),d=n(355),h=r(n(562)),p=n(230),f=n(563);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;ta.props.height+a.props.y||(r=a.props.y+a.props.height)),o&&o.config&&o.config.text&&o.config.text!==s.BLANKSTRING&&o.config.height&&1===o.config.isOnTop&&(r=o.config.height+o.config.y+o.config.captionPadding),i&&i.config&&i.config.height&&1===i.config.isOnTop&&(r=i.config.y+i.config.height+(o&&o.config&&o.config.captionPadding||0)),C(r,e)},n.getPosition=function(){var e,t,n,r,o,i,a,l,c,u,d=this.getFromEnv("chart"),h=d.config,p=this.config,f=d.getChildren("canvas"),g=f&&f.length>1?h.height-f[0].config.canvasBottom:h.height-h.canvasBottom,m=h.canvasLeft,v=h.canvasRight,y=h.canvasWidth,b=p.chartMarginLeft||0,C=p.chartMarginRight||0,w=p.chartMarginTop||0,x=p.chartMarginBottom||0,_=h.actionBarHeight||0,S=p.actualCanvasMarginLeft||0,M=h.actualCanvasMarginTop||0,E=h.actualCanvasMarginBottom||0,O=h.actualCanvasMarginRight||0,A=p.alignLegendWithCanvas,T=h.height,k=h.canvasTop,D=p.width||0,P=p.height||0,N=h.borderWidth,L=h.oriCanvasLeft,R=h.oriCanvasRight,F=h.oriTopSpace,I=h.oriBottomSpace,z=0,B=0,j=p.borderWidth||0,V=p.legendPos?p.legendPos.split("-"):[],W=d.getChildren("caption")&&d.getChildren("caption")[0],H=d.getChildren("subCaption")&&d.getChildren("subCaption")[0];return V[0]!==s.POSITION_LEFT&&V[0]!==s.POSITION_RIGHT||(p.align=V[0],p.verticalAlign=s.POSITION_MIDDLE,c=p.layout="vertical"),V[0]===s.POSITION_ABSOLUTE?(e=p.legendXPosition,t=p.legendYPosition,e>(n=h.width-D-N)&&(e=n),t>(r=h.height-P-N)&&(t=r)):c?(V[0]===s.POSITION_LEFT?e=b+S+N:V[0]===s.POSITION_RIGHT&&(e=h.width-C-O-D-N),z=(0,s.pluckNumber)(F,k),B=(0,s.pluckNumber)(I,g),V[1]===s.POSITION_TOP?(t=z+(p.y||0),t=this._calculateTopPosition(t)):V[1]===s.POSITION_BOTTOM?(t=T-B-P+(p.y||0),(u=B-(N+x+_+(W&&0===W.config.isOnTop&&W.config.height?W.config.height+W.config.captionPadding:0)+(H&&0===W.config.isOnTop?H.config.height:0)))<0&&(t+=u)):t=z+.5*(T-B-z-P)+(p.y||0)):(a=h.width-(b+S+(C+O)),l=A?y-D:a-D,o=A?(0,s.pluckNumber)(L,m):b+S,i=A?h.width-(0,s.pluckNumber)(R,v):C+O,e=V[1]===s.POSITION_LEFT?o:V[1]===s.POSITION_RIGHT?h.width-(D+i):o+l/2,V[0]===s.POSITION_TOP?(t=w+M,t=this._calculateTopPosition(t)):t=T-P-E-x-_),(0,s.crispBound)(e,t,D,P,j)},n.setTranslation=function(e,t){var n=this.config;n._translateX=e,n._translateY=t,n.translate="t"+e+","+t},n.allocatePosition=function(){var e,t=this.config;e=t.translate?(0,s.crispBound)(t._translateX,t._translateY,t.width,t.height,t.borderWidth):this.getPosition(),t.xPos=e.x,t.yPos=e.y,t.width=e.width,t.height=e.height},n._manageLegendPosition=function(e){var t,n=this.config,r=n.legendPos?n.legendPos.split("-"):[],o={left:0,right:0,top:0,bottom:0};return n.padding=4,n.textPadding=4,t=r[0]===s.POSITION_ABSOLUTE?this._placeLegendBlockBottom(e,.6):r[0]===s.POSITION_LEFT||r[0]===s.POSITION_RIGHT?this._placeLegendBlockRight(e):this._placeLegendBlockBottom(e),r[0]===s.POSITION_LEFT?o.left=t&&t.right||0:r[0]===s.POSITION_RIGHT?o.right=t&&t.right||0:r[0]===s.POSITION_TOP?o.top=t&&t.bottom||0:r[0]!==s.POSITION_ABSOLUTE&&(o.bottom=t&&t.bottom||0,o.right=t&&t.right||0),o},n.setDimension=function(e){var t,n,r,o,i,a,l,c,u,d,h,p,g,v,y,_,S,E,O,A,T,k,D,P,N,L,R=this.config,F=this.getSortedLegendItems(),I=F.length,z=e.width,B=e.height,j=B,V=0,W=0,H=0,G=0,U=0,q=0,Y=0,X=[],K=R.padding,$=R.textPadding,Z=this.getFromEnv("smartLabel"),J=this.getStateCosmetics("default"),Q=this.computeFontSize(R.legendFontSizeWithUnit),ee=parseInt((0,s.setLineHeight)({fontSize:Q+"px"}),10),te=parseInt(J.text["font-size"],10)||10,ne=R.title,re=ne.padding,oe=0,ie=R.minimiseWrappingInLegend,ae=R.legendPadding,se=R.legendScale,le=R.alignLegendWithCanvas,ce=R.numColumns,ue=R.numRows,de=R.oriSymbolPadding,he=Number.MAX_SAFE_INTEGER,pe=z,fe=!1,ge=!!ue,me=0;for(h={width:2*K,height:2*K},this.setStateCosmetics("default",{text:{fill:J.text.fill,"font-family":J.text["font-family"],cursor:J.text.cursor,"font-size":Q,"line-height":ee,"vertical-align":s.POSITION_TOP,"text-anchor":s.POSITION_START,direction:J.text.direction,"font-weight":J.text["font-weight"]},symbol:{bgColor:J.symbol.bgColor,cursor:J.symbol.cursor,borderColor:J.symbol.borderColor,bgAlpha:J.symbol.bgAlpha,borderAlpha:J.symbol.borderAlpha,borderThickness:J.symbol.borderThickness,startAngle:J.symbol.startAngle,sides:J.symbol.sides}}),(d=te+1)<=0&&(d=1),z=Math.max(z-2*K,0),de*=se,(d=b(d*=se,z))<=0&&(de=d=0),R.symbolWidth=d,R.textPadding=4,R.legendHeight=u=d+2*de,R.rowHeight=a=C(parseInt(J.text["line-height"],10)||12,u),i=$+de+K,Z.setStyle((0,s.extend2)({},J.text)),l=ae+R.borderWidth/2+1,l=C(b(l,B-ee-8),0),ae=.05*a,R.initialItemY=0,R.initialItemX=0,P=u+ae+$+de+2*K,p=0;ppe?0:R.x,A){if(G+=P,V+=P,ne.oriText!==s.BLANKSTRING&&(fe=!0,Z.setStyle(ne.style),T=Z.getSmartText(ne.oriText,z-2*K),ne.text=T.text,T.tooltext&&(ne.originalText=T.tooltext),oe=T.width+2*K,Y=T.height+re),v=V,ue?!ce&&ue?(me=1,Hce*ue?ue=x(H/ce):ce===x(H/ue)&&(me=1):W<=z?v=1===(ue=x(H/(ce=ce||H)))?W/H:V:!ce&&z>V&&(ie||1.5*G>V)?(H<(ce=w(z/V))&&(ce=H),v=V):ce&&z/ce>G?(v=z/ce)>V&&(v=V):!ce&&z>=2*G?(H<(ce=w(z/G))&&(ce=H),(v=w(z/ce))>V&&(v=V)):ce||(ce=1,v=z),U=ge?V:v,!ge&&1.5*G1.5*G&&(be=G),ye=b(H,w(z/be)),ve=x(H/ye),R.numRows&&ve!==ue||R.numColumns&&ye!==ce||1===ue&&1!==ve||(U=be,ce=ye,ue=ve)}for(Z.setStyle((0,s.extend2)({},J.text)),p=0;p2.5*G?G:t._selfTotalWidth),0===(c=Math.ceil(U-P))?(t.name=s.BLANKSTRING,t._totalWidth=d+de,t._selfTotalWidth=t._totalWidth,t._selfTotalHeight=a):(T=Z.getSmartText(t.name,ca?$+T.height:a,t._totalWidth=d+i+T.width,t._selfTotalWidth=P+T.width,t._legendTestY=a>T.height?(a-T.height)/2:0,q=C(q,t._textHeight),he=C(1,b(he,t._textHeight)));if(y={style:{display:"grid",justifyItems:"center",alignItems:"start"}},_=[],fe&&_.push({style:{width:oe,height:Y,gridRowStart:1,gridRowEnd:2,gridColumnStart:1,gridColumnEnd:2}}),_.push({style:{display:"grid",justifyItems:"start",alignItems:"start",width:b(W,z,U*ce),paddingEnd:K,paddingTop:K,gridRowStart:_.length+1,gridRowEnd:_.length+2,gridColumnStart:1,gridColumnEnd:2}}),S=[],ge||1===ue)for(g=0,p=1;g=ce&&(xe=0,we++),Ce)break}S.push({style:{width:L===ce?t._selfTotalWidth:v,height:t._selfTotalHeight,gridRowStart:N,gridRowEnd:N+Ce,gridColumnStart:L,gridColumnEnd:L+1}}),p+=1,Ce=void 0}for(p=ue=0;p1&&(_[_.length-1].style.gridTemplateRows=(he+" ").repeat(ue).slice(0,-1))}for(_[_.length-1].children=S,E=(0,f.computeLayout)(m(m({},y),{},{children:_})),R.itemWidth=U,(c=x(U-P))<0&&(de=c=$=0),R.symbolPadding=de,R.textPadding=$,R.width=R.totalWidth=C(E.layout.width,E.children[E.children.length-1].layout.width),Z.setStyle((0,s.extend2)({},J.text)),g=0,p=0;gE.children[E.children.length-1].layout.width&&z>R.width?E.children[E.children.length-1].layout.x:0,R.initialItemY=E.children[E.children.length-1].layout.y,R.height-2*de>B?(R.height=B,(k=R.scroll||(R.scroll={})).enabled=!0,k.flatScrollBars=R.flatScrollBars,k.scrollBar3DLighting=R.scrollBar3DLighting,R.width=R.width+12>z?R.width:R.width+12):R.scroll.enabled=!1,R.width>z?(R.width=z,(D=R.horizontalScroll||(R.horizontalScroll={})).enabled=!0,D.flatScrollBars=R.flatScrollBars,D.scrollBar3DLighting=R.scrollBar3DLighting,R.height+12<=B?R.height=R.height+12:(R.height=B,R.totalHeight+=4,(k=R.scroll||(R.scroll={})).enabled=!0,k.flatScrollBars=R.flatScrollBars,k.scrollBar3DLighting=R.scrollBar3DLighting,R.scroll.enabled=!0)):R.horizontalScroll.enabled=!1,R.totalWidth>R.width&&R.totalWidth-R.width<=4){for(g=0,p=0;g(0,s.pluckNumber)(a.height,0)?(o=k)&&i.width:(o=D)&&a.width),F=b?F:u-(r+y>d-e?2*o+v+m+x+_:v+m+_+x),B[0]===s.POSITION_ABSOLUTE&&(F=I,g.legendMaxWidthn?(e.totalHeight<=e.height&&(e.scroll.enabled=!0,e.scroll.flatScrollBars=e.flatScrollBars,e.scroll.scrollBar3DLighting=e.scrollBar3DLighting,e.width+=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=2)),e.height=n):e.scroll.enabled=!1)},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,r,o,i,a,l=this.config,c=this.getFromEnv("chart"),u=c.config,d=this.getFromEnv("style"),h=c.getFromEnv("chart-attrib"),p=c.config.is3D,f=this.getFromEnv("color-manager"),g=p?s.chartPaletteStr.chart3D:s.chartPaletteStr.chart2D,m=l.interactiveLegend=!1!==c.hasInteractiveLegend&&Boolean((0,s.pluckNumber)(h.interactivelegend,1)),y=(0,s.pluckNumber)(h.useroundedges,0),b=d.outCancolor,w=t.style&&t.style.text,x=(0,s.pluck)(h.legenditemfont,w&&w["font-family"],d.outCanfontFamily),_=(0,s.pluckNumber)(h.legendiconscale,1),M=(0,s.pluckFontSize)(h.legenditemfontsize,w&&w["font-size"],d.fontSize)+"px",E=(0,s.pluck)(h.legenditemfontcolor,w&&w.color,b).replace(/^#?([a-f0-9]+)/gi,"#$1"),O=(0,s.getFirstColor)((0,s.pluck)(h.legenditemhoverfontcolor,E));l.isActive=!1,l.chartMarginTop=u.origMarginTop,l.chartMarginRight=u.origMarginRight,l.chartMarginBottom=u.origMarginBottom,l.chartMarginLeft=u.origMarginLeft,l.reverselegend=(0,s.pluckNumber)(h.reverselegend,0),l.showLegend=(0,s.pluckNumber)(h.showlegend,!c.dontShowLegendByDefault,1),l.legendFontSizeWithUnit=(0,s.pluckFontSizeMaintainUnit)(h.legenditemfontsize,d.fontSizeWithUnit||d.fontSize),n=(0,s.setLineHeight)({fontSize:M}),l.legendPos=(0,s.pluck)(h.legendposition,c.legendposition,t.legendPosition,s.POSITION_BOTTOM).toLowerCase(),l.numColumns=(0,s.pluckNumber)(Math.floor(h.legendnumcolumns)),l.numRows=(0,s.pluckNumber)(Math.floor(h.legendnumrows)),l.numColumns<0&&(l.numColumns=void 0),l.numRows<0&&(l.numRows=void 0),l.legendXPosition=C((0,s.pluckNumber)(h.legendxposition,c.legendxposition,t.legendXPosition,0),0),l.legendYPosition=C((0,s.pluckNumber)(h.legendyposition,c.legendyposition,t.legendYPosition,0),0),l.legendMaxWidth=(0,s.pluckNumber)(h.legendmaxwidth,c.legendmaxwidth,t.legendMaxWidth),l.legendMaxHeight=(0,s.pluckNumber)(h.legendmaxheight,c.legendmaxheight,t.legendMaxHeight),l.legendMaxWidth<0&&(l.legendMaxWidth=void 0),l.legendMaxHeight<0&&(l.legendMaxHeight=void 0),l.xL=l.yL=0,(_<=0||_>5)&&(_=1),l.drawCustomLegendIcon=(0,s.pluckNumber)(h.drawcustomlegendicon,t.drawcustomlegendicon,0),l.legendScale=_,l.legendPadding=(0,s.pluckNumber)(h.legendpadding,7),l.alignLegendWithCanvas=(0,s.pluckNumber)(t.alignlegendwithcanvas,u.alignLegendWithCanvas),l.title.style={fontFamily:(0,s.pluck)(h.legendcaptionfont,x),fontSize:(0,s.pluckFontSize)(h.legendcaptionfontsize,d.fontSize)+"px",color:(0,s.pluck)(h.legendcaptionfontcolor,b).replace(/^#?([a-f0-9]+)/gi,"#$1"),fontWeight:S.fontWeight[(0,s.pluckNumber)(h.legendcaptionfontbold,1)]||s.BLANKSTRING},a=h.legendcaptionalignment?h.legendcaptionalignment.toLowerCase():v.center,l.title.align=v[a]||v.center,l.title.style["text-anchor"]=l.title.align,l.padding=4,r=(0,s.pluck)(h.legendbordercolor,f.getColor(g.legendBorderColor)),o=l.borderAlpha=(0,s.pluckNumber)(h.legendborderalpha,100),l.borderColor=(0,s.convertColor)(r,o),l.borderWidth=(0,s.pluckNumber)(h.legendborderthickness,t.legendborderthickness,!y||h.legendbordercolor?1:0),l.borderRadius=(0,s.pluckNumber)(y,0),l.backgroundAlpha=i=(0,s.pluckNumber)(h.legendbgalpha,t.legendbgalpha,100),l.backgroundColor=(0,s.convertColor)((0,s.pluck)(h.legendbgcolor,f.getColor(g.legendBgColor)),i),l.symbol3DLighting=Boolean((0,s.pluckNumber)(h.use3dlighting,h.useplotgradientcolor,1)),l.symbol3DLighting=!u.usePattern&&l.symbol3DLighting,l.shadow=Boolean((0,s.pluckNumber)(h.legendshadow,1)),l.shadow&&(l.shadow={enabled:l.shadow,opacity:C(o,i)/100}),l.prevReversed=Boolean((0,s.pluckNumber)(l.reversed,0)),l.reversed=Boolean((0,s.pluckNumber)(h.reverselegend,0)),l.lineWidth=(0,s.pluckNumber)(h.linethickness,2),l.borderRadius=(0,s.pluckNumber)(h.legendborderradius,y?3:0),l.legendAllowDrag=Boolean((0,s.pluckNumber)(h.legendallowdrag,0)),l.title.oriText=(0,s.parseUnsafeString)((0,s.getFirstValue)(h.legendcaption,s.BLANKSTRING)),l.legendScrollBgColor=(0,s.getFirstColor)((0,s.pluck)(h.legendscrollbgcolor,h.scrollcolor,f.getColor("altHGridColor"))),l.legendScrollBarColor=(0,s.pluck)(h.legendscrollbarcolor,r),l.legendScrollBtnColor=(0,s.pluck)(h.legendscrollbtncolor,r),l.minimiseWrappingInLegend=(0,s.pluckNumber)(h.minimisewrappinginlegend,0),l.flatScrollBars=(0,s.pluckNumber)(h.flatscrollbars,0),l.scrollBar3DLighting=(0,s.pluckNumber)(h.scrollbar3dlighting,1),l.orderReversed=!1,this.setStateCosmetics("hidden",{symbol:{fill:(0,s.convertColor)((0,s.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1")),stroke:(0,s.convertColor)((0,s.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))},text:{fill:(0,s.convertColor)((0,s.pluck)(h.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/gi,"#$1"))}}),this.setStateCosmetics("default",{text:{fill:(0,s.convertColor)(E),"font-family":x,cursor:m?s.preDefStr.POINTER:"default","font-size":M,"line-height":n,"vertical-align":s.POSITION_TOP,"text-anchor":s.POSITION_START,direction:"rtl"===u.textDirection?"rtl":"initial","font-weight":S.fontWeight[(0,s.pluckNumber)(h.legenditemfontbold,0)]||s.BLANKSTRING},symbol:{bgColor:(0,s.pluck)(h.legendiconbgcolor),cursor:m?s.preDefStr.POINTER:"default",borderColor:(0,s.pluck)(h.legendiconbordercolor),bgAlpha:(0,s.pluckNumber)(h.legendiconbgalpha,h.legendiconalpha,100),borderAlpha:(0,s.pluckNumber)(h.legendiconborderalpha,h.legendiconalpha,100),borderThickness:(0,s.pluckNumber)(h.legendiconborderthickness),startAngle:(0,s.pluckNumber)(h.legendiconstartangle,45),sides:(0,s.pluckNumber)(h.legendiconsides,t.legendiconsides,4)}}),this.setStateCosmetics("hover",function(e,t){return t.hasState("hidden")||(e.text||(e.text={}),e.text.fill=(0,s.convertColor)(O.replace(/^#?([a-f0-9]+)/gi,"#$1")),e.text.cursor="inherit"),e}),l.legendAllowDrag&&!l._dragEvtListenerBinded?(this.addEventListener("fc-dragstart",l.handlers.dragstart),this.addEventListener("fc-dragmove",l.handlers.dragmove),l._dragEvtListenerBinded=!0):!l.legendAllowDrag&&l._dragEvtListenerBinded&&(this.removeEventListener("fc-dragstart",l.handlers.dragstart),this.removeEventListener("fc-dragmove",l.handlers.dragmove),l._dragEvtListenerBinded=!1)},n.getLegendState=function(){return this._legendState},n.hasState=function(e){var t,n,r=this.getLegendState();for(t=0,n=r.length;t-1||null===t)return t;if(Array.isArray(t)){var n,o,i=[];for(n=0,o=t.length;n=0||h.test(n))&&isNaN(n)))}).map(function(e){return function(e){if("auto"===(e=e.trim()))return e;if(!isNaN(+e))return+e;if(h.test(e)){var t=e.split(/\(|\)/g)[1].split(",");return[t[0].trim(),t[1].trim()]}return e}(e)}),n=o.length,"none"===e&&(n=this.getProps("maxTracks")),t=0;t-1||/[0-9]fr/.test(e)||h.test(e)||!isNaN(e)?(r+=t[o].calculatedStyle.baseSize+" ",o++):r+=e+" "}):t.forEach(function(e){isNaN(e.calculatedStyle.baseSize)||(r+=e.calculatedStyle.baseSize+" ")}),r.trim()}},567:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0||r[0].indexOf("fr")>0?(c=1/0,d.frTracks.push(t),o="minmax"):"auto"===r[1]||"auto"===r[0]?(c=1/0,d.intrinsicTracks.push(t),o="minmax"):isNaN(+r[0])||isNaN(+r[1])||(c=Math.max(+r[0],+r[1]),l=Math.min(+r[0],+r[1]),d.intrinsicTracks.push(t),o="minmax")):isNaN(+r)?r.indexOf("fr")>0?(l=0,c=1/0,d.frTracks.push(t),o="flex",i=s(r)):(l=0,c=1/0,o="intrinsic",d.intrinsicTracks.push(t)):(l=c=+r,o="fixed"),h.push(a(a({},u[t]),{},{type:o,multiplier:i,baseSize:l,growthLimit:c}));return d.sanitizedTracks=h},t._initItems=function(e){var t,n,r,o,i=e||this.props.items||[],s=this._config,l=[],c=0;for(r=0,o=i.length;r1){t=r;break}return this._config.nonSpanningItemStartIndex=t,this._config.sanitizedItems=l},t._getParentSize=function(e){var t=this._config.sanitizedTracks,n=0;return t.filter(function(t){return t.start>=e.start&&t.end<=e.end}).forEach(function(e){return n+=e.baseSize}),n||0},t.resolveTracks=function(){return this._placeNonSpanningItems()._placeSpanningItems()._distributeFreeSpace(),this._config.sanitizedTracks},t._placeNonSpanningItems=function(){var e,t,n=this._config,r=n.sanitizedItems,o=n.sanitizedTracks,i=n.nonSpanningItemStartIndex;return r.slice(0,i).forEach(function(n){t=n.start,"fixed"!==(e=o[t]).type&&(e.baseSize=Math.max(e.baseSize,n.size),e.growthLimit=Math.max(e.growthLimit,e.baseSize))}),this},t._placeSpanningItems=function(){var e,t,n,r,o,i,a,s=this._config,l=s.sanitizedItems,c=s.sanitizedTracks,u=s.nonSpanningItemStartIndex,d=s.frTracks,h=l.slice(u),p=[0];if(!h.length)return this;for(i=1,a=c.length;i=0&&(o=!0),"fixed"!==c[i].type&&r++;if(r&&!o)for(n=t/r,i=a.start;ie.multiplier*o}).forEach(function(e){return n+=e.baseSize}),e(i,n,r);i.forEach(function(e){return e.baseSize=e.multiplier*o})}}(t,i,o)):n.length&&(n.forEach(function(e,t){n[t]=r[e]}),function(e,t,n){var r,o,i,a,s,l,c,u=0;if(e.length){for(r=n-t,(s=e.filter(function(e){return"minmax"===e.type&&e.growthLimit!==1/0})).sort(function(e,t){return e.growthLimit-e.baseSize-(t.growthLimit-t.baseSize)}),a=s.length;uh);r++)s+=d,l+=d+" ";for(i=r,n=Math.ceil(o/i);n--;)c+=u+" ";return{gridTemplateColumns:l.trim(),gridTemplateRows:c.trim()}}},569:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t.drawLabel=void 0;var o=r(n(232)),i=r(n(528)),a=n(218),s=n(226),l=r(n(570)),c=a.preDefStr.visibleStr,u=a.preDefStr.hiddenStr,d=a.preDefStr.POSITION_MIDDLE,h=a.preDefStr.POSITION_START,p=a.preDefStr.POSITION_END,f=Math,g=f.min,m=f.max,v=function(e,t){var n,r,o,i,s,l,f,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L=this.getFromEnv("chart"),R=this.getFromEnv("toolTipController"),F=L.config,I=this.config,z=I.JSONData,B=this.getFromEnv("animationManager"),j=L.getChildren("canvas")[0].config,V=L.config.dataLabelStyle,W=z.data,H=L.config.categories,G=L.config.is3D,U=L.config.isstacked,q=H&&H.length,Y=W&&W.length,X=this.getData(),K=L.getFromEnv("smartLabel"),$=j.yDepth,Z=j.xDepth,J=L.getFromEnv("number-formatter"),Q=a.BLANKSTRING,ee=F.placevaluesinside,te=F.canvasWidth,ne=F.canvasLeft,re=this.getContainer("labelGroup"),oe=this.getSkippingInfo&&this.getSkippingInfo(),ie=oe&&oe.skippingApplied,ae=oe&&oe.labelDraw||[],se=ae.length,le=(0,a.pluckNumber)(e,0),ce=(0,a.pluckNumber)(t,ie?se:q=A?(C+=x?T:-T,G&&(b+=$,C-=Z)):A=A?(C+=x?-T:T,G&&x&&(C-=Z,b+=Z)):(C+=x?T+A:-(T+A),G&&(C-=Z,b+=$)),(C>ne+te||C0&&this.removeData(l,c,!1),t=0,n=(r=this.components.removeDataArr||[]).length;t100&&(t=100),t<0&&(t=0),d.showLegend=(0,u.pluckNumber)(p.showlegend,0),d.reverselegend=!(0,u.pluckNumber)(p.reverselegend,0),s.config.is3D=f,d.pieYScale=(0,u.pluckNumber)(p.pieyscale,40),d.pieYScale<1&&(d.pieYScale=1),d.pieYScale>=100&&(d.pieYScale=80),d.pieYScale/=100,d.pieSliceDepth=(0,u.pluckNumber)(p.pieslicedepth,15),d.pieSliceDepth<1&&(d.pieSliceDepth=1),d.managedPieSliceDepth=d.pieSliceDepth,d.enableMultiSlicing=!!i,d.startAngle=(0,u.pluckNumber)(p.startingangle,0)%360*(-N/180),d.usePerPointLabelColor=p.colorlabelsfromplot===u.ONESTRING,d.reversePlotOrder=(0,u.pluckNumber)(p.reverseplotorder,0),d.animateClockWise=(0,u.pluckNumber)(p.animateclockwise,d.reversePlotOrder),d.showShadow=(0,u.pluckNumber)(p.showshadow,1),d.innerLabelRadiusPercent=(0,u.pluckNumber)(p.innerlabelradiuspercent,67)/100,d.minAngleForValue=(0,u.pluckNumber)(p.minangleforvalue,0)*(N/180),d.minAngleForLabel=(0,u.pluckNumber)(p.minangleforlabel,0)*(N/180),d.singletonCase=1===h.data.length,d.labelPosition=(0,u.pluck)(p.labelposition,d.singletonCase&&g?"inside":"outside").toLowerCase(),d.valuePosition=(0,u.pluck)(p.valueposition,d.singletonCase&&g?"inside":"outside").toLowerCase(),d.valueTotal=0,this._setConfigure(),l.showLegend&&this._addLegend()},n.trimData=function(e){K.call(this,e)},n._parseDisplayProperties=function(e,t){var n,r,i,a,s,l,c,d,h,p,f,g,m=u.BLANKSTRING,v=this.getFromEnv("chart"),y=this.getFromEnv("number-formatter"),b=v.getFromEnv("chart-attrib"),C=this.config,w=(0,u.pluckNumber)(t.y,y.getCleanValue(e.value,!0)),x=C.valueTotal,_=C.showLabels,S=(0,u.parseUnsafeString)((0,u.pluck)(t.seriesName,e.label,e.name,u.BLANKSTRING)),M=C.showPercentValues,E=C.showPercentInToolTip,O=C.labelSepChar,A=C.toolTipSepChar,T=C.showTooltip;n=(0,u.getValidValue)((0,u.parseUnsafeString)((0,u.pluck)(e.tooltext,C.toolText),!1)),r=t.pValue=y.percentValue(w/x*100),a=t.value=y.dataLabels(w)||u.BLANKSTRING,h=t.showLabel=(0,u.pluckNumber)(e.showlabel,_),p=t.showValue=(0,u.pluckNumber)(e.showvalue,C.showValues),t.labelFontColor=(0,u.pluck)(e.labelfontcolor,C.labelFontColor),t.labelFont=(0,u.pluck)(e.labelfont,C.labelFont),s=t.labelText=1===h?S:u.BLANKSTRING,l=t.valueText=1===p?1===M?r:a:u.BLANKSTRING,i=E?r:a,c=(0,u.getValidValue)((0,u.parseUnsafeString)(e.displayvalue)),t.labelPosition=(0,u.pluck)(e.labelposition,C.labelPosition).toLowerCase(),t.valuePosition=(0,u.pluck)(e.valueposition,C.valuePosition).toLowerCase(),f=(0,u.pluckNumber)(e.minangleforlabel),isNaN(f)?t.minAngleForLabel=C.minAngleForLabel:t.minAngleForLabel=f%360*(N/180),g=(0,u.pluckNumber)(e.minangleforvalue),isNaN(g)?t.minAngleForValue=C.minAngleForValue:t.minAngleForValue=g%360*(N/180),t.innerLabelRadiusPercent=(0,u.pluckNumber)(e.innerlabelradiuspercent,C.innerLabelRadiusPercent),d=(0,u.pluck)(c,S+O+(M?r:a),u.BLANKSTRING),c!==o&&p?(l=t.labelText=c,t.valueText=u.BLANKSTRING):l=l!==u.BLANKSTRING&&s!==u.BLANKSTRING?s+O+l:(0,u.pluck)(s,l),T&&(m=n!==o?(0,u.parseTooltext)(n,[1,2,3,5,6,7,14,24,25],{formattedValue:a,label:S,yaxisName:(0,u.parseUnsafeString)(b.yaxisname),xaxisName:(0,u.parseUnsafeString)(b.xaxisname),percentValue:r,sum:y.dataLabels(x),unformattedSum:x},e,b):(m=S)!==u.BLANKSTRING?m+A+i:i),t.displayValue=l,t.displayValueArgs=d,t.toolText=m,t.seriesName=S,t.categoryLabel=S,t.id=e.id?e.id:S},n._isStyled=function(e){if(this.getFromEnv("chart").config.usedataplotcolorforlabels||e.labelbordercolor||e.labelbgcolor||e.labelborderthickness||e.labelborderalpha||e.labelalpha||e.labelfont||e.labelfontsize||e.labelfontcolor||e.labelfontalpha||e.labelalpha||e.labelfontbold||e.labelfontitalic||e.labelborderpadding||e.labelborderradius||e.labelbgalpha||e.labelborderdashed||e.labelborderdashlen||e.labelborderdashgap)return!0},n._setConfigure=function(e,t){var n,r,i,a,s,l,d,h,p,f,m,v,y,b,C,w,x,_,S,M=this.components,E=M.removeDataArr=M.removeDataArr||[],O=this.getFromEnv("chart"),A=O.getFromEnv("dataSource").chart,k=O.config,D=this.config,P=this.config.JSONData,N=(e||P).data,L=N&&N.length,R=D.showZeroPies,F=D.valueTotal||0,I=[],z=(0,u.pluckNumber)(A.plotborderdashed,0),B=this.components.data||(this.components.data=[]),j=this.getFromEnv("number-formatter"),V=this.getFromEnv("color-manager"),W=D.labelInLeg,H=D.valInLeg,G=D.pieBorderThickness,U=D.reversePlotOrder,q=D.radius3D,Y=D.enableMultiSlicing,X=D.lastSlicedid||0,K=(0,u.pluckNumber)(A.plotBorderDashed,5),$=(0,u.pluckNumber)(A.plotborderdashgap,4),Z=(0,u.pluckNumber)(A.valuebeforelabelinlegend,0),J=(0,u.pluckNumber)(A.showvalueaspercentinlegend,1),Q=0,ee=[],te=(0,u.pluck)(A.legendsepchar,", ");for(k.dataLabelStyle=u.parsexAxisStyles.apply(this,[{},{},A,k.dataLabelStyle,i]),n=0;nL-Q)for(n=B.length-1;Q>0;n-=1,Q-=1)B[n]&&(_=(b=B[n]).config,E.push(b),_.y=null);for(0===F&&(I=[]),D.valueTotal=F,D.dataLabelCounter=0,k.allPlotSliceEnabled=k.enableslicing,n=(L=I.length)-1;n>=0;n-=1)C=n,e?(S=I[n],b=t!==o?B[C=t+n]:B[C=B.length-L+n]):(b=B[n]||(B[n]={graphics:{},config:{}}),S=I[n]),(w=b&&b.config)||(w=B[C].config={}),b.graphics||(B[C].graphics={}),w.y=x=j.getCleanValue(S.value,!0),w.seriesName=r=(0,u.parseUnsafeString)((0,u.pluck)(S.label,S.name,u.BLANKSTRING)),w.labellink=(0,u.pluck)(S.labellink,A.labellink),i=(0,u.pluck)(S.color,V.getPlotColor(ee[n])),i=(0,u.hashify)(i),a=(0,u.pluck)(S.alpha,A.plotfillalpha,u.HUNDREDSTRING),l=(s=w.borderConfig=this._parseBorderConfig(i,a,S)).setPlotBorderColor,d=s.setPlotBorderAlpha,h={opacity:T(a,d)/100},(m=Boolean((0,u.pluckNumber)(S.issliced,A.issliced,0)))&&(Y||(-1!==X&&(B[B.length-X-1].sliced=!1),D.lastSlicedid=n),D.preSliced=m),w.patternType=c.PATTERN_TYPES.includes(S.patterntype)?S.patterntype:D.patternType,w.patternAngle=(0,u.pluckNumber)(S.patternangle,A.patternangle,w.patternType===c.PATTERN_TYPES[0]?40:0),w.patternDensity=(0,u.pluckNumber)(S.patterndensity,D.patternDensity),w.patternSize=(0,u.pluckNumber)(S.patternsize,w.patternType===c.PATTERN_TYPES[0]?2:4),w.patternAlpha=(0,u.pluckNumber)(S.patternalpha,D.patternAlpha),w.patternBgColor=(0,u.pluck)(S.patternbgcolor,D.patternBgColor),y=(v=(0,u.pluckNumber)(S.dashed,z))?(0,u.getDashStyle)((0,u.pluck)(S.dashlen,K),(0,u.pluck)(S.dashgap,$),G):"none",this._parseDisplayProperties(S,w),p=W?r:u.BLANKSTRING,H&&(f=J?j.legendPercentValue(x/F*100):j.legendValue(x),p=Z?f+(p&&te+p):(p&&p+te)+f),D.dataLabelCounter+=1,this._isStyled(S)?w.style=u.parsexAxisStyles.apply(this,[S,{},A,k.dataLabelStyle,i]):w.style&&delete w.style,w.showInLegend=p!==u.BLANKSTRING,w.isVisible=!0,w.name=p,w.shadow=h,w.setColor=i,w.setAlpha=a,w.color=(0,g.default)(i,a,q,D.doughnutradius),w._3dAlpha=a,w.borderColor=(0,u.convertColor)(l,d),w.borderWidth=G,w.link=(0,u.getValidValue)(S.link),w.sliced=m,w.dashStyle=y,w.setBorderDashed=v,(w.doNotSlice=(0,u.pluck)(S.enableslicing,k.enableslicing)!==u.ONESTRING)||k.allPlotSliceEnabled!==u.ZEROSTRING||(k.allPlotSliceEnabled=u.ONESTRING),this._parseHoverEffectOptions(n),w.centerLabelConfig=void 0,w.radius3D=q;U&&B&&B.reverse(),D.dataArr=I,D.enableRotation=B.length>1?(0,u.pluckNumber)(A.enablerotation,1):0},n._parseHoverEffectOptions=function(e){var t,n,r,i,a,s,l,c,d,h,p=this.getFromEnv("chart").getFromEnv("dataSource").chart,f=this.config,g=this.components.data[e].config,m=this.config.JSONData,v=m.data[e],y=g.setColor,b=g._3dAlpha,C=f.radius3D,w=g.borderConfig,x=w.setPlotBorderAlpha,_=w.setPlotBorderColor,S=f.setBorderWidth,M=f.usePattern?0:(0,u.pluckNumber)(g.hovereffect,f.showHoverEffect),E=g.hoverEffects={enabled:M};if(M!==o||f.usePattern||(M=E.enabled=(0,u.pluck)(v.hovercolor,m.hovercolor,p.plotfillhovercolor,v.hoveralpha,m.hoveralpha,p.plotfillhoveralpha,v.borderhovercolor,m.borderhovercolor,p.plotborderhovercolor,v.borderhoveralpha,m.borderhoveralpha,p.plotborderhoveralpha,p.plotfillhoveralpha,v.borderhoverthickness,m.borderhoverthickness,p.plotborderhoverthickness,o)!==o),M){if(t=(0,u.pluckNumber)(v.highlightonhover,m.highlight,p.highlight,1),(n=(0,u.pluck)(v.hovercolor,m.hovercolor,p.plotfillhovercolor))&&t&&(t=0),n=(0,u.pluck)(n,y),r=(0,u.pluck)(v.hoveralpha,m.hoveralpha,p.plotfillhoveralpha,b),i=(0,u.pluck)(v.borderhovercolor,m.borderhovercolor,p.plotborderhovercolor,_),g.hoverBorderColor=i,a=(0,u.pluck)(v.borderhoveralpha,m.borderhoveralpha,p.plotborderhoveralpha,p.plotfillhoveralpha,x),s=(0,u.pluckNumber)(v.borderhoverthickness,m.borderhoverthickness,p.plotborderhoverthickness,S),n.replace(/,+?$/,""),1===t){for(d=(c=(l="string"==typeof n)?n.split(/\s{0,},\s{0,}/):n.color.split(/\s{0,},\s{0,}/)).length,h=0;h0)for(s[n].sort(H),r=0,o=(t=s[n].splice(0,t)).length;r_?s=_:s=0;n--)C=oe[r][n],(s=D(t*O(C.angle)))_&&(s=_),x=s+q,_+=q,me.push(s);for(n=0;n=d&&h=c?p.text=i.labelText:h=d?i.valueText:u.BLANKSTRING:p.text=h>=c?i.labelText:u.BLANKSTRING,p.text?(l=v.pieMinRadius*i.innerLabelRadiusPercent,s=(0,m.getCleanAngle)(i.angle),p.x=e=_+(E>1?l*A(s):0),p.y=t=S+(E>1?l*O(s):0),i.sliced&&(p.y+=i.transY,p.x+=i.transX),p["text-anchor"]="middle",g=a.innerLabel,a.innerLabel=f=x.setAnimation({el:g||"text",attr:p,css:i.props.label.css,component:this,container:this.getContainer("label-group"),label:"label"}),f.outlineText(v.showTextOutline,p.fill),y.showtooltip&&f.abbrArr&&f.abbrArr.length&&b.enableToolTip(f,o),g||f.on("fc-dragstart",k).on("fc-dragmove",N).on("fc-dragend",P).on("fc-click",U.bind(f,this.getFromEnv("chart"),i.labellink)).on("fc-click",j(this,f)).on("fc-mouseover",L).on("fc-mouseout",R),f.x=e,f.y=t,f&&f.data("textPos",{x:p.x,y:p.y}).data("plotItem",i.plotItem).data("eventArgs",i.eventArgs)):this.disposeLabelAndConnector(a,[{el:"innerLabel",animLabel:"label"}])},n.disposeLabelAndConnector=function(e,t){void 0===t&&(t=[]);var n,r,o,i=this.getFromEnv("animationManager"),a=t.length;for(n=0;n0&&(a=y[t-1].config.startAngle,s=y[t-1].config.endAngle),c=(l=e.config).y,d=l.displayValue,h=l.sliced,n=l.toolText,r=!!l.link,null!==c&&c!==o&&!1!==l.isVisible&&((p=l.color).r=L,p.cx=T,p.cy=k,s=a,f=.5*((a-=w.singletonCase?R:c*m)+s),g=w.previousData={cx:T,cy:k,r:L,r2:F},i=this.config.drawn?[g.cx,g.cy,g.r,g.r2,a,s]:[T,k,L,F,a,s],h&&(l.slicedTranslation="t"+A(f)*N+","+O(f)*N),v={"stroke-width":l.borderWidth,stroke:l.borderColor,fill:x?z(l.color,w.doughnutradius):(0,u.toRaphaelColor)(l.color),transform:h?l.slicedTranslation:"","stroke-dasharray":l.dashStyle,redrawDataLabels:I,ringpath:i,cursor:r?"pointer":""},l.props={element:{attr:v}},l.props.element.patternAttr={patternType:l.patternType,patternAngle:l.patternAngle,patternDensity:l.patternDensity,patternSize:l.patternSize,color:l.setColor,patternAlpha:l.patternAlpha,patternBgColor:l.patternBgColor,alpha:l.setAlpha,x:i[0],y:i[1]},l.eventArgs={index:w.reversePlotOrder?S-1-_:_,link:l.link,value:l.y,displayValue:l.displayValueArgs,categoryLabel:l.categoryLabel,isSliced:h,toolText:n,pValue:l.pValue,color:l.setColor,alpha:l.setAlpha,borderColor:l.borderConfig.setPlotBorderColor,borderAlpha:l.borderConfig.setPlotBorderAlpha,dashed:l.setBorderDashed,showLabel:l.showLabel,showValue:l.showValue,labelPosition:l.labelPosition,valuePosition:l.valuePosition,labelFont:l.labelFont,labelFontColor:l.labelFontColor||"#555555",labelLink:l.labellink,hoverColor:l.hoverEffects.hoverColor,hoverAlpha:l.hoverEffects.alpha,borderHoverColor:l.hoverBorderColor,borderHoverAlpha:l.hoverEffects.borderAlpha,id:l.id},w.usePattern&&(l.eventArgs.pattern={patternType:l.patternType,patternColor:l.setColor,patternBgColor:l.patternBgColor===u.TRACKER_FILL?o:l.patternBgColor},delete l.eventArgs.color),l.plotItem={chart:b,index:_,seriesData:w,value:c,pValue:l.pValue,displayValue:l.displayValue||"",angle:l.angle=f,angle1:l.startAngle=a,angle2:l.endAngle=s,slicedX:A(f)*N,slicedY:O(f)*N,sliced:h,labelText:d,toolText:n,name:l.name,link:l.link,percentage:D?c*D/100:0,originalIndex:S-_-1,style:l.style,color:(0,u.toRaphaelColor)(l.color),borderColor:l.borderColor,borderWidth:l.borderWidth,rolloverProperties:l.hoverEffects,radius:L,center:[T,k],innerDiameter:2*F,centerLabelConfig:l.centerLabelConfig,isVisible:l.isVisible,label:l.seriesName,connector:void 0,transX:l.transX=A(f)*N,transY:l.transY=O(f)*N,slicedTranslation:l.slicedTranslation="t"+A(f)*N+","+O(f)*N})},n.parseLabelAttributes=function(e){var t,n,r,i,a,s=this.getFromEnv("chart").config,l=s.dataLabelStyle,c=this.config,d=s.style,h=s.textDirection,p=c.dataLabelOptions;(i=(t=e.config)._textAttrs)||(i=t._textAttrs={}),n=t.y,r=t.displayValue,d=t.style,null!==n&&n!==o&&!1!==t.isVisible&&(r!==o?(d&&((a=t._textCss)||(a=t._textCss={}),d.fontSize=this.computeFontSize(d.fontSizeWithUnit),d.lineHeight=(0,u.setLineHeight)(d),a.fontFamily=d.fontFamily,a.fontSize=d.fontSize,a.lineHeight=d.lineHeight,a.fontWeight=d.fontWeight,a.fontStyle=d.fontStyle),t.plotItem.style=t.style=d||(d=l),i.text=r,i.fill=d.color||"#000000",i.cursor=e.config.link?"pointer":"",i["text-bound"]=[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash],i.direction=h,i["line-height"]=d.lineHeight):i.text=u.BLANKSTRING,t.props.label={attr:i,css:a},t.props.connector={attr:{"stroke-width":p.connectorWidth,stroke:p.connectorColor||"#606060"}})},n.draw=function(){var e,t,n,r,i,a,s,l,c,d,h,p,f,g,m,v,y,b=this.getFromEnv("animationManager"),C=this.getFromEnv("chart").config,w=C.dataLabelStyle,x=this.config,_=x.showShadow,S=this.components,M=S.removeDataArr=S.removeDataArr||[],E=this.getState("visible"),O=S.data||[],A=O.length,T=C.canvasWidth,k=C.canvasHeight,P=C.canvasLeft+.5*T,N=C.canvasTop+.5*k,L=x.handlersAPI.plotDragStart,R=x.handlersAPI.plotDragEnd,F=x.handlersAPI.plotDragMove,I=x.handlersAPI.plotRollOver,z=x.handlersAPI.plotRollOut,B=function(){var e=x.pieCenter||[],t=x.piePlotOptions||[],n={cx:e[0],cy:e[1],r:t.size,r2:.5*(x.innerSize||0)};return function(e){var t,r=!1;for(t in e)if(D(e[t]-n[t])>5){r=!0;break}return r}}(),V=(x.piePlotOptions=this._parsePiePlotOptions()).size,W=.5*(x.innerSize||0),H=this.getFromEnv("toolTipController");for(this.getContainer("pie-groups")||this._createContainer(),l=this.getContainer("plot-group"),c=this.getContainer("plot-shadow-group"),d=this.getContainer("label-group"),h=this.getContainer("connector-shadow-group"),p=this.getContainer("anchor-shadow-group"),this.config.drawn&&(e=B({cx:P,cy:N,r:V,r2:W})&&!1),d.css(w),y=x.valueTotal,E&&y?(l.show(),c.show(),d.show(),h.show(),p.show()):(l.hide(),c.hide(),d.hide(),h.hide(),p.hide()),M.length&&this.removeElement(),t=0;t=0&&to[r]?-1:o[n]ee&&this.flushOnScroll(ee,O>te?te:O),A2?"round":"miter","stroke-dasharray":z},this.getState("visible")||(M=a.UNDEF),(m=Q.setAnimation({el:W||"path",attr:M,container:j.commonElemsGroup,component:this,label:"line"})).addPattern({patternType:T.patternType,patternAngle:T.patternAngle,patternDensity:T.patternDensity,patternSize:T.patternSize,color:T.plotfillcolor,patternAlpha:T.patternAlpha,patternBgColor:T.patternBgColor,alpha:T.plotfillalpha,x:0,y:0},T.usePattern),!m&&W&&this.removeGraphicalElement(W),W||this.addGraphicalElement("splineElement",m),""!==V&&this.getState("visible")?m.show().shadow(Y,q):m&&m.hide(),$?(E={path:s.openPath.join(),stroke:(0,a.toRaphaelColor)(Z),"stroke-width":B,"stroke-linecap":"round","stroke-linejoin":B>2?"round":"miter","stroke-dasharray":z,name:"connector"},_=Q.setAnimation({el:J||"path",attr:E,container:j.commonElemsGroup,state:J?this.getState("visible")?"updating":"disappearing":"appearing",component:this,label:"connectorLine"}),J||this.addGraphicalElement("connector",_)):_&&this.removeGraphicalElement(_),t=0;td&&(d=m);r.max=d,r.min=h};t.default=function(){var e,t=this.config,n=this.getFromEnv("chart"),i=this.getFromEnv("chartConfig"),a=n.config.origRenderWidth,s=i.connectnulldata,l=i.minimizetendency,c=this.components.data,u=Number.MIN_VALUE,d=Number.MAX_VALUE;0===l&&(e=function e(t,n,r,i,a){var s=[],l=!1,c=i||0,u=a;for(u=u||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};c2&&o(s,n,u),cf&&Af)&&(O=d(A=f,T,y,g)),P.push(O,A,M,(f+g)/2,v,f),j.push(P),V.push(P),a&&p(j,!0,N,t),a&&p(V,!1)):(T=B[F-D-1],g>f&&m>=f||gf&&Af)&&(O=d(A=f,T,y,g)),P.push(O,A,M,E,v,f)):P.push((v+y)/2,(f+g)/2,M,E,v,f)):g===f?(_=0,P.push(y,g,v,f,v,f)):(g>f&&f>m||gf&&E>g||gf&&Af)&&(O=d(A=f,T,y,g)),P.push(O,A,M,E,v,f)):P.push((v+y)/2,(f+g)/2,M,E,v,f)),B.push(_))):null===C&&0!==F?(l||(l=[]),l[0]===i&&(j.push(P),V.push(P),a&&p(j,!0,N,t),a&&p(V,!1)),j.push([r,v,f]),V.push([r,v,f]),N=v,P=[i],D=F,B=[null]):(j.push([r,v,f]),V.push([r,v,f]),N=v,P=[i],D=F):null!==C?k>=2?(j[k-1][0]===r&&j.push([o]),V[x-1][0]===r&&V.push([o]),k=j.length,x=V.length,(l=j[k-1]).length,j[k-1].push(v),j[k-1].push(f),V[x-1].push(v),V[x-1].push(f),F===s-1&&l[0]===o&&(p(j,!0,N,t),p(V,!1))):(j.push([r,w,C]),j.push([o,v,f]),V.push([r,w,C]),V.push([o,v,f]),N=w):null===C&&k>=2&&((l=j[k-1])[0]===o&&(p(j,!0,N,t),p(V,!1)),j.push([r,v,f]),V.push([r,v,f]),N=v);return l=j[j.length-1],a&&l&&("Z"===l[l.length-1]||l[0]!==o&&l[0]!==i||(p(j,!0,N,t),p(V,!1))),a||(j=z?j:V).length>=2&&p(j,!1),{closedPath:j,openPath:V}};var r="M",o="R",i="C",a=Math,s=a.sqrt,l=a.abs,c=function(e,t,n,r){return(r-t)/(n-e)},u=function(e,t,n,r){return(e-n)*t+r},d=function(e,t,n,r){return(e-r)/t+n},h=function(e,t,n,r){var o=(r-t)/s((n-e)*(n-e)+(r-t)*(r-t)),i=l(.5*o);return e*i+n*(1-i)},p=function(e,t,n,r){var a=e.length,s=e[a-1],l=s.length,c=s[0],u=s[l-2];l<3||(c!==o&&c!==i||3!==l||(e[a-1][0]="L"),t&&e.push(["L",u,r,n,r,"Z"]))}},615:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218);function o(e){var t,n,o,i=e.length,a=[],s=!1,l=!0;for(o=0;o=i.canvasWidth/2&&(e=b-y/2),r=l((t=0===S?e:e/S)-1,S>1?x||void 0!==C?C>0?t*C/100:0:4:0),this.addToEnv("plotWidth",t-r),n=-(S/2*t-t/2),this._mapChildren(function(e){!e.getState("removed")&&e.getState("visible")&&(e.addToEnv("shift",n+_*t+r/2),_++)}),v-(o=e/2)-(m-o+e)<4&&(w=!1),0===f&&(w=!0),this.addToEnv("isCrisp",w)},n.childChanged=function(e){void 0===e&&(e={});var t,n,r=this.config,o=this.getLinkedParent(),i=0,a=this.getState("visible"),s={};this._mapChildren(function(e){e.getState("visible")&&i++}),this.setState("visible",!!i),a!==!!i&&(n=!0),!1!==e.dataLimitChanged&&((t=this.getDataLimits()).min===r.range.min&&t.max===r.range.max||(r.range.min=t.min,r.range.max=t.max,s.dataLimitChanged=!0,n=!0)),n?o.childChanged&&o.childChanged(s):this.asyncDraw()},n.getAxisValuePadding=function(){var e={},t=-1/0,n=-1/0;return this._mapChildren(function(r){r.getState("removed")||(e=r.getAxisValuePadding&&r.getAxisValuePadding()||{},t=Math.max(t,e.left||-1/0),n=Math.max(n,e.right||-1/0))}),t===-1/0&&(t=0),n===-1/0&&(n=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n),{left:t,right:n}},n.getDataLimits=function(e){var t,n=1/0,r=-1/0,o=0,i=function(e){r=Math.max(r,e.max),n=Math.min(n,e.min)};return this._mapChildren(function(n){n.getState("removed")||(!1!==n.getState("visible")?(o++,t=n.getDataLimits(e),i(t)):e&&(t=n.getDataLimits(e),i(t)))}),o?this.setState("visible",!0):this.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:r,min:n}},n.isVisible=function(){return!this.isNotVisible},t}(i.ComponentInterface);t.default=d},619:function(e,t,n){"use strict";t.__esModule=!0,t.scrollTo=function(e){var t=this.apiInstance;t.addJob("scrollToAPoint",function(){if(e>=0&&e<=1){var n=t.getChildren&&t.getChildren(),r=n.xAxis[0],o=n.scrollBar&&n.scrollBar[0],i=o&&o.getChildren("scrollAnchor")[0],a=r.getLimit&&r.getLimit(),s=r.getVisibleConfig&&r.getVisibleConfig(),l=s.maxValue-s.minValue,c=a.max-a.min,u=e*(c-l)+a.min,d=u+l,h=(s.minValue-a.min)/(c-l);i.config.scrollPosition=e,t.fireChartInstanceEvent("scrollStart",{scrollPosition:h}),r.setVisibleConfig(u,d),t.fireChartInstanceEvent("scrollEnd",{previousScrollPosition:h,scrollPosition:e})}},r.priorityList.postRender)},t.setAxisScale=function(e){void 0===e&&(e="column");var t,n,r,a,s,l=this.config,c=this.getChildren("xAxis")[0],u=c.getTicksLen(),d="bar2d"===e,h=d?"bar2D":e,p=this.getFromEnv("dataSource").chart,f=d?l.height:l.width,g=0,m=l.scrollToEnd,v=(0,o.pluckNumber)(p.numvisibleplot,i(f/l.avgScrollPointWidth));l.isstacked?this.iterateComponents(function(e){"cartesianStackGroup"===e.getName()&&!e.getState("removed")&&g++}):this.iterateComponents(function(e){e.getType&&"dataset"===e.getType()&&e.getName&&e.getName().toLowerCase()===h&&!e.getState("removed")&&g++}),r=u*(g=g||1);var y=c.getVisibleConfig();n=y.maxValue,t=y.minValue,v>=2&&v=0?(v=g+(b=i[l].positive),i[l].positive=v):g<0&&(v=g+(b=i[l].negative),i[l].negative=v),null!==g&&(i[l].isNotNull=!0),s[l]=e,n=h(v,n),t=d(v,t),a.config._y=v,a.config._b=b)}}),this.config.setLink=s,this.config.stackValues=i,this.config.dataMin=t,this.config.dataMax=n,o?this.setState("visible",!0):this.setState("visible",!1),this.addToEnv("stackValues",i),this.addToEnv("numOfColumns",o),this.addToEnv("numColDiff",(0,a.pluckNumber)(r-o,0))},n.allocatePosition=function(){this._setStackPosition()},n._getXpos=function(e){var t=this.getFromEnv("shift")||0;return this.getFromEnv("xAxis").getPixel(e)+t},n.drawSumValue=function(e,t){void 0===e&&(e=0);var n,r,o,i,s,l,u,d,h,p,f,g,m,v,y,b,C=this.config,w=this.getFromEnv("yAxis"),x=this.getFromEnv("paper"),_=this.getFromEnv("animationManager"),S=this.getFromEnv("chart"),M=S.isBar,E=this.getFromEnv("smartLabel"),O=S.config,A=O.canvasRight,T=(0,a.pluckNumber)(O.stack100percent),k=O.rotatevalues?270:0,D=C.stackValues,P=C.setLink,N=t||D&&D.length,L=O.dataLabelStyle,R=this.getContainer("sumLabelsLayer"),F=this.getGraphicalElement("sumLabels");if(this.config.showSum){if(R.css(L),E.setStyle(L),(v=F&&F.length)>(y=D.length))for(;v>=y;)b=F[v],v--,b&&(b.hide(),this.removeGraphicalElement(b));for(n=e;nA?r+l.width-A:0):(r=this._getXpos(n),o=w.getPixel(T?100:f)),(d=this.getSumValuePosition(l,{stack100percent:T,rotateValues:k,xPos:r,yPos:o,offsetY:f,index:n})).text=g,d.cursor=P[n]&&1===this.config.sumInside?a.POINTER:"",d.fill=L.color,d["text-bound"]=[i,s,L.borderThickness,L.borderPadding,L.borderRadius,L.borderDash],d["line-height"]=L.lineHeight,d.visibility=c,d.transform=x.getSuggestiveRotation(k,d.x,d.y),d["text-anchor"]&&delete d["text-bound"],R&&R.show(),(u=_.setAnimation({el:u||"text",attr:d,label:"text",container:R,component:this})).show(),u.outlineText(C.showTextOutline,d.fill),Array.isArray(F)&&F[n]||this.addGraphicalElement("sumLabels",u,!0))):u&&u.hide()}else R.hide()},n.getSumValuePosition=function(e,t){var n,r,o,i,a,s,l,c=this.getFromEnv("chart"),u=c.config,d=this.getFromEnv("xAxis"),h=c.getChildren("scrollBar")&&c.getChildren("scrollBar")[0],p=u.canvasBottom,f=u.canvasTop,g=c.config.is3D,m=c.isBar,v=t.stack100percent,y=u.yDepth,b=u.xDepth,C=t.yPos,w=t.xPos,x=this.getFromEnv("canvasConfig").canvasBorderWidth,_=t.offsetY;if(t.rotateValues?(s=e.width,l=e.height):(s=e.height,l=e.width),i=(i=n=s)/2+2,a=(a=r=l)/2+2,v)if(f<=n)C=i;else{var S=d.getAxisConfig("isOpposit"),M=g?0:S?d.getAxisConfig("axisLineThickness"):0,E=h&&h.config.isOpposite,O=c.isScrollEnabled()&&E?c.config.shift:0;C=m?t.yPos:f-i-x-O-M,w+=m?x+M+O:0}else _>=0&&(m?((o=u.canvasLeft+u.canvasWidth-w)p&&(C=p-i)),g&&(w-=b,C+=y));return{x:w,y:C}},n.childChanged=function(e){void 0===e&&(e={});var t,n,r=this.config,o=this.getLinkedParent(),i=this.getState("visible"),a=0,s={};this._mapChildren(function(e){e.getState("visible")&&a++}),this.setState("visible",!!a),i!==!!a&&(n=!0),!1!==e.dataLimitChanged&&((t=this.getDataLimits()).min===r.range.min&&t.max===r.range.max||(r.range.min=t.min,r.range.max=t.max,s.dataLimitChanged=!0,n=!0)),n?o.childChanged&&o.childChanged(s):this.asyncDraw()},n.getAxisValuePadding=function(){var e={},t=-1/0,n=-1/0;return this._mapChildren(function(r){r.getState("removed")||(e=r.getAxisValuePadding&&r.getAxisValuePadding()||{},t=Math.max(t,e.left||-1/0),n=Math.max(n,e.right||-1/0))}),t===-1/0&&(t=0),n===-1/0&&(n=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n),{left:t,right:n}},n.getDataLimits=function(e){return this._setStackPosition(),this.config.range||(this.config.range||(this.config.range={}),this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),e?this._getStackLimit():{max:this.config.dataMax,min:this.config.dataMin}},n._getStackLimit=function(){var e=1/0,t=-1/0,n=[],r=this.getSkippingInfo&&this.getSkippingInfo()||{},o=r.draw||[],i=o.length,a=r.skippingApplied;return this._mapChildren(function(r){if(!r.getState("removed")){var s,l,c,u,p=r.getData(),f=0,g=p&&p.length;for(a&&(g=i),c=0;c0?(f=u+n[l].positive,n[l].positive=f):u<0&&(f=u+n[l].negative,n[l].negative=f),t=h(f,t),e=d(f,e))}}),{max:t,min:e}},n.isVisible=function(){return!this.isNotVisible},n.getMaxSumValueSpace=function(){var e,t,n,r,o,i=this.config.stackValues,a=this.getFromEnv("chart"),s={},l=i&&i.length,c=this.getFromEnv("number-formatter"),u=0,d=0,p=this.getFromEnv("smartLabel"),f=a.config.dataLabelStyle;for(p.useEllipsesOnOverflow(a.config.useEllipsesWhenOverflow),p.setStyle(f),e=0;e-1;t--)n[t].remove()}()):e.setChartMessage()};var o=r(n(632)),i=n(218)},648:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(624)),a=r(n(649)),s=r(n(651)),l=r(n(558)),c=n(218),u=function(e,t,n){var r,o,i,a,s,l,c,u,d,h,p=n&&n.length,f=e,g=t;if(p)for(r=p-1;r>=0;r--)if(c=(i=n[r]).x1,u=i.y1,d=i.x2,h=i.y2,i.isTrendZone){if(f>=c&&f<=d&&g>=u&&g<=h)return i}else if(u!==h&&c!==d?(a=o=(u-h)/(c-d),s=u-o*c,l=Math.abs(a*f+-1*g+s)/Math.sqrt(Math.pow(a,2)+Math.pow(-1,2))):c===d?l=Math.abs(c-f):u===h&&(l=Math.abs(u-g)),l<=i.tolerance)return i},d=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",s.default,["canvas"]),t.registerFactory("legend",l.default),t.registerFactory("quadrant",function(e){var t,n=e.getChildren("canvas")[0],r=e.getChildren(),o=function(){return t.asyncDraw()};(0,c.componentFactory)(n,a.default,"quadrant"),(t=n.getChildren("quadrant")[0]).addExtEventListener("visiblerangeset",o,r.xAxis[0]),t.addExtEventListener("visiblerangeset",o,r.yAxis[0]),t.configure()},["dataset"]),t}(0,o.default)(t,e),t.getName=function(){return"ScatterBase"};var n=t.prototype;return n.mouseoutHandler=function(e,t,n){var r=this.config.datasetOrder||this.getDatasets(),o=this.getChildren("mouseTracker")[0];r[t]&&r[t].components.data[n]?r[t]._firePlotEvent("fc-mouseout",n,e):this.getFromEnv("toolTipController").hideAll(),delete o._lastDatasetIndex,delete o._lastPointIndex},n.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},n.__setDefaultConfig=function(){var t=this.config;e.prototype.__setDefaultConfig&&e.prototype.__setDefaultConfig.call(this),t.valuefontbold=0,t.stickytracking=1,t.usemessagelog=0,t.animationeffect="linear",t.showshadow=1,t.showhovereffect=void 0,t.plothovereffect=void 0,t.anchorhovereffect=void 0,t.plotborderdashed=void 0,t.stack100percent=void 0,t.showpercentvalues=void 0,t.showpercentintooltip=void 0,t.plotbordercolor=void 0,t.showtooltip=1,t.seriesnameintooltip=1,t.rotatevalues=0,t.minimizetendency=0,t.plotfillangle=270,t.valuepadding=2,t.useplotgradientcolor=1,t.plotborderthickness=1,t.plotfillalpha="70",t.showvalues=1,t.valueposition="auto",t.tooltipsepchar=", ",t.usedataplotcolorforlabels=0,t.placevaluesinside=0,t.showplotborder=1,t.use3dlighting=1,t.useroundedges=0,t.plotspacepercent=20,t.plotpaddingpercent=void 0,t.plotfillratio=void 0,t.maxcolwidth=50,t.plotborderdashlen=5,t.plotborderdashgap=4,t.useScaleRecursively=!0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.setadaptivexmin=1},n._drawTrendTooltip=function(e,t){var n=this.getFromEnv("toolTipController"),r=this.config.currentTrendToolTip,o=e.tooltext,i=t.originalEvent;r?n.draw(i,o,r):r=this.config.currentTrendToolTip=n.draw(i,o)},n._mouseEvtHandler=function(e,t){var n,r,o,i,a,s,l,d,h,p,f=this,g=t.mouseTracker,m=f.getChildren("canvas")[0],v=f.getFromEnv("toolTipController"),y=e.originalEvent,b=f.config,C=b.canvasBaseDepth||0,w=b.canvasLeft-(b.toleranceLeft||0),x=b.canvasRight+(b.toleranceRight||0),_=b.canvasBottom+(b.toleranceBottom||0),S=b.canvasTop-(b.toleranceTop||0),M=b.datasetOrder||f.getDatasets(),E=!1,O=M.length,A=g._lastDatasetIndex,T=g._lastPointIndex;if(i=(o=(0,c.getMouseCoordinate)(f.getFromEnv("chart-container"),y,f)).chartX,a=o.chartY,i>w-C&&iS&&a<_+C){for(;O--&&!E;)(s=M[O])&&s.getState("visible")&&((l=s._getHoveredPlot&&s._getHoveredPlot(i,a))&&l.hovered||n)&&(E=!0,l.datasetIndex=O,p=g.getMouseEvents(e,l.datasetIndex,l.pointIndex));n=u(i,a,m.config.vtrendlines),r=u(i,a,m.config.trendlines)}if((!E||p&&p.fireOut)&&void 0!==A&&M[A]&&M[A]._firePlotEvent&&(p&&!p.events.length?g.mouseoutTimer=setTimeout(function(){f.mouseoutHandler(e,A,T)},20):(f.mouseoutHandler(e,A,T),clearTimeout(g.mouseoutTimer))),E)for(f.config.currentTrendToolTip&&v.hide(f.config.currentTrendToolTip),(h=p.events&&p.events.length)&&(g._lastDatasetIndex=l.datasetIndex,T=g._lastPointIndex=l.pointIndex),d=0;d0?t[0].setTickValues(o):"auto"!==n?(t[0].setTickValues(o),t[0].setAxisConfig({xAxisLabelMode:"mixed"})):(t[0].setTickValues(o),t[0].setAxisConfig({xAxisLabelMode:"auto"}))},n._allocateSpace=function(e){var t=this.getChildren("canvas"),n=t&&t[0].config,r=this.config,o=r.canvasHeight,i=r.canvasWidth,a=r.availableHeight,s=r.availableWidth;r.canvasLeft+=e.left||0,r.canvasTop+=e.top||0,i=r.canvasWidth=Math.max(i-((e.left||0)+(e.right||0)),0),o=r.canvasHeight=Math.max(o-((e.top||0)+(e.bottom||0)),0),r.availableHeight=Math.max(a-((e.top||0)+(e.bottom||0)),0),r.availableWidth=Math.max(s-((e.left||0)+(e.right||0)),0),r.canvasRight=r.canvasLeft+i,r.canvasBottom=r.canvasTop+o,n&&(n.canvasPaddingLeft=Math.max(n.canvasPaddingLeft,e.paddingLeft||0),n.canvasPaddingRight=Math.max(n.canvasPaddingRight,e.paddingRight||0),n.canvasPaddingTop=Math.max(n.canvasPaddingTop,e.paddingTop||0),n.canvasPaddingBottom=Math.max(n.canvasPaddingBottom,e.paddingBottom||0)),t[0].setDimension({top:r.canvasTop,left:r.canvasLeft,width:r.canvasWidth,height:r.canvasHeight})},n._postSpaceManagement=function(){var e,t=this.config,n=this.getChildren(),r=n.xAxis&&n.xAxis[0],o=n.legend&&n.legend[0],i=t.xDepth,a=this.getChildren("canvas");for(this.setAxisDimention(),r&&this._allocateXAxisLabelSpace(r),r&&r.shiftLabels(-i,0),o&&o.postSpaceManager(),e=0;e<(a&&a.length);e++)a[e].setCanvasPadding();this.setAxisDimention(),this.allocateDimensionOfChartMenuBar()},n._checkInvalidSpecificData=function(){if(!this.getFromEnv("dataSource").dataset)return!0},t}(i.default);t.default=d},649:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=n(218),l=n(226),c=r(n(650)),u=s.preDefStr.POSITION_START,d=s.preDefStr.POSITION_TOP,h=s.preDefStr.POSITION_BOTTOM,p=s.preDefStr.POSITION_END;(0,l.addDep)({name:"quadrantAnimation",type:"animationRule",extension:c.default});var f=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return n.pIndex=1,n.components={},n.conf={},n.graphics={},t}(0,i.default)(t,e);var n=t.prototype;return n.getType=function(){return"canvas"},n.getName=function(){return"quadrant"},n.configure=function(){var e,t,n,r,o,i,a,l,c,u,d,h,p,f,g,m,v,y,b,C,w,x,_,S,M=this.conf,E=this.getFromEnv("chart"),O=E.config,A=E.getFromEnv("dataSource").chart,T=E.getChildren("canvas")[0].config,k=O.dataLabelStyle,D=E.getFromEnv("smartLabel");(M.enabled=(0,s.pluckNumber)(A.drawquadrant,0))&&(v=(0,s.pluckNumber)(A.quadrantxval),y=(0,s.pluckNumber)(A.quadrantyval),b=(0,s.convertColor)((0,s.pluck)(A.quadrantlinecolor,T.canvasBorderColor),(0,s.pluck)(A.quadrantlinealpha,A.quadrantlinealpha,s.HUNDREDSTRING)),C=(0,s.pluckNumber)(A.quadrantlinethickness,T.canvasBorderThickness),x=(0,s.pluckNumber)(A.quadrantlinedashed,A.quadrantlineisdashed,0),w=(0,s.pluckNumber)(A.quadrantlinedashlen,4),_=(0,s.pluckNumber)(A.quadrantlinedashgap,2),S=x?(0,s.getDashStyle)(w,_):"none",M.xVal=v,M.yVal=y,M.quadrantLineColor=b,M.quadrantLineThickness=C,M.dashStyle=S,p=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabeltl,"")),f=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabeltr,"")),g=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabelbl,"")),m=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabelbr,"")),M.quadrantLabelPadding=(0,s.pluckNumber)(A.quadrantlabelpadding,3),D.useEllipsesOnOverflow(O.useEllipsesWhenOverflow),D.setStyle(k),""!==p?(i=(0,s.getFirstValue)(A.quadrantlabeltlbordercolor,A.quadrantlabelbordercolor,""),a=(0,s.pluck)(A.quadrantlabeltlbgcolor,A.quadrantlabelbgcolor),l=(0,s.pluckNumber)(A.quadrantlabeltlborderthickness,A.quadrantlabelborderthickness,1),i=i?(0,s.convertColor)(i,(0,s.pluckNumber)(A.quadrantlabeltlborderalpha,A.quadrantlabelborderalpha,A.quadrantlabeltlalpha,A.quadrantlabelalpha,100)):"",(c=M.tlConfig)||(c=M.tlConfig={enabled:!0,styleObj:{}}),c.label=p,c.styleObj.fontSize=(0,s.pluck)((0,s.pluckNumber)(A.quadrantlabeltlfontsize,A.quadrantlabelfontsize),parseInt(k.fontSize,10))+"px",c.styleObj.fontSizeWithUnit=(0,s.pluckFontSizeMaintainUnit)((0,s.pluckNumber)(A.quadrantlabeltlfontsize,A.quadrantlabelfontsize),k.fontSizeWithUnit),c.styleObj.lineHeight=k.lineHeight,c.styleObj.fontFamily=(0,s.pluck)(A.quadrantlabeltlfont,A.quadrantlabelfont,k.fontFamily),c.styleObj.color=(0,s.convertColor)((0,s.pluck)(A.quadrantlabeltlfontcolor,A.quadrantlabelfontcolor,k.color),(0,s.pluckNumber)(A.quadrantlabeltlfontalpha,A.quadrantlabelfontalpha,100)),c.styleObj.fontWeight=(0,s.pluckNumber)(A.quadrantlabeltlfontbold,A.quadrantlabelfontbold)?"bold":"normal",c.styleObj.fontStyle=(0,s.pluckNumber)(A.quadrantlabeltlfontitalic,A.quadrantlabelfontitalic)?"italic":"normal",(0,s.setLineHeight)(c.styleObj),e=i,t=(0,s.pluckNumber)(A.quadrantlabeltlborderpadding,A.quadrantlabelborderpadding,2),n=(0,s.pluckNumber)(A.quadrantlabeltlborderradius,A.quadrantlabelborderradius,0),r=a?(0,s.convertColor)(a,(0,s.pluckNumber)(A.quadrantlabeltlbgalpha,A.quadrantlabelbgalpha,A.quadrantlabeltlalpha,A.quadrantlabelalpha,100)):"",o=(0,s.pluckNumber)(A.quadrantlabeltlborderdashed,A.quadrantlabelborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(A.quadrantlabeltlborderdashlen,A.quadrantlabelborderdashlen,4),(0,s.pluckNumber)(A.quadrantlabeltlborderdashgap,A.quadrantlabelborderdashgap,2)):"none",c["text-bound"]=[r,e,l,t,n,o]):M.tlConfig&&(M.tlConfig.label=p),""!==f?(i=(0,s.getFirstValue)(A.quadrantlabeltrbordercolor,A.quadrantlabelbordercolor,""),a=(0,s.pluck)(A.quadrantlabeltrbgcolor,A.quadrantlabelbgcolor),l=(0,s.pluckNumber)(A.quadrantlabeltrborderthickness,A.quadrantlabelborderthickness,1),i=i?(0,s.convertColor)(i,(0,s.pluckNumber)(A.quadrantlabeltrborderalpha,A.quadrantlabelborderalpha,A.quadrantlabeltralpha,A.quadrantlabelalpha,100)):"",(u=M.trConfig)||(u=M.trConfig={enabled:!0,styleObj:{}}),u.label=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabeltr,"")),u.styleObj.fontSize=(0,s.pluck)((0,s.pluckNumber)(A.quadrantlabeltrfontsize,A.quadrantlabelfontsize),parseInt(k.fontSize,10))+"px",u.styleObj.fontSizeWithUnit=(0,s.pluckFontSizeMaintainUnit)((0,s.pluckNumber)(A.quadrantlabeltrfontsize,A.quadrantlabelfontsize),k.fontSizeWithUnit),u.styleObj.lineHeight=k.lineHeight,u.styleObj.fontFamily=(0,s.pluck)(A.quadrantlabeltrfont,A.quadrantlabelfont,k.fontFamily),u.styleObj.color=(0,s.convertColor)((0,s.pluck)(A.quadrantlabeltrfontcolor,A.quadrantlabelfontcolor,k.color),(0,s.pluckNumber)(A.quadrantlabeltrfontalpha,A.quadrantrabelfontalpha,100)),u.styleObj.fontWeight=(0,s.pluckNumber)(A.quadrantlabeltrfontbold,A.quadrantlabelfontbold)?"bold":"normal",u.styleObj.fontStyle=(0,s.pluckNumber)(A.quadrantlabeltrfontitalic,A.quadrantlabelfontitalic)?"italic":"normal",(0,s.setLineHeight)(u.styleObj),e=i,t=(0,s.pluckNumber)(A.quadrantlabeltrborderpadding,A.quadrantlabelborderpadding,2),n=(0,s.pluckNumber)(A.quadrantlabeltrborderradius,A.quadrantlabelborderradius,0),r=a?(0,s.convertColor)(a,(0,s.pluckNumber)(A.quadrantlabeltrbgalpha,A.quadrantlabelbgalpha,A.quadrantlabeltralpha,A.quadrantlabelalpha,100)):"",o=(0,s.pluckNumber)(A.quadrantlabeltrborderdashed,A.quadrantlabelborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(A.quadrantlabeltrborderdashlen,A.quadrantlabelborderdashlen,4),(0,s.pluckNumber)(A.quadrantlabeltrborderdashgap,A.quadrantlabelborderdashgap,2)):"none",u["text-bound"]=[r,e,l,t,n,o]):M.trConfig&&(M.trConfig.label=f),""!==g?(i=(0,s.getFirstValue)(A.quadrantlabelblbordercolor,A.quadrantlabelbordercolor,""),a=(0,s.pluck)(A.quadrantlabelblbgcolor,A.quadrantlabelbgcolor),l=(0,s.pluckNumber)(A.quadrantlabelblborderthickness,A.quadrantlabelborderthickness,1),i=i?(0,s.convertColor)(i,(0,s.pluckNumber)(A.quadrantlabelblborderalpha,A.quadrantlabelborderalpha,A.quadrantlabelblalpha,A.quadrantlabelalpha,100)):"",(d=M.blConfig)||(d=M.blConfig={enabled:!0,styleObj:{}}),d.label=g,d.styleObj.fontSize=(0,s.pluck)((0,s.pluckNumber)(A.quadrantlabelblfontsize,A.quadrantlabelfontsize),parseInt(k.fontSize,10))+"px",d.styleObj.fontSizeWithUnit=(0,s.pluckFontSizeMaintainUnit)((0,s.pluckNumber)(A.quadrantlabelblfontsize,A.quadrantlabelfontsize),k.fontSizeWithUnit),d.styleObj.lineHeight=k.lineHeight,d.styleObj.fontFamily=(0,s.pluck)(A.quadrantlabelblfont,A.quadrantlabelfont,k.fontFamily),d.styleObj.color=(0,s.convertColor)((0,s.pluck)(A.quadrantlabelblfontcolor,A.quadrantlabelfontcolor,k.color),(0,s.pluckNumber)(A.quadrantlabelblfontalpha,A.quadrantlabelfontalpha,100)),d.styleObj.fontWeight=(0,s.pluckNumber)(A.quadrantlabelblfontbold,A.quadrantlabelfontbold)?"bold":"normal",d.styleObj.fontStyle=(0,s.pluckNumber)(A.quadrantlabelblfontitalic,A.quadrantlabelfontitalic)?"italic":"normal",(0,s.setLineHeight)(d.styleObj),e=i,t=(0,s.pluckNumber)(A.quadrantlabelblborderpadding,A.quadrantlabelborderpadding,2),n=(0,s.pluckNumber)(A.quadrantlabelblborderradius,A.quadrantlabelborderradius,0),r=a?(0,s.convertColor)(a,(0,s.pluckNumber)(A.quadrantlabelblbgalpha,A.quadrantlabelbgalpha,A.quadrantlabelblalpha,A.quadrantlabelalpha,100)):"",o=(0,s.pluckNumber)(A.quadrantlabelblborderdashed,A.quadrantlabelborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(A.quadrantlabelblborderdashlen,A.quadrantlabelborderdashlen,4),(0,s.pluckNumber)(A.quadrantlabelblborderdashgap,A.quadrantlabelborderdashgap,2)):"none",d["text-bound"]=[r,e,l,t,n,o]):M.blConfig&&(M.blConfig.label=g),""!==m?(i=(0,s.getFirstValue)(A.quadrantlabelbrbordercolor,A.quadrantlabelbordercolor,""),a=(0,s.pluck)(A.quadrantlabelbrbgcolor,A.quadrantlabelbgcolor),l=(0,s.pluckNumber)(A.quadrantlabelbrborderthickness,A.quadrantlabelborderthickness,1),i=i?(0,s.convertColor)(i,(0,s.pluckNumber)(A.quadrantlabelbrborderalpha,A.quadrantlabelborderalpha,A.quadrantlabelbralpha,A.quadrantlabelalpha,100)):"",(h=M.brConfig)||(h=M.brConfig={enabled:!0,styleObj:{}}),h.label=(0,s.parseUnsafeString)((0,s.getValidValue)(A.quadrantlabelbr,"")),h.styleObj.fontSize=(0,s.pluck)((0,s.pluckNumber)(A.quadrantlabelbrfontsize,A.quadrantlabelfontsize),parseInt(k.fontSize,10))+"px",h.styleObj.fontSizeWithUnit=(0,s.pluckFontSizeMaintainUnit)((0,s.pluckNumber)(A.quadrantlabelbrfontsize,A.quadrantlabelfontsize),k.fontSizeWithUnit),h.styleObj.lineHeight=k.lineHeight,h.styleObj.fontFamily=(0,s.pluck)(A.quadrantlabelbrfont,A.quadrantlabelfont,k.fontFamily),h.styleObj.color=(0,s.convertColor)((0,s.pluck)(A.quadrantlabelbrfontcolor,A.quadrantlabelfontcolor,k.color),(0,s.pluckNumber)(A.quadrantlabelbrfontalpha,A.quadrantrabelfontalpha,100)),h.styleObj.fontWeight=(0,s.pluckNumber)(A.quadrantlabelbrfontbold,A.quadrantlabelfontbold)?"bold":"normal",h.styleObj.fontStyle=(0,s.pluckNumber)(A.quadrantlabelbrfontitalic,A.quadrantlabelfontitalic)?"italic":"normal",(0,s.setLineHeight)(h.styleObj),r=a?(0,s.convertColor)(a,(0,s.pluckNumber)(A.quadrantlabelbrbgalpha,A.quadrantlabelbgalpha,A.quadrantlabelbralpha,A.quadrantlabelalpha,100)):"",e=i,t=(0,s.pluckNumber)(A.quadrantlabelbrborderpadding,A.quadrantlabelborderpadding,2),n=(0,s.pluckNumber)(A.quadrantlabelbrborderradius,A.quadrantlabelborderradius,0),o=(0,s.pluckNumber)(A.quadrantlabelbrborderdashed,A.quadrantlabelborderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(A.quadrantlabelbrborderdashlen,A.quadrantlabelborderdashlen,4),(0,s.pluckNumber)(A.quadrantlabelbrborderdashgap,A.quadrantlabelborderdashgap,2)):"none",h["text-bound"]=[r,e,l,t,n,o]):M.brConfig&&(M.brConfig.label=m))},n._preDraw=function(){var e,t,n,r,o,i,a=this.conf,l=this.getFromEnv("chart"),c=l.getChildren("xAxis")[0],u=l.getChildren("yAxis")[0],d=c.getLimit(),h=u.getLimit(),p=d.max,f=h.max,g=d.min,m=h.min,v=l.config,y=v.canvasWidth,b=v.canvasHeight,C=a.quadrantLabelPadding,w=a.tlConfig,x=a.trConfig,_=a.blConfig,S=a.brConfig;return w&&(w.styleObj.fontSize=this.computeFontSize(w.styleObj.fontSizeWithUnit),(0,s.setLineHeight)(w.styleObj)),x&&(x.styleObj.fontSize=this.computeFontSize(x.styleObj.fontSizeWithUnit),(0,s.setLineHeight)(x.styleObj)),_&&(_.styleObj.fontSize=this.computeFontSize(_.styleObj.fontSizeWithUnit),(0,s.setLineHeight)(_.styleObj)),S&&(S.styleObj.fontSize=this.computeFontSize(S.styleObj.fontSizeWithUnit),(0,s.setLineHeight)(S.styleObj)),e=a.xVal||(a.xVal=(g+p)/2),(t=a.yVal||(a.yVal=(m+f)/2))>=m&&t<=f&&e>=g&&e<=p?(r=y-(n=y/(p-g)*(e-g)),o=b-(i=b/(f-m)*(t-m)),n-=C,r-=C,i-=C,((o-=C)<0||n<0)&&(w.enabled=!1),(o<0||r<0)&&(x.enabled=!1),(i<0||n<0)&&(_.enabled=!1),(i<0||n<0)&&(S.enabled=!1),a.enabled&&(a.drawQuadrant=!0)):a.drawQuadrant=!1,this},n._createGroups=function(){var e,t=this.getFromEnv("chart"),n=t.getFromEnv("animationManager"),r=t.getChildren("canvas")[0].getChildContainer("quadrantGroup"),o=this.getContainer("quadrantChildContainer"),i=this.getContainer("quadrantLineGroup"),a=this.getContainer("quadrantTLGroup"),s=this.getContainer("quadrantTRGroup"),l=this.getContainer("quadrantBLGroup"),c=this.getContainer("quadrantBRGroup");e=n.setAnimation({el:o||"group",attr:{name:"quadrant-child-container"},container:r,component:this,label:"group"}),o||this.addContainer("quadrantChildContainer",e),this.addContainer("quadrantLineGroup",n.setAnimation({el:i||"group",attr:{name:"quadrantLineGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantTLGroup",n.setAnimation({el:a||"group",attr:{name:"quadrantTLGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantTRGroup",n.setAnimation({el:s||"group",attr:{name:"quadrantTRGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantBLGroup",n.setAnimation({el:l||"group",attr:{name:"quadrantBLGroup"},container:e,component:this,label:"group"})),this.addContainer("quadrantBRGroup",n.setAnimation({el:c||"group",attr:{name:"quadrantBRGroup"},container:e,component:this,label:"group"}))},n.draw=function(){var e,t,n,r,o,i,a,s=this._preDraw(),l=s.conf,c=s.getFromEnv("chart"),f=c.config,g=f.reverseXAxis,m={wrtVisible:!0},v=s.getFromEnv("smartLabel"),y=s.getFromEnv("animationManager"),b=s.graphics,C=b.tlLabel,w=b.trLabel,x=b.blLabel,_=b.brLabel,S=f.textDirection,M=c.getChildren("xAxis")[0],E=c.getChildren("yAxis")[0],O=l.tlConfig||{},A=l.trConfig||{},T=l.blConfig||{},k=l.brConfig||{},D=O.enabled&&O.label,P=A.enabled&&A.label,N=T.enabled&&T.label,L=k.enabled&&k.label,R=f.canvasLeft,F=f.canvasTop,I=l.quadrantLabelPadding,z=M.getLimit(),B=E.getLimit(),j=g?z.min:z.max,V=g?z.max:z.min,W=B.max,H=B.min,G=M.getPixel(V,m)+I,U=M.getPixel(j,m)-I,q=E.getPixel(H,m)-I,Y=E.getPixel(W,m)+I,X=M.getPixel(l.xVal,m),K=E.getPixel(l.yVal,m),$=X-G,Z=U-X,J=K-Y,Q=q-K,ee=b.horizontalQuadLine,te=b.verticalQuadLine,ne=function(){this.hide()};s._createGroups(),t=s.getContainer("quadrantChildContainer"),n=s.getContainer("quadrantLineGroup"),r=s.getContainer("quadrantTLGroup"),o=s.getContainer("quadrantTRGroup"),i=s.getContainer("quadrantBLGroup"),a=s.getContainer("quadrantBRGroup"),l.enabled&&l.drawQuadrant?(t.show(),b.horizontalQuadLine=y.setAnimation({el:ee||"path",container:n,attr:{path:"M"+R+" "+K+"h"+f.canvasWidth,stroke:l.quadrantLineColor,"stroke-dasharray":l.dashStyle,"stroke-width":l.quadrantLineThickness,"stroke-linecap":"butt"},component:s,label:"path"}),b.verticalQuadLine=y.setAnimation({el:te||"path",container:n,attr:{path:"M"+X+" "+F+"v"+f.canvasHeight,stroke:l.quadrantLineColor,"stroke-width":l.quadrantLineThickness,"stroke-dasharray":l.dashStyle,"stroke-linecap":"butt"},component:s,label:"path"}),D?(v.useEllipsesOnOverflow(f.useEllipsesWhenOverflow),v.setStyle(l.tlConfig.styleObj),e=v.getSmartText(D,$,J),(C=b.tlLabel=y.setAnimation({el:C||"text",attr:{"text-anchor":u,"vertical-align":d,x:G,y:Y,text:e.text,direction:S,"text-bound":l.tlConfig["text-bound"]},container:r,component:s,label:"text"})).css(l.tlConfig.styleObj)):C&&y.setAnimation({el:C,callback:ne,component:this,label:"text"}),P?(v.setStyle(l.trConfig.styleObj),e=v.getSmartText(P,Z,J),(w=b.trLabel=y.setAnimation({el:w||"text",attr:{"text-anchor":p,"vertical-align":d,direction:S,x:U,y:Y,text:e.text,"text-bound":l.trConfig["text-bound"]},container:o,component:s,label:"text"})).css(l.trConfig.styleObj)):w&&y.setAnimation({el:w,callback:ne,component:this,label:"text"}),N?(v.setStyle(l.blConfig.styleObj),e=v.getSmartText(N,$,Q),(x=b.blLabel=y.setAnimation({el:x||"text",attr:{"text-anchor":u,"vertical-align":h,direction:S,x:G,y:q,text:e.text,"text-bound":l.blConfig["text-bound"]},container:i,component:s,label:"text"})).css(l.blConfig.styleObj)):x&&y.setAnimation({el:x,callback:ne,component:this,label:"text"}),L?(v.setStyle(l.brConfig.styleObj),e=v.getSmartText(L,Z,Q),(_=b.brLabel=y.setAnimation({el:_||"text",attr:{"text-anchor":p,"vertical-align":h,direction:S,x:U,y:q,text:e.text,"text-bound":l.brConfig["text-bound"]},container:a,component:s,label:"text"})).css(l.brConfig.styleObj)):_&&y.setAnimation({el:_,callback:ne,component:this,label:"text"})):t&&y.setAnimation({el:t,component:s,doNotRemove:!0,callback:function(){this.hide()},label:"group"})},t}(a.ComponentInterface);t.default=f},650:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"initial.canvas.quadrant":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]}}}}},651:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t,n,r=e.getChildren("canvas")[0],a=r.getChildren("axisRefVisualCartesian")[0],s={zoomable:!0,pannable:!0},l=e._feedAxesRawData(),c=function(e){var t=e.sender;a.addexplicitDrawItems(t.getId(),t),a.asyncDraw()};(0,o.componentFactory)(e,i.default,"yAxis",1,l.yAxisConf),(0,o.componentFactory)(e,i.default,"xAxis",1,l.xAxisConf),t=e.getChildren("yAxis")[0],n=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",r),n.setLinkedItem("canvas",r),a.setLinkedItem(t.getId(),t),a.setLinkedItem(n.getId(),n),a.addExtEventListener("visiblerangeset",c,n),a.addExtEventListener("visiblerangeset",c,t),r.attachAxis(n,!1,e.zoomX?s:{}),r.attachAxis(t,!0,e.zoomY?s:{}),e._setCategories()};var o=n(218),i=r(n(471))},652:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(545)),a=n(218),s=n(226),l=r(n(653)),c=r(n(654)),u=Math,d=u.max,h=u.min,p=u.round;(0,s.addDep)({name:"scatterAnimation",type:"animationRule",extension:c.default});var f=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.setupHoverTracker=function(){var e,t,n,r,o,i,a,s=this.config.searchDataArr=[],c=this.components.data,u={},d=this.getSkippingInfo&&this.getSkippingInfo(),h=d&&d.draw||[],p=h.length,f=d&&d.skippingApplied;for(n=c.length,f&&(n=p),t=0;tm&&(m=o.x,b.rightMostData=n),o.xp&&(p=o.y,b.topMostData=n),o.yu&&(k=A[c],F=1),f=Z||E&&u+i>=$?E?u+i-$:u+i-Z:0),Q.paddingRight=d(H,W)),P&&(i=(o=P.config).anchorProps.radius||0,K=M.getPixel(K),null!==o.setValue&&(b=M.getPixel(o.setValue.y),W=(0,a.pluckNumber)(i,0)+(0,a.pluckNumber)(o.anchorProps.borderThickness,0)/2),Q.paddingTop=K-(b-W)>0?K-(b-W):0),N&&(i=(o=N.config).anchorProps.radius||0,X=M.getPixel(X),null!==o.setValue&&(b=M.getPixel(o.setValue.y),W=(0,a.pluckNumber)(i,0)+(0,a.pluckNumber)(o.anchorProps.borderThickness,0)/2),Q.paddingBottom=b+W-X>0?b+W-X:0),Q},n._addLegend=function(){var e,t,n,r,o,i,s,l,c,u=this.getFromEnv("chart"),d=this.getFromEnv("chart-attrib"),h=this.config,p=this.config.JSONData||{},f=u.getChildren("legend")[0],g=(0,a.pluckNumber)(h.drawanchors,1),m={fillColor:(i=h.anchorbgcolor,s=h.plotFillAlpha,l=i,c=s,l=(0,a.getFirstColor)(l),c=(0,a.getFirstAlpha)(c),{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:(0,a.getLightColor)(l,70)+","+(0,a.getDarkColor)(l,50),alpha:c+","+c,ratio:a.BGRATIOSTRING,radialGradient:!0}}),lineColor:{FCcolor:{color:h.anchorbordercolor,alpha:h.anchoralpha}},lineWidth:h.anchorborderthickness};f.config.symbol3DLighting?m.fillcolor&&m.fillcolor.FCcolor?(e=(0,a.extend2)({},m.fillcolor)).FCcolor.alpha=h.plotFillAlpha:e=(0,a.pluck)(m.fillColor):e={FCcolor:{color:(0,a.pluck)((t=m.fillColor)&&(t.FCcolor&&t.FCcolor.color.split(",")[0]||t)),angle:0,ratio:"0",alpha:"100"}},r={enabled:h.includeInLegend,type:this.type,drawLine:(0,a.pluck)(h.drawLine,!0),anchorSide:g?h.anchorsides:0,label:(0,a.getFirstValue)(this.config.JSONData.seriesname),legendIconAlpha:(0,a.pluckNumber)(p.legendiconalpha)},h.includeinlegend?((o=f.getItem(this.config.legendItemId))?o.configure({style:f.config.itemStyle,hiddenStyle:f.config.itemHiddenStyle,datasetVisible:f.config.datasetVisible,hoverStyle:f.config.itemHoverStyle}):(this.config.legendItemId=f.createItem(this),o=f.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",function(){o.itemClickFn()},o)),o.configure(r),o.setStateCosmetics("default",{symbol:{fill:(0,a.toRaphaelColor)(e),bgAlpha:(0,a.pluckNumber)(p.legendiconbgalpha,p.legendiconalpha,d.legendiconbgalpha,d.legendiconalpha,h.plotFillAlpha),borderAlpha:(0,a.pluckNumber)(p.legendiconborderalpha,p.legendiconalpha,d.legendiconborderalpha,d.legendiconalpha,"100"),rawFillColor:h.anchorbgcolor,rawStrokeColor:h.lineColor,stroke:(0,a.toRaphaelColor)((0,a.pluck)((n=m.lineColor)&&(n.FCcolor&&n.FCcolor.color.split(",")[0]||n))),"stroke-width":h.anchorborderthickness}}),this.getState("visible")?o.removeLegendState("hidden"):o.setLegendState("hidden")):this.config.legendItemId&&f.disposeItem(this.config.legendItemId)},n.getDSGroupdef=function(){},n.trimData=function(e){if(this.config.JSONData){var t,n,r=this.config,o=r&&r.context,i=o&&o.prevCatlen,a=this.getFromEnv("xAxis").getTicksLen(),s=i-a,l=r.JSONData,c=l.data&&l.data.length,u=e.data&&e.data.length||0,d=c-u;s>d?(t=s,n=a):(t=d,n=u),t>0&&this.removeData(n,t,!1)}},t}(i.default);t.default=f},653:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t,n,r,o){return Math.pow(n-e,2)+Math.pow(r-t,2)<=Math.pow(o,2)},o=Math.PI,i=Math.cos,a=Math.sin,s=Math.max,l=Math.min,c=o/180,u=function(e,t,n,r,o,i){var a,s,l;return a=(r-t)*(o-n),s=(n-e)*(i-r),isNaN(a)&&(a=0),isNaN(s)&&(s=0),0===(l=a-s)?0:l>0?1:2},d=function(e,t,n,r,o,i){return n<=s(e,o)&&n>=l(e,o)&&r<=s(t,i)&&r>=l(t,i)},h=function(e,t,n,r,o,i,a,s){var l=u(e,t,n,r,o,i),c=u(e,t,n,r,a,s),h=u(o,i,a,s,e,t),p=u(o,i,a,s,n,r);return l!==c&&h!==p||!(0!==l||!d(e,t,o,i,n,r))||!(0!==c||!d(e,t,a,s,n,r))||!(0!==h||!d(o,i,e,t,a,s))||!(0!==p||!d(o,i,n,r,a,s))},p=function(e,t,n,s,l,p,f){var g,m,v,y,b,C,w,x=0,_=!1;if(r(e,t,n,s,l)&&p>=3){for(w=2*o/p,v=n+l*i(-(m=void 0===f?.5*o:f%360*c)),C=s+l*a(-m),g=0;ge.i?t:e},g=function(){function e(e){this.configure(e)}var t=e.prototype;return t.configure=function(e){this.validatorFn=e?this.shapeValidator():this.defaultValidator()},t.defaultValidator=function(){var e=this;return function(t){var n=e.mousePoint;return!!(t&&Math.pow((t.x-n.x)/e.xLimit,2)+Math.pow((t.y-n.y)/e.yLimit,2)<=1)}},t.shapeValidator=function(){var e=this;return function(t){var n,o,i,a,s,l,c,u,d=e.mousePoint,h=t&&t.shapeInfo,f=!1,g=d.x,m=d.y;switch(h&&h.type){case"circle":o=h.radius,f=r(g,m,t.x,t.y,o);break;case"arc":n=h.innerradius,o=h.radius,f=!r(g,m,t.x,t.y,n)&&r(g,m,t.x,t.y,o);break;case"polygon":o=h.radius,a=h.startAngle,i=h.sides,f=p(g,m,t.x,t.y,o,i,a);break;case"rect":case"rectangle":s=t.x,c=t.y,l=s+(h.width||0),u=c+(h.height||0),f=g>=s&&g<=l&&m>=c&&m<=u;break;case"default":f=!1}return f}},t.buildKdTree=function(e){return this.kdTree=function(e){var t,n,r,o=e,i=o&&o[0]&&o[0].r||5,a=Math.max,s=Math.floor,l=Math.sqrt,c=Math.min,u=Math.log,d=Math.exp,h=Math.pow;function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}for(n=function(e,t,r,o){for(var i,h,f,g,m,v,y,b,C,w,x=r,_=o;_>x;){for(_-x>600&&(h=t-x+1,f=u(i=_-x+1),g=.5*d(2*f/3),m=.5*l(f*g*(i-g)/i)*(h-i/2<0?-1:1),v=a(x,s(t-h*g/i+m)),y=c(_,s(t+(i-h)*g/i+m)),n(e,t,v,y)),b=e[t],C=x,w=_,p(e,x,t),e[_].x>b.x&&p(e,x,_);Cb.x;)w--}e[x].x===b.x?p(e,x,w):p(e,++w,_),w<=t&&(x=w+1),t<=w&&(_=w-1)}},r=function(e,t,n,o){for(var i,h,f,g,m,v,y,b,C,w,x=n,_=o,S=e;_>x;){for(_-x>600&&(h=t-x+1,f=u(i=_-x+1),g=.5*d(2*f/3),m=.5*l(f*g*(i-g)/i)*(h-i/2<0?-1:1),v=a(x,s(t-h*g/i+m)),y=c(_,s(t+(i-h)*g/i+m)),r(S,t,v,y)),b=S[t],C=x,w=_,p(S,x,t),S[_].y>b.y&&p(S,x,_);Cb.y;)w--}S[x].y===b.y?p(S,x,w):p(S,++w,_),w<=t&&(x=w+1),t<=w&&(_=w-1)}},t=(o=o||[]).length;t--;)o[t].r>i&&(i=o[t].r),o[t].i=t,o[t].x=+o[t].x,o[t].y=+o[t].y;return{tree:0===o.length?{}:function e(t,o,i,a){var s,l={},c=a?"y":"x";return o===i?(l.point=t[o],l):i-o==1?(t[o][c]>t[i][c]?(l.point=t[o],l.left={point:t[i]}):(l.point=t[i],l.left={point:t[o]}),l):(s=o+i>>1,a?r(t,s,o,i):n(t,s,o,i),l.point=t[s],l.left=e(t,o,s-1,!a),l.right=e(t,s+1,i,!a),l)}(o,0,o.length-1,!1),search:function(e,t,n,r){var o,a,s,c=this.tree,u=r,d=e-i,p=e+i,f=t-i,g=t+i,m=!1,v=0;function y(e,t,n,r){return l(h(e-n,2)+h(t-r,2))}function b(r,o){return"circle"===n?y(r,o,e,t)<=d:r>=d&&r<=p&&o>=f&&o<=g}function C(e,t,n){return e>=t&&e<=n}function w(n){var r=C(e,n.x1,n.x2)&&C(t,n.y1,n.y2),i=y(e,t,n.point.x,n.point.y);if(!o)return o=n,m=r,void(v=i);r?m?n.point.i>o.point.i&&(o=n,m=r,v=i):(o=n,m=r,v=i):m||i=e.point.y&&a(e.right))},(a=function(e){e&&e.point&&(x(u.rx||e.point.r,u.ry||e.point.r),b(e.point.x,e.point.y)&&w(e),d<=e.point.x&&s(e.left),p>=e.point.x&&s(e.right))})(c),o&&o.point||o}}}(e),this.tree=this.kdTree.tree,this},t.getNeighbour=function(e,t,n){var r=this.tree,o={x1:e.x-this.xLimit,x2:e.x+this.xLimit,y1:e.y-this.yLimit,y2:e.y+this.yLimit},i=this.validatorFn;return this.mousePoint=e,t?this.kdTree&&this.kdTree.search(e.x,e.y,n,e.options):r?this._searchBtwnLimit(o,r,!0,i):void 0},t._searchBtwnLimit=function(e,t,n,r){var o,i,a=n?"x":"y",s=n?e.x1:e.y1,l=n?e.x2:e.y2;if(void 0!==(o=t&&t.point&&t.point[a]))return r(t.point)&&(i=t.point),o>=s&&t.left&&(i=f(i,this._searchBtwnLimit(e,t.left,!n,r))),o<=l&&t.right&&(i=f(i,this._searchBtwnLimit(e,t.right,!n,r))),i},t._setSearchLimit=function(e,t){this.xLimit=e,this.yLimit=t},e}();g.prototype.constructor=g;var m=g;t.default=m},654:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o={"*.dataset.scatter":r(n(548)).default["*.dataset.line"]};t.default=o},662:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(546)),a=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,o.default)(t,e),t.getName=function(){return"MSArea"};var n=t.prototype;return n.getName=function(){return"MSArea"},n.getDSdef=function(){return i.default},n.getDSGroupdef=function(){},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Area Chart",t.defaultDatasetType="area",t.defaultcrosslinethickness=1},t}(r(n(663)).default);t.default=a},663:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t._setDefaultConfig=t.default=void 0;var o=r(n(232)),i=r(n(624)),a=n(218),s=a.preDefStr.SEVENTYSTRING,l=function(){var e=this.config;e.anchorborderthickness=1,e.anchorimageurl=void 0,e.anchorimagepadding=1,e.anchorsides=1,e.anchoralpha=void 0,e.anchorbgalpha=a.HUNDREDSTRING,e.anchorimagealpha=a.HUNDREDSTRING,e.anchorimagescale=100,e.anchorstartangle=90,e.anchorshadow=0,e.anchorbgcolor=void 0,e.anchorbordercolor=void 0,e.anchorradius=3,e.showvalues=1,e.plotfillalpha=s,e.linedashlen=5,e.linedashgap=4,e.linedashed=void 0,e.linealpha=a.HUNDREDSTRING,e.linethickness=2,e.drawfullareaborder=1,e.connectnulldata=0};t._setDefaultConfig=l;var c=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.getName=function(){return"AreaBase"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),l.call(this)},t}(i.default);t.default=c},707:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(663)),a=r(n(545)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,o.default)(t,e),t.getName=function(){return"MSLine"};var n=t.prototype;return n.getName=function(){return"MSLine"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Line Chart",t.defaultDatasetType="line",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=s},710:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(711)).default;t.default=o},711:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(712)).default;t.default=o},712:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(663),a=r(n(616)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,o.default)(t,e),t.getName=function(){return"Spline"};var n=t.prototype;return n.getName=function(){return"Spline"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Spline Chart",t.singleseries=!0,t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,i._setDefaultConfig.call(this)},n.getDSdef=function(){return a.default},t}(r(n(452)).default);t.default=s},713:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(714)).default;t.default=o},714:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(712)),a=n(663),s=r(n(612)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,o.default)(t,e),t.getName=function(){return"SplineArea"};var n=t.prototype;return n.getName=function(){return"SplineArea"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;a._setDefaultConfig.call(this),t.friendlyName="Spline Area Chart",t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="mssplinearea",t.anchoralpha="100",t.minimizetendency=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.showzeroplaneontop=1,t.inheritplotbordercolor=0},n.getDSdef=function(){return s.default},n.getDSGroupdef=function(){},t}(i.default);t.default=l},715:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(716)).default;t.default=o},716:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(717)).default;t.default=o},717:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(663),a=r(n(616)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,o.default)(t,e),t.getName=function(){return"MSSpline"};var n=t.prototype;return n.getName=function(){return"MSSpline"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Spline Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,i._setDefaultConfig.call(this)},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(r(n(555)).default);t.default=s},718:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(719)).default;t.default=o},719:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(663),a=r(n(597)),s=r(n(616)),l=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t}(0,o.default)(t,e),t.getName=function(){return"MSSplineDy"};var n=t.prototype;return n.getName=function(){return"MSSplineDy"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Dual Y-Axis Spline Chart",t.defaultDatasetType="msspline",t.minimizetendency=0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.isdual=!0,i._setDefaultConfig.call(this)},n.getDSdef=function(){return s.default},n.getDSGroupdef=function(){},n.getDSType=function(){return"spline"},t}(a.default);t.default=l},720:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(721)).default;t.default=o},721:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(717)),a=n(663),s=r(n(612)),l=function(e){function t(){var t;return(t=e.call(this)||this).friendlyName="Multi-series Spline Area Chart",t.defaultPlotShadow=0,t}(0,o.default)(t,e),t.getName=function(){return"MSSplineArea"};var n=t.prototype;return n.getName=function(){return"MSSplineArea"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;a._setDefaultConfig.call(this),t.defaultDatasetType="mssplinearea",t.minimizetendency=0,t.zeroplanethickness=2,t.zeroplanealpha=80,t.showzeroplaneontop=1,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return s.default},n.getDSGroupdef=function(){},t}(i.default);t.default=l},730:function(e,t,n){"use strict";n.r(t);var r=n(731),o=n(734),i=n(737),a=n(740),s=n(748),l=Object(r.default)(Object(o.default)(["fantasy-land/chain","chain"],a.default,function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:Object(i.default)(!1)(Object(s.default)(e,t))}));t.default=l},731:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var r=n(732),o=n(733);function i(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return Object(o.default)(n)?t:Object(r.default)(function(t){return e(n,t)});default:return Object(o.default)(n)&&Object(o.default)(i)?t:Object(o.default)(n)?Object(r.default)(function(t){return e(t,i)}):Object(o.default)(i)?Object(r.default)(function(t){return e(n,t)}):e(n,i)}}}},732:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(733);function o(e){return function t(n){return 0===arguments.length||Object(r.default)(n)?t:e.apply(this,arguments)}}},733:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.r(t),n.d(t,"default",function(){return r})},734:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var r=n(735),o=n(736);function i(e,t,n){return function(){if(0===arguments.length)return n();var i=Array.prototype.slice.call(arguments,0),a=i.pop();if(!Object(r.default)(a)){for(var s=0;s=0&&"[object Array]"===Object.prototype.toString.call(e)}},736:function(e,t,n){"use strict";function r(e){return"function"==typeof e["@@transducer/step"]}n.r(t),n.d(t,"default",function(){return r})},737:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(738);function o(e){return function t(n){for(var o,i,a,s=[],l=0,c=n.length;l0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))});t.default=a},739:function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.r(t),n.d(t,"default",function(){return r})},740:function(e,t,n){"use strict";n.r(t);var r=n(731),o=n(741),i=n(748),a=Object(r.default)(function(e,t){return Object(i.default)(e,Object(o.default)(t))});t.default=a},741:function(e,t,n){"use strict";n.r(t);var r=n(742),o=n(738),i=n(743),a=n(747);t.default=function(e){var t=function(e){return{"@@transducer/init":a.default.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var o=e["@@transducer/step"](t,n);return o["@@transducer/reduced"]?Object(r.default)(o):o}}}(e);return{"@@transducer/init":a.default.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return Object(o.default)(n)?Object(i.default)(t,e,n):Object(i.default)(t,e,[n])}}}},742:function(e,t,n){"use strict";function r(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}n.r(t),n.d(t,"default",function(){return r})},743:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return c});var r=n(738),o=n(744),i=n(745);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](Object(i.default)(e["@@transducer/step"],e),t))}var l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function c(e,t,n){if("function"==typeof e&&(e=Object(o.default)(e)),Object(r.default)(n))return function(e,t,n){for(var r=0,o=n.length;r=arguments.length)?u=t[c]:(u=arguments[s],s+=1),a[c]=u,Object(o.default)(u)||(l-=1),c+=1}return l<=0?n.apply(this,a):Object(r.default)(l,i(e,a,n))}}},753:function(e,t,n){"use strict";n.r(t);var r=n(732),o=n(754),i=n(755),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n=0;)t=s[n],Object(o.default)(t,e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)},d=Object(r.default)(u);t.default=d},754:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.r(t),n.d(t,"default",function(){return r})},755:function(e,t,n){"use strict";n.r(t);var r=n(754),o=Object.prototype.toString;t.default=function(){return"[object Arguments]"===o.call(arguments)?function(e){return"[object Arguments]"===o.call(e)}:function(e){return Object(r.default)("callee",e)}}},756:function(e,t,n){"use strict";n.r(t);var r=n(757),o=n(732),i=Object(o.default)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():Object(r.default)(e,[],[],!0)});t.default=i},757:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return i});var r=n(758),o=n(759);function i(e,t,n,a){var s=function(r){for(var o=t.length,s=0;s=0}},766:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return o});var r=n(767);function o(e,t,n){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;n=0;){if(n[h]===e)return r[h]===t;h-=1}switch(o){case"Map":return e.size===t.size&&u(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&u(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=Object(l.default)(e);if(p.length!==Object(l.default)(t).length)return!1;var f=n.concat([e]),g=r.concat([t]);for(h=p.length-1;h>=0;){var m=p[h];if(!Object(a.default)(m,t)||!d(t[m],e[m],f,g))return!1;h-=1}return!0}},769:function(e,t,n){"use strict";function r(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}n.r(t),n.d(t,"default",function(){return r})},770:function(e,t,n){"use strict";function r(e,t,n){for(var r=0,o=n.length;rl){var p=this.getDomain();l=p[0],s=p[1],c=0}for(h>1?(t=e=Math.ceil(Math.log(l)/Math.log(h)),n=Math.floor(Math.log(s)/Math.log(h))):h>0&&h<1&&(e=Math.floor(Math.log(l)/Math.log(h)),t=Math.ceil(Math.log(s)/Math.log(h)),n=e),o=e,i=t;i>=n;--i)s<=(r=this.pows(o))&&l>=r&&(d[u++]=r),h>1?o--:o++;return this.majorTicks=c?d.reverse():d},n.copy=function(){return(0,s.copyScale)(this,(new t).setBase(this.base))},n.minorTicks=function(e,t){void 0===t&&(t=this.majorTicks||this.ticks());var n,r,o,i,a,s=this.base,u=(0,l.default)(t),d=[],h=Math.log(s)/Math.log(10),p=s>1?-1:1,f=e;return f=(0,c.default)(Number(f),h%1?4:8),u.forEach(function(e){var t=e[0],l=e[1];for(s>1?r=Math.ceil(Math.log(l)/Math.log(s)):s>0&&s<1&&(r=Math.floor(Math.log(l)/Math.log(s))),i=Math.pow(s,r)-Math.pow(s,r+p),o=i/(f+1),n=1;n<=f;++n)t<=(a=Math.pow(s,r+p)+o*n)&&l>=a&&d.push(a)}),d},n.contextTicks=function(){return this.contextTicksArr||[]},n.getType=function(){return"log"},t}(s.default);t.default=m},788:function(e,t,n){"use strict";function r(e,t){return[e,t]}t.__esModule=!0,t.default=void 0;t.default=function(e,t){var n=t,o=0,i=e.length-1,a=e[0],s=new Array(i<0?0:i);for(null==n&&(n=r);o1)for(var n=1;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c={get:function(e,t,n){if(!t)return e;var r=d(t),o=void 0;try{o=r.reduce(function(e,t){return e[t]},e)}catch(i){}return"undefined"!==typeof o?o:n},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2],r=d(t),o=void 0,i=e;for(;(o=r.shift())&&r.length;)i[o]||(i[o]={}),i=i[o];return i[o]=n,e},takeRight:function(e,t){var n=t>e.length?0:e.length-t;return e.slice(n)},last:function(e){return e[e.length-1]},orderBy:function(e,t,n,r){return e.sort(function(e,o){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;return"function"===typeof e?Object.getPrototypeOf(e).isReactComponent?o.a.createElement(e,t):e(t):n},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function u(e){return Array.isArray(e)}function d(e){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(u(t))for(var r=0;r=o.pages?o.pages-1:o.page,0)),this.setState(o,function(){t&&t(),r.page===o.page&&r.pageSize===o.pageSize&&r.sorted===o.sorted&&r.filtered===o.filtered||n.fireFetchData()})}}]),n}()},f=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=Object.assign||function(e){for(var t=1;t-1)&&c.getFirstDefined(e.show,!0)});return g({},e,{columns:t})}return e})).filter(function(e){return e.columns?e.columns.length:!(a.indexOf(e.id)>-1)&&c.getFirstDefined(e.show,!0)})).findIndex(function(e){return e.pivot});if(a.length){var D=[];a.forEach(function(e){var t=E.find(function(t){return t.id===e});t&&D.push(t)});var P=D.reduce(function(e,t){return e&&e===t.parentColumn&&t.parentColumn},D[0].parentColumn),N=_&&P.Header,L={Header:N=N||function(){return o.a.createElement("strong",null,"Pivoted")},columns:D.map(function(e){return g({},n.props.pivotDefaults,e,{pivoted:!0})})};k>=0?(L=g({},A[k],L),A.splice(k,1,L)):A.unshift(L)}var R=[],F=[],I=function(e,t){R.push(g({},n.props.column,t,{columns:e})),F=[]};A.forEach(function(e){if(e.columns)return T=T.concat(e.columns),F.length>0&&I(F),void I(e.columns,e);T.push(e),F.push(e)}),_&&F.length>0&&I(F);var z=this.resolvedData;this.resolvedData&&!t||(z=l(s),this.resolvedData=z),z=z.map(function(e,t){return function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(v(r={},b,t),v(r,C,n),v(r,h,t[h]),v(r,m,o),r);return E.forEach(function(e){e.expander||(i[e.id]=e.accessor(t))}),i[h]&&(i[h]=i[h].map(function(t,n){return e(t,n,o+1)})),i}(e,t)});var B=T.filter(function(e){return!e.expander&&e.aggregate});if(a.length){z=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r===n.length)return t;var o=Object.entries(c.groupBy(t,n[r])).map(function(e){var t,o=f(e,2),i=o[0],a=o[1];return v(t={},u,n[r]),v(t,d,i),v(t,n[r],i),v(t,h,a),v(t,m,r),v(t,w,!0),t});return o=o.map(function(t){var o,i=e(t[h],n,r+1);return g({},t,(v(o={},h,i),v(o,p,!0),o),function(e){var t={};return B.forEach(function(n){var r=e.map(function(e){return e[n.id]});t[n.id]=n.aggregate(r,e)}),t}(i))})}(z,a)}return g({},e,{resolvedData:z,allVisibleColumns:T,headerGroups:R,allDecoratedColumns:E,hasHeaderGroups:_})}},{key:"getSortedData",value:function(e){var t=e.manual,n=e.sorted,r=e.filtered,o=e.defaultFilterMethod,i=e.resolvedData,a=e.allVisibleColumns,s=e.allDecoratedColumns,l={};return s.filter(function(e){return e.sortMethod}).forEach(function(e){l[e.id]=e.sortMethod}),{sortedData:t?i:this.sortData(this.filterData(i,r,o,a),n,l)}}},{key:"fireFetchData",value:function(){this.props.onFetchData(this.getResolvedState(),this)}},{key:"getPropOrState",value:function(e){return c.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return c.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,n,r){var o=this,i=e;return t.length&&(i=(i=t.reduce(function(e,t){var o=r.find(function(e){return e.id===t.id});if(!o||!1===o.filterable)return e;var i=o.filterMethod||n;return o.filterAll?i(t,e,o):e.filter(function(e){return i(t,e,o)})},i)).map(function(e){return e[o.props.subRowsKey]?g({},e,v({},o.props.subRowsKey,o.filterData(e[o.props.subRowsKey],t,n,r))):e}).filter(function(e){return!e[o.props.subRowsKey]||e[o.props.subRowsKey].length>0})),i}},{key:"sortData",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var o=(this.props.orderByMethod||c.orderBy)(e,t.map(function(e){return r[e.id]?function(t,n){return r[e.id](t[e.id],n[e.id],e.desc)}:function(t,r){return n.props.defaultSortMethod(t[e.id],r[e.id],e.desc)}}),t.map(function(e){return!e.desc}),this.props.indexKey);return o.forEach(function(e){e[n.props.subRowsKey]&&(e[n.props.subRowsKey]=n.sortData(e[n.props.subRowsKey],t,r))}),o}},{key:"getMinRows",value:function(){return c.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,n=t.onPageChange,r=t.collapseOnPageChange,o={page:e};r&&(o.expanded={}),this.setStateWithData(o,function(){return n&&n(e)})}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,n=this.getResolvedState(),r=n.pageSize*n.page,o=Math.floor(r/e);this.setStateWithData({pageSize:e,page:o},function(){return t&&t(e,o)})}},{key:"sortColumn",value:function(e,t){var n=this.getResolvedState(),r=n.sorted,o=n.skipNextSort,i=n.defaultSortDesc,a=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:i,s=!a;if(o)this.setStateWithData({skipNextSort:!1});else{var l=this.props.onSortedChange,u=c.clone(r||[]).map(function(e){return e.desc=c.isSortingDesc(e),e});if(c.isArray(e)){var d=u.findIndex(function(t){return t.id===e[0].id});if(d>-1)u[d].desc===s?t?u.splice(d,e.length):e.forEach(function(e,t){u[d+t].desc=a}):e.forEach(function(e,t){u[d+t].desc=s}),t||(u=u.slice(d,e.length));else u=t?u.concat(e.map(function(e){return{id:e.id,desc:a}})):e.map(function(e){return{id:e.id,desc:a}})}else{var h=u.findIndex(function(t){return t.id===e.id});if(h>-1){var p=u[h];p.desc===s?t?u.splice(h,1):(p.desc=a,u=[p]):(p.desc=s,t||(u=[p]))}else t?u.push({id:e.id,desc:a}):u=[{id:e.id,desc:a}]}this.setStateWithData({page:!r.length&&u.length||!t?0:this.state.page,sorted:u},function(){return l&&l(u,e,t)})}}},{key:"filterColumn",value:function(e,t){var n=this.getResolvedState().filtered,r=this.props.onFilteredChange,o=(n||[]).filter(function(t){return t.id!==e.id});""!==t&&o.push({id:e.id,value:t}),this.setStateWithData({filtered:o},function(){return r&&r(o,e,t)})}},{key:"resizeColumnStart",value:function(e,t,n){var r=this;e.stopPropagation();var o=e.target.parentElement.getBoundingClientRect().width,i=void 0;i=n?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:i,parentWidth:o}},function(){n?(document.addEventListener("touchmove",r.resizeColumnMoving),document.addEventListener("touchcancel",r.resizeColumnEnd),document.addEventListener("touchend",r.resizeColumnEnd)):(document.addEventListener("mousemove",r.resizeColumnMoving),document.addEventListener("mouseup",r.resizeColumnEnd),document.addEventListener("mouseleave",r.resizeColumnEnd))})}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props.onResizedChange,n=this.getResolvedState(),r=n.resized,o=n.currentlyResizing,i=r.filter(function(e){return e.id!==o.id}),a=void 0;"touchmove"===e.type?a=e.changedTouches[0].pageX:"mousemove"===e.type&&(a=e.pageX);var s=Math.max(o.parentWidth+a-o.startX,11);i.push({id:o.id,value:s}),this.setStateWithData({resized:i},function(){return t&&t(i,e)})}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),n}()},C=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var E=function(){return{}},O={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,n){var r=e.pivotId||e.id;return void 0===t[r]||String(t[r]).startsWith(e.value)},defaultSortMethod:function(e,t,n){return t=null===t||void 0===t?"":t,(e="string"===typeof(e=null===e||void 0===e?"":e)?e.toLowerCase():e)>(t="string"===typeof t?t.toLowerCase():t)?1:e1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map(function(t,o){var i=P({},t,{_viewIndex:r+=1}),a=n.concat([o]);if(i[q]&&c.get(re,a)){var s=e(i[q],a,r),l=D(s,2);i[q]=l[0],r=l[1]}return i}),r]}(Ne),Be=D(ze,1);Ne=Be[0];var je=Q>0,Ve=Q+12&&void 0!==arguments[2]?arguments[2]:[],s={original:n[X],row:n,index:n[K],viewIndex:He+=1,pageSize:J,page:Q,level:i.length,nestingPath:i.concat([r]),aggregated:n[Y],groupedByPivot:n[$],subRows:n[q]},l=c.get(re,s.nestingPath),u=C(Ge,s,void 0,e),d=c.splitProps(w(Ge,s,void 0,e));return o.a.createElement(ce,P({key:s.nestingPath.join("_")},u),o.a.createElement(ue,P({className:a()(d.className,n._viewIndex%2?"-even":"-odd"),style:d.style},d.rest),Ee.map(function(t,r){var i=ne.find(function(e){return e.id===t.id})||{},u="function"===typeof t.show?t.show():t.show,d=c.getFirstDefined(i.value,t.width,t.minWidth),h=c.getFirstDefined(i.value,t.width,t.maxWidth),p=c.splitProps(x(Ge,s,t,e)),f=c.splitProps(t.getProps(Ge,s,t,e)),g=[p.className,t.className,f.className],m=P({},p.style,t.style,f.style),v=P({},s,{isExpanded:l,column:P({},t),value:s.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ne,show:u,width:d,maxWidth:h,tdProps:p,columnProps:f,classes:g,styles:m}),y=v.value,b=void 0,C=void 0,w=void 0,_=c.normalizeComponent(t.Cell,v,y),S=t.Aggregated||(t.aggregate?t.Cell:xe),M=t.Expander||be,E=t.PivotValue||Ce,O=we||function(e){return o.a.createElement("div",null,o.a.createElement(M,e),o.a.createElement(E,e))},A=t.Pivot||O;(v.pivoted||v.expander)&&(v.expandable=!0,b=!0,!v.pivoted||v.subRows||me||(v.expandable=!1)),v.pivoted?(C=s.row[H]===t.id&&v.subRows,w=U.indexOf(t.id)>U.indexOf(s.row[H])&&v.subRows,_=C?c.normalizeComponent(A,P({},v,{value:n[G]}),n[G]):w?c.normalizeComponent(S,v,y):null):v.aggregated&&(_=c.normalizeComponent(S,v,y)),v.expander&&(_=c.normalizeComponent(M,v,n[G]),U&&(v.groupedByPivot&&(_=null),v.subRows||me||(_=null)));var T=b?function(t){var n=c.clone(re);return n=l?c.set(n,v.nestingPath,!1):c.set(n,v.nestingPath,{}),e.setStateWithData({expanded:n},function(){return ie&&ie(n,v.nestingPath,t)})}:function(){},k={onClick:T};return p.rest.onClick&&(k.onClick=function(e){p.rest.onClick(e,function(){return T(e)})}),f.rest.onClick&&(k.onClick=function(e){f.rest.onClick(e,function(){return T(e)})}),o.a.createElement(he,P({key:r+"-"+t.id,className:a()(g,!u&&"hidden",v.expandable&&"rt-expandable",(C||w)&&"rt-pivot"),style:P({},m,{flex:d+" 0 auto",width:c.asPx(d),maxWidth:c.asPx(h)})},p.rest,f.rest,k),_)})),s.subRows&&l&&s.subRows.map(function(e,n){return t(e,n,s.nestingPath)}),me&&!s.subRows&&l&&me(s))}(t,n)}),Re.map(et)),Fe?function(){var t=_(Ge,void 0,void 0,e),n=c.splitProps(S(Ge,void 0,void 0,e));return o.a.createElement(pe,P({className:t.className,style:P({},t.style,{minWidth:We+"px"})},t.rest),o.a.createElement(ue,P({className:a()(n.className),style:n.style},n.rest),Ee.map(tt)))}():null),N&&R?o.a.createElement("div",{className:"pagination-bottom"},n):null,!Ne.length&&o.a.createElement(ve,Ke,c.normalizeComponent(z)),o.a.createElement(ge,P({loading:Z,loadingText:I},Xe)))};return n?n(Ge,nt,this):nt()}}]),t}();L.propTypes=k,L.defaultProps=O;t.a=L},function(e,t,n){"use strict";var r=n(114),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r.a),n}i.Cache=r.a;var a=i,s=500;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,u=function(e){var t=a(e,function(e){return n.size===s&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,r,o){t.push(r?o.replace(c,"$1"):n||e)}),t});t.a=u},function(e,t,n){"use strict";var r=function(e,t){for(var n=-1,r=Array(e);++n1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');var n=function(e){var t=w(e,0,1),n=w(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return C(e,x,function(e,t,n,r){o[o.length]=n?C(r,_,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",a=S("%"+o+"%",t),l=a.name,c=a.value,u=!1,d=a.alias;d&&(o=d[0],b(n,y([0,1],d)));for(var h=1,p=!0;h=n.length){var E=s(c,g);c=(p=!!E)&&"get"in E&&!("originalValue"in E.get)?E.get:c[g]}else p=v(c,g),c=c[g];p&&!u&&(f[l]=c)}}return c}},function(e,t,n){"use strict";var r=n(402);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(198),o=n(201),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(199),o=n(198),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(h){c=null}e.exports=function(e){var t=s(r,a,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(r,i,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t,n){var r=n(467),o=n(148);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(112)(n(79),"Map");e.exports=r},function(e,t,n){var r=n(484),o=n(491),i=n(493),a=n(494),s=n(495);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(80),o=n(168),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(54);t.__esModule=!0,t.mergeComponents=t.nest=t.dragAccessors=void 0;var o=r(n(55)),i=r(n(152)),a=n(293),s=n(0),l={start:(0,a.wrapAccessor)(function(e){return e.start}),end:(0,a.wrapAccessor)(function(e){return e.end})};t.dragAccessors=l;var c=function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o0&&(void 0===t.events?t.events=n:t.events=Object.assign(t.events,n)),this.chartObj=new this.FusionCharts(t),this.chartObj.render(),this.oldOptions=t,this.props.onRender&&"function"===typeof this.props.onRender&&this.props.onRender(this.chartObj)}},{key:"resolveChartOptions",value:function(e){var t=e.chartConfig?e.chartConfig:{},n=a.default.reduce(function(t,n){return t[n]=e[n],t},{});return Object.assign(n,t),i.isObject(n.dataSource)&&!i.checkIfDataTableExists(n.dataSource)?n.dataSource=i.deepCopyOf(n.dataSource):i.isObject(n.dataSource)&&i.checkIfDataTableExists(n.dataSource)&&(n.dataSource=i.cloneDataSource(n.dataSource,"clone")),i.isObject(n.link)&&(n.link=i.deepCopyOf(n.link)),i.isObject(n.events)&&(n.events=Object.assign({},n.events)),n}},{key:"render",value:function(){return r.default.createElement("div",{className:this.props.className,id:this.containerId})}}]),t}();t.default=g},function(e,t,n){"use strict";e.exports=n(572)},function(e,t,n){e.exports=n(575)()},function(e,t){var n="Expected a function",r=1/0,o=1.7976931348623157e308,i=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt,h=Object.prototype.toString;function p(e,t){var p;if("function"!=typeof t)throw new TypeError(n);return e=function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==a}(e))return i;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):l.test(e)?i:+e}(e))===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}(e),n=t%1;return t===t?n?t-n:t:0}(e),function(){return--e>0&&(p=t.apply(this,arguments)),e<=1&&(t=void 0),p}}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return p(2,e)}},function(e,t,n){"use strict";var r=n(28);n(652);function o(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=!1,s=null,l="en",c=null,u=null,d="https://maps.googleapis.com/maps/api/geocode/json";function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a&&(t?console.warn(e):console.log(e))}function p(e){return function(){return i(r.mark(function e(t){var n,o;return r.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t).catch(function(){return Promise.reject(new Error("Error fetching data"))});case 2:return n=e.sent,e.next=5,n.json().catch(function(){return h("Error parsing server response"),Promise.reject(new Error("Error parsing server response"))});case 5:if("OK"!==(o=e.sent).status){e.next=9;break}return h(o),e.abrupt("return",o);case 9:return h("".concat(o.error_message,".\nServer returned status code ").concat(o.status),!0),e.abrupt("return",Promise.reject(new Error("".concat(o.error_message,".\nServer returned status code ").concat(o.status))));case 11:case"end":return e.stop()}},e)})).apply(this,arguments)}.apply(this,arguments)}var f={setApiKey:function(e){s=e},setLanguage:function(e){l=e},setRegion:function(e){c=e},setLocationType:function(e){u=e},enableDebug:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a=e},fromLatLng:function(e,t,n,o,a,f){return i(r.mark(function i(){var g,m;return r.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&t){r.next=3;break}return h("Provided coordinates are invalid",!0),r.abrupt("return",Promise.reject(new Error("Provided coordinates are invalid")));case 3:return g="".concat(e,",").concat(t),m="".concat(d,"?latlng=").concat(encodeURIComponent(g)),(n||s)&&(m+="&key=".concat(s=n||s)),(o||l)&&(m+="&language=".concat(l=o||l)),(a||c)&&(c=a||c,m+="®ion=".concat(encodeURIComponent(c))),(f||u)&&(u=f||u,m+="&location_type=".concat(encodeURIComponent(u))),r.abrupt("return",p(m));case 9:case"end":return r.stop()}},i)}))()},fromAddress:function(e,t,n,o){return i(r.mark(function i(){var a;return r.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=3;break}return h("Provided address is invalid",!0),r.abrupt("return",Promise.reject(new Error("Provided address is invalid")));case 3:return a="".concat(d,"?address=").concat(encodeURIComponent(e)),(t||s)&&(a+="&key=".concat(s=t||s)),(n||l)&&(a+="&language=".concat(l=n||l)),(o||c)&&(c=o||c,a+="®ion=".concat(encodeURIComponent(c))),r.abrupt("return",p(a));case 8:case"end":return r.stop()}},i)}))()}};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0||this.setState({skipAnimation:!1,offset:o,dragged:!0})}}},{key:"_handleLabelTouchEnd",value:function(){var e=this,t=this.state,n=t.dragStart,r=t.dragged,o=t.offset,i=t.handleWidth;if(void 0!==n&&null!==n&&!1!==n)if(r&&void 0!==r&&null!==r){var a=this.props.inverse,s=o>-i/2;s=a?!s:s,this.setState({dragStart:!1,dragged:!1,value:s},function(){e._updateContainerPosition(),e._fireStateChange(s)})}else this.setState({dragStart:!1,dragged:!1})}},{key:"_handleLabelMouseUp",value:function(){var e=this,t=this.state,n=t.dragStart,r=t.dragged,o=t.offset,i=t.handleWidth,a=this._getValue();if(void 0!==n&&null!==n&&!1!==n){var s=this.props,l=s.inverse,c=s.tristate,u=void 0;r?(u=o>-i/2,u=l?!u:u):u=c?null===a||null:!a,this.setState({dragStart:!1,dragged:!1,value:u},function(){e._updateContainerPosition(),e._fireStateChange(u)})}}},{key:"_setFocus",value:function(){this.setState({focus:!0})}},{key:"_setBlur",value:function(){this.setState({focus:!1})}},{key:"_setValue",value:function(e){var t=this,n=this._getValue();if(e!==n){var r=void 0===e?!n:e;this.setState({value:r},function(){t._updateContainerPosition(),t._fireStateChange(r)})}}},{key:"_fireStateChange",value:function(e){var t=this,n=this.props.onChange;"function"==typeof n&&setTimeout(function(){return n(t,e)},0)}},{key:"render",value:function(){var e=this.props,t=e.baseClass,n=e.inverse,r=this.state,i=r.handleWidth,a=r.labelWidth,s=r.offset,l=this._renderOnHandle(),c=this._renderOffHandle(),u=a+2*i,d=a+i;u!=d&&"auto"!=i&&"auto"!=a||(u=d="auto");var h={className:this._wrapperClasses(),style:{width:d},tabIndex:"0",onKeyDown:this._handleKeyPress.bind(this),onFocus:this._setFocus.bind(this),onBlur:this._setBlur.bind(this)},p={className:t+"-container",style:{width:u,marginLeft:s}};return o.default.createElement("div",h,o.default.createElement("div",p,n?c:l,this._renderLabel(),n?l:c))}},{key:"_renderOnHandle",value:function(){var e=this,t=this.props,n=t.baseClass,r=t.onColor,i=t.onText,a={ref:function(t){return e.elmOnHandle=t},style:{width:this.state.handleWidth},className:n+"-handle-on "+n+"-"+r,onClick:this._handleOnClick.bind(this)};return o.default.createElement("span",a,i)}},{key:"_renderOffHandle",value:function(){var e=this,t=this.props,n=t.baseClass,r=t.offColor,i=t.offText,a={ref:function(t){return e.elmOffHandle=t},style:{width:this.state.handleWidth},className:n+"-handle-off "+n+"-"+r,onClick:this._handleOffClick.bind(this)};return o.default.createElement("span",a,i)}},{key:"_renderLabel",value:function(){var e=this,t=this.props,n=t.baseClass,r=t.labelText,i={ref:function(t){return e.elmLabel=t},style:{width:this.state.labelWidth},className:n+"-label",onTouchStart:this._handleLabelMouseDown.bind(this),onTouchMove:this._handleLabelMouseMove.bind(this),onTouchEnd:this._handleLabelTouchEnd.bind(this),onMouseDown:this._handleLabelMouseDown.bind(this),onMouseMove:this._handleLabelMouseMove.bind(this),onMouseUp:this._handleLabelMouseUp.bind(this),onMouseLeave:this._handleLabelMouseUp.bind(this)};return o.default.createElement("span",i,r)}}]),t}();t.default=l,l.defaultProps={baseClass:"bootstrap-switch",wrapperClass:"wrapper",bsSize:null,handleWidth:"auto",labelWidth:"auto",onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:" ",inverse:!1,animate:!0,disabled:!1,readonly:!1,tristate:!1,defaultValue:!0,value:void 0},l.propTypes={baseClass:a.default.string,wrapperClass:a.default.string,bsSize:a.default.string,handleWidth:a.default.oneOfType([a.default.string,a.default.number]),labelWidth:a.default.oneOfType([a.default.string,a.default.number]),onColor:a.default.string,offColor:a.default.string,onText:a.default.node,offText:a.default.node,labelText:a.default.node,inverse:a.default.bool,animate:a.default.bool,disabled:a.default.bool,readonly:a.default.bool,tristate:a.default.bool,defaultValue:a.default.bool,value:a.default.bool,onChange:a.default.func}},function(e,t,n){"use strict";var r=n(88),o=n(25),i=n(71),a=n(59),s=n(212),l=n.n(s),c=n(15);function u(e,t){return!t||"object"!==l()(t)&&"function"!==typeof t?Object(c.a)(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=n(176);function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(h.a)(e,t)}var f={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},g=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,e),this.init(t,n)}return Object(a.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||f,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"===typeof e}for(var i="string"!==typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function C(e,t,n){var r=b(e,t,Object);r.obj[r.k]=n}function w(e,t){var n=b(e,t),r=n.obj,o=n.k;if(r)return r[o]}function x(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function _(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,function(e){return S[e]}):e}var E="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,O=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(i.a)(this,t),n=u(this,d(t).call(this)),E&&m.call(Object(c.a)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,m),Object(a.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!==typeof n&&(i=i.concat(n)),n&&"string"===typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),w(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),C(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!==typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=w(this.data,s)||{};r?function e(t,n,r){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"===typeof t[o]||t[o]instanceof String||"string"===typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,i):l=Object(o.a)({},l,n),C(this.data,s,l),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Object(o.a)({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),A={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}},T={},k=function(e){function t(e){var n,r,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(this,t),n=u(this,d(t).call(this)),E&&m.call(Object(c.a)(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,a=Object(c.a)(n),r.forEach(function(e){o[e]&&(a[e]=o[e])}),n.options=s,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=g.create("translator"),n}return p(t,m),Object(a.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"===typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==Object(r.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),c=l.key,u=l.namespaces,d=u[u.length-1],h=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(p){var f=n.nsSeparator||this.options.nsSeparator;return d+f+c}return c}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||c,y=g&&g.exactUsedKey||c,b=Object.prototype.toString.apply(m),C=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&m&&("string"!==typeof m&&"boolean"!==typeof m&&"number"!==typeof m)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!==typeof C||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var x="[object Array]"===b,_=x?[]:{},S=x?y:v;for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var E="".concat(S).concat(s).concat(M);_[M]=this.translate(E,Object(o.a)({},n,{joinArrays:!1,ns:u})),_[M]===E&&(_[M]=m[M])}m=_}}else if(w&&"string"===typeof C&&"[object Array]"===b)(m=m.join(C))&&(m=this.extendTranslation(m,e,n,i));else{var O=!1,A=!1,T=void 0!==n.count&&"string"!==typeof n.count,k=t.hasDefaultValue(n),D=T?this.pluralResolver.getSuffix(h,n.count):"",P=n["defaultValue".concat(D)]||n.defaultValue;!this.isValidLookup(m)&&k&&(O=!0,m=P),this.isValidLookup(m)||(A=!0,m=c);var N=k&&P!==m&&this.options.updateMissing;if(A||O||N){if(this.logger.log(N?"updateKey":"missingKey",h,d,c,N?P:m),s){var L=this.resolve(c,Object(o.a)({},n,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var I=0;I1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!==typeof s.count,h=void 0!==s.context&&"string"===typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach(function(e){a.isValidLookup(t)||(i=e,!T["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(T["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(n){if(!a.isValidLookup(t)){o=n;var i,l,u=c,p=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,c,n,e,s);else d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&h&&p.push(u+i),h&&p.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&p.push(u+=i);for(;l=p.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),t}();function D(e){return e.charAt(0).toUpperCase()+e.slice(1)}var P=function(){function e(t){Object(i.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=g.create("languageUtils")}return Object(a.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o}}]),e}(),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var R=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,e),this.languageUtils=t,this.options=n,this.logger=g.create("pluralResolver"),this.rules=function(){var e={};return N.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:L[t.fc]}})}),e}()}return Object(a.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map(function(n){return t.getSuffix(e,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(i.a)(this,e),this.logger=g.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(a.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:M,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?_(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?_(t.nestingPrefix):t.nestingPrefixEscaped||_("$t("),this.nestingSuffix=t.nestingSuffix?_(t.nestingSuffix):t.nestingSuffixEscaped||_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=x(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(x(t,l,a),c,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=u(o[1].trim())))if("function"===typeof d){var n=d(e,o,r);i="string"===typeof n?n:""}else{if(h){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"===typeof i||s.useRawValueToEscape||(i=y(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Object(o.a)({},a);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=Object(o.a)({},t,s))}catch(a){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),a),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],u=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),c=d,u=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce(function(e,t){return i.format(e,t,a.lng,a)},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var I=function(e){function t(e,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(i.a)(this,t),o=u(this,d(t).call(this)),E&&m.call(Object(c.a)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=g.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,a.backend,a),o}return p(t,m),Object(a.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))}),r||s.push(e)}),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){!function(e,t,n,r){var o=b(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){a[e].indexOf(t)<0&&a[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(s,l){s&&l&&o<5?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*i,a)},i):a(s,l)}):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Object(o.a)({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function z(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function B(){}var j=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(i.a)(this,t),e=u(this,d(t).call(this)),E&&m.call(Object(c.a)(e)),e.options=z(n),e.services={},e.logger=g,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,Object(c.a)(e));setTimeout(function(){e.init(n,r)},0)}return e}return p(t,m),Object(a.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Object(o.a)({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(r.a)(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===Object(r.a)(e[2])||"object"===Object(r.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,z(t)),this.format=this.options.interpolation.format,n||(n=B),!this.options.isClone){this.modules.logger?g.init(i(this.modules.logger),this.options):g.init(null,this.options);var a=new P(this.options);this.store=new O(this.options.resources,this.options);var s=this.services;s.logger=g,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new R(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new F(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new I(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=v(),u=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,r="string"===typeof e?e:this.language;if("function"===typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)});this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=v();return e||(e=this.languages),t||(t=this.options.ns),n||(n=B),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&A.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var o=function(e){var o="string"===typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,i=function e(t,i){var a;if("object"!==Object(r.a)(i)){for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=v();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=v();"string"===typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B,i=Object(o.a)({},this.options,n,{isClone:!0}),a=new t(i);return["store","services","language"].forEach(function(t){a[t]=e[t]}),a.services=Object(o.a)({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new k(a.services,a.options),a.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){s.headers[e]={}}),r.forEach(["post","put","patch"],function(e){s.headers[e]=r.merge(i)}),e.exports=s}).call(this,n(161))},function(e,t,n){"use strict";var r=n(60),o=n(388),i=n(390),a=n(225),s=n(391),l=n(394),c=n(395),u=n(229);e.exports=function(e){return new Promise(function(t,n){var d=e.data,h=e.headers;r.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(f+":"+g)}var m=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||c(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(h[e.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(h,function(e,t){"undefined"===typeof d&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),n(e),p=null)}),d||(d=null),p.send(d)})}},function(e,t,n){"use strict";var r=n(389);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(60);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}r.forEach(o,function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}),r.forEach(i,c),r.forEach(a,function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])}),r.forEach(s,function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))});var u=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===u.indexOf(e)});return r.forEach(d,c),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(401);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},function(e,t,n){"use strict";var r=n(202),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function p(){}h.contextTypes={transitionGroup:r.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var f=(0,a.polyfill)(h);t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(145))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(145)),o=s(n(0)),i=n(119),a=n(421);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var h=(0,i.polyfill)(d);t.default=h,e.exports=t.default},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tabs:l.a.bool,pills:l.a.bool,vertical:l.a.oneOfType([l.a.bool,l.a.string]),horizontal:l.a.string,justified:l.a.bool,fill:l.a.bool,navbar:l.a.bool,card:l.a.bool,tag:d.tagPropType,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.tabs,s=e.pills,l=e.vertical,c=e.horizontal,h=e.justified,p=e.fill,f=e.navbar,g=e.card,m=e.tag,v=Object(o.a)(e,["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"]),y=Object(d.mapToCssModules)(u()(t,f?"navbar-nav":"nav",!!c&&"justify-content-"+c,function(e){return!1!==e&&(!0===e||"xs"===e?"flex-column":"flex-"+e+"-column")}(l),{"nav-tabs":i,"card-header-tabs":g&&i,"nav-pills":s,"card-header-pills":g&&s,"nav-justified":h,"nav-fill":p}),n);return a.a.createElement(m,Object(r.a)({},v,{className:y}))};p.propTypes=h,p.defaultProps={tag:"ul",vertical:!1},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,active:l.a.bool,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.active,s=e.tag,l=Object(o.a)(e,["className","cssModule","active","tag"]),c=Object(d.mapToCssModules)(u()(t,"nav-item",!!i&&"active"),n);return a.a.createElement(s,Object(r.a)({},l,{className:c}))};p.propTypes=h,p.defaultProps={tag:"li"},t.a=p},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(25),o=n(3),i=n(15),a=n(16),s=n(0),l=n.n(s),c=n(1),u=n.n(c),d=n(83),h=n(2),p=["defaultOpen"],f=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={isOpen:t.defaultOpen||!1},n.toggle=n.toggle.bind(Object(i.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.toggle=function(e){this.setState({isOpen:!this.state.isOpen}),this.props.onToggle&&this.props.onToggle(e,!this.state.isOpen)},n.render=function(){return l.a.createElement(d.a,Object(o.a)({isOpen:this.state.isOpen,toggle:this.toggle},Object(h.omit)(this.props,p)))},t}(s.Component);f.propTypes=Object(r.a)({defaultOpen:u.a.bool,onToggle:u.a.func},d.a.propTypes)},function(e,t,n){"use strict";var r=n(3),o=n(25),i=n(7),a=n(16),s=n(0),l=n.n(s),c=n(1),u=n.n(c),d=n(6),h=n.n(d),p=n(354),f=n(75),g=n(2),m={tag:g.tagPropType,children:u.a.node.isRequired,right:u.a.bool,flip:u.a.bool,modifiers:u.a.object,className:u.a.string,cssModule:u.a.object,persist:u.a.bool,positionFixed:u.a.bool},v={flip:{enabled:!1}},y={up:"top",left:"left",right:"right",down:"bottom"},b=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.cssModule,s=t.right,c=t.tag,u=t.flip,d=t.modifiers,f=t.persist,m=t.positionFixed,b=Object(i.a)(t,["className","cssModule","right","tag","flip","modifiers","persist","positionFixed"]),C=Object(g.mapToCssModules)(h()(n,"dropdown-menu",{"dropdown-menu-right":s,show:this.context.isOpen}),a),w=c;if(f||this.context.isOpen&&!this.context.inNavbar){var x=(y[this.context.direction]||"bottom")+"-"+(s?"end":"start"),_=u?d:Object(o.a)({},d,{},v),S=!!m;return l.a.createElement(p.a,{placement:x,modifiers:_,positionFixed:S},function(t){var n=t.ref,o=t.style,i=t.placement;return l.a.createElement(w,Object(r.a)({tabIndex:"-1",role:"menu",ref:n,style:o},b,{"aria-hidden":!e.context.isOpen,className:C,"x-placement":i}))})}return l.a.createElement(w,Object(r.a)({tabIndex:"-1",role:"menu"},b,{"aria-hidden":!this.context.isOpen,className:C,"x-placement":b.placement}))},t}(l.a.Component);b.propTypes=m,b.defaultProps={tag:"div",flip:!0},b.contextType=f.a,t.a=b},function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(245),i=Object.keys,a=i?function(e){return i(e)}:n(434),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=function(e){return e!==e};e.exports=function(e,t){return 0===e&&0===t?1/e===1/t:e===t||!(!r(e)||!r(t))}},function(e,t,n){"use strict";var r=n(246);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},function(e,t,n){"use strict";var r=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,n){"use strict";var r=n(248),o=n(146).supportsDescriptors,i=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!o)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof/a/.dotAll)return e.get}return r}},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(15),a=n(16),s=n(0),l=n.n(s),c=n(1),u=n.n(c),d=n(6),h=n.n(d),p=n(75),f=n(2),g={children:u.a.node,active:u.a.bool,disabled:u.a.bool,divider:u.a.bool,tag:f.tagPropType,header:u.a.bool,onClick:u.a.func,className:u.a.string,cssModule:u.a.object,toggle:u.a.bool},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(i.a)(n)),n.getTabIndex=n.getTabIndex.bind(Object(i.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.onClick=function(e){this.props.disabled||this.props.header||this.props.divider?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))},n.getTabIndex=function(){return this.props.disabled||this.props.header||this.props.divider?"-1":"0"},n.render=function(){var e=this.getTabIndex(),t=e>-1?"menuitem":void 0,n=Object(f.omit)(this.props,["toggle"]),i=n.className,a=n.cssModule,s=n.divider,c=n.tag,u=n.header,d=n.active,p=Object(o.a)(n,["className","cssModule","divider","tag","header","active"]),g=Object(f.mapToCssModules)(h()(i,{disabled:p.disabled,"dropdown-item":!s&&!u,active:d,"dropdown-header":u,"dropdown-divider":s}),a);return"button"===c&&(u?c="h6":s?c="div":p.href&&(c="a")),l.a.createElement(c,Object(r.a)({type:"button"===c&&(p.onClick||this.props.toggle)?"button":void 0},p,{tabIndex:e,role:t,className:g,onClick:this.onClick}))},t}(l.a.Component);m.propTypes=g,m.defaultProps={tag:"button",toggle:!0},m.contextType=p.a,t.a=m},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h=l.a.oneOfType([l.a.number,l.a.string]),p=l.a.oneOfType([l.a.bool,l.a.number,l.a.string,l.a.shape({size:l.a.oneOfType([l.a.bool,l.a.number,l.a.string]),order:h,offset:h})]),f={tag:d.tagPropType,xs:p,sm:p,md:p,lg:p,xl:p,className:l.a.string,cssModule:l.a.object,widths:l.a.array},g={tag:"div",widths:["xs","sm","md","lg","xl"]},m=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},v=function(e){var t=e.className,n=e.cssModule,i=e.widths,s=e.tag,l=Object(o.a)(e,["className","cssModule","widths","tag"]),c=[];i.forEach(function(t,r){var o=e[t];if(delete l[t],o||""===o){var i=!r;if(Object(d.isObject)(o)){var a,s=i?"-":"-"+t+"-",h=m(i,t,o.size);c.push(Object(d.mapToCssModules)(u()(((a={})[h]=o.size||""===o.size,a["order"+s+o.order]=o.order||0===o.order,a["offset"+s+o.offset]=o.offset||0===o.offset,a)),n))}else{var p=m(i,t,o);c.push(p)}}}),c.length||c.push("col");var h=Object(d.mapToCssModules)(u()(t,c),n);return a.a.createElement(s,Object(r.a)({},l,{className:h}))};v.propTypes=f,v.defaultProps=g,t.a=v},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,inverse:l.a.bool,color:l.a.string,body:l.a.bool,outline:l.a.bool,className:l.a.string,cssModule:l.a.object,innerRef:l.a.oneOfType([l.a.object,l.a.string,l.a.func])},p=function(e){var t=e.className,n=e.cssModule,i=e.color,s=e.body,l=e.inverse,c=e.outline,h=e.tag,p=e.innerRef,f=Object(o.a)(e,["className","cssModule","color","body","inverse","outline","tag","innerRef"]),g=Object(d.mapToCssModules)(u()(t,"card",!!l&&"text-white",!!s&&"card-body",!!i&&(c?"border":"bg")+"-"+i),n);return a.a.createElement(h,Object(r.a)({},f,{className:g,ref:p}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,className:l.a.string,cssModule:l.a.object,innerRef:l.a.oneOfType([l.a.object,l.a.string,l.a.func])},p=function(e){var t=e.className,n=e.cssModule,i=e.innerRef,s=e.tag,l=Object(o.a)(e,["className","cssModule","innerRef","tag"]),c=Object(d.mapToCssModules)(u()(t,"card-body"),n);return a.a.createElement(s,Object(r.a)({},l,{className:c,ref:i}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h=l.a.oneOfType([l.a.number,l.a.string]),p={tag:d.tagPropType,noGutters:l.a.bool,className:l.a.string,cssModule:l.a.object,form:l.a.bool,xs:h,sm:h,md:h,lg:h,xl:h},f={tag:"div",widths:["xs","sm","md","lg","xl"]},g=function(e){var t=e.className,n=e.cssModule,i=e.noGutters,s=e.tag,l=e.form,c=e.widths,h=Object(o.a)(e,["className","cssModule","noGutters","tag","form","widths"]),p=[];c.forEach(function(t,n){var r=e[t];if(delete h[t],r){var o=!n;p.push(o?"row-cols-"+r:"row-cols-"+t+"-"+r)}});var f=Object(d.mapToCssModules)(u()(t,i?"no-gutters":null,l?"form-row":"row",p),n);return a.a.createElement(s,Object(r.a)({},h,{className:f}))};g.propTypes=p,g.defaultProps=f,t.a=g},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.tag,s=Object(o.a)(e,["className","cssModule","tag"]),l=Object(d.mapToCssModules)(u()(t,"card-title"),n);return a.a.createElement(i,Object(r.a)({},s,{className:l}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.tag,s=Object(o.a)(e,["className","cssModule","tag"]),l=Object(d.mapToCssModules)(u()(t,"card-footer"),n);return a.a.createElement(i,Object(r.a)({},s,{className:l}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},L={};function R(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(L[e]=o),t&&(L[t[0]]=function(){return k(o.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=I(t,e.localeData()),N[t]=N[t]||function(e){var t,n,r,o=e.match(D);for(t=0,n=o.length;t=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var z={};function B(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function j(e){return"string"===typeof e?z[e]||z[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)a(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var W={};function H(e,t){W[e]=t}function G(e){return e%4===0&&e%100!==0||e%400===0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function Y(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var $,Z=/\d/,J=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){$[e]=O(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return a($,e)?$[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}$={};var me={};function ve(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n68?1900:2e3)};var je=Y("FullYear",!0);function Ve(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,n){var r=7+t-n,o=(7+Ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function He(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=We(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Be(i=e-1)+c:c>Be(e)?(i=e+1,a=c-Be(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ue(o,t,n)):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ue(e,t,n){var r=We(e,t,n),o=We(e+1,t,n);return(Be(e)-r+o)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,J),pe("W",ne),pe("WW",ne,J),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=q(e)}),R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=q(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=he,Ze=he,Je=he;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),o=ge(this.weekdaysShort(n,"")),i=ge(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,et),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+et.apply(this)+k(this.minutes(),2)}),R("hmmss",0,0,function(){return""+et.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+k(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)}),tt("a",!0),tt("A",!1),B("hour","h"),H("hour",13),pe("a",nt),pe("A",nt),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,J),pe("hh",ne,J),pe("kk",ne,J),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),ve(["H","HH"],Se),ve(["k","kk"],function(e,t,n){var r=q(e);t[Se]=24===r?0:r}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[Se]=q(e),f(n).bigHour=!0}),ve("hmm",function(e,t,n){var r=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r)),f(n).bigHour=!0}),ve("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r,2)),t[Ee]=q(e.substr(o)),f(n).bigHour=!0}),ve("Hmm",function(e,t,n){var r=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r))}),ve("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r,2)),t[Ee]=q(e.substr(o))});var rt,ot=Y("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Pe,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&<(o,n)>=t-1)break;t--}i++}return rt}(e)}function ft(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[xe]<0||n[xe]>11?xe:n[_e]<1||n[_e]>ke(n[we],n[xe])?_e:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Me]||0!==n[Ee]||0!==n[Oe])?Se:n[Me]<0||n[Me]>59?Me:n[Ee]<0||n[Ee]>59?Ee:n[Oe]<0||n[Oe]>999?Oe:-1,f(e)._overflowDayOfYear&&(t_e)&&(t=_e),f(e)._overflowWeeks&&-1===t&&(t=Ae),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ct=/^\/?Date\((-?\d+)/i,wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,r,o,i,a,s=e._i,l=gt.exec(s)||mt.exec(s);if(l){for(f(e).iso=!0,t=0,n=yt.length;t7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Ge(Dt(),i,a),n=Et(t.gg,e._a[we],c.year),r=Et(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Ue(n,i,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=He(n,r,o,i,a),e._a[we]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Et(e._a[we],o[we]),(e._dayOfYear>Be(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ve(a,0,e._dayOfYear),e._a[xe]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Me]&&0===e._a[Ee]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ve:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(f(e).weekdayMismatch=!0)}}function At(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,o,i,a,s,l=""+e._i,c=l.length,u=0;for(o=I(e._f,e._locale).match(D)||[],t=0;t0&&f(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),L[i]?(n?f(e).empty=!1:f(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&f(e).unusedTokens.push(i);f(e).charsLeftOver=c-u,l.length>0&&f(e).unusedInput.push(l),e._a[Se]<=12&&!0===f(e).bigHour&&e._a[Se]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(s=f(e).era)&&(e._a[we]=e._locale.erasConvertYear(s,e._a[we])),Ot(e),ft(e)}else Mt(e);else _t(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new C(ft(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function Lt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-cn:new Date(e,t,n).valueOf()}function hn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cn:Date.UTC(e,t,n)}function pn(e,t){return t.erasAbbrRegex(e)}function fn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;ei&&(t=i),function(e,t,n,r,o){var i=He(e,t,n,r,o),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),pe("N",pn),pe("NN",pn),pe("NNN",pn),pe("NNNN",function(e,t){return t.erasNameRegex(e)}),pe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?f(n).era=o:f(n).invalidEra=e}),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",function(e,t){return t._eraYearOrdinalRegex||le}),ve(["y","yy","yyy","yyyy"],we),ve(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,o):t[we]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gn("gggg","weekYear"),gn("ggggg","weekYear"),gn("GGGG","isoWeekYear"),gn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",ne,J),pe("gg",ne,J),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=q(e)}),ye(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),pe("Q",Z),ve("Q",function(e,t){t[xe]=3*(q(e)-1)}),R("D",["DD",2],"Do","date"),B("date","D"),H("date",9),pe("D",ne),pe("DD",ne,J),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],_e),ve("Do",function(e,t){t[_e]=q(e.match(ne)[0])});var vn=Y("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",Q),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=q(e)}),R("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,J),ve(["m","mm"],Me);var yn=Y("Minutes",!1);R("s",["ss",2],0,"second"),B("second","s"),H("second",15),pe("s",ne),pe("ss",ne,J),ve(["s","ss"],Ee);var bn,Cn,wn=Y("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),H("millisecond",16),pe("S",ie,Z),pe("SS",ie,J),pe("SSS",ie,Q),bn="SSSS";bn.length<=9;bn+="S")pe(bn,le);function xn(e,t){t[Oe]=q(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ve(bn,xn);Cn=Y("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var _n=C.prototype;function Sn(e){return e}_n.add=Jt,_n.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?w(n=arguments[0])||u(n)||en(n)||c(n)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&en(e)}).length),t&&n}(n)||function(e){var t,n,r=i(e)&&!s(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Gt,_n.isUTC=Gt,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=_("dates accessor is deprecated. Use date instead.",vn),_n.months=_("months accessor is deprecated. Use month instead",Ie),_n.years=_("years accessor is deprecated. Use year instead",je),_n.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),_n.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted});var Mn=T.prototype;function En(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function On(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return En(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=En(e,r,n,"month");return o}function An(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),a=e?i._week.dow:0,s=[];if(null!=n)return En(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=En(t,(o+a)%7,r,"day");return s}Mn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},Mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Mn.invalidDate=function(){return this._invalidDate},Mn.ordinal=function(e){return this._ordinal.replace("%d",e)},Mn.preparse=Sn,Mn.postformat=Sn,Mn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)},Mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},Mn.set=function(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Mn.eras=function(e,t){var n,o,i,a=this._eras||pt("en")._eras;for(n=0,o=a.length;n=0)return l[r]},Mn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Mn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||fn.call(this),e?this._erasAbbrRegex:this._erasRegex},Mn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||fn.call(this),e?this._erasNameRegex:this._erasRegex},Mn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||fn.call(this),e?this._erasNarrowRegex:this._erasRegex},Mn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},Mn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Mn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ce.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ce.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ce.call(this._shortMonthsParse,a))?o:-1!==(o=Ce.call(this._longMonthsParse,a))?o:null:-1!==(o=Ce.call(this._longMonthsParse,a))?o:-1!==(o=Ce.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Mn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Mn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Mn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},Mn.firstDayOfYear=function(){return this._week.doy},Mn.firstDayOfWeek=function(){return this._week.dow},Mn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},Mn.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Mn.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Mn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ce.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Mn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",dt),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",pt);var Tn=Math.abs;function kn(e,t,n,r){var o=Yt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function Nn(e){return 146097*e/4800}function Ln(e){return function(){return this.as(e)}}var Rn=Ln("ms"),Fn=Ln("s"),In=Ln("m"),zn=Ln("h"),Bn=Ln("d"),jn=Ln("w"),Vn=Ln("M"),Wn=Ln("Q"),Hn=Ln("y");function Gn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Gn("milliseconds"),qn=Gn("seconds"),Yn=Gn("minutes"),Xn=Gn("hours"),Kn=Gn("days"),$n=Gn("months"),Zn=Gn("years"),Jn=Math.round,Qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},er=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function nr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=er(this._milliseconds)/1e3,c=er(this._days),u=er(this._months),d=this.asSeconds();return d?(e=U(l/60),t=U(e/60),l%=60,e%=60,n=U(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=tr(this._months)!==tr(d)?"-":"",a=tr(this._days)!==tr(d)?"-":"",s=tr(this._milliseconds)!==tr(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var rr=Ft.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},rr.add=function(e,t){return kn(this,e,t,1)},rr.subtract=function(e,t){return kn(this,e,t,-1)},rr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},rr.asMilliseconds=Rn,rr.asSeconds=Fn,rr.asMinutes=In,rr.asHours=zn,rr.asDays=Bn,rr.asWeeks=jn,rr.asMonths=Vn,rr.asQuarters=Wn,rr.asYears=Hn,rr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},rr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Dn(Nn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=U(i/1e3),l.seconds=e%60,t=U(e/60),l.minutes=t%60,n=U(t/60),l.hours=n%24,a+=U(n/24),o=U(Pn(a)),s+=o,a-=Dn(Nn(o)),r=U(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},rr.clone=function(){return Yt(this)},rr.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},rr.milliseconds=Un,rr.seconds=qn,rr.minutes=Yn,rr.hours=Xn,rr.days=Kn,rr.weeks=function(){return U(this.days()/7)},rr.months=$n,rr.years=Zn,rr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Qn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},Qn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Yt(e).abs(),i=Jn(o.as("s")),a=Jn(o.as("m")),s=Jn(o.as("h")),l=Jn(o.as("d")),c=Jn(o.as("M")),u=Jn(o.as("w")),d=Jn(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,h)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},rr.toISOString=nr,rr.toString=nr,rr.toJSON=nr,rr.locale=nn,rr.localeData=on,rr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),rr.lang=rn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date(q(e))}),r.version="2.29.1",t=Dt,r.fn=_n,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return On(e,t,"months")},r.isDate=u,r.locale=dt,r.invalid=m,r.duration=Yt,r.isMoment=w,r.weekdays=function(e,t,n){return An(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=pt,r.isDuration=It,r.monthsShort=function(e,t){return On(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return An(e,t,n,"weekdaysMin")},r.defineLocale=ht,r.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=at[e]&&null!=at[e].parentLocale?at[e].set(A(at[e]._config,t)):(null!=(r=ut(e))&&(o=r._config),t=A(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=at[e],at[e]=n),dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===dt()&&dt(e)):null!=at[e]&&delete at[e]);return at[e]},r.locales=function(){return S(at)},r.weekdaysShort=function(e,t,n){return An(e,t,n,"weekdaysShort")},r.normalizeUnits=j,r.relativeTimeRounding=function(e){return void 0===e?Jn:"function"===typeof e&&(Jn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=_n,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(116)(e))},function(e,t,n){"use strict";var r=Object.prototype.propertyIsEnumerable;function o(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return r.call(e,t)})}e.exports=Object.assign||function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;ah))return!1;var f=u.get(e),g=u.get(t);if(f&&g)return f==t&&g==e;var m=-1,v=!0,y=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m-1&&e%1==0&&e-1,y=new RegExp("\\D","g"),b=u||("select"===i||"textarea"===i?i:"input"),C="form-control";f?(C+="-plaintext",b=u||"input"):"file"===i?C+="-file":v&&(C=d?null:"form-check-input"),m.size&&y.test(m.size)&&(Object(p.warnOnce)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),a=m.size,delete m.size);var w=Object(p.mapToCssModules)(h()(t,c&&"is-invalid",s&&"is-valid",!!a&&"form-control-"+a,C),n);return("input"===b||u&&"function"===typeof u)&&(m.type=i),m.children&&!f&&"select"!==i&&"string"===typeof b&&"select"!==b&&(Object(p.warnOnce)('Input with a type of "'+i+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete m.children),l.a.createElement(b,Object(r.a)({},m,{ref:g,className:w}))},t}(l.a.Component);g.propTypes=f,g.defaultProps={type:"text"},t.a=g},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,size:l.a.string,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.tag,s=e.size,l=Object(o.a)(e,["className","cssModule","tag","size"]),c=Object(d.mapToCssModules)(u()(t,"input-group",s?"input-group-"+s:null),n);return a.a.createElement(i,Object(r.a)({},l,{className:c}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h=n(174),p={tag:d.tagPropType,addonType:l.a.oneOf(["prepend","append"]).isRequired,children:l.a.node,className:l.a.string,cssModule:l.a.object},f=function(e){var t=e.className,n=e.cssModule,i=e.tag,s=e.addonType,l=e.children,c=Object(o.a)(e,["className","cssModule","tag","addonType","children"]),p=Object(d.mapToCssModules)(u()(t,"input-group-"+s),n);return"string"===typeof l?a.a.createElement(i,Object(r.a)({},c,{className:p}),a.a.createElement(h.a,{children:l})):a.a.createElement(i,Object(r.a)({},c,{className:p,children:l}))};f.propTypes=p,f.defaultProps={tag:"div"},t.a=f},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h=l.a.oneOfType([l.a.number,l.a.string]),p=l.a.oneOfType([l.a.string,l.a.number,l.a.shape({size:h,order:h,offset:h})]),f={children:l.a.node,hidden:l.a.bool,check:l.a.bool,size:l.a.string,for:l.a.string,tag:d.tagPropType,className:l.a.string,cssModule:l.a.object,xs:p,sm:p,md:p,lg:p,xl:p,widths:l.a.array},g={tag:"label",widths:["xs","sm","md","lg","xl"]},m=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},v=function(e){var t=e.className,n=e.cssModule,i=e.hidden,s=e.widths,l=e.tag,c=e.check,h=e.size,p=e.for,f=Object(o.a)(e,["className","cssModule","hidden","widths","tag","check","size","for"]),g=[];s.forEach(function(t,r){var o=e[t];if(delete f[t],o||""===o){var i,a=!r;if(Object(d.isObject)(o)){var s,l=a?"-":"-"+t+"-";i=m(a,t,o.size),g.push(Object(d.mapToCssModules)(u()(((s={})[i]=o.size||""===o.size,s["order"+l+o.order]=o.order||0===o.order,s["offset"+l+o.offset]=o.offset||0===o.offset,s))),n)}else i=m(a,t,o),g.push(i)}});var v=Object(d.mapToCssModules)(u()(t,!!i&&"sr-only",!!c&&"form-check-label",!!h&&"col-form-label-"+h,g,!!g.length&&"col-form-label"),n);return a.a.createElement(l,Object(r.a)({htmlFor:p},f,{className:v}))};v.propTypes=f,v.defaultProps=g,t.a=v},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={children:l.a.node,tag:d.tagPropType,className:l.a.string,cssModule:l.a.object,valid:l.a.bool,tooltip:l.a.bool},p={tag:"div",valid:void 0},f=function(e){var t=e.className,n=e.cssModule,i=e.valid,s=e.tooltip,l=e.tag,c=Object(o.a)(e,["className","cssModule","valid","tooltip","tag"]),h=s?"tooltip":"feedback",p=Object(d.mapToCssModules)(u()(t,i?"valid-"+h:"invalid-"+h),n);return a.a.createElement(l,Object(r.a)({},c,{className:p}))};f.propTypes=h,f.defaultProps=p,t.a=f},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={children:l.a.node,className:l.a.string,listClassName:l.a.string,cssModule:l.a.object,size:l.a.string,tag:d.tagPropType,listTag:d.tagPropType,"aria-label":l.a.string},p=function(e){var t,n=e.className,i=e.listClassName,s=e.cssModule,l=e.size,c=e.tag,h=e.listTag,p=e["aria-label"],f=Object(o.a)(e,["className","listClassName","cssModule","size","tag","listTag","aria-label"]),g=Object(d.mapToCssModules)(u()(n),s),m=Object(d.mapToCssModules)(u()(i,"pagination",((t={})["pagination-"+l]=!!l,t)),s);return a.a.createElement(c,{className:g,"aria-label":p},a.a.createElement(h,Object(r.a)({},f,{className:m})))};p.propTypes=h,p.defaultProps={tag:"nav",listTag:"ul","aria-label":"pagination"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={active:l.a.bool,children:l.a.node,className:l.a.string,cssModule:l.a.object,disabled:l.a.bool,tag:d.tagPropType},p=function(e){var t=e.active,n=e.className,i=e.cssModule,s=e.disabled,l=e.tag,c=Object(o.a)(e,["active","className","cssModule","disabled","tag"]),h=Object(d.mapToCssModules)(u()(n,"page-item",{active:t,disabled:s}),i);return a.a.createElement(l,Object(r.a)({},c,{className:h}))};p.propTypes=h,p.defaultProps={tag:"li"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={"aria-label":l.a.string,children:l.a.node,className:l.a.string,cssModule:l.a.object,next:l.a.bool,previous:l.a.bool,first:l.a.bool,last:l.a.bool,tag:d.tagPropType},p=function(e){var t,n=e.className,i=e.cssModule,s=e.next,l=e.previous,c=e.first,h=e.last,p=e.tag,f=Object(o.a)(e,["className","cssModule","next","previous","first","last","tag"]),g=Object(d.mapToCssModules)(u()(n,"page-link"),i);l?t="Previous":s?t="Next":c?t="First":h&&(t="Last");var m,v=e["aria-label"]||t;l?m="\u2039":s?m="\u203a":c?m="\xab":h&&(m="\xbb");var y=e.children;return y&&Array.isArray(y)&&0===y.length&&(y=null),f.href||"a"!==p||(p="button"),(l||s||c||h)&&(y=[a.a.createElement("span",{"aria-hidden":"true",key:"caret"},y||m),a.a.createElement("span",{className:"sr-only",key:"sr"},v)]),a.a.createElement(p,Object(r.a)({},f,{className:g,"aria-label":v}),y)};p.propTypes=h,p.defaultProps={tag:"a"},t.a=p},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(15),a=n(16),s=n(0),l=n.n(s),c=n(1),u=n.n(c),d=n(6),h=n.n(d),p=n(2),f={children:u.a.node,inline:u.a.bool,tag:p.tagPropType,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),className:u.a.string,cssModule:u.a.object},g=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind(Object(i.a)(n)),n.submit=n.submit.bind(Object(i.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.submit=function(){this.ref&&this.ref.submit()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,i=e.inline,a=e.tag,s=e.innerRef,c=Object(o.a)(e,["className","cssModule","inline","tag","innerRef"]),u=Object(p.mapToCssModules)(h()(t,!!i&&"form-inline"),n);return l.a.createElement(a,Object(r.a)({},c,{ref:s,className:u}))},t}(s.Component);g.propTypes=f,g.defaultProps={tag:"form"},t.a=g},function(e,t,n){"use strict";var r=n(3),o=n(7),i=n(0),a=n.n(i),s=n(1),l=n.n(s),c=n(6),u=n.n(c),d=n(2),h={tag:d.tagPropType,className:l.a.string,cssModule:l.a.object},p=function(e){var t=e.className,n=e.cssModule,i=e.tag,s=Object(o.a)(e,["className","cssModule","tag"]),l=Object(d.mapToCssModules)(u()(t,"modal-body"),n);return a.a.createElement(i,Object(r.a)({},s,{className:l}))};p.propTypes=h,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(54);t.__esModule=!0,t.DayLayoutAlgorithmPropType=t.views=t.dateRangeFormat=t.dateFormat=t.accessor=void 0;var o=r(n(29)),i=n(585),a=Object.keys(i.views).map(function(e){return i.views[e]}),s=o.default.oneOfType([o.default.string,o.default.func]);t.accessor=s;var l=o.default.any;t.dateFormat=l;var c=o.default.func;t.dateRangeFormat=c;var u=o.default.oneOfType([o.default.arrayOf(o.default.oneOf(a)),o.default.objectOf(function(e,t){if(-1!==a.indexOf(t)&&"boolean"===typeof e[t])return null;for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i(void 0===m?h:m)||s-ng)}function d(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),n=t.left+h("left"),r=t.top+h("top");return{top:r,left:n,right:(e.offsetWidth||0)+n,bottom:(e.offsetHeight||0)+r}}function h(e){return"left"===e?window.pageXOffset||document.body.scrollLeft||0:"top"===e?window.pageYOffset||document.body.scrollTop||0:void 0}var p=function(){function e(e,t){var n=void 0===t?{}:t,r=n.global,o=void 0!==r&&r,i=n.longPressThreshold,a=void 0===i?250:i;this.isDetached=!1,this.container=e,this.globalMouse=!e||o,this.longPressThreshold=a,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=s("touchmove",function(){},window),this._removeKeyDownListener=s("keydown",this._keyListener),this._removeKeyUpListener=s("keyup",this._keyListener),this._removeDropFromOutsideListener=s("drop",this._dropFromOutsideListener),this._onDragOverfromOutisde=s("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}var t=e.prototype;return t.on=function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);return n.push(t),{remove:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},t.emit=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=e.top&&r<=e.bottom&&n>=e.left&&n<=e.right},t.dateCellSelection=function(e,t,n,i,a){var s=-1,l=-1,c=i-1,u=r(t,i),d=o(t,n.x,a,i),h=t.topn.y,p=t.tope.y,f=e.y>t.bottom,g=t.top>e.y;n.topt.bottom&&(s=0,l=c);h&&(g?(s=0,l=d):f&&(s=d,l=c));p&&(s=l=a?c-Math.floor((e.x-t.left)/u):Math.floor((e.x-t.left)/u),h?d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,[]),r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=function(){function e(){this.watermarkMessage=void 0}var t;return t=e,e.prototype.validateLicense=function(){if(i._.missingOrEmpty(t.licenseKey))this.outputMissingLicenseKey();else if(t.licenseKey.length>32){var e=t.extractLicenseComponents(t.licenseKey),n=e.md5,r=e.license,o=e.version,a=e.isTrial;n===this.md5.md5(r)?i._.exists(o)&&o?this.validateLicenseKeyForVersion(o,!!a,r):this.validateLegacyKey(r):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},e.extractExpiry=function(e){var n=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(t.decode(n),10))},e.extractLicenseComponents=function(e){var n=e.length-32,r=e.substring(n),o=e.substring(0,n),i=t.extractBracketedInformation(e);return{md5:r,license:o,version:i[0],isTrial:i[1]}},e.prototype.getLicenseDetails=function(e){var n=t.extractLicenseComponents(e),r=n.md5,o=n.license,i=n.version,a=n.isTrial,s=r===this.md5.md5(o),l=null;return s&&(l=t.extractExpiry(o),s=!isNaN(l.getTime())),{licenseKey:e,valid:s,expiry:s?t.formatDate(l):null,version:i||"legacy",isTrial:a}},e.prototype.isDisplayWatermark=function(){return!i._.missingOrEmpty(this.watermarkMessage)},e.prototype.getWatermarkMessage=function(){return this.watermarkMessage},e.formatDate=function(e){var t=e.getDate(),n=e.getMonth(),r=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][n]+" "+r},e.getGridReleaseDate=function(){return new Date(parseInt(t.decode(t.RELEASE_INFORMATION),10))},e.decode=function(e){for(var n,r,o,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0,d=e.replace(/[^A-Za-z0-9+/=]/g,"");u>4,r=(15&i)<<4|(a=l.indexOf(d.charAt(u++)))>>2,o=(3&a)<<6|(s=l.indexOf(d.charAt(u++))),c+=String.fromCharCode(n),64!=a&&(c+=String.fromCharCode(r)),64!=s&&(c+=String.fromCharCode(o));return c=t.utf8_decode(c)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},e.setLicenseKey=function(e){t.licenseKey=e},e.extractBracketedInformation=function(e){var t=e.split("[").filter(function(e){return e.indexOf("]")>-1}).map(function(e){return e.split("]")[0]});if(!t||0===t.length)return[null,null];var n=1===t.filter(function(e){return"TRIAL"===e}).length;return[t.filter(function(e){return 0===e.indexOf("v")}).map(function(e){return e.replace(/^v/,"")})[0],n]},e.prototype.validateLicenseKeyForVersion=function(e,t,n){switch(e){case"2":t?this.validateForTrial(n):this.validateLegacyKey(n)}},e.prototype.validateLegacyKey=function(e){var n=t.getGridReleaseDate(),r=t.extractExpiry(e),o=!1,i=!1;if(isNaN(r.getTime())||(o=!0,i=nr),o){if(!i){var a=t.formatDate(n);this.outputExpiredTrialKey(a)}}else this.outputInvalidLicenseKey()},e.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for ag-Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},e.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},e.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** ag-Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All ag-Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},e.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("********************************************* ag-Grid Enterprise License ***************************************************"),console.error("*************************** License not compatible with installed version of ag-Grid Enterprise. ***************************"),console.error("* Your license for ag-Grid Enterprise expired on "+e+" but the version installed was released on "+t+". *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="Incompatible License Version"},e.RELEASE_INFORMATION="MTU3NjA1OTQ4NDg4MA==",a([i.Autowired("md5")],e.prototype,"md5",void 0),a([i.PreConstruct],e.prototype,"validateLicense",null),e=t=a([i.Bean("licenseManager")],e)}(),l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=this.ff(n,r,o,i,t[0],7,-680876936),i=this.ff(i,n,r,o,t[1],12,-389564586),o=this.ff(o,i,n,r,t[2],17,606105819),r=this.ff(r,o,i,n,t[3],22,-1044525330),n=this.ff(n,r,o,i,t[4],7,-176418897),i=this.ff(i,n,r,o,t[5],12,1200080426),o=this.ff(o,i,n,r,t[6],17,-1473231341),r=this.ff(r,o,i,n,t[7],22,-45705983),n=this.ff(n,r,o,i,t[8],7,1770035416),i=this.ff(i,n,r,o,t[9],12,-1958414417),o=this.ff(o,i,n,r,t[10],17,-42063),r=this.ff(r,o,i,n,t[11],22,-1990404162),n=this.ff(n,r,o,i,t[12],7,1804603682),i=this.ff(i,n,r,o,t[13],12,-40341101),o=this.ff(o,i,n,r,t[14],17,-1502002290),r=this.ff(r,o,i,n,t[15],22,1236535329),n=this.gg(n,r,o,i,t[1],5,-165796510),i=this.gg(i,n,r,o,t[6],9,-1069501632),o=this.gg(o,i,n,r,t[11],14,643717713),r=this.gg(r,o,i,n,t[0],20,-373897302),n=this.gg(n,r,o,i,t[5],5,-701558691),i=this.gg(i,n,r,o,t[10],9,38016083),o=this.gg(o,i,n,r,t[15],14,-660478335),r=this.gg(r,o,i,n,t[4],20,-405537848),n=this.gg(n,r,o,i,t[9],5,568446438),i=this.gg(i,n,r,o,t[14],9,-1019803690),o=this.gg(o,i,n,r,t[3],14,-187363961),r=this.gg(r,o,i,n,t[8],20,1163531501),n=this.gg(n,r,o,i,t[13],5,-1444681467),i=this.gg(i,n,r,o,t[2],9,-51403784),o=this.gg(o,i,n,r,t[7],14,1735328473),r=this.gg(r,o,i,n,t[12],20,-1926607734),n=this.hh(n,r,o,i,t[5],4,-378558),i=this.hh(i,n,r,o,t[8],11,-2022574463),o=this.hh(o,i,n,r,t[11],16,1839030562),r=this.hh(r,o,i,n,t[14],23,-35309556),n=this.hh(n,r,o,i,t[1],4,-1530992060),i=this.hh(i,n,r,o,t[4],11,1272893353),o=this.hh(o,i,n,r,t[7],16,-155497632),r=this.hh(r,o,i,n,t[10],23,-1094730640),n=this.hh(n,r,o,i,t[13],4,681279174),i=this.hh(i,n,r,o,t[0],11,-358537222),o=this.hh(o,i,n,r,t[3],16,-722521979),r=this.hh(r,o,i,n,t[6],23,76029189),n=this.hh(n,r,o,i,t[9],4,-640364487),i=this.hh(i,n,r,o,t[12],11,-421815835),o=this.hh(o,i,n,r,t[15],16,530742520),r=this.hh(r,o,i,n,t[2],23,-995338651),n=this.ii(n,r,o,i,t[0],6,-198630844),i=this.ii(i,n,r,o,t[7],10,1126891415),o=this.ii(o,i,n,r,t[14],15,-1416354905),r=this.ii(r,o,i,n,t[5],21,-57434055),n=this.ii(n,r,o,i,t[12],6,1700485571),i=this.ii(i,n,r,o,t[3],10,-1894986606),o=this.ii(o,i,n,r,t[10],15,-1051523),r=this.ii(r,o,i,n,t[1],21,-2054922799),n=this.ii(n,r,o,i,t[8],6,1873313359),i=this.ii(i,n,r,o,t[15],10,-30611744),o=this.ii(o,i,n,r,t[6],15,-1560198380),r=this.ii(r,o,i,n,t[13],21,1309151649),n=this.ii(n,r,o,i,t[4],6,-145523070),i=this.ii(i,n,r,o,t[11],10,-1120210379),o=this.ii(o,i,n,r,t[2],15,718787259),r=this.ii(r,o,i,n,t[9],21,-343485551),e[0]=this.add32(n,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(o,e[2]),e[3]=this.add32(i,e[3])},e.prototype.cmn=function(e,t,n,r,o,i){return t=this.add32(this.add32(t,e),this.add32(r,i)),this.add32(t<>>32-o,n)},e.prototype.ff=function(e,t,n,r,o,i,a){return this.cmn(t&n|~t&r,e,t,o,i,a)},e.prototype.gg=function(e,t,n,r,o,i,a){return this.cmn(t&r|n&~r,e,t,o,i,a)},e.prototype.hh=function(e,t,n,r,o,i,a){return this.cmn(t^n^r,e,t,o,i,a)},e.prototype.ii=function(e,t,n,r,o,i,a){return this.cmn(n^(t|~r),e,t,o,i,a)},e.prototype.md51=function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(r,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,this.md5cycle(r,o),r},e.prototype.md5blk=function(e){for(var t=[],n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),n="",r=0;r<4;r++)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n},e.prototype.hex=function(e){for(var t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n},l([i.PostConstruct],e.prototype,"init",null),e=l([i.Bean("md5")],e)}(),u=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},h=function(e){function t(){return e.call(this,'
\n
\n
')||this}return u(t,e),t.prototype.postConstruct=function(){var e=this,t=this.shouldDisplayWatermark();i._.addOrRemoveCssClass(this.getGui(),"ag-hidden",!t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(function(){return e.addCssClass("ag-opacity-zero")},0),window.setTimeout(function(){return e.addCssClass("ag-hidden")},5e3))},t.prototype.shouldDisplayWatermark=function(){var e=this.licenseManager.isDisplayWatermark(),t=null!=location.hostname.match("^127.0.0.1|localhost|www.ag-grid.com$");return-1!==location.search.indexOf("forceWatermark")||e&&!t},d([i.Autowired("licenseManager")],t.prototype,"licenseManager",void 0),d([i.RefSelector("eLicenseTextRef")],t.prototype,"eLicenseTextRef",void 0),d([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),p={moduleName:i.ModuleNames.EnterpriseCoreModule,beans:[s,c],agStackComponents:[{componentName:"AgWatermark",componentClass:h}]},f=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(r||(r={})),function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INDETERMINATE=2]="INDETERMINATE"}(o||(o={}));var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.preConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setTemplate('')},t.prototype.postConstruct=function(){this.createExpandIcons(),this.gridOptionsWrapper.useNativeCheckboxes()?(this.eSelectCheckbox=document.createElement("input"),this.eSelectCheckbox.type="checkbox",this.eSelectCheckbox.className="ag-checkbox",this.eSelect.appendChild(this.eSelectCheckbox)):this.createCheckIcons(),this.addDestroyableEventListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eSelect,"click",this.onSelectClicked.bind(this)),this.addDestroyableEventListener(this.eFilterTextField,"input",this.onFilterTextChanged.bind(this)),this.addDestroyableEventListener(this.eFilterTextField,"keypress",this.onMiniFilterKeyPress.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},t.prototype.init=function(e){this.params=e,this.columnController.isReady()&&this.showOrHideOptions()},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=i._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=i._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=i._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},t.prototype.createCheckIcons=function(){this.eSelect.appendChild(this.eSelectChecked=i._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectUnchecked=i._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper)),this.eSelect.appendChild(this.eSelectIndeterminate=i._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper))},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,n=!this.params.suppressColumnExpandAll,r=this.columnController.isPrimaryColumnGroupsPresent();i._.setDisplayed(this.eFilterWrapper,e),i._.setDisplayed(this.eSelect,t),i._.setDisplayed(this.eExpand,n&&r)},t.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=i._.debounce(function(){var t=e.eFilterTextField.value;e.dispatchEvent({type:"filterChanged",filterText:t})},300)),this.onFilterTextChangedDebounced()},t.prototype.onMiniFilterKeyPress=function(e){i._.isKeyPressed(e,i.Constants.KEY_ENTER)&&this.dispatchEvent({type:"selectAll"})},t.prototype.onSelectClicked=function(){var e=this.selectState===o.CHECKED?"unselectAll":"selectAll";this.dispatchEvent({type:e})},t.prototype.onExpandClicked=function(){var e=this.expandState===r.EXPANDED?"collapseAll":"expandAll";this.dispatchEvent({type:e})},t.prototype.setExpandState=function(e){this.expandState=e,i._.setDisplayed(this.eExpandChecked,this.expandState===r.EXPANDED),i._.setDisplayed(this.eExpandUnchecked,this.expandState===r.COLLAPSED),i._.setDisplayed(this.eExpandIndeterminate,this.expandState===r.INDETERMINATE)},t.prototype.setSelectionState=function(e){this.selectState=e,this.gridOptionsWrapper.useNativeCheckboxes()?(this.eSelectCheckbox.checked=this.selectState===o.CHECKED,this.eSelectCheckbox.indeterminate=this.selectState===o.INDETERMINATE):(i._.setDisplayed(this.eSelectChecked,this.selectState===o.CHECKED),i._.setDisplayed(this.eSelectUnchecked,this.selectState===o.UNCHECKED),i._.setDisplayed(this.eSelectIndeterminate,this.selectState===o.INDETERMINATE))},g([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),g([i.Autowired("columnController")],t.prototype,"columnController",void 0),g([i.Autowired("eventService")],t.prototype,"eventService",void 0),g([i.RefSelector("eExpand")],t.prototype,"eExpand",void 0),g([i.RefSelector("eSelect")],t.prototype,"eSelect",void 0),g([i.RefSelector("eFilterWrapper")],t.prototype,"eFilterWrapper",void 0),g([i.RefSelector("eFilterTextField")],t.prototype,"eFilterTextField",void 0),g([i.PreConstruct],t.prototype,"preConstruct",null),g([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},b=function(e){function t(t,n,r,o,i,a){var s=e.call(this)||this;return s.processingColumnStateChange=!1,s.columnGroup=t,s.columnDept=n,s.allowDragging=r,s.expanded=o,s.expandedCallback=i,s.getFilterResultsCallback=a,s}return v(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=i._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),i._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForOriginalColumnGroup(null,this.columnGroup,"toolPanel"),i._.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-toolpanel-indent-"+this.columnDept),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addDestroyableEventListener(this.cbSelect,i.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),i.CssClassApplier.addToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup)},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach(function(t){e.addDestroyableEventListener(t,i.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,i.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,i.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,i.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))})},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:i.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDragItem:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})}else i._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach(function(t){e[t.getId()]=t.isVisible()}),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(i._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(i._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addDestroyableEventListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new i.TouchListener(this.eColumnGroupIcons,!0);this.addDestroyableEventListener(e,i.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){if(!this.processingColumnStateChange){var t=this.columnGroup.getLeafColumns();if(this.columnController.isPivotMode())e?this.actionCheckedReduce(t):this.actionUnCheckedReduce(t);else{var n=t.filter(function(e){return!e.getColDef().lockVisible&&!e.getColDef().suppressColumnsToolPanel}),r=this.getFilterResultsCallback(),o=n.filter(function(e){return!r||r[e.getColId()]});this.columnController.setColumnsVisible(o,e,"toolPanelUi")}}},t.prototype.actionUnCheckedReduce=function(e){var t=[],n=[],r=[];e.forEach(function(e){e.isPivotActive()&&t.push(e),e.isRowGroupActive()&&r.push(e),e.isValueActive()&&n.push(e)}),t.length>0&&this.columnController.removePivotColumns(t,"toolPanelUi"),r.length>0&&this.columnController.removeRowGroupColumns(r,"toolPanelUi"),n.length>0&&this.columnController.removeValueColumns(n,"toolPanelUi")},t.prototype.actionCheckedReduce=function(e){var t=[],n=[],r=[];e.forEach(function(e){e.isAnyFunctionActive()||(e.isAllowValue()?t.push(e):e.isAllowRowGroup()?n.push(e):e.isAllowRowGroup()&&r.push(e))}),t.length>0&&this.columnController.addValueColumns(t,"toolPanelUi"),n.length>0&&this.columnController.addRowGroupColumns(n,"toolPanelUi"),r.length>0&&this.columnController.addPivotColumns(r,"toolPanelUi")},t.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.cbSelect.setReadOnly(t),this.processingColumnStateChange=!1},t.prototype.workOutSelectedValue=function(){for(var e,t=this.columnController.isPivotMode(),n=this.columnGroup.getLeafColumns(),r=this.getFilterResultsCallback(),o=n.length,i={visible:0,hidden:0},a={visible:0,hidden:0},s=0;s0&&i.hidden>0?null:i.visible>0)?void 0:e},t.prototype.workOutReadOnlyValue=function(){var e=this.columnController.isPivotMode(),t=0;return this.columnGroup.getLeafColumns().forEach(function(n){e?n.isAnyFunctionAllowed()&&t++:n.getColDef().lockVisible||t++}),0===t},t.prototype.isColumnVisible=function(e,t){if(t){var n=e.isPivotActive(),r=e.isRowGroupActive(),o=e.isValueActive();return n||r||o}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){this.expanded=!this.expanded,this.setOpenClosedIcons(),this.expandedCallback()},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;i._.setDisplayed(this.eGroupClosedIcon,!e),i._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){(e&&!this.cbSelect.getValue()||!e&&this.cbSelect.getValue())&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!0},t.prototype.setExpanded=function(e){this.expanded!==e&&this.onExpandOrContractClicked()},t.prototype.setSelected=function(e){this.cbSelect.setValue(e,!0)},t.TEMPLATE='
\n \n \n \n \n \n \n
',y([i.Autowired("eventService")],t.prototype,"eventService",void 0),y([i.Autowired("columnController")],t.prototype,"columnController",void 0),y([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),y([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),y([i.RefSelector("cbSelect")],t.prototype,"cbSelect",void 0),y([i.RefSelector("eLabel")],t.prototype,"eLabel",void 0),y([i.RefSelector("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),y([i.RefSelector("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),y([i.RefSelector("eColumnGroupIcons")],t.prototype,"eColumnGroupIcons",void 0),y([i.PostConstruct],t.prototype,"init",null),t}(i.Component),C=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},x=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.processingColumnStateChange=!1,i.column=t,i.columnDept=n,i.allowDragging=r,i.groupsExist=o,i}return C(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle=i._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),i._.addCssClass(this.eDragHandle,"ag-column-drag"),this.cbSelect.getGui().insertAdjacentElement("afterend",this.eDragHandle),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"toolPanel");var e=i._.escape(this.displayName);this.eLabel.innerHTML=e;var n=this.columnDept;this.groupsExist&&this.addCssClass("ag-toolpanel-add-group-indent"),this.addCssClass("ag-toolpanel-indent-"+n),this.setupDragging(),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,i.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,i.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,i.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,i.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.cbSelect,i.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addDestroyableEventListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),i.CssClassApplier.addToolPanelClassesFromColDef(this.column.getColDef(),this.getGui(),this.gridOptionsWrapper,this.column,null)},t.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){this.column.getColDef().lockVisible||this.processingColumnStateChange||(this.columnController.isPivotMode()?e?this.actionCheckedPivotMode():this.actionUnCheckedPivotMode():this.columnController.setColumnVisible(this.column,e,"columnMenu"))},t.prototype.actionUnCheckedPivotMode=function(){var e=this.gridOptionsWrapper.isFunctionsPassive(),t=this.column,n=this.columnController;if(t.isPivotActive())if(e){var r=this.columnController.getPivotColumns().slice();r.push(t);var o={type:i.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:r,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}else n.removePivotColumn(t,"columnMenu");if(t.isValueActive())if(e){var a=this.columnController.getValueColumns().slice();a.push(t);var s={type:i.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:a,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}else n.removeValueColumn(t,"columnMenu");if(t.isRowGroupActive())if(e){var l=this.columnController.getRowGroupColumns().slice();l.push(t);var c={type:i.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:l,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(c)}else n.removeRowGroupColumn(t,"columnMenu")},t.prototype.actionCheckedPivotMode=function(){var e=this.column;if(!(e.isValueActive()||e.isPivotActive()||e.isRowGroupActive())){var t=this.gridOptionsWrapper.isFunctionsPassive();if(e.isAllowValue())if(t){var n=this.columnController.getValueColumns().slice();i._.removeFromArray(n,e);var r={type:i.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:n};this.eventService.dispatchEvent(r)}else this.columnController.addValueColumn(e,"columnMenu");else if(e.isAllowRowGroup())if(t){var o=this.columnController.getRowGroupColumns().slice();i._.removeFromArray(o,e);var a={type:i.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:o};this.eventService.dispatchEvent(a)}else this.columnController.addRowGroupColumn(e,"columnMenu");else if(e.isAllowPivot())if(t){var s=this.columnController.getPivotColumns().slice();i._.removeFromArray(s,e);var l={type:i.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:s};this.eventService.dispatchEvent(l)}else this.columnController.addPivotColumn(e,"columnMenu")}},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t={type:i.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDragItem:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})}else i._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e,t=this.columnController.isPivotMode();if(t){var n=this.column.isAnyFunctionActive();this.cbSelect.setValue(n)}else this.cbSelect.setValue(this.column.isVisible());if(t){var r=this.gridOptionsWrapper.isFunctionsReadOnly(),o=!this.column.isAnyFunctionAllowed();e=r||o}else e=!!this.column.getColDef().lockVisible;this.cbSelect.setReadOnly(e);var i=t&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(i),this.processingColumnStateChange=!1},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!1},t.prototype.setExpanded=function(e){console.warn("ag-grid: can not expand a column item that does not represent a column group header")},t.TEMPLATE='
\n \n \n
',w([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),w([i.Autowired("columnController")],t.prototype,"columnController",void 0),w([i.Autowired("eventService")],t.prototype,"eventService",void 0),w([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),w([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),w([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),w([i.RefSelector("eLabel")],t.prototype,"eLabel",void 0),w([i.RefSelector("cbSelect")],t.prototype,"cbSelect",void 0),w([i.PostConstruct],t.prototype,"init",null),t}(i.Component),_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},M=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.selectAllChecked=!0,n.getColumnCompId=function(e){if(e instanceof i.OriginalColumnGroup){var t=e.getLeafColumns().map(function(e){return e.getId()}).join("-");return e.getId()+"-"+t}return e.getId()},n}return _(t,e),t.prototype.init=function(e,t){var n=this;this.params=e,this.allowDragging=t,this.params.suppressSyncLayoutWithGrid||this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_MOVED,this.onColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnsChanged.bind(this)),[i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,i.Events.EVENT_COLUMN_PIVOT_CHANGED,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,i.Events.EVENT_COLUMN_VALUE_CHANGED,i.Events.EVENT_COLUMN_VISIBLE,i.Events.EVENT_NEW_COLUMNS_LOADED].forEach(function(e){n.addDestroyableEventListener(n.eventService,e,n.fireSelectionChangedEvent.bind(n))}),this.expandGroupsByDefault=!this.params.contractColumnSelection,this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){var e=this.columnController.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncColumnLayout():this.buildTreeFromProvidedColumnDefs()},t.prototype.syncColumnLayout=function(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))},t.prototype.setColumnLayout=function(e){this.destroyColumnComps(),this.columnTree=this.colDefService.createColumnTree(e);var t=e.some(function(e){return e&&"undefined"!==typeof e.children});this.recursivelyAddComps(this.columnTree,0,t),this.recursivelySetVisibility(this.columnTree,!0),this.notifyListeners()},t.prototype.buildTreeFromProvidedColumnDefs=function(){this.destroyColumnComps(),this.columnTree=this.columnController.getPrimaryColumnTree();var e=this.columnController.isPrimaryColumnGroupsPresent();this.recursivelyAddComps(this.columnTree,0,e),this.recursivelySetVisibility(this.columnTree,!0),this.notifyListeners()},t.prototype.recursivelyAddComps=function(e,t,n){var r=this;e.forEach(function(e){e instanceof i.OriginalColumnGroup?r.recursivelyAddGroupComps(e,t,n):r.addColumnComps(e,t,n)})},t.prototype.recursivelyAddGroupComps=function(e,t,n){var r,o=this;if(!e.getColGroupDef()||!e.getColGroupDef().suppressColumnsToolPanel){if(e.isPadding())r=t;else{var i=new b(e,t,this.allowDragging,this.expandGroupsByDefault,this.onGroupExpanded.bind(this),function(){return o.filterResults});this.getContext().wireBean(i),this.getGui().appendChild(i.getGui()),r=t+1;var a=this.getColumnCompId(e);this.columnComps[a]=i}this.recursivelyAddComps(e.getChildren(),r,n)}},t.prototype.addColumnComps=function(e,t,n){if(!e.getColDef()||!e.getColDef().suppressColumnsToolPanel){var r=new x(e,t,this.allowDragging,n);this.getContext().wireBean(r),this.getGui().appendChild(r.getGui()),this.columnComps[e.getId()]=r}},t.prototype.onGroupExpanded=function(){this.recursivelySetVisibility(this.columnTree,!0),this.fireGroupExpandedEvent()},t.prototype.doSetExpandedAll=function(e){i._.iterateObject(this.columnComps,function(t,n){n.isExpandable()&&n.setExpanded(e)})},t.prototype.setGroupsExpanded=function(e,t){var n=this,r=[];if(t){t.forEach(function(t){i._.iterateObject(n.columnComps,function(n,o){0===n.indexOf(t)&&(o.setExpanded(e),r.push(t))})});var o=t.filter(function(e){return!i._.includes(r,e)});o.length>0&&console.warn("ag-Grid: unable to find group(s) for supplied groupIds:",o)}else this.doSetExpandedAll(e)},t.prototype.getExpandState=function(){var e=this,t=0,n=0;return function r(o){o.forEach(function(o){if(o instanceof i.OriginalColumnGroup){var a=e.getColumnCompId(o),s=e.columnComps[a];s&&(s.isExpanded()?t++:n++);var l=o.getChildren();r(l)}})}(this.columnTree),t>0&&n>0?r.INDETERMINATE:n>0?r.COLLAPSED:r.EXPANDED},t.prototype.doSetSelectedAll=function(e){this.selectAllChecked=e,this.updateSelections()},t.prototype.updateSelections=function(){var e=this;if(this.columnApi.isPivotMode())i._.iterateObject(this.columnComps,function(t,n){n.onSelectAllChanged(e.selectAllChecked)});else{if(!i._.exists(this.filterText)){var t=this.columnApi.getPrimaryColumns().filter(function(e){return!e.getColDef().lockVisible&&!e.getColDef().hide});return void this.columnApi.setColumnsVisible(t,this.selectAllChecked)}var n=[];if(i._.iterateObject(this.filterResults,function(e,t){t&&n.push(e)}),n.length>0){this.columnApi.setColumnsVisible(n,this.selectAllChecked);var r=this.selectAllChecked?o.CHECKED:o.UNCHECKED;this.dispatchEvent({type:"selectionChanged",state:r})}}},t.prototype.getSelectionState=function(){var e=this,t=this.columnController.getAllPrimaryColumns(),n=[];null!==t&&(n=t.filter(function(e){return!e.getColDef().lockVisible}));var r=this.columnController.isPivotMode(),i=0,a=0;return n.forEach(function(t){if(!t.getColDef().lockVisible){var n=t.getColDef();if((!n||!n.suppressColumnsToolPanel)&&(!e.filterResults||e.filterResults[t.getColId()])){var o;if(r){if(!t.isAllowPivot()&&!t.isAllowRowGroup()&&!t.isAllowValue())return;o=t.isValueActive()||t.isPivotActive()||t.isRowGroupActive()}else o=t.isVisible();o?i++:a++}}}),i>0&&a>0?o.INDETERMINATE:0===i||a>0?o.UNCHECKED:o.CHECKED},t.prototype.setFilterText=function(e){this.filterText=i._.exists(e)?e.toLowerCase():null,this.filterColumns(),this.recursivelySetVisibility(this.columnTree,!0),i._.iterateObject(this.columnComps,function(e,t){t instanceof b&&t.onColumnStateChanged()}),this.fireSelectionChangedEvent(),this.fireGroupExpandedEvent()},t.prototype.filterColumns=function(){var e=this,t={},n=function(t){if(!i._.exists(e.filterText))return!0;var n=e.getColumnCompId(t),r=e.columnComps[n];if(!r)return!1;if(t instanceof i.OriginalColumnGroup&&t.isPadding())return!1;var o=r.getDisplayName();return null===o||o.toLowerCase().indexOf(e.filterText)>=0};this.columnTree.forEach(function(r){return function r(o,a){var s=!1;if(o instanceof i.OriginalColumnGroup){var l=n(o);o.getChildren().forEach(function(e){var t=r(e,l||a);t&&(s=t)})}var c=!(!a&&!s)||n(o),u=e.getColumnCompId(o);return t[u]=c,c}(r,!1)}),this.filterResults=t},t.prototype.recursivelySetVisibility=function(e,t){var n=this;e.forEach(function(e){var r=n.getColumnCompId(e),o=n.columnComps[r];if(o){var a=!n.filterResults||n.filterResults[r];o.setDisplayed(t&&a)}if(e instanceof i.OriginalColumnGroup){var s=e,l=void 0;if(o){var c=o.isExpanded();l=!!t&&c}else l=t;var u=s.getChildren();n.recursivelySetVisibility(u,l)}})},t.prototype.notifyListeners=function(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()},t.prototype.fireGroupExpandedEvent=function(){var e=this.getExpandState();this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.fireSelectionChangedEvent=function(){var e=this.getSelectionState();this.dispatchEvent({type:"selectionChanged",state:e})},t.prototype.destroyColumnComps=function(){i._.clearElement(this.getGui()),this.columnComps&&i._.iterateObject(this.columnComps,function(e,t){return t.destroy()}),this.columnComps={}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyColumnComps()},t.TEMPLATE='
',S([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),S([i.Autowired("columnController")],t.prototype,"columnController",void 0),S([i.Autowired("toolPanelColDefService")],t.prototype,"colDefService",void 0),S([i.Autowired("eventService")],t.prototype,"eventService",void 0),S([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),t}(i.Component),E=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.createTemplate=function(){return'
\n \n
'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnController.isPivotMode());var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addDestroyableEventListener(this.cbPivotMode,i.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=this.cbPivotMode.getValue();if(e!==this.columnController.isPivotMode()){this.columnController.setPivotMode(e,"toolPanelUi");var t=this.gridOptionsWrapper.getApi();t&&t.refreshHeader()}},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();this.cbPivotMode.setValue(e)},O([i.Autowired("columnController")],t.prototype,"columnController",void 0),O([i.Autowired("eventService")],t.prototype,"eventService",void 0),O([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),O([i.RefSelector("cbPivotMode")],t.prototype,"cbPivotMode",void 0),O([i.PreConstruct],t.prototype,"init",null),t}(i.Component),T=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},k=function(){function e(){}return e.prototype.execute=function(e){if(i._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc()))return null;var t=i._.missingOrEmpty(this.columnController.getValueColumns()),n=!this.gridOptionsWrapper.getGroupRowAggNodesFunc(),r=e.changedPath&&e.changedPath.isActive();if(!(t&&n&&r)){var o=this.createAggDetails(e);this.recursivelyCreateAggData(o)}},e.prototype.createAggDetails=function(e){var t=this.columnController.isPivotActive(),n=this.columnController.getValueColumns(),r=t?this.columnController.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:n,pivotColumns:r}},e.prototype.recursivelyCreateAggData=function(e){var t=this;e.changedPath.forEachChangedNodeDepthFirst(function(n){if(n.hasChildren()){if(-1===n.level){var r=!t.columnController.isPivotMode();if(t.gridOptionsWrapper.isSuppressAggAtRootLevel()&&r)return}t.aggregateRowNode(n,e)}else n.aggData&&n.setAggData(null)},!0)},e.prototype.aggregateRowNode=function(e,t){var n,r=0===t.valueColumns.length,o=0===t.pivotColumns.length,i=this.gridOptionsWrapper.getGroupRowAggNodesFunc();n=i?i(e.childrenAfterFilter):r?null:o?this.aggregateRowNodeUsingValuesOnly(e,t):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(n),e.sibling&&e.sibling.setAggData(n)},e.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t=this,n={},r=this.pivotStage.getPivotColumnDefs();return r.filter(function(e){return!i._.exists(e.pivotTotalColumnIds)}).forEach(function(r){var o,i=r.pivotKeys||[],a=r.pivotValueColumn,s=r.colId;o=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,i,a):t.getValuesPivotNonLeaf(e,s),n[s]=t.aggregateValues(o,a.getAggFunc())}),r.filter(function(e){return i._.exists(e.pivotTotalColumnIds)}).forEach(function(e){var r=[],o=e.pivotValueColumn,i=e.pivotTotalColumnIds,a=e.colId;i&&i.length&&(i.forEach(function(e){r.push(n[e])}),n[a]=t.aggregateValues(r,o.getAggFunc()))}),n},e.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var n=this,r={},o=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,i=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,a=this.getValuesNormal(e,o),s=e.aggData;return o.forEach(function(e,t){r[e.getId()]=n.aggregateValues(a[t],e.getAggFunc())}),i&&s&&i.forEach(function(e){r[e.getId()]=s[e.getId()]}),r},e.prototype.getValuesPivotNonLeaf=function(e,t){var n=[];return e.childrenAfterFilter.forEach(function(e){var r=e.aggData[t];n.push(r)}),n},e.prototype.getValuesFromMappedSet=function(e,t,n){var r=this,o=e;if(t.forEach(function(e){return o=o?o[e]:null}),!o)return[];var i=[];return o.forEach(function(e){var t=r.valueService.getValue(n,e);i.push(t)}),i},e.prototype.getValuesNormal=function(e,t){var n=[];t.forEach(function(){return n.push([])});for(var r=t.length,o=e.childrenAfterFilter.length,i=0;i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},P=function(){function e(){this.groupIdSequence=new i.NumberSequence(1)}return e.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsWrapper.getDataPathFunc())},e.prototype.execute=function(e){var t=this.createGroupingDetails(e);if(t.transaction)this.handleTransaction(t);else{var n=!0===e.afterColumnsChanged;this.shotgunResetEverything(t,n)}this.sortGroupsWithComparator(t.rootNode),this.selectableService.updateSelectableAfterGrouping(t.rootNode)},e.prototype.createGroupingDetails=function(e){var t=e.rowNode,n=e.changedPath,r=e.rowNodeTransaction,o=e.rowNodeOrder,a=this.usingTreeData?null:this.columnController.getRowGroupColumns(),s=(this.usingTreeData||a&&a.length>0)&&i._.exists(r);return{includeParents:!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),expandByDefault:this.gridOptionsWrapper.isGroupSuppressRow()?-1:this.gridOptionsWrapper.getGroupDefaultExpanded(),groupedCols:a,rootNode:t,pivotMode:this.columnController.isPivotMode(),groupedColCount:this.usingTreeData||!a?0:a.length,rowNodeOrder:o,transaction:s?r:null,changedPath:n}},e.prototype.handleTransaction=function(e){var t=e.transaction;t.add&&this.insertNodes(t.add,e,!1),t.update&&this.moveNodesInWrongPath(t.update,e),t.remove&&this.removeNodes(t.remove,e),e.rowNodeOrder&&this.sortChildren(e)},e.prototype.sortChildren=function(e){e.changedPath.forEachChangedNodeDepthFirst(function(t){i._.sortRowNodesByOrder(t.childrenAfterGroup,e.rowNodeOrder)})},e.prototype.sortGroupsWithComparator=function(e){if(!this.usingTreeData){var t=this.gridOptionsWrapper.getDefaultGroupSortComparator();i._.exists(t)&&function e(n){var r=i._.exists(n.childrenAfterGroup)&&!n.leafGroup;r&&(n.childrenAfterGroup.sort(t),n.childrenAfterGroup.forEach(function(t){return e(t)}))}(e)}},e.prototype.getExistingPathForNode=function(e,t){for(var n=[],r=this.usingTreeData?e:e.parent;r&&r!==t.rootNode;)n.push({key:r.key,rowGroupColumn:r.rowGroupColumn,field:r.field}),r=r.parent;return n.reverse(),n},e.prototype.moveNodesInWrongPath=function(e,t){var n=this;e.forEach(function(e){t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent);var r=function(e){return e.key},o=n.getExistingPathForNode(e,t).map(r),a=n.getGroupInfo(e,t).map(r);i._.compareArrays(o,a)||n.moveNode(e,t)})},e.prototype.moveNode=function(e,t){if(this.removeNodesInStages([e],t),this.insertOneNode(e,t,!0),e.setData(e.data),t.changedPath.isActive()){var n=e.parent;t.changedPath.addParentNode(n)}},e.prototype.removeNodes=function(e,t){this.removeNodesInStages(e,t),t.changedPath.isActive()&&e.forEach(function(e){return t.changedPath.addParentNode(e.parent)})},e.prototype.removeNodesInStages=function(e,t){this.removeNodesFromParents(e,t),this.postRemoveCreateFillerNodes(e,t),this.postRemoveRemoveEmptyGroups(e,t)},e.prototype.forEachParentGroup=function(e,t,n){for(var r=t.parent;r&&r!==e.rootNode;)n(r),r=r.parent},e.prototype.removeNodesFromParents=function(e,t){var n=this,r=new N;e.forEach(function(e){n.removeFromParent(e,r),n.forEachParentGroup(t,e,function(t){r.removeFromAllLeafChildren(t,e)})}),r.flush()},e.prototype.postRemoveCreateFillerNodes=function(e,t){var n=this;e.forEach(function(e){if(e.hasChildren()){var r=n.getExistingPathForNode(e,t),o=n.findParentForNode(e,r,t);o.expanded=e.expanded,o.allLeafChildren=e.allLeafChildren,o.childrenAfterGroup=e.childrenAfterGroup,o.childrenMapped=e.childrenMapped,o.childrenAfterGroup.forEach(function(e){return e.parent=o})}})},e.prototype.postRemoveRemoveEmptyGroups=function(e,t){for(var n=this,r=!0,o=function(){r=!1;var o=new N;e.forEach(function(e){n.forEachParentGroup(t,e,function(e){(function(e){var t=n.getChildrenMappedKey(e.key,e.rowGroupColumn),r=e.parent;return!(!r||!r.childrenMapped||!r.childrenMapped[t])&&e.isEmptyRowGroupNode()})(e)&&(r=!0,n.removeFromParent(e,o),e.setSelected(!1))})}),o.flush()};r;)o()},e.prototype.removeFromParent=function(e,t){e.parent&&(t?t.removeFromChildrenAfterGroup(e.parent,e):i._.removeFromArray(e.parent.childrenAfterGroup,e));var n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent&&e.parent.childrenMapped&&(e.parent.childrenMapped[n]=void 0),e.setRowTop(null)},e.prototype.addToParent=function(e,t){var n=this.getChildrenMappedKey(e.key,e.rowGroupColumn);t&&(t.childrenMapped&&(t.childrenMapped[n]=e),t.childrenAfterGroup.push(e))},e.prototype.areGroupColsEqual=function(e,t){return null!=e&&null!=t&&(e.pivotMode===t.pivotMode&&!!i._.compareArrays(e.groupedCols,t.groupedCols))},e.prototype.shotgunResetEverything=function(e,t){var n=!!t&&(this.usingTreeData||this.areGroupColsEqual(e,this.oldGroupingDetails));this.oldGroupingDetails=e,n||(e.rootNode.leafGroup=!this.usingTreeData&&0===e.groupedCols.length,e.rootNode.childrenAfterGroup=[],e.rootNode.childrenMapped={},this.insertNodes(e.rootNode.allLeafChildren,e,!1))},e.prototype.insertNodes=function(e,t,n){var r=this;e.forEach(function(e){r.insertOneNode(e,t,n),t.changedPath.isActive()&&t.changedPath.addParentNode(e.parent)})},e.prototype.insertOneNode=function(e,t,n){var r=this.getGroupInfo(e,t),o=this.findParentForNode(e,r,t);o.group||console.warn("ag-Grid: duplicate group keys for row data, keys should be unique",[o.data,e.data]),this.usingTreeData?this.swapGroupWithUserNode(o,e,n):(e.parent=o,e.level=r.length,o.childrenAfterGroup.push(e))},e.prototype.findParentForNode=function(e,t,n){var r=this,o=n.rootNode;return t.forEach(function(t,i){(o=r.getOrCreateNextNode(o,t,i,n)).allLeafChildren.push(e)}),o},e.prototype.swapGroupWithUserNode=function(e,t,n){t.parent=e.parent,t.key=e.key,t.field=e.field,t.groupData=e.groupData,t.level=e.level,n||(t.expanded=e.expanded),t.leafGroup=e.leafGroup,t.rowGroupIndex=e.rowGroupIndex,t.allLeafChildren=e.allLeafChildren,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenMapped=e.childrenMapped,this.removeFromParent(e),t.childrenAfterGroup.forEach(function(e){return e.parent=t}),this.addToParent(t,e.parent)},e.prototype.getOrCreateNextNode=function(e,t,n,r){var o=this.getChildrenMappedKey(t.key,t.rowGroupColumn),i=e.childrenMapped?e.childrenMapped[o]:void 0;return i||(i=this.createGroup(t,e,n,r),this.addToParent(i,e)),i},e.prototype.createGroup=function(e,t,n,r){var o=this,a=new i.RowNode;return this.context.wireBean(a),a.group=!0,a.field=e.field,a.rowGroupColumn=e.rowGroupColumn,a.groupData={},this.columnController.getGroupDisplayColumns().forEach(function(t){(o.usingTreeData||!!a.rowGroupColumn&&t.isRowGroupDisplayed(a.rowGroupColumn.getId()))&&(a.groupData[t.getColId()]=e.key)}),a.id=(-1*this.groupIdSequence.next()).toString(),a.key=e.key,a.level=n,a.leafGroup=!this.usingTreeData&&n===r.groupedColCount-1,r.pivotMode&&a.leafGroup?a.expanded=!1:a.expanded=this.isExpanded(r.expandByDefault,n),a.allLeafChildren=[],a.setAllChildrenCount(0),a.rowGroupIndex=this.usingTreeData?null:n,a.childrenAfterGroup=[],a.childrenMapped={},a.parent=r.includeParents?t:null,a},e.prototype.getChildrenMappedKey=function(e,t){return t?t.getId()+"-"+e:e},e.prototype.isExpanded=function(e,t){return-1===e||t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},R=function(){function e(){}return e.prototype.createPivotColumnDefs=function(e){var t=[],n=[],r=this.columnController.getPivotColumns(),o=this.columnController.getValueColumns(),a=r.length,s=new i.NumberSequence;return this.recursivelyAddGroup(t,n,1,e,[],s,a,r),this.addRowGroupTotals(t,n,o,r,s),this.addPivotTotalsToGroups(t,n,s),{pivotColumnGroupDefs:t,pivotColumnDefs:n.map(function(e){return i._.cloneObject(e)})}},e.prototype.recursivelyAddGroup=function(e,t,n,r,o,a,s,l){var c=this;i._.iterateObject(r,function(r,i){var u=o.slice(0);if(u.push(r),n!==s){var d={children:[],headerName:r,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+a.next()};e.push(d),c.recursivelyAddGroup(d.children,t,n+1,i,u,a,s,l)}else{var h=c.columnController.getValueColumns(),p={children:[],headerName:r,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+a.next()};if(0===h.length){var f=c.createColDef(null,"-",u,a);p.children.push(f),t.push(f)}else h.forEach(function(e){var n=c.columnController.getDisplayNameForColumn(e,"header"),r=c.createColDef(e,n,u,a);r.columnGroupShow="open",p.children.push(r),t.push(r)});e.push(p)}});var u=l[n-1].getColDef().pivotComparator,d=this.headerNameComparator.bind(this,u);e.sort(d)},e.prototype.addPivotTotalsToGroups=function(e,t,n){var r=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var o="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),i=this.columnController.getValueColumns(),a=i.map(function(e){return e.getAggFunc()});if(a&&!(a.length<1)&&this.sameAggFuncs(a)){var s=i[0];e.forEach(function(e){r.recursivelyAddPivotTotal(e,t,n,s,o)})}}},e.prototype.recursivelyAddPivotTotal=function(e,t,n,r,o){var i=this,a=e;if(!a.children){var s=e;return s.colId?[s.colId]:null}var l=[];if(a.children.forEach(function(e){var a=i.recursivelyAddPivotTotal(e,t,n,r,o);a&&(l=l.concat(a))}),a.children.length>1){var c=this.createColDef(r,"Total",e.pivotKeys,n);c.pivotTotalColumnIds=l,c.aggFunc=r.getAggFunc();var u=e.children;o?u.push(c):u.unshift(c),t.push(c)}return l},e.prototype.addRowGroupTotals=function(e,t,n,r,o){var i=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var a="after"===this.gridOptionsWrapper.getPivotRowTotals(),s=a?n.slice():n.slice().reverse(),l=function(n){var l=s[n],u=[];e.forEach(function(e){u=u.concat(i.extractColIdsForValueColumn(e,l))});var d=r.length;c.createRowGroupTotal(e,t,1,[],o,d,r,l,u,a)},c=this,u=0;un.headerName?1:0:0},L([i.Autowired("columnController")],e.prototype,"columnController",void 0),L([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=L([i.Bean("pivotColDefService")],e)}(),F=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I=function(){function e(){this.uniqueValues={}}return e.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.columnController.isPivotActive()?this.executePivotOn(t,n):this.executePivotOff(n)},e.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnController.isSecondaryColumnsPresent()&&(this.columnController.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},e.prototype.executePivotOn=function(e,t){var n=this.bucketUpRowNodes(e),r=this.setUniqueValues(n),o=this.columnController.getValueColumns(),i=o.map(function(e){return e.getId()}).join("#"),a=o.map(function(e){return e.getAggFunc().toString()}).join("#"),s=this.aggregationColumnsHashLastTime!==i,l=this.aggregationFuncsHashLastTime!==a;if(this.aggregationColumnsHashLastTime=i,this.aggregationFuncsHashLastTime=a,r||s||l){var c=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnGroupDefs=c.pivotColumnGroupDefs,this.pivotColumnDefs=c.pivotColumnDefs,this.columnController.setSecondaryColumns(this.pivotColumnGroupDefs,"rowModelUpdated"),t&&t.setInactive()}},e.prototype.setUniqueValues=function(e){return!!(JSON.stringify(e)!==JSON.stringify(this.uniqueValues))&&(this.uniqueValues=e,!0)},e.prototype.bucketUpRowNodes=function(e){var t=this,n={};return function e(r){r.leafGroup?t.bucketRowNode(r,n):r.childrenAfterFilter.forEach(function(t){e(t)})}(e),n},e.prototype.bucketRowNode=function(e,t){var n=this.columnController.getPivotColumns();0!==n.length?e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,n,0,t):e.childrenMapped=null},e.prototype.bucketChildren=function(e,t,n,r){var o=this,a={},s=t[n];if(e.forEach(function(e){var t=o.valueService.getKeyForNode(s,e);i._.missing(t)&&(t=""),r[t]||(r[t]={}),a[t]||(a[t]=[]),a[t].push(e)}),n===t.length-1)return a;var l={};return i._.iterateObject(a,function(e,i){l[e]=o.bucketChildren(i,t,n+1,r[e])}),l},e.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},F([i.Autowired("rowModel")],e.prototype,"rowModel",void 0),F([i.Autowired("valueService")],e.prototype,"valueService",void 0),F([i.Autowired("columnController")],e.prototype,"columnController",void 0),F([i.Autowired("eventService")],e.prototype,"eventService",void 0),F([i.Autowired("pivotColDefService")],e.prototype,"pivotColDefService",void 0),e=F([i.Bean("pivotStage")],e)}(),z=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},B=function(){function e(){this.aggFuncsMap={},this.initialised=!1}var t;return t=e,e.prototype.init=function(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},e.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[t.AGG_SUM]=j,this.aggFuncsMap[t.AGG_FIRST]=V,this.aggFuncsMap[t.AGG_LAST]=W,this.aggFuncsMap[t.AGG_MIN]=H,this.aggFuncsMap[t.AGG_MAX]=G,this.aggFuncsMap[t.AGG_COUNT]=U,this.aggFuncsMap[t.AGG_AVG]=q,this.initialised=!0},e.prototype.getDefaultAggFunc=function(e){var n=this.getFuncNames(e),r=i._.includes(n,t.AGG_SUM),o=i._.exists(this.aggFuncsMap[t.AGG_SUM]);return r&&o?t.AGG_SUM:i._.existsAndNotEmpty(n)?n[0]:null},e.prototype.addAggFuncs=function(e){i._.iterateObject(e,this.addAggFunc.bind(this))},e.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},e.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},e.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return i._.exists(t)&&t?t:Object.keys(this.aggFuncsMap).sort()},e.prototype.clear=function(){this.aggFuncsMap={}},e.AGG_SUM="sum",e.AGG_FIRST="first",e.AGG_LAST="last",e.AGG_MIN="min",e.AGG_MAX="max",e.AGG_COUNT="count",e.AGG_AVG="avg",z([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),z([i.PostConstruct],e.prototype,"init",null),e=t=z([i.Bean("aggFuncService")],e)}();function j(e){return e.filter(function(e){return"number"===typeof e}).reduce(function(e,t){return null===e?t:e+t},null)}function V(e){return e.length>0?e[0]:null}function W(e){return e.length>0?i._.last(e):null}function H(e){return e.filter(function(e){return"number"===typeof e}).reduce(function(e,t){return null===e||te?t:e},null)}function U(e){return{value:e.reduce(function(e,t){return e+(i._.exists(t)&&"number"===typeof t.value?t.value:1)},0),toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function q(e){var t=e.reduce(function(e,t){var n=e.sum,r=e.count,o=i._.exists(t)&&"number"===typeof t.value&&"number"===typeof t.count;return"number"===typeof t?{sum:n+t,count:r+1}:o?{sum:n+t.value*t.count,count:r+t.count}:{sum:n,count:r}},{sum:0,count:0}),n=t.sum,r=t.count;return{count:r,value:r>0?n/r:null,toString:function(){return"number"===typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}var Y,X,K,$,Z,J,Q,ee,te,ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),re=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oe=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.popupShowing=!1,i.valueColumn=o,i.column=t,i.dragSourceDropTarget=n,i.ghost=r,i}return ne(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eDragHandle.appendChild(i._.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.btRemove.appendChild(i._.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||this.gridOptionsWrapper.isFunctionsReadOnly()||this.addDragSource()},t.prototype.addDragSource=function(){var e=this,t={type:i.DragSourceType.ToolPanel,eElement:this.eDragHandle,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&i._.addCssClass(this.getGui(),"ag-column-drop-cell-ghost"),this.valueColumn&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;i._.setDisplayed(this.btRemove,!this.gridOptionsWrapper.isFunctionsReadOnly()),this.addDestroyableEventListener(this.btRemove,"click",function(n){var r={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(r),n.stopPropagation()});var n=new i.TouchListener(this.btRemove);this.addDestroyableEventListener(n,i.TouchListener.EVENT_TAP,function(n){var r={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(r)}),this.addDestroyFunc(n.destroy.bind(n))},t.prototype.setTextValue=function(){var e;if(this.valueColumn){var t=this.column.getAggFunc(),n="string"===typeof t?t:"agg";e=this.gridOptionsWrapper.getLocaleTextFunc()(n,n)+"("+this.displayName+")"}else e=this.displayName;var r=i._.escape(e);this.eText.innerHTML=r},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new i.VirtualList,n=this.aggFuncService.getFuncNames(this.column);t.setModel({getRow:function(e){return n[e]},getRowCount:function(){return n.length}}),this.getContext().wireBean(t);var r=i._.loadTemplate('
');r.style.top="0px",r.style.left="0px",r.appendChild(t.getGui()),r.style.width=this.getGui().clientWidth+"px";var o=this.popupService.addAsModalPopup(r,!0,function(){t.destroy(),e.popupShowing=!1});t.setComponentCreator(this.createAggSelect.bind(this,o)),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0,column:this.column}),t.refresh()}},t.prototype.createAggSelect=function(e,t){var n=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=t.toString(),a=r(o,o);return new ie(function(){if(e(),n.gridOptionsWrapper.isFunctionsPassive()){var r={type:i.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[n.column],aggFunc:t,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(r)}else n.columnController.setColumnAggFunc(n.column,t,"toolPanelDragAndDrop")},a)},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='\n \n \n \n ',re([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),re([i.Autowired("columnController")],t.prototype,"columnController",void 0),re([i.Autowired("popupService")],t.prototype,"popupService",void 0),re([i.Optional("aggFuncService")],t.prototype,"aggFuncService",void 0),re([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),re([i.Autowired("eventService")],t.prototype,"eventService",void 0),re([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),re([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),re([i.RefSelector("eText")],t.prototype,"eText",void 0),re([i.RefSelector("eDragHandle")],t.prototype,"eDragHandle",void 0),re([i.RefSelector("btRemove")],t.prototype,"btRemove",void 0),re([i.PostConstruct],t.prototype,"init",null),t}(i.Component),ie=function(e){function t(t,n){var r=e.call(this,'
')||this;return r.getGui().innerText=n,r.value=n,r.addGuiEventListener("click",t),r}return ne(t,e),t}(i.Component),ae=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(e){function t(n,r,o){var a=e.call(this,'
')||this;return a.state=t.STATE_NOT_DRAGGING,a.guiDestroyFunctions=[],a.childColumnComponents=[],a.horizontal=n,a.valueColumn=r,a.eColumnDropList=i._.loadTemplate('
'),a}return ae(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach(function(e){return e()}),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,i._.clearElement(this.getGui()),i._.clearElement(this.eColumnDropList)},t.prototype.init=function(e){this.params=e,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshGui.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.refreshGui()},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.isInterestedIn=function(e){return e===i.DragSourceType.HeaderCell||e===i.DragSourceType.ToolPanel},t.prototype.checkInsertIndex=function(e){var t=this.horizontal?this.getNewHorizontalInsertIndex(e):this.getNewVerticalInsertIndex(e);if(t<0)return!1;var n=t!==this.insertIndex;return n&&(this.insertIndex=t),n},t.prototype.getNewHorizontalInsertIndex=function(e){if(i._.missing(e.hDirection))return-1;var t=0,n=e.event,r=this.beans.gridOptionsWrapper.isEnableRtl(),o=e.hDirection===i.HorizontalDirection.Left,a=n.clientX;return this.childColumnComponents.forEach(function(e){var n=e.getGui().getBoundingClientRect(),i=o?n.right:n.left;(r?a<=i:a>=i)&&t++}),t},t.prototype.getNewVerticalInsertIndex=function(e){if(i._.missing(e.vDirection))return-1;var t=0,n=e.event;return this.childColumnComponents.forEach(function(r){var o=r.getGui().getBoundingClientRect();n.clientY>=(e.vDirection===i.VerticalDirection.Down?o.top:o.bottom)&&t++}),t},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.getDragItem().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var n=e.dragSource.getDragItem().columns||[];this.state=t.STATE_NEW_COLUMNS_IN;var r=n.filter(this.isColumnDroppable.bind(this));r.length>0&&(this.potentialDndColumns=r,this.checkInsertIndex(e),this.refreshGui())},t.prototype.isPotentialDndColumns=function(){return i._.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var n=e.dragSource.getDragItem().columns||[];this.removeColumns(n)}this.isPotentialDndColumns()&&(this.potentialDndColumns=[],this.refreshGui()),this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=!1;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsWrapper.isFunctionsPassive()&&e||this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().filter(function(t){return!i._.includes(e,t)});this.updateColumns(t)},t.prototype.addColumns=function(e){var t=this.getExistingColumns().slice();i._.insertArrayIntoArray(t,e,this.insertIndex),this.updateColumns(t)},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return i._.insertArrayIntoArray(t,e,this.insertIndex),!i._.shallowCompare(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop;this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e)},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return this.isPotentialDndColumns()?t.filter(function(t){return!i._.includes(e.potentialDndColumns,t)}):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns(),n=this.isPotentialDndColumns(),r=[];t.forEach(function(t,o){if(!(n&&o>=e.insertIndex)){var i=e.createColumnComponent(t,!1);r.push(i)}}),this.isPotentialDndColumns()&&(this.potentialDndColumns.forEach(function(t){var n=e.createColumnComponent(t,!0);r.push(n)}),t.forEach(function(t,n){if(!(n0&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(t.getGui())})},t.prototype.createColumnComponent=function(e,t){var n=new oe(e,this.dropTarget,t,this.valueColumn);return n.addEventListener(oe.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.wireBean(n),this.guiDestroyFunctions.push(function(){return n.destroy()}),t||this.childColumnComponents.push(n),n},t.prototype.addIconAndTitleToGui=function(){var e=this.horizontal&&this.isExistingColumnsEmpty(),t=this.params.icon,n=document.createElement("div");if(i._.addCssClass(t,"ag-column-drop-icon"),i._.addOrRemoveCssClass(t,"ag-faded",e),n.appendChild(t),!this.horizontal){var r=document.createElement("span");r.innerHTML=this.params.title,i._.addCssClass(r,"ag-column-drop-title"),i._.addOrRemoveCssClass(r,"ag-faded",e),n.appendChild(r)}this.getGui().appendChild(n)},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,i._.addCssClass(e,"ag-column-drop-empty-message"),this.getGui().appendChild(e)}},t.prototype.addArrow=function(e){if(this.horizontal){var t=this.beans.gridOptionsWrapper.isEnableRtl();e.appendChild(i._.createIconNoSpan(t?"smallLeft":"smallRight",this.beans.gridOptionsWrapper))}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",t}(i.Component),le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ue=function(e){function t(t){return e.call(this,t,!1,"row-group")||this}return le(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),r=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:i.DragAndDropService.ICON_GROUP,icon:i._.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:n,title:r}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowRowGroup()&&!e.isRowGroupActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:i.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setRowGroupColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?i.DragAndDropService.ICON_GROUP:i.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getRowGroupColumns()},ce([i.Autowired("columnController")],t.prototype,"columnController",void 0),ce([i.Autowired("eventService")],t.prototype,"eventService",void 0),ce([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ce([i.Autowired("loggerFactory")],t.prototype,"loggerFactory",void 0),ce([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ce([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),ce([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),ce([i.PostConstruct],t.prototype,"passBeansUp",null),t}(se),de=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pe=function(e){function t(t){return e.call(this,t,!1,"pivot")||this}return de(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=t("pivotColumnsEmptyMessage","Drag here to set column labels"),r=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:i.DragAndDropService.ICON_GROUP,icon:i._.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:n,title:r}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnController.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var t=this.columnController.isPivotActive();this.setDisplayed(e&&t);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowPivot()&&!e.isPivotActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:i.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setPivotColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?i.DragAndDropService.ICON_PIVOT:i.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getPivotColumns()},he([i.Autowired("columnController")],t.prototype,"columnController",void 0),he([i.Autowired("eventService")],t.prototype,"eventService",void 0),he([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),he([i.Autowired("loggerFactory")],t.prototype,"loggerFactory",void 0),he([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),he([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),he([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),he([i.PostConstruct],t.prototype,"passBeansUp",null),t}(se),fe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},me=function(e){function t(){return e.call(this)||this}return fe(t,e),t.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.eventService.addEventListener(i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.eventService.addEventListener(i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},t.prototype.createNorthPanel=function(){var e=this,t=document.createElement("div"),n=this.onDropPanelVisible.bind(this);return this.rowGroupComp=new ue(!0),this.getContext().wireBean(this.rowGroupComp),this.addDestroyFunc(function(){return e.rowGroupComp.destroy()}),this.pivotComp=new pe(!0),this.getContext().wireBean(this.pivotComp),this.addDestroyFunc(function(){return e.pivotComp.destroy()}),t.appendChild(this.rowGroupComp.getGui()),t.appendChild(this.pivotComp.getGui()),this.rowGroupComp.addEventListener(i.Component.EVENT_DISPLAYED_CHANGED,n),this.pivotComp.addEventListener(i.Component.EVENT_DISPLAYED_CHANGED,n),this.addDestroyFunc(function(){e.rowGroupComp.removeEventListener(i.Component.EVENT_DISPLAYED_CHANGED,n),e.pivotComp.removeEventListener(i.Component.EVENT_DISPLAYED_CHANGED,n)}),this.onDropPanelVisible(),t},t.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-width-half",e),this.pivotComp.addOrRemoveCssClass("ag-width-half",e)},t.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===i.Constants.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(e===i.Constants.ONLY_WHEN_GROUPING){var t=!this.columnController.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}},ge([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ge([i.Autowired("columnController")],t.prototype,"columnController",void 0),ge([i.Autowired("eventService")],t.prototype,"eventService",void 0),ge([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),ve={moduleName:i.ModuleNames.RowGroupingModule,beans:[k,P,R,I,B],agStackComponents:[{componentName:"AgGridHeaderDropZones",componentClass:me}],dependantModules:[p]},ye=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ce=function(e){function t(t){return e.call(this,t,!0,"values")||this}return ye(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),n=t("valueColumnsEmptyMessage","Drag here to aggregate"),r=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:i.DragAndDropService.ICON_AGGREGATE,icon:i._.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:n,title:r}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?i.DragAndDropService.ICON_AGGREGATE:i.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowValue()&&!e.isValueActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:i.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setValueColumns(e,"toolPanelUi")},t.prototype.getExistingColumns=function(){return this.columnController.getValueColumns()},be([i.Autowired("columnController")],t.prototype,"columnController",void 0),be([i.Autowired("eventService")],t.prototype,"eventService",void 0),be([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),be([i.Autowired("loggerFactory")],t.prototype,"loggerFactory",void 0),be([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),be([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),be([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),be([i.PostConstruct],t.prototype,"passBeansUp",null),t}(se),we=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xe=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_e=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n.childDestroyFuncs=[],n}return we(t,e),t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.init=function(e){var t={suppressSideButtons:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi};i._.mergeDeep(t,e),this.params=t,this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=new A,this.addComponent(this.pivotModePanel)),this.primaryColsPanel=this.getContext().createComponent("AG-PRIMARY-COLS"),this.primaryColsPanel.init(!0,this.params),this.addComponent(this.primaryColsPanel),this.isRowGroupingModuleLoaded()&&(this.params.suppressRowGroups||(this.rowGroupDropZonePanel=new ue(!1),this.addComponent(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=new Ce(!1),this.addComponent(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=new pe(!1),this.addComponent(this.pivotDropZonePanel)),this.setLastVisible(),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.setLastVisible.bind(this))),this.initialised=!0},t.prototype.setPivotModeSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(e):e&&(this.pivotModePanel=new A,this.getContext().wireBean(this.pivotModePanel),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(this.pivotModePanel.destroy.bind(this.pivotModePanel))),this.setLastVisible())},t.prototype.setRowGroupsSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(e):e&&(this.rowGroupDropZonePanel=new ue(!1),this.addComponent(new ue(!1))),this.setLastVisible())},t.prototype.setValuesSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=new Ce(!1),this.addComponent(this.valuesDropZonePanel)),this.setLastVisible())},t.prototype.setPivotSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=new pe(!1),this.addComponent(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(e)),this.setLastVisible())},t.prototype.setLastVisible=function(){var e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(function(e){return i._.removeCssClass(e,"ag-last-column-drop")});var t=i._.last(e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"));t&&i._.addCssClass(t,"ag-last-column-drop")},t.prototype.isRowGroupingModuleLoaded=function(){return i.ModuleRegistry.assertRegistered(i.ModuleNames.RowGroupingModule,"Row Grouping")},t.prototype.expandColumnGroups=function(e){this.primaryColsPanel.expandGroups(e)},t.prototype.collapseColumnGroups=function(e){this.primaryColsPanel.collapseGroups(e)},t.prototype.setColumnLayout=function(e){this.primaryColsPanel.setColumnLayout(e)},t.prototype.syncLayoutWithGrid=function(){this.primaryColsPanel.syncLayoutWithGrid()},t.prototype.addComponent=function(e){this.getContext().wireBean(e),this.getGui().appendChild(e.getGui()),this.childDestroyFuncs.push(e.destroy.bind(e))},t.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach(function(e){return e()}),this.childDestroyFuncs.length=0,i._.clearElement(this.getGui())},t.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},t.prototype.destroy=function(){this.destroyChildren(),e.prototype.destroy.call(this)},t.TEMPLATE='
',xe([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),xe([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),xe([i.Autowired("eventService")],t.prototype,"eventService",void 0),t}(i.Component),Se=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Se(t,e),t.prototype.init=function(e,n){this.setTemplate(t.TEMPLATE),this.allowDragging=e,this.params=n,this.primaryColsHeaderPanel.init(this.params);var r=this.params.suppressColumnFilter,o=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&r&&o&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addDestroyableEventListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this)),this.addDestroyableEventListener(this.primaryColsListPanel,"selectionChanged",this.onSelectionChange.bind(this)),this.primaryColsListPanel.init(this.params,this.allowDragging),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addDestroyableEventListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this))},t.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},t.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},t.prototype.expandGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)},t.prototype.collapseGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)},t.prototype.setColumnLayout=function(e){this.primaryColsListPanel.setColumnLayout(e)},t.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},t.prototype.syncLayoutWithGrid=function(){this.primaryColsListPanel.syncColumnLayout()},t.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},t.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},t.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},t.prototype.onSelectionChange=function(e){this.primaryColsHeaderPanel.setSelectionState(e.state)},t.TEMPLATE='
\n \n \n
',Me([i.RefSelector("primaryColsHeaderPanel")],t.prototype,"primaryColsHeaderPanel",void 0),Me([i.RefSelector("primaryColsListPanel")],t.prototype,"primaryColsListPanel",void 0),t}(i.Component),Oe=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Te=function(e){function t(){return e.call(this,'
')||this}return Oe(t,e),t.prototype.setElementToResize=function(e){this.elementToResize=e},t.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizing.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsWrapper.isEnableRtl())},t.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth},t.prototype.onResizing=function(e){var t=this.inverted?-1:1,n=Math.max(100,Math.floor(this.startingWidth-e*t));this.elementToResize.style.width=n+"px"},t.prototype.setInverted=function(e){this.inverted=e},Ae([i.Autowired("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Ae([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ae([i.Autowired("eventService")],t.prototype,"eventService",void 0),Ae([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),ke=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pe=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.buttonComps=[],n}return ke(t,e),t.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},t.prototype.setActiveButton=function(e){this.buttonComps.forEach(function(t){t.setSelected(e===t.getToolPanelId())})},t.prototype.addButtonComp=function(e){var n=this,r=new Ne(e);this.getContext().wireBean(r),this.buttonComps.push(r),this.getGui().appendChild(r.getGui()),r.addEventListener(Ne.EVENT_TOGGLE_BUTTON_CLICKED,function(){n.dispatchEvent({type:t.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})})},t.prototype.clearButtons=function(){this.buttonComps&&this.buttonComps.forEach(function(e){return e.destroy()}),i._.clearElement(this.getGui()),this.buttonComps.length=0},t.prototype.destroy=function(){this.clearButtons(),e.prototype.destroy.call(this)},t.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",t.TEMPLATE='
',De([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(i.Component),Ne=function(e){function t(t){var n=e.call(this)||this;return n.toolPanelDef=t,n}return ke(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelDef.id},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.eToggleButton.querySelector("div").insertAdjacentElement("afterbegin",i._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper)),this.addDestroyableEventListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},t.prototype.createTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.toolPanelDef;return'
\n \n
"},t.prototype.onButtonPressed=function(){this.dispatchEvent({type:t.EVENT_TOGGLE_BUTTON_CLICKED})},t.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},t.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",De([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),De([i.RefSelector("eToggleButton")],t.prototype,"eToggleButton",void 0),De([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),Le=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fe=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Le(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelId},t.prototype.setToolPanelDef=function(e){this.toolPanelId=e.id;var t={api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.newToolPanelComponent(e,t);null!=n?n.then(this.setToolPanelComponent.bind(this)):console.warn("ag-grid: error processing tool panel component "+e.id+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},t.prototype.setupResize=function(){var e=this.resizeBar=new Te;this.getContext().wireBean(e),e.setElementToResize(this.getGui()),this.appendChild(e)},t.prototype.setToolPanelComponent=function(e){this.toolPanelCompInstance=e,this.appendChild(e)},t.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},t.prototype.setResizerSizerSide=function(e){var t="left"===e,n=this.gridOptionsWrapper.isEnableRtl()?t:!t;this.resizeBar.setInverted(n)},t.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},t.TEMPLATE='
',Re([i.Autowired("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Re([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Re([i.PostConstruct],t.prototype,"setupResize",null),t}(i.Component),Ie=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Be=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.toolPanelWrappers=[],n}return Ie(t,e),t.prototype.postConstruct=function(){this.sideBarButtonsComp.addEventListener(Pe.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef()},t.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0):this.openToolPanel(t)},t.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},t.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsWrapper.getSideBar(),t=!!e&&!!e.toolPanels;if(t){var n=t&&!e.hiddenByDefault;this.setDisplayed(n);var r=e.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(r),this.setupToolPanels(r),this.setSideBarPosition(e.position),e.hiddenByDefault||this.openToolPanel(e.defaultToolPanel)}},t.prototype.setSideBarPosition=function(e){e||(e="right");var t="left"===e,n=t?"right":"left",r=this.getGui();return i._.addOrRemoveCssClass(r,"ag-side-bar-left",t),i._.addOrRemoveCssClass(r,"ag-side-bar-right",!t),this.toolPanelWrappers.forEach(function(e){e.setResizerSizerSide(n)}),this},t.prototype.setupToolPanels=function(e){var t=this;e.forEach(function(e){if(null!=e.id){if("agColumnsToolPanel"===e.toolPanel)if(!i.ModuleRegistry.assertRegistered(i.ModuleNames.ColumnToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===e.toolPanel)if(!i.ModuleRegistry.assertRegistered(i.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return;var n=new Fe;t.getContext().wireBean(n),n.setToolPanelDef(e),n.setDisplayed(!1),t.getGui().appendChild(n.getGui()),t.toolPanelWrappers.push(n)}else console.warn("ag-grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")})},t.prototype.refresh=function(){this.toolPanelWrappers.forEach(function(e){return e.refresh()})},t.prototype.openToolPanel=function(e){var t=this.openedItem();t!==e&&(this.toolPanelWrappers.forEach(function(t){var n=e===t.getToolPanelId();t.setDisplayed(n)}),t!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e)))},t.prototype.getToolPanelInstance=function(e){var t=this.toolPanelWrappers.filter(function(t){return t.getToolPanelId()===e})[0];if(t)return t.getToolPanelInstance();console.warn("ag-grid: unable to lookup Tool Panel as invalid key supplied: "+e)},t.prototype.raiseToolPanelVisibleEvent=function(e){var t={type:i.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.eventService.dispatchEvent(t)},t.prototype.close=function(){this.openToolPanel(void 0)},t.prototype.isToolPanelShowing=function(){return!!this.openedItem()},t.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach(function(t){t.isDisplayed()&&(e=t.getToolPanelId())}),e},t.prototype.reset=function(){this.clearDownUi(),this.setSideBarDef()},t.prototype.destroyToolPanelWrappers=function(){this.toolPanelWrappers.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()}),this.toolPanelWrappers.length=0},t.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n
',ze([i.Autowired("eventService")],t.prototype,"eventService",void 0),ze([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ze([i.RefSelector("sideBarButtons")],t.prototype,"sideBarButtonsComp",void 0),ze([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),je=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ve=function(){function e(){var e=this;this.isColGroupDef=function(e){return e&&"undefined"!==typeof e.children},this.getId=function(t){return e.isColGroupDef(t)?t.groupId:t.colId}}return e.prototype.createColumnTree=function(e){var t=this,n=[],r=[];return e.forEach(function(e){var o=function e(r,o){if(t.isColGroupDef(r)){var a=r,s="undefined"!==typeof a.groupId?a.groupId:a.headerName,l=new i.OriginalColumnGroup(a,s,!1,o),c=[];return a.children.forEach(function(t){var n=e(t,o+1);n&&c.push(n)}),l.setChildren(c),l}var u=r,d=u.colId?u.colId:u.field,h=t.columnController.getPrimaryColumn(d);return h||n.push(u),h}(e,0);o&&r.push(o)}),n.length>0&&console.warn("ag-Grid: unable to find grid columns for the supplied colDef(s):",n),r},e.prototype.syncLayoutWithGrid=function(e){var t=this.getLeafPathTrees();e(this.mergeLeafPathTrees(t))},e.prototype.getLeafPathTrees=function(){return this.columnController.getAllGridColumns().filter(function(e){var t=e.getColDef();return e.isPrimary()&&!t.showRowGroup}).map(function(e){return function e(t,n){var r;if(t instanceof i.OriginalColumnGroup)if(t.isPadding())r=n;else{var o=i._.assign({},t.getColGroupDef());o.groupId=t.getGroupId(),o.children=[n],r=o}else{var a=i._.assign({},t.getColDef());a.colId=t.getColId(),r=a}var s=t.getOriginalParent();return s?e(s,r):r}(e,e.getColDef())})},e.prototype.mergeLeafPathTrees=function(e){for(var t,n,r=this,o=function e(t,n){if(!r.isColGroupDef(n))return t;var o=t,i=n;if(i.children&&i.groupId&&r.addChildrenToGroup(o,i.groupId,i.children[0]))return o;return i.children.forEach(function(t){return e(o,t)}),o},i=[],a=1;a<=e.length;a++){var s=e[a-1],l=e[a];t=s,n=l,r.isColGroupDef(t)&&r.isColGroupDef(n)&&r.getId(t)===r.getId(n)?e[a]=o(s,l):i.push(s)}return i},e.prototype.addChildrenToGroup=function(e,t,n){var r=this;if(!this.isColGroupDef(e))return!0;var o=e,a=n;if(function(e,t){var n=e.children.map(r.getId),o=i._.includes(n,r.getId(t)),a=i._.last(e.children),s=a&&r.getId(a)!==r.getId(t);return o&&s}(o,a))return o.children.push(a),!0;if(o.groupId===t){var s=o.children.map(this.getId);if(!i._.includes(s,this.getId(a)))return o.children.push(a),!0}return o.children.forEach(function(e){return r.addChildrenToGroup(e,t,n)}),!1},je([i.Autowired("columnController")],e.prototype,"columnController",void 0),e=je([i.Bean("toolPanelColDefService")],e)}(),We={moduleName:i.ModuleNames.SideBarModule,beans:[Ve],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:Te},{componentName:"AgSideBar",componentClass:Be},{componentName:"AgSideBarButtons",componentClass:Pe}],dependantModules:[p]},He={moduleName:i.ModuleNames.ColumnToolPanelModule,beans:[],agStackComponents:[{componentName:"AgPrimaryColsHeader",componentClass:m},{componentName:"AgPrimaryColsList",componentClass:M},{componentName:"AgPrimaryCols",componentClass:Ee}],userComponents:[{componentName:"agColumnsToolPanel",componentClass:_e}],dependantModules:[p,ve,We]},Ge=function(){var e=(new Date).toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:"ag-Grid"},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e}]}},Ue=function(e){var t=e.name,n=e.ContentType;return{name:t,properties:{rawMap:{Extension:e.Extension,PartName:e.PartName,ContentType:n}}}},qe=function(){return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:[{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:"/xl/worksheets/sheet1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(Ue)}},Ye=function(e){return{name:"a:"+e[0],children:[{name:"a:"+e[1],properties:{rawMap:{val:e[2],lastClr:e[3]}}}]}},Xe=function(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[Ye(["dk1","sysClr","windowText","000000"]),Ye(["lt1","sysClr","window","FFFFFF"]),Ye(["dk2","srgbClr","44546A"]),Ye(["lt2","srgbClr","E7E6E6"]),Ye(["accent1","srgbClr","4472C4"]),Ye(["accent2","srgbClr","ED7D31"]),Ye(["accent3","srgbClr","A5A5A5"]),Ye(["accent4","srgbClr","FFC000"]),Ye(["accent5","srgbClr","5B9BD5"]),Ye(["accent6","srgbClr","70AD47"]),Ye(["hlink","srgbClr","0563C1"]),Ye(["folHlink","srgbClr","954F72"])]}},Ke=function(e){var t=e[0],n=e[1];return{name:"a:"+t,properties:{rawMap:{script:e[2],typeface:n,panose:e[3]}}}},$e=function(){var e=i._.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[Ke(["latin","Calibri Light",void 0,"020F0302020204030204"]),Ke(["ea",""]),Ke(["cs",""]),Ke(["font",e("\u6e38\u30b4\u30b7\u30c3\u30af Light"),"Jpan"]),Ke(["font",e("\ub9d1\uc740 \uace0\ub515"),"Hang"]),Ke(["font",e("\u7b49\u7ebf Light"),"Hans"]),Ke(["font",e("\u65b0\u7d30\u660e\u9ad4"),"Hant"]),Ke(["font","Times New Roman","Arab"]),Ke(["font","Times New Roman","Hebr"]),Ke(["font","Tahoma","Thai"]),Ke(["font","Nyala","Ethi"]),Ke(["font","Vrinda","Beng"]),Ke(["font","Shruti","Gujr"]),Ke(["font","MoolBoran","Khmr"]),Ke(["font","Tunga","Knda"]),Ke(["font","Raavi","Guru"]),Ke(["font","Euphemia","Cans"]),Ke(["font","Plantagenet Cherokee","Cher"]),Ke(["font","Microsoft Yi Baiti","Yiii"]),Ke(["font","Microsoft Himalaya","Tibt"]),Ke(["font","MV Boli","Thaa"]),Ke(["font","Mangal","Deva"]),Ke(["font","Gautami","Telu"]),Ke(["font","Latha","Taml"]),Ke(["font","Estrangelo Edessa","Syrc"]),Ke(["font","Kalinga","Orya"]),Ke(["font","Kartika","Mlym"]),Ke(["font","DokChampa","Laoo"]),Ke(["font","Iskoola Pota","Sinh"]),Ke(["font","Mongolian Baiti","Mong"]),Ke(["font","Times New Roman","Viet"]),Ke(["font","Microsoft Uighur","Uigh"]),Ke(["font","Sylfaen","Geor"]),Ke(["font","Arial","Armn"]),Ke(["font","Leelawadee UI","Bugi"]),Ke(["font","Microsoft JhengHei","Bopo"]),Ke(["font","Javanese Text","Java"]),Ke(["font","Segoe UI","Lisu"]),Ke(["font","Myanmar Text","Mymr"]),Ke(["font","Ebrima","Nkoo"]),Ke(["font","Nirmala UI","Olck"]),Ke(["font","Ebrima","Osma"]),Ke(["font","Phagspa","Phag"]),Ke(["font","Estrangelo Edessa","Syrn"]),Ke(["font","Estrangelo Edessa","Syrj"]),Ke(["font","Estrangelo Edessa","Syre"]),Ke(["font","Nirmala UI","Sora"]),Ke(["font","Microsoft Tai Le","Tale"]),Ke(["font","Microsoft New Tai Lue","Talu"]),Ke(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[Ke(["latin","Calibri",void 0,"020F0502020204030204"]),Ke(["ea",""]),Ke(["cs",""]),Ke(["font",e("\u6e38\u30b4\u30b7\u30c3\u30af"),"Jpan"]),Ke(["font",e("\ub9d1\uc740 \uace0\ub515"),"Hang"]),Ke(["font",e("\u7b49\u7ebf"),"Hans"]),Ke(["font",e("\u65b0\u7d30\u660e\u9ad4"),"Hant"]),Ke(["font","Arial","Arab"]),Ke(["font","Arial","Hebr"]),Ke(["font","Tahoma","Thai"]),Ke(["font","Nyala","Ethi"]),Ke(["font","Vrinda","Beng"]),Ke(["font","Shruti","Gujr"]),Ke(["font","DaunPenh","Khmr"]),Ke(["font","Tunga","Knda"]),Ke(["font","Raavi","Guru"]),Ke(["font","Euphemia","Cans"]),Ke(["font","Plantagenet Cherokee","Cher"]),Ke(["font","Microsoft Yi Baiti","Yiii"]),Ke(["font","Microsoft Himalaya","Tibt"]),Ke(["font","MV Boli","Thaa"]),Ke(["font","Mangal","Deva"]),Ke(["font","Gautami","Telu"]),Ke(["font","Latha","Taml"]),Ke(["font","Estrangelo Edessa","Syrc"]),Ke(["font","Kalinga","Orya"]),Ke(["font","Kartika","Mlym"]),Ke(["font","DokChampa","Laoo"]),Ke(["font","Iskoola Pota","Sinh"]),Ke(["font","Mongolian Baiti","Mong"]),Ke(["font","Arial","Viet"]),Ke(["font","Microsoft Uighur","Uigh"]),Ke(["font","Sylfaen","Geor"]),Ke(["font","Arial","Armn"]),Ke(["font","Leelawadee UI","Bugi"]),Ke(["font","Microsoft JhengHei","Bopo"]),Ke(["font","Javanese Text","Java"]),Ke(["font","Segoe UI","Lisu"]),Ke(["font","Myanmar Text","Mymr"]),Ke(["font","Ebrima","Nkoo"]),Ke(["font","Nirmala UI","Olck"]),Ke(["font","Ebrima","Osma"]),Ke(["font","Phagspa","Phag"]),Ke(["font","Estrangelo Edessa","Syrn"]),Ke(["font","Estrangelo Edessa","Syrj"]),Ke(["font","Estrangelo Edessa","Syre"]),Ke(["font","Nirmala UI","Sora"]),Ke(["font","Microsoft Tai Le","Tale"]),Ke(["font","Microsoft New Tai Lue","Talu"]),Ke(["font","Ebrima","Tfng"])]}]}},Ze=function(e,t,n){return{name:"a:"+e,properties:{rawMap:{val:t}},children:n}},Je=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=[];return s.push(Ze("satMod",r)),o&&s.push(Ze("lumMod",o)),i&&s.push(Ze("tint",i)),a&&s.push(Ze("shade",a)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:n}},children:s}]}},Qe=function(e,t){return{name:"a:solidFill",children:[Ze("schemeClr",e,t)]}},et=function(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=i[0],s=i[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[Je(n),Je(r),Je(o)]},{name:"a:lin",properties:{rawMap:{ang:a,scaled:s}}}]}},tt=function(e){return{name:"a:ln",properties:{rawMap:{w:e[0],cap:e[1],cmpd:e[2],algn:e[3]}},children:[Qe("phClr"),Ze("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},nt=function(e){var t=[];if(e){var n=e[0],r=e[1],o=e[2],a=e[3],s=e[4];t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:n,dist:r,dir:o,algn:a,rotWithShape:s}},children:[Ze("srgbClr","000000",[Ze("alpha","63000")])]})}return{name:"a:effectStyle",children:[i._.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},rt=function(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:fillStyleLst",children:[Qe("phClr"),et(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),et(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]},{name:"a:lnStyleLst",children:[tt(["6350","flat","sng","ctr"]),tt(["12700","flat","sng","ctr"]),tt(["19050","flat","sng","ctr"])]},{name:"a:effectStyleLst",children:[nt(),nt(),nt(["57150","19050","5400000","ctr","0"])]},{name:"a:bgFillStyleLst",children:[Qe("phClr"),Qe("phClr",[Ze("tint","95000"),Ze("satMod","170000")]),et(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}]}},ot=function(){return{name:"a:themeElements",children:[Xe(),$e(),rt()]}},it=function(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[ot(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}},at=function(e){return{name:"si",children:[{name:"t",textNode:i._.utf8_encode(i._.escape(e.toString()))}]}},st=function(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.length,uniqueCount:e.length}},children:e.map(at)}},lt=function(e){return{name:"numFmt",properties:{rawMap:{formatCode:e.formatCode,numFmtId:e.numFmtId}}}},ct={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},ut=function(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(lt)}},dt=function(e){var t=e.size,n=void 0===t?14:t,r=e.colorTheme,o=e.color,i=void 0===o?"00000000":o,a=e.name,s=void 0===a?"Calibri":a,l=e.family,c=e.scheme,u=e.italic,d=e.bold,h=e.strike,p=e.outline,f=e.shadow,g=e.underline,m=[{name:"sz",properties:{rawMap:{val:n}}},{name:"color",properties:{rawMap:{theme:r,rgb:i}}},{name:"name",properties:{rawMap:{val:s}}}];if(l&&m.push({name:"family",properties:{rawMap:{val:l}}}),c&&m.push({name:"scheme",properties:{rawMap:{val:c}}}),u&&m.push({name:"i"}),d&&m.push({name:"b"}),h&&m.push({name:"strike"}),p&&m.push({name:"outline"}),f&&m.push({name:"shadow"}),g){var v=g.toLocaleLowerCase();m.push({name:"u",properties:{rawMap:{val:"double"===v?"double":"single"}}})}return{name:"font",children:m}},ht=function(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(dt)}},pt=function(e){var t=e.patternType,n=e.fgTheme,r=e.fgTint,o=e.fgRgb,i=e.bgRgb,a=e.bgIndexed,s={name:"patternFill",properties:{rawMap:{patternType:t}}};return(n||r||o)&&(s.children=[{name:"fgColor",properties:{rawMap:{theme:n,tint:r,rgb:o}}}]),a&&(s.children||(s.children=[]),s.children.push({name:"bgColor",properties:{rawMap:{indexed:a,rgb:i}}})),{name:"fill",children:[s]}},ft=function(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(pt)}},gt=function(e){return{name:"color",properties:{rawMap:{rgb:Pt(e||"#000000")}}}},mt=function(e){var t=e.left,n=e.right,r=e.top,o=e.bottom,i=e.diagonal,a=t?[gt(t.color)]:void 0,s=n?[gt(n.color)]:void 0,l=r?[gt(r.color)]:void 0,c=o?[gt(o.color)]:void 0,u=i?[gt(i.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:a},{name:"right",properties:{rawMap:{style:n&&n.style}},children:s},{name:"top",properties:{rawMap:{style:r&&r.style}},children:l},{name:"bottom",properties:{rawMap:{style:o&&o.style}},children:c},{name:"diagonal",properties:{rawMap:{style:i&&i.style}},children:u}]}},vt={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot"},yt=["Dashed","DashDot","DashDotDot"],bt=function(e,t){var n,r=1===(n=t)?"thin":2===n?"medium":3===n?"thick":"hair",o=vt[e];return e?"Continuous"===e?r:"medium"===r&&yt.indexOf(o)>0?"medium"+o:o.charAt(0).toLowerCase()+o.substr(1):"thin"},Ct=function(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(mt)}},wt=function(e){return{Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"}[e]||"general"},xt=function(e){return{Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"}[e]||void 0},_t=function(e){var t=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(t,0)},St=function(e){var t=e.horizontal,n=e.indent,r=e.readingOrder,o=e.rotate,i=e.shrinkToFit,a=e.vertical,s=e.wrapText;return{name:"alignment",properties:{rawMap:{horizontal:t&&wt(t),indent:n,readingOrder:r&&_t(r),textRotation:o,shrinkToFit:i,vertical:a&&xt(a),wrapText:s}}}},Mt=function(e){var t=!1===e.protected?0:1;return{name:"protection",properties:{rawMap:{hidden:!0===e.hideFormula?1:0,locked:t}}}},Et=function(e){var t=e.alignment,n=e.borderId,r=e.fillId,o=e.fontId,i=e.numFmtId,a=e.protection,s=e.xfId,l=[];return t&&l.push(St(t)),a&&l.push(Mt(a)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:a?1:void 0,applyBorder:n?1:void 0,borderId:n,fillId:r,applyFont:o?1:void 0,fontId:o,applyNumberFormat:i?1:void 0,numFmtId:i,xfId:s}},children:l.length?l:void 0}},Ot=function(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(Et)}},At=function(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(Et)}},Tt=function(e){return{name:"cellStyle",properties:{rawMap:{builtinId:e.builtinId,name:e.name,xfId:e.xfId}}}},kt=function(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(Tt)}},Dt=function(){Y={base:0},X=[],K=[{name:"Calibri",size:14,colorTheme:"1",family:2,scheme:"minor"}],$=[{patternType:"none"},{patternType:"gray125"}],Z=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],J=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],Q=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],ee=[{builtinId:0,name:"normal",xfId:0}]},Pt=function(e){return void 0==e?e:("#"===e.charAt(0)&&(e=e.substr(1)),6===e.length?"00"+e:e)},Nt=function(e){var t=e.fontName,n=e.color,r=e.size,o=e.bold,a=e.italic,s=e.outline,l=e.shadow,c=e.strikeThrough,u=e.underline,d=e.family,h=t?i._.utf8_encode(t):t,p=Pt(n),f=function(e){var t=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(t,0)}(d),g=i._.findIndex(K,function(e){return e.name==h&&e.color==p&&e.size==r&&e.bold==o&&e.italic==a&&e.outline==s&&e.shadow==l&&e.strike==c&&e.underline==u&&e.family==f});return-1===g&&(g=K.length,K.push({name:h,color:p,size:r,bold:o,italic:a,outline:s,shadow:l,strike:c,underline:u,family:f})),g},Lt=function(e){var t=e.id,n=e.alignment,r=e.borders,o=e.font,a=e.interior,s=e.numberFormat,l=e.protection,c=0,u=0,d=0,h=0;t&&void 0==Y[t]&&(a&&(c=function(e){var t,n=(t=e.pattern)?{None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"}[t]||t:"none",r=Pt(e.color),o=Pt(e.patternColor),a=i._.findIndex($,function(e){var t=e.patternType,i=e.fgRgb,a=e.bgRgb;return t==n&&i==r&&a==o});return-1===a&&(a=$.length,$.push({patternType:n,fgRgb:r,bgRgb:o})),a}(a)),r&&(u=function(e){var t,n,r,o,a,s,l,c,u=e.borderBottom,d=e.borderTop,h=e.borderLeft,p=e.borderRight;h&&(r=bt(h.lineStyle,h.weight),l=Pt(h.color)),p&&(o=bt(p.lineStyle,p.weight),c=Pt(p.color)),u&&(t=bt(u.lineStyle,u.weight),a=Pt(u.color)),d&&(n=bt(d.lineStyle,d.weight),s=Pt(d.color));var f=i._.findIndex(Z,function(e){var i=e.left,u=e.right,d=e.top,h=e.bottom;if(!i&&(r||l))return!1;if(!u&&(o||c))return!1;if(!d&&(n||s))return!1;if(!h&&(t||a))return!1;var p=i||{},f=p.style,g=p.color,m=u||{},v=m.style,y=m.color,b=d||{},C=b.style,w=b.color,x=h||{},_=x.style,S=x.color;return f==r&&g==l&&v==o&&y==c&&C==n&&w==s&&_==t&&S==a});return-1===f&&(f=Z.length,Z.push({left:{style:r,color:l},right:{style:o,color:c},top:{style:n,color:s},bottom:{style:t,color:a},diagonal:{style:void 0,color:void 0}})),f}(r)),o&&(d=Nt(o)),s&&(h=function(e){if(e=i._.utf8_encode(e),ct[e])return ct[e];var t=i._.findIndex(X,function(t){return t.formatCode===e});return-1===t?(t=X.length+164,X.push({formatCode:e,numFmtId:t})):t=X[t].numFmtId,t}(s.format)),Y[t]=Q.length,Q.push({alignment:n,borderId:u||0,fillId:c||0,fontId:d||0,numFmtId:h||0,protection:l,xfId:0}))},Rt=function(){var e=ut(X),t=ht(K),n=ft($),r=Ct(Z),o=Ot(J),i=At(Q),a=kt(ee);return Dt(),{name:"styleSheet",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[e,t,n,r,o,i,a,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}},Ft=function(e,t){var n=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:n,"r:id":"rId"+n}}}},It=function(e){return{name:"sheets",children:e.map(Ft)}},zt=function(e){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[It(e)]}},Bt=function(e){var t=e.min,n=e.max,r=e.s,o=e.width,i=e.hidden,a=e.bestFit,s=1,l="0";return o>1&&(s=function(e){return Math.ceil((e-12)/7+1)}(o),l="1"),{name:"col",properties:{rawMap:{min:t,max:n,width:s,style:r,hidden:i?"1":"0",bestFit:a?"1":"0",customWidth:l}}}},jt=function(e){var t=e.ref,n=e.data,r=e.styleId,o=n.type,a=n.value,s=o;o.charAt(0)===o.charAt(0).toUpperCase()&&(s=function(e){var t=e.charAt(0).toLowerCase();return"s"===t?"inlineStr":t}(o));var l,c,u={name:"c",properties:{rawMap:{r:t,t:"empty"===s?void 0:s,s:r?(l=r,Y[l]||0):void 0}}};return c="inlineStr"===s?[{name:"is",children:[{name:"t",textNode:i._.escape(i._.utf8_encode(a))}]}]:[{name:"v",textNode:a}],i._.assign({},u,{children:c})},Vt=function(){for(var e=0,t=0,n=arguments.length;t=0;o--){for(var i=[],a=e[n[o].pos],s=1;s<=a.mergeAcross;s++)i.push({ref:""+Ut(n[o].excelPos+1+s)+(t+1),styleId:a.styleId,data:{type:"empty",value:null}});i.length&&e.splice.apply(e,Vt([n[o].pos+1,0],i))}}(l,t),{name:"row",properties:{rawMap:{r:n,collapsed:r,hidden:o?"1":"0",ht:i,customHeight:null!=i?"1":"0",s:a,customFormat:null!=a?"1":"0"}},children:l.map(jt)}},Ht=function(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}},Gt=function(e,t){var n=[];return e.forEach(function(e,r){var o,i=e.cells,a=0;e.index=r+1,i.forEach(function(e,i){var s=i+a+1,l=Ut(s),c=r+1;if(e.mergeAcross){a+=e.mergeAcross;var u=Ut(i+a+1);n.push(""+l+c+":"+u+c)}t[s-1]||(t[s-1]={}),function(e,t,n,r){if(!e.min)return e.min=t,void(e.max=t+n);var o=t;r&&(o=Math.max(o,r.min)),e.min=Math.max(e.min,o),e.max=Math.max(e.max,o+n)}(t[s-1],s,a,o),o=t[s-1],e.ref=""+l+c})}),n},Ut=function e(t){var n=String.fromCharCode,r=Math.floor(t/26),o=t%26;return r&&26!==t?o?r<26?n(65+r-1)+n(65+o-1):e(r)+n(65+o-1):e(r-1)+"Z":n(65+t-1)},qt=function(e){var t=e.table,n=t.rows,r=t.columns,o=r&&r.length?Gt(n,r):[],i=[];return r.length&&i.push({name:"cols",children:r.map(Bt)}),n.length&&i.push({name:"sheetData",children:n.map(Wt)}),o.length&&i.push({name:"mergeCells",properties:{rawMap:{count:o.length}},children:o.map(Ht)}),{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:i}},Yt=function(e){return{name:"Relationship",properties:{rawMap:{Id:e.Id,Type:e.Type,Target:e.Target}}}},Xt=function(e){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:e.map(Yt)}},Kt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$t=function(){function e(){this.sharedStrings=[]}return e.prototype.createSharedStrings=function(){return this.createXmlPart(st(this.sharedStrings))},e.prototype.createXmlPart=function(e){return""+this.xmlFactory.createHeader({encoding:"UTF-8",standalone:"yes"})+this.xmlFactory.createXml(e)},e.prototype.createExcel=function(e,t,n){return void 0===n&&(n=[]),this.sharedStrings=n,this.sheetNames=t.map(function(e){return e.name}),function(e){Dt(),e.forEach(Lt)}(e),this.createWorksheet(t)},e.prototype.createCore=function(){return this.createXmlPart(Ge())},e.prototype.createContentTypes=function(){return this.createXmlPart(qe())},e.prototype.createRels=function(){var e=Xt([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return this.createXmlPart(e)},e.prototype.createStylesheet=function(){return this.createXmlPart(Rt())},e.prototype.createTheme=function(){return this.createXmlPart(it())},e.prototype.createWorkbook=function(){return this.createXmlPart(zt(this.sheetNames))},e.prototype.createWorkbookRels=function(){var e=Xt([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:"worksheets/sheet1.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:"rId3",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:"rId4",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]);return this.createXmlPart(e)},e.prototype.createWorksheet=function(e){return this.createXmlPart(qt(e[0]))},Kt([i.Autowired("xmlFactory")],e.prototype,"xmlFactory",void 0),e=Kt([i.Bean("excelXlsxFactory")],e)}(),Zt=function(){return{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}}}},Jt=function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}},Qt=function(e){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:e.width}}]}}},en=function(e){var t=e.mergeAcross,n=e.styleId,r=e.data,o={};return t&&(o.MergeAcross=t),n&&(o.StyleID=n),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:o}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:r.type}}]},textNode:r.value}]}},tn=function(e){return{name:"Row",children:e.cells.map(function(e){return en(e)})}},nn=function(e){var t=e.table,n=e.name,r=t.columns,o=t.rows,i=r.map(function(e){return Qt(e)}),a=o.map(function(e){return tn(e)});return{name:"Worksheet",children:[{name:"Table",children:i.concat(a)}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:n}}]}}},rn=function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}},on={getTemplate:function(e){var t=e.alignment;return{name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:t.vertical,Horizontal:t.horizontal,Indent:t.indent,ReadingOrder:t.readingOrder,Rotate:t.rotate,ShrinkToFit:t.shrinkToFit,VerticalText:t.verticalText,WrapText:t.wrapText}}]}}}},an={getTemplate:function(e){var t=e.borders;return{name:"Borders",children:[t.borderBottom,t.borderLeft,t.borderRight,t.borderTop].map(function(e,t){return{name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:0==t?"Bottom":1==t?"Left":2==t?"Right":"Top",LineStyle:e.lineStyle,Weight:e.weight,Color:e.color}}]}}})}}},sn={getTemplate:function(e){var t=e.font;return{name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:t.bold,FontName:t.fontName,Italic:t.italic,Color:t.color,Outline:t.outline,Shadow:t.shadow,Size:t.size,StrikeThrough:t.strikeThrough,Underline:t.underline,VerticalAlign:t.verticalAlign}},{prefix:"x:",map:{CharSet:t.charSet,Family:t.family}}]}}}},ln={getTemplate:function(e){var t=e.interior;return{name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:t.color,Pattern:t.pattern,PatternColor:t.patternColor}}]}}}},cn={getTemplate:function(e){return{name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:e.protection.protected,HideFormula:e.protection.hideFormula}}]}}}},un={getTemplate:function(e){return{name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:e.numberFormat.format}}]}}}},dn=function(e){var t=e.id,n=e.name;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:t,Name:n||t}}]}}},hn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pn=function(){function e(){}return e.prototype.createExcel=function(e,t,n){var r=this.excelXmlHeader(),o=rn(),i=Jt(),a=this.workbook(o,i,e,t);return""+r+this.xmlFactory.createXml(a,function(e){return e?"1":"0"})},e.prototype.workbook=function(e,t,n,r){var o=[e,t,this.stylesXmlElement(n)].concat(r.map(function(e){return nn(e)}));return i._.assign({},Zt(),{children:o})},e.prototype.excelXmlHeader=function(){return'\n \n '},e.prototype.stylesXmlElement=function(e){var t=this;return{name:"Styles",children:e?e.map(function(e){return t.styleXmlElement(e)}):[]}},e.prototype.styleXmlElement=function(e){var t=i._.compose(this.addProperty("alignment",e),this.addProperty("borders",e),this.addProperty("font",e),this.addProperty("interior",e),this.addProperty("protection",e),this.addProperty("numberFormat",e))([]);return i._.assign({},dn(e),{children:t})},e.prototype.addProperty=function(e,t){return function(n){if(!t[e])return n;var r={alignment:on,borders:an,font:sn,interior:ln,numberFormat:un,protection:cn};return n.concat(r[e].getTemplate(t))}},hn([i.Autowired("xmlFactory")],e.prototype,"xmlFactory",void 0),e=hn([i.Bean("excelXmlFactory")],e)}(),fn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gn=function(){function e(e){var t=e.columnController,n=e.valueService,r=e.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=r,this.processCellCallback=o,this.processHeaderCallback=i,this.processGroupHeaderCallback=a,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.firstGroupColumn=i._.find(e,function(e){return!!e.getColDef().showRowGroup})},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,r){var o;o=r&&r.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var i=this.processCell(r,e,o,this.processCellCallback,n);return null!=i?i:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,r,o){return r?r({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:o}):n},e}(),mn=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},r=this.gridOptionsWrapper.getApi(),o=this.gridOptionsWrapper.getColumnApi(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),s=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=this.gridOptionsWrapper.getContext(),c=this.columnController.isPivotMode(),u=this.rowModel.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,d=!u&&t.onlySelected,h=[];if(h=i._.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!c?(h=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([i.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(h),t.columnGroups){var p=new i.GroupInstanceIdCreator,f=this.displayedGroupCreator.createDisplayedGroups(h,this.columnController.getGridBalancedTree(),p,null);this.recursivelyAddHeaderGroups(f,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var g=e.onNewHeaderRow();h.forEach(function(e,t){g.onColumn(e,t,void 0)})}(this.pinnedRowModel.forEachPinnedTopRow(m),c)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(m):this.rowModel.forEachNode(m):t.onlySelectedAllPages||d?this.selectionController.getSelectedNodes().forEach(function(e){m(e)}):u?this.rowModel.forEachNodeAfterFilterAndSort(m):this.rowModel.forEachNode(m);function m(i){var c=s&&i.leafGroup,u=1===i.allChildrenCount&&(a||c);if((!i.group||!t.skipGroups&&!u)&&((!t.skipFooters||!i.footer)&&(!t.onlySelected||i.isSelected())&&(!t.skipPinnedTop||"top"!==i.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==i.rowPinned)&&(!(-1===i.level)||i.leafGroup)&&!n({node:i,api:r,context:l}))){var d=e.onNewBodyRow();if(h.forEach(function(e,t){d.onColumn(e,t,i)}),t.getCustomContentBelowRow){var p=t.getCustomContentBelowRow({node:i,api:r,columnApi:o,context:l});p&&e.addCustomContent(p)}}}return this.pinnedRowModel.forEachPinnedBottomRow(m),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,n){var r=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return r.push(e)})}),e.length>0&&e[0]instanceof i.ColumnGroup&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)},e.prototype.doAddHeaderHeader=function(e,t,n){var r=this,o=e.onNewHeaderGroupingRow(),i=0;t.forEach(function(e){var t,a=e;t=n?n({columnGroup:a,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()}):r.columnController.getDisplayNameForColumnGroup(a,"header"),o.onColumn(t||"",i++,a.getLeafColumns().length-1)})},fn([i.Autowired("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),fn([i.Autowired("columnController")],e.prototype,"columnController",void 0),fn([i.Autowired("rowModel")],e.prototype,"rowModel",void 0),fn([i.Autowired("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),fn([i.Autowired("selectionController")],e.prototype,"selectionController",void 0),fn([i.Autowired("columnFactory")],e.prototype,"columnFactory",void 0),fn([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=fn([i.Bean("gridSerializer")],e)}();!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(te||(te={}));var vn,yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cn=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var r=t.suppressQuotes,o=t.columnSeparator;return n.suppressQuotes=r,n.columnSeparator=o,n}return yn(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(function(e){t.beginNewLine(),e.forEach(function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,i.Constants.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result+"\r\n"},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(gn),wn=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,r=t.data,o=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===o.indexOf(".")&&(o=o+"."+this.getDefaultFileExtension()),this.beans.downloader.download(o,this.packageFile(r)),r},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),n={};return i._.assign(n,t),i._.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yn(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,n=this.valueService,r=this.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback,l=e.suppressQuotes,c=e.columnSeparator;return new Cn({columnController:t,valueService:n,gridOptionsWrapper:r,processCellCallback:o||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:s||void 0,suppressQuotes:l||!1,columnSeparator:c||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},bn([i.Autowired("columnController")],t.prototype,"columnController",void 0),bn([i.Autowired("valueService")],t.prototype,"valueService",void 0),bn([i.Autowired("downloader")],t.prototype,"downloader",void 0),bn([i.Autowired("gridSerializer")],t.prototype,"gridSerializer",void 0),bn([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),bn([i.PostConstruct],t.prototype,"postConstruct",null),t=bn([i.Bean("csvCreator")],t)}(wn),_n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sn=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),r=window.URL.createObjectURL(t);n.setAttribute("href",r),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout(function(){window.URL.revokeObjectURL(r)},0)}},e=_n([i.Bean("downloader")],e)}(),Mn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},En=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),""},e.prototype.createXml=function(e,t){var n=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(o){r+=n.returnAttributeIfPopulated(e.prefix+o,e.map[o],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(o){r+=n.returnAttributeIfPopulated(o,e.properties.rawMap[o],t)}));var o="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?o+">"+e.textNode+"\r\n":(o+=">\r\n",e.children&&e.children.forEach(function(e){o+=n.createXml(e,t)}),o+"\r\n"):o+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"===typeof t&&n&&(r=n(t))," "+e+'="'+r+'"'},e=Mn([i.Bean("xmlFactory")],e)}(),On=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},An=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],Tn=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,r="",o=0,i=0,a=0,s=t;a>>8^An[255&(t^n)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=On([i.Bean("zipContainer")],e)}(),kn={moduleName:i.ModuleNames.CsvExportModule,beans:[xn,Sn,En,mn,Tn]},Dn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pn=function(){for(var e=0,t=0,n=arguments.length;t0?i[0]:void 0,"String",n,o))}}},t.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn,this.config.headerRowHeight)},t.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn,this.config.rowHeight)},t.prototype.onNewRow=function(e,t){var n=[];return this.rows.push({cells:n,height:t}),{onColumn:e.bind(this,this.rows.length,n)()}},t.prototype.onNewHeaderColumn=function(e,t){var n=this;return function(r,o){var i=n.extractHeaderValue(r),a=n.config.styleLinker(te.HEADER,e,o,i,r,void 0);t.push(n.createCell(a&&a.length>0?a[0]:void 0,"String",i))}},t.prototype.parse=function(){for(var e=this.rows.reduce(function(e,t){return Math.max(e,t.cells.length)},0);this.cols.length1){var u=c.join("-");n.mixedStyles[u]||n.addNewMixedStyle(c),s=n.mixedStyles[u].excelID}t.push(n.createCell(s,n.getDataTypeForValue(l),l))}},t.prototype.getDataTypeForValue=function(e){return i._.isNumeric(e)?"Number":"String"},t.prototype.addNewMixedStyle=function(e){var t=this;this.mixedStyleCounter+=1;var n="mixedStyle"+this.mixedStyleCounter,r={};e.forEach(function(e){t.excelStyles.forEach(function(t){t.id===e&&i._.mergeDeep(r,i._.deepCloneObject(t))})}),r.id=n,r.name=n;var o=e.join("-");this.mixedStyles[o]={excelID:n,key:o,result:r},this.excelStyles.push(r),this.stylesByIds[n]=r},t.prototype.styleExists=function(e){return null!=e&&this.stylesByIds[e]},t.prototype.createCell=function(e,t,n){var r=this,o=e&&this.stylesByIds[e],a=void 0!==o;var s,l=function(){if(a&&o.dataType)switch(o.dataType){case"string":return"String";case"number":return"Number";case"dateTime":return"DateTime";case"error":return"Error";case"boolean":return"Boolean";default:console.warn("ag-grid: Unrecognized data type for excel export ["+o.id+".dataType="+o.dataType+"]")}return t}();return{styleId:a?e:void 0,data:{type:l,value:"String"===l?function(e){if(r.config.suppressTextAsCDATA)return i._.escape(e);var t=new RegExp("]]>","g");return"")+"]]>"}(n):"Number"===l?Number(n).valueOf()+"":"Boolean"===l?(s=n,s&&"0"!==s&&"false"!==s?"1":"0"):n}}},t.prototype.createMergedCell=function(e,t,n,r){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:n},mergeAcross:r}},t.prototype.convertColumnToExcel=function(e,t){var n=this.config.columnWidth;if(n)return"number"===typeof n?{width:n}:{width:n({column:e,index:t})};if(e){return{width:Math.max(e.getActualWidth(),75)}}return{}},t}(gn),Ln=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stringList=[],t.stringMap={},t}return Ln(t,e),t.prototype.onNewHeaderGroupingRow=function(){var e=this,t=[];return this.rows.push({cells:t,height:this.config.headerRowHeight}),{onColumn:function(n,r,o){var i=e.config.styleLinker(te.HEADER_GROUPING,1,r,"grouping-"+n,void 0,void 0);t.push(e.createMergedCell(i&&i.length>0?i[0]:void 0,"s",n,o))}}},t.prototype.onNewHeaderColumn=function(e,t){var n=this;return function(r,o,i){var a=n.extractHeaderValue(r),s=n.config.styleLinker(te.HEADER,e,o,a,r,void 0);t.push(n.createCell(s&&s.length>0?s[0]:void 0,"s",a))}},t.prototype.createExcel=function(e){return this.config.excelFactory.createExcel(this.excelStyles,e,this.stringList)},t.prototype.getDataTypeForValue=function(e){return i._.isNumeric(e)?"n":"s"},t.prototype.getStringPosition=function(e){var t=this.stringMap[e];return void 0===t&&(t=this.stringMap[e]=this.stringList.length,this.stringList.push(e)),t},t.prototype.createCell=function(e,t,n){var r=e&&this.stylesByIds[e],o=void 0!==r;var i=function(){if(o&&r.dataType)switch(r.dataType){case"string":return"s";case"number":return"n";case"dateTime":return"d";case"error":return"e";case"boolean":return"b";default:console.warn("ag-grid: Unrecognized data type for excel export ["+r.id+".dataType="+r.dataType+"]")}return t}();return{styleId:o?e:void 0,data:{type:i,value:"s"===i?this.getStringPosition(null==n?"":n).toString():"n"===i?Number(n).toString():n}}},t.prototype.createMergedCell=function(e,t,n,r){return{styleId:this.styleExists(e)?e:void 0,data:{type:t,value:"s"===t?this.getStringPosition(null==n?"":n).toString():n},mergeAcross:r}},t}(Nn),Fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=function(){return(In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Fn(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsExcel=function(e){return this.setExportMode(e?e.exportMode:void 0),this.export(e)},t.prototype.getDataAsExcelXml=function(e){return e&&e.exportMode&&delete e.exportMode,this.setExportMode("xml"),this.getData(e||{})},t.prototype.getMimeType=function(){return"xml"===this.getExportMode()?"application/vnd.ms-excel":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},t.prototype.getDefaultFileName=function(){return"export."+this.getExportMode()},t.prototype.getDefaultFileExtension=function(){return this.getExportMode()},t.prototype.createSerializingSession=function(e){var t=this.columnController,n=this.valueService,r=this.gridOptionsWrapper,o="xlsx"===this.getExportMode(),a=o?this.xlsxFactory:this.excelXmlFactory,s="ag-grid";i._.exists(e.sheetName)&&(s=i._.utf8_encode(e.sheetName.toString().substr(0,31)));var l=In(In({},e),{columnController:t,valueService:n,gridOptionsWrapper:r,headerRowHeight:e.headerRowHeight||e.rowHeight,sheetName:s,excelFactory:a,baseExcelStyles:this.gridOptions.excelStyles||[],styleLinker:this.styleLinker.bind(this)});return new(o?Rn:Nn)(l)},t.prototype.styleLinker=function(e,t,n,r,o,i){if(e===te.HEADER||e===te.HEADER_GROUPING)return["header"];var a=this.gridOptions.excelStyles;if(!a||!a.length)return null;var s=a.map(function(e){return e.id}),l=[];return this.stylingService.processAllCellClasses(o.getColDef(),{value:r,data:i.data,node:i,colDef:o.getColDef(),rowIndex:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),$scope:null,context:this.gridOptionsWrapper.getContext()},function(e){s.indexOf(e)>-1&&l.push(e)}),l.sort(function(e,t){return s.indexOf(e)=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(vn||(vn={}));var Hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vn(t,e),t.prototype.preConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setTemplate('')},t.prototype.postConstruct=function(){this.createExpandIcons(),this.setExpandState(vn.EXPANDED),this.addDestroyableEventListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eSearchTextField,"input",this.onSearchTextChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},t.prototype.init=function(e){this.params=e,this.columnController.isReady()&&this.showOrHideOptions()},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=i._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=i._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=i._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,t=!this.params.suppressExpandAll,n=this.columnController.getAllGridColumns().some(function(e){return e.getOriginalParent()&&e.isFilterAllowed()});i._.setDisplayed(this.eFilterWrapper,e),i._.setDisplayed(this.eExpand,t&&n)},t.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=i._.debounce(function(){e.dispatchEvent({type:"searchChanged",searchText:e.eSearchTextField.value})},300)),this.onSearchTextChangedDebounced()},t.prototype.onExpandClicked=function(){var e=this.currentExpandState===vn.EXPANDED?{type:"collapseAll"}:{type:"expandAll"};this.dispatchEvent(e)},t.prototype.setExpandState=function(e){this.currentExpandState=e,i._.setDisplayed(this.eExpandChecked,this.currentExpandState===vn.EXPANDED),i._.setDisplayed(this.eExpandUnchecked,this.currentExpandState===vn.COLLAPSED),i._.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===vn.INDETERMINATE)},Wn([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Wn([i.Autowired("columnController")],t.prototype,"columnController",void 0),Wn([i.Autowired("eventService")],t.prototype,"eventService",void 0),Wn([i.RefSelector("eExpand")],t.prototype,"eExpand",void 0),Wn([i.RefSelector("eFilterWrapper")],t.prototype,"eFilterWrapper",void 0),Wn([i.RefSelector("eFilterTextField")],t.prototype,"eSearchTextField",void 0),Wn([i.PreConstruct],t.prototype,"preConstruct",null),Wn([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),Gn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Un=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qn=function(e){function t(n){void 0===n&&(n=!1);var r=e.call(this,t.TEMPLATE)||this;return r.expanded=!1,r.hideHeader=n,r}return Gn(t,e),t.prototype.postConstruct=function(){this.eExpandChecked=i._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=i._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},t.prototype.setColumn=function(e){this.column=e,this.eFilterName.innerText=this.columnController.getDisplayNameForColumn(this.column,"header",!1),this.addDestroyableEventListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),i._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),i._.addCssClass(this.eExpandChecked,"ag-hidden"),this.hideHeader&&i._.addOrRemoveCssClass(this.eFilterToolPanelHeader,"ag-hidden",!0),this.addDestroyableEventListener(this.column,i.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},t.prototype.getColumn=function(){return this.column},t.prototype.getColumnFilterName=function(){return this.columnController.getDisplayNameForColumn(this.column,"header",!1)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var r=i._.createIconNoSpan(e,this.gridOptionsWrapper,n);t.appendChild(r)}},t.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},t.prototype.onFilterChanged=function(){i._.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:i.Column.EVENT_FILTER_CHANGED})},t.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},t.prototype.expand=function(){var e=this;if(!this.expanded){this.expanded=!0;var t=i._.loadTemplate('
'),n=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR").filterPromise;n&&n.then(function(n){e.underlyingFilter=n,t.appendChild(n.getGui()),e.agFilterToolPanelBody.appendChild(t),n.afterGuiAttached&&n.afterGuiAttached({})}),i._.setDisplayed(this.eExpandChecked,!0),i._.setDisplayed(this.eExpandUnchecked,!1)}},t.prototype.collapse=function(){this.expanded&&(this.expanded=!1,this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),i._.setDisplayed(this.eExpandChecked,!1),i._.setDisplayed(this.eExpandUnchecked,!0))},t.prototype.refreshFilter=function(){var e=this.underlyingFilter;e&&(e.refreshVirtualList&&e.refreshVirtualList())},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},t.TEMPLATE='
\n
\n
\n \n \n
\n
',Un([i.RefSelector("eFilterToolPanelHeader")],t.prototype,"eFilterToolPanelHeader",void 0),Un([i.RefSelector("eFilterName")],t.prototype,"eFilterName",void 0),Un([i.RefSelector("agFilterToolPanelBody")],t.prototype,"agFilterToolPanelBody",void 0),Un([i.RefSelector("eFilterIcon")],t.prototype,"eFilterIcon",void 0),Un([i.RefSelector("eExpand")],t.prototype,"eExpand",void 0),Un([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),Un([i.Autowired("filterManager")],t.prototype,"filterManager",void 0),Un([i.Autowired("eventService")],t.prototype,"eventService",void 0),Un([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Un([i.Autowired("columnController")],t.prototype,"columnController",void 0),Un([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),Yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kn=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.columnGroup=t,i.childFilterComps=n,i.depth=o,i.expandedCallback=r,i}return Yn(t,e),t.prototype.preConstruct=function(){this.setTemplate(t.TEMPLATE)},t.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),i._.addCssClass(this.filterGroupComp.getGui(),"ag-level-"+this.depth),this.childFilterComps.forEach(function(t){return e.filterGroupComp.addItem(t)}),this.isColumnGroup()?(this.addDestroyableEventListener(this.filterGroupComp,"expanded",function(){e.expandedCallback()}),this.addDestroyableEventListener(this.filterGroupComp,"collapsed",function(){e.expandedCallback()})):this.addTopLevelColumnGroupExpandListener(),this.addFilterChangedListeners()},t.prototype.refreshFilters=function(){this.childFilterComps.forEach(function(e){e instanceof t?e.refreshFilters():e.refreshFilter()})},t.prototype.isColumnGroup=function(){return this.columnGroup instanceof i.OriginalColumnGroup},t.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},t.prototype.getChildren=function(){return this.childFilterComps},t.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},t.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},t.prototype.hideGroupItem=function(e,t){this.filterGroupComp.hideItem(e,t)},t.prototype.hideGroup=function(e){i._.addOrRemoveCssClass(this.getGui(),"ag-hidden",e)},t.prototype.addTopLevelColumnGroupExpandListener=function(){var e=this;this.addDestroyableEventListener(this.filterGroupComp,"expanded",function(){e.childFilterComps.forEach(function(e){e instanceof qn?(e.expand(),e.refreshFilter()):e.refreshFilters()})})},t.prototype.addFilterChangedListeners=function(){var e=this;if(this.columnGroup instanceof i.OriginalColumnGroup){var t=this.columnGroup;t.getLeafColumns().forEach(function(n){e.addDestroyableEventListener(n,i.Column.EVENT_FILTER_CHANGED,function(){i._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",t.getLeafColumns().some(function(e){return e.isFilterActive()}))})})}else{var n=this.columnGroup;this.addDestroyableEventListener(this.eventService,i.Events.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addDestroyableEventListener(n,i.Column.EVENT_FILTER_CHANGED,function(){i._.addOrRemoveCssClass(e.filterGroupComp.getGui(),"ag-has-filter",n.isFilterActive())})}},t.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},t.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},t.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},t.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof i.OriginalColumnGroup?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName)},t.prototype.getColumnGroupName=function(e){return this.columnController.getDisplayNameForOriginalColumnGroup(null,e,"toolPanel")},t.prototype.getColumnName=function(e){return this.columnController.getDisplayNameForColumn(e,"header",!1)},t.prototype.destroyFilters=function(){this.childFilterComps.forEach(function(e){return e.destroy()}),this.childFilterComps.length=0,i._.clearElement(this.getGui())},t.prototype.destroy=function(){this.destroyFilters(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n
',Xn([i.RefSelector("filterGroupComp")],t.prototype,"filterGroupComp",void 0),Xn([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),Xn([i.Autowired("filterManager")],t.prototype,"filterManager",void 0),Xn([i.Autowired("eventService")],t.prototype,"eventService",void 0),Xn([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xn([i.Autowired("columnController")],t.prototype,"columnController",void 0),Xn([i.PreConstruct],t.prototype,"preConstruct",null),Xn([i.PostConstruct],t.prototype,"init",null),t}(i.Component),$n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jn=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n.filterGroupComps=[],n}return $n(t,e),t.prototype.init=function(e){var t=this;this.initialised=!0;var n={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi};i._.mergeDeep(n,e),this.params=n,this.params.suppressSyncLayoutWithGrid||this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_MOVED,function(){return t.onColumnsChanged()}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,function(){return t.onColumnsChanged()}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(e){"filters"===e.source&&t.refreshFilters()}),this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){var e=this.columnController.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!e?this.syncFilterLayout():this.buildTreeFromProvidedColumnDefs()},t.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},t.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var t=this.columnController.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(t,0);var n=this.filterGroupComps.length;n&&(this.filterGroupComps.forEach(function(t){return e.appendChild(t)}),this.setFirstAndLastVisible(0,n-1)),i._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},t.prototype.setFiltersLayout=function(e){var t=this;this.destroyFilters();var n=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(n,0);var r=this.filterGroupComps.length;r&&(this.filterGroupComps.forEach(function(e){return t.appendChild(e)}),this.setFirstAndLastVisible(0,r-1)),i._.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},t.prototype.recursivelyAddComps=function(e,t){var n=this;return i._.flatten(e.map(function(e){if(e instanceof i.OriginalColumnGroup)return i._.flatten(n.recursivelyAddFilterGroupComps(e,t));var r=e;if(!n.shouldDisplayFilter(r))return[];var o=new qn(0===t);if(n.getContext().wireBean(o),o.setColumn(r),t>0)return o;var a=new Kn(r,[o],n.onGroupExpanded.bind(n),t);return n.getContext().wireBean(a),a.collapse(),a}))},t.prototype.recursivelyAddFilterGroupComps=function(e,t){if(this.filtersExistInChildren(e.getChildren())){if(e.getColGroupDef()&&e.getColGroupDef().suppressFiltersToolPanel)return[];var n=e.isPadding()?t:t+1,r=i._.flatten(this.recursivelyAddComps(e.getChildren(),n));if(e.isPadding())return r;var o=new Kn(e,r,this.onGroupExpanded.bind(this),t);return this.getContext().wireBean(o),[o]}},t.prototype.filtersExistInChildren=function(e){var t=this;return e.some(function(e){return e instanceof i.OriginalColumnGroup?t.filtersExistInChildren(e.getChildren()):t.shouldDisplayFilter(e)})},t.prototype.shouldDisplayFilter=function(e){var t=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!t},t.prototype.refresh=function(){},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.expandFilterGroups=function(e,t){var n=[];if(this.filterGroupComps.forEach(function r(o){var a=o.getFilterGroupId();(!t||i._.includes(t,a))&&(e&&o.isColumnGroup()?o.expand():o.collapse(),n.push(a)),o.getChildren().forEach(function(e){e instanceof Kn&&r(e)})}),this.onGroupExpanded(),t){var r=t.filter(function(e){return n.indexOf(e)<0});r.length>0&&console.warn("ag-Grid: unable to find groups for these supplied groupIds:",r)}},t.prototype.expandFilters=function(e,t){var n=[];if(this.filterGroupComps.forEach(function r(o){if(o instanceof Kn){var a=!1;return o.getChildren().forEach(function(t){r(t)&&(e?(o.expand(),a=!0):o.isColumnGroup()||o.collapse())}),a}var s=o.getColumn().getColId(),l=!t||i._.includes(t,s);return l&&(e?o.expand():o.collapse(),n.push(s)),l}),this.onGroupExpanded(),t){var r=t.filter(function(e){return n.indexOf(e)<0});r.length>0&&console.warn("ag-Grid: unable to find columns for these supplied colIds:",r)}},t.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},t.prototype.fireExpandedEvent=function(){var e,t=0,n=0;this.filterGroupComps.forEach(function e(r){r.isColumnGroup()&&(r.isExpanded()?t++:n++,r.getChildren().forEach(function(t){t instanceof Kn&&e(t)}))}),e=t>0&&n>0?vn.INDETERMINATE:n>0?vn.COLLAPSED:vn.EXPANDED,this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.performFilterSearch=function(e){this.searchFilterText=e,this.searchFilters(e)},t.prototype.searchFilters=function(e){var t,n,r=function(t){return!i._.exists(e)||-1!==t.toLowerCase().indexOf(e)};this.filterGroupComps.forEach(function(e,o){!function e(t,n){if(!(t instanceof Kn))return r(t.getColumnFilterName());var o=t.getChildren(),i=r(t.getFilterGroupName()),a=n||i;if(a){t.hideGroup(!1);for(var s=0;s
',Zn([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),Zn([i.Autowired("eventService")],t.prototype,"eventService",void 0),Zn([i.Autowired("toolPanelColDefService")],t.prototype,"toolPanelColDefService",void 0),Zn([i.Autowired("columnController")],t.prototype,"columnController",void 0),t}(i.Component),Qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),er=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tr=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.initialised=!1,n}return Qn(t,e),t.prototype.init=function(e){this.initialised=!0;var t={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi};i._.mergeDeep(t,e),this.params=t,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);var n=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;n&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.addDestroyableEventListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addDestroyableEventListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addDestroyableEventListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addDestroyableEventListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this))},t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},t.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},t.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},t.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},t.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},t.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},t.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},t.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},t.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},t.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},t.prototype.refresh=function(){this.init(this.params)},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n
',er([i.RefSelector("filtersToolPanelHeaderPanel")],t.prototype,"filtersToolPanelHeaderPanel",void 0),er([i.RefSelector("filtersToolPanelListPanel")],t.prototype,"filtersToolPanelListPanel",void 0),er([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),er([i.Autowired("eventService")],t.prototype,"eventService",void 0),er([i.Autowired("columnController")],t.prototype,"columnController",void 0),t}(i.Component),nr={moduleName:i.ModuleNames.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:Hn},{componentName:"AgFiltersToolPanelList",componentClass:Jn}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:tr}],dependantModules:[We,p]};function rr(e,t){for(var n=0,r=e.length;n=t)for(n=r=t;++it&&(n=t),r0?e+t:e},0)}var ar,sr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.prototype.getData=function(e){var t=this.extractRowsFromGridRowModel(e);return t.data=this.aggregateRowsByDimension(e,t.data),t},t.prototype.extractRowsFromGridRowModel=function(e){for(var t=this,n=[],r={},o={},a={},s=this.gridRowModel.getRowCount()-1,l=(e.endRow>0?Math.min(e.endRow,s):s)-e.startRow+1,c=function(i){var s={},l=u.gridRowModel.getRow(i+e.startRow);e.dimensionCols.forEach(function(n){var r=n.colId,c=t.columnController.getGridColumn(r);if(c){var u=t.valueService.getValue(c,l);if(e.grouping){var d=u&&u.toString?String(u.toString()):"",h=t.getGroupLabels(l,d);e.multiCategories?s[r]={labels:h,toString:function(){return rr(this.labels,function(e){return!!e})||""}}:s[r]=h.slice().reverse().join(" - "),l.group&&(o[h.toString()]=i);var p=h.slice(1,h.length).toString();p&&(a[p]=o[p])}else s[r]=u}else s[pr.DEFAULT_CATEGORY]=i+1}),e.valueCols.forEach(function(e){var n=[],o=e.getColDef().pivotKeys;o&&(n=o.slice());var i=e.getColDef().headerName;i&&n.push(i),n.length>0&&(r[e.getId()]=n);var a=t.valueService.getValue(e,l);s[e.getId()]=null!=a&&"function"===typeof a.toNumber?a.toNumber():a}),n.push(s)},u=this,d=0;d=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hr=function(){for(var e=0,t=0,n=arguments.length;t0,r=this.columnController.getGroupDisplayColumns(),o=this.getSelectedDimension().colId,i=r.map(function(e){return e.getColId()}).some(function(e){return e===o});return n&&i},t.prototype.toggleDetached=function(){this.detached=!this.detached},t.prototype.createCellRange=function(e){for(var t=[],n=1;n0?n.forEach(function(e){return e.selected=t(e)}):r.filter(t).forEach(function(t){return t.selected=e.selected});var o=hr(n,r),i=[];o.forEach(function(t,n){n===e.order&&i.push(e.colId),t.colId!==e.colId&&i.push(t.colId)}),o.forEach(function(e){var t=i.indexOf(e.colId);e.order=t>=0?i.indexOf(e.colId):o.length-1}),this.reorderColState()},t.prototype.reorderColState=function(){var e=this.dimensionColState,t=this.valueColState;e.sort(function(e,t){return e.order-t.order}),t.sort(function(e,t){return e.order-t.order})},t.prototype.setDimensionCellRange=function(e,n,r){var o=this;this.dimensionCellRange=void 0;var a=this.dimensionColState;if(r||a.length){var s=r;s&&e.has(s.column)||(s=this.dimensionColState.filter(function(e){return e.selected})[0]),s&&s.colId!==t.DEFAULT_CATEGORY&&(this.dimensionCellRange=this.createCellRange(i.CellRangeType.DIMENSION,s.column))}else e.forEach(function(e){!o.dimensionCellRange&&n.has(e)&&(o.dimensionCellRange=o.createCellRange(i.CellRangeType.DIMENSION,e))})},t.prototype.setValueCellRange=function(e,t,n){this.valueCellRange=void 0;var r=[];if(e.forEach(function(e){n&&n.colId===e.getColId()?n.selected&&r.push(n.column):t.has(e)&&r.push(e)}),r.length>0){var o=[];this.valueColState.length>0?o=this.valueColState.map(function(e){return e.colId}):t.forEach(function(e){return o.push(e.getColId())}),r.sort(function(e,t){return o.indexOf(e.getColId())-o.indexOf(t.getColId())}),this.valueCellRange=this.createCellRange.apply(this,hr([i.CellRangeType.VALUE],r))}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.datasource&&this.datasource.destroy()},t.DEFAULT_CATEGORY="AG-GRID-DEFAULT-CATEGORY",dr([i.Autowired("columnController")],t.prototype,"columnController",void 0),dr([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),dr([i.Autowired("valueService")],t.prototype,"valueService",void 0),dr([i.Autowired("rangeController")],t.prototype,"rangeController",void 0),dr([i.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),dr([i.PostConstruct],t.prototype,"init",null),t}(i.BeanStub),fr={fills:["#f3622d","#fba71b","#57b757","#41a9c9","#4258c9","#9a42c8","#c84164","#888888"],strokes:["#aa4520","#b07513","#3d803d","#2d768d","#2e3e8d","#6c2e8c","#8c2d46","#5f5f5f"]},gr={fills:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722"],strokes:["#ab2f26","#a31545","#6d1b7b","#482980","#2c397f","#1769aa","#0276ab","#008494","#00695f","#357a38","#618834","#909a28","#b3a429","#b38705","#b36a00","#b33d18"]},mr={fills:["#c16068","#a2bf8a","#ebcc87","#80a0c3","#b58dae","#85c0d1"],strokes:["#874349","#718661","#a48f5f","#5a7088","#7f637a","#5d8692"]},vr={fills:["#5BC0EB","#FDE74C","#9BC53D","#E55934","#FA7921","#fa3081"],strokes:["#4086a4","#b1a235","#6c8a2b","#a03e24","#af5517","#af225a"]},yr={fills:["#febe76","#ff7979","#badc58","#f9ca23","#f0932b","#eb4c4b","#6ab04c","#7ed6df","#e056fd","#686de0"],strokes:["#b28553","#b35555","#829a3e","#ae8d19","#a8671e","#a43535","#4a7b35","#58969c","#9d3cb1","#494c9d"]},br=function(){var e=new Map;return e.set("borneo",fr),e.set("material",gr),e.set("pastel",mr),e.set("bright",vr),e.set("flat",yr),e}(),Cr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xr=function(e){function t(t,n){void 0===n&&(n="borneo");var r=e.call(this)||this;return r.model=t,r.getChartType=function(){return r.model.getChartType()},r.isPivotChart=function(){return r.model.isPivotChart()},r.chartPaletteName=n,r}return Cr(t,e),t.prototype.init=function(){var e=this;this.setChartRange(),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_RANGE_SELECTION_CHANGED,function(t){t.id&&t.id===e.model.getChartId()&&e.updateForRangeChange()}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_MOVED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PINNED,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_VISIBLE,this.updateForGridChange.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_MODEL_UPDATED,this.updateForDataChange.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_CELL_VALUE_CHANGED,this.updateForDataChange.bind(this))},t.prototype.updateForGridChange=function(){this.model.isDetached()||(this.model.updateCellRanges(),this.setChartRange())},t.prototype.updateForDataChange=function(){this.model.isDetached()||(this.model.updateData(),this.raiseChartUpdatedEvent())},t.prototype.updateForRangeChange=function(){this.updateForGridChange(),this.raiseChartRangeSelectionChangedEvent()},t.prototype.updateForPanelChange=function(e){this.model.updateCellRanges(e),this.setChartRange(),this.raiseChartRangeSelectionChangedEvent()},t.prototype.getChartModel=function(){return{chartId:this.model.getChartId(),chartType:this.model.getChartType(),chartPalette:this.getPaletteName(),chartOptions:this.chartProxy.getChartOptions(),cellRange:this.getCurrentCellRangeParams()}},t.prototype.getPaletteName=function(){return this.chartPaletteName},t.prototype.getPalettes=function(){var e=this.chartProxy.getCustomPalette();if(e){var t=new Map;return t.set(void 0,e),t}return br},t.prototype.setChartType=function(e){this.model.setChartType(e),this.raiseChartUpdatedEvent(),this.raiseChartOptionsChangedEvent()},t.prototype.setChartPaletteName=function(e){this.chartPaletteName=e,this.raiseChartUpdatedEvent(),this.raiseChartOptionsChangedEvent()},t.prototype.getColStateForMenu=function(){return{dimensionCols:this.model.getDimensionColState(),valueCols:this.model.getValueColState()}},t.prototype.isDefaultCategorySelected=function(){var e=this.model.getSelectedDimension().colId;return e&&e===pr.DEFAULT_CATEGORY},t.prototype.setChartRange=function(){!this.rangeController||this.model.isSuppressChartRanges()||this.model.isDetached()||this.rangeController.setCellRanges(this.model.getCellRanges()),this.raiseChartUpdatedEvent()},t.prototype.detachChartRange=function(){this.model.toggleDetached(),this.model.isDetached()?this.rangeController&&this.rangeController.setCellRanges([]):this.updateForGridChange()},t.prototype.setChartProxy=function(e){this.chartProxy=e},t.prototype.getChartProxy=function(){return this.chartProxy},t.prototype.isActiveXYChart=function(){return i._.includes([i.ChartType.Scatter,i.ChartType.Bubble],this.getChartType())},t.prototype.getCurrentCellRangeParams=function(){var e=this.model.getCellRanges(),t=e[0];return{rowStartIndex:t.startRow&&t.startRow.rowIndex,rowStartPinned:t.startRow&&t.startRow.rowPinned,rowEndIndex:t.endRow&&t.endRow.rowIndex,rowEndPinned:t.endRow&&t.endRow.rowPinned,columns:e.reduce(function(e,t){return e.concat(t.columns.map(function(e){return e.getId()}))},[])}},t.prototype.raiseChartUpdatedEvent=function(){var e=Object.freeze({type:t.EVENT_CHART_UPDATED});this.dispatchEvent(e)},t.prototype.raiseChartOptionsChangedEvent=function(){var e=Object.freeze({type:i.Events.EVENT_CHART_OPTIONS_CHANGED,chartType:this.getChartType(),chartPalette:this.chartPaletteName,chartOptions:this.getChartProxy().getChartOptions()});this.eventService.dispatchEvent(e)},t.prototype.raiseChartRangeSelectionChangedEvent=function(){var e=Object.freeze({type:i.Events.EVENT_CHART_RANGE_SELECTION_CHANGED,id:this.model.getChartId(),cellRange:this.getCurrentCellRangeParams(),api:this.gridApi,columnApi:this.columnApi});this.eventService.dispatchEvent(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rangeController&&this.rangeController.setCellRanges([])},t.EVENT_CHART_UPDATED="chartUpdated",wr([i.Autowired("eventService")],t.prototype,"eventService",void 0),wr([i.Autowired("rangeController")],t.prototype,"rangeController",void 0),wr([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),wr([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),wr([i.PostConstruct],t.prototype,"init",null),t}(i.BeanStub),_r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mr=function(){for(var e=0,t=0,n=arguments.length;t=(e.vDirection===i.VerticalDirection.Down?o.top:o.bottom)&&t++});var r=void 0!==this.insertIndex&&t!==this.insertIndex;return this.insertIndex=t,r},t.prototype.isInterestedIn=function(e){return e===i.DragSourceType.ChartPanel},t.TEMPLATE='
',Sr([i.Autowired("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Sr([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Sr([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Sr([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ar=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Tr=function(e){function t(t){var n=e.call(this)||this;return n.activeComps=[],n.params=t,n}return Or(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initFontFamilySelect(),this.initFontWeightStyleSelect(),this.initFontSizeSelect(),this.initFontColorPicker()},t.prototype.addCompToPanel=function(e){this.fontGroup.addItem(e),this.activeComps.push(e)},t.prototype.setEnabled=function(e){this.fontGroup.setEnabled(e)},t.prototype.initGroup=function(){var e=this;this.fontGroup.setTitle(this.params.name||this.chartTranslator.translate("font")).setEnabled(this.params.enabled).hideEnabledCheckbox(!!this.params.suppressEnabledCheckbox).hideOpenCloseIcons(!0).onEnableChange(function(t){e.params.setEnabled&&e.params.setEnabled(t)})},t.prototype.initFontFamilySelect=function(){var e=this,t=["Arial, sans-serif","Aria Black, sans-serif","Book Antiqua, serif","Charcoal, sans-serif","Comic Sans MS, cursive","Courier, monospace","Courier New, monospace","Gadget, sans-serif","Geneva, sans-serif","Helvetica, sans-serif","Impact, sans-serif","Lucida Console, monospace","Lucida Grande, sans-serif","Lucida Sans Unicode, sans-serif","Monaco, monospace","Palatino Linotype, serif","Palatino, serif","Times New Roman, serif","Times, serif","Verdana, sans-serif"],n=this.params.initialFont.family,r=t[0];if(n){var o=t.map(function(e){return e.toLowerCase()}).indexOf(n.toLowerCase());if(o>=0)r=t[o];else{var a=i._.capitalise(n);t.push(a),r=a}}var s=t.sort().map(function(e){return{value:e,text:e}});this.familySelect.addOptions(s).setValue(""+r).onValueChange(function(t){return e.params.setFont({family:t})})},t.prototype.initFontSizeSelect=function(){var e=this,t=[8,10,12,14,16,18,20,22,24,26,28,30,32,34,36],n=this.params.initialFont.size;i._.includes(t,n)||t.push(n);var r=t.sort(function(e,t){return e-t}).map(function(e){return{value:""+e,text:""+e}});this.sizeSelect.addOptions(r).setValue(""+n).onValueChange(function(t){return e.params.setFont({size:parseInt(t,10)})}),this.sizeSelect.setLabel(this.chartTranslator.translate("size"))},t.prototype.initFontWeightStyleSelect=function(){var e=this,t=this.params.initialFont,n=t.weight,r=void 0===n?"normal":n,o=t.style,a=void 0===o?"normal":o,s=[{name:"normal",weight:"normal",style:"normal"},{name:"bold",weight:"bold",style:"normal"},{name:"italic",weight:"normal",style:"italic"},{name:"boldItalic",weight:"bold",style:"italic"}],l=i._.find(s,function(e){return e.weight===r&&e.style===a});l||(l={name:"predefined",weight:r,style:a},s.unshift(l));var c=s.map(function(t){return{value:t.name,text:e.chartTranslator.translate(t.name)}});this.weightStyleSelect.addOptions(c).setValue(l.name).onValueChange(function(t){var n=i._.find(s,function(e){return e.name===t});e.params.setFont({weight:n.weight,style:n.style})})},t.prototype.initFontColorPicker=function(){var e=this;this.colorPicker.setLabel(this.chartTranslator.translate("color")).setInputWidth(45).setValue(""+this.params.initialFont.color).onValueChange(function(t){return e.params.setFont({color:t})})},t.prototype.destroyActiveComps=function(){this.activeComps.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.destroy=function(){this.destroyActiveComps(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n
\n \n \n
\n
\n
',Ar([i.RefSelector("fontGroup")],t.prototype,"fontGroup",void 0),Ar([i.RefSelector("familySelect")],t.prototype,"familySelect",void 0),Ar([i.RefSelector("weightStyleSelect")],t.prototype,"weightStyleSelect",void 0),Ar([i.RefSelector("sizeSelect")],t.prototype,"sizeSelect",void 0),Ar([i.RefSelector("colorPicker")],t.prototype,"colorPicker",void 0),Ar([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Ar([i.PostConstruct],t.prototype,"init",null),t}(i.Component),kr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pr=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return kr(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initLegendGroup(),this.initLegendPosition(),this.initLegendPadding(),this.initLegendItems(),this.initLabelPanel()},t.prototype.initLegendGroup=function(){var e=this;this.legendGroup.setTitle(this.chartTranslator.translate("legend")).hideEnabledCheckbox(!1).setEnabled(this.chartController.getChartProxy().getChartOption("legend.enabled")||!1).toggleGroupExpand(!1).onEnableChange(function(t){e.chartController.getChartProxy().setChartOption("legend.enabled",t),e.legendGroup.toggleGroupExpand(!0)})},t.prototype.initLegendPosition=function(){var e=this;this.legendPositionSelect.setLabel(this.chartTranslator.translate("position")).setLabelWidth("flex").setInputWidth(80).addOptions(["top","right","bottom","left"].map(function(t){return{value:t,text:e.chartTranslator.translate(t)}})).setValue(this.chartController.getChartProxy().getChartOption("legend.position")).onValueChange(function(t){return e.chartController.getChartProxy().setChartOption("legend.position",t)})},t.prototype.initLegendPadding=function(){var e=this;this.legendPaddingSlider.setLabel(this.chartTranslator.translate("padding")).setValue(this.chartController.getChartProxy().getChartOption("legend.padding")).setTextFieldWidth(45).setMaxValue(200).onValueChange(function(t){return e.chartController.getChartProxy().setChartOption("legend.padding",t)})},t.prototype.initLegendItems=function(){var e=this,t=function(t,n,r,o){r.setLabel(e.chartTranslator.translate(n)).setValue(e.chartController.getChartProxy().getChartOption("legend."+t)).setMaxValue(o).setTextFieldWidth(45).onValueChange(function(n){return e.chartController.getChartProxy().setChartOption("legend."+t,n)})};t("item.marker.size","markerSize",this.markerSizeSlider,40),t("item.marker.strokeWidth","markerStroke",this.markerStrokeSlider,10),t("item.marker.padding","markerPadding",this.markerPaddingSlider,20),t("item.paddingX","itemPaddingX",this.itemPaddingXSlider,50),t("item.paddingY","itemPaddingY",this.itemPaddingYSlider,50)},t.prototype.initLabelPanel=function(){var e=this,t=this.chartController.getChartProxy(),n={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:t.getChartOption("legend.item.label.fontFamily"),style:t.getChartOption("legend.item.label.fontStyle"),weight:t.getChartOption("legend.item.label.fontWeight"),size:t.getChartOption("legend.item.label.fontSize"),color:t.getChartOption("legend.item.label.color")},setFont:function(t){var n=e.chartController.getChartProxy();t.family&&n.setChartOption("legend.item.label.fontFamily",t.family),t.weight&&n.setChartOption("legend.item.label.fontWeight",t.weight),t.style&&n.setChartOption("legend.item.label.fontStyle",t.style),t.size&&n.setChartOption("legend.item.label.fontSize",t.size),t.color&&n.setChartOption("legend.item.label.color",t.color)}},r=this.wireBean(new Tr(n));this.legendGroup.addItem(r),this.activePanels.push(r)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n \n \n \n \n \n
',Dr([i.RefSelector("legendGroup")],t.prototype,"legendGroup",void 0),Dr([i.RefSelector("legendPositionSelect")],t.prototype,"legendPositionSelect",void 0),Dr([i.RefSelector("legendPaddingSlider")],t.prototype,"legendPaddingSlider",void 0),Dr([i.RefSelector("markerSizeSlider")],t.prototype,"markerSizeSlider",void 0),Dr([i.RefSelector("markerStrokeSlider")],t.prototype,"markerStrokeSlider",void 0),Dr([i.RefSelector("markerPaddingSlider")],t.prototype,"markerPaddingSlider",void 0),Dr([i.RefSelector("itemPaddingXSlider")],t.prototype,"itemPaddingXSlider",void 0),Dr([i.RefSelector("itemPaddingYSlider")],t.prototype,"itemPaddingYSlider",void 0),Dr([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Dr([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Nr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rr=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return Nr(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.shadowBlurSlider.setTextFieldWidth(45),this.shadowXOffsetSlider.setTextFieldWidth(45),this.shadowYOffsetSlider.setTextFieldWidth(45),this.initSeriesShadow()},t.prototype.initSeriesShadow=function(){var e=this;this.shadowGroup.setTitle(this.chartTranslator.translate("shadow")).setEnabled(this.chartController.getChartProxy().getShadowEnabled()).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange(function(t){return e.chartController.getChartProxy().setShadowProperty("enabled",t)}),this.shadowColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue("rgba(0,0,0,0.5)").onValueChange(function(t){return e.chartController.getChartProxy().setShadowProperty("color",t)});var t=function(t,n,r,o){t.setLabel(e.chartTranslator.translate(n)).setValue(e.chartController.getChartProxy().getShadowProperty(n)).setMinValue(r).setMaxValue(o).onValueChange(function(t){return e.chartController.getChartProxy().setShadowProperty(n,t)})};t(this.shadowBlurSlider,"blur",0,20),t(this.shadowXOffsetSlider,"xOffset",-10,10),t(this.shadowYOffsetSlider,"yOffset",-10,10)},t.TEMPLATE='
\n \n \n \n \n \n \n
',Lr([i.RefSelector("shadowGroup")],t.prototype,"shadowGroup",void 0),Lr([i.RefSelector("shadowColorPicker")],t.prototype,"shadowColorPicker",void 0),Lr([i.RefSelector("shadowBlurSlider")],t.prototype,"shadowBlurSlider",void 0),Lr([i.RefSelector("shadowXOffsetSlider")],t.prototype,"shadowXOffsetSlider",void 0),Lr([i.RefSelector("shadowYOffsetSlider")],t.prototype,"shadowYOffsetSlider",void 0),Lr([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Lr([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ir=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zr=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return Fr(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.getChartProxy().getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.getChartProxy().setSeriesOption("tooltip.enabled",t)})},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.width")).onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.width",t)})},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.opacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.opacity",t)}),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("fill.opacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("fill.opacity",t)})},t.prototype.initLabelPanel=function(){var e=this,t=this.getChartProxy(),n={family:t.getSeriesOption("label.fontFamily"),style:t.getSeriesOption("label.fontStyle"),weight:t.getSeriesOption("label.fontWeight"),size:t.getSeriesOption("label.fontSize"),color:t.getSeriesOption("label.color")},r={name:this.chartTranslator.translate("labels"),enabled:t.getSeriesOption("label.enabled")||!1,setEnabled:function(t){return e.getChartProxy().setSeriesOption("label.enabled",t)},suppressEnabledCheckbox:!1,initialFont:n,setFont:function(t){var n=e.getChartProxy();t.family&&n.setSeriesOption("label.fontFamily",t.family),t.weight&&n.setSeriesOption("label.fontWeight",t.weight),t.style&&n.setSeriesOption("label.fontStyle",t.style),t.size&&n.setSeriesOption("label.fontSize",t.size),t.color&&n.setSeriesOption("label.color",t.color)}},o=this.wireBean(new Tr(r));this.activePanels.push(o),this.seriesGroup.addItem(o)},t.prototype.initShadowPanel=function(){var e=this.wireBean(new Rr(this.chartController));this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n \n \n
',Ir([i.RefSelector("seriesGroup")],t.prototype,"seriesGroup",void 0),Ir([i.RefSelector("seriesTooltipsToggle")],t.prototype,"seriesTooltipsToggle",void 0),Ir([i.RefSelector("seriesStrokeWidthSlider")],t.prototype,"seriesStrokeWidthSlider",void 0),Ir([i.RefSelector("seriesLineOpacitySlider")],t.prototype,"seriesLineOpacitySlider",void 0),Ir([i.RefSelector("seriesFillOpacitySlider")],t.prototype,"seriesFillOpacitySlider",void 0),Ir([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Ir([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vr=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return Br(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxisTicks()},t.prototype.initAxisTicks=function(){var e=this;this.axisTicksGroup.setTitle(this.chartTranslator.translate("ticks")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0),this.axisTicksColorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.getChartProxy().getAxisProperty("tick.color")).onValueChange(function(t){return e.getChartProxy().setAxisProperty("tick.color",t)});var t=function(t,n,r,o){n.setLabel(r).setValue(e.getChartProxy().getAxisProperty(t)).setMaxValue(o).setTextFieldWidth(45).onValueChange(function(n){return e.getChartProxy().setAxisProperty(t,n)})};t("tick.width",this.axisTicksWidthSlider,this.chartTranslator.translate("width"),10),t("tick.size",this.axisTicksSizeSlider,this.chartTranslator.translate("length"),30)},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.TEMPLATE='
\n \n \n \n \n \n
',jr([i.RefSelector("axisTicksGroup")],t.prototype,"axisTicksGroup",void 0),jr([i.RefSelector("axisTicksColorPicker")],t.prototype,"axisTicksColorPicker",void 0),jr([i.RefSelector("axisTicksWidthSlider")],t.prototype,"axisTicksWidthSlider",void 0),jr([i.RefSelector("axisTicksSizeSlider")],t.prototype,"axisTicksSizeSlider",void 0),jr([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),jr([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Wr=function(){function e(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.isValid=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.dilate=function(e){this.x-=e,this.y-=e,this.width+=2*e,this.height+=2*e},e.prototype.containsPoint=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.render=function(t,n){void 0===n&&(n=e.noParams),t.save(),n.resetTransform&&t.setTransform(1,0,0,1,0,0),t.strokeStyle=n.strokeStyle||"cyan",t.lineWidth=n.lineWidth||1,t.strokeRect(this.x,this.y,this.width,this.height),n.label&&(t.fillStyle=n.fillStyle||"black",t.textBaseline="bottom",t.fillText(n.label,this.x,this.y)),t.restore()},e.noParams={},e}(),Hr=function(){function e(e){void 0===e&&(e=[1,0,0,1,0,0]),this.elements=e}return e.prototype.setElements=function(e){var t=this.elements;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],this},e.prototype.setIdentityElements=function(){var e=this.elements;return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,this},Object.defineProperty(e.prototype,"identity",{get:function(){var e=this.elements;return 1===e[0]&&0===e[1]&&0===e[2]&&1===e[3]&&0===e[4]&&0===e[5]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.elements[0]},set:function(e){this.elements[0]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.elements[1]},set:function(e){this.elements[1]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.elements[2]},set:function(e){this.elements[2]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.elements[3]},set:function(e){this.elements[3]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"e",{get:function(){return this.elements[4]},set:function(e){this.elements[4]=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"f",{get:function(){return this.elements[5]},set:function(e){this.elements[5]=e},enumerable:!0,configurable:!0}),e.prototype.AxB=function(e,t,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],l=e[5],c=t[0],u=t[1],d=t[2],h=t[3],p=t[4],f=t[5];(n=n||e)[0]=r*c+i*u,n[1]=o*c+a*u,n[2]=r*d+i*h,n[3]=o*d+a*h,n[4]=r*p+i*f+s,n[5]=o*p+a*f+l},e.prototype.multiplySelf=function(e){return this.AxB(this.elements,e.elements),this},e.prototype.multiply=function(t){var n=new Array(6);return this.AxB(this.elements,t.elements,n),new e(n)},e.prototype.preMultiplySelf=function(e){return this.AxB(e.elements,this.elements,this.elements),this},e.prototype.inverse=function(){var t=this.elements,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=1/(n*i-r*o);return new e([i*=l,-(r*=l),-(o*=l),n*=l,o*s-i*a,r*a-n*s])},e.prototype.inverseTo=function(e){var t=this.elements,n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=t[5],l=1/(n*i-r*o);return n*=l,r*=l,o*=l,i*=l,e.setElements([i,-r,-o,n,o*s-i*a,r*a-n*s]),this},e.prototype.invertSelf=function(){var e=this.elements,t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=1/(t*o-n*r);return t*=s,n*=s,r*=s,o*=s,e[0]=o,e[1]=-n,e[2]=-r,e[3]=t,e[4]=r*a-o*i,e[5]=n*i-t*a,this},e.prototype.clone=function(){return new e(this.elements.slice())},e.prototype.transformPoint=function(e,t){var n=this.elements;return{x:e*n[0]+t*n[2]+n[4],y:e*n[1]+t*n[3]+n[5]}},e.prototype.transformBBox=function(e,t,n){void 0===t&&(t=0);var r,o,i=this.elements,a=i[0],s=i[1],l=i[2],c=i[3],u=.5*e.width,d=.5*e.height,h=e.x+u,p=e.y+d;if(t){u-=t,d-=t;var f=Math.sqrt(a*a+l*l),g=Math.sqrt(s*s+c*c);r=Math.abs(u*a)+Math.abs(d*l)+Math.abs(f*t),o=Math.abs(u*s)+Math.abs(d*c)+Math.abs(g*t)}else r=Math.abs(u*a)+Math.abs(d*l),o=Math.abs(u*s)+Math.abs(d*c);return n||(n=new Wr(0,0,0,0)),n.x=h*a+p*l+i[4]-r,n.y=h*s+p*c+i[5]-o,n.width=r+r,n.height=o+o,n},e.prototype.toContext=function(e){if(!this.identity){var t=this.elements;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},e.flyweight=function(t){return t?t instanceof e?e.matrix.setElements(t.elements):e.matrix.setElements(t):e.matrix.setIdentityElements(),e.matrix},e.matrix=new e,e}();!function(e){e[e.All=0]="All",e[e.None=1]="None"}(ar||(ar={}));var Gr=function(){function e(){this.id=this.createId(),this.tag=NaN,this.isContainerNode=!1,this._children=[],this.childSet={},this.matrix=new Hr,this.inverseMatrix=new Hr,this._dirtyTransform=!1,this._scalingX=1,this._scalingY=1,this._scalingCenterX=null,this._scalingCenterY=null,this._rotationCenterX=null,this._rotationCenterY=null,this._rotation=0,this._translationX=0,this._translationY=0,this._dirty=!0,this._visible=!0,this.pointerEvents=ar.All}return e.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},e.isNode=function(e){return!!e&&void 0!==e.matrix},e.prototype._setScene=function(e){this._scene=e;for(var t=this.children,n=t.length,r=0;r=0)return this._children.splice(t,1),delete this.childSet[e.id],e._setParent(void 0),e._setScene(void 0),this.dirty=!0,e}throw new Error("The node to be removed is not a child of this node.")},e.prototype.insertBefore=function(e,t){var n=e.parent;if(e.parent&&e.parent.removeChild(e),t&&t.parent===this){var r=this.children.indexOf(t);if(!(r>=0))throw new Error(t+" has "+n+" as the parent, but is not in its list of children.");this._children.splice(r,0,e),this.childSet[e.id]=!0,e._setParent(this),e._setScene(this.scene),this.dirty=!0}else this.append(e);return e},Object.defineProperty(e.prototype,"nextSibling",{get:function(){var e=this.parent;if(e){var t=e.children,n=t.indexOf(this);if(n>=0&&n<=t.length-1)return t[n+1]}},enumerable:!0,configurable:!0}),e.prototype.transformPoint=function(e,t){for(var n=Hr.flyweight(this.matrix),r=this.parent;r;)n.preMultiplySelf(r.matrix),r=r.parent;return n.invertSelf().transformPoint(e,t)},Object.defineProperty(e.prototype,"dirtyTransform",{get:function(){return this._dirtyTransform},set:function(e){this._dirtyTransform=e,e&&(this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this._scalingX},set:function(e){this._scalingX!==e&&(this._scalingX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this._scalingY},set:function(e){this._scalingY!==e&&(this._scalingY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterX",{get:function(){return this._scalingCenterX},set:function(e){this._scalingCenterX!==e&&(this._scalingCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingCenterY",{get:function(){return this._scalingCenterY},set:function(e){this._scalingCenterY!==e&&(this._scalingCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterX",{get:function(){return this._rotationCenterX},set:function(e){this._rotationCenterX!==e&&(this._rotationCenterX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationCenterY",{get:function(){return this._rotationCenterY},set:function(e){this._rotationCenterY!==e&&(this._rotationCenterY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotationDeg",{get:function(){return this.rotation/Math.PI*180},set:function(e){this.rotation=e/180*Math.PI},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationX",{get:function(){return this._translationX},set:function(e){this._translationX!==e&&(this._translationX=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"translationY",{get:function(){return this._translationY},set:function(e){this._translationY!==e&&(this._translationY=e,this.dirtyTransform=!0)},enumerable:!0,configurable:!0}),e.prototype.isPointInNode=function(e,t){return!1},e.prototype.pickNode=function(e,t){if(this.visible&&this.pointerEvents!==ar.None&&this.isPointInNode(e,t)){var n=this.children;if(n.length)for(var r=n.length-1;r>=0;r--){var o=n[r].pickNode(e,t);if(o)return o}else if(!this.isContainerNode)return this}},e.prototype.computeBBox=function(){},e.prototype.computeBBoxCenter=function(){var e=this.computeBBox&&this.computeBBox();return e?[e.x+.5*e.width,e.y+.5*e.height]:[0,0]},e.prototype.computeTransformMatrix=function(){var e,t,n=[0,0],r=n[0],o=n[1],i=this.scalingX,a=this.scalingY;1===i&&1===a?(e=0,t=0):(e=null===this.scalingCenterX?r:this.scalingCenterX,t=null===this.scalingCenterY?o:this.scalingCenterY);var s,l,c=this.rotation,u=Math.cos(c),d=Math.sin(c);0===c?(s=0,l=0):(s=null===this.rotationCenterX?r:this.rotationCenterX,l=null===this.rotationCenterY?o:this.rotationCenterY);var h=this.translationX,p=this.translationY,f=e*(1-i)-s,g=t*(1-a)-l;this.dirtyTransform=!1,this.matrix.setElements([u*i,d*i,-d*a,u*a,u*f-d*g+s+h,d*f+u*g+l+p]).inverseTo(this.inverseMatrix)},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){this._dirty=e,e&&(this.parent?this.parent.dirty=!0:this.scene&&(this.scene.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible!==e&&(this._visible=e,this.dirty=!0)},enumerable:!0,configurable:!0}),e.MAX_SAFE_INTEGER=Math.pow(2,53)-1,e}(),Ur=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t}return Ur(t,e),t.prototype.isPointInNode=function(e,t){return!0},t.prototype.computeBBox=function(){var e=1/0,n=-1/0,r=1/0,o=-1/0;return this.dirtyTransform&&this.computeTransformMatrix(),this.children.forEach(function(i){if(i.visible){var a=i.computeBBox();if(a){if(!(i instanceof t)){i.dirtyTransform&&i.computeTransformMatrix();for(var s=Hr.flyweight(i.matrix),l=i.parent;l;)s.preMultiplySelf(l.matrix),l=l.parent;s.transformBBox(a,0,a)}var c=a.x,u=a.y;cn&&(n=c+a.width),u+a.height>o&&(o=u+a.height)}}}),new Wr(e,r,n-e,o-r)},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);for(var t=this.children,n=t.length,r=0;r=C&&(C=b+1);for(var x=void 0;!(x=v[C])&&C0&&r<1?Math.abs(Math.floor(Math.log(r)/Math.LN10)):0,i=Math.pow(10,o),a=Math.max(0,Math.ceil((t-e)/n))||0,s=new so(o,a),l=0;l=no?o*=10:i>=ro?o*=5:i>=oo&&(o*=2),t=0?(i>=no?10:i>=ro?5:i>=oo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=no?10:i>=ro?5:i>=oo?2:1)}var so=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,n)||this;return r.fractionDigits=t,r}return eo(t,e),t}(Array);var lo=2*Math.PI;function co(e){return e%=lo,e+=lo,e%=lo}function uo(e){return e/180*Math.PI}var ho=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),po=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n._x=0,n._y=0,n.lineBreakRegex=/\r?\n/g,n.lines=[],n._text="",n._dirtyFont=!0,n._fontSize=10,n._fontFamily="sans-serif",n._textAlign=t.defaultStyles.textAlign,n._textBaseline=t.defaultStyles.textBaseline,n._lineHeight=14,n}return ho(t,e),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.splitText=function(){this.lines=this._text.split(this.lineBreakRegex)},Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){var t=String(e);this._text!==t&&(this._text=t,this.splitText(),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.dirtyFont&&(this.dirtyFont=!1,this._font=[this.fontStyle||"",this.fontWeight||"",this.fontSize+"px",this.fontFamily].join(" ").trim()),this._font},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyFont",{get:function(){return this._dirtyFont},set:function(e){this._dirtyFont!==e&&(this._dirtyFont=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){isFinite(e)||(e=10),this._fontSize!==e&&(this._fontSize=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(e){this._fontFamily!==e&&(this._fontFamily=e,this.dirtyFont=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAlign",{get:function(){return this._textAlign},set:function(e){this._textAlign!==e&&(this._textAlign=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){return this.scene?this.scene.canvas.has.textMetrics?this.getPreciseBBox():this.getApproximateBBox():void 0},t.prototype.getPreciseBBox=function(){var e=this.scene.canvas.measureText(this.text,this.font,this.textBaseline,this.textAlign);return new Wr(this.x-e.actualBoundingBoxLeft,this.y-e.actualBoundingBoxAscent,e.width,e.actualBoundingBoxAscent+e.actualBoundingBoxDescent)},t.prototype.getApproximateBBox=function(){var e=this.scene.canvas.getTextSize(this.text,this.font),t=this.x,n=this.y;switch(this.textAlign){case"end":case"right":t-=e.width;break;case"center":t-=e.width/2}switch(this.textBaseline){case"alphabetic":n-=.7*e.height;break;case"middle":n-=.45*e.height;break;case"ideographic":n-=e.height;break;case"hanging":n-=.2*e.height;break;case"bottom":n-=e.height}return new Wr(t,n,e.width,e.height)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),r=this.computeBBox();return!!r&&r.containsPoint(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.render=function(e){if(this.lines.length){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e);var t=this.opacity,n=this.fill,r=this.stroke,o=this.strokeWidth;t<1&&(e.globalAlpha=t),e.font=this.font,e.textAlign=this.textAlign,e.textBaseline=this.textBaseline;var i=this.scene.canvas.pixelRatio||1;if(n){e.fillStyle=n;var a=this.fillShadow,s=this.text,l=this.x,c=this.y;a&&a.enabled&&(e.shadowColor=a.color,e.shadowOffsetX=a.xOffset*i,e.shadowOffsetY=a.yOffset*i,e.shadowBlur=a.blur*i),e.fillText(s,l,c)}if(r&&o){e.strokeStyle=r,e.lineWidth=o;var u=this,d=u.lineDash,h=u.lineDashOffset,p=u.lineCap,f=u.lineJoin,g=u.strokeShadow;s=u.text,l=u.x,c=u.y;d&&e.setLineDash(d),h&&(e.lineDashOffset=h),p&&(e.lineCap=p),f&&(e.lineJoin=f),g&&g.enabled&&(e.shadowColor=g.color,e.shadowOffsetX=g.xOffset*i,e.shadowOffsetY=g.yOffset*i,e.shadowBlur=g.blur*i),e.strokeText(s,l,c)}this.dirty=!1}},t.className="Text",t.defaultStyles=Kr(Zr.defaultStyles,{textAlign:"start",fontStyle:void 0,fontWeight:void 0,fontSize:10,fontFamily:"sans-serif",textBaseline:"alphabetic"}),t}(Zr),fo=Math.sign?Math.sign:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1};function go(e,t,n,r){if(0===e)return function(e,t,n){if(0===e)return function(e,t){var n=-t/e;return 0!==e&&n>=0&&n<=1?[n]:[]}(t,n);var r=t*t-4*e*n,o=[];if(0===r){var i=-t/(2*e);i>=0&&i<=1&&o.push(i)}else if(r>0){var a=Math.sqrt(r),s=(-t-a)/(2*e),l=(-t+a)/(2*e);s>=0&&s<=1&&o.push(s),l>=0&&l<=1&&o.push(l)}return o}(t,n,r);var o=t/e,i=n/e,a=(3*i-o*o)/9,s=(9*o*i-27*(r/e)-2*o*o*o)/54,l=a*a*a+s*s,c=[];if(l>=0){var u=Math.sqrt(l),d=fo(s+u)*Math.pow(Math.abs(s+u),1/3),h=fo(s-u)*Math.pow(Math.abs(s-u),1/3),p=Math.abs(Math.sqrt(3)*(d-h)/2),f=-1/3*o+(d+h);if(f>=0&&f<=1&&c.push(f),0===p){var g=-1/3*o-(d+h)/2;g>=0&&g<=1&&c.push(g)}}else{var m=Math.acos(s/Math.sqrt(-a*a*a)),v=1/3*o,y=2*Math.sqrt(-a),b=y*Math.cos(1/3*m)-v,C=y*Math.cos(1/3*(m+2*Math.PI))-v,w=y*Math.cos(1/3*(m+4*Math.PI))-v;b>=0&&b<=1&&c.push(b),C>=0&&C<=1&&c.push(C),w>=0&&w<=1&&c.push(w)}return c}function mo(e,t,n,r,o,i,a,s){var l=(n-e)*(s-i)-(r-t)*(a-o);if(0===l)return null;var c=((a-o)*(t-i)-(e-o)*(s-i))/l,u=((n-e)*(t-i)-(r-t)*(e-o))/l;return c>=0&&c<=1&&u>=0&&u<=1?{x:e+c*(n-e),y:t+c*(r-t)}:null}function vo(e,t,n,r,o,i,a,s,l,c,u,d){for(var h=[],p=c-d,f=u-l,g=l*(d-c)-c*(u-l),m=yo(e,n,o,a),v=yo(t,r,i,s),y=go(p*m[0]+f*v[0],p*m[1]+f*v[1],p*m[2]+f*v[2],p*m[3]+f*v[3]+g),b=0;b=0&&M<=1&&h.push({x:_,y:S})}return h}function yo(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}var bo=function(){function e(){this.commands=[],this.params=[],this._closedPath=!1}return e.prototype.moveTo=function(e,t){this.xy?(this.xy[0]=e,this.xy[1]=t):this.xy=[e,t],this.commands.push("M"),this.params.push(e,t)},e.prototype.lineTo=function(e,t){this.xy?(this.commands.push("L"),this.params.push(e,t),this.xy[0]=e,this.xy[1]=t):this.moveTo(e,t)},e.prototype.rect=function(e,t,n,r){this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.closePath()},e.prototype.arcTo=function(e,t,n,r,o,i,a){var s=this.xy;if(s){e<0&&(e=-e),t<0&&(t=-t);var l=s[0],c=s[1],u=(l-i)/2,d=(c-a)/2,h=Math.sin(n),p=Math.cos(n),f=p*u+h*d,g=-h*u+p*d,m=f/e,v=g/t,y=m*m+v*v,b=(l+i)/2,C=(c+a)/2,w=0,x=0;y>=1?(e*=y=Math.sqrt(y),t*=y):(y=Math.sqrt(1/y-1),r===o&&(y=-y),b+=p*(w=y*e*v)-h*(x=-y*t*m),C+=h*w+p*x);var _=Math.atan2((g-x)/t,(f-w)/e),S=Math.atan2((-g-x)/t,(-f-w)/e)-_;this.cubicArc(b,C,e,t,n,_,_+S,1-o)}},e.prototype.arcToAlt=function(e,t,n,r,o,i,a){if(this.xy)this.xy[0],this.xy[1]},e.cubicArc=function(e,t,n,r,o,i,a,s,l,c){if(c){var u=s;s=l,l=u}var d=t.length,h=.5522847498307935,p=Math.sin(s),f=Math.cos(s),g=Math.sin(a),m=Math.cos(a),v=Math.PI/2,y=m*f*o-g*p*i,b=g*f*o+m*p*i,C=-m*p*o-g*f*i,w=-g*p*o+m*f*i;for((l-=s)<0&&(l+=2*Math.PI),e.push("M"),t.push(y+n,b+r);l>=v;){l-=v,e.push("C");var x=C+n;t.push(y+C*h+n,b+w*h+r,y*h+C+n,b*h+w+r,Math.abs(x)<1e-8?0:x,w+r);u=y;y=C,C=-u,u=b,b=w,w=-u}if(l){var _=4/3*Math.tan(l/4),S=Math.sin(l),M=Math.cos(l),E=M+_*S,O=S-_*M;e.push("C");x=y*M+C*S+n;t.push(y+C*_+n,b+w*_+r,y*E+C*O+n,b*E+w*O+r,Math.abs(x)<1e-8?0:x,b*M+w*S+r)}if(c)for(var A=d,T=t.length-2;A\n \n'},e.prototype.toDebugSvg=function(){var t=e.prettifySvgPath(this.toString());return e.xmlDeclaration+'\n\n \n'},e.prototype.toCubicPaths=function(){var e,t,n,r,o,i=[],a=this.params,s=0;return this.commands.forEach(function(l){switch(l){case"M":e=[t=r=a[s++],n=o=a[s++]],i.push(e);break;case"L":var c=a[s++],u=a[s++];e.push((r+r+c)/3,(o+o+u)/3,(r+c+c)/3,(o+u+u)/3,r=c,o=u);break;case"C":e.push(a[s++],a[s++],a[s++],a[s++],r=a[s++],o=a[s++]);break;case"Z":e.push((r+r+t)/3,(o+o+n)/3,(r+t+t)/3,(o+n+n)/3,r=t,o=n)}}),i},e.cubicPathToString=function(e){var t=e.length;if(!(t%2===0&&(t/2-1)/2>=1))throw new Error("Invalid path.");return"M"+e.slice(0,2).join(",")+"C"+e.slice(2).join(",")},e.splitCommandsRe=/(?=[AaCcHhLlMmQqSsTtVvZz])/g,e.matchParamsRe=/-?[0-9]*\.?\d+/g,e.quadraticCommandRe=/[QqTt]/,e.cubicCommandRe=/[CcSs]/,e.xmlDeclaration='',e.xmlns="http://www.w3.org/2000/svg",e}(),Co=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new bo,t._dirtyPath=!0,t._svgPath="",t}return Co(t,e),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"svgPath",{get:function(){return this._svgPath},set:function(e){this._svgPath!==e&&(this._svgPath=e,this.path.setFromString(e),this.dirty=!0)},enumerable:!0,configurable:!0}),t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.path.closedPath&&this.path.isPointInPath(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},t.prototype.updatePath=function(){},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.dirtyPath&&(this.updatePath(),this.dirtyPath=!1),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Path",t}(Zr);function xo(e,t,n){return void 0===n&&(n=1e-10),Math.abs(e-t)=0||!isFinite(n)?e.toFixed(t):e.toFixed(Math.abs(n)-1+t)}var So,Mo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){e[e.Open=0]="Open",e[e.Chord=1]="Chord",e[e.Round=2]="Round"}(So||(So={}));var Eo,Oo=function(e){function t(){var t=e.call(this)||this;return t._centerX=0,t._centerY=0,t._radiusX=10,t._radiusY=10,t._startAngle=0,t._endAngle=2*Math.PI,t._counterClockwise=!1,t._type=So.Open,t.restoreOwnStyles(),t}return Mo(t,e),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusX",{get:function(){return this._radiusX},set:function(e){this._radiusX!==e&&(this._radiusX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){return this._radiusY},set:function(e){this._radiusY!==e&&(this._radiusY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPie",{get:function(){return xo(co(this.startAngle),co(this.endAngle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"counterClockwise",{get:function(){return this._counterClockwise},set:function(e){this._counterClockwise!==e&&(this._counterClockwise=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type!==e&&(this._type=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.cubicArc(this.centerX,this.centerY,this.radiusX,this.radiusY,0,this.startAngle,this.endAngle,this.counterClockwise?1:0),this.type===So.Chord?e.closePath():this.type!==So.Round||this.fullPie||(e.lineTo(this.centerX,this.centerY),e.closePath())},t.prototype.computeBBox=function(){return new Wr(this.centerX-this.radiusX,this.centerY-this.radiusY,2*this.radiusX,2*this.radiusY)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t),r=this.computeBBox();return this.type!==So.Open&&r.containsPoint(n.x,n.y)&&this.path.isPointInPath(n.x,n.y)},t.className="Arc",t.defaultStyles=Kr(Zr.defaultStyles,{lineWidth:1,fillStyle:null}),t}(wo);!function(e){e[e.Tick=0]="Tick",e[e.GridLine=1]="GridLine"}(Eo||(Eo={}));var Ao,To,ko=function(){return function(){this.width=1,this.size=6,this.color="rgba(195, 195, 195, 1)",this.count=10}}(),Do=function(){function e(){this.fontSize=12,this.fontFamily="Verdana, sans-serif",this.padding=5,this.color="rgba(87, 87, 87, 1)",this.rotation=0,this.mirrored=!1,this.parallel=!1}return Object.defineProperty(e.prototype,"format",{get:function(){return this._format},set:function(e){this._format!==e&&(this._format=e,this.onFormatChange&&this.onFormatChange(e))},enumerable:!0,configurable:!0}),e}(),Po=function(){function e(e){this.lineNode=new Qr,this.group=new qr,this.line={width:1,color:"rgba(195, 195, 195, 1)"},this.tick=new ko,this.label=new Do,this.translation={x:0,y:0},this.rotation=0,this._title=void 0,this._gridLength=0,this.gridStyle=[{stroke:"rgba(219, 219, 219, 1)",lineDash:[4,2]}],this._radialGrid=!1,this.scale=e,this.groupSelection=Xr.select(this.group).selectAll(),this.label.onFormatChange=this.onTickFormatChange.bind(this),this.group.append(this.lineNode),this.onTickFormatChange()}return Object.defineProperty(e.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e},enumerable:!0,configurable:!0}),e.prototype.onTickFormatChange=function(e){e?this.scale.tickFormat&&(this.tickFormatter=this.scale.tickFormat(10,e)):this.scale.tickFormat?this.tickFormatter=this.scale.tickFormat(10,void 0):this.tickFormatter=void 0},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&this.group.removeChild(t.node),e&&(e.node.rotation=-Math.PI/2,this.group.appendChild(e.node)),this._title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.groupSelection=this.groupSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radialGrid",{get:function(){return this._radialGrid},set:function(e){this._radialGrid!==e&&(this._radialGrid=e,this.groupSelection=this.groupSelection.remove().setData([]))},enumerable:!0,configurable:!0}),e.prototype.update=function(){var e=this,t=this,n=t.group,r=t.scale,o=t.tick,i=t.label,a=t.gridStyle,s=uo(this.rotation),l=i.parallel,c=co(uo(i.rotation));n.translationX=this.translation.x,n.translationY=this.translation.y,n.rotation=s;var u=(r.bandwidth||0)/2,d=i.mirrored?1:-1,h=co(s),p=!c&&h>=0&&h<=Math.PI?-1:1,f=co(s-Math.PI/2),g=!c&&f>=0&&f<=Math.PI?-1:1,m=c>=0&&c<=Math.PI?-1:1,v=r.ticks(this.tick.count),y=this.groupSelection.setData(v);y.exit.remove();var b=y.enter.append(qr);b.append(Qr).each(function(e){return e.tag=Eo.Tick}),this.gridLength&&(this.radialGrid?b.append(Oo).each(function(e){return e.tag=Eo.GridLine}):b.append(Qr).each(function(e){return e.tag=Eo.GridLine})),b.append(po);var C,w=y.merge(b);if(w.attrFn("translationY",function(e,t){return Math.round(r.convert(t)+u)}),w.selectByTag(Eo.Tick).each(function(e){e.strokeWidth=o.width,e.stroke=o.color}).attr("x1",d*o.size).attr("x2",0).attr("y1",0).attr("y2",0),this.gridLength&&a.length){var x=a.length,_=void 0;if(this.radialGrid){var S=(C=uo(this.gridLength),C%=lo,(C+=lo)!==lo&&(C%=lo),C);_=w.selectByTag(Eo.GridLine).each(function(e,t){var n=Math.round(r.convert(t)+u);e.centerX=0,e.centerY=r.range[0]-n,e.endAngle=S,e.radiusX=n,e.radiusY=n})}else _=w.selectByTag(Eo.GridLine).each(function(t){t.x1=0,t.x2=-d*e.gridLength,t.y1=0,t.y2=0,t.visible=Math.abs(t.parent.translationY-r.range[0])>1});_.each(function(e,t,n){var r=a[n%x];e.stroke=r.stroke,e.strokeWidth=o.width,e.lineDash=r.lineDash,e.fill=void 0})}var M=this.tickFormatter,E=v instanceof so?v.fractionDigits:0,O=w.selectByClass(po).each(function(e,t,n){e.fontStyle=i.fontStyle,e.fontWeight=i.fontWeight,e.fontSize=i.fontSize,e.fontFamily=i.fontFamily,e.fill=i.color,e.textBaseline=l&&!c?d*p===-1?"hanging":"bottom":"middle",e.text=i.formatter?i.formatter({value:E>=0?t:String(t),index:n,fractionDigits:E,formatter:M}):E?t.toFixed(E):M?M(t):String(t),e.textAlign=l?c?d*m===-1?"end":"start":"center":d*g===-1?"end":"start"}),A=d*(o.size+i.padding),T=l?p*Math.PI/2:-1===g?Math.PI:0;O.each(function(e){e.x=A,e.rotationCenterX=A,e.rotation=T+c}),this.groupSelection=w;var k=this.lineNode;k.x1=0,k.x2=0,k.y1=r.range[0],k.y2=r.range[r.range.length-1],k.strokeWidth=this.line.width,k.stroke=this.line.color,k.visible=v.length>0;var D=this.title;if(D){var P=D.padding.bottom,N=D.node,L=this.computeBBox({excludeTitle:!0}),R=-1===d&&h>Math.PI&&h<2*Math.PI?-1:1;N.rotation=R*d*Math.PI/2,N.x=R*d*(k.y1+k.y2)/2,N.y=-1===d?R*(-P-L.width+Math.max(L.x+L.width,0)):-P-L.width-Math.min(L.x,0),N.textBaseline=1===R?"bottom":"top"}},e.prototype.computeBBox=function(e){var t=this.lineNode,n=this.groupSelection.selectByClass(po),r=1/0,o=-1/0,i=1/0,a=-1/0;if(n.each(function(e){e.computeTransformMatrix();var t=Hr.flyweight(e.matrix),n=e.parent;n.computeTransformMatrix(),t.preMultiplySelf(n.matrix);var s=e.computeBBox();if(s){var l=t.transformBBox(s);r=Math.min(r,l.x),o=Math.max(o,l.x+l.width),i=Math.min(i,l.y),a=Math.max(a,l.y+l.height)}}),this.title&&(!e||!e.excludeTitle)){var s=this.title.node;s.computeTransformMatrix();var l=Hr.flyweight(s.matrix),c=s.computeBBox();if(c){var u=l.transformBBox(c);r=Math.min(r,u.x),o=Math.max(o,u.x+u.width),i=Math.min(i,u.y),a=Math.max(a,u.y+u.height)}}return r=Math.min(r,0),o=Math.max(o,0),i=Math.min(i,t.y1,t.y2),a=Math.max(a,t.y1,t.y2),new Wr(r,i,o-r,a-i)},e}(),No=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Lo(e){return e===Ao.X?Ao.Y:Ao.X}!function(e){e.X="x",e.Y="y"}(Ao||(Ao={})),function(e){e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e.Angle="angle",e.Radius="radius"}(To||(To={}));var Ro,Fo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.keys=[],t.boundSeries=[],t.thickness=0,t}return No(t,e),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){if(this._position!==e)switch(this._position=e,e){case To.Top:this.direction=Ao.X,this.rotation=-90,this.label.mirrored=!0,this.label.parallel=!0;break;case To.Right:this.direction=Ao.Y,this.rotation=0,this.label.mirrored=!0,this.label.parallel=!1;break;case To.Bottom:this.direction=Ao.X,this.rotation=-90,this.label.mirrored=!1,this.label.parallel=!0;break;case To.Left:this.direction=Ao.Y,this.rotation=0,this.label.mirrored=!1,this.label.parallel=!1}},enumerable:!0,configurable:!0}),t}(Po),Io=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bo=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return Io(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initAxis(),this.initAxisTicks(),this.initAxisLabels()},t.prototype.initAxis=function(){var e=this;this.axisGroup.setTitle(this.chartTranslator.translate("axis")).toggleGroupExpand(!1).hideEnabledCheckbox(!0),this.axisColorInput.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.getChartProxy().getAxisProperty("line.color")).onValueChange(function(t){return e.getChartProxy().setAxisProperty("line.color",t)}),this.axisLineWidthSlider.setLabel(this.chartTranslator.translate("thickness")).setMaxValue(10).setTextFieldWidth(45).setValue(this.getChartProxy().getAxisProperty("line.width")).onValueChange(function(t){return e.getChartProxy().setAxisProperty("line.width",t)})},t.prototype.initAxisTicks=function(){var e=this.wireBean(new Vr(this.chartController));this.axisGroup.addItem(e),this.activePanels.push(e)},t.prototype.initAxisLabels=function(){var e=this,t=this.getChartProxy(),n={enabled:!0,suppressEnabledCheckbox:!0,initialFont:{family:t.getAxisProperty("label.fontFamily"),style:t.getAxisProperty("label.fontStyle"),weight:t.getAxisProperty("label.fontWeight"),size:t.getAxisProperty("label.fontSize"),color:t.getAxisProperty("label.color")},setFont:function(t){var n=e.getChartProxy();t.family&&n.setAxisProperty("label.fontFamily",t.family),t.weight&&n.setAxisProperty("label.fontWeight",t.weight),t.style&&n.setAxisProperty("label.fontStyle",t.style),t.size&&n.setAxisProperty("label.fontSize",t.size),t.color&&n.setAxisProperty("label.color",t.color),n.getChart().performLayout()}},r=this.wireBean(new Tr(n));this.axisGroup.addItem(r),this.activePanels.push(r),this.addAdditionalLabelComps(r)},t.prototype.addAdditionalLabelComps=function(e){var t=this,n=function(n,r,o){var a=t.wireBean((new i.AgAngleSelect).setLabel(n).setLabelWidth("flex").setValue(r||0).onValueChange(o));e.addCompToPanel(a)},r=String.fromCharCode(176),o=function(e){return function(n){var r=t.getChartProxy().getChart(),o=rr(r.axes,function(t){return t.position===e});o&&(o.label.rotation=n,r.performLayout())}},a=this.chartTranslator.translate("xRotation")+" "+r,s=this.chartTranslator.translate("yRotation")+" "+r;n(a,this.getChartProxy().getChartOption("xAxis.label.rotation"),o(To.Bottom)),n(s,this.getChartProxy().getChartOption("yAxis.label.rotation"),o(To.Left));var l=this.wireBean(new i.AgSlider);l.setLabel(this.chartTranslator.translate("padding")).setValue(this.getChartProxy().getAxisProperty("label.padding")).setMaxValue(30).setTextFieldWidth(45).onValueChange(function(e){return t.getChartProxy().setAxisProperty("label.padding",e)}),e.addCompToPanel(l)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n
',zo([i.RefSelector("axisGroup")],t.prototype,"axisGroup",void 0),zo([i.RefSelector("axisLineWidthSlider")],t.prototype,"axisLineWidthSlider",void 0),zo([i.RefSelector("axisColorInput")],t.prototype,"axisColorInput",void 0),zo([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),zo([i.PostConstruct],t.prototype,"init",null),t}(i.Component),jo=function(){function e(e){void 0===e&&(e=window.document),this._parent=void 0,this._pixelRatio=NaN,this.document=e,this.tempCanvas=e.createElement("canvas"),this.element=e.createElement("canvas"),this.element.style.userSelect="none",this.context=this.element.getContext("2d"),this.updatePixelRatio(0,!1),this.resize(this._width=300,this._height=150)}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent!==e&&(this.remove(),e&&e.appendChild(this.element),this._parent=e)},enumerable:!0,configurable:!0}),e.prototype.remove=function(){var e=this.element.parentNode;null!=e&&e.removeChild(this.element)},e.prototype.destroy=function(){this.element.remove(),this._canvas=void 0,Object.freeze(this)},e.prototype.toImage=function(){var e=this.document.createElement("img");return e.src=this.element.toDataURL(),e},e.prototype.download=function(e){e=((e||"").trim()||"image")+".png";var t=this.element.toDataURL("image/png"),n=this.document;if(navigator.msSaveOrOpenBlob){for(var r=atob(t.split(",")[1]),o=[],i=0,a=r.length;i0&&(this.$restore(),t--)},setTransform:function(t,n,r,o,i,a){this.$setTransform(t*e,n*e,r*e,o*e,i*e,a*e)},resetTransform:function(){this.$setTransform(e,0,0,e,0,0),this.save(),t=0}}},e.textSizeCache={},e}(),Vo=function(){function e(e){var t=this;void 0===e&&(e=window.document),this.id=this.createId(),this._dirty=!1,this.animationFrameId=0,this._root=null,this._frameIndex=0,this._renderFrameIndex=!1,this.render=function(){var e=t,n=e.ctx,r=e.root;!r||r.visible?(n.clearRect(0,0,t.width,t.height),r&&(n.save(),r.visible&&r.render(n),n.restore()),t._frameIndex++,t.renderFrameIndex&&(n.fillStyle="white",n.fillRect(0,0,40,15),n.fillStyle="black",n.fillText(t.frameIndex.toString(),0,10)),t.dirty=!1):t.dirty=!1},this.canvas=new jo(e),this.ctx=this.canvas.context}return e.prototype.createId=function(){return this.constructor.name+"-"+e.id++},Object.defineProperty(e.prototype,"parent",{get:function(){return this.canvas.parent},set:function(e){this.canvas.parent=e},enumerable:!0,configurable:!0}),e.prototype.download=function(e){this.canvas.download(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.size=[e,this.height]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.size=[this.width,e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return[this.width,this.height]},set:function(e){var t=e[0],n=e[1];this.width===t&&this.height===n||(this.canvas.resize(t,n),this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},set:function(e){e&&!this._dirty&&(this.animationFrameId=requestAnimationFrame(this.render)),this._dirty=e},enumerable:!0,configurable:!0}),e.prototype.cancelRender=function(){this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=0,this._dirty=!1)},Object.defineProperty(e.prototype,"root",{get:function(){return this._root},set:function(e){e!==this._root&&(this._root&&this._root._setScene(void 0),this._root=e,e&&(null===e.parent&&e.scene&&e.scene!==this&&(e.scene.root=null),e._setScene(this)),this.dirty=!0)},enumerable:!0,configurable:!0}),e.prototype.appendPath=function(e){var t=this.ctx,n=e.commands,r=e.params,o=n.length,i=0;t.beginPath();for(var a=0;a=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(Qo||(Qo={}));var ni=function(e){function t(){var t=e.call(this)||this;return t.group=new qr,t.itemSelection=Xr.select(t.group).selectAll(),t.oldSize=[0,0],t.data=[],t.enabled=!0,t.orientation=Qo.Vertical,t.position="right",t.padding=20,t.itemPaddingX=16,t.itemPaddingY=8,t.markerPadding=$o.defaults.padding,t.markerSize=$o.defaults.markerSize,t.markerStrokeWidth=1,t.labelColor=$o.defaults.labelColor,t.labelFontStyle=$o.defaults.labelFontStyle,t.labelFontWeight=$o.defaults.labelFontWeight,t.labelFontSize=$o.defaults.labelFontSize,t.labelFontFamily=$o.defaults.labelFontFamily,t._size=[0,0],t.addPropertyListener("data",function(e){var t=e.source,n=e.value;t.group.visible=t.enabled&&n.length>0}),t.addPropertyListener("enabled",function(e){var t=e.source,n=e.value;t.group.visible=n&&t.data.length>0}),t.addPropertyListener("position",function(e){var t=e.source;switch(e.value){case"right":case"left":t.orientation=Qo.Vertical;break;case"bottom":case"top":t.orientation=Qo.Horizontal}}),t.addEventListener("change",function(){return t.update()}),t}return ei(t,e),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(e,t){var n=this,r=this.markerType,o=this.itemSelection.setData(this.data,function(e,t){var n=r||t.marker.type,o=n?n.name:"Square";return t.id+"-"+t.itemId+"-"+o});o.exit.remove();var i=o.enter.append($o).each(function(e,t){var n=r||t.marker.type||Xo;e.marker=new n}),a=this.itemSelection=o.merge(i),s=a.size,l=this.itemPaddingX,c=this.itemPaddingY,u=[];a.each(function(e,t){e.markerSize=n.markerSize,e.labelFontStyle=n.labelFontStyle,e.labelFontWeight=n.labelFontWeight,e.labelFontSize=n.labelFontSize,e.labelFontFamily=n.labelFontFamily,e.labelText=t.label.text,e.padding=n.markerPadding,u.push(e.computeBBox())});var d=u.length&&u[0].height,h=0,p=0,f=0,g=0;switch(this.orientation){case Qo.Horizontal:if(!(isFinite(e)&&e>0))return!1;h=0;var m=0;do{var v=0;m=0,p=0,h++;for(var y=0;yp&&(p=w.width),++y%h===0&&(v+=p,p=0,m++)}y%h!==0&&(v+=p,m++),f=v+(m-1)*l}while(f>e&&m>1);g=d*h+(h-1)*c;break;case Qo.Vertical:if(!(isFinite(t)&&t>0))return!1;h=2*s;do{h=(h>>1)+h%2,p=0;v=0;var b=0,C=0;for(y=0;yp&&(p=w.width),++y%h===0&&(v+=p,p=0,C++)}y%h!==0&&(v+=p,C++),f=v+(C-1)*l,g=b+(h-1)*c}while(g>t&&h>1)}var x=(e-f)/2,_=(t-g)/2,S=0,M=0;p=0,a.each(function(e,t,n){e.translationX=Math.floor(x+S),e.translationY=Math.floor(_+M);var r=u[n];r.width>p&&(p=r.width),(n+1)%h===0?(S+=p+l,M=0,p=0):M+=r.height+c}),this.update();var E=this._size,O=this.oldSize;E[0]=f,E[1]=g,E[0]===O[0]&&E[1]===O[1]||(O[0]=E[0],O[1]=E[1])},t.prototype.update=function(){var e=this;this.itemSelection.each(function(t,n){var r=n.marker;t.markerFill=r.fill,t.markerStroke=r.stroke,t.markerStrokeWidth=e.markerStrokeWidth,t.markerFillOpacity=r.fillOpacity,t.markerStrokeOpacity=r.strokeOpacity,t.opacity=n.enabled?1:.5,t.labelColor=e.labelColor})},t.prototype.datumForPoint=function(e,t){var n=this.group.pickNode(e,t);if(n&&n.parent)return n.parent.datum},ti([Jo(["layoutChange"])],t.prototype,"data",void 0),ti([Jo(["layoutChange"])],t.prototype,"enabled",void 0),ti([Jo(["layoutChange"])],t.prototype,"orientation",void 0),ti([Jo(["layoutChange"])],t.prototype,"position",void 0),ti([Jo(["layoutChange"])],t.prototype,"padding",void 0),ti([Jo(["layoutChange"])],t.prototype,"itemPaddingX",void 0),ti([Jo(["layoutChange"])],t.prototype,"itemPaddingY",void 0),ti([Jo(["layoutChange"])],t.prototype,"markerType",void 0),ti([Jo(["layoutChange"])],t.prototype,"markerPadding",void 0),ti([Jo(["layoutChange"])],t.prototype,"markerSize",void 0),ti([Jo(["change"])],t.prototype,"markerStrokeWidth",void 0),ti([Jo(["change"])],t.prototype,"labelColor",void 0),ti([Jo(["layoutChange"])],t.prototype,"labelFontStyle",void 0),ti([Jo(["layoutChange"])],t.prototype,"labelFontWeight",void 0),ti([Jo(["layoutChange"])],t.prototype,"labelFontSize",void 0),ti([Jo(["layoutChange"])],t.prototype,"labelFontFamily",void 0),t}(Zo),ri=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ii=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=t.createId(),t.group=new qr,t.directions=[Ao.X,Ao.Y],t.tooltipEnabled=!1,t.data=[],t.visible=!0,t.showInLegend=!0,t.scheduleLayout=function(){t.fireEvent({type:"layoutChange"})},t.scheduleData=function(){t.fireEvent({type:"dataChange"})},t}return ri(t,e),t.prototype.getKeys=function(e){var t=this,n=this.directionKeys,r=n&&n[e],o=[];return r&&r.forEach(function(e){var n=t[e];n&&(Array.isArray(n)?o.push.apply(o,n):o.push(n))}),o},t.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},t.prototype.toggleSeriesItem=function(e,t){this.visible=t},t.prototype.fixNumericExtent=function(e,t){if(!e)return[0,1];var n=e[0],r=e[1];return n===r&&(n-=1,r+=1),isFinite(n)&&isFinite(r)||(n=0,r=1),[n,r]},oi([Jo(["dataChange"])],t.prototype,"data",void 0),oi([Jo(["dataChange"])],t.prototype,"visible",void 0),oi([Jo(["layoutChange"])],t.prototype,"showInLegend",void 0),t}(Zo),ai=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ai(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,r=this.size/2;n.clear(),n.cubicArc(e,t,r,r,0,0,2*Math.PI,0),n.closePath()},t.className="Circle",t}(qo),li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.type=si,t.size=8,t.minSize=12,t}return li(t,e),ci([Jo(["change"])],t.prototype,"enabled",void 0),ci([Jo(["change"])],t.prototype,"type",void 0),ci([Jo(["change"])],t.prototype,"size",void 0),ci([Jo(["change"])],t.prototype,"minSize",void 0),ci([Jo(["change"])],t.prototype,"fill",void 0),ci([Jo(["change"])],t.prototype,"stroke",void 0),ci([Jo(["change"])],t.prototype,"strokeWidth",void 0),t}(Zo),di=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hi=function(e){function t(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.directionKeys=((t={})[Ao.X]=["xKey"],t[Ao.Y]=["yKey"],t),n}return di(t,e),t}(ii),pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t}(ui),fi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mi=function(e){function t(t){void 0===t&&(t=window.document);var n=e.call(this)||this;n.id=n.createId(),n.background=new Go,n.legendAutoPadding=new Wo,n.captionAutoPadding=0,n.defaultTooltipClass="ag-chart-tooltip",n.legend=new ni,n.tooltipOffset=[20,20],n.padding=new Wo(20),n.onLayoutChange=function(){n.layoutPending=!0},n.onLegendPositionChange=function(){n.legendAutoPadding.clear(),n.layoutPending=!0},n._axes=[],n._series=[],n.scheduleLayout=function(){n.layoutPending=!0},n.scheduleData=function(){n.dataPending=!0},n._data=[],n._axesChanged=!1,n._seriesChanged=!1,n.layoutCallbackId=0,n._performLayout=function(){n.layoutCallbackId=0,n.background.width=n.width,n.background.height=n.height,n.performLayout(),n.layoutPending||n.fireEvent({type:"layoutDone"})},n.dataCallbackId=0,n.updateLegend=function(){var e=[];n.series.filter(function(e){return e.showInLegend}).forEach(function(t){return t.listSeriesItems(e)}),n.legend.data=e},n.onMouseMove=function(e){var t=e.offsetX,r=e.offsetY,o=n.pickSeriesNode(t,r);if(o){var i=o.node;i instanceof Zr&&(n.lastPick&&n.lastPick.node===i?o.series.tooltipEnabled&&n.showTooltip(e):n.onSeriesNodePick(e,o.series,i))}else n.lastPick&&(n.lastPick.series.dehighlightNode(),n.hideTooltip(),n.lastPick=void 0)},n.onMouseOut=function(e){n.toggleTooltip(!1)},n.onClick=function(e){var t=e.offsetX,r=e.offsetY,o=n.legend.datumForPoint(t,r);if(o){var i=o.id,a=o.itemId,s=o.enabled,l=rr(n.series,function(e){return e.id===i});l&&l.toggleSeriesItem(a,!s)}},n._tooltipClass=n.defaultTooltipClass;var r=new qr,o=n.background;o.fill="white",r.appendChild(o);var i=new Vo(t);n.scene=i,i.root=r;var a=n.legend;a.addEventListener("layoutChange",n.onLayoutChange),a.addPropertyListener("position",n.onLegendPositionChange),n.tooltipElement=t.createElement("div"),n.tooltipClass="",t.body.appendChild(n.tooltipElement),n.setupListeners(i.canvas.element);var s=function(e){var t=e.source,n=e.value,r=e.oldValue;r&&(r.removeEventListener("change",t.onLayoutChange),t.scene.root.removeChild(r.node)),n&&(n.addEventListener("change",t.onLayoutChange),t.scene.root.appendChild(n.node))};return n.addPropertyListener("title",s),n.addPropertyListener("subtitle",s),n.addEventListener("layoutChange",function(){return n.layoutPending=!0}),n}return fi(t,e),t.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},t.prototype.destroy=function(){var e=this.tooltipElement.parentNode;e&&e.removeChild(this.tooltipElement),this.legend.removeEventListener("layoutChange",this.onLayoutChange),this.cleanupListeners(this.scene.canvas.element),this.scene.parent=void 0},Object.defineProperty(t.prototype,"element",{get:function(){return this.scene.canvas.element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axes",{get:function(){return this._axes},set:function(e){var t=this,n=this.scene.root;this._axes.forEach(function(e){return n.removeChild(e.group)}),this._axes=e,this._axes.forEach(function(e){return n.insertBefore(e.group,t.seriesRoot)}),this.axesChanged=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this.removeAllSeries(),e.forEach(function(e){return t.addSeries(e)})},enumerable:!0,configurable:!0}),t.prototype.addSeries=function(e,t){var n=this.series,r=this.seriesRoot;if(n.indexOf(e)<0){var o=t?n.indexOf(t):-1;return o>=0?(n.splice(o,0,e),r.insertBefore(e.group,t.group)):(n.push(e),r.append(e.group)),this.initSeries(e),this.seriesChanged=!0,this.axesChanged=!0,!0}return!1},t.prototype.initSeries=function(e){e.chart=this,e.addEventListener("layoutChange",this.scheduleLayout),e.addEventListener("dataChange",this.scheduleData),e.addEventListener("legendChange",this.updateLegend)},t.prototype.freeSeries=function(e){e.chart=void 0,e.removeEventListener("layoutChange",this.scheduleLayout),e.removeEventListener("dataChange",this.scheduleData),e.removeEventListener("legendChange",this.updateLegend)},t.prototype.addSeriesAfter=function(e,t){var n=this.series,r=this.seriesRoot;if(n.indexOf(e)<0){var o=t?this.series.indexOf(t):-1;o>=0?(o+10?r.insertBefore(e.group,n[0].group):r.append(e.group),this.initSeries(e),n.unshift(e)),this.seriesChanged=!0,this.axesChanged=!0}return!1},t.prototype.removeSeries=function(e){var t=this.series.indexOf(e);return t>=0&&(this.series.splice(t,1),this.freeSeries(e),this.seriesRoot.removeChild(e.group),this.seriesChanged=!0,!0)},t.prototype.removeAllSeries=function(){var e=this;this.series.forEach(function(t){e.freeSeries(t),e.seriesRoot.removeChild(t.group)}),this._series=[],this.seriesChanged=!0},t.prototype.onSeriesChange=function(){var e=this;this.axes.forEach(function(t){var n=t.direction+"Axis",r=[];e.series.forEach(function(e){e[n]===t&&r.push(e)}),t.boundSeries=r}),this.seriesChanged=!1},t.prototype.onAxesChange=function(e){var t=this;void 0===e&&(e=!1);var n={};this.axes.forEach(function(e){var t=e.direction;(n[t]||(n[t]=[])).push(e)}),this.series.forEach(function(r){if(r.directions.forEach(function(o){var i=o+"Axis";if(!r[i]||e){var a=n[o];if(a){var s=t.findMatchingAxis(a,r.getKeys(o));s&&(r[i]=s)}}}),r instanceof hi){if(!r.xAxis)return void console.warn("Could not find a matching xAxis for the "+r.id+" series.");if(!r.yAxis)return void console.warn("Could not find a matching yAxis for the "+r.id+" series.")}}),this.axesChanged=!1},t.prototype.findMatchingAxis=function(e,t){for(var n=0;n=0)return r}},Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.series.forEach(function(t){return t.data=e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"axesChanged",{get:function(){return this._axesChanged},set:function(e){this._axesChanged=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"seriesChanged",{get:function(){return this._seriesChanged},set:function(e){this._seriesChanged=e,e&&(this.dataPending=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutPending",{get:function(){return!!this.layoutCallbackId},set:function(e){e?this.layoutCallbackId||this.dataPending||(this.layoutCallbackId=requestAnimationFrame(this._performLayout)):this.layoutCallbackId&&(cancelAnimationFrame(this.layoutCallbackId),this.layoutCallbackId=0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataPending",{get:function(){return!!this.dataCallbackId},set:function(e){var t=this;this.dataCallbackId&&(clearTimeout(this.dataCallbackId),this.dataCallbackId=0),e&&(this.dataCallbackId=window.setTimeout(function(){t.dataPending=!1,t.processData()},0))},enumerable:!0,configurable:!0}),t.prototype.processData=function(){this.layoutPending=!1,this.axesChanged&&this.onAxesChange(),this.seriesChanged&&this.onSeriesChange(),this.series.filter(function(e){return e.visible}).forEach(function(e){return e.processData()}),this.updateLegend(),this.layoutPending=!0},t.prototype.positionCaptions=function(){var e=this.title,t=this.subtitle,n=!1,r=!1,o=10;if(e&&e.enabled){e.node.x=this.width/2,e.node.y=o,n=!0;var i=e.node.computeBBox();if(i&&(o=i.y+i.height),t&&t.enabled){t.node.x=this.width/2,t.node.y=o+10,r=!0;var a=t.node.computeBBox();a&&(o=a.y+a.height)}}e&&(e.node.visible=n),t&&(t.node.visible=r),this.captionAutoPadding=o},t.prototype.positionLegend=function(){if(this.legend.enabled&&this.legend.data.length){var e,t=this.legend,n=this.captionAutoPadding,r=this.legendAutoPadding,o=this.width,i=this.height-n,a=t.group,s=t.padding;switch(a.translationX=0,a.translationY=0,t.position){case"bottom":t.performLayout(o-2*s,0),e=a.computeBBox(),a.translationX=(o-e.width)/2-e.x,a.translationY=n+i-e.height-e.y-s,r.bottom=e.height;break;case"top":t.performLayout(o-2*s,0),e=a.computeBBox(),a.translationX=(o-e.width)/2-e.x,a.translationY=n+s-e.y,r.top=e.height;break;case"left":t.performLayout(0,i-2*s),e=a.computeBBox(),a.translationX=s-e.x,a.translationY=n+(i-e.height)/2-e.y,r.left=e.width;break;default:t.performLayout(0,i-2*s),e=a.computeBBox(),a.translationX=o-e.width-e.x-s,a.translationY=n+(i-e.height)/2-e.y,r.right=e.width}a.translationX=Math.floor(a.translationX),a.translationY=Math.floor(a.translationY)}},t.prototype.setupListeners=function(e){e.addEventListener("mousemove",this.onMouseMove),e.addEventListener("mouseout",this.onMouseOut),e.addEventListener("click",this.onClick)},t.prototype.cleanupListeners=function(e){e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseout",this.onMouseMove),e.removeEventListener("click",this.onClick)},t.prototype.pickSeriesNode=function(e,t){for(var n=this.series,r=void 0,o=n.length-1;o>=0;o--){var i=n[o];if(r=i.group.pickNode(e,t))return{series:i,node:r}}},t.prototype.onSeriesNodePick=function(e,t,n){this.lastPick&&this.lastPick.series.dehighlightNode(),this.lastPick={series:t,node:n},t.highlightNode(n);var r=t.tooltipEnabled&&t.getTooltipHtml(n.datum);r&&this.showTooltip(e,r)},Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(e){this._tooltipClass!==e&&(this._tooltipClass=e,this.toggleTooltip())},enumerable:!0,configurable:!0}),t.prototype.toggleTooltip=function(e){var t=[this.defaultTooltipClass,this._tooltipClass];e?t.push("visible"):this.lastPick&&(this.lastPick.series.dehighlightNode(),this.lastPick=void 0),this.tooltipElement.setAttribute("class",t.join(" "))},t.prototype.showTooltip=function(e,t){var n=this.tooltipElement,r=this.tooltipOffset,o=n.parentElement;if(void 0!==t)n.innerHTML=t;else if(!n.innerHTML)return;t&&this.toggleTooltip(!0);var i=n.getBoundingClientRect(),a=e.pageY+r[1],s=e.pageX+r[0];i&&o&&o.parentElement&&s-pageXOffset+i.width>o.parentElement.offsetWidth&&(s-=i.width+r[0]),n.style.left=s+"px",n.style.top=a+"px"},t.prototype.hideTooltip=function(){this.toggleTooltip(!1)},gi([Jo([],"scene.parent")],t.prototype,"parent",void 0),gi([Jo(["layoutChange"])],t.prototype,"title",void 0),gi([Jo(["layoutChange"])],t.prototype,"subtitle",void 0),gi([Jo(["layoutChange"])],t.prototype,"padding",void 0),gi([Jo(["layoutChange"],"scene.size")],t.prototype,"size",void 0),gi([Jo(["layoutChange"],"scene.height")],t.prototype,"height",void 0),gi([Jo(["layoutChange"],"scene.width")],t.prototype,"width",void 0),t}(Zo),vi=function(){function e(){this.index=new Map,this.ordinalRange=[],this._domain=[],this._range=[0,1],this._bandwidth=1,this._paddingInner=0,this._paddingOuter=0,this._round=!1,this._align=.5}return Object.defineProperty(e.prototype,"domain",{get:function(){return this._domain},set:function(e){var t=this._domain;t.length=0,this.index=new Map;var n=this.index;e.forEach(function(e){void 0===n.get(e)&&n.set(e,t.push(e)-1)}),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range[0]=e[0],this._range[1]=e[1],this.rescale()},enumerable:!0,configurable:!0}),e.prototype.ticks=function(){return this._domain},e.prototype.convert=function(e){var t=this.index.get(e);if(void 0===t)return NaN;var n=this.ordinalRange[t];return void 0===n?NaN:n},Object.defineProperty(e.prototype,"bandwidth",{get:function(){return this._bandwidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._paddingInner},set:function(e){e=Math.max(0,Math.min(1,e)),this._paddingInner=e,this._paddingOuter=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingInner",{get:function(){return this._paddingInner},set:function(e){this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paddingOuter",{get:function(){return this._paddingOuter},set:function(e){this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"round",{get:function(){return this._round},set:function(e){this._round=e,this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=Math.max(0,Math.min(1,e)),this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){var e,t=this._domain.length;if(t){var n=this._range,r=n[0],o=n[1],i=o0&&this.parent?this.parent.children[this.number-1]:void 0},e.prototype.getLeftmostSibling=function(){return this.number>0&&this.parent?this.parent.children[0]:void 0},e.prototype.nextLeft=function(){return this.children?this.children[0]:this.thread},e.prototype.nextRight=function(){return this.children?this.children[this.children.length-1]:this.thread},e.prototype.getSiblings=function(){var e=this;return this.parent?this.parent.children.filter(function(t,n){return n!==e.number}):[]},e}();function wi(e,t){void 0===t&&(t=!0);var n=new Ci,r=0;return t&&e.forEach(function(e){return r=Math.max(r,e.labels.length)}),e.forEach(function(e){if(t)for(;e.labels.length=0?e.ancestor:n}function Si(e,t){var n=e.children;if(n.length){var r=n[0];n.forEach(function(e){Si(e,t),r=function(e,t,n){var r=e.getLeftSibling();if(r){for(var o=e,i=e,a=r,s=i.getLeftmostSibling(),l=i.mod,c=o.mod,u=a.mod,d=s.mod;a.nextRight()&&i.nextLeft();){a=a.nextRight(),i=i.nextLeft(),s=s.nextLeft(),(o=o.nextRight()).ancestor=e;var h=a.prelim+u-(i.prelim+l)+n;h>0&&(xi(_i(a,e,t),e,h),l+=h,c+=h),u+=a.mod,l+=i.mod,d+=s.mod,c+=o.mod}a.nextRight()&&!o.nextRight()?(o.thread=a.nextRight(),o.mod+=u-c):(i.nextLeft()&&!s.nextLeft()&&(s.thread=i.nextLeft(),s.mod+=l-d),t=e)}return t}(e,r,t)}),function(e){var t=e.children;if(t)for(var n=0,r=0,o=t.length-1;o>=0;o--){var i=t[o];i.prelim+=n,i.mod+=n,r+=i.change,n+=i.shift+r}}(e);var o=(n[0].prelim+n[n.length-1].prelim)/2;(i=e.getLeftSibling())?(e.prelim=i.prelim+t,e.mod=e.prelim-o):e.prelim=o}else{var i=e.getLeftSibling();e.prelim=i?i.prelim+t:0}}var Mi=function(){function e(){this.top=1/0,this.right=-1/0,this.bottom=-1/0,this.left=1/0}return e.prototype.update=function(e,t){var n=t(e),r=n.x,o=n.y;r>this.right&&(this.right=r),rthis.bottom&&(this.bottom=o),othis.depth&&(this.depth=e.depth),this.nodes.push(e)},e.prototype.resize=function(e,t,n,r,o){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=!1);var i=this.leafCount-1,a=this.depth,s=this.dimensions,l=1,c=1;if(e>0&&i){var u=(s.right-s.left)/i;l=e/i/u,o&&(l=-l)}if(t>0&&a){var d=(s.bottom-s.top)/a;c=t/a/d}var h=new Mi;this.nodes.forEach(function(e){e.screenX=e.x*l,e.screenY=e.y*c,h.update(e,function(e){return{x:e.screenX,y:e.screenY}})});var p=-h.left,f=-h.top;this.nodes.forEach(function(e){e.screenX+=p+n,e.screenY+=f+r})},e}(),Ti=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.grid=!1,t}return Ti(t,e),t}(Do),Di=function(e){function t(){var t=e.call(this,new vi)||this;t.id=t.createId(),t.tickScale=new vi,t.group=new qr,t.translation={x:0,y:0},t.rotation=0,t.line={width:1,color:"rgba(195, 195, 195, 1)"},t.label=new ki,t.labelColor="rgba(87, 87, 87, 1)";var n=t,r=n.group,o=n.scale,i=n.tickScale;return o.paddingOuter=.1,o.paddingInner=2*o.paddingOuter,i.paddingInner=1,i.paddingOuter=0,t.gridLineSelection=Xr.select(r).selectAll(),t.axisLineSelection=Xr.select(r).selectAll(),t.separatorSelection=Xr.select(r).selectAll(),t.labelSelection=Xr.select(r).selectAll(),t}return Ti(t,e),t.prototype.createId=function(){var e=this.constructor,t=e.className;if(!t)throw new Error("The "+e+" is missing the 'className' property.");return t+"-"+(e.id=(e.id||0)+1)},Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e;var t=wi(e);this.tickTreeLayout=Ei(t);var n=e.slice();n.push(""),this.tickScale.domain=n,this.resizeTickTree()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this.scale.range},set:function(e){this.scale.range=e,this.tickScale.range=e,this.resizeTickTree()},enumerable:!0,configurable:!0}),t.prototype.resizeTickTree=function(){var e=this.scale,t=e.domain.length?[e.convert(e.domain[0]),e.convert(e.domain[e.domain.length-1])]:e.range,n=this.tickTreeLayout,r=this.lineHeight;n&&n.resize(Math.abs(t[1]-t[0]),n.depth*r,(Math.min(t[0],t[1])||0)+(e.bandwidth||0)/2,-n.depth*r,t[1]-t[0]<0)},Object.defineProperty(t.prototype,"lineHeight",{get:function(){return 1.5*this.label.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridLength",{get:function(){return this._gridLength},set:function(e){(this._gridLength&&!e||!this._gridLength&&e)&&(this.gridLineSelection=this.gridLineSelection.remove().setData([]),this.labelSelection=this.labelSelection.remove().setData([])),this._gridLength=e},enumerable:!0,configurable:!0}),t.prototype.update=function(){var e=this,t=this.group,n=this.scale,r=this.label,o=this.tickScale,i=n.range[0],a=n.range[1],s=Math.abs(a-i)/n.domain.length||0,l=r.parallel,c=uo(this.rotation),u=Math.abs(Math.cos(c))<1e-8,d=co(uo(this.label.rotation));t.translationX=this.translation.x,t.translationY=this.translation.y,t.rotation=c;var h=this.title;h&&(h.node.visible=!1);var p=this.lineHeight,f=this.tickTreeLayout,g=n.ticks(),m=f?f.nodes:[],v=!!f&&f.depth>1,y=o.ticks(),b=r.mirrored?1:-1,C=co(c),w=!d&&C>=0&&C<=Math.PI?-1:1,x=co(c-Math.PI/2),_=!d&&x>=0&&x<=Math.PI?-1:1,S=this.gridLineSelection.setData(this.gridLength?y:[]);S.exit.remove();var M=S.enter.append(Qr),E=S.merge(M),O=this.labelSelection.setData(m);O.exit.remove();var A=O.enter.append(po),T=O.merge(A),k=r.formatter,D=0;T.each(function(e,t,n){e.fontStyle=r.fontStyle,e.fontWeight=r.fontWeight,e.fontSize=r.fontSize,e.fontFamily=r.fontFamily,e.fill=r.color,e.textBaseline=-1===w?"bottom":"hanging",h&&0===n?(e.text=h.text,e.fontSize=h.fontSize,e.fontStyle=h.fontStyle,e.fontWeight=h.fontWeight,e.fontFamily=h.fontFamily,e.textBaseline="hanging",e.visible=g.length>0):e.text=k?k({value:String(t.label),index:n}):String(t.label),e.textAlign="center",e.translationX=t.screenY-.25*r.fontSize,e.translationY=t.screenX;var o=e.computeBBox();o&&o.width>D&&(D=o.width)});var P=b*r.padding,N=l?w*Math.PI/2:-1===_?Math.PI:0,L=this.label.grid,R=[];T.each(function(t,n,r){if(t.x=P,t.rotationCenterX=P,n.children.length?(t.translationX-=D-p+e.label.padding,t.rotation=u?N:-Math.PI/2):(t.rotation=d,t.textAlign="end",t.textBaseline="middle"),n.parent&&v){var o=n.children.length?n.screenX-n.leafCount*s/2:n.screenX-s/2;if(n.children.length){var i=-D-2*e.label.padding+n.screenY;R.push({y:o,x1:i+p,x2:i,toString:function(){return String(r)}})}else(n.number!==n.children.length-1||L)&&R.push({y:o,x1:0,x2:-D-2*e.label.padding,toString:function(){return String(r)}})}});var F=0;R.forEach(function(e){return F=Math.min(F,e.x2)}),R.push({y:Math.max(i,a),x1:0,x2:F,toString:function(){return String(R.length)}});var I=this.separatorSelection.setData(R);I.exit.remove();var z=I.enter.append(Qr),B=I.merge(z);this.separatorSelection=B,B.each(function(t,n){t.x1=n.x1,t.x2=n.x2,t.y1=n.y,t.y2=n.y,t.stroke=e.tick.color,t.fill=void 0,t.strokeWidth=1}),this.gridLineSelection=E,this.labelSelection=T;for(var j=f?f.depth+1:1,V=[],W=0;W0?-D-2*e.label.padding-(r-1)*p:0;t.x1=o,t.x2=o,t.y1=i,t.y2=a,t.strokeWidth=e.line.width,t.stroke=e.line.color,t.visible=g.length>0&&(0===r||L&&v)}),this.gridLength){var q=this.gridStyle,Y=q.length;E.each(function(t,n,r){var a=Math.round(o.convert(n));t.x1=0,t.x2=-b*e.gridLength,t.y1=a,t.y2=a,t.visible=Math.abs(t.parent.translationY-i)>1;var s=q[r%Y];t.stroke=s.stroke,t.strokeWidth=e.tick.width,t.lineDash=s.lineDash,t.fill=void 0})}},t.prototype.computeBBox=function(e){var t=!e||!e.excludeTitle,n=1/0,r=-1/0,o=1/0,i=-1/0;return this.labelSelection.each(function(e,a,s){if(s>0||t){e.computeTransformMatrix();var l=Hr.flyweight(e.matrix),c=e.computeBBox();if(c){var u=l.transformBBox(c);n=Math.min(n,u.x),r=Math.max(r,u.x+u.width),o=Math.min(o,u.y),i=Math.max(i,u.y+u.height)}}}),new Wr(n,o,r-n,i-o)},t.className="GroupedCategoryAxis",t}(Fo),Pi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ni=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(Oi||(Oi={}));var Li=function(e){function t(t){void 0===t&&(t=window.document);var n=e.call(this,t)||this;n.axisAutoPadding=new Wo,n.flipXY=!1,n._seriesRoot=new qr,n._layout=Oi.Vertical,n._updateAxes=n.updateAxes.bind(n),n.scene.root.visible=!1;var r=n.scene.root;return r.append(n._seriesRoot),r.append(n.legend.group),n}return Pi(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this._seriesRoot},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){if(!this.dataPending){this.scene.root.visible=!0;var e=this.width,t=this.height,n=this.axes,r=this.legend,o={x:0,y:0,width:e,height:t};if(this.positionCaptions(),this.positionLegend(),r.enabled&&r.data.length){var i=this.legendAutoPadding,a=this.legend.padding;switch(o.x+=i.left,o.y+=i.top,o.width-=i.left+i.right,o.height-=i.top+i.bottom,this.legend.position){case"right":o.width-=a;break;case"bottom":o.height-=a;break;case"left":o.x+=a,o.width-=a;break;case"top":o.y+=a,o.height-=a}}var s=this.captionAutoPadding,l=this.padding,c=this.axisAutoPadding;this.updateAxes(),o.x+=l.left+c.left,o.y+=l.top+c.top+s,o.width-=l.left+l.right+c.left+c.right,o.height-=l.top+l.bottom+c.top+c.bottom+s,n.forEach(function(e){switch(e.group.visible=!0,e.position){case To.Top:e.range=[0,o.width],e.translation.x=Math.floor(o.x),e.translation.y=Math.floor(o.y+1),e.label.mirrored=!0,e.gridLength=o.height;break;case To.Right:e.range=e instanceof bi||e instanceof Di?[0,o.height]:[o.height,0],e.translation.x=Math.floor(o.x+o.width+1),e.translation.y=Math.floor(o.y),e.label.mirrored=!0,e.gridLength=o.width;break;case To.Bottom:e.range=[0,o.width],e.translation.x=Math.floor(o.x),e.translation.y=Math.floor(o.y+o.height+1),e.gridLength=o.height;break;case To.Left:e.range=e instanceof bi||e instanceof Di?[0,o.height]:[o.height,0],e.translation.x=Math.floor(o.x),e.translation.y=Math.floor(o.y),e.gridLength=o.width}}),this.series.forEach(function(e){e.group.translationX=Math.floor(o.x),e.group.translationY=Math.floor(o.y),e.update()}),this.axes.forEach(function(e){return e.update()})}},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout!==e&&(this._layout=e,this.layoutPending=!0)},enumerable:!0,configurable:!0}),t.prototype.initSeries=function(t){e.prototype.initSeries.call(this,t),t.addEventListener("dataProcessed",this._updateAxes)},t.prototype.freeSeries=function(t){e.prototype.freeSeries.call(this,t),t.removeEventListener("dataProcessed",this._updateAxes)},t.prototype.updateAxes=function(){var e=this,t=this.axes.filter(function(e){return!e.linkedTo}),n=this.axes.filter(function(e){return e.linkedTo});t.concat(n).forEach(function(t){var n,r=t.direction,o=t.position,i=t.boundSeries;if(t.linkedTo)t.domain=t.linkedTo.domain;else{var a=[];i.filter(function(e){return e.visible}).forEach(function(e){a.push(e.getDomain(r))});var s=(n=new Array).concat.apply(n,a);t.domain=or(s)||s}t.update();var l=Math.floor(t.computeBBox().width);switch(o){case To.Left:e.axisAutoPadding.left=l;break;case To.Right:e.axisAutoPadding.right=l;break;case To.Bottom:e.axisAutoPadding.bottom=l;break;case To.Top:e.axisAutoPadding.top=l}})},t.className="CartesianChart",Ni([Jo(["layoutChange"])],t.prototype,"flipXY",void 0),t}(mi),Ri=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fi=function(e){function t(){var t,n=null!==e&&e.apply(this,arguments)||this;return n.directionKeys=((t={})[Ao.X]=["angleKey"],t[Ao.Y]=["radiusKey"],t),n.centerX=0,n.centerY=0,n.radius=0,n}return Ri(t,e),t}(ii),Ii=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Ri(t,e)}(ui),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),zi=function(e){function t(t){void 0===t&&(t=window.document);var n=e.call(this,t)||this;return n.scene.root.append(n.legend.group),n}return Ii(t,e),Object.defineProperty(t.prototype,"seriesRoot",{get:function(){return this.scene.root},enumerable:!0,configurable:!0}),t.prototype.performLayout=function(){var e={x:0,y:0,width:this.width,height:this.height};this.positionCaptions(),this.positionLegend();var t=this.captionAutoPadding;if(e.y+=t,e.height-=t,this.legend.enabled&&this.legend.data.length){var n=this.legendAutoPadding;e.x+=n.left,e.y+=n.top,e.width-=n.left+n.right,e.height-=n.top+n.bottom;var r=this.legend.padding;switch(this.legend.position){case"right":e.width-=r;break;case"bottom":e.height-=r;break;case"left":e.x+=r,e.width-=r;break;case"top":e.y+=r,e.height-=r}}var o=this.padding;e.x+=o.left,e.y+=o.top,e.width-=o.left+o.right,e.height-=o.top+o.bottom;var i=e.x+e.width/2,a=e.y+e.height/2,s=Math.min(e.width,e.height)/2;this.series.forEach(function(e){e instanceof Fi&&(e.centerX=i,e.centerY=a,e.radius=s,e.update())})},t.className="PolarChart",t}(mi);function Bi(e,t){return et?1:e>=t?0:NaN}var ji=function(e){return function(){return e}};function Vi(e,t){return t-=e=+e,function(n){return e+t*n}}function Wi(e,t){var n=typeof t;return null==t||"boolean"===n?ji(t):("number"===n?Vi:t instanceof Date?function(e,t){var n=new Date,r=+e,o=+t-r;return function(e){return n.setTime(r+o*e),n}}:Array.isArray(t)?function(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n>>1;i(e[a],t)<0?r=a+1:o=a}return r}var Gi=function(e){return e};function Ui(e){var t,n=e[0],r=e[e.length-1];return n>r&&(n=(t=[r,n])[0],r=t[1]),function(e){return Math.max(n,Math.min(r,e))}}var qi=function(){function e(){this.unknown=void 0,this._clamp=Gi,this._domain=[0,1],this._range=[0,1],this.transform=Gi,this.untransform=Gi,this._interpolate=Wi,this.rescale()}return Object.defineProperty(e.prototype,"clamp",{get:function(){return this._clamp!==Gi},set:function(e){this._clamp=e?Ui(this.domain):Gi},enumerable:!0,configurable:!0}),e.prototype.setDomain=function(e){this._domain=Array.prototype.map.call(e,function(e){return+e}),this._clamp!==Gi&&(this._clamp=Ui(this.domain)),this.rescale()},e.prototype.getDomain=function(){return this._domain.slice()},Object.defineProperty(e.prototype,"domain",{get:function(){return this.getDomain()},set:function(e){this.setDomain(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range.slice()},set:function(e){this._range=Array.prototype.slice.call(e),this.rescale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interpolate",{get:function(){return this._interpolate},set:function(e){this._interpolate=e,this.rescale()},enumerable:!0,configurable:!0}),e.prototype.rescale=function(){Math.min(this.domain.length,this.range.length)>2?this.piecewise=this.polymap:this.piecewise=this.bimap,this.output=void 0,this.input=void 0},e.prototype.normalize=function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n},e.prototype.bimap=function(e,t,n){var r,o,i=e[0],a=e[1],s=t[0],l=t[1];return a>>1;n(e[i],t)>0?o=i:r=i+1}return r}(e,t,Bi,1,o)-1;return a[n](i[n](t))}},e.prototype.convert=function(e){return e=+e,isNaN(e)?this.unknown:(this.output||(this.output=this.piecewise(this.domain.map(this.transform),this.range,this.interpolate)),this.output(this.transform(this._clamp(e))))},e.prototype.invert=function(e){return this.input||(this.input=this.piecewise(this.range,this.domain.map(this.transform),Vi)),this._clamp(this.untransform(this.input(e)))},e}(),Yi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xi=function(e){function t(){var t=e.call(this)||this;t.xDomain=[],t.yDomain=[],t.xData=[],t.yData=[],t.lineNode=new wo,t.groupSelection=Xr.select(t.group).selectAll(),t.marker=new pi,t._xKey="",t._xName="",t._yKey="",t._yName="",t._fill=fr.fills[0],t._stroke=fr.strokes[0],t._strokeWidth=2,t._fillOpacity=1,t._strokeOpacity=1,t.highlightStyle={fill:"yellow"};var n=t.lineNode;n.fill=void 0,n.lineJoin="round",n.pointerEvents=ar.None,t.group.append(n);var r=t.marker;return r.addPropertyListener("type",function(){return t.onMarkerTypeChange()}),r.addPropertyListener("enabled",function(e){e.value||(t.groupSelection=t.groupSelection.setData([]),t.groupSelection.exit.remove())}),r.addEventListener("change",function(){return t.update()}),t}return Yi(t,e),t.prototype.onMarkerTypeChange=function(){this.groupSelection=this.groupSelection.setData([]),this.groupSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){this._title!==e&&(this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xKey",{get:function(){return this._xKey},set:function(e){this._xKey!==e&&(this._xKey=e,this.xData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xName",{get:function(){return this._xName},set:function(e){this._xName!==e&&(this._xName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yKey",{get:function(){return this._yKey},set:function(e){this._yKey!==e&&(this._yKey=e,this.yData=[],this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yName",{get:function(){return this._yName},set:function(e){this._yName!==e&&(this._yName=e,this.update())},enumerable:!0,configurable:!0}),t.prototype.processData=function(){var e=this,t=e.xAxis,n=e.xKey,r=e.yKey,o=e.xData,i=e.yData,a=n&&r?this.data:[];if(!t)return!1;var s=t.scale instanceof qi;o.length=0,i.length=0;for(var l=0,c=a.length;l0?f.lineTo(s,c):f.moveTo(s,c),d&&p.push({seriesDatum:l[t],x:s,y:c})}),h.stroke=this.stroke,h.strokeWidth=this.strokeWidth,this.updateGroupSelection(p)}},t.prototype.updateGroupSelection=function(e){var t=this,n=t.marker,r=t.xKey,o=t.yKey,i=t.highlightedNode,a=t.fill,s=t.stroke,l=t.strokeWidth,c=this.groupSelection,u=n.type,d=c.setData(e);d.exit.remove();var h=d.enter.append(qr);h.append(u);var p=this.highlightStyle,f=p.fill,g=p.stroke,m=n.formatter,v=n.size,y=void 0!==n.strokeWidth?n.strokeWidth:l;(c=d.merge(h)).selectByClass(u).each(function(e,t){var l=e===i,c=l&&void 0!==f?f:n.fill||a,u=l&&void 0!==g?g:n.stroke||s,d=void 0;m&&(d=m({datum:t.seriesDatum,xKey:r,yKey:o,fill:c,stroke:u,strokeWidth:y,size:v,highlighted:l})),e.fill=d&&d.fill||c,e.stroke=d&&d.stroke||u,e.strokeWidth=d&&void 0!==d.strokeWidth?d.strokeWidth:y,e.size=d&&void 0!==d.size?d.size:v,e.translationX=t.x,e.translationY=t.y,e.visible=n.enabled&&e.size>0}),this.groupSelection=c},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=this.yKey;if(!t||!n)return"";var r=this,o=r.xName,i=r.yName,a=r.fill,s=r.title,l=r.tooltipRenderer;if(l)return l({datum:e.seriesDatum,xKey:t,xName:o,yKey:n,yName:i,title:s,color:a});var c=s?'
"+s+"
":"",u=e.seriesDatum,d=u[t],h=u[n];return c+'
'+("number"===typeof d?_o(d):String(d))+": "+("number"===typeof h?_o(h):String(h))+"
"},t.prototype.listSeriesItems=function(e){var t=this,n=t.id,r=t.xKey,o=t.yKey,i=t.yName,a=t.title,s=t.visible,l=t.marker,c=t.fill,u=t.stroke,d=t.fillOpacity,h=t.strokeOpacity;this.data.length&&r&&o&&e.push({id:n,itemId:void 0,enabled:s,label:{text:a||i||o},marker:{type:l.type,fill:l.fill||c,stroke:l.stroke||u,fillOpacity:d,strokeOpacity:h}})},t.className="LineSeries",t}(hi),Ki=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ki(t,e),t.prototype.ticks=function(e){void 0===e&&(e=10);var t=this._domain;return to(t[0],t[t.length-1],e)},t.prototype.nice=function(e){void 0===e&&(e=10);var t,n=this.domain,r=0,o=n.length-1,i=n[r],a=n[o];a0?t=ao(i=Math.floor(i/t)*t,a=Math.ceil(a/t)*t,e):t<0&&(t=ao(i=Math.ceil(i*t)/t,a=Math.floor(a*t)/t,e)),t>0?(n[r]=Math.floor(i/t)*t,n[o]=Math.ceil(a/t)*t,this.domain=n):t<0&&(n[r]=Math.ceil(i*t)/t,n[o]=Math.floor(a*t)/t,this.domain=n)},t}(qi);function Zi(){return new $i}var Ji,Qi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ea=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ta=function(e){function t(){var t=e.call(this)||this;t.xDomain=[],t.yDomain=[],t.xData=[],t.yData=[],t.sizeData=[],t.sizeScale=Zi(),t.groupSelection=Xr.select(t.group).selectAll(),t.marker=new pi,t._fill=fr.fills[0],t._stroke=fr.strokes[0],t._strokeWidth=2,t._fillOpacity=1,t._strokeOpacity=1,t.highlightStyle={fill:"yellow"},t.xKey="",t.yKey="",t.xName="X",t.yName="Y",t.sizeName="Size",t.labelName="Label";var n=t.marker;return n.addPropertyListener("type",function(){return t.onMarkerTypeChange()}),n.addEventListener("change",function(){return t.update()}),t.addPropertyListener("xKey",function(){return t.xData=[]}),t.addPropertyListener("yKey",function(){return t.yData=[]}),t.addPropertyListener("sizeKey",function(){return t.sizeData=[]}),t}return Qi(t,e),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(e){this._fill!==e&&(this._fill=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(e){this._stroke!==e&&(this._stroke=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.onMarkerTypeChange=function(){this.groupSelection=this.groupSelection.setData([]),this.groupSelection.exit.remove(),this.update(),this.fireEvent({type:"legendChange"})},t.prototype.processData=function(){var e=this.xKey,t=this.yKey,n=this.sizeKey,r=e&&t?this.data:[];return this.xData=r.map(function(t){return t[e]}),this.yData=r.map(function(e){return e[t]}),this.sizeData=n?r.map(function(e){return e[n]}):[],this.sizeScale.domain=or(this.sizeData)||[1,1],this.xDomain=this.fixNumericExtent(or(this.xData),"x"),this.yDomain=this.fixNumericExtent(or(this.yData),"y"),!0},t.prototype.getDomain=function(e){return e===Ao.X?this.xDomain:this.yDomain},t.prototype.highlightNode=function(e){e instanceof qo&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.update=function(){var e=this.visible,t=this.chart,n=this.xAxis,r=this.yAxis;if(this.group.visible=e,n&&r&&e&&t&&!t.layoutPending&&!t.dataPending){var o=n.scale,i=r.scale,a=(o.bandwidth||0)/2,s=(i.bandwidth||0)/2,l=this,c=l.data,u=l.xData,d=l.yData,h=l.sizeData,p=l.xKey,f=l.yKey,g=l.sizeScale,m=l.marker,v=l.fill,y=l.stroke,b=l.strokeWidth,C=l.fillOpacity,w=l.strokeOpacity,x=l.highlightedNode,_=m.type,S=m.formatter;this.sizeScale.range=[m.minSize,m.size];var M=u.map(function(e,t){return{seriesDatum:c[t],x:o.convert(e)+a,y:i.convert(d[t])+s,size:h.length?g.convert(h[t]):m.size}}),E=this.groupSelection.setData(M);E.exit.remove();var O=E.enter.append(qr);O.append(_);var A=E.merge(O),T=this.highlightStyle,k=T.fill,D=T.stroke,P=void 0!==m.strokeWidth?m.strokeWidth:b;A.selectByClass(_).each(function(e,t){var n=e===x,r=n&&void 0!==k?k:m.fill||v,o=n&&void 0!==D?D:m.stroke||y,i=void 0;S&&(i=S({datum:t.seriesDatum,xKey:p,yKey:f,fill:r,stroke:o,strokeWidth:P,size:t.size,highlighted:n})),e.fill=i&&i.fill||r,e.stroke=i&&i.stroke||o,e.strokeWidth=i&&void 0!==i.strokeWidth?i.strokeWidth:P,e.size=i&&void 0!==i.size?i.size:t.size,e.fillOpacity=C,e.strokeOpacity=w,e.translationX=t.x,e.translationY=t.y,e.visible=m.enabled&&e.size>0}),this.groupSelection=A}},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=this.yKey;if(!t||!n)return"";var r=this,o=r.title,i=r.tooltipRenderer,a=r.xName,s=r.yName,l=r.sizeKey,c=r.sizeName,u=r.labelKey,d=r.labelName,h=r.fill||"gray";if(i)return i({datum:e.seriesDatum,xKey:t,yKey:n,sizeKey:l,labelKey:u,xName:a,yName:s,sizeName:c,labelName:d,title:o,color:h});var p=o?'
"+o+"
":"",f=e.seriesDatum,g=f[t],m=f[n],v=""+a+": "+_o(g)+"
"+s+": "+_o(m);return l&&(v+="
"+c+": "+f[l]),u&&(v=""+d+": "+f[u]+"
"+v),p+'
'+v+"
"},t.prototype.listSeriesItems=function(e){var t=this,n=t.id,r=t.title,o=t.visible,i=t.xKey,a=t.yKey,s=t.yName,l=t.marker,c=t.fill,u=t.stroke,d=t.fillOpacity,h=t.strokeOpacity;this.data.length&&i&&a&&e.push({id:n,itemId:void 0,enabled:o,label:{text:r||s||a},marker:{type:l.type,fill:l.fill||c,stroke:l.stroke||u,fillOpacity:d,strokeOpacity:h}})},t.className="ScatterSeries",ea([Jo(["layoutChange"])],t.prototype,"title",void 0),ea([Jo(["dataChange"])],t.prototype,"xKey",void 0),ea([Jo(["dataChange"])],t.prototype,"yKey",void 0),ea([Jo(["dataChange"])],t.prototype,"sizeKey",void 0),ea([Jo(["dataChange"])],t.prototype,"labelKey",void 0),t}(hi),na=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ra=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oa=function(e){function t(){var t=e.call(this)||this;return t.enabled=!0,t.fontSize=12,t.fontFamily="Verdana, sans-serif",t.color="black",t}return na(t,e),ra([Jo(["change","dataChange"])],t.prototype,"enabled",void 0),ra([Jo(["change"])],t.prototype,"fontStyle",void 0),ra([Jo(["change"])],t.prototype,"fontWeight",void 0),ra([Jo(["change"])],t.prototype,"fontSize",void 0),ra([Jo(["change"])],t.prototype,"fontFamily",void 0),ra([Jo(["change"])],t.prototype,"color",void 0),t}(Zo),ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sa=function(){for(var e=0,t=0,n=arguments.length;t0?e+t:e},0)}))),this.yDomain=this.fixNumericExtent([l,c],"y"),this.fireEvent({type:"dataProcessed"}),!0},t.prototype.getDomain=function(e){return this.flipXY&&(e=Lo(e)),e===Ao.X?this.xData:this.yDomain},t.prototype.update=function(){var e=this,t=e.visible,n=e.chart,r=e.xAxis,o=e.yAxis,i=e.xData,a=e.yData;if(this.group.visible=t,r&&o&&t&&n&&!n.layoutPending&&!n.dataPending&&i.length&&a.length){var s=this.generateSelectionData();this.updateRectSelection(s),this.updateTextSelection(s)}},t.prototype.generateSelectionData=function(){var e=this.xAxis,t=this.yAxis,n=this.flipXY,r=(n?t:e).scale,o=(n?e:t).scale,i=this,a=i.groupScale,s=i.yKeys,l=i.fills,c=i.strokes,u=i.grouped,d=i.strokeWidth,h=i.yKeyEnabled,p=i.data,f=i.xData,g=i.yData,m=this.label,v=m.fontStyle,y=m.fontWeight,b=m.fontSize,C=m.fontFamily,w=m.color,x=m.formatter;a.range=[0,r.bandwidth];var _=u?a.bandwidth:r.bandwidth,S=[];return f.forEach(function(e,t){var i=g[t],f=p[t],m=r.convert(e),M=0;i.forEach(function(e,t){var r,i=s[t],p=u?m+a.convert(i):m,g=o.convert(u?e:M+e),E=o.convert(u?0:M),O=f[i],A="number"===typeof O;r=x?x({value:A?O:void 0}):A&&isFinite(O)?O.toFixed(2):"",S.push({seriesDatum:f,yValue:O,yKey:i,x:n?Math.min(g,E):p,y:n?p:Math.min(g,E),width:n?Math.abs(E-g):_,height:n?_:Math.abs(E-g),fill:l[t%l.length],stroke:c[t%c.length],strokeWidth:d,label:h.get(i)&&r?{text:r,fontStyle:v,fontWeight:y,fontSize:b,fontFamily:C,fill:w,x:n?g+(O>=0?-1:1)*Math.abs(E-g)/2:p+_/2,y:n?p+_/2:g+(O>=0?1:-1)*Math.abs(E-g)/2}:void 0}),u?M=e:M+=e})}),S},t.prototype.updateRectSelection=function(e){var t=this,n=t.fillOpacity,r=t.strokeOpacity,o=t.shadow,i=t.highlightedNode,a=t.highlightStyle,s=a.fill,l=a.stroke,c=this.rectSelection.setData(e);c.exit.remove();var u=c.enter.append(Go).each(function(e){e.tag=Ji.Column,e.crisp=!0}),d=c.merge(u);d.each(function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e.fill=e===i&&void 0!==s?s:t.fill,e.stroke=e===i&&void 0!==l?l:t.stroke,e.fillOpacity=n,e.strokeOpacity=r,e.strokeWidth=t.strokeWidth,e.fillShadow=o,e.visible=t.height>0}),this.rectSelection=d},t.prototype.updateTextSelection=function(e){var t=this.label.enabled,n=this.textSelection.setData(e);n.exit.remove();var r=n.enter.append(po).each(function(e){e.tag=Ji.Label,e.pointerEvents=ar.None,e.textAlign="center",e.textBaseline="middle"}),o=n.merge(r);o.each(function(e,n){var r=n.label;r&&t?(e.fontStyle=r.fontStyle,e.fontWeight=r.fontWeight,e.fontSize=r.fontSize,e.fontFamily=r.fontFamily,e.text=r.text,e.x=r.x,e.y=r.y,e.fill=r.fill,e.visible=!0):e.visible=!1}),this.textSelection=o},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=e.yKey;if(!t||!n)return"";var r=this,o=r.xName,i=r.yKeys,a=r.yNames,s=r.fills,l=r.tooltipRenderer,c=e.seriesDatum,u=i.indexOf(n),d=a[u],h=s[u%s.length],p=d;if(l)return l({datum:c,xKey:t,xName:o,yKey:n,yName:d,title:p,color:h});var f=p?'
"+p+"
":"",g=c[t],m=c[n];return f+'
'+("number"===typeof g?_o(g):String(g))+": "+("number"===typeof m?_o(m):String(m))+"
"},t.prototype.listSeriesItems=function(e){var t=this;if(this.data.length&&this.xKey&&this.yKeys.length){var n=this.fills,r=this.strokes,o=this.id;this.yKeys.forEach(function(i,a){e.push({id:o,itemId:i,enabled:t.yKeyEnabled.get(i)||!1,label:{text:t.yNames[a]||t.yKeys[a]},marker:{fill:n[a%n.length],stroke:r[a%r.length],fillOpacity:t.fillOpacity,strokeOpacity:t.strokeOpacity}})})}},t.prototype.toggleSeriesItem=function(e,t){this.yKeyEnabled.set(e,t);var n=[];this.yKeyEnabled.forEach(function(e,t){e&&n.push(t)}),this.groupScale.domain=n,this.scheduleData()},t.className="ColumnSeries",aa([Jo(["dataChange"])],t.prototype,"fills",void 0),aa([Jo(["dataChange"])],t.prototype,"strokes",void 0),aa([Jo(["layoutChange"])],t.prototype,"fillOpacity",void 0),aa([Jo(["layoutChange"])],t.prototype,"strokeOpacity",void 0),aa([Jo(["layoutChange"])],t.prototype,"flipXY",void 0),t}(hi),da=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ha=function(){for(var e=0,t=0,n=arguments.length;t0?e+t:e},0)}))),0===i&&0===a&&(a=1),this.yDomain=this.fixNumericExtent([i,a],"y"),this.fireEvent({type:"dataProcessed"}),!0},t.prototype.getDomain=function(e){return e===Ao.X?this.xData:this.yDomain},t.prototype.update=function(){var e=this,t=e.visible,n=e.chart,r=e.xAxis,o=e.yAxis,i=e.xData,a=e.yData;if(this.group.visible=t&&!(!i.length||!a.length),r&&o&&t&&n&&!n.layoutPending&&!n.dataPending&&i.length&&a.length){var s=this.generateSelectionData(),l=s.areaSelectionData,c=s.markerSelectionData;this.updateAreaSelection(l),this.updateStrokeSelection(l),this.updateMarkerSelection(c)}},t.prototype.generateSelectionData=function(){var e=this,t=e.yKeys,n=e.yNames,r=e.data,o=e.xData,i=e.yData,a=e.marker,s=e.fills,l=e.strokes,c=e.xAxis.scale,u=e.yAxis.scale,d=(c.bandwidth||0)/2,h=(u.bandwidth||0)/2,p=[],f=[],g=2*o.length-1;return o.forEach(function(e,o){var m=i[o],v=r[o],y=c.convert(e)+d,b=0;m.forEach(function(e,r){var i=u.convert(b+e)+h,c=t[r],d=v[c];a&&f.push({seriesDatum:v,yValue:d,yKey:c,x:y,y:i,fill:s[r%s.length],stroke:l[r%l.length],text:n[r]});var m=(p[r]||(p[r]={yKey:c,points:[]})).points;m[o]={x:y,y:i},m[g-o]={x:y,y:u.convert(b)+h},b+=e})}),{areaSelectionData:p,markerSelectionData:f}},t.prototype.updateAreaSelection=function(e){var t=this.fills,n=this.fillOpacity,r=this.yKeyEnabled,o=this.shadow,i=this.areaSelection.setData(e);i.exit.remove();var a=i.enter.append(wo).each(function(e){e.stroke=void 0,e.pointerEvents=ar.None}),s=i.merge(a);s.each(function(e,i,a){var s=e.path;e.fill=t[a%t.length],e.fillOpacity=n,e.fillShadow=o,e.visible=!!r.get(i.yKey),s.clear(),i.points.forEach(function(e,t){var n=e.x,r=e.y;t>0?s.lineTo(n,r):s.moveTo(n,r)}),s.closePath()}),this.areaSelection=s},t.prototype.updateStrokeSelection=function(e){var t=this,n=t.strokes,r=t.strokeWidth,o=t.strokeOpacity,i=t.data,a=t.yKeyEnabled,s=this.strokeSelection.setData(e);s.exit.remove();var l=s.enter.append(wo).each(function(e){e.fill=void 0,e.lineJoin=e.lineCap="round",e.pointerEvents=ar.None}),c=s.merge(l);c.each(function(e,t,s){var l=e.path;e.stroke=n[s%n.length],e.strokeWidth=r,e.visible=!!a.get(t.yKey),e.strokeOpacity=o,l.clear();for(var c=t.points,u=0;u0?l.lineTo(h,p):l.moveTo(h,p)}}),this.strokeSelection=c},t.prototype.updateMarkerSelection=function(e){var t=this.marker,n=this.xKey,r=t.type;if(r){var o=t.formatter,i=void 0!==t.strokeWidth?t.strokeWidth:this.strokeWidth,a=t.size,s=this.yKeyEnabled,l=this.highlightedNode,c=this.highlightStyle,u=c.fill,d=c.stroke,h=this.markerSelection.setData(e);h.exit.remove();var p=h.enter.append(r),f=h.merge(p);f.each(function(e,r){var c=e===l,h=c&&void 0!==u?u:t.fill||r.fill,p=c&&void 0!==d?d:t.stroke||r.stroke,f=void 0;o&&(f=o({datum:r.seriesDatum,xKey:n,yKey:r.yKey,fill:h,stroke:p,strokeWidth:i,size:a,highlighted:c})),e.fill=f&&f.fill||h,e.stroke=f&&f.stroke||p,e.strokeWidth=f&&void 0!==f.strokeWidth?f.strokeWidth:i,e.size=f&&void 0!==f.size?f.size:a,e.translationX=r.x,e.translationY=r.y,e.visible=t.enabled&&e.size>0&&!!s.get(r.yKey)}),this.markerSelection=f}},t.prototype.getTooltipHtml=function(e){var t=this.xKey,n=e.yKey;if(!t||!n)return"";var r=this,o=r.xName,i=r.yKeys,a=r.yNames,s=r.fills,l=r.tooltipRenderer,c=e.text,u=i.indexOf(n),d=a[u],h=s[u%s.length];if(l)return l({datum:e.seriesDatum,xKey:t,xName:o,yKey:n,yName:d,title:c,color:h});var p=c?'
"+c+"
":"",f=e.seriesDatum,g=f[t],m=f[n];return p+'
'+("number"===typeof g?_o(g):String(g))+": "+("number"===typeof m?_o(m):String(m))+"
"},t.prototype.listSeriesItems=function(e){var t=this,n=t.id,r=t.xKey,o=t.yKeys,i=t.yNames,a=t.yKeyEnabled,s=t.marker,l=t.fills,c=t.strokes,u=t.fillOpacity,d=t.strokeOpacity;this.data.length&&r&&o.length&&o.forEach(function(t,r){e.push({id:n,itemId:t,enabled:a.get(t)||!1,label:{text:i[r]||o[r]},marker:{type:s.type,fill:s.fill||l[r%l.length],stroke:s.stroke||c[r%c.length],fillOpacity:u,strokeOpacity:d}})})},t.prototype.toggleSeriesItem=function(e,t){this.yKeyEnabled.set(e,t),this.scheduleData()},t.className="AreaSeries",t}(hi),fa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.path=new bo,t._dirtyPath=!0,t._centerX=0,t._centerY=0,t._centerOffset=0,t._innerRadius=10,t._outerRadius=20,t._startAngle=0,t._endAngle=2*Math.PI,t._angleOffset=0,t}return fa(t,e),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerX",{get:function(){return this._centerX},set:function(e){this._centerX!==e&&(this._centerX=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerY",{get:function(){return this._centerY},set:function(e){this._centerY!==e&&(this._centerY=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"centerOffset",{get:function(){return this._centerOffset},set:function(e){this._centerOffset!==e&&(this._centerOffset=Math.max(0,e),this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(e){this._innerRadius!==e&&(this._innerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadius",{get:function(){return this._outerRadius},set:function(e){this._outerRadius!==e&&(this._outerRadius=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle!==e&&(this._startAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle!==e&&(this._endAngle=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleOffset",{get:function(){return this._angleOffset},set:function(e){this._angleOffset!==e&&(this._angleOffset=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.computeBBox=function(){var e=this.outerRadius;return new Wr(this.centerX-e,this.centerY-e,2*e,2*e)},t.prototype.isPointInPath=function(e,t){var n=this.transformPoint(e,t);return this.path.isPointInPath(n.x,n.y)},t.prototype.isPointInStroke=function(e,t){return!1},Object.defineProperty(t.prototype,"fullPie",{get:function(){return xo(co(this.startAngle),co(this.endAngle))},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){if(this.dirtyPath){var e=this.path,t=this.angleOffset,n=Math.min(this.startAngle,this.endAngle)+t,r=Math.max(this.startAngle,this.endAngle)+t,o=.5*(n+r),i=Math.min(this.innerRadius,this.outerRadius),a=Math.max(this.innerRadius,this.outerRadius),s=this.centerOffset,l=this.fullPie,c=this.centerX,u=this.centerY;if(e.clear(),s&&(c+=s*Math.cos(o),u+=s*Math.sin(o)),l||(e.moveTo(c+i*Math.cos(n),u+i*Math.sin(n)),e.lineTo(c+a*Math.cos(n),u+a*Math.sin(n))),e.cubicArc(c,u,a,a,0,n,r,0),l)e.moveTo(c+i*Math.cos(r),u+i*Math.sin(r));else{var d=c+i*Math.cos(r);e.lineTo(Math.abs(d)<1e-8?0:d,u+i*Math.sin(r))}e.cubicArc(c,u,i,i,0,r,n,1),e.closePath(),this.dirtyPath=!1}},t.prototype.render=function(e){this.dirtyTransform&&this.computeTransformMatrix(),this.matrix.toContext(e),this.updatePath(),this.scene.appendPath(this.path),this.fillStroke(e),this.dirty=!1},t.className="Sector",t}(Zr),ma=function(){function e(e,t,n,r){void 0===r&&(r=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,n||0)),this.a=Math.min(1,Math.max(0,r||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var n=e.nameToHex[t];if(n)return e.fromHexString(n);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.fromHexString=function(t){var n=t.match(e.hexRe);if(n)return new e((r=parseInt(n[1],16))/255,(o=parseInt(n[2],16))/255,(i=parseInt(n[3],16))/255,(a=void 0!==n[4]?parseInt(n[4],16):255)/255);if(n=t.match(e.shortHexRe)){var r=parseInt(n[1],16),o=parseInt(n[2],16),i=parseInt(n[3],16),a=void 0!==n[4]?parseInt(n[4],16):15;return new e((r+=16*r)/255,(o+=16*o)/255,(i+=16*i)/255,(a+=16*a)/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.fromRgbaString=function(t){var n=t.match(e.rgbRe);if(n)return new e(+n[1]/255,+n[2]/255,+n[3]/255);if(n=t.match(e.rgbaRe))return new e(+n[1]/255,+n[2]/255,+n[3]/255,+n[4]);throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,r,o){void 0===o&&(o=1);var i=e.HSBtoRGB(t,n,r);return new e(i[0],i[1],i[2],o)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],n=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*n)/n),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,n){var r=Math.min(e,t,n),o=Math.max(e,t,n),i=NaN;if(r!==o){var a=o-r,s=(o-e)/a,l=(o-t)/a,c=(o-n)/a;i=e===o?c-l:t===o?2+s-c:4+l-s,(i/=6)<0&&(i+=1)}return[360*i,0!==o?(o-r)/o:0,o]},e.HSBtoRGB=function(e,t,n){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var r=0,o=0,i=0;if(0===t)r=o=i=n;else{var a=6*(e-Math.floor(e)),s=a-Math.floor(a),l=n*(1-t),c=n*(1-t*s),u=n*(1-t*(1-s));switch(a>>0){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}}return[r,o,i]},e.prototype.derive=function(t,n,r,o){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&r>1&&(a=.05);var s=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*n,1),0);a=Math.max(Math.min(a*r,1),0);var c=Math.max(Math.min(this.a*o,1),0),u=e.HSBtoRGB(s,l,a);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.hexRe=/\s*#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?\s*$/,e.shortHexRe=/\s*#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?\s*$/,e.rgbRe=/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)\s*/,e.rgbaRe=/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([.\d]+)\)\s*/,e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}(),va=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ya=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Sector=0]="Sector",e[e.Callout=1]="Callout",e[e.Label=2]="Label"}(la||(la={}));var ba=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.offset=3,t.minAngle=20,t}return va(t,e),ya([Jo(["change"])],t.prototype,"offset",void 0),ya([Jo(["dataChange"])],t.prototype,"minAngle",void 0),t}(oa),Ca=function(e){function t(){var t=e.call(this)||this;return t.radiusScale=new $i,t.groupSelection=Xr.select(t.group).selectAll(),t.groupSelectionData=[],t.angleScale=function(){var e=new $i;return e.domain=[0,1],e.range=[-Math.PI,Math.PI].map(function(e){return e+Math.PI/2}),e}(),t.dataEnabled=[],t._calloutColors=fr.strokes,t._calloutStrokeWidth=1,t._calloutLength=10,t.label=new ba,t._labelOffset=3,t._labelFontSize=12,t._labelFontFamily="Verdana, sans-serif",t._labelColor="black",t._angleKey="",t._angleName="",t._fills=fr.fills,t._strokes=fr.strokes,t._fillOpacity=1,t._strokeOpacity=1,t._rotation=0,t._outerRadiusOffset=0,t._innerRadiusOffset=0,t._strokeWidth=1,t.highlightStyle={fill:"yellow"},t.label.addEventListener("change",function(){return t.scheduleLayout()}),t.label.addEventListener("dataChange",function(){return t.scheduleData()}),t.addPropertyListener("data",function(e){e.source.dataEnabled=e.value.map(function(){return!0})}),t}return va(t,e),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){var t=this._title;t!==e&&(t&&(t.removeEventListener("change",this.scheduleLayout),this.group.removeChild(t.node)),e&&(e.node.textBaseline="bottom",e.addEventListener("change",this.scheduleLayout),this.group.appendChild(e.node)),this._title=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutColors",{get:function(){return this._calloutColors},set:function(e){this._calloutColors!==e&&(this._calloutColors=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutStrokeWidth",{get:function(){return this._calloutStrokeWidth},set:function(e){this._calloutStrokeWidth!==e&&(this._calloutStrokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"calloutLength",{get:function(){return this._calloutLength},set:function(e){this._calloutLength!==e&&(this._calloutLength=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelOffset",{get:function(){return this._labelOffset},set:function(e){this._labelOffset!==e&&(this._labelOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontStyle",{get:function(){return this._labelFontStyle},set:function(e){this._labelFontStyle!==e&&(this._labelFontStyle=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontWeight",{get:function(){return this._labelFontWeight},set:function(e){this._labelFontWeight!==e&&(this._labelFontWeight=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontSize",{get:function(){return this._labelFontSize},set:function(e){this._labelFontSize!==e&&(this._labelFontSize=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelFontFamily",{get:function(){return this._labelFontFamily},set:function(e){this._labelFontFamily!==e&&(this._labelFontFamily=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelColor",{get:function(){return this._labelColor},set:function(e){this._labelColor!==e&&(this._labelColor=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleKey",{get:function(){return this._angleKey},set:function(e){this._angleKey!==e&&(this._angleKey=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angleName",{get:function(){return this._angleName},set:function(e){this._angleName!==e&&(this._angleName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusKey",{get:function(){return this._radiusKey},set:function(e){this._radiusKey!==e&&(this._radiusKey=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusName",{get:function(){return this._radiusName},set:function(e){this._radiusName!==e&&(this._radiusName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelKey",{get:function(){return this._labelKey},set:function(e){this._labelKey!==e&&(this._labelKey=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelName",{get:function(){return this._labelName},set:function(e){this._labelName!==e&&(this._labelName=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fills",{get:function(){return this._fills},set:function(e){this._fills=e,this.strokes=e.map(function(e){return ma.fromString(e).darker().toHexString()}),this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokes",{get:function(){return this._strokes},set:function(e){this._strokes=e,this.calloutColors=e,this.scheduleData()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillOpacity",{get:function(){return this._fillOpacity},set:function(e){this._fillOpacity!==e&&(this._fillOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOpacity",{get:function(){return this._strokeOpacity},set:function(e){this._strokeOpacity!==e&&(this._strokeOpacity=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outerRadiusOffset",{get:function(){return this._outerRadiusOffset},set:function(e){this._outerRadiusOffset!==e&&(this._outerRadiusOffset=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadiusOffset",{get:function(){return this._innerRadiusOffset},set:function(e){this._innerRadiusOffset!==e&&(this._innerRadiusOffset=e,this.scheduleData())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(e){this._strokeWidth!==e&&(this._strokeWidth=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shadow",{get:function(){return this._shadow},set:function(e){this._shadow!==e&&(this._shadow=e,this.scheduleLayout())},enumerable:!0,configurable:!0}),t.prototype.highlightNode=function(e){e instanceof ga&&(this.highlightedNode=e,this.scheduleLayout())},t.prototype.dehighlightNode=function(){this.highlightedNode=void 0,this.scheduleLayout()},t.prototype.getDomain=function(e){return e===Ao.X?this.angleScale.domain:this.radiusScale.domain},t.prototype.processData=function(){var e=this,t=this.data,n=this.dataEnabled,r=t.map(function(t,r){return n[r]&&+t[e.angleKey]||0}),o=r.reduce(function(e,t){return e+t},0),i=function(){var e=0;return r.map(function(t){return e+=t/o})}(),a=this.label.enabled&&this.labelKey,s=a?t.map(function(e){return String(e[a])}):[],l=this.radiusKey,c=!!l&&!this.innerRadiusOffset,u=[];if(c){var d=t.map(function(e){return Math.abs(e[l])}),h=Math.max.apply(Math,d);u=d.map(function(e){return e/h})}var p=this.angleScale,f=this.groupSelectionData;f.length=0;var g=uo(this.rotation),m=Math.PI/2,v=0;return i.reduce(function(n,r){var o,i,l,d=c?u[v]:1,h=p.convert(n)+g,y=p.convert(r)+g,b=(h+y)/2,C=Math.abs(y-h),w=Math.cos(b),x=Math.sin(b),_=uo(e.label.minAngle),S=a&&C>_,M=(o=b,(o%=lo)<-Math.PI?o+=lo:o>=Math.PI&&(o-=lo),o),E=-3*Math.PI/4;return M>=E&&M<(E+=m)?(i="center",l="bottom"):M>=E&&M<(E+=m)?(i="left",l="middle"):M>=E&&M<(E+=m)?(i="center",l="hanging"):(i="right",l="middle"),f.push({index:v,seriesDatum:t[v],radius:d,startAngle:h,endAngle:y,midAngle:b,midCos:w,midSin:x,label:S?{text:s[v],textAlign:i,textBaseline:l}:void 0}),v++,r},0),!0},t.prototype.update=function(){var e=this,t=this.chart;if((this.group.visible=this.visible&&this.dataEnabled.indexOf(!0)>=0)&&t&&!t.dataPending&&!t.layoutPending){var n=this,r=n.fills,o=n.strokes,i=n.fillOpacity,a=n.strokeOpacity,s=n.calloutColors,l=n.outerRadiusOffset,c=n.innerRadiusOffset,u=n.radiusScale,d=n.title;u.range=[0,this.radius],this.group.translationX=this.centerX,this.group.translationY=this.centerY,d&&(d.node.translationY=-this.radius-l-2,d.node.visible=d.enabled);var h=this.groupSelection.setData(this.groupSelectionData);h.exit.remove();var p=h.enter.append(qr);p.append(ga).each(function(e){return e.tag=la.Sector}),p.append(Qr).each(function(e){e.tag=la.Callout,e.pointerEvents=ar.None}),p.append(po).each(function(e){e.tag=la.Label,e.pointerEvents=ar.None});var f=h.merge(p),g=[],m=[],v=this.highlightedNode,y=this.highlightStyle,b=y.fill,C=y.stroke,w=y.centerOffset,x=this.shadow,_=this.strokeWidth;f.selectByTag(la.Sector).each(function(e,t,n){var s=u.convert(t.radius),d=Math.max(0,s+l);e.outerRadius=d,e.innerRadius=Math.max(0,c?s+c:0),e.startAngle=t.startAngle,e.endAngle=t.endAngle,e.fill=e===v&&void 0!==b?b:r[n%r.length],e.stroke=e===v&&void 0!==C?C:o[n%o.length],e.fillOpacity=i,e.strokeOpacity=a,e.centerOffset=e===v&&void 0!==w?w:0,e.fillShadow=x,e.strokeWidth=_,e.lineJoin="round",g.push(d),m.push(e.centerOffset)});var S=this.calloutLength;f.selectByTag(la.Callout).each(function(t,n,r){if(n.label){var o=m[r]+g[r];t.strokeWidth=e.calloutStrokeWidth,t.stroke=s[r%s.length],t.x1=n.midCos*o,t.y1=n.midSin*o,t.x2=n.midCos*(o+S),t.y2=n.midSin*(o+S)}else t.stroke=void 0});var M=this.label,E=M.offset,O=M.fontStyle,A=M.fontWeight,T=M.fontSize,k=M.fontFamily,D=M.color;f.selectByTag(la.Label).each(function(e,t,n){var r=t.label;if(r){var o=g[n],i=m[n]+o+S+E;e.fontStyle=O,e.fontWeight=A,e.fontSize=T,e.fontFamily=k,e.text=r.text,e.x=t.midCos*i,e.y=t.midSin*i,e.fill=D,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline}else e.fill=void 0}),this.groupSelection=f}},t.prototype.getTooltipHtml=function(e){var t=this.angleKey;if(!t)return"";var n=this,r=n.title,o=n.fills,i=n.tooltipRenderer,a=n.angleName,s=n.radiusKey,l=n.radiusName,c=n.labelKey,u=n.labelName,d=r?r.text:void 0,h=o[e.index%o.length];if(i)return i({datum:e.seriesDatum,angleKey:t,angleName:a,radiusKey:s,radiusName:l,labelKey:c,labelName:u,title:d,color:h});var p=r?'
"+d+"
":"",f=c?e.seriesDatum[c]+": ":"",g=e.seriesDatum[t];return p+'
'+f+("number"===typeof g?_o(g):g.toString())+"
"},t.prototype.listSeriesItems=function(e){var t=this,n=this.labelKey;if(this.data.length&&n){var r=this.fills,o=this.strokes,i=this.id;this.data.forEach(function(a,s){e.push({id:i,itemId:s,enabled:t.dataEnabled[s],label:{text:String(a[n])},marker:{fill:r[s%r.length],stroke:o[s%o.length],fillOpacity:t.fillOpacity,strokeOpacity:t.strokeOpacity}})})}},t.prototype.toggleSeriesItem=function(e,t){this.dataEnabled[e]=t,this.scheduleData()},t.className="PieSeries",t}(Fi),wa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enabled=!0,t.color="rgba(0, 0, 0, 0.5)",t.xOffset=0,t.yOffset=0,t.blur=5,t}return wa(t,e),xa([Jo(["change"])],t.prototype,"enabled",void 0),xa([Jo(["change"])],t.prototype,"color",void 0),xa([Jo(["change"])],t.prototype,"xOffset",void 0),xa([Jo(["change"])],t.prototype,"yOffset",void 0),xa([Jo(["change"])],t.prototype,"blur",void 0),t}(Zo),Sa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ma=function(e){function t(){var t=e.call(this,new $i)||this;return t._nice=!0,t.scale.clamp=!0,t}return Sa(t,e),Object.defineProperty(t.prototype,"nice",{get:function(){return this._nice},set:function(e){this._nice!==e&&(this._nice=e,e&&this.scale.nice&&this.scale.nice(10))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"domain",{get:function(){return this.scale.domain},set:function(e){this.scale.domain=e,this.nice&&this.scale.nice&&this.scale.nice(10)},enumerable:!0,configurable:!0}),t}(Fo),Ea=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Aa=function(e){function t(){var t=e.call(this)||this;t.node=new po,t.enabled=!0,t.padding=new Wo(10);var n=t.node;return n.textAlign="center",n.textBaseline="top",n.pointerEvents=ar.None,t}return Ea(t,e),Oa([Jo(["change"])],t.prototype,"enabled",void 0),Oa([Jo(["change"])],t.prototype,"padding",void 0),Oa([Jo(["change"],"node.text")],t.prototype,"text",void 0),Oa([Jo(["change"],"node.fontStyle")],t.prototype,"fontStyle",void 0),Oa([Jo(["change"],"node.fontWeight")],t.prototype,"fontWeight",void 0),Oa([Jo(["change"],"node.fontSize")],t.prototype,"fontSize",void 0),Oa([Jo(["change"],"node.fontFamily")],t.prototype,"fontFamily",void 0),Oa([Jo(["change"],"node.fill")],t.prototype,"color",void 0),t}(Zo),Ta=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.updateAxes=function(){var e=this;this.axes.forEach(function(t){var n,r=t.direction,o=t.position,i=t.boundSeries,a=[],s=void 0;i.filter(function(e){return e.visible}).forEach(function(e){if(r===Ao.X)if(void 0===s){var t=e.getDomain(r);a.push(t),s="number"===typeof t[0]}else s&&a.push(e.getDomain(r));else a.push(e.getDomain(r))});var l=(n=new Array).concat.apply(n,a);t.domain=or(l)||l,t.update();var c=Math.floor(t.computeBBox().width);switch(o){case To.Left:e.axisAutoPadding.left=c;break;case To.Right:e.axisAutoPadding.right=c;break;case To.Bottom:e.axisAutoPadding.bottom=c;break;case To.Top:e.axisAutoPadding.top=c}})},t}(Li),Da=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Da(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,r=this.size/4.2;n.clear(),n.moveTo(e-=r,t),n.lineTo(e-=r,t-=r),n.lineTo(e+=r,t-=r),n.lineTo(e+=r,t+=r),n.lineTo(e+=r,t-=r),n.lineTo(e+=r,t+=r),n.lineTo(e-=r,t+=r),n.lineTo(e+=r,t+=r),n.lineTo(e-=r,t+=r),n.lineTo(e-=r,t-=r),n.lineTo(e-=r,t+=r),n.lineTo(e-=r,t-=r),n.closePath()},t.className="Cross",t}(qo),Na=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Na(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,r=this.size/2;n.clear(),n.moveTo(e,t-=r),n.lineTo(e+=r,t+=r),n.lineTo(e-=r,t+=r),n.lineTo(e-=r,t-=r),n.lineTo(e+=r,t-=r),n.closePath()},t.className="Diamond",t}(qo),Ra=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,r=this.size/3,o=r/2;n.clear(),n.moveTo(e-=o,t-=o),n.lineTo(e,t-=r),n.lineTo(e+=r,t),n.lineTo(e,t+=r),n.lineTo(e+=r,t),n.lineTo(e,t+=r),n.lineTo(e-=r,t),n.lineTo(e,t+=r),n.lineTo(e-=r,t),n.lineTo(e,t-=r),n.lineTo(e-=r,t),n.lineTo(e,t-=r),n.closePath()},t.className="Plus",t}(qo),Ia=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ia(t,e),t.prototype.updatePath=function(){var e=this.x,t=this.y,n=this.path,r=1.1*this.size;n.clear(),n.moveTo(e,t-=.48*r),n.lineTo(e+=.5*r,t+=.87*r),n.lineTo(e-=r,t),n.closePath()},t.className="Triangle",t}(qo);var Ba=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ja=new Date,Va=new Date,Wa=function(e){function t(t,n,r,o){var i=e.call(this,t,n)||this;return i._count=r,i._field=o,i}return Ba(t,e),t.prototype.count=function(e,t){return ja.setTime(+e),Va.setTime(+t),this._floor(ja),this._floor(Va),Math.floor(this._count(ja,Va))},t.prototype.every=function(e){var t,n=this;if(e=Math.floor(e),isFinite(e)&&e>0)if(e>1){var r=this._field;t=r?this.filter(function(t){return r(t)%e===0}):this.filter(function(t){return n.count(0,t)%e===0})}else t=this;return t},t}(function(){function e(e,t){this._floor=e,this._offset=t}return e.prototype.floor=function(e){return e=new Date(+e),this._floor(e),e},e.prototype.ceil=function(e){return e=new Date(+e-1),this._floor(e),this._offset(e,1),this._floor(e),e},e.prototype.round=function(e){var t=this.floor(e),n=this.ceil(e),r=+e;return r-t.getTime()t||n<=0)return o;do{r=new Date(+e),o.push(r),this._offset(e,n),this._floor(e)}while(r=e)for(;n._floor(e),!t(e);)e.setTime(e.getTime()-1);return e},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)do{n._offset(e,-1)}while(!t(e));else for(;--r>=0;)do{n._offset(e,1)}while(!t(e));return e})},e}());var Ha=new Wa(function(e){return e},function(e,t){e.setTime(e.getTime()+t)},function(e,t){return t.getTime()-e.getTime()}),Ga=1e3,Ua=60*Ga,qa=60*Ua,Ya=24*qa,Xa=7*Ya,Ka=30*Ya,$a=365*Ya;var Za=new Wa(function(e){e.setTime(e.getTime()-e.getMilliseconds())},function(e,t){e.setTime(e.getTime()+t*Ga)},function(e,t){return(t.getTime()-e.getTime())/Ga});var Ja=new Wa(function(e){e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Ga)},function(e,t){e.setTime(e.getTime()+t*Ua)},function(e,t){return(t.getTime()-e.getTime())/Ua},function(e){return e.getMinutes()});var Qa=new Wa(function(e){e.setTime(e.getTime()-e.getMilliseconds()-e.getSeconds()*Ga-e.getMinutes()*Ua)},function(e,t){e.setTime(e.getTime()+t*qa)},function(e,t){return(t.getTime()-e.getTime())/qa},function(e){return e.getHours()});var es=new Wa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){var n=t.getTimezoneOffset()-e.getTimezoneOffset();return(t.getTime()-e.getTime()-n*Ua)/Ya},function(e){return e.getDate()-1});function ts(e){return new Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t.getTime()-e.getTime()-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ua)/Xa})}var ns=ts(0),rs=ts(1),os=(ts(2),ts(3),ts(4));ts(5),ts(6);var is=new Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()});var as=new Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});var ss=new Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/Ya},function(e){return e.getUTCDate()-1});var ls=new Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function cs(e){return new Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t.getTime()-e.getTime())/Xa})}var us=cs(0),ds=cs(1),hs=(cs(2),cs(3),cs(4));cs(5),cs(6);function ps(e){if(e.y>=0&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fs(e){if(e.y>=0&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gs(e){for(var t={},n=0,r=e.length;n=12?1:0]},Q:k,s:D,S:function(e,t){return Ms(e.getSeconds(),t,2)},u:function(e){var t=e.getDay();return 0===t?7:t},U:function(e,t){return Ms(ns.count(as.floor(e),e),t,2)},V:function(e,t){var n=e.getDay();e=n>=4||0===n?os.floor(e):os.ceil(e);var r=as.floor(e);return Ms(os.count(r,e)+(4===r.getDay()?1:0),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ms(rs.count(as.floor(e),e),t,2)},x:void 0,X:void 0,y:function(e,t){return Ms(e.getFullYear()%100,t,2)},Y:function(e,t){return Ms(e.getFullYear()%1e4,t,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ms(Math.floor(t/60),"0",2)+Ms(t%60,"0",2)},"%":T},C={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:void 0,d:A,e:A,f:function(e,t){return O(e,t)+"000"},H:function(e,t){return Ms(e.getUTCHours(),t,2)},I:function(e,t){return Ms(e.getUTCHours()%12||12,t,2)},j:function(e,t){return Ms(1+ss.count(ls.floor(e),e),t,3)},L:O,m:function(e,t){return Ms(e.getUTCMonth()+1,t,2)},M:function(e,t){return Ms(e.getUTCMinutes(),t,2)},p:function(e){return o[e.getUTCHours()>=12?1:0]},Q:k,s:D,S:function(e,t){return Ms(e.getUTCSeconds(),t,2)},u:function(e){var t=e.getUTCDay();return 0===t?7:t},U:function(e,t){return Ms(us.count(ls.floor(e),e),t,2)},V:function(e,t){var n=e.getUTCDay();e=n>=4||0===n?hs.floor(e):hs.ceil(e);var r=ls.floor(e);return Ms(hs.count(r,e)+(4===r.getUTCDay()?1:0),t,4)},w:function(e){return e.getUTCDay()},W:function(e,t){return Ms(ds.count(ls.floor(e),e),t,2)},x:void 0,X:void 0,y:function(e,t){return Ms(e.getUTCFullYear()%100,t,2)},Y:function(e,t){return Ms(e.getUTCFullYear()%1e4,t,4)},Z:function(){return"+0000"},"%":T},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:N,e:N,f:function(e,t,n){var r=bs.exec(t.slice(n,n+6));return r?(e.L=Math.floor(parseFloat(r[0])/1e3),n+r[0].length):-1},H:P,I:P,j:function(e,t,n){var r=bs.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1},L:function(e,t,n){var r=bs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1},m:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.m=parseFloat(r[0])-1,n+r[0].length):-1},M:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1},p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:function(e,t,n){var r=bs.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1},s:function(e,t,n){var r=bs.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1},S:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1},u:function(e,t,n){var r=bs.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1},U:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1},V:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1},w:function(e,t,n){var r=bs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1},W:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1},x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:function(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1},Y:function(e,t,n){var r=bs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1},Z:function(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1},"%":function(e,t,n){var r=Cs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}};function x(e,t){return function(n){var r=ms(1900);if(S(r,e,n+="",0)==n.length){if("Q"in r)return new Date(r.Q);if("p"in r&&(r.H=r.H%12+12*r.p),"V"in r){if(r.V<1||r.V>53)return;if("w"in r||(r.w=1),"Z"in r){var o=(i=fs(ms(r.y))).getUTCDay();i=o>4||0===o?ds.ceil(i):ds.floor(i),i=ss.offset(i,7*(r.V-1)),r.y=i.getUTCFullYear(),r.m=i.getUTCMonth(),r.d=i.getUTCDate()+(r.w+6)%7}else{var i;o=(i=t(ms(r.y))).getDay(),i=o>4||0===o?rs.ceil(i):rs.floor(i),i=es.offset(i,7*(r.V-1)),r.y=i.getFullYear(),r.m=i.getMonth(),r.d=i.getDate()+(r.w+6)%7}}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:"W"in r?1:0),o="Z"in r?fs(ms(r.y)).getUTCDay():t(ms(r.y)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(o+5)%7:r.w+7*r.U-(o+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,fs(r)):t(r)}}}function _(e,t){return function(n){var r=[],o=e.length,i=-1,a=0;for(n instanceof Date||(n=new Date(+n));++i=a)return-1;var s=t.charCodeAt(o++);if(s===ys){var l=t.charAt(o++),c=w[l in Ss?t.charAt(o++):l];if(!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function M(e,t){return Ms(e.getMilliseconds(),t,3)}function E(e,t){return Ms(e.getDate(),t,2)}function O(e,t){return Ms(e.getUTCMilliseconds(),t,3)}function A(e,t){return Ms(e.getUTCDate(),t,2)}function T(e){return"%"}function k(e){return e.getTime()}function D(e){return Math.floor(e.getTime()/1e3)}function P(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function N(e,t,n){var r=bs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),C.x=_(n,C),C.X=_(r,C),C.c=_(t,C),{format:function(e){var t=_(e,b);return t.toString=function(){return e},t},parse:function(e){var t=x(e,ps);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e,C);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,fs);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.year=as,t.month=is,t.week=ns,t.day=es,t.hour=Qa,t.minute=Ja,t.second=Za,t.millisecond=Ha,t.format=vs.format,t.tickIntervals=[[t.second,1,Ga],[t.second,5,5*Ga],[t.second,15,15*Ga],[t.second,30,30*Ga],[t.minute,1,Ua],[t.minute,5,5*Ua],[t.minute,15,15*Ua],[t.minute,30,30*Ua],[t.hour,1,qa],[t.hour,3,3*qa],[t.hour,6,6*qa],[t.hour,12,12*qa],[t.day,1,Ya],[t.day,2,2*Ya],[t.week,1,Xa],[t.month,1,Ka],[t.month,3,3*Ka],[t.year,1,$a]],t.formatMillisecond=t.format(".%L"),t.formatSecond=t.format(":%S"),t.formatMinute=t.format("%I:%M"),t.formatHour=t.format("%I %p"),t.formatDay=t.format("%a %d"),t.formatWeek=t.format("%b %d"),t.formatMonth=t.format("%B"),t.formatYear=t.format("%Y"),t._domain=[new Date(2e3,0,1),new Date(2e3,0,2)],t}return Es(t,e),t.prototype.defaultTickFormat=function(e){return(this.second.floor(e)0&&i!==n,l=a&&a.length>0&&a!==r;(s||l)&&(this.customPalette={fills:s?i:n,strokes:l?a:r})}},e.prototype.getChartOptions=function(){return this.chartOptions},e.prototype.getCustomPalette=function(){return this.customPalette},e.prototype.getChartOption=function(e){return i._.get(this.chartOptions,e,void 0)},e.prototype.setChartOption=function(e,t){i._.set(this.chartOptions,e,t);i._.set(this.chart,{"legend.item.marker.strokeWidth":"legend.markerStrokeWidth","legend.item.marker.size":"legend.markerSize","legend.item.marker.padding":"legend.markerPadding","legend.item.label.fontFamily":"legend.labelFontFamily","legend.item.label.fontStyle":"legend.labelFontStyle","legend.item.label.fontWeight":"legend.labelFontWeight","legend.item.label.fontSize":"legend.labelFontSize","legend.item.label.color":"legend.labelColor","legend.item.paddingX":"legend.itemPaddingX","legend.item.paddingY":"legend.itemPaddingY"}[e]||e,t),this.raiseChartOptionsChangedEvent()},e.prototype.getSeriesOption=function(e){return i._.get(this.chartOptions.seriesDefaults,e,void 0)},e.prototype.setSeriesOption=function(e,t){i._.set(this.chartOptions.seriesDefaults,e,t);var n={"stroke.width":"strokeWidth","stroke.opacity":"strokeOpacity","fill.opacity":"fillOpacity","tooltip.enabled":"tooltipEnabled","callout.colors":"calloutColors","callout.strokeWidth":"calloutStrokeWidth","callout.length":"calloutLength"};this.chart.series.forEach(function(r){return i._.set(r,n[e]||e,t)}),this.raiseChartOptionsChangedEvent()},e.prototype.setTitleOption=function(e,t){this.chartOptions.title[e]=t,this.chart.title||(this.chart.title={}),this.chart.title[e]=t,"text"===e&&this.setTitleOption("enabled",i._.exists(t)),this.raiseChartOptionsChangedEvent()},e.prototype.setChartPaddingOption=function(e,t){var n=this.chartOptions.padding;n||(n=this.chartOptions.padding={top:0,right:0,bottom:0,left:0},this.chart.padding=new Wo(0)),n[e]=t,this.chart.padding[e]=t,this.chart.performLayout(),this.raiseChartOptionsChangedEvent()},e.prototype.getShadowProperty=function(e){var t=this.chartOptions.seriesDefaults;return t.shadow?t.shadow[e]:""},e.prototype.setShadowProperty=function(e,t){var n=this.chartOptions.seriesDefaults;n.shadow||(n.shadow={enabled:!1,blur:0,xOffset:0,yOffset:0,color:"rgba(0,0,0,0.5)"}),n.shadow[e]=t,this.getChart().series.forEach(function(n){if(!n.shadow){var r=new _a;r.enabled=!1,r.blur=0,r.xOffset=0,r.yOffset=0,r.color="rgba(0,0,0,0.5)",n.shadow=r}n.shadow[e]=t}),this.raiseChartOptionsChangedEvent()},e.prototype.raiseChartOptionsChangedEvent=function(){var e=Object.freeze({type:i.Events.EVENT_CHART_OPTIONS_CHANGED,chartType:this.chartType,chartPalette:this.chartProxyParams.getChartPaletteName(),chartOptions:this.chartOptions});this.chartProxyParams.eventService.dispatchEvent(e)},e.prototype.getDefaultFontOptions=function(){return{fontStyle:"normal",fontWeight:"normal",fontSize:12,fontFamily:"Verdana, sans-serif",color:this.getFontColor()}},e.prototype.getDefaultDropShadowOptions=function(){return{enabled:!1,blur:5,xOffset:3,yOffset:3,color:"rgba(0, 0, 0, 0.5)"}},e.prototype.getPredefinedPalette=function(){return br.get(this.chartProxyParams.getChartPaletteName())},e.prototype.getPalette=function(){return this.customPalette||this.getPredefinedPalette()},e.prototype.getDefaultChartOptions=function(){var e=this.getPredefinedPalette(),t=e.fills,n=e.strokes,r=this.getDefaultFontOptions();return{background:{fill:this.getBackgroundColor(),visible:!0},width:800,height:400,padding:{top:20,right:20,bottom:20,left:20},title:Ds(Ds({},r),{enabled:!1,fontWeight:"bold",fontSize:16}),subtitle:Ds(Ds({},r),{enabled:!1}),legend:{enabled:!0,position:"right",padding:20,item:{label:Ds({},r),marker:{type:"square",size:15,padding:8,strokeWidth:1},paddingX:16,paddingY:8}},seriesDefaults:{fill:{colors:t,opacity:1},stroke:{colors:n,opacity:1,width:1},highlightStyle:{fill:"yellow"}}}},e.prototype.transformData=function(e,t){return this.chart.axes.filter(function(e){return e instanceof bi}).length<1?e:e.map(function(e,n){var r=e[t],o=r&&r.toString?r.toString():"",i=Ds({},e);return i[t]={id:n,value:r,toString:function(){return o}},i})},e.prototype.destroy=function(){this.destroyChart()},e.prototype.destroyChart=function(){var e=this.chartProxyParams.parentElement,t=e.querySelector("canvas");t&&e.removeChild(t),this.chart&&(this.chartOptions.width=this.chart.width,this.chartOptions.height=this.chart.height,this.chart.destroy(),this.chart=null)},e}(),Ns=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ls=function(){return(Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}).map(function(e){return{xField:r,yField:e}})},t}(Rs),Vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ws=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hs=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return Vs(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initMarkers()},t.prototype.initMarkers=function(){var e=this,t=this.chartController.getChartProxy()instanceof js;this.seriesMarkersGroup.setTitle(this.chartTranslator.translate("markers")).hideEnabledCheckbox(t).setEnabled(this.chartController.getChartProxy().getSeriesOption("marker.enabled")||!1).hideOpenCloseIcons(!0).onEnableChange(function(t){return e.chartController.getChartProxy().setSeriesOption("marker.enabled",t)});var n=function(t,n,r,o){n.setLabel(e.chartTranslator.translate(r)).setValue(e.chartController.getChartProxy().getSeriesOption(t)).setMaxValue(o).setTextFieldWidth(45).onValueChange(function(n){return e.chartController.getChartProxy().setSeriesOption(t,n)})};this.chartController.getChartType()===i.ChartType.Bubble?(n("marker.minSize",this.seriesMarkerMinSizeSlider,"minSize",60),n("marker.size",this.seriesMarkerSizeSlider,"maxSize",60)):(this.seriesMarkerMinSizeSlider.setDisplayed(!1),n("marker.size",this.seriesMarkerSizeSlider,"size",60)),n("marker.strokeWidth",this.seriesMarkerStrokeWidthSlider,"strokeWidth",10)},t.TEMPLATE='
\n \n \n \n \n \n
',Ws([i.RefSelector("seriesMarkersGroup")],t.prototype,"seriesMarkersGroup",void 0),Ws([i.RefSelector("seriesMarkerSizeSlider")],t.prototype,"seriesMarkerSizeSlider",void 0),Ws([i.RefSelector("seriesMarkerMinSizeSlider")],t.prototype,"seriesMarkerMinSizeSlider",void 0),Ws([i.RefSelector("seriesMarkerStrokeWidthSlider")],t.prototype,"seriesMarkerStrokeWidthSlider",void 0),Ws([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Ws([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Gs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qs=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return Gs(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.getChartProxy().getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.getChartProxy().setSeriesOption("tooltip.enabled",t)})},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.width")).onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.width",t)})},t.prototype.initMarkersPanel=function(){var e=this.wireBean(new Hs(this.chartController));this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n
',Us([i.RefSelector("seriesGroup")],t.prototype,"seriesGroup",void 0),Us([i.RefSelector("seriesTooltipsToggle")],t.prototype,"seriesTooltipsToggle",void 0),Us([i.RefSelector("seriesLineWidthSlider")],t.prototype,"seriesLineWidthSlider",void 0),Us([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Us([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Ys=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ks=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return Ys(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initCalloutOptions()},t.prototype.initCalloutOptions=function(){var e=this;this.calloutGroup.setTitle(this.chartTranslator.translate("callout")).setEnabled(!0).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0);var t=function(t,n,r,o){n.setLabel(e.chartTranslator.translate(r)).setValue(e.chartController.getChartProxy().getSeriesOption(t)).setMaxValue(o).setTextFieldWidth(45).onValueChange(function(n){return e.chartController.getChartProxy().setSeriesOption(t,n)})};t("callout.length",this.calloutLengthSlider,"length",40),t("callout.strokeWidth",this.calloutStrokeWidthSlider,"strokeWidth",10),t("label.offset",this.labelOffsetSlider,"offset",30)},t.TEMPLATE='
\n \n \n \n \n \n
',Xs([i.RefSelector("calloutGroup")],t.prototype,"calloutGroup",void 0),Xs([i.RefSelector("calloutLengthSlider")],t.prototype,"calloutLengthSlider",void 0),Xs([i.RefSelector("calloutStrokeWidthSlider")],t.prototype,"calloutStrokeWidthSlider",void 0),Xs([i.RefSelector("labelOffsetSlider")],t.prototype,"labelOffsetSlider",void 0),Xs([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Xs([i.PostConstruct],t.prototype,"init",null),t}(i.Component),$s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Js=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return $s(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initSeriesTooltips(),this.initSeriesStrokeWidth(),this.initOpacity(),this.initLabelPanel(),this.initShadowPanel()},t.prototype.initGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.getChartProxy().getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.getChartProxy().setSeriesOption("tooltip.enabled",t)})},t.prototype.initSeriesStrokeWidth=function(){var e=this;this.seriesStrokeWidthSlider.setLabel(this.chartTranslator.translate("strokeWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.width")).onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.width",t)})},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.opacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.opacity",t)}),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("fillOpacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("fillOpacity",t)})},t.prototype.initLabelPanel=function(){var e=this,t=this.getChartProxy(),n={family:t.getSeriesOption("label.fontFamily"),style:t.getSeriesOption("label.fontStyle"),weight:t.getSeriesOption("label.fontWeight"),size:t.getSeriesOption("label.fontSize"),color:t.getSeriesOption("label.color")},r={name:this.chartTranslator.translate("labels"),enabled:t.getSeriesOption("label.enabled")||!1,setEnabled:function(t){return e.getChartProxy().setSeriesOption("label.enabled",t)},suppressEnabledCheckbox:!1,initialFont:n,setFont:function(t){var n=e.getChartProxy();t.family&&n.setSeriesOption("label.fontFamily",t.family),t.weight&&n.setSeriesOption("label.fontWeight",t.weight),t.style&&n.setSeriesOption("label.fontStyle",t.style),t.size&&n.setSeriesOption("label.fontSize",t.size),t.color&&n.setSeriesOption("label.color",t.color)}},o=this.wireBean(new Tr(r));this.activePanels.push(o);var i=this.wireBean(new Ks(this.chartController));o.addCompToPanel(i),this.activePanels.push(i),this.seriesGroup.addItem(o)},t.prototype.initShadowPanel=function(){var e=this.wireBean(new Rr(this.chartController));this.seriesGroup.getGui().appendChild(e.getGui()),this.seriesGroup.addItem(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n \n \n
',Zs([i.RefSelector("seriesGroup")],t.prototype,"seriesGroup",void 0),Zs([i.RefSelector("seriesTooltipsToggle")],t.prototype,"seriesTooltipsToggle",void 0),Zs([i.RefSelector("seriesStrokeWidthSlider")],t.prototype,"seriesStrokeWidthSlider",void 0),Zs([i.RefSelector("seriesLineOpacitySlider")],t.prototype,"seriesLineOpacitySlider",void 0),Zs([i.RefSelector("seriesFillOpacitySlider")],t.prototype,"seriesFillOpacitySlider",void 0),Zs([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Zs([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),el=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tl=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return Qs(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initChartPaddingItems()},t.prototype.initGroup=function(){this.chartPaddingGroup.setTitle(this.chartTranslator.translate("padding")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!0)},t.prototype.initChartPaddingItems=function(){var e=this,t=function(t,n){n.setLabel(e.chartTranslator.translate(t)).setValue(e.chartController.getChartProxy().getChartPaddingOption(t)).setMaxValue(200).setTextFieldWidth(45).onValueChange(function(n){return e.chartController.getChartProxy().setChartPaddingOption(t,n)})};t("top",this.paddingTopSlider),t("right",this.paddingRightSlider),t("bottom",this.paddingBottomSlider),t("left",this.paddingLeftSlider)},t.TEMPLATE='
\n \n \n \n \n \n \n
',el([i.RefSelector("chartPaddingGroup")],t.prototype,"chartPaddingGroup",void 0),el([i.RefSelector("paddingTopSlider")],t.prototype,"paddingTopSlider",void 0),el([i.RefSelector("paddingRightSlider")],t.prototype,"paddingRightSlider",void 0),el([i.RefSelector("paddingBottomSlider")],t.prototype,"paddingBottomSlider",void 0),el([i.RefSelector("paddingLeftSlider")],t.prototype,"paddingLeftSlider",void 0),el([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),el([i.PostConstruct],t.prototype,"init",null),t}(i.Component),nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ol=function(e){function t(t){var n=e.call(this)||this;return n.chartController=t,n}return nl(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initColorPicker()},t.prototype.initGroup=function(){var e=this;this.group.setTitle(this.chartTranslator.translate("background")).setEnabled(this.chartController.getChartProxy().getChartOption("background.visible")).hideOpenCloseIcons(!0).hideEnabledCheckbox(!1).onEnableChange(function(t){return e.chartController.getChartProxy().setChartOption("background.visible",t)})},t.prototype.initColorPicker=function(){var e=this;this.colorPicker.setLabel(this.chartTranslator.translate("color")).setLabelWidth("flex").setInputWidth(45).setValue(this.chartController.getChartProxy().getChartOption("background.fill")).onValueChange(function(t){return e.chartController.getChartProxy().setChartOption("background.fill",t)})},t.TEMPLATE='
\n \n \n \n
',rl([i.RefSelector("chartBackgroundGroup")],t.prototype,"group",void 0),rl([i.RefSelector("colorPicker")],t.prototype,"colorPicker",void 0),rl([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),rl([i.PostConstruct],t.prototype,"init",null),t}(i.Component),il=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),al=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sl=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return il(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initGroup(),this.initTitles(),this.initPaddingPanel(),this.initBackgroundPanel()},t.prototype.initGroup=function(){this.chartGroup.setTitle(this.chartTranslator.translate("chart")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initTitles=function(){var e=this,t=this.chartController.getChartProxy(),n=t.getChartOption("title"),r=n&&n.text?n.text:"",o=function(t){var n=e.chartController.getChartProxy();t.family&&n.setTitleOption("fontFamily",t.family),t.weight&&n.setTitleOption("fontWeight",t.weight),t.style&&n.setTitleOption("fontStyle",t.style),t.size&&n.setTitleOption("fontSize",t.size),t.color&&n.setTitleOption("color",t.color)},a={family:n?t.getChartOption("title.fontFamily"):"Verdana, sans-serif",style:n?t.getChartOption("title.fontStyle"):void 0,weight:n?t.getChartOption("title.fontWeight"):void 0,size:n?t.getChartOption("title.fontSize"):22,color:n?t.getChartOption("title.color"):"black"};n||o(a),this.titleInput.setLabel(this.chartTranslator.translate("title")).setLabelAlignment("top").setLabelWidth("flex").setValue(r).onValueChange(function(t){e.chartController.getChartProxy().setTitleOption("text",t),l.setEnabled(i._.exists(t))});var s={name:this.chartTranslator.translate("font"),enabled:!0,suppressEnabledCheckbox:!0,initialFont:a,setFont:o},l=this.wireBean(new Tr(s));this.chartGroup.addItem(l),this.activePanels.push(l),l.setEnabled(i._.exists(r))},t.prototype.initPaddingPanel=function(){var e=this.wireBean(new tl(this.chartController));this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.initBackgroundPanel=function(){var e=this.wireBean(new ol(this.chartController));this.chartGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n
',al([i.RefSelector("chartGroup")],t.prototype,"chartGroup",void 0),al([i.RefSelector("titleInput")],t.prototype,"titleInput",void 0),al([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),al([i.PostConstruct],t.prototype,"init",null),t}(i.Component),ll=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ul=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return ll(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initSeriesLineWidth(),this.initOpacity(),this.initMarkersPanel(),this.initShadowPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.getChartProxy().getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.getChartProxy().setSeriesOption("tooltip.enabled",t)})},t.prototype.initSeriesLineWidth=function(){var e=this;this.seriesLineWidthSlider.setLabel(this.chartTranslator.translate("lineWidth")).setMaxValue(10).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.width")).onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.width",t)})},t.prototype.initOpacity=function(){var e=this;this.seriesLineOpacitySlider.setLabel(this.chartTranslator.translate("strokeOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("stroke.opacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("stroke.opacity",t)}),this.seriesFillOpacitySlider.setLabel(this.chartTranslator.translate("fillOpacity")).setStep(.05).setMaxValue(1).setTextFieldWidth(45).setValue(this.getChartProxy().getSeriesOption("fill.opacity")||"1").onValueChange(function(t){return e.getChartProxy().setSeriesOption("fill.opacity",t)})},t.prototype.initMarkersPanel=function(){var e=this.wireBean(new Hs(this.chartController));this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.initShadowPanel=function(){var e=this.wireBean(new Rr(this.chartController));this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n \n \n
',cl([i.RefSelector("seriesGroup")],t.prototype,"seriesGroup",void 0),cl([i.RefSelector("seriesTooltipsToggle")],t.prototype,"seriesTooltipsToggle",void 0),cl([i.RefSelector("seriesLineWidthSlider")],t.prototype,"seriesLineWidthSlider",void 0),cl([i.RefSelector("seriesLineOpacitySlider")],t.prototype,"seriesLineOpacitySlider",void 0),cl([i.RefSelector("seriesFillOpacitySlider")],t.prototype,"seriesFillOpacitySlider",void 0),cl([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),cl([i.PostConstruct],t.prototype,"init",null),t}(i.Component),dl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pl=function(e){function t(t){var n=e.call(this)||this;return n.activePanels=[],n.chartController=t,n}return dl(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.initSeriesGroup(),this.initSeriesTooltips(),this.initMarkersPanel()},t.prototype.initSeriesGroup=function(){this.seriesGroup.setTitle(this.chartTranslator.translate("series")).toggleGroupExpand(!1).hideEnabledCheckbox(!0)},t.prototype.initSeriesTooltips=function(){var e=this;this.seriesTooltipsToggle.setLabel(this.chartTranslator.translate("tooltips")).setLabelAlignment("left").setLabelWidth("flex").setInputWidth(40).setValue(this.getChartProxy().getSeriesOption("tooltip.enabled")||!1).onValueChange(function(t){return e.getChartProxy().setSeriesOption("tooltip.enabled",t)})},t.prototype.initMarkersPanel=function(){var e=this.wireBean(new Hs(this.chartController));this.seriesGroup.addItem(e),this.activePanels.push(e)},t.prototype.destroyActivePanels=function(){this.activePanels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.getChartProxy=function(){return this.chartController.getChartProxy()},t.prototype.destroy=function(){this.destroyActivePanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n
',hl([i.RefSelector("seriesGroup")],t.prototype,"seriesGroup",void 0),hl([i.RefSelector("seriesTooltipsToggle")],t.prototype,"seriesTooltipsToggle",void 0),hl([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),hl([i.PostConstruct],t.prototype,"init",null),t}(i.Component),fl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ml=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.panels=[],r.chartController=n,r}return fl(t,e),t.prototype.init=function(){this.createPanels(),this.addDestroyableEventListener(this.chartController,xr.EVENT_CHART_UPDATED,this.createPanels.bind(this))},t.prototype.createPanels=function(){var e=this.chartController.getChartType();if(e!==this.chartType){switch(this.destroyPanels(),this.addComponent(new sl(this.chartController)),this.addComponent(new Pr(this.chartController)),e){case i.ChartType.GroupedColumn:case i.ChartType.StackedColumn:case i.ChartType.NormalizedColumn:case i.ChartType.GroupedBar:case i.ChartType.StackedBar:case i.ChartType.NormalizedBar:this.addComponent(new Bo(this.chartController)),this.addComponent(new zr(this.chartController));break;case i.ChartType.Pie:case i.ChartType.Doughnut:this.addComponent(new Js(this.chartController));break;case i.ChartType.Line:this.addComponent(new Bo(this.chartController)),this.addComponent(new qs(this.chartController));break;case i.ChartType.Scatter:case i.ChartType.Bubble:this.addComponent(new Bo(this.chartController)),this.addComponent(new pl(this.chartController));break;case i.ChartType.Area:case i.ChartType.StackedArea:case i.ChartType.NormalizedArea:this.addComponent(new Bo(this.chartController)),this.addComponent(new ul(this.chartController));break;default:console.warn("ag-Grid: ChartFormattingPanel - unexpected chart type index: "+e+" supplied")}this.chartType=e}},t.prototype.addComponent=function(e){this.wireBean(e),this.panels.push(e),this.getGui().appendChild(e.getGui())},t.prototype.destroyPanels=function(){this.panels.forEach(function(e){i._.removeFromParent(e.getGui()),e.destroy()})},t.prototype.destroy=function(){this.destroyPanels(),e.prototype.destroy.call(this)},t.TEMPLATE='
',gl([i.PostConstruct],t.prototype,"init",null),t}(i.Component),vl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bl=function(e){function t(t,n){var r=e.call(this)||this;r.size=58,r.padding=5,r.root=new qr;var o=new Vo;return o.width=r.size,o.height=r.size,o.root=r.root,o.parent=t,r.scene=o,r.tooltipName=n,r}return vl(t,e),t.prototype.init=function(){this.scene.canvas.element.title=this.chartTranslator.translate(this.tooltipName)},yl([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),yl([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Cl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xl=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.stroke="gray",r.axisOvershoot=3,r}return Cl(t,e),t.prototype.addAxes=function(){var e=this.size,t=this.padding,n=new Qr;n.x1=t,n.y1=t,n.x2=t,n.y2=e-t+this.axisOvershoot,n.stroke=this.stroke;var r=new Qr;r.x1=t-this.axisOvershoot+1,r.y1=e-t,r.x2=e-t+1,r.y2=e-t,r.stroke=this.stroke;var o=this.root;o.append(n),o.append(r)},wl([i.PostConstruct],t.prototype,"addAxes",null),t}(bl),_l=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sl=function(e){function t(t,n,r){var o=e.call(this,t,"groupedColumnTooltip")||this,i=o.padding,a=o.size,s=new vi;s.domain=[0,1,2],s.range=[i,a-i],s.paddingInner=.3,s.paddingOuter=.3;var l=Zi();l.domain=[0,4],l.range=[a-i,i];var c=l.convert(0),u=s.bandwidth;return o.bars=[2,3,4].map(function(e,t){var n=l.convert(e),r=new Go;return r.x=s.convert(t),r.y=n,r.width=u,r.height=c-n,r.strokeWidth=1,r.crisp=!0,r}),o.updateColors(n,r),o.root.append(o.bars),o}return _l(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType=i.ChartType.GroupedColumn,t}(xl),Ml=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),El=function(e){function t(n,r,o,i,a,s){void 0===i&&(i=t.data),void 0===a&&(a=[0,16]),void 0===s&&(s="stackedColumnTooltip");var l=e.call(this,n,s)||this,c=l.padding,u=l.size,d=new vi;d.domain=[0,1,2],d.range=[c,u-c],d.paddingInner=.3,d.paddingOuter=.3;var h=Zi();h.domain=a,h.range=[u-c,c];var p=h.convert(0),f=d.bandwidth;return l.bars=i.map(function(e){return e.map(function(e,t){var n=h.convert(e),r=new Go;return r.x=d.convert(t),r.y=n,r.width=f,r.height=p-n,r.strokeWidth=1,r.crisp=!0,r})}),l.updateColors(r,o),l.root.append([].concat.apply([],l.bars)),l}return Ml(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){return n.forEach(function(n){n.fill=e[r],n.stroke=t[r]})})},t.chartType=i.ChartType.StackedColumn,t.data=[[8,12,16],[6,9,12],[2,3,4]],t}(xl),Ol=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Al=function(e){function t(n,r,o){return e.call(this,n,r,o,t.data,[0,10],"normalizedColumnTooltip")||this}return Ol(t,e),t.chartType=i.ChartType.NormalizedColumn,t.data=[[10,10,10],[6,7,8],[2,4,6]],t}(El),Tl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kl=function(e){function t(t,n,r){var o=e.call(this,t,"groupedBarTooltip")||this,i=o.padding,a=o.size,s=new vi;s.domain=[0,1,2],s.range=[i,a-i],s.paddingInner=.3,s.paddingOuter=.3;var l=Zi();l.domain=[0,4],l.range=[a-i,i];var c=l.convert(0),u=s.bandwidth;return o.bars=[2,3,4].map(function(e,t){var n=new Go;return n.x=i,n.y=s.convert(t),n.width=c-l.convert(e),n.height=u,n.strokeWidth=1,n.crisp=!0,n}),o.updateColors(n,r),o.root.append(o.bars),o}return Tl(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType=i.ChartType.GroupedBar,t}(xl),Dl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pl=function(e){function t(n,r,o,i,a,s){void 0===i&&(i=t.data),void 0===a&&(a=[0,16]),void 0===s&&(s="stackedBarTooltip");var l=e.call(this,n,s)||this,c=l.size,u=l.padding,d=new vi;d.domain=[0,1,2],d.range=[u,c-u],d.paddingInner=.3,d.paddingOuter=.3;var h=Zi();h.domain=a,h.range=[c-u,u];var p=h.convert(0),f=d.bandwidth;return l.bars=i.map(function(e){return e.map(function(e,t){var n=new Go;return n.x=u,n.y=d.convert(t),n.width=p-h.convert(e),n.height=f,n.strokeWidth=1,n.crisp=!0,n})}),l.updateColors(r,o),l.root.append([].concat.apply([],l.bars)),l}return Dl(t,e),t.prototype.updateColors=function(e,t){this.bars.forEach(function(n,r){return n.forEach(function(n){n.fill=e[r],n.stroke=t[r]})})},t.chartType=i.ChartType.StackedBar,t.data=[[8,12,16],[6,9,12],[2,3,4]],t}(xl),Nl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ll=function(e){function t(n,r,o){return e.call(this,n,r,o,t.data,[0,10],"normalizedBarTooltip")||this}return Nl(t,e),t.chartType=i.ChartType.NormalizedBar,t.data=[[10,10,10],[6,7,8],[2,4,6]],t}(Pl),Rl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fl=function(e){function t(t,n,r,o,i){void 0===o&&(o=.6),void 0===i&&(i="doughnutTooltip");var a=e.call(this,t,i)||this,s=(a.size-2*a.padding)/2,l=s+a.padding,c=[[uo(-90),uo(30)],[uo(30),uo(120)],[uo(120),uo(180)],[uo(180),uo(210)],[uo(210),uo(240)],[uo(240),uo(270)]];return a.sectors=c.map(function(e){var t=e[0],n=e[1],r=new ga;return r.centerX=l,r.centerY=l,r.innerRadius=s*o,r.outerRadius=s,r.startAngle=t,r.endAngle=n,r.stroke=void 0,r}),a.updateColors(n,r),a.root.append(a.sectors),a}return Rl(t,e),t.prototype.updateColors=function(e,t){this.sectors.forEach(function(n,r){n.fill=e[r%e.length],n.stroke=t[r%t.length]})},t.chartType=i.ChartType.Doughnut,t}(bl),Il=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=function(e){function t(t,n,r){return e.call(this,t,n,r,0,"pieTooltip")||this}return Il(t,e),t.chartType=i.ChartType.Pie,t}(Fl),Bl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContainerNode=!0,t.path=new bo,t._active=!0,t._dirtyPath=!0,t._x=0,t._y=0,t._width=10,t._height=10,t}return Bl(t,e),t.prototype.isPointInNode=function(e,t){var n=this.transformPoint(e,t);return n.x>=this.x&&n.x<=this.x+this.width&&n.y>=this.y&&n.y<=this.y+this.height},Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(e){this._active!==e&&(this._active=e,this.dirty=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirtyPath",{get:function(){return this._dirtyPath},set:function(e){this._dirtyPath!==e&&(this._dirtyPath=e,e&&(this.dirty=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width!==e&&(this._width=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height!==e&&(this._height=e,this.dirtyPath=!0)},enumerable:!0,configurable:!0}),t.prototype.updatePath=function(){var e=this.path;e.clear(),e.rect(this.x,this.y,this.width,this.height),this.dirtyPath=!1},t.prototype.render=function(e){this.active&&(this.dirtyPath&&this.updatePath(),this.scene.appendPath(this.path),e.clip());for(var t=this.children,n=t.length,r=0;r0?"lineTo":"moveTo"](s.convert(n),l.convert(e))}),t}),o.updateColors(n,r);var c=new jl;return c.x=c.y=a,c.width=c.height=i-2*a,c.append(o.lines),o.root.append(c),o}return Vl(t,e),t.prototype.updateColors=function(e,t){this.lines.forEach(function(t,n){t.stroke=e[n]})},t.chartType=i.ChartType.Line,t}(xl),Hl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gl=function(e){function t(t,n,r){var o=e.call(this,t,"scatterTooltip")||this,i=o.size,a=o.padding,s=Zi();s.domain=[-.5,4],s.range=[2*a,i-a];var l=Zi();l.domain=[-.5,3.5],l.range=[i-a,a];var c=[];[[[.3,3],[1.1,.9],[2,.4],[3.4,2.4]],[[0,.3],[1,2],[2.4,1.4],[3,0]]].forEach(function(e){e.forEach(function(e){var t=e[0],n=e[1],r=new Oo;r.strokeWidth=1,r.centerX=s.convert(t),r.centerY=l.convert(n),r.radiusX=r.radiusY=2.5,c.push(r)})}),o.points=c,o.updateColors(n,r);var u=new jl;return u.x=u.y=a,u.width=u.height=i-2*a,u.append(o.points),o.root.append(u),o}return Hl(t,e),t.prototype.updateColors=function(e,t){this.points.forEach(function(n,r){n.stroke=t[r%t.length],n.fill=e[r%e.length]})},t.chartType=i.ChartType.Scatter,t}(xl),Ul=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ql=function(e){function t(t,n,r){var o=e.call(this,t,"bubbleTooltip")||this,i=o.size,a=o.padding,s=Zi();s.domain=[0,1],s.range=[2*a,i-a];var l=Zi();l.domain=[0,1],l.range=[i-a,a];var c=[];[[[.1,.3,5],[.5,.4,7],[.2,.8,7]],[[.8,.7,5],[.7,.3,9]]].forEach(function(e){e.forEach(function(e){var t=e[0],n=e[1],r=e[2],o=new Oo;o.strokeWidth=1,o.centerX=s.convert(t),o.centerY=l.convert(n),o.radiusX=o.radiusY=r,o.fillOpacity=.7,c.push(o)})}),o.points=c,o.updateColors(n,r);var u=new jl;return u.x=a,u.y=a,u.width=i-2*a,u.height=i-2*a,u.append(o.points),o.root.append(u),o}return Ul(t,e),t.prototype.updateColors=function(e,t){this.points.forEach(function(n,r){n.stroke=t[r%t.length],n.fill=e[r%e.length]})},t.chartType=i.ChartType.Bubble,t}(xl),Yl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xl=function(e){function t(n,r,o,i){void 0===i&&(i=t.data);var a=e.call(this,n,"groupedAreaTooltip")||this,s=a.size,l=a.padding,c=new vi;c.domain=[0,1,2],c.paddingInner=1,c.paddingOuter=0,c.range=[l+.5,s-l-.5];var u=Zi();u.domain=[0,6],u.range=[s-l+.5,l];var d=2*i.length-1,h=[],p=u.convert(0);return i.forEach(function(e,t){var n=c.convert(t);e.forEach(function(e,r){var o=u.convert(e),i=h[r]||(h[r]=[]);i[t]={x:n,y:o},i[d-t]={x:n,y:p}})}),a.areas=h.reverse().map(function(e){var t=new wo;t.strokeWidth=1,t.fillOpacity=.7;var n=t.path;return n.clear(),e.forEach(function(e,t){return n[t>0?"lineTo":"moveTo"](e.x,e.y)}),n.closePath(),t}),a.updateColors(r,o),a.root.append(a.areas),a}return Yl(t,e),t.prototype.updateColors=function(e,t){this.areas.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType=i.ChartType.Area,t.data=[[1,3,5],[2,6,4],[5,3,1]],t}(xl),Kl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$l=function(e){function t(n,r,o,i,a){void 0===i&&(i=t.data),void 0===a&&(a="stackedAreaTooltip");var s=e.call(this,n,a)||this,l=s.size,c=s.padding,u=new vi;u.domain=[0,1,2],u.paddingInner=1,u.paddingOuter=0,u.range=[c+.5,l-c-.5];var d=Zi();d.domain=[0,16],d.range=[l-c+.5,c+.5];var h=2*i.length-1,p=[];return i.forEach(function(e,t){var n=u.convert(t),r=0;e.forEach(function(e,o){var i=d.convert(r+e),a=p[o]||(p[o]=[]);a[t]={x:n,y:i},a[h-t]={x:n,y:d.convert(r)},r+=e})}),s.areas=p.map(function(e){var t=new wo;t.strokeWidth=1;var n=t.path;return n.clear(),e.forEach(function(e,t){return n[t>0?"lineTo":"moveTo"](e.x,e.y)}),n.closePath(),t}),s.updateColors(r,o),s.root.append(s.areas),s}return Kl(t,e),t.prototype.updateColors=function(e,t){this.areas.forEach(function(n,r){n.fill=e[r],n.stroke=t[r]})},t.chartType=i.ChartType.StackedArea,t.data=[[2,3,2],[3,6,5],[6,2,2]],t}(xl),Zl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jl=function(e){function t(n,r,o,i){return void 0===i&&(i=t.data),e.call(this,n,r,o,i,"normalizedAreaTooltip")||this}return Zl(t,e),t.chartType=i.ChartType.NormalizedArea,t.data=$l.data.map(function(e){var t=e.reduce(function(e,t){return e+t},0);return e.map(function(e){return e/t*16})}),t}($l),Ql=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ec=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tc=function(e){function t(n,r,o){var i=e.call(this,t.TEMPLATE)||this;return i.wrappers={},i.chartController=n,i.fills=r,i.strokes=o,i}return Ql(t,e),t.prototype.init=function(){var e=this,t={columnGroup:[Sl,El,Al],barGroup:[kl,Pl,Ll],pieGroup:[zl,Fl],lineGroup:[Wl],scatterGroup:[Gl,ql],areaGroup:[Xl,$l,Jl]},n=this.getGui();Object.keys(t).forEach(function(r){var o=t[r],a=e.wireBean(new i.AgGroupComponent({title:e.chartTranslator.translate(r),suppressEnabledCheckbox:!0,enabled:!0,suppressOpenCloseIcons:!0}));o.forEach(function(t){var n=document.createElement("div");i._.addCssClass(n,"ag-chart-mini-thumbnail"),e.addDestroyableEventListener(n,"click",function(){e.chartController.setChartType(t.chartType),e.refreshSelected()}),e.wrappers[t.chartType]=n,e.wireBean(new t(n,e.fills,e.strokes)),a.addItem(n)}),n.appendChild(a.getGui())}),this.refreshSelected()},t.prototype.refreshSelected=function(){var e=this.chartController.getChartType();for(var t in this.wrappers)i._.addOrRemoveCssClass(this.wrappers[t],"ag-selected",t===e)},t.TEMPLATE='
',ec([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),ec([i.PostConstruct],t.prototype,"init",null),t}(i.Component),nc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oc=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.miniCharts=[],r.cardItems=[],r.chartController=n,r}return nc(t,e),t.prototype.postConstruct=function(){this.resetPalettes(),this.ePrevBtn.insertAdjacentElement("afterbegin",i._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)),this.eNextBtn.insertAdjacentElement("afterbegin",i._.createIconNoSpan("smallRight",this.gridOptionsWrapper)),this.addDestroyableEventListener(this.ePrevBtn,"click",this.prev.bind(this)),this.addDestroyableEventListener(this.eNextBtn,"click",this.next.bind(this)),this.addDestroyableEventListener(this.chartController,xr.EVENT_CHART_UPDATED,this.resetPalettes.bind(this))},t.prototype.resetPalettes=function(){var e=this,t=this.chartController.getPalettes();t!==this.palettes&&(this.palettes=t,this.activePalette=this.chartController.getPaletteName(),this.palettes.has(this.activePalette)||(this.activePalette=void 0),this.paletteNames=[],this.cardItems=[],i._.clearElement(this.eCardSelector),this.destroyMiniCharts(),this.palettes.forEach(function(t,n){e.activePalette||(e.activePalette=n),e.paletteNames.push(n);var r=e.activePalette===n,o=t.fills,a=t.strokes,s=e.wireBean(new tc(e.chartController,o,a));e.miniCharts.push(s),e.eMiniChartsContainer.appendChild(s.getGui()),e.addCardLink(n),r?s.refreshSelected():i._.addCssClass(s.getGui(),"ag-hidden")}),i._.addOrRemoveCssClass(this.eNavBar,"ag-hidden",this.palettes.size<=1))},t.prototype.addCardLink=function(e){var t=this,n=document.createElement("div");i._.addCssClass(n,"ag-nav-card-item"),e===this.activePalette&&i._.addCssClass(n,"ag-selected"),this.addDestroyableEventListener(n,"click",function(){var n=t,r=n.activePalette,o=n.isAnimating,i=n.paletteNames;e===r||o||t.setActivePalette(e,i.indexOf(e)=this.paletteNames.length&&(e=0),e},t.prototype.next=function(){this.isAnimating||this.setActivePalette(this.paletteNames[this.getNext()],"right")},t.prototype.setActivePalette=function(e,t){var n=this,r=this.paletteNames.indexOf(e);i._.radioCssClass(this.cardItems[r],"ag-selected");var o=this.miniCharts[this.paletteNames.indexOf(this.activePalette)],a=o.getGui(),s=this.miniCharts[r],l=s.getGui();o.refreshSelected(),s.refreshSelected();var c="left"===t?-1:1,u=l.style.left=i._.getAbsoluteWidth(this.getGui())*c+"px";i._.removeCssClass(l,"ag-hidden"),i._.addCssClass(a,"ag-animating"),i._.addCssClass(l,"ag-animating"),this.activePalette=e,this.chartController.setChartPaletteName(this.activePalette),this.isAnimating=!0,window.setTimeout(function(){a.style.left=-1*parseFloat(u)+"px",l.style.left="0px"},50),window.setTimeout(function(){n.isAnimating=!1,i._.removeCssClass(a,"ag-animating"),i._.removeCssClass(l,"ag-animating"),i._.addCssClass(a,"ag-hidden")},500)},t.prototype.destroyMiniCharts=function(){i._.clearElement(this.eMiniChartsContainer),this.miniCharts&&this.miniCharts.forEach(function(e){return e.destroy()}),this.miniCharts=[]},t.prototype.destroy=function(){this.destroyMiniCharts(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
',rc([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),rc([i.RefSelector("eMiniChartsContainer")],t.prototype,"eMiniChartsContainer",void 0),rc([i.RefSelector("eNavBar")],t.prototype,"eNavBar",void 0),rc([i.RefSelector("eCardSelector")],t.prototype,"eCardSelector",void 0),rc([i.RefSelector("ePrevBtn")],t.prototype,"ePrevBtn",void 0),rc([i.RefSelector("eNextBtn")],t.prototype,"eNextBtn",void 0),rc([i.PostConstruct],t.prototype,"postConstruct",null),rc([i.PreDestroy],t.prototype,"destroy",null),t}(i.Component),ic=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ac=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sc=function(e){function t(t){var n=e.call(this)||this;n.tabs=[],n.chartIcons={};var r=t.controller,o=t.type,i=t.panels;return n.chartController=r,n.currentChartType=o,n.panels=i,n}return ic(t,e),t.prototype.init=function(){var e=this;this.panels.forEach(function(t){var n=t.replace("chart","").toLowerCase(),r=e.createTab(t,n,e.getPanelClass(n)),o=r.comp,i=r.tab;e.tabs.push(i),e.addDestroyFunc(function(){return o.destroy()})}),this.tabbedLayout=new i.TabbedLayout({items:this.tabs,cssClass:"ag-chart-tabbed-menu"})},t.prototype.createTab=function(e,t,n){var r=document.createElement("div");i._.addCssClass(r,"ag-chart-"+t);var o=new n(this.chartController);this.getContext().wireBean(o),r.appendChild(o.getGui());var a=document.createElement("div");return a.innerText=this.chartTranslator.translate(t),{comp:o,tab:{title:a,bodyPromise:i.Promise.resolve(r),name:e}}},t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.updateCurrentChartType=function(e){i._.removeCssClass(this.chartIcons[this.currentChartType],"ag-selected"),this.currentChartType=e,i._.addCssClass(this.chartIcons[e],"ag-selected")},t.prototype.showTab=function(e){var t=this.tabs[e];this.tabbedLayout.showItem(t)},t.prototype.getGui=function(){return this.tabbedLayout&&this.tabbedLayout.getGui()},t.prototype.destroy=function(){this.parentComponent&&this.parentComponent.isAlive()&&this.parentComponent.destroy(),e.prototype.destroy.call(this)},t.prototype.getPanelClass=function(e){switch(e){case t.TAB_DATA:return Er;case t.TAB_FORMAT:return ml;default:return oc}},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_MAIN="settings",t.TAB_DATA="data",t.TAB_FORMAT="format",ac([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),ac([i.PostConstruct],t.prototype,"init",null),t}(i.Component),lc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uc=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.buttons={chartSettings:["menu",function(){return r.showMenu("chartSettings")}],chartData:["menu",function(){return r.showMenu("chartData")}],chartFormat:["menu",function(){return r.showMenu("chartFormat")}],chartUnlink:["linked",function(e){return r.toggleDetached(e)}],chartDownload:["save",function(){return r.saveChart()}]},r.tabs=[],r.chartController=n,r}return lc(t,e),t.prototype.postConstruct=function(){this.createButtons()},t.prototype.getToolbarOptions=function(){var e=this,t=["chartSettings","chartData","chartFormat","chartUnlink","chartDownload"],n=this.gridOptionsWrapper.getChartToolbarItemsFunc();n&&(t=n({api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),defaultItems:t}).filter(function(t){return!!e.buttons[t]||(console.warn("ag-Grid: '"+t+" is not a valid Chart Toolbar Option"),!1)}));this.chartController.isPivotChart()&&(t=t.filter(function(e){return"chartData"!==e}));var r=["chartUnlink","chartDownload"];return this.tabs=t.filter(function(e){return-1===r.indexOf(e)}),t.filter(function(t){return-1!==r.indexOf(t)||e.tabs.length&&t===e.tabs[0]})},t.prototype.toggleDetached=function(e){var t=e.target,n=i._.containsClass(t,"ag-icon-linked");i._.addOrRemoveCssClass(t,"ag-icon-linked",!n),i._.addOrRemoveCssClass(t,"ag-icon-unlinked",n),this.chartController.detachChartRange()},t.prototype.createButtons=function(){var e=this;this.getToolbarOptions().forEach(function(t){var n=e.buttons[t],r=n[0],o=n[1],a=i._.createIconNoSpan(r,e.gridOptionsWrapper,void 0,!0);e.addDestroyableEventListener(a,"click",o),e.getGui().appendChild(a)})},t.prototype.saveChart=function(){var e={type:t.EVENT_DOWNLOAD_CHART};this.dispatchEvent(e)},t.prototype.createMenu=function(e){var t=this,n=this.getParentComponent(),r=n.getDockedContainer(),o=this.getContext(),a=this.menuPanel=new i.AgPanel({minWidth:this.gridOptionsWrapper.chartMenuPanelWidth(),width:this.gridOptionsWrapper.chartMenuPanelWidth(),height:"100%",closable:!0,hideTitleBar:!0});return o.wireBean(this.menuPanel),a.setParentComponent(this),r.appendChild(a.getGui()),this.tabbedMenu=new sc({controller:this.chartController,type:n.getCurrentChartType(),panels:this.tabs}),o.wireBean(this.tabbedMenu),this.addDestroyableEventListener(this.menuPanel,i.Component.EVENT_DESTROYED,function(){return t.tabbedMenu.destroy()}),new i.Promise(function(r){window.setTimeout(function(){a.setBodyComponent(t.tabbedMenu),t.tabbedMenu.showTab(e),t.addDestroyableEventListener(n.getChartComponentsWrapper(),"click",function(){i._.containsClass(n.getGui(),"ag-has-menu")&&t.hideMenu()}),r(a)},100)})},t.prototype.slideDockedContainer=function(){var e=this;this.getParentComponent().slideDockedOut(this.menuPanel.getWidth()),window.setTimeout(function(){i._.addCssClass(e.getParentComponent().getGui(),"ag-has-menu")},500)},t.prototype.showMenu=function(e){var t=this,n=this.tabs.indexOf(e);this.menuPanel?this.slideDockedContainer():this.createMenu(n).then(function(){t.slideDockedContainer()})},t.prototype.hideMenu=function(){this.getParentComponent().slideDockedIn(),i._.removeCssClass(this.getParentComponent().getGui(),"ag-has-menu")},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.menuPanel&&this.menuPanel.isAlive()&&this.menuPanel.destroy()},t.EVENT_DOWNLOAD_CHART="downloadChart",t.TEMPLATE='
',cc([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cc([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),dc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hc=function(){return(hc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kc=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.getChartPaletteName=function(){return r.chartController.getPaletteName()},r.getChartComponentsWrapper=function(){return r.eChartComponentsWrapper},r.getDockedContainer=function(){return r.eDockedContainer},r.getCurrentChartType=function(){return r.chartType},r.params=n,r}return Ac(t,e),t.prototype.init=function(){var e={pivotChart:this.params.pivotChart,chartType:this.params.chartType,aggFunc:this.params.aggFunc,cellRange:this.params.cellRange,suppressChartRanges:this.params.suppressChartRanges};this.model=this.wireBean(new pr(e)),this.chartController=this.wireBean(new xr(this.model,this.params.chartPaletteName)),this.createChart(),this.params.insideDialog&&this.addDialog(),this.addResizeListener(),this.addMenu(),this.addDestroyableEventListener(this.getGui(),"focusin",this.setActiveChartCellRange.bind(this)),this.addDestroyableEventListener(this.chartController,xr.EVENT_CHART_UPDATED,this.refresh.bind(this)),this.addDestroyableEventListener(this.chartMenu,uc.EVENT_DOWNLOAD_CHART,this.downloadChart.bind(this)),this.refresh()},t.prototype.createChart=function(){var e,t;if(this.chartProxy){var n=this.chartProxy.getChart();n&&(e=n.width,t=n.height),this.chartProxy.destroy()}var r=this.params.processChartOptions?this.params.processChartOptions:this.gridOptionsWrapper.getProcessChartOptionsFunc(),o=this.model.getSelectedDimension().colId!==pr.DEFAULT_CATEGORY,i=this.model.getChartType(),a=this.model.isGrouping(),s={chartType:i,processChartOptions:r,getChartPaletteName:this.getChartPaletteName.bind(this),allowPaletteOverride:!this.params.chartPaletteName,isDarkTheme:this.environment.isThemeDark.bind(this.environment),parentElement:this.eChart,width:e,height:t,eventService:this.eventService,categorySelected:o,grouping:a,document:this.gridOptionsWrapper.getDocument()};this.chartType=i,this.chartGroupingActive=a,this.chartProxy=this.createChartProxy(s),this.chartController.setChartProxy(this.chartProxy)},t.prototype.createChartProxy=function(e){switch(e.chartType){case i.ChartType.GroupedColumn:case i.ChartType.StackedColumn:case i.ChartType.NormalizedColumn:case i.ChartType.GroupedBar:case i.ChartType.StackedBar:case i.ChartType.NormalizedBar:return new pc(e);case i.ChartType.Pie:return new Sc(e);case i.ChartType.Doughnut:return new Oc(e);case i.ChartType.Area:case i.ChartType.StackedArea:case i.ChartType.NormalizedArea:return new mc(e);case i.ChartType.Line:return new bc(e);case i.ChartType.Scatter:case i.ChartType.Bubble:return new js(e)}},t.prototype.addDialog=function(){var e=this,t=this.chartTranslator.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle");this.chartDialog=new i.AgDialog({resizable:!0,movable:!0,maximizable:!0,title:t,component:this,centered:!0,closable:!0}),this.getContext().wireBean(this.chartDialog),this.chartDialog.addEventListener(i.AgDialog.EVENT_DESTROYED,function(){return e.destroy()})},t.prototype.addMenu=function(){this.chartMenu=new uc(this.chartController),this.chartMenu.setParentComponent(this),this.getContext().wireBean(this.chartMenu),this.eChartComponentsWrapper.appendChild(this.chartMenu.getGui())},t.prototype.refresh=function(){this.shouldRecreateChart()&&this.createChart(),this.updateChart()},t.prototype.shouldRecreateChart=function(){var e=this.chartType!==this.model.getChartType(),t=this.chartGroupingActive!==this.model.isGrouping();return e||t},t.prototype.slideDockedOut=function(e){this.eDockedContainer.style.minWidth=e+"px"},t.prototype.slideDockedIn=function(){this.eDockedContainer.style.minWidth="0"},t.prototype.getChartModel=function(){return this.chartController.getChartModel()},t.prototype.updateChart=function(){var e=this.model,t=this.chartProxy,n=e.getSelectedValueColState().map(function(e){return{colId:e.colId,displayName:e.displayName}}),r=e.getData();if(!this.handleEmptyChart(r,n)){var o=e.getSelectedDimension(),i={data:r,category:{id:o.colId,name:o.displayName},fields:n};t.update(i)}},t.prototype.handleEmptyChart=function(e,t){var n=this.chartProxy.getChart().parent,r=this.model.isPivotChart()&&!this.model.isPivotMode(),o=1;this.chartController.isActiveXYChart()&&(o=this.model.getChartType()===i.ChartType.Bubble?3:2);var a=t.length\n
\n
\n
\n
\n
\n
\n
',Tc([i.RefSelector("eChart")],t.prototype,"eChart",void 0),Tc([i.RefSelector("eChartComponentsWrapper")],t.prototype,"eChartComponentsWrapper",void 0),Tc([i.RefSelector("eDockedContainer")],t.prototype,"eDockedContainer",void 0),Tc([i.RefSelector("eEmpty")],t.prototype,"eEmpty",void 0),Tc([i.Autowired("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Tc([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Tc([i.Autowired("environment")],t.prototype,"environment",void 0),Tc([i.Autowired("chartTranslator")],t.prototype,"chartTranslator",void 0),Tc([i.Autowired("eventService")],t.prototype,"eventService",void 0),Tc([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Dc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pc=function(){function e(){this.activeCharts=new Set,this.activeChartComps=new Set}return e.prototype.getChartModels=function(){var e=[];return this.activeChartComps.forEach(function(t){return e.push(t.getChartModel())}),e},e.prototype.createChartFromCurrentRange=function(e){void 0===e&&(e=i.ChartType.GroupedColumn);var t=this.getSelectedRange();return this.createChart(t,e)},e.prototype.createRangeChart=function(e){var t=this.rangeController?this.rangeController.createCellRangeFromCellRangeParams(e.cellRange):void 0;if(t)return this.createChart(t,e.chartType,e.chartPalette,!1,e.suppressChartRanges,e.chartContainer,e.aggFunc,e.processChartOptions);console.warn("ag-Grid - unable to create chart as no range is selected")},e.prototype.createPivotChart=function(e){this.columnController.isPivotMode()||this.columnController.setPivotMode(!0,"pivotChart");var t={columns:this.columnController.getAllDisplayedColumns().map(function(e){return e.getColId()})},n=this.rangeController?this.rangeController.createCellRangeFromCellRangeParams(t):void 0;if(n)return this.createChart(n,e.chartType,e.chartPalette,!0,!0,e.chartContainer,void 0,e.processChartOptions);console.warn("ag-Grid - unable to create chart as there are no columns in the grid.")},e.prototype.createChart=function(e,t,n,r,o,a,s,l){var c=this;void 0===r&&(r=!1),void 0===o&&(o=!1);var u=this.gridOptionsWrapper.getCreateChartContainerFunc(),d=new kc({pivotChart:r,cellRange:e,chartType:t,chartPaletteName:n,insideDialog:!(a||u),suppressChartRanges:o,aggFunc:s,processChartOptions:l});this.context.wireBean(d);var h=this.createChartRef(d);if(a){a.appendChild(d.getGui());var p=this.environment.getTheme();p.el&&!p.el.contains(a)&&i._.addCssClass(a,p.theme)}else u?u(h):d.addEventListener(kc.EVENT_DESTROYED,function(){c.activeChartComps.delete(d),c.activeCharts.delete(h)});return h},e.prototype.createChartRef=function(e){var t=this,n={destroyChart:function(){t.activeCharts.has(n)&&(e.destroy(),t.activeChartComps.delete(e),t.activeCharts.delete(n))},chartElement:e.getGui()};return this.activeCharts.add(n),this.activeChartComps.add(e),n},e.prototype.getSelectedRange=function(){var e=this.rangeController.getCellRanges();return e.length>0?e[0]:{}},e.prototype.destroyAllActiveCharts=function(){this.activeCharts.forEach(function(e){return e.destroyChart()})},Dc([i.Optional("rangeController")],e.prototype,"rangeController",void 0),Dc([i.Autowired("columnController")],e.prototype,"columnController",void 0),Dc([i.Autowired("environment")],e.prototype,"environment",void 0),Dc([i.Autowired("context")],e.prototype,"context",void 0),Dc([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Dc([i.PreDestroy],e.prototype,"destroyAllActiveCharts",null),e=Dc([i.Bean("chartService")],e)}(),Nc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Lc=function(){function e(){}var t;return t=e,e.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,t.DEFAULT_TRANSLATIONS[e])},e.DEFAULT_TRANSLATIONS={pivotChartTitle:"Pivot Chart",rangeChartTitle:"Range Chart",settings:"Settings",data:"Data",format:"Format",categories:"Categories",series:"Series",xyValues:"X Y Values",paired:"Paired Mode",axis:"Axis",color:"Color",thickness:"Thickness",xRotation:"X Rotation",yRotation:"Y Rotation",ticks:"Ticks",width:"Width",length:"Length",padding:"Padding",chart:"Chart",title:"Title",background:"Background",font:"Font",top:"Top",right:"Right",bottom:"Bottom",left:"Left",labels:"Labels",size:"Size",minSize:"Minimum Size",maxSize:"Maximum Size",legend:"Legend",position:"Position",markerSize:"Marker Size",markerStroke:"Marker Stroke",markerPadding:"Marker Padding",itemPaddingX:"Item Padding X",itemPaddingY:"Item Padding Y",strokeWidth:"Stroke Width",offset:"Offset",offsets:"Offsets",tooltips:"Tooltips",callout:"Callout",markers:"Markers",shadow:"Shadow",blur:"Blur",xOffset:"X Offset",yOffset:"Y Offset",lineWidth:"Line Width",normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic",predefined:"Predefined",fillOpacity:"Fill Opacity",strokeOpacity:"Line Opacity",columnGroup:"Column",barGroup:"Bar",pieGroup:"Pie",lineGroup:"Line",scatterGroup:"X Y (Scatter)",areaGroup:"Area",groupedColumnTooltip:"Grouped",stackedColumnTooltip:"Stacked",normalizedColumnTooltip:"100% Stacked",groupedBarTooltip:"Grouped",stackedBarTooltip:"Stacked",normalizedBarTooltip:"100% Stacked",pieTooltip:"Pie",doughnutTooltip:"Doughnut",lineTooltip:"Line",groupedAreaTooltip:"Area",stackedAreaTooltip:"Stacked",normalizedAreaTooltip:"100% Stacked",scatterTooltip:"Scatter",bubbleTooltip:"Bubble",noDataToChart:"No data available to be charted.",pivotChartRequiresPivotMode:"Pivot Chart requires Pivot Mode enabled."},Nc([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=t=Nc([i.Bean("chartTranslator")],e)}(),Rc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fc=function(){for(var e=0,t=0,n=arguments.length;t0?i.Constants.PINNED_TOP:void 0}},e.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:i.Constants.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:void 0}},e.prototype.setRangeToCell=function(e,t){if(void 0===t&&(t=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var n=this.calculateColumnsBetween(e.column,e.column);if(n){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!t||i._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);for(var r,o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},a=0;a-1}).sort(function(e,t){return e-t});return{left:t[n[0]],right:t[i._.last(n)]}},e.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=i._.last(this.cellRanges),n=this.newestRangeStartCell,r=t.columns[0],o=i._.last(t.columns),a=t.endRow.rowIndex,s=t.endRow.rowPinned,l={column:n.column===r?o:r,rowIndex:a,rowPinned:s},c=this.cellNavigationService.getNextCellToFocus(e,l);if(c)return this.setCellRange({rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:c.rowIndex,rowEndPinned:c.rowPinned,columnStart:n.column,columnEnd:c.column}),c}},e.prototype.setCellRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},e.prototype.setCellRanges=function(e){var t=this;this.removeAllCellRanges(!0),e.forEach(function(e){e.columns&&e.startRow&&(t.newestRangeStartCell={rowIndex:e.startRow.rowIndex,rowPinned:e.startRow.rowPinned,column:e.columns[0]}),t.cellRanges.push(e)}),this.dispatchChangedEvent(!1,!0)},e.prototype.createCellRangeFromCellRangeParams=function(e){var t,n=this;if(e.columns)t=e.columns.map(function(e){return n.columnController.getColumnWithValidation(e)}).filter(function(e){return e});else{var r=this.columnController.getColumnWithValidation(e.columnStart),o=this.columnController.getColumnWithValidation(e.columnEnd);if(!r||!o)return;t=this.calculateColumnsBetween(r,o)}if(t)return{startRow:null!=e.rowStartIndex?{rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned}:void 0,endRow:null!=e.rowEndIndex?{rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned}:void 0,columns:t,startColumn:t[0]}},e.prototype.addCellRange=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=this.createCellRangeFromCellRangeParams(e);t&&(this.cellRanges.push(t),this.dispatchChangedEvent(!1,!0,t.id))}},e.prototype.getCellRanges=function(){return this.cellRanges},e.prototype.isEmpty=function(){return 0===this.cellRanges.length},e.prototype.isMoreThanOneCell=function(){if(0===this.cellRanges.length)return!1;if(this.cellRanges.length>1)return!0;var e=this.cellRanges[0],t=this.getRangeStartRow(e),n=this.getRangeEndRow(e);return t.rowPinned!==n.rowPinned||t.rowIndex!==n.rowIndex||1!==e.columns.length},e.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))},e.prototype.onBodyScroll=function(){this.onDragging(this.lastMouseEvent)},e.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},e.prototype.isCellInSpecificRange=function(e,t){var n=null!==t.columns&&i._.includes(t.columns,e.column),r=this.isRowInRange(e.rowIndex,e.rowPinned,t);return n&&r},e.prototype.isLastCellOfRange=function(e,t){var n=this.columnController.getAllDisplayedColumns(),r=e.columns.map(function(e){return n.indexOf(e)}).sort(function(e,t){return e-t}),o=e.startRow,a=e.endRow,s=this.rowPositionUtils.before(o,a)?a:o,l=n.indexOf(t.column)===i._.last(r),c=t.rowIndex===s.rowIndex&&t.rowPinned===s.rowPinned;return l&&c},e.prototype.getCellRangeCount=function(e){var t=this;return this.isEmpty()?0:this.cellRanges.filter(function(n){return t.isCellInSpecificRange(e,n)}).length},e.prototype.isRowInRange=function(e,t,n){var r=this.getRangeStartRow(n),o=this.getRangeEndRow(n),i={rowIndex:e,rowPinned:t},a=i.rowIndex===r.rowIndex&&i.rowPinned==r.rowPinned,s=i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned;if(a||s)return!0;var l=!this.rowPositionUtils.before(i,r),c=this.rowPositionUtils.before(i,o);return l&&c},e.prototype.getDraggingRange=function(){return this.draggingRange},e.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=t||n,a=!!!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&o,s=this.mouseEventService.getCellPositionForEvent(e);if(!i._.missing(s)){if(a||r&&!i._.exists(i._.last(this.cellRanges).type)||this.removeAllCellRanges(!0),this.dragging=!0,this.draggingCell=s,this.lastMouseEvent=e,r||(this.newestRangeStartCell=s),this.cellRanges.length>0)this.draggingRange=i._.last(this.cellRanges);else{var l={rowIndex:s.rowIndex,rowPinned:s.rowPinned};this.draggingRange={startRow:l,endRow:l,columns:[s.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.gridPanel.addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}},e.prototype.onDragging=function(e){var t=this;if(this.dragging&&e){this.lastMouseEvent=e;var n=this.mouseEventService.getCellPositionForEvent(e),r=function(e){return n&&n.rowPinned===e&&t.newestRangeStartCell.rowPinned===e},o=r("top")||r("bottom");if(this.autoScrollService.check(e,o),n&&this.draggingCell&&!this.cellPositionUtils.equals(this.draggingCell,n)){var i=this.calculateColumnsBetween(this.newestRangeStartCell.column,n.column);i&&(this.draggingCell=n,this.draggingRange.endRow={rowIndex:n.rowIndex,rowPinned:n.rowPinned},this.draggingRange.columns=i,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}}},e.prototype.onDragStop=function(){if(this.dragging){var e=this.draggingRange.id;this.autoScrollService.ensureCleared(),this.gridPanel.removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.draggingCell=void 0,this.dispatchChangedEvent(!1,!0,e)}},e.prototype.dispatchChangedEvent=function(e,t,n){var r=Object.freeze({type:i.Events.EVENT_RANGE_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi,started:e,finished:t,id:n});this.eventService.dispatchEvent(r)},e.prototype.calculateColumnsBetween=function(e,t){var n=this.columnController.getAllDisplayedColumns(),r=e===t,o=n.indexOf(e);if(o<0)console.warn("ag-Grid: column "+e.getId()+" is not visible");else{var i=r?o:n.indexOf(t);if(!(i<0)){if(r)return[e];for(var a=Math.min(o,i),s=a===o?i:o,l=[],c=a;c<=s;c++)l.push(n[c]);return l}console.warn("ag-Grid: column "+t.getId()+" is not visible")}},Rc([i.Autowired("loggerFactory")],e.prototype,"loggerFactory",void 0),Rc([i.Autowired("rowModel")],e.prototype,"rowModel",void 0),Rc([i.Autowired("eventService")],e.prototype,"eventService",void 0),Rc([i.Autowired("columnController")],e.prototype,"columnController",void 0),Rc([i.Autowired("mouseEventService")],e.prototype,"mouseEventService",void 0),Rc([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Rc([i.Autowired("columnApi")],e.prototype,"columnApi",void 0),Rc([i.Autowired("gridApi")],e.prototype,"gridApi",void 0),Rc([i.Autowired("cellNavigationService")],e.prototype,"cellNavigationService",void 0),Rc([i.Autowired("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Rc([i.Autowired("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Rc([i.Autowired("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Rc([i.PostConstruct],e.prototype,"init",null),e=Rc([i.Bean("rangeController")],e)}(),zc=function(){function e(e,t){this.tickingInterval=null,this.gridPanel=e,this.gridOptionsWrapper=t}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=this.gridPanel.getBodyClientRect();(t=t||this.gridOptionsWrapper.getDomLayout()!==i.Constants.DOM_LAYOUT_NORMAL)&&!this.gridPanel.isHorizontalScrollShowing()||(this.tickLeft=e.clientXn.right-20,this.tickUp=e.clientYn.bottom-20&&!t,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared())},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){this.tickCount++;var e,t=this.gridPanel.getVScrollPosition(),n=this.gridPanel.getHScrollPosition();e=this.tickCount>20?200:this.tickCount>10?80:40,this.tickUp&&this.gridPanel.setVerticalScrollPosition(t.top-e),this.tickDown&&this.gridPanel.setVerticalScrollPosition(t.top+e),this.tickLeft&&this.gridPanel.setHorizontalScrollPosition(n.left-e),this.tickRight&&this.gridPanel.setHorizontalScrollPosition(n.left+e)},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Bc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changedCell=!1,t.dragging=!1,t.shouldDestroyOnEndDragging=!1,t}return Bc(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(t){e.dragging=!0,e.rangeController.autoScrollService.check(t),e.changedCell&&e.onDrag(t)},onDragStop:function(t){e.dragging=!1,e.onDragEnd(t),e.clearValues(),e.rangeController.autoScrollService.ensureCleared(),i._.removeCssClass(document.body,"ag-dragging-"+e.type+"-handle"),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addDestroyableEventListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},t.prototype.isDragging=function(){return this.dragging},t.prototype.getCellComp=function(){return this.cellComp},t.prototype.setCellComp=function(e){this.cellComp=e},t.prototype.getCellRange=function(){return this.cellRange},t.prototype.setCellRange=function(e){this.cellRange=e},t.prototype.getRangeStartRow=function(){return this.rangeStartRow},t.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},t.prototype.getRangeEndRow=function(){return this.rangeEndRow},t.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},t.prototype.getLastCellHovered=function(){return this.lastCellHovered},t.prototype.preventRangeExtension=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onDragStart=function(e){this.cellHoverListener=this.addDestroyableEventListener(this.rowRenderer.getGridCore().getRootGui(),"mousemove",this.updateLastCellPositionHovered.bind(this)),i._.addCssClass(document.body,"ag-dragging-"+this.type+"-handle")},t.prototype.updateLastCellPositionHovered=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);t!==this.lastCellHovered?(this.lastCellHovered=t,this.changedCell=!0):this.changedCell=!1},t.prototype.getType=function(){return this.type},t.prototype.refresh=function(e){var t=this,n=this.getCellComp(),r=this.getGui(),o=i._.last(this.rangeController.getCellRanges()),a=o.startRow,s=o.endRow;a&&s&&(this.rowPositionUtils.before(s,a)?(this.setRangeStartRow(s),this.setRangeEndRow(a)):(this.setRangeStartRow(a),this.setRangeEndRow(s)));n===e&&i._.isVisible(r)||(this.setCellComp(e),window.setTimeout(function(){t.isAlive()&&e.appendChild(r)},1)),this.setCellRange(o)},t.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},t.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},t.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return i._.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,e.prototype.destroy.call(this),this.removeListeners();var t=this.getGui();t.parentElement&&t.parentElement.removeChild(t)},jc([i.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),jc([i.Autowired("dragService")],t.prototype,"dragService",void 0),jc([i.Autowired("rangeController")],t.prototype,"rangeController",void 0),jc([i.Autowired("mouseEventService")],t.prototype,"mouseEventService",void 0),jc([i.Autowired("columnController")],t.prototype,"columnController",void 0),jc([i.Autowired("cellNavigationService")],t.prototype,"cellNavigationService",void 0),jc([i.Autowired("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),jc([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Wc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hc=function(){return(Hc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Uc=function(){for(var e=0,t=0,n=arguments.length;tMath.abs(a-e.clientY)?"x":"y";if(s!==this.dragAxis&&(this.dragAxis=s),!this.initialPosition){var l=this.getCellComp();if(!l)return;this.initialPosition=l.getCellPosition()}var c=this.getLastCellHovered();c&&c!==this.lastCellMarked&&(this.lastCellMarked=c,this.markPathFrom(this.initialPosition,c))},t.prototype.onDragEnd=function(e){if(this.markedCellComps.length){var t,n="x"===this.dragAxis,r=this.getCellRange(),o=r.columns.length,i=this.getRangeStartRow(),a=this.getRangeEndRow();if(this.isUp||this.isLeft){var s=n?i:this.lastCellMarked;t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,columnStart:n?this.lastCellMarked.column:r.columns[0],rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnEnd:r.columns[o-1]})}else t=this.rangeController.createCellRangeFromCellRangeParams({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,columnStart:r.columns[0],rowEndIndex:n?a.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:n?a.rowPinned:this.lastCellMarked.rowPinned,columnEnd:n?this.lastCellMarked.column:r.columns[o-1]});t&&(this.raiseFillStartEvent(),this.handleValueChanged(r,t,e),this.rangeController.setCellRanges([t]),this.raiseFillEndEvent(r,t))}},t.prototype.raiseFillStartEvent=function(){var e={type:i.Events.EVENT_FILL_START,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},t.prototype.raiseFillEndEvent=function(e,t){var n={type:i.Events.EVENT_FILL_END,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi(),initialRange:e,finalRange:t};this.eventService.dispatchEvent(n)},t.prototype.handleValueChanged=function(e,t,n){var r=this,o=this.rangeController.getRangeEndRow(e),a=this.rangeController.getRangeStartRow(e),s=this.rangeController.getRangeEndRow(t),l=this.rangeController.getRangeStartRow(t),c="y"===this.dragAxis;if(!this.isReduce||this.gridOptionsWrapper.isSuppressClearOnFillReduction()){var u=!0,d=[],h=[],p=0,f=function(){d.length=0,h.length=0,p=0},g=function(t,n){var h=r.isUp?o:a,p=!1;c&&(u=!0,f());for(var g=function(){var g=r.rowPositionUtils.getRowNode(h);if(!g)return"break";c&&t?m(d,t,g,function(){return!r.rowPositionUtils.sameRow(h,r.isUp?a:o)}):n&&(u=!0,f(),n.forEach(function(t){return m(d,t,g,function(){return t!==(r.isLeft?e.columns[0]:i._.last(e.columns))})})),p=r.rowPositionUtils.sameRow(h,r.isUp?l:s),h=r.isUp?r.cellNavigationService.getRowAbove(h):r.cellNavigationService.getRowBelow(h)};!p&&h;){if("break"===g())break}},m=function(e,t,o,i){var a;u?(a=r.valueService.getValue(t,o),h.push(a),u=i()):(a=r.processValues(n,e,h,t,o,p++),t.isCellEditable(o)&&r.valueService.setValue(o,t,a)),e.push(a)};if(c)e.columns.forEach(function(e){g(e)});else{v=this.isLeft?Uc(t.columns).reverse():t.columns;g(void 0,v)}}else{var v=c?e.columns:e.columns.filter(function(e){return t.columns.indexOf(e)<0}),y=c?this.cellNavigationService.getRowBelow(s):l;y&&this.clearCellsInRange(y,o,v)}},t.prototype.clearCellsInRange=function(e,t,n){for(var r=this,o=e,i=!1,a=function(){var e=s.rowPositionUtils.getRowNode(o);if(!e)return"break";n.forEach(function(t){t.isCellEditable(e)&&r.valueService.setValue(e,t,null)}),i=s.rowPositionUtils.sameRow(o,t),o=s.cellNavigationService.getRowBelow(o)},s=this;!i&&o;){if("break"===a())break}},t.prototype.processValues=function(e,t,n,r,o,a){var s,l=this.gridOptionsWrapper.getFillOperation(),c="y"===this.dragAxis;if(s=c?this.isUp?"up":"down":this.isLeft?"left":"right",l){var u=l({event:e,values:t,initialValues:n,currentIndex:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),direction:s,column:c?r:void 0,rowNode:c?void 0:o});if(!1!==u)return u}var d=!t.some(function(e){return isNaN(parseFloat(e))});if(e.altKey||!d){if(d&&1===n.length){var h=this.isUp||this.isLeft?-1:1;return i._.last(t)+1*h}return t[a%t.length]}return i._.last(i._.findLineByLeastSquares(t.map(Number)))},t.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,e.prototype.clearValues.call(this)},t.prototype.clearMarkedPath=function(){this.markedCellComps.forEach(function(e){var t=e.getGui();i._.removeCssClass(t,"ag-selection-fill-top"),i._.removeCssClass(t,"ag-selection-fill-right"),i._.removeCssClass(t,"ag-selection-fill-bottom"),i._.removeCssClass(t,"ag-selection-fill-left")}),this.markedCellComps.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},t.prototype.clearCellValues=function(){this.cellValues.length=0},t.prototype.markPathFrom=function(e,t){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(t,e))return;var n=this.rowPositionUtils.before(t,e),r=this.getRangeStartRow(),o=this.getRangeEndRow();n&&(t.rowPinned==r.rowPinned&&t.rowIndex>=r.rowIndex||r.rowPinned!=o.rowPinned&&t.rowPinned==o.rowPinned&&t.rowIndex<=o.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,n),this.isReduce=!1)}else{var i=e.column,a=t.column;if(i===a)return;var s=this.columnController.getAllDisplayedColumns(),l=s.indexOf(i),c=s.indexOf(a);c<=l&&c>=s.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,c
',Gc([i.Autowired("valueService")],t.prototype,"valueService",void 0),Gc([i.Autowired("eventService")],t.prototype,"eventService",void 0),Gc([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Vc),Yc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xc=function(){return(Xc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n
',t}(Vc),$c={moduleName:i.ModuleNames.RangeSelectionModule,beans:[Ic],agStackComponents:[{componentName:"AgFillHandle",componentClass:qc},{componentName:"AgRangeHandle",componentClass:Kc}],dependantModules:[p]},Zc={moduleName:i.ModuleNames.GridChartsModule,beans:[Pc,Lc],dependantModules:[$c,p]},Jc=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.needRefresh=!1,t}return Jc(t,e),t.prototype.refresh=function(){if(this.suppressRefresh)return!0;var e=!this.needRefresh;return this.needRefresh=!1,e},t.prototype.init=function(e){var t=this;this.rowId=e.node.id,this.masterGridApi=e.api,this.suppressRefresh=e.suppressRefresh,this.selectAndSetTemplate(e),i._.exists(this.eDetailGrid)?(this.addThemeToDetailGrid(),this.createDetailsGrid(e),this.registerDetailWithMaster(e.node),this.loadRowData(e),window.setTimeout(function(){t.detailGridOptions.api&&t.detailGridOptions.api.doLayout()},0)):console.warn('ag-Grid: reference to eDetailGrid was missing from the details template. Please add ref="eDetailGrid" to the template.'),this.addDestroyableEventListener(e.node.parent,i.RowNode.EVENT_DATA_CHANGED,function(){t.needRefresh=!0})},t.prototype.addThemeToDetailGrid=function(){var e=this.environment.getTheme().theme;e&&i._.addCssClass(this.eDetailGrid,e)},t.prototype.registerDetailWithMaster=function(e){var t=this,n={id:this.rowId,api:this.detailGridOptions.api,columnApi:this.detailGridOptions.columnApi};this.masterGridApi.addDetailGridInfo(this.rowId,n),e.detailGridInfo=n,this.addDestroyFunc(function(){t.masterGridApi.removeDetailGridInfo(t.rowId),e.detailGridInfo=null})},t.prototype.selectAndSetTemplate=function(e){var n=e;if(i._.missing(n.template))this.setTemplate(t.TEMPLATE);else if("string"===typeof n.template)this.setTemplate(n.template);else if("function"===typeof n.template){var r=(0,n.template)(e);this.setTemplate(r)}else console.warn("ag-Grid: detailCellRendererParams.template should be function or string"),this.setTemplate(t.TEMPLATE)},t.prototype.createDetailsGrid=function(e){var t=this,n=e.detailGridOptions;i._.missing(n)&&console.warn("ag-Grid: could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions"),this.detailGridOptions=i._.cloneObject(n),new i.Grid(this.eDetailGrid,this.detailGridOptions,{$scope:e.$scope,$compile:e.$compile,providedBeanInstances:{agGridReact:e.agGridReact,frameworkComponentWrapper:e.frameworkComponentWrapper}}),this.addDestroyFunc(function(){t.detailGridOptions.api&&t.detailGridOptions.api.destroy()})},t.prototype.loadRowData=function(e){var t=e.getDetailRowData;t?t({node:e.node,data:e.data,successCallback:this.setRowData.bind(this)}):console.warn("ag-Grid: could not find getDetailRowData for master / detail, please set gridOptions.detailCellRendererParams.getDetailRowData")},t.prototype.setRowData=function(e){this.detailGridOptions.api&&this.detailGridOptions.api.setRowData(e)},t.TEMPLATE='
\n
\n
',Qc([i.RefSelector("eDetailGrid")],t.prototype,"eDetailGrid",void 0),Qc([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Qc([i.Autowired("environment")],t.prototype,"environment",void 0),t}(i.Component),tu={moduleName:i.ModuleNames.MasterDetailModule,beans:[],userComponents:[{componentName:"agDetailCellRenderer",componentClass:eu}],dependantModules:[p]},nu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ru=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ou=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.params=n,r}return nu(t,e),t.prototype.init=function(){var e=this;this.params.checked?this.eIcon.appendChild(i._.createIconNoSpan("check",this.gridOptionsWrapper)):this.params.icon?i._.isNodeOrElement(this.params.icon)?this.eIcon.appendChild(this.params.icon):"string"===typeof this.params.icon?this.eIcon.innerHTML=this.params.icon:console.warn("ag-Grid: menu item icon must be DOM node or string"):this.eIcon.innerHTML=" ",this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.tooltipManager.registerTooltip(this)),this.params.shortcut&&(this.eShortcut.innerHTML=this.params.shortcut),this.params.subMenu?this.gridOptionsWrapper.isEnableRtl()?this.ePopupPointer.appendChild(i._.createIconNoSpan("smallLeft",this.gridOptionsWrapper)):this.ePopupPointer.appendChild(i._.createIconNoSpan("smallRight",this.gridOptionsWrapper)):this.ePopupPointer.innerHTML=" ",this.eName.innerHTML=this.params.name,this.params.disabled?i._.addCssClass(this.getGui(),"ag-menu-option-disabled"):this.addGuiEventListener("click",this.onOptionSelected.bind(this)),this.params.cssClasses&&this.params.cssClasses.forEach(function(t){return i._.addCssClass(e.getGui(),t)})},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.getComponentHolder=function(){},t.prototype.onOptionSelected=function(e){var n={type:t.EVENT_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,mouseEvent:e};this.dispatchEvent(n),this.params.action&&this.params.action()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n \n \n \n
',t.EVENT_ITEM_SELECTED="itemSelected",ru([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),ru([i.Autowired("tooltipManager")],t.prototype,"tooltipManager",void 0),ru([i.RefSelector("eIcon")],t.prototype,"eIcon",void 0),ru([i.RefSelector("eName")],t.prototype,"eName",void 0),ru([i.RefSelector("eShortcut")],t.prototype,"eShortcut",void 0),ru([i.RefSelector("ePopupPointer")],t.prototype,"ePopupPointer",void 0),ru([i.PostConstruct],t.prototype,"init",null),t}(i.Component),iu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),au=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},su=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.timerCount=0,n.removeChildFuncs=[],n}return iu(t,e),t.prototype.clearActiveItem=function(){this.removeActiveItem(),this.removeChildPopup()},t.prototype.addMenuItems=function(e){var t=this;e&&!i._.missing(e)&&e.forEach(function(e){if("separator"===e)t.addSeparator();else if("string"===typeof e)console.warn("ag-Grid: unrecognised menu item "+e);else{var n=e;t.addItem(n)}})},t.prototype.addItem=function(e){var t=this,n=new ou(e);this.getContext().wireBean(n),this.getGui().appendChild(n.getGui()),this.addDestroyFunc(function(){return n.destroy()}),n.addEventListener(ou.EVENT_ITEM_SELECTED,function(r){e.subMenu&&!e.action?t.showChildMenu(e,n,r.mouseEvent):t.dispatchEvent(r)}),n.addGuiEventListener("mouseenter",this.mouseEnterItem.bind(this,e,n)),n.addGuiEventListener("mouseleave",this.mouseLeaveItem.bind(this))},t.prototype.mouseEnterItem=function(e,t){e.disabled||(this.activeMenuItemParams!==e&&this.removeChildPopup(),this.removeActiveItem(),this.activeMenuItemParams=e,this.activeMenuItem=t,i._.addCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),e.subMenu&&this.addHoverForChildPopup(e,t))},t.prototype.mouseLeaveItem=function(){this.timerCount++,this.removeActiveItem()},t.prototype.removeActiveItem=function(){this.activeMenuItem&&(i._.removeCssClass(this.activeMenuItem.getGui(),"ag-menu-option-active"),this.activeMenuItem=null,this.activeMenuItemParams=null)},t.prototype.addHoverForChildPopup=function(e,t){var n=this,r=this.timerCount;window.setTimeout(function(){var o=r===n.timerCount,i=n.subMenuParentDef===e;o&&!i&&n.showChildMenu(e,t,null)},300)},t.prototype.addSeparator=function(){this.getGui().appendChild(i._.loadTemplate(t.SEPARATOR_TEMPLATE))},t.prototype.showChildMenu=function(e,n,r){var o=this;this.removeChildPopup();var a=new t;this.getContext().wireBean(a),a.addMenuItems(e.subMenu);var s=i._.loadTemplate('
');s.appendChild(a.getGui());var l=this.popupService.addAsModalPopup(s,!0,void 0,r);this.popupService.positionPopupForMenu({eventSource:n.getGui(),ePopup:s}),this.subMenuParentDef=e;var c=function(e){o.dispatchEvent(e)};a.addEventListener(ou.EVENT_ITEM_SELECTED,c),this.removeChildFuncs.push(function(){a.clearActiveItem(),a.destroy(),o.subMenuParentDef=null,a.removeEventListener(ou.EVENT_ITEM_SELECTED,c),l()})},t.prototype.removeChildPopup=function(){this.removeChildFuncs.forEach(function(e){return e()}),this.removeChildFuncs=[]},t.prototype.destroy=function(){this.removeChildPopup(),e.prototype.destroy.call(this)},t.TEMPLATE='
',t.SEPARATOR_TEMPLATE='
\n \n \n \n \n
',au([i.Autowired("popupService")],t.prototype,"popupService",void 0),t}(i.Component),lu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uu=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.showMenuAfterMouseEvent=function(e,t,n){var r=this;this.showMenu(e,function(o){r.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o.getGui()}),n&&o.showTab(n)},n)},e.prototype.showMenuAfterButtonClick=function(e,t,n,r){var o=this,i=-1,a="left";this.gridOptionsWrapper.isEnableRtl()&&(i=1,a="right"),this.showMenu(e,function(r){var s=r.getMinDimensions();o.popupService.positionPopupUnderComponent({column:e,type:"columnMenu",eventSource:t,ePopup:r.getGui(),nudgeX:9*i,nudgeY:-23,minWidth:s.width,minHeight:s.height,alignSide:a,keepWithinBounds:!0}),n&&r.showTab(n)},n,r)},e.prototype.showMenu=function(e,t,n,r){var o=this,a=new du(e,this.lastSelectedTab,r);this.context.wireBean(a);var s=a.getGui(),l=this.popupService.addAsModalPopup(s,!0,function(){a.destroy(),e.setMenuVisible(!1,"contextMenu")});a.afterGuiAttached({hidePopup:l}),t(a),n||a.showTabBasedOnPreviousSelection(),a.addEventListener(du.EVENT_TAB_SELECTED,function(e){o.lastSelectedTab=e.key}),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=a,a.addEventListener(i.BeanStub.EVENT_DESTROYED,function(){o.activeMenu===a&&(o.activeMenu=null)})},e.prototype.isMenuEnabled=function(e){return e.getMenuTabs(du.TABS_DEFAULT).length>0},cu([i.Autowired("context")],e.prototype,"context",void 0),cu([i.Autowired("popupService")],e.prototype,"popupService",void 0),cu([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=cu([i.Bean("menuFactory")],e)}(),du=function(e){function t(n,r,o){var i=e.call(this)||this;return i.tabFactories={},i.includeChecks={},i.timeOfLastColumnChange=Date.now(),i.column=n,i.initialSelection=r,i.tabFactories[t.TAB_GENERAL]=i.createMainPanel.bind(i),i.tabFactories[t.TAB_FILTER]=i.createFilterPanel.bind(i),i.tabFactories[t.TAB_COLUMNS]=i.createColumnsPanel.bind(i),i.includeChecks[t.TAB_GENERAL]=function(){return!0},i.includeChecks[t.TAB_FILTER]=function(){return n.isFilterAllowed()},i.includeChecks[t.TAB_COLUMNS]=function(){return!0},i.restrictTo=o,i}return lu(t,e),t.prototype.getMinDimensions=function(){return this.tabbedLayout.getMinDimensions()},t.prototype.init=function(){var e=this,t=this.getTabsToCreate().map(function(t){return e.createTab(t)});this.tabbedLayout=new i.TabbedLayout({items:t,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.eventService.addEventListener(i.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},t.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(t.TABS_DEFAULT).filter(function(t){return e.isValidMenuTabItem(t)}).filter(function(t){return e.isNotSuppressed(t)}).filter(function(t){return e.isModuleLoaded(t)})},t.prototype.isModuleLoaded=function(e){return e!==t.TAB_COLUMNS||i.ModuleRegistry.isRegistered(i.ModuleNames.ColumnToolPanelModule)},t.prototype.isValidMenuTabItem=function(e){var n=!0,r=t.TABS_DEFAULT;return null!=this.restrictTo&&(n=this.restrictTo.indexOf(e)>-1,r=this.restrictTo),(n=n&&t.TABS_DEFAULT.indexOf(e)>-1)||console.warn("Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+r+"]"),n},t.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},t.prototype.createTab=function(e){return this.tabFactories[e]()},t.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},t.prototype.showTab=function(e){this.tabItemColumns&&e===t.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===t.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===t.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},t.prototype.onTabItemClicked=function(e){var n=null;switch(e.item){case this.tabItemColumns:n=t.TAB_COLUMNS;break;case this.tabItemFilter:n=t.TAB_FILTER;break;case this.tabItemGeneral:n=t.TAB_GENERAL}if(n){var r={type:t.EVENT_TAB_SELECTED,key:n};this.dispatchEvent(r)}},t.prototype.destroy=function(){this.columnSelectPanel&&this.columnSelectPanel.destroy(),this.mainMenuList&&this.mainMenuList.destroy(),e.prototype.destroy.call(this)},t.prototype.getMenuItems=function(){var e,n=this.getDefaultMenuOptions(),r=this.gridOptionsWrapper.getMainMenuItemsFunc();r?e=r({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:n}):e=n;return i._.removeRepeatsFromArray(e,t.MENU_ITEM_SEPARATOR),e},t.prototype.getDefaultMenuOptions=function(){var e=[],n=!this.column.getColDef().lockPinned,r=this.columnController.getRowGroupColumns().length,o=r>0,a=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,s=this.column.isAllowValue(),l=this.column.isAllowRowGroup(),c=this.column.isPrimary(),u=this.columnController.isPivotMode(),d=this.rowModel.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,h=this.gridOptionsWrapper.isTreeData(),p=c&&o&&s||!c;n&&e.push("pinSubMenu"),p&&e.push("valueAggSubMenu"),(n||p)&&e.push(t.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(t.MENU_ITEM_SEPARATOR),l&&this.column.isPrimary()&&(a?e.push("rowUnGroup"):e.push("rowGroup")),e.push(t.MENU_ITEM_SEPARATOR),e.push("resetColumns");var f=!1;return d&&(f=!!h||(u?r>1:r>0)),f&&(e.push("expandAll"),e.push("contractAll")),e},t.prototype.createMainPanel=function(){this.mainMenuList=new su,this.getContext().wireBean(this.mainMenuList);var e=this.getMenuItems(),n=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(n),this.mainMenuList.addEventListener(ou.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:i._.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),bodyPromise:i.Promise.resolve(this.mainMenuList.getGui()),name:t.TAB_GENERAL},this.tabItemGeneral},t.prototype.onHidePopup=function(){this.hidePopupFunc()},t.prototype.createFilterPanel=function(){var e=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU"),n=null;return e.filterPromise&&e.filterPromise.then(function(e){e.afterGuiAttached&&(n=e.afterGuiAttached.bind(e))}),this.tabItemFilter={title:i._.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),bodyPromise:e.guiPromise.promise,afterAttachedCallback:n,name:t.TAB_FILTER},this.tabItemFilter},t.prototype.createColumnsPanel=function(){var e=document.createElement("div");return i._.addCssClass(e,"ag-menu-column-select-wrapper"),this.columnSelectPanel=this.getContext().createComponent("AG-PRIMARY-COLS"),this.columnSelectPanel.init(!1,{suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!1,suppressColumnExpandAll:!1,suppressColumnFilter:!1,suppressColumnSelectAll:!1,suppressSideButtons:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi}),e.appendChild(this.columnSelectPanel.getGui()),this.tabItemColumns={title:i._.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),bodyPromise:i.Promise.resolve(e),name:t.TAB_COLUMNS},this.tabItemColumns},t.prototype.afterGuiAttached=function(e){var t=this;this.tabbedLayout.setAfterAttachedParams({hidePopup:e.hidePopup}),this.hidePopupFunc=e.hidePopup;var n=this.gridApi.getHorizontalPixelRange().left;this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",function(r){if(!(Date.now()-t.timeOfLastColumnChange<500)&&"horizontal"===r.direction){var o=t.gridApi.getHorizontalPixelRange().left;Math.abs(o-n)>t.gridOptionsWrapper.getScrollbarWidth()&&e.hidePopup()}})},t.prototype.getGui=function(){return this.tabbedLayout.getGui()},t.prototype.onDisplayedColumnsChanged=function(){this.timeOfLastColumnChange=Date.now()},t.EVENT_TAB_SELECTED="tabSelected",t.TAB_FILTER="filterMenuTab",t.TAB_GENERAL="generalMenuTab",t.TAB_COLUMNS="columnsMenuTab",t.TABS_DEFAULT=[t.TAB_GENERAL,t.TAB_FILTER,t.TAB_COLUMNS],t.MENU_ITEM_SEPARATOR="separator",cu([i.Autowired("columnController")],t.prototype,"columnController",void 0),cu([i.Autowired("filterManager")],t.prototype,"filterManager",void 0),cu([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),cu([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),cu([i.Autowired("eventService")],t.prototype,"eventService",void 0),cu([i.Autowired("menuItemMapper")],t.prototype,"menuItemMapper",void 0),cu([i.Autowired("rowModel")],t.prototype,"rowModel",void 0),cu([i.PostConstruct],t.prototype,"init",null),t}(i.BeanStub),hu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fu=function(){function e(){}return e.prototype.init=function(){},e.prototype.hideActiveMenu=function(){this.activeMenu&&this.activeMenu.destroy()},e.prototype.getMenuItems=function(e,t,n){var r=[];if(i._.exists(e)&&i.ModuleRegistry.isRegistered(i.ModuleNames.ClipboardModule)&&t&&r.push("copy","copyWithHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&i.ModuleRegistry.isRegistered(i.ModuleNames.RangeSelectionModule)&&i.ModuleRegistry.isRegistered(i.ModuleNames.GridChartsModule)&&(this.columnController.isPivotMode()&&r.push("pivotChart"),this.rangeController&&!this.rangeController.isEmpty()&&r.push("chartRange")),i._.exists(e)){var o=!i.ModuleRegistry.isRegistered(i.ModuleNames.CsvExportModule),a=!i.ModuleRegistry.isRegistered(i.ModuleNames.ExcelExportModule),s=this.gridOptionsWrapper.isSuppressExcelExport()||a,l=this.gridOptionsWrapper.isSuppressCsvExport()||o;!i._.isIOSUserAgent()&&(!s||!l)&&r.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var c=this.gridOptionsWrapper.getContextMenuItemsFunc(),u={node:e,column:t,value:n,defaultItems:r.length?r:void 0,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return c?c(u):void 0}return r},e.prototype.showMenu=function(e,t,n,r){var o=this,a=this.getMenuItems(e,t,n);if(void 0!==a&&!i._.missingOrEmpty(a)){var s=new gu(a);this.context.wireBean(s);var l=s.getGui(),c=this.popupService.addAsModalPopup(l,!0,function(){return s.destroy()},r);this.popupService.positionPopupUnderMouseEvent({column:t,rowNode:e,type:"contextMenu",mouseEvent:r,ePopup:l}),s.afterGuiAttached({hidePopup:c}),this.activeMenu=s,s.addEventListener(i.BeanStub.EVENT_DESTROYED,function(){o.activeMenu===s&&(o.activeMenu=null)})}},pu([i.Autowired("context")],e.prototype,"context",void 0),pu([i.Autowired("popupService")],e.prototype,"popupService",void 0),pu([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),pu([i.Autowired("rowModel")],e.prototype,"rowModel",void 0),pu([i.Optional("rangeController")],e.prototype,"rangeController",void 0),pu([i.Autowired("columnController")],e.prototype,"columnController",void 0),pu([i.PostConstruct],e.prototype,"init",null),e=pu([i.Bean("contextMenuFactory")],e)}(),gu=function(e){function t(t){var n=e.call(this,'
')||this;return n.menuItems=t,n}return hu(t,e),t.prototype.addMenuItems=function(){var e=new su;this.getContext().wireBean(e);var t=this.menuItemMapper.mapWithStockItems(this.menuItems,null);e.addMenuItems(t),this.appendChild(e),e.addEventListener(ou.EVENT_ITEM_SELECTED,this.destroy.bind(this))},t.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.addDestroyableEventListener(this.eventService,"bodyScroll",this.destroy.bind(this))},pu([i.Autowired("eventService")],t.prototype,"eventService",void 0),pu([i.Autowired("menuItemMapper")],t.prototype,"menuItemMapper",void 0),pu([i.PostConstruct],t.prototype,"addMenuItems",null),t}(i.Component),mu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vu=function(){function e(){}return e.prototype.mapWithStockItems=function(e,t){var n=this;if(!e)return[];var r=[];return e.forEach(function(e){var o;if(o="string"===typeof e?n.getStockMenuItem(e,t):e){if(o.subMenu){var i=o;i.subMenu=n.mapWithStockItems(i.subMenu,t)}null!=o&&r.push(o)}}),r},e.prototype.getStockMenuItem=function(e,t){var n=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();switch(e){case"pinSubMenu":return{name:r("pinColumn","Pin Column"),icon:i._.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:r("pinLeft","Pin Left"),action:function(){return n.columnController.setColumnPinned(t,i.Constants.PINNED_LEFT,"contextMenu")},checked:t.isPinnedLeft()};case"pinRight":return{name:r("pinRight","Pin Right"),action:function(){return n.columnController.setColumnPinned(t,i.Constants.PINNED_RIGHT,"contextMenu")},checked:t.isPinnedRight()};case"clearPinned":return{name:r("noPin","No Pin"),action:function(){return n.columnController.setColumnPinned(t,null,"contextMenu")},checked:!t.isPinned()};case"valueAggSubMenu":return i.ModuleRegistry.assertRegistered(i.ModuleNames.RowGroupingModule,"Aggregation from Menu")?{name:r("valueAggregation","Value Aggregation"),icon:i._.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)}:null;case"autoSizeThis":return{name:r("autosizeThiscolumn","Autosize This Column"),action:function(){return n.columnController.autoSizeColumn(t,o,"contextMenu")}};case"autoSizeAll":return{name:r("autosizeAllColumns","Autosize All Columns"),action:function(){return n.columnController.autoSizeAllColumns(o,"contextMenu")}};case"rowGroup":return{name:r("groupBy","Group by")+" "+i._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return n.columnController.addRowGroupColumn(t,"contextMenu")},icon:i._.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:r("ungroupBy","Un-Group by")+" "+i._.escape(this.columnController.getDisplayNameForColumn(t,"header")),action:function(){return n.columnController.removeRowGroupColumn(t,"contextMenu")},icon:i._.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:r("resetColumns","Reset Columns"),action:function(){return n.columnController.resetColumnState(!1,"contextMenu")}};case"expandAll":return{name:r("expandAll","Expand All"),action:function(){return n.gridApi.expandAll()}};case"contractAll":return{name:r("collapseAll","Collapse All"),action:function(){return n.gridApi.collapseAll()}};case"copy":return i.ModuleRegistry.assertRegistered(i.ModuleNames.ClipboardModule,"Copy from Menu")?{name:r("copy","Copy"),shortcut:r("ctrlC","Ctrl+C"),icon:i._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard(!1)}}:null;case"copyWithHeaders":return i.ModuleRegistry.assertRegistered(i.ModuleNames.ClipboardModule,"Copy with Headers from Menu")?{name:r("copyWithHeaders","Copy with Headers"),icon:i._.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.copyToClipboard(!0)}}:null;case"paste":return i.ModuleRegistry.assertRegistered(i.ModuleNames.ClipboardModule,"Copy with Headers from Menu")?{name:r("paste","Paste"),shortcut:r("ctrlV","Ctrl+V"),disabled:!0,icon:i._.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return n.clipboardService.pasteFromClipboard()}}:null;case"export":var a=[],s=i.ModuleRegistry.isRegistered(i.ModuleNames.CsvExportModule),l=i.ModuleRegistry.isRegistered(i.ModuleNames.ExcelExportModule);return!this.gridOptionsWrapper.isSuppressCsvExport()&&s&&a.push("csvExport"),!this.gridOptionsWrapper.isSuppressExcelExport()&&l&&(a.push("excelExport"),a.push("excelXmlExport")),{name:r("export","Export"),subMenu:a,icon:i._.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:r("csvExport","CSV Export"),action:function(){return n.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:r("excelExport","Excel Export (.xlsx)‎"),action:function(){return n.gridApi.exportDataAsExcel({exportMode:"xlsx"})}};case"excelXmlExport":return{name:r("excelXmlExport","Excel Export (.xml)‎"),action:function(){return n.gridApi.exportDataAsExcel({exportMode:"xml"})}};case"separator":return"separator";default:var c=this.getChartItems(e);return c||(console.warn("ag-Grid: unknown menu item type "+e),null)}},e.prototype.getChartItems=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc(),r=function(e,r,o){return{name:n(e,r),action:function(){return t.chartService.createPivotChart({chartType:o})}}},o=function(e,r,o){return{name:n(e,r),action:function(){return t.chartService.createChartFromCurrentRange(o)}}};switch(e){case"pivotChart":return{name:n("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:i._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:n("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart"],icon:i._.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:n("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return r("groupedColumn","Grouped‎",i.ChartType.GroupedColumn);case"pivotStackedColumn":return r("stackedColumn","Stacked‎",i.ChartType.StackedColumn);case"pivotNormalizedColumn":return r("normalizedColumn","100% Stacked‎",i.ChartType.NormalizedColumn);case"rangeColumnChart":return{name:n("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return o("groupedColumn","Grouped‎",i.ChartType.GroupedColumn);case"rangeStackedColumn":return o("stackedColumn","Stacked‎",i.ChartType.StackedColumn);case"rangeNormalizedColumn":return o("normalizedColumn","100% Stacked‎",i.ChartType.NormalizedColumn);case"pivotBarChart":return{name:n("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return r("groupedBar","Grouped‎",i.ChartType.GroupedBar);case"pivotStackedBar":return r("stackedBar","Stacked‎",i.ChartType.StackedBar);case"pivotNormalizedBar":return r("normalizedBar","100% Stacked‎",i.ChartType.NormalizedBar);case"rangeBarChart":return{name:n("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return o("groupedBar","Grouped‎",i.ChartType.GroupedBar);case"rangeStackedBar":return o("stackedBar","Stacked‎",i.ChartType.StackedBar);case"rangeNormalizedBar":return o("normalizedBar","100% Stacked‎",i.ChartType.NormalizedBar);case"pivotPieChart":return{name:n("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return r("pie","Pie‎",i.ChartType.Pie);case"pivotDoughnut":return r("doughnut","Doughnut‎",i.ChartType.Doughnut);case"rangePieChart":return{name:n("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return o("pie","Pie‎",i.ChartType.Pie);case"rangeDoughnut":return o("doughnut","Doughnut‎",i.ChartType.Doughnut);case"pivotLineChart":return r("line","Line‎",i.ChartType.Line);case"rangeLineChart":return o("line","Line‎",i.ChartType.Line);case"pivotXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return r("scatter","Scatter‎",i.ChartType.Scatter);case"pivotBubble":return r("bubble","Bubble‎",i.ChartType.Bubble);case"rangeXYChart":return{name:n("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return o("scatter","Scatter‎",i.ChartType.Scatter);case"rangeBubble":return o("bubble","Bubble‎",i.ChartType.Bubble);case"pivotAreaChart":return{name:n("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return r("area","Area‎",i.ChartType.Area);case"pivotStackedArea":return r("stackedArea","Stacked‎",i.ChartType.StackedArea);case"pivotNormalizedArea":return r("normalizedArea","100% Stacked‎",i.ChartType.NormalizedArea);case"rangeAreaChart":return{name:n("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return o("area","Area‎",i.ChartType.Area);case"rangeStackedArea":return o("stackedArea","Stacked‎",i.ChartType.StackedArea);case"rangeNormalizedArea":return o("normalizedArea","100% Stacked‎",i.ChartType.NormalizedArea);default:return null}},e.prototype.createAggregationSubMenu=function(e){var t,n=this,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=e.isValueActive(),a=this.aggFuncService.getFuncNames(e);if(e.isPrimary())t=e;else{var s=e.getColDef().pivotValueColumn;t=i._.exists(s)?s:void 0}var l=[];return a.forEach(function(e){l.push({name:r(e,e),action:function(){n.columnController.setColumnAggFunc(t,e,"contextMenu"),n.columnController.addValueColumn(t,"contextMenu")},checked:o&&t.getAggFunc()===e})}),l},mu([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),mu([i.Autowired("columnController")],e.prototype,"columnController",void 0),mu([i.Autowired("gridApi")],e.prototype,"gridApi",void 0),mu([i.Optional("clipboardService")],e.prototype,"clipboardService",void 0),mu([i.Optional("aggFuncService")],e.prototype,"aggFuncService",void 0),mu([i.Optional("chartService")],e.prototype,"chartService",void 0),mu([i.Optional("context")],e.prototype,"context",void 0),e=mu([i.Bean("menuItemMapper")],e)}(),yu={moduleName:i.ModuleNames.MenuModule,beans:[uu,fu,vu],dependantModules:[p]},bu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wu=function(e){function t(t){var n=e.call(this,'
')||this;return n.params=t,n}return bu(t,e),t.prototype.setState=function(e,t,n){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),i._.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",n)},t.prototype.populateWithoutRenderer=function(e,t){var n=null!==t&&void 0!==t?t:e;i._.exists(n)&&""!==n?this.getGui().textContent=n.toString():this.getGui().innerHTML=" "},t.prototype.populateWithRenderer=function(e,t){var n=this,r={value:e,valueFormatted:t,api:this.gridOptionsWrapper.getApi()},o=this.userComponentFactory.newCellRenderer(this.params,r);return null!=o?i._.bindCellRendererToHtmlElement(o,this.getGui()):this.getGui().innerText=null!=r.valueFormatted?r.valueFormatted:r.value,!!o&&(o.then(function(e){e&&e.destroy&&n.addDestroyFunc(e.destroy.bind(e))}),!0)},Cu([i.Autowired("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Cu([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(i.Component),xu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_u=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Su=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.selectionConfirmed=!1,n.searchString="",n}return xu(t,e),t.prototype.init=function(e){if(this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit,this.eValue.appendChild(i._.createIconNoSpan("smallDown",this.gridOptionsWrapper)),this.virtualList=new i.VirtualList,this.getContext().wireBean(this.virtualList),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),i._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),i._.missing(e.values))console.warn("ag-Grid: richSelectCellEditor requires values for it to work");else{var t=e.values;this.virtualList.setModel({getRowCount:function(){return t.length},getRow:function(e){return t[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var n=this.virtualList.getGui();this.addDestroyableEventListener(n,"click",this.onClick.bind(this)),this.addDestroyableEventListener(n,"mousemove",this.onMouseMove.bind(this)),this.clearSearchString=i._.debounce(this.clearSearchString,300),i._.exists(e.charPress)&&this.searchText(e.charPress)}},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case i.Constants.KEY_ENTER:this.onEnterKeyDown();break;case i.Constants.KEY_DOWN:case i.Constants.KEY_UP:this.onNavigationKeyPressed(e,t);break;default:this.searchText(e)}},t.prototype.onEnterKeyDown=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.onNavigationKeyPressed=function(e,t){e.stopPropagation();var n=this.params.values.indexOf(this.selectedValue),r=t===i.Constants.KEY_UP?n-1:n+1;if(r>=0&&r=0&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},t.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),n=new wu(this.params);return this.getContext().wireBean(n),n.setState(e,t,e===this.selectedValue),n},t.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),n=this.virtualList.getScrollTop(),r=e.clientY-t.top+n,o=Math.floor(r/this.virtualList.getRowHeight()),i=this.params.values[o];void 0!==i&&this.setSelectedValue(i)},t.prototype.onClick=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},t.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},t.TEMPLATE='
\n
\n
\n
',_u([i.Autowired("userComponentFactory")],t.prototype,"userComponentFactory",void 0),_u([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),_u([i.RefSelector("eValue")],t.prototype,"eValue",void 0),_u([i.RefSelector("eList")],t.prototype,"eList",void 0),t}(i.PopupComponent),Mu={moduleName:i.ModuleNames.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:Su},{componentName:"agRichSelectCellEditor",componentClass:Su}],dependantModules:[p]},Eu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Au=function(e,t){return function(n,r){t(n,r,e)}},Tu=function(e){function t(t,n,r,o){var i=e.call(this,t,r)||this;return i.params=r,i.parentRowNode=n,i.parentCache=o,i.level=n.level+1,i.groupLevel=r.rowGroupCols?i.level=0;)e.push(t.key),t=t.parent;e.length>0&&(this.nodeIdPrefix=e.reverse().join("-")+"-")},t.prototype.createIdForIndex=function(e){return i._.exists(this.nodeIdPrefix)?this.nodeIdPrefix+e.toString():e.toString()},t.prototype.getNodeIdPrefix=function(){return this.nodeIdPrefix},t.prototype.getRow=function(t){var n=this.getStartRow(),r=this.parentCache.getVirtualRowCount(),o=this.getEndRow(),a=(r=0;)t.push(n.key),n=n.parent;return t.reverse(),t},t.prototype.isPixelInRange=function(e){return e>=this.blockTop&&e=t)){var s=this.getRowUsingLocalIndex(a);if(s){if(s.rowIndex===e)return o(s);if(s.group&&s.expanded&&i._.exists(s.childrenCache)){var l=s.childrenCache;if(l.isDisplayIndexInCache(e))return l.getRowBounds(e)}else if(s.master&&s.expanded&&i._.exists(s.detailNode)&&s.detailNode.rowIndex===e)return o(s.detailNode)}}return console.error(" ag-Grid: looking for invalid row index in Server Side Row Model, index="+e),null},t.prototype.getRowIndexAtPixel=function(e,t){for(var n=this.getStartRow(),r=this.getEndRow(),o=n;o<=r;o++)if(!(o>=t)){var a=this.getRowUsingLocalIndex(o);if(a){if(a.isPixelInRange(e))return a.rowIndex;if(a.master&&a.expanded&&a.detailNode.isPixelInRange(e))return a.detailNode.rowIndex;if(a.group&&a.expanded&&i._.exists(a.childrenCache)){var s=a.childrenCache;if(s.isPixelInRange(e))return s.getRowIndexAtPixel(e)}}}return console.warn("ag-Grid: invalid pixel range for server side block "+e),0},t.prototype.clearRowTops=function(e){this.forEachRowNode(e,function(e){(e.clearRowTop(),e.group&&i._.exists(e.childrenCache))&&e.childrenCache.clearRowTops()})},t.prototype.setDisplayIndexes=function(e,t,n){this.displayIndexStart=e.peek(),this.blockTop=n.value,this.forEachRowNode(t,function(t){if(t.setRowIndex(e.next()),t.setRowTop(n.value),n.value+=t.rowHeight,t.master&&t.expanded&&(t.detailNode.setRowIndex(e.next()),t.detailNode.setRowTop(n.value),n.value+=t.detailNode.rowHeight),t.group&&i._.exists(t.childrenCache)){var r=t.childrenCache;t.expanded?r.setDisplayIndexes(e,n):r.clearRowTops()}}),this.displayIndexEnd=e.peek(),this.blockHeight=n.value-this.blockTop},t.prototype.forEachRowNode=function(e,t){for(var n=this.getStartRow(),r=this.getEndRow(),o=n;o<=r;o++)if(!(o>=e)){var i=this.getRowUsingLocalIndex(o);i&&t(i)}},t.prototype.createLoadParams=function(){var e=this.createGroupKeys(this.parentRowNode),t={startRow:this.getStartRow(),endRow:this.getEndRow(),rowGroupCols:this.params.rowGroupCols,valueCols:this.params.valueCols,pivotCols:this.params.pivotCols,pivotMode:this.params.pivotMode,groupKeys:e,filterModel:this.params.filterModel,sortModel:this.params.sortModel};return{successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),request:t,parentNode:this.parentRowNode}},t.prototype.isDisplayIndexInBlock=function(e){return e>=this.displayIndexStart&&e=this.displayIndexEnd},t.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.getBlockHeight=function(){return this.blockHeight},t.prototype.getBlockTop=function(){return this.blockTop},t.prototype.isGroupLevel=function(){return this.groupLevel},t.prototype.getGroupField=function(){return this.groupField},t.DefaultBlockSize=100,Ou([i.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),Ou([i.Autowired("columnController")],t.prototype,"columnController",void 0),Ou([i.Autowired("valueService")],t.prototype,"valueService",void 0),Ou([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ou([i.PostConstruct],t.prototype,"init",null),Ou([Au(0,i.Qualifier("loggerFactory"))],t.prototype,"setBeans",null),t}(i.RowNodeBlock),ku=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Du=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pu=function(e,t){return function(n,r){t(n,r,e)}},Nu=function(e){function t(t,n){var r=e.call(this,t)||this;return r.displayIndexStart=0,r.displayIndexEnd=0,r.cacheTop=0,r.blockHeights={},r.parentRowNode=n,r}return ku(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ServerSideCache")},t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.getRowBounds=function(e){var t,n=this;this.logger.log("getRowBounds("+e+")");var r=!1,o=null;if(this.forEachBlockInOrder(function(i){r||(i.isDisplayIndexInBlock(e)?(t=i.getRowBounds(e,n.getVirtualRowCount()),r=!0):i.isBlockBefore(e)&&(o=i))}),!r){var i=void 0,a=void 0;null!==o?(i=o.getBlockTop()+o.getBlockHeight(),a=o.getDisplayIndexEnd()):(i=this.cacheTop,a=this.displayIndexStart);var s=e-a;t={rowHeight:this.cacheParams.rowHeight,rowTop:i+s*this.cacheParams.rowHeight}}return this.logger.log("getRowBounds("+e+"), result = "+t),t},t.prototype.destroyBlock=function(t){e.prototype.destroyBlock.call(this,t)},t.prototype.getRowIndexAtPixel=function(e){var t,n=this;this.logger.log("getRowIndexAtPixel("+e+")");var r,o=!1;if(this.forEachBlockInOrder(function(i){o||(i.isPixelInRange(e)?(t=i.getRowIndexAtPixel(e,n.getVirtualRowCount()),o=!0):i.getBlockTop()l&&(t=l),this.logger.log("getRowIndexAtPixel("+e+") result = "+t),t},t.prototype.clearRowTops=function(){var e=this;this.forEachBlockInOrder(function(t){return t.clearRowTops(e.getVirtualRowCount())})},t.prototype.setDisplayIndexes=function(e,t){var n=this;this.displayIndexStart=e.peek(),this.cacheTop=t.value;var r=-1,o=this.getBlockSize();this.forEachBlockInOrder(function(a,s){var l=s-r-1,c=l*o;c>0&&e.skip(c);for(var u=1;u<=l;u++){var d=s-u;i._.exists(n.blockHeights[d])?t.value+=n.blockHeights[d]:t.value+=o*n.cacheParams.rowHeight}r=s,a.setDisplayIndexes(e,n.getVirtualRowCount(),t),n.blockHeights[s]=a.getBlockHeight()});var a=(r+1)*o-1,s=this.getVirtualRowCount()-a-1;s>0&&(e.skip(s),t.value+=s*this.cacheParams.rowHeight),this.displayIndexEnd=e.peek(),this.cacheHeight=t.value-this.cacheTop},t.prototype.getRow=function(e,t){if(void 0===t&&(t=!1),!this.isDisplayIndexInCache(e))return null;var n=null,r=null;if(this.forEachBlockInOrder(function(t){t.isDisplayIndexInBlock(e)?n=t:t.isBlockBefore(e)&&(r=t)}),i._.missing(n)&&t)return null;var o=this.getBlockSize();if(i._.missing(n)){var a,s=void 0,l=void 0;if(r){s=r.getBlockNumber()+1,a=r.getDisplayIndexEnd(),l=r.getBlockHeight()+r.getBlockTop();for(;!(e>=a&&e=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fu=function(e,t){return function(n,r){t(n,r,e)}},Iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lu(t,e),t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners()},t.prototype.start=function(){var e=this.gridOptionsWrapper.getServerSideDatasource();e&&this.setDatasource(e)},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=void 0)},t.prototype.setBeans=function(e){this.logger=e.create("ServerSideRowModel")},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,this.reset()},t.prototype.isLastRowFound=function(){return!!this.cacheExists()&&this.rootNode.childrenCache.isMaxRowFound()},t.prototype.onColumnEverything=function(){if(!this.gridOptionsWrapper.isSuppressEnterpriseResetOnNewColumns()){var e;if(this.cacheParams){var t=this.toValueObjects(this.columnController.getRowGroupColumns()),n=this.toValueObjects(this.columnController.getValueColumns()),r=this.toValueObjects(this.columnController.getPivotColumns()),o=!i._.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel()),a=!i._.jsonEquals(this.cacheParams.rowGroupCols,t),s=!i._.jsonEquals(this.cacheParams.pivotCols,r),l=!i._.jsonEquals(this.cacheParams.valueCols,n);e=o||a||s||l}else e=!0;e&&this.reset()}},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.findChangedColumnsInSort=function(e,t){var n=[];[e,t].forEach(function(e){if(e){var t=e.map(function(e){return e.colId});n=n.concat(t)}});return n.filter(function(n){var r=i._.find(t,function(e){return e.colId===n}),o=i._.find(e,function(e){return e.colId===n});return function(e,t){return(e?e.sort:null)!==(t?t.sort:null)}(r,o)||function(n,r){return t.indexOf(n)!==e.indexOf(r)}(r,o)})},t.prototype.onSortChanged=function(){if(this.cacheExists()){var e=this.extractSortModel(),t=this.cacheParams.sortModel,n=this.findChangedColumnsInSort(e,t);this.cacheParams.sortModel=e;var r=this.columnController.getRowGroupColumns().map(function(e){return e.getId()}),o=this.rootNode.childrenCache,i=this.isSortingWithValueColumn(n),a=this.isSortingWithSecondaryColumn(n);this.gridOptionsWrapper.isServerSideSortingAlwaysResets()||i||a?this.reset():o.refreshCacheAfterSort(n,r)}},t.prototype.onValueChanged=function(){this.reset()},t.prototype.onColumnRowGroupChanged=function(){this.reset()},t.prototype.onColumnPivotChanged=function(){this.reset()},t.prototype.onPivotModeChanged=function(){this.reset()},t.prototype.onRowGroupOpened=function(e){var t=this,n=e.node;n.expanded?n.master?this.createDetailNode(n):i._.missing(n.childrenCache)&&this.createNodeCache(n):this.gridOptionsWrapper.isPurgeClosedRowNodes()&&i._.exists(n.childrenCache)&&(n.childrenCache.destroy(),n.childrenCache=null);this.updateRowIndexesAndBounds();var r={type:i.Events.EVENT_MODEL_UPDATED,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),newPage:!1,newData:!1,animate:function(){var e=t.gridOptionsWrapper.isAnimateRows();return n.master?e&&n.expanded:e}(),keepRenderedRows:!0};this.eventService.dispatchEvent(r)},t.prototype.reset=function(){this.rootNode=new i.RowNode,this.rootNode.group=!0,this.rootNode.level=-1,this.getContext().wireBean(this.rootNode),this.datasource&&(this.createNewRowNodeBlockLoader(),this.cacheParams=this.createCacheParams(),this.createNodeCache(this.rootNode),this.updateRowIndexesAndBounds());var e={type:i.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e);var t={type:i.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1};this.eventService.dispatchEvent(t)},t.prototype.createNewRowNodeBlockLoader=function(){this.destroyRowNodeBlockLoader();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new i.RowNodeBlockLoader(e,t),this.getContext().wireBean(this.rowNodeBlockLoader)},t.prototype.destroyRowNodeBlockLoader=function(){this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=void 0)},t.prototype.toValueObjects=function(e){var t=this;return e.map(function(e){return{id:e.getId(),aggFunc:e.getAggFunc(),displayName:t.columnController.getDisplayNameForColumn(e,"model"),field:e.getColDef().field}})},t.prototype.createCacheParams=function(){var e=this.toValueObjects(this.columnController.getRowGroupColumns()),t=this.toValueObjects(this.columnController.getValueColumns()),n=this.toValueObjects(this.columnController.getPivotColumns()),r=this.gridOptionsWrapper.isDynamicRowHeight(),o=this.gridOptionsWrapper.getMaxBlocksInCache();r&&o>=0&&(console.warn("ag-Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled."),o=void 0),o>=0&&this.columnController.isAutoRowHeightActive()&&(console.warn("ag-Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled."),o=void 0);var a={valueCols:t,rowGroupCols:e,pivotCols:n,pivotMode:this.columnController.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.extractSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,datasource:this.datasource,lastAccessedSequence:new i.NumberSequence,overflowSize:1,initialRowCount:1,maxConcurrentRequests:this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests()||0,maxBlocksInCache:o,blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.rowHeight,dynamicRowHeight:r};return a.maxConcurrentRequests>=1||(a.maxConcurrentRequests=2),a.blockSize>=1||(a.blockSize=Tu.DefaultBlockSize),a.initialRowCount>=1||(a.initialRowCount=0),a.overflowSize>=1||(a.overflowSize=1),a},t.prototype.createNodeCache=function(e){var t=new Nu(this.cacheParams,e);this.getContext().wireBean(t),t.addEventListener(i.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this)),e.childrenCache=t},t.prototype.onCacheUpdated=function(){this.updateRowIndexesAndBounds();var e={type:i.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:this.gridOptionsWrapper.isAnimateRows(),keepRenderedRows:!0,newPage:!1,newData:!1};this.eventService.dispatchEvent(e)},t.prototype.updateRowIndexesAndBounds=function(){if(this.cacheExists()){var e=this.rootNode.childrenCache;this.resetRowTops(e),this.setDisplayIndexes(e)}},t.prototype.setDisplayIndexes=function(e){var t=new i.NumberSequence;e.setDisplayIndexes(t,{value:0})},t.prototype.resetRowTops=function(e){var t=new i.NumberSequence;e.forEachNodeDeep(function(e){return e.clearRowTop()},t)},t.prototype.getRow=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRow(e):null},t.prototype.getRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getDisplayIndexEnd():1},t.prototype.getTopLevelRowCount=function(){return this.cacheExists()?this.rootNode.childrenCache.getVirtualRowCount():1},t.prototype.getTopLevelRowDisplayedIndex=function(e){return this.cacheExists()?this.rootNode.childrenCache.getTopLevelRowDisplayedIndex(e):e},t.prototype.getRowBounds=function(e){return this.cacheExists()?this.rootNode.childrenCache.getRowBounds(e):{rowTop:0,rowHeight:this.rowHeight}},t.prototype.getRowIndexAtPixel=function(e){return 0===e?0:this.cacheExists()?this.rootNode.childrenCache.getRowIndexAtPixel(e):0},t.prototype.getCurrentPageHeight=function(){return this.rowHeight*this.getRowCount()},t.prototype.isEmpty=function(){return!1},t.prototype.isRowsToRender=function(){return this.cacheExists()&&this.getRowCount()>0},t.prototype.getType=function(){return i.Constants.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.forEachNode=function(e){this.cacheExists()&&this.rootNode.childrenCache.forEachNodeDeep(e)},t.prototype.executeOnCache=function(e,t){if(this.cacheExists()){var n=this.rootNode.childrenCache.getChildCache(e);n&&t(n)}},t.prototype.purgeCache=function(e){void 0===e&&(e=[]),this.executeOnCache(e,function(e){return e.purgeCache()})},t.prototype.getNodesInRangeForSelection=function(e,t){return i._.exists(e)&&e.parent!==t.parent?[]:t.parent.childrenCache.getRowNodesInRange(e,t)},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode(function(n){n.id===e&&(t=n),n.detailNode&&n.detailNode.id===e&&(t=n.detailNode)}),t},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.extractSortModel=function(){var e=this.sortController.getSortModel();if(this.gridOptionsWrapper.isTreeData())return e;for(var t=this.toValueObjects(this.columnController.getRowGroupColumns()),n=-1,r=0;r-1){var o=t.map(function(t){return{colId:t.field,sort:e[n].sort}});e.splice(n,1);var a=function(t){var r=o[t];if(e.some(function(e){return e.colId===r.colId}))return"continue";e.splice(n++,0,r)};for(r=0;r-1&&(e[r].colId=e[r].colId.substr(s.length))}return e},t.prototype.isSortingWithValueColumn=function(e){for(var t=this.columnController.getValueColumns().map(function(e){return e.getColId()}),n=0;n-1)return!0;return!1},t.prototype.isSortingWithSecondaryColumn=function(e){if(!this.columnController.getSecondaryColumns())return!1;for(var t=this.columnController.getSecondaryColumns().map(function(e){return e.getColId()}),n=0;n-1)return!0;return!1},t.prototype.cacheExists=function(){return i._.exists(this.rootNode)&&i._.exists(this.rootNode.childrenCache)},t.prototype.createDetailNode=function(e){if(i._.exists(e.detailNode))return e.detailNode;var t=new i.RowNode;this.getContext().wireBean(t),t.detail=!0,t.selectable=!1,t.parent=e,i._.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1;var n=this.gridOptionsWrapper.getRowHeightForNode(t).height;return t.rowHeight=n||200,e.detailNode=t,t},t.prototype.isLoading=function(){return!!this.rowNodeBlockLoader&&this.rowNodeBlockLoader.isLoading()},Ru([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ru([i.Autowired("eventService")],t.prototype,"eventService",void 0),Ru([i.Autowired("columnController")],t.prototype,"columnController",void 0),Ru([i.Autowired("filterManager")],t.prototype,"filterManager",void 0),Ru([i.Autowired("sortController")],t.prototype,"sortController",void 0),Ru([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),Ru([i.Autowired("columnApi")],t.prototype,"columnApi",void 0),Ru([i.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),Ru([i.PostConstruct],t.prototype,"postConstruct",null),Ru([i.PreDestroy],t.prototype,"destroyDatasource",null),Ru([Fu(0,i.Qualifier("loggerFactory"))],t.prototype,"setBeans",null),t=Ru([i.Bean("rowModel")],t)}(i.BeanStub),zu={moduleName:i.ModuleNames.ServerSideRowModelModule,rowModels:{serverSide:Iu},dependantModules:[p]};!function(e){e[e.PROVIDED_LIST=0]="PROVIDED_LIST",e[e.PROVIDED_CB=1]="PROVIDED_CB",e[e.NOT_PROVIDED=2]="NOT_PROVIDED"}(Is||(Is={}));var Bu,ju=function(){function e(e,t,n,r,o,a,s,l,c){this.suppressSorting=o,this.colDef=e,this.valueGetter=n,this.doesRowPassOtherFilters=r,this.modelUpdatedFunc=a,this.isLoadingFunc=s,this.valueFormatterService=l,this.column=c,t.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=t),this.filterParams=this.colDef.filterParams?this.colDef.filterParams:{},i._.exists(this.filterParams)&&i._.exists(this.filterParams.values)?(this.valuesType=Array.isArray(this.filterParams.values)?Is.PROVIDED_LIST:Is.PROVIDED_CB,this.showingAvailableOnly=!0!==this.filterParams.suppressRemoveEntries):(this.valuesType=Is.NOT_PROVIDED,this.showingAvailableOnly=!0),this.createAllUniqueValues(),this.createAvailableUniqueValues(),this.displayedValues=this.availableUniqueValues,this.miniFilter=null,this.selectedValuesMap={},this.selectAllUsingMiniFilter(),this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:i.TextFilter.DEFAULT_FORMATTER}return e.prototype.refreshAfterNewRowsLoaded=function(e,t){this.createAllUniqueValues(),this.refreshSelection(e,t)},e.prototype.refreshValues=function(e,t,n){this.setValues(e),this.refreshSelection(t,n)},e.prototype.refreshSelection=function(e,t){this.createAvailableUniqueValues();var n=Object.keys(this.selectedValuesMap);this.selectedValuesMap={},this.processMiniFilter(),e?this.setModel(n,t):this.selectAllUsingMiniFilter()},e.prototype.refreshAfterAnyFilterChanged=function(){this.showingAvailableOnly&&(this.createAvailableUniqueValues(),this.processMiniFilter())},e.prototype.createAllUniqueValues=function(){if(this.areValuesSync()){var e=this.extractSyncValuesToUse();this.setValues(e),this.filterValuesPromise=i.Promise.resolve([])}else{this.filterValuesExternalPromise=i.Promise.external(),this.filterValuesPromise=this.filterValuesExternalPromise.promise,this.isLoadingFunc(!0),this.setValues([]);var t=this.filterParams.values,n={success:this.onAsyncValuesLoaded.bind(this),colDef:this.colDef};window.setTimeout(function(){return t(n)},0)}},e.prototype.onAsyncValuesLoaded=function(e){this.modelUpdatedFunc(e),this.isLoadingFunc(!1),this.filterValuesExternalPromise.resolve(e)},e.prototype.areValuesSync=function(){return this.valuesType==Is.PROVIDED_LIST||this.valuesType==Is.NOT_PROVIDED},e.prototype.setValuesType=function(e){this.valuesType=e},e.prototype.getValuesType=function(){return this.valuesType},e.prototype.setValues=function(e){this.allUniqueValues=e,this.suppressSorting||this.sortValues(this.allUniqueValues)},e.prototype.extractSyncValuesToUse=function(){var e;if(this.valuesType==Is.PROVIDED_LIST)e=Array.isArray(this.filterParams.values)?i._.toStrings(this.filterParams.values):this.allUniqueValues;else{if(this.valuesType==Is.PROVIDED_CB)throw Error("ag-grid: Error extracting values to use. We should not extract the values synchronously when using a callback for the filterParams.values");var t=this.getUniqueValues(!1);e=i._.toStrings(t)}return e},e.prototype.createAvailableUniqueValues=function(){if(!this.showingAvailableOnly||this.valuesType==Is.PROVIDED_LIST||this.valuesType==Is.PROVIDED_CB)this.availableUniqueValues=this.allUniqueValues;else{var e=this.getUniqueValues(!0);this.availableUniqueValues=i._.toStrings(e),this.sortValues(this.availableUniqueValues)}},e.prototype.sortValues=function(e){this.filterParams&&this.filterParams.comparator?e.sort(this.filterParams.comparator):this.colDef.comparator?e.sort(this.colDef.comparator):e.sort(i._.defaultComparator)},e.prototype.getUniqueValues=function(e){var t=this,n={},r=[];if(!this.clientSideRowModel)return console.error("ag-Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),[];function o(e){n.hasOwnProperty(e)||(r.push(e),n[e]=1)}return this.clientSideRowModel.forEachLeafNode(function(n){if(n.data){var r=t.valueGetter(n);if(t.colDef.keyCreator&&(r=t.colDef.keyCreator({value:r})),""!==r&&void 0!==r||(r=null),!e||t.doesRowPassOtherFilters(n))if(null!=r&&Array.isArray(r))for(var i=0;i=0},n=0,r=this.availableUniqueValues.length;n=0&&this.selectValue(o)}}else this.selectAllUsingMiniFilter()},e.prototype.onFilterValuesReady=function(e){this.filterValuesPromise.firstOneOnly(e)},e}(),Vu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hu=function(e){function t(n,r){var o=e.call(this,t.TEMPLATE)||this;return o.selected=!0,o.value=n,o.column=r,o}return Vu(t,e),t.prototype.useCellRenderer=function(e,t,n){var r=this.userComponentFactory.newCellRenderer(e.filterParams,n);if(null!=r)i._.bindCellRendererToHtmlElement(r,t);else if(null==n.valueFormatted&&null==n.value){var o=this.gridOptionsWrapper.getLocaleTextFunc();t.innerText="("+o("blanks","Blanks")+")"}else t.innerText=null!=n.valueFormatted?n.valueFormatted:n.value;return r},t.prototype.init=function(){var e=this;this.eCheckedIcon=i._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=i._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eCheckbox=this.queryForHtmlElement(".ag-filter-checkbox"),this.gridOptionsWrapper.useNativeCheckboxes()&&(this.eNativeCheckbox=document.createElement("input"),this.eNativeCheckbox.type="checkbox",this.eNativeCheckbox.className="ag-native-checkbox",this.eCheckbox.appendChild(this.eNativeCheckbox)),this.eClickableArea=this.getGui(),this.updateCheckboxIcon(),this.render();this.addDestroyableEventListener(this.eClickableArea,"click",function(n){n.preventDefault(),i._.addAgGridEventPath(n),e.selected=!e.selected,e.updateCheckboxIcon();var r={type:t.EVENT_SELECTED};return e.dispatchEvent(r)})},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){this.selected=e,this.updateCheckboxIcon()},t.prototype.updateCheckboxIcon=function(){this.gridOptionsWrapper.useNativeCheckboxes()?this.eNativeCheckbox.checked=this.isSelected():(i._.clearElement(this.eCheckbox),this.isSelected()?this.eCheckbox.appendChild(this.eCheckedIcon):this.eCheckbox.appendChild(this.eUncheckedIcon))},t.prototype.render=function(){var e=this,t=this.queryForHtmlElement(".ag-filter-value"),n=this.valueFormatterService.formatValue(this.column,null,null,this.value),r=this.column.getColDef(),o={value:this.value,valueFormatted:n,api:this.gridOptionsWrapper.getApi()},i=this.useCellRenderer(r,t,o);i&&i.then(function(t){t&&t.destroy&&e.addDestroyFunc(t.destroy.bind(t))})},t.EVENT_SELECTED="selected",t.TEMPLATE='',Wu([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Wu([i.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Wu([i.Autowired("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Wu([i.PostConstruct],t.prototype,"init",null),t}(i.Component),Gu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.CHECKED=0]="CHECKED",e[e.UNCHECKED=1]="UNCHECKED",e[e.INTERMEDIATE=2]="INTERMEDIATE"}(Bu||(Bu={}));var qu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gu(t,e),t.prototype.updateUiVisibility=function(){},t.prototype.createBodyTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();return'
'+e("loadingOoo","Loading...")+'
\n
\n \n \n
'},t.prototype.resetUiToDefaults=function(){this.setMiniFilter(null),this.valueModel.setModel(null,!0),this.selectEverything()},t.prototype.setModelIntoUi=function(e){if(this.resetUiToDefaults(),e){if(e instanceof Array){i._.doOnce(function(){return console.warn("ag-Grid: The Set Filter Model is no longer an array and models as arrays are deprecated. Please check the docs on what the set filter model looks like. Future versions of ag-Grid will have the array version of the model removed.")},"setFilter.modelAsArray")}var t=e instanceof Array?e:e.values;this.valueModel.setModel(t),this.updateSelectAll(),this.virtualList.refresh()}},t.prototype.getModelFromUi=function(){var e=this.valueModel.getModel();return e?this.gridOptionsWrapper.isEnableOldSetFilterModel()?e:{values:e,filterType:"set"}:null},t.prototype.areModelsEqual=function(e,t){return!1},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.checkSetFilterDeprecatedParams(t),this.setFilterParams=t,this.eCheckedIcon=i._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eUncheckedIcon=i._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.setFilterParams.column),this.eIndeterminateCheckedIcon=i._.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.setFilterParams.column),this.gridOptionsWrapper.useNativeCheckboxes()&&(this.eSelectAllCheckbox=document.createElement("input"),this.eSelectAllCheckbox.type="checkbox",this.eSelectAllCheckbox.className="ag-native-checkbox",this.eSelectAll.appendChild(this.eSelectAllCheckbox)),this.initialiseFilterBodyUi(),!t.suppressSyncValuesAfterDataChange&&this.rowModel.getType()===i.Constants.ROW_MODEL_TYPE_CLIENT_SIDE&&!t.values&&this.setupSyncValuesAfterDataChange()},t.prototype.checkSetFilterDeprecatedParams=function(e){if(e.syncValuesLikeExcel){i._.doOnce(function(){return console.warn("ag-Grid: since version 22.x, the Set Filter param syncValuesLikeExcel is no longer used as this is the default behaviour. To turn this default behaviour off, use the param suppressSyncValuesAfterDataChange")},"syncValuesLikeExcel deprecated")}if(e.selectAllOnMiniFilter){i._.doOnce(function(){return console.warn("ag-Grid: since version 22.x, the Set Filter param selectAllOnMiniFilter is no longer used as this is the default behaviour.")},"selectAllOnMiniFilter deprecated")}},t.prototype.resetFilterValuesAndReapplyModel=function(){var e=this.getModel();this.resetFilterValues(),e&&this.setModel(e)},t.prototype.setupSyncValuesAfterDataChange=function(){var e=this,t=this.setFilterParams.column;this.addDestroyableEventListener(this.eventService,i.Events.EVENT_ROW_DATA_UPDATED,function(){e.resetFilterValuesAndReapplyModel()}),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_CELL_VALUE_CHANGED,function(n){n.column===t&&e.resetFilterValuesAndReapplyModel()})},t.prototype.updateCheckboxIcon=function(){if(this.gridOptionsWrapper.useNativeCheckboxes())this.eSelectAllCheckbox.checked=this.selectAllState===Bu.CHECKED,this.eSelectAllCheckbox.indeterminate=this.selectAllState===Bu.INTERMEDIATE;else{i._.clearElement(this.eSelectAll);var e=void 0;switch(this.selectAllState){case Bu.INTERMEDIATE:e=this.eIndeterminateCheckedIcon;break;case Bu.CHECKED:e=this.eCheckedIcon;break;case Bu.UNCHECKED:e=this.eUncheckedIcon;break;default:e=this.eCheckedIcon}this.eSelectAll.appendChild(e)}},t.prototype.setLoading=function(e){i._.setDisplayed(this.eFilterLoading,e)},t.prototype.initialiseFilterBodyUi=function(){var e=this;this.virtualList=new i.VirtualList,this.getContext().wireBean(this.virtualList);var t=this.getRefElement("eSetFilterList");t&&t.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator(this.createSetListItem.bind(this)),this.valueModel=new ju(this.setFilterParams.colDef,this.setFilterParams.rowModel,this.setFilterParams.valueGetter,this.setFilterParams.doesRowPassOtherFilter,this.setFilterParams.suppressSorting,function(t,n){return e.setFilterValues(t,!n,!!n,n)},this.setLoading.bind(this),this.valueFormatterService,this.setFilterParams.column),this.virtualList.setModel(new Yu(this.valueModel)),i._.setDisplayed(this.getGui().querySelector("#ag-mini-filter"),!this.setFilterParams.suppressMiniFilter),this.eMiniFilter.value=this.valueModel.getMiniFilter(),this.addDestroyableEventListener(this.eMiniFilter,"input",this.onMiniFilterInput.bind(this)),this.addDestroyableEventListener(this.eMiniFilter,"keypress",this.onMiniFilterKeyPress.bind(this)),this.updateCheckboxIcon(),this.addDestroyableEventListener(this.eSelectAllContainer,"click",this.onSelectAll.bind(this)),this.updateSelectAll(),this.setFilterParams.suppressSelectAll&&i._.setDisplayed(this.eSelectAllContainer,!1),this.virtualList.refresh()},t.prototype.createSetListItem=function(e){var t=this,n=new Hu(e,this.setFilterParams.column);return this.getContext().wireBean(n),n.setSelected(this.valueModel.isValueSelected(e)),n.addEventListener(Hu.EVENT_SELECTED,function(){t.onItemSelected(e,n.isSelected())}),n},t.prototype.afterGuiAttached=function(e){this.virtualList.refresh(),this.eMiniFilter.focus()},t.prototype.refreshVirtualList=function(){this.virtualList.refresh()},t.prototype.applyModel=function(){var t=this,n=e.prototype.applyModel.call(this),r=this.getModel();return r?(this.appliedModelValuesMapped={},r.values.forEach(function(e){return t.appliedModelValuesMapped[e]=!0})):this.appliedModelValuesMapped=void 0,n},t.prototype.doesFilterPass=function(e){if(!this.appliedModelValuesMapped)return!0;var t=this.setFilterParams.valueGetter(e.node);if(this.setFilterParams.colDef.keyCreator&&(t=this.setFilterParams.colDef.keyCreator({value:t})),t=i._.makeNull(t),Array.isArray(t)){for(var n=0;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$u=function(e){function t(){return e.call(this,'')||this}return Xu(t,e),t.prototype.init=function(e){this.eFloatingFilterText.disabled=!0,this.column=e.column},t.prototype.onParentModelChanged=function(e){var t=this;if(e){var n=e instanceof Array?e:e.values;if(n&&0!==n.length){var r=n.map(function(e){var n=t.valueFormatterService.formatValue(t.column,null,null,e);return null!=n?n:e}),o=r.length>10?r.slice(0,10).concat("..."):r,i="("+n.length+") "+o.join(",");this.eFloatingFilterText.value=i}else this.eFloatingFilterText.value=""}else this.eFloatingFilterText.value=""},Ku([i.RefSelector("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Ku([i.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),t}(i.Component),Zu={moduleName:i.ModuleNames.SetFilterModule,beans:[],userComponents:[{componentName:"agSetColumnFilter",componentClass:qu},{componentName:"agSetColumnFloatingFilter",componentClass:$u}],dependantModules:[p]},Ju=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qu=function(){function e(){this.allComponents={}}return e.prototype.registerStatusPanel=function(e,t){this.allComponents[e]=t},e.prototype.getStatusPanel=function(e){return this.allComponents[e]},e=Ju([i.Bean("statusBarService")],e)}(),ed=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),td=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nd=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ed(t,e),t.prototype.postConstruct=function(){if(this.gridOptions.statusBar&&this.gridOptions.statusBar.statusPanels){var e=this.gridOptions.statusBar.statusPanels.filter(function(e){return"left"===e.align});this.createAndRenderComponents(e,this.eStatusBarLeft);var t=this.gridOptions.statusBar.statusPanels.filter(function(e){return"center"===e.align});this.createAndRenderComponents(t,this.eStatusBarCenter);var n=this.gridOptions.statusBar.statusPanels.filter(function(e){return!e.align||"right"===e.align});this.createAndRenderComponents(n,this.eStatusBarRight)}},t.prototype.createAndRenderComponents=function(e,t){var n=this,r=[];e.forEach(function(e){var t={api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()},o=n.userComponentFactory.newStatusPanelComponent(e,t);r.push({key:e.key||e.statusPanel,promise:o})}),i.Promise.all(r.map(function(e){return e.promise})).then(function(){r.forEach(function(e){e.promise.then(function(r){var o=function(){r.destroy&&r.destroy()};n.isAlive()?(n.statusBarService.registerStatusPanel(e.key,r),t.appendChild(r.getGui()),n.addDestroyFunc(o)):o()})})})},t.TEMPLATE='
\n
\n
\n
\n
',td([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),td([i.Autowired("gridOptions")],t.prototype,"gridOptions",void 0),td([i.Autowired("userComponentFactory")],t.prototype,"userComponentFactory",void 0),td([i.Autowired("statusBarService")],t.prototype,"statusBarService",void 0),td([i.RefSelector("eStatusBarLeft")],t.prototype,"eStatusBarLeft",void 0),td([i.RefSelector("eStatusBarCenter")],t.prototype,"eStatusBarCenter",void 0),td([i.RefSelector("eStatusBarRight")],t.prototype,"eStatusBarRight",void 0),td([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),rd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),od=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},id=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return rd(t,e),t.prototype.setLabel=function(e,t){this.setDisplayed(!1);var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eLabel.innerHTML=n(e,t)},t.prototype.setValue=function(e){this.eValue.innerHTML=e},t.TEMPLATE='
\n : \n \n
',od([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),od([i.RefSelector("eLabel")],t.prototype,"eLabel",void 0),od([i.RefSelector("eValue")],t.prototype,"eValue",void 0),t}(i.Component),ad=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ld=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ad(t,e),t.prototype.postConstruct=function(){"clientSide"===this.gridApi.getModel().getType()?(this.setLabel("totalAndFilteredRows","Rows"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-and-filtered-row-count"),this.setDisplayed(!0),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_MODEL_UPDATED,this.onDataChanged.bind(this))):console.warn("ag-Grid: agTotalAndFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=i._.formatNumberCommas(this.getFilteredRowCountValue()),t=i._.formatNumberCommas(this.getTotalRowCount());if(e===t)this.setValue(e);else{var n=this.gridOptionsWrapper.getLocaleTextFunc();this.setValue(e+" "+n("of","of")+" "+t)}},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter(function(t){t.group||e++}),e},t.prototype.getTotalRowCount=function(){var e=0;return this.gridApi.forEachNode(function(t){t.group||e++}),e},t.prototype.init=function(){},sd([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),sd([i.Autowired("eventService")],t.prototype,"eventService",void 0),sd([i.PostConstruct],t.prototype,"postConstruct",null),t}(id),cd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cd(t,e),t.prototype.postConstruct=function(){if(this.setLabel("filteredRows","Filtered"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(i.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agFilteredRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){var e=this.getTotalRowCountValue(),t=this.getFilteredRowCountValue();this.setValue(i._.formatNumberCommas(t)),this.setDisplayed(e!==t)},t.prototype.getTotalRowCountValue=function(){var e=0;return this.gridApi.forEachNode(function(t){return e+=1}),e},t.prototype.getFilteredRowCountValue=function(){var e=0;return this.gridApi.forEachNodeAfterFilter(function(t){t.group||(e+=1)}),e},t.prototype.init=function(){},ud([i.Autowired("eventService")],t.prototype,"eventService",void 0),ud([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),ud([i.PostConstruct],t.prototype,"postConstruct",null),t}(id),hd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hd(t,e),t.prototype.postConstruct=function(){if(this.setLabel("totalRows","Total Rows"),"clientSide"===this.gridApi.getModel().getType()){this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-total-row-count"),this.setDisplayed(!0);var e=this.onDataChanged.bind(this);this.eventService.addEventListener(i.Events.EVENT_MODEL_UPDATED,e)}else console.warn("ag-Grid: agTotalRowCountComponent should only be used with the client side row model.")},t.prototype.onDataChanged=function(){this.setValue(i._.formatNumberCommas(this.getRowCountValue()))},t.prototype.getRowCountValue=function(){var e=0;return this.gridApi.forEachLeafNode(function(t){return e+=1}),e},t.prototype.init=function(){},pd([i.Autowired("eventService")],t.prototype,"eventService",void 0),pd([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),pd([i.PostConstruct],t.prototype,"postConstruct",null),t}(id),gd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),md=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gd(t,e),t.prototype.postConstruct=function(){if(this.isValidRowModel()){this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count");var e=this.gridApi.getSelectedRows().length;this.setValue(i._.formatNumberCommas(e)),this.setDisplayed(e>0);var t=this.onRowSelectionChanged.bind(this);this.eventService.addEventListener(i.Events.EVENT_MODEL_UPDATED,t),this.eventService.addEventListener(i.Events.EVENT_SELECTION_CHANGED,t)}else console.warn("ag-Grid: agSelectedRowCountComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.onRowSelectionChanged=function(){var e=this.gridApi.getSelectedRows().length;this.setValue(i._.formatNumberCommas(e)),this.setDisplayed(e>0)},t.prototype.init=function(){},md([i.Autowired("eventService")],t.prototype,"eventService",void 0),md([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),md([i.PostConstruct],t.prototype,"postConstruct",null),t}(id),yd=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cd=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return yd(t,e),t.prototype.postConstruct=function(){this.isValidRowModel()?(this.avgAggregationComp.setLabel("average","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,i.Events.EVENT_MODEL_UPDATED,this.onRangeSelectionChanged.bind(this))):console.warn("ag-Grid: agAggregationComponent should only be used with the client and server side row model.")},t.prototype.isValidRowModel=function(){var e=this.gridApi.getModel().getType();return"clientSide"===e||"serverSide"===e},t.prototype.init=function(){},t.prototype.setAggregationComponentValue=function(e,t,n){var r=this.getAggregationValueComponent(e);i._.exists(r)&&r&&(r.setValue(i._.formatNumberTwoDecimalPlacesAndCommas(t)),r.setDisplayed(n))},t.prototype.getAggregationValueComponent=function(e){var t=e+"AggregationComp",n=null,r=i._.exists(this.gridOptions.statusBar)&&this.gridOptions.statusBar?i._.find(this.gridOptions.statusBar.statusPanels,function(e){return"agAggregationComponent"===e.statusPanel}):null;return i._.exists(r)&&r?(!i._.exists(r.statusPanelParams)||i._.exists(r.statusPanelParams)&&i._.exists(r.statusPanelParams.aggFuncs)&&i._.exists(i._.find(r.statusPanelParams.aggFuncs,function(t){return t===e})))&&(n=this[t]):n=this[t],n},t.prototype.onRangeSelectionChanged=function(){var e=this,t=this.rangeController?this.rangeController.getCellRanges():void 0,n=0,r=0,o=0,a=null,s=null,l={};t&&!i._.missingOrEmpty(t)&&t.forEach(function(t){for(var c=e.rangeController.getRangeStartRow(t),u=e.rangeController.getRangeEndRow(t);;){if(i._.missing(c)||!c||e.rowPositionUtils.before(u,c)||!c||!t.columns)break;t.columns.forEach(function(t){if(null!==c){var u=e.cellPositionUtils.createId({rowPinned:c.rowPinned,column:t,rowIndex:c.rowIndex});if(!l[u]){l[u]=!0;var d=e.rowRenderer.getRowNode(c);if(!i._.missing(d)){var h=e.valueService.getValue(t,d);i._.missing(h)||""===h||(h.value&&(h=h.value),"string"===typeof h&&(h=Number(h)),"number"!==typeof h||isNaN(h)||(n+=h,(null===s||h>s)&&(s=h),(null===a||h1,u=o>1;this.setAggregationComponentValue("count",r,c),this.setAggregationComponentValue("sum",n,u),this.setAggregationComponentValue("min",a,u),this.setAggregationComponentValue("max",s,u),this.setAggregationComponentValue("avg",n/o,u)},t.TEMPLATE='
\n \n \n \n \n \n
',bd([i.Autowired("eventService")],t.prototype,"eventService",void 0),bd([i.Optional("rangeController")],t.prototype,"rangeController",void 0),bd([i.Autowired("valueService")],t.prototype,"valueService",void 0),bd([i.Autowired("cellNavigationService")],t.prototype,"cellNavigationService",void 0),bd([i.Autowired("rowRenderer")],t.prototype,"rowRenderer",void 0),bd([i.Autowired("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),bd([i.Autowired("gridOptions")],t.prototype,"gridOptions",void 0),bd([i.Autowired("gridApi")],t.prototype,"gridApi",void 0),bd([i.Autowired("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),bd([i.Autowired("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),bd([i.RefSelector("sumAggregationComp")],t.prototype,"sumAggregationComp",void 0),bd([i.RefSelector("countAggregationComp")],t.prototype,"countAggregationComp",void 0),bd([i.RefSelector("minAggregationComp")],t.prototype,"minAggregationComp",void 0),bd([i.RefSelector("maxAggregationComp")],t.prototype,"maxAggregationComp",void 0),bd([i.RefSelector("avgAggregationComp")],t.prototype,"avgAggregationComp",void 0),bd([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),wd={moduleName:i.ModuleNames.StatusBarModule,beans:[Qu],agStackComponents:[{componentName:"AgStatusBar",componentClass:nd},{componentName:"AgNameValue",componentClass:id}],userComponents:[{componentName:"agAggregationComponent",componentClass:Cd},{componentName:"agSelectedRowCountComponent",componentClass:vd},{componentName:"agTotalRowCountComponent",componentClass:fd},{componentName:"agFilteredRowCountComponent",componentClass:dd},{componentName:"agTotalAndFilteredRowCountComponent",componentClass:ld}],dependantModules:[p]},xd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_d=function(){function e(){this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}return e.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},e.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.eventService.addEventListener(i.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this))},e.prototype.start=function(){this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},e.prototype.isLastRowFound=function(){return!0},e.prototype.destroyDatasource=function(){this.viewportDatasource&&(this.viewportDatasource.destroy&&this.viewportDatasource.destroy(),this.rowRenderer.datasourceChanged(),this.firstRow=-1,this.lastRow=-1)},e.prototype.calculateFirstRow=function(e){var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),n=this.gridOptionsWrapper.getViewportRowModelPageSize(),r=e-t;return r<0?0:Math.floor(r/n)*n},e.prototype.calculateLastRow=function(e){if(-1===e)return e;var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),n=this.gridOptionsWrapper.getViewportRowModelPageSize(),r=e+t,o=Math.ceil(r/n)*n,i=this.rowCount-1;return Math.min(o,i)},e.prototype.onViewportChanged=function(e){var t=this.calculateFirstRow(e.firstRow),n=this.calculateLastRow(e.lastRow);this.firstRow===t&&this.lastRow===n||(this.firstRow=t,this.lastRow=n,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},e.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach(function(t){var n=parseInt(t,10);(ne.lastRow)&&delete e.rowNodesByIndex[n]})},e.prototype.setViewportDatasource=function(e){this.destroyDatasource(),this.viewportDatasource=e,this.rowCount=0,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("ag-Grid: viewport is missing init method.")},e.prototype.getType=function(){return i.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},e.prototype.getRowNode=function(e){var t=null;return this.forEachNode(function(n){n.id===e&&(t=n)}),t},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowIndexAtPixel=function(e){return 0!==this.rowHeight?Math.floor(e/this.rowHeight):0},e.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(e){return e},e.prototype.getCurrentPageHeight=function(){return this.rowCount*this.rowHeight},e.prototype.isEmpty=function(){return this.rowCount>0},e.prototype.isRowsToRender=function(){return this.rowCount>0},e.prototype.getNodesInRangeForSelection=function(e,t){var n=i._.missing(e)?0:e.rowIndex,r=t.rowIndex,o=nthis.lastRow,a=rthis.lastRow;if(o||a)return[];for(var s=[],l=n<=r?r:n,c=n<=r?n:r;c<=l;c++)s.push(this.rowNodesByIndex[c]);return s},e.prototype.forEachNode=function(e){var t=this,n=0;Object.keys(this.rowNodesByIndex).forEach(function(r){var o=parseInt(r,10),i=t.rowNodesByIndex[o];e(i,n),n++})},e.prototype.setRowData=function(e){var t=this;i._.iterateObject(e,function(e,n){var r=parseInt(e,10);if(r>=t.firstRow&&r<=t.lastRow){var o=t.rowNodesByIndex[r];i._.missing(o)&&(o=t.createBlankRowNode(r),t.rowNodesByIndex[r]=o),o.setDataAndId(n,r.toString())}})},e.prototype.createBlankRowNode=function(e){var t=new i.RowNode;return this.context.wireBean(t),t.setRowHeight(this.rowHeight),t.setRowTop(this.rowHeight*e),t.setRowIndex(e),t},e.prototype.setRowCount=function(e,t){if(void 0===t&&(t=!1),e!==this.rowCount){this.rowCount=e;var n={type:i.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newData:!1,newPage:!1,keepRenderedRows:t,animate:!1};this.eventService.dispatchEvent(n)}},e.prototype.isRowPresent=function(e){return!1},xd([i.Autowired("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),xd([i.Autowired("eventService")],e.prototype,"eventService",void 0),xd([i.Autowired("selectionController")],e.prototype,"selectionController",void 0),xd([i.Autowired("context")],e.prototype,"context",void 0),xd([i.Autowired("gridApi")],e.prototype,"gridApi",void 0),xd([i.Autowired("columnApi")],e.prototype,"columnApi",void 0),xd([i.Autowired("rowRenderer")],e.prototype,"rowRenderer",void 0),xd([i.PostConstruct],e.prototype,"init",null),xd([i.PreDestroy],e.prototype,"destroyDatasource",null),e=xd([i.Bean("rowModel")],e)}(),Sd={moduleName:i.ModuleNames.ViewportRowModelModule,rowModels:{viewport:_d},dependantModules:[p]};i.ModuleRegistry.register(He),i.ModuleRegistry.register(jn),i.ModuleRegistry.register(nr),i.ModuleRegistry.register(Zc),i.ModuleRegistry.register(tu),i.ModuleRegistry.register(yu),i.ModuleRegistry.register($c),i.ModuleRegistry.register(Mu),i.ModuleRegistry.register(ve),i.ModuleRegistry.register(zu),i.ModuleRegistry.register(Zu),i.ModuleRegistry.register(We),i.ModuleRegistry.register(wd),i.ModuleRegistry.register(Sd),t.LicenseManager=s},function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2=t.f?o():e.fonts.load(function(e){return M(e)+" "+e.f+"00 300px "+_(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(i,25)},function(){o()})}()}),o=null,i=new Promise(function(e,n){o=setTimeout(n,t.f)});Promise.race([i,r]).then(function(){o&&(clearTimeout(o),o=null),t.g(t.a)},function(){t.j(t.a)})};var F={D:"serif",C:"sans-serif"},I=null;function z(){if(null===I){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);I=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return I}function B(e,t,n){for(var r in F)if(F.hasOwnProperty(r)&&t===e.f[F[r]]&&n===e.f[F[r]])return!0;return!1}function j(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=z()&&B(e,n,r)),t?s()-e.A>=e.w?z()&&B(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?V(e,e.v):V(e,e.B):function(e){setTimeout(a(function(){j(this)},e),50)}(e):V(e,e.v)}function V(e,t){setTimeout(a(function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)},e),0)}function W(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),j(this)};var H=null;function G(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),T(e,"active")):A(e.a))}function U(e){this.j=e,this.a=new k,this.h=0,this.f=this.g=!0}function q(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=o||null,s=r||{};if(0===n.length&&i)A(t.a);else{t.f+=n.length,i&&(t.j=i);var l,c=[];for(l=0;l3&&n&&n(i.responseText,i)},i.send(r)}catch(c){console&&console.log(c)}}var h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),this.init(t,n),this.type="backend"}return Object(o.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=function(e){return l.call(c.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,parsePayload:function(e,t,n){return Object(i.a)({},t,n||"")},crossDomain:!1,ajax:d})}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var o=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(o,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"===typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var o=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(o,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,function(r,o){if(o.status>=500&&o.status<600)return t("failed loading "+e,!0);if(o.status>=400&&o.status<500)return t("failed loading "+e,!1);var i,a;try{i=n.options.parse(r,e)}catch(s){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,i)})}},{key:"create",value:function(e,t,n,r){var o=this;"string"===typeof e&&(e=[e]);var i=this.options.parsePayload(t,n,r);e.forEach(function(e){var n=o.services.interpolator.interpolate(o.options.addPath,{lng:e,ns:t});o.options.ajax(n,o.options,function(e,t){},i)})}}]),e}();h.type="backend",t.a=h},,,,,,,,function(e,t,n){"use strict";var r=n(399),o=n(406),i=n(202);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){var r=n(407),o=n(408),i=n(409),a=n(411);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(e,t){for(var n=0;n=0;i--)if(y[i]!=b[i])return!1;for(i=y.length-1;i>=0;i--)if(p=y[i],!u(e[p],t[p],n))return!1;return!0}(e,t,p))}function d(e){return null===e||void 0===e}function h(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=u},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(86),o=n(34),i=n.n(o),a=n(0),s=n.n(a);function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?c({},e,t):{}}function y(e){var t=e.forwardedRef,n=h(e,["forwardedRef"]),o=n.icon,i=n.mask,a=n.symbol,s=n.className,l=n.title,u=n.titleId,f=m(o),C=v("classes",[].concat(p(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,s=e.listItem,l=e.flip,u=e.size,d=e.rotation,h=e.pull,p=(c(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":s,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(u),"undefined"!==typeof u&&null!==u),c(t,"fa-rotate-".concat(d),"undefined"!==typeof d&&null!==d&&0!==d),c(t,"fa-pull-".concat(h),"undefined"!==typeof h&&null!==h),c(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(p).map(function(e){return p[e]?e:null}).filter(function(e){return e})}(n)),p(s.split(" ")))),w=v("transform","string"===typeof n.transform?r.d.transform(n.transform):n.transform),x=v("mask",m(i)),_=Object(r.b)(f,d({},C,{},w,{},x,{symbol:a,title:l,titleId:u}));if(!_)return function(){var e;!g&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",f),null;var S=_.abstract,M={ref:t};return Object.keys(n).forEach(function(e){y.defaultProps.hasOwnProperty(e)||(M[e]=n[e])}),b(S[0],M)}y.displayName="FontAwesomeIcon",y.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([0,90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object]),swapOpacity:i.a.bool},y.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var b=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var o=(n.children||[]).map(function(n){return e(t,n)}),i=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,r=t.indexOf(":"),o=f(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[f(t)]=r}return e},{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=h(r,["style"]);return i.attrs.style=d({},i.attrs.style,{},s),t.apply(void 0,[n.tag,d({},i.attrs,{},l)].concat(p(o)))}.bind(null,s.a.createElement)},function(e,t,n){var r;r=function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[1],{449:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(450));t.Column2D=o.default;var i=r(n(530));t.Column3D=i.default;var a=r(n(543));t.Line=a.default;var s=r(n(549));t.Area=s.default;var l=r(n(551));t.Bar2D=l.default;var c=r(n(571));t.Bar3D=c.default;var u=r(n(576));t.Pie2D=u.default;var d=r(n(582));t.Pie3D=d.default;var h=r(n(589));t.Doughnut2D=h.default;var p=r(n(591));t.Doughnut3D=p.default;var f=r(n(595));t.Pareto2D=f.default;var g=r(n(606));t.Pareto3D=g.default;var m=r(n(609));t.ScrollCombiDy2D=m.default;var v=r(n(620));t.ScrollCombi2D=v.default;var y=r(n(625));t.ScrollStackedColumn2D=y.default;var b=r(n(629));t.ScrollMSStackedColumn2D=b.default;var C=r(n(633));t.ScrollMSStackedColumn2dLineDY=C.default;var w=r(n(637));t.ScrollStackedBar2D=w.default;var x=r(n(640));t.ScrollArea2D=x.default;var _=r(n(641));t.ScrollLine2D=_.default;var S=r(n(643));t.ScrollColumn2D=S.default;var M=r(n(644));t.ScrollBar2D=M.default;var E=r(n(645));t.Bubble=E.default;var O=r(n(658));t.Scatter=O.default;var A=r(n(659));t.MSStackedColumn2D=A.default;var T=r(n(660));t.StackedArea2D=T.default;var k=r(n(664));t.StackedBar3D=k.default;var D=r(n(669));t.StackedBar2D=D.default;var P=r(n(672));t.StackedColumn3D=P.default;var N=r(n(676));t.StackedColumn2D=N.default;var L=r(n(678));t.MSStackedColumn2DLineDy=L.default;var R=r(n(679));t.StackedColumn3DLineDy=R.default;var F=r(n(684));t.MSColumn3DLineDy=F.default;var I=r(n(685));t.MSCombidy2D=I.default;var z=r(n(686));t.MSCombidy3D=z.default;var B=r(n(688));t.StackedColumn3DLine=B.default;var j=r(n(691));t.StackedColumn2DLine=j.default;var V=r(n(694));t.MSColumnLine3D=V.default;var W=r(n(696));t.MSCombi3D=W.default;var H=r(n(697));t.MSCombi2D=H.default;var G=r(n(698));t.Marimekko=G.default;var U=r(n(703));t.MSArea=U.default;var q=r(n(704));t.MSBar3D=q.default;var Y=r(n(705));t.MSBar2D=Y.default;var X=r(n(706));t.MSLine=X.default;var K=r(n(708));t.MSColumn3D=K.default;var $=r(n(709));t.MSColumn2D=$.default;var Z=r(n(710));t.Spline=Z.default;var J=r(n(713));t.Splinearea=J.default;var Q=r(n(715));t.Msspline=Q.default;var ee=r(n(718));t.MSSplineDy=ee.default;var te=r(n(720));t.Mssplinearea=te.default;var ne=r(n(722));t.StackedColumn2DLineDy=ne.default;var re=r(n(724));t.StackedArea2DLineDy=re.default;var oe={name:"charts",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(o.default),e.addDep(i.default),e.addDep(a.default),e.addDep(s.default),e.addDep(l.default),e.addDep(c.default),e.addDep(u.default),e.addDep(d.default),e.addDep(h.default),e.addDep(p.default),e.addDep(f.default),e.addDep(g.default),e.addDep(m.default),e.addDep(v.default),e.addDep(y.default),e.addDep(b.default),e.addDep(C.default),e.addDep(w.default),e.addDep(x.default),e.addDep(_.default),e.addDep(S.default),e.addDep(M.default),e.addDep(E.default),e.addDep(O.default),e.addDep(A.default),e.addDep(T.default),e.addDep(k.default),e.addDep(D.default),e.addDep(P.default),e.addDep(N.default),e.addDep(L.default),e.addDep(R.default),e.addDep(ne.default),e.addDep(re.default),e.addDep(F.default),e.addDep(I.default),e.addDep(z.default),e.addDep(B.default),e.addDep(j.default),e.addDep(V.default),e.addDep(W.default),e.addDep(H.default),e.addDep(G.default),e.addDep(U.default),e.addDep(q.default),e.addDep(Y.default),e.addDep(X.default),e.addDep(K.default),e.addDep($.default),e.addDep(Z.default),e.addDep(J.default),e.addDep(ee.default),e.addDep(Q.default),e.addDep(te.default)}};t.default=oe},450:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(451)).default;t.default=o},451:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(452)),a=r(n(528)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e),t.getName=function(){return"Column2D"};var n=t.prototype;return n.getName=function(){return"Column2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Column Chart",this.config.singleseries=!0,this.config.defaultDatasetType="column",this.config.enablemousetracking=!0},n.getDSdef=function(){return a.default},t}(i.default);t.default=s},530:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(531)).default;t.default=o},531:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(532)),a=r(n(540)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.defaultZeroPlaneHighlighted=!1,t}(0,o.default)(t,e),t.getName=function(){return"Column3D"};var n=t.prototype;return n.getName=function(){return"Column3D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!0,t.hasLegend=!1,t.singleseries=!0,t.friendlyName="3D Column Chart",t.showplotborder=0,t.enablemousetracking=!0},n.getDSdef=function(){return a.default},t}(i.default);t.default=s},532:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(452)),a=r(n(533)),s=r(n(537)),l=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("canvas",a.default),t.registerFactory("dataset",s.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"SSCartesian3D"};var n=t.prototype;return n.getName=function(){return"SSCartesian3D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!0,t.hasLegend=!1,t.showplotborder=0,t.drawcrosslineontop=0,t.showzeroplaneontop=0},t}(i.default);t.default=l},533:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t;if((0,a.componentFactory)(e,o.default,"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas"))for(var n=0,r=t.length;n2?d:h},e=W.setAnimation({el:N||"rect",attr:o,container:I,label:"canvas",component:this}),N||this.addGraphicalElement("canvasBorderElement",e),F["clip-canvas"]=[p(0,O-oe),p(0,A),p(1,T+oe),p(1,k+ie)],F["clip-canvas-init"]=[p(0,O-oe),p(0,A-ie),1,p(1,k+2*ie)],x=F["clip-canvas"].slice(0),W.setAnimation({el:j,attr:{"clip-rect":x},component:this}),W.setAnimation({el:V,attr:{"clip-rect":x},component:this}),o={x:O,y:A,width:T,height:k,r:J,"stroke-width":0,stroke:"none",fill:(0,a.toRaphaelColor)(G)},t=W.setAnimation({el:L||"rect",attr:o,component:this,label:"canvas",container:I}),L||this.addGraphicalElement("canvasElement",t),i=[g,O,A,"L",O+1.2*q,A-q,O+T-q,A-q,O+T,A,"Z"],n=W.setAnimation({el:z||"path",attr:{path:i,"stroke-width":0,stroke:"none",fill:(0,a.toRaphaelColor)(G)},component:this,callback:U?a.stubFN:v,label:"canvas",container:I}),z||this.addGraphicalElement("canvasBg",n),U?(t.show(),n.show()):(t.hide(),n.hide()),s=O-oe-X-1,l=A+ie+1,c=X,u=k,C=oe+1,w=ie+1,r=W.setAnimation({el:B||"cubepath",attr:{cubepath:[s,l,c,u,C,w],stroke:"none","stroke-width":0,visibility:"hidden",fill:K.replace(a.dropHash,a.HASHSTRING),noGradient:!$},component:this,callback:Y?a.stubFN:y,label:"canvas",container:I}),B||this.addGraphicalElement("canvas3DBase",r),_=W.setAnimation({el:H||"path",attr:{path:[g,O,A,"V",k+A],stroke:f.tintshade(K.replace(a.dropHash,a.HASHSTRING),.05).rgba},component:this,callback:Y?a.stubFN:v,label:"canvas",container:I}),H||this.addGraphicalElement("canvas3dbaseline",_),Y&&(_.show(),b.call(r))},t}(i.default);t.default=C},535:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={"initial.canvas.canvas":{"canvas.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"}]}}},536:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n=Math.atan2;e.define&&e.define([{name:"cubepath",cubepath:function(){var n,o,i,a,s=this,l={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},c=arguments,u=c.length-1,d=c[u],h=function(e,n,o,i,a,s){var l=this,c=l._.cubetop,u=l._.cubeside,d=e,h=n,p=o,f=i,g=a,m=s;return"object"==typeof d||d===t&&h===t&&p===t&&f===t&&g===t&&m===t||(d=(0,r.pluckNumber)(d,l.attrs.x,0),h=(0,r.pluckNumber)(h,l.attrs.y,0),p=(0,r.pluckNumber)(p,l.attrs.width,0),f=(0,r.pluckNumber)(f,l.attrs.height,0),g=(0,r.pluckNumber)(g,l.attrs.xDepth,0),m=(0,r.pluckNumber)(m,l.attrs.yDepth,0),l.attrs.x=d,l.attrs.y=h,l.attrs.width=p,l.attrs.height=f,l.attrs.xDepth=g,l.attrs.yDepth=m,l._attr("path",["M",d+p,h,"l",0,f,-p,0,0,-f,"z"]),c.attr("path",["M",d,h,"l",1,1,p-1,0,0,-1,g,-m,-p,0,"z"]),u.attr("path",["M",d+p-1,h+1,"l",0,f-1,1,0,g,-m,0,-f,-g,m])),this};for(i in d&&d.constructor===e.el.constructor?c[u]=t:d=t,n=s.path(l,d),o=s.path(l,d),(a=s.path(l,d))._.cubetop=n.follow(a,t,"before"),a._.cubeside=o.follow(a,t,"before"),e.fn.cubepath.ca)a.ca[i]=e.fn.cubepath.ca[i];return a._attr=a.attr,a._shadow=a.shadow,a.attr=function(e,n){var r="object"==typeof e,o=n;return r&&(e.cubepath?o=[].concat(e.cubepath):((o=[]).push(e.x),o.push(e.y),o.push(e.width),o.push(e.height),o.push(e.xDepth),o.push(e.yDepth)),e.noGradient!==t&&(a.attrs.noGradient=e.noGradient)),e===t&&o===t?this.attrs:o===t?this.attrs[e]:(r?h.apply(this,o):"drop-shadow"===e&&function(e,t,n,r){var o=this,i=o._.cubetop,a=o._.cubeside;return o.dropshadow&&(i.dropshadow(e,-t,n,r),a.dropshadow(e,-t,n,r)),!1}.apply(this,[].concat(o)),a._attr(e),this)},a.appendTo=function(e){e.appendChild(a._.cubetop),e.appendChild(a._.cubeside),e.appendChild(a)},"object"==typeof c[0]?a.attr(c[0]):h.apply(a,[c[0],c[1],c[2],c[3],c[4],c[5]])},fn:{_getBBox2:function(){var e=this._.cubeside.getBBox(),t=this._.cubetop.getBBox(),n=this.getBBox();return{x:n.x+t.height,y:n.y-e.width,width:n.width,height:n.height}},shadow:function(){return this._.cubeside.shadow.apply(this._.cubeside,arguments),this._.cubetop.shadow.apply(this._.cubetop,arguments),this._shadow.apply(this,arguments)}},ca:{"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},fill:function(r,o){var i,a=this,s=a._.cubetop,l=a._.cubeside,c=a._attr("cubepath")||[0,0,0,0,0,0],u=r,d=o,h=c[2],p=c[4],f=c[5];return d===t&&(d=a._attr("noGradient")),"object"==typeof(u=e.color(u))&&(u=i="opacity"in u?"rgba("+[u.r,u.g,u.b,u.opacity]+")":"rgb("+[u.r,u.g,u.b]+")"),d?(a._attr("fill",u),s.attr("fill",e.tintshade(u,-.78).rgba),l.attr("fill",e.tintshade(u,-.65).rgba)):(a._attr("fill",[270,e.tintshade(i,.55).rgba,e.tintshade(i,-.65).rgba].join("-")),l.attr("fill",[270,e.tintshade(i,-.75).rgba,e.tintshade(i,-.35).rgba].join("-")),s.attr("fill",[45+e.deg(n(f,p+h)),e.tintshade(i,-.78).rgba,e.tintshade(i,.22).rgba].join("-"))),!1}}}])};var r=n(218)},537:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t,n,r,a=e.getChildren().canvas[0].getChildren("vCanvas")[0],s=e.getFromEnv("dataSource"),l=s.dataset,c=e.config.defaultDatasetType||"",u=s.data||l&&l[0].data;n=function(e){var t=[];return(0,o.fcEach)(e,function(e){"true"!==e.vline&&!0!==e.vline&&1!==e.vline&&"1"!==e.vline&&t.push(e)}),{data:t}}(u),u&&0!==u.length?((0,o.componentFactory)(a,i.default,"datasetGroup_"+c),r=a.getChildren("datasetGroup_"+c)[0],t=e.getDSdef(),(0,o.datasetFactory)(r,t,"dataset",1,[n])):e.setChartMessage()};var o=n(218),i=r(n(538))},538:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(226),s=r(n(539));(0,a.addDep)({name:"column3dManagerAnimation",type:"animationRule",extension:s.default});var l=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"group"},n.getName=function(){return"column3d"},n.getCanvasPadding=function(){var e,t,n={paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0};return this._mapChildren(function(r){for(t in e=r.getCanvasPadding&&r.getCanvasPadding()||{})e.hasOwnProperty(t)&&(n[t]=Math.max(e[t],n[t]))}),n},n.createContainer=function(){var e,t,n=this.getFromEnv("animationManager"),r=this.getLinkedParent().getChildContainer();for(e in r)t=r[e],!this.getChildContainer(e)&&this.addChildContainer(e,n.setAnimation({el:"group",attr:{name:"manager"+e},container:t,component:this,label:"group"}))},n.draw3DContainer=function(){var e,t=this.getFromEnv("animationManager"),n=this.getChildContainer("plotGroup3d"),r=this.getFromEnv("xAxis").getTicksLen(),o=n&&n.negative,i=n&&n.positive,a=this.getLinkedParent().getChildContainer().columnVcanvasGroup;for(!this.getChildContainer("plotGroup3d")&&this.addChildContainer("plotGroup3d",t.setAnimation({el:"group",attr:{name:"3d-plots"},container:a,component:this,label:"group"})),n=this.getChildContainer("plotGroup3d"),this.addToEnv("plotGroup3d",n),o=n.negative=t.setAnimation({el:o||"group",attr:{name:"negative-values"},container:n,component:this,label:"group"}),i=n.positive=t.setAnimation({el:i||"group",attr:{name:"positive-values"},container:n,component:this,label:"group"}),n.zeroPlane=t.setAnimation({el:n.zeroPlane||"group",attr:{name:"zero-plane"},container:n,component:this,label:"group"}).insertBefore(n.positive),(n.negativeGroupArray=n.negativeGroupArray=o.data("categoryplots"))||(o.data("categoryplots",new Array(r)),n.negativeGroupArray=o.data("categoryplots")),(n.positiveGroupAarray=n.positiveGroupAarray=i.data("categoryplots"))||(i.data("categoryplots",new Array(r)),n.positiveGroupAarray=i.data("categoryplots")),e=0;e=0?(!this.graphics&&(this.graphics={}),t=s.zeroPlane,p.fill=i.zeroPlaneColor,p.noGradient=!a,p.stroke=i.zeroPlaneBorderColor||"none",p["stroke-width"]=i.zeroPlaneShowBorder?1:0,p.x=o?m-f:i.canvasLeft-f,p.y=o?i.canvasTop+g:m+g,p.width=o?1:i.canvasWidth,p.height=o?i.canvasHeight:1,p.xDepth=f,p.yDepth=g,h&&(h.show(),h._.cubetop.show(),h._.cubeside.show()),e={el:h||"cubepath",attr:p,container:t,component:this,label:"zeroPlane"}):h&&(e={el:h,attr:o?{x:m-g}:{y:m+g},component:this,doNotRemove:!0,callback:function(){h.hide(),h._.cubetop.hide(),h._.cubeside.hide()},container:s,label:"zeroPlane"}),e&&this.addGraphicalElement("zeroplane",r.setAnimation(e))},n.draw=function(){this.createContainer(),this.draw3DContainer(),this.drawZeroPlane()},n.childChanged=function(e){void 0===e&&(e={});var t,n,r=this.config,o=this.getLinkedParent(),i=0,a=this.getState("visible"),s={};this._mapChildren(function(e){e.getState("visible")&&i++}),this.setState("visible",!!i),a!==!!i&&(n=!0),!1!==e.dataLimitChanged&&((t=this.getDataLimits()).min===r.range.min&&t.max===r.range.max||(r.range.min=t.min,r.range.max=t.max,s.dataLimitChanged=!0,n=!0)),n?o.childChanged&&o.childChanged(s):this.asyncDraw()},n.getAxisValuePadding=function(){var e={},t=-1/0,n=-1/0;return this._mapChildren(function(r){r.getState("removed")||(e=r.getAxisValuePadding&&r.getAxisValuePadding()||{},t=Math.max(t,e.left||-1/0),n=Math.max(n,e.right||-1/0))}),t===-1/0&&(t=0),n===-1/0&&(n=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=n),{left:t,right:n}},n.getDataLimits=function(e){var t,n=1/0,r=-1/0,o=0,i=function(e){r=Math.max(r,e.max),n=Math.min(n,e.min)};return this._mapChildren(function(n){n.getState("removed")||(!1!==n.getState("visible")?(o++,t=n.getDataLimits(e),i(t)):e&&(t=n.getDataLimits(e),i(t)))}),o?this.setState("visible",!0):this.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:r,min:n}},n.isVisible=function(){return!this.isNotVisible},t}(i.ComponentInterface);t.default=l},539:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default={"initial.group.column3d":function(){return{"zeroPlane.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]}}}}},540:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(528)),a=n(218),s=n(541),l=n(226),c=r(n(542));(0,l.addDep)({name:"column3dAnimation",type:"animationRule",extension:c.default});var u=function(e){function t(){var t;return(t=e.call(this)||this).setContainerVisibility=a.stubFN,t}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"column3D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.use3dlighting=a.UNDEF},n.createContainer=function(){var e=this.getLinkedParent(),t=this.getFromEnv("paper");!this.getContainer("labelGroup")&&this.addContainer("labelGroup",function(e,t,n){return t.group("label-group",n)}(0,t,e.getChildContainer("vcanvasLabelGroup")).attr("class","fusioncharts-datalabels")).attr("opacity",1)},n._getHoveredPlot=function(e,t){var n,r,o=this.getFromEnv("chart").isBar;return n=this.getFromEnv("xAxis").getValue(o?t:e),(r=Math.round(n))-n>0?s._checkPointerOverColumn.call(this,r,e,t)||s._checkPointerOverColumn.call(this,r-1,e,t):s._checkPointerOverColumn.call(this,r+1,e,t)||s._checkPointerOverColumn.call(this,r,e,t)},t}(i.default);t.default=u},541:function(e,t,n){"use strict";t.__esModule=!0,t._checkPointerOverColumn=function(e,t,n){var o,i,a,s,l,c,u,d,h,p=this.getFromEnv("chart").config,f=p.plotborderthickness,g=p.showplotborder,m=this.components.data,v=m[e];if(v)return o=v.config.setValue,l=(l=(f=g?f:0)/2)%2==0?l+1:r(l),null!==o&&(c=v._xPos-10,d=v._width+10,u=v._yPos,h=v._height+10,a=n-u+l,s=!!(s=!!(s=(i=t-c+l)>=0&&i<=d+f&&a>=0&&a<=h+f)&&t+n-(c+u)-10>0)&&t+n-(c+u+d+h)+10<0)?{pointIndex:e,hovered:s,pointObj:m[e]}:void 0};var r=Math.round},542:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o={"initial.dataset.column3D":r(n(529)).default["initial.dataset.column"]};t.default=o},543:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(544)).default;t.default=o},544:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(452)),a=r(n(545)),s=n(218),l=s.preDefStr.SEVENTYSTRING,c=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,o.default)(t,e),t.getName=function(){return"Line"};var n=t.prototype;return n.getName=function(){return"Line"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Line Chart",t.singleseries=!0,t.defaultDatasetType="line",t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=s.HUNDREDSTRING,t.anchorimagealpha=s.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=l,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=s.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.zeroplanethickness=1,t.enablemousetracking=!0,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return a.default},t}(i.default);t.default=c},549:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(550)).default;t.default=o},550:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(452)),a=r(n(546)),s=n(218),l=s.preDefStr.SEVENTYSTRING,c=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,o.default)(t,e),t.getName=function(){return"Area2D"};var n=t.prototype;return n.getName=function(){return"Area2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Area Chart",t.singleseries=!0,t.defaultDatasetType="area",t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=s.HUNDREDSTRING,t.anchorimagealpha=s.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=l,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=s.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.inheritplotbordercolor=0,t.connectnulldata=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},n.getDSdef=function(){return a.default},t}(i.default);t.default=c},551:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(552)).default;t.default=o},552:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(553)),a=r(n(569)),s=function(e){function t(){var t;return(t=e.call(this)||this).isBar=!0,t}(0,o.default)(t,e),t.getName=function(){return"Bar2D"};var n=t.prototype;return n.getType=function(){return"chartAPI"},n.getName=function(){return"Bar2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Bar Chart",this.config.singleseries=!0,this.config.defaultDatasetType="bar2d",this.config.enablemousetracking=!0},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=s},553:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(452)),a=n(554),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"SSBarCartesian"},t.getName=function(){return"SSBarCartesian"},n._feedAxesRawData=function(){return a.__feedAxesRawData.call(this)},n._spaceManager=function(){a.__spaceManager.call(this)},n._postSpaceManagement=function(){a.__postSpaceManagement.call(this)},t}(i.default);t.default=s},571:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(572)).default;t.default=o},572:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(573)),a=r(n(574)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.fireGroupEvent=!0,t.isBar=!0,t.defaultZeroPlaneHighlighted=!1,t}(0,o.default)(t,e),t.getName=function(){return"Bar3D"};var n=t.prototype;return n.getName=function(){return"Bar3D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!0,t.singleseries=!0,t.friendlyName="3D Bar Chart",t.defaultDatasetType="bar3d",t.showplotborder=0,t.enablemousetracking=!0},n.getDSdef=function(){return a.default},t}(i.default);t.default=s},573:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(532)),a=n(554),s=function(e){function t(){var t;return(t=e.call(this)||this).__feedAxesRawData=a.__feedAxesRawData,t.__spaceManager=a.__spaceManager,t.__postSpaceManagement=a.__postSpaceManagement,t}(0,o.default)(t,e),t.getName=function(){return"SSBarCartesian3D"};var n=t.prototype;return n.getName=function(){return"SSBarCartesian3D"},n._feedAxesRawData=function(){return a.__feedAxesRawData.call(this)},n._spaceManager=function(){a.__spaceManager.call(this)},n._postSpaceManagement=function(){a.__postSpaceManagement.call(this)},t}(i.default);t.default=s},574:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(540)),a=n(569),s=n(226),l=r(n(575));(0,s.addDep)({name:"bar3DAnimation",type:"animationRule",extension:l.default});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"bar3D"},n._checkPointerOverColumn=function(e,t,n){var r,o,i,a,s,l,c,u=this.getFromEnv("chart").config,d=u.plotborderthickness,h=u.showplotborder,p=this.components.data,f=p[e];if(f)return d=h?d:0,null!==f.config.setValue&&(s=f._yPos,c=f._height+5,a=f._xPos-5,l=f._width+5,o=n-s,i=!!(i=!!(i=(r=t-a)>=0&&r<=l+d&&o>=0&&o<=c+d)&&t+n-(a+s)-5>0)&&t+n-(a+s+l+c)+5<0)?{pointIndex:e,hovered:i,pointObj:p[e]}:void 0},n._getHoveredPlot=function(e,t){var n,r,o=this.getFromEnv("chart").isBar;return n=this.getFromEnv("xAxis").getValue(o?t:e),(r=Math.round(n))-n>0?this._checkPointerOverColumn(r,e,t)||this._checkPointerOverColumn(r-1,e,t):this._checkPointerOverColumn(r+1,e,t)||this._checkPointerOverColumn(r,e,t)},n.drawLabel=function(){var e=this.config;a.drawLabel.call(this,e.scrollMinVal,e.scrollMaxVal)},t}(i.default);t.default=c},575:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o={"initial.dataset.bar3D":r(n(570)).default["initial.dataset.bar2D"]};t.default=o},576:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(577)).default;t.default=o},577:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(578)),a=r(n(455)),s=n(218),l=r(n(460)),c=r(n(462)),u=r(n(464)),d=r(n(581)),h=r(n(558)),p=n(556),f=n(230),g=Math,m=g.min,v=g.max,y=g.abs,b=g.PI,C=g.round,w=b/180,x=180/b,_=0,S=function(e,t,n){var r,o,i,a,s=!!n,l=t;return e?((a=(r=e.components&&e.components.data||[])[l=e.config.reversePlotOrder?r.length-l-1:l])&&(o=a.config,i=s!==a.config.sliced||void 0===n?e.plotGraphicClick.call(a.graphics.element):o.sliced),i):i},M=function(e){(0,o.default)(n,e),n.getName=function(){return"Pie2D"};var t=n.prototype;function n(){var t;return(t=e.call(this)||this).defaultSeriesType="pie",t.defaultPlotShadow=1,t.reverseLegend=1,t.defaultPaletteOptions=void 0,t.sliceOnLegendClick=!0,t.dontShowLegendByDefault=!0,t.defaultZeroPlaneHighlighted=!1,t.hasCanvas=!0,t.eiMethods={isPlotItemSliced:function(e){var t,n,r=this.apiInstance,o=r&&r.getDatasets();return o&&(o=o[0])&&(t=o.components.data)&&t[e]&&(n=t[e].config)&&n.sliced},addData:function(){var e=this.apiInstance,t=e&&e.getDatasets();return t&&(t=t[0])&&t.addData.apply(t,arguments)},removeData:function(){var e=this.apiInstance,t=e&&e.getDatasets();return t&&(t=t[0])&&t.removeData.apply(t,arguments)},updateData:function(){var e=this.apiInstance,t=e&&e.getDatasets();return t&&(t=t[0])&&t.updateData.apply(t,arguments)},slicePlotItem:function(e,t,n){var r=this.apiInstance;if(!n)return S(r.getDatasets()[0],e,t);r.addJob("eiMethods-slice-plot"+_++,function(){var o=S(r.getDatasets()[0],e,t);return"function"==typeof n&&n(o)},f.priorityList.postRender)},startingAngle:function(e,t,n){var r,o=this.apiInstance;if(!n)return o._startingAngle(e,t);o.addJob("eiMethods-start-angle"+_++,function(){r=o._startingAngle(e,t),"function"==typeof n&&n(r)},f.priorityList.postRender)}},t.registerFactory("dataset",d.default,["vCanvas","legend"]),t.registerFactory("legend",h.default),t}return t.getName=function(){return"Pie2D"},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.alignCaptionWithCanvas=0,t.formatnumberscale=1,t.isSingleSeries=!0,t.friendlyName="Pie Chart",t.defaultDatasetType="Pie2D",t.plotborderthickness=1,t.decimals=2,t.alphaanimation=0,t.singletonPlaceValue=!0,t.usedataplotcolorforlabels=0,t.enableslicing=s.ONESTRING,t.skipCanvasDrawing=!0},t.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var n=this.getFromEnv("chart-attrib");this.config.showLegend=(0,s.pluckNumber)(n.showlegend,0),this.config.showvalues=(0,s.pluckNumber)(n.showvalues,1),this.config.showlabels=(0,s.pluckNumber)(n.showlabels,1)},t.configureAttributes=function(e){var t=this.config;this.parseChartAttr(e),this.createComponent(e),this.config.skipConfigureIteration.axis=!0,this.configureChildren(),this.getFromEnv("toolTipController").setStyle({backgroundColor:s.hasSVG?(0,s.convertColor)(t.tooltipbgcolor||"FFF",t.tooltipbgalpha||100):(t.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(t.tooltipcolor||t.basefontcolor||"545454").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:s.hasSVG?(0,s.convertColor)(t.tooltipbordercolor||"666",t.tooltipborderalpha||100):(t.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,s.pluckNumber)(t.tooltipborderthickness,1)+"px",showToolTipShadow:(0,s.pluckNumber)(t.showtooltipshadow||0),borderRadius:(0,s.pluckNumber)(t.tooltipborderradius,0)+"px",fontSize:(0,s.pluckNumber)(this.computeFontSize(t.basefontsize),10)+"px",fontFamily:t.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,s.pluckNumber)(t.tooltippadding||3)+"px"})},t.createComponent=function(){var e;e=this.config.skipConfigureIteration={},this.createBaseComponent(),this.getFromEnv("animationManager").setAnimationState(this._firstConfigure?"initial":"update"),(0,s.componentFactory)(this,l.default,"caption"),e.caption=!0,(0,s.componentFactory)(this,c.default,"subCaption"),e.subCaption=!0,(0,s.componentFactory)(this,u.default,"background"),e.background=!0,e.canvas=!0,this._createConfigurableComponents&&this._createConfigurableComponents(),this.config.realtimeEnabled&&this._realTimeConfigure&&this._realTimeConfigure()},t._postSpaceManagement=function(){this.config.showLegend&&this.getChildren("legend")&&this.getChildren("legend")[0].postSpaceManager(),this.allocateDimensionOfChartMenuBar()},t._checkInvalidSpecificData=function(){var e,t,n,r=0,o=0,i=this.getFromEnv("dataSource").data;if(!i)return!0;for(t=i.length||0,e=0;e=t},t._spaceManager=function(){var e,t,n,r,o,i,a=this.config,l=this.getChildren("dataset")[0],c=l.components.data,u=l.config,d=this.getFromEnv("legend"),h=this.getFromEnv("color-manager"),p=this.getFromEnv("smartLabel"),f=this.getFromEnv("chartWidth"),g=this.getFromEnv("chartHeight"),b=[],C=u.dataLabelCounter,w=0,x=this.getFromEnv("dataSource").chart,_=(0,s.pluckNumber)(x.managelabeloverflow,0),S=(0,s.pluckNumber)(x.slicingdistance),M=u.preSliced||a.allPlotSliceEnabled!==s.ZEROSTRING||x.showlegend===s.ONESTRING&&x.interactivelegend!==s.ZEROSTRING?y((0,s.pluckNumber)(S,20)):0,E=/%/g.test(x.pieradius),O=(0,s.pluckNumber)(E?Math.min(f/2,g/2)*(parseFloat(x.pieradius)/100):x.pieradius,0),A=(0,s.pluckNumber)(x.enablesmartlabels,x.enablesmartlabel,1),T=A?(0,s.pluckNumber)(x.skipoverlaplabels,x.skipoverlaplabel,1):0,k=(0,s.pluckNumber)(x.issmartlineslanted,1),D=C?(0,s.pluckNumber)(x.labeldistance,x.smartlabelclearance,5):M,P=a.width,N=a.height,L=(this._manageActionBarSpace(.225*N)||{}).bottom,R=P-(a.marginRight+a.marginLeft),F=N-(a.marginTop+a.marginBottom)-(L?L+a.marginBottom:0),I=m(F,R),z=(0,s.pluck)(x.smartlinecolor,h.getColor("plotFillColor")),B=(0,s.pluckNumber)(x.smartlinealpha,100),j=(0,s.pluckNumber)(x.smartlinethickness,.7),V=u.dataLabelOptions=l._parseDataLabelOptions(),W=V.style,H=C?(0,s.pluckNumber)(parseInt(W.lineHeight,10),12):0,G=0===O?.15*I:O,U=2*G,q=u.pieYScale,Y=u.pieSliceDepth,X=(0,s.pluck)(x.legendposition,s.POSITION_BOTTOM).toLowerCase().split("-");if(V.connectorWidth=j,V.connectorPadding=(0,s.pluckNumber)(x.connectorpadding,5),V.connectorColor=(0,s.convertColor)(z,B),i=U+2*(H+(e=!a.showvalues&&!a.showlabels||"inside"===u.labelPosition&&"inside"===u.valuePosition?D:D+M)),F-=((n=this._manageChartMenuBar(io?Y-o:u.pieSliceDepth,V.isSmartLineSlanted=k,V.enableSmartLabels=A,V.skipOverlapLabels=T,V.manageLabelOverflow=_},t._stubRadius=function(e,t,n,r,o,i,a,l){var c,u=a,d=o,h=this.getChildren("dataset")[0],p=h.config,f=this.getFromEnv("dataSource").chart,g=(0,s.pluckNumber)(f.slicingdistance),y=p.dataLabelOptions||(p.dataLabelOptions=h._parseDataLabelOptions());return(c=m(e/2-t-d,n/2-i)-r)>=u?u=c:g||(d=v(m(r-(u-c),d),10)),p.slicingDistance=d,p.pieMinRadius=u,y.distance=l,u},t._startingAngle=function(e,t){var n,r=e,o=this.getChildren("dataset")[0],i=o.config,a=(n=i.startAngle)*-x+(-1*n<0?360:0);return isNaN(r)||i.singletonCase||i.isRotating||(r+=t?a:0,i.startAngle=-r*w,o._rotate(r),a=r),C(100*((a%=360)+(a<0?360:0)))/100},t._manageLegendSpace=function(){p._manageLegendSpace.call(this)},t.getDSdef=function(){return i.default},n}(a.default);t.default=M},581:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t,n,o=e.getFromEnv("dataSource"),i=o.dataset,a=o.data||i&&i[0].data;n=function(e){var t=[];return(0,r.fcEach)(e,function(e){"true"!==e.vline&&!0!==e.vline&&1!==e.vline&&"1"!==e.vline&&t.push(e)}),{catData:[],data:t}}(a),a&&0!==a.length?(t=e.getDSdef(),(0,r.datasetFactory)(e,t,"dataset",1,[n])):e.setChartMessage()};var r=n(218)},582:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(583)).default;t.default=o},583:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(577)),a=r(n(584)),s=n(218),l=Math,c=l.round,u=l.min,d=l.max,h=l.PI,p=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=0,t}(0,o.default)(t,e),t.getName=function(){return"Pie3D"};var n=t.prototype;return n.getName=function(){return"Pie3D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!0,t.friendlyName="3D Pie Chart",t.defaultDatasetType="Pie3D",t.plotborderthickness=.1,t.alphaanimation=1},n.animate=function(){var e,t,n,r,o,i,a,s,l=this.components.dataset[0],c=l.config,u=l.components.data,d=u.length,p=c.alphaAnimation,f=this.get("config","animationObj"),g=f.duration||0,m=f.dummyObj,v=f.animObj,y=f.animType;if(!p)for(e=0;e=h?h=l:y||(p=f=d(u(f-(h-l),p),10)),m.slicingDistance=p,m.pieMinRadius=h,b.distance=f,h},n._startingAngle=function(e,t){var n,r=e,o=this.getChildren("dataset")[0],i=o.config,a=(n=i.startAngle)+(n<0?360:0);return isNaN(r)||i.singletonCase||i.isRotating||(r+=t?a:0,o._rotate(r),a=r),c(100*((a%=360)+(a<0?360:0)))/100},n.getDSdef=function(){return a.default},t}(i.default);t.default=p},584:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i,a=o(n(235)),s=o(n(232)),l=r(n(578)),c=n(218),u=n(233),d=n(585),h=o(n(587)),p=n(226),f=o(n(588)),g=(0,p.getDep)("redraphael","plugin"),m=window,v=8===window.document.documentMode?"visible":"",y=c.preDefStr.elementStr,b="M",C="L",w="v",x="A",_="Z",S=Math,M=S.max,E=S.min,O=S.abs,A=S.ceil,T=S.sin,k=S.atan2,D=S.cos,P=S.floor,N=S.round,L=S.PI,R=2*L,F=L/2,I=L+F,z=function(e,t){for(var n=[],r=0,o=e.length;r-1;for(r in o)i&&"topBorder"!==r&&"frontOuter"!==r&&"startSlice"!==r&&"endSlice"!==r||o[r].drag(e,t,n);return this._drag(e,t,n)},oe=function(){var e,t=this._confObject.elements;for(e in t)t[e].hide();return this._hide()},ie=function(){var e,t=this._confObject.elements;for(e in t)t[e].show();return this._show()},ae=function(){var e,t=this._confObject,n=t.elements;for(e in n)n[e].destroy();return c.hasSVG&&(t.clipTop.destroy(),t.clipOuterFront.destroy(),t.clipOuterBack.destroy(),t.clipOuterFront1&&t.clipOuterFront1.destroy(),t.clipInnerFront&&t.clipInnerFront.destroy(),t.clipInnerBack&&t.clipInnerBack.destroy()),this._destroy()},se=function(e,t){var n,r=this._confObject.elements;if(t===i)return this._data(e);for(n in r)r[n].data(e,t);return this._data(e,t)},le=0;(0,p.addDep)({name:"pie3dAnimation",type:"animationRule",extension:h.default});var ce=function(e){function t(){return e.apply(this,arguments)||this}(0,s.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.setBorderWidth=i,t.alphaanimation=1,t.showBorderEffect=i},n.placeDataLabels=function(e){var t,n,r,o,a,s,u,d,h,p,f,g,m,y,w,x,_,k,P,z,B,j,V,W,X,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,he=this,pe=he.getFromEnv("chart"),fe=pe.getFromEnv("toolTipController"),ge=pe.config,me=he.config,ve=he.components.data,ye=me.piePlotOptions,be=ge.canvasLeft,Ce=ge.canvasTop,we=ge.canvasWidth,xe=be+.5*ge.canvasWidth,_e=Ce+.5*ge.canvasHeight,Se=pe.getFromEnv("smartLabel"),Me=me.dataLabelOptions,Ee=Me.style,Oe=(0,c.pluckNumber)(A(parseFloat(Ee.lineHeight)),12),Ae=(0,c.getFirstValue)(Me.placeInside,!1),Te=Me.skipOverlapLabels,ke=Me.manageLabelOverflow,De=Me.connectorPadding,Pe=Me.distance,Ne=Me.connectorWidth,Le=[[],[],[],[]],Re=be,Fe=Ce,Ie=we,ze=parseInt(Ee.fontSize,10),Be=ze,je=Be/2,Ve=[De,De,-De,-De],We=Me.isSmartLineSlanted,He=Pe>0,Ge=me.center||(me.center=[xe,_e,ye.size,ye.innerSize||0]),Ue=Ge[1],qe=Ge[0],Ye=Ge[2],Xe=Ge[4],Ke=me.labelsRadius,$e=N(100*me.labelsRadiusY)/100,Ze=me.maxLabels,Je=me.enableSmartLabels,Qe=me.pieSliceDepth/2,et=pe.getFromEnv("animationManager"),tt=he.getContainer("label-group");if(Se.useEllipsesOnOverflow(ge.useEllipsesWhenOverflow),me.dataLabelCounter)if(e||Se.setStyle(Ee),1===ve.length)B=ve[0],ie=B.graphics,oe=B.config,de=oe._textAttrs,ue=oe._textCss,X=ie.label,ae=ie.connector,oe.slicedTranslation=[Re,Fe],null!==oe.y&&oe.y!==i&&(de.visibility=v,de["text-anchor"]="middle",de.x=qe,de.y=Ue+je-2,de._x=qe),ue.cursor=oe.labellink?"pointer":"",X=ie.label=et.setAnimation({el:ie.label||"text",attr:de,css:ue,label:"label",container:tt,component:he}),ge.showtooltip&&X.abbrArr&&X.abbrArr.length&&fe.enableToolTip(X,i),X.on("fc-dragstart",U).on("fc-dragmove",Y).on("fc-dragend",q).on("fc-click",l.labelClickFn.bind(X,pe,B.config.labellink)).on("fc-mouseup",(0,l.plotClickHandler)(he,X)).on("fc-mouseover",H).on("fc-mouseout",G),de._x&&(X.x=de._x,delete de.x),X.data("plotItem",de.plotItem).data("eventArgs",de.eventArgs),de.visibility===v&&X.show(),ae&&ae.hide();else if(Ae)(0,c.fcEach)(ve,function(e){var t,n,r;ie=e.graphics,oe=e.config,de=oe._textAttrs,X=ie.label,null!==oe.y&&oe.y!==i&&(j=oe.angle,P=Ue+Ge[6]*T(j)+je-2,w=qe+Ge[5]*D(j),de._x=w,de._y=P,oe.sliced&&(n=(t=e.slicedTranslation)[0]-Re,r=t[1]-Fe,w+=n,P+=r),de.visibility=v,de.align="middle",de.x=w,de.y=P),ue.cursor=oe.labellink?"pointer":"",X=ie.label=et.setAnimation({el:ie.label||"text",attr:de,css:ue,label:"label",container:tt,component:he}),ge.showtooltip&&X&&X.abbrArr&&X.abbrArr.length&&fe.enableToolTip(X,i),X.data("plotItem",de.plotItem).data("eventArgs",de.eventArgs),de.visibility===v&&X.show(),X.x=de._x,X._x=de._x,X._y=de._y});else{for((0,c.fcEach)(ve,function(e){if(ie=e.graphics,oe=e.config,ue=oe._textCss,!((de=oe._textAttrs).text=oe.displayValue))return ie.connector&&et.setAnimation({el:ie.connector,component:he,callback:l.hideFn}),void(ie.label&&et.setAnimation({el:ie.label,component:he,callback:l.hideFn}));ie=e.graphics,null!==oe.y&&oe.y!==i&&(X=ie.label,(ae=ie.connector)&&ae.show(),X&&X.show()),X=ie.label,ge.showtooltip&&X&&X.abbrArr&&X.abbrArr.length&&fe.enableToolTip(X,i),(j=oe.angle)<0&&(j=R+j),Le[j>=0&&j0)for(Le[o].sort(K),s=0,p=(W=Le[o].splice(0,V)).length;sZe?le/p:ze)/2),h=p*Be,n=le,o=0;o=0;o-=1,d+=Be)B=z[o].point,ie=B.graphics,oe=B.config,de=oe._textAttrs,ue=oe._textCss,null!==oe.y&&de.text&&(j=z[o].angle,g=oe.sliced,X=ie.label,(u=O(le*T(j)))d&&(u=d),n=u+Be,_=(u+z[o].oriY)/2,m=qe+Q[f]*Ke*D(S.asin(_/le)),_*=J[f],_+=Ue,k=Ue+Xe*T(j),y=qe+Ye*D(j),(f<2&&m1&&m>y)&&(m=y),P=_+je-2,x=(w=m+Ve[f])+Ve[f],de._x=x,ke&&(a=f>1?x-be:be+Ie-x,Se.setStyle(oe.style),Oe=(0,c.pluckNumber)(A(parseFloat(oe.style.lineHeight)),12)+(2*A(parseFloat(oe.style.border),12)||0),re=Se.getSmartText(oe.displayValue,a,Oe),de.text=re.text,de.tooltip=re.tooltext),j=0;e-=1)r=O[e].config,n=a,l=f?r.y/f:0,(a=N(1e3*(a+l*R))/1e3)>s&&(a=s),o=a,r.shapeArgs={sAngle:N(1e3*n)/1e3,eAngle:N(1e3*o)/1e3},r.centerAngle=i=(o+n)/2%R,r.slicedTranslation=[N(D(i)*w),N(T(i)*F)],u=D(i)*M[2],g.radiusY=d=T(i)*M[4],r.tooltipPos=[M[0]+.7*u,M[1]+d],r.percentage=100*l,r.total=f},n._configurePie3DManager=function(){var e=this.config,t=this.components,n=this.getFromEnv("pie3DManager"),r=t.data;n&&n.configure(e.pieSliceDepth,1===r.length,e.use3DLighting,!1)},n.allocatePosition=function(){var e,t,n,r,o,i,a,s=this.getFromEnv("chart").config,l=this.config,u=this.components.data,d=(0,c.pluck)(l.startAngle,0)%R,h=l.pie3DOptions=this._parsePie3DOptions(),p=l.pieYScale,f=l.managedPieSliceDepth,g=s.canvasWidth,m=s.canvasHeight,v=E(g,m),y=[s.canvasLeft+.5*g,s.canvasTop+.5*m-.5*f],b=0,C=u.length;for(y.push(2*l.pieMinRadius,h.innerSize||0),(y=z(y,function(e,t){return/%$/.test(e)?[g,m-f,v,v][t]*j(e)/100:e}))[2]/=2,y[3]/=2,y.push(y[2]*p),y.push((y[2]+y[3])/2),y.push(y[5]*p),l.center=y,(0,c.fcEach)(u,function(e){b+=e.config.y}),a=(d=N(1e3*d)/1e3)+R,e=u.length-1;e>=0;e-=1)o=u[e],n=d,i=b?o.config.y/b:0,(d=N(1e3*(d+i*R))/1e3)>a&&(d=a),r=d,o.config.shapeArgs={sAngle:N(1e3*n)/1e3,eAngle:N(1e3*r)/1e3};for(e=0;e0&&(p=O.connectorWidth)&&O.enableSmartLabels&&(C={"stroke-width":p,stroke:O.connectorColor||"#606060",cursor:u?"pointer":"",opacity:1})):v.text=c.BLANKSTRING,m.plotItem=a={chart:S,index:I,seriesData:_,value:s,angle:m.angle=h,link:m.link,shapeArgs:f,slicedX:d&&!_.singletonCase?D(h)*k:0,slicedY:d&&!_.singletonCase?T(h)*P:0,sliced:d,labelText:l,name:m.name,percentage:m.percentage,toolText:g,originalIndex:L-I-1,style:m.style,transX:m.transX=D(h)*k,transY:m.transY=T(h)*P,slicedTranslation:m.slicedTranslation="t"+m.transX+","+m.transY,label:void 0,connector:void 0},m.eventArgs=o={index:_.reversePlotOrder?L-1-I:I,link:m.link,value:m.y,displayValue:m.displayValueArgs,categoryLabel:m.categoryLabel,isSliced:m.sliced,toolText:m.toolText,color:m.setColor,alpha:m.setAlpha,borderColor:m.borderConfig.setPlotBorderColor,borderAlpha:m.borderConfig.setPlotBorderAlpha,dashed:m.setBorderDashed,showLabel:m.showLabel,showValue:m.showValue,labelPosition:m.labelPosition,valuePosition:m.valuePosition,labelFont:m.labelFont,labelFontColor:m.labelFontColor||"#555555",labelLink:m.labelLink,hoverColor:m.hoverEffects.hoverColor,hoverAlpha:m.hoverEffects.alpha,borderHoverColor:m.hoverBorderColor,borderHoverAlpha:m.hoverEffects.borderAlpha,id:m.id},w={color:m.color.color.split(",")[0],alpha:m._3dAlpha,borderWidth:m.borderWidth,borderColor:m.borderColor,borderAlpha:m.borderConfig.setPlotBorderAlpha},(0,c.extend2)(b,w),b.cursor=u?"pointer":"",b.showBorderEffect=N,b.transform="t"+a.slicedX+","+a.slicedY,v.plotItem=a,v.eventArgs=o,m.props={element:{attr:b},connector:{attr:C},label:{attr:v,css:y}})},n.draw=function(){var e,t,n,r,o,a,s,u,d,h,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,k,P,N=this,L=N.components,R=N.config,F=N.getFromEnv("chart"),I=F.config,z=F.getFromEnv("animationManager"),B=L.data,j=R.dataLabelOptions,V=j.style,W=R.slicingDistance,X=R.slicedOffsetY||(R.slicedOffsetY=W*R.pieYScale),K=R.showBorderEffect,$=B.length,Z=R.usePerPointLabelColor,J=I.textDirection,Q=R.valueTotal,ee=L.removeDataArr||[],te=N.getState("visible"),ne=N.getContainer("labelGroup"),re={},oe=N.getFromEnv("toolTipController"),ie=I.dataLabelStyle;for(N.getContainer("pie-groups")||N._createContainer(),ne=N.getContainer("label-group"),x=N.getContainer("plot-group"),z.setAnimation({el:ne,attr:{css:ie},component:N,label:"labelcontainer",callback:function(){te&&Q?(ne.show(),x.show()):(ne.hide(),x.hide())}}),N._initPie3dManager(),n=N.getFromEnv("pie3DManager"),ee.length&&N.remove(),e=R.center,R.prevPositions,t=R.pieYScale,B&&$||(B=[]),w=-1;++w<$;)if((S=(v=(a=B[w]).config)._textAttrs)||(S=v._textAttrs={}),y=a.graphics,s=v.y,u=v.displayValue,h=v.sliced,g=v.shapeArgs,p=v.centerAngle,m=v.toolText,d=!!v.link,V=v.style,null!==s&&s!==i){for(k in _=y.element,b=y.label,C=y.connector,E={sAngle:g.sAngle,eAngle:g.eAngle,r:e[2],innerR:e[3],cx:e[0],cy:e[1],radiusYFactor:t,opacity:1},_?A=!1:(A=!0,(_=y.element=n.useSliceFromPool())||(_=y.element=n.createSlice().drag(Y,U,q).on("fc-mouseover",H).on("fc-mouseout",G)).on("fc-click",(0,l.plotClickHandler)(N,_))),u!==i&&(V?((M=v._textCss)||(M=v._textCss={}),M.fontFamily=V.fontFamily,M.fontSize=V.fontSize,M.lineHeight=V.lineHeight,M.fontWeight=V.fontWeight,M.fontStyle=V.fontStyle):v._textCss&&(b&&b.removeCSS(),delete v._textCss,M=i),v.style=V||(V=ie),S.text=u,S.fill=(Z?(0,c.toRaphaelColor)(v.color):V.color)||"#000000",S["text-bound"]=[V.backgroundColor,V.borderColor,V.borderThickness,V.borderPadding,V.borderRadius,V.borderDash],S.direction=J,S.lineHeight=V.lineHeight,j.distance>0&&(f=j.connectorWidth)&&j.enableSmartLabels&&(O={"stroke-width":f,stroke:j.connectorColor||"#606060",cursor:d?"pointer":"",opacity:1},ne.show(),C=y.connector=z.setAnimation({el:y.connector||"path",attr:O,container:ne,label:"connector",component:N}).show().on("fc-dragstart",U).on("fc-dragmove",Y).on("fc-dragend",q).on("fc-mouseover",H).on("fc-mouseout",G))),Q?(b&&b.show(),C&&C.show()):(b&&b.hide(),C&&C.hide()),o={chart:F,index:w,seriesData:R,value:s,angle:v.angle=p,link:v.link,shapeArgs:g,slicedX:h&&!R.singletonCase?D(p)*W:0,slicedY:h&&!R.singletonCase?T(p)*X:0,sliced:h,labelText:u,name:v.name,percentage:v.percentage,toolText:m,originalIndex:$-w-1,style:v.style,graphic:_,transX:v.transX=D(p)*W,transY:v.transY=T(p)*X,slicedTranslation:v.slicedTranslation="t"+v.transX+","+v.transY,label:b,connector:C},r={index:R.reversePlotOrder?$-1-w:w,link:v.link,value:v.y,displayValue:v.displayValueArgs,categoryLabel:v.categoryLabel,isSliced:v.sliced,toolText:v.toolText,color:v.setColor,alpha:v.setAlpha,borderColor:v.borderConfig.setPlotBorderColor,borderAlpha:v.borderConfig.setPlotBorderAlpha,dashed:v.setBorderDashed,showLabel:v.showLabel,showValue:v.showValue,labelPosition:v.labelPosition,valuePosition:v.valuePosition,labelFont:v.labelFont,labelFontColor:v.labelFontColor||"#555555",labelLink:v.labellink,hoverColor:v.hoverEffects.hoverColor,hoverAlpha:v.hoverEffects.alpha,borderHoverColor:v.hoverBorderColor,borderHoverAlpha:v.hoverEffects.borderAlpha,id:v.id},re={color:v.color.color.split(",")[0],alpha:v._3dAlpha,borderWidth:v.borderWidth,borderColor:v.borderColor,borderAlpha:v.borderConfig.setPlotBorderAlpha},A&&(0,c.extend2)(E,re),_.data("groupId",w).data("plotItem",o).data("eventArgs",r),_.data("groupId",w).data("plotItem",o).data("eventArgs",r),E.cursor=d?"pointer":"",E.showBorderEffect=K,E.color=v.color.color.split(",")[0],E.alpha=v._3dAlpha,E.borderWidth=v.borderWidth,E.borderColor=v.borderColor,oe.enableToolTip(_,m),P=_._confObject.elements)oe.enableToolTip(P[k],m);E.transform="t"+o.slicedX+","+o.slicedY,S.plotItem=o,S.eventArgs=r,z.setAnimation({el:_,attr:E,component:N,label:"slice",state:A?"appearing":"updating"}),C&&C.data("plotItem",o).data("eventArgs",r)}ne.show(),N.placeDataLabels(!1),N.drawn=!0,R.prevPositions=e.slice(0)},n.remove=function(){var e,t,n,r,o=this.config,i=this.components,a=this.getFromEnv("animationManager"),s=i.removeDataArr||[],l=this.pool=this.pool=[],c=s.length,u=this.getFromEnv("pie3DManager"),d=function(e,t){return function(){t===y?(u.removeSlice(e.element),delete e.element):e[t].hide()}},h=o.startAngle,p=o.center;for(n=0;n=0;t-=1)r[t]===e&&r.splice(t,1);for(t=(a=i.length)-1;t>=0;t-=1)(n=i[t])!==o.startSlice&&n!==o.frontOuter1&&n!==o.frontOuter&&n!==o.backInner&&n!==o.endSlice||i.splice(t,1);e.hide&&e.hide(),this._slicePool||(this._slicePool=[]),this._slicePool.push(e),this.refreshDrawing()},n.useSliceFromPool=function(){var e,t=this._slicePool||(this._slicePool=[]),n=this.slicingWallsArr,r=!1;return t.length&&(r=t.shift(),this.pointElemStore.push(r),r.show(),e=r._confObject.elements,n.push(e.startSlice,e.frontOuter1,e.frontOuter),e.backInner&&n.push(e.backInner),n.push(e.endSlice)),r},n._setSliceShape=function(e,t){var n,r,o,i,a,s,l,u,d,h,p,f,g,m,v,y,S,M,E,O,A,k,P,N,z,B,j,V,W,H,G,U,q,Y,X,K,$,Z,J,Q,ee,te,ne,re=function(e,t,n,r,o,i,a,s){return e===n&&t===r?[]:[x,o,i,0,s,a,n,r]},oe=e.sAngle,ie=e.eAngle,ae=(0,c.normalizeAngle)(oe),se=(0,c.normalizeAngle)(ie),le=this.isDoughnut,ce=e.radiusYFactor,ue=e.cx,de=e.cy,he=e.r,pe=he*ce,fe=he+(c.hasSVG?-1:2),ge=pe+(c.hasSVG?-1:2),me=e.innerR||0,ve=me*ce,ye=this.depth,be=ye+de,Ce=ue+he,we=ue-he,xe=ue+me,_e=ue-me,Se=de-pe,Me=[b,_e,Se,C,_e,be+pe,_],Ee=e.elements,Oe="path",Ae=(ae+se)/2,Te=ae>se;s=ue+he*(r=D(ae)),u=ue+fe*r,d=de+ge*(o=T(ae)),M=(l=de+pe*o)+ye,E=ue+he*(i=D(se)),h=ue+fe*i,p=de+ge*(a=T(se)),A=(O=de+pe*a)+ye,le?(f=ue+me*r,y=(g=de+ve*o)+ye,m=ue+me*i,S=(v=de+ve*a)+ye,e.startSlice=[b,s,l,C,s,M,f,y,f,g,_],e.endSlice=[b,E,O,C,E,A,m,S,m,v,_]):(e.startSlice=[b,s,l,C,s,M,ue,be,ue,de,_],e.endSlice=[b,E,O,C,E,A,ue,be,ue,de,_]),c.hasSVG?(n=(ae>se?R:0)+se-ae,e.clipTopPath=le?[[b,s,l,x,he,pe,0,n>L?1:0,1,E,O,C,m,v,x,me,ve,0,n>L?1:0,0,f,g,_]]:[[b,s,l,x,he,pe,0,n>L?1:0,1,E,O,C,ue,de,_]],e.clipOuterFrontPath1=[Me],e.clipTopBorderPath=[[b,u,d,x,fe,ge,0,n>L?1:0,1,h,p,C,E,O,E,O+1,x,he,pe,0,n>L?1:0,0,s,l+1,C,s,l,_]],oe!==ie?ae>se?aeL?(e.clipOuterFrontPath=[[b,Ce,de,x,he,pe,0,1,1,we,de,w,ye,x,he,pe,0,1,0,Ce,de+ye,_]],e.clipOuterBackPath=[[b,we,de,x,he,pe,0,0,1,E,O,w,ye,x,he,pe,0,0,0,we,de+ye,_,b,Ce,de,x,he,pe,0,0,0,s,l,w,ye,x,he,pe,0,0,1,Ce,de+ye,_]],le&&(e.clipInnerFrontPath=[[b,xe,de,x,me,ve,0,1,1,_e,de,w,ye,x,me,ve,0,1,0,xe,de+ye,_]],e.clipInnerBackPath=[[b,_e,de,x,me,ve,0,0,1,m,v,w,ye,x,me,ve,0,0,0,_e,de+ye,_,b,xe,de,x,me,ve,0,0,0,f,g,w,ye,x,me,ve,0,0,1,xe,de+ye,_]])):(e.clipOuterFrontPath=[[b,Ce,de,x,he,pe,0,0,1,E,O,w,ye,x,he,pe,0,0,0,Ce,de+ye,_]],e.clipOuterBackPath=[[b,s,l,x,he,pe,0,0,1,Ce,de,w,ye,x,he,pe,0,0,0,s,M,_]],le&&(e.clipInnerFrontPath=[[b,xe,de,x,me,ve,0,0,1,m,v,w,ye,x,me,ve,0,0,0,xe,de+ye,_]],e.clipInnerBackPath=[[b,f,g,x,me,ve,0,0,1,xe,de,w,ye,x,me,ve,0,0,0,f,y,_]])):aeL?(e.clipOuterFrontPath=[[b,s,l,x,he,pe,0,0,1,we,de,w,ye,x,he,pe,0,0,0,s,M,_]],e.clipOuterBackPath=[[b,we,de,x,he,pe,0,0,1,E,O,w,ye,x,he,pe,0,0,0,we,de+ye,_]],le&&(e.clipInnerFrontPath=[[b,f,g,x,me,ve,0,0,1,_e,de,w,ye,x,me,ve,0,0,0,f,y,_]],e.clipInnerBackPath=[[b,_e,de,x,me,ve,0,0,1,m,v,w,ye,x,me,ve,0,0,0,_e,de+ye,_]])):(e.clipOuterFrontPath=[[b,s,l,x,he,pe,0,0,1,E,O,w,ye,x,he,pe,0,0,0,s,M,_]],e.clipOuterBackPath=[Me],le&&(e.clipInnerFrontPath=[[b,f,g,x,me,ve,0,0,1,m,v,w,ye,x,me,ve,0,0,0,f,y,_]],e.clipInnerBackPath=[Me])):(e.clipOuterFrontPath=[Me],e.clipOuterBackPath=[[b,s,l,x,he,pe,0,0,1,E,O,w,ye,x,he,pe,0,0,0,s,M,_]],le&&(e.clipInnerFrontPath=[Me],e.clipInnerBackPath=[[b,f,g,x,me,ve,0,0,1,m,v,w,ye,x,me,ve,0,0,0,f,y,_]])):e.clipOuterFrontPath=e.clipOuterBackPath=e.clipInnerBackPath=e.clipInnerFrontPath=[Me],Oe="litepath",e.clipBottomBorderPath=e.clipTopPath,e.startSlice=[e.startSlice],e.endSlice=[e.endSlice]):(V=this.moveCmdArr,W=this.lineCmdArr,H=this.closeCmdArr,G=[ue,de],U=[we,de],q=[ue,Se],Y=[Ce,de],X=[ue,de+pe],K=[we,be],$=[Ce,be],Z=[_e,de],J=[xe,de],Q=[_e,be],ee=[xe,be],e.clipOuterFrontPath1=[],oe!==ie?(ae>se?aeL?(k=re(s,l,Ce,de,he,pe,1,0),N=re(Ce,de,we,de,he,pe,1,0),B=re(we,de,E,O,he,pe,1,0),e.clipOuterFrontPath=V.concat(Y,N,W,K,re(we,be,Ce,be,he,pe,0,0),H),e.clipOuterBackPath=V.concat([s,l],k,W,$,re(Ce,be,s,M,he,pe,0,0),H,V,U,B,W,[E,A],re(E,A,we,be,he,pe,0,0),H),e.clipTopBorderPath=V.concat([s,l],k,N,B),le?(P=re(m,v,_e,de,me,ve,0,0),z=re(_e,de,xe,de,me,ve,0,0),j=re(xe,de,f,g,me,ve,0,0),e.clipInnerFrontPath=V.concat(Z,z,W,ee,re(xe,be,_e,be,me,ve,1,0),H),e.clipInnerBackPath=V.concat(J,j,W,[f,y],re(f,y,xe,be,me,ve,1,0),H,V,[m,v],P,W,Q,re(_e,be,m,S,me,ve,1,0),H),e.clipTopPath=e.clipTopBorderPath.concat(W,[m,v],P,z,j,H),e.clipTopBorderPath=e.clipTopBorderPath.concat(V,[m,v],P,z,j)):e.clipTopPath=e.clipTopBorderPath.concat(W,G,H)):(k=re(s,l,Ce,de,he,pe,1,0),N=re(Ce,de,E,O,he,pe,1,0),e.clipOuterFrontPath=V.concat(Y,N,W,[E,A],re(E,A,Ce,be,he,pe,0,0),H),e.clipOuterBackPath=V.concat([s,l],k,W,$,re(Ce,be,s,M,he,pe,0,0),H),e.clipTopBorderPath=V.concat([s,l],k,N),le?(P=re(m,v,xe,de,me,ve,0,0),z=re(xe,de,f,g,me,ve,0,0),e.clipInnerFrontPath=V.concat([m,v],P,W,ee,re(xe,be,m,S,me,ve,1,0),H),e.clipInnerBackPath=V.concat(J,z,W,[f,y],re(f,y,xe,be,me,ve,1,0),H),e.clipTopPath=e.clipTopBorderPath.concat(W,[m,v],P,z,H),e.clipTopBorderPath=e.clipTopBorderPath.concat(V,[m,v],P,z)):e.clipTopPath=e.clipTopBorderPath.concat(W,G,H)):aeL?(k=re(s,l,we,de,he,pe,1,0),N=re(we,de,E,O,he,pe,1,0),e.clipOuterBackPath=V.concat(U,N,W,[E,A],re(E,A,we,be,he,pe,0,0),H),e.clipOuterFrontPath=V.concat([s,l],k,W,K,re(we,be,s,M,he,pe,0,0),H),e.clipTopBorderPath=V.concat([s,l],k,N),le?(P=re(m,v,_e,de,me,ve,0,0),z=re(_e,de,f,g,me,ve,0,0),e.clipInnerBackPath=V.concat([m,v],P,W,Q,re(_e,be,m,S,me,ve,1,0),H),e.clipInnerFrontPath=V.concat(Z,z,W,[f,y],re(f,y,_e,be,me,ve,1,0),H),e.clipTopPath=e.clipTopBorderPath.concat(W,[m,v],P,z,H),e.clipTopBorderPath=e.clipTopBorderPath.concat(V,[m,v],P,z)):e.clipTopPath=e.clipTopBorderPath.concat(W,G,H)):(k=re(s,l,E,O,he,pe,1,0),e.clipOuterBackPath=V.concat([s,l]),e.clipTopBorderPath=e.clipOuterBackPath.concat(k),e.clipOuterFrontPath=e.clipTopBorderPath.concat(W,[E,A],re(E,A,s,M,he,pe,0,0),H),le?(P=re(m,v,f,g,me,ve,0,0),e.clipInnerBackPath=V.concat([m,v]),e.clipTopPath=e.clipTopBorderPath.concat(W,[m,v],P,H),e.clipTopBorderPath=e.clipTopBorderPath.concat(V,[m,v],P),e.clipInnerFrontPath=e.clipInnerBackPath.concat(P,W,[f,y],re(f,y,m,S,me,ve,1,0),H)):e.clipTopPath=e.clipTopBorderPath.concat(W,G,H)):(k=re(s,l,E,O,he,pe,1,0),e.clipOuterFrontPath=V.concat([s,l]),e.clipTopBorderPath=e.clipOuterFrontPath.concat(k),e.clipOuterBackPath=e.clipTopBorderPath.concat(W,[E,A],re(E,A,s,M,he,pe,0,0),H),le?(P=re(m,v,f,g,me,ve,0,0),e.clipInnerFrontPath=V.concat([m,v]),e.clipTopPath=e.clipTopBorderPath.concat(W,[m,v],P,H),e.clipTopBorderPath=e.clipTopBorderPath.concat(e.clipInnerFrontPath,P),e.clipInnerBackPath=e.clipInnerFrontPath.concat(P,W,[f,y],re(f,y,m,S,me,ve,1,0),H)):e.clipTopPath=e.clipTopBorderPath.concat(W,G,H)),k=V.concat(U,W,Y),P=V.concat(q,W,X),e.clipTopPath=e.clipTopPath.concat(k,P),e.clipOuterFrontPath=e.clipOuterFrontPath.concat(k),e.clipOuterFrontPath1=e.clipOuterFrontPath1.concat(k),e.clipOuterBackPath=e.clipOuterBackPath.concat(k),le&&(P=V.concat(Z,W,J),e.clipInnerFrontPath=e.clipInnerFrontPath.concat(P),e.clipInnerBackPath=e.clipInnerBackPath.concat(P))):(e.clipTopPath=e.clipOuterFrontPath=e.clipOuterBackPath=[],le&&(e.clipInnerFrontPath=e.clipInnerBackPath=[])),e.clipBottomBorderPath=e.clipTopBorderPath),t||(Ee.startSlice._conf.index=ae,Ee.endSlice._conf.index=se,Ee.backOuter._conf.index=ne=Te&&(ae<=I||se>I)||ae<=I&&se>I?I:ae>L?ae:se,Ee.frontOuter._conf.index=te=se<=F?se:ae>se||ae<=F?F:ae,Ee.frontOuter1._conf.index=ae,Ee.frontOuter1._conf.cIndex=L,ae>se?(Ee.backOuter._conf.cIndex=aeL?Ee.frontOuter1.show().attr(Oe,e.clipOuterFrontPath1):Ee.frontOuter1.hide(),e.thisElement._attr(Oe,e.clipTopPath),Ee.bottom.attr(Oe,e.clipTopPath),Ee.bottomBorder.attr(Oe,e.clipBottomBorderPath),Ee.topBorder&&Ee.topBorder.attr(Oe,e.clipTopBorderPath),Ee.frontOuter.attr(Oe,e.clipOuterFrontPath),Ee.backOuter.attr(Oe,e.clipOuterBackPath),le&&(Ee.backInner.attr(Oe,e.clipInnerBackPath),Ee.frontInner.attr(Oe,e.clipInnerFrontPath),Ee.backInner._conf.index=ne,Ee.frontInner._conf.index=te,ae>se?(Ee.backInner._conf.cIndex=R,Ee.frontInner._conf.cIndex=0):Ee.backInner._conf.cIndex=Ee.frontInner._conf.cIndex=Ae),this.hasOnePoint?(Ee.startSlice.hide(),Ee.endSlice.hide()):(Ee.startSlice.attr(Oe,e.startSlice).show(),Ee.endSlice.attr(Oe,e.endSlice).show()))},n._setSliceCosmetics=function(e){var t,n,r=e.thisElement,o=e.showBorderEffect,i=e.elements,a=(0,c.convertColor)(e.borderColor,(0,c.pluckNumber)(e.borderAlpha,e.alpha)),s=e.borderWidth;e.color&&(e.color=e.color.color?e.color.color:e.color,t=this._parseSliceColor(e.color,e.alpha,e),c.hasSVG?(n={fill:(0,c.toRaphaelColor)(t.top),"stroke-width":0},o?i.topBorder.show().attr({fill:(0,c.toRaphaelColor)(t.topBorder),"stroke-width":0}):(i.topBorder.hide(),n.stroke=a,n["stroke-width"]=s),r._attr(n)):(r._attr({fill:(0,c.toRaphaelColor)(t.top),"stroke-width":0}),i.topBorder.attr({stroke:a,"stroke-width":s})),i.bottom.attr({fill:(0,c.toRaphaelColor)(t.bottom)}),i.bottomBorder.attr({stroke:a,"stroke-width":s}),i.frontOuter.attr({fill:(0,c.toRaphaelColor)(t.frontOuter)}),i.frontOuter1.attr({fill:(0,c.toRaphaelColor)(t.frontOuter)}),i.backOuter.attr({fill:(0,c.toRaphaelColor)(t.backOuter)}),i.startSlice.attr({fill:(0,c.toRaphaelColor)(t.startSlice),stroke:a,"stroke-width":s}),i.endSlice.attr({fill:(0,c.toRaphaelColor)(t.endSlice),stroke:a,"stroke-width":s}),this.isDoughnut&&(i.frontInner.attr({fill:(0,c.toRaphaelColor)(t.frontInner)}),i.backInner.attr({fill:(0,c.toRaphaelColor)(t.backInner)})))},t}(u.ComponentInterface),de=ce;t.default=de},585:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t._getInnerSize=void 0;var o=r(n(232)),i=r(n(578)),a=n(226),s=n(218),l=r(n(586)),c=function(){var e,t,n,r,o,i,a,l,c,u=this.getFromEnv("chart"),d=this.config,h=u.getFromEnv("dataSource").chart,p=d.doughnutradius,f=(0,s.pluckNumber)(h.use3dlighting,1)?(0,s.pluckNumber)(h.radius3d,h["3dradius"],50):100,g=d.pieMinRadius;if(f>100&&(f=100),f<0&&(f=0),e=/%/.test(p)?g*(p=Number(p.split("%")[0])/100):p<=0||p>=g?g/2:(0,s.pluckNumber)(p),d.innerRadius=e,f>0&&s.hasSVG&&(n=(100-(t=parseInt(e/g*100,10)))/2,i=t+","+(r=parseInt(n*f/100,10))+","+2*(n-r)+","+r,this&&(l=this.components.data)))for(a=0,c=l.length;a=0;t--)"true"===(e=a[t]).vline||"1"===e.vline||1===e.vline||!0===e.vline?(l[t]=e,a.splice(t,1)):null===o.getCleanValue(e.value,!0)&&a.splice(t,1);for(t in a.sort(function(e,t){return o.getCleanValue(t.value,!0)-o.getCleanValue(e.value,!0)}),s=a.slice(),l)s.splice(t,0,l[t]);i[0].setTickValues(s)}var p=function(e){function t(){var t;return(t=e.call(this)||this).isPercentage=!0,t.registerFactory("axis",l.default,["canvas"]),t.registerFactory("dataset",u.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"Pareto2D"};var n=t.prototype;return n.getName=function(){return"Pareto2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="column",t.plotfillalpha=d,t.enablemousetracking=!0},n._setCategories=function(){h.call(this)},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").data;if(!e||!e.length)return!0},n.getDSdef=function(e){return"column"===e?a.ParetoColumnDataset:s.ParetoLineDataset},n.getDSGroupdef=function(){},t}(i.default);t.default=p},601:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.ParetoColumnDataset=void 0;var i=o(n(232)),a=n(218),s=r(n(528)),l=n(226),c=o(n(602)),u=Math,d=u.min,h=u.max,p=u.abs;(0,l.addDep)({name:"paretoAnimation",type:"animationRule",extension:c.default});var f=function(e){function t(){return e.apply(this,arguments)||this}(0,i.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"paretoColumn"},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,n,r,o,i,l,c,u,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F,I,z,B,j,V,W,H,G,U,q,Y,X,K,$,Z,J,Q,ee=this.getFromEnv("chart"),te=this.config,ne=this.getFromEnv("xAxis"),re=te.JSONData,oe=re.data,ie=oe&&oe.length,ae=this.getFromEnv("chart-attrib"),se=this.getFromEnv("color-manager"),le=this.index||this.positionIndex,ce=se.getPlotColor(le),ue=(0,a.pluckNumber)(re.dashed,ae.plotborderdashed),de=ee.config,he=de.useplotgradientcolor,pe=(0,a.pluckNumber)(ae.showtooltip,1),fe=(0,a.parseUnsafeString)(ae.yaxisname),ge=(0,a.parseUnsafeString)(ae.xaxisname),me=this.components.data,ve=this.getFromEnv("number-formatter"),ye=de.is3D,be=-1/0,Ce=1/0,we=0,xe=[],_e=0,Se=te.tootipSepChar=(0,a.pluck)(ae.tooltipsepchar,", ");for(te.minAbsNonZeroValue=1/0,te.minAbsNonZeroData={},te.defaultPadding={left:.5,right:.5},te.enableAnimation=U=(0,a.pluckNumber)(ae.animation,ae.defaultanimation,1),te.animation=!!U&&{duration:1e3*(0,a.pluckNumber)(ae.animationduration,1)},te.showTooltip=(0,a.pluckNumber)(ae.showtooltip,1),te.showTextOutline=(0,a.pluckNumber)(ae.textoutline,0),te.valuePadding=(0,a.pluckNumber)(ae.valuepadding,2),te.rotateValues=(0,a.pluckNumber)(ae.rotatevalues)?270:0,te.usePattern=(0,a.pluckNumber)(de.usePattern,0),te.patternType=s.PATTERN_TYPES.includes(re.patterntype)?re.patterntype:de.patternType,te.patternDensity=(0,a.pluckNumber)(re.patterndensity,de.patternDensity),te.patternAlpha=(0,a.pluckNumber)(re.patternalpha,de.patternAlpha),te.patternBgColor=(0,a.pluck)(re.patternbgcolor,te.patternBgColor),te.showHoverEffect=v=(0,a.pluckNumber)(ae.plothovereffect,ae.showhovereffect,void 0),te.usePattern&&(te.showHoverEffect=v=0),te.showShadow=m||ye?(0,a.pluckNumber)(ae.showshadow,1):(0,a.pluckNumber)(ae.showshadow,se.getColor("showShadow")),te.useDataPlotColorForLabels=Q=(0,a.pluckNumber)(ae.usedataplotcolorforlabels,0),te.use3dlineshift=(0,a.pluckNumber)(ae.use3dlineshift,ee.use3dlineshift),t=te.showplotborder=(0,a.pluckNumber)(ae.showplotborder,ye?0:1),te.plotDashLen=u=(0,a.pluckNumber)(ae.plotborderdashlen,5),te.plotDashGap=f=(0,a.pluckNumber)(ae.plotborderdashgap,4),te.plotfillangle=y=(0,a.pluckNumber)(360-ae.plotfillangle,90),te.plotfillalpha=b=(0,a.pluck)(ae.plotfillalpha,"100"),te.plotColor=ce,te.isRoundEdges=m=(0,a.pluckNumber)(ae.useroundedges,0),te.plotRadius=(0,a.pluckNumber)(ae.useRoundEdges,te.isRoundEdges?1:0),te.plotfillratio=C=(0,a.pluck)(ae.plotfillratio),te.plotgradientcolor=w=(0,a.getDefinedColor)(ae.plotgradientcolor,se.getColor("plotGradientColor")),!he&&(w=""),te.plotborderalpha=x=t&&!ye?(0,a.pluck)(ae.plotborderalpha,b,"100"):0,te.plotbordercolor=_=(0,a.pluck)(ae.plotbordercolor,ye?"#ffffff":se.getColor("plotBorderColor")),te.plotborderthickness=g=(0,a.pluckNumber)(ae.plotborderthickness,1),te.plotBorderDashStyle=M=ue?(0,a.getDashStyle)(u,f):"none",te.showValues=(0,a.pluckNumber)(ae.showvalues,1),te.definedGroupPadding=h((0,a.pluckNumber)(ae.plotspacepercent),0),te.plotSpacePercent=h((0,a.pluckNumber)(ae.plotspacepercent,20)%100,0),te.maxcolwidth=(0,a.pluckNumber)(ae.maxcolwidth,50),te.plotpaddingpercent=(0,a.pluckNumber)(ae.plotpaddingpercent),te.placevaluesinside=(0,a.pluckNumber)(ae.placevaluesinside,0),te.use3dlighting=(0,a.pluckNumber)(ae.use3dlighting,1),te.parentYAxis=0,this.setState("visible",1===(0,a.pluckNumber)(re.visible,1)),this.setState("dirty",!0),me||(me=this.components.data=[]),K=0;KMath.abs(O)&&(te.minAbsNonZeroValue=Math.abs(O),te.minAbsNonZeroData=T),pe?(te.showTooltip?void 0!==o?(r={formattedValue:n,label:T.label,yaxisName:fe,xaxisName:ge,cumulativeValue:_e,cumulativeDataValue:ve.dataLabels(_e),cumulativePercentValue:void 0,sum:ve.dataLabels(we),unformattedSum:we},i=[1,2,3,5,6,7,20,21,22,23,24,25],c=(0,a.parseTooltext)(o,i,r,E,ae)):c=T.label?T.label+Se:"":c=!1,T.toolText=c):c=!1,T.toolText=c,T.tooltext=o,T.setTooltext=c,l&&(y=l));te.maxValue=be,te.minValue=Ce},t}(s.default);t.ParetoColumnDataset=f},602:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o={"initial.dataset.paretoColumn":r(n(529)).default["initial.dataset.column"]};t.default=o},603:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.ParetoLineDataset=void 0;var o=r(n(232)),i=r(n(545)),a=n(218),s=Math,l=s.min,c=s.max,u=s.abs,d=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.prototype.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,n,r,o,i,s,d,h,p,f,g,m,v=this.getFromEnv("chart"),y=this.config,b=this.getFromEnv("xAxis"),C=y.JSONData,w=C.data,x=w&&w.length,_=this.getFromEnv("chart-attrib"),S=this.getFromEnv("color-manager"),M=(0,a.pluckNumber)(_.showtooltip,1),E=((0,a.parseUnsafeString)(_.yaxisname),(0,a.parseUnsafeString)(_.xaxisname),this.components.data),O=this.getFromEnv("number-formatter"),A=v.config.is3D,T=-1/0,k=1/0,D=0,P=[],N=0,L=y.tootipSepChar=(0,a.pluck)(_.tooltipsepchar,", ");for(y.defaultPadding={left:.5,right:.5},y.enableAnimation=s=(0,a.pluckNumber)(_.animation,_.defaultanimation,1),y.animation=!!s&&{duration:1e3*(0,a.pluckNumber)(_.animationduration,1)},y.showTooltip=(0,a.pluckNumber)(_.showtooltip,1),y.valuePadding=(0,a.pluckNumber)(_.valuepadding,2),y.showTextOutline=(0,a.pluckNumber)(_.textoutline,0),y.rotateValues=(0,a.pluckNumber)(_.rotatevalues)?270:0,y.showHoverEffect=(0,a.pluckNumber)(_.plothovereffect,_.showhovereffect,void 0),y.showShadow=A?(0,a.pluckNumber)(_.showshadow,1):(0,a.pluckNumber)(_.showshadow,S.getColor("showShadow")),y.useDataPlotColorForLabels=(0,a.pluckNumber)(_.usedataplotcolorforlabels,0),y.use3dlineshift=(0,a.pluckNumber)(_.use3dlineshift,v.use3dlineshift),y.drawLine=1,y.linecolor=(0,a.getFirstColor)((0,a.pluck)(_.linecolor,S.getColor("plotBorderColor"))),y.linethickness=(0,a.pluckNumber)(_.linethickness,2),y.linealpha=(0,a.pluck)(_.linealpha,"100"),y.linedashed=(0,a.pluckNumber)(_.linedashed,0),y.linedashlen=(0,a.pluckNumber)(C.linedashlen,_.linedashlen,5),y.linedashgap=(0,a.pluckNumber)(C.linedashgap,_.linedashgap,4),d=(0,a.getDashStyle)(y.linedashlen,y.linedashgap),y.lineDashStyle=y.linedashed?d:"none",y.drawanchors=(0,a.pluckNumber)(_.drawanchors,_.showanchors),y.anchorbgcolor=(0,a.pluck)(_.anchorbgcolor,S.getColor("anchorBgColor")),y.anchorbordercolor=(0,a.pluck)(_.anchorbordercolor,y.linecolor),y.anchorradius=(0,a.pluckNumber)(_.anchorradius,3),y.anchoralpha=(0,a.pluck)(_.anchoralpha),y.anchorbgalpha=(0,a.pluck)(_.anchorbgalpha,100),y.anchorborderthickness=(0,a.pluck)(_.anchorborderthickness,1),y.anchorsides=(0,a.pluck)(_.anchorsides,0),y.anchorimageurl=(0,a.pluck)(_.anchorimageurl),y.anchorimagealpha=(0,a.pluckNumber)(_.anchorimagealpha,100),y.anchorimagescale=(0,a.pluckNumber)(_.anchorimagescale,100),y.anchorimagepadding=(0,a.pluckNumber)(_.anchorimagepadding,1),y.anchorstartangle=(0,a.pluckNumber)(_.anchorstartangle,90),y.parentYAxis=1,y.valuePosition=(0,a.pluck)(_.valueposition,"auto"),y.showvalues=y.showValues=(0,a.pluckNumber)(_.showlinevalues,_.showvalues,1),this.setState("visible",1===(0,a.pluckNumber)(C.visible,1)),this.setState("dirty",!0),y.shadow={opacity:y.showShadow?y.linealpha/100:0},y.showCumulativeLine=(0,a.pluckNumber)(_.showcumulativeline,1),y.maxRadius=-1/0,E||(E=this.components.data=[]),h=0;h0?a._checkPointerOverColumn.call(this,r,e,t)||a._checkPointerOverColumn.call(this,r-1,e,t):a._checkPointerOverColumn.call(this,r+1,e,t)||a._checkPointerOverColumn.call(this,r,e,t)},n.createContainer=function(){var e,t,n=this.getLinkedParent();!this.getContainer("labelGroup")&&this.addContainer("labelGroup",(e=n.getChildContainer("vcanvasLabelGroup"),t=this,t.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:"label-group"},container:e,state:"appearing",component:t,label:"group"})).attr("class","fusioncharts-datalabels"))},t}(i.ParetoColumnDataset);t.ParetoColumn3DDataset=s},609:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(610)).default;t.default=o},610:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(611)),a=n(619),s=function(e){function t(){var t;return(t=e.call(this)||this).hasScroll=!0,t.eiMethods={scrollTo:a.scrollTo},t}(0,o.default)(t,e),t.getName=function(){return"ScrollCombiDy2D"},t.includeInputOptions=function(){return["SwipeGesture"]};var n=t.prototype;return n.getName=function(){return"ScrollCombiDy2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Dual Y-Axis Combination Chart",t.defaultDatasetType="column",t.showzeroplaneontop=0,t.avgScrollPointWidth=40,t.canvasborderthickness=1},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),a.configurer.call(this,t)},n._setAxisScale=function(){a.setAxisScale.call(this)},n._resetViewPortConfig=function(){a.resetViewPortConfig.call(this)},t}(i.default);t.default=s},611:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(597)),a=r(n(528)),s=r(n(546)),l=r(n(545)),c=r(n(612)),u=r(n(616)),d=r(n(618)),h=n(218),p=r(n(599)),f=h.preDefStr.SEVENTYSTRING,g=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t.registerFactory("dataset",p.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"MSCombidy2D"};var n=t.prototype;return n.getName=function(){return"MSCombidy2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Multi-series Dual Y-Axis Combination Chart",t.sDefaultDatasetType="line",t.defaultDatasetType="column",t.enablemousetracking=!0,t.isdual=1,t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=h.HUNDREDSTRING,t.anchorimagealpha=h.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=f,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=h.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.showzeroplaneontop=0},n.getDSdef=function(e){return"splinearea"===e?c.default:"spline"===e?u.default:"area"===e?s.default:"line"===e?l.default:a.default},n.getDSGroupdef=function(e){return"column"===e?d.default:void 0},n.getDSType=function(e){return void 0===e&&(e=""),"splinearea"===e.toLowerCase()?"splinearea":"spline"===e.toLowerCase()?"spline":"area"===e.toLowerCase()?"area":"line"===e.toLowerCase()?"line":"column"},t}(i.default);t.default=g},620:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(621)).default;t.default=o},621:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(622)),a=r(n(528)),s=r(n(546)),l=r(n(545)),c=r(n(612)),u=r(n(616)),d=r(n(618)),h=r(n(599)),p=function(e){function t(){var t;return(t=e.call(this)||this).hasScroll=!0,t.defaultPlotShadow=1,t.registerFactory("dataset",h.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"ScrollCombi2D"};var n=t.prototype;return n.getName=function(){return"ScrollCombi2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Combination Chart",t.defaultDatasetType="column",t.zeroplanethickness=1,t.zeroplanealpha=80,t.enablemousetracking=!0,t.showzeroplaneontop=0,t.defaultcrosslinethickness=null,t.avgScrollPointWidth=40,t.canvasborderthickness=1},n.getDSdef=function(e){return"splinearea"===e?c.default:"spline"===e?u.default:"area"===e?s.default:"line"===e?l.default:a.default},n.getDSGroupdef=function(e){return"column"===e?d.default:void 0},n.getDSType=function(e){return void 0===e&&(e=""),"splinearea"===e.toLowerCase()?"splinearea":"spline"===e.toLowerCase()?"spline":"area"===e.toLowerCase()?"area":"line"===e.toLowerCase()?"line":"column"},t}(i.default);t.default=p},622:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(623)),a=r(n(546)),s=n(218),l=s.preDefStr.SEVENTYSTRING,c=function(e){function t(){var t;return(t=e.call(this)||this).hasScroll=!0,t.defaultPlotShadow=0,t.binSize=0,t}(0,o.default)(t,e),t.getName=function(){return"ScrollArea2D"};var n=t.prototype;return n.getName=function(){return"ScrollArea2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Multi-series Area Chart",t.defaultDatasetType="scrollarea2d",t.enablemousetracking=!0,t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=s.HUNDREDSTRING,t.anchorimagealpha=s.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha=l,t.canvasborderthickness=1,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=s.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.defaultcrosslinethickness=1,t.avgScrollPointWidth=75},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=c},623:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(624)),a=r(n(528)),s=r(n(618)),l=n(619),c=function(e){function t(){var t;return(t=e.call(this)||this).tooltipConstraint="plot",t.hasScroll=!0,t.defaultPlotShadow=1,t.binSize=0,t.eiMethods.scrollTo=l.scrollTo,t}(0,o.default)(t,e),t.getName=function(){return"ScrollColumn2D"},t.includeInputOptions=function(){return["SwipeGesture"]};var n=t.prototype;return n.getName=function(){return"ScrollColumn2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="column",t.showzeroplaneontop=1,t.friendlyName="Scrollable Multi-series Column Chart",t.avgScrollPointWidth=40,t.canvasborderthickness=1},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),l.configurer.call(this,t)},n._setAxisScale=function(){l.setAxisScale.call(this)},n.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t)},n._resetViewPortConfig=function(){l.resetViewPortConfig.call(this)},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){return s.default},t}(i.default);t.default=c},625:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(626)).default;t.default=o},626:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(623)),a=r(n(627)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e),t.getName=function(){return"ScrollStackedColumn2D"};var n=t.prototype;return n.getName=function(){return"ScrollStackedColumn2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Stacked Column Chart",t.isstacked=!0,t.showSum=0,t.canvasborderthickness=1,t.avgScrollPointWidth=75},n.getDSGroupdef=function(){return a.default},t}(i.default);t.default=s},629:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(630)).default;t.default=o},630:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(631)),a=n(619),s=function(e){function t(){var t;return(t=e.call(this)||this).hasScroll=!0,t.eiMethods={scrollTo:a.scrollTo},t}(0,o.default)(t,e),t.getName=function(){return"ScrollMSStackedColumn2D"},t.includeInputOptions=function(){return["SwipeGesture"]};var n=t.prototype;return n.getName=function(){return"ScrollMSStackedColumn2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isstacked=!0,t.friendlyName="Scrollable MultiSeries Stacked Column Chart",t.defaultDatasetType="column",t.showzeroplaneontop=1,t.avgScrollPointWidth=75,t.canvasborderthickness=1},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),a.configurer.call(this,t)},t}(i.default);s.prototype._setAxisScale=a.setAxisScale,s.prototype._resetViewPortConfig=a.resetViewPortConfig;var l=s;t.default=l},633:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(634)).default;t.default=o},634:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(635)),a=n(619),s=function(e){function t(){var t;return(t=e.call(this)||this).hasScroll=!0,t.eiMethods={scrollTo:a.scrollTo},t}(0,o.default)(t,e),t.getName=function(){return"ScrollMSStackedColumn2DLineDY"},t.includeInputOptions=function(){return["SwipeGesture"]};var n=t.prototype;return n.getName=function(){return"ScrollMSStackedColumn2DLineDY"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isstacked=!0,t.friendlyName="Scrollable Multi-series Dual Y-Axis Stacked Column and Line Chart",t.defaultDatasetType="column",t.sDefaultDatasetType="line",t.showzeroplaneontop=1,t.avgScrollPointWidth=75,t.canvasborderthickness=1},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),a.configurer.call(this,t)},n._setAxisScale=function(){a.setAxisScale.call(this)},n._resetViewPortConfig=function(){a.resetViewPortConfig.call(this)},t}(i.default);s.prototype._setAxisScale=a.setAxisScale,s.prototype._resetViewPortConfig=a.resetViewPortConfig;var l=s;t.default=l},637:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(638)).default;t.default=o},638:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(639)),a=r(n(627)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e),t.getName=function(){return"ScrollStackedBar2D"};var n=t.prototype;return n.getName=function(){return"ScrollStackedBar2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Stacked Bar Chart",t.isstacked=!0,t.avgScrollPointWidth=75,t.canvasborderthickness=1,t.showSum=0},n.getDSGroupdef=function(){return a.default},t}(i.default);t.default=s},639:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(554)),a=r(n(569)),s=r(n(618)),l=r(n(557)),c=n(619),u=function(e){function t(){var t;return(t=e.call(this)||this).isBar=!0,t.eiMethods={scrollTo:c.scrollTo},t.hasScroll=!0,t.registerFactory("dataset",l.default,["vCanvas"]),t}(0,o.default)(t,e),t.getName=function(){return"ScrollBar2D"},t.includeInputOptions=function(){return["SwipeGesture"]};var n=t.prototype;return n.getName=function(){return"ScrollBar2D"},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){return s.default},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Multi-series Bar Chart",t.hasLegend=!0,t.defaultDatasetType="bar2d",t.avgScrollPointWidth=40},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),c.configurer.call(this,t)},n._setAxisScale=function(){c.setAxisScale.call(this,"bar2d")},n._resetViewPortConfig=function(){c.resetViewPortConfig.call(this)},t}(i.default);t.default=u},640:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(622)).default;t.default=o},641:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(642)).default;t.default=o},642:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(622)),a=r(n(545)),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t.binSize=0,t}(0,o.default)(t,e),t.getName=function(){return"ScrollLine2D"};var n=t.prototype;return n.getName=function(){return"ScrollLine2D"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scrollable Multi-series Line Chart",t.defaultDatasetType="line",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,t.avgScrollPointWidth=75,t.canvasborderthickness=1},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=s},643:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(623)).default;t.default=o},644:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(639)).default;t.default=o},645:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(646)).default;t.default=o},646:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(647)),a=r(n(655)),s=r(n(657)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e),t.getName=function(){return"Bubble"};var n=t.prototype;return n.getName=function(){return"Bubble"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Bubble Chart",t.enablemousetracking=!0},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){return s.default},t}(i.default);t.default=l},647:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(648)),a=r(n(652)),s=function(e){function t(){var t;return(t=e.call(this)||this).isXY=!0,t.defaultZeroPlaneHighlighted=!1,t}(0,o.default)(t,e),t.getName=function(){return"Scatter"};var n=t.prototype;return n.getName=function(){return"Scatter"},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Scatter Chart",t.hasLegend=!0,t.allowreversexaxis=!0,t.enablemousetracking=!0},n.getDSdef=function(){return a.default},n.getDSGroupdef=function(){},t}(i.default);t.default=s},655:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(652)),a=n(528),s=n(218),l=r(n(653)),c=n(226),u=r(n(656)),d=s.hasTouch?s.TOUCH_THRESHOLD_PIXELS:s.CLICK_THRESHOLD_PIXELS,h=s.preDefStr.setRolloverAttrStr,p=s.preDefStr.setRolloutAttrStr,f=Math,g=f.round,m=f.min,v=f.max;(0,c.addDep)({name:"bubbleAnimation",type:"animationRule",extension:u.default});var y=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"dataset"},n.getName=function(){return"bubble"},n.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,n,r,o,i,l,c,u,d,h,p,f,g,y,b,C,w,x,_,S,M,E,O,A=this.getFromEnv("chart"),T=A.getFromEnv("dataSource"),k=A.config,D=T.chart,P=this.config.JSONData,N=this.config,L=P.data||[],R=this.getFromEnv("color-manager"),F=this.index,I=this.getFromEnv("number-formatter"),z=(0,s.pluck)((0,s.parseUnsafeString)(D.tooltipsepchar),", "),B=-1/0,j=B,V=1/0,W=B,H=1/0,G=B,U=1/0;for(N.usePattern=(0,s.pluckNumber)(k.usePattern,0),N.patternType=a.PATTERN_TYPES.includes(P.patterntype)?P.patterntype:k.patternType,N.patternAngle=(0,s.pluckNumber)(P.patternangle,D.patternangle,N.patternType===a.PATTERN_TYPES[0]?40:0),N.patternDensity=(0,s.pluckNumber)(P.patterndensity,k.patternDensity),N.patternSize=(0,s.pluckNumber)(P.patternsize,N.patternType===a.PATTERN_TYPES[0]?2:4),N.patternAlpha=(0,s.pluckNumber)(P.patternalpha,k.patternAlpha),N.patternBgColor=(0,s.pluck)(P.patternbgcolor,N.patternBgColor),N.seriesname=(0,s.parseUnsafeString)(P.seriesname),N.includeinlegend=(0,s.pluckNumber)(P.includeinlegend,N.seriesname?1:0),N.anchorBgColor=(0,s.getFirstColor)((0,s.pluck)(P.color,P.plotfillcolor,D.plotfillcolor,R.getPlotColor(F))),N.showPlotBorder=(0,s.pluckNumber)(P.showplotborder,D.showplotborder,1),N.anchorBorderThickness=N.showPlotBorder?(0,s.pluckNumber)(P.plotborderthickness,D.plotborderthickness,1):0,N.anchorBorderColor=(0,s.getFirstColor)((0,s.pluck)(P.plotbordercolor,D.plotbordercolor,N.usePattern?N.anchorBgColor:"666666")),N.plotFillAlpha=(0,s.pluck)(P.plotfillalpha,P.bubblefillalpha,D.plotfillalpha,"100"),N.plotBorderAlpha=(0,s.pluck)(P.plotborderalpha,D.plotborderalpha,"95"),N.negativeColor=(0,s.pluck)(D.negativecolor,"FF0000"),N.is3d=0!==(0,s.pluckNumber)(D.use3dlighting,P.is3d,D.is3d),N.usePattern&&(N.is3d=0),N.bubbleScale=(0,s.pluckNumber)(D.bubblescale,1),N.showTextOutline=(0,s.pluckNumber)(D.textoutline,0),N.minBubbleRadius=(0,s.pluckNumber)(D.minbubbleradius),N.minRadiusForValue=(0,s.pluckNumber)(P.minradiusforvalue,D.minradiusforvalue,0),N.clipBubbles=(0,s.pluckNumber)(D.clipbubbles,1),N.enableAnimation=u=(0,s.pluckNumber)(D.animation,D.defaultanimation,1),N.animation=!!u&&{duration:1e3*(0,s.pluckNumber)(D.animationduration,1)},N.showTooltip=(0,s.pluckNumber)(D.showtooltip,1),N.transposeAnimation=(0,s.pluckNumber)(D.transposeanimation,u),N.transposeAnimDuration=1e3*(0,s.pluckNumber)(D.transposeanimduration,.2),N.seriesNameInTooltip=(0,s.pluckNumber)(D.seriesnameintooltip,1),N.rotateValues=(0,s.pluckNumber)(D.rotatevalues)?270:0,N.showHoverEffect=(0,s.pluckNumber)(D.plothovereffect,D.showhovereffect,void 0),N.usePattern&&(N.showHoverEffect=0),N.showValues=N.showvalues=(0,s.pluckNumber)(P.showvalues,D.showvalues,0),o=this.components.data=this.components.data||(this.components.data=[]),t=L.length,N.fillColor=N.is3d?(0,s.toRaphaelColor)((0,s.getPointColor)(N.anchorBgColor,N.plotFillAlpha)):(0,s.toRaphaelColor)({color:N.anchorBgColor,alpha:N.plotFillAlpha}),N.strokeColor=(0,s.toRaphaelColor)({color:N.anchorBorderColor,alpha:N.plotFillAlpha}),n=0;n=t.plotMinRadiusForValue&&this.config.showValues),p?(t._Px=i,t._Py=o,t._Pby=i,t._Pbx=a):(t._Px=o,t._Py=i,t._Pby=a,t._Pbx=o))},n.parsePlotAttributes=function(e,t){var n,r,o,i,a,l,c,u,h,p,f,g,m,y=this.config.JSONData,b=this.getFromEnv("chart").config,C=this.config,w=t,x=this.getState("visible"),_=C.anchorBorderThickness;i=e.config,l=(0,s.pluckNumber)(i.x,w),c=i.y,u=i.z,h=i.setLink,p=i.displayValue,a=i.toolText,i.finalTooltext=i.toolText,f=i.hoverEffects,null!==c&&((m=i.eventArgs||(i.eventArgs={})).index=w,m.link=h,m.value=c,m.y=c,m.x=l,m.z=u,m.displayValue=p,m.toolText=a,m.id=this.userID,m.datasetIndex=this.config.index,m.datasetName=y.seriesname,m.visible=x,m.color=i.color,m.alpha=i.alpha,m.is3dOnHover=f.is3d,m.hoverScale=f.scale,m.use3dLighting=i.is3d,m.hoverColor=i.hoverColor,m.hoverAlpha=f.alpha,C.usePattern?(m.pattern={patternType:i.patternType,patternColor:i.color,patternBgColor:i.patternBgColor===s.TRACKER_FILL?void 0:i.patternBgColor},delete m.color):delete m.pattern,r=i._Py,o=i._Px,n=i.r,[].push({x:o,y:r,r:n}),g=i.setRolloutAttr={fill:(0,s.toRaphaelColor)(i.colorObj),"stroke-width":C.anchorBorderThickness,stroke:(0,s.toRaphaelColor)({color:C.anchorBorderColor,alpha:C.plotBorderAlpha}),r:n},!1!==f.enabled&&(i.setRolloverAttr={fill:(0,s.toRaphaelColor)(f.color),"stroke-width":f.borderThickness,stroke:(0,s.toRaphaelColor)({color:f.borderColor,alpha:f.borderAlpha}),r:n*f.scale}),i.props={element:{attr:{cx:o,cy:x?r:b.canvasBottom+n,r:n||0,fill:(0,s.toRaphaelColor)(i.colorObj),"stroke-width":C.anchorBorderThickness,visibility:x,stroke:g.stroke}}},i.props.element.patternAttr={patternType:i.patternType,patternAngle:i.patternAngle,patternDensity:i.patternDensity,patternSize:i.patternSize,color:i.props.element.attr.fill,patternAlpha:i.patternAlpha,patternBgColor:i.patternBgColor,alpha:i.alpha,x:i.props.element.attr.cx,y:i.props.element.attr.cy},i.trackerConfig||(i.trackerConfig={}),i.trackerConfig.trackerRadius=v(n+(_||0),d),e._xPos=o,e._yPos=r)},n.allocatePosition=function(){var e,t,n,r,o,i,a,s=this.components.data,c=[];for(this.createCoordinates(),t=0,n=s.length;tl&&(S=x[s],O=1),u(a=C.getPixel(o.x)-.5*j)&&(B.paddingLeft=R-a)),M&&M.config.showValue&&(d=(o=M.config).displayValue,F=z.getOriSize(d),j=b?F.height:F.width,L<(f=C.getPixel(o.x)+.5*j)&&(B.paddingRight=f-L)),B},n.drawPlots=function(){var e,t,n,r,o,i,a,s,l,c=this,u=c.getFromEnv("animationManager"),d=c.components.data,f=c.getContainer(),g=c.getState("visible"),m=c.getContainer("labelGroup"),v=function(){!1===g&&(f.plotGroup.hide(),f.commonElemsGroup.hide(),m&&m.hide(),c._containerHidden=!0)},y={};for(o=0,i=d.length;oe))return n;a=n-1}return i},n.allocatePosition=function(){this.getLinkedParent()._setStackDimensions(),e.prototype.allocatePosition.call(this)},n._getHoveredPlot=function(e,t){var n,r,o,i,a=this.getLinkedParent(),s=a.getstackConf(),l=this.getFromEnv("chartConfig"),c=a.config,u=l.plotborderthickness,d=l.showplotborder,h=s.length-1;return r=e+(n=(n=(u=d?u:0)/2)%2==0?n+1:Math.round(n)),i=o&&c.datasetIndex||this.searchIndex(r,s),c.datasetIndex||(c.datasetIndex=i),((o=this._checkPointerOverColumn(i,e,t))||this.index===h)&&delete c.datasetIndex,o},n.setColumnPosition=function(){return this},n.fineTunePlotDimension=function(e,t,n,r,o){var i=n,a=r,s=e,l=t,c=this.getLinkedParent().getstackConf(),u=this.getFromEnv("chart"),h=u.config.plotborderthickness,p=u.getChildren("canvas")[0].config,f=p.canvasBorderWidth>0,g=p.canvasRight,m=p.canvasTop,v=p.canvasLeft;return c.length?(s-=(a=c[o].columnWidth)/2,parseInt(l,10)<=m&&(i-=m-l-+f,l=m-+f),h<=1&&(d(s)<=v&&(a+=s,a-=s=v-h/2+ +!!h-+f),d(s+a)>=g&&(a=g-s+h/2-+!!h+ +f)),{xPos:s,yPos:l,width:a,height:i}):{xPos:s,yPos:l,width:a,height:i}},t}(i.default);t.default=p},701:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218),o={"initial.dataset.marimekko":function(){var e=this,t=e.getFromEnv("chart"),n=t.config.yDepth||0,o=e.getFromEnv("yAxis");return{"rect.appearing":function(i){var a,s,l,c,u=o.getPixel(o.getAxisBase())+(t.isBar?-n:n),d=i.attr;return a=d.y,s=d.height,c=Math.sign(a+s/2-u),l=a+s,[{initialAttr:function(){var e={};return e.y=l,e.height=0,e},slot:"plot",startEnd:function(){return r.animHelperFN.getTimeByValue({start:0,end:.6},{startPx:u,endPx:1===c?e.config.yAxisMaxPixel:e.config.yAxisMinPixel},{startPx:l,endPx:1===c?d.y+d.height:d.y})},effect:"linear"}]},"group.appearing":null,"group.updating":null,"plotLabel.appearing":[{initialAttr:{opacity:0},slot:"final"}],"*":null}}};t.default=o},702:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(627)),a=n(218),s=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return"group"},n.getName=function(){return"marimekkoStackgroup"},n.getstackConf=function(){return this.config.stackConf},n._setStackPosition=function(){e.prototype._setStackPosition.call(this);var t,n,r,o,i,a,s=this.config,l=s.stackConf||(s.stackConf=[]),c=s.stackValues,u=this.getFromEnv("categories")[0].category,d=this.getFromEnv("number-formatter"),h=0,p=0,f=0,g=this.getFromEnv("xAxis"),m=g.getVisibleConfig(),v=m.minValue,y=m.maxValue-v,b=v;for(o=0,i=c.length;o0?(0,s.default)(function(e){return n.filter(i).map(function(t){return[e,t.column,t.operation]})},t).map(function(e){return e.join(Z.default)}):n.filter(i).map(function(e){return[e.column,e.operation].join(Z.default)})).forEach(function(t){return e[o].push(t)})}};for(var i in e)o(i)},_e=function(e,t){for(var n in e)e.hasOwnProperty(n)&&function(){var r=e[n]._fc_info,o=r.binDecider,i=r.chart,a=o.getRangeThreshold(),l=[{column:r.bin,timeUnit:_.DatetimeUnits[(0,k.default)(a[0].name())],binSize:a[1],startValue:r.totalStart}],c=t.group,u=t.groupItems,h=t.pivot,p=t.table;if(e[n].aggregate){var g,m,v=e[n].aggregate._fc_info,y=[],b=[],C=[],w=[],x=[],S=!1;for(var M in v)v.hasOwnProperty(M)&&y.push({op:M,operands:v[M],filter:c});if(g=(0,s.default)(we,y),c){var E=u.map(function(e){for(var t,n,r=0;r0&&isFinite(e)?function(e,t){var n=.9*e;return i?Math.min(n,1):n}(e):1,l=(0,w.default)(n)&&n>0&&n0&&isFinite(t)?t:s+ +a;return[l,(0,w.default)(r)&&r>l?r:1.2*c]},Oe=function(e,t){var n=e.bin;for(var r in n)n.hasOwnProperty(r)&&/x__FC_OP_SEP__/.test(r)&&(n[r]._fc_info.totalStart=t)},Ae=function(e,t){var n=+v.timeYear.floor(t);if(e.filter){var r=e.filter;for(var o in r)r.hasOwnProperty(o)&&/x__FC_OP_SEP__/.test(o)&&Oe(r[o],n)}else Oe(e,n)},Te=function(e){e.dispose&&e.dispose()},ke=function e(t,n,r){void 0===t&&(t={}),void 0===r&&(r=p.stubFN);for(var o=Object.keys(t),i=o.length,a=!0,s=0;s14&&l++,l):d((t-n)/f)}var Re=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return t._onDataUpdate=function(e){var t=e.data,n=t.parsedRows,r=void 0===n?[]:n,o=t.tableID,i=this.config,a=i.focusAxesX[0],s=i.clipDates,l=this.getFromEnv("dateColumn").name,c=this.getFromEnv("contextBins"),u=this.getFromEnv("focusBins"),h=this.getFromEnv("focusScalesX"),p=this.getFromEnv("contextScalesX"),m=i.dataTable.getData().data,y=(0,g.default)(r,function(e){return(0,x.default)(e)&&e[i.dateColumnIndex]}),b=[],C=this.getContextLimit(),w=v.timeYear.floor(C[0]),_=this.getFocusLimit(),S=_.slice(),M=_[1]-_[0],E=Math.min(m[0][i.dateColumnIndex],y[0]),T=!1,k=[];if(i.dataTable.getID()===o){if(s.length&&(k=[(0,f.filter)(function(e,t){var n=e[t[l]];return s.some(function(e){var t=e.from,r=e.to;return n>=t&&n<=r})})]),p.some(function(e){var t,n=Le(e,C[1],w);return Le(e,y[1],w)-n>0&&(t=c[0].getRangeThreshold()[0],E=+t.offset(C[0],t.count(C[1],y[1])),k=k.concat((0,f.less)(l,E-(1===c[0].getRangeThreshold()[2]?0:1))),T=!0,!0)}),k.length&&(i.dataTable.getDataStore().deleteRows(f.pipe.apply(void 0,k),i.dataTable.getID()),m=i.dataTable.getData().data,E=Math.max(E,Math.min(m[0][i.dateColumnIndex],y[0]))),i.contextAxesX.forEach(function(e){var t=e.binDecider,n=e.scale;i.atomicity.minBin=(0,O.getAtomicity)(Q(Q({},i.atomicity),{},{index:i.dateColumnIndex,data:m.slice(-r.length-1),bins:t.getStandardBins(),intervalIndexMap:t.intervalIndexMap,ms:n.getTimeInterval().Millisecond})),t.setBinMin(i.atomicity.minBin),n.setRangeThreshold(t.getRangeThreshold())}),i.focusAxesX.forEach(function(e){var t=e.binDecider,n=e.scale;t.setBinMin(i.atomicity.minBin),n.setRangeThreshold(t.getRangeThreshold())}),T||m.length-r.length==0){var D=c[0].getBinMin(),P=c[0].getRangeThreshold();i.timeSpread?(b[1]=y[1],b[0]=Math.min(i.timeSpread.interval.offset(y[1],-i.timeSpread.multiplier),P[0].offset(y[1],-2))):T||m.length-r.length==0?(b[1]=y[1],b[0]=Math.min(y[1]-(C[1]-C[0]),y[1]-(y[1]-E),D[0].offset(y[1],-3))):b=(0,g.default)([].concat(C,y),Number)}else if(i.timeSpread){var N=Math.min(C[0],y[0]),L=Math.max(C[1],y[1]);b=[N+Math.max(0,y[1]-C[1]),L]}else b=(0,g.default)([].concat(C,y),Number);var R=i.rawDataXStart!==E&&!i.hasSeries;if(R&&(Ae(i.focusTableMap,E),Ae(i.contextTableMap,E)),i.rawDataXStart=E,this.setContextLimit(b),_[0]<=C[0]&&(S[0]=b[0],_[1]!==C[1]&&(S[1]=S[0]+M)),_[1]>=C[1]&&(S[1]=b[1],_[0]!==C[0]&&(S[0]=S[1]-M)),S[0]b[1]&&(S[1]=b[1],S[0]=S[1]-M),i.hasSeries){(0,d.default)(S,_)||u[0].setBinDomain(S);var F=u[0].getRangeThreshold();h[0].setRangeThreshold(F),a.filterInfo&&a.filterInfo.query&&a.filterInfo.query._updateArgs(+F[0].offset(+S[0],-2*F[1]),+F[0].offset(+S[1],2*F[1])),Me(this),Me(this,!0),Se(i.focusTableMap),Se(i.contextTableMap),this._createLegendMap(!0);for(var I=0;I=r[0]});a.length&&t.dataTable.getDataStore().appendRows(a,t.dataTable.getID())}return n}},n.addToEnv("getStyleDef",function(e){void 0===e&&(e={});var t,r,o,i=e,a=n.getFromEnv("textStyle");if("string"==typeof i){var s=n.getFromEnv("dataSource").styledefinition;t={},s&&i.split(/\s+/g).forEach(function(e){return(0,p.extend2)(t,s[e])})}return t&&(i=t),function e(t){for(var n in t)if(t.hasOwnProperty(n)){var r="stroke-dasharray"===n;"object"==typeof t[n]?e(t[n]):r&&"string"==typeof(o=t[n])&&"none"!==o&&(t[n]=t[n].replace(/^\s+|\s+$/g,"").replace(/,/g," ").split(" ").map(function(e){return+e}))}var o}(i),function e(t){for(var n in t)t.hasOwnProperty(n)&&("object"==typeof t[n]?e(t[n]):"opacity"!==n&&"stroke-opacity"!==n&&"fill-opacity"!==n||(t[n]=Math.max(0,Math.min(1,+t[n]))))}(i),(i["font-size"]||0===i["font-size"])&&(r=i,o=a["font-size"],"object"==typeof r&&(r["line-height"]||(r["line-height"]=1.2*(parseFloat(r["font-size"])||o||10)+p.PXSTRING))),i}),n.deregisterFactory("canvas"),n.registerFactory("background",B.default),n.registerFactory("caption",L.default),n.registerFactory("legend",G.default),n.registerFactory("panel",N.default),n.registerFactory("selectorToolbar",U.default,["timeNavigator","canvas"]),n.registerFactory("timeNavigator",V.default),n.registerFactory("standardRangeSelector",Y.default,["selectorToolbar"]),n.registerFactory("customRangeSelector",W.default,["selectorToolbar"]),n.registerFactory("multicanvasCrosslineManager",q.default,["mouseTracker"]),n.registerFactory("toolbarManager",H.default,["standardRangeSelector","customRangeSelector"]),t}(0,i.default)(t,e),t.getName=function(){return"timeseries"};var n=t.prototype;return n.getName=function(){return"timeseries"},n.__setDefaultConfig=function(){var e=this.config;e.skipConfigureIteration={},e.canvasAxisMap={},e.scaleDsMap={},e.palettecolors=["#5D62B5","#29C3BE","#F2726F","#FFC533","#62B58F","#BC95DF","#67CDF2"],e.defaultLegendTextStyle={"font-family":p.DEFAULT_FT_FONT,"font-weight":"normal","font-style":"normal","font-size":"12px",fill:"#5F5F5F","line-height":"14px",opacity:"1","fill-opacity":"1"},e.defaultTooltipStyle={"background-color":(0,p.convertColor)("#ffffff","90"),color:"#5f5f5f","border-color":"#e8e8e8","border-width":"1px","border-radius":"0px","line-height":1,"font-family":p.DEFAULT_FT_FONT,padding:"3px",opacity:.9},this.addToEnv("textStyle",{"font-family":"sans-serif","font-size":"10",fill:"#000000","line-height":"12"}),e.contextPanels=[],e.contextLimit=e.focusLimit=p.UNDEF,e.legendMap={},e.isXMLUnsupported=!0,e.uniqueItemsMap={},e.isTableCloned=!1,e.hasSeries=!1,e.clipDates=p.UNDEF},n.cloneTable=function(){var e=this.config,t=e.dataTable.getData(),n=t.data,r=t.schema;if(!e.isTableCloned){var o=e.dataTable.getDataStore().createDataTable(n.map(function(t){return t.map(function(t,n){return ue(r[n])?e.baseTimeConverter.format(t):t})}),r);return ke(e.focusTableMap,e.dataTable,Te),ke(e.contextTableMap,e.dataTable,Te),e.dataTable=o,e.isTableCloned=!0,!0}return!1},n.setTooltipStyle=function(){var e=this.getFromEnv("tooltipStyle"),t=this.getFromEnv("baseTextStyle"),n=this.getFromEnv("toolTipController");e.container=Object.assign({},this.config.defaultTooltipStyle,t,e.text,e.container),e.header=Object.assign({"font-size":(0,p.pluck)(e.container["font-size"],"12px"),"font-weight":(0,p.pluck)(e.container["font-weight"],"bold"),"font-family":e.container["font-family"],padding:"5px 5px 0",color:(0,p.getLightColor)("#5f5f5f",76)},e.header),e.body=Object.assign({"font-size":(0,p.pluck)(e.container["font-size"],"11px"),"font-weight":(0,p.pluck)(e.container["font-weight"],"normal"),"font-family":e.container["font-family"],padding:"0 5px 5px"},e.body),n.setStyle(e.container),n.setRestrictionWithinCanvas({bottom:!0}),e.headerStyleString=Pe(e.header),e.bodyStyleString=Pe(e.body)},n.sanitizeData=function(t){var n=this;t.yaxis&&t.yaxis.format&&(t.yaxis.format.suffix&&(t.yaxis.format.suffix=(0,p.parseUnsafeString)(t.yaxis.format.suffix)),t.yaxis.format.prefix&&(t.yaxis.format.prefix=(0,p.parseUnsafeString)(t.yaxis.format.prefix))),e.prototype.sanitizeData.call(this,t);var r=(0,R.default)(ie(t.data,de),t.xaxis,!1),o=r.expandedAxis,i=r.actions,a=(0,R.default)(ie(t.data,he),t.yaxis),s=a.expandedAxis,l=a.actions;t.xaxis=o,t.yaxis=s,i.forEach(function(e){return De(e,"x",n)}),l.forEach(function(e){return De(e,"y",n)})},n.getDSdef=function(){return j.default},n._updateVisuals=function(){e.prototype._updateVisuals.call(this),this.getFromEnv("paper").config.noDefaultAttribs=!0},n.setPixelLimit=function(e,t,n,r){void 0===n&&(n=["up","up"]);var o,i=e[0],a=e[1],s=t.applicableClippings,l=s.repeatClips,c=s.singleClips,u=(0,$.getUnclippedValue)(t.getDomainValue(i),l,c,{clampDirection:n[0]}),d=(0,$.getUnclippedValue)(t.getDomainValue(a),l,c,{clampDirection:n[1]});return(o=this.setFocusLimit([u,d]))&&r&&this.getFromEnv("fireChartEvents")(r.name,[u,d],r.eventArgs,r.options),o},n.domainValidator=function(e,t,n){void 0===n&&(n=[]);var r,o,i=this.getFromEnv("contextBins")[0].getBinMin(),a=this.getFromEnv("focusScalesX")[0],s=e[0],l=e[1],c=t[0],u=t[1],d=+e[0],h=+e[1],f=+t[0],g=+t[1],m=0;if(n.length&&(r=Math.abs(h-d-(+n[1]-+n[0]))>1?"squeeze":"drag"),dg&&(l=u,s="drag"===r?new Date(d-(h-g)):s),hg&&(s=u),d>h){var v=[l,s];s=v[0],l=v[1]}return o=Object.keys(a.applicableClippings).length?a.distance(s,l):l-s,"month"===i[0].name()&&1===i[1]&&(m=864e5),o>=3*i[2]-m?(this.fireEvent("domainValidated"),[+(s=(0,p.clampNumber)(+s,f,g)),+(l=(0,p.clampNumber)(+l,f,g))]):this.getFocusLimit()||this.getContextLimit()},n.configureAttributes=function(e){var t,n,r,o,i=this,a=i.config,s=new E.default(i),c=new C.default,u=e.chart,d=function(e){void 0===e&&(e=[]);var t=[];return(0,x.default)(e)?t=e.slice():(0,S.default)(e)&&(t=e.split(/\s*,\s*/)),(t=t.filter(function(e){return!!e})).map(function(e){return(0,p.hashify)(e)})}(u.palettecolors),h=u.canvasheightproportion,f=i.getFromEnv("getStyleDef"),g=e.legend,v=f(u.style&&u.style.text),y=Object.assign({},u.timespread),w=_.DatetimeUnits[(0,k.default)(String(y.unit))],M=i.getFromEnv("dataSource"),O=(0,p.extend2)(i.getFromEnv("textStyle"),v),A=(0,b.default)(e.tooltip)?e.tooltip:{},T=(0,b.default)(A.style)?A.style:{},N=f(g&&g.style&&g.style.text),L=[];i.addToEnv("baseTextStyle",Object.assign({"font-family":p.DEFAULT_FT_FONT,stroke:"none"},v)),N=Object.assign({},i.getFromEnv("baseTextStyle"),N),a.mergedLegendStyle=(0,p.extend2)((0,p.extend2)({},a.defaultLegendTextStyle),N),a.focusTableMap&&(ke(a.focusTableMap,a.focusTableMap._fc_info.table,Te),a.focusTableMap=p.UNDEF),a.contextTableMap&&(ke(a.contextTableMap,a.contextTableMap._fc_info.table,Te),a.contextTableMap=p.UNDEF),i.addToEnv("chart-attrib",u),s.configure(),i.addToEnv("color-manager",s),d.length&&(a.palettecolors=d),c.setRange(a.palettecolors),i.addToEnv("ordinalScale",c),a.dataTable=e.data,a.showLegend=(0,p.pluckNumber)(g&&g.enabled,u.showlegend,1),a.navigatorEnabled=(0,p.pluckNumber)(M.navigator&&M.navigator.enabled,u.enablenavigator,1),a.navigatorHeight=(0,p.pluckNumber)(M.navigator&&M.navigator.height),a.showTooltip=(0,p.pluckNumber)(A.enabled,u.showtooltip,1),a.interCanvasSpace=(0,p.pluckNumber)(u.intercanvasspace,20),a.multiCanvas=(0,p.pluckNumber)(u.multicanvas,1),a.applycsstransform=(0,p.pluckNumber)(u.applycsstransform,0),n=(0,p.pluck)(u.enableutc,!1),i.addToEnv("UTC",n),i.addToEnv("dateAPI",function(e,t,n){return e["get"+(n?"UTC":"")+t]()}),L=e.xaxis.slice(0,1).map(function(e){return Object.assign({},e,{bin:e.plot.map(function(e){return e.value})})}),a.focusAxesX=L.map(le),a.focusAxesY=(0,z.default)(ie(a.dataTable,pe),e.yaxis,e.series,e.stack,e.group),a.contextAxesX=(0,l.default)(L),a.contextAxesY=(0,l.default)(a.focusAxesY),a.dateColumnIndex=a.dataTable.indexOf(a.contextAxesX[0].plot[0].value),t=a.dataTable.getSchema()[a.dateColumnIndex],o=t.format?n?K.default.utcParser(t.format):K.default.parser(t.format):{parse:re},r=t.format?n?K.default.utcFormatter(t.format):K.default.formatter(t.format):{format:oe},a.baseTimeConverter={toString:function(){return o.toString()},parse:function(e){return o.parse(e)},format:function(e){return r.format(e)}},i.addToEnv("baseTimeConverter",a.baseTimeConverter),i.addToEnv("dateColumn",t),w&&(y.unit=w,y.multiplier=(0,m.default)([(0,p.pluckNumber)(y.multiplier-1),1],Number),y.duration=y.unit.ms*y.multiplier,y.interval=n?te[w.name.toLowerCase()]:ee[w.name.toLowerCase()],a.timeSpread=y),a.focusPanels=ae((0,I.default)(a.focusAxesX,a.focusAxesY,e.canvas,a.multiCanvas?me:ve)),a.canvasHeightProportion=function(e,t){for(var n={},r=e,o=[],i=0;i0})).length===t&&(r=r.map(function(e){return Number(e)}),n.proportions=r,n.totalProportions=r.reduce(se,0)),n}(h,a.focusPanels.length),i._createLegendMap(),i.addToEnv("fireChartEvents",function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={});var o,a,s=i.getFocusLimit(),l=i.getContextLimit(),c=i.domainValidator(t,l,s);o={start:c[0],end:c[1]},(a=r.timeFormatter)&&(o.startText=a.format(c[0]),o.endText=a.format(c[1])),(0,p.extend2)(o,n),i.fireChartInstanceEvent(e,o)}),(0,D.default)(i),(0,P.default)(i),a.focusTableMap={_fc_info:{table:a.dataTable}},Me(i),a.contextPanels=ae((0,I.default)(a.contextAxesX,a.contextAxesY,[],function(e,t){return e.map(function(e,n){return{x:[{index:n}],y:t.map(function(e,t){return{index:t,visible:!1}})}})})),a.contextTableMap={_fc_info:{table:a.dataTable}},Me(i,!0),Se(a.focusTableMap),Se(a.contextTableMap),a.printOption={enabled:(0,p.pluckNumber)(u.printshowbutton,u.showprintmenuitem,0)},a.toolbarPosition=function(e){var t=(0,p.pluck)(u.toolbarposition,"tr").toLowerCase();switch(t){case"tr":case"rt":case"top right":case"right top":t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl";break;default:t="tr"}return t}(),a.toolbarHAlign="left"===(""+u.toolbarhalign).toLowerCase()?"l":a.toolbarPosition.charAt(1),a.toolbarVAlign="bottom"===(""+u.toolbarvalign).toLowerCase()?"b":a.toolbarPosition.charAt(0),a.link=u.clickurl,i.addToEnv("linkClickFN",(0,p.getLinkAction)(i.getFromEnv("dataSource"),i)),i.addToEnv("chartConfig",a),i.addToEnv("tooltipStyle",{container:f(T.container),text:f(T.text),header:f(T.header),body:f(T.body)}),i.addToEnv("style",{outCancolor:O.fill,fontSize:O["font-size"],outCanfontFamily:O["font-family"]}),i.createBaseComponent(),i.getFromEnv("animationManager").setAnimationState(i._firstConfigure?"initial":"update"),a.prediction=function(e,t){var n={},r={};if(e.extensions&&(0,b.default)(e.extensions.prediction)?(n=e.extensions.prediction).enabled=!0:n={enabled:!1},(0,b.default)(n.style))for(r in n.style)n.style.hasOwnProperty(r)&&(n.style[r]=t(n.style[r]));else n.style={};return n}(M,f),i.addToEnv("prediction",a.prediction),i.configureChildren(),i.setTooltipStyle()},n._createLegendMap=function(e){void 0===e&&(e=!1);var t=this,n=t.config,r=n.legendMap={},o=t.getFromEnv("dataSource").legend,i={},a=t.getFromEnv("legendMap"),s=t.getChildren("legend")&&t.getChildren("legend")[0];for(var l in n.pixelMultiplier=1,n.focusAxesY.forEach(function(e){var t,r=e.plot,o=0;r.forEach(function(e){var r=e.stack,a=e.group,s=e.value,l=e.type,c=e.name,u="column"===l;u&&(t=a?n.dataTable.unique(a):new Array(1),o+=t.length),r?(i[r]=n.dataTable.unique(r),n.hasSeries=!0):a?(i[a]=u?t:n.dataTable.unique(a),n.hasSeries=!0):"column-range"===l||"area-range"===l?c&&(i[c]=[c]):"ohlc"!==l&&"candlestick"!==l&&(i[s]=[s])}),n.pixelMultiplier=Math.max(o,n.pixelMultiplier)}),i)i.hasOwnProperty(l)&&i[l].forEach(function(e){if(!r[e]){var t=n.showLegend&&o&&o.item&&Array.isArray(o.item)&&o.item.find(function(t){return t.value===e}),i=(0,p.pluckNumber)(t&&t.initiallyhidden,0);r[e]={visibility:!i,initiallyhidden:!!i,series:e}}});t.addToEnv("legendMap",r),a&&function t(n,r){for(var o in n)if(n.hasOwnProperty(o)){var i=r&&r[o],a=n[o];a.hasOwnProperty("visibility")?i?(e||(a.visibility||(s&&s.getItem(a.legendItemId).removeLegendState("hidden"),a.visibility=!0),i.initiallyhidden?i.initiallyhidden&&(s&&s.getItem(a.legendItemId).setLegendState("hidden"),a.visibility=!1,a.initiallyhidden=!0):(s&&s.getItem(a.legendItemId).removeLegendState("hidden"),a.visibility=!0,a.initiallyhidden=!1)),r[o]=a):s&&s.disposeItem(a.legendItemId):t(a,i)}}(a,r),s&&(function e(n){for(var r in void 0===n&&(n={}),n)if(n.hasOwnProperty(r)){var o=n[r];o.hasOwnProperty("visibility")?t._addLegend(o):e(o)}}(t.getFromEnv("legendMap")),s.asyncDraw())},n._updateAffectedVisuals=function(e){void 0===e&&(e={});var t=this.config,n=this.getChildren();Object.keys(t.canvasAxisMap).forEach(function(t){return n[t].forEach(function(t){return!t.getState("removed")&&t.setData(e,!0)})}),n.timeNavigator&&n.timeNavigator.forEach(function(t){t.getState("removed")||(t.setData(e,!0),t.setDimension())}),this.manageSpace()},n._addLegend=function(e){var t,n,r,o,i=this,a=i.config,s=a.mergedLegendStyle,l=e.series,c=i.getFromEnv("ordinalScale").getRangeValue(l),u=i.getFromEnv("legend"),d=(0,p.getLightColor)(c,60).replace(ne,p.HASHSTRING);a.showLegend&&(t={FCcolor:{color:c,angle:0,ratio:"0",alpha:"100"}},r=u.getItem(e.legendItemId),n={label:l,eventArguments:{datasetName:l,visible:e.visibility}},r||(e.legendItemId=u.createItem(),r=u.getItem(e.legendItemId),e.initiallyhidden&&(e.visibility=!1,r.config.eventArguments.visible=!1,r.setLegendState("hidden")),i.addExtEventListener("fc-click",function(){var t=e.visibility;o=r.config,t?(e.visibility=!1,o.eventArguments.visible=!1,r.setLegendState("hidden")):(e.visibility=!0,o.eventArguments.visible=!0,r.removeLegendState("hidden")),i._updateAffectedVisuals({legendInteracted:!0})},r)),r.configure(n),r.setStateCosmetics("default",{symbol:{fill:(0,p.toRaphaelColor)(t),rawFillColor:c,stroke:(0,p.toRaphaelColor)(d)},text:Object.assign({},s,{fill:(0,p.convertColor)(s.fill,s.opacity*s["fill-opacity"]*100)})}))},n._createGroup=function(e,t){return void 0===e&&(e={}),this.getFromEnv("animationManager").setAnimation({attr:e,container:t,el:"group",component:this,label:"group"})},n._createLayers=function(){var e,t=this.getFromEnv("animationManager"),n=this.getContainer("parentgroup");!n&&(n=this.addContainer("parentgroup",t.setAnimation({el:n||"group",attr:{name:"parentgroup"},component:this}))),this.getChildContainer("tropo")||this.addChildContainer("tropo",this._createGroup({name:"chart-tropo"},n)),this.getChildContainer("strato")||this.addChildContainer("strato",this._createGroup({name:"chart-strato"},n)),this.getChildContainer("meso")||this.addChildContainer("meso",this._createGroup({name:"chart-meso"},n)),this.getChildContainer("thermo")||this.addChildContainer("thermo",this._createGroup({name:"chart-thermo"},n)),this.getChildContainer("exo")||(e=this.addChildContainer("exo",this._createGroup({name:"chart-exo"},n))),this.getChildContainer("toolbar-master")||this.addChildContainer("toolbar-master",this._createGroup({name:"toolbar-master"},e)),this.getChildContainer("legendGroup")||this.addChildContainer("legendGroup",this._createGroup({name:"legend-group"},e))},n.checkValidLegendPosition=function(){var e=this.getFromEnv("dataSource").legend,t=e.position?e.position.toLowerCase():"",n=e.alignment?e.alignment.toLowerCase():"";if(t){if(t===p.POSITION_TOP||t===p.POSITION_BOTTOM||t===p.POSITION_LEFT||t===p.POSITION_RIGHT){if(!n)return!0;if(n===p.POSITION_START||n===p.POSITION_MIDDLE||n===p.POSITION_END)return!0}}else if(n===p.POSITION_START||n===p.POSITION_MIDDLE||n===p.POSITION_END)return!0;return!1},n.manageSpace=function(){var e,t,n,r,o,i,a,s,l,c,u,d,h,f,g,v,y,b,C,w,x,_=this,S=_.config,M=S.focusPanels,E=S.canvasAxisMap,O=_.getFromEnv("focusScalesX"),A=_.getChildren("caption"),T=_.getFromEnv("selectorToolbar"),k=_.getFromEnv("toolbar"),D=k.getLogicalSpace(),P=_.getChildren("legend")&&_.getChildren("legend")[0],N=_.getChildren("background")[0],L=_.getChildren("canvas_0"),R=_.getChildren("timeNavigator"),F=_.getFromEnv("dataSource"),I=F.legend,z=S.navigatorHeight,B=0,j={left:0,right:0},V=0,W=0,H=e=+_.getFromEnv("chartWidth"),G=t=+_.getFromEnv("chartHeight"),U=0,q=0,Y=.03*e,X=.03*t,$=0,Z=p.POSITION_BOTTOM,J=p.POSITION_START,Q={topBorder:0,bottomBorder:0,leftBorder:0,rightBorder:0},ee=S.canvasHeightProportion,te=S.interCanvasSpace;W+=(0,p.pluckNumber)(S.marginTop,X),G-=(0,p.pluckNumber)(S.marginBottom,X),V+=(0,p.pluckNumber)(S.marginLeft,Y),H-=(0,p.pluckNumber)(S.marginRight,Y),N.setDimension({height:t,width:e}),N.setTranslation(0,0),M.forEach(function(e,t){var n=E["canvas_"+t].y,r=.6*(H-V)/(n.length||1);n.map(function(t){var n=ce(t),o=_.getChildren(t)[0].setDimension({width:r});return e.y[n].overlap?{}:o}).forEach(function(e){"number"==typeof e.left?j.left=Math.max(j.left,e.left):j.right=Math.max(j.right,e.right)})}),M.forEach(function(e,t){var n,r,o,i=E["canvas_"+t].y,a=0,s=0;i.forEach(function(e){n=_.getChildren(e)[0],o=n.getAlignment(),r=n.updateMaxLabelSpace(j[o]),a+=(0,p.pluckNumber)(r.left,0),s+=(0,p.pluckNumber)(r.right,0)}),U=(0,m.default)([U,a]),q=(0,m.default)([q,s])}),M.forEach(function(e,t){var n=E["canvas_"+t].x,r=.6*(G-W)/(n.length||1);n.map(function(t){var n=ce(t),o=_.getChildren(t)[0].setDimension({height:r});return e.x[n].overlap?{}:o}).forEach(function(e){$+=(0,p.pluckNumber)(e.top,e.bottom,0)})}),n=G-W,o=Math.max(0,H-V),I&&(I.position||I.alignment)&&(b=this.checkValidLegendPosition()),b&&(Z=I.position?I.position.toLowerCase():p.POSITION_BOTTOM,J=I.alignment?I.alignment.toLowerCase():p.POSITION_START),!P||Z!==p.POSITION_LEFT&&Z!==p.POSITION_RIGHT||(P.config.numColumns=1,f=Math.max(0,P.setDimension({height:"auto",width:o}).width),h=P.config.height,Z===p.POSITION_LEFT?(v=V,V+=U>0?f:f+(0,p.pluckNumber)(S.marginLeft,Y)):Z===p.POSITION_RIGHT&&(v=q>0?H-=f:(H-=f+(0,p.pluckNumber)(S.marginRight,Y))+(0,p.pluckNumber)(S.marginRight,Y))),V+=U,H-=q,D.height&&(k.setDimension({x:H-D.width,y:W}),k.manageSpace()),"right"===A[0].config.captionAlignment||"right"===A[0].config.subCaptionAlignment?(W+=D.height,x=H-V):x=H-V-D.width,A&&A.length?(a=A[0].setDimension({width:x,height:.3*n}),A[0].setTranslation(V,W),w=Math.max(a.height,D.height)):w=D.height,W+=w,o=Math.max(0,H-V),!P||Z!==p.POSITION_TOP&&(Z!==p.POSITION_RIGHT&&Z!==p.POSITION_LEFT||J!==p.POSITION_START)||(P.setDimension({height:"auto",width:o}),f=P.config.width,h=P.config.height,y=W,Z===p.POSITION_TOP&&(W+=h)),P&&Z===p.POSITION_BOTTOM&&(P.setDimension({height:"auto",width:o}),f=P.config.width,h=P.config.height),C=T.getLogicalSpace().height,T.setDimension({x:V,y:W,width:o}),T.manageSpace(),W+=C,s=$+(M.length-1)*te,n=Math.max(0,G-W-s),P&&(h=h||Math.max(0,P.setDimension({height:.1*n,width:o}).height),f=f||P.config.width,Z===p.POSITION_TOP?J===p.POSITION_END?P.setTranslation(H-f+6,y):J===p.POSITION_MIDDLE?(g=(V+H-f)/2,P.setTranslation(g,y)):P.setTranslation(V-6,y):Z===p.POSITION_RIGHT||Z===p.POSITION_LEFT?J===p.POSITION_END?(G-=h,P.setTranslation(v,G),G+=h):J===p.POSITION_MIDDLE?(g=(W+G-h)/2,P.setTranslation(v,g)):P.setTranslation(v,y):(G-=h,n-=h,J===p.POSITION_END?P.setTranslation(H-f+6,G):J===p.POSITION_MIDDLE?(g=(V+H-f)/2,P.setTranslation(g,G)):P.setTranslation(V-6,G))),R&&R.length&&(i=.7*n/(M.length||1),l=.3*n/(R.length||1),R.forEach(function(e,t){e.config.formatter=K.default.formatter(F.navigator&&F.navigator.outputtimeformat?(0,p.pluck)(F.navigator.outputtimeformat):e.config.formatter),e.getState("removed")||(d=e.getChildren("brush")[0],r=d.getLabelSpace()+e.config.scrollbarHeight,c=z?Math.min(Math.max(z,44),84):Math.min(Math.max(Math.min(l,.8*i),48),60),u=c+r,e.setDimension({width:o,height:u}),e.setTranslation(V,G-(R.length-t)*u),B+=u)}),B>n?R.forEach(function(e){return e.setDimension({width:0,height:0})}):n-=B),L&&L[0]&&(Q=L[0].getCanvasBorder()),O.forEach(function(e){return e.setRange([Q.leftBorder,o-(Q.leftBorder+Q.rightBorder)/2])}),M.forEach(function(e,t){var r="canvas_"+t,i=E[r],a=i.x,s=i.y,l=e.x,c=e.y,u=V,d=V+o,h=_.getChildren(r)[0],p=W+Q.topBorder,f=p+n/ee.totalProportions*ee.proportions[t],g=[];c.forEach(function(e,r){e.scale.setRange([n/ee.totalProportions*ee.proportions[t]-Q.bottomBorder-6,Q.topBorder])}),h.getState("removed")||(Q=h.getCanvasBorder(),h.setPadding({top:6}),h.setDimension({width:o,height:n/ee.totalProportions*ee.proportions[t]}),a.forEach(function(e){var t=l[ce(e)],n=_.getChildren(e)[0],r=n.getDimension();t.overlap?g.push(e):"top"===t.align?(n.setTranslation(V+Q.leftBorder,p),p+=r.top):"bottom"===t.align&&(n.setTranslation(V+Q.leftBorder,f),f+=r.bottom)}),h.setTranslation(V,p),g.forEach(function(e){var r=l[ce(e)],o=_.getChildren(e)[0],i=o.getDimension();"top"===r.align?o.setTranslation(V+Q.leftBorder,p):"bottom"===r.align&&o.setTranslation(V+Q.leftBorder,p+n/ee.totalProportions*ee.proportions[t]-i.bottom)}),s.forEach(function(e){var t=p+6,n=c[ce(e)],r=_.getChildren(e)[0],i=r.getDimension();n.overlap?"left"===n.align?r.setTranslation(V,t):"right"===n.align&&r.setTranslation(V+o-i.right,t):"left"===n.align?(u-=i.left,r.setTranslation(u,t)):"right"===n.align&&(r.setTranslation(d,t),d+=i.right)}),W=f+te)})},n._setDataLabelStyle=function(){return this},n._checkInvalidData=function(){var e=this.getFromEnv("dataSource"),t=this.getFromEnv("chartInstance");return!e.data&&(t.__state.dataReady=!1,t.jsVars.hasNativeMessage=!0,t.jsVars.drawCount+=1,!0)},n._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource");if(e.data&&"function"==typeof e.data.getData){var t=e.data.getData().schema;return!(Array.isArray(t)&&t.filter(function(e){return"date"===e.type}).length&&t.filter(function(e){return"number"===e.type}).length)}return!0},n.setYScaleLimit=function(e,t,n,r){void 0===r&&(r=!0);var o,i,a,s,l=this,c=l.config,u=c.scaleDsMap,d=u[e],h={start:p.UNDEF,end:p.UNDEF},f=function(t){var n=t.scale;return n&&n.getId()===e},m=c.focusAxesY.find(f),v=c.contextAxesY.find(f),y=m||v,b=y&&y.scale;if(b){for(var C in d||(d=u[e]={}),(o=d[t])||(o=d[t]={}),o.limit=n,o.baseRequired=r,d)if(d.hasOwnProperty(C)){var w=d[C],x=(0,g.default)([i,a].concat(w.limit));i=x[0],a=x[1],s=s||w.baseRequired}"log"===b.getType()?b.setDomain(Ee(i,a,y.min,y.max,y.base,s)):b.setDomain(function(e,t,n,r,o){var i,a,s,l=t,c=e,u=n,d=r;!isFinite(c)&&(c=p.UNDEF),!isFinite(l)&&(l=p.UNDEF),!isFinite(u)&&(u=p.UNDEF),!isFinite(d)&&(d=p.UNDEF),a=c===l?c-Math.abs(.1*c):c-Math.abs(.2*(l-c)),s=c===l?l+Math.abs(.2*l):l+Math.abs(.2*(l-c));var h=u0&&t?0:r}(c,o,a):0,f=h<0&&(d<0||l<0);return[h,i=d>l?d:l!==p.UNDEF?f&&o?0:s<(i=l+Math.abs(.2*l))?s:i:h+1]}(i,a,y.min,y.max,s)),(0,p.defined)(i)&&(h.start=-1/0,h.end=1/0),m&&c.focusPanels.forEach(function(e,t){var n="canvas_"+t,r=c.canvasAxisMap[n],o=r&&r.y;o&&o.forEach(function(e){l.getChildren(e).forEach(function(e){e.getScale()===b&&(e.setTickVisibilityLimit(h),e.placeAxis(),e.asyncDraw())})})})}},n.setXScaleLimit=function(e,t,n){var r,o,i,a,s,l=this,c=l.config,u=c.scaleDsMap,d=u[e],h=l.getFromEnv("UTC")?te:ee,f={start:c.rawDataXStart,end:1/0},m=l.getContextLimit(),v=m[0],y=m[1],b=function(t){var n=t.scale;return n&&n.getId()===e},C=c.focusAxesX.find(b),x=c.contextAxesX.find(b),_=C||x,S=this.getFromEnv("contextBins")[0],M=S.getBinMin()[2],E=S.getRangeThreshold(),O=E[0]._name,A=_&&_.scale;if(A){for(var T in d||(d=u[e]={}),(r=d[t])||(r=d[t]={}),r.limit=n,d)if(d.hasOwnProperty(T)){var k=d[T],D=(0,g.default)([o,i].concat(k.limit));o=D[0],i=D[1]}if((0,p.defined)(o)&&(f.start=Math.min(o,c.rawDataXStart),f.end=1/0),C){var P=l.getFocusLimit();a=P[0],s=P[1],+a===v&&(0,w.default)(o)&&(a=Math.min(a,o)),+s===y&&(0,w.default)(i)&&(s=Math.max(s,i)),Math.ceil((s-a)/E[2])<3&&M===E[2]&&(a=+h[O].offset(s,-3*E[1])),A.setDomain([a,s]),c.focusPanels.forEach(function(e,t){var n="canvas_"+t,r=l.getChildren(n),o=r&&r[0],i=c.canvasAxisMap[n],a=i&&i.x;a&&o&&(o.asyncDraw(),a.forEach(function(e){l.getChildren(e).forEach(function(e){e.getScale()===A&&(e.setTickVisibilityLimit(f),e.placeAxis(),e.asyncDraw())})}))})}else a=(0,w.default)(o)?Math.min(v,o):v,s=(0,w.default)(i)?Math.max(y,i):y,Math.ceil((s-a)/E[2])<3&&M===E[2]&&(a=+h[O].offset(s,-3*E[1])),A.setDomain([a,s]),l.getChildren("timeNavigator")&&l.getChildren("timeNavigator").forEach(function(e){if(!e.getState("removed")){var t=e.getChildren("timeAxis")&&e.getChildren("timeAxis")[0];t.getState("removed")||(t.setTickVisibilityLimit(f),t.placeAxis(),t.asyncDraw())}})}},n.setFocusLimit=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=!0);var n=this.config,r=t?this.domainValidator(e,this.getContextLimit(),n.focusLimit):e,o=n.focusAxesX[0],i=this.getFromEnv("focusBins")[0],a=this.getFromEnv("focusScalesX")[0],s=this.getFocusLimit(),l=i.getRangeThreshold();if(n.focusLimit=r,this.fireChartInstanceEvent("selectionChange",{start:+r[0],end:+r[1],binUnit:l[0].name(),binMuliplier:l[1]}),(0,d.default)(r,s))return!1;i.setBinDomain(r);var c=i.getRangeThreshold();return a.setRangeThreshold(c),this.fireEvent("focusLimitChanged"),o.filterInfo&&o.filterInfo.query&&(o.filterInfo.query._updateArgs(+c[0].offset(+r[0],-2*c[1]),+c[0].offset(+r[1],2*c[1])),o.filterInfo.table.flushResults(),this.updateVerticalAxesWidth()),s!==p.UNDEF&&this._updateAffectedVisuals({legendInteracted:null}),!0},n.updateVerticalAxesWidth=function(){var e,t=this,n=t.config.canvasAxisMap,r=Object.keys(n),o={left:0,right:0};r.forEach(function(r){n[r].y.forEach(function(n){t.getChildren(n).forEach(function(t){"number"==typeof(e=t.getDimension()).left?o.left=Math.max(o.left,e.left):"number"==typeof e.right&&(o.right=Math.max(o.right,e.right))})})}),r.forEach(function(e){n[e].y.forEach(function(e){t.getChildren(e).forEach(function(e){e.updateMaxLabelSpace(o[e.getAlignment()])})})})},n.getFocusLimit=function(){var e=this.config.focusLimit;return e&&e.slice()},n.setContextLimit=function(e){void 0===e&&(e=[]);var t=this.config,n=this.getFromEnv("contextScalesX")[0],r=this.getFromEnv("contextBins");(0,d.default)(e,this.getContextLimit())||(t.contextLimit=e.slice(),r[0].setBinDomain(e),n.setRangeThreshold(r[0].getRangeThreshold()),!t.navigatorEnabled&&n.setDomain(t.contextLimit),this.fireEvent("contextLimitChanged"))},n.getContextLimit=function(){return(this.config.contextLimit||[]).slice()},t}(M.default);t.default=Re},776:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(){function e(){this.unknown="implicit",this.domain=[],this.ordinalRange=[],this.map=new Map}var t=e.prototype;return t.setDomain=function(e){var t,n,r;for(void 0===e&&(e=[]),this.domain=[],this.map.clear(),t=0;ta.unit.ms*a.multiplier)&&(b.count=s,Object.assign(b,a)));return b.count?[b.unit.ms,b.multiplier,b.multiplier*b.unit.ms]:[u[0].ms,1,u[0].ms]},t.getFormatStore=function(e){void 0===e&&(e="");var t=[],n={};return/%[_ -]?[cfLQ]/.test(e)&&(t.push(o.DatetimeUnits.Millisecond),n[o.DatetimeUnits.Millisecond.name]={}),/%[_ -]?[sSX]/.test(e)&&(t.push(o.DatetimeUnits.Second),n[o.DatetimeUnits.Second.name]={}),/%[_ -]?M/.test(e)&&(t.push(o.DatetimeUnits.Minute),n[o.DatetimeUnits.Minute.name]={}),/%[_ -]?[HI]/.test(e)&&(t.push(o.DatetimeUnits.Hour),n[o.DatetimeUnits.Hour.name]={}),/%[_ -]?[dejuwx]/.test(e)&&(t.push(o.DatetimeUnits.Day),n[o.DatetimeUnits.Day.name]={}),/%[_ -]?[bBm]/.test(e)&&(t.push(o.DatetimeUnits.Month),n[o.DatetimeUnits.Month.name]={}),/%[_ -]?[yY]/.test(e)&&(t.push(o.DatetimeUnits.Year),n[o.DatetimeUnits.Year.name]={}),{timeUnits:t,store:n}}},781:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t,n,r){var o,i,a,s,l=n.length,c=r;for(c>2592e6&&c<=157248e5&&c/30%1<.067&&(c=2592e6*Math.floor(c/2592e6)),o=0;oe[i][2])){o=i;break}n=i+1}i=Math.floor((r+n)/2)}return t instanceof Array||e[o][2]===a?e[o]:[e[o-1][0],t.multiplier,a]},s=function(e){var t,n={};for(t=e.length-1;t>=0;t--)n[e[t][0].name()]=t;return n};t._calculateIndexOfIntervals=s,t.DEFAULT_THRESHOLD_PIXELS=4;var l=function(){function e(e){this.setStandardBins(e),this.binRange=[0,1],this.binDomain=[0,1],this.thresholdPixels=4,this.intervalIndexMap=s(this.getStandardBins()),this.minBin=[]}var t=e.prototype;return t.setStandardBins=function(e){this.standardBins=e},t.getStandardBins=function(){return this.standardBins},t.setScale=function(e){this.scale=e},t.getScale=function(){return this.scale},t._computeRangeThreshold=function(e){var t,n,r=this.getBinRange(),o=r[0],i=r[1],a=(t=e,1,n=Math.abs(o-i),Math.min(Math.max(t,1),n)),s=+this.getScale().getDomainValue(0),l=+this.getScale().getDomainValue(a),c=Math.abs(l-s),u=this.getBinMin(),d=this.getBinMax(),h=this.standardBins.findIndex(function(e){return e[2]>=c}),p=-1===h?this.standardBins.length-1:h;this.standardBins[p][2]d[2]&&d[2]>=u[2]?this._threshold=d:this._threshold=this.standardBins[p]},t.setBinRange=function(e){return this.binRange=e.slice(),this.getScale().setRange(this.binRange),this.getScale().setDomain(this.binDomain),this._computeRangeThreshold(this.thresholdPixels),this},t.getBinRange=function(){return this.binRange},t.setBinDomain=function(e){return this.binDomain=e.slice(),this.getScale().setRange(this.binRange),this.getScale().setDomain(this.binDomain),this._computeRangeThreshold(this.thresholdPixels),this},t.getBinDomain=function(){return this.binDomain.slice().map(i)},t.setBinMin=function(e){var t=a(this.standardBins,e);return(0,o.default)(t,e)||(this.minBin=t,this._computeRangeThreshold(this.thresholdPixels)),this},t.getBinMin=function(){return this.minBin},t.setBinMax=function(e){this.maxBin=a(this.standardBins,e)},t.getBinMax=function(){return this.maxBin},t.setRangeThreshold=function(e){return void 0===e&&(e=4),e!==this.thresholdPixels&&this._computeRangeThreshold(this.thresholdPixels=e),this},t.getRangeThreshold=function(){return this._threshold},e}();t.default=l},783:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e){return void 0===e&&(e=""),e.charAt(0).toUpperCase()+e.slice(1)}},784:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(217)),a=r(n(782)),s=n(218),l=n(785),c=n(421),u=n(429),d=o(n(786)),h=o(n(472)),p=o(n(475)),f=o(n(412)),g=o(n(789)),m=o(n(285)),v=o(n(797)),y=o(n(783)),b=n(798),C=n(780),w=n(796),x=n(414),_=n(795),S=o(n(290)),M=o(n(799)),E=o(n(800)),O=o(n(284));function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t=s&&K[i][0]<=l&&(0===K[i][r]||K[i][r]))for(o=l;s<=o;){var c=new Date(s);for(26784e5===e?(s=c.setMonth(c.getMonth()+1),l=se(new Date(s))):31536e6===e?(s=c.setFullYear(c.getFullYear()+1),l=se(new Date(s))):(s+=e,l+=e);K[i][0]l||s===A||0!==K[i][r]&&!K[i][r]){o=l;break}}else if(K[i][0]=s&&K[i][0]<=l)i++;else{var u={format:"%b %d %Y %H:%M:%S:%L",from:ae(s),to:ae(l)};W.push(u),s=l+t,26784e5===e||31536e6===e?l=se(new Date(s)):l+=n*Q,o=l}},ce=[];if(P=V[0].plot.map(ie),D=(0,h.default)((t=[]).concat.apply(t,P),Number),E=D[0],A=D[1],J&&(function(){switch(J){case"year":n=31536e6;break;case"month":n=26784e5;break;case"day":n=864e5;break;case"hour":n=36e5;break;case"minute":n=6e4;break;case"second":n=1e3;break;case"millisecond":n=1;break;default:n=0}}(),0!==n&&"number"==typeof Q&&isFinite(Q)&&Math.floor(Q)===Q&&Q>0))for(var ue=(L=6e4,-1!==(R=$[0].format).search(/%[-,_,0]?[L]/)?L=1:-1!==R.search(/%[-,_,0]?[s,S]/)?L=1e3:-1!==R.search(/%[-,_,0]?[M]/)?L=6e4:-1!==R.search(/%[-,_,0]?[H,I]/)?L=36e5:-1!==R.search(/%[-,_,0]?[d,a,A,j]/)?L=864e5:-1!==R.search(/%[-,_,0]?[b,B,m]/)?L=26784e5:-1!==R.search(/%[-,_,0]?[y,Y]/)&&(L=31536e6),{intervalRange:L,timeDelta:1}),de=0;de(i=+r.floor(a.parse(e.to)))){var c=[i,o];o=c[0],i=c[1]}return i=+r.offset(i),n=T(T({},e),{},{format:a.toString(),to:i,from:o,level:(0,_.getMinPlaceHolder)(a.toString())}),t&&(n.repeat=t),n}),N=(0,l.segregateClips)(o),i=N.repeatClips,d=N.singleClips,p=function(e,t){var n=e[t[U]];return n!==(0,l.getUnclippedValue)(n,i,d)},o.length){ce=[(0,x.filter)(p)],F=E,I=A,z=o,(B=ee).Day.setClipDates(z),B.Day.setTimeUniverse([F,I]),B.Hour.setClipDates(z),B.Hour.setTimeUniverse([F,I]),B.Week.setClipDates(z),B.Week.setTimeUniverse([F,I]),B.Year.setClipDates(z),B.Year.setTimeUniverse([F,I]),B.Month.setClipDates(z),B.Month.setTimeUniverse([F,I]),B.Minute.setClipDates(z),B.Minute.setTimeUniverse([F,I]),B.Second.setClipDates(z),B.Second.setTimeUniverse([F,I]),B.Millisecond.setClipDates(z),B.Millisecond.setTimeUniverse([F,I]),e.cloneTable();var pe=(Y=j.dataTable).getData();K=pe.data,$=pe.schema}if(g=oe(V),v=oe(H),Y.getDataStore().on("itemsAdded",e._onDataUpdate),e.addEventListener("beforeremove",e._offDataUpdate),e.addToEnv("timeIntervals",ee),e.addToEnv("unclippedTimeIntervals",te),j.timeSpread&&j.timeSpread.duration&&(r=K.length?K[K.length-1][j.dateColumnIndex]:+w.TIME_SPAN[0],ce=ce.concat((0,x.less)(U,Math.min(j.timeSpread.interval.offset(r,-j.timeSpread.multiplier),g.bins[0].getRangeThreshold()[0].offset(r,-2))))),ce.length&&Y.getDataStore().deleteRows(x.pipe.apply(void 0,ce),Y.getID()),K=Y.getData().data,!j.atomicity){var fe=j.atomicity=T({},(0,C.getFormatStore)($[j.dateColumnIndex].format));fe.minBin=(0,C.getAtomicity)(T(T({},fe),{},{index:j.dateColumnIndex,data:K,bins:g.bins[0].getStandardBins(),intervalIndexMap:g.bins[0].intervalIndexMap,ms:ee.Millisecond}))}v.bins[0].setBinMin(j.atomicity.minBin),v.scales[0].setBinMin(v.bins[0].getBinMin()).setRangeThreshold(v.bins[0].getRangeThreshold()),g.bins[0].setBinMin(j.atomicity.minBin),g.scales[0].setBinMin(g.bins[0].getBinMin()).setRangeThreshold(g.bins[0].getRangeThreshold()),M=function(e){var t,n,r,o,i,a,s,l,c=e.plot.map(ie),u=(0,h.default)((t=[]).concat.apply(t,c),Number),d=g.bins[0].getBinMin()[2],p=e.plot[0].value,v=e.format||$.find(function(e){return e.name===p}).format,y=m.default.parser(v),b=(0,f.default)(e.initialinterval)?e.initialinterval:{};return j.rawDataXStart=u[0],K.length||"undefined"!=typeof u[0]&&"undefined"!=typeof u[1]||(u[0]=+w.TIME_SPAN[0],u[1]=+w.TIME_SPAN[1]),j.timeSpread&&j.timeSpread.duration>=3*d?u[0]=+ee[j.timeSpread.unit.name].offset(u[1],-j.timeSpread.multiplier):K.length<3&&(0===K.length?(u[0]=+w.TIME_SPAN[0],u[1]=u[0]+3*d):u[0]=u[1]-2*d),(n=u.slice())[0]=(r=b.from,o=n[0],null===(i=y.parse(r))?o:i>o?+i:o),n[1]=(a=b.to,s=n[1],null===(l=y.parse(a))?s:l=c)return 2;for(r=0,o=n.length;r1)return 1;if(l<=(a=d(l,i))[0]&&a[0]=0)if(+o>e)for(;+o>e&&!((r=a.offset(o,-1*h))<=e);)o=r,i=a.offset(i,-1*h);else for(;+oe);)o=r,i=a.offset(i,h);else+o=r&&e0||m>0;){for(o=0,a=t.length;o=c)return c;if(f===p)break;p=f}if(s===p)break;for(o=0,a=n.length;o=c)return c;if(p<=u)return u}for(o=0;o=n[o].to&&v--;f===p&&(v=0),s=p,m--}return p}window.getUnclippedValue=p},786:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(787)),a=r(n(492)),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,o.default)(t,e),t.prototype.ticks=function(e){var t,n,r,o,i,s,l,c,u,d,h,p=this.getDomain(),f=p[0],g=p[1],m=0,v=[],y=[],b=0,C=this.base,w=C>1?-1:1,x=Math.log(C)/Math.log(10)%1?4:8;if(f<=0||g<=0)return v;if(f>g){var _=this.getDomain();g=_[0],f=_[1],m=1}for(C>1?(o=t=Math.ceil(Math.log(g)/Math.log(C)),r=n=Math.floor(Math.log(f)/Math.log(C))):C>0&&C<1&&(t=Math.floor(Math.log(g)/Math.log(C)),o=n=Math.ceil(Math.log(f)/Math.log(C)),r=t),s=n,l=r;l<=o;++l){if(i=this.pows(s),void 0!==h)for(C>1?t=Math.ceil(Math.log(i)/Math.log(C)):C>0&&C<1&&(t=Math.floor(Math.log(i)/Math.log(C))),u=(Math.pow(C,t)-Math.pow(C,t+w))/(x+1),c=1;c<=x;++c)d=Math.pow(C,t+w)+u*c,v.push(d),y.push("minor"),(f>d||gi||g1?s++:s--}return this._tickType=y,v.length-b<=2&&(v=(0,a.default)(f,g,e),this._tickType=void 0),this.majorTicks=m?v.reverse():v},t}(i.default);t.default=s},789:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(232)),a=n(421),s=r(n(790)),l=n(796),c=function(e){function t(){var t;return(t=e.call(this,a.timeYear,a.timeMonth,a.timeWeek,a.timeDay,a.timeHour,a.timeMinute,a.timeSecond,a.timeMillisecond)||this).setTimeFormat(),t.setDomain([].concat(l.TIME_SPAN)),t}(0,i.default)(t,e);var n=t.prototype;return n.getType=function(){return""},n.setTimeFormat=function(e){void 0===e&&(e={});var t=this._localeConverter,n=e,r=n.millisecond,o=n.second,i=n.minute,a=n.hour,s=n.day,l=n.month,c=n.year;this.formatters={millisecond:{major:t.formatter(r||"%I:%M:%S.%L %p"),minor:t.formatter(r||"%L ms"),context:t.formatter(r||"%b %d, %Y, %I:%M:%S.%L %p")},second:{major:t.formatter(o||"%I:%M:%S %p"),minor:t.formatter(o||"%S s"),context:t.formatter(o||"%b %d, %Y, %I:%M:%S %p")},minute:{major:t.formatter(i||"%I:%M %p"),minor:t.formatter(i||"%M m"),context:t.formatter(i||"%b %d, %Y, %I:%M %p")},hour:{major:t.formatter(a||"%I %p"),minor:t.formatter(a||"%I %p"),context:t.formatter(a||"%b %d, %Y, %I %p")},day:{major:t.formatter(s||"%b %d"),minor:t.formatter(s||"%d"),context:t.formatter(s||"%b %d, %Y")},month:{major:t.formatter(l||"%b"),minor:t.formatter(l||"%b"),context:t.formatter(l||"%b %Y")},year:{major:t.formatter(c||"%Y"),minor:t.formatter(c||"%Y"),context:t.formatter(c||"%Y")}}},n.setTimeInterval=function(t){this.timeIntervals=t,e.prototype.setTimeInterval.call(this,t)},n.setUnclippedTimeIntervals=function(t){this.unclippedTimeIntervals=t,e.prototype.setUnclippedTimeIntervals.call(this,t)},n.getTimeInterval=function(){return this.timeIntervals},n.getUnclippedTimeIntervals=function(){return this.unclippedTimeIntervals},n.tickFormat=function(e){var t=this;return e?function(n){return t._localeConverter.formatter(e).format(n)}:function(e,n,r){return t._timeFormat[n]?t._localeConverter.formatter(t._timeFormat[n]).format(e):t.formatters[n][r].format(e)}},n.copy=function(){return(0,s.copyScaleBin)(this,new t)},t}(s.default);t.default=c},790:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t.copyScaleBin=void 0;var o=r(n(232)),i=r(n(791)),a=n(794);t.getFloorOfDate=a.getFloorOfDate,t.modifyDate=a.modifyDate;var s=r(n(224)),l=n(795),c=r(n(285)),u=r(n(297)),d=n(785),h=r(n(783)),p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=["millisecond","second","minute","hour","day","month","year"],g=[{ratio:4,index:8},{ratio:3,index:7},{ratio:2.5,index:6},{ratio:2,index:5},{ratio:1.5,index:4},{ratio:1,index:3},{ratio:.67,index:2},{ratio:.33,index:1},{ratio:0,index:0}],m=function(e,t,n,r){var o,i;return e[0]>e[1]?(o=n(e[1],e[0]),i=r(t[1],t[0])):(o=n(e[0],e[1]),i=r(t[0],t[1])),function(e){return i(o(e))}},v=function(e,t){return t.setInterpolate(e.getInterpolate()).setClamp(e.getClamp()).setRangeThreshold(e._threshold).setRange(e.getRange()).setThresholdIntervals(e.thresholdIntervals).setBinMin(e.getBinMin()).setClippings(e.clippings).setFirstData(e.getFirstData()).setDomain(e.getDomain())},y=function(e){return null!==e&&!isNaN(e)},b=function(e,t,n){return e["get"+n+t]()},C=function(e){return(e<10?"0"+e:e)+""},w=function(e,t){return p[b(e,"Month",t)]+" "+C(b(e,"Date",t))+", "+b(e,"FullYear",t)},x=function(e,t){return C(b(e,"Hours",t))+":"+C(b(e,"Minutes",t))+":"+C(b(e,"Seconds",t))},_=function(e,t,n){var r;for(r=t;r-1>=0&&"year"===e[r-1][0].name()&&e[r-1][2]>=n;)r--;return r};t.copyScaleBin=v;var S=function(e){function t(t,n,r,o,i,a,s,l){var c;return(c=e.call(this,t,n,r,o,i,a,s,l)||this)._type="",c.bins=[],c.clippings=[],c.clipIndices=[],c.clips=[],c.clippedDomain=[0,1],c.applicableClippings={},c}(0,o.default)(t,e);var n=t.prototype;return n.getType=function(){return this._type},n.setTimeInterval=function(t){this.timeIntervals=t,e.prototype.setTimeInterval.call(this,t)},n.setUnclippedTimeIntervals=function(t){this.unclippedTimeIntervals=t,e.prototype.setUnclippedTimeIntervals.call(this,t)},n._rescale=function(){return this.output=null,this.input=null,this},n.setClippings=function(e){return this.clippings=e,this},n.getClippings=function(){return this.clippings},n.showPlotOverTick=function(){var e=this._getRangeThreshold();return("millisecond"===this.getBinMin()[0].name()||f.indexOf(e[0].name())>-1)&&1===e[1]},n.getBinBounds=function(e){var t=this._getBinBounds(e);return{startDate:+t.start,endDate:+t.end}},n.getBinIndex=function(e,t){void 0===t&&(t=!0);var n=this._getBinIndex(e),r=this._getBinBounds(n),o=this.bins.length,i=+r.start+(r.end-r.start)/2,a=this.showPlotOverTick();if(t&&a&&e>=i)for(n++;n=r[r.length-1].end?e:+n[0]+this.distance(+n[0],+e),this.output||(this.output=m(this.clippedDomain,this.getRange(),this.deInterpolate,this.interpolate)),this.output(Number(t))},n.getRangeValue=function(e,t){if(void 0!==e||void 0!==t)return void 0===t||this.showPlotOverTick()?this.calculateRangeValue(e):(this.calculateRangeValue(e)+this.calculateRangeValue(t))/2},n.getDomainValue=function(e){if(isNaN(e))return e;var t,n,r=this.getDomain();return this.input||(this.input=m(this.getRange(),this.clippedDomain,this.deInterpolate,this.interpolate)),t=this.input(Number(e)),n=this.offset(+r[0],t-r[0]),new Date(n)},n.calculateIndexOfIntervals=function(){var e,t,n=this.thresholdIntervals,r=n.length;for(this.intervalIndexMap=e={},t=r-1;t>=0;t--)e[n[t][0].name()]=t},n.getNiceMinorTickInterval=function(e,t,n){if(0===e)return-1;var r,o,i,a,l=this.thresholdIntervals,c=this._getRangeThreshold()[2],u=l[e-1][0].name(),d=[];for(r=0,i=l.length;r=c){a=r;break}for(r=e-1;r>=a&&l[r][0].name()===u;r--)l[r][2]%c||"year"===u||d.push(r);return o=Math.min(function(e){var t,n=g.length,r=1/e;if(r>4)return 1/0;for(t=0;tg[t].ratio)return g[t].index}(n/t),d.length-1),(0,s.default)(d[o],-1)},n.getNiceMajorTickInterval=function(e,t){void 0===t&&(t=!1);var n,r=this.thresholdIntervals,o=r.length,i=this._getRangeThreshold()[2];if("random"===this.getMode())if(!t&&"day"===r[e][0].name()&&(r[e][1]>1||r[e][2]>i)){for(n=e;ni)return n}else if(1!==r[e][1]||r[e][2]<=i){if("year"===r[e][0].name())return _(r,e,i);for(n=e;ni)return n}return e},n.generateContextTicks=function(e,t){void 0===t&&(t=!1);var n,r,o,i,s=this.thresholdIntervals,l=this.intervalIndexMap,c=this.getDomain(),u=c[0],d=c[1],h=s[e][0].name(),p=f[f.indexOf(h)+1],g=s.length,m=l.day,v=-1,y=[];if(t)v=e;else for("day"===h&&(p="year"),n=Math.max(e,m);n-1){if(r=(0,a.getFloorOfDate)(new Date(u),s[v][0].name(),s[v][1],this.getType()),i=function(e,t,n,r,o){var i=(0,a.getFloorOfDate)(new Date(e),r[n][0].name(),r[n][1],o),s=(0,a.getFloorOfDate)(new Date(t),r[n][0].name(),r[n][1],o);return+i!=+s&&[i,s]}(new Date(u),new Date(d),v,s,this.getType())){for(i=(o=i[1])-s[v][2];i>=+u;)y.push(new Date(i)),i-=s[v][2];+u!=+r&&y.push(new Date(r)),y.reverse(),y.push(new Date(o))}else y.push(r);this._timeFormat.context=s[v][0].name()}return y},n.getClippedMinorTicks=function(e,t,n){var r,o,i,a,s,l,c=this.bins,u=this._getRangeThreshold(),p=c[0],f=c[c.length-1],g=this.applicableClippings,m=g.repeatClips,v=g.singleClips,y=this.thresholdIntervals[n],b=this.unclippedTimeIntervals[(0,h.default)(u[0].name())]||this.unclippedTimeIntervals[u[0].name()],C=[],w=0,x=y[0].range(e,t,y[1]).length,_=-1,S=[];for(s=p.start,l=p.end;s>e;)s=b.offset(s,-1*u[1]),l=b.offset(l,-1*u[1]),a=(0,d.getClipType)([s,l],m,v),C.push({start:s,end:l,clipType:a}),2!==a&&w++;for(C.reverse(),r=0,o=c.length;rt||(C.push(c[r]),2!==c[r].clipType&&w++);for(s=f.start,l=f.end;l=0;n--)if(Math.floor(v/C[n][2])>1){for(l=C[s=this.getNiceMajorTickInterval(n,t)][0].name(),i=w[(0,h.default)(l)]||w[l],T=(0,a.getFloorOfDate)(new Date(T),l,C[s][1],L),k=(0,a.modifyDate)(new Date(k),l,C[s][1],!1,L),k=(0,a.getFloorOfDate)(new Date(k),l,C[s][1],L),p=i.range(+T,+k+C[s][2],C[s][1]),b.major=l,r=0;r=+M[0]&&+p[r]<=+M[1]&&(O=!0);A=this.generateContextTicks(s,!O)||[];break}if(!p)return this._tickType=[],D;for(n=0,o=p.length;n10?-1:this.getNiceMinorTickInterval(s,this.getMajorIntervalGap(p[n],p[n+1],s),v))>-1&&!e.minor)for(c=C[u][0].name(),i=w[(0,h.default)(c)]||w[c],f=((_||[]).length||(S||[]).length)&&1===E[1]&&E[0].name()===C[u][0].name()?this.getClippedMinorTicks(p[n],p[n+1],u):i.range(+p[n],+p[n+1]+1,C[u][1]),b.minor=C[u][0].name(),r=0,g=f.length;r1&&+this.distance(p[n+1],m)/this.distance(m,+f[r-1])<.5||m!==+p[n]&&m!==+p[n+1]&&(D.push(f[r]),P.push("minor"));if(D.push(p[o-1]),P.push("major"),A.length&&!e.context)for(n=0,o=A.length;nt[1]&&(n=[t[0],t[1]],t[1]=n[0],t[0]=n[1]),+r[0]==+t[0]&&+r[1]==+t[1]||(e.prototype.setDomain.call(this,t),this.calculateBins(t)),this},n.calculateBins=function(e){void 0===e&&(e=[]);var t,n,r,o,i,a,l,c,p,f,g=+e[0],m=+e[1],v=this._getRangeThreshold(),y=this.getUnclippedTimeIntervals(),b=v&&v[2],C=[],w=this.getFirstData(),x=this.getClippings(),_=[],S=[],M=[];if(b){for(p=v[0].name(),a=0,c=x.length;a=b&&_.push(f);if(o=y[(0,h.default)(p)]||y[p],_=this.applicableClippings=(0,d.segregateClips)(_),r=t=+u.default.floor((0,s.default)(w,g)),g=o.offset(new Date(e[0]),-3*v[1]),m=o.offset(new Date(e[1]),3*v[1]),"year"===o.name()||"month"===o.name())if(t>g)for(;t>g;)t=o.offset(t,-1*v[1]);else for(;o.offset(t,v[1])=e[n=r+Math.ceil((o-r)/2)].start&&t=0;)if(i[--n]===i[n+1]){n+=1,a=!0;break}}return n},n._getBinBounds=function(e){return this.bins[e]||{}},n.distance=function(e,t){var n,r,o,i,a,s,l,c,u=Math.min(+e,+t),p=Math.max(+e,+t),f=this.bins,g=[],m=[],v=this.applicableClippings,y=this.getUnclippedTimeIntervals(),b=this._getRangeThreshold(),C=this.clips,w=this._getBinIndex(u),x=this._getBinIndex(p),_=e>t?-1:1,S=[],M=0;if(i=f[0],a=f[f.length-1],!b.length)return _*(p-u);if(-1===w||-1===x){if(s=y[(0,h.default)(b[0].name())]||y[b[0].name()],-1===w&&(u=(0,d.getUnclippedValue)(+u,v.repeatClips,v.singleClips)),-1===x&&(p=(0,d.getUnclippedValue)(+p,v.repeatClips,v.singleClips)),u=a.end){for(o=a;p>=o.end;)(o={end:s.offset(o.end,b[1]),start:o.end}).clipType=(0,d.getClipType)([+o.start,+o.end],v.repeatClips,v.singleClips),m.push(o);n=o,w=m.length-1}else n=this._getBinBounds(w);if(l=-1,p=a.end){for(o=a;p>=o.end;)m[++l]||((o={start:o.end,end:s.offset(o.end,b[1])}).clipType=(0,d.getClipType)([+o.start,+o.end],v.repeatClips,v.singleClips),m.push(o)),o=m[l];r=o,x=l}else r=this._getBinBounds(x);for(g.reverse(),S=u,l=0,c=g.length;l=(o=g[l]).start&&u=o.start&&p=(o=f[l]).start&&u=o.start&&p=u&&(M+=2===o.clipType?0:o.end-o.start,S=o.end)}if(S=(o=m[l]).start&&u=o.start&&p=u&&(M+=2===o.clipType?0:o.end-o.start,S=o.end)}}else{if(n=this._getBinBounds(w),r=this._getBinBounds(x),n.start>u?u=n.start:n.endp?p=r.start:r.end=0){if(+c.start>s&&(s=+c.start),s+a=i.end-i.start)){s+=a,a=0;break}a-=i.end-i.start,s=+i.end}else s=+i.end}else{if(+c.end=c.start)return s-a;for(a-=s-c.start,s=c.start,n=p[(0,h.default)(g[0].name())]||p[g[0].name()],i=c;a;)2!==(i={start:r=n.offset(i.start,-1*g[1]),end:o=i.start,clipType:(0,d.getClipType)([+r,+o],f.repeatClips,f.singleClips)}).clipType?a>=i.end-i.start?(a-=i.end-i.start,s=+i.start):(s-=a,a=0):s=+i.start}return s},n.nice=function(t,n){var r=e.prototype.nice.call(this,t,n);return this._computeRangeThreshold(4),r},n.getFormattedTime=function(e,t){void 0===e&&(e={});var n,r,o,i,a,s,u,d,h,p=this._getRangeThreshold(),f=e.dateRange,g=e.type,m=p[1],v=this.getType();return"crossline"===g||"tooltip"===g?(n=p[0].name(),t&&t[n]?(r=o=t[n],s=("UTC"===v?c.default.utcFormatter(r):c.default.formatter(r)).format(new Date(f.startDate)),m>1?s+" - "+("UTC"===v?c.default.utcFormatter(o):c.default.formatter(r)).format(new Date(f.endDate)):s):(r=o=(0,l.getFilterdTimeFormat)("%b %d, %Y, %I:%M:%S.%L %p",n),"hour"===n&&(r=r.replace(/%M/,""),o=o.replace(/%M/,"")),r=r.replace(/[:|.]*[\s]/g," "),o=o.replace(/[:|.]*[\s]/g," "),r.match(/%I/)||(f.endDate-=1,r=r.replace(/%p/,""),o=o.replace(/%p/,"")),i=new Date(f.startDate),a=new Date(f.endDate),u=b(i,"Date",v)===b(a,"Date",v),d=b(i,"Month",v)===b(a,"Month",v),h=b(i,"FullYear",v)===b(a,"FullYear",v),m>1?h&&(d?u?r.match(/%I/)?(r=r.replace(/%p/,""),o=(o=(o=o.replace(/%b/,"")).replace(/%d/,"")).replace(/%Y/,"")):(r=r.replace(/%b/,"%B"),o=""):(r=r.replace(/%Y/,"")).match(/%I/)||(o=o.replace(/%b/,""),r=r.replace(/%b/,"%B")):1!==m&&(r=r.replace(/%Y/,""))):r.match(/%I/)||(r=r.replace(/%b/,"%B")),r=r.trim(),o=o.trim(),r=r.replace(/^[,|\s|:]*/,"").replace(/(\W+$)/,"").replace(/([,]+[\s]*[,]+)|([\s]+[,]+)/g,","),(o=o.replace(/^[,|\s|:]*/,"").replace(/(\W+$)/,"").replace(/([,]+[\s]*[,]+)|([\s]+[,]+)/g,","))&&1!==m?((s=("UTC"===v?c.default.utcFormatter(r):c.default.formatter(r)).format(new Date(f.startDate)))+" - "+("UTC"===v?c.default.utcFormatter(o):c.default.formatter(o)).format(new Date(f.endDate))).trim():(s=("UTC"===v?c.default.utcFormatter(r):c.default.formatter(r)).format(new Date(f.startDate))).trim())):"CRS"===g?((s=w(f.startDate,v)+(e.showTimeInLabel?", "+x(f.startDate,v):""))+" - "+w(f.endDate,v)+(e.showTimeInLabel?", "+x(f.endDate,v):"")).trim():void 0},n.setBinMin=function(e){return this.minBin=e,this},n.getBinMin=function(){return this.minBin},n.setRangeThreshold=function(e){return this._threshold=e,this},n._getRangeThreshold=function(){return this._threshold||[]},n.setMode=function(e){this.mode=e},n.getMode=function(){return this.mode},n.setThresholdIntervals=function(e){return this.thresholdIntervals=e,this.calculateIndexOfIntervals(),this},n.setFirstData=function(e){return this.binStart=e,this},n.getFirstData=function(){return this.binStart},n.copy=function(){return v(this,new t)},t}(i.default);t.default=S},791:function(e,t,n){"use strict";var r=n(215),o=n(211);t.__esModule=!0,t.default=void 0;var i=o(n(232)),a=r(n(476)),s=o(n(469)),l=r(n(792)),c=o(n(301)),u=n(285),d=function(e){return new Date(e)},h=function(e){return e instanceof Date?+e:+new Date(+e)},p=function(e){function t(t,n,r,o,i,l,d,h){var p;return(p=e.call(this,a.deInterpolateLinear,s.default)||this).timeIntervals={year:t,month:n,week:r,day:o,hour:i,minute:l,second:d,millisecond:h},p.unclippedTimeIntervals={year:t,month:n,week:r,day:o,hour:i,minute:l,second:d,millisecond:h},p.tickIntervals=[[p.timeIntervals.second,1,1e3],[p.timeIntervals.second,5,5e3],[p.timeIntervals.second,15,15e3],[p.timeIntervals.second,30,3e4],[p.timeIntervals.minute,1,6e4],[p.timeIntervals.minute,5,3e5],[p.timeIntervals.minute,15,9e5],[p.timeIntervals.minute,30,18e5],[p.timeIntervals.hour,1,36e5],[p.timeIntervals.hour,3,108e5],[p.timeIntervals.hour,6,216e5],[p.timeIntervals.hour,12,432e5],[p.timeIntervals.day,1,864e5],[p.timeIntervals.day,2,1728e5],[p.timeIntervals.week,1,6048e5],[p.timeIntervals.month,1,2592e6],[p.timeIntervals.month,3,7776e6],[p.timeIntervals.year,1,31536e6]],p.locale=c.default,p._localeConverter=new u.TimeConverter(c.default),p}(0,i.default)(t,e);var n=t.prototype;return n.setDomain=function(t){return e.prototype.setDomain.call(this,t.map(h))},n.setTimeInterval=function(e){this.timeIntervals=e},n.setUnclippedTimeIntervals=function(e){this.unclippedTimeIntervals=e},n.getDomain=function(){return e.prototype.getDomain.call(this).map(d)},n.ticks=function(t,n){var r=e.prototype.getDomain.call(this);return(0,l.default)(r[0],r[r.length-1],t,n,this.tickIntervals,this.timeIntervals)},n.nice=function(t,n){var r=e.prototype.getDomain.call(this),o=(0,l.tickInterval)(r[0],r[r.length-1],t,n,this.tickIntervals,this.timeIntervals);return o?e.prototype.setDomain.call(this,function(e,t){var n,r=e.slice(),o=0,i=r.length-1,a=r[o],s=r[i];return so?i=1:r>=o&&(i=0),i;var r,o,i}}(t)),{left:function(e,n,r,o){void 0===e&&(e=[]),void 0===r&&(r=0),void 0===o&&(o=e.length);for(var i=r,a=o;i0?a=s:i=s+1}return i}}}},794:function(e,t,n){"use strict";t.__esModule=!0,t.getFloorOfDate=function(e,t,n,i){void 0===t&&(t="day"),void 0===n&&(n=1),void 0===i&&(i="");var a,s=new Date(e.valueOf()),l=n;switch(t){case"millisecond":a=s[r+i+"Milliseconds"](),l=Math.min(l,1e3),s[o+i+"Milliseconds"](Math.floor(a/l)*l);break;case"second":a=s[r+i+"Seconds"](),l=Math.min(l,60),s[o+i+"Seconds"](Math.floor(a/l)*l,0);break;case"minute":a=s[r+i+"Minutes"](),l=Math.min(l,60),s[o+i+"Minutes"](Math.floor(a/l)*l,0,0);break;case"hour":a=s[r+i+"Hours"](),l=Math.min(l,24),s[o+i+"Hours"](Math.floor(a/l)*l,0,0,0);break;case"day":a=s[r+i+"Date"](),l=Math.min(l,31),s[o+i+"Date"](Math.max(Math.floor(a/l)*l,1)),s[o+i+"Hours"](0,0,0,0);break;case"month":a=s[r+i+"Month"](),l=Math.min(l,12),s[o+i+"Month"](Math.floor(a/l)*l,1),s[o+i+"Hours"](0,0,0,0);break;case"year":s[o+i+"Month"](0,1),s[o+i+"Hours"](0,0,0,0)}return s},t.modifyDate=function(e,t,n,i,a){void 0===t&&(t="day"),void 0===n&&(n=1),void 0===i&&(i=!1),void 0===a&&(a="");var s=new Date(e.valueOf());switch(t){case"millisecond":s[o+a+"Milliseconds"](s[r+a+"Milliseconds"]()+n);break;case"second":s[o+a+"Seconds"](s[r+a+"Seconds"]()+n),i&&s[o+a+"Milliseconds"](0);break;case"minute":s[o+a+"Minutes"](s[r+a+"Minutes"]()+n),i&&s[o+a+"Seconds"](0,0);break;case"hour":s[o+a+"Hours"](s[r+a+"Hours"]()+n),i&&s[o+a+"Minutes"](0,0,0);break;case"day":s[o+a+"Date"](s[r+a+"Date"]()+n),i&&s[o+a+"Hours"](0,0,0,0);break;case"month":s[o+a+"Month"](s[r+a+"Month"]()+n),i&&s[o+a+"Date"](0,0,0,0,0);break;case"year":s[o+a+"FullYear"](s[r+a+"FullYear"]()+n),i&&s[o+a+"Month"](0,0,0,0,0,0)}return s},t.DAYS_IN_YEAR=t.DAYS_IN_MONTH=t.HOURS_IN_DAY=t.MONTHS_IN_YEAR=t.MINUTES_IN_HOUR=t.SECONDS_IN_MINUTE=t.MILLISECONDS_IN_SECOND=void 0;var r="get",o="set";t.DAYS_IN_YEAR=365,t.DAYS_IN_MONTH=30,t.HOURS_IN_DAY=24,t.MINUTES_IN_HOUR=60,t.SECONDS_IN_MINUTE=60,t.MILLISECONDS_IN_SECOND=1e3,t.MONTHS_IN_YEAR=12},795:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.getMinPlaceHolder=function(e){var t,n,r,o;for(void 0===e&&(e=""),t=0;t0&&t.push(Number(r))}return t.sort(function(e,t){return e-t})}(e.year):t.year=!1,t}(Object.assign({},c));for(var v=0;v0&&(m=m.concat(h(y.binUnitName,f[y.binUnitName.name()],y.duration))):m=m.concat(y.standardBinVal)}return 0===m.length&&(m=p(e,t,n,o,i,a,s,l)),m};var r=n(794),o=1*r.MILLISECONDS_IN_SECOND,i=o*r.SECONDS_IN_MINUTE,a=i*r.MINUTES_IN_HOUR,s=a*r.HOURS_IN_DAY,l=s*r.DAYS_IN_MONTH,c=s*r.DAYS_IN_YEAR;function u(e,t){for(var n=[],r=0;r0&&o<=e/2&&e%o==0&&n.push(Number(o))}return n.sort(function(e,t){return e-t})}function d(e,t,n,r,u,d,h,p){return[{binUnitName:p,duration:1,standardBinVal:[[p,1,1],[p,2,2],[p,4,4],[p,5,5],[p,10,10],[p,20,20],[p,25,25],[p,40,40],[p,50,50],[p,100,100],[p,200,200],[p,250,250],[p,500,500]]},{binUnitName:h,duration:o,standardBinVal:[[h,1,o,!0],[h,2,2*o],[h,3,3*o],[h,4,4*o],[h,5,5*o],[h,6,6*o],[h,10,10*o],[h,12,12*o],[h,15,15*o],[h,20,20*o],[h,30,30*o]]},{binUnitName:d,duration:i,standardBinVal:[[d,1,i,!0],[d,2,2*i],[d,3,3*i],[d,4,4*i],[d,5,5*i],[d,6,6*i],[d,10,10*i],[d,12,12*i],[d,15,15*i],[d,20,20*i],[d,30,30*i]]},{binUnitName:u,duration:a,standardBinVal:[[u,1,a,!0],[u,2,2*a],[u,3,3*a],[u,4,4*a],[u,6,6*a],[u,8,8*a],[u,12,12*a]]},{binUnitName:r,duration:s,standardBinVal:[[r,1,s,!0],[r,2,2*s],[r,3,3*s],[r,5,5*s],[r,6,6*s],[r,10,10*s],[r,15,15*s]]},{binUnitName:t,duration:l,standardBinVal:[[t,1,l],[t,2,2*l],[t,3,3*l],[t,4,4*l],[t,6,6*l]]},{binUnitName:e,duration:c,standardBinVal:[[e,1,c],[e,2,2*c],[e,3,3*c],[e,5,5*c]]}]}function h(e,t,n){for(var r=[],o=0;o0?(new r).setBase(n):new r};e.addToEnv("contextScalesY",r.map(o)),e.addToEnv("focusScalesY",n.map(o))}},802:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(803)),i=n(218),a=r(n(806)),s=r(n(807)),l=r(n(868)),c=r(n(480)),u=r(n(777)),d=n(481),h=r(n(485)),p=function(e){return e.match(/^canvas/)},f=function(e){return e.remove()},g=function(e,t){var n=t.type,r=t.converter;if("function"==typeof e.formatter)return function(t){return e.formatter(t)+""};var o=function(e){if("string"==typeof e){var t=parseInt(e,10);return Number.isNaN(t)?null:t}return(0,u.default)(e)?e:null}(e.round);return function(t){var i="string"==typeof e.formatter?e.formatter:function(e){var t,n=e.value,r=e.type,o=(e.subType,e.defaultformat),i=void 0===o||o,a=e.round;if(null!=a&&(t=a>=0?a:Math.max(1,Math.floor(n).toString().length+a+1)),!i)return null==a?"$.12~r":a>=0?"$."+t+"f":"$."+t+"~r";var s=Math.abs(n);if(0!==s&&s<1e-4)switch(r){case"axis":return null==a?"$e":a<0?"$."+t+"~e":"$."+t+"e";default:return null==a?"$.2e":a<0?"$."+t+"~e":"$."+t+"e"}else if(s>=1e-4&&s<1||0===s)switch(r){case"axis":return null==a?"$":a<0?"$."+t+"~":"$."+t;default:return null==a?"$.2":a<0?"$."+t+"~":"$."+t}switch(r){case"axis":return null==a?"$~s":a<0?"$."+t+"~s":"$."+t+"s";default:return null==a?"$.2~s":a<0?"$."+t+"~s":"$."+t+"s"}}(Object.assign({},e,{subType:n,value:t.value,type:t.type,round:o}));return"s"===new h.default(i).type&&(null==o||o>=0)?r.formatPrefix(i,t.value).format(t.value):r.formatter(i).format(t.value)}},m=function(e){return!!e.visible},v=function(e){return"left"===e.align},y=function(e){return"right"===e.align},b=function(e){return"top"===e.align},C=function(e){return"bottom"===e.align};t.default=function(e){var t=[],n=e.getFromEnv("baseTextStyle"),r=e.getFromEnv("dataSource"),u={orientation:"bottom",align:"bottom",tickpadding:2,visible:!0,overlap:!1,domainline:!1,outputtimeformat:{},style:{"label-major":Object.assign({fill:"#818181"},n),"label-context":Object.assign({fill:"#818181"},n)}},h={tickarguments:[4,"s"],ticksize:5,tickpadding:7,visible:!0,overlap:!1,domainline:!1,style:{"label-major":Object.assign({"font-size":"11px"},n),"tick-mark-major":{stroke:"#efefef"}}},w=(0,o.default)(u),x=(0,o.default)(h),_=e.config,S=_.canvasAxisMap,M=_.focusAxesX,E=_.focusAxesY,O=e.getFromEnv("chart-attrib"),A=e.getFromEnv("getStyleDef")(O.style&&O.style.canvas),T=_.focusPanels.map(function(e){return(0,o.default)(e,{x:e.x.map(function(e){var t=M[e.index],n=(0,i.pluck)(M[e.index].format,{});return t.timeFormatterFn="function"==typeof n.formatter?function(e){return n.formatter.call(t.scale,e)}:function(e){return t.scale.getFormattedTime&&t.scale.getFormattedTime(e,r.tooltip&&r.tooltip.outputtimeformat)},(0,o.default)(w(e),(0,l.default)(M,e.index))}),y:e.y.map(function(e){var t,n=E[e.index],r=Object.assign({defaultformat:!0},(0,i.pluck)(E[e.index].format,{}));return n.formatLabelPrefix=r.prefix||i.BLANKSTRING,n.formatLabelSuffix=r.suffix||i.BLANKSTRING,t=Object.assign({},c.default,{prefix:n.formatLabelPrefix,suffix:n.formatLabelSuffix}),n.scale.setLocale(t),n.formatterFn=g(r,{converter:new d.NumberConverter(t),type:n.type}),(0,o.default)(x(e),(0,l.default)(E,e.index))})})});T.forEach(function(n,r){var l,c,u,d,h=n.x,p=n.y,f=n.plots,g="canvas_"+r,w={left:0,right:0};S[g]||(S[g]={x:[],y:[]}),h.filter(m).forEach(function(t,n){var o="axesX_"+r+"_"+n;t.align=t.align.toLowerCase(),["bottom","top"].includes(t.align)||(t.align="bottom"),t.tickvisibilitylimit={start:i.UNDEF,end:i.UNDEF},(0,i.componentFactory)(e,a.default,o,1,[t]),S[g].x.includes(o)||S[g].x.push(o)}),p.filter(m).forEach(function(t,n){var o,s="axesY_"+r+"_"+n;("left"===(o=t.orientation)||"right"===o)&&(t.align=t.orientation),t.orientation=t.align,t.domainline=w[t.align]>0,"log"===t.type&&(t.tickarguments=[4,"~s"]),w[t.align]++,t.tickvisibilitylimit={start:i.UNDEF,end:i.UNDEF},(0,i.componentFactory)(e,a.default,s,1,[t]),S[g].y.includes(s)||S[g].y.push(s)}),t.push(g),(0,i.componentFactory)(e,s.default,g,1,[(l={plotConfigs:f,tableMap:_.focusTableMap,xConfigs:h,yConfigs:p,enableGridLines:!0,gridBandSupported:"log"!==p[0].type,enableMouseTracking:1,enableMarkers:1,enableInteraction:1,canvasStyle:A},c={leftBorder:!1,rightBorder:!1,topBorder:!1,bottomBorder:!1},u=l.xConfigs,d=l.yConfigs,(u.find(v)||d.find(v))&&(c.leftBorder=!0),(u.find(y)||d.find(y))&&(c.rightBorder=!0),(u.find(b)||d.find(b))&&(c.topBorder=!0),(u.find(C)||d.find(C))&&(c.bottomBorder=!0),(0,o.default)(l,c))])}),Object.keys(e.getChildren()).filter(p).filter(function(e){return!t.includes(e)}).forEach(function(t){e.getChildren(t).forEach(f)}),_.focusPanels=T}},806:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=r(n(232)),a=n(218),s=r(n(474)),l=r(n(475)),c=n(233);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var d=function(e){return e},h=function(e){return null==e},p="top",f="left",g="major",m="context",v=Math.floor,y=Math.max,b=function(e){return"t"+e+",0"},C=function(e){return"t0,"+e},w=function(e,t,n){if(e&&t)return e[t[n]]},x=function(e,t){return!(e.x>t.x+t.width||t.x>e.x+e.width)&&!(e.y>t.y+t.height||t.y>e.y+e.height)},_=function(e){e.text="",e.dim.width=0,e.dim.height=0},S=function(e){var t;switch(e){case f:t="end";break;case"right":t="start";break;default:t="middle"}return t},M=function(e,t,n,r){var o;return(o="start"===t?n.x:"end"===t?n.x-e.width:n.x-e.width/2)>=0&&o+e.width<=r.width},E=function(e,t){return e>=t.start&&e<=t.end},O=function(e){function t(){return e.apply(this,arguments)||this}(0,i.default)(t,e);var n=t.prototype;return n.getType=function(){return"axis"},n.getName=function(){return"axis"},n.__setDefaultConfig=function(){var t;e.prototype.__setDefaultConfig.call(this);var n=this.config;this.setScale(new l.default),this.setAlignment(f),this.setTickArguments(),this.setTickValues(),this.setReverse(!1),this.setTickSize(12),this.setTickPadding(1),this.setDomainLine(!0),this.setTicksDraw(!0),this.setLabelOffset(),this.setDayInMajor(!1),this.setStickyContextLabel(!0),this.setTickVisibilityLimit({start:-1/0,end:1/0}),n.alignDiff=0,n.maxLabelSpace=0,n.axisDimension={},n.defaultStyle=n.style=((t={})["tick-mark-minor"]={stroke:"#d3d3d3","stroke-width":"1px"},t["tick-mark-major"]={stroke:"#AAAAAA","stroke-width":"1px"},t["label-major"]={fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},t["label-minor"]={fill:"#9A9A9A","font-size":"11px","font-weight":"normal","font-style":"normal"},t["label-context"]={fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},t._ticks={minor:{stroke:"#d3d3d3"},major:{stroke:"#AAAAAA"},context:{}},t._text={major:{fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"},minor:{fill:"#9A9A9A","font-size":"11px","font-weight":"normal","font-style":"normal"},context:{fill:"#858585","font-size":"12px","font-weight":"normal","font-style":"normal"}},t.line={fill:"#D6D6D6"},t.title={fill:"#5F5F5F","font-size":"12px","font-weight":"normal","font-style":"normal"},t),this.config.prevTicks||(this.config.prevTicks=[])},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),t.scale&&this.setScale(t.scale),t.align&&this.setAlignment(t.align,t.overlap),t.reverse&&this.setReverse(t.reverse),t.tickarguments&&this.setTickArguments.apply(this,t.tickarguments),t.title&&this.setAxisName((0,a.parseUnsafeString)(t.title)),t.skipinfo&&this.setSkipInfo(t.skipinfo),t.offset&&this.setLabelOffset(t.offset),t.dayinmajor&&this.setDayInMajor(t.dayinmajor),t.scalemode&&this.setScaleMode(t.scalemode),t.minspace&&this.setminSpace(t.minspace),"undefined"!=typeof t.stickycontextlabel&&this.setStickyContextLabel(t.stickycontextlabel),!h(t.ticksize)&&this.setTickSize(t.ticksize),!h(t.tickpadding)&&this.setTickPadding(t.tickpadding),this.setDomainLine(t.domainline),this.setTicksDraw(t.drawticks),!h(t.formatterFn)&&this.setTickFormat(t),t.outputtimeformat&&this.setTimeFormat(t.outputtimeformat),t.tickvisibilitylimit&&this.setTickVisibilityLimit(t.tickvisibilitylimit),t.style&&this.parseStyle(t.style),this.config.validateLabelDimensions=(0,a.pluckNumber)(t.validateLabelDimensions,0)},n.parseStyle=function(e){var t;void 0===e&&(e={});var n,r,o,i,a,s=this.config,l=s.defaultStyle,c=this.getFromEnv("getStyleDef"),u=this.getFromEnv("baseTextStyle"),d=c(e.label),h=c(e["tick-mark"]);n=Object.assign({},l["tick-mark-major"],h,c(e["tick-mark-major"])),r=Object.assign({},l["tick-mark-minor"],h,c(e["tick-mark-minor"])),o=Object.assign({},l["label-major"],u,d,c(e["label-major"])),i=Object.assign({},l["label-minor"],u,d,c(e["label-minor"])),a=Object.assign({},l["label-context"],u,d,c(e["label-context"])),s.style=((t={})["tick-mark-major"]=n,t["tick-mark-minor"]=r,t["label-major"]=o,t["label-minor"]=i,t["label-context"]=a,t.title=Object.assign({},l.title,u,c(e.title)),t.line=Object.assign({},l.line,c(e.line)),t)},n.placeAxis=function(){var e,t,n,r,o,i,l,c,u,v,b,C,x,_,S,M,E=this.config,O=E.isVertical,A=(0,a.pluckNumber)(E.minspace,-1),T=this.getScale(),k=this.getSkipInfo()||{},D=this.getTickPadding(),P=this.getFromEnv("smartLabel"),N=[],L=0,R=0,F=this.getAxisName(),I=[];for((t=(this.getTickArguments()||[]).slice(0)).push(k),t.push(E.dayInMajor),n=h(this.getTickValues())?T.ticks?T.ticks.apply(T,t):T.getDomain():this.getTickValues(),r=h(this.getTickFormat())?T.tickFormat?T.tickFormat.apply(T,this.getTickArguments()):d:this.getTickFormat(),_=E.style["label-context"],P.setStyle(Object.assign({},_)),S=_["font-size"]||_.fontSize,E.labelHeight=1.2*parseFloat(S,10),F&&(P.setStyle(Object.assign({},E.style.title)),L+=(E.axisNameDim=P.getOriSize(F,!1)).height),b=T._tickType||[],o=0,i=n.length;o=0;e--)if(l=this.makeBBox(m[e]),!x(l,c)){C=n-e;break}for(e=n+1;e=0;e-=C)if(x(this.makeBBox(m[e]),this.makeBBox(m[e+C]))){C++,S=!1;break}}d.minorSkip=y(C,w)}},n.cleanseMinorTicks=function(){var e,t,n,r,o,i,a,s,l,c,u,d=this.config,h=this.getScale()._tickType||[],p=[],f=[],m=d.values,b=-1,C=d.isVertical?((e={})[d.xInverse]="height",e[d.x]="width",e):((t={})[d.xInverse]="width",t[d.x]="height",t);for(n=0,o=m.length;n=0;r-=1)if(c=this.makeBBox(i[r],1),d.isVertical){if(s[d.xInverse]<=c[d.xInverse]+c[C[d.xInverse]]){b=y(b,r);break}}else if(c[d.xInverse]<=s[d.xInverse]+s[C[d.xInverse]]){b=y(b,r);break}for(r=a;r=c[d.xInverse]){u=Math.min(u,r);break}}else if(c[d.xInverse]+c[C[d.xInverse]]>=l[d.xInverse]){u=Math.min(u,r);break}for(r=0;r=u||Math.abs(a-r)%d.minorSkip)&&_(i[r])}},n.cleanseMajorTicks=function(){var e,t,n,r,o=this.config,i=this.getScale(),a=o.values,s=[],l=[],c=[],u=[],d=i._tickType||[],h=0,p=1,f=1,v=!1;if(r=a.length){for(n=0;n=0;n--)if(!x(this.makeBBox(s[n]),e)){p=h-n;break}for(;!v;){for(v=!0,n=h+f;n=0;n-=f)if(x(this.makeBBox(s[n]),this.makeBBox(s[n+p]))){p++,v=!1;break}}for(o.majorSkip=t=y(p,f),n=0,r=s.length;n=l[0]&&e.value<=l[1]&&o[t]===g}),R=0,F=v.length;R=l[0]&&v[R].value<=l[1]&&(v[R][x]=i(v[R].value)),Y.push(R));for(B=Y[0],j=Y[1],z=2,R=0,F=e.values.length;Rl[1]))&&!(k===m&&X>1&&(I.valuel[1]))&&(I[x]=k===m&&1===X?this.getStickyContextLabel()||void 0===V?y(i(I.value),I.dim.width/2):i(V.value):I[x]||i(I.value),R>=j&&(B=j,j=Y[z],z++),("minor"!==k||C||!(I[x]-v[B][x]<5||v[j][x]-I[x]<5))&&(I[_]+=e.alignDiff,T=I.value,this.addGraphicalElement({container:{id:"axisGroup",label:"group",isParent:!1},attr:{name:"tick",transform:e.translate(I[x])},data:{value:T},el:"group",id:"tick-group-"+R,component:this,label:"group"}),k!==m&&(U=C?"M "+b+" 0 H "+(b+O*this.getTickSize(o[R])):"M 0 "+b+" V "+(b+O*this.getTickSize(o[R])),this.addGraphicalElement({el:"path",attr:{path:U},container:{id:"tick-group-"+R,label:"group",isParent:!1},id:"tick-"+R,css:A["tick-mark-"+(k||g)],component:this,label:"path"})),W=A["label-"+(k||g)]["text-anchor"]||S(d),($={})[x]=I[x]+e[x+"Offset"],$[_]=I[_]+e[_+"Offset"]+("minor"!==k?e.overlapBuffer:0),q=$,!e.validateLabelDimensions||M(I.dim,W,q,r.getDimension())))){var Z;if(!E(I.value,K)&&k!==m)continue;if(k===m&&"undefined"==typeof K.start)continue;this.addGraphicalElement({el:"text",attr:(Z={text:I.text+""},Z[x]=0+e[x+"Offset"],Z[_]=I[_]+e[_+"Offset"]+("minor"!==k?e.overlapBuffer:0),Z["text-anchor"]=W,Z["vertical-align"]=w===p?"bottom":"bottom"===w?"top":"middle",Z.opacity=A["label-"+(k||g)].opacity,Z),container:{id:"tick-group-"+R,label:"group",isParent:!1},component:this,id:"tick-label-"+R,css:A["label-"+(k||g)],label:"text"})}}}},n.updateMaxLabelSpace=function(e){var t=this.config,n=this.getAlignment();return t.alignDiff=e-t.maxLabelSpace,t.maxLabelSpace=t.axisDimension[n]=e,t.axisDimension},n.setDayInMajor=function(e){this.config.dayInMajor=e},n.setSkipInfo=function(e){void 0===e&&(e={}),this.config.tickInfo=e},n.getSkipInfo=function(){return this.config.tickInfo},n.setStickyContextLabel=function(e){void 0===e&&(e=!0),this.config.stickyContextLabel=e},n.getStickyContextLabel=function(){return this.config.stickyContextLabel},n.setminSpace=function(e){this.config.minspace=e},n.getminSpace=function(){return this.config.minspace},n.setLabelOffset=function(e){void 0===e&&(e={});var t=this.config;t.xOffset=(0,a.pluckNumber)(e.x,0),t.yOffset=(0,a.pluckNumber)(e.y,0)},n.getLabelOffset=function(){return{x:this.config.xOffset,y:this.config.yOffset}},n.getAxisName=function(){return this.config.axisName},n.setAxisName=function(e){void 0===e&&(e=""),this.config.axisName=e},n.getAlignment=function(){return this.config.align},n.setAlignment=function(e,t){void 0===t&&(t=!1);var n,r,o=this.config;switch(e){case f:n=t?"right":f;break;case"right":n=t?f:"right";break;case p:n=t?"bottom":p;break;case"bottom":n=t?p:"bottom"}o.align=e,o.orientation=n,o.isVertical=r=e===f||"right"===e,o.k=n===f||n===p?-1:1,o.x=r?"x":"y",o.xInverse=r?"y":"x",o.translate=r?C:b,o.translateInverse=r?b:C},n.getOrientation=function(){return this.config.orientation},n.setTranslation=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.config._translatedX=e,this.config._translatedY=t,this.config.groupTranslation="t"+e+", "+t},n.getTranslation=function(){return{x:this.config._translatedX,y:this.config._translatedY}},n.setDomainLine=function(e){return void 0===e&&(e=!0),this.config.drawDomainLine=e,this},n.getDomainLine=function(){var e,t,n=this.config,r=this.getScale().getRange(),o=n.isVertical,i=n.orientation,a=n.maxLabelSpace,s=+r[0],l=+r[1];return n.drawDomainLine&&(e=i===f||i===p?a+2:0,t=o?"M "+e+" "+s+" V "+l:"M "+s+" "+e+" H "+l),t},n.setTicksDraw=function(e){return void 0===e&&(e=!0),this.config.drawTicks=e,this},n.getTicksDraw=function(){return this.config.drawTicks},n.setScale=function(e){this.config.scale=e},n.getScale=function(){return this.config.scale},n.setReverse=function(e){this.config.isReverse=e},n.getReverse=function(){return this.config.isReverse},n.setTickArguments=function(){for(var e=arguments.length,t=new Array(e),n=0;ni&&ns&&r+d[0]&&u[e].start<+d[1]&&(o="M "+a.getRangeValue(Math.max(+d[0],+u[e].start))+", "+v+" \n L "+a.getRangeValue(Math.min(+u[e].end,+d[1]))+", "+v,u[e].clipType&&p?1===u[e].clipType&&(b.push(o),t=e):(y.push(o),t=e)),2===u[e].clipType&&p){if(n===e-1){n=e;continue}if((r=t?(a.getRangeValue(u[t].start)+a.getRangeValue(u[e].end))/2:a.getRangeValue(u[e].end))h[1]-2)continue;i=_(r,v),C.push(i[0]),w.push(i[1]),n=e}return{normalLine:y,dashedLine:b,clippedLine:C,clippedLineMid:w}},n._createGroup=function(){var e=this.config,t=e.padding,n=e.canvasBGLeft-t.left,r=e.canvasBGTop-t.top,o=e.canvasBGWidth,i=e.canvasBGHeight,a=["M"+n+","+r,"L"+(n+o)+","+r,"L"+(n+o)+","+(r+i),"L"+n+","+(r+i)+"Z"];this.addGraphicalElement({el:"group",container:{id:"tropo",label:"group",isParent:!0},component:this,label:"group",attr:{name:"canvas-tropo",transform:e.canvasTranslation},id:"tropo"}),this.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:this,label:"strato",attr:{name:"canvas-strato",transform:e.translate},id:"strato"}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:this,label:"meso",attr:{name:"canvas-meso",transform:e.translate,"clip-path":a},id:"meso"}),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:this,label:"thermo",attr:{name:"canvas-thermo",transform:e.translate},id:"thermo"}),this.addGraphicalElement({el:"group",container:{id:"exo",label:"group",isParent:!0},component:this,label:"exo",attr:{name:"canvas-exo",transform:e.translate},id:"exo"}),this.addToEnv("dsGroupclipPath",a)},n.setTranslation=function(e,t){var n=this.config,r=n.borderConfig,o=n.padding;n._translateX=e+r.leftBorder,n._translateY=t+r.topBorder,n.canvasTranslation="t"+n._translateX+","+n._translateY,n._translateX+=o.left,n._translateY+=o.top,n.translate="t"+n._translateX+","+n._translateY},n.getCanvasBorder=function(){return this.config.borderConfig},n.setPadding=function(e){void 0===e&&(e={}),Object.assign(this.config.padding,e)},t}(i.default);t.default=S},808:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(809)),i=r(n(810)),a=r(n(811)),s=r(n(224));t.default=function(e){var t=e.config.xConfigs;e.config.enableTimeMarkers&&t.forEach(function(t){var n,r,l,c=t.timemarker||[],u=(0,s.default)(t.showtimespanmarkertooltipat,1),d=t.plot[0].value,h=e.getFromEnv("chartConfig").dataTable.getSchema().find(function(e){return e.name===d}).format,p=[],f=[],g=[],m=e.getFromEnv("chart"),v=e.config.xConfigs[0].scale;c.forEach(function(e){e.end?"full"===e.type?f.push(e):p.push(e):g.push(e)}),n=e.attachChild(o.default,"timeSpanMinMarker"),r=e.attachChild(i.default,"timeSpanFullMarker"),n.configure({timeMarker:p,defaultFormat:h,xScale:v,showTimeSpanMarkerTooltipAt:u}),n.addExtEventListener("timeSpanMinMarkerHovered",function(e){e.data.senderTimeMarker!==n&&n.setData({hoveredIndex:e.data.hoveredIndex,hoveredFromOutside:!0},!0)},m),r.configure({timeMarker:f,defaultFormat:h,xScale:v,showTimeSpanMarkerTooltipAt:u}),r.addExtEventListener("timeSpanFullMarkerHovered",function(e){e.data.senderTimeMarker!==r&&r.setData({hoveredIndex:e.data.hoveredIndex,hoveredFromOutside:!0},!0)},m),(l=e.attachChild(a.default,"timeInstanceMarker")).configure({timeMarker:g,defaultFormat:h,xScale:v}),l.addExtEventListener("timeInstanceMarkerHovered",function(e){e.data.senderTimeMarker!==l&&l.setData({hoveredMarkerIndex:e.data.hoveredMarkerIndex,hoveredDomainIndex:e.data.hoveredDomainIndex,hoveredFromOutside:!0},!0)},m)})}},809:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(429),s=n(421),l=n(218),c=r(n(285)),u=n(785);function d(e){switch(e){case"year":case"quarter":case"month":case"week":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}}function h(e,t){switch(e){case"year":return t?a.utcYear:s.timeYear;case"quarter":case"month":return t?a.utcMonth:s.timeMonth;case"week":return t?a.utcWeek:s.timeWeek;case"day":return t?a.utcDay:s.timeDay;case"hour":return t?a.utcHour:s.timeHour;case"minute":return t?a.utcMinute:s.timeMinute;case"second":return t?a.utcSecond:s.timeSecond;case"millisecond":return t?a.utcMillisecond:s.timeMillisecond}}function p(e,t,n,r){var o,i,a,s=!1,l=r.markerDim,c=e.getLinkedParent().getDimension(),u=e.config.showTimeSpanMarkerTooltipAt;for(i=0,a=l.length;i=d.x&&t<=d.x+d.width&&(1===u||h<=c.width*u)&&n>=d.y&&n<=d.y+d.height){s=!0,e.config.previouslyHoveredIndex=r.index,o=d;break}}return{pointIndex:r.index,hovered:s,pointObj:{hoveredMarkerDim:o,index:s&&i,type:r.type},previouslyHoveredIndex:e.config.previouslyHoveredIndex,component:e}}function f(e,t,n,r){return e>=n&&e<=r||t<=r&&t>=n||n>=e&&r<=t}var g=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultStyle={text:{fill:"#808080",opacity:1,"font-size":"10px","font-weight":"normal","font-style":"normal","text-anchor":"middle","fill-opacity":1,"stroke-opacity":1},marker:{fill:"#62b58f",opacity:.2,"fill-opacity":1,"stroke-opacity":1,"border-thickness":0,"border-padding":1,"border-radius":0,"border-dash":"none","stroke-width":1,"stroke-dasharray":"none",stroke:"none"}},this.config.lastHoveredMarkerIndex=void 0,this.config.lastHoveredDomainIndex=void 0,t.hoveredIndex=void 0,t.previouslyHoveredIndex=void 0,t.hoveredOpacity=.5,t.valueArr=[],t.textArr=[],t.styleArr=[],t.domainArr=[],t.markerDetails=[],t.type="minimal",t.showTimeSpanMarkerTooltipAt=1},n.getHoveredMarker=function(e,t){var n,r,o=e,i=t,a=this.config,s=this.getLinkedParent().getTranslation(),l=a.markerDetails;for(o-=s.x,i-=s.y,r=l.length-1;r>=0&&!(n=p(this,o,i,l[r])).hovered;r--);return n},n.setHoverInEffect=function(e,t){var n=this.getFromEnv("chart");this.setData({hoveredIndex:e,hoveredDomainIndex:t},!0),n.fireEvent("timeSpanMinMarkerHovered",{senderTimeMarker:this,hoveredIndex:e,hoveredFromOutside:!0})},n.setHoverOutEffect=function(){var e=this.config,t=this.getFromEnv("chart");this.setData({hoveredIndex:void 0,lastHoveredMarkerIndex:e.hoveredIndex,lastHoveredDomainIndex:e.hoveredDomainIndex},!0),t.fireEvent("timeSpanMinMarkerHovered",{senderTimeMarker:this,hoveredIndex:void 0,hoveredFromOutside:!0})},n.fireMarkerEvents=function(e,t,n){var r,o,i,a,s,l,u,d=this.config,h=d.valueArr,p=d.textArr,f=d.domainArr,g=this.getFromEnv("isUTC"),m=this.getFromEnv("chart");switch(e){case"fc-mouseover":u="timeMarkerRollOver",r=t,o=n;break;case"fc-mouseout":r=d.lastHoveredMarkerIndex,o=d.lastHoveredDomainIndex,void 0!==r&&void 0!==o&&(u="timeMarkerRollOut");break;case"fc-click":u="timeMarkerClick",r=t,o=n}u&&(l=h[r].timeFormat,i=g?c.default.utcFormatter(l):c.default.formatter(l),a=+f[r][o].start,s=+f[r][o].end,m.fireChartInstanceEvent(u,{start:a,startText:i.format(a),end:s,endText:i.format(s),formatter:l,type:h[r].type,label:p[r]}))},n.getToolTextConfiguration=function(e,t){var n,r=this.getFromEnv("tooltipStyle"),o=r.header,i=r.body,a=40,s=26,l=this.getFromEnv("smartLabel");return l.setStyle({"font-size":o["font-size"],"font-family":o["font-family"],"font-weight":o["font-weight"]}),a+=(n=l.getOriSize(e[0])).width,s+=n.height,e[1]?(l.setStyle({"font-size":i["font-size"],"font-family":i["font-family"],"font-weight":i["font-weight"]}),s+=(n=l.getOriSize(e[1])).height,a=Math.max(a,n.width),{header:"
"+e[0]+"
",body:"
"+e[1]+"
",dimensions:{width:a,height:"full"!==t?s:0}}):{header:"
"+e[0]+"
",body:"",dimensions:{width:a,height:"full"!==t?s:0}}},n.getMarkerAndLabelConfiguration=function(e,t){var n,r,o,i,a,s,l,c,u,d,h=this.config,p=this.getLinkedParent().config,g=p.padding,m=g.left,v=g.right,y=g.top,b=g.bottom,C=this.config.xScale,w=C.getDomain(),x=h.valueArr[e],_=x.repeat;return n=C.getRangeValue(x.start),d=C.getRangeValue(x.end),o="full"===(i=x.type)?p.canvasTop+2+y:p.canvasTop+p.canvasHeight-2-y+b,a="full"===i?p.canvasTop-p.padding.top:p.canvasTop+p.canvasHeight-(t+4)-y+b,s="full"===i?p.canvasHeight:t+4,h.markerDetails[e].markerDim=[],h.domainArr[e]=[],h.markerDetails[e].index=e,!_&&f(+x.start,+x.end,+w[0],+w[1])?(h.domainArr[e].push({start:x.start,end:x.end}),h.markerDetails[e].markerDim.push({x:n-m+v,y:a,width:d-n,height:s}),r=n-m+v,c=x.start,u=x.end):_&&(h.domainArr[e]=l=this.getAllValidDomains(x.start,x.end,x.repeat),l.length&&(r=C.getRangeValue(l[0].start)-m+v,c=l[0].start,u=l[0].end,l.forEach(function(t){n=C.getRangeValue(t.start),d=C.getRangeValue(t.end),h.markerDetails[e].markerDim.push({x:n-m+v,y:a,width:d-n,height:s}),_.multiplier<0&&(r=n-m+v,c=t.start,u=t.end)}))),h.markerDetails[e].type=i,{labelConfiguration:{x:r,y:o,width:d-n-4,startDomain:c,endDomain:u}}},n.getAllValidDomains=function(e,t,n){var r=this.config.xScale.getDomain(),o=e,i=t,a=[],s=Number(i)-Number(o);if(+o<+r[0]&&n.multiplier>0)for(;!f(+o,+i,+r[0],+r[1])&&+o<=+r[1];)o=n.interval.offset(o,n.multiplier),i=new Date(Number(o)+s);for(;f(+o,+i,+r[0],+r[1]);)a.push({start:o,end:i}),o=n.interval.offset(o,n.multiplier),i=new Date(Number(o)+s);return a},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,r,o,i,a,s,p,f,g,m,v,y,b=this.config,C=[],w=[],x=this.getFromEnv("isUTC"),_=this.getFromEnv("focusScalesX")[0].applicableClippings,S=_.repeatClips,M=_.singleClips,E=[],O=this.getFromEnv("getStyleDef"),A=this.getFromEnv("textStyle"),T=this.getFromEnv("baseTextStyle"),k=t.timeMarker||[],D=Object.assign({},A,b.defaultStyle.text,T);for(k.sort(function(e,t){return+new Date(e.start)-+new Date(t.start)}),p=0,f=k.length;p+a){var P=[a,o];o=P[0],a=P[1]}(o=(0,u.getUnclippedValue)(+o,S,M,{clampDirection:"up"}))>(a=(0,u.getUnclippedValue)(+a,S,M,{clampDirection:"down"}))||(n={start:new Date(o),end:new Date(a),startString:g.start,endString:g.end,timeFormat:i,type:g.type||b.type},g.repeat&&g.repeat.unit&&0!==Math.floor(+g.repeat.multiplier)&&d(s=g.repeat.unit.toLowerCase())&&(n.repeat={interval:h(s,x),multiplier:("quarter"===s?3:1)*(0,l.pluckNumber)(g.repeat.multiplier,1)}),y=g.style||{},v=Object.assign({},D,{"vertical-align":"full"===n.type?"top":"bottom"},O(y.text)),m=Object.assign({},b.defaultStyle.marker,O(y.marker)),E.push(n),C.push({text:v,"text:hover":Object.assign({},v,O(y["text:hover"])),marker:m,"marker:hover":Object.assign({},m,O(y["marker:hover"]))}),w.push((0,l.pluck)(g.label,"")))}t.xScale&&(b.xScale=t.xScale),b.hoveredIndex=t.hoveredIndex,b.hoveredDomainIndex=t.hoveredDomainIndex,b.lastHoveredMarkerIndex=t.lastHoveredMarkerIndex,b.lastHoveredDomainIndex=t.lastHoveredDomainIndex,t.timeMarker&&(b.valueArr=E,b.styleArr=C,b.textArr=w,b.showTimeSpanMarkerTooltipAt=t.showTimeSpanMarkerTooltipAt)},n.getAllLabelsProps=function(e,t){var n,r,o,i,a,s,d,h,p,f=this.config,g=this.getFromEnv("smartLabel"),m=f.valueArr,v=f.domainArr[e],y=f.markerDetails[e],b=this.getFromEnv("focusScalesX")[0].applicableClippings,C=b.repeatClips,w=b.singleClips,x=(0,u.getUnclippedValue)(+t.startDomain,C,w),_=(0,u.getUnclippedValue)(+t.endDomain,C,w),S=this.getFromEnv("isUTC"),M=t.x,E=t.y,O=t.width,A=g._lineHeight,T=[],k=f.textArr[e];if(_<=x)return[];for(k&&(i=g.getSmartText((0,l.parseUnsafeString)(k),O,A),T.push({dim:{x:M+O/2+2,y:E-2},text:(0,l.parseUnsafeString)(i.text)})),r=m[e].timeFormat,h=0,p=v.length;h=l[i].x&&t<=l[i].x+l[i].width&&n>=l[i].y&&n<=l[i].y+l[i].height){s=!0,e.config.previouslyHoveredIndex=r.index,o=l[i];break}return{pointIndex:r.index,hovered:s,pointObj:{hoveredMarkerDim:o,index:s&&i},previouslyHoveredIndex:e.config.previouslyHoveredIndex,component:e}}var f=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={text:{fill:"#808080","font-size":"11px","font-weight":"normal","font-style":"normal","vertical-align":"middle","text-anchor":"middle","fill-opacity":"1","stroke-opacity":"1",opacity:1},marker:{fill:"#f8b8b7",opacity:1,stroke:"#666666",r:2,"stroke-width":"1","stroke-dasharray":"none","fill-opacity":"1","stroke-opacity":"1"}},this.config.hoveredMarkerIndex=void 0,this.config.hoveredDomainIndex=void 0,this.config.lastHoveredMarkerIndex=void 0,this.config.lastHoveredDomainIndex=void 0,this.config.previouslyHoveredIndex=void 0,this.config.hoveredFromOutside=!1,this.config.hoveredLabelFill="#ffffff",this.config.hoveredMarkerRadius="1.5",this.config.valueArr=[],this.config.textArr=[],this.config.styleArr=[],this.config.domainArr=[],this.config.repeatationArr=[],this.config.markerDetails=[],this.config.type="minimal"},n.getHoveredMarker=function(e,t){var n,r,o=e,i=t,a=this.config,s=this.getLinkedParent().getTranslation(),l=a.markerDetails;for(o-=s.x,i-=s.y,r=l.length-1;r>=0&&!(n=p(this,o,i,l[r])).hovered;r--);return n},n.setHoverInEffect=function(e,t,n){var r=this.getFromEnv("chart");this.setData({hoveredMarkerIndex:e,hoveredDomainIndex:t,hoveredFromOutside:n},!0),r.fireEvent("timeInstanceMarkerHovered",{senderTimeMarker:this,hoveredMarkerIndex:e,hoveredDomainIndex:t,hoveredFromOutside:!0})},n.setHoverOutEffect=function(){var e=this.config,t=this.getFromEnv("chart");this.setData({lastHoveredMarkerIndex:e.hoveredMarkerIndex,lastHoveredDomainIndex:e.hoveredDomainIndex,hoveredMarkerIndex:void 0,hoveredDomainIndex:void 0},!0),t.fireEvent("timeInstanceMarkerHovered",{senderTimeMarker:this,hoveredMarkerIndex:void 0,hoveredDomainIndex:void 0,hoveredFromOutside:!0})},n.fireMarkerEvents=function(e,t,n){var r,o,i,a,s,u,d=this.config,h=d.valueArr,p=d.domainArr,f=d.repeatationArr,g=this.getFromEnv("chart"),m=this.getFromEnv("isUTC");switch(e){case"fc-mouseover":u="timeMarkerRollOver",r=t,o=n;break;case"fc-mouseout":r=d.lastHoveredMarkerIndex,o=d.lastHoveredDomainIndex,void 0!==r&&void 0!==o&&(u="timeMarkerRollOut");break;case"fc-click":u="timeMarkerClick",r=t,o=n}u&&(s=h[r].timeFormat,i=m?c.default.utcFormatter(s):c.default.formatter(s),a=+p[r][o],g.fireChartInstanceEvent(u,{start:a,startText:i.format(a),end:void 0,endText:l.BLANKSTRING,formatter:s,type:h[r].type,label:f[r][o].labels}))},n.getToolTextConfiguration=function(e){var t,n,r,o=this.getFromEnv("tooltipStyle"),i=o.header,a=o.body,s=40,l=46,c=this.getFromEnv("smartLabel"),u={};if(c.setStyle({"font-size":i["font-size"],"font-family":i["font-family"],"font-weight":i["font-weight"]}),s+=(r=c.getOriSize(e[0])).width,l+=r.height,u.header="
"+e[0]+"
",u.body="
",c.setStyle({"font-size":a["font-size"],"font-family":a["font-family"],"font-weight":a["font-weight"]}),e.length>2)for(u.body+="
",t=1,n=e.length;t"+t+". "+e[t]+"
");else 2===e.length&&e[1]&&(l+=(r=c.getOriSize(e[1])).height,s=Math.max(s,r.width),u.body+="
"+e[1]+"
");return u.body+="
",u.dimensions={width:s,height:l},u},n.reCalculateDimension=function(e,t,n){var r=this.config,o=r.domainArr[e][t],i=this.config.xScale,a=this.getLinkedParent().config,s=a.padding,l=s.left,c=s.right,u=s.top,d=s.bottom,h=i.getRangeValue(o),p=r.markerDetails[e].markerDim[t],f=h-n/2-l+c,g=a.canvasBGTop+a.canvasBGHeight-n/2-u+d,m=2*n/2,v=2*n/2;p.x=f,p.y=g,p.width=m,p.height=v,p.thresholdX=fa.canvasBGLeft+a.canvasBGWidth?f+m-(a.canvasBGLeft+a.canvasBGWidth):0,p.thresholdY=n/2},n.getMarkerDimension=function(e,t){var n=this.config.xScale,r=this.getLinkedParent().config,o=r.padding,i=o.left,a=o.right,s=o.top,l=o.bottom,c=n.getRangeValue(e)-t/2-i+a,u=2*t/2;return{x:c,y:r.canvasBGTop+r.canvasBGHeight-t/2-s+l,width:u,height:2*t/2,thresholdX:cr.canvasBGLeft+r.canvasBGWidth?c+u-(r.canvasBGLeft+r.canvasBGWidth):0,thresholdY:t/2}},n.getMarkerAndLabelConfiguration=function(e,t){var n,r=this,o=r.config,i=r.config.xScale,a=i.applicableClippings,s=a.repeatClips,l=a.singleClips,c=i.getDomain(),d=o.valueArr[e],h=d.repeat,p=parseFloat(t.text["line-height"]);o.markerDetails[e].markerDim=[],o.markerDetails[e].index=e,o.domainArr[e]=[],isNaN(+d.start)||(0,u.getUnclippedValue)(+d.start,s,l)!==+d.start||(!h&&+d.start>=+c[0]&&+d.start<=+c[1]?(o.domainArr[e].push(d.start),o.markerDetails[e].markerDim.push(r.getMarkerDimension(d.start,p))):h&&(o.domainArr[e]=n=r.getAllValidDomains(d.start,d.repeat),n.length&&n.forEach(function(t){o.markerDetails[e].markerDim.push(r.getMarkerDimension(t,p))})))},n.getAllValidDomains=function(e,t){var n=e,r=this.config.xScale.getDomain(),o=[];if(+n<+r[0]&&t.multiplier>0)for(;+n<+r[0];)n=t.interval.offset(n,t.multiplier);for(;+n<=+r[1];)o.push(n),n=t.interval.offset(n,t.multiplier);return o},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,r,o,i,a,s,u,p,f,g,m,v,y,b,C,w=this.config,x=[],_=[],S=this.getFromEnv("isUTC"),M=[],E=this.getFromEnv("getStyleDef"),O=this.getFromEnv("textStyle"),A=this.getFromEnv("baseTextStyle"),T=t.timeMarker||[],k=Object.assign({},O,w.defaultStyle.text,A);for(a=0,s=T.length;a1&&(e=l[i].markerDim[r.markerDimIndex],this.addGraphicalElement({el:"text",attr:{x:e.x+e.width/2,y:e.y+e.height/2,text:o,opacity:n?u[i]["text:hover"].opacity:u[i].text.opacity},container:{label:"timeMarker"},css:n?u[i]["text:hover"]:u[i].text,id:"time-instance-marker-text-"+i+a,component:this,label:"text"},!0))},n.getType=function(){return"timeMarker"},n.getName=function(){return"timeInstanceMarker"},t}(i.SmartRenderer);t.default=f},812:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(813));t.default=function(e){e.config.yConfigs.forEach(function(t){var n=t.scale;e.config.enableReferenceLine&&Array.isArray(t.referenceline)&&t.referenceline.forEach(function(r){var i=e.attachChild(o.default,"referenceLine");i.addEventListener("fc-mouseover",i.hoverInHandler),i.addEventListener("fc-mousemove",i.moveHandler),i.addEventListener("fc-mouseout",i.hoverOutHandler),i.addEventListener("fc-click",i.clickHandler),i.configure({yScale:n,direction:"left"===t.align?"right":"left",formatterFn:t.formatterFn,prefix:t.formatLabelPrefix,suffix:t.formatLabelSuffix,referenceLine:r})})})}},813:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=n(218),l=r(n(777)),c="L",u="h",d=function(e){return e.toString()},h=function(e){function t(){var t;t=e.call(this)||this;var n,r,i=(0,o.default)(t);return i.hoverInHandler=function(e){e.stopPropagation(),i.setData({isHovered:!0},!0),r=i.config,(n=i.getFromEnv("chart")).fireChartInstanceEvent("referenceLineRollOver",{label:r.label,value:r.value,valueFormatted:r.formattedMakerText})},i.moveHandler=function(e){e.stopPropagation()},i.hoverOutHandler=function(e){e.stopPropagation(),i.setData({isHovered:!1},!0),n.fireChartInstanceEvent("referenceLineRollOut",{label:r.label,value:r.value,valueFormatted:r.formattedMakerText})},i.clickHandler=function(e){e.stopPropagation(),n.fireChartInstanceEvent("referenceLineClick",{label:r.label,value:r.value,valueFormatted:r.formattedMakerText})},t}(0,i.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={text:{fill:"#5F5F5F","vertical-align":"top",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"},marker:{fill:"#B70000",stroke:"#B70000","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":"1"}},this.config.isHovered=!1,this.config.formatterFn=d,this.config.direction="right"},n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,n=this.getFromEnv("getStyleDef");if(e.referenceLine){var r=e.referenceLine||{};r.style?(t.markerStyle=n(r.style.marker||{}),t.textStyle=n(r.style.text||{})):(t.markerStyle={},t.textStyle={}),t.label=(0,s.pluck)(r.label,""),t.value=(0,s.pluckNumber)(r.value,0)}e.yScale&&(t.yScale=e.yScale),e.formatterFn&&(t.formatterFn=e.formatterFn),e.prefix&&(t.prefix=e.prefix),e.suffix&&(t.suffix=e.suffix),e.direction&&(t.direction=e.direction),null!=e.isHovered&&(t.isHovered=e.isHovered),t.formattedValue=t.formatterFn({value:t.value,type:"referenceline",prefix:t.prefix,suffix:t.suffix})},n.getPathArr=function(){var e,t=this.config,n=t.direction,r=this.getLinkedParent().config,o=t.yScale,i=o.getDomain(),a=t.value,s=[];if((0,l.default)(i[0])&&(0,l.default)(i[1])&&a>=i[0]&&a<=i[1])switch(e=o.getRangeValue(a),n){case"left":s=["M",r.canvasLeft+r.canvasWidth-r.borderConfig.rightBorder,e,"h",-r.canvasWidth];break;case"top":case"bottom":s=["M",e,r.canvasTop,"v",r.canvasHeight-r.borderConfig.bottomBorder];break;case"right":default:s=["M",r.canvasLeft+r.borderConfig.leftBorder,e,"h",r.canvasWidth]}return s},n.getLabelsProps=function(e,t){var n=this.config,r=n.direction,o={isValidLabel:!1};if(e.length&&n.label)switch(o.isValidLabel=!0,r){case"top":o.x=e[1],o.y=e[2],o.textAnchor="start";break;case"bottom":o.x=e[1],o.y=e[4],o.textAnchor="start";break;case"left":o.x=e[1]+e[4]+3,o.y=e[2]+t.borderpadding,o.textAnchor="start";break;case"right":default:o.x=e[1]+e[4]-t.borderpadding-1,o.y=e[2]+t.borderpadding,o.textAnchor="end"}return o},n.getBulbPoints=function(e){var t=this.config.direction,n={};if(e)switch(t){case"left":n.cx=e[1]+e[4]-3,n.cy=e[2];break;case"right":default:n.cx=e[1]+e[4]+3,n.cy=e[2]}return n},n.getTagProps=function(e,t,n){var r,o,i,a,s=this.config,l=s.value,d=s.yScale,h=s.direction,p=s.formattedValue,f=this.getFromEnv("smartLabel"),g=this.getLinkedParent().config,m=g.canvasLeft,v=g.canvasWidth,y=g.borderConfig.leftBorder,b=m+v,C={},w={value:p};switch(o=d.getRangeValue(l),f.setStyle({fontFamily:n["font-family"],fontWeight:n["font-weight"],fontSize:n["font-size"],fontStyle:n["font-style"]}),i=(r=f.getSmartText(p)).width+2*e.borderpadding,h){case"left":a=["M",b,o,c,b+5,o,c,b+10,o-r.height/2-2*t.marker.borderpadding,u,i,"v",r.height+4*t.marker.borderpadding,u,-i,c,b+5,o,"z"],C.x=b+10+i/2,C.y=o;break;case"right":default:a=["M",m+y,o,c,m-5,o,c,m-10,o-r.height/2-2*t.marker.borderpadding,u,-i,"v",r.height+4*t.marker.borderpadding,u,i,c,m-5,o,"z"],C.x=m-10-i/2,C.y=o}return w.value=p,w.tagPath=a,w.tagTextPosition=C,w},n.draw=function(){var e,t,n,r,o,i,a,l,c,u,d,h,p=this.config,f=p.defaultStyle,g=p.textStyle,m=p.markerStyle,v=p.label,y=p.value,b=p.isHovered,C=this.getFromEnv("baseTextStyle");this.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:this,label:"refLine",attr:{name:"reference-line-thermo"},id:"thermo"},!0),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"refLine"},component:this,label:"refLine-thermo-hover-group",attr:{name:"reference-line-hover-elem-group"},id:"thermo"},!0),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"refLine"},component:this,label:"refLine-thermo-group",attr:{name:"reference-line-group"},id:"thermo"},!0),Object.assign(f.text,C),e=(0,s.extend2)((0,s.extend2)({},f.text),g),t=(0,s.extend2)((0,s.extend2)({},f.marker),m),r=(0,s.extend2)({},t),a=this.getPathArr(),l=this.getLabelsProps(a,t),c=this.getBulbPoints(a),a.length&&(this.addGraphicalElement({el:"path",attr:{path:a,stroke:t.stroke||t.fill,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["stroke-opacity"],"stroke-width":t["stroke-width"],"stroke-linecap":t["stroke-linecap"],opacity:t.opacity*(b?1:.4),"stroke-dasharray":t["stroke-dasharray"]||"none"},container:{label:"refLine-thermo-group"},component:this,label:"line"},!0),r["stroke-width"]=b?t["stroke-width"]||1:0,r.stroke=m&&m.stroke||"#595959",this.addGraphicalElement({el:"circle",attr:{cx:c.cx,cy:c.cy,r:3},container:{label:"refLine-thermo-group"},css:r,component:this,label:"anchor"}),p.formattedMakerText=p.formatterFn({value:y,type:"referenceline",prefix:p.prefix,suffix:p.suffix}),b&&(n=(0,s.extend2)((0,s.extend2)((0,s.extend2)({},f),{text:{fill:"#f3f3f3"}}),{text:g,marker:m}),l.isValidLabel&&this.addGraphicalElement({el:"text",attr:{text:v,x:l.x,y:l.y-t.borderpadding*("top"===e["vertical-align"]?-1:1),opacity:e.opacity,"text-anchor":l.textAnchor,"text-bound":[t.fill,t.fill,t.borderthickness,t.borderpadding,t.borderradius,t.borderdash,.2]},css:e,container:{label:"refLine-thermo-hover-group"},component:this,label:"label"},!0),d=(u=this.getTagProps(t,n,e)).tagPath,h=u.tagTextPosition,!(o=(0,s.extend2)({},n.marker)).stroke&&(o.stroke="none"),this.addGraphicalElement({el:"path",attr:{path:d},container:{label:"refLine-thermo-hover-group"},css:o,component:this,label:"tag"},!0),!(i=(0,s.extend2)({},n.text))["text-anchor"]&&(i["text-anchor"]="middle"),i["vertical-align"]="middle",this.addGraphicalElement({el:"text",attr:{text:p.formattedValue,x:h.x,y:h.y},css:i,container:{label:"refLine-thermo-hover-group"},component:this,label:"tag-text"},!0)))},t}(a.SmartRenderer);t.default=h},814:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(815)),i=n(218),a=function(e){return void 0===e?void 0:1};t.default=function(e){e.config.yConfigs.forEach(function(t){var n=t.scale,r=e.getFromEnv("chart-attrib");e.config.enableReferenceZone&&Array.isArray(t.referencezone)&&t.referencezone.forEach(function(s){if(a(s.valuemin)&&a(s.valuemax)){var l=e.attachChild(o.default,"referenceZone");l.addEventListener("fc-mouseover",l.hoverInHandler),l.addEventListener("fc-mousemove",l.moveHandler),l.addEventListener("fc-mouseout",l.hoverOutHandler),l.addEventListener("fc-click",l.clickHandler),l.configure({yScale:n,direction:"left"===t.align?"right":"left",formatterFn:t.formatterFn,prefix:t.formatLabelPrefix,suffix:t.formatLabelSuffix,referenceLine:s,extStyle:s.style||{},yAxisAlign:t.align,showTextOutline:(0,i.pluckNumber)(r.textoutline,0)}),e.addExtEventListener("referenceZoneHovered",l.referenceZoneHoveredHandler,l),l.addExtEventListener("canvasHovered",l.canvasHoveredHandler,e.getFromEnv("mouseTracker"))}})})}},815:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=n(218),l="M",c="h",u="v",d="Z",h="L",p=function(e,t){return e>=t[1]&&e<=t[0]},f={fill:"#f76260",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":1},g={stroke:"#f76260","fill-opacity":.2,fill:"#f76260","stroke-opacity":1,"stroke-width":0},m={stroke:"#f76260","fill-opacity":.3,fill:"#f76260","stroke-opacity":1,"stroke-width":1},v={"stroke-width":0,stroke:"#f76260",fill:"#f76260","fill-opacity":1},y={"stroke-width":1,stroke:"#f76260",fill:"#f76260","fill-opacity":.5},b={fill:"#f76260",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1",borderthickness:0,borderpadding:2,borderradius:0,borderdash:"none","stroke-width":1},C={fill:"none",stroke:"#f76260","fill-opacity":"1","stroke-opacity":"1",opacity:"1","stroke-width":1},w={fill:"#5F5F5F","vertical-align":"top",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"},x={fill:"#f3f3f3","vertical-align":"middle","text-anchor":"middle",opacity:"1","fill-opacity":"1","stroke-opacity":"1","font-size":"11px","font-style":"normal"},_=function(e){function t(){var t;t=e.call(this)||this;var n,r,i,a,s=(0,o.default)(t),l=s.config;return s.hoverInHandler=function(e){e.stopPropagation(),n=s.getFromEnv("chart"),r=l.yScale,s.setState("hovered",!0),s.asyncDraw(),s.fireEvent("referenceZoneHovered",{hovered:!0,scale:l.yScale,range:{minValue:r.getRangeValue(l.minValue),maxValue:r.getRangeValue(l.maxValue)}}),i=l.formatterFn({value:l.maxValue,type:"referenceline",prefix:l.prefix,suffix:l.suffix}),a=l.formatterFn({value:l.minValue,type:"referenceline",prefix:l.prefix,suffix:l.suffix}),n.fireChartInstanceEvent("referenceZoneRollOver",{label:l.label,valueMax:l.maxValue,valueMin:l.minValue,valueMaxFormatted:i,valueMinFormatted:a})},s.moveHandler=function(e){e.stopPropagation()},s.hoverOutHandler=function(e){e.stopPropagation(),s.setState("hovered",!1),s.asyncDraw(),s.fireEvent("referenceZoneHovered",{hovered:!1,scale:l.yScale,range:{minValue:r.getRangeValue(l.minValue),maxValue:r.getRangeValue(l.maxValue)}}),n.fireChartInstanceEvent("referenceZoneRollOut",{label:l.label,valueMax:l.maxValue,valueMin:l.minValue,valueMaxFormatted:i,valueMinFormatted:a})},s.clickHandler=function(e){e.stopPropagation(),n.fireChartInstanceEvent("referenceZoneClick",{label:l.label,valueMax:l.maxValue,valueMin:l.minValue,valueMaxFormatted:i,valueMinFormatted:a})},s.referenceZoneHoveredHandler=function(e){var t=e.data;s.getLinkedParent().highlightDataPoints(t.hovered,t.scale,t.range)},s.canvasHoveredHandler=function(e){var t=s.getLinkedParent(),n=s.config,r=n.yScale,o=n.minValue,i=n.maxValue;s.getState("hovered")&&(s.setState("hovered",!1),s.asyncDraw(),t.highlightDataPoints(!1,r,{minValue:r.getRangeValue(o),maxValue:r.getRangeValue(i)}))},t}(0,i.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.extStyle={}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n,r,o=this.config,i=t.referenceLine||{};if(n=(0,s.pluckNumber)(i.valuemin,0),r=(0,s.pluckNumber)(i.valuemax,0),o.label=(0,s.pluck)(i.label,""),n>r){var a=[r,n];n=a[0],r=a[1]}for(var l in o.minValue=n,o.maxValue=r,t)t.hasOwnProperty(l)&&(this.config[l]=t[l]);o.formattedMinValue=o.formatterFn({value:o.minValue,type:"referenceline",prefix:o.prefix,suffix:o.suffix}),o.formattedMaxValue=o.formatterFn({value:o.maxValue,type:"referenceline",prefix:o.prefix,suffix:o.suffix}),this.createStyleDefinition()},n.createStyleDefinition=function(){var e=this.config,t=e.extStyle,n=this.getFromEnv("getStyleDef"),r=this.getFromEnv("baseTextStyle"),o=n(t.marker),i=n(t["marker:hover"]),a=n(t["marker-zone"]),s=n(t["marker-zone:hover"]),l=n(t["marker-tag"]),c=n(t.text),u=n(t["marker-text"]),d=n(t["marker-notch"]),h=n(t["marker-notch:hover"]),p=n(t["marker-notch-connector"]),_=n(t["marker-notch-connector:hover"]);e.styleDefinition={marker:Object.assign({},f,o),"marker:hover":Object.assign({},f,i),"marker-zone":Object.assign({},g,o,a),"marker-zone:hover":Object.assign({},o,a,m,i,s),"marker-tag":Object.assign({},b,o,l),text:Object.assign({},r,w,c),"marker-text":Object.assign({},r,x,c,u),"marker-notch":Object.assign({},v,o,d),"marker-notch:hover":Object.assign({},o,d,y,i,h),"marker-notch-connector":Object.assign({},C,o,p),"marker-notch-connector:hover":Object.assign({},C,o,p,i,_)}},n.getMarkerPath=function(){var e,t,n,r=this.config,o=r.direction,i=this.getLinkedParent().config,a=i.canvasLeft,s=i.canvasWidth,h=i.canvasTop,p=i.canvasHeight,f=a+s,g=h+p,m=i.borderConfig.rightBorder,v=i.borderConfig.leftBorder,y=i.borderConfig.topBorder,b=i.borderConfig.bottomBorder,C=r.yScale,w=r.minValue,x=r.maxValue,_=[],S=[];switch(n=(e=C.getRangeValue(w))-(t=C.getRangeValue(x)),o){case"left":_=[l,f-m,t,c,-s,u,n,c,s,d],S=[l,f-m-s,t,u,n];break;case"right":_=[l,a+v,t,c,s,u,n,c,-s,d],S=[l,a+v+s,t,u,n];break;case"top":_=[l,e,g-b,u,-p,c,n,u,p,d],S=[l,e,g-b-p,c,n];break;case"bottom":_=[l,e,h+y,u,p,c,n,u,-p,d],S=[l,e,h+y+p,c,n]}return{connectorPath:S,zonePath:_}},n.getLabelsProps=function(e,t){var n=t.marker,r=t.text,o=this.config,i=this.getLinkedParent().config,a=o.direction,s={isValidLabel:!1};if(e.length&&o.label){switch(s.isValidLabel=!0,a){case"top":case"bottom":s.x=e[1],s.y=e[2]+e[4],s.textAnchor="start";break;case"left":s.x=e[1]+e[4]+3,s.y=e[2]+e[6]+n.borderpadding,s.textAnchor="start";break;case"right":s.x=e[1]+e[4]-n.borderpadding-1,s.y=e[2]+e[6]+n.borderpadding,s.textAnchor="end"}i.canvasBGHeight=+(f=l)[0]&&+p<=+f[1]&&("vertical"===y&&0===d.config.values[u].text.length||b.push(["M","function"==typeof r?r.call(s,c[u]):r,"function"==typeof o?o.call(s,c[u]):o,a,i]));return b},n.draw=function(){var e=this,t=e.config,n=t.styleGridLines,r=e.getPathArr(),o=(0,a.extend2)((0,a.extend2)({},t.defaultStyle),n&&t.style);o[l]&&(o[l]="string"==typeof o[l]?o[l].split(" ").filter(function(e){return s.test(e)}).map(function(e){return+e}):o[l]),e.addGraphicalElement({el:"group",container:{id:"strato",label:"strato",isParent:!0},component:e,label:"gridLine",attr:{name:"grid-line-group"},id:"gridLine"}),r.forEach(function(t,n){e.addGraphicalElement({el:"path",attr:{path:t},css:o,container:{label:"gridLine"},id:"grid-line-"+n,component:e,label:"line"})})},t}(i.SmartRenderer);t.default=c},818:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t;e.config.enableMouseTracking&&(t=e.attachChild(o.default,"mouseTracker"),e.addToEnv("mouseTracker",t),t.config.mouseTrackerEventAdded||(t.addEvents(),t.config.mouseTrackerEventAdded=!0))};var o=r(n(819))},819:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=r(n(526)),s=n(218),l=function(e){return function(){e.deactivate(),e.fireEvent("canvasHovered",{hoveredInfo:{},e:{}}),clearTimeout(e.domainValidationTimer),e.domainValidationTimer=setTimeout(function(){e.activate()},100)}},c=function(e){function t(){var t,n;return(t=e.call(this)||this).handler=(n=(0,o.default)(t),function(e){n.mouseEvtHandler(e)}),t.eventsList.push("fc-mouseout"),t.active=!0,t}(0,i.default)(t,e);var n=t.prototype;return n.mouseEvtHandler=function(e){if(this.active){var t,n,r,o,i,a,l,c,u=e.originalEvent,d=this.getLinkedParent(),h=d.getChild(void 0,"dataset")||[],p=d.getChild(void 0,"timeInstanceMarker")[0],f=d.getChild(void 0,"timeSpanMinMarker")[0],g=d.getChild(void 0,"timeSpanFullMarker")[0],m=h.length;if(m)if(n=(t=(0,s.getMouseCoordinate)(this.getFromEnv("chart-container"),u,this.getFromEnv("chart"))).chartX,r=t.chartY,(a=p.getHoveredMarker(n,r))&&a.hovered)this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r});else if(a&&void 0!==a.previouslyHoveredIndex&&(this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r}),p.config.previouslyHoveredIndex=void 0),(a=f.getHoveredMarker(n,r))&&a.hovered)this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r});else{for(a&&void 0!==a.previouslyHoveredIndex&&(this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r}),f.config.previouslyHoveredIndex=void 0);m--;)(i=(o=h[m])._getHoveredPlot&&o._getHoveredPlot(n,r))&&i.hovered&&(l=i,c=m);if(!l){if((a=g.getHoveredMarker(n,r))&&a.hovered)return void this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r});a&&void 0!==a.previouslyHoveredIndex&&(this.fireEvent("canvasHovered",{hoveredInfo:a,e:e,i:m,chartX:n,chartY:r}),g.config.previouslyHoveredIndex=void 0)}this.fireEvent("canvasHovered",{hoveredInfo:l||i,e:e,i:c,chartX:n,chartY:r})}}},n.addEvents=function(){var e,t=this.getLinkedParent(),n=this.eventsList;for(e in this._removeListners(),n)t.addEventListener(n[e],this.handler);this.config.onDomainValidated=l(this),this.addExtEventListener("focusLimitChanged",this.config.onDomainValidated,this.getFromEnv("chart"))},n._removeListners=function(){var e,t=this.getLinkedParent(),n=this.eventsList;for(e in n)t.removeEventListener(n[e],this.handler);this.removeExtEventListener("domainValidated",this.config.onDomainValidated,this.getFromEnv("chart"))},n.remove=function(){var t;this._removeListners();for(var n=arguments.length,r=new Array(n),o=0;o"+t+"
"};t.createDivString=l;var c=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.configure=function(){e.prototype.configure.call(this);var t,n=this.config,r=this.getFromEnv("chartConfig"),o=this.getFromEnv("mouseTracker");n.showTooltip=r.showTooltip,!n.eventAdded&&this.addExtEventListener("canvasHovered",(t=this,n.eventAdded=!0,function(){switch(arguments[1].hoveredInfo&&arguments[1].hoveredInfo.component&&arguments[1].hoveredInfo.component.getType()){case"timeMarker":arguments[1].e.type===a&&t._triggerMouseActions({data:{hoveredInfo:{},e:{}}}),t._triggerMarkerMouseActions.apply(t,arguments);break;default:t._triggerMouseActions.apply(t,arguments)}}),o)},n.mouseoutHandler=function(e,t,n,r){var o=this.config;r&&r.config&&(r.setHoverOutEffect([n]),r._firePlotEvent&&r._firePlotEvent("fc-mouseout",n,e)),o.showTooltip&&this.getFromEnv("toolTipController").hide(o.currentToolTip),delete o._lastDatasetIndex,delete o._lastPointIndex},n._triggerMarkerMouseActions=function(e){var t,n,r,o,i,a=e.data,s=a.e,c=this.getFromEnv("toolTipController"),u=this.getFromEnv("tooltipStyle"),d=a.chartX,h=a.chartY,p=this.getLinkedParent(),f=p.getTranslation(),g=a.hoveredInfo,m=g.hovered,v=this.config,y=v.showTooltip,b=g.component,C=g.pointObj.hoveredMarkerDim||{},w="",x=g.hovered&&b.getToolTextConfiguration(C.toolTextArr,g.pointObj.type),_=p.isWithinCanvas(d-(C.thresholdX||0),h-(C.thresholdY||0));if(m&&_){var S=x.header,M=x.body;if(w=l(u.headerStyleString,S)+l(u.bodyStyleString,M),t=d,n=C.y-x.dimensions.height+f.y,y&&(v.currentToolTip=c.drawAt(t,n,w,v.currentToolTip,p)),b.setHoverInEffect(g.pointIndex,g.pointObj.index,!1),i=(r=this.getMakerMouseEvents(s,g.pointIndex,g.pointObj.index)).length)for(v._lastMarkerIndex=g.pointIndex,v._lastDomainIndex=g.pointObj.index,o=0;o=0,x=h.getLinkedParent(),_=x.getChild(void 0,"dataset"),S=h.config,M=S._lastDatasetIndex,E=S._lastPointIndex,O=x.getTranslation(),A="",T="",k="",D=C&&C.pointIndex,P=x.isWithinCanvas(y,b);if(C){if(w&&(C.datasetIndex=m,d=h.getMouseEvents(v,C.datasetIndex,D,C.component.getName(),C.markerObj)),(!P||(!w||d&&d.fireOut)&&void 0!==M)&&(d&&!d.events.length?S.mouseoutTimer=setTimeout(function(){h.mouseoutHandler(v,M,E,S._lastComponentHovered)},20):(h.mouseoutHandler(v,M,E,S._lastComponentHovered),clearTimeout(S.mouseoutTimer))),P&&_.length&&S.showTooltip){if(a=C.component.getFromEnv("xScale").getRange(),_.forEach(function(e,t){"visible"===(u=e.config).visibility&&(o=e._getTooltext(w,m===t,e._getHoveredBin()),k+=o,u.dataInfo[e._getHoveredBin()]&&o&&(i=u.dataInfo[e._getHoveredBin()],c=e))}),c){var N=c._getDateForToolText(c._getHoveredBin());A=N.header,T=N.body}k=l(g.headerStyleString,A)+l(g.bodyStyleString,T+k),(t=w?C.pointObj:i)&&""!==k&&t.endXPosition>a[0]&&t.xMath.abs(w.deltaX)?(n="vertical",l=i(w.originalEvent.deltaMode,w.deltaY)):(n="horizontal",l=i(w.originalEvent.deltaMode,w.deltaX)),"vertical"===n){c=(0,r.getMouseCoordinate)(e.getFromEnv("chart-container"),t.originalEvent,m),d=(u=e.getTranslation())?u.x:0,b-=2*l*(p=(h=c.chartX-d)-b)/(g=p+(f=C-h)),C+=2*l*f/g;var x=(0,o.clampWithinContextRange)([b,C],v,e.getFromEnv("contextScalesX")[0]);b=x[0],C=x[1],a=l<0?"up":"down",s=l>=0?"up":"down",m.setPixelLimit([b,C],v,[a,s],{name:"canvasWheel"})}else C+=l,b+=l,s=a=l>=0?"up":"down",m.setPixelLimit([b,C],v,[a,s],{name:"canvasWheel"})}}(e)),t.wheelEventAdded=!0)};var r=n(218),o=n(823),i=function(e,t){switch(e){case WheelEvent.DOM_DELTA_LINE:return 17*t;case WheelEvent.DOM_DELTA_PAGE:return 53*t;default:return t}}},823:function(e,t,n){"use strict";t.__esModule=!0,t.isWithinMinRange=t.clampWithinContextRange=void 0,t.isWithinMinRange=function(e,t){var n=3*t.getBinMin()[2],r=t.getRangeValue(n)-t.getRangeValue(0);return e[1]-e[0]>=r},t.clampWithinContextRange=function(e,t,n){var r=n.getDomain().map(function(e){return t.getRangeValue(e)});return e[0]=Math.max(e[0],r[0]),e[1]=Math.min(e[1],r[1]),e}},824:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.config;t.enableInteraction&&!t.dbTapEventAdded&&(e.addEventListener("fc-dbclick",function(e){return function(t){var n,i=e.getLinkedParent(),a=e.config.xConfigs[0].scale,s=a.getRange(),l=s[0],c=s[1];l+=o,c-=o,n=(0,r.clampWithinContextRange)([l,c],a,e.getFromEnv("contextScalesX")[0]),i.setPixelLimit([].concat(n),a,["up","down"],{name:"canvasDblTap"})}}(e)),t.dbTapEventAdded=!0)};var r=n(823),o=20},825:function(e,t,n){"use strict";var r;t.__esModule=!0,t.default=function(e){var t=e.config;t.enableInteraction&&!t.swipeEventAdded&&(e.addEventListener("fc-dragstart",function(e){return function(){var t=e.getFromEnv("chart"),n=t.getFocusLimit();r=0,e.getChildren("mouseTracker")[0].deactivate(),t.fireChartInstanceEvent("canvasDragStart",{start:+n[0],end:+n[1]})}}(e)),e.addEventListener("fc-dragmove",function(e){return function(t){var n,o=e.getLinkedParent(),i=e.config.xConfigs[0].scale,a=i.getRange(),s=a[0],l=a[1],c=t.originalEvent.data,u=c[0]-r;l-=u,s-=u,n=u<0?"up":"down",o.setPixelLimit([s,l],i,[n,n],{name:"canvasDrag"})&&(r=c[0])}}(e)),e.addEventListener("fc-dragend",function(e){return function(){var t=e.getFromEnv("chart"),n=t.getFocusLimit();e.getChildren("mouseTracker")[0].activate(),t.fireChartInstanceEvent("canvasDragEnd",{start:+n[0],end:+n[1]})}}(e)),t.swipeEventAdded=!0)}},826:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.config;t.enableInteraction&&!t.pinchEventAdded&&(e.addEventListener("fc-pinchstart",a),e.addEventListener("fc-pinchmove",function(e){return function(t){var n,a=e.getLinkedParent(),s=e.config.xConfigs[0].scale,l=s.getRange(),c=l[0],u=l[1],d=t.originalEvent.data.distanceX,h=d-r,p=(0,o.getMouseCoordinate)(e.getFromEnv("chart-container"),t.originalEvent,a),f=e.getTranslation(),g=f?f.x:0,m=p.chartX-g,v=m-c,y=u-m,b=v+y;r=d,c+=2*h*v/b,u-=2*h*y/b,n=(0,i.clampWithinContextRange)([c,u],s,e.getFromEnv("contextScalesX")[0]),a.setPixelLimit([].concat(n),s,["down","up"])}}(e)),t.pinchEventAdded=!0)};var r,o=n(218),i=n(823),a=function(e){r=e.originalEvent.data.distanceX}},827:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(828)),i=r(n(829)),a=r(n(842)),s=r(n(851)),l=r(n(853)),c=r(n(855)),u=r(n(858)),d=r(n(859)),h=n(218),p=r(n(860)),f=r(n(862)),g=r(n(438)),m=function(e){return e.split(g.default)[0]},v=function(e){return e.split(g.default).slice(1).join(g.default)},y=function(e){return e?"visible":"hidden"},b=function(e){return"ohlc"===e||"candlestick"===e},C=function(e){return"column-range"===e||"area-range"===e},w=function(e){return"avg"===e?"average":e},x=function(e){var t,n={};return"string"==typeof e?(t=e.split(g.default),w(t[t.length-1])):(e.forEach(function(e){e&&(t=e.split(g.default),n[t[0].trim()]=w(t[1].trim()))}),n)},_=function(e){var t,n;return e.stack||!e.tableInfo.filterItem?((n={})[e.value[0]]=m(e.value[0]),n):((t={})[e.value[0]]=e.tableInfo.filterItem,t)};t.default=function(e){var t=e.getFromEnv("chart"),n=e.getFromEnv("legendMap"),r=e.config,w=e.getFromEnv("dataSource").plotconfig||{},S=e.getFromEnv("ordinalScale"),M=r.isContext,E=r.multiSeriesDatasetMap,O=r.enableMarkers,A=M?t.config.contextAxesX:t.config.focusAxesX,T=M?t.config.contextAxesY:t.config.focusAxesY,k=e.getFromEnv("prediction"),D=k?e.getFromEnv("baseTimeConverter").parse(k.date):h.UNDEF;k.dateMs=k.enabled?D?D.getTime():Date.now():h.UNDEF,M&&r.plotConfigs.forEach(function(e){var t=e.plots,n=t.filter(function(e){return"column"===e.plottype}).length>1?"area":null;t.forEach(function(e){C(e.plottype)?(e.value=e.high,e.isRange=!0,e.plottype="string"==typeof e.typeinnavigator&&e.typeinnavigator||"line"):b(e.plottype)?(e.value=e.close||e.low||e.high||e.open||[],e.plottype="string"==typeof e.typeinnavigator&&e.typeinnavigator||"line"):"column"===e.plottype&&(e.plottype=e.typeinnavigator||n||(e.value.length>1?"area":"line"))})}),r.plotConfigs.forEach(function(t,D){var P=A[t.x],N=T[t.y],L=P.binDecider,R=P.scale,F=N.scale,I=N.plotstyle||{},z=t.plots.filter(function(e){return"column"===e.plottype}),B=z.length,j=z.map(_),V=0;t.plots.forEach(function(t,_){var A,T,z,W,H,G,U,q,Y=t.tableInfo,X=Y.table,K=Y.filterItem,$=N.plot[t.plotInAxisIndex],Z=$.style||{},J=$.connectnulldata,Q=X.getData().data,ee=X,te=P.timeFormatterFn,ne=[$.value],re={};if($.group&&(re[$.group]=K),A=(0,h.extend2)((0,h.extend2)({},I),Z),!M&&(b(t.plottype)||C(t.plottype))){var oe=t.close||t.open||t.high||t.low;(oe.length>1||K)&&(t.plottype="line",t.value=oe)}if(W=t.plottype,T=w[W]||{},z=w.generic||{},U=function(e){switch(W){case"column":return a.default;case"candlestick":return s.default;case"column-range":return p.default;case"area-range":return f.default;case"ohlc":return l.default;default:return i.default}}(),"column"===W&&(H=V++,G=B),b(W)){var ie=(0,o.default)([t.open||[t.open],t.high||[t.high],t.low||[t.low],t.close||[t.close]].filter(function(e){return!!e})),ae=$.open,se=$.high,le=$.low,ce=$.close;(ae||se||le||ce)&&(ne[0]={open:ae,high:se,low:le,close:ce}),ie.forEach(function(n,r){var o=e.attachChild(U,"dataset",""+t.value+W+r+_+D);o.addToEnv("binDecider",L),o.addToEnv("xScale",R),o.addToEnv("yScale",F),o.configure({data:Q,scaleX:R,scaleY:F,formatterFn:N.formatterFn,timeFormatterFn:te,yAxisAlign:(0,h.pluck)(N.align,"left"),styleConfig:A,plotCosmetics:T,genericCosmetics:z,aggregation:x(n),prefix:N.formatLabelPrefix,suffix:N.formatLabelSuffix,indices:[ee.indexOf(Y.position)].concat(n.map(function(e){return ee.indexOf(e)})),enableMarkers:O,primaryColor:!0,type:W,series:t.value,measures:ne,calculateFromContext:M,prediction:k,useNullStyles:!M})})}else if(C(W)){var ue=(0,o.default)([t.high||[t.high],t.low||[t.low]].filter(function(e){return!!e})),de=$.high,he=$.low;(de||he)&&(ne[0]={high:de,low:he}),t.name?(q=n[t.name]&&n[t.name].visibility)===h.UNDEF&&(q=!0):q=!0,ue.forEach(function(n,r){var o=e.attachChild(U,"dataset",""+t.value+W+r+_+D);o.addToEnv("binDecider",L),o.addToEnv("xScale",R),o.addToEnv("yScale",F),o.configure({data:Q,scaleX:R,scaleY:F,visibility:y(q),formatterFn:N.formatterFn,timeFormatterFn:te,yAxisAlign:(0,h.pluck)(N.align,"left"),styleConfig:A,plotCosmetics:T,genericCosmetics:z,aggregation:x(n),prefix:N.formatLabelPrefix,suffix:N.formatLabelSuffix,connectNullData:J,indices:[ee.indexOf(Y.position)].concat(n.map(function(e){return ee.indexOf(e)})),enableMarkers:O,primaryColor:t.name?S.getRangeValue(t.name):S.getRangeValue(t.high[0]+g.default+t.low[0]),type:W,series:t.value,measures:ne,calculateFromContext:M,prediction:k,useNullStyles:!M})})}else if(!t.stack||"area"!==W&&"smooth-area"!==W&&"step-area"!==W&&"column"!==W){var pe;if(t.isRange){var fe,ge=(0,o.default)([t.high||[t.high],t.low||[t.low]].filter(function(e){return!!e}));pe=""+v(t.high[0])+g.default+v(t.low[0])+g.default+"mean",ge.forEach(function(e){fe=e.map(function(e){return ee.indexOf(e)}),ee.addColumns({type:"number",name:pe,calcFn:function(e){return(e[fe[0]]+e[fe[1]])/2}})})}t.value.forEach(function(o,i){var a,s,l,c=t.stack?m(o):t.isRange?t.name?t.name:t.high[0]+g.default+t.low[0]:K||m(o),u=e.attachChild(U,"dataset",c+W+i+_+D);(q=n[c]&&n[c].visibility)===h.UNDEF&&(q=!0),"column"===W&&(-1!==(s=(a=j.filter(function(e){return n[Object.values(e)[0]].visibility})).findIndex(function(e){var t=Object.keys(e)[0];return K?t===o&&e[t]===K:t===o}))?l=a.length:s=h.UNDEF),t.stack&&(re[t.stack]=c),u.addToEnv("binDecider",L),u.addToEnv("xScale",R),u.addToEnv("yScale",F),u.configure({data:Q,scaleX:R,scaleY:F,timeFormatterFn:te,legendInteracted:r.legendInteracted,groupIndex:s,totalGroups:l,visibility:y(q),yAxisAlign:(0,h.pluck)(N.align,"left"),formatterFn:N.formatterFn,prefix:N.formatLabelPrefix,suffix:N.formatLabelSuffix,styleConfig:A,aggregation:x(o),plotCosmetics:T,genericCosmetics:z,connectNullData:J,indices:[ee.indexOf(Y.position),t.isRange?ee.indexOf(pe):ee.indexOf(o)],primaryColor:S.getRangeValue(c),type:W,series:c,enableMarkers:O,measures:ne,calculateFromContext:M,seriesInfo:Object.assign({},re),prediction:k,useNullStyles:!M})})}else{var me=ee.indexOf(Y.position),ve=""+v(t.value[0])+g.default+"sum",ye=(new c.default).setValueAccessor(function(e,t){return(n[m(t)]||{}).visibility?e[ee.indexOf(t)]:0}).setKeysAccessor(function(){return t.value.filter(function(e){return ee.indexOf(e)>=0})}).setOffset("log"===F.getType()?d.default:u.default);ee.addColumns({name:ve,type:"number",calcFn:function(e,r){return t.value.reduce(function(t,o){return(n[m(o)]||{}).visibility?t+e[r[o]]:t},0)}});var be=ye.generate(ee.getData().data),Ce=be.length;be.forEach(function(t,o){var i=e.attachChild(U,"dataset",t.key+W+o+_+D),a=m(t.key),s=t.map(function(e){return[e.data[me],e[0],e[1],e.data[ee.indexOf(ve)]]});(q=n[a]&&n[a].visibility)===h.UNDEF&&(q=!0),$.stack&&(re[$.stack]=a),i.addToEnv("binDecider",L),i.addToEnv("xScale",R),i.addToEnv("yScale",F),K?E[""+K+g.default+t.key]=i:E[t.key]=i,i.configure({data:s,datasetIndex:o,seriesLength:Ce,aggregation:x(t.key),visibility:y(q),scaleX:R,scaleY:F,timeFormatterFn:te,legendInteracted:r.legendInteracted,groupIndex:H,yAxisAlign:(0,h.pluck)(N.align,"left"),totalGroups:G,formatterFn:N.formatterFn,prefix:N.formatLabelPrefix,suffix:N.formatLabelSuffix,styleConfig:A,plotCosmetics:T,genericCosmetics:z,connectNullData:J,indices:[0,2,1,3],primaryColor:S.getRangeValue(a),type:W,series:a,enableMarkers:O,measures:ne,calculateFromContext:M,seriesInfo:Object.assign({},re),prediction:k,useNullStyles:!M})})}})})}},829:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=r(n(232)),a=r(n(767)),s=n(218),l=r(n(830)),c=n(226),u=n(222),d=r(n(777)),h=r(n(836)),p=r(n(839)),f=r(n(840)),g=r(n(838)),m=r(n(841)),v=r(n(285)),y=r(n(842)),b=r(n(850));function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w(e){for(var t=1;t=e.maxValue&&n.push(r)}),n},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-stroke"]="9194CC",t["default-fill"]="9194CC",t["default-anchor-stroke"]=(0,u.convertColor)("#ffffff"),t.type="line",t.plotStyle={},t.nullPlotStyle={},t.linePlotStyle={},t.nullLinePlotStyle={},t.areaPlotStyle={},t.nullAreaPlotStyle={},t.anchorStyle={},t.anchorHoverInStyle={},t.anchorHoverOutStyle={},t.anchorHighlightObj={},t.defaultLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":"none",fill:"none"},t.defaultNullLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":[10,5],fill:"none"},t.defaultLinePredictiveStyle={"stroke-opacity":1,"stroke-width":1,"stroke-dasharray":5,fill:"none"},t.defaultAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.6},t.defaultNullAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.3},t.defaultAreaPredictiveStyle={"stroke-opacity":1,opacity:.5},t.defaultAnchorStyle={"fill-opacity":1,"stroke-width":1},t.willInjectNulls=!0},n.configureAttributes=function(e){var t=this,n=this.config,r=this.getId(),o=this.getFromEnv("getStyleDef"),i=!0;if(e.hasOwnProperty("hoverIndices"))e.hovered?(n.mode="show",n.sharedAnchorIndices=e.hoverIndices):(n.mode="hide",n.hideIndices=n.lastShownIndices),n.radius=e.radius,n.isDsHovered=e.isDsHovered,n.isOtherDsHovered=e.isOtherDsHovered,n.hoverMode=!0;else{Object.entries(e).forEach(function(r){var i=r[0],a=r[1];if("primaryColor"===i){t.parsePrediction(e);var l=a,c=e.plotCosmetics,d=e.genericCosmetics,h=e.styleConfig,p=e.type,f=n.plotStyle,g=n.predictiveStyleAttributes,m=n.nullPlotStyle,v=n.linePlotStyle,y=n.predictiveStyleAttributesLine,b=n.predictiveStyleAttributesArea,C=n.nullLinePlotStyle,w=n.areaPlotStyle,x=n.nullAreaPlotStyle,S=n.anchorStyle,M=n.anchorHoverInStyle,E=n.anchorHighlightObj,O=o(d.style&&d.style.plot),T=o(d.style&&d.style["plot.null"]),k=o(d.style&&d.style["plot:hover"]),D=o(d.style&&d.style["plot:highlight"]),P=o(d.style&&d.style.line),N=o(d.style&&d.style["line.null"]),L=o(d.style&&d.style.area),R=o(d.style&&d.style["area.null"]),F=o(d.style&&d.style.anchor),I=o(d.style&&d.style["anchor:hover"]),z=o(d.style&&d.style["anchor:highlight"]),B=o(c.style&&c.style.plot),j=o(c.style&&c.style["plot.null"]),V=o(c.style&&c.style["plot.predictive"]),W=o(c.style&&c.style["plot:hover"]),H=o(c.style&&c.style["plot:highlight"]),G=o(c.style&&c.style.line),U=o(c.style&&c.style["line.null"]),q=o(c.style&&c.style["line.predictive"]),Y=o(c.style&&c.style.area),X=o(c.style&&c.style["area.null"]),K=o(c.style&&c.style["area.predictive"]),$=o(c.style&&c.style.anchor),Z=o(c.style&&c.style["anchor:hover"]),J=o(c.style&&c.style["anchor:highlight"]),Q=o(h.plot),ee=o(h["plot.null"]),te=o(h["plot.predictive"]),ne=o(h["plot:hover"]),re=o(h["plot:highlight"]),oe=o(h.line),ie=o(h["line.null"]),ae=o(h["line.predictive"]),se=o(h.area),le=o(h["area.null"]),ce=o(h["area.predictive"]),ue=o(h.anchor),de=o(h["anchor:hover"]),he=o(h["anchor:highlight"]);n.defaultLineStyle["stroke-linecap"]="round",n.defaultNullLineStyle["stroke-linecap"]=A(p)?"butt":"round",n.defaultLinePredictiveStyle["stroke-linecap"]=A(p)?"butt":"round",[v,n.defaultLineStyle,O,P,Q,B,G,oe].reduce(_),[C,n.defaultNullLineStyle,T,N,ee,j,U,ie].reduce(_),[y,te,V,q,ae].reduce(_),[w,n.defaultAreaStyle,O,L,Q,B,Y,se].reduce(_),[x,n.defaultNullAreaStyle,T,R,ee,j,X,le].reduce(_),[b,te,V,K,ce].reduce(_),[S,n.defaultAnchorStyle,O,F,Q,B,$,ue].reduce(_),f.fill=w.fill=(0,u.convertColor)((0,s.pluck)(l,n["default-fill"]),100*w["fill-opacity"]),m.fill=x.fill=(0,u.convertColor)((0,s.pluck)(x.fill,l,n["default-fill"]),100*x["fill-opacity"]),g.fill=b.fill=(0,u.convertColor)((0,s.pluck)(b.fill,l,n["default-fill"]),100*b["fill-opacity"]),v.fill="none",C.fill="none",y.fill="none",w.stroke=(0,u.convertColor)((0,s.pluck)(l,n["default-stroke"]),100*w["stroke-opacity"]),x.stroke=(0,u.convertColor)((0,s.pluck)(x.stroke,l,n["default-stroke"]),100*x["stroke-opacity"]),b.stroke=(0,u.convertColor)((0,s.pluck)(b.stroke,l,n["default-stroke"]),100*b["stroke-opacity"]),v.stroke=(0,u.convertColor)((0,s.pluck)(l,n["default-stroke"]),100*v["stroke-opacity"]),C.stroke=(0,u.convertColor)((0,s.pluck)(C.stroke,l,n["default-stroke"]),100*C["stroke-opacity"]),y.stroke=(0,u.convertColor)((0,s.pluck)(y.stroke,l,n["default-stroke"]),100*y["stroke-opacity"]),f.stroke=A(p)?w.stroke:v.stroke,m.stroke=A(p)?x.stroke:C.stroke,g.stroke=A(p)?b.stroke:y.stroke,S.fill=(0,u.convertColor)((0,s.pluck)(l,n["default-stroke"])),S.stroke=n["default-anchor-stroke"],[M,S,k,I,W,ne,Z,de].reduce(_),[E,S,D,z,H,re,J,he].reduce(_),Object.keys(Object.assign(Object.assign({},M),E)).forEach(function(e){n.anchorHoverOutStyle[e]=S[e]||""}),Object.keys(E).length||(E=n.anchorHighlightObj=(0,s.extend2)({},n.anchorHoverOutStyle)),n.connectNullData=(0,s.pluckNumber)(n.connectNullData,c.connectnulldata,d.connectnulldata,0),delete w["fill-opacity"],delete x["fill-opacity"],delete w["stroke-opacity"],delete x["stroke-opacity"],delete v["stroke-opacity"],delete C["stroke-opacity"],delete n.predictiveStyleAttributesArea["fill-opacity"],delete n.predictiveStyleAttributesArea["stroke-opacity"],delete n.predictiveStyleAttributesLine["stroke-opacity"]}else n[i]=a}),n.useNullStyles||(n.nullAreaPlotStyle=Object.assign({},n.areaPlotStyle),n.nullLinePlotStyle=Object.assign({},n.linePlotStyle)),i=(0,a.default)(n.areaPlotStyle,n.nullAreaPlotStyle)&&(0,a.default)(n.linePlotStyle,n.nullLinePlotStyle),n.connectNullData&&i?n.willInjectNulls=!1:n.willInjectNulls=!0;var l=this.getFromEnv("chart");n.limit=this._calculateLimits(),l.setYScaleLimit(n.scaleY.getId(),r,n.limit.y,n.limit.baseRequired),l.setXScaleLimit(n.scaleX.getId(),r,n.limit.x)}},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e={},t=this.config;t.predictiveStyleAttributesLine={},t.predictiveStyleAttributesArea={},t.prediction.enabled&&(Object.assign(e,t.prediction.style.plot),Object.assign(t.predictiveStyleAttributesLine,t.defaultLinePredictiveStyle,t.prediction.style.plot,t.prediction.style.line),Object.assign(t.predictiveStyleAttributesArea,t.defaultAreaPredictiveStyle,t.prediction.style.plot,t.prediction.style.area)),t.predictiveStyleAttributes=e},n.getPadding=function(){var e,t,n=this.getLinkedParent().config,r=this.config;return e=this.getValueFromPx(5.5),t=n.enableMarkers?this.getValueFromPx(r.dataMarkerPadding):0,Math.ceil(Math.max(e,t))},n._getRelevantInfo=function(){var e=this.config;return{firstTimeStamp:e.firstTimeStamp,timeStampGap:e.timeStampGap,dataInfo:e.dataInfo,fill:e.plotStyle.stroke}},n.allocatePosition=function(){var e,t,n,r,o,i,a,c,u,y,b,C,w,_,O,T,k,D,P,N=this.config,L=N.indices,R=L[0],F=L[1],I=L[2],z=L[3],B=N.seriesInfo,j=this.getFromEnv("dateColumn"),V=this.getFromEnv("isUTC"),W=N.type,H=N.data,G=N.dataInfo,U=[],q=this.getFromEnv("binDecider"),Y=this.getFromEnv("xScale"),X=this.getFromEnv("yScale"),K=q.getRangeThreshold()[2],$=Number.parseFloat(N.nullLinePlotStyle["stroke-width"]),Z=Number.parseFloat(N.predictiveStyleAttributesLine["stroke-width"]),J=Number.parseFloat(N.linePlotStyle["stroke-width"]),Q=H.length,ee=Y.getDomain(),te=ee[0],ne=ee[1],re=Y.bins,oe=j.format,ie=V?v.default.utcFormatter(oe):v.default.formatter(oe),ae=Y.showPlotOverTick();if(N.firstTimeStamp=H&&H[0]&&H[0][R]&&H[0][R].start,N.repositioningDone=this._isRepositioningNeeded()){if("visible"!==N.visibility)return;for(G=N.dataInfo=[],N.timeStampGap=K,N.availableWidth=0,_=0,O=re.length;_Math.abs(c)&&(c=t[I],C=t[F]),y=X.getRangeValue(C||Math.max(X.getDomain()[0],0)),b=X.getRangeValue(c),l||(N.firstTimeStamp=n),"area"!==W||(0,d.default)(y))if((0,d.default)(c)&&(0,d.default)(b))if(u=Y.getBinIndex(n),e={startDate:n,endDate:r,timeInstant:ae?n:o,value:c,paddingInTimestamp:w,yBaseValue:"area"===W?C:s.UNDEF,x:Y.getRangeValue(new Date(n),new Date(r)),endXPosition:Y.getRangeValue(new Date(n),new Date(r)),totalStackSum:(0,s.defined)(t[z])?t[z]:s.UNDEF,y:b,base:y},D={index:l,dataValue:c,start:n,startText:ie.format(n),end:r,endText:ie.format(r),binUnit:k.Unit,binMultiplier:k.number,plotType:N.type,timeFormatter:oe,aggregation:N.aggregation,measure:N.measures[0],binValue:c,binValueFormatted:N.formatterFn&&N.formatterFn({value:c,type:"tooltip",prefix:N.prefix,suffix:N.suffix})},(P=Object.keys(B)[0])&&(D.series=P,D.seriesValue=B[P]),e.eventArgs=D,G[u]=e,i){var p=Y.getBinIndex(i[R].start);U.push(e),a=x(i[R].start,i[R].end),N.willInjectNulls&&a-o-(Y.clips[p]-Y.clips[u])>1.5*K&&U.push(null)}else Q-l==1&&U.push(e);else N.willInjectNulls&&U.push(null)}),t=new l.default(function(e){switch(W){case"area":case"smooth-area":case"step-area":return h.default;case"line":case"smooth-line":case"step-line":default:return p.default}}()).setConnectUndefineds(N.connectNullData).setChunks({def:{clipAdjustment:J},undef:{clipAdjustment:$},predictive:{clipAdjustment:Z}}).setCurve(function(e){switch(W){case"smooth-line":case"smooth-area":return m.default;case"step-area":case"step-line":return f.default;case"line":case"area":default:return g.default}}()).setDefined(function(e){return!!e}).setChunkDecider(function(e){return e.startDate>=N.prediction.dateMs?"predictive":"def"}).setXAccessor(function(e){return e.x}).setYAccessor(function(e){return e.y}),A(W)&&t.setYBaseAccessor(function(e){return e.base}),N.chunks=t.generate(U),N.path=S(N.chunks.def.path),N.clipPath=S(N.chunks.def.clipRects.map(M).reduce(E,"")),N.nullPath=S(N.chunks.undef.path),N.nullClipPath=S(N.chunks.undef.clipRects.map(M).reduce(E,"")),N.predictivePath=S(N.chunks.predictive.path),N.predictiveClipPath=S(N.chunks.predictive.clipRects.map(M).reduce(E,"")),A(W)&&(N.topChunks=t.getLineChunkerYTop().generate(U),N.topPath=S(N.topChunks.def.path),N.topClipPath=S(N.topChunks.def.clipRects.map(M).reduce(E,"")),N.topNullPath=S(N.topChunks.undef.path),N.topNullClipPath=S(N.topChunks.undef.clipRects.map(M).reduce(E,"")),N.topPredictivePath=S(N.topChunks.predictive.path),N.topPredictiveClipPath=S(N.topChunks.predictive.clipRects.map(M).reduce(E,"")))}},n._isInvalidTooltext=function(e){var t=this.config;if(!e||e.timeInstantt.actualEndDomain)return!0},n._drawPlot=function(){var e,t=this,n=t.config,r=w(w({},n.linePlotStyle),{},{fill:"none"}),o=n.areaPlotStyle,i=w(w({},n.nullLinePlotStyle),{},{fill:"none"}),a=n.nullAreaPlotStyle,l=w(w({},n.predictiveStyleAttributesLine),{},{fill:"none"}),c=n.predictiveStyleAttributesArea,u=n.dataInfo;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-line",attr:{name:"line-common-meso",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"thermo",label:"group"},component:t,label:"group",id:"thermo-line",attr:{name:"line-common-thermo",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"meso-line",label:"group"},component:t,label:"group",id:"meso-plot",attr:{name:"line-plot-meso",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-plot",attr:{name:"line-plot-thermo",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-anchor",attr:{name:"line-anchor-thermo",visibility:n.visibility}},!0),n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.nullPath,"clip-path":n.nullClipPath},T(n.type)?i:a),label:"path",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.path,"clip-path":n.clipPath},T(n.type)?r:o),label:"path",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.predictivePath,"clip-path":n.predictiveClipPath},T(n.type)?l:c),label:"path",component:t},!0),n.topPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topNullPath,"clip-path":n.topNullClipPath},i),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topPath,"clip-path":n.topClipPath},r),label:"topPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.topPredictivePath,"clip-path":n.topPredictiveClipPath},l),label:"path",component:t},!0)),"show"===n.mode?n.sharedAnchorIndices&&n.sharedAnchorIndices.length&&n.sharedAnchorIndices.forEach(function(r){e=u[r],n.lastShownIndices=n.sharedAnchorIndices,e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,s.polyPathToPath)([2,e.x,e.y,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+r,label:n.dsType+"-anchor"})}):n.hideIndices&&n.hideIndices.length&&n.hideIndices.forEach(function(r){(e=u[r])&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-anchor"},attr:{visibility:"hidden"},id:"shared-anchor-"+r,label:n.dsType+"-anchor"})})},n.setHoverInEffect=function(e,t,n){var r,o=this.getFromEnv("chart"),i=this.config.dataInfo;this.getFromEnv("animationManager").setAnimationState("mouseOver"),t||e.forEach(function(e){i[e]&&(r=i[e].eventArgs,o.fireChartInstanceEvent("DataPlotHighlight",r))}),this.setData(this.getHoverInConfig(e,t,n),!0)},n._getHoveredPlot=function(e,t){var n,r,o,i,a,s,l=e,c=t,u=this.getFromEnv("xScale"),d=u.getRange(),h=[this.getChildren("dataMarker")],p=this.config,f="visible"===p.visibility,g=p.dataInfo,m=g.length,v=this.getLinkedParent().getTranslation(),y=v.x,b=v.y;if(c-=b,(l-=y)d[1])return{component:this};if(s=u.getBinIndex(u.getDomainValue(l)),r=Math.floor(Math.max(s,0)),o=Math.ceil(Math.min(s,m-1)),h.forEach(function(e){var t=e;!i&&t&&(t=t[0])&&(i=t._checkPointOverMarker(s,l,c,p.availableWidth))}),!i)for(a=o;a>=r&&(n=g[a],!(i=f?O(n,a,l,c,this):{}).hovered);a--);return!i&&(i={}),i.hovered?i.binIndexHovered=i.pointIndex:(i.binIndexHovered=u.getBinIndex(u.getDomainValue(l)),i.pointObj=p.dataInfo[i.binIndexHovered]||u.getBinBounds(s),i.component=this),p.binIndexHovered=i.binIndexHovered,i},t}(y.default);t.default=k},830:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(730)),i=r(n(831)),a=r(n(472)),s=r(n(474)),l=r(n(473)),c=r(n(478)),u=r(n(788)),d=r(n(836)),h=r(n(839)),p=function(e){return"undef"!==e[0]},f=(0,o.default)(function(e){return e[0],e[1].clipRects}),g=function(e,t){return e.x-t.x},m=function(e){var t=e[0],n=e[1];return{x:t.x+t.width,y:(0,l.default)([t.y,n.y,t.y+t.height,n.y+n.height]),width:n.x-(t.x+t.width),height:(0,s.default)([t.y,n.y,t.y+t.height,n.y+n.height])-(0,l.default)([t.y,n.y,t.y+t.height,n.y+n.height])}},v=function(e){return!(e.width<1||e.height<1)},y=function(e){var t=e[0],n=e[1];return[t,Object.assign(n,{clipRects:n.clipRects.filter(v)})]},b=(0,c.default)("def"),C=function(e,t,n){return n.indexOf(e)>n.indexOf(t)?e:t},w={def:{},undef:{}},x=function(){function e(e){void 0===e&&(e=d.default),this.generator=new e,this.defined=(0,c.default)(!0),this.chunkDecider=b,this.chunks=w,this.connectUndefineds=!1}var t=e.prototype;return t.generate=function(e){var t,n,r=this,o=this._getChunks(),i=Object.entries(o).filter(p),s=this.getDefined(),l=e.filter(s),c=this.getConnectUndefineds(),d=this._computeDefinedSegments(c?e:l),h=this.getXAccessor(),b=this.getYAccessor(),C=this.getYBaseAccessor(),w=[];return n=c?this.generator.generate(l):this.generator.setDefined(s).generate(e),w=i.map(function(e){var t=e[0],o=e[1];return[t,{path:n,clipRects:r._computeSegmentChunks(t,d).map(function(e){return function(e,t){var n=t.clipAdjustment,r=void 0===n?0:n,o=(0,a.default)(e,b),i=o[0],s=o[1],l=(0,a.default)(e,h),c=l[0],u=l[1],d=(0,a.default)(e,C),p=d[0],f=d[1],g=(0,a.default)([c,u]),m=g[0],v=g[1],y=(0,a.default)([i,s,p,f]),w=y[0],x=y[1],_=w-r;return{x:m,y:_,width:Math.abs(v-m),height:Math.abs(x+r-_)}}(e,o)})}]}),t=c?(0,u.default)(f(w).sort(g)).map(m).filter(v):[],Object.fromEntries(w.map(y).concat([["undef",{path:c&&t.length>0?n:"",clipRects:t}]]))},t.setXAccessor=function(e){return this.generator.setXAccessor(e),this},t.getXAccessor=function(){return this.generator.getXAccessor()},t.setYAccessor=function(e){return this.generator.setYAccessor(e),this},t.getYAccessor=function(){return this.generator.getYAccessor()},t.setYTopAccessor=function(e){return this.generator.setYTopAccessor?this.generator.setYTopAccessor(e):this.generator.setYAccessor(e),this},t.getYTopAccessor=function(){return this.generator.getYTopAccessor?this.generator.getYTopAccessor():this.generator.getYAccessor()},t.setYBaseAccessor=function(e){return this.generator.setYBaseAccessor?this.generator.setYBaseAccessor(e):this.generator.setYAccessor(e),this},t.getYBaseAccessor=function(){return this.generator.getYBaseAccessor?this.generator.getYBaseAccessor():this.generator.getYAccessor()},t.setDefined=function(e){return void 0===e&&(e=(0,c.default)(!0)),this.defined="function"==typeof e?e:(0,c.default)(!!e),this},t.getDefined=function(){return this.defined},t.setCurve=function(e){return this.generator.setCurve(e),this},t.getCurve=function(){return this.generator.getCurve()},t.getLineChunkerYTop=function(){return this._areaLineChunker().setXAccessor(this.getXAccessor()).setYAccessor(this.getYTopAccessor())},t.getLineChunkerYBase=function(){return this._areaLineChunker().setXAccessor(this.getXAccessor()).setYAccessor(this.getYBaseAccessor())},t.setChunkDecider=function(e){return void 0===e&&(e=b),this.chunkDecider=e,this},t.getChunkDecider=function(){return this.chunkDecider},t.setChunks=function(e){return void 0===e&&(e=w),this._userChunks=Object.assign({},e),this.chunks=(0,i.default)(e,w),this},t.getChunks=function(){return this._userChunks||this.chunks},t._getChunks=function(){return this.chunks},t.setConnectUndefineds=function(e){return void 0===e&&(e=!1),this.connectUndefineds=e,this},t.getConnectUndefineds=function(){return this.connectUndefineds},t._areaLineChunker=function(){return new e(h.default).setChunkDecider(this.getChunkDecider()).setChunks(this.getChunks()).setConnectUndefineds(this.getConnectUndefineds()).setCurve(this.getCurve()).setDefined(this.getDefined())},t._computeDefinedSegments=function(e){var t=this,n=!0;return e.reduce(function(e,r){return t.defined(r)?(n?(e.push([r]),n=!1):e[e.length-1].push(r),e):(n=!0,e)},[])},t._computeSegmentChunks=function(e,t){var n=this,r=Object.keys(this.chunks);return t.reduce(function(t,o){var i=!0,a=o.reduce(function(t,a,s){var l=n.getChunkDecider()(a),c=o[s-1],u=o[s+1];if(l===e)i?(t.push([a]),i=!1):t[t.length-1].push(a);else{var d=!1;null!=c&&C(n.getChunkDecider()(c),l,r)===e&&(i?(t.push([a]),i=!1):t[t.length-1].push(a),d=!0,i=!1),d||null==u?d||(i=!0):C(l,n.getChunkDecider()(u),r)===e?(t.push([a]),d=!0,i=!1):i=!0}return t},[]);return a&&a.length?t.concat(a):t},[])},e}();t.default=x},836:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(837)),i=r(n(478)),a=r(n(838)),s=r(n(839)),l=function(){function e(){this.xTopAccessor=function(e){return e[0]},this.xBaseAccessor=null,this.yTopAccessor=(0,i.default)(0),this.yBaseAccessor=function(e){return e[1]},this.isDefined=(0,i.default)(!0),this.Curve=a.default,this.ctx=null,this._output=null}var t=e.prototype;return t.generate=function(e){void 0===e&&(e=[]);var t,n,r,i,a,s=e.length,l=!1,c=new Array(s),u=new Array(s);for(null!==this.ctx&&"undefined"!=typeof this.ctx||(a=new o.default,this._output=new this.Curve(a)),t=0;t<=s;++t){if(i=e[t],!(t=n;--r)this._output.point(c[r],u[r]);this._output.lineEnd(),this._output.areaEnd()}l&&(c[t]=+this.xTopAccessor(i,t,e),u[t]=+this.yTopAccessor(i,t,e),this._output.point(this.xBaseAccessor?+this.xBaseAccessor(i,t,e):c[t],this.yBaseAccessor?+this.yBaseAccessor(i,t,e):u[t]))}if(a)return this._output=null,a.toString()},t.setXAccessor=function(e){return void 0===e&&(e=function(e){return e[0]}),this.xTopAccessor="function"==typeof e?e:(0,i.default)(+e),this.xBaseAccessor=null,this},t.getXAccessor=function(){return this.xTopAccessor},t.setXTopAccessor=function(e){return void 0===e&&(e=function(e){return e[0]}),this.xTopAccessor="function"==typeof e?e:(0,i.default)(+e),this},t.getXTopAccessor=function(){return this.xTopAccessor},t.setXBaseAccessor=function(e){return this.xBaseAccessor=null==e?null:"function"==typeof e?e:(0,i.default)(+e),this},t.getXBaseAccessor=function(){return this.xBaseAccessor},t.setYAccessor=function(e){return void 0===e&&(e=function(e){return e[1]}),this.yTopAccessor="function"==typeof e?e:(0,i.default)(+e),this.yBaseAccessor=null,this},t.getYAccessor=function(){return this.yTopAccessor},t.setYTopAccessor=function(e){return void 0===e&&(e=function(e){return e[1]}),this.yTopAccessor="function"==typeof e?e:(0,i.default)(+e),this},t.getYTopAccessor=function(){return this.yTopAccessor},t.setYBaseAccessor=function(e){return this.yBaseAccessor=null==e?null:"function"==typeof e?e:(0,i.default)(+e),this},t.getYBaseAccessor=function(){return this.yBaseAccessor},t.setDefined=function(e){return void 0===e&&(e=(0,i.default)(!0)),this.isDefined="function"==typeof e?e:(0,i.default)(!!e),this},t.getDefined=function(){return this.isDefined},t.setCurve=function(e){return void 0===e&&(e=a.default),this.Curve=e,null!==this.ctx&&"undefined"!=typeof this.ctx&&(this._output=new this.Curve(this.ctx)),this},t.getCurve=function(){return this.Curve},t.setContext=function(e){return null==e?(this.ctx=null,this._output=this._ctx):(this.ctx=e,this._output=new this.Curve(this.ctx)),this},t.getContext=function(){return this.ctx},t._areaLine=function(){return(new s.default).setDefined(this.isDefined).setCurve(this.Curve).setContext(this.ctx)},t.getLineXBase=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineYBase=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineYTop=function(){return this._areaLine().setXAccessor(this.xTopAccessor).setYAccessor(this.yTopAccessor)},t.getLineXTop=function(){return this._areaLine().setXAccessor(this.xBaseAccessor).setYAccessor(this.yBaseAccessor)},e}();t.default=l},837:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=Math.PI,o=2*r,i=o-1e-6,a=function(){function e(){this._clear()}var t=e.prototype;return t.moveTo=function(e,t){this._x0=this._x1=+e,this._y0=this._y1=+t,this.pathStr+="M"+this._x0+","+this._y0},t.lineTo=function(e,t){this._x1=+e,this._y1=+t,this.pathStr+="L"+this._x1+","+this._y1},t.quadraticCurveTo=function(e,t,n,r){this._x1=+n,this._y1=+r;var o=+e,i=+t;this.pathStr+="Q"+o+","+i+","+this._x1+","+this._y1},t.bezierCurveTo=function(e,t,n,r,o,i){this._x1=+o,this._y1=+i;var a=+e,s=+t,l=+n,c=+r;this.pathStr+="C"+a+","+s+","+l+","+c+","+this._x1+","+this._y1},t.rect=function(e,t,n,r){var o=+n,i=+r;this._x0=this._x1=+e,this._y0=this._y1=+t,this.pathStr+="M"+this._x0+","+this._y0+"h"+o+"v"+i+"h"+-o+"Z"},t.arcTo=function(e,t,n,o,i){var a,s,l,c,u,d,h,p,f,g,m,v,y,b,C,w,x=+e,_=+n,S=+t,M=+o,E=+i;l=_-x,c=M-S,h=(u=(C=this._x1)-x)*u+(d=(w=this._y1)-S)*d,E=Math.max(E,0),null===this._x1?(this._x1=x,this._y1=S,this.pathStr+="M"+this._x1+","+this._y1):h>1e-6&&(Math.abs(d*l-c*u)>1e-6&&E?(g=l*l+c*c,f=(a=_-C)*a+(s=M-w)*s,m=Math.sqrt(g),p=Math.sqrt(h),v=(b=E*Math.tan((r-Math.acos((g+h-f)/(2*m*p)))/2))/p,y=b/m,Math.abs(v-1)>1e-6&&(this.pathStr+="L"+(x+v*u)+","+(S+v*d)),this._x1=x+y*l,this._y1=S+y*c,this.pathStr+="A"+E+","+E+",0,0,"+ +(d*a>u*s)+","+this._x1+","+this._y1):(this._x1=x,this._y1=S,this.pathStr+="L"+this._x1+","+this._y1))},t.arc=function(e,t,n,a,s,l){void 0===l&&(l=!1);var c=+e,u=+t,d=+n,h=+a,p=+s,f=!!l,g=d*Math.cos(h),m=d*Math.sin(h),v=c+g,y=u+m,b=Number(!f),C=f?h-p:p-h;Math.max(d,0),null===this._x1?this.pathStr+="M"+v+","+y:(Math.abs(this._x1-v)>1e-6||Math.abs(this._y1-y)>1e-6)&&(this.pathStr+="L"+v+","+y),d&&(C<0&&(C=C%o+o),C>i?(this._x1=v,this._y1=y,this.pathStr+="A"+d+","+d+",0,1,"+b+","+(c-g)+","+(u-m),this.pathStr+="A"+d+","+d+",0,1,"+b+","+this._x1+","+this._y1):C>1e-6&&(this._x1=c+d*Math.cos(p),this._y1=u+d*Math.sin(p),this.pathStr+="A"+d+","+d+",0,"+ +(C>=r)+","+b+","+this._x1+","+this._y1))},t.closePath=function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this.pathStr+="Z")},t.toString=function(){return this.pathStr},t._clear=function(){this._x0=this._y0=this._x1=this._y1=null,this.pathStr=""},e}();t.default=a},838:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(){function e(e){this._ctx=e}var t=e.prototype;return t.areaStart=function(){this._line=0},t.areaEnd=function(){this._line=NaN},t.lineStart=function(){this._point=0},t.lineEnd=function(){(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line=1-this._line},t.point=function(e,t){var n=+e,r=+t;switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(n,r):this._ctx.moveTo(n,r);break;case 1:this._point=2;default:this._ctx.lineTo(n,r)}},e}();t.default=r},839:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(837)),i=r(n(478)),a=r(n(838)),s=function(){function e(){this.xAccessor=function(e){return e[0]},this.yAccessor=function(e){return e[1]},this.isDefined=(0,i.default)(!0),this.Curve=a.default,this.ctx=null,this._output=null}var t=e.prototype;return t.generate=function(e){void 0===e&&(e=[]);var t,n,r,i=0,a=e.length;for(null!==this.ctx&&"undefined"!=typeof this.ctx||(r=new o.default,this._output=new this.Curve(r)),i=0;i<=a;++i)t=e[i],n?i0&&this._factor<1&&2===this._point&&this._ctx.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line>=0&&(this._factor=1-this._factor,this._line=1-this._line)},t.point=function(e,t){var n=+e,r=+t;switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(n,r):this._ctx.moveTo(n,r);break;case 1:this._point=2;default:if(this._factor<=0)this._ctx.lineTo(this._x,r),this._ctx.lineTo(n,r);else{var o=this._x*(1-this._factor)+n*this._factor;this._ctx.lineTo(o,this._y),this._ctx.lineTo(o,r)}}this._x=n,this._y=r},e}(),a=function(e){function t(t){return e.call(this,t,1)||this}return(0,o.default)(t,e),t}(i);t.StepAfter=a;var s=function(e){function t(t){return e.call(this,t,0)||this}return(0,o.default)(t,e),t}(i);t.StepBefore=s;var l=i;t.default=l},841:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e){return e<0?-1:1},o=function(){function e(e){this._ctx=e}var t=e.prototype;return t.areaStart=function(){this._line=0},t.areaEnd=function(){this._line=NaN},t.lineStart=function(){this._x0=this._x1=NaN,this._y0=this._y1=NaN,this._t0=NaN,this._point=0},t.lineEnd=function(){switch(this._point){case 2:this._ctx.lineTo(this._x1,this._y1);break;case 3:this._monotoneCurveTo(this._t0,this._slope2(this._t0))}(this._line||0!==this._line&&1===this._point)&&this._ctx.closePath(),this._line=1-this._line},t.point=function(e,t){var n=NaN,r=+e,o=+t;if(r!==this._x1||o!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._ctx.lineTo(r,o):this._ctx.moveTo(r,o);break;case 1:this._point=2;break;case 2:this._point=3,n=this._slope3(r,o),this._monotoneCurveTo(this._slope2(n),n);break;default:n=this._slope3(r,o),this._monotoneCurveTo(this._t0,n)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=o,this._t0=n}},t._monotoneCurveTo=function(e,t){var n=this._x0,r=this._y0,o=this._x1,i=this._y1,a=(o-n)/3;this._ctx.bezierCurveTo(n+a,r+a*e,o-a,i-a*t,o,i)},t._slope2=function(e){var t=this._x1-this._x0;return t?(3*(this._y1-this._y0)/t-e)/2:e},t._slope3=function(e,t){var n=this._x1-this._x0,o=e-this._x1,i=(this._y1-this._y0)/(n||o<0&&-0),a=(t-this._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(r(i)+r(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0},e}();t.default=o},842:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(235)),i=r(n(232)),a=n(218),s=r(n(473)),l=r(n(474)),c=n(226),u=r(n(777)),d=r(n(237)),h=r(n(285)),p=r(n(843)),f=r(n(844)),g=r(n(472)),m=function(e,t){return Object.assign(e,t)},v=function(e){return[e.start,e.end]},y=function(e,t,n,r){return e&&t<=0||n[1]r[1]},b=a.hasTouch?a.TOUCH_THRESHOLD_PIXELS:a.CLICK_THRESHOLD_PIXELS;(0,c.addDep)({name:"timeseriesColumnAnimation",type:"animationRule",extension:p.default});var C=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t),r=t.config;return t.registerFactory("markerFactory",f.default),t._getFirstValidData=function(e,t){var n,r=e.length;for(n=0;n0,K=L.getRangeThreshold()[2],$=R.getDomain(),Z=$[0],J=$[1];if(A.firstTimeStamp=H&&H[0]&&H[0][k]&&H[0][k].start,A.repositioningDone=this._isRepositioningNeeded()){if("visible"!==A.visibility)return;for(I=A.dataInfo=[],A.availableWidth=m=0,S=0,M=q.length;S0?-t*(x-V-_):t*(V-x+_),E=+R.getDomainValue(m*(A.plotSpacePercent/200))-+R.getDomainValue(0),A.actualStartDomain=+Z+E,A.actualEndDomain=+J-E,X&&(t=Math.max(t-Y,1)),H.forEach(function(c,h){n=c[k],r=c[D],v=n.config.duration,C=n.start,w=n.end,h||(A.firstTimeStamp=n.start),i=c[P],l=F.getRangeValue(i||Math.max(F.getDomain()[0],0)),s=F.getRangeValue(r),(0,u.default)(r)&&(0,u.default)(l)&&(0,u.default)(s)&&(o=R.getRangeValue(new Date(n.start),new Date(n.end)),X&&(o+=Y/2),f=(o+=p)+t,e=Math.abs(l-s),O={startDate:C,endDate:w,value:r,yBaseValue:i,yBase:l,x:o,endXPosition:f,y:s>l?l:s,width:t,height:e,totalStackSum:(0,a.defined)(c[N])?c[N]:a.UNDEF,eventArgs:{index:h,dataValue:r}},y={index:h,dataValue:r,start:C,startText:U.format(C),end:w,endText:U.format(w),binUnit:v.Unit,binMultiplier:v.number,plotType:A.type,timeFormatter:G,aggregation:A.aggregation,measure:A.measures[0],binValue:r,binValueFormatted:A.formatterFn&&A.formatterFn({value:r,type:"tooltip",prefix:A.prefix,suffix:A.suffix})},(b=Object.keys(z)[0])&&(y.series=b,y.seriesValue=z[b]),O.eventArgs=y,d=R.getBinIndex(n.start),I[d]=O)})}(c=A.hoverInfo)&&c.forEach(function(e){e.hoverIndices.forEach(function(t){"object"==typeof I[t]&&"object"==typeof e.style&&(I[t].style=(0,a.extend2)(I[t].style,e.style))})})},n._getRelevantInfo=function(){var e=this.config;return{firstTimeStamp:e.firstTimeStamp,timeStampGap:e.timeStampGap,dataInfo:e.dataInfo,fill:e.style.stroke}},n._getHoveredPlot=function(e,t){var n,r,o,i,a=e,s=t,l=this.getFromEnv("xScale"),c=l.getRange(),u=this.getLinkedParent(),d=this.config,h="visible"===d.visibility,p=[this.getChildren("dataMarker")],f=u.getTranslation(),g=f?f.x:0,m=f?f.y:0;return s-=m,(a-=g)c[1]?{component:this}:(i=l.getBinIndex(l.getDomainValue(a)),d.timeStampGap<=1&&-1===i&&(i=0),p.forEach(function(e){!r&&e&&(n=e[0],r=n._checkPointOverMarker(i,a,s,d.availableWidth))}),(o=r)||(o=h?this._checkPointerOverColumn(i,a,s):{}),o.hovered?o.binIndexHovered=o.pointIndex:(o.binIndexHovered=l.getBinIndex(l.getDomainValue(a)),o.pointObj=d.dataInfo[o.binIndexHovered]||l.getBinBounds(i),o.component=this),d.binIndexHovered=o.binIndexHovered,o)},n._getHoveredBin=function(){return this.config.binIndexHovered},n._getTooltext=function(e,t,n){var r,o=this.config,i=this.getName(),s=function(e){switch(o.type){case"line":case"smooth-line":case"step-line":return"line";case"area":case"smooth-area":case"step-area":case"area-range":return"area"}}(),l=this.getFromEnv("tooltipStyle").body,c=this.getFromEnv("tooltipStyle").container["line-height"]||1,d=1===c?l["font-size"]:c,h=o.dataInfo[n],p=e?t?1:.5:1,f="continuous"===i?"line"===s?o.plotStyle.stroke:o.plotStyle.fill:o.style.fill;return this._isInvalidTooltext(h)?"":(h.tooltipValue||(r=(0,u.default)(h.yBaseValue)?h.value-h.yBaseValue:h.value,h.tooltipValue=(0,u.default)(r)?o.formatterFn({value:r,type:"tooltip",prefix:o.prefix,suffix:o.suffix}):""),"
\n \n \n \n
"+(0,a.parseUnsafeString)(o.series)+" 
\n
 "+(h.tooltipValue||"")+"
\n
")},n._isInvalidTooltext=function(e){var t=this.config;if(!e||e.endDatet.actualEndDomain)return!0},n._getDateForToolText=function(e){var t,n=this.config,r="",o=n.dataInfo[e];return this._isInvalidTooltext(o)?{body:"",header:""}:(o.tooltextTime||(o.tooltextTime=n.timeFormatterFn({type:"tooltip",dateRange:o})),!o.totalStackSumTooltip&&(0,u.default)(o.totalStackSum)&&(o.totalStackSumTooltip=n.formatterFn({value:o.totalStackSum,type:"tooltip",prefix:n.prefix,suffix:n.suffix})),t="
"+o.tooltextTime+"
",o.totalStackSumTooltip&&(r="
Total: "+o.totalStackSumTooltip+"
"),{header:t,body:r})},n._checkPointerOverColumn=function(e,t,n){var r,o,i,s,l,c,u,d=this.config,h=d.plotBorderThickness;return(r=d.dataInfo[e])?(l=r.height=0&&o<=s+h&&i>=0&&i<=l+h,pointObj:r,component:this}):{pointIndex:e,hovered:!1,component:this}},n._firePlotEvent=function(e,t,n){var r,o,i=this.config.dataInfo,s=i[t]&&i[t].eventArgs||{},l=this.getFromEnv("chart"),c=(0,a.getMouseCoordinate)(l.getFromEnv("chart-container"),n,l),u=function(e){var t,n=!0;for(t in e)e.hasOwnProperty(t)&&(n=n&&!isNaN(e[t]));return n}(c),d=(0,a.extend2)(c,s);if(t!==a.UNDEF&&u)switch(e){case"fc-mouseover":l.fireChartInstanceEvent("DataPlotRollOver",d,a.UNDEF,a.UNDEF,function(e,t){n.FusionChartsPreventEvent=!0});break;case"fc-mouseout":l.fireChartInstanceEvent("DataPlotRollOut",d);break;case"fc-click":case"touchend":case"mouseup":l.fireChartInstanceEvent("DataPlotClick",d),o=(r=l.getFromEnv())&&r.linkClickFN,d.link&&o&&o.call({link:d.link},!0)}},n.setHoverInEffect=function(e,t){var n,r=this.getFromEnv("chart"),o=this.config.dataInfo;this.getFromEnv("animationManager").setAnimationState("mouseOver"),t||e.forEach(function(e){o[e]&&(n=o[e].eventArgs,r.fireChartInstanceEvent("DataPlotHighlight",n))}),this.setData(t?this.getHoverInConfig(e):this.getHighlightConfig(e),!0)},n.setHoverOutEffect=function(e){this.getFromEnv("animationManager").setAnimationState("mouseOut"),this.setData(this.getHoverOutConfig(e),!0)},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach(function(t,r){t.yBase<=e.minValue&&t.y>=e.maxValue&&n.push(r)}),n},n.show=function(){this.setData({visibility:"visible"},!0)},n.hide=function(){this.setData({visibility:"hidden"},!0)},n.isPlotPredictive=function(e){return e.startDate>=this.config.prediction.dateMs},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e,t,n={},r=this.config;r.prediction.enabled&&(e=r.prediction.style.plot,t=r.prediction.style.column,Object.assign(n,r.defaultPredictedDataStyle),Object.assign(n,e),Object.assign(n,t)),n.predictiveOpacity=n.opacity,n.predictiveFillOpacity=n["fill-opacity"],n.predictiveStrokeOpacity=n["stroke-opacity"],delete n.opacity,delete n["fill-opacity"],delete n["stroke-opacity"],r.predictiveStyleAttributes=n||{}},t}(d.default);t.default=C},843:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218);function o(e,t,n){return{y:n?t:t+e,height:0}}function i(e,t){var n=1/t,r=n*e;return{start:r,end:r+n}}var a={"initial.dataset.timeseriesColumn":function(){var e=this,t=e.getFromEnv("yScale");return void 0!==e.config.indices[3]?function(e){var t=e.config.datasetIndex,n=e.config.seriesLength;return{"rect.appearing":function(r){var a=r.index,s=e.config.dataInfo[a].yBaseValue<0;return[{initialAttr:o(r.attr.height,r.attr.y,s),slot:"middle",startEnd:i(t,n),effect:"linear"}]}}}(e):{"rect.appearing":function(n){var o,i,a,s,l=n.props&&n.props.originalIndex||n.index,c=e.config.data[l],u=n.attr,d=t.getRangeValue(0);return o=u.y,i=u.height,s=Math.sign(o+i/2-d),a=1===s?o:o+i,c&&(c._posWRT0=s),[{initialAttr:function(){var e={};return e.y=a,e.height=0,e},finalAttr:{},startEnd:function(){return r.animHelperFN.animByWeight(n.index,n.props.dataLength,.6)},hookFn:function(){this.attr({opacity:1})},effect:"easeInOutQuart",slot:"plot"}]},"*":null}}};t.default=a},844:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=function(e){var t,n=e.getFromEnv("dataSource"),r=e.config.series,d=e.getFromEnv("focusScalesX")[0].applicableClippings,h=d.repeatClips,p=d.singleClips,f=e.config,g=f.measures,m=f.seriesInfo,v=void 0===m?{}:m,y=f.enableMarkers,b=f.visibility,C=f.isStock,w=f.isRange,x=[];y&&(t=n.datamarker)&&(t.forEach(function(e){var t=Object.assign({},e),n=t.value,o=t.series,d=!0,f=c.default.parser(e.timeformat).parse(e.time);if(!isNaN(+f)&&(0,u.getUnclippedValue)(f,h,p)===+f){if(n&&((0,i.default)(n)&&(n=[n]),(0,a.default)(n)))if(n=n.filter(i.default),(w||C)&&(0,l.default)(g[0]))for(var m=Object.values(g[0]),y=0;y=c-d/2&&n<=c+d/2&&r<=s&&r>=s-h}(0,0,t,n)&&(u={pointIndex:e,hovered:!0,pointObj:o,markerObj:i,component:p}))}),u},t._getTooltext=function(e){var t,n,r=this.config,o=r.markerInfo[e],i=o.markers,a=i.length,l=this.getFromEnv("yScale").tickFormat(4,".2s"),c=o.multipleMarkers,u={};return o.formatedTime||(o.formatedTime=this.getFromEnv("xScale").getFormattedTime({type:"tooltip",dateRange:o})),t="
"+o.formatedTime+"
",r.isStock?n="
\n
\n Open:\n
\n
\n "+((0,v.default)(o.openValue)?(0,s.parseUnsafeString)(l(o.openValue)):"\u2014")+"\n
\n
\n High:\n
\n
\n "+((0,v.default)(o.highValue)?(0,s.parseUnsafeString)(l(o.highValue)):"\u2014")+"\n
\n
\n Low:\n
\n
\n "+((0,v.default)(o.lowValue)?(0,s.parseUnsafeString)(l(o.lowValue)):"\u2014")+"\n
\n
\n Close:\n
\n
\n "+((0,v.default)(o.closeValue)?(0,s.parseUnsafeString)(l(o.closeValue)):"\u2014")+"\n
\n
":r.isRange?n="
\n
\n High:\n
\n
\n "+((0,v.default)(o.highValue)?l(o.highValue):"\u2014")+"\n
\n
\n Low:\n
\n
\n "+((0,v.default)(o.lowValue)?l(o.lowValue):"\u2014")+"\n
\n
":(o.tooltipValue||(o.tooltipValue=l(o.value)),n="
\n
"+(0,s.parseUnsafeString)(o.seriesname)+":"+(0,s.parseUnsafeString)(o.tooltipValue)+"
\n
"),i.forEach(function(e,t){var r=6;c&&!u[e.time]&&(u[e.time]=!0,n+="
"+e.time+"
",t+1"+(0,s.parseUnsafeString)(e.tooltext,!1)+"
":""}),{header:t,body:n}},t.allocatePosition=function(){!this.config.skipGrouping&&this._groupMarkers()},t._groupMarkers=function(){var e,t,n,r,o,i,s,l,u=this.getLinkedParent()._getRelevantInfo(),d=u.firstTimeStamp,h=u.dataInfo,f=this.config,g=f.markerInfo={},m=this.getFromEnv("xScale"),v=m.getDomain(),y=this.getFromEnv("binDecider").getRangeThreshold()[0].name(),b=f.data;f.dataInfo=h,b.forEach(function(u){n=a.default.parser(u.timeformat).parse(u.time),r=(0,c.getPlaceHolderIndex)(y)-(0,c.getPlaceHolderIndex)((0,c.getMinPlaceHolder)(u.timeformat)),n&&r>=0&&r<=2&&(n=n.getTime())>=d&&n>=v[0]&&n<=v[1]&&(t=m.getBinIndex(n,!1),(o=h[t])&&(i=u.series||{},s=Object.keys(i)[0],l=(f.isRange||f.isStock)&&((0,p.default)(u.measures[0])?Object.keys(u.measures[0]).toString():u.measures[0]),g[t]||(g[t]={markers:[],id:(f.isStock||f.isRange?l:u.seriesname)+u.time,startDate:o.startDate,seriesname:u.seriesname,endDate:h[t].endDate,eventArgs:{timestamp:n,timeText:u.time,tooltipText:[u.tooltext],timeFormatter:u.timeformat,binStart:o.startDate,binEnd:o.endDate,binValue:o.eventArgs.binValue,binValueFormatted:o.eventArgs.binValueFormatted,measure:u.value,series:s,seriesName:s&&i[s],identifier:u.identifier}}),e=g[t],f.isStock?(e.openValue=o.openValue,e.highValue=o.highValue,e.lowValue=o.lowValue,e.closeValue=o.closeValue):f.isRange?(e.highValue=o.highValue,e.lowValue=o.lowValue):e.value=o.value,e.markers.push(u),e.markers.length>1&&(e.multipleMarkers=!0,e.eventArgs.tooltipText.push(u.tooltext),e.eventArgs.identifier=e.markers.length)))})},t._createGroup=function(){this.addGraphicalElement({el:"group",container:{label:"group",id:"thermo",isParent:!0},component:this,label:"group",attr:{name:"markerGroup-thermo"}}),this.addGraphicalElement({el:"group",container:{label:"group",id:"thermo",isParent:!0},component:this,label:"group-pin",attr:{name:"markerGroup-thermo-pin"}})},t._drawMarkers=function(){var e,t,n,r=!0,o=this.config.markerInfo,i=function(e){"pin"!==e.type&&(r=!1)};for(t in o)e=o[t],n=!1,r=!0,e.multipleMarkers&&(e.markers.forEach(i),n=!r),"pin"!==e.markers[0].type||n?(0,f.default)(this,t,y):(0,g.default)(this,t,y);this.styleInfo={}},t.getStyleInformation=function(e){var t,n,r,o,i,a,c,u,d,h=this.config,p=h.styleInfo,f=h.markerInfo[e],g=this.getFromEnv("getStyleDef"),m=h.defaultMarkerStyle,v=h.defaultTextStyle,y=this.getLinkedParent()._getRelevantInfo(e),C=this.getFromEnv("baseTextStyle");return i={},a={},n=(c=p[e]||{}).marker||{},o=f.markers[0].style||{},t=g(o.marker),r=g(o.text),f.multipleMarkers?(d=f.markers.map(function(e){return e.style&&g(e.style.marker)||{}}),u=f.markers.map(function(e){return e.style&&g(e.style.text)||{}}),t=b(d),r=b(u),t.fill||(t.fill=f.fill=h["default-stroke-color-multiple"]),t.stroke||(t.stroke=h["default-stroke-color-multiple"])):(!t.fill&&!r.fill&&h.isStock&&y.text&&(r=Object.assign({},r,y.text)),t.fill=f.fill=(0,l.convertColor)((0,s.pluck)(t.fill,y.fill),100*(0,s.pluck)(n["fill-opacity"],t["fill-opacity"],m["fill-opacity"])),t.stroke=f.stroke=(0,l.convertColor)((0,s.pluck)(t.stroke,y.stroke,y.fill),100*(0,s.pluck)(n["stroke-opacity"],t["stroke-opacity"],m["fill-opacity"]))),Object.assign(i,m,t,c.marker),Object.assign(a,v,C,r,c.text),{marker:i,text:a}},n}(i.default);t.default=C},846:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(218),o=function(e){return[{initialAttr:{opacity:0},finalAttr:{opacity:(0,r.pluckNumber)(e.attr.opacity,1)},slot:"final"}]},i={"initial.dataMarker.dataMarker":function(){return{"*.appearing":o}}};t.default=i},847:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t,n){var r,o,i,a,s,l,c,u,d,h,p=e.config,f=p.markerInfo[t],g=p.dataInfo[t],m=e.getStyleInformation(t),v=n.flagHeight,y=n.stickLength,b=n.flagWidth;u=f.multipleMarkers,a=f.id,r=g.y,i=g.x+(g.width||0)/2,c=r-y,o=f.markers[0],d=m.marker.opacity,h=m.text.opacity,l={path:["M",i,r,"V",c],opacity:d},e.addGraphicalElement({el:"path",container:{label:"group"},id:a,component:e,attr:l,css:m.marker,label:"flagStick"},!0),l={path:"M12.4444444,0 L1.55555556,0 C0.7,0 0,0.654545455 0,1.45454545 L0,10.8363636 C0,11.3454545 0.233333333,11.7817897 0.7,12.0727273 L7,16 L13.3,12.0727273 C13.6888889,11.7818182 14,11.3454545 14,10.8363636 L14,1.45454545 C14,0.654545455 13.3,0 12.4444444,0 Z",transform:"t"+(i-b/2+1)+","+(c-v),opacity:d},e.addGraphicalElement({el:"path",container:{label:"group"},id:a,component:e,attr:l,css:m.marker,label:"flagTriangle"},!0),(u||(s=o.identifier))&&(l={text:u?f.markers.length:s.charAt(0),x:i,y:c-v/2,opacity:h},e.addGraphicalElement({el:"text",container:{label:"group"},id:a,component:e,attr:l,css:m.text,label:"markerText"},!0))}},848:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t,n){var r,o,i,a,s,l,c,u,d=e.config,h=d.markerInfo[t],p=d.dataInfo[t],f=e.getStyleInformation(t),g=n.pinHeight,m=n.pinWidth;u=h.multipleMarkers,a=h.id,r=p.y-(g+2),o=p.x+(p.width||0)/2-m/2,u||(i=h.markers[0]),l=f.marker.opacity,c=f.text.opacity,s={path:"M12.0047766,4 L12.2491793,4.00380682 C16.5521622,4.13545713 20,7.66508574 20,12 C20,16.418278 16.418278,20 12,20 C7.581722,20 4,16.418278 4,12 C4,11.9105612 4.0014677,11.8214651 4.00438034,11.7327347 L4,4 L12,4 L12.0047766,4 Z",transform:"t"+o+","+r+"r225",opacity:l},e.addGraphicalElement({el:"path",container:{label:"group-pin"},id:a,attr:s,css:f.marker,label:"pinMarker"},!0),(u||i.identifier)&&(s={text:u?h.markers.length:i.identifier.charAt(0),x:o+m/2,y:r+g/2+2,opacity:c},e.addGraphicalElement({el:"text",container:{label:"group-pin"},id:a,attr:s,css:f.text,label:"markerText"},!0))}},849:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e){return"number"==typeof e&&!isNaN(e)}},850:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){var n=e.getFromEnv("yScale"),r=e.getFromEnv("xScale"),o=n.getDomain(),i=r.getDomain(),a=r.getRangeValue(i[0]),s=n.getRangeValue(o[0]),l=n.getRangeValue(o[1]),c=s-l,u=c<0?s:l,d="init"===t?0:Math.abs(r.getRangeValue(i[1])-a),h=Math.abs(c);return"M"+a+","+u+"L"+(a+d)+","+u+"L"+(a+d)+","+(u+h)+"L"+a+","+(u+h)+"Z"},o={"initial.dataset.continuous":function(){var e=this;return{"group.appearing":function(){return[{initialAttr:{"clip-path":r(e,"init")},finalAttr:{"clip-path":r(e,"canvas")},slot:"middle"}]},"*":null}}};t.default=o},851:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=r(n(474)),s=r(n(473)),l=r(n(472)),c=n(226),u=r(n(777)),d=r(n(285)),h=r(n(842)),p=r(n(852)),f=function(e,t){return Object.assign(e,t)};(0,c.addDep)({name:"timeseriesCandlestickAnimation",type:"animationRule",extension:p.default});var g=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getHoverInConfig=function(e){var t=this.config;return{bullStyle:t.bullHoverInStyle,bearStyle:t.bearHoverInStyle,hoverIndices:e,hovered:!0}},n.getHighlightConfig=function(e){var t=this.config;return{bullStyle:t.bullHighlightStyle,bearStyle:t.bearHighlightStyle,hoverIndices:e,hovered:!0}},n.getHoverOutConfig=function(e){var t,n=this.config,r=Object.assign({},n.bullHoverOutStyle),o=Object.assign({},n.bearHoverOutStyle);for(t in r)r[t]=null;for(t in o)o[t]=null;return{bullStyle:r,bearStyle:o,hoverIndices:e,hovered:!1}},n.__setDefaultConfig=function(){var e=this.config;e.isStock=!0,e.bullStyle={},e.bullHoverInStyle={},e.bullHighlightStyle={},e.bullHoverOutStyle={},e.bearStyle={},e.bearHoverInStyle={},e.bearHighlightStyle={},e.bearHoverOutStyle={},e.plotSpacePercent=40,e.dataMarkerPadding=0,e.visibility=i.VISIBLE,e.prevBoundaryInfo={},e.defaultBullStyle={"stroke-width":1,opacity:1,stroke:"000000",fill:"ffffff"},e.defaultBearStyle={"stroke-width":1,opacity:1,stroke:"000000",fill:"868AC8"},e.defaultBullHighlightStyle={"stroke-width":2},e.defaultBearHighlightStyle={"stroke-width":2},e.defaultBearHoverInStyle={"stroke-width":2},e.defaultBullHoverInStyle={"stroke-width":2},e.legendDefaultTextStyle={"font-family":i.DEFAULT_FT_FONT,"font-weight":"normal","font-style":"normal","font-size":"12px",fill:"#5F5F5F"},e.defaultBearPredictiveStyle={fill:"#62B58F"},e.defaultBullPredictiveStyle={fill:"#F76363"},e.strokeColor="#464E56",e.hoverInfo=[],e.prevPerBinYExtents=[],e.dataIndices=[1,2,3,4]},n.configureAttributes=function(e){var t,n=this.getFromEnv("dataSource"),r=this.getFromEnv("getStyleDef"),o=n.legend,a=r(o&&o.item&&o.item.style&&o.item.style.text),l=this.config;if(l.mergedLegendStyle=(0,i.extend2)((0,i.extend2)({},l.legendDefaultTextStyle),a),e.hasOwnProperty("hoverIndices"))l.hoverInfo.push(e),l.hoverMode=!0;else{for(t in e)if("primaryColor"===t){var c=e.plotCosmetics,u=e.genericCosmetics,d=l.bullStyle,h=l.bearStyle,p=l.bullHoverInStyle,g=l.bearHoverInStyle,m=l.bullHighlightStyle,v=l.bearHighlightStyle,y=l.bullHoverOutStyle,b=l.bearHoverOutStyle,C=void 0,w=r(c.style&&c.style.bear),x=r(c.style&&c.style.bull),_=r(u.style&&u.style.plot),S=r(u.style&&u.style["plot:hover"]),M=r(u.style&&u.style["plot:highlight"]),E=r(u.style&&u.style.bull),O=r(u.style&&u.style["bull:hover"]),A=r(u.style&&u.style["bull:highlight"]),T=r(u.style&&u.style.bear),k=r(u.style&&u.style["bear:hover"]),D=r(u.style&&u.style["bear:highlight"]),P=r(c.style&&c.style["bear:hover"]),N=r(c.style&&c.style["bear:highlight"]),L=r(c.style&&c.style["bull:hover"]),R=r(c.style&&c.style["bull:highlight"]),F=r(e.styleConfig&&e.styleConfig.bear),I=r(e.styleConfig&&e.styleConfig.bull),z=r(e.styleConfig&&e.styleConfig["bear:hover"]),B=r(e.styleConfig&&e.styleConfig["bear:highlight"]),j=r(e.styleConfig&&e.styleConfig["bull:hover"]),V=r(e.styleConfig&&e.styleConfig["bull:highlight"]),W=r(c.style&&c.style.plot),H=r(e.styleConfig&&e.styleConfig.plot),G=r(c.style&&c.style["generic:hover"]),U=r(c.style&&c.style["generic:highlight"]),q=r(e.styleConfig&&e.styleConfig["plot:hover"]),Y=r(e.styleConfig&&e.styleConfig["plot:highlight"]);for(C in delete _.fill,delete W.fill,delete H.fill,"timeseries-ohlc"===this.getName()&&(delete H.stroke,delete _.stroke,delete W.stroke),[d,l.defaultBullStyle,_,W,H,E,x,I].reduce(f),[h,l.defaultBearStyle,_,W,H,T,w,F].reduce(f),[p,l.defaultBullHoverInStyle,S,G,q,O,L,j].reduce(f),[m,l.defaultBullHighlightStyle,M,U,Y,A,R,V].reduce(f),[g,l.defaultBearHoverInStyle,S,G,q,k,P,z].reduce(f),[v,l.defaultBearHighlightStyle,M,U,Y,D,N,B].reduce(f),d.stroke=(0,i.convertColor)(d.stroke,100*(0,i.pluckNumber)(d["stroke-opacity"],1)),d.fill=(0,i.convertColor)(d.fill,100*(0,i.pluckNumber)(d["fill-opacity"],1)),h.stroke=(0,i.convertColor)(h.stroke,100*(0,i.pluckNumber)(h["fill-opacity"],1)),h.fill=(0,i.convertColor)(h.fill,100*(0,i.pluckNumber)(h["fill-opacity"],1)),p.fill&&(p.fill=(0,i.convertColor)(p.fill,100*(0,i.pluckNumber)(p["fill-opacity"],d["fill-opacity"]))),p.stroke&&(p.stroke=(0,i.convertColor)(p.stroke,100*(0,i.pluckNumber)(p["stroke-opacity"],d["stroke-opacity"]))),g.fill&&(g.fill=(0,i.convertColor)(g.fill,100*(0,i.pluckNumber)(g["fill-opacity"],h["fill-opacity"]))),g.stroke&&(g.stroke=(0,i.convertColor)(g.stroke,100*(0,i.pluckNumber)(g["stroke-opacity"],h["stroke-opacity"]))),m.fill&&(m.fill=(0,i.convertColor)(m.fill,100*(0,i.pluckNumber)(m["fill-opacity"],d["fill-opacity"]))),m.stroke&&(m.stroke=(0,i.convertColor)(m.stroke,100*(0,i.pluckNumber)(m["stroke-opacity"],d["stroke-opacity"]))),g.fill&&(g.fill=(0,i.convertColor)(g.fill,100*(0,i.pluckNumber)(g["fill-opacity"],h["fill-opacity"]))),g.stroke&&(g.stroke=(0,i.convertColor)(g.stroke,100*(0,i.pluckNumber)(g["stroke-opacity"],h["stroke-opacity"]))),l.plotBorderThickness=h["stroke-width"]=d["stroke-width"]=(0,i.pluckNumber)((0,s.default)([h["stroke-width"],d["stroke-width"]],Number.parseFloat)),Object.assign(Object.assign({},p),m))y[C]=(0,i.pluck)(d[C],"");for(C in(0,i.defined)(y["stroke-dasharray"])&&(y["stroke-dasharray"]=""),Object.assign(Object.assign({},g),v))b[C]=h[C]||"";(0,i.defined)(b["stroke-dasharray"])&&(y["stroke-dasharray"]=""),l.bullOpacity=d.opacity,l["bull-fill-opacity"]=d["fill-opacity"],l["bull-stroke-opacity"]=d["stroke-opacity"],l.bearOpacity=h.opacity,l["bear-fill-opacity"]=h["fill-opacity"],l["bear-stroke-opacity"]=h["stroke-opacity"],delete d.opacity,delete d["fill-opacity"],delete d["stroke-opacity"],delete h.opacity,delete h["fill-opacity"],delete h["stroke-opacity"]}else l[t]=e[t];l.limit=this._calculateLimits();var X=this.getFromEnv("chart");X.setYScaleLimit(l.scaleY.getId(),this.getId(),l.limit.y,l.limit.baseRequired),X.setXScaleLimit(l.scaleX.getId(),this.getId(),l.limit.x)}this.parsePrediction(e)},n.parsePrediction=function(e){this.config.prediction=e.prediction||this.config.prediction,this.parsePredictiveStyleAttributes()},n.parsePredictiveStyleAttributes=function(){var e={},t=this.config;t.predictiveStyleAttributesBear={},t.predictiveStyleAttributesBull={},t.prediction.enabled&&(Object.assign(e,t.prediction.style.plot),Object.assign(t.predictiveStyleAttributesBear,t.defaultBearPredictiveStyle,t.prediction.style.plot,t.prediction.style.bear),Object.assign(t.predictiveStyleAttributesBull,t.defaultBullPredictiveStyle,t.prediction.style.plot,t.prediction.style.bull)),t.predictiveStyleAttributes=e||{}},n._calculateLimits=function(){var e,t=this.config,n=t.indices,r=t.data,o=t.scaleY,l=t.scaleX,c=t.calculateFromContext,u=r[0],d=r[r.length-1],h=l.showPlotOverTick(),p="visible"===this.config.visibility,f="log"===o.getType(),g=this.getFromEnv("chart"),m=c?g.getContextLimit():g.getFocusLimit(),v=m[0],y=m[1],b={},C=function(e){return f&&e<=0?null:e};return e=this.getPadding(),b.x=[u&&u[n[0]].start-e,d&&d[n[0]][h?"start":"end"]+e],b.y=p?[(0,s.default)(r,function(e){if(!(e[0].endy))return(0,s.default)([e[n[1]],e[n[2]],e[n[3]],e[n[4]]],C)}),(0,a.default)(r,function(e){if(!(e[0].endy))return(0,a.default)([e[n[1]],e[n[2]],e[n[3]],e[n[4]]],C)})]:i.UNDEF,b.baseRequired=!1,b},n._getRelevantInfo=function(e){var t,n,r,o=this.config;if(e!==i.UNDEF){var a="bull"===o.dataInfo[e].groupId?o.bullStyle:o.bearStyle;t=a.fill,r=a.stroke,"#ffffff"===(0,i.rgbaToHex)(t)&&(n={fill:r})}return{firstTimeStamp:o.firstTimeStamp,timeStampGap:o.timeStampGap,dataInfo:o.dataInfo,fill:t,stroke:r,text:n}},n._createContainer=function(){e.prototype._createContainer.call(this);var t=this.config,n=t.bullStyle,r=t.bearStyle;this.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:this,label:"group",id:"meso",attr:{name:"candlestick-dataset-meso"}}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:this,label:"group",id:"meso-bull",attr:Object.assign({name:"bullGroup-meso",visibility:t.visibility},n)}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:this,label:"group",id:"meso-bear",attr:Object.assign({name:"bearGroup-meso",visibility:t.visibility},r)}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:this,label:"group",id:"meso-bull-predictive",attr:Object.assign({name:"predictive-bullGroup-meso",visibility:t.visibility},n,t.predictiveStyleAttributesBull)}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:this,label:"group",id:"meso-bear-predictive",attr:Object.assign({name:"predictive-bearGroup-meso",visibility:t.visibility},r,t.predictiveStyleAttributesBear)})},n.getName=function(){return"timeseriesCandlestick"},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach(function(t,r){t.closeValuePx<=e.minValue&&t.closeValuePx>=e.maxValue&&n.push(r)}),n},n.allocatePosition=function(){var e,t,n,r,o,a,c,h,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k,D,P,N,L,R,F=this.getFromEnv("binDecider"),I=this.getFromEnv("xScale"),z=this.getFromEnv("yScale"),B=this.config,j=B.measures[0],V=B.indices,W=V[0],H=V[1],G=V[2],U=V[3],q=V[4],Y=this.getFromEnv("dateColumn"),X=this.getFromEnv("isUTC"),K=B.dataInfo,$=Y.format,Z=X?d.default.utcFormatter($):d.default.formatter($),J=I.bins,Q=F.getRangeThreshold()[2],ee=I.getDomain(),te=ee[0],ne=ee[1],re=B.data;if(B.repositioningDone=this._isRepositioningNeeded()){for(B.timeStampGap=Q,B.availableWidth=x=0,T=0,k=J.length;Tg?(h=M,c=S,p="bear"):(c=M,h=S,p="bull"),e=Math.max(Math.abs(h-c),1),o=c>h?h:c),a=I.getRangeValue(new Date(n.start),new Date(n.end)),(y={startDate:O,endDate:A}).x=r=a-t/2,y.endXPosition=r+t,y.midX=a,y.colHeight=e||0,y.colY=o||S||M,y.highStickYExtend=w,y.y=(0,s.default)([w,M,S,C]),y.closeValuePx=M,y.width=t,y.openValue=f,y.closeValue=g,y.highValue=m,y.lowValue=v,y.value=g,y.lowStickYEntend=C,P=B.formatterFn({value:f,type:"tooltip",prefix:B.prefix,suffix:B.suffix}),R=B.formatterFn({value:g,type:"tooltip",prefix:B.prefix,suffix:B.suffix}),N=B.formatterFn({value:m,type:"tooltip",prefix:B.prefix,suffix:B.suffix}),L=B.formatterFn({value:v,type:"tooltip",prefix:B.prefix,suffix:B.suffix}),y.eventArgs={index:d,start:O,startText:Z.format(O),end:A,endText:Z.format(A),binUnit:E.Unit,binMultiplier:E.number,plotType:B.type,timeFormatter:$,aggregation:B.aggregation,measure:j.close,measureHigh:j.high,measureLow:j.low,measureOpen:j.open,measuresClose:j.close,binValue:g,binOpen:f,binHigh:m,binLow:v,binClose:g,binValueFomatted:R,binOpenFormatted:P,binHighFormatted:N,binCloseFormatted:R,binLowFormatted:L};var x=(0,l.default)([S,M,w,C]);y.height=Math.abs(x[0]-x[1])||0,y.groupId=p||"bull",y.groupConfig="bull"===p?"bullConfig":"bearConfig",b=I.getBinIndex(n.start),K[b]=y}})}(_=B.hoverInfo)&&_.forEach(function(e){e.hoverIndices.forEach(function(t){"object"==typeof K[t]&&(K[t].style=(0,i.extend2)(K[t].style,e[K[t].groupId+"Style"]))})})},n._drawPlot=function(){var e,t,n=this,r=n.config,o=r.dataInfo,a=(0,i.defined)(r.bullOpacity),s=(0,i.defined)(r["bull-fill-opacity"]),l=(0,i.defined)(r["bull-stroke-opacity"]),c=r.predictiveStyleAttributesBull,u=(0,i.defined)(c.opacity),d=(0,i.defined)(c["fill-opacity"]),h=(0,i.defined)(c["stroke-opacity"]),p=(0,i.defined)(r.bearOpacity),f=(0,i.defined)(r["bear-fill-opacity"]),g=(0,i.defined)(r["bear-stroke-opacity"]),m=r.predictiveStyleAttributesBear,v=(0,i.defined)(m.opacity),y=(0,i.defined)(m["fill-opacity"]),b=(0,i.defined)(m["stroke-opacity"]),C={},w={},x=i.BLANKSTRING,_=!1,S=function(e,t){v&&(e.opacity=m.opacity),y&&(e.opacity=m["fill-opacity"]),b&&(e.opacity=m["stroke-opacity"]),u&&(t.opacity=c.opacity),d&&(t.opacity=c["fill-opacity"]),h&&(t.opacity=c["stroke-opacity"])};a&&(C.opacity=r.bullOpacity),s&&(C.opacity=r["bull-fill-opacity"]),l&&(C.opacity=r["bull-stroke-opacity"]),p&&(w.opacity=r.bearOpacity),f&&(w.opacity=r["bear-fill-opacity"]),g&&(w.opacity=r["bear-stroke-opacity"]),o.forEach(function(r,i){r.groupConfig&&(t="bull"===r.groupId?C:w,_=n.isPlotPredictive(r),x=_?r.groupId+"-predictive":r.groupId,r.colHeight>0?(e=Object.assign({x:r.x,y:r.colY,height:r.colHeight,width:r.width},t),r.style&&Object.assign(e,r.style),_&&S(w,C),n.addGraphicalElement({el:"rect",component:n,props:{index:i,dataLength:o.length},container:{label:"group",id:"meso-"+x},label:"rect",attr:e},!0)):(r.openValue||r.closeValue)&&(e=Object.assign({path:"M"+r.x+","+r.colY+",H"+(r.x+r.width)},t),r.style&&Object.assign(e,r.style),_&&S(w,C),n.addGraphicalElement({el:"path",component:n,props:{index:i,dataLength:o.length},container:{label:"group",id:"meso-"+x},label:"line",attr:e},!0)),r.highStickYExtend&&(e=Object.assign({path:"M"+r.midX+","+r.highStickYExtend+",V"+(r.colY||r.highStickYExtend+r.height),"stroke-linecap":"round"},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,props:{index:i,dataLength:o.length},container:{label:"group",id:"meso-"+r.groupId},label:"high",attr:e},!0)),r.lowStickYEntend&&(e=Object.assign({path:"M"+r.midX+","+r.lowStickYEntend+",V"+(r.colY+r.colHeight||r.lowStickYEntend-r.height),"stroke-linecap":"round"},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,props:{index:i,dataLength:o.length},container:{label:"group",id:"meso-"+r.groupId},label:"low",attr:e},!0)))}),r.hoverInfo=[]},n._getTooltext=function(e,t,n){var r,o,a=this.config,s=a.dataInfo[n],l=e?t?1:.5:1;return this._isInvalidTooltext(s)?"":(r=(0,i.defined)(s.groupConfig),o="
\n
"+(0,i.parseUnsafeString)(a.series)+"
\n
",r?(a.series?o:"")+["open","high","low","close"].reduce(function(e,t){var n=s[t+"TooltipValue"]||(s[t+"TooltipValue"]=s[t+"Value"]&&a.formatterFn({value:s[t+"Value"],type:"tooltip",prefix:a.prefix,suffix:a.suffix}));return e+(n!==i.UNDEF?"
\n
"+t+"
\n
"+n+"
\n
":"")},""):o)},t}(h.default);t.default=g},852:function(e,t,n){"use strict";function r(e){var t=/M(.*)V(.*)/g.exec(e),n=t[1],r=t[2];return{MX:parseFloat(n.split(",")[0]),MY:parseFloat(n.split(",")[1]),VY:r=parseFloat(r)}}t.__esModule=!0,t.default=void 0;var o={"initial.dataset.timeseriesCandlestick":function(){var e=this.getFromEnv("yScale").getRangeValue(0),t=-1,n=null,o=function(e,r){if(e===t)return n;var o=function(e,t){return{start:2e-5*e,end:1}}(e);return t=e,n=o,o};return{"rect.appearing":function(t){var n=t.props.index;return t.props.dataLength,[{initialAttr:{y:e},startEnd:function(){return o(n)},effect:"easeInOutQuart",slot:"middle"}]},"line.appearing":function(t){var n=t.attr.path,r=t.props.index,i=(t.props.dataLength,function(e){var t=/M(.*)H(.*)/g.exec(e),n=t[1],r=t[2];return{MX:parseFloat(n.split(",")[0]),MY:parseFloat(n.split(",")[1]),HX:r=parseFloat(r)}}(n));return[{initialAttr:{path:"M"+i.MX+","+e+"H"+i.HX},finalAttr:{path:"M"+i.MX+","+i.MY+"H"+i.HX},startEnd:function(){return o(r)},effect:"easeInOutQuart",slot:"middle"}]},"high.appearing":function(t){var n=t.attr.path,i=t.props.index,a=(t.props.dataLength,r(n));return[{initialAttr:{path:"M"+a.MX+","+e+"V"+(a.VY+(e-a.MY))},finalAttr:{path:"M"+a.MX+","+a.MY+"V"+a.VY},startEnd:function(){return o(i)},effect:"easeInOutQuart",slot:"middle"}]},"low.appearing":function(t){var n=t.attr.path,i=t.props.index,a=(t.props.dataLength,r(n));return[{initialAttr:{path:"M"+a.MX+","+e+"V"+(a.VY+(e-a.MY))},finalAttr:{path:"M"+a.MX+","+a.MY+"V"+a.VY},startEnd:function(){return o(i)},effect:"easeInOutQuart",slot:"middle"}]}}}};t.default=o},853:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=r(n(851)),a=r(n(777)),s=n(218),l=n(226),c=r(n(854)),u=r(n(473)),d=r(n(472)),h=r(n(285));(0,l.addDep)({name:"ohlcAnimation",type:"animationRule",extension:c.default});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var t=this.config;e.prototype.__setDefaultConfig.call(this),t.defaultBearStyle.stroke="868AC8",t.defaultBearPredictiveStyle={},t.defaultBullPredictiveStyle={}},n._getRelevantInfo=function(e){var t=this.config;return{firstTimeStamp:t.firstTimeStamp,timeStampGap:t.timeStampGap,dataInfo:t.dataInfo,fill:void 0!==e&&"bull"===t.dataInfo[e].groupId?t.bullStyle.stroke:t.bearStyle.stroke}},n._drawPlot=function(){var e,t,n=this,r=n.config,o=r.dataInfo,i=(0,s.defined)(r.bullOpacity),a=(0,s.defined)(r["bull-fill-opacity"]),l=(0,s.defined)(r["bull-stroke-opacity"]),c=r.predictiveStyleAttributesBull,u=(0,s.defined)(c.opacity),d=(0,s.defined)(c["fill-opacity"]),h=(0,s.defined)(c["stroke-opacity"]),p=(0,s.defined)(r.bearOpacity),f=(0,s.defined)(r["bear-fill-opacity"]),g=(0,s.defined)(r["bear-stroke-opacity"]),m=r.predictiveStyleAttributesBear,v=(0,s.defined)(m.opacity),y=(0,s.defined)(m["fill-opacity"]),b=(0,s.defined)(m["stroke-opacity"]),C={},w={},x="",_=!1;i&&(C.opacity=r.bullOpacity),a&&(C.opacity=r["bull-fill-opacity"]),l&&(C.opacity=r["bull-stroke-opacity"]),p&&(w.opacity=r.bearOpacity),f&&(w.opacity=r["bear-fill-opacity"]),g&&(w.opacity=r["bear-stroke-opacity"]),o.forEach(function(r,i){var a,s;r.groupConfig&&(_=n.isPlotPredictive(r),x=_?r.groupId+"-predictive":r.groupId,_&&(a=w,s=C,v&&(a.opacity=m.opacity),y&&(a.opacity=m["fill-opacity"]),b&&(a.opacity=m["stroke-opacity"]),u&&(s.opacity=c.opacity),d&&(s.opacity=c["fill-opacity"]),h&&(s.opacity=c["stroke-opacity"])),t="bull"===r.groupId?C:w,!!r.lowStickYEntend+!!r.highStickYExtend+!!r.open+!!r.close>1?"bull"===r.groupId?(e=Object.assign({path:"M"+r.midX+","+(r.highStickYExtend||r.open||r.close)+",V"+(r.lowStickYEntend||r.close||r.open),"stroke-linecap":"round"},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+x},props:{index:i,dataLength:o.length},label:"highlow",attr:e},!0)):(e=Object.assign({path:"M"+r.midX+","+(r.highStickYExtend||r.close)+",V"+(r.lowStickYEntend||r.open),"stroke-linecap":"round"},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+x},props:{index:i,dataLength:o.length},label:"highlow",attr:e},!0)):(r.lowStickYEntend||r.highStickYExtend)&&(e=Object.assign({path:"M"+r.midX+","+(r.lowStickYEntend||r.highStickYExtend)+",V"+(r.lowStickYEntend||r.highStickYExtend),"stroke-linecap":"round"},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+r.groupId},props:{index:i,dataLength:o.length},label:"highlow",attr:e},!0)),r.open&&(e=Object.assign({path:"M"+r.midX+","+r.open+",H"+r.leftExtend},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+x},props:{index:i,dataLength:o.length},label:"open",attr:e},!0)),r.close&&(e=Object.assign({path:"M"+r.midX+","+r.close+",H"+r.rightExtend},t),r.style&&Object.assign(e,r.style),n.addGraphicalElement({el:"path",component:n,container:{label:"group",id:"meso-"+x},props:{index:i,dataLength:o.length},label:"close",attr:e},!0),r.style=void 0))}),r.hoverInfo=[]},n.allocatePosition=function(){var e,t,n,r,o,i,l,c,p,f,g,m,v,y,b,C,w,x,_,S,M,E,O,A,T,k=this.getFromEnv("binDecider"),D=this.getFromEnv("xScale"),P=this.getFromEnv("yScale"),N=this.config,L=N.indices,R=L[0],F=L[1],I=L[2],z=L[3],B=L[4],j=N.dataInfo,V=this.getFromEnv("dateColumn"),W=this.getFromEnv("isUTC"),H=D.bins,G=N.data,U=V.format,q=N.measures[0],Y=W?h.default.utcFormatter(U):h.default.formatter(U);if(N.repositioningDone=this._isRepositioningNeeded()){for(N.timeStampGap=k.getRangeThreshold()[2],N.availableWidth=y=0,_=0,S=H.length;_o?"bear":"bull"),(p={startDate:w,endDate:x}).rightExtend=n+e/2,p.leftExtend=p.x=n-e/2,p.endXPosition=p.x+e,p.y=(0,u.default)([v,C,b,m]),p.closeValuePx=P.getRangeValue(o),p.width=e,p.close=b,p.openValue=r,p.closeValue=o,p.highValue=i,p.lowValue=l,p.value=o,p.open=C,p.midX=n,p.groupId=f||"bull",p.lowStickYEntend=m,p.highStickYExtend=v,E=N.formatterFn({value:r,type:"tooltip",prefix:N.prefix,suffix:N.suffix}),T=N.formatterFn({value:o,type:"tooltip",prefix:N.prefix,suffix:N.suffix}),O=N.formatterFn({value:i,type:"tooltip",prefix:N.prefix,suffix:N.suffix}),A=N.formatterFn({value:l,type:"tooltip",prefix:N.prefix,suffix:N.suffix}),p.eventArgs={index:g,start:w,startText:Y.format(w),end:x,endText:Y.format(x),binUnit:M.Unit,binMultiplier:M.number,plotType:N.type,timeFormatter:U,aggregation:N.aggregation,measure:q.close,measureHigh:q.high,measureLow:q.low,measureOpen:q.open,measuresClose:q.close,binValue:o,binOpen:r,binHigh:i,binLow:l,binClose:o,binValueFomatted:T,binOpenFormatted:E,binHighFormatted:O,binCloseFormatted:T,binLowFormatted:A};var y=(0,d.default)([C,b,v,m]);p.height=Math.abs(y[0]-y[1])||0,p.colY=p.height/2+v-10,p["stroke-width"]=(0,s.pluckNumber)(N["default-stroke-width"],1),p.groupConfig="bull"===f?"bullConfig":"bearConfig",c=D.getBinIndex(t.start),j[c]=p}})}(g=N.hoverInfo)&&g.forEach(function(e){e.hoverIndices.forEach(function(t){"object"==typeof j[t]&&(j[t].style=e[j[t].groupId+"Style"])})})},n.getName=function(){return"timeseries-ohlc"},t}(i.default);t.default=p},854:function(e,t,n){"use strict";function r(e,t){var n,r,o,i,a,s,l=/M(.*)V(.*)/g;return t&&(l=/M(.*)H(.*)/g),r=(n=l.exec(e))[1],t&&(s=n[2])||(o=n[2]),i=parseFloat(r.split(",")[0]),a=parseFloat(r.split(",")[1]),o=parseFloat(o),s=parseFloat(s),t?{MX:i,MY:a,HX:s}:{MX:i,MY:a,VY:o}}t.__esModule=!0,t.default=void 0;var o={"initial.dataset.timeseries-ohlc":function(){var e=this.getFromEnv("yScale").getRangeValue(0),t=-1,n=null,o=function(e,r){if(e===t)return n;var o=function(e,t){return{start:2e-5*e,end:1}}(e);return t=e,n=o,o};return{"highlow.appearing":function(t){var n=r(t.attr.path),i=t.props.index;return t.props.dataLength,[{initialAttr:{path:"M"+n.MX+","+e+"V"+(n.VY+(e-n.MY))},startEnd:o(i),effect:"easeInOutQuart"}]},"open.appearing":function(t){var n=r(t.attr.path,!0),i=t.props.index;return t.props.dataLength,[{initialAttr:{path:"M"+n.MX+","+e+"H"+n.HX},startEnd:o(i),effect:"easeInOutQuart"}]},"close.appearing":function(t){var n=r(t.attr.path,!0),i=t.props.index;return t.props.dataLength,[{initialAttr:{path:"M"+n.MX+","+e+"H"+n.HX},startEnd:o(i),effect:"easeInOutQuart"}]}}}};t.default=o},855:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(284)),i=r(n(478)),a=r(n(856)),s=r(n(857)),l=function(e,t){return e[t]},c=function(){function e(){this.keysAccessor=(0,i.default)([]),this.order=a.default,this.offset=s.default,this.valueAccessor=l}var t=e.prototype;return t.generate=function(e){var t,n,r=this.keysAccessor(e),o=e.length,i=r.length,a=new Array(i);for(t=0;t=0;)n[t]=t;return n}},857:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t){var n=e.length;if(n>1){var r,o,i,a=e[t[0]],s=a.length;for(o=1;o1){var r,o,i,a,s=e[t[0]].length,l=0,c=0;for(c=0;c=0?(r[0]=i,i+=o,r[1]=i):o<0?(r[1]=a,a+=o,r[0]=a):r[0]=i}}},859:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,t.default=function(e,t){var n=e.length;if(n>1){var r,o,i,a=e[t[0]],s=a.length;for(o=0;o0,Y=N.getRangeThreshold()[2],X=L.getDomain(),K=X[0],$=X[1];if(A.firstTimeStamp=V&&V[0]&&V[0][k]&&V[0][k].start,A.repositioningDone=this._isRepositioningNeeded()){if("visible"!==A.visibility)return;for(F=A.dataInfo=[],A.availableWidth=v=0,S=0,M=G.length;S0?-t*(x-B-_):t*(B-x+_),E=+L.getDomainValue(v*(A.plotSpacePercent/200))-+L.getDomainValue(0),A.actualStartDomain=+K+E,A.actualEndDomain=+$-E,q&&(t=Math.max(t-U,1)),V.forEach(function(l,u){n=l[k],o=Math.max(l[D],l[P]),i=Math.min(l[P],l[D]),y=n.config.duration,C=n.start,w=n.end,u||(A.firstTimeStamp=n.start),a=i,d=R.getRangeValue(a||Math.max(R.getDomain()[0],0)),s=R.getRangeValue(o),(0,c.default)(o)&&(0,c.default)(i)&&(0,c.default)(d)&&(0,c.default)(s)&&(r=L.getRangeValue(new Date(n.start),new Date(n.end)),q&&(r+=U/2),g=(r+=f)+t,e=Math.max(1,Math.abs(d-s)),O={startDate:C,endDate:w,high:o,low:i,highValue:o,lowValue:i,yBaseValue:a,yBase:d,x:r,endXPosition:g,y:s>d?d:s,width:t,height:e,eventArgs:{index:u,high:o,low:i,highValue:o,lowValue:i}},b={index:u,high:o,low:i,highValue:o,lowValue:i,start:C,startText:H.format(C),end:w,endText:H.format(w),binUnit:y.Unit,binMultiplier:y.number,plotType:A.type,timeFormatter:W,aggregation:A.aggregation,measure:A.measures[0]},O.eventArgs=b,p=L.getBinIndex(n.start),F[p]=O)})}(h=A.hoverInfo)&&h.forEach(function(e){e.hoverIndices.forEach(function(t){"object"==typeof F[t]&&"object"==typeof e.style&&(F[t].style=(0,u.extend2)(F[t].style,e.style))})})},n._calculateLimits=function(){return(0,d.calculateLimits)(this)},n.getName=function(){return"column-range"},n._getTooltext=function(e,t,n){return(0,d.getTooltext)(this,e,t,n)},t}(a.default);t.default=h},861:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.isWithinShape=function(e,t,n,r,o,i){var a,s,l,c,u,d;return e?(a=e.x,l=e.x,s=e.y,c=e.base,u=Math.sqrt(Math.pow(n-a,2)+Math.pow(r-s,2)),d=Math.sqrt(Math.pow(n-l,2)+Math.pow(r-c,2)),{pointIndex:t,hovered:u<=i||dx?null:(0,i.default)([e[r[1]],e[r[2]],e[r[3]],e[r[4]]],_)}),(0,a.default)(s,function(e){return e[0].endx?null:(0,a.default)([e[r[1]],e[r[2]],e[r[3]],e[r[4]]],_)})]:o.UNDEF,f.baseRequired=!0,f.type=l,f},t.getTooltext=function(e,t,n,r){var i=e.config,a=i.dataInfo[r],s=t?n?1:.5:1;return e._isInvalidTooltext(a)?"":"
\n "+["high","low"].reduce(function(e,t){var n=a[t+"TooltipValue"]||(a[t+"TooltipValue"]=a[t+"Value"]&&i.formatterFn({value:a[t+"Value"],type:"tooltip",prefix:i.prefix,suffix:i.suffix}));return e+(n!==o.UNDEF?"
\n
"+t+"
\n
"+n+"
\n
":"")},"")+"\n
"};var o=n(218),i=r(n(473)),a=r(n(474))},862:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(218),a=r(n(830)),s=n(226),l=n(222),c=r(n(777)),u=r(n(836)),d=r(n(839)),h=r(n(840)),p=r(n(838)),f=r(n(841)),g=r(n(285)),m=r(n(850)),v=r(n(829)),y=n(861),b=function(e,t){return(e+t)/2},C=function(e){return void 0===e&&(e=""),""===e?"M0,0":e},w=function(e){var t=e.x,n=e.y,r=e.width;return{y:n,height:e.height,x:t-.0625,width:r+.125}},x=function(e,t){return e+"M"+t.x+","+t.y+"L"+(t.x+t.width)+","+t.y+"L"+(t.x+t.width)+","+(t.y+t.height)+"L"+t.x+","+(t.y+t.height)+"Z"};function _(e){return"line"===e||"smooth-line"===e||"step-line"===e}(0,s.addDep)({name:"continuousAnimation",type:"animationRule",extension:m.default});var S=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.getName=function(){return"continuous-range"},n.getHighlightedIndices=function(e){var t=this.config.dataInfo,n=[];return t.forEach(function(t,r){t.base<=e.minValue&&t.y>=e.maxValue&&n.push(r)}),n},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t["default-stroke"]="9194CC",t["default-fill"]="9194CC",t["default-anchor-stroke"]=(0,l.convertColor)("#ffffff"),t.type="line",t.isRange=!0,t.plotStyle={},t.nullPlotStyle={},t.linePlotStyle={},t.nullLinePlotStyle={},t.areaPlotStyle={},t.nullAreaPlotStyle={},t.anchorStyle={},t.anchorHoverInStyle={},t.anchorHoverOutStyle={},t.anchorHighlightObj={},t.defaultLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":"none",fill:"none"},t.defaultNullLineStyle={"stroke-opacity":1,"stroke-width":2,"stroke-dasharray":[10,5],fill:"none"},t.defaultLinePredictiveStyle={"stroke-opacity":1,"stroke-width":1,"stroke-dasharray":5,fill:"none"},t.defaultAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.6},t.defaultNullAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.3},t.defaultAreaPredictiveStyle={"stroke-opacity":1,opacity:.5},t.defaultAnchorStyle={"fill-opacity":1,"stroke-width":1},t.willInjectNulls=!0},n.allocatePosition=function(){var e,t,n,r,o,s,l,m,v,y,_,S,M,E,O,A,T,k,D,P,N=this.config,L=N.indices,R=L[0],F=L[1],I=L[2],z=(N.seriesInfo,this.getFromEnv("dateColumn")),B=this.getFromEnv("isUTC"),j=N.type,V=N.data,W=N.dataInfo,H=[],G=this.getFromEnv("binDecider"),U=this.getFromEnv("xScale"),q=this.getFromEnv("yScale"),Y=G.getRangeThreshold()[2],X=Number.parseFloat(N.nullLinePlotStyle["stroke-width"]),K=Number.parseFloat(N.predictiveStyleAttributesLine["stroke-width"]),$=Number.parseFloat(N.linePlotStyle["stroke-width"]),Z=U.bins,J=V.length,Q=U.getDomain(),ee=Q[0],te=Q[1],ne=z.format,re=B?g.default.utcFormatter(ne):g.default.formatter(ne),oe=U.showPlotOverTick();if(N.firstTimeStamp=V&&V[0]&&V[0][R]&&V[0][R].start,N.repositioningDone=this._isRepositioningNeeded()){if("visible"!==N.visibility)return;for(W=N.dataInfo=[],N.timeStampGap=Y,N.availableWidth=0,E=0,O=Z.length;E1.5*Y&&H.push(null)}else J-a==1&&H.push(e);else N.willInjectNulls&&H.push(null)}),(t=new a.default(function(e){switch(j){case"area":case"area-range":case"smooth-area":case"step-area":return u.default;case"line":case"smooth-line":case"mean-line":case"step-line":default:return d.default}}()).setConnectUndefineds(N.connectNullData).setChunks({def:{clipAdjustment:$},undef:{clipAdjustment:X},predictive:{clipAdjustment:K}}).setCurve(function(e){switch(j){case"smooth-line":case"smooth-area":return f.default;case"step-area":case"step-line":return h.default;case"line":case"area":case"area-range":default:return p.default}}()).setDefined(function(e){return!!e}).setChunkDecider(function(e){return e.startDate>=N.prediction.dateMs?"predictive":"def"}).setXAccessor(function(e){return e.x}).setYAccessor(function(e){return e.y})).setYBaseAccessor(function(e){return e.base}),N.chunks=t.generate(H),N.path=C(N.chunks.def.path),N.clipPath=C(N.chunks.def.clipRects.map(w).reduce(x,"")),N.nullPath=C(N.chunks.undef.path),N.nullClipPath=C(N.chunks.undef.clipRects.map(w).reduce(x,"")),N.predictivePath=C(N.chunks.predictive.path),N.predictiveClipPath=C(N.chunks.predictive.clipRects.map(w).reduce(x,"")),N.topChunks=t.getLineChunkerYTop().generate(H),N.topPath=C(N.topChunks.def.path),N.topClipPath=C(N.topChunks.def.clipRects.map(w).reduce(x,"")),N.topNullPath=C(N.topChunks.undef.path),N.topNullClipPath=C(N.topChunks.undef.clipRects.map(w).reduce(x,"")),N.topPredictivePath=C(N.topChunks.predictive.path),N.topPredictiveClipPath=C(N.topChunks.predictive.clipRects.map(w).reduce(x,"")),N.bottomChunks=t.getLineChunkerYBase().generate(H),N.bottomPath=C(N.bottomChunks.def.path),N.bottomClipPath=C(N.bottomChunks.def.clipRects.map(w).reduce(x,"")),N.bottomNullPath=C(N.bottomChunks.undef.path),N.bottomNullClipPath=C(N.bottomChunks.undef.clipRects.map(w).reduce(x,"")),N.bottomPredictivePath=C(N.bottomChunks.predictive.path),N.bottomPredictiveClipPath=C(N.bottomChunks.predictive.clipRects.map(w).reduce(x,""))}},n._drawPlot=function(){var e,t=this,n=t.config,r=n.linePlotStyle,o=n.areaPlotStyle,a=n.nullLinePlotStyle,s=n.nullAreaPlotStyle,l=n.predictiveStyleAttributesLine,c=n.predictiveStyleAttributesArea,u=n.dataInfo;t.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:t,label:"group",id:"meso-line",attr:{name:"line-common-meso",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"thermo",label:"group"},component:t,label:"group",id:"thermo-line",attr:{name:"line-common-thermo",visibility:n.visibility}}),t.addGraphicalElement({el:"group",container:{id:"meso-line",label:"group"},component:t,label:"group",id:"meso-plot",attr:{name:"line-plot-meso",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-plot",attr:{name:"line-plot-thermo",visibility:n.visibility}},!0),t.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:t,label:"group",id:"thermo-anchor",attr:{name:"line-anchor-thermo",visibility:n.visibility}},!0),n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.nullPath,"clip-path":n.nullClipPath},_(n.type)?a:s),label:"path",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.path,"clip-path":n.clipPath},_(n.type)?r:o),label:"path",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.predictivePath,"clip-path":n.predictiveClipPath},_(n.type)?l:c),label:"path",component:t},!0),n.topPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topNullPath,"clip-path":n.topNullClipPath},a),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.topPath,"clip-path":n.topClipPath},r),label:"topPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.topPredictivePath,"clip-path":n.topPredictiveClipPath},l),label:"path",component:t},!0)),n.bottomPath&&(n.connectNullData&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.bottomNullPath,"clip-path":n.bottomNullClipPath},a),label:"topPath",component:t},!0),t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:n.bottomPath,"clip-path":n.bottomClipPath},r),label:"bottomPath",component:t},!0),n.prediction.enabled&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:n.bottomPredictivePath,"clip-path":n.bottomPredictiveClipPath},l),label:"path",component:t},!0)),"show"===n.mode?n.sharedAnchorIndices&&n.sharedAnchorIndices.length&&n.sharedAnchorIndices.forEach(function(r){e=u[r],n.lastShownIndices=n.sharedAnchorIndices,e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,i.polyPathToPath)([2,e.x,e.y,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+r,label:n.dsType+"-anchor"}),e&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,i.polyPathToPath)([2,e.x,e.base,n.radius,0,0]),visibility:"show"},n.isDsHovered?n.anchorHoverInStyle:n.isOtherDsHovered?n.anchorStyle:n.anchorHighlightObj),id:"shared-anchor-"+r,label:n.dsType+"-anchor"})}):n.hideIndices&&n.hideIndices.length&&n.hideIndices.forEach(function(r){(e=u[r])&&!isNaN(e.value)&&t.addGraphicalElement({el:"path",container:{label:"group",id:"meso-anchor"},attr:{visibility:"hidden"},id:"shared-anchor-"+r,label:n.dsType+"-anchor"})})},n._getHoveredPlot=function(e,t){var n,r,o,i,a,s,l=e,c=t,u=this.getFromEnv("xScale"),d=u.getRange(),h=[this.getChildren("dataMarker")],p=this.config,f="visible"===p.visibility,g=p.dataInfo,m=g.length,v=this.getLinkedParent().getTranslation(),b=v.x,C=v.y;if(c-=C,(l-=b)d[1])return{component:this};if(s=u.getBinIndex(u.getDomainValue(l)),r=Math.floor(Math.max(s,0)),o=Math.ceil(Math.min(s,m-1)),h.forEach(function(e){var t=e;!i&&t&&(t=t[0])&&(i=t._checkPointOverMarker(s,l,c,p.availableWidth))}),!i)for(a=o;a>=r&&(n=g[a],!(i=f?(0,y.isWithinShape)(n,a,l,c,this,5):{}).hovered);a--);return!i&&(i={}),i.hovered?i.binIndexHovered=i.pointIndex:(i.binIndexHovered=u.getBinIndex(u.getDomainValue(l)),i.pointObj=p.dataInfo[i.binIndexHovered]||u.getBinBounds(s),i.component=this),p.binIndexHovered=i.binIndexHovered,i},n._calculateLimits=function(){return(0,y.calculateLimits)(this)},n._getTooltext=function(e,t,n){return(0,y.getTooltext)(this,e,t,n)},t}(v.default);t.default=S},863:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(864));t.default=function(e){var t=e.attachChild(o.default,"verticalCrossLine"),n=e.getFromEnv("dataSource");t.configure({scale:e.config.xConfigs[0].scale,type:"vertical",timeFormatterFn:e.config.xConfigs[0].timeFormatterFn,inputStyle:n.crossline&&n.crossline.style||{}})}},864:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(218),s=r(n(777)),l="M",c="L",u="l",d="h",h="v",p=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.type="vertical",t.values=[],t._defaultLineStyle={stroke:"#9a9a9a","stroke-width":1,"stroke-opacity":1},t._defaultTextStyle={fill:"#ffffff","font-size":"10px","font-weight":"normal","font-style":"normal","text-anchor":"middle"},t._defaultTagStyle={fill:"#5f5f5f"},t._defaultPadding=2},n.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var n,r,o=this.config,i=this.getFromEnv("baseTextStyle"),a=this.getFromEnv("getStyleDef");for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);n=o.type,r=o.inputStyle,o._lineStyle=Object.assign({},o._defaultLineStyle,a(r.line),a(r[n+"-line"])),o._textStyle=Object.assign({},o._defaultTextStyle,i,a(r.label),a(r[n+"-label"])),o._tagStyle=Object.assign({},o._defaultTagStyle,a(r.tag),a(r[n+"-tag"]))},n.getPathArrs=function(){var e,t=this.config,n="vertical"===t.type,r=t.scale,o=t.values,i=[],a=this.getLinkedParent().config,s=a.padding,c=a.canvasLeft-s.left,u=a.canvasTop-s.top,p=a.canvasWidth,f=a.canvasHeight;return o.forEach(function(t){var o=r.getRangeValue(t);o&&(e=n?[l,o,u,h,f]:[l,c,o,d,p],i.push(e))}),i},n.drawVerticalCrosslineText=function(){var e,t,n,r,o=this,i=o.config,u=i.dateRange,p=i.timeFormatterFn({dateRange:u,type:"crossline"}),f=i.values,g=i.scale,m=(0,a.pluckNumber)(i.padding,i._defaultPadding),v=o.getLinkedParent().config,y=v.padding,b=v.canvasLeft-y.left,C=v.canvasTop-y.top,w=v.canvasWidth,x=C+v.canvasHeight,_=b+w,S=o.getFromEnv("smartLabel"),M=0;f.forEach(function(a,u){(0,s.default)(a)&&(S.setStyle(i._textStyle),n=S.getOriSize(p),t=g.getRangeValue(a),r="crossline-"+u,o.addGraphicalElement({el:"group",container:{id:"thermo",label:"thermo",isParent:!0},component:o,label:r,attr:{name:"veritcal-crossline-marker-group"},id:r}),t+n.width/2+2*m>_?(e=[l,t,x,c,t,x+m,h,n.height+2*m,d,-(n.width+4*m),h,-(n.height+2*m),c,t-m,x+m,"z"],i._textStyle["text-anchor"]="end",M=-2*m):t-n.width/2-2*mn[0].plot.length)&&"plot"}:{output:[],action:u}},C=function(e,t,n){var r=[],o=[];if((0,l.default)(e))r=v(e,t);else if((0,s.default)(e)){var i,c=b(e,t);r=c.output,(i=c.action)&&o.push(i)}else if((0,a.default)(e)){var u=function(e,t,n){var r,o=[],i=[];return e.forEach(function(e){(0,l.default)(e)?o=o.concat(v(e,t,n)):(0,s.default)(e)&&(r=b(e,t),o=o.concat(r.output),r.action&&i.push(r.action))}),{output:o,actions:i}}(e,t,n);r=u.output,o=u.actions}return{output:r,actions:o}};t.default=function(e,t,n){void 0===e&&(e=[]),void 0===n&&(n=!0);var r=[],o=[],i=0,c=(0,s.default)(t);if(t){var d=C(t,function(t){return e.indexOf(t)>=0});r=d.output,o=d.actions,i=r.length;var h=o.includes("axis");c?h&&(o=["fullaxis"]):(0,a.default)(t)&&is&&(a+=s,a-=s=a-s),[a=Math.max(i,a),s=Math.min(o,s)]))},t.filterStandarBinsToUserConfig=function(e){for(var t={},n=0;n=s?[c,a]:u<=l?[s,u]:[s,l]};var o=r(n(224))},874:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(803)),i=r(n(875)),a=r(n(412)),s=r(n(284)),l=r(n(849)),c=function(e,t){return(0,l.default)(t)&&function(e,t){return t>=0&&t0?o.filter(i).map(h):i(o)?[h(o)]:[]);return l.length?l:r(e,t)}},878:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(778)),i=n(218);t.default=function(e,t,n,r,a){void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=""),void 0===r&&(r=""),void 0===a&&(a="");var s=function(t){return(0,o.default)(t)&&e.indexOf(t)>=0?t:i.UNDEF},l=s(n),c=s(r),u=s(a);return t.map(function(e){var t=s(e.series)||l,n=s(e.stack)||c,r=s(e.group)||u;return e.plot=e.plot.map(function(e){var o=e.type;return"column"===o||/area/.test(o)?(e.stack=s(e.stack)||n||t,e.group=s(e.group)||r):(e.stack=s(e.stack)||n,e.group=s(e.group)||r||t),e}),e})}},879:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(880)),i=n(218);t.default=function(e){(0,i.componentFactory)(e,o.default,"background",1,[{}])}},880:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){this.config.backgroundCss={fill:"#ffffff"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,r=this.getFromEnv("chart-attrib"),o=r.style&&r.style.background;Object.keys(t).forEach(function(e){return n[e]=t[e]}),n.backgroundCss=Object.assign(n.backgroundCss,this.getFromEnv("getStyleDef")(o))},n.setDimension=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},n.draw=function(){var e=this.config;this.addGraphicalElement({el:"rect",attr:{x:0,y:0,height:e.height,width:e.width,transform:e.translate,opacity:e.backgroundCss.opacity},container:{id:"tropo",label:"group",isParent:!0},css:e.backgroundCss,component:this,id:"background",label:"rect"})},t}(n(233).SmartRenderer);t.default=i},881:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(803)),i=r(n(882)),a=n(218),s=r(n(868)),l=(0,o.default)({orientation:"bottom",align:"bottom",visible:!0,overlap:!0,dayinmajor:!0,stickycontextlabel:!1,scalemode:"random",skipinfo:{minor:!0},offset:{x:2,y:2}}),c=(0,o.default)({orientation:"left",align:"left",visible:!0,overlap:!1});t.default=function(e){var t,n,r=e.config,u=r.contextAxesX,d=r.contextAxesY,h=r.contextPanels.map(function(e){return(0,o.default)(e,{x:e.x.map(function(e){return(0,o.default)(l(e),(0,s.default)(u,e.index))}),y:e.y.map(function(e){return(0,o.default)(c(e),(0,o.default)((0,s.default)(d,e.index),{plottype:"line"}))})})}),p=r.contextTableMap;if(t=h.map(function(t,n){var s=(0,o.default)(t,{tableMap:p});return(0,a.componentFactory)(e,i.default,"timeNavigator",r.navigatorEnabled?1:0,[{contextScale:s.x[n].scale.copy(),xConfigs:s.x,yConfigs:s.y,plotConfigs:s.plots,dataTable:s.dataTable,tableMap:s.tableMap,focusScale:e.getFromEnv("focusScalesX")[0]}]),s}),r.contextPanels=t,n=e.getChildren("timeNavigator")&&e.getChildren("timeNavigator")[0]){if(!n||n.getState("removed"))return;n.attachHandlers(),n.addExtEventListener("focusLimitChanged",function(){n.asyncDraw()},e)}}},882:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=r(n(807)),s=r(n(829)),l=r(n(883)),c=r(n(884)),u=r(n(885)),d=r(n(285)),h=n(218),p={stroke:"#F1F1F1","stroke-width":"1","stroke-opacity":"1"},f=function(e){var t=e.config,n=e.getFromEnv("getStyleDef"),r=e.getFromEnv("chart-attrib"),o=t.xConfigs[0].style?t.xConfigs[0].style:{},i=Object.assign({},p,n(o["grid-line"]));e.attachChild(a.default,"canvas").configure({xConfigs:t.xConfigs,yConfigs:t.yConfigs,plotConfigs:t.plotConfigs,tableMap:t.tableMap,enableGridLines:!0,gridBandSupported:!1,gridLineDirection:"vertical",enableMarkers:!1,enableReferenceLine:!1,enableReferenceZone:!1,leftBorder:t.border.left,bottomBorder:t.border.bottom,topBorder:t.border.top,rightBorder:t.border.right,enableTimeMarkers:!1,styleGridLines:0,includeLegend:0,enableMouseTracking:0,isContext:!0,dataTable:t.dataTable,gridLineStyle:i,legendInteracted:t.legendInteracted,canvasStyle:n(r.style&&r.style.canvas)})},g=function(e){return e.scale},m=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t._translation={},t._scrollbarConfig={},t.registerFactory("timeNavigatorAxis",l.default),t.registerFactory("scrollbar",c.default),t.registerFactory("brush",u.default),t.registerFactory("canvas",f),t}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(t){void 0===t&&(t={}),e.prototype.__setDefaultConfig.call(this,t);var n=this.config;n.startX=0,n.startY=0,n.scrollbarHeight=18,n.scrollbarStart=-17.5,n.scrollbarButtonWidth=17,n.yScalePadding=20,n.formatter=d.default.formatter("%b %d, %Y"),n.border={left:1,right:1,top:1,bottom:0},n.labels={}},n.setContextScaleLimit=function(){var e=this.getFromEnv("contextBins")[0];this.config.contextScale.setBinMin(e.getBinMin()).setRangeThreshold(e.getRangeThreshold()).setDomain(this.getFromEnv("chart").getContextLimit())},n.setDimension=function(e){var t=this;void 0===e&&(e={});var n=this.config,r=this.getChildren("canvas")[0],o=this.getChildren("brush")[0],i=n.border;this._dimensions.width=(0,h.pluckNumber)(e.width,this._dimensions.width),this._dimensions.height=(0,h.pluckNumber)(e.height,this._dimensions.height),n.xConfigs.map(g).forEach(function(e){e.setRange([i.left,t._dimensions.width-(i.left+i.right)/2])}),n.contextScale.setRange(n.xConfigs[0].scale.getRange()),o.setBrushValue(this.getFromEnv("chart").getFocusLimit());var a=o.getLabelSpace();r.setDimension({left:n.startX,top:a,width:this._dimensions.width,height:Math.max(this._dimensions.height-a-n.scrollbarHeight,0)}),this.getChildren("timeAxis").forEach(function(e){e.setTranslation(0,a),e.placeAxis()}),n.yConfigs.map(g).forEach(function(e){return e.setRange([t._dimensions.height-n.scrollbarHeight-i.top-i.bottom,a])}),this.setChildDimension()},n.getPosition=function(){return{x:this.config._translateX,y:this.config._translateY}},n.setChildDimension=function(){var e=this.config,t=this.getChildren("brush")[0],n=t.getLabelSpace(),r=this.getChildren("scrollbar")[0],o=e.contextScale,i=o.getRange(),a=this.getFromEnv("chart").getFocusLimit().map(function(e){return o.getRangeValue(e)});t.setMaxBrushDimensions({x:i[0],y:n,width:i[1]-i[0],height:this._dimensions.height-n-e.scrollbarHeight}),t.setCurrentBrushDimensions({x:a[0],y:n,width:a[1]-a[0],height:this._dimensions.height-n-e.scrollbarHeight}),r.setDimension({x:e.scrollbarStart,y:this._dimensions.height-e.scrollbarHeight,height:e.scrollbarHeight,width:this._dimensions.width+2*e.scrollbarButtonWidth+1}),this.setScrollbarConfig("width",this._dimensions.width+2*e.scrollbarButtonWidth+1),r.config.scrollRatio=this.getScrollRatio(),this.setScrollbarConfig("scrollRatio",r.config.scrollRatio),r.config.scrollPosition=this.getScrollPosition(),this.setScrollbarConfig("scrollPosition",r.config.scrollPosition),this.setScrollbarConfig("height",e.scrollbarHeight)},n.getDimension=function(){return this._dimensions},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;Object.assign(n,t),this.setContextScaleLimit(),this.addToEnv("timeNavigator",this),this.addToEnv("timeNavigatorConfig",n)},n.attachHandlers=function(){var e,t,n,r=this;r.addEventListener("fc-mouseover",r.mouseoverHandler||(r.mouseoverHandler=function(){clearTimeout(r.mouseoutTimer),e=this.getChildren("brush")[0],t=e.getChildren("leftLabel")[0],n=e.getChildren("rightLabel")[0],t.config.showLabel||n.config.showLabel||(t.setData({showLabel:!0},!0),n.setData({showLabel:!0},!0))})),r.addEventListener("fc-mouseup",r.mouseupHandler||(r.mouseupHandler=function(){e.config.pointerReleasedOnParent=!0})),r.addEventListener("fc-mouseout",r.mouseoutHandler||(r.mouseoutHandler=function(){r.config.labelsGettingDragged||(r.mouseoutTimer=setTimeout(function(){t.setData({showLabel:!1},!0),n.setData({showLabel:!1},!0)},20))}))},n.draw=function(){this.addGraphicalElement({el:"group",container:{id:"tropo",label:"group",isParent:!0},component:this,label:"group",attr:{name:"timenav-tropo",transform:this.config.translate},id:"tropo"}),this.addGraphicalElement({el:"group",container:{id:"strato",label:"group",isParent:!0},component:this,label:"group",attr:{name:"timenav-strato",transform:this.config.translate},id:"strato"}),this.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:this,label:"group",attr:{name:"timenav-meso",transform:this.config.translate},id:"meso"}),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:this,label:"group",attr:{name:"timenav-thermo",transform:this.config.translate},id:"thermo"}),this.addGraphicalElement({el:"group",container:{id:"exo",label:"group",isParent:!0},component:this,label:"group",attr:{name:"timenav-exo",transform:this.config.translate},id:"exo"}),this.addGraphicalElement({el:"group",attr:{name:"time-axis-group"},id:"axisTopGroup",label:"group",container:{id:"strato",label:"group"},component:this},!0),this.addGraphicalElement({el:"group",attr:{name:"scrollbar-group"},id:"scrollbarContainer",label:"scrollbar",container:{id:"thermo",label:"group"},component:this},!0)},n.setScrollbarConfig=function(e,t){this._scrollbarConfig[e]=t},n.getScrollbarConfig=function(e){return e?this._scrollbarConfig[e]:this._scrollbarConfig},n.validateDomain=function(e,t,n){var r=e[0],o=e[1],i=this.config.contextScale,a=i.getRange(),s=this.getFromEnv("chart");if(r>o){var l=[o,r];r=l[0],o=l[1]}r=h.clampNumber.apply(void 0,[r].concat(a)),o=h.clampNumber.apply(void 0,[o].concat(a)),s.setPixelLimit([r,o],i,[].concat(t),{name:n.eventName,eventArgs:n.eventArgs,options:n.eventArgs})},n.getScrollRatio=function(){var e=this.getChildren("scrollbar")[0].config,t=this.getChildren("canvas")[0].config,n=t.leftBorder,r=t.rightBorder,o=e.width,i=e.height,a=2*Math.min(i,.5*o),s=(n+r)/o,l=(this.getChildren("brush")[0].getCurrentBrushDimensions().width+1)/Math.max(.001,o-a);return l>=1-s?1:l},n.getScrollPosition=function(){var e=this.getChildren("scrollbar")[0].config,t=e.width,n=e.height,r=2*Math.min(n,.5*t),o=this.getChildren("brush")[0],i=o.getCurrentBrushDimensions().x,a=o.getCurrentBrushDimensions().width,s=this.getScrollbarConfig("scrollRatio")*(t-r),l=t-(r+s);return(i+a/2-(r/2+s/2-this.config.scrollbarButtonWidth))/l},n.getDSdef=function(){return s.default},n.getName=function(){return"TimeNavigator"},t}(i.SmartRenderer);t.default=m},883:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(806));t.default=function(e){var t=e.getFromEnv("baseTextStyle");e.attachChild(o.default,"timeAxis"),e.getChildren("timeAxis").forEach(function(n){n.configure({skipinfo:{minor:!0},overlap:!0,validateLabelDimensions:1,offset:{x:2,y:2},style:{"label-major":Object.assign({fill:"#5f5f5f","font-size":11,"text-anchor":"start"},t),"label-minor":Object.assign({"text-anchor":"start"},t),"label-context":Object.assign({"text-anchor":"start"},t)},ticksize:0,domainline:!1,align:"top",dayinmajor:!0,stickycontextlabel:!1,scalemode:"random",scale:e.config.xConfigs[0].scale,tickvisibilitylimit:{start:void 0,end:void 0}})})}},884:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(357)),i=n(218),a="#e3e3e3",s="#e3e3e3",l="#"+(0,i.getDarkColor)(a,60),c="#"+(0,i.getDarkColor)(s,60);t.default=function(e){var t,n,r=e.attachChild(o.default,"scrollbar"),i=e.getFromEnv("chart"),u=e.config,d=u.contextScale,h=r.getFromEnv("dataSource"),p=r.getFromEnv("getStyleDef"),f=h.navigator&&h.navigator.scrollbar&&h.navigator.scrollbar.style||{},g={timeFormatter:u.formatter},m=Object.assign({forceFire:!0},g),v={formatter:"%b %d, %Y",action:"translate"};n={button:Object.assign({stroke:"none",fill:a},p(f.button)),arrow:Object.assign({fill:l},p(f.arrow)),scroller:Object.assign({stroke:"none",fill:s},p(f.scroller)),grip:Object.assign({stroke:c},p(f.grip)),track:Object.assign({stroke:"none",fill:"#f8f8f8"},p(f.track))},r.configure({isHorizontal:!0,displayFlat:!0,width:e.getScrollbarConfig("width"),height:e.getScrollbarConfig("height"),style:n,drawStripes:1,restrictScrollAnchor:0,scrollRatio:e.getScrollbarConfig("scrollRatio")}),r.attachEventHandlers({scroll:function(t){var n,r=e.getChildren("scrollbar")[0].config,o=r.width,a=r.height,s=e.getScrollbarConfig("scrollRatio"),l=Math.min(a,.5*o),c=(o-2*l)*s-1,u=r.x+l+.5+(o-2*l-c)*t;n=void 0>t?"down":"up",i.setPixelLimit([u,u+c],d,[n,n],{name:"timeNavBrush"})},scrollStart:function(){t=i.getFocusLimit(),i.getFromEnv("fireChartEvents")("timeNavBrushStart",[+t[0],+t[1]],v,m)},scrollEnd:function(){t=i.getFocusLimit(),i.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+t[0],+t[1]],v,m)}})}},885:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(886));t.default=function(e){var t=e.attachChild(o.default,"brush"),n=e.getFromEnv("dataSource");t.configure({values:e.config.values,style:n.navigator&&n.navigator.window&&n.navigator.window.style||{}})}},886:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=r(n(887)),s=r(n(888)),l=r(n(889)),c=function(e){function t(){var t;return(t=e.call(this)||this)._maxDimensions={},t._currDimensions={},t}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(t){void 0===t&&(t={}),e.prototype.__setDefaultConfig.call(this,t);var n=this.config;n.handleWidth=12,n.handleHeight=20},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t),this.config.style=t.style,this.createChildComponents()},n.setChildDimension=function(){var e=this.config,t=this.getChildren("selection")[0],n=this.getChildren("leftHandle")[0],r=this.getChildren("rightHandle")[0],o=this.getChildren("leftLabel")[0],i=this.getChildren("rightLabel")[0],a=this.getCurrentBrushDimensions(),s=a.x,l=a.x+a.width;t.setDimension({x:s,y:a.y,width:a.width,height:a.height}),n.setDimension({x:s-e.handleWidth,y:a.y+a.height/2-e.handleHeight/2,width:e.handleWidth,height:e.handleHeight}),r.setDimension({x:l,y:a.y+a.height/2-e.handleHeight/2,width:e.handleWidth,height:e.handleHeight}),o.setDimension({x:s,y:a.y}),i.setDimension({x:l,y:a.y})},n.getLabelSpace=function(){var e=this.getChildren("leftLabel")[0],t=this.getChildren("rightLabel")[0];return Math.max(e.getLabelDimension().height,t.getLabelDimension().height)},n.draw=function(){this.addGraphicalElement({el:"group",attr:{name:"brush-group"},id:"brushGroup",label:"brushGroup",component:this,container:{id:"exo",label:"group",isParent:!0}})},n.hideAllLabels=function(){var e=this.getChildren("leftLabel")[0],t=this.getChildren("rightLabel")[0];this.config.pointerReleasedOnParent||(e.config.showLabel=t.config.showLabel=!1,e.asyncDraw(),t.asyncDraw())},n.setBrushValue=function(e){var t=this.getChildren("leftLabel")[0],n=this.getChildren("rightLabel")[0];t.setValue(e[0]),n.setValue(e[1])},n.createChildComponents=function(){var e,t,n,r,o,i=this.config,c=this.getFromEnv("getStyleDef");(o=this.attachChild(l.default,"selection")).attachHandlers(),o.configure({orientation:"horizontal",style:{mask:c(i.style.mask)}}),(e=this.attachChild(a.default,"leftHandle")).attachHandlers(),e.configure({orientation:"horizontal",type:"leftHandle",style:{handle:c(i.style.handle),"handle-grip":c(i.style["handle-grip"])}}),(t=this.attachChild(a.default,"rightHandle")).attachHandlers(),t.configure({orientation:"horizontal",type:"rightHandle",style:{handle:c(i.style.handle),"handle-grip":c(i.style["handle-grip"])}}),(n=this.attachChild(s.default,"leftLabel")).attachHandlers(),n.configure({orientation:"horizontal",type:"leftLabel",style:{label:c(i.style.label),labelBg:c(i.style["label-background"])}}),(r=this.attachChild(s.default,"rightLabel")).attachHandlers(),r.configure({orientation:"horizontal",type:"rightLabel",style:{label:c(i.style.label),labelBg:c(i.style["label-background"])}})},n.setMaxBrushDimensions=function(e){this._maxDimensions=e},n.getMaxBrushDimensions=function(){return this._maxDimensions},n.setCurrentBrushDimensions=function(e){this._currDimensions=e,this.setChildDimension()},n.getCurrentBrushDimensions=function(){return this._currDimensions},t}(i.SmartRenderer);t.default=c},887:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(218),s=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t._defaultHandleStyle={fill:"#dfdfdf",stroke:"none",cursor:"ew-resize"},t._defaultHandleGripStyle={cursor:"ew-resize",stroke:"#808080","stroke-width":1,"stroke-linecap":"round"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config;n.style={handle:Object.assign({},n._defaultHandleStyle,t.style.handle),"handle-grip":Object.assign({},n._defaultHandleGripStyle,t.style["handle-grip"])},n.orientation=t.orientation,n.type=t.type},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,r,o,i,s,l,c=this,u=c.getLinkedParent(),d=u.getFromEnv("timeNavigator"),h=d.config,p=c.getFromEnv("chart"),f={timeFormatter:h.formatter},g=Object.assign({forceFire:!0},f),m={formatter:"%b %d, %Y",action:"scale"};c.addEventListener("fc-dragstart",c.dragstartHandler||(c.dragstartHandler=function(r){o=(0,a.getTouchEvent)(r).clientX,n=0,t=u.getCurrentBrushDimensions(),e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],m,g)})),c.addEventListener("fc-dragmove",c.dragmoveHandler||(c.dragmoveHandler=function(e){i=(0,a.getTouchEvent)(e).clientX-o,r=i>=n?"up":"down",n=i,"leftHandle"===c.config.type?(s=t.x+i,l=t.x+t.width):(s=t.x,l=t.x+t.width+i),c.getFromEnv("animationManager").setAnimationState("timenavSqueeze"),d.validateDomain([s,l],[r,r],{eventName:"timeNavBrush",eventArgs:m,options:f})})),c.addEventListener("fc-dragend",c.dragendHandler||(c.dragendHandler=function(t){e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],m,g)}))},n.draw=function(){var e=this.config,t=e.style.handle,n=e.style["handle-grip"],r=this.getDimension(),o=r.x,i=r.y,a=r.width,s=r.height;this.addGraphicalElement({el:"rect",attr:{x:o,y:i,width:a,height:s,opacity:t.opacity},css:t,label:"handleButton",component:this,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}),this.addGraphicalElement({el:"path",attr:{path:"M "+(o+3.5)+","+(i+6)+" v "+(s-12)+"\n M "+(o+6.5)+","+(i+6)+" v "+(s-12)},label:"handlePath",component:this,css:n,container:{id:"brushGroup",label:"brushGroup",isParent:!0}})},t}(i.SmartRenderer);t.default=s},888:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(218),s=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,o.default)(t,e);var n=t.prototype;return n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,r=this.getFromEnv("baseTextStyle");for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.style={label:Object.assign({},n._defaultLabelStyle,r,n.style.label),labelBg:Object.assign({},n._defaultLabelBgStyle,n.style.labelBg)}},n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showLabel=!1,t._defaultLabelStyle={fill:"#f3f3f3","font-size":"11px","font-weight":600,"vertical-align":"middle",cursor:"move"},t._defaultLabelBgStyle={fill:"#5f5f5f",cursor:"move"},t["border-horizontal-padding"]=5,t["border-vertical-padding"]=3},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,r,o,i,s,l,c,u=this,d=u.getFromEnv("animationManager"),h=u.getLinkedParent(),p=h.getFromEnv("timeNavigator"),f=p.config,g=p.getFromEnv("chart"),m={timeFormatter:f.formatter},v=Object.assign({forceFire:!0},m),y={formatter:"%b %d, %Y",action:"scale"};u.addEventListener("fc-dragstart",u.dragstartHandler||(u.dragstartHandler=function(r){o=(0,a.getTouchEvent)(r).clientX,i=0,t=h.getCurrentBrushDimensions(),p.config.labelsGettingDragged=!0,n=r.originalEvent.target,h.config.pointerReleasedOnParent=!1,e=g.getFocusLimit(),g.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],y,v)})),u.addEventListener("fc-dragmove",u.dragmoveHandler||(u.dragmoveHandler=function(e){d.setAnimationState("timenavSqueeze"),s=(0,a.getTouchEvent)(e).clientX-o,r=s>=i?"up":"down",i=s,"leftLabel"===u.config.type?(l=t.x+s,c=t.x+t.width):(l=t.x,c=t.x+t.width+s),p.validateDomain([l,c],[r,r],{eventName:"timeNavBrush",eventArgs:y,options:m})})),u.addEventListener("fc-dragend",u.dragendHandler||(u.dragendHandler=function(t){d.setAnimationState("timenavSqueeze"),p.config.labelsGettingDragged=!1,n!==t.originalEvent.target&&h.hideAllLabels(),e=g.getFocusLimit(),g.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],y,v)}))},n.setValue=function(e){this.config.value=e},n.getValue=function(){return this.config.value},n.getLabelDimension=function(){var e=this.config,t=this.getFromEnv("smartLabel"),n=this.getFromEnv("timeNavigatorConfig").formatter;return t.setStyle(e.style.label),t.getOriSize(n.format(e.value))},n.draw=function(){var e,t,n,r,o,i,a,s,l,c=this.config,u=c.style.label,d=c.style.labelBg,h=this.getLinkedParent(),p=this.getFromEnv("timeNavigatorConfig"),f=this.getFromEnv("smartLabel"),g=h.getMaxBrushDimensions(),m=this.getDimension(),v=m.x,y=p.formatter,b=this.getValue(),C=y.format(b),w=m.y;f.setStyle(u),n=f.getOriSize(C),"leftLabel"===c.type?v-n.width>=g.x?(t="end",e=1):(t="start",e=-1):v+n.width<=g.x+g.width?(t="start",e=-1):(t="end",e=1),u["text-anchor"]=t,c.showLabel&&(i=n.width,a=n.height,s=i+2*c["border-horizontal-padding"],l=a+2*c["border-vertical-padding"],r=v-e*c["border-horizontal-padding"],o=w-(a+2*c["border-vertical-padding"])/2,this.addGraphicalElement({el:"rect",attr:{x:"start"===t?v:v-s,y:w-l,width:s,height:l},css:d,shadow:[!0,1],label:"dragableLabelBackground",id:c.type+"dragableLabelBackground",component:this,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}),this.addGraphicalElement({el:"text",attr:{x:r,y:o,text:C},css:u,id:c.type+"dragableLabel",label:"dragableLabel",component:this,container:{id:"brushGroup",label:"brushGroup",isParent:!0}}))},t}(i.SmartRenderer);t.default=s},889:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(232)),i=n(233),a=n(218),s=["stroke","stroke-width","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-color"],l=function(e){function t(){var t;return(t=e.call(this)||this)._dimensions={},t}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.defaultStyle={fill:(0,a.toRaphaelColor)({FCcolor:{color:"#fdfdfd,#f7fffe",ratio:"0,100",angle:90,alpha:"50,50"}}),stroke:"#e3e3e3","stroke-width":1,opacity:1,"fill-opacity":.5,cursor:"move"}},n.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var n=this.config,r=n.defaultStyle;n.style=Object.assign({},r,t.style.mask),n.orientation=t.orientation},n.setDimension=function(e){this._dimensions=e},n.getDimension=function(){return this._dimensions},n.attachHandlers=function(){var e,t,n,r,o,i,s,l,c=this.getFromEnv("animationManager"),u=this.getLinkedParent(),d=u.getFromEnv("timeNavigator").config,h=d.contextScale,p=this.getFromEnv("chart"),f={timeFormatter:d.formatter},g=Object.assign({forceFire:!0},f),m={formatter:"%b %d, %Y",action:"translate"};this.addEventListener("fc-dragstart",this.dragstartHandler||(this.dragstartHandler=function(o){n=(0,a.getTouchEvent)(o).clientX,r=0,t=u.getCurrentBrushDimensions(),e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushStart",[+e[0],+e[1]],m,g)})),this.addEventListener("fc-dragmove",this.dragmoveHandler||(this.dragmoveHandler=function(e){c.setAnimationState("timenavScroll"),i=(0,a.getTouchEvent)(e).clientX-n,o=r>=i?"down":"up",r=i,s=t.x+i,l=s+t.width,p.setPixelLimit([s,l],h,[o,o],{name:"timeNavBrush",eventArgs:m,options:f})})),this.addEventListener("fc-dragend",this.dragendHandler||(this.dragendHandler=function(t){e=p.getFocusLimit(),p.getFromEnv("fireChartEvents")("timeNavBrushEnd",[+e[0],+e[1]],m,g)}))},n.draw=function(){var e,t=this.config,n=Object.assign({},t.style),r=Object.assign({},t.style),o=s.length,i=this.getDimension();for(e=0;e10&&(h=t.prevDim=Object.assign(e)),o<600&&(h.width+t.calendarIconDim.width)/i.props.width>.4&&(n="",h.width=0),t.label=n,{text:n,dim:h}},n.decideTimeInLabel=function(){var e,t=this,n=t.config;return t.getFromEnv("focusScalesX").forEach(function(r){d.includes(r.getBinMin()[0].name())&&(n.showTime=!0),d.includes(t.getFromEnv("focusBins")[0].getRangeThreshold()[0].name())&&(e=!0)}),e},n.getLogicalSpace=function(){var e,t=this.config,n=this.getChildren("manager")[0],r=t.width,o=t.height,i=t.marginTop,a=t.marginLeft,s=t.marginRight,l=t.marginBottom;return t.showTimeInLabel=this.decideTimeInLabel(),n.configure({showTime:t.showTime},!0),r=(e=this.getLabel().dim).width,o=e.height,(t.skipGraphics||t.isHidden||this.getState("removed"))&&(r=o=l=a=s=i=0),t.width=e.width,t.height=e.height,{width:r,height:o,marginLeft:a,marginBottom:l,marginRight:s,marginTop:i}},n.draw=function(){var e,t,n,r,o=this.config,i=this.getLinkedParent(),a=o.scalingParam;this.addGraphicalElement({el:"group",attr:{name:"range-selector-text",transform:"t"+o.x+", "+(o.y+i.props.height/2)},container:o.containerInfo,component:this,id:"group",label:"group"},!0),e=-1*(n=a*o.calendarIconDim.width)-5,t=3*(r=a*o.calendarIconDim.height)/4*-1,this.addGraphicalElement({el:"group",attr:{name:"range-selector-icon-group",transform:"t"+e+", "+t},container:{id:"group",label:"group"},component:this,label:"group",id:"icon-group"},!0),this.addGraphicalElement({el:"path",attr:{path:o.calendarIconPath,stroke:"none"},css:o._finalIconStyle,container:{id:"icon-group",label:"group"},component:this,label:"path",id:"icon"},!0),this.addGraphicalElement({el:"text",attr:{text:o.label,opacity:o._finalTextStyle.opacity},css:o._finalTextStyle,container:{id:"group",label:"group"},component:this,label:"text",id:"display"},!0),this.addGraphicalElement({el:"rect",attr:{class:"fc__crs__str",fill:l.TRACKER_FILL,x:e-5,y:-1*i.props.height/2,width:n+10+o.width,height:i.props.height,stroke:"none"},component:this,container:{label:"group",id:"group"},css:{cursor:"pointer"},label:"rect",id:"rect"}),o.containerPos={x:o.x-n/2-5*a,y:o.y+i.props.height/2+r}},n.removeDocumentListener=function(){var e=this.config;e.wrapper.off(document,"fc-click",e.documentClicked),e.wrapper.off(document,"keydown",this.keyDownHandler)},t}(s.Tool);t.default=h},893:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=t.formatDate=void 0;var o=r(n(235)),i=r(n(232)),a=n(233),s=r(n(894)),l=n(218),c=r(n(895)),u=r(n(896)),d=r(n(897)),h=r(n(412)),p="cal-".length,f=function(e){return(e<10?"0"+e:e)+""};t.formatDate=f;var g=function(e){function t(t){var n;return n=e.call(this,t)||this,(0,o.default)(n).addToEnv("fontParser",function(e){var t=parseFloat(e);return isNaN(t)?11:t}),n}(0,i.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.paddingLeft=10,e.paddingRight=10,e.paddingTop=15,e.paddingBottom=15,e.prevVisibility="hidden",e.contextStart={year:1970,month:1,day:1},e.contextEnd={year:2070,month:1,day:1},e.calendarDim={height:191,width:163},this._calendars={},e._backgroundStyle={"font-size":11+l.PXSTRING,"font-family":"Verdana,sans-serif",border:"1px solid #cdcdcd",position:"absolute","border-radius":"0px","overflow-y":"visible","background-color":"#ffffff"},e._mobileBgStyle=Object.assign({},e._backgroundStyle,{position:"fixed","overflow-y":"scroll","border-radius":"10px"}),e._pointerStyle={"font-size":11+l.PXSTRING,"font-family":"Verdana,sans-serif","border-left":"1px solid #cdcdcd","border-right":"0px solid #cdcdcd","border-top":"1px solid #cdcdcd","border-bottom":"0px solid #cdcdcd",transform:"rotate(45deg)","background-color":"#ffffff"}},n.configureAttributes=function(e){void 0===e&&(e={});var t,n,r,o,i,a,s=this.config,f=this.getCalendars(),g=this.getFromEnv("getStyleDef"),m=this.getFromEnv("baseTextStyle");if(Object.assign(s,e),t=s.extStyle,s.visibility!==s.prevVisibility?(n=!1,s.blockUpdate=!1):s.blockUpdate=!0,s.prevVisibility=s.visibility,"visible"!==s.visibility)return f.left&&(f.left.dispose(),delete f.left),void(f.right&&(f.right.dispose(),delete f.right));r={label:"From: ",date:s.leftCalSelectedDate,id:"left",labelStyle:t.label,inputStyle:t.input},o={label:"To: ",date:s.rightCalSelectedDate,id:"right",labelStyle:t.label,inputStyle:t.input},void 0!==n&&(r.tempDate=o.tempDate=n),this.attachChild(c.default,"left-date","left-date").configure(r),this.attachChild(c.default,"right-date","right-date").configure(o),s.showTime&&(this.attachChild(u.default,"left-time","left-time").configure({time:s.leftCalSelectedDate,labelStyle:t.label,selectStyle:t.select}),this.attachChild(u.default,"right-time","right-time").configure({time:s.rightCalSelectedDate,labelStyle:t.label,selectStyle:t.select})),i=t["button-apply"]?Object.assign({},m,t["button-apply"]):Object.assign({color:"#ffffff","font-size":11+l.PXSTRING},m),this.attachChild(d.default,"apply","apply").configure({label:"Apply",type:"submit",customStyle:i,buttonStyle:i,"button:hoverout":i,"button:hover":t["button-apply:hover"]||{}}),a=t["button-cancel"]?Object.assign({},m,t["button-cancel"]):Object.assign({backgroundColor:"#ffffff",color:"#7A7A7A",border:"0px","font-size":11+l.PXSTRING},m),this.attachChild(d.default,"cancel","cancel").configure({label:"Cancel",type:"cancel",customStyle:a,buttonStyle:a,"button:hoverout":a,"button:hover":t["button-cancel:hover"]||{}}),s._finalBackgroundStyle=Object.assign({},s._backgroundStyle,g(t.container)),s._finalMobileBgStyle=Object.assign({},s._mobileBgStyle,g(t.container)),s._finalPointerStyle=Object.assign({},s._pointerStyle,g(t.container)),s._finalPointerStyle.border&&(s._finalPointerStyle["border-left"]=s._finalPointerStyle["border-top"]=s._finalPointerStyle.border),s._finalPointerStyle["border-right"]=s._finalPointerStyle["border-bottom"]="0px",delete s._finalPointerStyle.border,s.calStyle=function(e,t){var n={};if((0,h.default)(e))for(var r in e)e.hasOwnProperty(r)&&r.startsWith("cal-")&&(n[r.substring(p)]=t(e[r]));return n}(s.extStyle,this.getFromEnv("getStyleDef"))},n.manageSpace=function(e){void 0===e&&(e="desktop"),"desktop"===e?this.manageSpaceLG():this.manageSpaceSM()},n.manageSpaceSM=function(){var e,t,n,r,o,i,a,s,l,c,u,d,h=this.config,p=document.documentElement.clientHeight,f=document.documentElement.clientWidth,g=.8*p,m={height:0,width:0},v={height:0,width:0},y=h.paddingTop,b=h.calendarDim;"visible"===h.visibility&&(e=this.getChildren("left-date")[0],t=this.getChildren("right-date")[0],n=this.getChildren("left-time"),r=this.getChildren("right-time"),a=this.getChildren("apply")[0],s=this.getChildren("cancel")[0],n&&(m=(n=n[0]).getDimension()),r&&(v=(r=r[0]).getDimension()),o=e.getDimension(),i=t.getDimension(),u=a.getDimension(),d=s.getDimension(),c=Math.max(b.width,o.width,i.width,m.width,v.width,u.width+d.width+8),e.setTranslation(50,y),l=50+c/2-b.width/2,y+=o.height+8,h.leftCalendarPosition={x:l,y:y},y+=b.height+8,n&&n.setTranslation(50,y),y+=m.height+16,t.setTranslation(50,y),l=50+c/2-b.width/2,y+=i.height+8,h.rightCalendarPosition={x:l,y:y},y+=b.height+8,r&&r.setTranslation(50,y),y+=v.height+8,a.setTranslation(50,y),s.setTranslation(50+u.width+8,y),g>y+u.height+h.paddingBottom?(h.height=y+u.height+h.paddingBottom,h.y=p/2-h.height/2):(h.height=g,h.y=.1*p),h.width=b.width+50+50,h.x=f/2-h.width/2)},n.manageSpaceLG=function(){var e,t,n,r,o,i,a,s,l,c,u,d,h=this.config,p=4,f={height:0,width:0},g={height:0,width:0},m=h.calendarDim,v=this.getLinkedParent().config.containerPos;"visible"===h.visibility&&(n=this.getChildren("left-date")[0],r=this.getChildren("right-date")[0],o=this.getChildren("left-time"),i=this.getChildren("right-time"),a=this.getChildren("apply")[0],s=this.getChildren("cancel")[0],o&&(f=(o=o[0]).getDimension()),i&&(g=(i=i[0]).getDimension()),!f.height&&(p=2),e=n.getDimension(),t=r.getDimension(),u=a.getDimension(),d=s.getDimension(),l=Math.max(f.width,e.width,m.width),h.leftCalendarPosition={x:h.paddingLeft,y:h.paddingTop+e.height+8},h.rightCalendarPosition={x:h.paddingLeft+l+25,y:h.paddingTop+t.height+8},n.setTranslation(h.paddingLeft,h.paddingTop),r.setTranslation(h.paddingLeft+l+25,h.paddingTop),o&&o.setTranslation(h.paddingLeft,h.leftCalendarPosition.y+m.height+16),i&&i.setTranslation(h.paddingLeft+l+25,h.rightCalendarPosition.y+m.height+16),a.setTranslation(h.paddingLeft,h.leftCalendarPosition.y+m.height+8*p+f.height),s.setTranslation(h.paddingLeft+u.width+5,h.leftCalendarPosition.y+m.height+8*p+f.height),c=Math.max(h.paddingLeft+u.width+5+d.width,h.rightCalendarPosition.x+m.width,h.paddingLeft+l+25+g.width,h.paddingLeft+l+25+t.width),h.width=c+h.paddingRight,h.height=h.leftCalendarPosition.y+m.height+u.height+8*p+f.height+h.paddingBottom,h.x=v.x-h.width/2,h.y=v.y+4)},n.isWithinWidget=function(e,t){var n=this.config,r=n.x,o=n.y,i=o+n.height,a=r+n.width;return e>r&&eo&&t=+r&&+i<=+o}(e,n.contextStart,n.contextEnd)?this.getChildren(t+"-date")[0].setData({},!0):(n[t+"CalSelectedDate"]=e,o.day=e.day,o.month=e.month,o.year=e.year,r[t]&&r[t].configure({selectedDate:e}))},n.submitData=function(e){void 0===e&&(e="cancel");var t,n,r,o,i=this.getLinkedParent(),a=i.getFromEnv("chart"),s=a.getFromEnv("contextScalesX")[0],l=[],c=this.getCalendars(),u=a.getFromEnv("UTC"),d=c.left.getDate(),h=c.right.getDate(),p=this.getChildren("left-time"),f=this.getChildren("right-time"),g={hours:0,minutes:0,seconds:0},m={hours:0,minutes:0,seconds:0};p&&(g=p[0].getTime()),f&&(m=f[0].getTime()),i.setData({},!0),"submit"===e&&(r=u?Date.UTC(d.year,d.month-1,d.day,g.hours,g.minutes,g.seconds):new Date(d.year,d.month-1,d.day,g.hours,g.minutes,g.seconds),o=u?Date.UTC(h.year,h.month-1,h.day,m.hours,m.minutes,m.seconds):new Date(h.year,h.month-1,h.day,m.hours,m.minutes,m.seconds),l.push(+r),l.push(+o),a.setFocusLimit(l),n=i.decideTimeInLabel(),t=s.getFormattedTime({dateRange:{startDate:r,endDate:o},type:"CRS",showTimeInLabel:n}).split(" - "),a.fireChartInstanceEvent("customRangeSelect",{start:+r,end:+o,startText:t[0],endText:t[1],formatter:"%b %d, %Y"+(n?", %H:%M:%S":"")})),i.removeDocumentListener()},t}(a.SmartRenderer);t.default=g},894:function(e,t,n){"use strict";var r;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=0)}([function(e,t,n){function r(e,t){for(var n=0;n=0;r--)N(t,n[r])},R=function(e){var t,n=e.info,r=n.weekStartingDay,o=e.graphic.dayElements;for(t=0;t<7;t++)o[t].innerHTML=n.weekLabel[(t+r)%7]},F=function(e){var t=e.classNames,n=e.info,r=n.selectedDate,o=n.active,i=n.startingPos,a=e.graphic,s=a.container,l=a.dateLiElements,c=a.dateElements;r.month===o.month&&r.year===o.year&&(L(s,t.selecteddatedefault),L(s,t.selecteddate),l[r.day+i-1].className+=A+t.selecteddatedefault,c[r.day+i-1].className+=A+t.selecteddate)},I=function(e,t){var n=t.appendTo,r=t.className,o=t.inline,i=t.id,a=t.innerHTML,s=t.events,l=document.createElement(e);if(r&&(l.className=r),o&&l.setAttribute("style",o),i&&(l.id=i),a&&(l.innerHTML=a),s)for(var c in s)l.addEventListener(c,s[c]),"click"===c&&(l["_"+c+"Handler"]=s[c],l.eventAttached=!0);return n&&n.appendChild(l),l},z=function(e,t){var n,r,o,i,a=e.graphic,s=e.info.weekLabel,l=a.dateElements,c=a.dayElements,u=a.dateLiElements,d=t["font-family"]&&" font-family: ".concat(t["font-family"],";")||"",h=e.classNames=Object.assign({},f,e._customCssClass),p=a.container=I("div",{appendTo:a.parentElement,inline:g+d,className:h.container,id:e.id}),O=a.calendarHeader=I("div",{appendTo:p,inline:m}),T=a.headerUl=I("ul",{appendTo:O,className:h["header-container"],inline:"height: 100% !important;"}),k=a.headerMonthLi=I("li",{appendTo:T,inline:v}),D=a.headerMonthUl=I("ul",{appendTo:k,className:h.header,inline:"height: 100% !important;"}),L=a.calendarSubHeader=I("div",{appendTo:p,inline:x}),R=a.weekDays=I("ul",{appendTo:L,className:h.subheader}),z=a.calendarBody=I("div",{appendTo:p,inline:S}),V=a.days=a.dayCell=I("ul",{appendTo:z,inline:"padding: 1px !important; margin: 0px !important;",className:h.body});for(P(p,e.style),P(T,E),P(R,E),P(V,E),P(D,E),a.prevMonth=I("li",{appendTo:D,inline:b+A+C+A,events:{click:function(){var t=e.info,n=e.graphic,r=(t.active&&t.active.month)-1,o=t.active&&t.active.year,i=t.rangeStart;r<1&&(r=12,o--),!i||o>i.year?(N(h.navinactive,n.prevMonth),N(h.navinactive,n.nextMonth),e.configure({active:{month:r,year:o},doNotUpdateStyle:!0})):o===i.year&&r>=i.month&&(N(h.navinactive,n.nextMonth),r===i.month&&(n.prevMonth.className+=A+h.navinactive),e.configure({active:{month:r,year:o},doNotUpdateStyle:!0}))}}}),a.prevMonthPointer=I("span",{appendTo:a.prevMonth,className:h.navprev,innerHTML:"❮"}),a.monthStrLi=I("li",{appendTo:D,inline:y}),a.monthStr=I("span",{appendTo:a.monthStrLi,className:h.headername}),a.nextMonth=I("li",{appendTo:D,inline:b+A+w+A,events:{click:function(){var t=e.info,n=e.graphic,r=(t.active&&t.active.month)+1,o=t.active&&t.active.year,i=t.rangeEnd;r>12&&(r=1,o++),!i||o5?h.weekend:""),i=A+(r>5?h.weekenddefault:""),n=I("li",{appendTo:R,inline:_,className:i}),n=I("span",{appendTo:n,innerHTML:s[r%7],inline:"display: block !important;",className:h.days+A+h.indexeddays+r%7+o}),c.push(n);for(var W=function(t){i=A+(t%7==5||t%7==6?h.weekenddefault:""),o=A+(t%7==5||t%7==6?h.weekend:""),n=I("li",{appendTo:V,inline:M,className:h.dateLI+i}),u.push(n),n=I("span",{appendTo:n,className:h.date+A+h.daycol+"-"+t%7+o,inline:"display: block !important; padding: 4px 0px !important;",innerHTML:" ",events:{click:function(){var n=e.info,r=e.events,o=n.selectedDate,i=n.active,a={day:t-n.startingPos+1,month:i.month,year:i.year};a.day>=1&&a.day<=n.curMonthInfo.end-n.startingPos&&B(a,n.rangeStart)&&j(a,n.rangeEnd)&&(o.day=a.day,o.month=a.month,o.year=a.year,F(e),r.onDateChange&&r.onDateChange(o))}}}),l.push(n)},H=0;H<42;H++)W(H)},B=function(e,t){var n=e.day,r=e.month,o=e.year;return!(t&&(t.year>o||t.year===o&&(t.month>r||t.month===r&&t.day>n)))},j=function(e,t){var n=e.day,r=e.month,o=e.year;return!(t&&(t.year0&&void 0!==arguments[0]?arguments[0]:{},t={},n=document.getElementById("fc__calendar__style"),r=n&&n.sheet;return r?(h.forEach(function(n){if(e.hasOwnProperty(n)||p[n]){var o=e[n]||p[n];if("string"==typeof o)t[n]=o;else if(l(o)){var i=function(e,t){var n="fc-cal-user-".concat(e),r="";for(e in t)t.hasOwnProperty(e)&&(r+="".concat(e,": ").concat(t[e],"; "));return{className:n,cssString:".".concat(n," { ").concat(r,"}")}}(n,o),a=i.className,c=i.cssString;if(!n.endsWith(":hover")&&(t[n]=a),!s.has(a)||s.get(a).cssStr!==c){var u=r.cssRules.length;s.has(a)&&(u=s.get(a).index,r.deleteRule(u)),s.set(a,{cssStr:c,index:u}),r.insertRule(c,u)}}}}),t):t},W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this,r=new Date,o={day:r.getDate(),month:r.getMonth()+1,year:r.getFullYear()};n._customCssClass={},n.graphic={parentElement:t.container||document.body,dateElements:[],dateLiElements:[],dayElements:[]},n.style={position:"absolute",top:"0px",left:"0px",width:300+O,overflow:"hidden"},n.id=t.id||D(),n.events={},n.info={selectedDate:o,active:{month:o.month,year:o.year},weekLabel:[].concat(u),monthLabel:[].concat(d),weekStartingDay:1,posX:0,posY:0,height:300,width:300,vAlignment:"top",hAlignment:"left",highlightClasses:[]},n._customCssClass=V(t.customCssClass),z(n,t),t.doNotUpdateStyle=!0,n.configure(t,!0)}var t,n;return t=e,(n=[{key:"configure",value:function(e,t){var n,r,o=this.graphic,i=this.events,s=this.info,l=this.style,u=e&&e.events,d=!1;e&&(e.doNotUpdateStyle||(this._customCssClass=V(e.customCssClass)),this.classNames=Object.assign({},f,this._customCssClass),e.container&&(n=document.getElementById(e.container))?(o.parentElement=n,n.appendChild(o.container)):e.container instanceof Element&&(o.parentElement=e.container),e.style&&e.style.position&&(l.position=e.style.position,P(o.container,l)),isNaN(r=Number(e.posX))||(s.posX=r,d=!0),isNaN(r=Number(e.posY))||(s.posY=r,d=!0),!isNaN(r=Number(e.width))&&r>300&&(s.width=r,l.width=r+O,d=!0),e.vAlignment&&(r=e.vAlignment.toLowerCase())&&T[r]!==a&&(s.vAlignment=r,d=!0),e.hAlignment&&(r=e.hAlignment.toLowerCase())&&k[r]!==a&&(s.hAlignment=r,d=!0),u&&("function"==typeof u.onDateChange&&(i.onDateChange=u.onDateChange),"function"==typeof u.onYearChange&&(i.onYearChange=u.onYearChange),"function"==typeof u.onMonthChange&&(i.onMonthChange=u.onMonthChange)),e.highlight?(s.highlight=e.highlight,t=!0):null===e.highlight&&(delete s.highlight,t=!0),(r=e.selectedDate)&&!isNaN(Date.parse(r.month+"/"+r.day+"/"+r.year))&&(s.selectedDate=e.selectedDate,s.active.month=s.selectedDate.month,s.active.year=s.selectedDate.year,t=!0),e.showInactiveMonths!==a&&(s.showInactiveMonths=!!e.showInactiveMonths),e.active&&(r={month:e.active.month||s.active.month,year:e.active.year||s.active.year},s.active.month===r.month&&s.active.year===r.year||!(s.showInactiveMonths||B(r,s.rangeStart)&&j(r,s.rangeEnd))||(s.active.month=r.month,s.active.year=r.year,t=!0)),e.monthLabel&&12===e.monthLabel.length&&(s.monthLabel=e.monthLabel,t=!0),e.weekLabel&&7===e.weekLabel.length&&(s.weekLabel=e.weekLabel,R(this)),e.weekStart!==a&&s.weekStartingDay!==e.weekStart&&(s.weekStartingDay=e.weekStart,R(this)),e.rangeStart&&B(s.selectedDate,e.rangeStart)?(s.rangeStart=e.rangeStart,t=!0):null===e.rangeStart&&(delete s.rangeStart,t=!0),e.rangeEnd&&j(s.selectedDate,e.rangeEnd)?(s.rangeEnd=e.rangeEnd,t=!0):null===e.rangeEnd&&(delete s.rangeEnd,t=!0),t&&function(e){var t,n,r,o,i,a,s,l,u,d,h=e.info,p=e.graphic,f=e.classNames,g=h.active,m=h.rangeStart,v=h.rangeEnd,y=h.weekStartingDay,b=h.highlight,C=h.highlightClasses,w=(h.showInactiveMonths,p.monthStr),x=(p.yearStr,p.dateElements),_=p.dateLiElements,S=p.container,M=p.prevMonth,E=p.prevMonthPointer,O=p.nextMonth,T=p.nextMonthPointer,k=(p.prevYear,p.nextYear,g.month),D=g.year,P=b&&b[D]&&b[D][k],R=new Date("".concat(k,"/1/").concat(D)).getDay(),z=h.startingPos=R-y+(y<=R?0:7),V=c[k-1]+((D%4==0&&D%100!=0||D%400==0)&&2===k?1:0),W=V+z,H=B({day:1,month:k,year:D},m),G=j({day:V,month:k,year:D},v),U=H?0:m.month===k&&m.year===D?m.day-1:V,q=G?V+1:v.month===k&&v.year===D?v.day+1:1,Y=m&&m.year===g.year&&m.month===g.month,X=v&&v.year===g.year&&v.month===g.month;for(h.curMonthInfo={start:R,end:W},s=p.calendarBody.children[0],L(S,f.normaldatedefault),L(S,f.selecteddatedefault),L(S,f.disableddatedefault),L(S,f.activedate),L(S,f.selecteddate),L(S,f.disableddate),L(S,f.navinactive),X?T.className+=A+f.navinactive:N(f.navinactive,O),Y?E.className+=A+f.navinactive:N(f.navinactive,M);C.length;)a=C.pop(),L(S,a);if(s.childElementCount<42)for(;s.childElementCount<42;)t=s.childElementCount,l=A+(t%7==5||t%7==6?f.weekenddefault:""),u=A+(t%7==5||t%7==6?f.weekend:""),d=I("li",{appendTo:s,className:l,events:{click:function(){var n=e.info,r=e.events,o=n.selectedDate,i=n.active,a={day:t-n.startingPos+1,month:i.month,year:i.year};a.day>=1&&a.day<=n.curMonthInfo.end-n.startingPos&&B(a,n.rangeStart)&&j(a,n.rangeEnd)&&(o.day=a.day,o.month=a.month,o.year=a.year,F(e),r.onDateChange&&r.onDateChange(o))}}}),_.push(d),d=I("span",{appendTo:d,className:f.date+A+f.daycol+"-"+t%7+u,innerHTML:" "}),x.push(d);for(w.innerHTML=h.monthLabel[k-1]+A+D,t=0,r=x.length;t=W?(o=new Date(D,k-1,t-z+1).getDate(),x[t].innerHTML=o<10?"0"+o:o,_[t].className+=A+f.disableddatedefault,x[t].className+=A+f.disableddate,_[t].eventAttached&&_[t].removeEventListener("click",x[t]._clickHandler),_[t].eventAttached=!1):(n=t-z+1,x[t].innerHTML=n<10?"0"+n:n,(i=P&&P[n])&&(a=A+f.highlightedDate,!0!==i&&(a+=A+i),C.push(a)),!_[t].eventAttached&&_[t].addEventListener("click",_[t]._clickHandler),_[t].eventAttached=!0,x[t].className+=A+(n<=U||n>=q?f.disableddate:f.activedate)+(i?a:""),_[t].className+=A+(n<=U||n>=q?f.disableddatedefault:f.normaldatedefault)+(i?a:""));F(e)}(this),d&&(l.left=s.posX+s.width*(k[s.hAlignment]||0)+O,s.height=o.container&&o.container.offsetHeight||300,l.top=s.posY+s.height*(T[s.vAlignment]||0)+O,P(o.container,l)))}},{key:"show",value:function(){var e=this.graphic.container;e.style.visibility="visible",e.style.opacity="1"}},{key:"hide",value:function(){var e=this.graphic.container;e.style.visibility="hidden",e.style.opacity="0"}},{key:"getDate",value:function(){return this.info.selectedDate}},{key:"addEventListner",value:function(e,t){"function"==typeof t&&this.events&&(this.events[e]=t)}},{key:"removeEventListner",value:function(e){this.events&&this.events[e]&&delete this.events[e]}},{key:"getDimension",value:function(){var e=this.graphic;return{width:e.container.offsetWidth,height:e.container.offsetHeight}}},{key:"dispose",value:function(){var e=this.graphic,t=e.parentElement,n=e.container;t.removeChild(n)}}])&&r(t.prototype,n),e}();t.default=W},function(e,t,n){e.exports=n(2)},function(e,t,n){n(3);var r=n(52);e.exports=r("String","startsWith")},function(e,t,n){var r=n(4),o=n(41),i=n(47),a=n(15),s=n(51),l="".startsWith,c=Math.min;r({target:"String",proto:!0,forced:!s("startsWith")},{startsWith:function(e){var t=String(a(this));i(e);var n=o(c(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return l?l.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(5),o=n(7).f,i=n(21),a=n(24),s=n(26),l=n(34),c=n(46);e.exports=function(e,t){var n,u,d,h,p,f=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!c(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,u,h,e)}}},function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n(6))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(8),o=n(10),i=n(11),a=n(12),s=n(16),l=n(18),c=n(19),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(9);e.exports=!r(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(13),o=n(15);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(9),o=n(14),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(8),o=n(9),i=n(20);e.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(5),o=n(17),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(8),o=n(22),i=n(11);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(8),o=n(19),i=n(23),a=n(16),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(17);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(5),o=n(25),i=n(21),a=n(18),s=n(26),l=n(28),c=n(29),u=c.get,d=c.enforce,h=String(l).split("toString");o("inspectSource",function(e){return l.call(e)}),(e.exports=function(e,t,n,o){var l=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),d(n).source=h.join("string"==typeof t?t:"")),e!==r?(l?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:s(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&u(this).source||l.call(this)})},function(e,t,n){var r=n(5),o=n(26),i=n(27),a=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(5),o=n(21);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=!1},function(e,t,n){var r=n(25);e.exports=r("native-function-to-string",Function.toString)},function(e,t,n){var r,o,i,a=n(30),s=n(5),l=n(17),c=n(21),u=n(18),d=n(31),h=n(33),p=s.WeakMap;if(a){var f=new p,g=f.get,m=f.has,v=f.set;r=function(e,t){return v.call(f,e,t),t},o=function(e){return g.call(f,e)||{}},i=function(e){return m.call(f,e)}}else{var y=d("state");h[y]=!0,r=function(e,t){return c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(5),o=n(28),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o.call(i))},function(e,t,n){var r=n(25),o=n(32),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(18),o=n(35),i=n(7),a=n(22);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,c=0;cl;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(12),o=n(41),i=n(43),a=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(42),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(42),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(9),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(48);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(17),o=n(14),i=n(49)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(5),o=n(25),i=n(32),a=n(50),s=r.Symbol,l=o("wks");e.exports=function(e){return l[e]||(l[e]=a&&s[e]||(a?s:i)("Symbol."+e))}},function(e,t,n){var r=n(9);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r=n(49)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},function(e,t,n){var r=n(5),o=n(53),i=Function.call;e.exports=function(e,t,n){return o(i,r[e].prototype[t],n)}},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){e.exports=n(56)},function(e,t,n){n(57);var r=n(52);e.exports=r("String","endsWith")},function(e,t,n){var r=n(4),o=n(41),i=n(47),a=n(15),s=n(51),l="".endsWith,c=Math.min;r({target:"String",proto:!0,forced:!s("endsWith")},{endsWith:function(e){var t=String(a(this));i(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),s=void 0===n?r:c(o(n),r),u=String(e);return l?l.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,n){e.exports=n(59)},function(e,t,n){n(60);var r=n(37);e.exports=r.Object.assign},function(e,t,n){var r=n(4),o=n(61);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(8),o=n(9),i=n(62),a=n(45),s=n(10),l=n(63),c=n(13),u=Object.assign;e.exports=!u||o(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=i(u({},t)).join("")})?function(e,t){for(var n=l(e),o=arguments.length,u=1,d=a.f,h=s.f;o>u;)for(var p,f=c(arguments[u++]),g=d?i(f).concat(d(f)):i(f),m=g.length,v=0;m>v;)p=g[v++],r&&!h.call(f,p)||(n[p]=f[p]);return n}:u},function(e,t,n){var r=n(39),o=n(44);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(15);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]);var o={attrs:{id:"fc__calendar__style"},hmr:!0,transform:void 0,insertInto:void 0};n(67)(r,o),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(66)(!1)).push([e.i,"",""])},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,r,o,i=e[1]||"",a=e[3];if(!a)return i;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),l=a.sources.map(function(e){return"/*# sourceURL=".concat(a.sourceRoot).concat(e," */")});return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return v(t,e.attrs),f(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=l||(l=m(t)),r=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),f(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],o=0;o')+") no-repeat 100% 100%",c=function(e){return(e<10?"0"+e:e)+""},u=function(e,t){void 0===t&&(t=-1);var n,r="";for(n=0;n<=e;n++)r+=n===t?'":'";return r},d=function(e){function t(){return e.apply(this,arguments)||this}(0,o.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.enabled=!0,e.label="Time: ",e._labelStyle={"font-size":"12px","font-weight":"normal","font-style":"normal",color:"#5f5f5f"},e._selectStyle={"font-size":"12px",border:"0",outline:"1px solid #efefef","outline-offset":"-1px",color:"#5f5f5f",width:s+a.PXSTRING,"padding-left":a.isIE11||a.isFirefox?"0px":"5px","padding-right":a.isIE11||a.isFirefox?"0px":"5px","padding-top":"5px","padding-bottom":"5px",background:l,"background-color":"#FFFFFF","-webkit-appearance":"none","-moz-appearance":"none","-o-appearance":"none","border-radius":"0px",appearance:"none"},a.isIE11&&delete e._selectStyle.background},n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,n=this.getFromEnv("getStyleDef"),r=this.getFromEnv("baseTextStyle");Object.assign(t,e),t._finalLabelStyle=Object.assign({},t._labelStyle,r,n(t.labelStyle)),t._finalSelectStyle=Object.assign({},t._selectStyle,r,n(t.selectStyle)),delete t._finalSelectStyle["line-height"]},n.getDimension=function(){var e,t,n=this.config,r=this.getFromEnv("fontParser"),o=r(n._finalSelectStyle["font-size"]),i=this.getFromEnv("smartLabel"),s=o<21?2:o<31?1.67:o<51?1.5:1.25;return i.setStyle(n._finalLabelStyle),e=n.labelDim=i.getOriSize(n.label),t=i.getOriSize(":").width,n.inputBoxWidth=Math.max(r(n._finalSelectStyle.width),2.6*o),n.inputBoxHeight=o*s,n.spacingMultiplier=o>30?2:1,n._finalSelectStyle.width=n.inputBoxWidth+a.PXSTRING,{width:e.width+3*t+3*n.inputBoxWidth+20,height:Math.max(e.height,n.inputBoxHeight)}},n.setTranslation=function(e,t){this.config.position={x:e,y:t}},n.getTime=function(){var e,t,n;return e=this.getGraphicalElement("hour-box","hour-box"),t=this.getGraphicalElement("minute-box","minute-box"),n=this.getGraphicalElement("second-box","second-box"),{hours:+e.element.value,minutes:+t.element.value,seconds:+n.element.value}},n.draw=function(){var e=this.config,t=e.position,n=e.labelDim,r=e.time||{},o=t.x,i=Math.abs(n.height-e.inputBoxHeight)/2;this.addGraphicalElement({el:"html",attr:{x:o,y:t.y,type:"label",text:e.label},component:this,css:e._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"time-label",id:"time-label"}),o+=n.width+5,this.addGraphicalElement({el:"html",attr:{x:o,y:t.y-i,type:"select",innerHTML:u(23,r.hours),class:"fc__select__time"},component:this,css:e._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"hour-box",id:"hour-box"}),o+=e.inputBoxWidth,this.addGraphicalElement({el:"html",attr:{x:o+3,y:t.y,type:"label",text:":"},component:this,css:e._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"semicolon-minute",id:"semicolon-minute"}),o+=10*e.spacingMultiplier,this.addGraphicalElement({el:"html",attr:{x:o,y:t.y-i,type:"select",innerHTML:u(59,r.minutes),class:"fc__select__time"},component:this,css:e._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"minute-box",id:"minute-box"}),o+=e.inputBoxWidth,this.addGraphicalElement({el:"html",attr:{x:o+3,y:t.y,type:"label",text:":"},component:this,css:e._finalLabelStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"semicolon-second",id:"semicolon-second"}),o+=10*e.spacingMultiplier,this.addGraphicalElement({el:"html",attr:{x:o,y:t.y-i,type:"select",innerHTML:u(59,r.seconds),class:"fc__select__time"},component:this,css:e._finalSelectStyle,container:{id:"box-container",label:"box-container",isParent:!0},label:"second-box",id:"second-box"})},t}(i.SmartRenderer);t.default=d},897:function(e,t,n){"use strict";var r=n(211);t.__esModule=!0,t.default=void 0;var o=r(n(217)),i=r(n(235)),a=r(n(232));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var l=function(e){function t(t){var n;n=e.call(this,t)||this;var r=(0,i.default)(n),o=r.config;return o.clickHandler=function(){r.getLinkedParent().submitData(o.type)},o.mouseoverHandler=function(){r.setData({buttonStyle:o["button:hover"]},!0)},o.mouseoutHandler=function(){r.config&&r.setData({buttonStyle:o["button:hoverout"]},!0)},r.addEventListener("fc-click",o.clickHandler),r.addEventListener("fc-mouseover",o.mouseoverHandler),r.addEventListener("fc-mouseout",o.mouseoutHandler),n}(0,a.default)(t,e);var n=t.prototype;return n.__setDefaultConfig=function(){var e=this.config;e.height=10,e.width=20,e.label="Apply",e._buttonStyle={"-webkit-border-radius":"2px",backgroundColor:"#5648D4",border:"1px solid #5648D4",borderRadius:"2px",color:"#60634E",cursor:"pointer",paddingTop:"1px",textAlign:"center",zIndex:21,display:"flex",width:66,height:22,"line-height":"9px","justify-content":"center","align-items":"center","font-size":"11px"},e.clickHandler=function(){this.getLinkedParent().submitData()}},n.configureAttributes=function(e){void 0===e&&(e={});var t=this.config,n=this.getFromEnv("getStyleDef");Object.assign(t,e),t._finalStyle=Object.assign({},t._buttonStyle,this.getFromEnv("baseTextStyle"),n(t.customStyle),n(t.buttonStyle))},n.getDimension=function(){var e=this.config,t=e._finalStyle["font-size"],n=this.getFromEnv("fontParser");return e.width=Math.max(+e._finalStyle.width||0,6*n(t)),e.height=Math.max(+e._finalStyle.height||0,2*n(t)),{width:e.width,height:e.height}},n.setTranslation=function(e,t){this.config.position={x:e,y:t}},n.draw=function(){var e=this.config,t=e.position,n=function(e){for(var t=1;t+k[1]||+_==+S)&&(i=void 0)):i=void 0,b.canvases.forEach(function(t){if(s=t===n,f=t.getTranslation(),O=void 0,t.getChildren("verticalCrossLine")[0].setData({values:i?[i]:[],showMarker:s,dateRange:{startDate:_,endDate:S}},!0),!(o=t.getChildren("dataset")||[]).length||"column"===o[0].getName()&&1!==o.length||!D.component||"dataset"!==D.component.getType()&&"dataMarker"!==D.component.getType()?y||o.forEach(function(e){e.setHoverOutEffect([h[e.getId()]])}):o.forEach(function(t){t._getHoveredPlot(e.data.chartX,e.data.chartY),E=y&&t._getHoveredBin(),v=h[t.getId()],(0,l.defined)(v)&&v!==E&&t.setHoverOutEffect([v]),h[t.getId()]=E,D.hovered&&s?D.component===t?t.setHoverInEffect([E],!0):"continuous"===t.getName()?t.setHoverInEffect([E],!1,!0):t.setHoverOutEffect([E]):t.setHoverInEffect([E],!1)}),g&&!s&&(C=t.getChildren("tooltipHover")[0],(w=C.config).showTooltip))if(p="",r=t.getFromEnv("toolTipController"),y&&D.component&&"dataset"===D.component.getType())if(o.forEach(function(e,t){E=e._getHoveredBin(),"visible"===e.config.visibility&&e.config.dataInfo[E]&&(O=e.config.dataInfo[E],p+=e._getTooltext(!1,!1,E),x=t)}),O){E=o[x]._getHoveredBin();var a=o[x]._getDateForToolText(E),c=a.header,d=a.body,m=D.component.getFromEnv("xScale").getRange();""!==(p=(0,u.createDivString)(P.headerStyleString,c)+(0,u.createDivString)(P.bodyStyleString,d+p))&&O.endXPosition>m[0]&&O.x=a:f[e]>=t[2]&&f[e]>=a},v=function(e,t){switch(e){case"year":return t?u.utcYear:d.timeYear;case"quarter":return t?u.utcQuarter:d.timeQuarter;case"month":return t?u.utcMonth:d.timeMonth;case"week":return t?u.utcWeek:d.timeWeek;case"day":return t?u.utcDay:d.timeDay;case"hour":return t?u.utcHour:d.timeHour;case"minute":return t?u.utcMinute:d.timeMinute;case"second":return t?u.utcSecond:d.timeSecond}},y=function(e){function t(){var t;t=e.call(this)||this;var n=(0,o.default)(t);return t._handler=function(){var e,t,r,o=this.getFromEnv("chart"),i=o.getFromEnv("focusScalesX")[0].applicableClippings,a=i.repeatClips,s=i.singleClips,l=this.config,c=l.multiplier,u=this.getFromEnv("isUTC"),d=l.unit,h=l.fixedAtEnd,f=l.fixedAtStart,g=l.text,m=o.getFocusLimit(),y=o.getContextLimit();n.config.clickedButtonDetails=l,this.getFromEnv("animationManager").setAnimationState("selectedRange"),r=h?y[1]:m[1],d&&c?(e=v(d,u),t=h?e.every(c).floor(r):e.offset(r,-c)):f&&(t=y[0]),+t=f[o]&&g[o].tilldateName&&m.call(this,o,t,n,!0,s)&&((r=(0,c.extend2)({},g[o])).fixedAtEnd=!0,r.fixedAtStart=!1,a.push(r));return a},n.getSelectionButtonConfig=function(){var e,t,n,r=this.config,o=this.getFromEnv("isUTC"),i=r.currentDomain,a=r.totalDomain,s=+i[1]-+i[0];if(t=o?u.utcYear:d.timeYear,e=o?u.utcMonth:d.timeMonth,n=o?u.utcDay:d.timeDay,r.lastSelectedButtonConfig)return{isTillDate:r.lastSelectedButtonConfig.fixedAtEnd&&!r.lastSelectedButtonConfig.fixedAtStart,isAllButton:r.lastSelectedButtonConfig.fixedAtEnd&&r.lastSelectedButtonConfig.fixedAtStart,isIntervalButton:!r.lastSelectedButtonConfig.fixedAtEnd&&!r.lastSelectedButtonConfig.fixedAtStart,multiplier:r.lastSelectedButtonConfig.multiplier,unit:r.lastSelectedButtonConfig.unit};if(s===+a[1]-+a[0])return{isAllButton:!0};if(this.areTillDateButtonsPossible()){if(s===+i[1]-+t.floor(i[1]))return{isTillDate:!0,multiplier:"1",unit:"year"};if(s===+i[1]-+e.floor(i[1]))return{isTillDate:!0,multiplier:"1",unit:"month"};if(s===+i[1]-+e.every(3).floor(i[1]))return{isTillDate:!0,multiplier:"3",unit:"month"};if(s===+i[1]-+n.every(7).floor(i[1]))return{isTillDate:!0,multiplier:"7",unit:"day"}}return this.getHighlightedIntervalButton(s)},n.getIntervalButtons=function(e,t,n,r,o){var i,a=[],s=f.length,l=[],c=[];if(o>0)for(i=0;i<5;i++){var u=Math.min(o,1+Math.floor(Number(g[i].multiplier)/4));c[i]=u,a.push(31536e6*g[i].multiplier+864e5*c[i])}for(i=s-1;i>0&&!(o>0&&i<5&&a[i]>=e)&&!(f[i]>=e);i--);return e&&(i<=0?((o>0?a[0]<=t:f[0]<=t)&&m.call(this,0,n,r)&&l.push(g[0]),(o>1?a[1]<=t:f[1]<=t)&&m.call(this,1,n,r)&&l.push(g[1])):i===s-1?(f[i-1]<=t&&m.call(this,i-1,n,r)&&l.push(g[i-1]),f[i]<=t&&m.call(this,i,n,r)&&l.push(g[i])):((o>0&&i<5?a[i-1]<=t:f[i-1]<=t)&&m.call(this,i-1,n,r)&&l.push(g[i-1]),(o>0&&i<5?a[i]<=t:f[i]<=t)&&m.call(this,i,n,r)&&l.push(g[i]),f[i+1]<=t&&m.call(this,i+1,n,r)&&l.push(g[i+1]))),l},n.getHighlightedIntervalButton=function(e){var t,n,r=this.config,o=r.intervalButtons,i=r.currentDomain,a=this.getFromEnv("isUTC"),s={};for(t=o.length-1;t>=0&&(n=v(o[t].unit,a),+i[1]!=+n.offset(i[0],o[t].multiplier));t--);return-1!==t&&(s=(0,c.extend2)({isIntervalButton:!0},g[t]),s={isIntervalButton:!0,unit:o[t].unit,multiplier:o[t].multiplier},r.lastSelectedButtonConfig=s),s},n.getToolInfo=function(){var e,t,n,r,o,i,a,c,u,d=this,p=d.config,f=d.getFromEnv("chart"),g=d.getFromEnv("selectorToolbar"),m={},v=d.getFromEnv("smartLabel"),y=p.stateStyle,b=(a=(i=y).activated.config.normal["font-size"]||0,c=i.activated.config.hover["font-size"]||0,u=i.pressed.config.normal["font-size"]||0,Math.max(parseFloat(a),parseFloat(c),parseFloat(u))+"px"||!1),C=y.activated.config.normal["font-family"],w=y.activated.config.normal["font-weight"],x=p.currentDomain,_=f.getContextLimit(),S=p.contextRangeThreshold,M=p.focusRangeThreshold,E=p.contextMinBin,O=p.focusMinBin,A=0,T=0,k=p.takeMaxSize,D=+x[1]-+x[0],P=function(e,t){var n,r,o=new Date(e),i=new Date(t),a=o.getFullYear(),s=i.getFullYear(),l=o.getMonth(),c=i.getMonth(),u=i.getDate(),d=0;for(l>1&&a++,(0===c||1===c&&u<29)&&s--,n=a;n<=s;)((r=n)%4==0&&r%100!=0||r%400==0)&&d++,n++;return d}(+x[0],+x[1]),N=+_[1]-+_[0],L="intervalToolBar-"+g.getId()+"-"+f.getId(),R="businessToolBar-"+g.getId()+"-"+f.getId(),F="allToolBar-"+g.getId()+"-"+f.getId(),I=p.intervalButtons=d.getIntervalButtons(D,N,M,O,P),z=p.tillDateButtons=d.getTillDateButtons(N,S,E);for(v.setStyle({fontSize:b,fontFamily:C,fontWeight:w}),I.forEach(function(e){var t=v.getOriSize(e.intervalName,!1),n=t.height,r=t.width;e.height=n,e.width=r,A=Math.max(n,A),T=Math.max(r,T)}),z.forEach(function(e){var t=v.getOriSize(e.tilldateName,!1),n=t.height,r=t.width;e.height=n,e.width=r,A=Math.max(n,A),T=Math.max(r,T)}),r=v.getOriSize("All",!1),A=Math.max(r.height,A),T=Math.max(r.width,T),o=d.getSelectionButtonConfig(),m[L]={type:"tool",def:h.default,configuration:{hAlign:"left",toolbarhdirection:1,child:{}}},e=0,t=I.length;e=0&&l.splice(t,1)}function f(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function m(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var l=s++;n=a||(a=f(t)),r=y.bind(null,n,l,!1),o=y.bind(null,n,l,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=c(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||"boolean"===typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return u(n,t),function(e){for(var o=[],i=0;i=0&&l.splice(t,1)}function f(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function m(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var l=s++;n=a||(a=f(t)),r=y.bind(null,n,l,!1),o=y.bind(null,n,l,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=c(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=f(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||"boolean"===typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return u(n,t),function(e){for(var o=[],i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1;if(t&&o&&!r){var i=!1;e.forEach(function(e){e.label||(i=!0)}),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach(function(t){e.datasets[e.props.datasetKeyProvider(t)]=t})}},{key:"updateChart",value:function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=i.default.helpers.configMerge(this.chartInstance.options,t));var r=this.getCurrentDatasets(),o=n.datasets||[];this.checkDatasets(r);var a=(0,s.default)(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=o.map(function(t){var n=a[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type&&t.data){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=d(t,["data"]);return p(p({},n),r)}return t});n.datasets;var l=d(n,["datasets"]);this.chartInstance.config.data=p(p({},this.chartInstance.config.data),l),this.chartInstance.update()}}},{key:"renderChart",value:function(){var e=this.props,t=e.options,r=e.legend,o=e.type,s=e.plugins,l=this.element,c=this.memoizeDataProps();"undefined"===typeof r||(0,a.default)(n.defaultProps.legend,r)||(t.legend=r),this.chartInstance=new i.default(l,{type:o,data:c,options:t,plugins:s})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,o=e.id;return r.default.createElement("canvas",{ref:this.ref,height:t,width:n,id:o,onClick:this.handleOnClick})}}]),n}();x(S,"getLabelAsKey",function(e){return e.label}),x(S,"propTypes",{data:o.default.oneOfType([o.default.object,o.default.func]).isRequired,getDatasetAtEvent:o.default.func,getElementAtEvent:o.default.func,getElementsAtEvent:o.default.func,height:o.default.number,legend:o.default.object,onElementsClick:o.default.func,options:o.default.object,plugins:o.default.arrayOf(o.default.object),redraw:o.default.bool,type:function(e,t,n){if(!i.default.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:o.default.number,datasetKeyProvider:o.default.func}),x(S,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:S.getLabelAsKey});var M=S;t.default=M;var E=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}]),n}();t.Doughnut=E;var O=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))}}]),n}();t.Pie=O;var A=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}]),n}();t.Line=A;var T=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))}}]),n}();t.Bar=T;var k=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}}]),n}();t.HorizontalBar=k;var D=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}]),n}();t.Radar=D;var P=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}]),n}();t.Polar=P;var N=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}]),n}();t.Bubble=N;var L=function(e){v(n,r["default"].Component);var t=b(n);function n(){return f(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(S,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}]),n}();t.Scatter=L;var R=i.default.defaults;t.defaults=R}).call(this,n(161))},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(42),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(209)(e))},function(e,t){function n(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){u.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}();f.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.default=f},function(e,t,n){"use strict";var r=n(54);t.__esModule=!0,t.default=void 0;var o=r(n(584)).default;t.default=o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(606);var r,o=(r=n(608))&&r.__esModule?r:{default:r};n(629);var i=o.default;t.default=i},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=n(631),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;ne+""?" animated moveDown":"":i[s].key>e+""?" animated moveUp":"",r=a.default.cloneElement(i[s],{className:"alert-with-icon"+l});else r=a.default.cloneElement(i[s],{className:"alert-with-icon"});o.push(r)}else void 0===n&&(r=a.default.cloneElement(i[s],{className:"alert-with-icon animated fadeOutUp"}),o.push(r));void 0===n&&setTimeout(function(){this.onDismiss(e,t,"noAnimate")}.bind(this),800),(i={})["notify"+t.toUpperCase()]=o,this.setState(i)}},{key:"notificationAlert",value:function(e){var t=this,n=this.state["notify"+e.place.toUpperCase()],r=n.length;n.length>0&&(r=-1!==e.place.indexOf("b")?parseInt(n[0].key,10)+1:parseInt(n[n.length-1].key,10)+1);var o=void 0;!1!==e.closeButton&&(o=function(){return t.onDismiss(r,e.place)});var i=a.default.createElement(s.Alert,{color:e.type,className:"alert-with-icon animated fadeInDown",toggle:o,key:r},void 0!==e.icon?a.default.createElement("span",{"data-notify":"icon",className:e.icon}):null,a.default.createElement("span",{"data-notify":"message"},e.message));-1!==e.place.indexOf("b")?n.unshift(i):n.push(i);var l={};l["notify"+e.place.toUpperCase()]=n,e.autoDismiss>0&&setTimeout(function(){this.onDismiss(r,e.place)}.bind(this),1e3*e.autoDismiss+1e3*(n.length-1)),this.setState(l)}},{key:"showAllNotifications",value:function(e){if(this.state["notify"+e.toUpperCase()].length>0){var t={display:"inline-block",margin:"0px auto",position:"fixed",transition:"all 0.5s ease-in-out",zIndex:"1031"};if(-1!==e.indexOf("t"))switch(t.top="20px",e){case"tl":t.left="20px";break;case"tc":t.left="0px",t.right="0px";break;case"tr":t.right="20px"}else switch(t.bottom="20px",e){case"bl":t.left="20px";break;case"bc":t.left="0px",t.right="0px";break;case"br":t.right="20px"}return a.default.createElement(s.Col,{xs:11,sm:4,style:t},this.state["notify"+e.toUpperCase()].map(function(e,t){return e}))}}},{key:"render",value:function(){return a.default.createElement("div",{ref:"notifications"},this.showAllNotifications("tl"),this.showAllNotifications("tc"),this.showAllNotifications("tr"),this.showAllNotifications("bl"),this.showAllNotifications("bc"),this.showAllNotifications("br"))}}]),t}();t.default=l},,function(e,t,n){"use strict";var r=n(134).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r=n(49),o=n.n(r),i=n(69),a=n.n(i);function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),i=t&&s(t),a=o||i;if(e&&s(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var d=0,h=r.length;h>=0;h--){var p=r[h];"."===p?l(r,h):".."===p?(l(r,h),d++):d&&(l(r,h),d--)}if(!a)for(;d--;d)r.unshift("..");!a||""===r[0]||r[0]&&s(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f};"function"===typeof Symbol&&Symbol.iterator;var u=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},h=function(e,t){return d(e,t)?e.substr(t.length):e},p=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},f=function(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},g=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(y,"Browser history needs a DOM");var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e.forceRefresh,s=void 0!==i&&i,l=e.getUserConfirmation,c=void 0===l?w:l,g=e.keyLength,M=void 0===g?6:g,E=e.basename?p(u(e.basename)):"",O=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return o()(!E||d(a,E),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+E+'".'),E&&(a=h(a,E)),m(a,r,n)},A=function(){return Math.random().toString(36).substr(2,M)},T=v(),k=function(e){_(H,e),H.length=t.length,T.notifyListeners(H.location,H.action)},D=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||L(O(e.state))},P=function(){L(O(S()))},N=!1,L=function(e){N?(N=!1,k()):T.confirmTransitionTo(e,"POP",c,function(t){t?k({action:"POP",location:e}):R(e)})},R=function(e){var t=H.location,n=I.indexOf(t.key);-1===n&&(n=0);var r=I.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(N=!0,B(o))},F=O(S()),I=[F.key],z=function(e){return E+f(e)},B=function(e){t.go(e)},j=0,V=function(e){1===(j+=e)?(b(window,"popstate",D),r&&b(window,"hashchange",P)):0===j&&(C(window,"popstate",D),r&&C(window,"hashchange",P))},W=!1,H={length:t.length,action:"POP",location:F,createHref:z,push:function(e,r){o()(!("object"===("undefined"===typeof e?"undefined":x(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=m(e,r,A(),H.location);T.confirmTransitionTo(i,"PUSH",c,function(e){if(e){var r=z(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=I.indexOf(H.location.key),u=I.slice(0,-1===c?0:c+1);u.push(i.key),I=u,k({action:"PUSH",location:i})}else o()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(e,r){o()(!("object"===("undefined"===typeof e?"undefined":x(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=m(e,r,A(),H.location);T.confirmTransitionTo(i,"REPLACE",c,function(e){if(e){var r=z(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=I.indexOf(H.location.key);-1!==c&&(I[c]=i.key),k({action:"REPLACE",location:i})}else o()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:B,goBack:function(){return B(-1)},goForward:function(){return B(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=T.setPrompt(e);return W||(V(1),W=!0),function(){return W&&(W=!1,V(-1)),t()}},listen:function(e){var t=T.appendListener(e);return V(1),function(){V(-1),t()}}};return H};Object.assign,"function"===typeof Symbol&&Symbol.iterator,Object.assign},function(e,t,n){"use strict";n.d(t,"a",function(){return x});var r=n(152),o=n.n(r),i=n(55),a=n.n(i),s=n(64),l=n.n(s),c=n(26),u=n.n(c),d=n(35),h=n.n(d),p=n(332),f=n.n(p),g=n(0),m=n(113),v=n(157),y=n(89),b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},C={},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ok.length&&k.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+L(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c
'},t.prototype.isConditionUiComplete=function(e){var t=e===ye.One,n=t?this.getCondition1Type():this.getCondition2Type(),r=t?this.eValueFrom1:this.eValueFrom2,o=t?this.eValueTo1:this.eValueTo2,i=this.stringToFloat(r.value),a=this.stringToFloat(o.value);return n!==Ae.EMPTY&&(!!this.doesFilterHaveHiddenInput(n)||(n===Ae.IN_RANGE?null!=i&&null!=a:null!=i))},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.stringToFloat=function(e){var t=d.makeNull(e);return t&&""===t.trim()&&(t=null),null!==t&&void 0!==t?parseFloat(t):null},t.prototype.createCondition=function(e){var n=e===ye.One,r=n?this.getCondition1Type():this.getCondition2Type(),o=n?this.eValueFrom1:this.eValueFrom2,i=this.stringToFloat(o.value),a=n?this.eValueTo1:this.eValueTo2,s=this.stringToFloat(a.value),l={filterType:t.FILTER_TYPE,type:r};return this.doesFilterHaveHiddenInput(r)||(l.filter=i,l.filterTo=s),l},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());d.setDisplayed(this.eValueFrom1,t);var n=this.showValueTo(this.getCondition1Type());d.setDisplayed(this.eValueTo1,n);var r=this.showValueFrom(this.getCondition2Type());d.setDisplayed(this.eValueFrom2,r);var o=this.showValueTo(this.getCondition2Type());d.setDisplayed(this.eValueTo2,o)},t.FILTER_TYPE="number",t.DEFAULT_FILTER_OPTIONS=[ke.EQUALS,ke.NOT_EQUAL,ke.LESS_THAN,ke.LESS_THAN_OR_EQUAL,ke.GREATER_THAN,ke.GREATER_THAN_OR_EQUAL,ke.IN_RANGE],vt([ge("eValueFrom1")],t.prototype,"eValueFrom1",void 0),vt([ge("eValueFrom2")],t.prototype,"eValueFrom2",void 0),vt([ge("eValueTo1")],t.prototype,"eValueTo1",void 0),vt([ge("eValueTo2")],t.prototype,"eValueTo2",void 0),t}(ke),bt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ct=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wt=function(e){function t(){return e.call(this)||this}return bt(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[LOADING...]",r("loadingOoo","Loading..."));this.setTemplate(o)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',Ct([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(ue),xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},St=function(e){function t(){return e.call(this)||this}return xt(t,e),t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,r=this.gridOptionsWrapper.getLocaleTextFunc(),o=n.replace("[NO_ROWS_TO_SHOW]",r("noRowsToShow","No Rows To Show"));this.setTemplate(o)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',_t([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(ue),Mt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(e){function t(){return e.call(this,'
')||this}return Mt(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=t},t}(he),Ot=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e){function t(){return e.call(this,'')||this}return Ot(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui().querySelector("input"),(d.isBrowserChrome()||e.filterParams&&e.filterParams.browserDatePicker)&&(d.isBrowserIE()?console.warn("ag-grid: browserDatePicker is specified to true, but it is not supported in IE 11, reverting to plain text date picker"):this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return d.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=d.serializeDateToYyyyMmDd(e,"-")},t}(ue),Tt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tt(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.getTextFromModel=function(e){if(!e)return null;if(e.operator){var t=e,n=this.conditionToString(t.condition1),r=this.conditionToString(t.condition2);return n+" "+t.operator+" "+r}var o=e;return this.conditionToString(o)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new Ce,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption();var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveHiddenInput=function(e){var t=this.optionsFactory.getCustomOption(e);return t&&t.hideFilterInput},t.prototype.isTypeEditable=function(e){return!this.doesFilterHaveHiddenInput(e)&&(e&&e!=Ae.IN_RANGE&&e!=Ae.EMPTY)},t}(ue),Dt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nt=function(e){function t(){return e.call(this,'')||this}return Dt(t,e),t.prototype.getDefaultFilterOptions=function(){return Ne.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==Ae.IN_RANGE?e.dateFrom+"-"+e.dateTo:null!=e.dateFrom?""+e.dateFrom:""+e.type},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent()},t.prototype.setEditable=function(e){d.setDisplayed(this.eDateWrapper,e),d.setDisplayed(this.eReadOnlyText,!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var r=this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var o=t;this.dateComp.setDate(d.parseYyyyMmDdToDate(o.dateFrom,"-"))}else this.dateComp.setDate(null);this.eReadOnlyText.value=""}else this.eReadOnlyText.value=this.getTextFromModel(t),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=this.dateComp.getDate(),n=d.serializeDateToYyyyMmDd(t,"-");this.params.parentFilterInstance(function(t){t&&t.onFloatingFilterChanged(e.getLastType(),n)})},t.prototype.createDateComponent=function(){var e=this,t=_e.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:d.debounce(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new be(this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc(function(){e.dateComp.destroy()})},Pt([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Pt([ge("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Pt([ge("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(kt),Lt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lt(t,e),t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.getValue=function(e){var t=e.value;return(t=d.makeNull(t))&&""===t.trim()&&(t=null),t},t.prototype.addValueChangedListeners=function(){var e=this,t=function(){return e.onUiChanged()};this.addDestroyableEventListener(this.eValue1,"input",t),this.addDestroyableEventListener(this.eValue2,"input",t)},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.comparator=this.textFilterParams.textCustomComparator?this.textFilterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.textFilterParams.textFormatter?this.textFilterParams.textFormatter:1==this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,this.addValueChangedListeners()},t.prototype.setConditionIntoUi=function(e,t){(t===ye.One?this.eValue1:this.eValue2).value=e?e.filter:null},t.prototype.createCondition=function(e){var n=e===ye.One,r=n?this.getCondition1Type():this.getCondition2Type(),o=n?this.eValue1:this.eValue2,i=this.getValue(o),a={filterType:t.FILTER_TYPE,type:r};return this.doesFilterHaveHiddenInput(r)||(a.filter=i),a},t.prototype.getFilterType=function(){return t.FILTER_TYPE},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.type===t.type},t.prototype.resetUiToDefaults=function(){e.prototype.resetUiToDefaults.call(this),this.eValue1.value=null,this.eValue2.value=null},t.prototype.setValueFromFloatingFilter=function(e){this.eValue1.value=e,this.eValue2.value=null},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===ye.One?"1":"2";return''},t.prototype.updateUiVisibility=function(){e.prototype.updateUiVisibility.call(this);var t=this.showValueFrom(this.getCondition1Type());d.setDisplayed(this.eInputWrapper1,t);var n=this.showValueFrom(this.getCondition2Type());d.setDisplayed(this.eInputWrapper2,n)},t.prototype.afterGuiAttached=function(){this.eValue1.focus()},t.prototype.isConditionUiComplete=function(e){var t=e===ye.One,n=t?this.getCondition1Type():this.getCondition2Type(),r=t?this.eValue1:this.eValue2;if(n===Ae.EMPTY)return!1;var o=this.getValue(r);return!!this.doesFilterHaveHiddenInput(n)||null!=o},t.prototype.individualConditionPasses=function(e,t){var n=t.filter,r=t.type,o=this.textFilterParams.valueGetter(e.node),i=this.formatter(o),a=this.optionsFactory.getCustomOption(r);if(a&&(null!=n||a.hideFilterInput))return a.test(n,i);if(null==o)return r===Ae.NOT_EQUAL||r===Ae.NOT_CONTAINS;var s=this.formatter(n);return this.comparator(r,i,s)},t.FILTER_TYPE="text",t.DEFAULT_FILTER_OPTIONS=[Ae.CONTAINS,Ae.NOT_CONTAINS,Ae.EQUALS,Ae.NOT_EQUAL,Ae.STARTS_WITH,Ae.ENDS_WITH],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,n,r){switch(e){case t.CONTAINS:return n.indexOf(r)>=0;case t.NOT_CONTAINS:return-1===n.indexOf(r);case t.EQUALS:return n===r;case t.NOT_EQUAL:return n!=r;case t.STARTS_WITH:return 0===n.indexOf(r);case t.ENDS_WITH:var o=n.lastIndexOf(r);return o>=0&&o===n.length-r.length;default:return console.warn("invalid filter type "+e),!1}},Rt([ge("eValue1")],t.prototype,"eValue1",void 0),Rt([ge("eValue2")],t.prototype,"eValue2",void 0),Rt([ge("eInputWrapper1")],t.prototype,"eInputWrapper1",void 0),Rt([ge("eInputWrapper2")],t.prototype,"eInputWrapper2",void 0),t}(Ae),It=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return It(t,e),t.prototype.postConstruct=function(){this.setTemplate('')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){if(!this.isEventFromFloatingFilter(t)){this.setLastTypeFromModel(e);var n=this.getTextFromModel(e);this.eFloatingFilterText.value=n;var r=this.canWeEditAfterModelFromParentFilter(e);this.setEditable(r)}},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=_e.isUseApplyButton(this.params.filterParams);var n=_e.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=d.debounce(this.syncUpWithParentFilter.bind(this),n);this.addDestroyableEventListener(this.eFloatingFilterText,"input",r),this.addDestroyableEventListener(this.eFloatingFilterText,"keypress",r),this.addDestroyableEventListener(this.eFloatingFilterText,"keydown",r);var o=t.column.getDefinition();o.filterParams&&o.filterParams.filterOptions&&1===o.filterParams.filterOptions.length&&"inRange"===o.filterParams.filterOptions[0]&&(this.eFloatingFilterText.disabled=!0)},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=this.eFloatingFilterText.value,r=d.isKeyPressed(e,o.KEY_ENTER);this.applyActive&&!r||this.params.parentFilterInstance(function(e){e&&e.onFloatingFilterChanged(t.getLastType(),n)})},t.prototype.setEditable=function(e){this.eFloatingFilterText.disabled=!e},zt([ge("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),zt([m],t.prototype,"postConstruct",null),t}(kt),jt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jt(t,e),t.prototype.getDefaultFilterOptions=function(){return yt.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e){return e.type==Ae.IN_RANGE?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Bt),Wt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wt(t,e),t.prototype.conditionToString=function(e){return null!=e.filter?""+e.filter:""+e.type},t.prototype.getDefaultFilterOptions=function(){return Ft.DEFAULT_FILTER_OPTIONS},t}(Bt),Gt=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(Ye||(Ye={}));var Ut,qt=function(){function e(){this.agGridDefaults={agDateInput:At,agColumnHeader:Ie,agColumnGroupHeader:je,agTextColumnFloatingFilter:Ht,agNumberColumnFloatingFilter:Vt,agDateColumnFloatingFilter:Nt,agAnimateShowChangeCellRenderer:et,agAnimateSlideCellRenderer:rt,agGroupCellRenderer:Ze,agGroupRowRenderer:Ze,agLoadingCellRenderer:at,agCellEditor:fe,agTextCellEditor:fe,agSelectCellEditor:ct,agPopupTextCellEditor:dt,agPopupSelectCellEditor:pt,agLargeTextCellEditor:gt,agTextColumnFilter:Ft,agNumberColumnFilter:yt,agDateColumnFilter:Ne,agLoadingOverlay:wt,agNoRowsOverlay:St,agTooltipComponent:Et},this.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},this.jsComponents={},this.frameworkComponents={}}return e.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Object.keys(this.gridOptions.components).forEach(function(t){e.registerComponent(t,e.gridOptions.components[t])}),null!=this.gridOptions.frameworkComponents&&Object.keys(this.gridOptions.frameworkComponents).forEach(function(t){e.registerFwComponent(t,e.gridOptions.frameworkComponents[t])})},e.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},e.prototype.registerComponent=function(e,t){var n=this.translateIfDeprecated(e);this.frameworkComponents[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComponents[n]=t},e.prototype.registerFwComponent=function(e,t){var n=this.translateIfDeprecated(e);this.jsComponents[n]?console.error("Trying to register a component that you have already registered for plain javascript: "+n):this.frameworkComponents[n]=t},e.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e);return this.frameworkComponents[t]?{componentFromFramework:!0,component:this.frameworkComponents[t],source:Ye.REGISTERED}:this.jsComponents[t]?{componentFromFramework:!1,component:this.jsComponents[t],source:Ye.REGISTERED}:this.agGridDefaults[t]?this.agGridDefaults[t]?{componentFromFramework:!1,component:this.agGridDefaults[t],source:Ye.DEFAULT}:null:(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("ag-Grid: Looking for component ["+t+"] but it wasn't found."),null)},e.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(d.doOnce(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+t.propertyHolder+":"+e+" to "+t.propertyHolder+":"+t.newComponentName)},"DEPRECATE_COMPONENT_"+e),t.newComponentName):e},Gt([b("gridOptions")],e.prototype,"gridOptions",void 0),Gt([b("context")],e.prototype,"context",void 0),Gt([m],e.prototype,"init",null),e=Gt([y("userComponentRegistry")],e)}(),Yt=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var n=0;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kt=function(e,t){return function(n,r){t(n,r,e)}},$t=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(z.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(z.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return d.iterateObject(this.selectedNodes,function(t,n){n&&e.push(n)}),e},e.prototype.getSelectedRows=function(){var e=[];return d.iterateObject(this.selectedNodes,function(t,n){n&&n.data&&e.push(n.data)}),e},e.prototype.removeGroupsFromSelection=function(){var e=this;d.iterateObject(this.selectedNodes,function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)})},e.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Yt(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst(function(e){e!==t&&e.calculateSelectedFromChildren()})}},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,n={},r=0;return d.iterateObject(this.selectedNodes,function(o,i){if(i&&i.id!==e.id){var a=t.selectedNodes[i.id];r+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),t.groupSelectsChildren&&i.parent&&(n[i.parent.id]=i.parent)}}),d.iterateObject(n,function(e,t){t.calculateSelectedFromChildren()}),r},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){d.exists(t)&&e.id!==t.id&&(d.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){d.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var r=0,o=n.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jt=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("ag-Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnController.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnController.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this.columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnController.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnController.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this.columnController.setColumnState(e,!1,"api")},e.prototype.getColumnState=function(){return this.columnController.getColumnState()},e.prototype.resetColumnState=function(){this.columnController.resetColumnState(!1,"api")},e.prototype.getColumnGroupState=function(){return this.columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnController.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnController.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnController.isPinningLeft()||this.columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnController.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnController.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnController.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnController.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnController.moveColumnByIndex(e,t,"api")):this.columnController.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnController.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnController.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n){void 0===n&&(n=!0),this.columnController.setColumnWidth(e,t,!1,n)},e.prototype.setPivotMode=function(e){this.columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnController.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnController.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnController.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnController.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnController.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnController.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnController.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnController.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnController.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnController.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnController.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnController.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnController.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnController.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnController.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e,t){return this.columnController.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){return this.columnController.autoSizeColumns(e,t,"api")},e.prototype.autoSizeAllColumns=function(e){this.columnController.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnController.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnController.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnController.getAllPrimaryColumns()},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnController.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this.columnController.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnController.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnController.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnController.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnController.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnController.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},Zt([b("columnController")],e.prototype,"columnController",void 0),e=Zt([y("columnApi")],e)}();(Ut=t.CellRangeType||(t.CellRangeType={}))[Ut.VALUE=0]="VALUE",Ut[Ut.DIMENSION=1]="DIMENSION";var Qt,en,tn,nn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rn=function(e,t){return function(n,r){t(n,r,e)}};(Qt=t.DragSourceType||(t.DragSourceType={}))[Qt.ToolPanel=0]="ToolPanel",Qt[Qt.HeaderCell=1]="HeaderCell",Qt[Qt.RowDrag=2]="RowDrag",Qt[Qt.ChartPanel=3]="ChartPanel",(en=t.VerticalDirection||(t.VerticalDirection={}))[en.Up=0]="Up",en[en.Down=1]="Down",(tn=t.HorizontalDirection||(t.HorizontalDirection={}))[tn.Left=0]="Left",tn[tn.Right=1]="Right";var on,an=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}var n;return n=e,e.prototype.init=function(){this.ePinnedIcon=d.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=d.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=d.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=d.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=d.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=d.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=d.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=d.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=d.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=d.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},e.prototype.removeDragSource=function(e){var t=d.find(this.dragSourceAndParamsList,function(t){return t.dragSource===e});t&&(this.dragService.removeDragSource(t.params),d.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach(function(t){return e.dragService.removeDragSource(t.params)}),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var n=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var o=d.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(o!==this.lastDropTarget)this.leaveLastTargetIfExists(e,n,r,t),this.enterDragTargetIfExists(o,e,n,r,t),this.lastDropTarget=o;else if(o){var i=this.createDropTargetEvent(o,e,n,r,t);o.onDragging(i)}},e.prototype.enterDragTargetIfExists=function(e,t,n,r,o){if(e){if(e.onDragEnter){var i=this.createDropTargetEvent(e,t,n,r,o);e.onDragEnter(i)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,n,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var o=this.createDropTargetEvent(this.lastDropTarget,e,t,n,r);this.lastDropTarget.onDragLeave(o)}this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],n=e.getSecondaryContainers?e.getSecondaryContainers():null;return n&&(t=t.concat(n)),t},e.prototype.isMouseOnDropTarget=function(e,t){var n=!1;return this.getAllContainersFromDropTarget(t).filter(function(e){return e}).forEach(function(t){var r=t.getBoundingClientRect();if(0!==r.width&&0!==r.height){var o=e.clientX>=r.left&&e.clientX<=r.right,i=e.clientY>=r.top&&e.clientY<=r.bottom;o&&i&&(n=!0)}}),n&&t.isInterestedIn(this.dragSource.type)},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.getHorizontalDirection=function(e){return this.eventLastTime.clientX>e.clientX?t.HorizontalDirection.Left:this.eventLastTime.clientXe.clientY?t.VerticalDirection.Up:this.eventLastTime.clientY0&&i+this.eGhost.clientWidth>n+l&&(i=n+l-this.eGhost.clientWidth),i<0&&(i=0),r>0&&o+this.eGhost.clientHeight>r+s&&(o=r+s-this.eGhost.clientHeight),o<0&&(o=0),this.eGhost.style.left=i+"px",this.eGhost.style.top=o+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=d.loadTemplate(n.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&d.addCssClass(this.eGhost,e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=d.escape(this.dragSource.dragItemName),this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var t=this.gridOptionsWrapper.getDocument();this.eGhostParent=t.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,t){var r;switch(void 0===t&&(t=!1),d.clearElement(this.eGhostIcon),e){case n.ICON_ADD:r=this.ePlusIcon;break;case n.ICON_PINNED:r=this.ePinnedIcon;break;case n.ICON_MOVE:r=this.eMoveIcon;break;case n.ICON_LEFT:r=this.eLeftIcon;break;case n.ICON_RIGHT:r=this.eRightIcon;break;case n.ICON_GROUP:r=this.eGroupIcon;break;case n.ICON_AGGREGATE:r=this.eAggregateIcon;break;case n.ICON_PIVOT:r=this.ePivotIcon;break;case n.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;default:r=this.eHiddenIcon}this.eGhostIcon.appendChild(r),d.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",t)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='
',nn([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),nn([b("dragService")],e.prototype,"dragService",void 0),nn([b("environment")],e.prototype,"environment",void 0),nn([m],e.prototype,"init",null),nn([rn(0,x("loggerFactory"))],e.prototype,"setBeans",null),nn([v],e.prototype,"destroy",null),e=n=nn([y("dragAndDropService")],e)}(),sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cn=function(e){function n(t,n,r,o){var i=e.call(this,'
')||this;return i.rowNode=t,i.column=n,i.cellValue=r,i.beans=o,i}return sn(n,e),n.prototype.postConstruct=function(){this.getGui().appendChild(d.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkCompatibility();var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new hn(this,this.beans,this.rowNode,this.column):new dn(this,this.beans,this.rowNode,this.column);this.addFeature(e,this.beans.context)},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&d.doOnce(function(){return console.warn("ag-Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(){var e=this,n={rowNode:this.rowNode},r={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:this.cellValue,getDragItem:function(){return n},dragStartPixels:0};this.beans.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc(function(){return e.beans.dragAndDropService.removeDragSource(r)})},ln([m],n.prototype,"postConstruct",null),n}(ue),un=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.column=r,o.rowNode=n,o}return sn(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=this.column.isRowDrag(this.rowNode);d.isFunction(this.column.getColDef().rowDrag)?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):this.parent.setDisplayed(t)}},t}(ae),dn=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return sn(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},ln([m],t.prototype,"postConstruct",null),t}(un),hn=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.beans=n,i}return sn(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.beans.eventService,z.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,z.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,z.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.updateSortActive(),this.updateFilterActive(),this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateRowGroupActive=function(){var e=this.beans.columnController.getRowGroupColumns();this.rowGroupActive=!d.missingOrEmpty(e)},t.prototype.onRowGroupChanged=function(){this.updateRowGroupActive(),this.workOutVisibility()},t.prototype.updateSortActive=function(){var e=this.beans.sortController.getSortModel();this.sortActive=!d.missingOrEmpty(e)},t.prototype.onSortChanged=function(){this.updateSortActive(),this.workOutVisibility()},t.prototype.updateFilterActive=function(){this.filterActive=this.beans.filterManager.isAnyFilterPresent()},t.prototype.onFilterChanged=function(){this.updateFilterActive(),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.sortActive||this.filterActive||this.rowGroupActive,t=this.beans.gridOptionsWrapper.isSuppressRowDrag(),n=e||t;this.setDisplayedOrVisible(n)},ln([m],t.prototype,"postConstruct",null),t}(un),pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gn=function(e){function t(t){var n=e.call(this,'
')||this;return n.getGuiCalledOnChild=!1,n.cellEditor=t,n}return pn(t,e),t.prototype.onKeyDown=function(e){d.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,e,this.params.node,this.params.column,!0)||this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(this.cellEditor.getGui()),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(n){var r=this;this.params=n,this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc(function(){r.cellEditor.destroy&&r.cellEditor.destroy()}),this.addDestroyableEventListener(e.prototype.getGui.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached()},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",fn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(he),mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yn=function(e){function t(t,n,r,o,i){var a=e.call(this,'
')||this;return a.rowNode=t,a.column=n,a.cellValue=r,a.beans=o,a.eCell=i,a}return mn(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(d.createIconNoSpan("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag,r=d.isBrowserIE();r||e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e}):function(){try{var n=JSON.stringify(t.rowNode.data);r?e.dataTransfer.setData("text",n):(e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n))}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},vn([m],t.prototype,"postConstruct",null),t}(ue),bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cn=function(){return(Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n",u="
"),t.push("'),t.push(c),d.exists(a,!0)&&t.push(a),t.push(u),t.push("
"),t.join("")},n.prototype.getStylesForRowSpanning=function(){return 1===this.rowSpan?"":"height: "+this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan+"px; z-index: 1;"},n.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setGui(t),this.addDomData(),this.populateTemplate(),this.createCellRendererInstance(!0),this.angular1Compile(),this.refreshHandle(),d.exists(this.tooltip)&&!this.beans.gridOptionsWrapper.isEnableBrowserTooltips()&&this.beans.tooltipManager.registerTooltip(this)},n.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);d.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},n.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?d.last(this.colsSpanning):this.column).getLeft()},n.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,t){return e+t.getActualWidth()},0):this.column.getActualWidth()},n.prototype.onFlashCells=function(e){var t=this.beans.cellPositionUtils.createId(this.cellPosition);e.cells[t]&&this.animateCell("highlight")},n.prototype.setupColSpan=function(){d.missing(this.getComponentHolder().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,z.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},n.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,r=this.column.getPinned(),o=0;n&&o0){var n=this.getRangeBorders();n.top&&e.push("ag-cell-range-top"),n.right&&e.push("ag-cell-range-right"),n.bottom&&e.push("ag-cell-range-bottom"),n.left&&e.push("ag-cell-range-left")}return this.selectionHandle&&e.push("ag-cell-range-handle"),e},n.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},n.prototype.onRangeSelectionChanged=function(){var e=this.beans.rangeController;if(e){var t=this.cellPosition,n=this.rangeCount,r=e.getCellRangeCount(t),o=this.getGui();n!==r&&(d.addOrRemoveCssClass(o,"ag-cell-range-selected",0!==r),d.addOrRemoveCssClass(o,"ag-cell-range-selected-1",1===r),d.addOrRemoveCssClass(o,"ag-cell-range-selected-2",2===r),d.addOrRemoveCssClass(o,"ag-cell-range-selected-3",3===r),d.addOrRemoveCssClass(o,"ag-cell-range-selected-4",r>=4),this.rangeCount=r);var i=this.getHasChartRange();i!==this.hasChartRange&&(this.hasChartRange=i,d.addOrRemoveCssClass(o,"ag-cell-range-chart",this.hasChartRange)),this.updateRangeBorders(),d.addOrRemoveCssClass(o,"ag-cell-range-single-cell",this.isSingleCell()),this.refreshHandle()}},n.prototype.getHasChartRange=function(){var e=this.beans.rangeController;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every(function(e){return d.includes([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)})},n.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,r=e.rangeController,o=r.getCellRanges(),i=o.length;if(this.rangeCount<1||i<1)return!1;var a=d.last(o),s=this.getCellPosition(),l=1===i&&(n.isEnableFillHandle()||n.isEnableRangeHandle())&&!this.editingCell;if(this.hasChartRange){var c=o[0].type===t.CellRangeType.DIMENSION&&r.isCellInSpecificRange(s,o[0]);d.addOrRemoveCssClass(this.getGui(),"ag-cell-range-chart-category",c),l=a.type===t.CellRangeType.VALUE}return l&&null!=a.endRow&&r.isContiguousRange(a)&&r.isLastCellOfRange(a,s)},n.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsWrapper,n=e.context,r=e.rangeController,o=d.last(r.getCellRanges()).type,i=t.isEnableFillHandle()&&d.missing(o)?"fill":"range";this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle.destroy(),this.selectionHandle=void 0),this.selectionHandle||(this.selectionHandle=n.createComponentFromElement(document.createElement("ag-"+i+"-handle"))),this.selectionHandle.refresh(this)},n.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},n.prototype.refreshHandle=function(){if(this.beans.rangeController){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle.destroy(),this.selectionHandle=null),e&&this.addSelectionHandle(),d.addOrRemoveCssClass(this.getGui(),"ag-cell-range-handle",!!this.selectionHandle)}},n.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,r=!t&&e.right,o=!t&&e.bottom,i=!t&&e.left,a=this.getGui();d.addOrRemoveCssClass(a,"ag-cell-range-top",n),d.addOrRemoveCssClass(a,"ag-cell-range-right",r),d.addOrRemoveCssClass(a,"ag-cell-range-bottom",o),d.addOrRemoveCssClass(a,"ag-cell-range-left",i)},n.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,d.addOrRemoveCssClass(this.getGui(),"ag-cell-first-right-pinned",e))},n.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,d.addOrRemoveCssClass(this.getGui(),"ag-cell-last-left-pinned",e))},n.prototype.populateTemplate=function(){this.usingWrapper?(this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper"),this.eCellValue=this.getRefElement("eCellValue"),this.includeRowDraggingComponent&&this.addRowDragging(),this.includeDndSourceComponent&&this.addDndSource(),this.includeSelectionComponent&&this.addSelectionCheckbox()):this.eParentOfValue=this.getGui()},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.addRowDragging=function(){var e=this.beans.gridOptionsWrapper.isPagination(),t=this.beans.gridOptionsWrapper.isRowDragManaged(),n=this.beans.gridOptionsWrapper.isRowModelDefault();if(t){if(!n)return void d.doOnce(function(){return console.warn("ag-Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");if(e)return void d.doOnce(function(){return console.warn("ag-Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging")}var r=new cn(this.rowNode,this.column,this.getValueToUse(),this.beans);this.addFeature(r,this.beans.context),this.eCellWrapper.insertBefore(r.getGui(),this.eParentOfValue)},n.prototype.addDndSource=function(){var e=new yn(this.rowNode,this.column,this.getValueToUse(),this.beans,this.getGui());this.addFeature(e,this.beans.context),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addSelectionCheckbox=function(){var e=new Ue;this.beans.context.wireBean(e);var t=this.getComponentHolder().checkboxSelection;t="function"===typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc(function(){return e.destroy()}),this.eCellWrapper.insertBefore(e.getGui(),this.eParentOfValue)},n.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc(function(){return e.beans.gridOptionsWrapper.setDomData(t,n.DOM_DATA_KEY_CELL_COMP,null)})},n.prototype.isSingleCell=function(){var e=this.beans.rangeController;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},n.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.cellPosition);t!==this.cellFocused&&(!this.beans.gridOptionsWrapper.isSuppressCellSelection()&&d.addOrRemoveCssClass(this.getGui(),"ag-cell-focus",t),this.cellFocused=t);t&&e&&e.forceBrowserFocus&&(this.getGui().focus(),document.activeElement&&document.activeElement!==document.body||this.getGui().focus());var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editingCell||this.stopRowOrCellEdit()},n.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell)if(this.cellEditor){var t,n=!1;if(!e)this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd()||(t=this.cellEditor.getValue(),n=!0);if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditor=null,this.cellEditorInPopup&&this.hideEditorPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(d.clearElement(this.getGui()),this.usingWrapper)this.getGui().appendChild(this.eCellWrapper);else if(this.cellRenderer){var r=this.cellRendererGui;r&&this.getGui().appendChild(r)}this.setInlineEditingClass(),n&&(this.suppressRefreshCell=!0,this.rowNode.setDataValue(this.column,t),this.suppressRefreshCell=!1),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var o=this.createEvent(null,z.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(o)}else this.editingCell=!1},n.DOM_DATA_KEY_CELL_COMP="cellComp",n.CELL_RENDERER_TYPE_NORMAL="cellRenderer",n.CELL_RENDERER_TYPE_PINNED="pinnedRowCellRenderer",n}(ue),xn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_n=function(){return(_n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n'),n.push(e),n.push("
"),n.join("")},n.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getGui():null},n.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})},n.prototype.getInitialRowTopStyle=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t);return this.beans.gridOptionsWrapper.isSuppressRowTransform()?"top: "+n+"px; ":"transform: translateY("+n+"px);"},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.areAllContainersReady=function(){return 3===this.rowContainerReadyCount},n.prototype.lazyCreateCells=function(e,t){if(this.active){var n=this.createCells(e);t.innerHTML=n.template,this.callAfterRowAttachedOnCells(n.cellComps,t),this.rowContainerReadyCount++,this.areAllContainersReady()&&this.refreshNeeded&&this.refreshCells()}},n.prototype.createRowContainer=function(e,t,n){var r=this,o=this.useAnimationFrameForCreate,i=o?{cellComps:[],template:""}:this.createCells(t),a=this.createTemplate(i.template);e.appendRowTemplate(a,function(){var a=e.getRowElement(r.getCompId());r.afterRowAttached(e,a),n(a),o?r.beans.taskQueue.createTask(r.lazyCreateCells.bind(r,t,a),r.rowNode.rowIndex,"createTasksP1"):(r.callAfterRowAttachedOnCells(i.cellComps,a),r.rowContainerReadyCount=3)})},n.prototype.createChildScopeOrNull=function(e){if(!this.beans.gridOptionsWrapper.isAngularCompileRows())return null;var t=this.parentScope.$new();return t.data=_n({},e),t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),this.addDestroyFunc(function(){t.$destroy(),t.data=null,t.rowNode=null,t.context=null}),t},n.prototype.setupRowContainers=function(){var e=this.rowNode.isFullWidthCell(),t=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnController.isPivotMode(),o=this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(r);this.rowNode.stub?this.createFullWidthRows(n.LOADING_CELL_RENDERER,n.LOADING_CELL_RENDERER_COMP_NAME):t?this.createFullWidthRows(n.DETAIL_CELL_RENDERER,n.DETAIL_CELL_RENDERER_COMP_NAME):e?this.createFullWidthRows(n.FULL_WIDTH_CELL_RENDERER,null):o?this.createFullWidthRows(n.GROUP_ROW_RENDERER,n.GROUP_ROW_RENDERER_COMP_NAME):this.setupNormalRowContainers()},n.prototype.setupNormalRowContainers=function(){var e,t,n,r=this;this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.createRowContainer(this.bodyContainerComp,e,function(e){return r.eBodyRow=e}),this.createRowContainer(this.pinnedRightContainerComp,n,function(e){return r.ePinnedRightRow=e}),this.createRowContainer(this.pinnedLeftContainerComp,t,function(e){return r.ePinnedLeftRow=e})},n.prototype.createFullWidthRows=function(e,t){var n=this;this.fullWidthRow=!0,this.embedFullWidth?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,t,function(e){n.eFullWidthRowBody=e},function(e){n.fullWidthRowComponentBody=e}),this.printLayout||(this.createFullWidthRowContainer(this.pinnedLeftContainerComp,o.PINNED_LEFT,"ag-cell-last-left-pinned",e,t,function(e){n.eFullWidthRowLeft=e},function(e){n.fullWidthRowComponentLeft=e}),this.createFullWidthRowContainer(this.pinnedRightContainerComp,o.PINNED_RIGHT,"ag-cell-first-right-pinned",e,t,function(e){n.eFullWidthRowRight=e},function(e){n.fullWidthRowComponentRight=e}))):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,t,function(e){n.eFullWidthRow=e},function(e){n.fullWidthRowComponent=e})},n.prototype.setAnimateFlags=function(e){if(e){var t=d.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.fullWidthRow},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n,r){if(!t||!n)return!0;if(!n.refresh)return!1;var o=e.createFullWidthParams(t,r);return n.refresh(o)},n=t(this.eFullWidthRow,this.fullWidthRowComponent,null),r=t(this.eFullWidthRowBody,this.fullWidthRowComponentBody,null),i=t(this.eFullWidthRowLeft,this.fullWidthRowComponentLeft,o.PINNED_LEFT),a=t(this.eFullWidthRowRight,this.fullWidthRowComponentRight,o.PINNED_RIGHT);return n&&r&&i&&a},n.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,We.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,We.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,z.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,z.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addDestroyableEventListener(e,z.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(e,z.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.addListenersForCellComps=function(){var e=this;this.addDestroyableEventListener(this.rowNode,We.EVENT_ROW_INDEX_CHANGED,function(){e.forEachCellComp(function(e){return e.onRowIndexChanged()})}),this.addDestroyableEventListener(this.rowNode,We.EVENT_CELL_CHANGED,function(t){e.forEachCellComp(function(e){return e.onCellChanged(t)})})},n.prototype.onGridColumnsChanged=function(){this.removeRenderedCells(Object.keys(this.cellComps))},n.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp(function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(e){this.postProcessCss()},n.prototype.postProcessCss=function(){this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-dragging",e)})},n.prototype.onExpandedChanged=function(){var e=this.rowNode;this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-group-expanded",e.expanded)}),this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-group-contracted",!e.expanded)})},n.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponent),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,null,this.fullWidthRowComponentBody),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,o.PINNED_LEFT,this.fullWidthRowComponentLeft),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.beans.detailRowCompCache.addOrDestroy(this.rowNode,o.PINNED_RIGHT,this.fullWidthRowComponentRight),this.fullWidthRowComponent=null)},n.prototype.getContainerForCell=function(e){switch(e){case o.PINNED_LEFT:return this.ePinnedLeftRow;case o.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},n.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},n.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},n.prototype.refreshCells=function(){if(this.areAllContainersReady())if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.createTask(this.refreshCellsInAnimationFrame.bind(this),this.rowNode.rowIndex,"createTasksP1")}else this.refreshNeeded=!0},n.prototype.refreshCellsInAnimationFrame=function(){if(this.active){var e,t,n;this.columnRefreshPending=!1,this.printLayout?(e=this.beans.columnController.getAllDisplayedColumns(),t=[],n=[]):(e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),n=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode)),this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,n),this.elementOrderChanged=!1;var r=Object.keys(this.cellComps);e.forEach(function(e){return d.removeFromArray(r,e.getId())}),t.forEach(function(e){return d.removeFromArray(r,e.getId())}),n.forEach(function(e){return d.removeFromArray(r,e.getId())});var o=r.filter(this.isCellEligibleToBeRemoved.bind(this));this.removeRenderedCells(o)}},n.prototype.onColumnMoved=function(){this.elementOrderChanged=!0},n.prototype.removeRenderedCells=function(e){var t=this;e.forEach(function(e){var n=t.cellComps[e];d.missing(n)||(n.detach(),n.destroy(),t.cellComps[e]=null)})},n.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),n=this.cellComps[e];if(!n)return!0;if(this.isCellInWrongRow(n))return!0;var r=n.isEditing(),o=this.beans.focusedCellController.isCellFocused(n.getCellPosition());if(r||o){var i=n.getColumn();return!(t.indexOf(i)>=0)}return!0},n.prototype.ensureCellInCorrectContainer=function(e){if(!this.printLayout){var t=e.getGui(),n=e.getColumn().getPinned(),r=this.getContainerForCell(n),o=e.getParentRow();o!==r&&(o&&o.removeChild(t),r.appendChild(t),e.setParentRow(r),this.elementOrderChanged=!0)}},n.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),n=this.getContainerForCell(t.getPinned());return e.getParentRow()!==n},n.prototype.insertCellsIntoContainer=function(e,t){var n=this;if(e){var r=[],o=[];if(t.forEach(function(t){var i=t.getId(),a=n.cellComps[i];a?n.ensureCellInCorrectContainer(a):n.createNewCell(t,e,r,o)}),r.length>0&&(d.appendHtml(e,r.join("")),this.callAfterRowAttachedOnCells(o,e)),this.elementOrderChanged&&this.beans.gridOptionsWrapper.isEnsureDomOrder()){var i=t.map(function(e){return n.getCellForCol(e)});d.setDomChildOrder(e,i)}}},n.prototype.addDomData=function(e){var t=this.beans.gridOptionsWrapper;t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc(function(){t.setDomData(e,n.DOM_DATA_KEY_RENDERED_ROW,null)})},n.prototype.createNewCell=function(e,t,n,r){var o=new wn(this.scope,this.beans,e,this.rowNode,this,!1,this.printLayout),i=o.getCreateTemplate();n.push(i),r.push(o),this.cellComps[e.getId()]=o,o.setParentRow(t),this.elementOrderChanged=!0},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!d.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(z.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowClick=function(e){if(!d.isStopPropagationForAgGrid(e)){var t=this.createRowEventWithSource(z.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!this.rowNode.group&&this.rowNode.selectable&&!this.rowNode.rowPinned&&this.beans.gridOptionsWrapper.isRowSelection()&&!this.beans.gridOptionsWrapper.isSuppressRowClickSelection()){var o=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=this.beans.gridOptionsWrapper.isRowDeselection();if(this.rowNode.isSelected())o?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0});else{var a=!o&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:r})}}}},n.prototype.createFullWidthRowContainer=function(e,n,r,o,i,a,s){var l=this,c=this.createTemplate("",r);e.appendRowTemplate(c,function(){var r=e.getRowElement(l.getCompId()),c=l.createFullWidthParams(r,n),u=function(e){if(l.isAlive()){var t=e.getGui();r.appendChild(t),s(e)}else e.destroy&&e.destroy()},d=l.beans.detailRowCompCache.get(l.rowNode,n);if(d)u(d);else{var h=l.beans.userComponentFactory.newFullWidthCellRenderer(c,o,i);if(!h){var p=A.isRegistered(t.ModuleNames.MasterDetailModule);return void("agDetailCellRenderer"!==i||p?console.error("ag-Grid: fullWidthCellRenderer "+i+" not found"):console.warn("ag-Grid: cell renderer agDetailCellRenderer (for master detail) not found. Did you forget to include the master detail module?"))}h.then(u)}l.afterRowAttached(e,r),a(r),l.angular1Compile(r)})},n.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},n.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope?this.scope:this.parentScope,$compile:this.beans.$compile,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},n.prototype.getInitialRowClasses=function(e){var t=[],n=this.beans.gridOptionsWrapper.isTreeData(),r=this.rowNode;return d.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),t.push(this.rowIsEven?"ag-row-even":"ag-row-odd"),r.isSelected()&&t.push("ag-row-selected"),r.group?(t.push("ag-row-group"),t.push("ag-row-level-"+r.level),r.footer&&t.push("ag-row-footer")):t.push("ag-row-level-"+(r.parent?r.parent.level+1:"0")),r.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),(n?r.allChildrenCount:r.group&&!r.footer)&&t.push(r.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),r.dragging&&t.push("ag-row-dragging"),d.pushAll(t,this.processClassesFromGridOptions()),d.pushAll(t,this.preProcessRowClassRules()),t.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.firstRowOnPage=this.isFirstRowOnPage(),this.lastRowOnPage=this.isLastRowOnPage(),this.firstRowOnPage&&t.push("ag-row-first"),this.lastRowOnPage&&t.push("ag-row-last"),t},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-first",e)})),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.eAllRowContainers.forEach(function(e){return d.addOrRemoveCssClass(e,"ag-row-last",t)}))},n.prototype.preProcessRowClassRules=function(){var e=[];return this.processRowClassRules(function(t){e.push(t)},function(e){}),e},n.prototype.processRowClassRules=function(e,t){this.beans.stylingService.processClassRules(this.beans.gridOptionsWrapper.rowClassRules(),{value:void 0,colDef:void 0,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext()},e,t)},n.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp(function(t){t.stopEditing(e)}),this.editingRow){if(!e){var t=this.createRowEvent(z.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},n.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-editing",e)});var t=e?this.createRowEvent(z.EVENT_ROW_EDITING_STARTED):this.createRowEvent(z.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),this.editingRow||(this.forEachCellComp(function(r){var o=r===n;o?r.startEditingIfEnabled(e,t,o):r.startEditingIfEnabled(null,null,o)}),this.setEditingRow(!0))},n.prototype.forEachCellComp=function(e){d.iterateObject(this.cellComps,function(t,n){n&&e(n)})},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.length&&t.forEach(function(t){e.eAllRowContainers.forEach(function(e){return d.addCssClass(e,t)})})},n.prototype.postProcessRowClassRules=function(){var e=this;this.processRowClassRules(function(t){e.eAllRowContainers.forEach(function(e){return d.addCssClass(e,t)})},function(t){e.eAllRowContainers.forEach(function(e){return d.removeCssClass(e,t)})})},n.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"===typeof t?e.push(t):Array.isArray(t)&&t.forEach(function(t){return e.push(t)})},n=this.beans.gridOptionsWrapper.getRowClass();if(n){if("function"===typeof n)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(n)}var r=this.beans.gridOptionsWrapper.getRowClassFunc();r&&t(r({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}));return e},n.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return d.cssStyleObjectToMarkup(e)},n.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach(function(t){return d.addStylesToElement(t,e)})},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope});return d.assign({},e,t)}console.warn("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.createCells=function(e){var t=this,n=[],r=[];return e.forEach(function(e){var o=new wn(t.scope,t.beans,e,t.rowNode,t,!1,t.printLayout),i=o.getCreateTemplate();n.push(i),r.push(o),t.cellComps[e.getId()]=o}),{template:n.join(""),cellComps:r}},n.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-selected",e)})},n.prototype.callAfterRowAttachedOnCells=function(e,t){var n=this;e.forEach(function(e){e.setParentRow(t),e.afterAttached(),n.editingRow&&e.startEditingIfEnabled()})},n.prototype.afterRowAttached=function(e,t){var n=this;this.addDomData(t),this.removeSecondPassFuncs.push(function(){e.removeRowElement(t)}),this.removeFirstPassFuncs.push(function(){if(d.exists(n.rowNode.rowTop)){var e=n.roundRowTopToBounds(n.rowNode.rowTop);n.setRowTop(e)}else d.addCssClass(t,"ag-opacity-zero")}),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.createTask(this.addHoverFunctionality.bind(this,t),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(t)},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",function(){return t.rowNode.onMouseEnter()}),this.addDestroyableEventListener(e,"mouseleave",function(){return t.rowNode.onMouseLeave()}),this.addDestroyableEventListener(this.rowNode,We.EVENT_MOUSE_ENTER,function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||d.addCssClass(e,"ag-row-hover")}),this.addDestroyableEventListener(this.rowNode,We.EVENT_MOUSE_LEAVE,function(){d.removeCssClass(e,"ag-row-hover")}))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVScrollPosition(),n=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(n,e),r)},n.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},n.prototype.onRowHeightChanged=function(){if(d.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach(function(t){return t.style.height=e})}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=z.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+z.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=z.EVENT_VIRTUAL_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+z.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroy=function(t){(void 0===t&&(t=!1),e.prototype.destroy.call(this),this.active=!1,this.destroyFullWidthComponents(),t)?(this.removeFirstPassFuncs.forEach(function(e){return e()}),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this))):(this.destroyContainingCells(),this.getAndClearDelayedDestroyFunctions().forEach(function(e){return e()}));var n=this.createRowEvent(z.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(n),this.beans.eventService.dispatchEvent(n)},n.prototype.destroyContainingCells=function(){this.forEachCellComp(function(e){return e.destroy()}),this.destroyFullWidthComponents()},n.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-focus",e)}),this.eAllRowContainers.forEach(function(t){return d.addOrRemoveCssClass(t,"ag-row-no-focus",!e)}),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&d.exists(e)){var t=this.applyPaginationOffset(e),n=this.beans.maxDivHeightScaler.getRealPixelPosition(t)+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.eAllRowContainers.forEach(function(e){return e.style.top=n}):this.eAllRowContainers.forEach(function(e){return e.style.transform="translateY("+n+")"})}},n.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getRenderedCellForColumn=function(e){var t=this,n=this.cellComps[e.getColId()];if(n)return n;var r=Object.keys(this.cellComps).map(function(e){return t.cellComps[e]}).filter(function(t){return t&&-1!==t.getColSpanningList().indexOf(e)});return r.length?r[0]:void 0},n.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},n.prototype.updateRowIndexes=function(){var e=this,t=this.rowNode.getRowIndexString(),n=this.rowNode.rowIndex%2===0,r=this.rowIsEven!==n,o=this.beans.gridPanel.headerRootComp.getHeaderRowCount();r&&(this.rowIsEven=n),this.eAllRowContainers.forEach(function(i){i.setAttribute("row-index",t),i.setAttribute("aria-rowindex",(o+e.rowNode.rowIndex+1).toString()),r&&(d.addOrRemoveCssClass(i,"ag-row-even",n),d.addOrRemoveCssClass(i,"ag-row-odd",!n))})},n.prototype.ensureDomOrder=function(){[{el:this.getBodyRowElement(),ct:this.bodyContainerComp},{el:this.getPinnedLeftRowElement(),ct:this.pinnedLeftContainerComp},{el:this.getPinnedRightRowElement(),ct:this.pinnedRightContainerComp},{el:this.getFullWidthRowElement(),ct:this.fullWidthContainerComp}].forEach(function(e){e.el&&e.ct.ensureDomOrder(e.el)})},n.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},n.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},n.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},n.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},n.DOM_DATA_KEY_RENDERED_ROW="renderedRow",n.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",n.GROUP_ROW_RENDERER="groupRowRenderer",n.GROUP_ROW_RENDERER_COMP_NAME="agGroupRowRenderer",n.LOADING_CELL_RENDERER="loadingCellRenderer",n.LOADING_CELL_RENDERER_COMP_NAME="agLoadingCellRenderer",n.DETAIL_CELL_RENDERER="detailCellRenderer",n.DETAIL_CELL_RENDERER_COMP_NAME="agDetailCellRenderer",n}(ue),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),En=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},On=function(e,t){return function(n,r){t(n,r,e)}},An=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return Mn(t,e),t.prototype.registerGridCore=function(e){this.gridCore=e},t.prototype.getGridCore=function(){return this.gridCore},t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.registerGridComp=function(e){this.gridPanel=e,this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,z.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.registerCellEventListeners(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.registerCellEventListeners=function(){var e=this;this.addDestroyableEventListener(this.eventService,z.EVENT_CELL_FOCUSED,function(t){e.forEachCellComp(function(e){return e.onCellFocused(t)})}),this.addDestroyableEventListener(this.eventService,z.EVENT_FLASH_CELLS,function(t){e.forEachCellComp(function(e){return e.onFlashCells(t)})}),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_HOVER_CHANGED,function(){e.forEachCellComp(function(e){return e.onColumnHover()})}),this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.forEachCellComp(function(e){return e.onLeftChanged()})}),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addDestroyableEventListener(this.eventService,z.EVENT_RANGE_SELECTION_CHANGED,function(){e.forEachCellComp(function(e){return e.onRangeSelectionChanged()})}),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_MOVED,function(){e.forEachCellComp(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_PINNED,function(){e.forEachCellComp(function(e){return e.updateRangeBordersIfRangeCount()})}),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_VISIBLE,function(){e.forEachCellComp(function(e){return e.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addDestroyableEventListener(this.eventService,z.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnController.getAllGridColumns();t&&t.forEach(function(t){var n=function(n){e.forEachCellComp(function(e){e.getColumn()===t&&n(e)})},r=function(){n(function(e){return e.onLeftChanged()})},o=function(){n(function(e){return e.onWidthChanged()})},i=function(){n(function(e){return e.onFirstRightPinnedChanged()})},a=function(){n(function(e){return e.onLastLeftPinnedChanged()})};t.addEventListener(k.EVENT_LEFT_CHANGED,r),t.addEventListener(k.EVENT_WIDTH_CHANGED,o),t.addEventListener(k.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(k.EVENT_LAST_LEFT_PINNED_CHANGED,a),e.destroyFuncsForColumnListeners.push(function(){t.removeEventListener(k.EVENT_LEFT_CHANGED,r),t.removeEventListener(k.EVENT_WIDTH_CHANGED,o),t.removeEventListener(k.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(k.EVENT_LAST_LEFT_PINNED_CHANGED,a)})})},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCompsByIndex);this.removeRowComps(e)},t.prototype.onPageLoaded=function(e){d.missing(e)&&(e={type:z.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){var t=[];function n(n,r){var o=r.getCellForCol(e);o&&t.push(o)}return d.iterateObject(this.rowCompsByIndex,n),d.iterateObject(this.floatingBottomRowComps,n),d.iterateObject(this.floatingTopRowComps,n),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,n,r,o,i){var a=this;e.forEach(function(e){e.destroy()}),e.length=0,t&&t.forEach(function(t){var s=new Sn(a.$scope,o,n,r,i,t,a.beans,!1,!1,a.printLayout,a.embedFullWidthRows);s.init(),e.push(s)}),this.flushContainers(e)},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return d.missing(e)?t:(d.iterateObject(this.rowCompsByIndex,function(n,r){var o=r.getRowNode();e.indexOf(o)>=0&&t.push(n)}),t)},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(d.missing(t))return null;var n=document.activeElement,r=this.gridOptionsWrapper.getDomData(n,wn.DOM_DATA_KEY_CELL_COMP);return d.missing(r)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&e.recycleRows,r=e.animate&&this.gridOptionsWrapper.isAnimateRows(),o=this.binRowComps(n);this.redraw(o,r),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=[this.rowContainers.body,this.rowContainers.fullWidth,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight];if(this.printLayout)e.forEach(function(e){return e.setHeight(null)});else{var t=this.paginationProxy.getCurrentPageHeight();0===t&&(t=1),this.maxDivHeightScaler.setModelHeight(t);var n=this.maxDivHeightScaler.getUiContainerHeight();e.forEach(function(e){return e.setHeight(n)})}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp(function(t,n){n.stopEditing(e)})},t.prototype.forEachCellComp=function(e){this.forEachRowComp(function(t,n){return n.forEachCellComp(e)})},t.prototype.forEachRowComp=function(e){d.iterateObject(this.rowCompsByIndex,e),d.iterateObject(this.floatingTopRowComps,e),d.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,n){var r=this.rowCompsByIndex[t];r&&r.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={}),this.forEachCellCompFiltered(e.rowNodes,e.columns,function(e){return e.flashCell()})},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1};this.forEachCellCompFiltered(e.rowNodes,e.columns,function(e){return e.refreshCell(t)})},t.prototype.getCellRendererInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,function(e){var n=e.getCellRenderer();n&&t.push(n)}),t},t.prototype.getCellEditorInstances=function(e){var t=[];return this.forEachCellCompFiltered(e.rowNodes,e.columns,function(e){var n=e.getCellEditor();n&&t.push(n)}),t},t.prototype.getEditingCells=function(){var e=[];return this.forEachCellComp(function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}}),e},t.prototype.forEachCellCompFiltered=function(e,t,n){var r,i,a=this;d.exists(e)&&(r={top:{},bottom:{},normal:{}},e.forEach(function(e){e.rowPinned===o.PINNED_TOP?r.top[e.id]=!0:e.rowPinned===o.PINNED_BOTTOM?r.bottom[e.id]=!0:r.normal[e.id]=!0})),d.exists(t)&&(i={},t.forEach(function(e){var t=a.columnController.getGridColumn(e);d.exists(t)&&(i[t.getId()]=!0)}));var s=function(e){var t=e.getRowNode(),a=t.id,s=t.rowPinned;if(d.exists(r))if(s===o.PINNED_BOTTOM){if(!r.bottom[a])return}else if(s===o.PINNED_TOP){if(!r.top[a])return}else if(!r.normal[a])return;e.forEachCellComp(function(e){var t=e.getColumn().getId();i&&!i[t]||n(e)})};d.iterateObject(this.rowCompsByIndex,function(e,t){s(t)}),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(s),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(s)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,n=this,r={};return e?(t=[],d.iterateObject(this.rowCompsByIndex,function(e,o){var i=o.getRowNode();d.exists(i.id)?(r[i.id]=o,delete n.rowCompsByIndex[e]):t.push(e)})):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),r},t.prototype.removeRowComps=function(e){var t=this;e.forEach(function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]})},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach(function(e){return t[e]=!0});var n=Object.keys(this.rowCompsByIndex).filter(function(e){return!t[e]});this.removeRowComps(n)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=d.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return d.iterateObject(this.rowCompsByIndex,function(n,r){var o=Number(n);(oe.lastRenderedRow)&&e.doNotUnVirtualiseRow(r)&&t.push(o)}),t.sort(function(e,t){return e-t}),t},t.prototype.redraw=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1),this.maxDivHeightScaler.updateOffset(),this.workOutFirstAndLastRowsToRender();var o=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(o),this.printLayout&&(t=!1);var i=[],a=[];o.forEach(function(o){var s=r.createOrUpdateRowComp(o,e,t,n);d.exists(s)&&(a.push(s),d.pushAll(i,s.getAndClearNextVMTurnFunctions()))}),this.flushContainers(a),d.executeNextVMTurn(i),n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.taskQueue.addDestroyTask(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile(),this.gridPanel.updateRowCount()},t.prototype.flushContainers=function(e){d.iterateObject(this.rowContainers,function(e,t){t&&t.flushRowTemplates()}),e.forEach(function(e){return e.afterFlush()})},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];d.iterateObject(this.rowCompsByIndex,function(t,n){if(n.isFullWidth()){var r=n.getRowNode().rowIndex;e.push(r.toString())}}),this.refreshFloatingRowComps(),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.refreshFullWidthRows=function(){var e=[];d.iterateObject(this.rowCompsByIndex,function(t,n){if(n.isFullWidth()&&!n.refreshFullWidth()){var r=n.getRowNode().rowIndex;e.push(r.toString())}}),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,n,r){var o,i=this.rowCompsByIndex[e];if(i||(o=this.paginationProxy.getRow(e),d.exists(o)&&d.exists(t)&&t[o.id]&&o.alreadyRendered&&(i=t[o.id],t[o.id]=null)),!i){if(o||(o=this.paginationProxy.getRow(e)),!d.exists(o))return;i=this.createRowComp(o,n,r)}else i.ensureDomOrder();return o&&(o.alreadyRendered=!0),this.rowCompsByIndex[e]=i,i},t.prototype.destroyRowComps=function(e,t){var n=[];d.iterateObject(e,function(e,r){r&&(r.destroy(t),d.pushAll(n,r.getAndClearDelayedDestroyFunctions()))}),d.executeInAWhile(n)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&window.setTimeout(function(){e.$scope.$apply()},0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t,n=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var r=this.paginationProxy.getPixelOffset(),i=this.maxDivHeightScaler.getOffset(),a=this.gridPanel.getVScrollPosition(),s=a.top,l=a.bottom,c=this.gridOptionsWrapper.getRowBufferInPixels(),u=s+r+i-c,d=l+r+i+c;this.ensureAllRowsInRangeHaveHeightsCalculated(u,d);var h=this.paginationProxy.getRowIndexAtPixel(u),p=this.paginationProxy.getRowIndexAtPixel(d),f=this.paginationProxy.getPageFirstRow(),g=this.paginationProxy.getPageLastRow();hg&&(p=g),e=h,t=p}else e=0,t=-1;var m=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_NORMAL,v=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),y=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);m&&!v&&t-e>y&&(t=e+y);var b=e!==this.firstRenderedRow,C=t!==this.lastRenderedRow;if(b||C){this.firstRenderedRow=e,this.lastRenderedRow=t;var w={type:z.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(w)}if(this.paginationProxy.isRowsToRender()){var x={type:z.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout(function(){return n.eventService.dispatchEventOnce(x)},50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1)&&(this.sizeContainerToPageHeight(),this.maxDivHeightScaler.updateOffset())},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusedCellController.isRowNodeFocused(t),r=e.isEditing(),o=t.detail;return!!(n||r||o)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowComp=function(e,t,n){var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),o=n&&!r&&!this.printLayout,i=new Sn(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,o,this.printLayout,this.embedFullWidthRows);return i.init(),i},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map(function(t){return e[t].getRowNode()})},t.prototype.navigateToNextCell=function(e,t,n,r){for(var i=n,a=!1;!a;){if(this.gridOptionsWrapper.isEnableRtl()?t===o.KEY_LEFT&&(i=this.getLastCellOfColSpan(i)):t===o.KEY_RIGHT&&(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextCellToFocus(t,i),d.missing(i))a=!0;else{var s=this.rowPositionUtils.getRowNode(i);if(!s.detail&&!s.isFullWidthCell())if(s.group){var l=this.columnController.isPivotMode();this.gridOptionsWrapper.isGroupUseEntireRow(l)||(a=!0)}else a=!0}}if(r){var c=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(d.exists(c)){var u=c({key:t,previousCellPosition:n,nextCellPosition:i||null,event:e});d.exists(u)?(u.floating&&(d.doOnce(function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),u.rowPinned=u.floating),i={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):i=null}}i&&(this.ensureCellVisible(i),i=this.getComponentForCell(i).getCellPosition(),this.ensureCellVisible(i),this.focusedCellController.setFocusedCell(i.rowIndex,i.column,i.rowPinned,!0),this.rangeController&&this.rangeController.setRangeToCell(i))},t.prototype.getLastCellOfColSpan=function(e){var t=this.getComponentForCell(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:d.last(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){d.missing(e.rowPinned)&&this.gridPanel.ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridPanel.ensureColumnVisible(e.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},t.prototype.startEditingCell=function(e,t,n){var r=this.getComponentForCell(e);r&&r.startRowOrCellEdit(t,n)},t.prototype.getComponentForCell=function(e){var t;switch(e.rowPinned){case o.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case o.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;this.moveToCellAfter(e,n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(d.missing(t))return!1;var n=this.getComponentForCell(t);return!d.missing(n)&&this.moveToCellAfter(n,e)},t.prototype.moveToCellAfter=function(e,t){return e.isEditing()?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t):this.moveToNextEditingCell(e,t):this.moveToNextCellNotEditing(e,t)},t.prototype.moveToNextEditingCell=function(e,t){var n=e.getCellPosition();e.stopEditing();var r=this.findNextCellToFocusOn(n,t,!0),o=d.exists(r);return o&&(r.startEditingIfEnabled(null,null,!0),r.focusCell(!1)),o},t.prototype.moveToNextEditingRow=function(e,t){var n=e.getCellPosition(),r=this.findNextCellToFocusOn(n,t,!0),o=d.exists(r);return o&&this.moveEditToNextCellOrRow(e,r),o},t.prototype.moveToNextCellNotEditing=function(e,t){var n=e.getCellPosition(),r=this.findNextCellToFocusOn(n,t,!1),o=d.exists(r);return o&&r.focusCell(!0),o},t.prototype.moveEditToNextCellOrRow=function(e,t){var n=e.getCellPosition(),r=t.getCellPosition();if(n.rowIndex===r.rowIndex&&n.rowPinned===r.rowPinned)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var o=e.getRenderedRow(),i=t.getRenderedRow();e.setFocusOutOnEditor(),o.stopEditing(),i.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var r=e;;){t||(r=this.getLastCellOfColSpan(r)),r=this.cellNavigationService.getNextTabbedCell(r,t);var o=this.gridOptionsWrapper.getTabToNextCellFunc();if(d.exists(o)){var i=o({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:r||null});d.exists(i)?(i.floating&&(d.doOnce(function(){console.warn("ag-Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),i.rowPinned=i.floating),r={rowIndex:i.rowIndex,column:i.column,rowPinned:i.rowPinned}):r=null}if(!r)return null;if(n){var a=this.lookupRowNodeForCell(r);if(!r.column.isCellEditable(a))continue}d.missing(r.rowPinned)&&this.gridPanel.ensureIndexVisible(r.rowIndex),r.column.isPinned()||this.gridPanel.ensureColumnVisible(r.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var s=this.getComponentForCell(r);if(!d.missing(s)&&!s.isSuppressNavigable())return this.rangeController&&this.rangeController.setRangeToCell(r),s}},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===o.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===o.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},En([b("paginationProxy")],t.prototype,"paginationProxy",void 0),En([b("columnController")],t.prototype,"columnController",void 0),En([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),En([b("$scope")],t.prototype,"$scope",void 0),En([b("eventService")],t.prototype,"eventService",void 0),En([b("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),En([b("rowModel")],t.prototype,"rowModel",void 0),En([b("loggerFactory")],t.prototype,"loggerFactory",void 0),En([b("focusedCellController")],t.prototype,"focusedCellController",void 0),En([b("cellNavigationService")],t.prototype,"cellNavigationService",void 0),En([b("columnApi")],t.prototype,"columnApi",void 0),En([b("gridApi")],t.prototype,"gridApi",void 0),En([b("beans")],t.prototype,"beans",void 0),En([b("maxDivHeightScaler")],t.prototype,"maxDivHeightScaler",void 0),En([b("animationFrameService")],t.prototype,"animationFrameService",void 0),En([b("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),En([C("rangeController")],t.prototype,"rangeController",void 0),En([On(0,x("loggerFactory"))],t.prototype,"agWire",null),t=En([y("rowRenderer")],t)}(ae),Tn=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,n,r,o){d.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,n,r,o)},e.addToolPanelClassesFromColDef=function(e,t,n,r,o){d.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,n,r,o)},e.addColumnClassesFromCollDef=function(e,t,n,r,o,i){if(!d.missing(e)){var a;if("function"===typeof e)a=e({colDef:t,column:o,columnGroup:i,context:r.getContext(),api:r.getApi()});else a=e;"string"===typeof a?d.addCssClass(n,a):Array.isArray(a)&&a.forEach(function(e){d.addCssClass(n,e)})}},e}(),kn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.columnOrGroup=t,a.eCell=n,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=i,a.beans=r,a.printLayout=r.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,a}return kn(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?d.last(this.colsSpanning):this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,k.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=d.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),n=this.getColumnOrGroup().getOldLeft();this.setLeft(n),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===t&&e.setLeft(t)})},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){return this.printLayout?e.getPinned()===o.PINNED_LEFT?t:e.getPinned()===o.PINNED_RIGHT?this.beans.columnController.getPinnedLeftContainerWidth()+this.beans.columnController.getBodyContainerWidth()+t:this.beans.columnController.getPinnedLeftContainerWidth()+t:t},t.prototype.setLeft=function(e){if(d.exists(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof k){var t=this.beans.columnController.getAllDisplayedColumns().indexOf(this.columnOrGroup);this.ariaEl.setAttribute("aria-colindex",(t+1).toString())}else this.ariaEl.removeAttribute("aria-colindex")},t}(ae),Pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.labelSeparator="",t.labelAlignment="left",t.config={},t.label="",t}return Pn(t,e),t.prototype.postConstruct=function(){d.addCssClass(this.getGui(),"ag-labeled");var e=this.config,t=e.labelSeparator,n=e.label,r=e.labelWidth,o=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=n&&this.setLabel(n),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(o||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){this.eLabel.innerText=this.label+this.labelSeparator,d.addOrRemoveCssClass(this.eLabel,"ag-hidden",""===this.label)},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e?this:(this.labelSeparator=e,null!=this.label&&this.refreshLabel(),this)},t.prototype.setLabel=function(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)},t.prototype.setLabelAlignment=function(e){var t=this.getGui();return d.addOrRemoveCssClass(t,"ag-label-align-left","left"===e),d.addOrRemoveCssClass(t,"ag-label-align-right","right"===e),d.addOrRemoveCssClass(t,"ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label?this:(d.setElementWidth(this.eLabel,e),this)},Nn([m],t.prototype,"postConstruct",null),t}(ue),Rn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rn(t,e),t.prototype.onValueChange=function(e){var n=this;return this.addDestroyableEventListener(this,t.EVENT_CHANGED,function(){e(n.getValue())}),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return d.setFixedWidth(this.getGui(),e),this},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e?this:(this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED}),this)},t.EVENT_CHANGED="valueChange",t}(Ln),In=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.config={},t.TEMPLATE='',t}return In(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),d.addCssClass(this.getGui(),this.className);var t=this.config,n=t.width,r=t.value;null!=n&&this.setWidth(n),null!=r&&this.setValue(r),this.addInputListeners()},t.prototype.addInputListeners=function(){var e=this;this.addDestroyableEventListener(this.eInput,"input",function(t){var n=t.target.value;e.setValue(n)})},t.prototype.setInputType=function(){this.inputType&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return d.setElementWidth(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},zn([ge("eLabel")],t.prototype,"eLabel",void 0),zn([ge("eWrapper")],t.prototype,"eWrapper",void 0),zn([ge("eInput")],t.prototype,"eInput",void 0),t}(Fn),jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wn=function(e){function t(){var t=e.call(this)||this;return t.className="ag-checkbox",t.nativeInputClassName="ag-native-checkbox",t.displayTag="input",t.inputType="checkbox",t.labelAlignment="right",t.iconMap={selected:"checkboxChecked",unselected:"checkboxUnchecked",indeterminate:"checkboxIndeterminate"},t.selected=!1,t.readOnly=!1,t.passive=!1,t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return jn(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.gridOptionsWrapper.useNativeCheckboxes()?d.addCssClass(this.eInput,this.nativeInputClassName):(d.addCssClass(this.eInput,"ag-hidden"),this.addIconsPlaceholder(),this.updateIcons())},t.prototype.addInputListeners=function(){var e=this;this.gridOptionsWrapper.useNativeCheckboxes()?this.addDestroyableEventListener(this.eInput,"click",this.onCheckboxClick.bind(this)):(this.addDestroyableEventListener(this.getGui(),"click",function(t){return e.onClick(t)}),this.addDestroyableEventListener(this.eInput,"change",function(t){return e.setValue(t.target.checked,!0)}))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eInput.readOnly=e,this.readOnly=e,this.updateIcons()},t.prototype.toggle=function(){var e=this.getNextValue();this.passive?this.dispatchChange(e):this.setValue(e)},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.setSelected(e,t),this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.selected!==e&&(this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=this.selected,this.eInput.indeterminate=void 0===this.selected,this.updateIcons(),t||this.dispatchChange(this.selected))},t.prototype.getIconName=function(){var e=this.getValue(),t=void 0===e?"indeterminate":e?"selected":"unselected",n=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[t]+n},t.prototype.updateIcons=function(){this.gridOptionsWrapper.useNativeCheckboxes()||(d.clearElement(this.eIconEl),this.eIconEl.appendChild(d.createIconNoSpan(this.getIconName(),this.gridOptionsWrapper,null)))},t.prototype.dispatchChange=function(e){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e})},t.prototype.addIconsPlaceholder=function(){var e=document.createElement("div");this.eWrapper.appendChild(e),this.eIconEl=e},t.prototype.onClick=function(e){d.addAgGridEventPath(e),this.readOnly||this.toggle()},t.prototype.onCheckboxClick=function(e){this.selected=e.target.checked,this.dispatchChange(this.selected)},Vn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(Bn),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Un=function(e){function t(t,n){var r=e.call(this)||this;r.cbSelectAllVisible=!1,r.processingEventFromCheckbox=!1,r.cbSelectAll=t,r.column=n;var o=n.getColDef();return r.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,r}return Hn(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,Wn.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,r=function(r){e.gridOptionsWrapper.isGroupSelectsChildren()&&r.group||(r.isSelected()?t++:r.selectable&&n++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(r):this.gridApi.forEachNode(r),{notSelected:n,selected:t}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===o.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},Gn([b("gridApi")],t.prototype,"gridApi",void 0),Gn([b("columnApi")],t.prototype,"columnApi",void 0),Gn([b("eventService")],t.prototype,"eventService",void 0),Gn([b("rowModel")],t.prototype,"rowModel",void 0),Gn([b("selectionController")],t.prototype,"selectionController",void 0),Gn([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gn([m],t.prototype,"postConstruct",null),t}(ae),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xn=function(e){function t(t,n){var r=e.call(this)||this;return r.columns=t,r.element=n,r}return qn(t,e),t.prototype.postConstruct=function(){this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addDestroyableEventListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addDestroyableEventListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Yn([b("columnHoverService")],t.prototype,"columnHoverService",void 0),Yn([m],t.prototype,"postConstruct",null),t}(ae),Kn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zn=function(e){function n(t,r,o){var i=e.call(this,n.TEMPLATE)||this;return i.column=t,i.dragSourceDropTarget=r,i.pinned=o,i}return Kn(n,e),n.prototype.getColumn=function(){return this.column},n.prototype.getComponentHolder=function(){return this.column.getColDef()},n.prototype.init=function(){var e=this.getComponentHolder(),t=this.columnController.getDisplayNameForColumn(this.column,"header",!0),n=e.sortable,r=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu;this.appendHeaderComp(t,n,r),this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupSortableClass(n),this.addColumnHoverListener(),this.addFeature(new Xn([this.column],this.getGui())),this.addDestroyableEventListener(this.column,k.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(new Un(this.cbSelectAll,this.column));var o=new Dn(this.column,this.getGui(),this.beans);o.init(),this.addDestroyFunc(o.destroy.bind(o)),this.addAttributes(),Tn.addHeaderClassesFromColDef(e,this.getGui(),this.gridOptionsWrapper,this.column,null)},n.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);d.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.setupSortableClass=function(e){if(e){var t=this.getGui();d.addCssClass(t,"ag-header-cell-sortable")}},n.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();d.addOrRemoveCssClass(this.getGui(),"ag-header-cell-filtered",e)},n.prototype.appendHeaderComp=function(e,t,n){var r=this,o={column:this.column,displayName:e,enableSorting:t,enableMenu:n,showColumnMenu:function(e){r.gridApi.showColumnMenuAfterButtonClick(r.column,e)},progressSort:function(e){r.sortController.progressSort(r.column,!!e,"uiColumnSorted")},setSort:function(e,t){r.sortController.setSortForColumn(r.column,e,!!t,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderComponent(o).then(i)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.onColumnMovingChanged=function(){this.column.isMoving()?d.addCssClass(this.getGui(),"ag-header-cell-moving"):d.removeCssClass(this.getGui(),"ag-header-cell-moving")},n.prototype.setupMove=function(e,n){var r=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.getComponentHolder().suppressMovable||this.column.getColDef().lockPosition)&&e){var o={type:t.DragSourceType.HeaderCell,eElement:e,getDragItem:function(){return r.createDragItem()},dragItemName:n,dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return r.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return r.column.setMoving(!1,"uiColumnMoved")}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return r.dragAndDropService.removeDragSource(o)})}},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.setupResize=function(){var e=this,t=this.getComponentHolder();if(this.eResize)if(this.column.isResizable()){var n=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});this.addDestroyFunc(n);var r=!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize,o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();if(r){this.addDestroyableEventListener(this.eResize,"dblclick",function(){e.columnController.autoSizeColumn(e.column,o,"uiColumnResized")});var i=new Le(this.eResize);this.addDestroyableEventListener(i,Le.EVENT_DOUBLE_TAP,function(){e.columnController.autoSizeColumn(e.column,o,"uiColumnResized")}),this.addDestroyFunc(i.destroy.bind(i))}}else d.removeFromParent(this.eResize)},n.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),r=this.resizeStartWidth+n;this.columnController.setColumnWidth(this.column,r,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&d.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,d.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.getTooltipText=function(){return this.getComponentHolder().headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},n.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,k.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.column.getColId())},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,k.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,k.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},n.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.normaliseResizeAmount=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==o.PINNED_LEFT&&(t*=-1):this.pinned===o.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='',$n([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),$n([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),$n([b("columnController")],n.prototype,"columnController",void 0),$n([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),$n([b("menuFactory")],n.prototype,"menuFactory",void 0),$n([b("gridApi")],n.prototype,"gridApi",void 0),$n([b("columnApi")],n.prototype,"columnApi",void 0),$n([b("sortController")],n.prototype,"sortController",void 0),$n([b("eventService")],n.prototype,"eventService",void 0),$n([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),$n([b("columnHoverService")],n.prototype,"columnHoverService",void 0),$n([b("beans")],n.prototype,"beans",void 0),$n([ge("eResize")],n.prototype,"eResize",void 0),$n([ge("cbSelectAll")],n.prototype,"cbSelectAll",void 0),$n([m],n.prototype,"init",null),n}(ue),Jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qn=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},er=function(e){function n(t,r,o){var i=e.call(this,n.TEMPLATE)||this;return i.childColumnsDestroyFuncs=[],i.columnGroup=t,i.dragSourceDropTarget=r,i.pinned=o,i}return Jn(n,e),n.prototype.postConstruct=function(){Tn.addHeaderClassesFromColDef(this.getComponentHolder(),this.getGui(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header");this.appendHeaderGroupComp(e),this.setupResize(),this.addClasses(),this.setupWidth(),this.addAttributes(),this.setupMovingCss(),this.setupTooltip(),this.addFeature(new Xn(this.columnGroup.getOriginalColumnGroup().getLeafColumns(),this.getGui()));var t=new Dn(this.columnGroup,this.getGui(),this.beans);t.init(),this.addDestroyFunc(t.destroy.bind(t))},n.prototype.setupMovingCss=function(){var e=this;this.columnGroup.getOriginalColumnGroup().getLeafColumns().forEach(function(t){e.addDestroyableEventListener(t,k.EVENT_MOVING_CHANGED,e.onColumnMovingChanged.bind(e))}),this.onColumnMovingChanged()},n.prototype.getColumn=function(){return this.columnGroup},n.prototype.getComponentHolder=function(){return this.columnGroup.getColGroupDef()},n.prototype.getTooltipText=function(){var e=this.getComponentHolder();return e&&e.headerTooltip},n.prototype.setupTooltip=function(){var e=this.getTooltipText();null!=e&&(this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",e):this.beans.tooltipManager.registerTooltip(this))},n.prototype.onColumnMovingChanged=function(){d.addOrRemoveCssClass(this.getGui(),"ag-header-cell-moving",this.columnGroup.isMoving())},n.prototype.addAttributes=function(){this.getGui().setAttribute("col-id",this.columnGroup.getUniqueId())},n.prototype.appendHeaderGroupComp=function(e){var t=this,n={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!e){for(var r=this.columnGroup,o=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===o.length;)r=r.getParent();var i=r.getColGroupDef();i&&(e=i.headerName),e||(e=o?this.columnController.getDisplayNameForColumn(o[0],"header",!0):"")}var a=this.afterHeaderCompCreated.bind(this,e);this.userComponentFactory.newHeaderGroupComponent(n).then(a)},n.prototype.afterHeaderCompCreated=function(e,t){this.appendChild(t),this.setupMove(t.getGui(),e)},n.prototype.addClasses=function(){var e=this.columnGroup.isPadding()?"no":"with";this.addCssClass("ag-header-group-cell-"+e+"-group")},n.prototype.setupMove=function(e,n){var r=this;if(e&&!this.isSuppressMoving()){var o=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),i={type:t.DragSourceType.HeaderCell,eElement:e,dragItemName:n,getDragItem:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget,onDragStarted:function(){return o.forEach(function(e){return e.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return o.forEach(function(e){return e.setMoving(!1,"uiColumnDragged")})}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc(function(){return r.dragAndDropService.removeDragSource(i)})}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach(function(e){return t[e.getId()]=e.isVisible()});var n=[];return this.columnController.getAllDisplayedColumns().forEach(function(t){e.indexOf(t)>=0&&(n.push(t),d.removeFromArray(e,t))}),e.forEach(function(e){return n.push(e)}),{columns:n,visibleState:t}},n.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},n.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,P.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},n.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},n.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(n){n.addEventListener(k.EVENT_WIDTH_CHANGED,t),n.addEventListener(k.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push(function(){n.removeEventListener(k.EVENT_WIDTH_CHANGED,t),n.removeEventListener(k.EVENT_VISIBLE_CHANGED,t)})})},n.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach(function(e){return e()}),this.childColumnsDestroyFuncs=[]},n.prototype.onWidthChanged=function(){this.getGui().style.width=this.columnGroup.getActualWidth()+"px"},n.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eHeaderCellResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eHeaderCellResize.addEventListener("dblclick",function(t){var r=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(e){e.getColDef().suppressAutoSize||r.push(e.getColId())}),r.length>0&&e.columnController.autoSizeColumns(r,n,"uiColumnResized")})}}else d.removeFromParent(this.eHeaderCellResize)},n.prototype.onResizeStart=function(e){var t=this,n=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=n.filter(function(e){return e.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(e){return t.resizeStartWidth+=e.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)});var r=null;if(e&&(r=this.columnController.getDisplayedGroupAfter(this.columnGroup)),r){var o=r.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter(function(e){return e.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;d.addCssClass(this.getGui(),"ag-column-resizing")},n.prototype.onResizing=function(e,t){var n=[],r=this.normaliseDragChange(t);n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:this.resizeStartWidth+r}),this.resizeTakeFromCols&&n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r}),this.columnController.resizeColumnSets(n,e,"uiColumnDragged"),e&&d.removeCssClass(this.getGui(),"ag-column-resizing")},n.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==o.PINNED_LEFT&&(t*=-1):this.pinned===o.PINNED_RIGHT&&(t*=-1),t},n.TEMPLATE='',Qn([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Qn([b("columnController")],n.prototype,"columnController",void 0),Qn([b("horizontalResizeService")],n.prototype,"horizontalResizeService",void 0),Qn([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Qn([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Qn([b("gridApi")],n.prototype,"gridApi",void 0),Qn([b("columnApi")],n.prototype,"columnApi",void 0),Qn([b("beans")],n.prototype,"beans",void 0),Qn([m],n.prototype,"postConstruct",null),n}(ue),tr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rr=function(e){function t(){return e.call(this,'')||this}return tr(t,e),t.prototype.init=function(e){this.params=e,this.eFloatingFilterText.disabled=!0},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance(function(n){if(n.getModelAsString){var r=n.getModelAsString(e);t.eFloatingFilterText.value=r}}):this.eFloatingFilterText.value=""},nr([ge("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),t}(ue),or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ir=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ar=function(e){function n(t){var r=e.call(this,n.TEMPLATE)||this;return r.column=t,r}return or(n,e),n.prototype.postConstruct=function(){this.setupFloatingFilter(),this.setupWidth(),this.setupLeftPositioning(),this.setupColumnHover(),this.addFeature(new Xn([this.column],this.getGui())),this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},n.prototype.setupFloatingFilter=function(){var e=this;this.column.getColDef().filter?(this.floatingFilterCompPromise=this.getFloatingFilterInstance(),this.floatingFilterCompPromise?this.floatingFilterCompPromise.then(function(t){t?(e.setupWithFloatingFilter(t),e.setupSyncWithFilter()):e.setupEmpty()}):this.setupEmpty()):this.setupEmpty()},n.prototype.setupLeftPositioning=function(){var e=new Dn(this.column,this.getGui(),this.beans);e.init(),this.addDestroyFunc(e.destroy.bind(e))},n.prototype.setupSyncWithFilter=function(){var e=this,t=function(t){var n=e.filterManager.getFilterComponent(e.column,"NO_UI").resolveNow(null,function(e){return e.getModel()});e.onParentModelChanged(n,t)};this.addDestroyableEventListener(this.column,k.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)},n.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n.prototype.setupColumnHover=function(){this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},n.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);d.addOrRemoveCssClass(this.getGui(),"ag-column-hover",e)},n.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,k.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},n.prototype.onColumnWidthChanged=function(){this.getGui().style.width=this.column.getActualWidth()+"px"},n.prototype.setupWithFloatingFilter=function(e){var t=function(){e.destroy&&e.destroy()};if(this.isAlive()){this.addDestroyFunc(t);var n=e.getGui();d.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-body",!this.suppressFilterButton),d.addOrRemoveCssClass(this.eFloatingFilterBody,"ag-floating-filter-full-body",this.suppressFilterButton),d.setDisplayed(this.eButtonWrapper,!this.suppressFilterButton);var r=d.createIconNoSpan("filter",this.gridOptionsWrapper,this.column);this.eButtonShowMainFilter.appendChild(r),this.eFloatingFilterBody.appendChild(n),e.afterGuiAttached&&e.afterGuiAttached()}else t()},n.prototype.parentFilterInstance=function(e){this.filterManager.getFilterComponent(this.column,"NO_UI").then(e)},n.prototype.getFloatingFilterInstance=function(){var e,r=this.column.getColDef();if("string"===typeof r.filter)e=n.filterToFloatingFilterNames[r.filter];else if(!0===r.filter){e=A.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"}var o=this.filterManager.createFilterParams(this.column,this.column.getColDef()),i=this.userComponentFactory.createFinalParams(r,"filter",o),a={api:this.gridApi,column:this.column,filterParams:i,currentParentModel:this.currentParentModel.bind(this),parentFilterInstance:this.parentFilterInstance.bind(this),onFloatingFilterChanged:this.onFloatingFilterChanged.bind(this),suppressFilterButton:!1};this.suppressFilterButton=!!r.floatingFilterComponentParams&&!!r.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.newFloatingFilterComponent(r,a,e);if(!s){var l=this.getFilterComponentPrototype(r);if(l&&l.prototype&&l.prototype.getModelAsString){var c=this.userComponentFactory.createUserComponentFromConcreteClass(rr,a);s=h.resolve(c)}}return s},n.prototype.createDynamicParams=function(){return{column:this.column,colDef:this.column.getColDef(),api:this.gridApi,columnApi:this.columnApi}},n.prototype.getFilterComponentPrototype=function(e){var t=this.userComponentFactory.lookupComponentClassDef(e,"filter",this.createDynamicParams());return t?t.component:null},n.prototype.setupEmpty=function(){d.setDisplayed(this.eButtonWrapper,!1)},n.prototype.currentParentModel=function(){return this.filterManager.getFilterComponent(this.column,"NO_UI").resolveNow(null,function(e){return e.getModel()})},n.prototype.onParentModelChanged=function(e,t){this.floatingFilterCompPromise&&this.floatingFilterCompPromise.then(function(n){n.onParentModelChanged(e,t)})},n.prototype.onFloatingFilterChanged=function(){console.warn("ag-Grid: since version 21.x, how floating filters are implemented has changed. Instead of calling params.onFloatingFilterChanged(), get a reference to the main filter via params.parentFilterInstance() and then set a value on the parent filter directly.")},n.filterToFloatingFilterNames={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},n.TEMPLATE='',ir([b("columnHoverService")],n.prototype,"columnHoverService",void 0),ir([b("eventService")],n.prototype,"eventService",void 0),ir([b("beans")],n.prototype,"beans",void 0),ir([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ir([b("userComponentFactory")],n.prototype,"userComponentFactory",void 0),ir([b("gridApi")],n.prototype,"gridApi",void 0),ir([b("columnApi")],n.prototype,"columnApi",void 0),ir([b("filterManager")],n.prototype,"filterManager",void 0),ir([b("menuFactory")],n.prototype,"menuFactory",void 0),ir([ge("eFloatingFilterBody")],n.prototype,"eFloatingFilterBody",void 0),ir([ge("eButtonWrapper")],n.prototype,"eButtonWrapper",void 0),ir([ge("eButtonShowMainFilter")],n.prototype,"eButtonShowMainFilter",void 0),ir([m],n.prototype,"postConstruct",null),n}(ue),sr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(on||(on={}));var cr,ur=function(e){function t(t,n,r,o){var i=e.call(this,'
')||this;return i.headerComps={},i.dept=t,i.type=n,i.pinned=r,i.dropTarget=o,i}return sr(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach(function(n){e(t.headerComps[n])})},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach(function(e){var n=t.headerComps[e];t.getGui().removeChild(n.getGui()),n.destroy(),delete t.headerComps[e]})},t.prototype.onRowHeightChanged=function(){var e,t,n=this.columnController.getHeaderRowCount(),r=[],o=0;this.columnController.isPivotMode()?(o=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&n++,o=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+o),a=0;a=0?d.removeFromArray(t,a):(o=e.createHeaderComp(r),e.headerComps[a]=o,i=o.getGui(),s.appendChild(i)),n.push(a)}}),this.removeAndDestroyChildComponents(t),this.gridOptionsWrapper.isEnsureDomOrder()){var r=n.map(function(t){return e.headerComps[t].getGui()});d.setDomChildOrder(this.getGui(),r)}},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case on.COLUMN:t=new Zn(e,this.dropTarget,this.pinned);break;case on.COLUMN_GROUP:t=new er(e,this.dropTarget,this.pinned);break;case on.FLOATING_FILTER:t=new ar(e)}return this.getContext().wireBean(t),t},lr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),lr([b("gridApi")],t.prototype,"gridApi",void 0),lr([b("columnController")],t.prototype,"columnController",void 0),lr([b("eventService")],t.prototype,"eventService",void 0),lr([b("filterManager")],t.prototype,"filterManager",void 0),lr([m],t.prototype,"init",null),t}(ue),dr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hr=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!d.exists(e)}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?an.ICON_PINNED:an.ICON_MOVE},e.prototype.onDragEnter=function(e){var n=e.dragItem.columns;if(e.dragSource.type===t.DragSourceType.ToolPanel)this.setColumnsVisible(n,!0,"uiColumnDragged");else{var r=e.dragItem.visibleState,o=n.filter(function(e){return r[e.getId()]});this.setColumnsVisible(o,!0,"uiColumnDragged")}this.setColumnsPinned(n,this.pinned,"uiColumnDragged"),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.getDragItem().columns;this.setColumnsVisible(t,!1,"uiColumnDragged")}this.ensureIntervalCleared()},e.prototype.setColumnsVisible=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter(function(e){return!e.getColDef().lockVisible});this.columnController.setColumnsVisible(r,t,n)}},e.prototype.setColumnsPinned=function(e,t,n){if(void 0===n&&(n="api"),e){var r=e.filter(function(e){return!e.getColDef().lockPinned});this.columnController.setColumnsPinned(r,t,n)}},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getCenterViewportScrollLeft(),n=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=en-50):(this.needToMoveLeft=en-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){var n=this;if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!d.missing(e.hDirection)){var r=this.normaliseX(e.x);t||this.checkCenterForScrolling(r);var o=this.normaliseDirection(e.hDirection),i=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter(function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned}),this.attemptMoveColumns(i,a,o,r,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case t.HorizontalDirection.Left:return t.HorizontalDirection.Right;case t.HorizontalDirection.Right:return t.HorizontalDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),n=d.sortNumerically(e.map(function(e){return t.indexOf(e)})),r=n[0];return d.last(n)-r!==n.length-1?null:r},e.prototype.attemptMoveColumns=function(e,n,r,o,i){var a=r===t.HorizontalDirection.Left,s=r===t.HorizontalDirection.Right,l=this.calculateValidMoves(n,s,o),c=this.calculateOldIndex(n);if(0!==l.length){var u=l[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(a&&u>=c)return;if(s&&u<=c)return}for(var h=0;h0){for(var p=0;p0){var f=s[c-1];r=l.indexOf(f)+1}else-1===(r=l.indexOf(s[0]))&&(r=0);var g=[r];if(t)for(var m=r+1,v=i.length-1;m<=v;)g.push(m),m++;else{m=r,v=i.length-1;for(var y=i[m];m<=v&&this.isColumnHidden(o,y);)m++,g.push(m),y=i[m];m=r-1;for(;m>=0;)g.push(m),m--}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(an.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(an.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(an.ICON_MOVE))},e.prototype.moveInterval=function(){var e,t;if(this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter(function(e){return!e.getColDef().lockPinned});if(n.length>0&&(this.dragAndDropService.setGhostIcon(an.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?o.PINNED_LEFT:o.PINNED_RIGHT;this.setColumnsPinned(n,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},dr([b("loggerFactory")],e.prototype,"loggerFactory",void 0),dr([b("columnController")],e.prototype,"columnController",void 0),dr([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),dr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),dr([m],e.prototype,"init",null),e}(),pr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fr=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;(this.clearColumnsList(),this.gridOptionsWrapper.isFunctionsReadOnly())||e.dragItem.columns.forEach(function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))})},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?an.ICON_PINNED:an.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},pr([b("columnController")],e.prototype,"columnController",void 0),pr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),gr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.ColumnMove=0]="ColumnMove",e[e.Pivot=1]="Pivot"}(cr||(cr={}));var mr,vr=function(){function e(e,t){this.dropListeners={},this.pinned=e,this.eContainer=t}return e.prototype.registerGridComp=function(e){switch(this.gridPanel=e,this.moveColumnController.registerGridComp(e),this.pinned){case o.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case o.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnController=new hr(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController);var e=new fr(this.pinned);this.context.wireBean(e),this.dropListeners[cr.ColumnMove]=this.moveColumnController,this.dropListeners[cr.Pivot]=e,this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.getDropType=function(e){return this.columnController.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel?cr.Pivot:cr.ColumnMove},e.prototype.onDragEnter=function(e){var t=this.getDropType(e);this.currentDropListener=this.dropListeners[t],this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},gr([b("context")],e.prototype,"context",void 0),gr([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),gr([b("columnController")],e.prototype,"columnController",void 0),gr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),gr([m],e.prototype,"init",null),e}(),yr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},br=function(){function e(e,t,n){this.headerRowComps=[],this.eContainer=e,this.pinned=n,this.eViewport=t}return e.prototype.registerGridComp=function(e){this.setupDragAndDrop(e)},e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach(function(t){return t.forEachHeaderElement(e)})},e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.eventService.addEventListener(z.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(z.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(z.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthOfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthOfPinnedContainer()},e.prototype.setWidthOfPinnedContainer=function(){var e=this.pinned===o.PINNED_LEFT,t=this.pinned===o.PINNED_RIGHT,n=this.columnController,r=this.gridOptionsWrapper.isEnableRtl();if(e||t){var i=n[e?"getPinnedLeftContainerWidth":"getPinnedRightContainerWidth"]();this.scrollVisibleService.isVerticalScrollShowing()&&(r&&e||!r&&t)&&(i+=this.scrollWidth),d.setFixedWidth(this.eContainer,i)}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.getRowComps=function(){return this.headerRowComps},e.prototype.onGridColumnsChanged=function(){this.removeAndCreateAllRowComps()},e.prototype.removeAndCreateAllRowComps=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.removeAndCreateAllRowComps()},e.prototype.setupDragAndDrop=function(e){var t=this.eViewport?this.eViewport:this.eContainer,n=new vr(this.pinned,t);this.context.wireBean(n),n.registerGridComp(e)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach(function(e){e.destroy()}),this.headerRowComps.length=0,d.clearElement(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xr=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Cr(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.childContainers.forEach(function(t){return t.registerGridComp(e)})},t.prototype.postConstruct=function(){var e=this;this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.gridApi.registerHeaderRootComp(this),this.autoWidthCalculator.registerHeaderRootComp(this);var t=new br(this.eHeaderContainer,this.eHeaderViewport,null),n=new br(this.ePinnedLeftHeader,null,o.PINNED_LEFT),r=new br(this.ePinnedRightHeader,null,o.PINNED_RIGHT);this.childContainers=[t,n,r],this.childContainers.forEach(function(t){return e.getContext().wireBean(t)}),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.addPreventHeaderScroll(),this.columnController.isReady()&&this.refreshHeader()},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.refreshHeader())},t.prototype.setHorizontalScroll=function(e){this.eHeaderContainer.style.transform="translateX("+e+"px)"},t.prototype.forEachHeaderElement=function(e){this.childContainers.forEach(function(t){return t.forEachHeaderElement(e)})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childContainers.forEach(function(e){return e.destroy()})},t.prototype.refreshHeader=function(){this.childContainers.forEach(function(e){return e.refresh()})},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();d.addOrRemoveCssClass(this.getGui(),"ag-pivot-on",e),d.addOrRemoveCssClass(this.getGui(),"ag-pivot-off",!e)},t.prototype.setHeight=function(e){var t=e+1+"px";this.getGui().style.height=t,this.getGui().style.minHeight=t},t.prototype.addPreventHeaderScroll=function(){var e=this;this.addDestroyableEventListener(this.eHeaderViewport,"scroll",function(){var t=e.eHeaderViewport.scrollLeft;0!==t&&(e.gridPanel.scrollHorizontally(t),e.eHeaderViewport.scrollLeft=0)})},t.prototype.setHeaderContainerWidth=function(e){this.eHeaderContainer.style.width=e+"px"},t.prototype.setLeftVisible=function(e){d.setDisplayed(this.ePinnedLeftHeader,e)},t.prototype.setRightVisible=function(e){d.setDisplayed(this.ePinnedRightHeader,e)},t.prototype.getHeaderRowCount=function(){return 0===this.childContainers.length?0:this.childContainers[0].getRowComps().length},t.TEMPLATE='',wr([ge("ePinnedLeftHeader")],t.prototype,"ePinnedLeftHeader",void 0),wr([ge("ePinnedRightHeader")],t.prototype,"ePinnedRightHeader",void 0),wr([ge("eHeaderContainer")],t.prototype,"eHeaderContainer",void 0),wr([ge("eHeaderViewport")],t.prototype,"eHeaderViewport",void 0),wr([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),wr([b("columnController")],t.prototype,"columnController",void 0),wr([b("eventService")],t.prototype,"eventService",void 0),wr([b("gridApi")],t.prototype,"gridApi",void 0),wr([b("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),wr([m],t.prototype,"postConstruct",null),t}(ue),_r=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sr=function(){function e(){this.allFilters={},this.quickFilter=null,this.quickFilterParts=null,this.processingFilterChange=!1}var n;return n=e,e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.init=function(){this.eventService.addEventListener(z.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(z.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.checkExternalFilter()},e.prototype.setQuickFilterParts=function(){this.quickFilter?this.quickFilterParts=this.quickFilter.split(" "):this.quickFilterParts=null},e.prototype.setFilterModel=function(e){var t=this,n=[];if(e){var r=Object.keys(e);d.iterateObject(this.allFilters,function(o,i){d.removeFromArray(r,o);var a=e[o];t.setModelOnFilterWrapper(i.filterPromise,a),n.push(i.filterPromise)}),r.forEach(function(r){var o=t.columnController.getPrimaryColumn(r);if(o){var i=t.getOrCreateFilterWrapper(o,"NO_UI");t.setModelOnFilterWrapper(i.filterPromise,e[r]),n.push(i.filterPromise)}else console.warn("Warning ag-grid setFilterModel - no column found for colId "+r)})}else d.iterateObject(this.allFilters,function(e,r){t.setModelOnFilterWrapper(r.filterPromise,null),n.push(r.filterPromise)});h.all(n).then(function(e){t.onFilterChanged()})},e.prototype.setModelOnFilterWrapper=function(e,t){e.then(function(e){"function"===typeof e.setModel?e.setModel(t):console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel")})},e.prototype.getFilterModel=function(){var e={};return d.iterateObject(this.allFilters,function(t,n){var r=n.filterPromise.resolveNow(null,function(e){return e});if(null==r)return null;if("function"===typeof r.getModel){var o=r.getModel();d.exists(o)&&(e[t]=o)}else console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel")}),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;d.iterateObject(this.allFilters,function(t,n){n.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()})&&(e=!0)}),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(e,t){d.iterateObject(this.allFilters,function(n,r){var o=r.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()});r.column.setFilterActive(o,e,t)})},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var n=e.data,r=Object.keys(this.allFilters),o=0,i=r.length;o=0&&(o=!0)}}),o},e.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},e.prototype.doesRowPassQuickFilter=function(e){var t=this,n=!0,r=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.forEach(function(o){(r?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o))||(n=!1)}),n},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},e.prototype.getQuickFilterTextForColumn=function(e,t){var n,r=this.valueService.getValue(e,t,!0),o=e.getColDef();if(e.getColDef().getQuickFilterText){var i={value:r,node:t,data:t.data,column:e,colDef:o,context:this.gridOptionsWrapper.getContext()};n=e.getColDef().getQuickFilterText(i)}else n=r;return d.exists(n)?n.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var t=this,r=[];this.columnController.getAllColumnsForQuickFilter().forEach(function(n){var o=t.getQuickFilterTextForColumn(n,e);d.exists(o)&&r.push(o)}),e.quickFilterAggregateText=r.join(n.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(e){d.iterateObject(this.allFilters,function(e,t){t.filterPromise.then(function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(e),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(n){return t.valueService.getValue(e,n,!0)}},e.prototype.getFilterComponent=function(e,t){return this.getOrCreateFilterWrapper(e,t).filterPromise},e.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,function(e){return e.isFilterActive()})},e.prototype.getOrCreateFilterWrapper=function(e,t){var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allFilters[e.getColId()]=n),n},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e,n){var r=this,o="agTextColumnFilter";A.isRegistered(t.ModuleNames.SetFilterModule)&&(o="agSetColumnFilter");var i,a=d.cloneObject(e.getColDef()),s=this.createFilterParams(e,a,n);s.filterChangedCallback=this.onFilterChanged.bind(this),s.filterModifiedCallback=function(){var t={type:z.EVENT_FILTER_MODIFIED,api:r.gridApi,columnApi:r.columnApi,column:e,filterInstance:i};r.eventService.dispatchEvent(t)};var l=this.userComponentFactory.newFilterComponent(a,s,o,function(e,t){return d.assign(e,{doesRowPassOtherFilter:r.doesRowPassOtherFilters.bind(r,t)})});return l&&l.then(function(e){return i=e}),l},e.prototype.createFilterParams=function(e,t,n){void 0===n&&(n=null);var r={api:this.gridOptionsWrapper.getApi(),column:e,colDef:t,rowModel:this.rowModel,filterChangedCallback:null,filterModifiedCallback:null,valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:null};return n&&(r.$scope=n),r},e.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,scope:null,compiledElement:null,guiPromise:h.external()};return n.scope=this.gridOptionsWrapper.isAngularCompileFilters()?this.$scope.$new():null,n.filterPromise=this.createFilterInstance(e,n.scope),n.filterPromise&&this.putIntoGui(n,t),n},e.prototype.putIntoGui=function(e,t){var n=this,r=document.createElement("div");r.className="ag-filter",e.filterPromise.then(function(o){var i=o.getGui();if(d.missing(i)&&console.warn("getGui method from filter returned "+i+", it should be a DOM element or an HTML template string."),"string"===typeof i&&(i=d.loadTemplate(i)),r.appendChild(i),e.scope){var a=n.$compile(r)(e.scope);e.compiledElement=a,window.setTimeout(function(){return e.scope.$apply()},0)}e.guiPromise.resolve(r),n.eventService.dispatchEvent({type:z.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:r,api:n.gridApi,columnApi:n.columnApi})})},e.prototype.onNewColumnsLoaded=function(){var e=this,t=!1;d.iterateObject(this.allFilters,function(n,r){!e.columnController.getPrimaryColumn(r.column)&&(t=!0,e.disposeFilterWrapper(r,"filterDestroyed"))}),t&&this.onFilterChanged()},e.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allFilters[e.getColId()];n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then(function(r){r.setModel(null),r.destroy&&r.destroy(),e.column.setFilterActive(!1,t),e.scope&&(e.compiledElement&&e.compiledElement.remove(),e.scope.$destroy()),delete n.allFilters[e.column.getColId()]})},e.prototype.destroy=function(){var e=this;d.iterateObject(this.allFilters,function(t,n){e.disposeFilterWrapper(n,"filterDestroyed")})},e.QUICK_FILTER_SEPARATOR="\n",_r([b("$compile")],e.prototype,"$compile",void 0),_r([b("$scope")],e.prototype,"$scope",void 0),_r([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),_r([b("popupService")],e.prototype,"popupService",void 0),_r([b("valueService")],e.prototype,"valueService",void 0),_r([b("columnController")],e.prototype,"columnController",void 0),_r([b("rowModel")],e.prototype,"rowModel",void 0),_r([b("eventService")],e.prototype,"eventService",void 0),_r([b("context")],e.prototype,"context",void 0),_r([b("columnApi")],e.prototype,"columnApi",void 0),_r([b("gridApi")],e.prototype,"gridApi",void 0),_r([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),_r([m],e.prototype,"init",null),_r([v],e.prototype,"destroy",null),e=n=_r([y("filterManager")],e)}(),Mr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Er=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var o,i=e.getColDef(),a=i.field,s=e.getId(),l=t.data,c=t.groupData&&void 0!==t.groupData[s],u=!r&&t.aggData&&void 0!==t.aggData[s];if(n&&i.filterValueGetter?o=this.executeFilterValueGetter(i.filterValueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&u?o=t.aggData[s]:this.gridOptionsWrapper.isTreeData()&&i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):this.gridOptionsWrapper.isTreeData()&&a&&l?o=d.getValueUsingField(l,a,e.isFieldContainsDots()):c?o=t.groupData[s]:u?o=t.aggData[s]:i.valueGetter?o=this.executeValueGetter(i.valueGetter,l,e,t):a&&l&&(o=d.getValueUsingField(l,a,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof o&&0===o.indexOf("=")){var h=o.substring(1);o=this.executeValueGetter(h,l,e,t)}return o}},e.prototype.setValue=function(e,t,n,r){var o=this.columnController.getPrimaryColumn(t);if(e&&o){var i=e.data;d.missing(i)&&(e.data={});var a=o.getColDef(),s=a.field,l=a.newValueHandler,c=a.valueSetter;if(d.missing(s)&&d.missing(l)&&d.missing(c))console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");else{var u,h={node:e,data:e.data,oldValue:this.getValue(o,e),newValue:n,colDef:o.getColDef(),column:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(h.newValue=n,void 0===(u=l&&d.exists(l)?l(h):d.exists(c)?this.expressionService.evaluate(c,h):this.setValueUsingField(i,s,n,o.isFieldContainsDots()))&&(u=!0),u){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),h.newValue=this.getValue(o,e);var p=o.getColDef().onCellValueChanged;"function"===typeof p&&setTimeout(function(){return p(h)},0);var f={type:z.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:h.column,api:h.api,colDef:h.colDef,columnApi:h.columnApi,context:h.context,data:e.data,node:e,oldValue:h.oldValue,newValue:h.newValue,value:h.newValue,source:r};this.eventService.dispatchEvent(f)}}}},e.prototype.setValueUsingField=function(e,t,n,r){if(!t)return!1;if(r)for(var o=t.split("."),i=e;o.length>0&&i;){var a=o.shift();0===o.length?i[a]=n:i=i[a]}else e[t]=n;return!0},e.prototype.executeFilterValueGetter=function(e,t,n,r){var o={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)};return this.expressionService.evaluate(e,o)},e.prototype.executeValueGetter=function(e,t,n,r){var o=n.getId(),i=this.valueCache.getValue(r,o);if(void 0!==i)return i;var a={data:t,node:r,column:n,colDef:n.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,r)},s=this.expressionService.evaluate(e,a);return this.valueCache.setValue(r,o,s),s},e.prototype.getValueCallback=function(e,t){var n=this.columnController.getPrimaryColumn(t);return n?this.getValue(n,e):null},e.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),r=e.getColDef().keyCreator,o=r?r({value:n}):n;return"string"===typeof o||null==o?o:("[object Object]"===(o=String(o))&&d.doOnce(function(){console.warn("ag-Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se ag-Grid docs) or b) to toString() on the object to return a key")},"getKeyForNode - warn about [object,object]"),o)},Mr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Mr([b("expressionService")],e.prototype,"expressionService",void 0),Mr([b("columnController")],e.prototype,"columnController",void 0),Mr([b("eventService")],e.prototype,"eventService",void 0),Mr([b("valueCache")],e.prototype,"valueCache",void 0),Mr([m],e.prototype,"init",null),e=Mr([y("valueService")],e)}(),Or=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ar=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.lastMadeVisibleTime=0,this.eContainer=e.eContainer,this.eViewport=e.eViewport,e.eWrapper&&(this.eWrapper=e.eWrapper),this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.setVerticalScrollPosition=function(e){this.scrollTop=e},e.prototype.postConstruct=function(){this.checkDomOrder(),this.checkVisibility(),this.gridOptionsWrapper.addEventListener(te.PROP_DOM_LAYOUT,this.checkDomOrder.bind(this))},e.prototype.checkDomOrder=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){null!=e?(this.eContainer.style.height=e+"px",this.eWrapper&&(this.eWrapper.style.height=e+"px")):this.eContainer.style.height=""},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");d.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach(function(e){return e()}),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=d.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(d.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,this.lastMadeVisibleTime=(new Date).getTime(),d.setDisplayed(e,t),t&&this.eViewport&&(this.eViewport.scrollTop=this.scrollTop))}},e.prototype.isMadeVisibleRecently=function(){return(new Date).getTime()-this.lastMadeVisibleTime<500},Or([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Or([m],e.prototype,"postConstruct",null),e}(),Tr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kr=function(){function e(e,t){this.eContainer=e,this.gridPanel=t}return e.prototype.postConstruct=function(){this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},e.prototype.getIconName=function(){return an.ICON_MOVE},e.prototype.onDragEnter=function(e){this.dispatchEvent(z.EVENT_ROW_DRAG_ENTER,e),this.dragAndDropService.setGhostIcon(an.ICON_MOVE),e.dragItem.rowNode.setDragging(!0),this.onEnterOrDragging(e)},e.prototype.onDragging=function(e){this.onEnterOrDragging(e)},e.prototype.onEnterOrDragging=function(e){this.dispatchEvent(z.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.normaliseForScroll(e.y);this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.checkCenterForScrolling(t)},e.prototype.doManagedDrag=function(e,t){var n=e.dragItem.rowNode;this.clientSideRowModel.ensureRowAtPixel(n,t)&&(this.focusedCellController.clearFocusedCell(),this.rangeController&&this.rangeController.removeAllCellRanges())},e.prototype.normaliseForScroll=function(e){return this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_NORMAL?e+this.gridPanel.getVScrollPosition().top:e},e.prototype.checkCenterForScrolling=function(e){var t=this.gridPanel.getVScrollPosition();this.needToMoveUp=et.bottom-50,this.needToMoveUp||this.needToMoveDown?this.ensureIntervalStarted():this.ensureIntervalCleared()},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null)},e.prototype.moveInterval=function(){var e,t;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100),this.needToMoveDown?t=this.gridPanel.scrollVertically(e):this.needToMoveUp&&(t=this.gridPanel.scrollVertically(-e)),0!==t&&this.onDragging(this.lastDraggingEvent)},e.prototype.dispatchEvent=function(e,n){var r,o=this.normaliseForScroll(n.y),i=-1,a=null;switch(o>this.rowModel.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(o),a=this.rowModel.getRow(i)),n.vDirection){case t.VerticalDirection.Down:r="down";break;case t.VerticalDirection.Up:r="up";break;default:r=null}var s={type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,overIndex:i,overNode:a,y:o,vDirection:r};this.eventService.dispatchEvent(s)},e.prototype.onDragLeave=function(e){this.dispatchEvent(z.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e)},e.prototype.onDragStop=function(e){this.dispatchEvent(z.EVENT_ROW_DRAG_END,e),this.stopDragging(e)},e.prototype.stopDragging=function(e){this.ensureIntervalCleared(),e.dragItem.rowNode.setDragging(!1)},Tr([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Tr([b("rowModel")],e.prototype,"rowModel",void 0),Tr([b("focusedCellController")],e.prototype,"focusedCellController",void 0),Tr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Tr([C("rangeController")],e.prototype,"rangeController",void 0),Tr([b("eventService")],e.prototype,"eventService",void 0),Tr([m],e.prototype,"postConstruct",null),e}(),Dr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nr='
\n \n \n \n \n \n \n
',Lr=function(e){function n(){var t=e.call(this,Nr)||this;return t.scrollLeft=-1,t.scrollTop=-1,t.resetLastHorizontalScrollElementDebounce=d.debounce(t.resetLastHorizontalScrollElement.bind(t),500),t}return Dr(n,e),n.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},n.prototype.getHScrollPosition=function(){return{left:this.eCenterViewport.scrollLeft,right:this.eCenterViewport.scrollLeft+this.eCenterViewport.offsetWidth}},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();this[e&&!t?"showNoRowsOverlay":"hideOverlay"]()},n.prototype.onNewColumnsLoaded=function(){this.columnController.isReady()&&!this.paginationProxy.isEmpty()&&this.hideOverlay()},n.prototype.init=function(){var e=this;this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT,this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.gridOptionsWrapper.addLayoutElement(this.eBodyViewport),this.suppressScrollOnFloatingRow(),this.setupRowAnimationCssClass(),this.buildRowContainerComponents(),this.addEventListeners(),this.addDragListeners(),this.addScrollListener(),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.disableBrowserDragging(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.mockContextMenuForIPad(),this.addRowDragListener(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged(),this.gridApi.registerGridComp(this),this.alignedGridsService.registerGridComp(this),this.headerRootComp.registerGridComp(this),this.navigationService.registerGridComp(this),this.heightScaler.registerGridComp(this),this.autoHeightCalculator.registerGridComp(this),this.columnAnimationService.registerGridComp(this),this.autoWidthCalculator.registerGridComp(this),this.paginationAutoPageSizeService.registerGridComp(this),this.beans.registerGridComp(this),this.rowRenderer.registerGridComp(this),this.rangeController&&this.rangeController.registerGridComp(this),[this.eCenterViewport,this.eBodyViewport].forEach(function(t){var n=e.resizeObserverService.observeResize(t,e.onCenterViewportResized.bind(e));e.addDestroyFunc(function(){return n()})})},n.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===o.DOM_LAYOUT_PRINT;this.printLayout!==e&&(this.printLayout=e,this.setWidthsOfContainers(),this.setPinnedContainerSize())},n.prototype.onCenterViewportResized=function(){d.isVisible(this.eCenterViewport)?(this.checkViewportAndScrolls(),this.columnController.refreshFlexedColumns(this.getCenterWidth())):this.bodyHeight=0},n.prototype.setColumnMovingCss=function(e){this.addOrRemoveCssClass("ag-column-moving",e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),[this.eTop,this.eBodyViewport,this.eBottom].forEach(function(t){return d.addOrRemoveCssClass(t,"ag-selectable",e)})},n.prototype.addRowDragListener=function(){var e=new kr(this.eBodyViewport,this);this.getContext().wireBean(e),this.dragAndDropService.addDropTarget(e)},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()){var t=function(t){for(var n=!1,r=t.relatedTarget;d.exists(r)&&!n;){var o=!!e.gridOptionsWrapper.getDomData(r,gn.DOM_KEY_POPUP_EDITOR_WRAPPER),i=e.eBodyViewport===r||e.eBottom===r||e.eTop===r;n=o||i,r=r.parentNode}n||e.rowRenderer.stopEditing()};this.addDestroyableEventListener(this.eBodyViewport,"focusout",t),this.addDestroyableEventListener(this.eTop,"focusout",t),this.addDestroyableEventListener(this.eBottom,"focusout",t)}},n.prototype.addAngularApplyCheck=function(){var e=this,t=!1,n=function(){t||(t=!0,window.setTimeout(function(){t=!1,e.$scope.$apply()},0))};this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addDestroyableEventListener(this.eventService,z.EVENT_VIRTUAL_COLUMNS_CHANGED,n)},n.prototype.disableBrowserDragging=function(){this.addGuiEventListener("dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},n.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_PINNED_ROW_DATA_CHANGED,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_PIVOT_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_FLOATING_FILTERS_HEIGHT,this.setHeaderAndFloatingHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,te.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this))},n.prototype.addDragListeners=function(){var e=this;this.gridOptionsWrapper.isEnableRangeSelection()&&!d.missing(this.rangeController)&&[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom].forEach(function(t){var n={eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(n),e.addDestroyFunc(function(){return e.dragService.removeDragSource(n)})})},n.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach(function(t){var n=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach(function(r){return e.addDestroyableEventListener(r,t,n)})})},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(t){var n=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach(function(r){e.addDestroyableEventListener(r,t,n)})})},n.prototype.addBodyViewportListener=function(){var e=this;this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",function(t){var n=d.getTarget(t);n!==e.eBodyViewport&&n!==e.eCenterViewport||(e.onContextMenu(t,null,null,null,null),e.preventDefaultOnContextMenu(t))})},n.prototype.getBodyClientRect=function(){if(this.eBodyViewport)return this.eBodyViewport.getBoundingClientRect()},n.prototype.getRowForEvent=function(e){for(var t=d.getTarget(e);t;){var n=this.gridOptionsWrapper.getDomData(t,Sn.DOM_DATA_KEY_RENDERED_ROW);if(n)return n;t=t.parentElement}return null},n.prototype.processKeyboardEvent=function(e,t){var n=d.getCellCompForEvent(this.gridOptionsWrapper,t);if(n){var r=n.getRenderedRow().getRowNode(),o=n.getColumn(),i=n.isEditing();if(!d.isUserSuppressingKeyboardEvent(this.gridOptionsWrapper,t,r,o,i))switch(e){case"keydown":!i&&this.navigationService.handlePageScrollingKey(t)||n.onKeyDown(t),this.doGridOperations(t,n);break;case"keypress":n.onKeyPress(t)}if("keydown"===e){var a=n.createEvent(t,z.EVENT_CELL_KEY_DOWN);this.beans.eventService.dispatchEvent(a)}if("keypress"===e){var s=n.createEvent(t,z.EVENT_CELL_KEY_PRESS);this.beans.eventService.dispatchEvent(s)}}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t.isEditing()&&this.mouseEventService.isEventFromThisGrid(e))switch(e.which){case o.KEY_A:return this.onCtrlAndA(e);case o.KEY_C:return this.onCtrlAndC(e);case o.KEY_V:return this.onCtrlAndV();case o.KEY_D:return this.onCtrlAndD(e);case o.KEY_Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case o.KEY_Y:return this.undoRedoService.redo()}},n.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!d.isStopPropagationForAgGrid(t)){var n=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,r):(r&&r.onMouseEvent(e,t),n&&n.onMouseEvent(e,t)),this.preventDefaultOnContextMenu(t)}},n.prototype.mockContextMenuForIPad=function(){var e=this;d.isIOSUserAgent()&&this.eAllCellContainers.forEach(function(t){var n=new Le(t);e.addDestroyableEventListener(n,Le.EVENT_LONG_TAP,function(t){var n=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,r)}),e.addDestroyFunc(function(){return n.destroy()})})},n.prototype.handleContextMenuMouseEvent=function(e,t,n,r){var o=n?n.getRowNode():null,i=r?r.getColumn():null,a=null;if(i){var s=e||t;r.dispatchCellContextMenuEvent(s),a=this.valueService.getValue(i,o)}this.onContextMenu(e,t,o,i,a)},n.prototype.onContextMenu=function(e,t,n,r,o){if((this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()){var i=e||t.touches[0];this.contextMenuFactory.showMenu(n,r,o,i),(e||t).preventDefault()}},n.prototype.preventDefaultOnContextMenu=function(e){var t=this.gridOptionsWrapper,n=e.which;(t.isPreventDefaultOnContextMenu()||t.isSuppressMiddleClickScrolls()&&2===n)&&e.preventDefault()},n.prototype.onCtrlAndA=function(e){var t=this.columnController,n=this.pinnedRowModel,r=this.paginationProxy,i=this.rangeController,a=o.PINNED_BOTTOM,s=o.PINNED_TOP;if(i&&r.isRowsToRender()){var l=[n.isEmpty(s),n.isEmpty(a)],c=l[0]?null:s,u=void 0,h=void 0;l[1]?(u=null,h=this.paginationProxy.getRowCount()-1):(u=a,h=n.getPinnedBottomRowData().length-1);var p=t.getAllDisplayedColumns();if(d.missingOrEmpty(p))return;i.setCellRange({rowStartIndex:0,rowStartPinned:c,rowEndIndex:h,rowEndPinned:u,columnStart:p[0],columnEnd:d.last(p)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()){var t=this.focusedCellController.getFocusedCell();this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.rowPinned,!0)}},n.prototype.onCtrlAndV=function(){A.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){A.isRegistered(t.ModuleNames.ClipboardModule)&&(this.clipboardService.copyRangeDown(),e.preventDefault())},n.prototype.ensureIndexVisible=function(e,t){if(!this.printLayout){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.paginationProxy.goToPageWithIndex(e);var r,o=this.paginationProxy.getRow(e);do{var i=o.rowTop,a=o.rowHeight,s=this.paginationProxy.getPixelOffset(),l=o.rowTop-s,c=l+o.rowHeight,u=this.getVScrollPosition(),d=this.heightScaler.getOffset(),h=u.top+d,p=u.bottom+d,f=p-h,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(c-f),v=Math.min((g+m)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=m:"middle"===t?y=v:h>l?y=g:po,u=r0?this.columnController.sizeColumnsToFit(n,"sizeColumnsToFit"):void 0===e?window.setTimeout(function(){t.sizeColumnsToFit(100)},0):100===e?window.setTimeout(function(){t.sizeColumnsToFit(500)},100):500===e?window.setTimeout(function(){t.sizeColumnsToFit(-1)},500):console.warn("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.getCenterContainer=function(){return this.eCenterContainer},n.prototype.getDropTargetBodyContainers=function(){return[this.eCenterViewport,this.eTopViewport,this.eBottomViewport]},n.prototype.getDropTargetLeftContainers=function(){return[this.eLeftContainer,this.eLeftBottom,this.eLeftTop]},n.prototype.getDropTargetRightContainers=function(){return[this.eRightContainer,this.eRightBottom,this.eRightTop]},n.prototype.buildRowContainerComponents=function(){var e=this;this.eAllCellContainers=[this.eLeftContainer,this.eRightContainer,this.eCenterContainer,this.eTop,this.eBottom,this.eFullWidthContainer],this.rowContainerComponents={body:new Ar({eContainer:this.eCenterContainer,eWrapper:this.eCenterColsClipper,eViewport:this.eBodyViewport}),fullWidth:new Ar({eContainer:this.eFullWidthContainer}),pinnedLeft:new Ar({eContainer:this.eLeftContainer}),pinnedRight:new Ar({eContainer:this.eRightContainer}),floatingTop:new Ar({eContainer:this.eTopContainer}),floatingTopPinnedLeft:new Ar({eContainer:this.eLeftTop}),floatingTopPinnedRight:new Ar({eContainer:this.eRightTop}),floatingTopFullWidth:new Ar({eContainer:this.eTopFullWidthContainer,hideWhenNoChildren:!0}),floatingBottom:new Ar({eContainer:this.eBottomContainer}),floatingBottomPinnedLeft:new Ar({eContainer:this.eLeftBottom}),floatingBottomPinnedRight:new Ar({eContainer:this.eRightBottom}),floatingBottomFullWith:new Ar({eContainer:this.eBottomFullWidthContainer,hideWhenNoChildren:!0})},d.iterateObject(this.rowContainerComponents,function(t,n){n&&e.getContext().wireBean(n)})},n.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.heightScaler.isScaling();d.addOrRemoveCssClass(e.eBodyViewport,"ag-row-animation",t),d.addOrRemoveCssClass(e.eBodyViewport,"ag-row-no-animation",!t)};t(),this.addDestroyableEventListener(this.eventService,z.EVENT_HEIGHT_SCALE_CHANGED,t)},n.prototype.suppressScrollOnFloatingRow=function(){var e=this;this.addDestroyableEventListener(this.eTopViewport,"scroll",function(){return e.eTopViewport.scrollLeft=0}),this.addDestroyableEventListener(this.eBottomViewport,"scroll",function(){return e.eTopViewport.scrollLeft=0})},n.prototype.getRowContainers=function(){return this.rowContainerComponents},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},n.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainerSize(),this.setHeaderAndFloatingHeights(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.updateColumnCount()},n.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.onHorizontalViewportChanged(),this.updateScrollVisibleService(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},n.prototype.setWidthsOfContainers=function(){this.setCenterWidth(),this.setPinnedContainerSize()},n.prototype.setCenterWidth=function(){var e=this.columnController.getBodyContainerWidth();this.printLayout&&(e+=this.columnController.getPinnedLeftContainerWidth()+this.columnController.getPinnedRightContainerWidth());this.headerRootComp.setHeaderContainerWidth(e);var t=e+"px";this.eCenterContainer.style.width=t,this.eBottomContainer.style.width=t,this.eTopContainer.style.width=t,this.printLayout||(this.eBodyHorizontalScrollContainer.style.width=t)},n.prototype.setPinnedLeftWidth=function(){var e=this,t=this.pinningLeft,n=this.columnController.getPinnedLeftContainerWidth(),r=this.pinningLeft=!this.printLayout&&n>0,o=[this.eLeftContainer,this.eLeftTop,this.eLeftBottom];t!==r&&this.headerRootComp.setLeftVisible(r),o.forEach(function(t){return d.setDisplayed(t,e.pinningLeft)}),r&&o.forEach(function(e){return d.setFixedWidth(e,n)})},n.prototype.setPinnedRightWidth=function(){var e=this.pinningRight,t=this.columnController.getPinnedRightContainerWidth(),n=this.pinningRight=!this.printLayout&&t>0,r=[this.eRightContainer,this.eRightTop,this.eRightBottom];e!==n&&this.headerRootComp.setRightVisible(n),r.forEach(function(e){return d.setDisplayed(e,n)}),n&&r.forEach(function(e){return d.setFixedWidth(e,t)})},n.prototype.setPinnedContainerSize=function(){this.setPinnedLeftWidth(),this.setPinnedRightWidth(),this.setFakeHScrollSpacerWidths()},n.prototype.setFakeHScrollSpacerWidths=function(){var e=this.columnController.getPinnedRightContainerWidth();!this.enableRtl&&this.isVerticalScrollShowing()&&(e+=this.scrollWidth),d.setFixedWidth(this.eHorizontalRightSpacer,e),d.addOrRemoveCssClass(this.eHorizontalRightSpacer,"ag-scroller-corner",e<=this.scrollWidth);var t=this.columnController.getPinnedLeftContainerWidth();this.enableRtl&&this.isVerticalScrollShowing()&&(t+=this.scrollWidth),d.setFixedWidth(this.eHorizontalLeftSpacer,t),d.addOrRemoveCssClass(this.eHorizontalLeftSpacer,"ag-scroller-corner",t<=this.scrollWidth)},n.prototype.checkBodyHeight=function(){var e=this.eBodyViewport.clientHeight;if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:z.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},n.prototype.setHeaderAndFloatingHeights=function(){var e,t,n,r=this,o=r.columnController,i=r.gridOptionsWrapper,a=r.pinnedRowModel,s=r.eTop,l=r.eBottom,c=0,u=o.getHeaderRowCount();o.isPivotMode()?(c=0,t=i.getPivotGroupHeaderHeight(),n=i.getPivotHeaderHeight()):(i.isFloatingFilter()&&u++,c=i.isFloatingFilter()?1:0,t=i.getGroupHeaderHeight(),n=i.getHeaderHeight());var d=u-(1+c);e=c*i.getFloatingFiltersHeight(),e+=d*t,e+=n,this.headerRootComp.setHeight(e);var h=a.getPinnedTopTotalHeight();h&&(h+=1);var p=a.getPinnedBottomTotalHeight();p&&(p+=1);var f=h+"px",g=p+"px";s.style.minHeight=f,s.style.height=f,s.style.display=h?"inherit":"none",l.style.minHeight=g,l.style.height=g,l.style.display=p?"inherit":"none",this.checkBodyHeight()},n.prototype.getBodyHeight=function(){return this.bodyHeight},n.prototype.setHorizontalScrollPosition=function(e){this.eCenterViewport.scrollLeft=e,this.doHorizontalScroll(e)},n.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},n.prototype.scrollHorizontally=function(e){var t=this.eCenterViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eCenterViewport.scrollLeft-t},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addScrollListener=function(){this.addDestroyableEventListener(this.eCenterViewport,"scroll",this.onCenterViewportScroll.bind(this)),this.addDestroyableEventListener(this.eBodyHorizontalScrollViewport,"scroll",this.onFakeHorizontalScroll.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onVerticalScroll.bind(this))},n.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.animationFrameService.setScrollTop(e),this.scrollTop=e,this.redrawRowsAfterScroll()},n.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},n.prototype.onFakeHorizontalScroll=function(){this.isControllingScroll(this.eBodyHorizontalScrollViewport)&&this.onBodyHorizontalScroll(this.eBodyHorizontalScrollViewport)},n.prototype.onCenterViewportScroll=function(){this.isControllingScroll(this.eCenterViewport)&&this.onBodyHorizontalScroll(this.eCenterViewport)},n.prototype.onBodyHorizontalScroll=function(e){var t=this.eCenterViewport,n=t.scrollWidth,r=t.clientWidth,o=Math.floor(d.getScrollLeft(e,this.enableRtl));o<0||o+r>n||(this.doHorizontalScroll(o),this.resetLastHorizontalScrollElementDebounce())},n.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},n.prototype.doHorizontalScroll=function(e){this.scrollLeft=e;var t={type:z.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(t),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged()},n.prototype.redrawRowsAfterScroll=function(){var e={type:z.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e)},n.prototype.onHorizontalViewportChanged=function(){var e=this.eCenterViewport.clientWidth,t=this.getCenterViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)},n.prototype.getCenterViewportScrollLeft=function(){return d.getScrollLeft(this.eCenterViewport,this.enableRtl)},n.prototype.setCenterViewportScrollLeft=function(e){d.setScrollLeft(this.eCenterViewport,e,this.enableRtl)},n.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){void 0===e&&(e=this.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.eCenterViewport,r=n.clientWidth,o=n.scrollWidth;if(!(Math.abs(t)+r>o||this.enableRtl&&t<0||!this.enableRtl&&t>0)){this.headerRootComp.setHorizontalScroll(t),this.eBottomContainer.style.transform="translateX("+t+"px)",this.eTopContainer.style.transform="translateX("+t+"px)";var i=this.lastHorizontalScrollElement===this.eCenterViewport?this.eBodyHorizontalScrollViewport:this.eCenterViewport;d.setScrollLeft(i,e,this.enableRtl)}},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Pr([b("alignedGridsService")],n.prototype,"alignedGridsService",void 0),Pr([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Pr([b("columnController")],n.prototype,"columnController",void 0),Pr([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Pr([b("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Pr([b("eventService")],n.prototype,"eventService",void 0),Pr([b("animationFrameService")],n.prototype,"animationFrameService",void 0),Pr([b("navigationService")],n.prototype,"navigationService",void 0),Pr([b("autoHeightCalculator")],n.prototype,"autoHeightCalculator",void 0),Pr([b("columnAnimationService")],n.prototype,"columnAnimationService",void 0),Pr([b("autoWidthCalculator")],n.prototype,"autoWidthCalculator",void 0),Pr([b("paginationAutoPageSizeService")],n.prototype,"paginationAutoPageSizeService",void 0),Pr([b("beans")],n.prototype,"beans",void 0),Pr([b("paginationProxy")],n.prototype,"paginationProxy",void 0),Pr([b("columnApi")],n.prototype,"columnApi",void 0),Pr([b("gridApi")],n.prototype,"gridApi",void 0),Pr([b("dragService")],n.prototype,"dragService",void 0),Pr([b("mouseEventService")],n.prototype,"mouseEventService",void 0),Pr([b("focusedCellController")],n.prototype,"focusedCellController",void 0),Pr([b("$scope")],n.prototype,"$scope",void 0),Pr([b("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Pr([b("valueService")],n.prototype,"valueService",void 0),Pr([b("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Pr([b("maxDivHeightScaler")],n.prototype,"heightScaler",void 0),Pr([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Pr([b("undoRedoService")],n.prototype,"undoRedoService",void 0),Pr([C("rangeController")],n.prototype,"rangeController",void 0),Pr([C("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Pr([C("clipboardService")],n.prototype,"clipboardService",void 0),Pr([ge("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Pr([ge("eCenterContainer")],n.prototype,"eCenterContainer",void 0),Pr([ge("eCenterViewport")],n.prototype,"eCenterViewport",void 0),Pr([ge("eLeftContainer")],n.prototype,"eLeftContainer",void 0),Pr([ge("eRightContainer")],n.prototype,"eRightContainer",void 0),Pr([ge("eCenterColsClipper")],n.prototype,"eCenterColsClipper",void 0),Pr([ge("eHorizontalScrollBody")],n.prototype,"eHorizontalScrollBody",void 0),Pr([ge("eHorizontalLeftSpacer")],n.prototype,"eHorizontalLeftSpacer",void 0),Pr([ge("eHorizontalRightSpacer")],n.prototype,"eHorizontalRightSpacer",void 0),Pr([ge("eBodyHorizontalScrollViewport")],n.prototype,"eBodyHorizontalScrollViewport",void 0),Pr([ge("eBodyHorizontalScrollContainer")],n.prototype,"eBodyHorizontalScrollContainer",void 0),Pr([ge("eFullWidthContainer")],n.prototype,"eFullWidthContainer",void 0),Pr([ge("eTop")],n.prototype,"eTop",void 0),Pr([ge("eLeftTop")],n.prototype,"eLeftTop",void 0),Pr([ge("eRightTop")],n.prototype,"eRightTop",void 0),Pr([ge("eTopContainer")],n.prototype,"eTopContainer",void 0),Pr([ge("eTopViewport")],n.prototype,"eTopViewport",void 0),Pr([ge("eTopFullWidthContainer")],n.prototype,"eTopFullWidthContainer",void 0),Pr([ge("eBottom")],n.prototype,"eBottom",void 0),Pr([ge("eLeftBottom")],n.prototype,"eLeftBottom",void 0),Pr([ge("eRightBottom")],n.prototype,"eRightBottom",void 0),Pr([ge("eBottomContainer")],n.prototype,"eBottomContainer",void 0),Pr([ge("eBottomViewport")],n.prototype,"eBottomViewport",void 0),Pr([ge("eBottomFullWidthContainer")],n.prototype,"eBottomFullWidthContainer",void 0),Pr([ge("headerRoot")],n.prototype,"headerRootComp",void 0),Pr([ge("overlayWrapper")],n.prototype,"overlayWrapper",void 0),Pr([m],n.prototype,"init",null),n}(ue),Rr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fr=function(){function e(){this.detailGridInfoMap={}}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.init=function(){switch(this.rowModel.getType()){case o.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case o.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case o.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var t=0;d.iterateObject(this.detailGridInfoMap,function(n,r){d.exists(r)&&(e(r,t),t++)})},e.prototype.getDataAsCsv=function(e){if(A.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){A.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){if(A.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel"))return this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){A.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")&&this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("ag-grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setServerSideDatasource=function(e){this.gridOptionsWrapper.isRowModelServerSide()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+o.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e),n=t[0],r=t[1];this.clientSideRowModel.updateRowData(n,r),this.rowRenderer.refreshFullWidthRows()}else this.selectionController.reset(),this.clientSideRowModel.setRowData(e);else console.warn("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnController.setColumnDefs(e,t)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridPanel.getHScrollPosition()},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.gridCore.refreshSideBar()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){void 0===e&&(e=1);var t=0,n=0,r=0,o=this;!function i(){var a=(new Date).getTime();o.rowRenderer.redrawAfterModelUpdate();var s=(new Date).getTime();window.setTimeout(function(){var o=(new Date).getTime(),l=s-a,c=o-s;console.log("duration: processing = "+l+"ms, reflow = "+c+"ms"),n+=l,r+=c,++t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zr=function(e,t){return function(n,r){t(n,r,e)}},Br=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},Ir([zr(0,x("loggerFactory"))],e.prototype,"setBeans",null),e=Ir([y("expressionService")],e)}(),jr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vr=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var n=this.templateCache[e];if(n)return n;var r=this.waitingCallbacks[e],o=this;if(!r){r=[],this.waitingCallbacks[e]=r;var i=new XMLHttpRequest;i.onload=function(){o.handleHttpResult(this,e)},i.open("GET",e),i.send()}return t&&r.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hr=function(){function e(){this.popupList=[]}return e.prototype.registerGridCore=function(e){this.gridCore=e},e.prototype.getDocument=function(){return this.gridOptionsWrapper.getDocument()},e.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){var t,n=e.eventSource.getBoundingClientRect(),r=this.getDocument(),o=this.getPopupParent();t=o===r.body?r.documentElement.getBoundingClientRect():o.getBoundingClientRect();var i=n.top-t.top;i=this.keepYWithinBounds(e,i);var a=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=a+"px";var s,l=t.right-t.left-a;function c(){return n.right-t.left-2}function u(){return n.left-t.left-a}this.gridOptionsWrapper.isEnableRtl()?((s=u())<0&&(s=c()),s>l&&(s=0)):((s=c())>l&&(s=u()),s<0&&(s=0)),e.ePopup.style.left=s+"px",e.ePopup.style.top=i+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.calculatePointerAlign(e.mouseEvent),n=t.x,r=t.y,o=e.ePopup,i=e.nudgeX,a=e.nudgeY;this.positionPopup({ePopup:o,x:n,y:r,nudgeX:i,nudgeY:a,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.calculatePointerAlign=function(e){var t=this.getDocument(),n=this.getPopupParent(),r=n.getBoundingClientRect(),o=t.documentElement.getBoundingClientRect();return{x:e.clientX-(n===t.body?o.left:r.left),y:e.clientY-(n===t.body?o.top:r.top)}},e.prototype.positionPopupUnderComponent=function(e){var t,n=e.eventSource.getBoundingClientRect(),r=this.getDocument(),o=this.getPopupParent(),i=e.alignSide||"left";t=o===r.body?r.documentElement.getBoundingClientRect():o.getBoundingClientRect();var a=n.left-t.left;"right"===i&&(a-=e.ePopup.offsetWidth-n.width),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,minHeight:e.minHeight,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:a,y:n.top-t.top+n.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopupOverComponent=function(e){var t,n=e.eventSource.getBoundingClientRect(),r=this.getDocument(),o=this.getPopupParent();t=o===r.body?r.documentElement.getBoundingClientRect():o.getBoundingClientRect(),this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:n.left-t.left,y:n.top-t.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,n,r,o,i){var a=this.gridOptionsWrapper.getPostProcessPopupFunc();a&&a({column:o,rowNode:i,ePopup:e,type:r,eventSource:t,mouseEvent:n})},e.prototype.positionPopup=function(e){var t=e.x,n=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(n+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),n=this.keepYWithinBounds(e,n)),e.ePopup.style.left=t+"px",e.ePopup.style.top=n+"px"},e.prototype.keepYWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),r=n.documentElement,o=this.getPopupParent(),i=o.getBoundingClientRect(),a=n.documentElement.getBoundingClientRect(),s=o===n.body,l=Math.min(200,i.height),c=0;e.minHeight&&e.minHeight0&&(l=e.ePopup.clientHeight,c=d.getAbsoluteHeight(e.ePopup)-l);var u=s?d.getAbsoluteHeight(r)+r.scrollTop:i.height;s&&(u-=Math.abs(a.top-i.top));var h=u-l-c-3;return Math.min(Math.max(t,0),Math.abs(h))},e.prototype.keepXWithinBounds=function(e,t){var n=this.gridOptionsWrapper.getDocument(),r=n.documentElement,o=this.getPopupParent(),i=o.getBoundingClientRect(),a=n.documentElement.getBoundingClientRect(),s=o===n.body,l=e.ePopup,c=Math.min(200,i.width),u=0;e.minWidth&&e.minWidth0&&(c=l.offsetWidth,l.style.minWidth=c+"px",u=d.getAbsoluteWidth(l)-c);var h=s?d.getAbsoluteWidth(r)+r.scrollLeft:i.width;s&&(h-=Math.abs(a.left-i.left));var p=h-c-u-3;return Math.min(Math.max(t,0),Math.abs(p))},e.prototype.addAsModalPopup=function(e,t,n,r){return this.addPopup(!0,e,t,n,r)},e.prototype.addPopup=function(e,t,n,r,i,a){var s=this,l=this.gridOptionsWrapper.getDocument();if(!l)return console.warn("ag-grid: could not find the document, document is empty"),function(){};var c=d.findIndex(this.popupList,function(e){return e.element===t});if(-1!==c)return this.popupList[c].hideFunc;var u=this.getPopupParent();u.appendChild(t),t.style.top="0px",t.style.left="0px";var h=document.createElement("div"),p=this.environment.getTheme().theme;p&&d.addCssClass(h,p),d.addCssClass(h,"ag-popup"),d.addCssClass(t,this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr"),h.appendChild(t),u.appendChild(h),a?this.setAlwaysOnTop(h,!0):this.bringPopupToFront(h);var f=!1,g=function(e){(e.which||e.keyCode)===o.KEY_ESCAPE&&h.contains(document.activeElement)&&y(null)},m=function(e){y(e)},v=function(e){y(null,e)},y=function(e,n){s.isEventFromCurrentPopup(e,n,t)||s.isEventSameChainAsOriginalEvent(i,e,n)||f||(f=!0,u.removeChild(h),l.removeEventListener("keydown",g),l.removeEventListener("mousedown",m),l.removeEventListener("touchstart",v),l.removeEventListener("contextmenu",m),s.eventService.removeEventListener(z.EVENT_DRAG_STARTED,m),r&&r(),s.popupList=s.popupList.filter(function(e){return e.element!==t}))};return window.setTimeout(function(){n&&l.addEventListener("keydown",g),e&&(l.addEventListener("mousedown",m),s.eventService.addEventListener(z.EVENT_DRAG_STARTED,m),l.addEventListener("touchstart",v),l.addEventListener("contextmenu",m))},0),this.popupList.push({element:t,hideFunc:y}),y},e.prototype.isEventFromCurrentPopup=function(e,t,n){var r=e||t;if(!r)return!1;var o=d.findIndex(this.popupList,function(e){return e.element===n});if(-1===o)return!1;for(var i=o;i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ur=function(e,t){return function(n,r){t(n,r,e)}},qr=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new Yr(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},Gr([Ur(0,x("gridOptionsWrapper"))],e.prototype,"setBeans",null),e=Gr([y("loggerFactory")],e)}(),Yr=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}(),Xr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kr=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.registerHeaderRootComp=function(e){this.headerRootComp=e},e.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var r=document.createElement("span");r.style.position="fixed";var o=this.gridPanel.getCenterContainer();o.appendChild(r),this.putRowCellsIntoDummyContainer(e,r),t||this.cloneItemIntoDummy(n,r);var i=r.offsetWidth;return o.removeChild(r),i+this.gridOptionsWrapper.getAutoSizePadding()},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRootComp.forEachHeaderElement(function(n){if(n instanceof Zn){var r=n;r.getColumn()===e&&(t=r)}}),t?t.getGui():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var n=this;this.rowRenderer.getAllCellsForColumn(e).forEach(function(e){return n.cloneItemIntoDummy(e,t)})},e.prototype.cloneItemIntoDummy=function(e,t){var n=e.cloneNode(!0);n.style.width="",n.style.position="static",n.style.left="";var r=document.createElement("div");r.style.display="table-row",r.appendChild(n),t.appendChild(r)},Xr([b("rowRenderer")],e.prototype,"rowRenderer",void 0),Xr([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Xr([y("autoWidthCalculator")],e)}(),$r=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zr=function(){function e(){}return e.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},e.prototype.onDragStart=function(e,t){this.draggingStarted=!0,this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},e.prototype.setResizeIcons=function(){this.oldBodyCursor=this.eGridDiv.style.cursor,this.oldMsUserSelect=this.eGridDiv.style.msUserSelect,this.oldWebkitUserSelect=this.eGridDiv.style.webkitUserSelect,this.eGridDiv.style.cursor="col-resize",this.eGridDiv.style.msUserSelect="none",this.eGridDiv.style.webkitUserSelect="none"},e.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},e.prototype.resetIcons=function(){this.eGridDiv.style.cursor=this.oldBodyCursor,this.eGridDiv.style.msUserSelect=this.oldMsUserSelect,this.eGridDiv.style.webkitUserSelect=this.oldWebkitUserSelect},e.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},$r([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),$r([b("dragService")],e.prototype,"dragService",void 0),$r([b("eGridDiv")],e.prototype,"eGridDiv",void 0),e=$r([y("horizontalResizeService")],e)}(),Jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qr=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eo=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Jr(n,e),n.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("GridCore");var n=this.createTemplate();if(this.setTemplate(n),[this.gridApi,this.filterManager,this.rowRenderer,this.popupService].forEach(function(t){return t.registerGridCore(e)}),A.isRegistered(t.ModuleNames.ClipboardModule)&&this.clipboardService.registerGridCore(this),this.gridOptionsWrapper.addLayoutElement(this.getGui()),this.eGridDiv.appendChild(this.getGui()),this.addDestroyFunc(function(){e.eGridDiv.removeChild(e.getGui())}),this.$scope){var r=this.$scope.$watch(this.quickFilterOnScope,function(t){return e.filterManager.setQuickFilter(t)});this.addDestroyFunc(r)}this.addRtlSupport(),this.logger.log("ready"),this.gridOptionsWrapper.addLayoutElement(this.eRootWrapperBody);var o=this.gridPanel.getGui();this.addDestroyableEventListener(o,"focusin",function(){d.addCssClass(o,"ag-has-focus")}),this.addDestroyableEventListener(o,"focusout",function(e){o.contains(e.relatedTarget)||d.removeCssClass(o,"ag-has-focus")});var i=this.resizeObserverService.observeResize(this.eGridDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return i()});var a=this.environment.getTheme().theme;/^ag-theme-(fresh|dark|blue|bootstrap)$/.test(a)&&console.warn('ag-Grid: "'+a+'" theme is deprecated and will be removed in the next major release (v23)')},n.prototype.createTemplate=function(){var e=A.isRegistered(t.ModuleNames.SideBarModule),n=A.isRegistered(t.ModuleNames.StatusBarModule);return'
\n '+(A.isRegistered(t.ModuleNames.RowGroupingModule)?"":"")+'\n
\n \n '+(e?'':"")+"\n
\n "+(n?'':"")+"\n \n "+(A.isRegistered(t.ModuleNames.EnterpriseCoreModule)?"":"")+"\n
"},n.prototype.onGridSizeChanged=function(){var e={type:z.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridDiv.clientWidth,clientHeight:this.eGridDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";d.addCssClass(this.getGui(),e)},n.prototype.getRootGui=function(){return this.getGui()},n.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},n.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("ag-Grid: sideBar is not loaded")},n.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("ag-Grid: sideBar is not loaded")},n.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.getSideBar=function(){return this.gridOptions.sideBar},n.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return this.sideBarComp.getToolPanelInstance(e);console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.refreshSideBar=function(){this.sideBarComp&&this.sideBarComp.refresh()},n.prototype.setSideBar=function(e){this.sideBarComp&&(this.eRootWrapperBody.removeChild(this.sideBarComp.getGui()),this.gridOptions.sideBar=$.parse(e),this.sideBarComp.reset(),this.eRootWrapperBody.appendChild(this.sideBarComp.getGui()))},n.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},n.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise")},n.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.logger.log("Grid DOM removed")},n.prototype.ensureNodeVisible=function(e,t){if(void 0===t&&(t="top"),this.doingVirtualPaging)throw new Error("Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory");for(var n=this.rowModel.getRowCount(),r="function"===typeof e,o=-1,i=0;i=0&&this.gridPanel.ensureIndexVisible(o,t)},Qr([b("gridOptions")],n.prototype,"gridOptions",void 0),Qr([b("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),Qr([b("rowModel")],n.prototype,"rowModel",void 0),Qr([b("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Qr([b("columnController")],n.prototype,"columnController",void 0),Qr([b("rowRenderer")],n.prototype,"rowRenderer",void 0),Qr([b("filterManager")],n.prototype,"filterManager",void 0),Qr([b("eventService")],n.prototype,"eventService",void 0),Qr([b("eGridDiv")],n.prototype,"eGridDiv",void 0),Qr([b("$scope")],n.prototype,"$scope",void 0),Qr([b("quickFilterOnScope")],n.prototype,"quickFilterOnScope",void 0),Qr([b("popupService")],n.prototype,"popupService",void 0),Qr([b("focusedCellController")],n.prototype,"focusedCellController",void 0),Qr([b("loggerFactory")],n.prototype,"loggerFactory",void 0),Qr([b("columnApi")],n.prototype,"columnApi",void 0),Qr([b("gridApi")],n.prototype,"gridApi",void 0),Qr([b("environment")],n.prototype,"environment",void 0),Qr([C("clipboardService")],n.prototype,"clipboardService",void 0),Qr([ge("gridPanel")],n.prototype,"gridPanel",void 0),Qr([ge("sideBar")],n.prototype,"sideBarComp",void 0),Qr([ge("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Qr([m],n.prototype,"init",null),n}(ue),to=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},no=function(){function e(){}return e.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},e.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,function(r){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r})})},e.prototype.showMenuAfterButtonClick=function(e,t){var n=this;this.showPopup(e,function(r){n.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:r,keepWithinBounds:!0,column:e})})},e.prototype.showPopup=function(e,t){var n,r=this,o=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU"),i=document.createElement("div");d.addCssClass(i,"ag-menu"),o.guiPromise.promise.then(function(e){i.appendChild(e)});var a=function(e){"horizontal"===e.direction&&n()};this.eventService.addEventListener("bodyScroll",a);n=this.popupService.addAsModalPopup(i,!0,function(){r.eventService.removeEventListener("bodyScroll",a),e.setMenuVisible(!1,"contextMenu")}),t(i),o.filterPromise.then(function(e){if(e.afterGuiAttached){var t={hidePopup:n};e.afterGuiAttached(t)}}),this.hidePopup=n,e.setMenuVisible(!0,"contextMenu")},e.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},to([b("eventService")],e.prototype,"eventService",void 0),to([b("filterManager")],e.prototype,"filterManager",void 0),to([b("popupService")],e.prototype,"popupService",void 0),to([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=to([y("menuFactory")],e)}(),ro=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oo=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=d.find(this.dragSources,function(t){return t.dragSource===e});t&&(this.removeListener(t),d.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument().querySelector("body");d.exists(t)&&d.addOrRemoveCssClass(t,"ag-unselectable",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",n);var r=null,o=this.gridOptionsWrapper.isSuppressTouch();t&&!o&&(r=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",r,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:n,touchStartListener:r,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var n=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push(function(){e.eElement.removeEventListener("touchmove",n.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",n.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",n.onTouchEndListener,{passive:!0})}),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart)},e.prototype.onMouseDown=function(e,t){var n=this;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!t._alreadyProcessedByDragService&&(t._alreadyProcessedByDragService=!0,0===t.button)){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var r=this.gridOptionsWrapper.getDocument();this.setNoSelectToBody(!0),r.addEventListener("mousemove",this.onMouseMoveListener),r.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push(function(){r.removeEventListener("mousemove",n.onMouseMoveListener),r.removeEventListener("mouseup",n.onMouseUpListener)}),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels,r=d.exists(n)?n:4;return d.areEventsNear(e,t,r)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ao=function(){function e(){var e=this;this.getSortModel=function(){return e.getColumnsWithSortingOrdered().map(function(e){return{colId:e.getColId(),sort:e.getSort()}})}}var t;return t=e,e.prototype.progressSort=function(e,t,n){void 0===n&&(n="api");var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,n)},e.prototype.setSortForColumn=function(e,t,n,r){if(void 0===r&&(r="api"),t!==o.SORT_ASC&&t!==o.SORT_DESC&&(t=null),e.setSort(t,r),e.getSort()){var i=Number((new Date).valueOf());e.setSortedAt(i)}else e.setSortedAt(null);n&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,r),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:z.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e,t){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach(function(n){n!==e&&n.setSort(void 0,t)})},e.prototype.getNextSortDirection=function(e){var n;if(n=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(n)||n.length<=0)return console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+n),null;var r,o=n.indexOf(e.getSort()),i=o<0,a=o==n.length-1;return r=i||a?n[0]:n[o+1],t.DEFAULT_SORTING_ORDER.indexOf(r)<0?(console.warn("ag-grid: invalid sort type "+r),null):r},e.prototype.setSortModel=function(e,t){var n=this;void 0===t&&(t="api");var r=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach(function(o){var i=null,a=-1;if(r&&o.getColDef().sortable)for(var s=0;s=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lo=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(z.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.getFocusCellToUseAfterRefresh=function(){return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()?null:this.focusedCellPosition&&this.getGridCellForDomElement(document.activeElement)?this.focusedCellPosition:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var n=this.gridOptionsWrapper.getDomData(t,wn.DOM_DATA_KEY_CELL_COMP);if(n)return n.getCellPosition();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var o=d.makeNull(this.columnController.getGridColumn(t));this.focusedCellPosition={rowIndex:e,rowPinned:d.makeNull(n),column:o},this.onCellFocused(r)},e.prototype.isCellFocused=function(e){return!d.missing(this.focusedCellPosition)&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(e,t){if(d.missing(this.focusedCellPosition))return!1;var n=d.makeNull(t);return this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===n},e.prototype.onCellFocused=function(e){var t={type:z.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCellPosition&&(t.rowIndex=this.focusedCellPosition.rowIndex,t.column=this.focusedCellPosition.column,t.rowPinned=this.focusedCellPosition.rowPinned),this.eventService.dispatchEvent(t)},so([b("eventService")],e.prototype,"eventService",void 0),so([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),so([b("columnController")],e.prototype,"columnController",void 0),so([b("columnApi")],e.prototype,"columnApi",void 0),so([b("gridApi")],e.prototype,"gridApi",void 0),so([m],e.prototype,"init",null),e=so([y("focusedCellController")],e)}(),co=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uo=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}var t;return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){return d.getCellCompForEvent(this.gridOptionsWrapper,e)},e.prototype.isEventFromThisGrid=function(e){for(var n=d.getEventPath(e),r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},po=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){for(var n=t,r=!1;!r;){switch(e){case o.KEY_UP:n=this.getCellAbove(n);break;case o.KEY_DOWN:n=this.getCellBelow(n);break;case o.KEY_RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case o.KEY_LEFT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(n):this.getCellToLeft(n);break;default:n=null,console.warn("ag-Grid: unknown key for navigation "+e)}r=!n||this.isCellGoodToFocusOn(n)}return n},e.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case o.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case o.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!n.isSuppressNavigable(t)},e.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnController.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnController.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},e.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case o.PINNED_BOTTOM:return null;case o.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:0,rowPinned:null}:this.pinnedRowModel.isRowsToRender(o.PINNED_BOTTOM)?{rowIndex:0,rowPinned:o.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(o.PINNED_BOTTOM)?{rowIndex:0,rowPinned:o.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},e.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===o.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===o.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.rowModel.getRowCount()-1<=n},e.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return 0===t?n===o.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(o.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},e.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:o.PINNED_TOP}},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnController.getDisplayedColAfter(e.column);if(!o){o=t[0];var i=this.getRowBelow(e);if(d.missing(i))return null;n=i?i.rowIndex:null,r=i?i.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),n=e.rowIndex,r=e.rowPinned,o=this.columnController.getDisplayedColBefore(e.column);if(!o){o=d.last(t);var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(d.missing(i))return null;n=i?i.rowIndex:null,r=i?i.rowPinned:null}return{rowIndex:n,column:o,rowPinned:r}},ho([b("columnController")],e.prototype,"columnController",void 0),ho([b("rowModel")],e.prototype,"rowModel",void 0),ho([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),ho([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=ho([y("cellNavigationService")],e)}(),fo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},go=function(){function e(){this.cellRendererMap={}}var t;return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=rt,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=et,this.cellRendererMap[t.GROUP]=Ze},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return d.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",fo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),fo([b("expressionService")],e.prototype,"expressionService",void 0),fo([b("eventService")],e.prototype,"eventService",void 0),fo([m],e.prototype,"init",null),e=t=fo([y("cellRendererFactory")],e)}(),mo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vo=function(){function e(){}return e.prototype.formatValue=function(e,t,n,r){var o,i=e.getColDef(),a=null;if(o=t&&t.rowPinned&&i.pinnedRowValueFormatter?i.pinnedRowValueFormatter:i.valueFormatter){var s={value:r,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s.$scope=n,a=this.expressionService.evaluate(o,s)}else if(i.refData)return i.refData[r]||"";return null!==a&&void 0!==a||!Array.isArray(r)||(a=r.join(", ")),a},mo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),mo([b("expressionService")],e.prototype,"expressionService",void 0),e=mo([y("valueFormatterService")],e)}(),yo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-radio-button",t.nativeInputClassName="ag-native-radio-button",t.inputType="radio",t.iconMap={selected:"radioButtonOn",unselected:"radioButtonOff"},t}return yo(t,e),t.prototype.toggle=function(){var e=this.getNextValue();this.setValue(e)},t.prototype.getIconName=function(){var e=this.getValue()?"selected":"unselected",t=this.isReadOnly()?"ReadOnly":"";return""+this.iconMap[e]+t},t}(Wn),Co=function(){function e(){}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.addEventListenerOutsideAngular=function(e,t,n,r){e.addEventListener(t,n,r)},e}(),wo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xo=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:z.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},wo([b("eventService")],e.prototype,"eventService",void 0),wo([b("columnController")],e.prototype,"columnController",void 0),wo([b("columnApi")],e.prototype,"columnApi",void 0),wo([b("gridApi")],e.prototype,"gridApi",void 0),wo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=wo([y("scrollVisibleService")],e)}(),_o=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},So=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,n,r){this.processClassRules(e.cellClassRules,t,n,r),this.processStaticCellClasses(e,t,n)},e.prototype.processClassRules=function(e,t,n,r){if("object"===typeof e&&null!==e)for(var o=Object.keys(e),i=0;i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mo(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:z.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:z.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},Eo([b("eventService")],t.prototype,"eventService",void 0),Eo([b("columnApi")],t.prototype,"columnApi",void 0),Eo([b("gridApi")],t.prototype,"gridApi",void 0),t=Eo([y("columnHoverService")],t)}(ae),Ao=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},To=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridPanel.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===t&&e.gridPanel.setColumnMovingCss(!1)})},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout(function(){return e.forEach(function(e){return e()})},0),window.setTimeout(function(){return t.forEach(function(e){return e()})},300))},Ao([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Ao([y("columnAnimationService")],e)}(),ko=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Do=function(){function e(){}var t;return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,n=[],r=this.gridOptionsWrapper.isTreeData(),o=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&o&&(console.warn("ag-Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),o=!1),o?e.forEach(function(e,r){n.push(t.createOneAutoGroupColumn(e,r))}):n.push(this.createOneAutoGroupColumn()),n},e.prototype.createOneAutoGroupColumn=function(e,n){var r,i=this.generateDefaultColDef(e);r=e?o.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID;var a=this.gridOptionsWrapper.getAutoGroupColumnDef();(d.mergeDeep(i,a),(i=this.columnFactory.mergeColDefs(i)).colId=r,this.gridOptionsWrapper.isTreeData())||d.missing(i.field)&&d.missing(i.valueGetter)&&d.missing(i.filterValueGetter)&&(i.filter=!1);n&&n>0&&(i.headerCheckboxSelection=!1);var s=new k(i,null,r,!0);return this.context.wireBean(s),s},e.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework)||(n.cellRenderer="agGroupCellRenderer"),e){var r=e.getColDef();d.assign(n,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:r.headerValueGetter}),r.cellRenderer&&d.assign(n,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererParams:r.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},e.GROUP_AUTO_COLUMN_BUNDLE_ID=o.GROUP_AUTO_COLUMN_ID,ko([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ko([b("context")],e.prototype,"context",void 0),ko([b("columnController")],e.prototype,"columnController",void 0),ko([b("columnFactory")],e.prototype,"columnFactory",void 0),e=t=ko([y("autoGroupColService")],e)}(),Po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Lo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return Po(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addDestroyableEventListener(this.eventService,z.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,r){var o=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return o&&this.calculatePages(),o},t.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:z.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:z.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return d.missing(this.topRowBounds)||d.missing(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.pixelOffset=d.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},t.prototype.setZeroRows=function(){this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!d.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var t=this.pageSize*this.currentPage,n=this.pageSize*(this.currentPage+1)-1;if(n>e&&(n=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),n===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(n+1);this.bottomDisplayedRowIndex=r-1}}else this.setZeroRows()},t.prototype.getMasterRowCount=function(){return this.masterRowCount},t.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!d.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},t.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},No([b("rowModel")],t.prototype,"rowModel",void 0),No([b("eventService")],t.prototype,"eventService",void 0),No([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),No([b("selectionController")],t.prototype,"selectionController",void 0),No([b("columnApi")],t.prototype,"columnApi",void 0),No([b("gridApi")],t.prototype,"gridApi",void 0),No([m],t.prototype,"postConstruct",null),t=No([y("paginationProxy")],t)}(ae),Ro=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Io=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ro(t,e),t.prototype.registerGridComp=function(e){this.gridPanel=e,this.addDestroyableEventListener(this.eventService,z.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},Fo([b("eventService")],t.prototype,"eventService",void 0),Fo([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Fo([b("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),t=Fo([y("paginationAutoPageSizeService")],t)}(ae),zo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bo=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},e.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},zo([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),zo([m],e.prototype,"init",null),e=zo([y("valueCache")],e)}(),jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jo(t,e),t.prototype.init=function(){this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,z.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==o.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),r=new Yt(n,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},Vo([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Vo([b("rowModel")],t.prototype,"rowModel",void 0),Vo([b("rowRenderer")],t.prototype,"rowRenderer",void 0),Vo([b("eventService")],t.prototype,"eventService",void 0),Vo([m],t.prototype,"init",null),t=Vo([y("changeDetectionService")],t)}(ae),Ho=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Go=function(e,t){return function(n,r){t(n,r,e)}},Uo=function(){function e(){this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.init=function(){this.eventService.addEventListener(z.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(z.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(z.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach(function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}})}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent(function(t){t.onColumnEvent(e)})},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent(function(t){t.onScrollEvent(e)})},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent(function(){t.gridPanel.setHorizontalScrollPosition(e.left)})},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e)}):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e.getColId())}):e.column&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent(function(){switch(e.type){case z.EVENT_COLUMN_MOVED:case z.EVENT_COLUMN_VISIBLE:case z.EVENT_COLUMN_PINNED:case z.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case z.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case z.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}})},e.prototype.processGroupOpenedEvent=function(e){var t,n=e.columnGroup;if(n){var r=n.getGroupId();t=this.columnController.getOriginalColumnGroup(r)}n&&!t||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+n.isExpanded()),this.columnController.setColumnGroupOpened(t,n.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(e){var t,n=this,r=e.column;if(r&&(t=this.columnController.getPrimaryColumn(r.getColId())),!r||t){var o=this.getColumnIds(e),i=this.getMasterColumns(e);switch(e.type){case z.EVENT_COLUMN_MOVED:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+a.toIndex),this.columnController.moveColumns(o,a.toIndex,"alignedGridChanged");break;case z.EVENT_COLUMN_VISIBLE:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+s.visible),this.columnController.setColumnsVisible(o,s.visible,"alignedGridChanged");break;case z.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(o,l.pinned,"alignedGridChanged");break;case z.EVENT_COLUMN_RESIZED:var c=e;i.forEach(function(t){n.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),n.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),!1,c.finished,"alignedGridChanged")})}var u=this.gridPanel.isVerticalScrollShowing();this.gridOptionsWrapper.getAlignedGrids().forEach(function(e){e.api.setAlwaysShowVerticalScroll(u)})}},Ho([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ho([b("columnController")],e.prototype,"columnController",void 0),Ho([b("eventService")],e.prototype,"eventService",void 0),Ho([Go(0,x("loggerFactory"))],e.prototype,"setBeans",null),Ho([m],e.prototype,"init",null),e=Ho([y("alignedGridsService")],e)}(),qo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yo=function(){function e(){}return e.prototype.adaptFunction=function(e,t,n,r){if(null==t)return{component:null,componentFromFramework:n,source:r,paramsFromSelector:null};var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?{componentFromFramework:n,component:o.functionAdapter(t),source:r,paramsFromSelector:null}:null},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params),n=typeof t;return"string"===n||"number"===n||"boolean"===n?d.loadTemplate(""+t+""):t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},qo([b("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),e=qo([y("agComponentUtils")],e)}(),Xo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ko=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},Xo([b("agComponentUtils")],e.prototype,"agComponentUtils",void 0),Xo([m],e.prototype,"postConstruct",null),e=Xo([y("componentMetadataProvider")],e)}(),$o=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zo=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},$o([b("paginationProxy")],e.prototype,"paginationProxy",void 0),$o([b("context")],e.prototype,"context",void 0),$o([b("columnApi")],e.prototype,"columnApi",void 0),$o([b("gridApi")],e.prototype,"gridApi",void 0),$o([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),$o([b("expressionService")],e.prototype,"expressionService",void 0),$o([b("rowRenderer")],e.prototype,"rowRenderer",void 0),$o([b("$compile")],e.prototype,"$compile",void 0),$o([b("templateService")],e.prototype,"templateService",void 0),$o([b("valueService")],e.prototype,"valueService",void 0),$o([b("eventService")],e.prototype,"eventService",void 0),$o([b("columnController")],e.prototype,"columnController",void 0),$o([b("columnAnimationService")],e.prototype,"columnAnimationService",void 0),$o([C("rangeController")],e.prototype,"rangeController",void 0),$o([b("focusedCellController")],e.prototype,"focusedCellController",void 0),$o([C("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),$o([b("cellRendererFactory")],e.prototype,"cellRendererFactory",void 0),$o([b("popupService")],e.prototype,"popupService",void 0),$o([b("valueFormatterService")],e.prototype,"valueFormatterService",void 0),$o([b("stylingService")],e.prototype,"stylingService",void 0),$o([b("columnHoverService")],e.prototype,"columnHoverService",void 0),$o([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),$o([b("animationFrameService")],e.prototype,"taskQueue",void 0),$o([b("dragAndDropService")],e.prototype,"dragAndDropService",void 0),$o([b("sortController")],e.prototype,"sortController",void 0),$o([b("filterManager")],e.prototype,"filterManager",void 0),$o([b("maxDivHeightScaler")],e.prototype,"maxDivHeightScaler",void 0),$o([b("tooltipManager")],e.prototype,"tooltipManager",void 0),$o([b("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),$o([b("detailRowCompCache")],e.prototype,"detailRowCompCache",void 0),$o([b("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),$o([b("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),$o([m],e.prototype,"postConstruct",null),e=$o([y("beans")],e)}(),Jo=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qo={"ag-theme-material":{headerHeight:56,virtualItemHeight:40,rowHeight:48,chartMenuPanelWidth:220},"ag-theme-classic":{headerHeight:25,virtualItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-balham":{headerHeight:32,virtualItemHeight:28,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,virtualItemHeight:30,rowHeight:42,chartMenuPanelWidth:240}},ei={headerHeight:["ag-header-row"],virtualItemHeight:["ag-virtual-list-container","ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},ti={},ni=function(){function e(){}return e.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"classic"),r=Qo[n][t],o=0;if(ti[e]||(ti[e]={}),ti[e][t])return ti[e][t];if(ei[t]){var i=ei[t],a=document.createElement("div"),s=i.reduce(function(t,n,r){0===r&&d.addCssClass(t,e);var o=document.createElement("div");return d.addCssClass(o,n),t.appendChild(o),o},a);document.body&&(document.body.appendChild(a),o=parseInt(window.getComputedStyle(s).height,10),document.body.removeChild(a))}return ti[e][t]=o||r,ti[e][t]},e.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},e.prototype.useNativeCheckboxes=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("alpine")>=0},e.prototype.chartMenuPanelWidth=function(){return Qo[this.getTheme().themeFamily].chartMenuPanelWidth},e.prototype.getTheme=function(){for(var e,t=/\bag-(fresh|dark|blue|material|bootstrap|(?:theme-([\w\-]*)))\b/,n=this.eGridDiv;n&&!(e=t.exec(n.className));)n=n.parentElement;if(!e)return{};var r=e[0];if(void 0===e[2]){var o=r.replace("ag-","ag-theme-");d.doOnce(function(){return console.warn("ag-Grid: As of v19 old theme are no longer provided. Please replace "+r+" with "+o+".")},"using-old-theme")}return{theme:r,el:n,themeFamily:r.replace(/-dark$/,"")}},Jo([b("eGridDiv")],e.prototype,"eGridDiv",void 0),e=Jo([y("environment")],e)}(),ri=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oi=function(){function e(){this.createTasksP1={list:[],sorted:!1},this.createTasksP2={list:[],sorted:!1},this.destroyTasks=[],this.ticking=!1,this.scrollGoingDown=!0,this.lastScrollTop=0,this.taskCount=0,this.cancelledTasks=new Set}return e.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},e.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},e.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("ag-Grid: AnimationFrameService."+e+" called but animation frames are off")},e.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],r),this.schedule()},e.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},e.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},e.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort(function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder}),e.sorted=!0}},e.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},e.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,r=this.createTasksP2,o=r.list,i=this.destroyTasks,a=(new Date).getTime(),s=(new Date).getTime()-a,l=e<=0;l||s=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ai=function(){function e(){this.timeLastPageEventProcessed=0}return e.prototype.init=function(){this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth()},e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.handlePageScrollingKey=function(e){var t=e.which||e.keyCode,n=e.altKey,r=e.ctrlKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var a=!1;switch(t){case o.KEY_PAGE_HOME:case o.KEY_PAGE_END:r||n||(this.onHomeOrEndKey(t),a=!0);break;case o.KEY_LEFT:case o.KEY_RIGHT:r&&!n&&(this.onCtrlLeftOrRight(t,i),a=!0);break;case o.KEY_UP:case o.KEY_DOWN:r&&!n&&(this.onCtrlUpOrDown(t,i),a=!0);break;case o.KEY_PAGE_DOWN:r||n||(this.onPageDown(i),a=!0);break;case o.KEY_PAGE_UP:r||n||(this.onPageUp(i),a=!0)}return a&&e.preventDefault(),a},e.prototype.isTimeSinceLastPageEventToRecent=function(){return(new Date).getTime()-this.timeLastPageEventProcessed<100},e.prototype.setTimeLastPageEventProcessed=function(){this.timeLastPageEventProcessed=(new Date).getTime()},e.prototype.onPageDown=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var r=this.paginationProxy.getPixelOffset(),o=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(o+r),a=this.paginationProxy.getRow(e.rowIndex).rowTop+n-r,s=this.paginationProxy.getRowIndexAtPixel(a+r),l=this.paginationProxy.getPageLastRow();s>l&&(s=l),i>l&&(i=l),this.navigateTo(i,"top",null,s,e.column),this.setTimeLastPageEventProcessed()}},e.prototype.onPageUp=function(e){if(!this.isTimeSinceLastPageEventToRecent()){var t=this.gridPanel.getVScrollPosition(),n=t.bottom-t.top;this.gridPanel.isHorizontalScrollShowing()&&(n-=this.scrollWidth);var r=this.paginationProxy.getPixelOffset(),o=t.top,i=this.paginationProxy.getRowIndexAtPixel(o+r),a=this.paginationProxy.getRow(e.rowIndex),s=a.rowTop+a.rowHeight-n-r,l=this.paginationProxy.getRowIndexAtPixel(s+r),c=this.paginationProxy.getPageFirstRow();l=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return si(t,e),t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,z.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.scrollBarWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.maxDivHeight=d.getMaxDivHeight()},t.prototype.registerGridComp=function(e){this.gridPanel=e},t.prototype.isScaling=function(){return this.scaling},t.prototype.getOffset=function(){return this.offset},t.prototype.updateOffset=function(){if(this.scaling){var e=this.gridPanel.getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.uiContainerHeight=this.maxDivHeight,this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY;this.setOffset(e*this.pixelsToShave)},t.prototype.clearOffset=function(){this.uiContainerHeight=this.modelHeight,this.pixelsToShave=0,this.setOffset(0)},t.prototype.setOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.offset!==t&&(this.offset=t,this.eventService.dispatchEvent({type:z.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.scaling=this.maxDivHeight>0&&e>this.maxDivHeight,this.scaling?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.offset},t.prototype.getUiBodyHeight=function(){var e=this.gridPanel.getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},li([b("eventService")],t.prototype,"eventService",void 0),li([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),li([m],t.prototype,"postConstruct",null),t=li([y("maxDivHeightScaler")],t)}(ae),ui=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},di=function(){function e(){}return e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},e.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,function(e){return e.childrenAfterGroup})}},e.prototype.updateSelectableAfterFiltering=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,function(e){return e.childrenAfterFilter})}},e.prototype.recurseDown=function(e,t){var n=this;e.forEach(function(e){if(e.group){var r;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren){var o=d.find(t(e),"selectable",!0);r=d.exists(o)}else r=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(r)}})},ui([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ui([m],e.prototype,"init",null),e=ui([y("selectableService")],e)}(),hi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pi=function(){function e(){}return e.prototype.registerGridComp=function(e){this.gridPanel=e},e.prototype.getPreferredHeightForRow=function(e){var t=this;this.eDummyContainer||(this.eDummyContainer=document.createElement("div"),d.addCssClass(this.eDummyContainer,"ag-row ag-row-no-focus"));var n=this.gridPanel.getCenterContainer();n.appendChild(this.eDummyContainer);var r=[];this.columnController.getAllAutoRowHeightCols().filter(function(e){return e.isVisible()}).forEach(function(n){var o=new wn(t.$scope,t.beans,n,e,null,!0,!1);o.setParentRow(t.eDummyContainer),r.push(o)});var o=r.map(function(e){return e.getCreateTemplate()}).join(" ");this.eDummyContainer.innerHTML=o,r.forEach(function(e){return e.afterAttached()});for(var i=0,a=0;ai&&(i=s.offsetHeight)}return n.removeChild(this.eDummyContainer),r.forEach(function(e){e.detach(),e.destroy()}),d.clearElement(this.eDummyContainer),i},hi([b("beans")],e.prototype,"beans",void 0),hi([b("$scope")],e.prototype,"$scope",void 0),hi([b("columnController")],e.prototype,"columnController",void 0),e=hi([y("autoHeightCalculator")],e)}(),fi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mi=function(e){function t(){return e.call(this)||this}return fi(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",d.createIconNoSpan(e?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",d.createIconNoSpan(e?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",d.createIconNoSpan(e?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",d.createIconNoSpan(e?"first":"last",this.gridOptionsWrapper)),this.rowModel.getType()===o.ROW_MODEL_TYPE_SERVER_SIDE&&(this.serverSideRowModel=this.rowModel),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addDestroyableEventListener(this.eventService,z.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):d.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),r=e("of","of");return'
\n \n '+n+' '+r+' \n \n \n
\n \n
\n
\n \n
\n "+t+' '+r+' \n
\n \n
\n
\n \n
\n
\n
"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages(),r=0===e;d.addOrRemoveCssClass(this.btPrevious,"ag-disabled",r),d.addOrRemoveCssClass(this.btFirst,"ag-disabled",r);var o=this.isZeroPagesToDisplay(),i=t&&e===n-1||o;d.addOrRemoveCssClass(this.btNext,"ag-disabled",i);var a=!t||o||e===n-1;d.addOrRemoveCssClass(this.btLast,"ag-disabled",a)},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(t=(e=r*n+1)+r-1,o&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.serverSideRowModel&&this.serverSideRowModel.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},gi([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),gi([b("eventService")],t.prototype,"eventService",void 0),gi([b("paginationProxy")],t.prototype,"paginationProxy",void 0),gi([b("rowRenderer")],t.prototype,"rowRenderer",void 0),gi([b("rowModel")],t.prototype,"rowModel",void 0),gi([ge("btFirst")],t.prototype,"btFirst",void 0),gi([ge("btPrevious")],t.prototype,"btPrevious",void 0),gi([ge("btNext")],t.prototype,"btNext",void 0),gi([ge("btLast")],t.prototype,"btLast",void 0),gi([ge("lbRecordCount")],t.prototype,"lbRecordCount",void 0),gi([ge("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),gi([ge("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),gi([ge("eSummaryPanel")],t.prototype,"eSummaryPanel",void 0),gi([ge("lbCurrent")],t.prototype,"lbCurrent",void 0),gi([ge("lbTotal")],t.prototype,"lbTotal",void 0),gi([m],t.prototype,"postConstruct",null),t}(ue),vi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yi=function(){function e(){}return e.prototype.observeResize=function(e,t,n){void 0===n&&(n=50);var r=this.frameworkOverrides,o=d.debounce(t,n),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!window.ResizeObserver&&!i?function(){var t=new window.ResizeObserver(o);return t.observe(e),function(){return t.disconnect()}}():function(){var o=d.offsetWidth(e),i=d.offsetHeight(e),a=!0;return function s(){if(a){var l=d.offsetWidth(e),c=d.offsetHeight(e);(l!==o||c!==i)&&(o=l,i=c,t()),r.setTimeout(s,n)}}(),function(){return a=!1}}()},vi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),vi([b("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),e=vi([y("resizeObserverService")],e)}(),bi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ci=function(){function e(){this.DEFAULT_HIDE_TOOLTIP_TIMEOUT=1e4,this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT=1e3,this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT=2e3,this.HIDE_SHOW_ONLY=!0,this.showTimeoutId=0,this.hideTimeoutId=0,this.registeredComponents={}}return e.prototype.registerTooltip=function(e){var t=this,n=e.getGui(),r=e.getCompId();this.registeredComponents[r]={tooltipComp:void 0,destroyFunc:void 0,eventDestroyFuncs:[e.addDestroyableEventListener(n,"mouseover",function(n){return t.processMouseOver(n,e)}),e.addDestroyableEventListener(n,"mousemove",function(e){return t.processMouseMove(e)}),e.addDestroyableEventListener(n,"mousedown",this.hideTooltip.bind(this)),e.addDestroyableEventListener(n,"mouseout",this.processMouseOut.bind(this))]},e.addDestroyFunc(function(){return t.unregisterTooltip(e)})},e.prototype.unregisterTooltip=function(e){var t=e.getCompId(),n=this.registeredComponents[t];this.activeComponent===e&&this.hideTooltip(),e.isAlive()&&n&&n.eventDestroyFuncs.length&&n.eventDestroyFuncs.forEach(function(e){return e()}),delete this.registeredComponents[t]},e.prototype.processMouseOver=function(e,t){var n=this.MOUSEOVER_SHOW_TOOLTIP_TIMEOUT;if(this.activeComponent){if(this.lastHoveredComponent===this.activeComponent)return;n=200}else if(this.showTimeoutId&&this.lastHoveredComponent===t)return;this.clearTimers(this.HIDE_SHOW_ONLY),this.lastHoveredComponent!==t&&(this.lastHoveredComponent=t,this.lastMouseEvent=e,this.showTimeoutId=window.setTimeout(this.showTooltip.bind(this),n,e))},e.prototype.processMouseOut=function(e){var t=this.activeComponent,n=e.relatedTarget;if(t){if(!t.getGui().contains(n)){var r=this.registeredComponents[t.getCompId()];d.addCssClass(r.tooltipComp.getGui(),"ag-tooltip-hiding"),this.lastHoveredComponent=void 0,this.clearTimers(),this.hideTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.MOUSEOUT_HIDE_TOOLTIP_TIMEOUT)}}else{if(this.lastHoveredComponent){var o=this.lastHoveredComponent.getGui().contains(n);if(this.showTimeoutId&&o)return;o||(this.lastHoveredComponent=void 0)}this.clearTimers()}},e.prototype.processMouseMove=function(e){this.lastMouseEvent=e},e.prototype.showTooltip=function(e){var t=this.lastHoveredComponent,n=t,r=this.registeredComponents[t.getCompId()];this.hideTooltip();var o={api:this.gridApi,columnApi:this.columnApi,colDef:t.getComponentHolder(),column:n.getColumn&&n.getColumn(),context:this.gridOptionsWrapper.getContext(),rowIndex:n.getCellPosition&&n.getCellPosition().rowIndex,value:t.getTooltipText()};this.createTooltipComponent(o,r,e)},e.prototype.createTooltipComponent=function(e,t,n){var r=this,o=this.lastMouseEvent;o&&this.userComponentFactory.newTooltipComponent(e).then(function(e){if(t){t.tooltipComp=e;var n=e.getGui();d.containsClass(n,"ag-tooltip")||d.addCssClass(n,"ag-tooltip-custom");var i=r.popupService.addPopup(!1,n,!1);t.destroyFunc=function(){i(),e.destroy&&e.destroy()},r.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:o,ePopup:n,nudgeY:18}),r.activeComponent=r.lastHoveredComponent,r.hideTimeoutId=window.setTimeout(r.hideTooltip.bind(r),r.DEFAULT_HIDE_TOOLTIP_TIMEOUT)}})},e.prototype.hideTooltip=function(){var e=this.activeComponent;if(this.clearTimers(),e){var t=e.getCompId(),n=this.registeredComponents[t];this.activeComponent=void 0,n&&(n.destroyFunc&&n.destroyFunc(),this.clearRegisteredComponent(n))}},e.prototype.clearRegisteredComponent=function(e){delete e.destroyFunc,delete e.tooltipComp},e.prototype.clearTimers=function(e){void 0===e&&(e=!1),this.hideTimeoutId&&!e&&(window.clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.showTimeoutId&&(window.clearTimeout(this.showTimeoutId),this.showTimeoutId=0)},bi([b("popupService")],e.prototype,"popupService",void 0),bi([b("userComponentFactory")],e.prototype,"userComponentFactory",void 0),bi([b("columnApi")],e.prototype,"columnApi",void 0),bi([b("gridApi")],e.prototype,"gridApi",void 0),bi([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=bi([y("tooltipManager")],e)}(),wi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(mr||(mr={}));var _i=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.inProgress=!1,n.destroyRequested=!1,n}return wi(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.addLayoutElement(this.eOverlayWrapper),this.setDisplayed(!1)},t.prototype.setWrapperTypeClass=function(e){d.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-loading-wrapper",e===mr.Loading),d.addOrRemoveCssClass(this.eOverlayWrapper,"ag-overlay-no-rows-wrapper",e===mr.NoRows)},t.prototype.showLoadingOverlay=function(){var e=this.userComponentFactory.newLoadingOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e)},t.prototype.showNoRowsOverlay=function(){var e=this.userComponentFactory.newNoRowsOverlayComponent({api:this.gridOptionsWrapper.getApi()});this.showOverlay(e)},t.prototype.showOverlay=function(e){var t=this;this.inProgress||(this.setWrapperTypeClass(mr.NoRows),this.destroyActiveOverlay(),this.inProgress=!0,e.then(function(e){t.inProgress=!1,t.eOverlayWrapper.appendChild(e.getGui()),t.activeOverlay=e,t.destroyRequested&&(t.destroyRequested=!1,t.destroyActiveOverlay())}),this.setDisplayed(!0))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay.destroy&&this.activeOverlay.destroy(),this.activeOverlay=void 0,d.clearElement(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.destroyActiveOverlay(),this.setDisplayed(!1)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyActiveOverlay()},t.TEMPLATE='',xi([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),xi([b("userComponentFactory")],t.prototype,"userComponentFactory",void 0),xi([ge("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),xi([m],t.prototype,"postConstruct",null),t}(ue),Si=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ei=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1,n||(n={});var o=n.title,i=n.enabled,a=n.items,s=n.suppressEnabledCheckbox,l=n.suppressOpenCloseIcons;return r.title=o,r.enabled=null==i||i,r.items=a||[],r.alignItems=n.alignItems||"center",null!=s&&(r.suppressEnabledCheckbox=s),null!=l&&(r.suppressOpenCloseIcons=l),r}return Si(t,e),t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(d.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(d.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.setOpenClosedIcons(),this.addDestroyableEventListener(this.groupTitle,"click",function(){return e.toggleGroupExpand()})},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;d.setDisplayed(this.eGroupClosedIcon,!e),d.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){var t=this.getGui();this.alignItems!==e&&d.removeCssClass(t,"ag-alignment-"+this.alignItems),this.alignItems=e;var n="ag-alignment-"+this.alignItems;return"center"===e||d.containsClass(t,n)||d.addCssClass(t,n),this},t.prototype.toggleGroupExpand=function(e){var t=this.getGui();if(this.suppressOpenCloseIcons)return this.expanded=!0,d.removeCssClass(t,"ag-collapsed"),this;if(e=null!=e?e:!this.expanded,this.expanded===e)return this;if(this.expanded=e,this.setOpenClosedIcons(),d.addOrRemoveCssClass(t,"ag-collapsed",!e),this.expanded){this.dispatchEvent({type:"expanded"})}else{this.dispatchEvent({type:"collapsed"})}return this},t.prototype.addItems=function(e){var t=this;e.forEach(function(e){return t.addItem(e)})},t.prototype.addItem=function(e){var t=this.groupContainer,n=e instanceof ue?e.getGui():e;d.addCssClass(n,"ag-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){var n=this.items[t];d.addOrRemoveCssClass(n,"ag-hidden",e)},t.prototype.setTitle=function(e){return this.lbGroupTitle.innerText=e,this},t.prototype.setEnabled=function(e,t){return this.enabled=e,d.addOrRemoveCssClass(this.getGui(),"ag-disabled",!e),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange(function(n){t.setEnabled(n,!0),e(n)}),this},t.prototype.hideEnabledCheckbox=function(e){return d.addOrRemoveCssClass(this.eToolbar,"ag-hidden",e),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,d.addOrRemoveCssClass(this.getGui(),"ag-collapsible",!e),e&&this.toggleGroupExpand(!0),this},t.TEMPLATE='
\n
\n \n \n \n \n \n
\n
\n \n
\n
\n
',Mi([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Mi([ge("groupTitle")],t.prototype,"groupTitle",void 0),Mi([ge("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),Mi([ge("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),Mi([ge("eToolbar")],t.prototype,"eToolbar",void 0),Mi([ge("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),Mi([ge("lbGroupTitle")],t.prototype,"lbGroupTitle",void 0),Mi([ge("eContainer")],t.prototype,"groupContainer",void 0),Mi([m],t.prototype,"postConstruct",null),t}(ue),Oi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ai=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ti=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.closable=!0,r.positioned=!1,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.size={width:void 0,height:void 0},r.config=n,r}return Oi(t,e),t.prototype.postConstruct=function(){var e=this,t=this.config,n=t.component,r=t.closable,o=t.hideTitleBar,i=t.title,a=t.minWidth,s=t.width,l=t.minHeight,c=t.height,u=t.centered,h=t.x,p=t.y,f=this.getGui();n&&this.setBodyComponent(n),o?d.addCssClass(this.eTitleBar,"ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=r?r:this.closable)),this.addDestroyableEventListener(this.eTitleBar,"mousedown",function(t){if(f.contains(t.relatedTarget)||f.contains(document.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var n=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");n&&n.focus()}}),this.positioned||(this.minHeight=null!=l?l:250,this.minWidth=null!=a?a:250,this.popupParent=this.popupService.getPopupParent(),s&&this.setWidth(s),c&&this.setHeight(c),this.renderComponent&&this.renderComponent(),s&&c||this.refreshSize(),u?this.center():(h||p)&&this.offsetElement(h,p),this.positioned=!0,this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=this.popupParent.getBoundingClientRect(),n=e.e,r=e.isLeft,o=e.isTop,i=e.anywhereWithin,a=e.topBuffer,s=n.clientX-this.dragStartPosition.x,l=n.clientY-this.dragStartPosition.y,c=this.getWidth(),u=this.getHeight(),d=t.left>=n.clientX&&this.position.x<=0||t.right<=n.clientX&&t.right<=this.position.x+t.left+c;return d||(d=r?s<0&&n.clientX>this.position.x+t.left||s>0&&n.clientXthis.position.x+t.left+c||s>0&&n.clientXthis.position.x+t.left+c||s>0&&n.clientX=n.clientY&&this.position.y<=0||t.bottom<=n.clientY&&t.bottom<=this.position.y+t.top+u||o&&(l<0&&n.clientY>this.position.y+t.top+(a||0)||l>0&&n.clientYthis.position.y+t.top+u||l>0&&n.clientYr.clientHeight&&(e=r.clientHeight-this.position.y)}this.size.height!==e&&(this.size.height=e,n?(t.style.maxHeight="unset",t.style.minHeight="unset"):d.setFixedHeight(t,e))},t.prototype.getWidth=function(){return this.size.width},t.prototype.setWidth=function(e){var t=this.getGui(),n=!1;if("string"===typeof e&&-1!==e.indexOf("%"))d.setFixedWidth(t,e),e=d.getAbsoluteWidth(t),n=!0;else{e=Math.max(this.minWidth,e);var r=t.offsetParent;r&&r.clientWidth&&e+this.position.x>r.clientWidth&&(e=r.clientWidth-this.position.x)}this.size.width!==e&&(this.size.width=e,n?(t.style.maxWidth="unset",t.style.minWidth="unset"):d.setFixedWidth(t,e))},t.prototype.center=function(){var e=this.getGui(),t=e.offsetParent.clientWidth/2-this.getWidth()/2,n=e.offsetParent.clientHeight/2-this.getHeight()/2;this.offsetElement(t,n)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new ue(t.CLOSE_BTN_TEMPLATE);this.getContext().wireBean(n),(r=n.getGui()).appendChild(d.createIconNoSpan("close",this.gridOptionsWrapper)),this.addTitleBarButton(n),n.addDestroyableEventListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){var r;(r=this.closeButtonComp.getGui()).parentElement.removeChild(r),this.closeButtonComp.destroy(),this.closeButtonComp=void 0}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,r=n.children,o=r.length;null==t&&(t=o),t=Math.max(0,Math.min(t,o));var i=e.getGui();d.addCssClass(i,"ag-button"),0===t?n.insertAdjacentElement("afterbegin",i):t===o?n.insertAdjacentElement("beforeend",i):r[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return d.getInnerHeight(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return d.getInnerWidth(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.closeButtonComp&&(this.closeButtonComp.destroy(),this.closeButtonComp=void 0);var t=this.getGui();t&&t.offsetParent&&this.close()},t.TEMPLATE='
\n
\n \n
\n
\n
\n
',t.CLOSE_BTN_TEMPLATE='
',Ai([b("popupService")],t.prototype,"popupService",void 0),Ai([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ai([ge("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Ai([ge("eTitleBar")],t.prototype,"eTitleBar",void 0),Ai([ge("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Ai([ge("eTitle")],t.prototype,"eTitle",void 0),Ai([m],t.prototype,"postConstruct",null),t}(ue),ki=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Di=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pi=function(e){function t(t){var n=e.call(this,t)||this;return n.RESIZE_TEMPLATE='\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ',n.MAXIMIZE_BTN_TEMPLATE='
',n.resizable={},n.isResizable=!1,n.movable=!1,n.isMoving=!1,n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.isResizing=!1,n.lastPosition={x:0,y:0,width:0,height:0},n}return ki(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),r=this.config,o=r.movable,i=r.resizable,a=r.maximizable;d.addCssClass(n,"ag-dialog"),this.moveElement=this.eTitleBar,e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"focusin",function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)}),o&&this.setMovable(o),a&&this.setMaximizable(a),this.addResizers(),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,r=t.modal;this.close=this.popupService.addPopup(r,e,!0,this.destroy.bind(this),void 0,n),e.focus()},t.prototype.addResizers=function(){var e=this.getGui();if(e){var t=(new DOMParser).parseFromString(this.RESIZE_TEMPLATE,"text/html").body;e.appendChild(t.firstChild),this.createMap()}},t.prototype.createMap=function(){var e=this.getGui();this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e){this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onResize=function(e,t){if(this.isResizing){var n=!!t.match(/left/i),r=!!t.match(/right/i),o=!!t.match(/top/i),i=!!t.match(/bottom/i),a=n||r,s=o||i,l=this.calculateMouseMovement({e:e,isLeft:n,isTop:o}),c=l.movementX,u=l.movementY,d=0,h=0;if(a&&c){var p=n?-1:1,f=this.getWidth(),g=f+c*p,m=!1;n&&(d=f-g,(this.position.x+d<=0||g<=this.minWidth)&&(m=!0,d=0)),m||this.setWidth(g)}if(s&&u){p=o?-1:1;var v=this.getHeight(),y=v+u*p,b=!1;o&&(h=v-y,(this.position.y+h<=0||y<=this.minHeight)&&(b=!0,h=0)),b||this.setHeight(y)}this.updateDragStartPosition(e.clientX,e.clientY),(d||h)&&this.offsetElement(this.position.x+d,this.position.y+h)}},t.prototype.onResizeEnd=function(){this.isResizing=!1;var e={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.localEventService&&this.localEventService.dispatchEvent(e)},t.prototype.onMoveStart=function(e){this.isMoving=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t=this.position,n=t.x,r=t.y,o=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:this.getHeight()-this.getBodyHeight()}),i=o.movementX,a=o.movementY;this.offsetElement(n+i,r+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1},t.prototype.toggleMaximize=function(){if(this.isMaximized){var e=this.lastPosition,t=e.x,n=e.y,r=e.width,o=e.height;this.setWidth(r),this.setHeight(o),this.offsetElement(t,n)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=this.position.x,this.lastPosition.y=this.position.y,this.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){d.addOrRemoveCssClass(this.maximizeIcon,"ag-hidden",this.isMaximized),d.addOrRemoveCssClass(this.minimizeIcon,"ag-hidden",!this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.setResizable(!1),this.setMovable(!1),this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=void 0),this.clearMaximizebleListeners()},t.prototype.setResizable=function(e){var t=this,n=!1;"boolean"===typeof e&&(e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}),Object.keys(e).forEach(function(r){var o=r,i=!!e[o],a=t.getResizerElement(o),s=t.resizerMap[o].dragSource||{eElement:a,onDragStart:t.onResizeStart.bind(t),onDragging:function(e){return t.onResize(e,o)},onDragStop:t.onResizeEnd.bind(t)};!!t.resizable[o]===i&&(t.isAlive()||i)||(i?(t.dragService.addDragSource(s),a.style.pointerEvents="all",n=!0):(t.dragService.removeDragSource(s),a.style.pointerEvents="none"),t.resizerMap[o].dragSource=i?s:void 0)}),this.isResizable=n},t.prototype.setMovable=function(e){if(e!==this.movable){this.movable=e;var t=this.moveElementDragListener||{eElement:this.moveElement,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(t),this.moveElementDragListener=t):(this.dragService.removeDragSource(t),this.moveElementDragListener=void 0)}},t.prototype.setMaximizable=function(e){var t=this;if(!1===e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.maximizeButtonComp.destroy(),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var r=this.maximizeButtonComp=new ue(this.MAXIMIZE_BTN_TEMPLATE);this.getContext().wireBean(r);var o=r.getGui();o.appendChild(this.maximizeIcon=d.createIconNoSpan("maximize",this.gridOptionsWrapper)),o.appendChild(this.minimizeIcon=d.createIconNoSpan("minimize",this.gridOptionsWrapper)),d.addCssClass(this.minimizeIcon,"ag-hidden"),r.addDestroyableEventListener(o,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addDestroyableEventListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addDestroyableEventListener(this,"resize",function(){t.isMaximized=!1,t.refreshMaximizeIcon()})}},Di([b("dragService")],t.prototype,"dragService",void 0),t}(Ti),Ni=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Li=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-field",n.displayTag="input",n.inputType="text",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Ni(t,e),t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=t),r},t}(Bn),Ri=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fi=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-text-area",n.displayTag="textarea",n.inputType="",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return Ri(t,e),t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Bn),Ii=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bi=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.labelAlignment="top",n}return Ii(t,e),t.prototype.onValueChange=function(e){var t=this,n=Fn.EVENT_CHANGED;return this.addDestroyableEventListener(this.eText,n,function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)}),this.addDestroyableEventListener(this.eSlider,n,function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))}),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e?this:(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Fn.EVENT_CHANGED}),this)},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='
\n \n
\n \n \n
\n
',zi([ge("eLabel")],t.prototype,"eLabel",void 0),zi([ge("eSlider")],t.prototype,"eSlider",void 0),zi([ge("eText")],t.prototype,"eText",void 0),t}(Ln),ji=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wi=function(e){function t(n){var r=e.call(this,t.TEMPLATE)||this;return r.H=1,r.S=1,r.B=1,r.A=1,r.isSpectrumDragging=!1,r.isSpectrumHueDragging=!1,r.isSpectrumAlphaDragging=!1,r.colorChanged=!1,r.picker=n.picker,r}return ji(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addDestroyableEventListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addDestroyableEventListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addDestroyableEventListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addDestroyableEventListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addDestroyableEventListener(document,"mouseup",this.onMouseUp.bind(this)),this.addDestroyableEventListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,r=e.clientY-t.top;n=Math.max(n,0),n=Math.min(n,t.width),r=Math.max(r,0),r=Math.min(r,t.height),this.setSpectrumValue(n/t.width,1-r/t.height)}},t.prototype.moveHueSlider=function(e){var t=this.spectrumHueRect;if(t){var n=this.spectrumHueSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.H=1-o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.moveAlphaSlider=function(e){var t=this.spectrumAlphaRect;if(t){var n=this.spectrumAlphaSlider,r=n.getBoundingClientRect(),o=e.clientX-t.left;o=Math.max(o,0),o=Math.min(o,t.width),this.A=o/t.width,n.style.left=o+r.width/2+"px",this.update()}},t.prototype.update=function(){var e=r.fromHSB(360*this.H,this.S,this.B,this.A),t=r.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;r.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var r=this.spectrumDragger,o=r.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),t=Math.max(0,t),t=Math.min(1,t),this.S=e,this.B=t,r.style.left=e*n.width-o.width/2+"px",r.style.top=(1-t)*n.height-o.height/2+"px",this.update()}},t.prototype.initRecentColors=function(){var e=t.recentColors.map(function(e,t){return'
'});this.recentColors.innerHTML=e.join("")},t.prototype.setValue=function(e){var t=r.fromString(e),n=t.toHSB(),o=n[0],i=n[1],a=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),l=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*l.width+"px",this.setSpectrumValue(i,a)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(d.exists(n.id)){var r=parseInt(n.id,10);this.setValue(t.recentColors[r]),this.destroy()}},t.prototype.addRecentColor=function(){var e=r.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter(function(t){return t!=e}),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.addRecentColor()},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
',Vi([ge("spectrumColor")],t.prototype,"spectrumColor",void 0),Vi([ge("spectrumVal")],t.prototype,"spectrumVal",void 0),Vi([ge("spectrumDragger")],t.prototype,"spectrumDragger",void 0),Vi([ge("spectrumHue")],t.prototype,"spectrumHue",void 0),Vi([ge("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),Vi([ge("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),Vi([ge("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),Vi([ge("recentColors")],t.prototype,"recentColors",void 0),Vi([m],t.prototype,"postConstruct",null),t}(ue),Hi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gi=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ui=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TEMPLATE='
\n \n
\n <%displayField% ref="eDisplayField">\n \n
\n
',t.displayedPicker=!1,t.isDestroyingPicker=!1,t}return Hi(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eButton,"click",function(){t.showPicker()}),this.pickerIcon&&this.eButton.appendChild(d.createIconNoSpan(this.pickerIcon,this.gridOptionsWrapper,null))},t.prototype.setInputWidth=function(e){return d.setElementWidth(this.eWrapper,e),this},Gi([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Gi([ge("eLabel")],t.prototype,"eLabel",void 0),Gi([ge("eWrapper")],t.prototype,"eWrapper",void 0),Gi([ge("eDisplayField")],t.prototype,"eDisplayField",void 0),Gi([ge("eButton")],t.prototype,"eButton",void 0),t}(Fn),qi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yi=function(e){function t(t){var n=e.call(this)||this;return n.displayTag="div",n.className="ag-color-picker",n.pickerIcon="colorPicker",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&t.color&&(n.value=t.color),n}return qi(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),d.addCssClass(this.getGui(),this.className),this.addDestroyableEventListener(this.eDisplayField,"click",function(){return t.showPicker()}),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this;if(this.displayedPicker)this.displayedPicker=!1;else{var t=this.getGui().getBoundingClientRect(),n=new Pi({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250});this.getContext().wireBean(n),d.addCssClass(n.getGui(),"ag-color-dialog");var r=new Wi({picker:this});this.getContext().wireBean(r),r.addDestroyFunc(function(){n.isAlive()&&n.destroy()}),n.setParentComponent(this),n.setBodyComponent(r),r.setValue(this.getValue()),n.addDestroyFunc(function(){var t=e.isDestroyingPicker;e.displayedPicker=!1,t?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,r.isAlive()&&r.destroy())})}},t.prototype.setValue=function(e){return this.value===e?this:(this.value=e,this.eDisplayField.style.backgroundColor=e,this.dispatchEvent({type:Fn.EVENT_CHANGED}),this)},t.prototype.getValue=function(){return this.value},t}(Ui),Xi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-number-field",t.inputType="number",t}return Xi(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addDestroyableEventListener(this.eInput,"blur",function(){var e=t.normalizeValue(t.eInput.value);t.value!==e&&t.setValue(e)})},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&tthis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e?this:(this.min=e,null!=this.min?this.eInput.setAttribute("min",e.toString()):this.eInput.removeAttribute("min"),this)},t.prototype.setMax=function(e){return this.max===e?this:(this.max=e,null!=this.max?this.eInput.setAttribute("max",e.toString()):this.eInput.removeAttribute("max"),this)},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e?this:(this.step=e,null!=e?this.eInput.setAttribute("step",e.toString()):this.eInput.removeAttribute("step"),this)},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Li),$i=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zi=function(e){function t(t){var n=e.call(this)||this;return n.className="ag-range-field",n.displayTag="input",n.inputType="range",n.setTemplate(n.TEMPLATE.replace(/%displayField%/g,n.displayTag)),t&&(n.config=t),n}return $i(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,n=t.min,r=t.max,o=t.step;null!=n&&this.setMinValue(n),null!=r&&this.setMaxValue(r),this.setStep(o||1)},t.prototype.addInputListeners=function(){var e=this,t=d.isBrowserIE()?"change":"input";this.addDestroyableEventListener(this.eInput,t,function(t){var n=t.target.value;e.setValue(n)})},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.step=e,this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Bn),Ji=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qi=function(e){function t(){var t=e.call(this)||this;return t.className="ag-select",t.displayTag="select",t.inputType="",t.setTemplate(t.TEMPLATE.replace(/%displayField%/g,t.displayTag)),t}return Ji(t,e),t.prototype.addOptions=function(e){var t=this;return e.forEach(function(e){return t.addOption(e)}),this},t.prototype.addOption=function(e){var t=document.createElement("option");return t.value=e.value,t.text=e.text||e.value,this.eInput.appendChild(t),this},t.prototype.setValue=function(t,n){var r=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,r},t}(Bn),ea=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ta=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},na=function(e){function t(){var n=e.call(this,t.TEMPLATE)||this;return n.radius=0,n.offsetX=0,n.offsetY=0,n}return ea(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange(function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)}),this.updateNumberInput(),d.exists(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addDestroyableEventListener(this,Fn.EVENT_CHANGED,function(){t.eAngleValue.getInputElement().contains(document.activeElement)||t.updateNumberInput()})},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,r=t.width/2,o=t.height/2;n.style.left=r+8*Math.cos(e)+"px",n.style.top=o+8*Math.sin(e)+"px"},t.prototype.calculatePolar=function(){var e=this.offsetX,t=this.offsetY,n=Math.atan2(t,e);this.degrees=this.toDegrees(n),this.radius=Math.sqrt(e*e+t*t),this.positionChildCircle(n)},t.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),t=this.getRadius();this.setOffsetX(Math.cos(e)*t).setOffsetY(Math.sin(e)*t)},t.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},t.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},t.prototype.calculateAngleDrag=function(e){var t=this.parentCircleRect,n=t.width/2,r=t.height/2,o=e.clientX-t.left-n,i=e.clientY-t.top-r,a=Math.atan2(i,o);this.setValue(a,!0)},t.prototype.toDegrees=function(e){return e/Math.PI*180},t.prototype.toRadians=function(e){return e/180*Math.PI},t.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},t.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},t.prototype.getRadius=function(){return this.radius},t.prototype.setRadius=function(e){return this.radius===e?this:(this.radius=e,this.calculateCartesian(),this)},t.prototype.onValueChange=function(e){var t=this;return this.addDestroyableEventListener(this,Fn.EVENT_CHANGED,function(){e(t.degrees)}),this},t.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},t.prototype.setValue=function(e,t){var n;return n=t?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(n),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(n),this.dispatchEvent({type:Fn.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return d.setFixedWidth(this.getGui(),e),this},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.dragService.removeDragSource(this.dragListener)},t.TEMPLATE='
\n \n
\n
\n
\n
\n
\n
\n \n
\n
',ta([ge("eLabel")],t.prototype,"eLabel",void 0),ta([ge("eParentCircle")],t.prototype,"eParentCircle",void 0),ta([ge("eChildCircle")],t.prototype,"eChildCircle",void 0),ta([ge("eAngleValue")],t.prototype,"eAngleValue",void 0),ta([b("dragService")],t.prototype,"dragService",void 0),t}(Ln),ra=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.className="ag-toggle-button",t.nativeInputClassName="ag-native-toggle-button",t.inputType="checkbox",t}return ra(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.gridOptionsWrapper.useNativeCheckboxes()||d.addCssClass(this.eIconEl,"ag-icon")},t.prototype.updateIcons=function(){if(!this.gridOptionsWrapper.useNativeCheckboxes()){var e=this.getValue();d.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-on",e),d.addOrRemoveCssClass(this.eIconEl,"ag-icon-toggle-off",!e)}},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),d.addOrRemoveCssClass(this.getGui(),"ag-selected",this.getValue()),this},t}(bo),ia=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},aa=function(){function e(){this.cacheItems=[]}return e.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isKeepDetailRows(),this.maxCacheSize=this.gridOptionsWrapper.getKeepDetailRowsCount()},e.prototype.addOrDestroy=function(e,t,n){if(!this.active||!e.detail)this.destroyFullWidthRow(n);else{var r=this.getCacheItem(e,!0);switch(t){case o.PINNED_LEFT:this.destroyFullWidthRow(r.left),r.left=n;break;case o.PINNED_RIGHT:this.destroyFullWidthRow(r.right),r.right=n;break;default:this.destroyFullWidthRow(r.center),r.center=n}this.cacheItems.sort(function(e,t){return t.lastAccessedTime-e.lastAccessedTime}),this.purgeCache(this.maxCacheSize)}},e.prototype.getCacheItem=function(e,t){var n;void 0===t&&(t=!1);for(var r=0;re&&(this.cacheItems.length=e)},e.prototype.get=function(e,t){if(e.detail){var n,r=this.getCacheItem(e);if(r)switch(t){case o.PINNED_LEFT:r.left&&(n=r.left,r.left=void 0);break;case o.PINNED_RIGHT:r.right&&(n=r.right,r.right=void 0);break;default:r.center&&(n=r.center,r.center=void 0)}return n}},e.prototype.destroy=function(){this.purgeCache(0)},ia([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ia([m],e.prototype,"postConstruct",null),ia([v],e.prototype,"destroy",null),e=ia([y("detailRowCompCache")],e)}(),sa=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},la=function(){function e(){}return e.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},e.prototype.before=function(e,t){switch(e.rowPinned){case o.PINNED_TOP:if(t.rowPinned!==o.PINNED_TOP)return!0;break;case o.PINNED_BOTTOM:if(t.rowPinned!==o.PINNED_BOTTOM)return!1;break;default:if(d.exists(t.rowPinned))return t.rowPinned!==o.PINNED_TOP}return e.rowIndex=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ua=function(){function e(){}return e.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,r=e.column;return this.createIdFromValues(t,r,n)},e.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},e.prototype.equals=function(e,t){var n=e.column===t.column,r=e.rowPinned===t.rowPinned,o=e.rowIndex===t.rowIndex;return n&&r&&o},e=ca([y("cellPositionUtils")],e)}(),da=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ha=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===o.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return d.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var n=t===o.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(d.missingOrEmpty(n))return 0;for(var r=0;r=e)return r}return n.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:z.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:z.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var n=this,r=[];if(e){var i=0;e.forEach(function(e,a){var s=new We;n.context.wireBean(s),s.data=e,s.id=(t?"t":"b")+"-"+a,s.rowPinned=t?o.PINNED_TOP:o.PINNED_BOTTOM,s.setRowTop(i),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(a),i+=s.rowHeight,r.push(s)})}return r},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){d.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){d.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=d.last(e);return t.rowTop+t.rowHeight}return 0},da([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),da([b("eventService")],e.prototype,"eventService",void 0),da([b("context")],e.prototype,"context",void 0),da([b("columnApi")],e.prototype,"columnApi",void 0),da([b("gridApi")],e.prototype,"gridApi",void 0),da([m],e.prototype,"init",null),e=da([y("pinnedRowModel")],e)}(),pa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return function(e){this.cellValueChanges=e}}(),ga=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.initialRange=n,o.finalRange=r,o}return pa(t,e),t}(fa),ma=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.DEFAULT_STACK_SIZE=10,e}(),va=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ya=function(){function e(){var e=this;this.cellValueChanges=[],this.isCellEditing=!1,this.isRowEditing=!1,this.isPasting=!1,this.isFilling=!1,this.onCellValueChanged=function(t){if(e.isCellEditing||e.isRowEditing||e.isPasting||e.isFilling){var n=t.rowPinned,r=t.rowIndex,o=t.column,i=t.oldValue,a=t.value,s={rowPinned:n,rowIndex:r,columnId:o.getColId(),oldValue:i,newValue:a};e.cellValueChanges.push(s)}},this.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()}}return e.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new ma(e),this.redoStack=new ma(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.eventService.addEventListener(z.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.eventService.addEventListener(z.EVENT_MODEL_UPDATED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_MOVED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_PINNED,this.clearStacks),this.eventService.addEventListener(z.EVENT_COLUMN_VISIBLE,this.clearStacks),this.eventService.addEventListener(z.EVENT_ROW_DRAG_END,this.clearStacks))}},e.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,function(e){return e.oldValue}),e instanceof ga?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},e.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,function(e){return e.newValue}),e instanceof ga?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},e.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach(function(e){var r=e.rowIndex,o=e.rowPinned,i=e.columnId,a={rowIndex:r,rowPinned:o},s=n.getRowNode(a);null!=s.rowTop&&s.setDataValue(i,t(e))})},e.prototype.processRangeAndCellFocus=function(e,t){if(t){var n=t.startRow,r=t.endRow,o={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:t.startColumn.getColId()};this.setLastFocusedCell(o);var i={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var a=e[0],s={rowIndex:a.rowIndex,rowPinned:a.rowPinned},l=this.getRowNode(s),c={rowPinned:a.rowPinned,rowIndex:l.rowIndex,columnId:a.columnId};this.setLastFocusedCell(c)}},e.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,r=e.columnId,o=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(r),A.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusedCellController.setFocusedCell(n,r,o,!0)},e.prototype.addRowEditingListeners=function(){var e=this;this.eventService.addEventListener(z.EVENT_ROW_EDITING_STARTED,function(){e.isRowEditing=!0}),this.eventService.addEventListener(z.EVENT_ROW_EDITING_STOPPED,function(){var t=new fa(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isRowEditing=!1})},e.prototype.addCellEditingListeners=function(){var e=this;this.eventService.addEventListener(z.EVENT_CELL_EDITING_STARTED,function(){e.isCellEditing=!0}),this.eventService.addEventListener(z.EVENT_CELL_EDITING_STOPPED,function(){if(e.isCellEditing=!1,!e.isRowEditing&&!e.isPasting&&!e.isFilling){var t=new fa(e.cellValueChanges);e.pushActionsToUndoStack(t)}})},e.prototype.addPasteListeners=function(){var e=this;this.eventService.addEventListener(z.EVENT_PASTE_START,function(){e.isPasting=!0}),this.eventService.addEventListener(z.EVENT_PASTE_END,function(){var t=new fa(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1})},e.prototype.addFillListeners=function(){var e=this;this.eventService.addEventListener(z.EVENT_FILL_START,function(){e.isFilling=!0}),this.eventService.addEventListener(z.EVENT_FILL_END,function(t){var n=new ga(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1})},e.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(e){switch(e.rowPinned){case o.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case o.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},va([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),va([b("focusedCellController")],e.prototype,"focusedCellController",void 0),va([b("eventService")],e.prototype,"eventService",void 0),va([b("gridApi")],e.prototype,"gridApi",void 0),va([b("rowModel")],e.prototype,"rowModel",void 0),va([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),va([m],e.prototype,"init",null),e=va([y("undoRedoService")],e)}(),ba=function(){function e(e,n,r){if(e)if(n){var o=!!n.debug;this.gridOptions=n;var i=this.getRegisteredModules(r),a=this.createBeansList(i),s=this.createAgStackComponentsList(i),l=this.createProvidedBeans(e,r);if(a){var c={providedBeanInstances:l,beanClasses:a,components:s,debug:o};this.logger=new Yr("ag-Grid",function(){return n.debug});var u=new Yr("Context",function(){return c.debug});this.context=new f(c,u),this.registerModuleUserComponents(i);var d=new eo;this.context.wireBean(d),this.setColumnsAndData(),this.dispatchGridReadyEvent(n);var h=A.isRegistered(t.ModuleNames.EnterpriseCoreModule);this.logger.log("initialised successfully, enterprise = "+h)}}else console.error("ag-Grid: no gridOptions provided to the grid");else console.error("ag-Grid: no div element provided to the grid")}return e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=A.getRegisteredModules(),r=[],o={};function i(e){!function(e){o[e.moduleName]||(o[e.moduleName]=!0,r.push(e),A.register(e))}(e),e.dependantModules&&e.dependantModules.forEach(i)}return t&&t.forEach(i),n&&n.forEach(i),r},e.prototype.registerModuleUserComponents=function(e){var t=this.context.getBean("userComponentRegistry");this.extractModuleEntity(e,function(e){return e.userComponents?e.userComponents:[]}).forEach(function(e){t.registerDefaultComponent(e.componentName,e.componentClass)})},e.prototype.createProvidedBeans=function(e,t){var n=t?t.frameworkOverrides:null;d.missing(n)&&(n=new Co);var r={gridOptions:this.gridOptions,eGridDiv:e,$scope:t?t.$scope:null,$compile:t?t.$compile:null,quickFilterOnScope:t?t.quickFilterOnScope:null,globalEventListener:t?t.globalEventListener:null,frameworkOverrides:n};return t&&t.providedBeanInstances&&d.assign(r,t.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Wn},{componentName:"AgRadioButton",componentClass:bo},{componentName:"AgToggleButton",componentClass:oa},{componentName:"AgInputTextField",componentClass:Li},{componentName:"AgInputTextArea",componentClass:Fi},{componentName:"AgInputNumberField",componentClass:Ki},{componentName:"AgInputRange",componentClass:Zi},{componentName:"AgSelect",componentClass:Qi},{componentName:"AgSlider",componentClass:Bi},{componentName:"AgAngleSelect",componentClass:na},{componentName:"AgColorPicker",componentClass:Yi},{componentName:"AgGridComp",componentClass:Lr},{componentName:"AgHeaderRoot",componentClass:xr},{componentName:"AgPagination",componentClass:mi},{componentName:"AgOverlayWrapper",componentClass:_i},{componentName:"AgGroupComponent",componentClass:Ei},{componentName:"AgPanel",componentClass:Ti},{componentName:"AgDialog",componentClass:Pi}],n=this.extractModuleEntity(e,function(e){return e.agStackComponents?e.agStackComponents:[]});return t=t.concat(n)},e.prototype.createBeansList=function(e){var t=this.getRowModelClass(e);if(t){var n=[t,Zo,la,ua,Io,Fr,qt,Yo,Ko,yi,Xe,ci,pi,go,Zr,ha,oo,q,O,te,Hr,$t,Sr,W,Lo,An,Br,I,Vr,Uo,ai,Bo,Er,qr,G,Kr,no,an,Jt,lo,uo,ni,po,vo,So,xo,ao,Oo,To,di,Do,Wo,oi,Ci,aa,ya],r=this.extractModuleEntity(e,function(e){return e.beans?e.beans:[]});n.push.apply(n,r);var o=[];return n.forEach(function(e){o.indexOf(e)<0&&o.push(e)}),o}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],e.map(t))},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),n=e.getColumnDefs();d.exists(n)&&t.setColumnDefs(n,"gridInitializing"),this.context.getBean("rowModel").start()},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),n={type:z.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(n)},e.prototype.getRowModelClass=function(e){var t=this.gridOptions.rowModelType;"enterprise"===t&&(console.warn("ag-Grid: enterprise rowModel deprecated. Should now be called server side row model instead."),t=o.ROW_MODEL_TYPE_SERVER_SIDE),"normal"===t&&(console.warn("ag-Grid: normal rowModel deprecated. Should now be called client side row model instead."),t=o.ROW_MODEL_TYPE_CLIENT_SIDE),t||(t=o.ROW_MODEL_TYPE_CLIENT_SIDE);var n={};e.forEach(function(e){d.iterateObject(e.rowModels,function(e,t){n[e]=t})});var r=n[t];return d.exists(r)?r:(t===o.ROW_MODEL_TYPE_INFINITE&&console.error("ag-Grid: Row Model \"Infinite\" not found. Please ensure the InfiniteRowModelModule is loaded using: import '@ag-grid-community/infinite-row-model';"),console.error("ag-Grid: could not find matching row model for rowModelType "+t),t===o.ROW_MODEL_TYPE_VIEWPORT&&console.error('ag-Grid: Row Model "Viewport" not found. For this row model to work you must a) be using ag-Grid Enterprise and b) ensure ViewportRowModelModule is loaded using: import \'@ag-grid-enterprise/viewport-row-model;'),t===o.ROW_MODEL_TYPE_SERVER_SIDE&&console.error("ag-Grid: Row Model \"Server Side\" not found. For this row model to work you must a) be using ag-Grid Enterprise and b) ensure ServerSideRowModelModule is loaded using: import '@ag-grid-enterprise/server-server-side-row-model';"),void(t===o.ROW_MODEL_TYPE_CLIENT_SIDE&&console.error("ag-Grid: Row Model \"Client Side\" not found. Please ensure the ClientSideRowModelModule is loaded using: import '@ag-grid-community/client-side-row-model';")))},e.prototype.destroy=function(){this.gridOptions.api.destroy()},e}();function Ca(e,t,n,r){var o,i,a=r.agGrid;if(i=a+".quickFilterText",o=t.$eval(a)){var s=e[0],l=new ba(s,o,{$scope:t,$compile:n,quickFilterOnScope:i});t.$on("$destroy",function(){l.destroy(),l=null})}else console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope")}var wa=!1;var xa=function(){function e(t){var n=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector('[ref="tabHeader"]'),this.eBody=this.eGui.querySelector('[ref="tabBody"]'),d.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach(function(e){return n.addItem(e)})}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinDimensions=function(){var e=this.eGui.cloneNode(!0),t=e.querySelector('[ref="tabBody"]');e.style.position="fixed",this.eGui.appendChild(e);var n=0,r=0;return this.items.forEach(function(o){d.clearElement(t);var i=o.tabbedItem.bodyPromise.resolveNow(null,function(e){return e.cloneNode(!0)});null!=i&&(t.appendChild(i),n0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),d.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},e.prototype.showItem=function(e){var t=d.find(this.items,function(t){return t.tabbedItem===e});t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){var t=this;this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem!==e?(d.clearElement(this.eBody),e.tabbedItem.bodyPromise.then(function(e){t.eBody.appendChild(e)}),this.activeItem&&d.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),d.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)):d.callIfPresent(this.params.onActiveItemClicked)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='
',e}();var _a=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sa=function(e){function t(n,r){var o=e.call(this)||this;return o.version=0,o.state=t.STATE_DIRTY,o.rowNodeCacheParams=r,o.blockNumber=n,o.startRow=n*r.blockSize,o.endRow=o.startRow+r.blockSize,o}return _a(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback(function(e){e.expanded&&(t=!0)},e),t},t.prototype.forEachNodeCallback=function(e,t){for(var n=this.startRow;n0&&this.beans.rowRenderer.redrawRows(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach(function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null),e.clearRowTop()})},t.prototype.pageLoaded=function(e,n,r){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(n)),r=d.cleanNumber(r);var o={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:r};this.dispatchEvent(o)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(ae),Ma=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ea=function(e,t){return function(n,r){t(n,r,e)}},Oa=function(){function e(e,t){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e,t&&t>0&&(this.checkBlockToLoadDebounce=d.debounce(this.performCheckBlocksToLoad.bind(this),t))}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){d.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},e.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach(function(t){t.getState()===Sa.STATE_DIRTY&&(e=t)}),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach(function(t){var n=t.getNodeIdPrefix(),r={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};d.exists(n)?e[n+t.getBlockNumber()]=r:e[t.getBlockNumber()]=r}),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},e.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},Ma([Ea(0,x("loggerFactory"))],e.prototype,"setBeans",null),e}(),Aa=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ta=function(e){function t(t){var n=e.call(this)||this;return n.maxRowFound=!1,n.blocks={},n.blockCount=0,n.virtualRowCount=t.initialRowCount,n.cacheParams=t,n}return Aa(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder(function(e){return t.destroyBlock(e)})},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc(function(){return e.active=!1})},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,r=[];this.forEachBlockInOrder(function(t){t!==e&&r.push(t)}),r.sort(function(e,t){return t.getLastAccessed()-e.getLastAccessed()});var o=this.cacheParams.maxBlocksInCache>0,i=o?this.cacheParams.maxBlocksInCache-1:null,a=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(e,t){if(e.getState()===Sa.STATE_DIRTY&&t>=a||!!o&&t>=i){if(e.isAnyNodeOpen(n.virtualRowCount))return;n.removeBlockFromCache(e)}})},t.prototype.postCreateBlock=function(e){e.addEventListener(Sa.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"===typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var n=(e.getBlockNumber()+1)*this.cacheParams.blockSize+this.cacheParams.overflowSize;this.virtualRowCount=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pa=function(e){function t(t){var n=e.call(this,t)||this;return n.message=t.message,n}return ka(t,e),t.prototype.postConstruct=function(){var t=this,n=new Na;this.wireDependentBean(n),n.setMessage(this.message),this.setBodyComponent(n),e.prototype.postConstruct.call(this),this.addDestroyableEventListener(n,"onBtOk",function(){return t.close()})},t}(Pi),Na=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ka(t,e),t.prototype.setMessage=function(e){this.eCenter.innerText=e},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eOk,"click",this.onBtOk.bind(this))},t.prototype.onBtOk=function(){this.dispatchEvent({type:"onBtOk"})},t.TEMPLATE='
\n
\n
\n \n
\n
',Da([ge("eCenter")],t.prototype,"eCenter",void 0),Da([ge("eOk")],t.prototype,"eOk",void 0),Da([m],t.prototype,"postConstruct",null),t}(ue),La=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ra=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fa=function(e){function t(){var t=e.call(this,void 0)||this;return t.rowsInBodyContainer={},t.rowHeight=20,t}return La(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener();var e=document.createElement("div");d.addCssClass(e,"ag-virtual-list-item"),this.rowHeight=this.getItemHeight()},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getVirtualItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,r=n+this.rowHeight,o=this.getGui().scrollTop,i=this.getGui().offsetHeight,a=o+in)this.getGui().scrollTop=n;else if(a){var s=r-i;this.getGui().scrollTop=s}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){d.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getGui().scrollTop,t=e+this.getGui().offsetHeight,n=Math.floor(e/this.rowHeight),r=Math.floor(t/this.rowHeight);this.ensureRowsRendered(n,r)},t.prototype.ensureRowsRendered=function(e,t){for(var n=Object.keys(this.rowsInBodyContainer),r=e;r<=t;r++)if(n.indexOf(r.toString())>=0)n.splice(n.indexOf(r.toString()),1);else if(this.model.getRowCount()>r){var o=this.model.getRow(r);this.insertRow(o,r)}this.removeVirtualRows(n)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach(function(e){var n=t.rowsInBodyContainer[e];t.eListContainer.removeChild(n.eDiv),n.rowComponent.destroy&&n.rowComponent.destroy(),delete t.rowsInBodyContainer[e]})},t.prototype.insertRow=function(e,t){var n=document.createElement("div");d.addCssClass(n,"ag-virtual-list-item"),n.style.top=this.rowHeight*t+"px";var r=this.componentCreator(e);n.appendChild(r.getGui()),this.eListContainer.appendChild(n),this.rowsInBodyContainer[t]={rowComponent:r,eDiv:n}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){e.drawVirtualRows()})},t.prototype.setModel=function(e){this.model=e},t.TEMPLATE='
\n
\n
',Ra([b("environment")],t.prototype,"environment",void 0),Ra([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ra([m],t.prototype,"init",null),t}(ue);var Ia,za=function(){function e(){}return e.prototype.wrap=function(e,t,n,r){var o=this;void 0===n&&(n=[]);var i=this.createWrapper(e,r);return t.forEach(function(e){o.createMethod(i,e,!0)}),n.forEach(function(e){o.createMethod(i,e,!1)}),i},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();(Ia=t.ChartType||(t.ChartType={})).GroupedColumn="groupedColumn",Ia.StackedColumn="stackedColumn",Ia.NormalizedColumn="normalizedColumn",Ia.GroupedBar="groupedBar",Ia.StackedBar="stackedBar",Ia.NormalizedBar="normalizedBar",Ia.Line="line",Ia.Scatter="scatter",Ia.Bubble="bubble",Ia.Pie="pie",Ia.Doughnut="doughnut",Ia.Area="area",Ia.StackedArea="stackedArea",Ia.NormalizedArea="normalizedArea";var Ba="undefined"===typeof e?{}:e;Ba.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,Ba.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,Ba.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,Ba.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,Ba.Node="undefined"===typeof Node?{}:Node,Ba.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var ja,Va=function(){function e(t,n,r,o,i,a,s,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.context=r,this.eventService=o,this.columnController=i,this.gridApi=a,this.columnApi=s,this.selectionController=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingLegacyTreeData=d.exists(this.getNodeChildDetails),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.getNodeChildDetails&&console.warn("ag-Grid: the callback nodeChildDetailsFunc() is now deprecated. The new way of doing\n tree data in ag-Grid was introduced in v14 (released November 2017). In the next\n major release of ag-Grid we will be dropping support for the old version of\n tree data. If you are reading this message, please go to the docs to see how\n to implement Tree Data without using nodeChildDetailsFunc().")},e.prototype.getCopyOfNodesMap=function(){return d.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);var n=this.recursiveFunction(t,this.rootNode,e.TOP_LEVEL);this.doingLegacyTreeData?(this.rootNode.childrenAfterGroup=n,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=n},e.prototype.updateRowData=function(e,t){if(this.isLegacyTreeData())return null;var n={remove:[],update:[],add:[]};return this.executeAdd(e,n),this.executeRemove(e,n),this.executeUpdate(e,n),t&&d.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.executeAdd=function(e,t){var n=this,r=e.add,o=e.addIndex;r&&("number"===typeof o&&o>=0?r.reverse().forEach(function(e){var r=n.addRowNode(e,o);t.add.push(r)}):r.forEach(function(e){var r=n.addRowNode(e);t.add.push(r)}))},e.prototype.executeRemove=function(e,t){var n=this,r=e.remove;if(r){var o={},i=!1;if(r.forEach(function(e){var r=n.lookupRowNode(e);r&&(r.isSelected()&&(i=!0),r.setSelected(!1,!1,!0),r.clearRowTop(),o[r.id]=!0,delete n.allNodesMap[r.id],t.remove.push(r))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(e){return!o[e.id]}),i){this.selectionController.updateGroupsFromChildrenSelections();var a={type:z.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(a)}}},e.prototype.executeUpdate=function(e,t){var n=this,r=e.update;r&&r.forEach(function(e){var r=n.lookupRowNode(e);r&&(r.updateData(e),t.update.push(r))})},e.prototype.addRowNode=function(t,n){var r=this.createNode(t,this.rootNode,e.TOP_LEVEL);return d.exists(n)?d.insertIntoArray(this.rootNode.allLeafChildren,r,n):this.rootNode.allLeafChildren.push(r),r},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowNodeIdFunc();if(d.exists(n)){var r=n(e);if(!(t=this.allNodesMap[r]))return console.error("ag-Grid: could not find row id="+r+", data item was not found for this id"),null}else if(!(t=d.find(this.rootNode.allLeafChildren,function(t){return t.data===e})))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t},e.prototype.recursiveFunction=function(e,t,n){var r=this;if("string"!==typeof e){var o=[];return e.forEach(function(e){var i=r.createNode(e,t,n);o.push(i)}),o}console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.createNode=function(e,t,n){var r=new We;this.context.wireBean(r);var o=this.gridOptionsWrapper.isTreeData(),i=!o&&d.exists(this.getNodeChildDetails)?this.getNodeChildDetails(e):null;if(i&&i.group)r.group=!0,r.childrenAfterGroup=this.recursiveFunction(i.children,r,n+1),r.expanded=!0===i.expanded,r.field=i.field,r.key=i.key,r.canFlower=r.master,this.setLeafChildren(r);else if(r.group=!1,o)r.master=!1,r.expanded=!1;else{this.doesDataFlower?r.master=this.doesDataFlower(e):this.doingMasterDetail?this.isRowMasterFunc?r.master=this.isRowMasterFunc(e):r.master=!0:r.master=!1;var a=this.columnController.getRowGroupColumns(),s=n+(a?a.length:0);r.expanded=!!r.master&&this.isExpanded(s)}return r.canFlower=r.master,t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=n,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(ja||(ja={}));var Ha,Ga=function(){function e(){}return e.prototype.init=function(){var e=this.refreshModel.bind(this,{step:o.STEP_EVERYTHING}),t=this.refreshModel.bind(this,{step:o.STEP_EVERYTHING,afterColumnsChanged:!0});this.eventService.addModalPriorityEventListener(z.EVENT_COLUMN_EVERYTHING_CHANGED,t),this.eventService.addModalPriorityEventListener(z.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.eventService.addModalPriorityEventListener(z.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(z.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:o.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(z.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(z.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(z.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(z.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var n=this.refreshModel.bind(this,{step:o.STEP_MAP,keepRenderedRows:!0,animate:!0});this.gridOptionsWrapper.addEventListener(te.PROP_GROUP_REMOVE_SINGLE_CHILDREN,n),this.gridOptionsWrapper.addEventListener(te.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,n),this.rootNode=new We,this.nodeManager=new Va(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController,this.gridApi,this.columnApi,this.selectionController),this.context.wireBean(this.rootNode)},e.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},e.prototype.ensureRowHeightsValid=function(e,t,n,r){var o,i=!1;do{o=!1;for(var a=this.getRowIndexAtPixel(e),s=this.getRowIndexAtPixel(t),l=Math.max(a,n),c=Math.min(s,r),u=l;u<=c;u++){var d=this.getRow(u);if(d.rowHeightEstimated){var h=this.gridOptionsWrapper.getRowHeightForNode(d);d.setRowHeight(h.height),o=!0,i=!0}}o&&this.setRowTops()}while(o);return i},e.prototype.setRowTops=function(){for(var e=0,t=0;t0;)t=t.childrenAfterSort[0];return t.rowIndex},e.prototype.getRowBounds=function(e){if(d.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:o.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},e.prototype.getType=function(){return o.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:o.STEP_PIVOT}):this.refreshModel({step:o.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){var t=d.missingOrEmpty(e),n=new Yt(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},e.prototype.refreshModel=function(e){var t=this,n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case o.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,e.afterColumnsChanged);case o.STEP_FILTER:this.doFilter(n);case o.STEP_PIVOT:this.doPivot(n);case o.STEP_AGGREGATE:this.doAggregate(n);case o.STEP_SORT:this.doSort(e.rowNodeTransactions,n);case o.STEP_MAP:this.doRowsToDisplay()}this.resetRowTops(this.rootNode,n),this.setRowTops();var r={type:z.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r),this.$scope&&window.setTimeout(function(){t.$scope.$apply()},0)},e.prototype.isEmpty=function(){var e;return e=d.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?d.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:d.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,d.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return d.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var n,r=!t,o=!1,i=[],a=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(s){var l=r&&!o;if(r||s!==t&&s!==e||(r=!0),!(s.group&&a)){var c=r&&!o,u=s.isParentOfNode(n);(c||u)&&i.push(s)}l&&(s!==t&&s!==e||(o=!0,n=s===t?t:e))}),i},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(d.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var r=Math.floor((t+n)/2),o=this.rowsToDisplay[r];if(this.isRowInPixel(o,e))return r;o.rowTope&&(n=r-1)}},e.prototype.isRowInPixel=function(e,t){var n=e.rowTop,r=e.rowTop+e.rowHeight;return n<=t&&r>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=d.last(this.rowsToDisplay);return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,n){return e(t,n)})},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,ja.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,ja.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,ja.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,ja.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,n,r){if(e)for(var o=0;o0&&window.setTimeout(function(){t.forEach(function(e){return e()})},0)},e.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t);return this.commonUpdateRowData([n],t),n},e.prototype.commonUpdateRowData=function(e,t){this.refreshModel({step:o.STEP_EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:z.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:o.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode(function(e){return e.setRowHeight(null)}),this.onRowHeightChanged()},Wa([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wa([b("columnController")],e.prototype,"columnController",void 0),Wa([b("filterManager")],e.prototype,"filterManager",void 0),Wa([b("$scope")],e.prototype,"$scope",void 0),Wa([b("selectionController")],e.prototype,"selectionController",void 0),Wa([b("eventService")],e.prototype,"eventService",void 0),Wa([b("context")],e.prototype,"context",void 0),Wa([b("valueService")],e.prototype,"valueService",void 0),Wa([b("valueCache")],e.prototype,"valueCache",void 0),Wa([b("columnApi")],e.prototype,"columnApi",void 0),Wa([b("gridApi")],e.prototype,"gridApi",void 0),Wa([b("filterStage")],e.prototype,"filterStage",void 0),Wa([b("sortStage")],e.prototype,"sortStage",void 0),Wa([b("flattenStage")],e.prototype,"flattenStage",void 0),Wa([C("groupStage")],e.prototype,"groupStage",void 0),Wa([C("aggregationStage")],e.prototype,"aggregationStage",void 0),Wa([C("pivotStage")],e.prototype,"pivotStage",void 0),Wa([m],e.prototype,"init",null),e=Wa([y("rowModel")],e)}(),Ua=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qa=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=e.changedPath;this.filterService.filter(n),this.selectableService.updateSelectableAfterFiltering(t)},Ua([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ua([b("selectableService")],e.prototype,"selectableService",void 0),Ua([b("filterService")],e.prototype,"filterService",void 0),e=Ua([y("filterStage")],e)}(),Ya=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xa=function(){function e(){}return e.prototype.execute=function(e){var t=this.sortController.getSortForRowController(),n=d.exists(t)&&t.length>0,r=n&&d.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),o=r?this.calculateDirtyNodes(e.rowNodeTransactions):null,i=this.columnController.getValueColumns(),a=d.missingOrEmpty(i);this.sortService.sort(t,n,r,o,e.changedPath,a)},e.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach(function(e){return t[e.id]=!0})};return e.forEach(function(e){n(e.add),n(e.update),n(e.remove)}),t},Ya([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ya([b("sortService")],e.prototype,"sortService",void 0),Ya([b("sortController")],e.prototype,"sortController",void 0),Ya([b("columnController")],e.prototype,"columnController",void 0),e=Ya([y("sortStage")],e)}(),Ka=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$a=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,n=[],r={value:0},o=this.columnController.isPivotMode(),i=o&&t.leafGroup,a=i?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(a,n,r,o,0),!i&&n.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(t),this.addRowNodeToRowsToDisplay(t.sibling,n,r,0)),n},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,r,o){if(!d.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupSuppressRow(),a=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),l=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),c=0;c=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ja=function(){function e(){}return e.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},e.prototype.sort=function(e,t,n,r,o,i){var a=this;o.forEachChangedNodeDepthFirst(function(s){if(a.pullDownGroupDataForHideOpenParents(s.childrenAfterFilter,!0),t){var l=n?a.doDeltaSort(s,e,r,o,i):a.doFullSort(s,e);s.childrenAfterSort=l.map(function(e){return e.rowNode})}else s.childrenAfterSort=s.childrenAfterFilter.slice(0);a.updateChildIndexes(s),a.postSortFunc&&a.postSortFunc(s.childrenAfterSort)}),this.updateGroupDataForHiddenOpenParents(o)},e.prototype.doFullSort=function(e,t){var n=e.childrenAfterFilter.map(this.mapNodeToSortedNode.bind(this));return n.sort(this.compareRowNodes.bind(this,t)),n},e.prototype.mapNodeToSortedNode=function(e,t){return{currentPos:t,rowNode:e}},e.prototype.doDeltaSort=function(e,t,n,r,o){var i=e.childrenAfterSort.filter(function(e){var t=!n[e.id],i=o||r.canSkip(e);return t&&i}).map(this.mapNodeToSortedNode.bind(this)),a={};i.forEach(function(e){return a[e.rowNode.id]=e.rowNode});var s=e.childrenAfterFilter.filter(function(e){return!a[e.id]}).map(this.mapNodeToSortedNode.bind(this));return s.sort(this.compareRowNodes.bind(this,t)),0===s.length?i:0===i.length?s:this.mergeSortedArrays(t,i,s)},e.prototype.mergeSortedArrays=function(e,t,n){for(var r=[],o=0,i=0;o=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},es=function(){function e(){}return e.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},e.prototype.filter=function(e){var t=this.filterManager.isAnyFilterPresent();this.filterNodes(t,e)},e.prototype.filterNodes=function(e,t){var n=this,r=function(t,r){t.hasChildren()?(t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter(function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&n.filterManager.doesRowPassFilter(e);return t||r}):t.childrenAfterGroup,n.setAllChildrenCount(t)):(t.childrenAfterFilter=t.childrenAfterGroup,t.setAllChildrenCount(null))};if(this.doingTreeDataFiltering()){t.executeFromRootNode(function(e){return function e(t,o){if(t.childrenAfterGroup)for(var i=0;i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ns=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(d.missing(this.clientSideRowModel))console.error("ag-Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(t&&!d.missing(t)){var n={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),o=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?null:{};return d.exists(e)&&e.forEach(function(e,i){var a=t(e),s=r[a];(o&&(o[a]=i),s)?(s.data!==e&&n.update.push(e),r[a]=void 0):n.add.push(e)}),d.iterateObject(r,function(e,t){t&&n.remove.push(t.data)}),[n,o]}console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!")}},ts([b("rowModel")],e.prototype,"rowModel",void 0),ts([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ts([m],e.prototype,"postConstruct",null),e=ts([y("immutableService")],e)}(),rs={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[qa,Xa,$a,Ja,es,ns],rowModels:{clientSide:Ga}},os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),is=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},as=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.cacheParams=n,r}return os(t,e),t.prototype.createBlankRowNode=function(t){var n=e.prototype.createBlankRowNode.call(this,t);return n.uiLevel=0,this.setIndexAndTopOnRowNode(n,t),n},t.prototype.setDataAndId=function(e,t,n){d.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,n){e.prototype.setRowNode.call(this,t,n),this.setIndexAndTopOnRowNode(n,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.getContext(),rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};d.missing(this.cacheParams.datasource.getRows)?console.warn("ag-Grid: datasource is missing getRows method"):window.setTimeout(function(){e.cacheParams.datasource.getRows(t)},0)},is([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),is([b("rowRenderer")],t.prototype,"rowRenderer",void 0),is([m],t.prototype,"init",null),t}(Sa),ss=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ls=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cs=function(e,t){return function(n,r){t(n,r,e)}},us=function(e){function t(t){return e.call(this,t)||this}return ss(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,n){for(var r=e.getStartRow(),o=t+n,i=e.getEndRow()-1;i>=r;i--)if(!(i=r&&s=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ds(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,n,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}))},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.datasource.destroy&&this.datasource.destroy(),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,z.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addDestroyableEventListener(this.eventService,z.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnEverything.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!d.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return o.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;d.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),d.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),d.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),d.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return d.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return d.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(!d.missing(this.datasource)){d.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:z.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),t=this.gridOptionsWrapper.getBlockLoadDebounceMillis();this.rowNodeBlockLoader=new Oa(e,t),this.getContext().wireBean(this.rowNodeBlockLoader),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new u},this.cacheParams.maxConcurrentRequests&&this.cacheParams.maxConcurrentRequests>=1||(this.cacheParams.maxConcurrentRequests=2),this.cacheParams.blockSize&&this.cacheParams.blockSize>=1||(this.cacheParams.blockSize=100),this.cacheParams.initialRowCount>=1||(this.cacheParams.initialRowCount=0),this.cacheParams.overflowSize>=1||(this.cacheParams.overflowSize=1),this.infiniteCache=new us(this.cacheParams),this.getContext().wireBean(this.infiniteCache),this.infiniteCache.addEventListener(Ta.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.getRowNode=function(e){var t=null;return this.forEachNode(function(n){n.id===e&&(t=n)}),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new u)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){d.exists(e.remove)||d.exists(e.update)?console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):d.missing(e.addIndex)?console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add)},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},hs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),hs([b("filterManager")],t.prototype,"filterManager",void 0),hs([b("sortController")],t.prototype,"sortController",void 0),hs([b("selectionController")],t.prototype,"selectionController",void 0),hs([b("eventService")],t.prototype,"eventService",void 0),hs([b("gridApi")],t.prototype,"gridApi",void 0),hs([b("columnApi")],t.prototype,"columnApi",void 0),hs([b("rowRenderer")],t.prototype,"rowRenderer",void 0),hs([m],t.prototype,"init",null),hs([v],t.prototype,"destroyDatasource",null),t=hs([y("rowModel")],t)}(ae),fs={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:ps}},gs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ms=function(){function e(e){var t=e.columnController,n=e.valueService,r=e.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback;this.columnController=t,this.valueService=n,this.gridOptionsWrapper=r,this.processCellCallback=o,this.processHeaderCallback=i,this.processGroupHeaderCallback=a,this.processRowGroupCallback=s}return e.prototype.prepare=function(e){this.firstGroupColumn=d.find(e,function(e){return!!e.getColDef().showRowGroup})},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,r){var o;o=r&&r.group&&(e===this.firstGroupColumn||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var i=this.processCell(r,e,o,this.processCellCallback,n);return null!=i?i:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,r,o){return r?r({column:t,node:e,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:o}):n},e}(),vs=function(){function e(){}return e.prototype.serialize=function(e,t){void 0===t&&(t={});var n=t.shouldRowBeSkipped||function(){return!1},r=this.gridOptionsWrapper.getApi(),i=this.gridOptionsWrapper.getColumnApi(),a=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),s=this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=this.gridOptionsWrapper.getContext(),c=this.columnController.isPivotMode(),u=this.rowModel.getType()===o.ROW_MODEL_TYPE_CLIENT_SIDE,h=!u&&t.onlySelected,p=[];if(p=d.existsAndNotEmpty(t.columnKeys)?this.columnController.getGridColumns(t.columnKeys):t.allColumns&&!c?(p=this.gridOptionsWrapper.isTreeData()?this.columnController.getGridColumns([o.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnController.getAllPrimaryColumns()||[]):this.columnController.getAllDisplayedColumns(),t.customHeader&&e.addCustomContent(t.customHeader),e.prepare(p),t.columnGroups){var f=new B,g=this.displayedGroupCreator.createDisplayedGroups(p,this.columnController.getGridBalancedTree(),f,null);this.recursivelyAddHeaderGroups(g,e,t.processGroupHeaderCallback)}if(!t.skipHeader){var m=e.onNewHeaderRow();p.forEach(function(e,t){m.onColumn(e,t,void 0)})}(this.pinnedRowModel.forEachPinnedTopRow(v),c)?this.rowModel.forEachPivotNode?this.rowModel.forEachPivotNode(v):this.rowModel.forEachNode(v):t.onlySelectedAllPages||h?this.selectionController.getSelectedNodes().forEach(function(e){v(e)}):u?this.rowModel.forEachNodeAfterFilterAndSort(v):this.rowModel.forEachNode(v);function v(o){var c=s&&o.leafGroup,u=1===o.allChildrenCount&&(a||c);if((!o.group||!t.skipGroups&&!u)&&((!t.skipFooters||!o.footer)&&(!t.onlySelected||o.isSelected())&&(!t.skipPinnedTop||"top"!==o.rowPinned)&&(!t.skipPinnedBottom||"bottom"!==o.rowPinned)&&(!(-1===o.level)||o.leafGroup)&&!n({node:o,api:r,context:l}))){var d=e.onNewBodyRow();if(p.forEach(function(e,t){d.onColumn(e,t,o)}),t.getCustomContentBelowRow){var h=t.getCustomContentBelowRow({node:o,api:r,columnApi:i,context:l});h&&e.addCustomContent(h)}}}return this.pinnedRowModel.forEachPinnedBottomRow(v),t.customFooter&&e.addCustomContent(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t,n){var r=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return r.push(e)})}),e.length>0&&e[0]instanceof P&&this.doAddHeaderHeader(t,e,n),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,n)},e.prototype.doAddHeaderHeader=function(e,t,n){var r=this,o=e.onNewHeaderGroupingRow(),i=0;t.forEach(function(e){var t,a=e;t=n?n({columnGroup:a,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()}):r.columnController.getDisplayNameForColumnGroup(a,"header"),o.onColumn(t||"",i++,a.getLeafColumns().length-1)})},gs([b("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),gs([b("columnController")],e.prototype,"columnController",void 0),gs([b("rowModel")],e.prototype,"rowModel",void 0),gs([b("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),gs([b("selectionController")],e.prototype,"selectionController",void 0),gs([b("columnFactory")],e.prototype,"columnFactory",void 0),gs([b("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=gs([y("gridSerializer")],e)}();!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(Ha||(Ha={}));var ys=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cs=function(e){function t(t){var n=e.call(this,t)||this;n.isFirstLine=!0,n.result="";var r=t.suppressQuotes,o=t.columnSeparator;return n.suppressQuotes=r,n.columnSeparator=o,n}return ys(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(function(e){t.beginNewLine(),e.forEach(function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,o.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result+"\r\n"},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(ms),ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ys(t,e),t.prototype.postConstruct=function(){this.setBeans({downloader:this.downloader,gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnController,n=this.valueService,r=this.gridOptionsWrapper,o=e.processCellCallback,i=e.processHeaderCallback,a=e.processGroupHeaderCallback,s=e.processRowGroupCallback,l=e.suppressQuotes,c=e.columnSeparator;return new Cs({columnController:t,valueService:n,gridOptionsWrapper:r,processCellCallback:o||void 0,processHeaderCallback:i||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:s||void 0,suppressQuotes:l||!1,columnSeparator:c||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},bs([b("columnController")],t.prototype,"columnController",void 0),bs([b("valueService")],t.prototype,"valueService",void 0),bs([b("downloader")],t.prototype,"downloader",void 0),bs([b("gridSerializer")],t.prototype,"gridSerializer",void 0),bs([b("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),bs([m],t.prototype,"postConstruct",null),t=bs([y("csvCreator")],t)}(function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),n=t.mergedParams,r=t.data,o=n&&n.fileName&&0!==n.fileName.length?n.fileName:this.getDefaultFileName();return-1===o.indexOf(".")&&(o=o+"."+this.getDefaultFileExtension()),this.beans.downloader.download(o,this.packageFile(r)),r},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.beans.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.beans.gridOptionsWrapper.getDefaultExportParams(),n={};return d.assign(n,t),d.assign(n,e),n},e.prototype.packageFile=function(e){return new Blob(["\ufeff",e],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"})},e}()),xs=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_s=function(){function e(){}return e.prototype.download=function(e,t){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(t,e);else{var n=document.createElement("a"),r=window.URL.createObjectURL(t);n.setAttribute("href",r),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window})),document.body.removeChild(n),window.setTimeout(function(){window.URL.revokeObjectURL(r)},0)}},e=xs([y("downloader")],e)}(),Ss=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ms=function(){function e(){}return e.prototype.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),""},e.prototype.createXml=function(e,t){var n=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(o){r+=n.returnAttributeIfPopulated(e.prefix+o,e.map[o],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(o){r+=n.returnAttributeIfPopulated(o,e.properties.rawMap[o],t)}));var o="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?o+">"+e.textNode+"\r\n":(o+=">\r\n",e.children&&e.children.forEach(function(e){o+=n.createXml(e,t)}),o+"\r\n"):o+"/>\r\n"},e.prototype.returnAttributeIfPopulated=function(e,t,n){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"===typeof t&&n&&(r=n(t))," "+e+'="'+r+'"'},e=Ss([y("xmlFactory")],e)}(),Es=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Os=[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918e3,-1447252397,-558129467,1202900863,817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117],As=function(){function e(){var e=this;this.folders=[],this.files=[],this.addFolder=function(t){e.folders.push({path:t,created:new Date})}}return e.prototype.addFolders=function(e){e.forEach(this.addFolder)},e.prototype.addFile=function(e,t){this.files.push({path:e,created:new Date,content:t})},e.prototype.clearStream=function(){this.folders=[],this.files=[]},e.prototype.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.prototype.buildFileStream=function(e){void 0===e&&(e="");for(var t=this.folders.concat(this.files),n=t.length,r="",o=0,i=0,a=0,s=t;a>>8^Os[255&(t^n)];return-1^t},e.prototype.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.prototype.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e=Es([y("zipContainer")],e)}(),Ts={moduleName:t.ModuleNames.CsvExportModule,beans:[ws,_s,Ms,vs,As]};A.register(rs),A.register(fs),A.register(Ts),t.AgAbstractField=Fn,t.AgAngleSelect=na,t.AgCheckbox=Wn,t.AgColorPicker=Yi,t.AgDialog=Pi,t.AgGroupComponent=Ei,t.AgInputNumberField=Ki,t.AgInputRange=Zi,t.AgInputTextArea=Fi,t.AgInputTextField=Li,t.AgPanel=Ti,t.AgRadioButton=bo,t.AgSelect=Qi,t.AgSlider=Bi,t.AgToggleButton=oa,t.AlignedGridsService=Uo,t.AnimateShowChangeCellRenderer=et,t.AnimateSlideCellRenderer=rt,t.AutoWidthCalculator=Kr,t.Autowired=b,t.BaseComponentWrapper=za,t.Bean=y,t.BeanStub=ae,t.BodyDropPivotTarget=fr,t.BodyDropTarget=vr,t.CellComp=wn,t.CellNavigationService=po,t.CellPositionUtils=ua,t.CellRendererFactory=go,t.ChangedPath=Yt,t.CheckboxSelectionComponent=Ue,t.ColDefUtil=K,t.Color=r,t.Column=k,t.ColumnApi=Jt,t.ColumnController=W,t.ColumnFactory=I,t.ColumnGroup=P,t.ColumnKeyCreator=p,t.ColumnUtils=G,t.Component=ue,t.ComponentUtil=re,t.Constants=o,t.Context=f,t.CssClassApplier=Tn,t.DateFilter=Ne,t.DisplayedGroupCreator=q,t.DragAndDropService=an,t.DragService=oo,t.Environment=ni,t.EventService=O,t.Events=z,t.ExpressionService=Br,t.FilterManager=Sr,t.FocusedCellController=lo,t.Grid=ba,t.GridApi=Fr,t.GridCore=eo,t.GridOptionsWrapper=te,t.GridPanel=Lr,t.GroupCellRenderer=Ze,t.GroupInstanceIdCreator=B,t.HeaderContainer=br,t.HeaderRootComp=xr,t.HeaderRowComp=ur,t.HorizontalResizeService=Zr,t.LargeTextCellEditor=gt,t.Listener=function(e){return function(e,t,n){null!==e?ve(t,"listenerMethods",{methodName:n,eventName:e}):console.error("ag-Grid: EventListener eventName should not be null")}.bind(this,e)},t.Logger=Yr,t.LoggerFactory=qr,t.MessageBox=Pa,t.ModuleRegistry=A,t.MouseEventService=uo,t.MoveColumnController=hr,t.NumberFilter=yt,t.NumberSequence=u,t.Optional=C,t.OriginalColumnGroup=N,t.PaginationProxy=Lo,t.PinnedRowModel=ha,t.PopupComponent=he,t.PopupEditorWrapper=gn,t.PopupSelectCellEditor=pt,t.PopupService=Hr,t.PopupTextCellEditor=dt,t.PostConstruct=m,t.PreConstruct=g,t.PreDestroy=v,t.Promise=h,t.ProvidedFilter=_e,t.Qualifier=x,t.QuerySelector=function(e){return me.bind(this,e)},t.RefSelector=ge,t.ResizeObserverService=yi,t.RowComp=Sn,t.RowNode=We,t.RowNodeBlock=Sa,t.RowNodeBlockLoader=Oa,t.RowNodeCache=Ta,t.RowPositionUtils=la,t.RowRenderer=An,t.ScalerFilter=ke,t.ScrollVisibleService=xo,t.SelectCellEditor=ct,t.SelectableService=di,t.SelectionController=$t,t.SetLeftFeature=Dn,t.SimpleFilter=Ae,t.SortController=ao,t.StandardMenuFactory=no,t.StylingService=So,t.TabbedLayout=xa,t.TemplateService=Vr,t.TextCellEditor=fe,t.TextFilter=Ft,t.TooltipManager=Ci,t.TouchListener=Le,t.UserComponentFactory=Xe,t.UserComponentRegistry=qt,t.Utils=c,t.ValueCache=Bo,t.ValueFormatterService=vo,t.ValueService=Er,t.VanillaFrameworkOverrides=Co,t.VirtualList=Fa,t._=d,t.defaultGroupComparator=function(e,t,n,r,o){void 0===o&&(o=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var i=d.exists(n)&&n.group,a=d.exists(r)&&r.group,s=!i&&!a;return i&&a?d.defaultComparator(n.key,r.key,o):s?d.defaultComparator(e,t,o):i?1:-1},t.initialiseAgGridWithAngular1=function(e){e.module("agGrid",[]).directive("agGrid",function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",Ca],scope:!0}})},t.initialiseAgGridWithWebComponents=function(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!wa){wa=!0,"undefined"!==typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);re.ALL_PROPERTIES.forEach(function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})});var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var n={};n[e]={currentValue:t},this.onChange(n)},t.onChange=function(e){this._initialised&&re.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=re.copyAttributesToGridOptions(e,this);var n={globalEventListener:t};this._agGrid=new ba(this,this._gridOptions,n),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e=0&&(this[t]=n)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var n=e.toLowerCase(),r=new Event(n);r.agGridDetails=t,this.dispatchEvent(r);var o="on"+n;"function"===typeof this[o]&&this[o](r)},document.registerElement("ag-grid",{prototype:e})}},t.simpleHttpRequest=function(e){return new h(function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var e=JSON.parse(n.responseText);t(e)}}})}}).call(this,n(63))},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(372),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(63))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o=1,i={},a=!1,s=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){u(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&u(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){u(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(u,0,e)},l.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(381),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c="object"===typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{(u=t.regeneratorRuntime=c?e.exports:{}).wrap=C;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",g={},m={};m[a]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==r&&o.call(y,a)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);_.prototype=b.constructor=S,S.constructor=_,S[l]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},M(E.prototype),E.prototype[s]=function(){return this},u.AsyncIterator=E,u.async=function(e,t,n,r){var o=new E(C(e,t,n,r));return u.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},M(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=D,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function C(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=w(e,t,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function _(){}function S(){}function M(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var s=w(e[n],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){l.value=e,i(l)},function(e){return t("throw",e,i,a)})}a(s.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function O(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(60);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(231);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";var r=n(400),o=n(233),i=n(202),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,i,a,s,c,d,h,f,g,m,v,y,b,C){var w,x=t;if(C.has(t))throw new RangeError("Cyclic object value");if("function"===typeof d?x=d(n,x):x instanceof Date?x=g(x):"comma"===i&&l(x)&&(x=o.maybeMap(x,function(e){return e instanceof Date?g(e):e})),null===x){if(a)return c&&!y?c(n,p.encoder,b,"key",m):n;x=""}if("string"===typeof(w=x)||"number"===typeof w||"boolean"===typeof w||"symbol"===typeof w||"bigint"===typeof w||o.isBuffer(x))return c?[v(y?n:c(n,p.encoder,b,"key",m))+"="+v(c(x,p.encoder,b,"value",m))]:[v(n)+"="+v(String(x))];var _,S=[];if("undefined"===typeof x)return S;if("comma"===i&&l(x))_=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(d))_=d;else{var M=Object.keys(x);_=h?M.sort(h):M}for(var E=0;E<_.length;++E){var O=_[E],A="object"===typeof O&&void 0!==O.value?O.value:x[O];if(!s||null!==A){var T=l(x)?"function"===typeof i?i(n,O):n:n+(f?"."+O:"["+O+"]");C.set(t,!0);var k=r();u(S,e(A,T,i,a,s,c,d,h,f,g,m,v,y,b,k))}}return S};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=p.filter;return("function"===typeof e.filter||l(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d,h=[];if("object"!==typeof o||null===o)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var m=r(),v=0;v0?C+b:""}},function(e,t,n){"use strict";var r=n(198),o=n(200),i=n(404),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),h=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),f=o("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!==typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=Math.max(0,t.length-i.length),s=[],l=0;l0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+o}var i=t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,L);return E(i,"single",n)}(t,s);if("number"===typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"===typeof t)return String(t)+"n";var g="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=g&&g>0&&"object"===typeof t)return A(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if("undefined"===typeof o)o=[];else if(N(o,t)>=0)return"[Circular]";function w(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:s.depth};return D(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if("function"===typeof t){var _=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),k=B(t,w);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(k.length>0?" { "+k.join(", ")+" }":"")}if(T(t)){var j=C.call(t);return"object"===typeof t?R(j):j}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var V="<"+String(t.nodeName).toLowerCase(),W=t.attributes||[],H=0;H"}if(A(t)){if(0===t.length)return"[]";var G=B(t,w);return b&&!function(e){for(var t=0;t=0)return!1;return!0}(G)?"["+z(G,b)+"]":"[ "+G.join(", ")+" ]"}if(function(e){return"[object Error]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t)){var U=B(t,w);return 0===U.length?"["+String(t)+"]":"{ ["+String(t)+"] "+U.join(", ")+" }"}if("object"===typeof t&&l){if(S&&"function"===typeof t[S])return t[S]();if("function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(V){return!0}return e instanceof Map}catch(t){}return!1}(t)){var q=[];return a.call(t,function(e,n){q.push(w(n,t,!0)+" => "+w(e,t))}),I("Map",i.call(t),q,b)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var Y=[];return u.call(t,function(e){Y.push(w(e,t))}),I("Set",c.call(t),Y,b)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(V){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return F("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(V){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return F("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return F("WeakRef");if(function(e){return"[object Number]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t))return R(w(Number(t)));if(function(e){if(!e||"object"!==typeof e||!y)return!1;try{return y.call(e),!0}catch(t){}return!1}(t))return R(w(y.call(t)));if(function(e){return"[object Boolean]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t))return R(f.call(t));if(function(e){return"[object String]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t))return R(w(String(t)));if(!function(e){return"[object Date]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t)&&!function(e){return"[object RegExp]"===P(e)&&(!M||!("object"===typeof e&&M in e))}(t)){var X=B(t,w),K=x?x(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",Z=!K&&M&&Object(t)===t&&M in t?P(t).slice(8,-1):$?"Object":"",J=(K||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Z||$?"["+[].concat(Z||[],$||[]).join(": ")+"] ":"");return 0===X.length?J+"{}":b?J+"{"+z(X,b)+"}":J+"{ "+X.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function D(e,t){return k.call(e,t)}function P(e){return g.call(e)}function N(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=o:a[c]=o:a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=i(m)?[m]:m),o.call(c,g)?c[g]=r.combine(c[g],m):c[g]=m}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),p=0;pe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=o(e.children),l=i(t,s);return Object.keys(l).forEach(function(o){var i=l[o];if((0,r.isValidElement)(i)){var c=o in t,u=o in s,d=t[o],h=(0,r.isValidElement)(d)&&!d.props.in;!u||c&&!h?u||!c||h?u&&c&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):l[o]=(0,r.cloneElement)(i,{in:!1}):l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}}),l};var r=n(0);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r0&&!o.call(e,0))for(var g=0;g0)for(var m=0;m=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},function(e,t,n){"use strict";var r=n(146),o=n(201),i=n(246),a=n(247),s=n(437),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},function(e,t,n){"use strict";var r=n(247),o=n(146);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,n){"use strict";var r,o,i,a,s=n(200),l=n(232)()&&"symbol"===typeof Symbol.toStringTag;if(l){r=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=s("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(n){return n===i}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},function(e,t,n){"use strict";var r=n(146),o=n(201),i=n(248),a=n(249),s=n(440),l=o(i);r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},function(e,t,n){"use strict";var r=n(146).supportsDescriptors,o=n(249),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(c),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){return"object"===typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";var r=n(443);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i;!function(a,s){"use strict";e.exports?e.exports=s(n(257)):(o=[n(257)],void 0===(i="function"===typeof(r=s)?r.apply(t,o):r)||(e.exports=i))}(0,function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},o={},i={},a={};e&&"string"===typeof e.version||T("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),l=+s[0],c=+s[1];function u(e){return e>96?e-87:e>64?e-29:e-48}function d(e){var t=0,n=e.split("."),r=n[0],o=n[1]||"",i=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t3){var t=i[S(e)];if(t)return t;T("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(u){}var n,r,o,a=function(){var e,t,n,r=(new Date).getFullYear()-2,o=new v(new Date(r,0,1)),i=[o];for(n=1;n<48;n++)(t=new v(new Date(r,n,1))).offset!==o.offset&&(e=b(o,t),i.push(e),i.push(new v(new Date(e.at+6e4)))),o=t;for(n=0;n<4;n++)i.push(new v(new Date(r+n,0,1))),i.push(new v(new Date(r+n,6,1)));return i}(),s=a.length,l=x(a),c=[];for(r=0;r0?c[0].zone.name:void 0}function S(e){return(e||"").toLowerCase().replace(/\//g,"_")}function M(e){var t,r,o,a;for("string"===typeof e&&(e=[e]),t=0;t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),g.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,r=this.untils;for(t=0;tr&&k.moveInvalidForward&&(t=r),i0&&(this._z=null),D.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&c<9)&&T("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?E(t):null,e};var R=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(R)?(R.push("_z"),R.push("_a")):R&&(R._z=null),e})},function(e){e.exports=JSON.parse('{"version":"2021a","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020 +0030|.Q 0 -k -u|01212121212121212121212121212121212121212121212131313131313131|-2bRzX.8 9RbX.8 fdE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE 1BAk MLE 1Bck MLE 1Bck MLE 1Bck MLE Mok 1BXE M0k 1BXE fak 9vbu bjCu MLu 1Bcu MLu 1BAu MLu 1Bcu MLu 1Bcu MLu 1Bcu MLu|41e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/Nassau|LMT EST EWT EPT EDT|59.u 50 40 40 40|01212314141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2kNuO.u 1drbO.u 6tX0 cp0 1hS0 pF0 J630 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Pacific/Port_Moresby|+10|-a0|0||25e4","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Currie Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Vancouver America/Whitehorse America/Dawson","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Astrakhan Europe/Volgograd Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},function(e,t,n){e.exports=n(447)()},function(e,t,n){"use strict";var r=n(448);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(196),o={};var i=function(e){};function a(e,t,n,r,o,a,s,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}var s="mixins";e.exports=function(e,t,n){var i=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;nu||l.year()>c)&&(e+=" rdtNew"),s&&l.isSame(s,"day")&&(e+=" rdtActive"),l.isSame(i(),"day")&&(e+=" rdtToday"),(t=!f(o,s))&&(e+=" rdtDisabled"),n={key:l.format("M_D"),"data-value":l.date(),className:e},t||(n.onClick=this.updateSelectedDate),h.push(p(n,o,s)),7===h.length&&(d.push(r.createElement("tr",{key:l.format("M_D")},h)),h=[]),l.add(1,"d");return d},updateSelectedDate:function(e){this.props.updateSelectedDate(e,!0)},renderDay:function(e,t){return r.createElement("td",e,t.date())},renderFooter:function(){if(!this.props.timeFormat)return"";var e=this.props.selectedDate||this.props.viewDate;return r.createElement("tfoot",{key:"tf"},r.createElement("tr",{},r.createElement("td",{onClick:this.props.showView("time"),colSpan:7,className:"rdtTimeToggle"},e.format(this.props.timeFormat))))},alwaysValidDate:function(){return 1}});e.exports=a},function(e,t,n){"use strict";var r=n(0),o=n(117)({render:function(){return r.createElement("div",{className:"rdtMonths"},[r.createElement("table",{key:"a"},r.createElement("thead",{},r.createElement("tr",{},[r.createElement("th",{key:"prev",className:"rdtPrev",onClick:this.props.subtractTime(1,"years")},r.createElement("span",{},"\u2039")),r.createElement("th",{key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2,"data-value":this.props.viewDate.year()},this.props.viewDate.year()),r.createElement("th",{key:"next",className:"rdtNext",onClick:this.props.addTime(1,"years")},r.createElement("span",{},"\u203a"))]))),r.createElement("table",{key:"months"},r.createElement("tbody",{key:"b"},this.renderMonths()))])},renderMonths:function(){for(var e,t,n,o,i,a=this.props.selectedDate,s=this.props.viewDate.month(),l=this.props.viewDate.year(),c=[],u=0,d=[],h=this.props.renderMonth||this.renderMonth,p=this.props.isValidDate||this.alwaysValidDate;u<12;)e="rdtMonth",i=(n=this.props.viewDate.clone().set({year:l,month:u,date:1})).endOf("month").format("D"),(o=void 0===Array.from({length:i},function(e,t){return t+1}).find(function(e){var t=n.clone().set("date",e);return p(t)}))&&(e+=" rdtDisabled"),a&&u===a.month()&&l===a.year()&&(e+=" rdtActive"),t={key:u,"data-value":u,className:e},o||(t.onClick="months"===this.props.updateOn?this.updateSelectedMonth:this.props.setDate("month")),d.push(h(t,u,l,a&&a.clone())),4===d.length&&(c.push(r.createElement("tr",{key:s+"_"+c.length},d)),d=[]),u++;return c},updateSelectedMonth:function(e){this.props.updateSelectedDate(e)},renderMonth:function(e,t){var n,o=this.props.viewDate,i=o.localeData().monthsShort(o.month(t)).substring(0,3);return r.createElement("td",e,(n=i).charAt(0).toUpperCase()+n.slice(1))},alwaysValidDate:function(){return 1}});e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(117)({render:function(){var e=10*parseInt(this.props.viewDate.year()/10,10);return r.createElement("div",{className:"rdtYears"},[r.createElement("table",{key:"a"},r.createElement("thead",{},r.createElement("tr",{},[r.createElement("th",{key:"prev",className:"rdtPrev",onClick:this.props.subtractTime(10,"years")},r.createElement("span",{},"\u2039")),r.createElement("th",{key:"year",className:"rdtSwitch",onClick:this.props.showView("years"),colSpan:2},e+"-"+(e+9)),r.createElement("th",{key:"next",className:"rdtNext",onClick:this.props.addTime(10,"years")},r.createElement("span",{},"\u203a"))]))),r.createElement("table",{key:"years"},r.createElement("tbody",{},this.renderYears(e)))])},renderYears:function(e){var t,n,o,i,a,s=[],l=-1,c=[],u=this.props.renderYear||this.renderYear,d=this.props.selectedDate,h=this.props.isValidDate||this.alwaysValidDate;for(e--;l<11;)t="rdtYear",a=(o=this.props.viewDate.clone().set({year:e,month:0,date:1})).endOf("year").format("DDD"),(i=void 0===Array.from({length:a},function(e,t){return t+1}).find(function(e){var t=o.clone().dayOfYear(e);return h(t)}))&&(t+=" rdtDisabled"),d&&d.year()===e&&(t+=" rdtActive"),n={key:e,"data-value":e,className:t},i||(n.onClick="years"===this.props.updateOn?this.updateSelectedYear:this.props.setDate("year")),s.push(u(n,e,d&&d.clone())),4===s.length&&(c.push(r.createElement("tr",{key:l},s)),s=[]),e++,l++;return c},updateSelectedYear:function(e){this.props.updateSelectedDate(e)},renderYear:function(e,t){return r.createElement("td",e,t)},alwaysValidDate:function(){return 1}});e.exports=o},function(e,t,n){"use strict";var r=n(0),o=n(117),i=n(258),a=o({getInitialState:function(){return this.calculateState(this.props)},calculateState:function(e){var t=e.selectedDate||e.viewDate,n=e.timeFormat,r=[];-1!==n.toLowerCase().indexOf("h")&&(r.push("hours"),-1!==n.indexOf("m")&&(r.push("minutes"),-1!==n.indexOf("s")&&r.push("seconds")));var o=t.format("H"),i=!1;return null!==this.state&&-1!==this.props.timeFormat.toLowerCase().indexOf(" a")&&(i=-1!==this.props.timeFormat.indexOf(" A")?o>=12?"PM":"AM":o>=12?"pm":"am"),{hours:o,minutes:t.format("mm"),seconds:t.format("ss"),milliseconds:t.format("SSS"),daypart:i,counters:r}},renderCounter:function(e){if("daypart"!==e){var t=this.state[e];return"hours"===e&&-1!==this.props.timeFormat.toLowerCase().indexOf(" a")&&0===(t=(t-1)%12+1)&&(t=12),r.createElement("div",{key:e,className:"rdtCounter"},[r.createElement("span",{key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("increase",e),onContextMenu:this.disableContextMenu},"\u25b2"),r.createElement("div",{key:"c",className:"rdtCount"},t),r.createElement("span",{key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("decrease",e),onContextMenu:this.disableContextMenu},"\u25bc")])}return""},renderDayPart:function(){return r.createElement("div",{key:"dayPart",className:"rdtCounter"},[r.createElement("span",{key:"up",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours"),onContextMenu:this.disableContextMenu},"\u25b2"),r.createElement("div",{key:this.state.daypart,className:"rdtCount"},this.state.daypart),r.createElement("span",{key:"do",className:"rdtBtn",onMouseDown:this.onStartClicking("toggleDayPart","hours"),onContextMenu:this.disableContextMenu},"\u25bc")])},render:function(){var e=this,t=[];return this.state.counters.forEach(function(n){t.length&&t.push(r.createElement("div",{key:"sep"+t.length,className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(n))}),!1!==this.state.daypart&&t.push(e.renderDayPart()),3===this.state.counters.length&&-1!==this.props.timeFormat.indexOf("S")&&(t.push(r.createElement("div",{className:"rdtCounterSeparator",key:"sep5"},":")),t.push(r.createElement("div",{className:"rdtCounter rdtMilli",key:"m"},r.createElement("input",{value:this.state.milliseconds,type:"text",onChange:this.updateMilli})))),r.createElement("div",{className:"rdtTime"},r.createElement("table",{},[this.renderHeader(),r.createElement("tbody",{key:"b"},r.createElement("tr",{},r.createElement("td",{},r.createElement("div",{className:"rdtCounters"},t))))]))},componentWillMount:function(){var e=this;e.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},["hours","minutes","seconds","milliseconds"].forEach(function(t){i(e.timeConstraints[t],e.props.timeConstraints[t])}),this.setState(this.calculateState(this.props))},componentWillReceiveProps:function(e){this.setState(this.calculateState(e))},updateMilli:function(e){var t=parseInt(e.target.value,10);t===e.target.value&&t>=0&&t<1e3&&(this.props.setTime("milliseconds",t),this.setState({milliseconds:t}))},renderHeader:function(){if(!this.props.dateFormat)return null;var e=this.props.selectedDate||this.props.viewDate;return r.createElement("thead",{key:"h"},r.createElement("tr",{},r.createElement("th",{className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},e.format(this.props.dateFormat))))},onStartClicking:function(e,t){var n=this;return function(){var r={};r[t]=n[e](t),n.setState(r),n.timer=setTimeout(function(){n.increaseTimer=setInterval(function(){r[t]=n[e](t),n.setState(r)},70)},500),n.mouseUpListener=function(){clearTimeout(n.timer),clearInterval(n.increaseTimer),n.props.setTime(t,n.state[t]),document.body.removeEventListener("mouseup",n.mouseUpListener),document.body.removeEventListener("touchend",n.mouseUpListener)},document.body.addEventListener("mouseup",n.mouseUpListener),document.body.addEventListener("touchend",n.mouseUpListener)}},disableContextMenu:function(e){return e.preventDefault(),!1},padValues:{hours:1,minutes:2,seconds:2,milliseconds:3},toggleDayPart:function(e){var t=parseInt(this.state[e],10)+12;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},increase:function(e){var t=parseInt(this.state[e],10)+this.timeConstraints[e].step;return t>this.timeConstraints[e].max&&(t=this.timeConstraints[e].min+(t-(this.timeConstraints[e].max+1))),this.pad(e,t)},decrease:function(e){var t=parseInt(this.state[e],10)-this.timeConstraints[e].step;return t=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},g}(r.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},function(e,t,n){var r=n(457),o=n(458);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!==e&&"object"===r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=o,t.isCallable=function(e){return"function"===typeof e},t.isSameObjectContent=function e(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;var r=Object.keys(t);for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"clone",n=r(e);if("string"===n||"number"===n||"function"===n||"boolean"===n)return e;if(null===e||void 0===e)return e;if(Array.isArray(e)){for(var o=[],i=0;i1&&(o-=1)),[360*o,100*i,100*c]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*a,100*r]},o.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return t=Math.min(1-n,1-r,1-o),[100*((1-n-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var r=t[e];if(r)return r;var o,i,a,s=1/0;for(var l in n)if(n.hasOwnProperty(l)){var c=n[l],u=(i=e,a=c,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var o=.4124*t+.3576*n+.1805*r,i=.2126*t+.7152*n+.0722*r,a=.0193*t+.1192*n+.9505*r;return[100*o,100*i,100*a]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},o.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[c]=255*i;return o},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},o.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-i)*a,n=i*s,[o,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},o.hwb.rgb=function(e){var t,n,r,o,i,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),t=Math.floor(6*l),r=6*l-t,0!==(1&t)&&(r=1-r),o=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,a=o,s=c;break;case 1:i=o,a=n,s=c;break;case 2:i=c,a=n,s=o;break;case 3:i=c,a=o,s=n;break;case 4:i=o,a=c,s=n;break;case 5:i=n,a=c,s=o}return[255*i,255*a,255*s]},o.cmyk.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100,s=e[3]/100;return t=1-Math.min(1,o*(1-s)+s),n=1-Math.min(1,i*(1-s)+s),r=1-Math.min(1,a*(1-s)+s),[255*t,255*n,255*r]},o.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];t=i/500+(n=(o+16)/116),r=n-a/200;var s=Math.pow(n,3),l=Math.pow(t,3),c=Math.pow(r,3);return n=s>.008856?s:(n-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},o.lab.lch=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return t=Math.atan2(a,i),(n=360*t/2/Math.PI)<0&&(n+=360),r=Math.sqrt(i*i+a*a),[o,r,n]},o.lch.lab=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return r=a/360*2*Math.PI,t=i*Math.cos(r),n=i*Math.sin(r),[o,t,n]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var o=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return o},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50)),r=(1&t)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;e-=16;var r=Math.floor(e/36)/5*255,o=Math.floor((n=e%36)/6)/5*255,i=n%6/5*255;return[r,o,i]},o.rgb.hex=function(e){var t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16),o=r>>16&255,i=r>>8&255,a=255&r;return[o,i,a]},o.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),s=i-a;return t=s<=0?0:i===n?(r-o)/s%6:i===r?2+(o-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,a=i%1,s=1-a,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},o.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),o=0;return r>0&&(o=t/r),[e[0],100*o,100*r]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],100*o,100*r]},o.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,o=r-t,i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],100*o,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}}(t={exports:{}},t.exports),t.exports);function o(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,o=0;o1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,o=0;o1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var l=s,c={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u={getRgba:d,getHsla:h,getRgb:function(e){var t=d(e);return t&&t.slice(0,3)},getHsl:function(e){var t=h(e);return t&&t.slice(0,3)},getHwb:p,getAlpha:function(e){var t=d(e);return t?t[3]:(t=h(e))?t[3]:(t=p(e))?t[3]:void 0},hexString:function(e,t){var t=void 0!==t&&3===e.length?t:e[3];return"#"+y(e[0])+y(e[1])+y(e[2])+(t>=0&&t<1?y(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return g(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+o+"%)"},percentaString:g,hslString:function(e,t){return t<1||e[3]&&e[3]<1?m(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:m,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return b[e.slice(0,3)]}};function d(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),o="";if(r){r=r[1],o=r[3];for(var i=0;in?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,o=2*r-1,i=this.alpha()-n.alpha(),a=((o*i===-1?o:(o+i)/(1+o*i))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new w,r=this.values,o=n.values;for(var i in r)r.hasOwnProperty(i)&&(e=r[i],"[object Array]"===(t={}.toString.call(e))?o[i]=e.slice(0):"[object Number]"===t?o[i]=e:console.error("unexpected color value:",e));return n}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},w.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},w.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;o--)t.call(n,e[o],o);else for(o=0;o=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2===(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-M.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},E={effects:M};S.easingEffects=M;var O=Math.PI,A=O/180,T=2*O,k=O/2,D=O/4,P=2*O/3,N={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,o,i){if(i){var a=Math.min(i,o/2,r/2),s=t+a,l=n+a,c=t+r-a,u=n+o-a;e.moveTo(t,l),st.left-1e-6&&e.xt.top-1e-6&&e.y0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,o=this.animations,i=0;i=n?(V.callback(e.onAnimationComplete,[e],t),t.animating=!1,o.splice(i,1)):++i}},J=V.options.resolve,Q=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(Q.forEach(function(t){delete e[t]}),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};V.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,r=this.getDataset(),o=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!r.xAxisID||(e.xAxisID=r.xAxisID||o.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!r.yAxisID||(e.yAxisID=r.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],o=n.data;for(e=0,t=r.length;en&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;no?(i=o/t.innerRadius,e.arc(a,s,t.innerRadius-o,r+i,n-i,!0)):e.arc(a,s,o,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function ie(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var o,i=n.endAngle;for(r&&(n.endAngle=n.startAngle+re,oe(e,n),n.endAngle=i,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),o=0;os;)o-=re;for(;o=a&&o<=s,c=i>=n.innerRadius&&i<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,o={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,o.fullCircles){for(o.endAngle=o.startAngle+re,t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),e=0;ee.x&&(t=ve(t,"left","right")):e.basen?n:r,r:l.right||o<0?0:o>t?t:o,b:l.bottom||i<0?0:i>n?n:i,l:l.left||a<0?0:a>t?t:a}}function be(e,t,n){var r=null===t,o=null===n,i=!(!e||r&&o)&&me(e);return i&&(r||t>=i.left&&t<=i.right)&&(o||n>=i.top&&n<=i.bottom)}F._set("global",{elements:{rectangle:{backgroundColor:fe,borderColor:fe,borderSkipped:"bottom",borderWidth:0}}});var Ce=X.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=me(e),n=t.right-t.left,r=t.bottom-t.top,o=ye(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b}}}(t),r=n.outer,o=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===o.w&&r.h===o.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(o.x,o.y,o.w,o.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return be(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return ge(n)?be(n,e,null):be(n,null,t)},inXRange:function(e){return be(this._view,e,null)},inYRange:function(e){return be(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return ge(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return ge(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),we={},xe=ae,_e=ce,Se=pe,Me=Ce;we.Arc=xe,we.Line=_e,we.Point=Se,we.Rectangle=Me;var Ee=V._deprecated,Oe=V.valueOrDefault;function Ae(e,t,n){var r,o,i=n.barThickness,a=t.stackCount,s=t.pixels[e],l=V.isNullOrUndef(i)?function(e,t){var n,r,o,i,a=e._length;for(o=1,i=t.length;o0?Math.min(a,Math.abs(r-n)):a,n=r;return a}(t.scale,t.pixels):-1;return V.isNullOrUndef(i)?(r=l*n.categoryPercentage,o=n.barPercentage):(r=i*a,o=1),{chunk:r/a,ratio:o,start:s-r/2}}F._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),F._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Te=ne.extend({dataElementType:we.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Ee("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ee("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ee("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ee("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ee("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t=0&&g.min>=0?g.min:g.max,C=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,w=f.length;if(v||void 0===v&&void 0!==y)for(r=0;r=0&&c.max>=0?c.max:c.min,(g.min<0&&i<0||g.max>=0&&i>0)&&(b+=i));return a=d.getPixelForValue(b),s=d.getPixelForValue(b+C),l=s-a,void 0!==m&&Math.abs(l)=0&&!h||C<0&&h?a-m:a+m),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var o="flex"===r.barThickness?function(e,t,n){var r,o=t.pixels,i=o[e],a=e>0?o[e-1]:null,s=e=Le?-Re:y<-Le?Re:0)+m,C=Math.cos(y),w=Math.sin(y),x=Math.cos(b),_=Math.sin(b),S=y<=0&&b>=0||b>=Re,M=y<=Fe&&b>=Fe||b>=Re+Fe,E=y===-Le||b>=Le,O=y<=-Fe&&b>=-Fe||b>=Le+Fe,A=E?-1:Math.min(C,C*g,x,x*g),T=O?-1:Math.min(w,w*g,_,_*g),k=S?1:Math.max(C,C*g,x,x*g),D=M?1:Math.max(w,w*g,_,_*g);c=(k-A)/2,u=(D-T)/2,d=-(k+A)/2,h=-(D+T)/2}for(r=0,o=f.length;r0&&!isNaN(e)?Re*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,o,i,a,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t(c=s>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=V.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ne(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Ne(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Ne(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&Ve(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return tt(e,t,{intersect:!1})},point:function(e,t){var n=$e(t,e);return Je(e,n)},nearest:function(e,t,n){var r=$e(t,e);n.axis=n.axis||"xy";var o=et(n.axis);return Qe(e,r,n.intersect,o)},x:function(e,t,n){var r=$e(t,e),o=[],i=!1;return Ze(e,function(e){e.inXRange(r.x)&&o.push(e),e.inRange(r.x,r.y)&&(i=!0)}),n.intersect&&!i&&(o=[]),o},y:function(e,t,n){var r=$e(t,e),o=[],i=!1;return Ze(e,function(e){e.inYRange(r.y)&&o.push(e),e.inRange(r.x,r.y)&&(i=!0)}),n.intersect&&!i&&(o=[]),o}}},rt=V.extend;function ot(e,t){return V.where(e,function(e){return e.pos===t})}function it(e,t){return e.sort(function(e,n){var r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function at(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function st(e,t,n){var r,o,i=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?i.height:i.width,e[n.pos]+=n.size,i.getPadding){var s=i.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=t.outerWidth-at(a,e,"left","right"),o=t.outerHeight-at(a,e,"top","bottom"),r!==e.w||o!==e.h)return e.w=r,e.h=o,n.horizontal?r!==e.w:o!==e.h}function lt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach(function(e){r[e]=Math.max(t[e],n[e])}),r}return r(e?["left","right"]:["top","bottom"])}function ct(e,t,n){var r,o,i,a,s,l,c=[];for(r=0,o=e.length;r div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&dt.default||dt,ft="$chartjs",gt="chartjs-size-monitor",mt="chartjs-render-monitor",vt="chartjs-render-animation",yt=["animationstart","webkitAnimationStart"],bt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ct(e,t){var n=V.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var wt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0};function xt(e,t,n){e.addEventListener(t,n,wt)}function _t(e,t,n){e.removeEventListener(t,n,wt)}function St(e,t,n,r,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Mt(e){var t=document.createElement("div");return t.className=e||"",t}function Et(e,t,n){var r=e[ft]||(e[ft]={}),o=r.resizer=function(e){var t=Mt(gt),n=Mt(gt+"-expand"),r=Mt(gt+"-shrink");n.appendChild(Mt()),r.appendChild(Mt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var o=function(){t._reset(),e()};return xt(n,"scroll",o.bind(n,"expand")),xt(r,"scroll",o.bind(r,"shrink")),t}(function(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,V.requestAnimFrame.call(window,function(){n=!1,e.apply(t,r)}))}}(function(){if(r.resizer){var o=n.options.maintainAspectRatio&&e.parentNode,i=o?o.clientWidth:0;t(St("resize",n)),o&&o.clientWidth0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:o>0&&i.index-1?e.split("\n"):e}function zt(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,o=e._datasetIndex,i=e._chart.getDatasetMeta(o).controller,a=i._getIndexScale(),s=i._getValueScale();return{xLabel:t?t.getLabelForIndex(r,o):"",yLabel:n?n.getLabelForIndex(r,o):"",label:a?""+a.getLabelForIndex(r,o):"",value:s?""+s.getLabelForIndex(r,o):"",index:r,datasetIndex:o,x:e._model.x,y:e._model.y}}function Bt(e){var t=F.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Nt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Nt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Nt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Nt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Nt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Nt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Nt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Nt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Nt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function jt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Vt(e){return Ft([],It(e))}var Wt=X.extend({initialize:function(){this._model=Bt(this._options),this._lastActive=[]},getTitle:function(){var e=this._options,t=e.callbacks,n=t.beforeTitle.apply(this,arguments),r=t.title.apply(this,arguments),o=t.afterTitle.apply(this,arguments),i=[];return i=Ft(i,It(n)),i=Ft(i,It(r)),i=Ft(i,It(o))},getBeforeBody:function(){return Vt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,o=[];return V.each(e,function(e){var i={before:[],lines:[],after:[]};Ft(i.before,It(r.beforeLabel.call(n,e,t))),Ft(i.lines,r.label.call(n,e,t)),Ft(i.after,It(r.afterLabel.call(n,e,t))),o.push(i)}),o},getAfterBody:function(){return Vt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),r=e.afterFooter.apply(this,arguments),o=[];return o=Ft(o,It(t)),o=Ft(o,It(n)),o=Ft(o,It(r))},update:function(e){var t,n,r=this,o=r._options,i=r._model,a=r._model=Bt(o),s=r._active,l=r._data,c={xAlign:i.xAlign,yAlign:i.yAlign},u={x:i.x,y:i.y},d={width:i.width,height:i.height},h={x:i.caretX,y:i.caretY};if(s.length){a.opacity=1;var p=[],f=[];h=Rt[o.position].call(r,s,r._eventPosition);var g=[];for(t=0,n=s.length;tl.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,p=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),o=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=p?"top":"bottom"},n(s.x)?(u="left",o(s.x)&&(u="center",d=a(s.y))):r(s.x)&&(u="right",i(s.x)&&(u="center",d=a(s.y)));var f=e._options;return{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:d}}(this,d),u=function(e,t,n,r){var o=e.x,i=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=a+s,h=l+s;return"right"===c?o-=t.width:"center"===c&&((o-=t.width/2)+t.width>r.width&&(o=r.width-t.width),o<0&&(o=0)),"top"===u?i+=d:i-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?o+=d:"right"===c&&(o-=d):"left"===c?o-=h:"right"===c&&(o+=h),{x:o,y:i}}(a,d,c,r._chart)}else a.opacity=0;return a.xAlign=c.xAlign,a.yAlign=c.yAlign,a.x=u.x,a.y=u.y,a.width=d.width,a.height=d.height,a.caretX=h.x,a.caretY=h.y,r._model=a,e&&o.custom&&o.custom.call(r,a),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,o=this.getCaretPosition(e,t,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(e,t,n){var r,o,i,a,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,p=e.x,f=e.y,g=t.width,m=t.height;if("center"===h)s=f+m/2,"left"===d?(o=(r=p)-c,i=r,a=s+c,l=s-c):(o=(r=p+g)+c,i=r,a=s-c,l=s+c);else if("left"===d?(r=(o=p+u+c)-c,i=o+c):"right"===d?(r=(o=p+g-u-c)-c,i=o+c):(o=n.caretX,r=o-c,i=o+c),"top"===h)s=(a=f)-c,l=a;else{s=(a=f+m)+c,l=a;var v=i;i=r,r=v}return{x1:r,x2:o,x3:i,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var r,o,i,a=t.title,s=a.length;if(s){var l=Lt(t.rtl,t.x,t.width);for(e.x=jt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,o=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=V.fontString(r,t._titleFontStyle,t._titleFontFamily),i=0;i0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},o=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=o,this.drawBackground(r,t,e,n),r.y+=t.yPadding,V.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),V.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!V.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Ht=Rt,Gt=Wt;Gt.positioners=Ht;var Ut=V.valueOrDefault;function qt(){return V.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var o,i,a,s=n[e].length;for(t[e]||(t[e]=[]),o=0;o=t[e].length&&t[e].push({}),!t[e][o].type||a.type&&a.type!==t[e][o].type?V.merge(t[e][o],[Pt.getScaleDefaults(i),a]):V.merge(t[e][o],a)}else V._merger(e,t,n,r)}})}function Yt(){return V.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var o=t[e]||{},i=n[e];"scales"===e?t[e]=qt(o,i):"scale"===e?t[e]=V.merge(o,[Pt.getScaleDefaults(i.type),i]):V._merger(e,t,n,r)}})}function Xt(e,t,n){var r,o=function(e){return e.id===r};do{r=t+n++}while(V.findIndex(e,o)>=0);return r}function Kt(e){return"top"===e||"bottom"===e}function $t(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}F._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Zt=function(e,t){return this.construct(e,t),this};V.extend(Zt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Yt(F.global,F[e.type],e.options||{}),e}(t);var r=kt.acquireContext(e,t),o=r&&r.canvas,i=o&&o.height,a=o&&o.width;n.id=V.uid(),n.ctx=r,n.canvas=o,n.config=t,n.width=a,n.height=i,n.aspectRatio=i?a/i:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Zt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&o?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Dt.notify(e,"beforeInit"),V.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Dt.notify(e,"afterInit"),e},clear:function(){return V.canvas.clear(this),this},stop:function(){return Z.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,o=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(V.getMaximumWidth(r))),a=Math.max(0,Math.floor(o?i/o:V.getMaximumHeight(r)));if((t.width!==i||t.height!==a)&&(r.width=t.width=i,r.height=t.height=a,r.style.width=i+"px",r.style.height=a+"px",V.retinaScale(t,n.devicePixelRatio),!e)){var s={width:i,height:a};Dt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;V.each(t.xAxes,function(e,n){e.id||(e.id=Xt(t.xAxes,"x-axis-",n))}),V.each(t.yAxes,function(e,n){e.id||(e.id=Xt(t.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],o=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),V.each(r,function(t){var r=t.options,i=r.id,a=Ut(r.type,t.dtype);Kt(r.position)!==Kt(t.dposition)&&(r.position=t.dposition),o[i]=!0;var s=null;if(i in n&&n[i].type===a)(s=n[i]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Pt.getScaleConstructor(a);if(!l)return;s=new l({id:i,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),V.each(o,function(e,t){e||delete n[t]}),e.scales=n,Pt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],o=n.data.datasets;for(e=0,t=o.length;e=0;--n)this.drawDataset(t[n],e);Dt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Dt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Dt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==Dt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),Dt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return nt.modes.single(this,e)},getElementsAtEvent:function(e){return nt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return nt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=nt.modes[t];return"function"===typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return nt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=V.log10(Math.abs(r)),i="";if(0!==e){var a=Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]));if(a<1e-4){var s=V.log10(Math.abs(e)),l=Math.floor(s)-Math.floor(o);l=Math.max(Math.min(l,20),0),i=e.toExponential(l)}else{var c=-1*Math.floor(o);c=Math.max(Math.min(c,20),0),i=e.toFixed(c)}}else i="0";return i},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(V.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},rn=V.isArray,on=V.isNullOrUndef,an=V.valueOrDefault,sn=V.valueAtIndexOrDefault;function ln(e,t,n){var r,o=e.getTicks().length,i=Math.min(t,o-1),a=e.getPixelForTick(i),s=e._startPixel,l=e._endPixel;if(!(n&&(r=1===o?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(i-1))/2,(a+=il+1e-6)))return a}function cn(e,t,n,r){var o,i,a,s,l,c,u,d,h,p,f,g,m,v=n.length,y=[],b=[],C=[];for(o=0;ot){for(n=0;n=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(e=s._getLabelSizes(),t=e.widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),o=l.offset?s.maxWidth/u:r/(u-1),t+6>o&&(o=r/(u-(l.offset?.5:1)),i=s.maxHeight-un(l.gridLines)-c.padding-dn(l.scaleLabel),a=Math.sqrt(t*t+n*n),p=V.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/o,1)),Math.asin(Math.min(i/a,1))-Math.asin(n/a))),p=Math.max(d,Math.min(h,p))),s.labelRotation=p)},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,o=r.ticks,i=r.scaleLabel,a=r.gridLines,s=e._isVisible(),l="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=un(a)+dn(i)),c?s&&(t.height=un(a)+dn(i)):t.height=e.maxHeight,o.display&&s){var u=pn(o),d=e._getLabelSizes(),h=d.first,p=d.last,f=d.widest,g=d.highest,m=.4*u.minor.lineHeight,v=o.padding;if(c){var y=0!==e.labelRotation,b=V.toRadians(e.labelRotation),C=Math.cos(b),w=Math.sin(b),x=w*f.width+C*(g.height-(y?g.offset:0))+(y?0:m);t.height=Math.min(e.maxHeight,t.height+x+v);var _,S,M=e.getPixelForTick(0)-e.left,E=e.right-e.getPixelForTick(e.getTicks().length-1);y?(_=l?C*h.width+w*h.offset:w*(h.height-h.offset),S=l?w*(p.height-p.offset):C*p.width+w*p.offset):(_=h.width/2,S=p.width/2),e.paddingLeft=Math.max((_-M)*e.width/(e.width-M),0)+3,e.paddingRight=Math.max((S-E)*e.width/(e.width-E),0)+3}else{var O=o.mirror?0:f.width+v+m;t.width=Math.min(e.maxWidth,t.width+O),e.paddingTop=h.height/2,e.paddingBottom=p.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){V.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(on(e))return NaN;if(("number"===typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,o=this;for(o.ticks=e.map(function(e){return e.value}),o.beforeTickToLabelConversion(),t=o.convertTicksToLabels(e)||o.ticks,o.afterTickToLabelConversion(),n=0,r=e.length;nn-1?null:this.getPixelForDecimal(e*r+(t?r/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,o,i=this.options.ticks,a=this._length,s=i.maxTicksLimit||a/this._tickSize()+1,l=i.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;ts)return function(e,t,n){var r,o,i=0,a=t[0];for(n=Math.ceil(n),r=0;rc)return i;return Math.max(c,1)}(l,e,0,s),c>0){for(t=0,n=c-1;t1?(d-u)/(c-1):null,gn(e,r,V.isNullOrUndef(o)?0:u-o,u),gn(e,r,d,V.isNullOrUndef(o)?e.length:d+o),fn(e)}return gn(e,r),fn(e)},_tickSize:function(){var e=this.options.ticks,t=V.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),o=this._getLabelSizes(),i=e.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r=0&&(a=e),void 0!==i&&(e=n.indexOf(i))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;vn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,o,i,a=this;return yn(t)||yn(n)||(e=a.chart.data.datasets[n].data[t]),yn(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(o=a._getLabels(),e=V.valueOrDefault(r,e),i=o.indexOf(e),t=-1!==i?i:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),Cn={position:"bottom"};bn._defaults=Cn;var wn=V.noop,xn=V.isNullOrUndef,_n=vn.extend({getRightValue:function(e){return"string"===typeof e?+e:vn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options,n=t.ticks;if(n.beginAtZero){var r=V.sign(e.min),o=V.sign(e.max);r<0&&o<0?e.max=0:r>0&&o>0&&(e.min=0)}var i=void 0!==n.min||void 0!==n.suggestedMin,a=void 0!==n.max||void 0!==n.suggestedMax;void 0!==n.min?e.min=n.min:void 0!==n.suggestedMin&&(null===e.min?e.min=n.suggestedMin:e.min=Math.min(e.min,n.suggestedMin)),void 0!==n.max?e.max=n.max:void 0!==n.suggestedMax&&(null===e.max?e.max=n.suggestedMax:e.max=Math.max(e.max,n.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,n.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wn,buildTicks:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit(),o={maxTicks:r=Math.max(2,r),min:n.min,max:n.max,precision:n.precision,stepSize:V.valueOrDefault(n.fixedStepSize,n.stepSize)},i=e.ticks=function(e,t){var n,r,o,i,a=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,p=t.min,f=t.max,g=V.niceNum((f-p)/c/l)*l;if(g<1e-14&&xn(u)&&xn(d))return[p,f];(i=Math.ceil(f/g)-Math.floor(p/g))>c&&(g=V.niceNum(i*g/c/l)*l),s||xn(h)?n=Math.pow(10,V._decimalPlaces(g)):(n=Math.pow(10,h),g=Math.ceil(g*n)/n),r=Math.floor(p/g)*g,o=Math.ceil(f/g)*g,s&&(!xn(u)&&V.almostWhole(u/g,g/1e3)&&(r=u),!xn(d)&&V.almostWhole(d/g,g/1e3)&&(o=d)),i=(o-r)/g,i=V.almostEquals(i,Math.round(i),g/1e3)?Math.round(i):Math.ceil(i),r=Math.round(r*n)/n,o=Math.round(o*n)/n,a.push(xn(u)?r:u);for(var m=1;mt.length-1?null:this.getPixelForValue(t[e])}}),An=Sn;On._defaults=An;var Tn=V.valueOrDefault,kn=V.math.log10,Dn={position:"left",ticks:{callback:nn.formatters.logarithmic}};function Pn(e,t){return V.isFinite(e)&&e>=0?e:t}var Nn=vn.extend({determineDataLimits:function(){var e,t,n,r,o,i,a=this,s=a.options,l=a.chart,c=l.data.datasets,u=a.isHorizontal();function d(e){return u?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e0){var t=V.min(e),n=V.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}})}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(kn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Pn(t.min),max:Pn(t.max)},o=e.ticks=function(e,t){var n,r,o=[],i=Tn(e.min,Math.pow(10,Math.floor(kn(t.min)))),a=Math.floor(kn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===i?(n=Math.floor(kn(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(i),i=r*Math.pow(10,n)):(n=Math.floor(kn(i)),r=Math.floor(i/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(i),10===++r&&(r=1,l=++n>=0?1:l),i=Math.round(r*Math.pow(10,n)*l)/l}while(nt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(kn(e)),n=Math.floor(e/Math.pow(10,t));return n*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;vn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Tn(e.options.ticks.fontSize,F.global.defaultFontSize)/e._length),e._startValue=kn(t),e._valueOffset=n,e._valueRange=(kn(e.max)-kn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(kn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Ln=Dn;Nn._defaults=Ln;var Rn=V.valueOrDefault,Fn=V.valueAtIndexOrDefault,In=V.options.resolve,zn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:nn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Bn(e){var t=e.ticks;return t.display&&e.display?Rn(t.fontSize,F.global.defaultFontSize)+2*t.backdropPaddingY:0}function jn(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:eo?{start:t-n,end:t}:{start:t,end:t+n}}function Vn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Wn(e,t,n,r){var o,i,a=n.y+r/2;if(V.isArray(t))for(o=0,i=t.length;o270||e<90)&&(n.y-=t.h)}function Gn(e){return V.isNumber(e)?e:0}var Un=_n.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Bn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;V.each(t.data.datasets,function(o,i){if(t.isDatasetVisible(i)){var a=t.getDatasetMeta(i);V.each(o.data,function(t,o){var i=+e.getRightValue(t);isNaN(i)||a.data[o].hidden||(n=Math.min(i,n),r=Math.max(i,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Bn(this.options))},convertTicksToLabels:function(){var e=this;_n.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=V.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,o=V.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=o.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;ti.r&&(i.r=p.end,a.r=d),f.starti.b&&(i.b=f.end,a.b=d)}e.setReductions(e.drawingArea,i,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,o=t.l/Math.sin(n.l),i=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);o=Gn(o),i=Gn(i),a=Gn(a),s=Gn(s),r.drawingArea=Math.min(Math.floor(e-(o+i)/2),Math.floor(e-(a+s)/2)),r.setCenterPoint(o,i,a,s)},setCenterPoint:function(e,t,n,r){var o=this,i=o.width-t-o.drawingArea,a=e+o.drawingArea,s=n+o.drawingArea,l=o.height-o.paddingTop-r-o.drawingArea;o.xCenter=Math.floor((a+i)/2+o.left),o.yCenter=Math.floor((s+l)/2+o.top+o.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=360/t.data.labels.length,r=t.options||{},o=r.startAngle||0,i=(e*n+o)%360;return(i<0?i+360:i)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(V.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,r=this,o=r.ctx,i=r.options,a=i.gridLines,s=i.angleLines,l=Rn(s.lineWidth,a.lineWidth),c=Rn(s.color,a.color);if(i.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,o=Bn(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=V.options._parseFont(r);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?o/2:0,c=e.getPointPosition(s,i+l+5),u=Fn(r.fontColor,s,F.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),h=V.toDegrees(d);t.textAlign=Vn(h),Hn(h,e._pointLabelSizes[s],c),Wn(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(r),a.display&&V.each(r.ticks,function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var o,i=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Fn(t.color,r-1),c=Fn(t.lineWidth,r-1);if((a||s)&&l&&c){if(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),a)i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{o=e.getPointPosition(0,n),i.moveTo(o.x,o.y);for(var u=1;u=0;e--)t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),o.beginPath(),o.moveTo(r.xCenter,r.yCenter),o.lineTo(n.x,n.y),o.stroke();o.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options,r=n.ticks;if(r.display){var o,i,a=e.getIndexAngle(0),s=V.options._parseFont(r),l=Rn(r.fontColor,F.global.defaultFontColor);t.save(),t.font=s.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",V.each(e.ticks,function(n,a){(0!==a||r.reverse)&&(o=e.getDistanceFromCenterForValue(e.ticksAsNumbers[a]),r.showLabelBackdrop&&(i=t.measureText(n).width,t.fillStyle=r.backdropColor,t.fillRect(-i/2-r.backdropPaddingX,-o-s.size/2-r.backdropPaddingY,i+2*r.backdropPaddingX,s.size+2*r.backdropPaddingY)),t.fillStyle=l,t.fillText(n,0,-o))}),t.restore()}},_drawTitle:V.noop}),qn=zn;Un._defaults=qn;var Yn=V._deprecated,Xn=V.options.resolve,Kn=V.valueOrDefault,$n=Number.MIN_SAFE_INTEGER||-9007199254740991,Zn=Number.MAX_SAFE_INTEGER||9007199254740991,Jn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qn=Object.keys(Jn);function er(e,t){return e-t}function tr(e){return V.valueOrDefault(e.time.min,e.ticks.min)}function nr(e){return V.valueOrDefault(e.time.max,e.ticks.max)}function rr(e,t,n,r){var o=function(e,t,n){for(var r,o,i,a=0,s=e.length-1;a>=0&&a<=s;){if(o=e[(r=a+s>>1)-1]||null,i=e[r],!o)return{lo:null,hi:i};if(i[t]n))return{lo:o,hi:i};s=r-1}}return{lo:i,hi:null}}(e,t,n),i=o.lo?o.hi?o.lo:e[e.length-2]:e[0],a=o.lo?o.hi?o.hi:e[e.length-1]:e[1],s=a[t]-i[t],l=s?(n-i[t])/s:0,c=(a[r]-i[r])*l;return i[r]+c}function or(e,t){var n=e._adapter,r=e.options.time,o=r.parser,i=o||r.format,a=t;return"function"===typeof o&&(a=o(a)),V.isFinite(a)||(a="string"===typeof i?n.parse(a,i):n.parse(a)),null!==a?+a:(o||"function"!==typeof i||(a=i(t),V.isFinite(a)||(a=n.parse(a))),a)}function ir(e,t){if(V.isNullOrUndef(t))return null;var n=e.options.time,r=or(e,e.getRightValue(t));return null===r?r:(n.round&&(r=+e._adapter.startOf(r,n.round)),r)}function ar(e,t,n,r){var o,i,a,s=Qn.length;for(o=Qn.indexOf(e);o=0&&(t[i].major=!0);return t}(e,i,a,n):i}var lr=vn.extend({initialize:function(){this.mergeTicksOptions(),vn.prototype.initialize.call(this)},update:function(){var e=this.options,t=e.time||(e.time={}),n=this._adapter=new tn._date(e.adapters.date);return Yn("time scale",t.format,"time.format","time.parser"),Yn("time scale",t.min,"time.min","ticks.min"),Yn("time scale",t.max,"time.max","ticks.max"),V.mergeIf(t.displayFormats,n.formats()),vn.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),vn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,o,i,a,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=Zn,p=$n,f=[],g=[],m=[],v=s._getLabels();for(e=0,n=v.length;e1?function(e){var t,n,r,o={},i=[];for(t=0,n=e.length;t1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(o=d;o=o&&n<=i&&u.push(n);return r.min=o,r.max=i,r._unit=l.unit||(s.autoSkip?ar(l.minUnit,r.min,r.max,d):function(e,t,n,r,o){var i,a;for(i=Qn.length-1;i>=Qn.indexOf(n);i--)if(a=Qn[i],Jn[a].common&&e._adapter.diff(o,r,a)>=t-1)return a;return Qn[n?Qn.indexOf(n):0]}(r,u.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=Qn.indexOf(e)+1,n=Qn.length;tt&&s=0&&e0?s:1}}),cr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};lr._defaults=cr;var ur={category:bn,linear:On,logarithmic:Nn,radialLinear:Un,time:lr},dr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};tn._date.override("function"===typeof e?{_id:"moment",formats:function(){return dr},parse:function(t,n){return"string"===typeof t&&"string"===typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),F._set("global",{plugins:{filler:{propagate:!0}}});var hr={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),o=r&&n.isDatasetVisible(t),i=o&&r.dataset._children||[],a=i.length||0;return a?function(e,t){return t=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function fr(e){var t=e.el._scale||{};return t.getPointPositionForValue?function(e){var t,n,r,o,i,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,t),o=0;o0;--i)V.canvas.lineTo(e,n[i],n[i-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),i=o-1;i>0;--i)e.arc(a,s,l,n[i].angle,n[i-1].angle,!0)}}function br(e,t,n,r,o,i){var a,s,l,c,u,d,h,p,f=t.length,g=r.spanGaps,m=[],v=[],y=0,b=0;for(e.beginPath(),a=0,s=f;a=0;--n)(t=l[n].$filler)&&t.visible&&(r=t.el,o=r._view,i=r._children||[],a=t.mapper,s=o.backgroundColor||F.global.defaultColor,a&&s&&i.length&&(V.canvas.clipArea(c,e.chartArea),br(c,i,a,o,s,r._loop),V.canvas.unclipArea(c)))}},wr=V.rtl.getRtlAdapter,xr=V.noop,_r=V.valueOrDefault;function Sr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}F._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,o=r.getDatasetMeta(n);o.hidden=null===o.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var o=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var t,n,r,o=document.createElement("ul"),i=e.data.datasets;for(o.setAttribute("class",e.id+"-legend"),t=0,n=i.length;tl.width)&&(d+=a+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:a},u[u.length-1]+=i+n.padding}),l.height+=d}else{var h=n.padding,p=e.columnWidths=[],f=e.columnHeights=[],g=n.padding,m=0,v=0;V.each(e.legendItems,function(e,t){var r=Sr(n,a),i=r+a/2+o.measureText(e.text).width;t>0&&v+a+2*h>l.height&&(g+=m+n.padding,p.push(m),f.push(v),m=0,v=0),m=Math.max(m,i),v+=a+h,s[t]={left:0,top:0,width:i,height:a}}),g+=m,p.push(m),f.push(v),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:xr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=F.global,o=r.defaultColor,i=r.elements.line,a=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=wr(t.rtl,e.left,e.minSize.width),h=e.ctx,p=_r(n.fontColor,r.defaultFontColor),f=V.options._parseFont(n),g=f.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=p,h.fillStyle=p,h.font=f.string;var m=Sr(n,g),v=e.legendHitBoxes,y=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},b=e.isHorizontal();u=b?{x:e.left+y(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(a,s[0]),line:0},V.rtl.overrideTextDirection(e.ctx,t.textDirection);var C=g+n.padding;V.each(e.legendItems,function(t,r){var p=h.measureText(t.text).width,f=m+g/2+p,w=u.x,x=u.y;d.setWidth(e.minSize.width),b?r>0&&w+f+n.padding>e.left+e.minSize.width&&(x=u.y+=C,u.line++,w=u.x=e.left+y(l,c[u.line])):r>0&&x+C>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,x=u.y=e.top+y(a,s[u.line]));var _=d.x(w);!function(e,t,r){if(!(isNaN(m)||m<=0)){h.save();var a=_r(r.lineWidth,i.borderWidth);if(h.fillStyle=_r(r.fillStyle,o),h.lineCap=_r(r.lineCap,i.borderCapStyle),h.lineDashOffset=_r(r.lineDashOffset,i.borderDashOffset),h.lineJoin=_r(r.lineJoin,i.borderJoinStyle),h.lineWidth=a,h.strokeStyle=_r(r.strokeStyle,o),h.setLineDash&&h.setLineDash(_r(r.lineDash,i.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(e,m/2),c=t+g/2;V.canvas.drawPoint(h,r.pointStyle,s,l,c,r.rotation)}else h.fillRect(d.leftForLtr(e,m),t,m,g),0!==a&&h.strokeRect(d.leftForLtr(e,m),t,m,g);h.restore()}}(_,x,t),v[r].left=d.leftForLtr(_,v[r].width),v[r].top=x,function(e,t,n,r){var o=g/2,i=d.xPlus(e,m+o),a=t+o;h.fillText(n.text,i,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(i,a),h.lineTo(d.xPlus(i,r),a),h.stroke())}(_,x,t,p),b?u.x+=f+n.padding:u.y+=C}),V.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,o,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(o=i.legendHitBoxes,n=0;n=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,o="mouseup"===e.type?"click":e.type;if("mousemove"===o){if(!r.onHover&&!r.onLeave)return}else{if("click"!==o)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===o?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Er(e,t){var n=new Mr({ctx:e.ctx,options:t,chart:e});ht.configure(e,n,t),ht.addBox(e,n),e.legend=n}var Or={id:"legend",_element:Mr,beforeInit:function(e){var t=e.options.legend;t&&Er(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(V.mergeIf(t,F.global.legend),n?(ht.configure(e,n,t),n.options=t):Er(e,t)):n&&(ht.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Ar=V.noop;F._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Tr=X.extend({initialize:function(e){V.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Ar,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Ar,beforeSetDimensions:Ar,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ar,beforeBuildLabels:Ar,buildLabels:Ar,afterBuildLabels:Ar,beforeFit:Ar,fit:function(){var e,t,n=this,r=n.options,o=n.minSize={},i=n.isHorizontal();r.display?(e=V.isArray(r.text)?r.text.length:1,t=e*V.options._parseFont(r).lineHeight+2*r.padding,n.width=o.width=i?n.maxWidth:t,n.height=o.height=i?t:n.maxHeight):n.width=o.width=n.height=o.height=0},afterFit:Ar,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,o,i,a=V.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,p=e.right;t.fillStyle=V.valueOrDefault(n.fontColor,F.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(o=d+(p-d)/2,i=u+l,r=p-d):(o="left"===n.position?d+l:p-l,i=u+(h-u)/2,r=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,i),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var f=n.text;if(V.isArray(f))for(var g=0,m=0;m=0;r--){var o=e[r];if(t(o))return o}},V.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},V.almostEquals=function(e,t,n){return Math.abs(e-t)=e},V.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},V.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},V.toRadians=function(e){return e*(Math.PI/180)},V.toDegrees=function(e){return e*(180/Math.PI)},V._decimalPlaces=function(e){if(V.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},V.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:o}},V.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},V.aliasPixel=function(e){return e%2===0?0:.5},V._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,o=n/2;return Math.round((t-o)*r)/r+o},V.splineCurve=function(e,t,n,r){var o=e.skip?t:e,i=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;var d=r*c,h=r*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+h*(a.x-o.x),y:i.y+h*(a.y-o.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(e){var t,n,r,o,i,a,s,l,c,u=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=u.length;for(t=0;t0?u[t-1]:null,(o=t0?u[t-1]:null,o=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},V.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},V.niceNum=function(e,t){var n=Math.floor(V.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},V.requestAnimFrame="undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},V.getRelativePosition=function(e,t){var n,r,o=e.originalEvent||e,i=e.target||e.srcElement,a=i.getBoundingClientRect(),s=o.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=o.clientX,r=o.clientY);var l=parseFloat(V.getStyle(i,"padding-left")),c=parseFloat(V.getStyle(i,"padding-top")),u=parseFloat(V.getStyle(i,"padding-right")),d=parseFloat(V.getStyle(i,"padding-bottom")),h=a.right-a.left-l-u,p=a.bottom-a.top-c-d;return n=Math.round((n-a.left-l)/h*i.width/t.currentDevicePixelRatio),r=Math.round((r-a.top-c)/p*i.height/t.currentDevicePixelRatio),{x:n,y:r}},V.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},V.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},V._calculatePadding=function(e,t,n){return(t=V.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},V._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},V.getMaximumWidth=function(e){var t=V._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=V._calculatePadding(t,"padding-left",n),o=V._calculatePadding(t,"padding-right",n),i=n-r-o,a=V.getConstraintWidth(e);return isNaN(a)?i:Math.min(i,a)},V.getMaximumHeight=function(e){var t=V._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=V._calculatePadding(t,"padding-top",n),o=V._calculatePadding(t,"padding-bottom",n),i=n-r-o,a=V.getConstraintHeight(e);return isNaN(a)?i:Math.min(i,a)},V.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},V.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,o=e.height,i=e.width;r.height=o*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=o+"px",r.style.width=i+"px")}},V.fontString=function(e,t,n){return t+" "+e+"px "+n},V.longestText=function(e,t,n,r){var o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var a,s,l,c,u,d=0,h=n.length;for(a=0;an.length){for(a=0;ar&&(r=i),r},V.numberOfLabelLines=function(e){var t=1;return V.each(e,function(e){V.isArray(e)&&e.length>t&&(t=e.length)}),t},V.color=x?function(e){return e instanceof CanvasGradient&&(e=F.global.defaultColor),x(e)}:function(e){return console.error("Color.js not found!"),e},V.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:V.color(e).saturate(.5).darken(.1).rgbString()}}(),Jt._adapters=tn,Jt.Animation=$,Jt.animationService=Z,Jt.controllers=Ke,Jt.DatasetController=ne,Jt.defaults=F,Jt.Element=X,Jt.elements=we,Jt.Interaction=nt,Jt.layouts=ht,Jt.platform=kt,Jt.plugins=Dt,Jt.Scale=vn,Jt.scaleService=Pt,Jt.Ticks=nn,Jt.Tooltip=Gt,Jt.helpers.each(ur,function(e,t){Jt.scaleService.registerScaleType(t,e,e._defaults)}),Dr)Dr.hasOwnProperty(Rr)&&Jt.plugins.register(Dr[Rr]);Jt.platform.initialize();var Fr=Jt;return"undefined"!==typeof window&&(window.Chart=Jt),Jt.Chart=Jt,Jt.Legend=Dr.legend._element,Jt.Title=Dr.title._element,Jt.pluginService=Jt.plugins,Jt.PluginBase=Jt.Element.extend({}),Jt.canvasHelpers=Jt.helpers.canvas,Jt.layoutService=Jt.layouts,Jt.LinearScaleBase=_n,Jt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){Jt[e]=function(t,n){return new Jt(t,Jt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Fr}(function(){try{return n(465)}catch(e){}}())},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},L={};function R(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(L[e]=o),t&&(L[t[0]]=function(){return k(o.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=I(t,e.localeData()),N[t]=N[t]||function(e){var t,n,r,o=e.match(D);for(t=0,n=o.length;t=0&&P.test(e);)e=e.replace(P,r),P.lastIndex=0,n-=1;return e}var z={};function B(e,t){var n=e.toLowerCase();z[n]=z[n+"s"]=z[t]=e}function j(e){return"string"===typeof e?z[e]||z[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)a(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var W={};function H(e,t){W[e]=t}function G(e){return e%4===0&&e%100!==0||e%400===0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function q(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function Y(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=q(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var $,Z=/\d/,J=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,he=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){$[e]=O(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return a($,e)?$[e](t._strict,t._locale):new RegExp(ge(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function ge(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}$={};var me={};function ve(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=q(e)}),n=0;n68?1900:2e3)};var je=Y("FullYear",!0);function Ve(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,n){var r=7+t-n,o=(7+Ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function He(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=We(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Be(i=e-1)+c:c>Be(e)?(i=e+1,a=c-Be(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Ue(o,t,n)):a>Ue(e.year(),t,n)?(r=a-Ue(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ue(e,t,n){var r=We(e,t,n),o=We(e+1,t,n);return(Be(e)-r+o)/7}function qe(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,J),pe("W",ne),pe("WW",ne,J),ye(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=q(e)}),R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",function(e,t){return t.weekdaysMinRegex(e)}),pe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),pe("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:f(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,r){t[r]=q(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=he,Ze=he,Je=he;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=ge(this.weekdaysMin(n,"")),o=ge(this.weekdaysShort(n,"")),i=ge(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,et),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+et.apply(this)+k(this.minutes(),2)}),R("hmmss",0,0,function(){return""+et.apply(this)+k(this.minutes(),2)+k(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+k(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+k(this.minutes(),2)+k(this.seconds(),2)}),tt("a",!0),tt("A",!1),B("hour","h"),H("hour",13),pe("a",nt),pe("A",nt),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,J),pe("hh",ne,J),pe("kk",ne,J),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),ve(["H","HH"],Se),ve(["k","kk"],function(e,t,n){var r=q(e);t[Se]=24===r?0:r}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[Se]=q(e),f(n).bigHour=!0}),ve("hmm",function(e,t,n){var r=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r)),f(n).bigHour=!0}),ve("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r,2)),t[Ee]=q(e.substr(o)),f(n).bigHour=!0}),ve("Hmm",function(e,t,n){var r=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r))}),ve("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[Se]=q(e.substr(0,r)),t[Me]=q(e.substr(r,2)),t[Ee]=q(e.substr(o))});var rt,ot=Y("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Pe,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&<(o,n)>=t-1)break;t--}i++}return rt}(e)}function ft(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[xe]<0||n[xe]>11?xe:n[_e]<1||n[_e]>ke(n[we],n[xe])?_e:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Me]||0!==n[Ee]||0!==n[Oe])?Se:n[Me]<0||n[Me]>59?Me:n[Ee]<0||n[Ee]>59?Ee:n[Oe]<0||n[Oe]>999?Oe:-1,f(e)._overflowDayOfYear&&(t_e)&&(t=_e),f(e)._overflowWeeks&&-1===t&&(t=Ae),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],bt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ct=/^\/?Date\((-?\d+)/i,wt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,r,o,i,a,s=e._i,l=gt.exec(s)||mt.exec(s);if(l){for(f(e).iso=!0,t=0,n=yt.length;t7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Ge(Dt(),i,a),n=Et(t.gg,e._a[we],c.year),r=Et(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Ue(n,i,a)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=He(n,r,o,i,a),e._a[we]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=Et(e._a[we],o[we]),(e._dayOfYear>Be(a)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ve(a,0,e._dayOfYear),e._a[xe]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Me]&&0===e._a[Ee]&&0===e._a[Oe]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ve:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(f(e).weekdayMismatch=!0)}}function At(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],f(e).empty=!0;var t,n,o,i,a,s,l=""+e._i,c=l.length,u=0;for(o=I(e._f,e._locale).match(D)||[],t=0;t0&&f(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),L[i]?(n?f(e).empty=!1:f(e).unusedTokens.push(i),be(i,n,e)):e._strict&&!n&&f(e).unusedTokens.push(i);f(e).charsLeftOver=c-u,l.length>0&&f(e).unusedInput.push(l),e._a[Se]<=12&&!0===f(e).bigHour&&e._a[Se]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(s=f(e).era)&&(e._a[we]=e._locale.erasConvertYear(s,e._a[we])),Ot(e),ft(e)}else Mt(e);else _t(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new C(ft(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function Lt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-cn:new Date(e,t,n).valueOf()}function hn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-cn:Date.UTC(e,t,n)}function pn(e,t){return t.erasAbbrRegex(e)}function fn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;ei&&(t=i),function(e,t,n,r,o){var i=He(e,t,n,r,o),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),pe("N",pn),pe("NN",pn),pe("NNN",pn),pe("NNNN",function(e,t){return t.erasNameRegex(e)}),pe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?f(n).era=o:f(n).invalidEra=e}),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",function(e,t){return t._eraYearOrdinalRegex||le}),ve(["y","yy","yyy","yyyy"],we),ve(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,o):t[we]=parseInt(e,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gn("gggg","weekYear"),gn("ggggg","weekYear"),gn("GGGG","isoWeekYear"),gn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",ce),pe("g",ce),pe("GG",ne,J),pe("gg",ne,J),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=q(e)}),ye(["gg","GG"],function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),pe("Q",Z),ve("Q",function(e,t){t[xe]=3*(q(e)-1)}),R("D",["DD",2],"Do","date"),B("date","D"),H("date",9),pe("D",ne),pe("DD",ne,J),pe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],_e),ve("Do",function(e,t){t[_e]=q(e.match(ne)[0])});var vn=Y("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",Q),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=q(e)}),R("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,J),ve(["m","mm"],Me);var yn=Y("Minutes",!1);R("s",["ss",2],0,"second"),B("second","s"),H("second",15),pe("s",ne),pe("ss",ne,J),ve(["s","ss"],Ee);var bn,Cn,wn=Y("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),B("millisecond","ms"),H("millisecond",16),pe("S",ie,Z),pe("SS",ie,J),pe("SSS",ie,Q),bn="SSSS";bn.length<=9;bn+="S")pe(bn,le);function xn(e,t){t[Oe]=q(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")ve(bn,xn);Cn=Y("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var _n=C.prototype;function Sn(e){return e}_n.add=Jt,_n.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?w(n=arguments[0])||u(n)||en(n)||c(n)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&en(e)}).length),t&&n}(n)||function(e){var t,n,r=i(e)&&!s(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;tn.valueOf():n.valueOf()9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Gt,_n.isUTC=Gt,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=_("dates accessor is deprecated. Use date instead.",vn),_n.months=_("months accessor is deprecated. Use month instead",Ie),_n.years=_("years accessor is deprecated. Use year instead",je),_n.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),_n.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Tt(t))._a?(e=t._isUTC?p(t._a):Dt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted});var Mn=T.prototype;function En(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function On(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return En(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=En(e,r,n,"month");return o}function An(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),a=e?i._week.dow:0,s=[];if(null!=n)return En(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=En(t,(o+a)%7,r,"day");return s}Mn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},Mn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},Mn.invalidDate=function(){return this._invalidDate},Mn.ordinal=function(e){return this._ordinal.replace("%d",e)},Mn.preparse=Sn,Mn.postformat=Sn,Mn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)},Mn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},Mn.set=function(e){var t,n;for(n in e)a(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Mn.eras=function(e,t){var n,o,i,a=this._eras||pt("en")._eras;for(n=0,o=a.length;n=0)return l[r]},Mn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Mn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||fn.call(this),e?this._erasAbbrRegex:this._erasRegex},Mn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||fn.call(this),e?this._erasNameRegex:this._erasRegex},Mn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||fn.call(this),e?this._erasNarrowRegex:this._erasRegex},Mn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ne).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},Mn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ne.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Mn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Ce.call(this._shortMonthsParse,a))?o:null:-1!==(o=Ce.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Ce.call(this._shortMonthsParse,a))?o:-1!==(o=Ce.call(this._longMonthsParse,a))?o:null:-1!==(o=Ce.call(this._longMonthsParse,a))?o:-1!==(o=Ce.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Mn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Re),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Mn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Mn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},Mn.firstDayOfYear=function(){return this._week.doy},Mn.firstDayOfWeek=function(){return this._week.dow},Mn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qe(n,this._week.dow):e?n[e.day()]:n},Mn.weekdaysMin=function(e){return!0===e?qe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Mn.weekdaysShort=function(e){return!0===e?qe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Mn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Ce.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Ce.call(this._minWeekdaysParse,a))?o:-1!==(o=Ce.call(this._weekdaysParse,a))?o:-1!==(o=Ce.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Mn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Mn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Mn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Mn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Mn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===q(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),r.lang=_("moment.lang is deprecated. Use moment.locale instead.",dt),r.langData=_("moment.langData is deprecated. Use moment.localeData instead.",pt);var Tn=Math.abs;function kn(e,t,n,r){var o=Yt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Dn(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function Nn(e){return 146097*e/4800}function Ln(e){return function(){return this.as(e)}}var Rn=Ln("ms"),Fn=Ln("s"),In=Ln("m"),zn=Ln("h"),Bn=Ln("d"),jn=Ln("w"),Vn=Ln("M"),Wn=Ln("Q"),Hn=Ln("y");function Gn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Gn("milliseconds"),qn=Gn("seconds"),Yn=Gn("minutes"),Xn=Gn("hours"),Kn=Gn("days"),$n=Gn("months"),Zn=Gn("years"),Jn=Math.round,Qn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},er=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function nr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=er(this._milliseconds)/1e3,c=er(this._days),u=er(this._months),d=this.asSeconds();return d?(e=U(l/60),t=U(e/60),l%=60,e%=60,n=U(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=tr(this._months)!==tr(d)?"-":"",a=tr(this._days)!==tr(d)?"-":"",s=tr(this._milliseconds)!==tr(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var rr=Ft.prototype;return rr.isValid=function(){return this._isValid},rr.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},rr.add=function(e,t){return kn(this,e,t,1)},rr.subtract=function(e,t){return kn(this,e,t,-1)},rr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Nn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},rr.asMilliseconds=Rn,rr.asSeconds=Fn,rr.asMinutes=In,rr.asHours=zn,rr.asDays=Bn,rr.asWeeks=jn,rr.asMonths=Vn,rr.asQuarters=Wn,rr.asYears=Hn,rr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},rr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Dn(Nn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=U(i/1e3),l.seconds=e%60,t=U(e/60),l.minutes=t%60,n=U(t/60),l.hours=n%24,a+=U(n/24),o=U(Pn(a)),s+=o,a-=Dn(Nn(o)),r=U(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},rr.clone=function(){return Yt(this)},rr.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},rr.milliseconds=Un,rr.seconds=qn,rr.minutes=Yn,rr.hours=Xn,rr.days=Kn,rr.weeks=function(){return U(this.days()/7)},rr.months=$n,rr.years=Zn,rr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Qn;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},Qn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=Yt(e).abs(),i=Jn(o.as("s")),a=Jn(o.as("m")),s=Jn(o.as("h")),l=Jn(o.as("d")),c=Jn(o.as("M")),u=Jn(o.as("w")),d=Jn(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,h)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},rr.toISOString=nr,rr.toString=nr,rr.toJSON=nr,rr.locale=nn,rr.localeData=on,rr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nr),rr.lang=rn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),pe("x",ce),pe("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date(q(e))}),r.version="2.29.1",t=Dt,r.fn=_n,r.min=function(){return Lt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Lt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return On(e,t,"months")},r.isDate=u,r.locale=dt,r.invalid=m,r.duration=Yt,r.isMoment=w,r.weekdays=function(e,t,n){return An(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=pt,r.isDuration=It,r.monthsShort=function(e,t){return On(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return An(e,t,n,"weekdaysMin")},r.defineLocale=ht,r.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=at[e]&&null!=at[e].parentLocale?at[e].set(A(at[e]._config,t)):(null!=(r=ut(e))&&(o=r._config),t=A(o,t),null==r&&(t.abbr=e),(n=new T(t)).parentLocale=at[e],at[e]=n),dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===dt()&&dt(e)):null!=at[e]&&delete at[e]);return at[e]},r.locales=function(){return S(at)},r.weekdaysShort=function(e,t,n){return An(e,t,n,"weekdaysShort")},r.normalizeUnits=j,r.relativeTimeRounding=function(e){return void 0===e?Jn:"function"===typeof e&&(Jn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=_n,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(116)(e))},function(e,t,n){var r=n(203);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(261),o=n(266),i=n(501),a=n(505),s=n(523),l=n(80),c=n(268),u=n(270),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,y){var b=l(e),C=l(t),w=b?p:s(e),x=C?p:s(t),_=(w=w==h?f:w)==f,S=(x=x==h?f:x)==f,M=w==x;if(M&&c(e)){if(!c(t))return!1;b=!0,_=!1}if(M&&!_)return y||(y=new r),b||u(e)?o(e,t,n,m,v,y):i(e,t,w,n,m,v,y);if(!(n&d)){var E=_&&g.call(e,"__wrapped__"),O=S&&g.call(t,"__wrapped__");if(E||O){var A=E?e.value():e,T=O?t.value():t;return y||(y=new r),v(A,T,n,m,y)}}return!!M&&(y||(y=new r),a(e,t,n,m,v,y))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(163),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(163);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(163);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(162);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(162),o=n(204),i=n(205),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0?{timer:setTimeout(function(){return e.onConfirm()},e.timeout),prevTimeout:e.timeout}:null},t.isAnimation=function(e){return e&&"boolean"!==typeof e},t.animationFromProp=function(e){return e.name+" "+e.duration+"ms"},t.handleAnimState=function(e,n,r){var o="boolean"===typeof e.show&&!n.closingAction?e.show:n.show,i="";if(o)e.openAnim&&(t.isAnimation(e.openAnim)?i=t.animationFromProp(e.openAnim):t.isAnimation(t.defaultProps.openAnim)&&(i=t.animationFromProp(t.defaultProps.openAnim)));else if(n.closingAction&&e.closeAnim){var a=void 0;t.isAnimation(e.closeAnim)?a=e.closeAnim:t.isAnimation(t.defaultProps.closeAnim)&&(a=t.defaultProps.closeAnim),a&&(i=t.animationFromProp(a),r(a.duration),o=!0)}return{show:o,animation:i}},t.prototype.render=function(){var e=this;return!!this.state.show&&s.default.createElement("div",null,s.default.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n body.sweetalert-overflow-hidden {\n overflow: hidden;\n }\n body .sweet-alert button {\n outline: none !important;\n }\n "}}),s.default.createElement("style",{type:"text/css"},"@-webkit-keyframes showSweetAlert { 0% { transform: scale(0.7); -webkit-transform: scale(0.7); } 45% { transform: scale(1.05); -webkit-transform: scale(1.05); } 80% { transform: scale(0.95); -webkit-tranform: scale(0.95); } 100% { transform: scale(1); -webkit-transform: scale(1); }}@keyframes showSweetAlert { 0% { transform: scale(0.7); -webkit-transform: scale(0.7); } 45% { transform: scale(1.05); -webkit-transform: scale(1.05); } 80% { transform: scale(0.95); -webkit-tranform: scale(0.95); } 100% { transform: scale(1); -webkit-transform: scale(1); }}@-webkit-keyframes hideSweetAlert { 0% { transform: scale(1); -webkit-transform: scale(1); } 100% { transform: scale(0.4); -webkit-transform: scale(0.4); }}@keyframes hideSweetAlert { 0% { transform: scale(1); -webkit-transform: scale(1); } 100% { transform: scale(0.4); -webkit-transform: scale(0.4); }}@-webkit-keyframes animateSuccessTip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 45px; }}@keyframes animateSuccessTip { 0% { width: 0; left: 1px; top: 19px; } 54% { width: 0; left: 1px; top: 19px; } 70% { width: 50px; left: -8px; top: 37px; } 84% { width: 17px; left: 21px; top: 48px; } 100% { width: 25px; left: 14px; top: 45px; }}@-webkit-keyframes animateSuccessLong { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; }}@keyframes animateSuccessLong { 0% { width: 0; right: 46px; top: 54px; } 65% { width: 0; right: 46px; top: 54px; } 84% { width: 55px; right: 0px; top: 35px; } 100% { width: 47px; right: 8px; top: 38px; }}@-webkit-keyframes rotatePlaceholder { 0% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 5% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 12% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); } 100% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }}@keyframes rotatePlaceholder { 0% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 5% { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); } 12% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); } 100% { transform: rotate(-405deg); -webkit-transform: rotate(-405deg); }}@-webkit-keyframes animateErrorIcon { 0% { transform: rotateX(100deg); -webkit-transform: rotateX(100deg); opacity: 0; } 100% { transform: rotateX(0deg); -webkit-transform: rotateX(0deg); opacity: 1; }}@keyframes animateErrorIcon { 0% { transform: rotateX(100deg); -webkit-transform: rotateX(100deg); opacity: 0; } 100% { transform: rotateX(0deg); -webkit-transform: rotateX(0deg); opacity: 1; }}@-webkit-keyframes animateXMark { 0% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 50% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 80% { transform: scale(1.15); -webkit-transform: scale(1.15); margin-top: -6px; } 100% { transform: scale(1); -webkit-transform: scale(1); margin-top: 0; opacity: 1; }}@keyframes animateXMark { 0% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 50% { transform: scale(0.4); -webkit-transform: scale(0.4); margin-top: 26px; opacity: 0; } 80% { transform: scale(1.15); -webkit-transform: scale(1.15); margin-top: -6px; } 100% { transform: scale(1); -webkit-transform: scale(1); margin-top: 0; opacity: 1; }}@-webkit-keyframes pulseWarning { 0% { border-color: #F8D486; } 100% { border-color: #F8BB86; }}@keyframes pulseWarning { 0% { border-color: #F8D486; } 100% { border-color: #F8BB86; }}@-webkit-keyframes pulseWarningIns { 0% { background-color: #F8D486; } 100% { background-color: #F8BB86; }}@keyframes pulseWarningIns { 0% { background-color: #F8D486; } 100% { background-color: #F8BB86; }}"),s.default.createElement(b.default,{show:!this.props.hideOverlay,onClick:this.onClickOutside,onKeyDown:this.onKeyDown},s.default.createElement("div",{style:Object.assign({},x,this.props.style,{animation:this.state.animation}),tabIndex:0,ref:"container",onKeyDown:this.onKeyDown,onClick:this.onClickInside,className:"sweet-alert "+this.props.customClass},this.props.showCloseButton&&this.props.onCancel&&s.default.createElement("span",{className:"btn",style:Object.assign({},C.closeButton,this.props.style),onClick:function(){return e.onCancel()}},"x"),this.getIcon(),s.default.createElement(v.default,null,this.props.title),s.default.createElement(y.default,null,this.props.children),"input"===this.state.type&&s.default.createElement(g.default,o({},this.props,this.state,{type:this.state.type,onInputKeyDown:this.onInputKeyDown,onChangeInput:this.onChangeInput})),this.state.showValidationMessage&&s.default.createElement(m.default,o({},this.props)),s.default.createElement(f.default,o({},this.props,{type:this.state.type,onConfirm:this.onConfirm,onCancel:this.onCancel,focusConfirmBtn:this.state.focusConfirmBtn,focusCancelBtn:this.state.focusCancelBtn,disabled:this.isDisabled()})))))},t.propTypes={type:l.default.oneOf(["default","info","success","warning","danger","error","input","custom"]),info:l.default.bool,success:l.default.bool,warning:l.default.bool,danger:l.default.bool,error:l.default.bool,input:l.default.bool,custom:l.default.bool,title:l.default.oneOfType([l.default.node,l.default.string]).isRequired,onCancel:l.default.func,onConfirm:l.default.func.isRequired,confirmBtnText:l.default.oneOfType([l.default.node,l.default.string]),confirmBtnBsStyle:l.default.string,confirmBtnCssClass:l.default.string,confirmBtnStyle:l.default.object,cancelBtnText:l.default.oneOfType([l.default.node,l.default.string]),cancelBtnBsStyle:l.default.string,cancelBtnCssClass:l.default.string,cancelBtnStyle:l.default.object,btnSize:l.default.string,customIcon:l.default.oneOfType([l.default.node,l.default.string]),show:l.default.bool,required:l.default.bool,placeholder:l.default.string,validationMsg:l.default.string,validationRegex:l.default.object,defaultValue:l.default.oneOfType([l.default.number,l.default.string]),inputType:l.default.string,style:l.default.object,closeBtnStyle:l.default.object,customClass:l.default.string,showConfirm:l.default.bool,showCancel:l.default.bool,showCloseButton:l.default.bool,allowEscape:l.default.bool,closeOnClickOutside:l.default.bool,hideOverlay:l.default.bool,disabled:l.default.bool,focusConfirmBtn:l.default.bool,focusCancelBtn:l.default.bool,beforeMount:l.default.func,afterMount:l.default.func,beforeUpdate:l.default.func,afterUpdate:l.default.func,beforeUnmount:l.default.func,timeout:l.default.number,openAnim:l.default.any,closeAnim:l.default.any,reverseButtons:l.default.bool,customButtons:l.default.node},t.defaultProps={allowEscape:!0,closeOnClickOutside:!0,inputType:"text",customClass:"",validationMsg:null,validationRegex:null,hideOverlay:!1,required:!0,disabled:!1,focusConfirmBtn:!0,focusCancelBtn:!1,showCloseButton:!1,confirmBtnBsStyle:"primary",cancelBtnBsStyle:"link",beforeMount:function(){},afterMount:function(){},beforeUpdate:null,afterUpdate:function(){},beforeUnmount:function(){},style:{},closeBtnStyle:{},timeout:0,openAnim:{name:"showSweetAlert",duration:300},closeAnim:!1,reverseButtons:!1},t.SuccessIcon=c.default,t.ErrorIcon=u.default,t.InfoIcon=d.default,t.WarningIcon=h.default,t.CustomIcon=p.default,t.Buttons=f.default,t.Input=g.default,t.ValidationMessage=m.default,t.Title=v.default,t.Content=y.default,t.getStateFromProps=function(e){var n=t.getTypeFromProps(e);return{type:n,focusConfirmBtn:e.focusConfirmBtn&&"input"!==n,focusCancelBtn:e.focusCancelBtn&&"input"!==n}},t.getTypeFromProps=function(e){return e.type?e.type:e.secondary?"secondary":e.info?"info":e.success?"success":e.warning?"warning":e.danger||e.error?"danger":e.input?"input":e.custom?"custom":"default"},t}(s.default.Component);t.default=M},function(e,t,n){"use strict";var r=n(559);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61));t.default=function(){return i.default.createElement("div",{style:Object.assign({},a.icon,a.iconSuccess)},i.default.createElement("div",{style:Object.assign({},a.iconSuccessBeforeAfter,a.iconSuccessBefore)}),i.default.createElement("span",{style:Object.assign({},a.iconSuccessLine,a.iconSuccessLineTip)}),i.default.createElement("span",{style:Object.assign({},a.iconSuccessLine,a.iconSuccessLineLong)}),i.default.createElement("div",{style:a.iconSuccessPlaceholder}),i.default.createElement("div",{style:a.iconSuccessFix}),i.default.createElement("div",{style:Object.assign({},a.iconSuccessBeforeAfter,a.iconSuccessAfter)}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61));t.default=function(){return i.default.createElement("div",{style:Object.assign({},a.icon,a.iconError)},i.default.createElement("span",{style:a.iconErrorX},i.default.createElement("span",{style:Object.assign({},a.iconErrorLine,a.iconErrorLineLeft)}),i.default.createElement("span",{style:Object.assign({},a.iconErrorLine,a.iconErrorLineRight)})))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61));t.default=function(){return i.default.createElement("div",{style:Object.assign({},a.icon,a.iconInfo)},i.default.createElement("div",{style:a.iconInfoBefore}),i.default.createElement("div",{style:a.iconInfoAfter}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61));t.default=function(){return i.default.createElement("div",{style:Object.assign({},a.icon,a.iconWarning)},i.default.createElement("span",{style:a.iconWarningBody}),i.default.createElement("span",{style:a.iconWarningDot}))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61)),s=Object.assign({},a.icon,a.iconCustom);t.default=function(e){var t="url("+e.iconUrl,n=Object.assign({},s,{backgroundImage:t});return i.default.createElement("div",{style:n})}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(0)),s=i(n(61)),l=n(61),c=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.buttonStyles={},n.confirmButtonElement=null,n.cancelButtonElement=null,n.setConfirmButtonElementRef=function(e){n.confirmButtonElement=e},n.setCancelButtonElementRef=function(e){n.cancelButtonElement=e},n.getButtonStyle=function(e){if("error"===e&&(e="danger"),null==n.buttonStyles[e]){var r=t.styles[e]||t.styles.default;n.buttonStyles[e]={borderColor:""+r.borderColor,boxShadow:"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px "+r.shadowColor}}return n.buttonStyles[e]},n}return r(t,e),t.prototype.componentDidMount=function(){this.focusButton()},t.prototype.componentDidUpdate=function(e){var t=this;e.type===this.props.type&&e.confirmBtnText===this.props.confirmBtnText&&e.title===this.props.title||setTimeout(function(){return t.focusButton()},0)},t.prototype.focusButton=function(){if(this.props.focusCancelBtn&&this.cancelButtonElement)try{this.cancelButtonElement.focus()}catch(e){}else if(this.props.focusConfirmBtn&&this.confirmButtonElement)try{this.confirmButtonElement.focus()}catch(e){}},t.prototype.confirmButtonRender=function(){var e=this;if(!this.props.showConfirm)return!1;var t="error"===this.props.confirmBtnBsStyle?"danger":this.props.confirmBtnBsStyle,n=Object.assign({},s.button,this.getButtonStyle(t),this.props.confirmBtnStyle||{});return a.default.createElement("a",{ref:this.setConfirmButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.confirmBtnCssClass+" "+(this.props.disabled?"disabled":""),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.disabled||e.props.onConfirm()}},this.props.confirmBtnText)},t.prototype.cancelButtonRender=function(){var e=this;if(!this.props.showCancel)return!1;var t="error"===this.props.cancelBtnBsStyle?"danger":this.props.cancelBtnBsStyle,n=Object.assign({},s.button,this.props.cancelBtnStyle||{});return a.default.createElement("a",{ref:this.setCancelButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.cancelBtnCssClass,onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onCancel()}},this.props.cancelBtnText)},t.prototype.render=function(){return!(!this.props.showConfirm&&!this.props.showCancel)&&a.default.createElement("p",{style:l.actions},this.props.customButtons?this.props.customButtons:a.default.createElement(a.default.Fragment,null,this.props.reverseButtons?a.default.createElement(a.default.Fragment,null,this.confirmButtonRender(),this.cancelButtonRender()):a.default.createElement(a.default.Fragment,null,this.cancelButtonRender(),this.confirmButtonRender())))},t.defaultProps={confirmBtnText:"OK",confirmBtnBsStyle:"primary",confirmBtnCssClass:"",confirmBtnStyle:{},cancelBtnText:"Cancel",cancelBtnBsStyle:"link",cancelBtnCssClass:"",cancelBtnStyle:{},focusConfirmBtn:!0,focusCancelBtn:!1,showConfirm:!0,showCancel:!1,reverseButtons:!1,btnSize:"lg"},t.styles={primary:{borderColor:"#286090",shadowColor:"rgb(165, 202, 234)"},success:{borderColor:"#4cae4c",shadowColor:"rgba(76, 174, 76, 0.6)"},info:{borderColor:"#46b8da",shadowColor:"rgba(70, 184, 218, 0.6)"},danger:{borderColor:"#d43f3a",shadowColor:"rgba(212, 63, 58, 0.6)"},warning:{borderColor:"#eea236",shadowColor:"rgba(238, 162, 54, 0.6)"},default:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"},secondary:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"}},t}(a.default.Component);t.default=c},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(0)),s=i(n(61)),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputElement=null,t.setInputElementRef=function(e){t.inputElement=e},t}return r(t,e),t.prototype.componentDidMount=function(){if("input"===this.props.type)try{this.inputElement.focus()}catch(e){}},t.prototype.render=function(){var e=this;return a.default.createElement("div",{style:{position:"relative"}},"textarea"===this.props.inputType?a.default.createElement("textarea",{ref:this.setInputElementRef,rows:4,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}):a.default.createElement("input",{type:this.props.inputType,ref:this.setInputElementRef,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}),this.props.showValidationMessage&&a.default.createElement("div",{style:s.inputErrorIcon},a.default.createElement("div",{style:Object.assign({},s.inputErrorIconBeforeAfter,s.inputErrorIconBefore)}),a.default.createElement("div",{style:Object.assign({},s.inputErrorIconBeforeAfter,s.inputErrorIconAfter)})))},t}(a.default.Component);t.default=l},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),a=o(n(61));t.default=function(e){var t=e.validationMsg,n=e.inputType,r=t||("email"===n?"Please enter a valid email!":"Please enter a response!");return i.default.createElement("div",{style:a.validationMessage},i.default.createElement("div",{style:a.exclamationIcon},"!"),r)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(0)),i=n(61);t.default=function(e){var t=e.children;return o.default.createElement("h2",{style:i.title},t)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(0)),i=n(61);t.default=function(e){var t=e.children;return o.default.createElement("div",{className:"text-muted lead",style:i.contentContainer},t)}},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},function(e,t,n){"use strict";var r,o,i,a,s;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,u=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,f=window.setTimeout,g=window.clearTimeout,m=window.requestAnimationFrame,v=window.cancelAnimationFrame;if("undefined"!==typeof console&&("function"!==typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"===typeof h&&"function"===typeof h.now)t.unstable_now=function(){return h.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var b=!1,C=null,w=-1,x=5,_=0;a=function(){return t.unstable_now()>=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],D=[],P=1,N=null,L=3,R=!1,F=!1,I=!1;function z(e){for(var t=O(D);null!==t;){if(null===t.callback)A(D);else{if(!(t.startTime<=e))break;A(D),t.sortIndex=t.expirationTime,E(k,t)}t=O(D)}}function B(e){if(I=!1,z(e),!F)if(null!==O(k))F=!0,r(j);else{var t=O(D);null!==t&&o(B,t.startTime-e)}}function j(e,n){F=!1,I&&(I=!1,i()),R=!0;var r=L;try{for(z(n),N=O(k);null!==N&&(!(N.expirationTime>n)||e&&!a());){var s=N.callback;if(null!==s){N.callback=null,L=N.priorityLevel;var l=s(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?N.callback=l:N===O(k)&&A(k),z(n)}else A(k);N=O(k)}if(null!==N)var c=!0;else{var u=O(D);null!==u&&o(B,u.startTime-n),c=!1}return c}finally{N=null,L=r,R=!1}}function V(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var W=s;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var l=a.delay;l="number"===typeof l&&0s?(e.sortIndex=l,E(D,e),null===O(k)&&e===O(D)&&(I?i():I=!0,o(B,l-s))):(e.sortIndex=a,E(k,e),F||R||(F=!0,r(j))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=O(k);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=s({},t.ConfigDefaults,e)},enumerable:!0,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=r.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._getHeaders(),this._getBody(),""!=this._csv){if(t)return this._csv;var n=this._options.useTextFile?"plain":"csv",o=this._options.useTextFile?".txt":".csv",i=new Blob([this._csv],{type:"text/"+n+";charset=utf8;"});if(navigator.msSaveBlob){var a=this._options.filename.replace(/ /g,"_")+o;navigator.msSaveBlob(i,a)}else{this._options.useTextFile,encodeURI(this._csv);var s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("visibility","hidden"),s.download=this._options.filename.replace(/ /g,"_")+o,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders){var e=this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers;if(e.length>0){for(var t="",n=0;n-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"===typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=o;var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){for(var t,n=[],r=1;ro&&r>a},v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o+c))return void this.setState({segment:null});h=u.add(s.last,1,"milliseconds")}h=u.max(h,u.add(c,1,"day"))}else if("LEFT"===o){if(g){if(s.first>h)return this.reset();c=s.getDateForSlot((0,d.getSlotAtX)(p,e.x,!1,s.slots))}else{if(!(u.inRange(h,s.first,s.last)||p.top>e.y&&+s.last<+h))return void this.reset();c=u.add(s.first,-1,"milliseconds")}c=u.min(u.add(h,-1,"day"),c)}this.update(r,c,h)},n.render=function(){var e=this.props,t=e.children,n=e.accessors,r=this.state.segment;return c.default.createElement("div",{className:"rbc-addons-dnd-row-body"},t,r&&c.default.createElement(g.default,(0,i.default)({},this.props,{selected:null,className:"rbc-addons-dnd-drag-row",segments:[r],accessors:(0,i.default)({},n,m.dragAccessors)})))},t}(c.default.Component);v.contextTypes={draggable:l.default.shape({onStart:l.default.func,onEnd:l.default.func,dragAndDropAction:l.default.object,onDropFromOutside:l.default.func,onBeginAction:l.default.func,dragFromOutsideItem:l.default.func})},v.propTypes={},v.propTypes={};var y=v;t.default=y,e.exports=t.default},function(e,t,n){"use strict";var r=n(150),o=n(54);t.__esModule=!0,t.endOfRange=s,t.eventSegments=function(e,t,n){var r=s(t),o=r.first,l=r.last,c=a.diff(o,l,"day"),u=a.max(a.startOf(n.start(e),"day"),o),d=a.min(a.ceil(n.end(e),"day"),l),h=(0,i.default)(t,function(e){return a.eq(e,u,"day")}),p=a.diff(u,d,"day");return p=Math.min(p,c),p=Math.max(p,1),{event:e,span:p,left:h+1,right:Math.max(h+p,1)}},t.eventLevels=function(e,t){void 0===t&&(t=1/0);var n,r,o,i=[],a=[];for(n=0;n=t?a.push(o):(i[r]||(i[r]=[])).push(o)}for(n=0;n=e.left})}},function(e,t,n){var r=n(593),o=n(272),i=n(594),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:i(n);return l<0&&(l=a(s+l,0)),r(e,o(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1,D=v.eventProp(r,A,O,o),P=l.default.createElement("div",{className:"rbc-event-content",title:E||void 0},C?l.default.createElement(C,{event:r,continuesPrior:f,continuesAfter:g,title:M,isAllDay:T,localizer:p,slotStart:x,slotEnd:_}):M);return l.default.createElement(w,(0,i.default)({},this.props,{type:"date"}),l.default.createElement("div",(0,i.default)({},S,{tabIndex:0,style:(0,i.default)({},D.style,t),className:(0,c.default)("rbc-event",n,D.className,{"rbc-selected":o,"rbc-event-allday":k,"rbc-event-continues-prior":f,"rbc-event-continues-after":g}),onClick:function(e){return d&&d(r,e)},onDoubleClick:function(e){return h&&h(r,e)}}),"function"===typeof y?y(P):P))},t}(l.default.Component);d.propTypes={};var h=d;t.default=h,e.exports=t.default},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=d(n(609)),i=d(n(612)),a=d(n(82)),s=d(n(720)),l=d(n(721)),c=d(n(617)),u=n(628);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function p(e){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:e.props.closeCalendar,r=e.props.onChange;n&&e.closeCalendar(),r&&r(t)}),M(_(e),"onChangeFrom",function(t,n){var r=e.props.value,o=y([].concat(r),2)[1];e.onChange([t,o],n)}),M(_(e),"onChangeTo",function(t,n){var r=e.props.value,o=y([].concat(r),1)[0];e.onChange([o,t],n)}),M(_(e),"onFocus",function(t){var n=e.props,r=n.disabled,o=n.onFocus;o&&o(t),r||e.openCalendar()}),M(_(e),"openCalendar",function(){e.setState({isOpen:!0})}),M(_(e),"closeCalendar",function(){e.setState(function(e){return e.isOpen?{isOpen:!1}:null})}),M(_(e),"toggleCalendar",function(){e.setState(function(e){return{isOpen:!e.isOpen}})}),M(_(e),"stopPropagation",function(e){return e.stopPropagation()}),M(_(e),"clear",function(){return e.onChange(null)}),e}return t=d,o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.isOpen!==t.isOpenProps?{isOpen:e.isOpen,isOpenProps:e.isOpen}:null}}],(n=[{key:"componentDidMount",value:function(){this.handleOutsideActionListeners()}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.isOpen,r=this.props,o=r.onCalendarClose,i=r.onCalendarOpen;if(n!==t.isOpen){this.handleOutsideActionListeners();var a=n?i:o;a&&a()}}},{key:"componentWillUnmount",value:function(){this.handleOutsideActionListeners(!1)}},{key:"handleOutsideActionListeners",value:function(e){var t=this,n=this.state.isOpen,r=("undefined"!==typeof e?e:n)?"addEventListener":"removeEventListener";O.forEach(function(e){return document[r](e,t.onOutsideAction)})}},{key:"renderInputs",value:function(){var e=this.props,t=e.autoFocus,n=e.calendarAriaLabel,o=e.calendarIcon,i=e.clearAriaLabel,a=e.clearIcon,s=e.dayAriaLabel,l=e.dayPlaceholder,u=e.disableCalendar,d=e.disabled,h=e.format,p=e.locale,f=e.maxDate,m=e.maxDetail,b=e.minDate,C=e.monthAriaLabel,w=e.monthPlaceholder,x=e.name,_=e.nativeInputAriaLabel,S=e.rangeDivider,M=e.required,O=e.showLeadingZeros,A=e.value,T=e.yearAriaLabel,k=e.yearPlaceholder,D=this.state.isOpen,P=y([].concat(A),2),N=P[0],L=P[1],R={dayPlaceholder:l,monthPlaceholder:w,yearPlaceholder:k},F=v(v(v({},{dayAriaLabel:s,monthAriaLabel:C,nativeInputAriaLabel:_,yearAriaLabel:T}),R),{},{className:"".concat(E,"__inputGroup"),disabled:d,format:h,isCalendarOpen:D,locale:p,maxDate:f,maxDetail:m,minDate:b,required:M,showLeadingZeros:O});return r.default.createElement("div",{className:"".concat(E,"__wrapper")},r.default.createElement(c.default,g({},F,{autoFocus:t,name:"".concat(x,"_from"),onChange:this.onChangeFrom,returnValue:"start",value:N})),r.default.createElement("span",{className:"".concat(E,"__range-divider")},S),r.default.createElement(c.default,g({},F,{name:"".concat(x,"_to"),onChange:this.onChangeTo,returnValue:"end",value:L})),null!==a&&r.default.createElement("button",{"aria-label":i,className:"".concat(E,"__clear-button ").concat(E,"__button"),disabled:d,onClick:this.clear,onFocus:this.stopPropagation,type:"button"},a),null!==o&&!u&&r.default.createElement("button",{"aria-label":n,className:"".concat(E,"__calendar-button ").concat(E,"__button"),disabled:d,onBlur:this.resetValue,onClick:this.toggleCalendar,onFocus:this.stopPropagation,type:"button"},o))}},{key:"renderCalendar",value:function(){var e=this.props.disableCalendar,t=this.state.isOpen;if(null===t||e)return null;var n=this.props,o=n.calendarClassName,i=(n.className,n.onChange,n.value),c=f(n,["calendarClassName","className","onChange","value"]),u="".concat(E,"__calendar");return r.default.createElement(l.default,null,r.default.createElement("div",{className:(0,a.default)(u,"".concat(u,"--").concat(t?"open":"closed"))},r.default.createElement(s.default,g({className:o,onChange:this.onChange,selectRange:!0,value:i||null},c))))}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.disabled,i=this.state.isOpen;return r.default.createElement("div",g({className:(0,a.default)(E,"".concat(E,"--").concat(i?"open":"closed"),"".concat(E,"--").concat(o?"disabled":"enabled"),n)},this.eventProps,{onFocus:this.onFocus,ref:function(t){t&&(e.wrapper=t)}}),this.renderInputs(),this.renderCalendar())}},{key:"eventProps",get:function(){return(0,i.default)(this.props)}}])&&C(t.prototype,n),o&&C(t,o),d}();t.default=A;var T={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},k=r.default.createElement("svg",g({},T,{className:"".concat(E,"__calendar-button__icon ").concat(E,"__button__icon")}),r.default.createElement("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),r.default.createElement("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),r.default.createElement("line",{x1:"13",x2:"13",y1:"0",y2:"4"})),D=r.default.createElement("svg",g({},T,{className:"".concat(E,"__clear-button__icon ").concat(E,"__button__icon")}),r.default.createElement("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),r.default.createElement("line",{x1:"15",x2:"4",y1:"4",y2:"15"}));A.defaultProps={calendarIcon:k,clearIcon:D,closeCalendar:!0,isOpen:null,name:"daterange",rangeDivider:"\u2013"};var P=o.default.oneOfType([o.default.string,o.default.instanceOf(Date)]);A.propTypes={autoFocus:o.default.bool,calendarAriaLabel:o.default.string,calendarClassName:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),calendarIcon:o.default.node,className:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),clearAriaLabel:o.default.string,clearIcon:o.default.node,closeCalendar:o.default.bool,dayAriaLabel:o.default.string,dayPlaceholder:o.default.string,disableCalendar:o.default.bool,disabled:o.default.bool,format:o.default.string,isOpen:o.default.bool,locale:o.default.string,maxDate:u.isMaxDate,maxDetail:o.default.oneOf(["century","decade","year","month"]),minDate:u.isMinDate,monthAriaLabel:o.default.string,monthPlaceholder:o.default.string,name:o.default.string,nativeInputAriaLabel:o.default.string,onCalendarClose:o.default.func,onCalendarOpen:o.default.func,onChange:o.default.func,onFocus:o.default.func,rangeDivider:o.default.node,required:o.default.bool,returnValue:o.default.oneOf(["start","end","range"]),showLeadingZeros:o.default.bool,value:o.default.oneOfType([P,o.default.arrayOf(P)]),yearAriaLabel:o.default.string,yearPlaceholder:o.default.string}},function(e,t,n){e.exports=n(610)()},function(e,t,n){"use strict";var r=n(611);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.focusEvents=t.keyboardEvents=t.touchEvents=t.mouseEvents=void 0;var r=["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"];t.mouseEvents=r;var o=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"];t.touchEvents=o;var i=["onKeyDown","onKeyPress","onKeyUp"];t.keyboardEvents=i;var a=["onFocus","onBlur"];t.focusEvents=a;var s=function(e,t){var n={};return[].concat(r,o,i,a).forEach(function(r){e[r]&&(n[r]=function(n){return t?e[r](n,t(r)):e[r](n)})}),n};t.default=s},function(e,t,n){"use strict";var r=n(614);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(616);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!==typeof e)return{default:e};var t=v();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(0)),o=m(n(81)),i=n(21),a=m(n(620)),s=m(n(621)),l=m(n(623)),c=m(n(624)),u=m(n(625)),d=m(n(626)),h=n(296),p=n(627),f=n(118),g=n(151);function m(e){return e&&e.__esModule?e:{default:e}}function v(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return v=function(){return e},e}function y(e){return(y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);no||r.length>=o.length){H(W(n,"nextElementSibling"))}}}),E(S(e),"onChange",function(t){var n=t.target,r=n.name,o=n.value;e.setState(E({},r,o),e.onChangeExternal)}),E(S(e),"onChangeNative",function(t){var n=e.props.onChange,r=t.target.value;n&&n(function(){if(!r)return null;var e=C(r.split("-"),3),t=e[0],n=e[1],o=e[2],i=parseInt(t,10),a=parseInt(n,10)-1||0,s=parseInt(o,10)||1,l=new Date;return l.setFullYear(i,a,s),l.setHours(0,0,0,0),l}(),!1)}),E(S(e),"onChangeExternal",function(){var t=e.props.onChange;if(t){var n=[e.dayInput,e.monthInput,e.yearInput].filter(Boolean),r={};if(n.forEach(function(e){r[e.name]=e.value}),n.every(function(e){return!e.value}))t(null,!1);else if(n.every(function(e){return e.value&&e.validity.valid})){var o=parseInt(r.year,10),i=parseInt(r.month,10)-1||0,a=parseInt(r.day||1,10),s=new Date;s.setFullYear(o,i,a),s.setHours(0,0,0,0),t(e.getProcessedValue(s),!1)}}}),E(S(e),"renderDay",function(t,n){var o=e.props,i=o.autoFocus,a=o.dayAriaLabel,l=o.dayPlaceholder,c=o.showLeadingZeros,u=e.state,d=u.day,h=u.month,p=u.year;if(t&&t.length>2)throw new Error("Unsupported token: ".concat(t));var f=t&&2===t.length;return r.default.createElement(s.default,b({key:"day"},e.commonInputProps,{ariaLabel:a,autoFocus:0===n&&i,month:h,placeholder:l,showLeadingZeros:f||c,value:d,year:p}))}),E(S(e),"renderMonth",function(t,n){var o=e.props,i=o.autoFocus,a=o.locale,s=o.monthAriaLabel,u=o.monthPlaceholder,d=o.showLeadingZeros,h=e.state,p=h.month,f=h.year;if(t&&t.length>4)throw new Error("Unsupported token: ".concat(t));if(t.length>2)return r.default.createElement(c.default,b({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,locale:a,placeholder:u,short:3===t.length,value:p,year:f}));var g=t&&2===t.length;return r.default.createElement(l.default,b({key:"month"},e.commonInputProps,{ariaLabel:s,autoFocus:0===n&&i,placeholder:u,showLeadingZeros:g||d,value:p,year:f}))}),E(S(e),"renderYear",function(t,n){var o=e.props,i=o.autoFocus,a=o.yearAriaLabel,s=o.yearPlaceholder,l=e.state.year;return r.default.createElement(u.default,b({key:"year"},e.commonInputProps,{ariaLabel:a,autoFocus:0===n&&i,placeholder:s,value:l,valueType:e.valueType}))}),e}return t=f,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.minDate,r=e.maxDate,o=e.maxDetail,a={};e.isCalendarOpen!==t.isCalendarOpen&&(a.isCalendarOpen=e.isCalendarOpen);var s=z({value:e.value,minDate:n,maxDate:r,maxDetail:o}),l=[s,t.value];return(a.isCalendarOpen||L.apply(void 0,O(l.map(function(e){return z({value:e,minDate:n,maxDate:r,maxDetail:o})})))||L.apply(void 0,O(l.map(function(e){return B({value:e,minDate:n,maxDate:r,maxDetail:o})}))))&&(s?(a.year=(0,i.getYear)(s).toString(),a.month=(0,i.getMonthHuman)(s).toString(),a.day=(0,i.getDate)(s).toString()):(a.year=null,a.month=null,a.day=null),a.value=s),a}}],(n=[{key:"getProcessedValue",value:function(e){var t=this.props,n=t.minDate,r=t.maxDate,o=t.maxDetail,i=t.returnValue;return function(){switch(i){case"start":return z;case"end":return B;case"range":return j;default:throw new Error("Invalid returnValue.")}}()({value:e,minDate:n,maxDate:r,maxDetail:o})}},{key:"renderCustomInputs",value:function(){var e=this.placeholder,t=this.props.format;return function(e,t,n){var o=[],i=new RegExp(Object.keys(t).map(function(e){return"".concat(e,"+")}).join("|"),"g"),s=e.match(i);return e.split(i).reduce(function(e,i,l){var c=i&&r.default.createElement(a.default,{key:"separator_".concat(l)},i),u=[].concat(O(e),[c]),d=s&&s[l];if(d){var h=t[d]||t[Object.keys(t).find(function(e){return d.match(e)})];!n&&o.includes(h)?u.push(d):(u.push(h(d,l)),o.push(h))}return u},[])}(e,{d:this.renderDay,M:this.renderMonth,y:this.renderYear},"undefined"!==typeof t)}},{key:"renderNativeInput",value:function(){var e=this.props,t=e.disabled,n=e.maxDate,o=e.minDate,i=e.name,a=e.nativeInputAriaLabel,s=e.required,l=this.state.value;return r.default.createElement(d.default,{key:"date",ariaLabel:a,disabled:t,maxDate:n||D,minDate:o||k,name:i,onChange:this.onChangeNative,required:s,value:l,valueType:this.valueType})}},{key:"render",value:function(){var e=this.props.className;return r.default.createElement("div",{className:e,onClick:this.onClick},this.renderNativeInput(),this.renderCustomInputs())}},{key:"formatDate",get:function(){var e=this.props.maxDetail,t={year:"numeric"},n=P.indexOf(e);return n>=2&&(t.month="numeric"),n>=3&&(t.day="numeric"),(0,h.getFormatter)(t)}},{key:"divider",get:function(){var e=this.placeholder.match(/[^0-9a-z]/i);return e?e[0]:null}},{key:"placeholder",get:function(){var e=this.props,t=e.format,n=e.locale;if(t)return t;var r=new Date(2017,11,11),o=this.formatDate(n,r),i=["y","M","d"];var a=o;return["year","month","day"].forEach(function(e,t){var o,s,l=(o=e,s=r,(0,h.getFormatter)(E({useGrouping:!1},o,"numeric"))(n,s).match(/\d{1,}/)),c=i[t];a=a.replace(l,c)}),a}},{key:"commonInputProps",get:function(){var e=this,t=this.props,n=t.className,r=t.disabled,o=t.isCalendarOpen,i=t.maxDate,a=t.minDate,s=t.required;return{className:n,disabled:r,maxDate:i||D,minDate:a||k,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,required:s||o,itemRef:function(t,n){e["".concat(n,"Input")]=t}}}},{key:"valueType",get:function(){return R(this.props.maxDetail)}}])&&w(t.prototype,n),o&&w(t,o),f}();t.default=G,G.defaultProps={maxDetail:"month",name:"date",returnValue:"start"};var U=o.default.oneOfType([o.default.string,o.default.instanceOf(Date)]);G.propTypes={autoFocus:o.default.bool,className:o.default.string.isRequired,dayAriaLabel:o.default.string,dayPlaceholder:o.default.string,disabled:o.default.bool,format:o.default.string,isCalendarOpen:o.default.bool,locale:o.default.string,maxDate:f.isMaxDate,maxDetail:o.default.oneOf(P),minDate:f.isMinDate,monthAriaLabel:o.default.string,monthPlaceholder:o.default.string,name:o.default.string,nativeInputAriaLabel:o.default.string,onChange:o.default.func,required:o.default.bool,returnValue:o.default.oneOf(["start","end","range"]),showLeadingZeros:o.default.bool,value:o.default.oneOfType([U,o.default.arrayOf(U)]),yearAriaLabel:o.default.string,yearPlaceholder:o.default.string}},function(e,t,n){"use strict";var r=n(619);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(n(0)),o=i(n(81));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.children;return r.default.createElement("span",{className:"react-date-picker__inputGroup__divider"},t)}a.propTypes={children:o.default.node}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=c(n(0)),o=c(n(81)),i=n(21),a=c(n(211)),s=n(118),l=n(151);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){var t=e.maxDate,n=e.minDate,o=e.month,s=e.year,c=d(e,["maxDate","minDate","month","year"]),h=o?(0,i.getDaysInMonth)(new Date(s,o-1,1)):31;function p(e){return e&&s===(0,i.getYear)(e).toString()&&o===(0,i.getMonthHuman)(e).toString()}var f=(0,l.safeMin)(h,p(t)&&(0,i.getDate)(t)),g=(0,l.safeMax)(1,p(n)&&(0,i.getDate)(n));return r.default.createElement(a.default,u({max:f,min:g,name:"day"},c))}h.propTypes={ariaLabel:o.default.string,className:o.default.string.isRequired,disabled:o.default.bool,itemRef:o.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,month:o.default.string,onChange:o.default.func,onKeyDown:o.default.func,onKeyUp:o.default.func,placeholder:o.default.string,required:o.default.bool,showLeadingZeros:o.default.bool,value:o.default.string,year:o.default.string}},function(e,t,n){"use strict";n.r(t),n.d(t,"getFontShorthand",function(){return o}),n.d(t,"measureText",function(){return i}),n.d(t,"updateInputWidth",function(){return a});var r=["normal","small-caps"];function o(e){var t=window.getComputedStyle(e);if(t.font)return t.font;if(!(""!==t["font-family"]))return"";var n=r.includes(t["font-variant"])?t["font-variant"]:"normal";return"".concat(t["font-style"]," ").concat(n," ").concat(t["font-weight"]," ").concat(t["font-size"]," / ").concat(t["line-height"]," ").concat(t["font-family"])}function i(e,t){var n=(i.canvas||(i.canvas=document.createElement("canvas"))).getContext("2d");if(!n)return null;n.font=t;var r=n.measureText(e).width;return Math.ceil(r)}function a(e){if("undefined"===typeof window)return null;var t=o(e),n=i(e.value||e.placeholder,t);return null===n?null:(e.style.width="".concat(n,"px"),n)}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=c(n(0)),o=c(n(81)),i=n(21),a=c(n(211)),s=n(118),l=n(151);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){var t=e.maxDate,n=e.minDate,o=e.year,s=d(e,["maxDate","minDate","year"]);function c(e){return e&&o===(0,i.getYear)(e).toString()}var h=(0,l.safeMin)(12,c(t)&&(0,i.getMonthHuman)(t)),p=(0,l.safeMax)(1,c(n)&&(0,i.getMonthHuman)(n));return r.default.createElement(a.default,u({max:h,min:p,name:"month"},s))}h.propTypes={ariaLabel:o.default.string,className:o.default.string.isRequired,disabled:o.default.bool,itemRef:o.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:o.default.func,onKeyDown:o.default.func,onKeyUp:o.default.func,placeholder:o.default.string,required:o.default.bool,showLeadingZeros:o.default.bool,value:o.default.string,year:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var r=u(n(0)),o=u(n(81)),i=u(n(82)),a=n(21),s=n(296),l=n(118),c=n(151);function u(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e){var t=e.ariaLabel,n=e.className,o=e.itemRef,l=e.locale,u=e.maxDate,p=e.minDate,g=e.placeholder,m=void 0===g?"--":g,v=e.short,y=e.value,b=e.year,C=f(e,["ariaLabel","className","itemRef","locale","maxDate","minDate","placeholder","short","value","year"]);function w(e){return e&&b===(0,a.getYear)(e).toString()}var x=(0,c.safeMin)(12,w(u)&&(0,a.getMonthHuman)(u)),_=(0,c.safeMax)(1,w(p)&&(0,a.getMonthHuman)(p)),S=h(Array(12)).map(function(e,t){return new Date(2019,t,1)}),M=v?s.formatShortMonth:s.formatMonth;return r.default.createElement("select",d({"aria-label":t,className:(0,i.default)("".concat(n,"__input"),"".concat(n,"__").concat("month")),"data-input":"true",name:"month",ref:function(e){o&&o(e,"month")},value:null!==y?y:""},C),!y&&r.default.createElement("option",{value:""},m),S.map(function(e){var t=(0,a.getMonthHuman)(e),n=t<_||t>x;return r.default.createElement("option",{key:t,disabled:n,value:t},M(l,e))}))}g.propTypes={ariaLabel:o.default.string,className:o.default.string.isRequired,disabled:o.default.bool,itemRef:o.default.func,locale:o.default.string,maxDate:l.isMaxDate,minDate:l.isMinDate,onChange:o.default.func,onKeyDown:o.default.func,onKeyUp:o.default.func,placeholder:o.default.string,required:o.default.bool,short:o.default.bool,value:o.default.string,year:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=c(n(0)),o=c(n(81)),i=n(21),a=c(n(211)),s=n(118),l=n(151);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){var t=e.maxDate,n=e.minDate,o=e.placeholder,s=void 0===o?"----":o,c=e.valueType,h=d(e,["maxDate","minDate","placeholder","valueType"]),p=(0,l.safeMin)(275760,t&&(0,i.getYear)(t)),f=(0,l.safeMax)(1,n&&(0,i.getYear)(n)),g="century"===c?10:1;return r.default.createElement(a.default,u({max:p,min:f,name:"year",placeholder:s,step:g},h))}h.propTypes={ariaLabel:o.default.string,className:o.default.string.isRequired,disabled:o.default.bool,itemRef:o.default.func,maxDate:s.isMaxDate,minDate:s.isMinDate,onChange:o.default.func,onKeyDown:o.default.func,onKeyUp:o.default.func,placeholder:o.default.string,required:o.default.bool,value:o.default.string,valueType:s.isValueType}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(0)),o=s(n(81)),i=n(21),a=n(118);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.ariaLabel,n=e.disabled,o=e.maxDate,a=e.minDate,s=e.name,l=e.onChange,c=e.required,u=e.value,d=e.valueType,h=function(){switch(d){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType.")}}(),p=function(){switch(d){case"century":case"decade":case"year":return i.getYear;case"month":return i.getISOLocalMonth;case"day":return i.getISOLocalDate;default:throw new Error("Invalid valueType.")}}();return r.default.createElement("input",{"aria-label":t,disabled:n,max:o?p(o):null,min:a?p(a):null,name:s,onChange:l,onFocus:function(e){e.stopPropagation()},required:c,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:h,value:u?p(u):""})}l.propTypes={ariaLabel:o.default.string,disabled:o.default.bool,maxDate:a.isMaxDate,minDate:a.isMinDate,name:o.default.string,onChange:o.default.func,required:o.default.bool,value:o.default.oneOfType([o.default.string,o.default.instanceOf(Date)]),valueType:a.isValueType}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBegin=function(e,t){switch(e){case"century":return(0,r.getCenturyStart)(t);case"decade":return(0,r.getDecadeStart)(t);case"year":return(0,r.getYearStart)(t);case"month":return(0,r.getMonthStart)(t);case"day":return(0,r.getDayStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}},t.getEnd=function(e,t){switch(e){case"century":return(0,r.getCenturyEnd)(t);case"decade":return(0,r.getDecadeEnd)(t);case"year":return(0,r.getYearEnd)(t);case"month":return(0,r.getMonthEnd)(t);case"day":return(0,r.getDayEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}};var r=n(21)},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isMaxDate=t.isMinDate=void 0;t.isMinDate=function(e,t,n){var o=e[t];if(!o)return null;if(!(o instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(r(o),"` supplied to `").concat(n,"`, expected instance of `Date`."));var i=e.maxDate;return i&&o>i?new Error("Invalid prop `".concat(t,"` of type `").concat(r(o),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null};t.isMaxDate=function(e,t,n){var o=e[t];if(!o)return null;if(!(o instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(r(o),"` supplied to `").concat(n,"`, expected instance of `Date`."));var i=e.minDate;return i&&o0||i.geoService_.getHeight()>0){var e=Math.ceil(i.geoService_.getWidth()/k)+2,t=Math.ceil(i.geoService_.getHeight()/k)+2,n=Math.max(e,t);return Math.ceil((0,b.default)(n))}return N},i._computeMinZoom=function(e){return(0,C.default)(e)?i._getMinZoom():e},i._mapDomResizeCallback=function(){if(i.resetSizeOnIdle_=!0,i.maps_){var e=i.props.center||i.props.defaultCenter,t=i.map_.getCenter();i.maps_.event.trigger(i.map_,"resize"),i.map_.setCenter(i.props.resetBoundsOnResize?e:t)}},i._setLayers=function(e){e.forEach(function(e){i.layers_[e]=new i.maps_[e],i.layers_[e].setMap(i.map_)})},i._renderPortal=function(){return a.default.createElement(d.default,{experimental:i.props.experimental,onChildClick:i._onChildClick,onChildMouseDown:i._onChildMouseDown,onChildMouseEnter:i._onChildMouseEnter,onChildMouseLeave:i._onChildMouseLeave,geoService:i.geoService_,insideMapPanes:!0,distanceToMouse:i.props.distanceToMouse,getHoverDistance:i._getHoverDistance,dispatcher:i.markersDispatcher_})},i._initMap=function(){if(!i.initialized_){i.initialized_=!0;var e=z(i.props.center||i.props.defaultCenter);i.geoService_.setView(e,i.props.zoom||i.props.defaultZoom,0),i._onBoundsChanged();var t=o({},i.props.apiKey&&{key:i.props.apiKey},i.props.bootstrapURLKeys);i.props.googleMapLoader(t,i.props.heatmapLibrary).then(function(e){if(i.mounted_){var t=i.geoService_.getCenter(),n={zoom:i.props.zoom||i.props.defaultZoom,center:new e.LatLng(t.lat,t.lng)};i.props.heatmap.positions&&(Object.assign(i,{heatmap:(0,p.generateHeatmap)(e,i.props.heatmap)}),(0,p.optionsHeatmap)(i.heatmap,i.props.heatmap));var a=(0,v.default)(e,S.default),s="function"===typeof i.props.options?i.props.options(a):i.props.options,c=I(),u=!(0,C.default)(i.props.draggable)&&{draggable:i.props.draggable},d=i._computeMinZoom(s.minZoom);i.minZoom_=d;var h=o({},c,{minZoom:d},s,n);i.defaultDraggableOption_=(0,C.default)(h.draggable)?i.defaultDraggableOption_:h.draggable;var f=o({},h,u);f.minZoom=B(f.minZoom,d);var g=new e.Map(l.default.findDOMNode(i.googleMapDom_),f);i.map_=g,i.maps_=e,i._setLayers(i.props.layerTypes);var y=e.version.match(/^3\.(\d+)\./),b=y&&Number(y[1]),w=i,x=Object.assign(new e.OverlayView,{onAdd:function(){var t="undefined"!==typeof screen?screen.width+"px":"2000px",n="undefined"!==typeof screen?screen.height+"px":"2000px",o=document.createElement("div");if(o.style.backgroundColor="transparent",o.style.position="absolute",o.style.left="0px",o.style.top="0px",o.style.width=t,o.style.height=n,w.props.overlayViewDivStyle){var i=w.props.overlayViewDivStyle;"object"===("undefined"===typeof i?"undefined":r(i))&&Object.keys(i).forEach(function(e){o.style[e]=i[e]})}this.getPanes().overlayMouseTarget.appendChild(o),w.geoService_.setMapCanvasProjection(e,x.getProjection()),R?w.setState({overlay:o}):F(w,w._renderPortal(),o,function(){return w.setState({overlay:o})})},onRemove:function(){var e=w.state.overlay;e&&!R&&l.default.unmountComponentAtNode(e),w.setState({overlay:null})},draw:function(){if(w.updateCounter_++,w._onBoundsChanged(g,e,!w.props.debounced),w.googleApiLoadedCalled_||(w._onGoogleApiLoaded({map:g,maps:e,ref:w.googleMapDom_}),w.googleApiLoadedCalled_=!0),w.mouse_){var t=w.geoService_.fromContainerPixelToLatLng(w.mouse_);w.mouse_.lat=t.lat,w.mouse_.lng=t.lng}w._onChildMouseMove(),w.markersDispatcher_&&(w.markersDispatcher_.emit("kON_CHANGE"),w.fireMouseEventOnIdle_&&w.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"))}});i.overlay_=x,x.setMap(g),i.props.heatmap.positions&&i.heatmap.setMap(g),i.props.onTilesLoaded&&e.event.addListener(g,"tilesloaded",function(){w._onTilesLoaded()}),e.event.addListener(g,"zoom_changed",function(){if(w.geoService_.getZoom()!==g.getZoom()&&(w.zoomAnimationInProgress_||(w.zoomAnimationInProgress_=!0,w._onZoomAnimationStart(g.zoom)),b50&&(i.boundingRect_=e.currentTarget.getBoundingClientRect()),i.mouseMoveTime_=t;var n=e.clientX-i.boundingRect_.left,r=e.clientY-i.boundingRect_.top;i.mouse_||(i.mouse_={x:0,y:0,lat:0,lng:0}),i.mouse_.x=n,i.mouse_.y=r;var o=i.geoService_.fromContainerPixelToLatLng(i.mouse_);i.mouse_.lat=o.lat,i.mouse_.lng=o.lng,i._onChildMouseMove(),t-i.dragTime_P&&0===i.dragTime_&&(e=i.props).onClick.apply(e,arguments)},i._onMapClick=function(e){i.markersDispatcher_&&(i._onMapMouseMove(e),(new Date).getTime()-i.dragTime_>D&&(i.mouse_&&i._onClick(o({},i.mouse_,{event:e})),i.markersDispatcher_.emit("kON_CLICK",e)))},i._onMapMouseDownNative=function(e){i.mouseInMap_&&i._onMapMouseDown(e)},i._onMapMouseDown=function(e){i.markersDispatcher_&&((new Date).getTime()-i.dragTime_>D&&(i._onMapMouseMove(e),i.markersDispatcher_.emit("kON_MDOWN",e)))},i._onMapMouseDownCapture=function(){(0,x.default)().isChrome&&(i.zoomControlClickTime_=(new Date).getTime())},i._onKeyDownCapture=function(){(0,x.default)().isChrome&&(i.zoomControlClickTime_=(new Date).getTime())},i._isCenterDefined=function(e){return e&&((0,S.default)(e)&&(0,w.default)(e.lat)&&(0,w.default)(e.lng)||2===e.length&&(0,w.default)(e[0])&&(0,w.default)(e[1]))},i._onBoundsChanged=function(e,t,n){if(e){var r=e.getCenter();i.geoService_.setView([r.lat(),r.lng()],e.getZoom(),0)}if((i.props.onChange||i.props.onBoundsChange)&&i.geoService_.canProject()){var a=i.geoService_.getZoom(),s=i.geoService_.getBounds(),l=i.geoService_.getCenter();if(!(0,M.default)(s,i.prevBounds_,T)&&!1!==n){var c=i.geoService_.getBounds(i.props.margin);i.props.onBoundsChange&&i.props.onBoundsChange(i.centerIsObject_?o({},l):[l.lat,l.lng],a,s,c),i.props.onChange&&i.props.onChange({center:o({},l),zoom:a,bounds:{nw:{lat:s[0],lng:s[1]},se:{lat:s[2],lng:s[3]},sw:{lat:s[4],lng:s[5]},ne:{lat:s[6],lng:s[7]}},marginBounds:{nw:{lat:c[0],lng:c[1]},se:{lat:c[2],lng:c[3]},sw:{lat:c[4],lng:c[5]},ne:{lat:c[6],lng:c[7]}},size:i.geoService_.hasSize()?{width:i.geoService_.getWidth(),height:i.geoService_.getHeight()}:{width:0,height:0}}),i.prevBounds_=s}}},i._registerChild=function(e){i.googleMapDom_=e},i.mounted_=!1,i.initialized_=!1,i.googleApiLoadedCalled_=!1,i.map_=null,i.maps_=null,i.prevBounds_=null,i.heatmap=null,i.layers_={},i.mouse_=null,i.mouseMoveTime_=0,i.boundingRect_=null,i.mouseInMap_=!0,i.dragTime_=0,i.fireMouseEventOnIdle_=!1,i.updateCounter_=0,i.markersDispatcher_=new u.default(i),i.geoService_=new g.default(k),i.centerIsObject_=(0,S.default)(i.props.center),i.minZoom_=N,i.defaultDraggableOption_=!0,i.zoomControlClickTime_=0,i.childMouseDownArgs_=null,i.childMouseUpTime_=0,i.googleMapDom_=null,i._isCenterDefined(i.props.center||i.props.defaultCenter)){var s=z(i.props.center||i.props.defaultCenter);i.geoService_.setView(s,i.props.zoom||i.props.defaultZoom,0)}return i.zoomAnimationInProgress_=!1,i.state={overlay:null},i}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this;this.mounted_=!0,(0,O.default)(window,"resize",this._onWindowResize,!1),(0,O.default)(window,"keydown",this._onKeyDownCapture,!0);var t=l.default.findDOMNode(this.googleMapDom_);t&&(0,O.default)(t,"mousedown",this._onMapMouseDownNative,!0),(0,O.default)(window,"mouseup",this._onChildMouseUp,!1);var n=o({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);if(this.props.googleMapLoader(n,this.props.heatmapLibrary),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap()},0,this),this.props.resetBoundsOnResize){E.default.addResizeListener(t,this._mapDomResizeCallback)}},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;if(!this._isCenterDefined(this.props.center)&&this._isCenterDefined(e.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var n=this.geoService_.getCenter();if(this._isCenterDefined(e.center)){var r=z(e.center),o=this._isCenterDefined(this.props.center)?z(this.props.center):null;(!o||Math.abs(r.lat-o.lat)+Math.abs(r.lng-o.lng)>T)&&Math.abs(r.lat-n.lat)+Math.abs(r.lng-n.lng)>T&&this.map_.panTo({lat:r.lat,lng:r.lng})}if((0,C.default)(e.zoom)||Math.abs(e.zoom-this.props.zoom)>0&&this.map_.setZoom(e.zoom),!(0,C.default)(this.props.draggable)&&(0,C.default)(e.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):(0,_.default)(this.props.draggable,e.draggable)||this.map_.setOptions({draggable:e.draggable}),!(0,C.default)(e.options)&&!(0,_.default)(this.props.options,e.options)){var i=(0,v.default)(this.maps_,S.default),a="function"===typeof e.options?e.options(i):e.options;if("minZoom"in(a=(0,y.default)(a,["zoom","center","draggable"]))){var s=this._computeMinZoom(a.minZoom);a.minZoom=B(a.minZoom,s)}this.map_.setOptions(a)}(0,_.default)(e.layerTypes,this.props.layerTypes)||(Object.keys(this.layers_).forEach(function(e){t.layers_[e].setMap(null),delete t.layers_[e]}),this._setLayers(e.layerTypes)),this.heatmap&&!(0,_.default)(e.heatmap.positions,this.props.heatmap.positions)&&this.heatmap.setData(e.heatmap.positions.map(function(e){return{location:new t.maps_.LatLng(e.lat,e.lng),weight:e.weight}}))}},t.prototype.shouldComponentUpdate=function(e,t){return!(0,_.default)((0,y.default)(this.props,["draggable"]),(0,y.default)(e,["draggable"]))||!(0,_.default)(this.state,t)},t.prototype.componentDidUpdate=function(e){this.markersDispatcher_.emit("kON_CHANGE"),(0,_.default)(this.props.hoverDistance,e.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")},t.prototype.componentWillUnmount=function(){this.mounted_=!1;var e=l.default.findDOMNode(this.googleMapDom_);e&&e.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&E.default.removeResizeListener(e,this._mapDomResizeCallback),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_)},t.prototype.render=function(){var e=this.state.overlay,t=e?null:a.default.createElement(h.default,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return a.default.createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},a.default.createElement(c.default,{registerChild:this._registerChild}),R&&e&&F(this._renderPortal(),e),t)},t}(i.Component);V.propTypes={apiKey:s.default.string,bootstrapURLKeys:s.default.any,defaultCenter:s.default.oneOfType([s.default.array,s.default.shape({lat:s.default.number,lng:s.default.number})]),center:s.default.oneOfType([s.default.array,s.default.shape({lat:s.default.number,lng:s.default.number})]),defaultZoom:s.default.number,zoom:s.default.number,onBoundsChange:s.default.func,onChange:s.default.func,onClick:s.default.func,onChildClick:s.default.func,onChildMouseDown:s.default.func,onChildMouseUp:s.default.func,onChildMouseMove:s.default.func,onChildMouseEnter:s.default.func,onChildMouseLeave:s.default.func,onZoomAnimationStart:s.default.func,onZoomAnimationEnd:s.default.func,onDrag:s.default.func,onDragEnd:s.default.func,onMapTypeIdChange:s.default.func,onTilesLoaded:s.default.func,options:s.default.any,distanceToMouse:s.default.func,hoverDistance:s.default.number,debounced:s.default.bool,margin:s.default.array,googleMapLoader:s.default.any,onGoogleApiLoaded:s.default.func,yesIWantToUseGoogleMapApiInternals:s.default.bool,draggable:s.default.bool,style:s.default.any,resetBoundsOnResize:s.default.bool,layerTypes:s.default.arrayOf(s.default.string),shouldUnregisterMapOnUnmount:s.default.bool},V.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:I,googleMapLoader:f.default,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},V.googleMapLoader=f.default,t.default=V},function(e,t,n){"use strict";var r=n(633);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};var a={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){var e=this.props.registerChild;return i.default.createElement("div",{ref:e,style:a})},t}(o.Component);t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(636);var i=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,e.call(this));return r.gmapInstance=n,r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getChildren=function(){return this.gmapInstance.props.children},t.prototype.getMousePosition=function(){return this.gmapInstance.mouse_},t.prototype.getUpdateCounter=function(){return this.gmapInstance.updateCounter_},t.prototype.dispose=function(){this.gmapInstance=null,this.removeAllListeners()},t}(((r=o)&&r.__esModule?r:{default:r}).default);t.default=i},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="function"!==typeof Object.create&&"~";function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){}a.prototype._events=void 0,a.prototype.eventNames=function(){var e,t=this._events,n=[];if(!t)return n;for(e in t)r.call(t,e)&&n.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events&&this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i0&&this.getHeight()-n-i>0){var s=this.transform_.pointLocation(o.default.convert({x:a-this.getWidth()/2,y:n-this.getHeight()/2})),l=this.transform_.pointLocation(o.default.convert({x:this.getWidth()/2-r,y:this.getHeight()/2-i})),c=[s.lat,s.lng,l.lat,l.lng,l.lat,s.lng,s.lat,l.lng];return t&&(c=c.map(function(e){return Math.round(e*t)/t})),c}return[0,0,0,0]},e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n-1,t=navigator.userAgent.indexOf("Firefox")>-1,n=navigator.userAgent.toLowerCase().indexOf("op")>-1,o=navigator.userAgent.indexOf("Chrome")>-1,i=navigator.userAgent.indexOf("Safari")>-1;return o&&i&&(i=!1),o&&n&&(o=!1),r={isExplorer:e,isFirefox:t,isOpera:n,isChrome:o,isSafari:i}}return r={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}};var r=null},function(e,t,n){"use strict";t.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){if(!e||"object"!==("undefined"===typeof e?"undefined":r(e)))return!1;var t="function"===typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"===typeof n&&n instanceof n&&o(n)===o(Object)};var o=function(e){return Function.prototype.toString.call(e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){if(e&&t){for(var r=0;r!==e.length;++r)if(Math.abs(e[r]-t[r])>n)return!1;return!0}return!1}},function(e,t,n){"use strict";var r,o=n(306),i=(r=o)&&r.__esModule?r:{default:r};var a,s=!("undefined"===typeof window||!window.document||!window.document.createElement);a=s?window:"undefined"!==typeof self?self:void 0;var l="undefined"!==typeof document&&document.attachEvent,c=!1;if(s&&!l){var u=function(){var e=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||function(e){return a.setTimeout(e,20)};return function(t){return e(t)}}(),d=function(){var e=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.clearTimeout;return function(t){return e(t)}}(),h=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},p=function(e){var t=this;h(this),this.__resizeRAF__&&d(this.__resizeRAF__),this.__resizeRAF__=u(function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})},f=!1,g="",m="animationstart",v="Webkit Moz O ms".split(" "),y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b="";if(s){var C=document.createElement("fakeelement");if(void 0!==C.style.animationName&&(f=!0),!1===f)for(var w=0;w div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),c=!0}}(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='
',e.appendChild(e.__resizeTriggers__),h(e),(0,i.default)(e,"scroll",p,!0),m&&e.__resizeTriggers__.addEventListener(m,function(t){t.animationName==x&&h(e)})),e.__resizeListeners__.push(t))},removeResizeListener:function(e,t){e=e.parentNode,l?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",p),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))}}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(D){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var b={};b[i]=function(){return this};var C=Object.getPrototypeOf,w=C&&C(C(T([])));w&&w!==n&&r.call(w,i)&&(b=w);var x=y.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t(function(n,a){!function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(l.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}}function M(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";(function(e){var r=n(654),o=n(655),i=n(656);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;ho&&(r=o):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128===(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);P(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function W(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(63))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<>1,u=-7,d=n?o-1:0,h=n?-1:1,p=e[t+d];for(d+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,f=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=f,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,c-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(705),o=n(706),i=n(707);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r=n(709),o=n(710),i=n(711);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[l>>>5]|=128<>>9<<4)]=l;var f=e._ff,g=e._gg,m=e._hh,v=e._ii;for(p=0;p>>0,u=u+b>>>0,d=d+C>>>0,h=h+w>>>0}return t.endian([c,u,d,h])};a._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},,function(e,t,n){"use strict";n.r(t),n.d(t,"Calendar",function(){return sn}),n.d(t,"CenturyView",function(){return We}),n.d(t,"DecadeView",function(){return et}),n.d(t,"YearView",function(){return pt}),n.d(t,"MonthView",function(){return Nt});var r,o=n(0),i=n.n(o),a=n(8),s=n.n(a),l=n(82),c=n(155),u=n(21);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:f.ISO_8601,n=e.getDay();switch(t){case f.ISO_8601:return(n+6)%7;case f.ARABIC:return(n+1)%7;case f.HEBREW:case f.US:return n;default:throw new Error("Unsupported calendar type.")}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.ISO_8601,n=Object(u.getYear)(e),r=Object(u.getMonth)(e),o=e.getDate()-A(e,t);return new Date(n,r,o)}function k(e,t){switch(e){case"century":return Object(u.getCenturyStart)(t);case"decade":return Object(u.getDecadeStart)(t);case"year":return Object(u.getYearStart)(t);case"month":return Object(u.getMonthStart)(t);case"day":return Object(u.getDayStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function D(e,t){switch(e){case"century":return Object(u.getNextCenturyStart)(t);case"decade":return Object(u.getNextDecadeStart)(t);case"year":return Object(u.getNextYearStart)(t);case"month":return Object(u.getNextMonthStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var P=function(e,t){switch(e){case"decade":return Object(u.getPreviousDecadeStart)(t,-100);case"year":return Object(u.getPreviousYearStart)(t,-10);case"month":return Object(u.getPreviousMonthStart)(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}},N=function(e,t){switch(e){case"decade":return Object(u.getNextDecadeStart)(t,100);case"year":return Object(u.getNextYearStart)(t,10);case"month":return Object(u.getNextMonthStart)(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}};function L(e,t){switch(e){case"century":return Object(u.getCenturyEnd)(t);case"decade":return Object(u.getDecadeEnd)(t);case"year":return Object(u.getYearEnd)(t);case"month":return Object(u.getMonthEnd)(t);case"day":return Object(u.getDayEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var R=function(e,t){switch(e){case"decade":return Object(u.getPreviousDecadeEnd)(t,-100);case"year":return Object(u.getPreviousYearEnd)(t,-10);case"month":return Object(u.getPreviousMonthEnd)(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}};function F(e,t){switch(e){case"century":return Object(u.getCenturyRange)(t);case"decade":return Object(u.getDecadeRange)(t);case"year":return Object(u.getYearRange)(t);case"month":return Object(u.getMonthRange)(t);case"day":return Object(u.getDayRange)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;return(arguments.length>2?arguments[2]:void 0).map(function(n){return t(e,n)}).join(" \u2013 ")}function z(e,t,n){return I(e,t,Object(u.getDecadeRange)(n))}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.ISO_8601,n=e.getDay();switch(t){case f.ARABIC:case f.HEBREW:return n===E||n===O;case f.ISO_8601:case f.US:return n===O||n===M;default:throw new Error("Unsupported calendar type.")}}function j(e){return(j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var V=Object.values(f),W=["century","decade","year","month"],H=s.a.oneOf(V),G=s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string)]),U=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(j(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var o=e.maxDate;return o&&r>o?new Error("Invalid prop `".concat(t,"` of type `").concat(j(r),"` supplied to `").concat(n,"`, minDate cannot be larger than maxDate.")):null},q=function(e,t,n){var r=e[t];if(!r)return null;if(!(r instanceof Date))return new Error("Invalid prop `".concat(t,"` of type `").concat(j(r),"` supplied to `").concat(n,"`, expected instance of `Date`."));var o=e.minDate;return o&&r0,G="century"!==W,U=function(e,t){switch(e){case"century":return Object(u.getPreviousCenturyStart)(t);case"decade":return Object(u.getPreviousDecadeStart)(t);case"year":return Object(u.getPreviousYearStart)(t);case"month":return Object(u.getPreviousMonthStart)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,t),q=G&&P(W,t),Y=D(W,t),X=G&&N(W,t),K=function(){if(U.getFullYear()<0)return!0;var e=function(e,t){switch(e){case"century":return Object(u.getPreviousCenturyEnd)(t);case"decade":return Object(u.getPreviousDecadeEnd)(t);case"year":return Object(u.getPreviousYearEnd)(t);case"month":return Object(u.getPreviousMonthEnd)(t);default:throw new Error("Invalid rangeType: ".concat(e))}}(W,t);return h&&h>=e}(),$=G&&function(){if(q.getFullYear()<0)return!0;var e=R(W,t);return h&&h>=e}(),Z=d&&d<=Y,J=G&&d&&d<=X;function ee(e){var t=function(){switch(W){case"century":return function(e,t,n){return I(e,t,Object(u.getCenturyRange)(n))}(l,s,e);case"decade":return z(l,s,e);case"year":return s(l,e);case"month":return o(l,e);default:throw new Error("Invalid view: ".concat(W,"."))}}();return g?g({date:e,label:t,locale:l||Object(c.getUserLocale)(),view:W}):t}return i.a.createElement("div",{className:Q,style:{display:"flex"}},null!==T&&G&&i.a.createElement("button",{"aria-label":O,className:"".concat(Q,"__arrow ").concat(Q,"__prev2-button"),disabled:$,onClick:function(){j(q)},type:"button"},T),null!==B&&i.a.createElement("button",{"aria-label":L,className:"".concat(Q,"__arrow ").concat(Q,"__prev-button"),disabled:K,onClick:function(){j(U)},type:"button"},B),function(){var e="".concat(Q,"__label");return i.a.createElement("button",{"aria-label":f,className:e,disabled:!H,onClick:n,style:{flexGrow:1},type:"button"},i.a.createElement("span",{className:"".concat(e,"__labelText ").concat(e,"__labelText--from")},ee(t)),V&&i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"".concat(e,"__divider")}," ","\u2013"," "),i.a.createElement("span",{className:"".concat(e,"__labelText ").concat(e,"__labelText--to")},ee(Y))))}(),null!==M&&i.a.createElement("button",{"aria-label":x,className:"".concat(Q,"__arrow ").concat(Q,"__next-button"),disabled:Z,onClick:function(){j(Y)},type:"button"},M),null!==b&&G&&i.a.createElement("button",{"aria-label":v,className:"".concat(Q,"__arrow ").concat(Q,"__next2-button"),disabled:J,onClick:function(){j(X)},type:"button"},b))}function te(){return(te=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ae(e){return"".concat(e,"%")}function se(e){var t=e.children,n=e.className,r=e.direction,o=e.count,a=e.offset,s=e.style,l=e.wrap,c=ie(e,["children","className","direction","count","offset","style","wrap"]);return i.a.createElement("div",te({className:n,style:re({display:"flex",flexDirection:r,flexWrap:l?"wrap":"no-wrap"},s)},c),i.a.Children.map(t,function(e,t){return i.a.cloneElement(e,re(re({},e.props),{},{style:{flexBasis:ae(100/o),maxWidth:ae(100/o),overflow:"hidden",marginLeft:a&&0===t?ae(100*a/o):null}}))}))}function le(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e}function de(e,t){return ue(e[0],t)||ue(e[1],t)}function he(e,t,n){var r=[];if(de(t,e)){r.push(n);var o=ue(e[0],t),i=ue(e[1],t);o&&r.push("".concat(n,"Start")),i&&r.push("".concat(n,"End")),o&&i&&r.push("".concat(n,"BothEnds"))}return r}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,o=e.dateType,i=e.hover,a="react-calendar__tile",s=[a];if(!r)return s;if(!Array.isArray(r)&&!o)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,c=Array.isArray(r)?r:F(o,r);if(ue(l,c)&&s.push("".concat(a,"--now")),!t)return s;if(!Array.isArray(t)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var u,d,h=Array.isArray(t)?t:F(n,t);d=c,(u=h)[0]<=d[0]&&u[1]>=d[1]?s.push("".concat(a,"--active")):de(h,c)&&s.push("".concat(a,"--hasActive"));var p=he(h,c,"".concat(a,"--range"));if(s.push.apply(s,le(p)),i){var f=he(i>h[1]?[h[1],i]:[i,h[0]],c,"".concat(a,"--hover"));s.push.apply(s,le(f))}return s}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function be(e){for(var t=e.className,n=e.count,r=void 0===n?3:n,o=e.dateTransform,a=e.dateType,s=e.end,l=e.hover,c=e.offset,u=e.start,d=e.step,h=void 0===d?1:d,p=e.tile,f=e.value,g=e.valueType,m=ye(e,["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"]),v=[],y=u;y<=s;y+=h){var b=o(y);v.push(i.a.createElement(p,ve({key:b.getTime(),classes:pe({value:f,valueType:g,date:b,dateType:a,hover:l}),date:b,point:y},m)))}return i.a.createElement(se,{className:t,count:r,offset:c,wrap:!0},v)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;to||c&&u(c)=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}ke.propTypes=we(we({},J),{},{children:s.a.node.isRequired,formatAbbr:s.a.func,maxDateTransform:s.a.func.isRequired,minDateTransform:s.a.func.isRequired});var Fe="react-calendar__century-view__decades__decade";function Ie(e){var t=e.classes,n=e.formatYear,r=void 0===n?S:n,o=Re(e,["classes","formatYear"]),a=o.date,s=o.locale;return i.a.createElement(ke,Le({},o,{classes:[].concat(t,Fe),maxDateTransform:u.getDecadeEnd,minDateTransform:u.getDecadeStart,view:"century"}),z(s,r,a))}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(){return(je=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Ie.propTypes=Pe(Pe({},J),{},{formatYear:s.a.func}),Ve.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Ke.propTypes=Ge(Ge({},J),{},{formatYear:s.a.func}),Qe.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}st.propTypes=nt(nt({},J),{},{formatMonth:s.a.func,formatMonthYear:s.a.func}),ht.propTypes=ct(ct({},Z),{},{locale:s.a.string});var bt="react-calendar__month-view__days__day";function Ct(e){var t=e.formatDay,n=void 0===t?y:t,r=e.formatLongDate,o=void 0===r?b:r,a=e.calendarType,s=e.classes,l=e.currentMonthIndex,c=yt(e,["formatDay","formatLongDate","calendarType","classes","currentMonthIndex"]),d=c.date,h=c.locale;return i.a.createElement(ke,vt({},c,{classes:[].concat(s,bt,B(d,a)?"".concat(bt,"--weekend"):null,d.getMonth()!==l?"".concat(bt,"--neighboringMonth"):null),formatAbbr:o,maxDateTransform:u.getDayEnd,minDateTransform:u.getDayStart,view:"month"}),n(h,d))}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(){return(_t=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Mt(e){var t=e.activeStartDate,n=e.calendarType,r=e.showFixedNumberOfWeeks,o=e.showNeighboringMonth,a=St(e,["showFixedNumberOfWeeks","showNeighboringMonth"]),s=Object(u.getYear)(t),l=Object(u.getMonth)(t),c=r||o,d=A(t,n),h=c?0:d,p=1+(c?-d:0),f=function(){if(r)return p+42-1;var e=Object(u.getDaysInMonth)(t);if(o){var i=new Date;return i.setFullYear(s,l,e),i.setHours(0,0,0,0),e+(7-A(i,n)-1)}return e}();return i.a.createElement(be,_t({},a,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:l,dateTransform:function(e){var t=new Date;return t.setFullYear(s,l,e),t.setHours(0,0,0,0),t},dateType:"day",end:f,offset:h,start:p,tile:Ct}))}Ct.propTypes=gt(gt({},J),{},{currentMonthIndex:s.a.number.isRequired,formatDay:s.a.func,formatLongDate:s.a.func}),Mt.propTypes=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:f.ISO_8601)===f.US?f.US:f.ISO_8601,r=T(e,n),o=Object(u.getYear)(e)+1;do{t=T(new Date(o,0,n===f.ISO_8601?4:1),n),o-=1}while(e-t<0);return Math.round((r-t)/6048e5)+1}(e,n)});return i.a.createElement(se,{className:"react-calendar__month-view__weekNumbers",count:s,direction:"column",onFocus:o,onMouseOver:o,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},c.map(function(e,t){return i.a.createElement(Tt,{key:e,date:l[t],onClickWeekNumber:r,weekNumber:e})}))}function Dt(){return(Dt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nt(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,o=e.showFixedNumberOfWeeks,a=e.calendarType,s=void 0===a?function(e){return Object.keys(g).find(function(t){return g[t].includes(e)})||f.ISO_8601}(n):a,c=e.formatShortWeekday,u=e.onClickWeekNumber,d=e.showWeekNumbers,h=Pt(e,["calendarType","formatShortWeekday","onClickWeekNumber","showWeekNumbers"]);return i.a.createElement("div",{className:Object(l.default)("react-calendar__month-view",d?"".concat("react-calendar__month-view","--weekNumbers"):"")},i.a.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},d?i.a.createElement(kt,{activeStartDate:t,calendarType:s,onClickWeekNumber:u,onMouseLeave:r,showFixedNumberOfWeeks:o}):null,i.a.createElement("div",{style:{flexGrow:1,width:"100%"}},i.a.createElement(Ot,{calendarType:s,formatShortWeekday:c,locale:n,onMouseLeave:r}),i.a.createElement(Mt,Dt({calendarType:s},h)))))}function Lt(){return(Lt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne?t:n&&n0}}])&&Ft(t.prototype,n),r&&Ft(t,r),s}();sn.defaultProps={maxDate:Yt,maxDetail:"month",minDate:qt,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var ln=s.a.instanceOf(Date),cn=s.a.oneOfType([s.a.string,X]);sn.propTypes={activeStartDate:ln,allowPartialRange:s.a.bool,calendarType:H,className:G,defaultActiveStartDate:ln,defaultValue:cn,defaultView:$,formatDay:s.a.func,formatLongDate:s.a.func,formatMonth:s.a.func,formatMonthYear:s.a.func,formatShortWeekday:s.a.func,formatYear:s.a.func,inputRef:Y,locale:s.a.string,maxDate:q,maxDetail:s.a.oneOf(Xt),minDate:U,minDetail:s.a.oneOf(Xt),navigationAriaLabel:s.a.string,navigationLabel:s.a.func,next2AriaLabel:s.a.string,next2Label:s.a.node,nextAriaLabel:s.a.string,nextLabel:s.a.node,onActiveStartDateChange:s.a.func,onChange:s.a.func,onClickDay:s.a.func,onClickDecade:s.a.func,onClickMonth:s.a.func,onClickWeekNumber:s.a.func,onClickYear:s.a.func,onDrillDown:s.a.func,onDrillUp:s.a.func,onViewChange:s.a.func,prev2AriaLabel:s.a.string,prev2Label:s.a.node,prevAriaLabel:s.a.string,prevLabel:s.a.node,returnValue:s.a.oneOf(["start","end","range"]),selectRange:s.a.bool,showDoubleView:s.a.bool,showFixedNumberOfWeeks:s.a.bool,showNavigation:s.a.bool,showNeighboringMonth:s.a.bool,showWeekNumbers:s.a.bool,tileClassName:s.a.oneOfType([s.a.func,G]),tileContent:s.a.oneOfType([s.a.func,s.a.node]),tileDisabled:s.a.func,value:cn,view:$};t.default=sn},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return A});var r=n(0),o=n.n(r),i=n(27),a=n(72),s=n.n(a),l=function(e){return e.getBoundingClientRect()},c=function(e,t){return{get collidedTop(){return l(e).topl(t).bottom},get collidedLeft(){return l(e).leftl(t).right},get overflowTop(){return l(t).top-l(e).top},get overflowBottom(){return l(e).bottom-l(t).bottom},get overflowLeft(){return l(t).left-l(e).left},get overflowRight(){return l(e).right-l(t).right}}},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;tD,t=l[E]&&parseInt(l[E],10);function n(e){t&&e's child will not fit anywhere with its current ".concat(E," of ").concat(t,"px."));var n=Math.max(e,t||0);u("'s child needed to have its ".concat(v," decreased to ").concat(n,"px.")),r.style[v]="".concat(n,"px")}e?(n(T),N()):(n(D),L())}()}function O(e){var t=e.invertAxis,n=e.invertSecondaryAxis,r=m(e,["invertAxis","invertSecondaryAxis"]);!function(e){E(e)}(y(y({},r),{},{invertAxis:t})),function(e){E(y(y({},e),{},{axis:"x"===e.axis?"y":"x",secondary:!0}))}(y(y({},r),{},{invertAxis:n}))}var A=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,r["Component"]);var t,n,a,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r's child does not have absolute position. You should apply `position: absolute` to it."),o.style.position="absolute");var l=window.getComputedStyle(s).position;"relative"!==l&&"absolute"!==l&&(u("'s parent does not have relative position. You should apply `position: relative` to it."),s.style.position="relative");var c=e.props;O({container:r,element:o,invertAxis:c.invertAxis,invertSecondaryAxis:c.invertSecondaryAxis,axis:c.mainAxis,scrollContainer:n,spacing:c.spacing})}}}}),e}return t=l,(n=[{key:"componentDidMount",value:function(){if(!x){var e=Object(i.findDOMNode)(this);this.container=e,this.element=e,this.scrollContainer=M(e)}this.fit(),_&&this.mutationObserver.observe(this.element,{attributes:!0,attributeFilter:["class","style"]})}},{key:"render",value:function(){var e=this,t=this.props.children,n=o.a.Children.only(t);return x?o.a.createElement("span",{ref:function(t){e.container=t;var n=t&&t.firstChild;e.element=n,e.scrollContainer=M(n)},style:{display:"contents"}},n):n}}])&&d(t.prototype,n),a&&d(t,a),l}();A.propTypes={children:s.a.node,invertAxis:s.a.bool,invertSecondaryAxis:s.a.bool,mainAxis:s.a.oneOf(["x","y"]),spacing:s.a.oneOfType([s.a.number,s.a.shape({bottom:s.a.number.isRequired,left:s.a.number.isRequired,right:s.a.number.isRequired,top:s.a.number.isRequired})])},A.defaultProps={mainAxis:"y",spacing:8}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=n(115);function i(e){var t=e.i18n,n=e.defaultNS,i=e.children,a=Object(r.useMemo)(function(){return{i18n:t,defaultNS:n}},[t,n]);return Object(r.createElement)(o.a.Provider,{value:a},i)}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(329),o=n.n(r),i=n(35),a=n.n(i),s=n(0),l=n(115);var c={};function u(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(l.a)||{},i=r.i18n,a=r.defaultNS,c=n||i||Object(l.d)();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new l.b),!c){u("You will need to pass in an i18next instance by using initReactI18next");var h=function(e){return Array.isArray(e)?e[e.length-1]:e},f=[h,{},!1];return f.t=h,f.i18n={},f.ready=!1,f}c.options.react&&void 0!==c.options.react.wait&&u("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var g=p(p(p({},Object(l.c)()),c.options.react),t),m=g.useSuspense,v=e||a||c.options&&c.options.defaultNS;v="string"===typeof v?[v]:v||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(v);var y=(c.isInitialized||c.initializedStoreOnce)&&v.every(function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return u("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}(e,c,g)});function b(){return c.getFixedT(null,"fallback"===g.nsMode?v:v[0])}var C=Object(s.useState)(b),w=o()(C,2),x=w[0],_=w[1],S=Object(s.useRef)(!0);Object(s.useEffect)(function(){var e=g.bindI18n,t=g.bindI18nStore;function n(){S.current&&_(b)}return S.current=!0,y||m||d(c,v,function(){S.current&&_(b)}),e&&c&&c.on(e,n),t&&c&&c.store.on(t,n),function(){S.current=!1,e&&c&&e.split(" ").forEach(function(e){return c.off(e,n)}),t&&c&&t.split(" ").forEach(function(e){return c.store.off(e,n)})}},[c,v.join()]);var M=Object(s.useRef)(!0);Object(s.useEffect)(function(){S.current&&!M.current&&_(b),M.current=!1},[c]);var E=[x,c,y];if(E.t=x,E.i18n=c,E.ready=y,y)return E;if(!y&&!m)return E;throw new Promise(function(e){d(c,v,function(){e()})})}}]]); //# sourceMappingURL=2.327d35f1.chunk.js.map