text: /**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function checkWidth(){var t=$window.width();$.getScript("./scripts/my-js/warning-bug.js",function(){t>768?(console.log("window width 768 -- 420"),WarningBug.cleanWarningBug()):t<769&&t>420?(console.log("window width > 768"),WarningBug.done()):t<=420&&(console.log("window width <= 420"),WarningBug.done())})}function activeOneTabAni(t,e,i){var n=new TimelineMax({pause:!0}),r=[],s=[];$.each(t,function(t,e){t<i?r.push(e):t>i&&s.push(e)}),n.set(t,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"}).to(e,.7,{scale:1.25,transformOrigin:"50% 50%",backgroundColor:"rgba(69, 98, 193, 1)",ease:Elastic.easeInOut.config(1,.1)}).staggerTo(r.reverse(),.25,{scale:1.05,transformOrigin:"100% 50%",backgroundColor:"rgba(99, 167, 174, 1)"},.05,"startPoint").staggerTo(r.reverse(),.2,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"},.05,"endPoint").staggerTo(s,.25,{scale:1.05,transformOrigin:"0% 50%",backgroundColor:"rgba(99, 167, 174, 1)"},.05,"startPoint").staggerTo(s,.2,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"},.05,"endPoint"),n.play(),n.timeScale(2.5)}function getRandomArbitrary(t,e){return Math.random()*(e-t)+t}function getRandomInt(t,e){return Math.floor(Math.random()*(e-t+1))+t}var componentHandler={upgradeDom:function(t,e){},upgradeElement:function(t,e){},upgradeElements:function(t){},upgradeAllRegistered:function(){},registerUpgradedCallback:function(t,e){},register:function(t){},downgradeElements:function(t){}};componentHandler=function(){"use strict";function t(t,e){for(var i=0;i<c.length;i++)if(c[i].className===t)return"undefined"!=typeof e&&(c[i]=e),c[i];return!1}function e(t){var e=t.getAttribute("data-upgraded");return null===e?[""]:e.split(",")}function i(t,i){var n=e(t);return n.indexOf(i)!==-1}function n(e,i){if("undefined"==typeof e&&"undefined"==typeof i)for(var s=0;s<c.length;s++)n(c[s].className,c[s].cssClass);else{var a=e;if("undefined"==typeof i){var o=t(a);o&&(i=o.cssClass)}for(var l=document.querySelectorAll("."+i),h=0;h<l.length;h++)r(l[h],a)}}function r(n,r){if(!("object"==typeof n&&n instanceof Element))throw new Error("Invalid argument provided to upgrade MDL element.");var s=e(n),a=[];if(r)i(n,r)||a.push(t(r));else{var o=n.classList;c.forEach(function(t){o.contains(t.cssClass)&&a.indexOf(t)===-1&&!i(n,t.className)&&a.push(t)})}for(var l,h=0,u=a.length;h<u;h++){if(l=a[h],!l)throw new Error("Unable to find a registered component for the given class.");s.push(l.className),n.setAttribute("data-upgraded",s.join(","));var p=new l.classConstructor(n);p[f]=l,d.push(p);for(var g=0,m=l.callbacks.length;g<m;g++)l.callbacks[g](n);l.widget&&(n[l.className]=p);var _;"CustomEvent"in window&&"function"==typeof window.CustomEvent?_=new CustomEvent("mdl-componentupgraded",{bubbles:!0,cancelable:!1}):(_=document.createEvent("Events"),_.initEvent("mdl-componentupgraded",!0,!0)),n.dispatchEvent(_)}}function s(t){Array.isArray(t)||(t=t instanceof Element?[t]:Array.prototype.slice.call(t));for(var e,i=0,n=t.length;i<n;i++)e=t[i],e instanceof HTMLElement&&(r(e),e.children.length>0&&s(e.children))}function a(e){var i="undefined"==typeof e.widget&&"undefined"==typeof e.widget,n=!0;i||(n=e.widget||e.widget);var r={classConstructor:e.constructor||e.constructor,className:e.classAsString||e.classAsString,cssClass:e.cssClass||e.cssClass,widget:n,callbacks:[]};if(c.forEach(function(t){if(t.cssClass===r.cssClass)throw new Error("The provided cssClass has already been registered: "+t.cssClass);if(t.className===r.className)throw new Error("The provided className has already been registered")}),e.constructor.prototype.hasOwnProperty(f))throw new Error("MDL component classes must not have "+f+" defined as a property.");var s=t(e.classAsString,r);s||c.push(r)}function o(e,i){var n=t(e);n&&n.callbacks.push(i)}function l(){for(var t=0;t<c.length;t++)n(c[t].className)}function h(t){if(t){var e=d.indexOf(t);d.splice(e,1);var i=t.element_.getAttribute("data-upgraded").split(","),n=i.indexOf(t[f].classAsString);i.splice(n,1),t.element_.setAttribute("data-upgraded",i.join(","));var r;"CustomEvent"in window&&"function"==typeof window.CustomEvent?r=new CustomEvent("mdl-componentdowngraded",{bubbles:!0,cancelable:!1}):(r=document.createEvent("Events"),r.initEvent("mdl-componentdowngraded",!0,!0)),t.element_.dispatchEvent(r)}}function u(t){var e=function(t){d.filter(function(e){return e.element_===t}).forEach(h)};if(t instanceof Array||t instanceof NodeList)for(var i=0;i<t.length;i++)e(t[i]);else{if(!(t instanceof Node))throw new Error("Invalid argument provided to downgrade MDL nodes.");e(t)}}var c=[],d=[],f="mdlComponentConfigInternal_";return{upgradeDom:n,upgradeElement:r,upgradeElements:s,upgradeAllRegistered:l,registerUpgradedCallback:o,register:a,downgradeElements:u}}(),componentHandler.ComponentConfigPublic,componentHandler.ComponentConfig,componentHandler.Component,componentHandler.upgradeDom=componentHandler.upgradeDom,componentHandler.upgradeElement=componentHandler.upgradeElement,componentHandler.upgradeElements=componentHandler.upgradeElements,componentHandler.upgradeAllRegistered=componentHandler.upgradeAllRegistered,componentHandler.registerUpgradedCallback=componentHandler.registerUpgradedCallback,componentHandler.register=componentHandler.register,componentHandler.downgradeElements=componentHandler.downgradeElements,window.componentHandler=componentHandler,window.componentHandler=componentHandler,window.addEventListener("load",function(){"use strict";"classList"in document.createElement("div")&&"querySelector"in document&&"addEventListener"in window&&Array.prototype.forEach?(document.documentElement.classList.add("mdl-js"),componentHandler.upgradeAllRegistered()):(componentHandler.upgradeElement=function(){},componentHandler.register=function(){})}),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialButton=t,t.prototype.Constant_={},t.prototype.CssClasses_={RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-button__ripple-container",RIPPLE:"mdl-ripple"},t.prototype.blurHandler_=function(t){t&&this.element_.blur()},t.prototype.disable=function(){this.element_.disabled=!0},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.element_.disabled=!1},t.prototype.enable=t.prototype.enable,t.prototype.init=function(){if(this.element_){if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleElement_=document.createElement("span"),this.rippleElement_.classList.add(this.CssClasses_.RIPPLE),t.appendChild(this.rippleElement_),this.boundRippleBlurHandler=this.blurHandler_.bind(this),this.rippleElement_.addEventListener("mouseup",this.boundRippleBlurHandler),this.element_.appendChild(t)}this.boundButtonBlurHandler=this.blurHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundButtonBlurHandler),this.element_.addEventListener("mouseleave",this.boundButtonBlurHandler)}},componentHandler.register({constructor:t,classAsString:"MaterialButton",cssClass:"mdl-js-button",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialCheckbox=t,t.prototype.Constant_={TINY_TIMEOUT:.001},t.prototype.CssClasses_={INPUT:"mdl-checkbox__input",BOX_OUTLINE:"mdl-checkbox__box-outline",FOCUS_HELPER:"mdl-checkbox__focus-helper",TICK_OUTLINE:"mdl-checkbox__tick-outline",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-checkbox__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked",IS_UPGRADED:"is-upgraded"},t.prototype.onChange_=function(t){this.updateClasses_()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onMouseUp_=function(t){this.blur_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},t.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},t.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},t.prototype.checkToggleState=t.prototype.checkToggleState,t.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkDisabled=t.prototype.checkDisabled,t.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},t.prototype.enable=t.prototype.enable,t.prototype.check=function(){this.inputElement_.checked=!0,this.updateClasses_()},t.prototype.check=t.prototype.check,t.prototype.uncheck=function(){this.inputElement_.checked=!1,this.updateClasses_()},t.prototype.uncheck=t.prototype.uncheck,t.prototype.init=function(){if(this.element_){this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT);var t=document.createElement("span");t.classList.add(this.CssClasses_.BOX_OUTLINE);var e=document.createElement("span");e.classList.add(this.CssClasses_.FOCUS_HELPER);var i=document.createElement("span");if(i.classList.add(this.CssClasses_.TICK_OUTLINE),t.appendChild(i),this.element_.appendChild(e),this.element_.appendChild(t),this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.boundRippleMouseUp=this.onMouseUp_.bind(this),this.rippleContainerElement_.addEventListener("mouseup",this.boundRippleMouseUp);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(n),this.element_.appendChild(this.rippleContainerElement_)}this.boundInputOnChange=this.onChange_.bind(this),this.boundInputOnFocus=this.onFocus_.bind(this),this.boundInputOnBlur=this.onBlur_.bind(this),this.boundElementMouseUp=this.onMouseUp_.bind(this),this.inputElement_.addEventListener("change",this.boundInputOnChange),this.inputElement_.addEventListener("focus",this.boundInputOnFocus),this.inputElement_.addEventListener("blur",this.boundInputOnBlur),this.element_.addEventListener("mouseup",this.boundElementMouseUp),this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},componentHandler.register({constructor:t,classAsString:"MaterialCheckbox",cssClass:"mdl-js-checkbox",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialIconToggle=t,t.prototype.Constant_={TINY_TIMEOUT:.001},t.prototype.CssClasses_={INPUT:"mdl-icon-toggle__input",JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-icon-toggle__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked"},t.prototype.onChange_=function(t){this.updateClasses_()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onMouseUp_=function(t){this.blur_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},t.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},t.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},t.prototype.checkToggleState=t.prototype.checkToggleState,t.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkDisabled=t.prototype.checkDisabled,t.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},t.prototype.enable=t.prototype.enable,t.prototype.check=function(){this.inputElement_.checked=!0,this.updateClasses_()},t.prototype.check=t.prototype.check,t.prototype.uncheck=function(){this.inputElement_.checked=!1,this.updateClasses_()},t.prototype.uncheck=t.prototype.uncheck,t.prototype.init=function(){if(this.element_){if(this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.element_.classList.contains(this.CssClasses_.JS_RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.JS_RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.boundRippleMouseUp=this.onMouseUp_.bind(this),this.rippleContainerElement_.addEventListener("mouseup",this.boundRippleMouseUp);var t=document.createElement("span");t.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(t),this.element_.appendChild(this.rippleContainerElement_)}this.boundInputOnChange=this.onChange_.bind(this),this.boundInputOnFocus=this.onFocus_.bind(this),this.boundInputOnBlur=this.onBlur_.bind(this),this.boundElementOnMouseUp=this.onMouseUp_.bind(this),this.inputElement_.addEventListener("change",this.boundInputOnChange),this.inputElement_.addEventListener("focus",this.boundInputOnFocus),this.inputElement_.addEventListener("blur",this.boundInputOnBlur),this.element_.addEventListener("mouseup",this.boundElementOnMouseUp),this.updateClasses_(),this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialIconToggle",cssClass:"mdl-js-icon-toggle",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialMenu=t,t.prototype.Constant_={TRANSITION_DURATION_SECONDS:.3,TRANSITION_DURATION_FRACTION:.8,CLOSE_TIMEOUT:150},t.prototype.Keycodes_={ENTER:13,ESCAPE:27,SPACE:32,UP_ARROW:38,DOWN_ARROW:40},t.prototype.CssClasses_={CONTAINER:"mdl-menu__container",OUTLINE:"mdl-menu__outline",ITEM:"mdl-menu__item",ITEM_RIPPLE_CONTAINER:"mdl-menu__item-ripple-container",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE:"mdl-ripple",IS_UPGRADED:"is-upgraded",IS_VISIBLE:"is-visible",IS_ANIMATING:"is-animating",BOTTOM_LEFT:"mdl-menu--bottom-left",BOTTOM_RIGHT:"mdl-menu--bottom-right",TOP_LEFT:"mdl-menu--top-left",TOP_RIGHT:"mdl-menu--top-right",UNALIGNED:"mdl-menu--unaligned"},t.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.classList.add(this.CssClasses_.CONTAINER),this.element_.parentElement.insertBefore(t,this.element_),this.element_.parentElement.removeChild(this.element_),t.appendChild(this.element_),this.container_=t;var e=document.createElement("div");e.classList.add(this.CssClasses_.OUTLINE),this.outline_=e,t.insertBefore(e,this.element_);var i=this.element_.getAttribute("for")||this.element_.getAttribute("data-mdl-for"),n=null;i&&(n=document.getElementById(i),n&&(this.forElement_=n,n.addEventListener("click",this.handleForClick_.bind(this)),n.addEventListener("keydown",this.handleForKeyboardEvent_.bind(this))));var r=this.element_.querySelectorAll("."+this.CssClasses_.ITEM);this.boundItemKeydown_=this.handleItemKeyboardEvent_.bind(this),this.boundItemClick_=this.handleItemClick_.bind(this);for(var s=0;s<r.length;s++)r[s].addEventListener("click",this.boundItemClick_),r[s].tabIndex="-1",r[s].addEventListener("keydown",this.boundItemKeydown_);if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT))for(this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),s=0;s<r.length;s++){var a=r[s],o=document.createElement("span");o.classList.add(this.CssClasses_.ITEM_RIPPLE_CONTAINER);var l=document.createElement("span");l.classList.add(this.CssClasses_.RIPPLE),o.appendChild(l),a.appendChild(o),a.classList.add(this.CssClasses_.RIPPLE_EFFECT)}this.element_.classList.contains(this.CssClasses_.BOTTOM_LEFT)&&this.outline_.classList.add(this.CssClasses_.BOTTOM_LEFT),this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)&&this.outline_.classList.add(this.CssClasses_.BOTTOM_RIGHT),this.element_.classList.contains(this.CssClasses_.TOP_LEFT)&&this.outline_.classList.add(this.CssClasses_.TOP_LEFT),this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)&&this.outline_.classList.add(this.CssClasses_.TOP_RIGHT),this.element_.classList.contains(this.CssClasses_.UNALIGNED)&&this.outline_.classList.add(this.CssClasses_.UNALIGNED),t.classList.add(this.CssClasses_.IS_UPGRADED)}},t.prototype.handleForClick_=function(t){if(this.element_&&this.forElement_){var e=this.forElement_.getBoundingClientRect(),i=this.forElement_.parentElement.getBoundingClientRect();this.element_.classList.contains(this.CssClasses_.UNALIGNED)||(this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)?(this.container_.style.right=i.right-e.right+"px",this.container_.style.top=this.forElement_.offsetTop+this.forElement_.offsetHeight+"px"):this.element_.classList.contains(this.CssClasses_.TOP_LEFT)?(this.container_.style.left=this.forElement_.offsetLeft+"px",this.container_.style.bottom=i.bottom-e.top+"px"):this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?(this.container_.style.right=i.right-e.right+"px",this.container_.style.bottom=i.bottom-e.top+"px"):(this.container_.style.left=this.forElement_.offsetLeft+"px",this.container_.style.top=this.forElement_.offsetTop+this.forElement_.offsetHeight+"px"))}this.toggle(t)},t.prototype.handleForKeyboardEvent_=function(t){if(this.element_&&this.container_&&this.forElement_){var e=this.element_.querySelectorAll("."+this.CssClasses_.ITEM+":not([disabled])");e&&e.length>0&&this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)&&(t.keyCode===this.Keycodes_.UP_ARROW?(t.preventDefault(),e[e.length-1].focus()):t.keyCode===this.Keycodes_.DOWN_ARROW&&(t.preventDefault(),e[0].focus()))}},t.prototype.handleItemKeyboardEvent_=function(t){if(this.element_&&this.container_){var e=this.element_.querySelectorAll("."+this.CssClasses_.ITEM+":not([disabled])");if(e&&e.length>0&&this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)){var i=Array.prototype.slice.call(e).indexOf(t.target);if(t.keyCode===this.Keycodes_.UP_ARROW)t.preventDefault(),i>0?e[i-1].focus():e[e.length-1].focus();else if(t.keyCode===this.Keycodes_.DOWN_ARROW)t.preventDefault(),e.length>i+1?e[i+1].focus():e[0].focus();else if(t.keyCode===this.Keycodes_.SPACE||t.keyCode===this.Keycodes_.ENTER){t.preventDefault();var n=new MouseEvent("mousedown");t.target.dispatchEvent(n),n=new MouseEvent("mouseup"),t.target.dispatchEvent(n),t.target.click()}else t.keyCode===this.Keycodes_.ESCAPE&&(t.preventDefault(),this.hide())}}},t.prototype.handleItemClick_=function(t){t.target.hasAttribute("disabled")?t.stopPropagation():(this.closing_=!0,window.setTimeout(function(t){this.hide(),this.closing_=!1}.bind(this),this.Constant_.CLOSE_TIMEOUT))},t.prototype.applyClip_=function(t,e){this.element_.classList.contains(this.CssClasses_.UNALIGNED)?this.element_.style.clip="":this.element_.classList.contains(this.CssClasses_.BOTTOM_RIGHT)?this.element_.style.clip="rect(0 "+e+"px 0 "+e+"px)":this.element_.classList.contains(this.CssClasses_.TOP_LEFT)?this.element_.style.clip="rect("+t+"px 0 "+t+"px 0)":this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?this.element_.style.clip="rect("+t+"px "+e+"px "+t+"px "+e+"px)":this.element_.style.clip=""},t.prototype.removeAnimationEndListener_=function(e){e.target.classList.remove(t.prototype.CssClasses_.IS_ANIMATING)},t.prototype.addAnimationEndListener_=function(){this.element_.addEventListener("transitionend",this.removeAnimationEndListener_),this.element_.addEventListener("webkitTransitionEnd",this.removeAnimationEndListener_)},t.prototype.show=function(t){if(this.element_&&this.container_&&this.outline_){var e=this.element_.getBoundingClientRect().height,i=this.element_.getBoundingClientRect().width;this.container_.style.width=i+"px",this.container_.style.height=e+"px",this.outline_.style.width=i+"px",this.outline_.style.height=e+"px";for(var n=this.Constant_.TRANSITION_DURATION_SECONDS*this.Constant_.TRANSITION_DURATION_FRACTION,r=this.element_.querySelectorAll("."+this.CssClasses_.ITEM),s=0;s<r.length;s++){var a=null;a=this.element_.classList.contains(this.CssClasses_.TOP_LEFT)||this.element_.classList.contains(this.CssClasses_.TOP_RIGHT)?(e-r[s].offsetTop-r[s].offsetHeight)/e*n+"s":r[s].offsetTop/e*n+"s",r[s].style.transitionDelay=a}this.applyClip_(e,i),window.requestAnimationFrame(function(){this.element_.classList.add(this.CssClasses_.IS_ANIMATING),this.element_.style.clip="rect(0 "+i+"px "+e+"px 0)",this.container_.classList.add(this.CssClasses_.IS_VISIBLE)}.bind(this)),this.addAnimationEndListener_();var o=function(e){e===t||this.closing_||e.target.parentNode===this.element_||(document.removeEventListener("click",o),this.hide())}.bind(this);document.addEventListener("click",o)}},t.prototype.show=t.prototype.show,t.prototype.hide=function(){if(this.element_&&this.container_&&this.outline_){for(var t=this.element_.querySelectorAll("."+this.CssClasses_.ITEM),e=0;e<t.length;e++)t[e].style.removeProperty("transition-delay");var i=this.element_.getBoundingClientRect(),n=i.height,r=i.width;this.element_.classList.add(this.CssClasses_.IS_ANIMATING),this.applyClip_(n,r),this.container_.classList.remove(this.CssClasses_.IS_VISIBLE),this.addAnimationEndListener_()}},t.prototype.hide=t.prototype.hide,t.prototype.toggle=function(t){this.container_.classList.contains(this.CssClasses_.IS_VISIBLE)?this.hide():this.show(t)},t.prototype.toggle=t.prototype.toggle,componentHandler.register({constructor:t,classAsString:"MaterialMenu",cssClass:"mdl-js-menu",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialProgress=t,t.prototype.Constant_={},t.prototype.CssClasses_={INDETERMINATE_CLASS:"mdl-progress__indeterminate"},t.prototype.setProgress=function(t){this.element_.classList.contains(this.CssClasses_.INDETERMINATE_CLASS)||(this.progressbar_.style.width=t+"%")},t.prototype.setProgress=t.prototype.setProgress,t.prototype.setBuffer=function(t){this.bufferbar_.style.width=t+"%",this.auxbar_.style.width=100-t+"%"},t.prototype.setBuffer=t.prototype.setBuffer,t.prototype.init=function(){if(this.element_){var t=document.createElement("div");t.className="progressbar bar bar1",this.element_.appendChild(t),this.progressbar_=t,t=document.createElement("div"),t.className="bufferbar bar bar2",this.element_.appendChild(t),this.bufferbar_=t,t=document.createElement("div"),t.className="auxbar bar bar3",this.element_.appendChild(t),this.auxbar_=t,this.progressbar_.style.width="0%",this.bufferbar_.style.width="100%",this.auxbar_.style.width="0%",this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialProgress",cssClass:"mdl-js-progress",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialRadio=t,t.prototype.Constant_={TINY_TIMEOUT:.001},t.prototype.CssClasses_={IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked",IS_UPGRADED:"is-upgraded",JS_RADIO:"mdl-js-radio",RADIO_BTN:"mdl-radio__button",RADIO_OUTER_CIRCLE:"mdl-radio__outer-circle",RADIO_INNER_CIRCLE:"mdl-radio__inner-circle",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-radio__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple"},t.prototype.onChange_=function(t){for(var e=document.getElementsByClassName(this.CssClasses_.JS_RADIO),i=0;i<e.length;i++){var n=e[i].querySelector("."+this.CssClasses_.RADIO_BTN);n.getAttribute("name")===this.btnElement_.getAttribute("name")&&e[i].MaterialRadio.updateClasses_()}},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onMouseup_=function(t){this.blur_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},t.prototype.blur_=function(){window.setTimeout(function(){this.btnElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},t.prototype.checkDisabled=function(){this.btnElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkDisabled=t.prototype.checkDisabled,t.prototype.checkToggleState=function(){this.btnElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},t.prototype.checkToggleState=t.prototype.checkToggleState,t.prototype.disable=function(){this.btnElement_.disabled=!0,this.updateClasses_()},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.btnElement_.disabled=!1,this.updateClasses_()},t.prototype.enable=t.prototype.enable,t.prototype.check=function(){this.btnElement_.checked=!0,this.onChange_(null)},t.prototype.check=t.prototype.check,t.prototype.uncheck=function(){this.btnElement_.checked=!1,this.onChange_(null)},t.prototype.uncheck=t.prototype.uncheck,t.prototype.init=function(){if(this.element_){this.btnElement_=this.element_.querySelector("."+this.CssClasses_.RADIO_BTN),this.boundChangeHandler_=this.onChange_.bind(this),this.boundFocusHandler_=this.onChange_.bind(this),this.boundBlurHandler_=this.onBlur_.bind(this),this.boundMouseUpHandler_=this.onMouseup_.bind(this);var t=document.createElement("span");t.classList.add(this.CssClasses_.RADIO_OUTER_CIRCLE);var e=document.createElement("span");e.classList.add(this.CssClasses_.RADIO_INNER_CIRCLE),this.element_.appendChild(t),this.element_.appendChild(e);var i;if(this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),i=document.createElement("span"),i.classList.add(this.CssClasses_.RIPPLE_CONTAINER),i.classList.add(this.CssClasses_.RIPPLE_EFFECT),i.classList.add(this.CssClasses_.RIPPLE_CENTER),i.addEventListener("mouseup",this.boundMouseUpHandler_);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),i.appendChild(n),this.element_.appendChild(i)}this.btnElement_.addEventListener("change",this.boundChangeHandler_),this.btnElement_.addEventListener("focus",this.boundFocusHandler_),this.btnElement_.addEventListener("blur",this.boundBlurHandler_),this.element_.addEventListener("mouseup",this.boundMouseUpHandler_),this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},componentHandler.register({constructor:t,classAsString:"MaterialRadio",cssClass:"mdl-js-radio",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.isIE_=window.navigator.msPointerEnabled,this.init()};window.MaterialSlider=t,t.prototype.Constant_={},t.prototype.CssClasses_={IE_CONTAINER:"mdl-slider__ie-container",SLIDER_CONTAINER:"mdl-slider__container",BACKGROUND_FLEX:"mdl-slider__background-flex",BACKGROUND_LOWER:"mdl-slider__background-lower",BACKGROUND_UPPER:"mdl-slider__background-upper",IS_LOWEST_VALUE:"is-lowest-value",IS_UPGRADED:"is-upgraded"},t.prototype.onInput_=function(t){this.updateValueStyles_()},t.prototype.onChange_=function(t){this.updateValueStyles_()},t.prototype.onMouseUp_=function(t){t.target.blur()},t.prototype.onContainerMouseDown_=function(t){if(t.target===this.element_.parentElement){t.preventDefault();var e=new MouseEvent("mousedown",{target:t.target,buttons:t.buttons,clientX:t.clientX,clientY:this.element_.getBoundingClientRect().y});this.element_.dispatchEvent(e)}},t.prototype.updateValueStyles_=function(){var t=(this.element_.value-this.element_.min)/(this.element_.max-this.element_.min);0===t?this.element_.classList.add(this.CssClasses_.IS_LOWEST_VALUE):this.element_.classList.remove(this.CssClasses_.IS_LOWEST_VALUE),this.isIE_||(this.backgroundLower_.style.flex=t,this.backgroundLower_.style.webkitFlex=t,this.backgroundUpper_.style.flex=1-t,this.backgroundUpper_.style.webkitFlex=1-t)},t.prototype.disable=function(){this.element_.disabled=!0},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.element_.disabled=!1},t.prototype.enable=t.prototype.enable,t.prototype.change=function(t){"undefined"!=typeof t&&(this.element_.value=t),this.updateValueStyles_()},t.prototype.change=t.prototype.change,t.prototype.init=function(){if(this.element_){if(this.isIE_){var t=document.createElement("div");t.classList.add(this.CssClasses_.IE_CONTAINER),this.element_.parentElement.insertBefore(t,this.element_),this.element_.parentElement.removeChild(this.element_),t.appendChild(this.element_)}else{var e=document.createElement("div");e.classList.add(this.CssClasses_.SLIDER_CONTAINER),this.element_.parentElement.insertBefore(e,this.element_),this.element_.parentElement.removeChild(this.element_),e.appendChild(this.element_);var i=document.createElement("div");i.classList.add(this.CssClasses_.BACKGROUND_FLEX),e.appendChild(i),this.backgroundLower_=document.createElement("div"),this.backgroundLower_.classList.add(this.CssClasses_.BACKGROUND_LOWER),i.appendChild(this.backgroundLower_),this.backgroundUpper_=document.createElement("div"),this.backgroundUpper_.classList.add(this.CssClasses_.BACKGROUND_UPPER),i.appendChild(this.backgroundUpper_)}this.boundInputHandler=this.onInput_.bind(this),this.boundChangeHandler=this.onChange_.bind(this),this.boundMouseUpHandler=this.onMouseUp_.bind(this),this.boundContainerMouseDownHandler=this.onContainerMouseDown_.bind(this),this.element_.addEventListener("input",this.boundInputHandler),this.element_.addEventListener("change",this.boundChangeHandler),this.element_.addEventListener("mouseup",this.boundMouseUpHandler),this.element_.parentElement.addEventListener("mousedown",this.boundContainerMouseDownHandler),this.updateValueStyles_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},componentHandler.register({constructor:t,classAsString:"MaterialSlider",cssClass:"mdl-js-slider",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialSpinner=t,t.prototype.Constant_={MDL_SPINNER_LAYER_COUNT:4},t.prototype.CssClasses_={MDL_SPINNER_LAYER:"mdl-spinner__layer",MDL_SPINNER_CIRCLE_CLIPPER:"mdl-spinner__circle-clipper",MDL_SPINNER_CIRCLE:"mdl-spinner__circle",MDL_SPINNER_GAP_PATCH:"mdl-spinner__gap-patch",MDL_SPINNER_LEFT:"mdl-spinner__left",MDL_SPINNER_RIGHT:"mdl-spinner__right"},t.prototype.createLayer=function(t){var e=document.createElement("div");e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER),e.classList.add(this.CssClasses_.MDL_SPINNER_LAYER+"-"+t);var i=document.createElement("div");i.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),i.classList.add(this.CssClasses_.MDL_SPINNER_LEFT);var n=document.createElement("div");n.classList.add(this.CssClasses_.MDL_SPINNER_GAP_PATCH);var r=document.createElement("div");r.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE_CLIPPER),r.classList.add(this.CssClasses_.MDL_SPINNER_RIGHT);for(var s=[i,n,r],a=0;a<s.length;a++){var o=document.createElement("div");o.classList.add(this.CssClasses_.MDL_SPINNER_CIRCLE),s[a].appendChild(o)}e.appendChild(i),e.appendChild(n),e.appendChild(r),this.element_.appendChild(e)},t.prototype.createLayer=t.prototype.createLayer,t.prototype.stop=function(){this.element_.classList.remove("is-active")},t.prototype.stop=t.prototype.stop,t.prototype.start=function(){this.element_.classList.add("is-active")},t.prototype.start=t.prototype.start,t.prototype.init=function(){if(this.element_){for(var t=1;t<=this.Constant_.MDL_SPINNER_LAYER_COUNT;t++)this.createLayer(t);this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialSpinner",cssClass:"mdl-js-spinner",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialSwitch=t,t.prototype.Constant_={TINY_TIMEOUT:.001},t.prototype.CssClasses_={INPUT:"mdl-switch__input",TRACK:"mdl-switch__track",THUMB:"mdl-switch__thumb",FOCUS_HELPER:"mdl-switch__focus-helper",RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE_CONTAINER:"mdl-switch__ripple-container",RIPPLE_CENTER:"mdl-ripple--center",RIPPLE:"mdl-ripple",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_CHECKED:"is-checked"},t.prototype.onChange_=function(t){this.updateClasses_()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onMouseUp_=function(t){this.blur_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkToggleState()},t.prototype.blur_=function(){window.setTimeout(function(){this.inputElement_.blur()}.bind(this),this.Constant_.TINY_TIMEOUT)},t.prototype.checkDisabled=function(){this.inputElement_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkDisabled=t.prototype.checkDisabled,t.prototype.checkToggleState=function(){this.inputElement_.checked?this.element_.classList.add(this.CssClasses_.IS_CHECKED):this.element_.classList.remove(this.CssClasses_.IS_CHECKED)},t.prototype.checkToggleState=t.prototype.checkToggleState,t.prototype.disable=function(){this.inputElement_.disabled=!0,this.updateClasses_()},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.inputElement_.disabled=!1,this.updateClasses_()},t.prototype.enable=t.prototype.enable,t.prototype.on=function(){this.inputElement_.checked=!0,this.updateClasses_()},t.prototype.on=t.prototype.on,t.prototype.off=function(){this.inputElement_.checked=!1,this.updateClasses_()},t.prototype.off=t.prototype.off,t.prototype.init=function(){if(this.element_){this.inputElement_=this.element_.querySelector("."+this.CssClasses_.INPUT);var t=document.createElement("div");t.classList.add(this.CssClasses_.TRACK);var e=document.createElement("div");e.classList.add(this.CssClasses_.THUMB);var i=document.createElement("span");if(i.classList.add(this.CssClasses_.FOCUS_HELPER),e.appendChild(i),this.element_.appendChild(t),this.element_.appendChild(e),this.boundMouseUpHandler=this.onMouseUp_.bind(this),this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT)){this.element_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS),this.rippleContainerElement_=document.createElement("span"),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CONTAINER),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_EFFECT),this.rippleContainerElement_.classList.add(this.CssClasses_.RIPPLE_CENTER),this.rippleContainerElement_.addEventListener("mouseup",this.boundMouseUpHandler);var n=document.createElement("span");n.classList.add(this.CssClasses_.RIPPLE),this.rippleContainerElement_.appendChild(n),this.element_.appendChild(this.rippleContainerElement_)}this.boundChangeHandler=this.onChange_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.inputElement_.addEventListener("change",this.boundChangeHandler),this.inputElement_.addEventListener("focus",this.boundFocusHandler),this.inputElement_.addEventListener("blur",this.boundBlurHandler),this.element_.addEventListener("mouseup",this.boundMouseUpHandler),this.updateClasses_(),this.element_.classList.add("is-upgraded")}},componentHandler.register({constructor:t,classAsString:"MaterialSwitch",cssClass:"mdl-js-switch",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";function t(t,e){if(t){if(e.element_.classList.contains(e.CssClasses_.MDL_JS_RIPPLE_EFFECT)){var i=document.createElement("span");i.classList.add(e.CssClasses_.MDL_RIPPLE_CONTAINER),i.classList.add(e.CssClasses_.MDL_JS_RIPPLE_EFFECT);var n=document.createElement("span");n.classList.add(e.CssClasses_.MDL_RIPPLE),i.appendChild(n),t.appendChild(i)}t.addEventListener("click",function(i){i.preventDefault();var n=t.href.split("#")[1],r=e.element_.querySelector("#"+n);e.resetTabState_(),e.resetPanelState_(),t.classList.add(e.CssClasses_.ACTIVE_CLASS),r.classList.add(e.CssClasses_.ACTIVE_CLASS)})}}var e=function(t){this.element_=t,this.init()};window.MaterialTabs=e,e.prototype.Constant_={},e.prototype.CssClasses_={TAB_CLASS:"mdl-tabs__tab",PANEL_CLASS:"mdl-tabs__panel",ACTIVE_CLASS:"is-active",UPGRADED_CLASS:"is-upgraded",MDL_JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",MDL_RIPPLE_CONTAINER:"mdl-tabs__ripple-container",MDL_RIPPLE:"mdl-ripple",MDL_JS_RIPPLE_EFFECT_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events"},e.prototype.initTabs_=function(){this.element_.classList.contains(this.CssClasses_.MDL_JS_RIPPLE_EFFECT)&&this.element_.classList.add(this.CssClasses_.MDL_JS_RIPPLE_EFFECT_IGNORE_EVENTS),this.tabs_=this.element_.querySelectorAll("."+this.CssClasses_.TAB_CLASS),this.panels_=this.element_.querySelectorAll("."+this.CssClasses_.PANEL_CLASS);for(var e=0;e<this.tabs_.length;e++)new t(this.tabs_[e],this);this.element_.classList.add(this.CssClasses_.UPGRADED_CLASS)},e.prototype.resetTabState_=function(){for(var t=0;t<this.tabs_.length;t++)this.tabs_[t].classList.remove(this.CssClasses_.ACTIVE_CLASS)},e.prototype.resetPanelState_=function(){for(var t=0;t<this.panels_.length;t++)this.panels_[t].classList.remove(this.CssClasses_.ACTIVE_CLASS)},e.prototype.init=function(){this.element_&&this.initTabs_()},componentHandler.register({constructor:e,classAsString:"MaterialTabs",cssClass:"mdl-js-tabs"})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.maxRows=this.Constant_.NO_MAX_ROWS,this.init()};window.MaterialTextfield=t,t.prototype.Constant_={NO_MAX_ROWS:-1,MAX_ROWS_ATTRIBUTE:"maxrows"},t.prototype.CssClasses_={LABEL:"mdl-textfield__label",INPUT:"mdl-textfield__input",IS_DIRTY:"is-dirty",IS_FOCUSED:"is-focused",IS_DISABLED:"is-disabled",IS_INVALID:"is-invalid",IS_UPGRADED:"is-upgraded",HAS_PLACEHOLDER:"has-placeholder"},t.prototype.onKeyDown_=function(t){var e=t.target.value.split("\n").length;13===t.keyCode&&e>=this.maxRows&&t.preventDefault()},t.prototype.onFocus_=function(t){this.element_.classList.add(this.CssClasses_.IS_FOCUSED)},t.prototype.onBlur_=function(t){this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.onReset_=function(t){this.updateClasses_()},t.prototype.updateClasses_=function(){this.checkDisabled(),this.checkValidity(),this.checkDirty(),this.checkFocus()},t.prototype.checkDisabled=function(){this.input_.disabled?this.element_.classList.add(this.CssClasses_.IS_DISABLED):this.element_.classList.remove(this.CssClasses_.IS_DISABLED)},t.prototype.checkDisabled=t.prototype.checkDisabled,t.prototype.checkFocus=function(){Boolean(this.element_.querySelector(":focus"))?this.element_.classList.add(this.CssClasses_.IS_FOCUSED):this.element_.classList.remove(this.CssClasses_.IS_FOCUSED)},t.prototype.checkFocus=t.prototype.checkFocus,t.prototype.checkValidity=function(){this.input_.validity&&(this.input_.validity.valid?this.element_.classList.remove(this.CssClasses_.IS_INVALID):this.element_.classList.add(this.CssClasses_.IS_INVALID))},t.prototype.checkValidity=t.prototype.checkValidity,t.prototype.checkDirty=function(){this.input_.value&&this.input_.value.length>0?this.element_.classList.add(this.CssClasses_.IS_DIRTY):this.element_.classList.remove(this.CssClasses_.IS_DIRTY)},t.prototype.checkDirty=t.prototype.checkDirty,t.prototype.disable=function(){this.input_.disabled=!0,this.updateClasses_()},t.prototype.disable=t.prototype.disable,t.prototype.enable=function(){this.input_.disabled=!1,this.updateClasses_()},t.prototype.enable=t.prototype.enable,t.prototype.change=function(t){this.input_.value=t||"",this.updateClasses_()},t.prototype.change=t.prototype.change,t.prototype.init=function(){if(this.element_&&(this.label_=this.element_.querySelector("."+this.CssClasses_.LABEL),this.input_=this.element_.querySelector("."+this.CssClasses_.INPUT),this.input_)){this.input_.hasAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE)&&(this.maxRows=parseInt(this.input_.getAttribute(this.Constant_.MAX_ROWS_ATTRIBUTE),10),isNaN(this.maxRows)&&(this.maxRows=this.Constant_.NO_MAX_ROWS)),this.input_.hasAttribute("placeholder")&&this.element_.classList.add(this.CssClasses_.HAS_PLACEHOLDER),this.boundUpdateClassesHandler=this.updateClasses_.bind(this),this.boundFocusHandler=this.onFocus_.bind(this),this.boundBlurHandler=this.onBlur_.bind(this),this.boundResetHandler=this.onReset_.bind(this),this.input_.addEventListener("input",this.boundUpdateClassesHandler),this.input_.addEventListener("focus",this.boundFocusHandler),this.input_.addEventListener("blur",this.boundBlurHandler),this.input_.addEventListener("reset",this.boundResetHandler),this.maxRows!==this.Constant_.NO_MAX_ROWS&&(this.boundKeyDownHandler=this.onKeyDown_.bind(this),this.input_.addEventListener("keydown",this.boundKeyDownHandler));var t=this.element_.classList.contains(this.CssClasses_.IS_INVALID);this.updateClasses_(),this.element_.classList.add(this.CssClasses_.IS_UPGRADED),t&&this.element_.classList.add(this.CssClasses_.IS_INVALID),this.input_.hasAttribute("autofocus")&&(this.element_.focus(),this.checkFocus())}},componentHandler.register({constructor:t,classAsString:"MaterialTextfield",cssClass:"mdl-js-textfield",widget:!0})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialTooltip=t,t.prototype.Constant_={},t.prototype.CssClasses_={IS_ACTIVE:"is-active",BOTTOM:"mdl-tooltip--bottom",LEFT:"mdl-tooltip--left",RIGHT:"mdl-tooltip--right",TOP:"mdl-tooltip--top"},t.prototype.handleMouseEnter_=function(t){var e=t.target.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2,r=-1*(this.element_.offsetWidth/2),s=-1*(this.element_.offsetHeight/2);this.element_.classList.contains(this.CssClasses_.LEFT)||this.element_.classList.contains(this.CssClasses_.RIGHT)?(i=e.width/2,n+s<0?(this.element_.style.top="0",this.element_.style.marginTop="0"):(this.element_.style.top=n+"px",this.element_.style.marginTop=s+"px")):i+r<0?(this.element_.style.left="0",this.element_.style.marginLeft="0"):(this.element_.style.left=i+"px",this.element_.style.marginLeft=r+"px"),this.element_.classList.contains(this.CssClasses_.TOP)?this.element_.style.top=e.top-this.element_.offsetHeight-10+"px":this.element_.classList.contains(this.CssClasses_.RIGHT)?this.element_.style.left=e.left+e.width+10+"px":this.element_.classList.contains(this.CssClasses_.LEFT)?this.element_.style.left=e.left-this.element_.offsetWidth-10+"px":this.element_.style.top=e.top+e.height+10+"px",this.element_.classList.add(this.CssClasses_.IS_ACTIVE)},t.prototype.hideTooltip_=function(){this.element_.classList.remove(this.CssClasses_.IS_ACTIVE)},t.prototype.init=function(){if(this.element_){var t=this.element_.getAttribute("for")||this.element_.getAttribute("data-mdl-for");t&&(this.forElement_=document.getElementById(t)),this.forElement_&&(this.forElement_.hasAttribute("tabindex")||this.forElement_.setAttribute("tabindex","0"),this.boundMouseEnterHandler=this.handleMouseEnter_.bind(this),this.boundMouseLeaveAndScrollHandler=this.hideTooltip_.bind(this),this.forElement_.addEventListener("mouseenter",this.boundMouseEnterHandler,!1),this.forElement_.addEventListener("touchend",this.boundMouseEnterHandler,!1),this.forElement_.addEventListener("mouseleave",this.boundMouseLeaveAndScrollHandler,!1),window.addEventListener("scroll",this.boundMouseLeaveAndScrollHandler,!0),window.addEventListener("touchstart",this.boundMouseLeaveAndScrollHandler))}},componentHandler.register({constructor:t,classAsString:"MaterialTooltip",cssClass:"mdl-tooltip"})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";function t(t,e,i,n){function r(){var r=t.href.split("#")[1],s=n.content_.querySelector("#"+r);n.resetTabState_(e),n.resetPanelState_(i),t.classList.add(n.CssClasses_.IS_ACTIVE),s.classList.add(n.CssClasses_.IS_ACTIVE)}if(n.tabBar_.classList.contains(n.CssClasses_.JS_RIPPLE_EFFECT)){var s=document.createElement("span");s.classList.add(n.CssClasses_.RIPPLE_CONTAINER),s.classList.add(n.CssClasses_.JS_RIPPLE_EFFECT);var a=document.createElement("span");a.classList.add(n.CssClasses_.RIPPLE),s.appendChild(a),t.appendChild(s)}t.addEventListener("click",function(e){"#"===t.getAttribute("href").charAt(0)&&(e.preventDefault(),r())}),t.show=r}var e=function(t){this.element_=t,this.init()};window.MaterialLayout=e,e.prototype.Constant_={MAX_WIDTH:"(max-width: 1024px)",TAB_SCROLL_PIXELS:100,RESIZE_TIMEOUT:100,MENU_ICON:"&#xE5D2;",CHEVRON_LEFT:"chevron_left",CHEVRON_RIGHT:"chevron_right"},e.prototype.Keycodes_={ENTER:13,ESCAPE:27,SPACE:32},e.prototype.Mode_={STANDARD:0,SEAMED:1,WATERFALL:2,SCROLL:3},e.prototype.CssClasses_={CONTAINER:"mdl-layout__container",HEADER:"mdl-layout__header",DRAWER:"mdl-layout__drawer",CONTENT:"mdl-layout__content",DRAWER_BTN:"mdl-layout__drawer-button",ICON:"material-icons",JS_RIPPLE_EFFECT:"mdl-js-ripple-effect",RIPPLE_CONTAINER:"mdl-layout__tab-ripple-container",RIPPLE:"mdl-ripple",RIPPLE_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",HEADER_SEAMED:"mdl-layout__header--seamed",HEADER_WATERFALL:"mdl-layout__header--waterfall",HEADER_SCROLL:"mdl-layout__header--scroll",FIXED_HEADER:"mdl-layout--fixed-header",OBFUSCATOR:"mdl-layout__obfuscator",TAB_BAR:"mdl-layout__tab-bar",TAB_CONTAINER:"mdl-layout__tab-bar-container",TAB:"mdl-layout__tab",TAB_BAR_BUTTON:"mdl-layout__tab-bar-button",TAB_BAR_LEFT_BUTTON:"mdl-layout__tab-bar-left-button",TAB_BAR_RIGHT_BUTTON:"mdl-layout__tab-bar-right-button",PANEL:"mdl-layout__tab-panel",HAS_DRAWER:"has-drawer",HAS_TABS:"has-tabs",HAS_SCROLLING_HEADER:"has-scrolling-header",CASTING_SHADOW:"is-casting-shadow",IS_COMPACT:"is-compact",IS_SMALL_SCREEN:"is-small-screen",IS_DRAWER_OPEN:"is-visible",IS_ACTIVE:"is-active",IS_UPGRADED:"is-upgraded",IS_ANIMATING:"is-animating",ON_LARGE_SCREEN:"mdl-layout--large-screen-only",ON_SMALL_SCREEN:"mdl-layout--small-screen-only"},e.prototype.contentScrollHandler_=function(){if(!this.header_.classList.contains(this.CssClasses_.IS_ANIMATING)){var t=!this.element_.classList.contains(this.CssClasses_.IS_SMALL_SCREEN)||this.element_.classList.contains(this.CssClasses_.FIXED_HEADER);this.content_.scrollTop>0&&!this.header_.classList.contains(this.CssClasses_.IS_COMPACT)?(this.header_.classList.add(this.CssClasses_.CASTING_SHADOW),this.header_.classList.add(this.CssClasses_.IS_COMPACT),t&&this.header_.classList.add(this.CssClasses_.IS_ANIMATING)):this.content_.scrollTop<=0&&this.header_.classList.contains(this.CssClasses_.IS_COMPACT)&&(this.header_.classList.remove(this.CssClasses_.CASTING_SHADOW),this.header_.classList.remove(this.CssClasses_.IS_COMPACT),t&&this.header_.classList.add(this.CssClasses_.IS_ANIMATING))}},e.prototype.keyboardEventHandler_=function(t){t.keyCode===this.Keycodes_.ESCAPE&&this.drawer_.classList.contains(this.CssClasses_.IS_DRAWER_OPEN)&&this.toggleDrawer()},e.prototype.screenSizeHandler_=function(){this.screenSizeMediaQuery_.matches?this.element_.classList.add(this.CssClasses_.IS_SMALL_SCREEN):(this.element_.classList.remove(this.CssClasses_.IS_SMALL_SCREEN),this.drawer_&&(this.drawer_.classList.remove(this.CssClasses_.IS_DRAWER_OPEN),this.obfuscator_.classList.remove(this.CssClasses_.IS_DRAWER_OPEN)))},e.prototype.drawerToggleHandler_=function(t){if(t&&"keydown"===t.type){if(t.keyCode!==this.Keycodes_.SPACE&&t.keyCode!==this.Keycodes_.ENTER)return;t.preventDefault()}this.toggleDrawer()},e.prototype.headerTransitionEndHandler_=function(){this.header_.classList.remove(this.CssClasses_.IS_ANIMATING)},e.prototype.headerClickHandler_=function(){this.header_.classList.contains(this.CssClasses_.IS_COMPACT)&&(this.header_.classList.remove(this.CssClasses_.IS_COMPACT),this.header_.classList.add(this.CssClasses_.IS_ANIMATING))},e.prototype.resetTabState_=function(t){for(var e=0;e<t.length;e++)t[e].classList.remove(this.CssClasses_.IS_ACTIVE)},e.prototype.resetPanelState_=function(t){for(var e=0;e<t.length;e++)t[e].classList.remove(this.CssClasses_.IS_ACTIVE)},e.prototype.toggleDrawer=function(){var t=this.element_.querySelector("."+this.CssClasses_.DRAWER_BTN);this.drawer_.classList.toggle(this.CssClasses_.IS_DRAWER_OPEN),this.obfuscator_.classList.toggle(this.CssClasses_.IS_DRAWER_OPEN),this.drawer_.classList.contains(this.CssClasses_.IS_DRAWER_OPEN)?(this.drawer_.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true")):(this.drawer_.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"))},e.prototype.toggleDrawer=e.prototype.toggleDrawer,e.prototype.init=function(){if(this.element_){var e=document.createElement("div");e.classList.add(this.CssClasses_.CONTAINER);var i=this.element_.querySelector(":focus");this.element_.parentElement.insertBefore(e,this.element_),this.element_.parentElement.removeChild(this.element_),e.appendChild(this.element_),i&&i.focus();for(var n=this.element_.childNodes,r=n.length,s=0;s<r;s++){var a=n[s];a.classList&&a.classList.contains(this.CssClasses_.HEADER)&&(this.header_=a),a.classList&&a.classList.contains(this.CssClasses_.DRAWER)&&(this.drawer_=a),a.classList&&a.classList.contains(this.CssClasses_.CONTENT)&&(this.content_=a)}window.addEventListener("pageshow",function(t){t.persisted&&(this.element_.style.overflowY="hidden",requestAnimationFrame(function(){this.element_.style.overflowY=""}.bind(this)))}.bind(this),!1),this.header_&&(this.tabBar_=this.header_.querySelector("."+this.CssClasses_.TAB_BAR));var o=this.Mode_.STANDARD;if(this.header_&&(this.header_.classList.contains(this.CssClasses_.HEADER_SEAMED)?o=this.Mode_.SEAMED:this.header_.classList.contains(this.CssClasses_.HEADER_WATERFALL)?(o=this.Mode_.WATERFALL,this.header_.addEventListener("transitionend",this.headerTransitionEndHandler_.bind(this)),this.header_.addEventListener("click",this.headerClickHandler_.bind(this))):this.header_.classList.contains(this.CssClasses_.HEADER_SCROLL)&&(o=this.Mode_.SCROLL,e.classList.add(this.CssClasses_.HAS_SCROLLING_HEADER)),o===this.Mode_.STANDARD?(this.header_.classList.add(this.CssClasses_.CASTING_SHADOW),this.tabBar_&&this.tabBar_.classList.add(this.CssClasses_.CASTING_SHADOW)):o===this.Mode_.SEAMED||o===this.Mode_.SCROLL?(this.header_.classList.remove(this.CssClasses_.CASTING_SHADOW),this.tabBar_&&this.tabBar_.classList.remove(this.CssClasses_.CASTING_SHADOW)):o===this.Mode_.WATERFALL&&(this.content_.addEventListener("scroll",this.contentScrollHandler_.bind(this)),this.contentScrollHandler_())),this.drawer_){var l=this.element_.querySelector("."+this.CssClasses_.DRAWER_BTN);if(!l){l=document.createElement("div"),l.setAttribute("aria-expanded","false"),l.setAttribute("role","button"),l.setAttribute("tabindex","0"),l.classList.add(this.CssClasses_.DRAWER_BTN);var h=document.createElement("i");h.classList.add(this.CssClasses_.ICON),h.innerHTML=this.Constant_.MENU_ICON,l.appendChild(h)}this.drawer_.classList.contains(this.CssClasses_.ON_LARGE_SCREEN)?l.classList.add(this.CssClasses_.ON_LARGE_SCREEN):this.drawer_.classList.contains(this.CssClasses_.ON_SMALL_SCREEN)&&l.classList.add(this.CssClasses_.ON_SMALL_SCREEN),l.addEventListener("click",this.drawerToggleHandler_.bind(this)),l.addEventListener("keydown",this.drawerToggleHandler_.bind(this)),this.element_.classList.add(this.CssClasses_.HAS_DRAWER),this.element_.classList.contains(this.CssClasses_.FIXED_HEADER)?this.header_.insertBefore(l,this.header_.firstChild):this.element_.insertBefore(l,this.content_);var u=document.createElement("div");u.classList.add(this.CssClasses_.OBFUSCATOR),this.element_.appendChild(u),u.addEventListener("click",this.drawerToggleHandler_.bind(this)),this.obfuscator_=u,this.drawer_.addEventListener("keydown",this.keyboardEventHandler_.bind(this)),this.drawer_.setAttribute("aria-hidden","true")}if(this.screenSizeMediaQuery_=window.matchMedia(this.Constant_.MAX_WIDTH),this.screenSizeMediaQuery_.addListener(this.screenSizeHandler_.bind(this)),this.screenSizeHandler_(),this.header_&&this.tabBar_){this.element_.classList.add(this.CssClasses_.HAS_TABS);var c=document.createElement("div");c.classList.add(this.CssClasses_.TAB_CONTAINER),this.header_.insertBefore(c,this.tabBar_),this.header_.removeChild(this.tabBar_);var d=document.createElement("div");d.classList.add(this.CssClasses_.TAB_BAR_BUTTON),d.classList.add(this.CssClasses_.TAB_BAR_LEFT_BUTTON);var f=document.createElement("i");f.classList.add(this.CssClasses_.ICON),f.textContent=this.Constant_.CHEVRON_LEFT,d.appendChild(f),d.addEventListener("click",function(){this.tabBar_.scrollLeft-=this.Constant_.TAB_SCROLL_PIXELS}.bind(this));var p=document.createElement("div");p.classList.add(this.CssClasses_.TAB_BAR_BUTTON),p.classList.add(this.CssClasses_.TAB_BAR_RIGHT_BUTTON);var g=document.createElement("i");g.classList.add(this.CssClasses_.ICON),g.textContent=this.Constant_.CHEVRON_RIGHT,p.appendChild(g),p.addEventListener("click",function(){this.tabBar_.scrollLeft+=this.Constant_.TAB_SCROLL_PIXELS}.bind(this)),c.appendChild(d),c.appendChild(this.tabBar_),c.appendChild(p);var m=function(){this.tabBar_.scrollLeft>0?d.classList.add(this.CssClasses_.IS_ACTIVE):d.classList.remove(this.CssClasses_.IS_ACTIVE),this.tabBar_.scrollLeft<this.tabBar_.scrollWidth-this.tabBar_.offsetWidth?p.classList.add(this.CssClasses_.IS_ACTIVE):p.classList.remove(this.CssClasses_.IS_ACTIVE)}.bind(this);this.tabBar_.addEventListener("scroll",m),m();var _=function(){this.resizeTimeoutId_&&clearTimeout(this.resizeTimeoutId_),this.resizeTimeoutId_=setTimeout(function(){m(),this.resizeTimeoutId_=null}.bind(this),this.Constant_.RESIZE_TIMEOUT)}.bind(this);window.addEventListener("resize",_),this.tabBar_.classList.contains(this.CssClasses_.JS_RIPPLE_EFFECT)&&this.tabBar_.classList.add(this.CssClasses_.RIPPLE_IGNORE_EVENTS);for(var v=this.tabBar_.querySelectorAll("."+this.CssClasses_.TAB),y=this.content_.querySelectorAll("."+this.CssClasses_.PANEL),b=0;b<v.length;b++)new t(v[b],v,y,this)}this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}},window.MaterialLayoutTab=t,componentHandler.register({constructor:e,classAsString:"MaterialLayout",cssClass:"mdl-js-layout"})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialDataTable=t,t.prototype.Constant_={},t.prototype.CssClasses_={DATA_TABLE:"mdl-data-table",SELECTABLE:"mdl-data-table--selectable",SELECT_ELEMENT:"mdl-data-table__select",IS_SELECTED:"is-selected",IS_UPGRADED:"is-upgraded"},t.prototype.selectRow_=function(t,e,i){return e?function(){t.checked?e.classList.add(this.CssClasses_.IS_SELECTED):e.classList.remove(this.CssClasses_.IS_SELECTED)}.bind(this):i?function(){var e,n;if(t.checked)for(e=0;e<i.length;e++)n=i[e].querySelector("td").querySelector(".mdl-checkbox"),n.MaterialCheckbox.check(),i[e].classList.add(this.CssClasses_.IS_SELECTED);else for(e=0;e<i.length;e++)n=i[e].querySelector("td").querySelector(".mdl-checkbox"),n.MaterialCheckbox.uncheck(),i[e].classList.remove(this.CssClasses_.IS_SELECTED)}.bind(this):void 0},t.prototype.createCheckbox_=function(t,e){var i=document.createElement("label"),n=["mdl-checkbox","mdl-js-checkbox","mdl-js-ripple-effect",this.CssClasses_.SELECT_ELEMENT];i.className=n.join(" ");var r=document.createElement("input");return r.type="checkbox",r.classList.add("mdl-checkbox__input"),t?(r.checked=t.classList.contains(this.CssClasses_.IS_SELECTED),r.addEventListener("change",this.selectRow_(r,t))):e&&r.addEventListener("change",this.selectRow_(r,null,e)),i.appendChild(r),componentHandler.upgradeElement(i,"MaterialCheckbox"),i},t.prototype.init=function(){if(this.element_){var t=this.element_.querySelector("th"),e=Array.prototype.slice.call(this.element_.querySelectorAll("tbody tr")),i=Array.prototype.slice.call(this.element_.querySelectorAll("tfoot tr")),n=e.concat(i);if(this.element_.classList.contains(this.CssClasses_.SELECTABLE)){var r=document.createElement("th"),s=this.createCheckbox_(null,n);r.appendChild(s),t.parentElement.insertBefore(r,t);for(var a=0;a<n.length;a++){var o=n[a].querySelector("td");if(o){var l=document.createElement("td");if("TBODY"===n[a].parentNode.nodeName.toUpperCase()){var h=this.createCheckbox_(n[a]);l.appendChild(h)}n[a].insertBefore(l,o)}}this.element_.classList.add(this.CssClasses_.IS_UPGRADED)}}},componentHandler.register({constructor:t,classAsString:"MaterialDataTable",cssClass:"mdl-js-data-table"})}(),/**
   * @license
   * Copyright 2015 Google Inc. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  function(){"use strict";var t=function(t){this.element_=t,this.init()};window.MaterialRipple=t,t.prototype.Constant_={INITIAL_SCALE:"scale(0.0001, 0.0001)",INITIAL_SIZE:"1px",INITIAL_OPACITY:"0.4",FINAL_OPACITY:"0",FINAL_SCALE:""},t.prototype.CssClasses_={RIPPLE_CENTER:"mdl-ripple--center",RIPPLE_EFFECT_IGNORE_EVENTS:"mdl-js-ripple-effect--ignore-events",RIPPLE:"mdl-ripple",IS_ANIMATING:"is-animating",IS_VISIBLE:"is-visible"},t.prototype.downHandler_=function(t){if(!this.rippleElement_.style.width&&!this.rippleElement_.style.height){var e=this.element_.getBoundingClientRect();this.boundHeight=e.height,this.boundWidth=e.width,this.rippleSize_=2*Math.sqrt(e.width*e.width+e.height*e.height)+2,this.rippleElement_.style.width=this.rippleSize_+"px",this.rippleElement_.style.height=this.rippleSize_+"px"}if(this.rippleElement_.classList.add(this.CssClasses_.IS_VISIBLE),"mousedown"===t.type&&this.ignoringMouseDown_)this.ignoringMouseDown_=!1;else{"touchstart"===t.type&&(this.ignoringMouseDown_=!0);var i=this.getFrameCount();if(i>0)return;this.setFrameCount(1);var n,r,s=t.currentTarget.getBoundingClientRect();if(0===t.clientX&&0===t.clientY)n=Math.round(s.width/2),r=Math.round(s.height/2);else{var a=t.clientX?t.clientX:t.touches[0].clientX,o=t.clientY?t.clientY:t.touches[0].clientY;n=Math.round(a-s.left),r=Math.round(o-s.top)}this.setRippleXY(n,r),this.setRippleStyles(!0),window.requestAnimationFrame(this.animFrameHandler.bind(this))}},t.prototype.upHandler_=function(t){t&&2!==t.detail&&window.setTimeout(function(){this.rippleElement_.classList.remove(this.CssClasses_.IS_VISIBLE)}.bind(this),0)},t.prototype.init=function(){if(this.element_){var t=this.element_.classList.contains(this.CssClasses_.RIPPLE_CENTER);this.element_.classList.contains(this.CssClasses_.RIPPLE_EFFECT_IGNORE_EVENTS)||(this.rippleElement_=this.element_.querySelector("."+this.CssClasses_.RIPPLE),this.frameCount_=0,this.rippleSize_=0,this.x_=0,this.y_=0,this.ignoringMouseDown_=!1,this.boundDownHandler=this.downHandler_.bind(this),this.element_.addEventListener("mousedown",this.boundDownHandler),this.element_.addEventListener("touchstart",this.boundDownHandler),this.boundUpHandler=this.upHandler_.bind(this),this.element_.addEventListener("mouseup",this.boundUpHandler),this.element_.addEventListener("mouseleave",this.boundUpHandler),this.element_.addEventListener("touchend",this.boundUpHandler),this.element_.addEventListener("blur",this.boundUpHandler),this.getFrameCount=function(){return this.frameCount_},this.setFrameCount=function(t){this.frameCount_=t},this.getRippleElement=function(){return this.rippleElement_},this.setRippleXY=function(t,e){this.x_=t,this.y_=e},this.setRippleStyles=function(e){if(null!==this.rippleElement_){var i,n,r,s="translate("+this.x_+"px, "+this.y_+"px)";e?(n=this.Constant_.INITIAL_SCALE,r=this.Constant_.INITIAL_SIZE):(n=this.Constant_.FINAL_SCALE,r=this.rippleSize_+"px",t&&(s="translate("+this.boundWidth/2+"px, "+this.boundHeight/2+"px)")),i="translate(-50%, -50%) "+s+n,this.rippleElement_.style.webkitTransform=i,this.rippleElement_.style.msTransform=i,this.rippleElement_.style.transform=i,e?this.rippleElement_.classList.remove(this.CssClasses_.IS_ANIMATING):this.rippleElement_.classList.add(this.CssClasses_.IS_ANIMATING)}},this.animFrameHandler=function(){this.frameCount_-- >0?window.requestAnimationFrame(this.animFrameHandler.bind(this)):this.setRippleStyles(!1)})}},componentHandler.register({constructor:t,classAsString:"MaterialRipple",cssClass:"mdl-js-ripple-effect",widget:!1})}(),/*!
   *
   *  Web Starter Kit
   *  Copyright 2015 Google Inc. All rights reserved.
   *
   *  Licensed under the Apache License, Version 2.0 (the "License");
   *  you may not use this file except in compliance with the License.
   *  You may obtain a copy of the License at
   *
   *    https://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing, software
   *  distributed under the License is distributed on an "AS IS" BASIS,
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *  See the License for the specific language governing permissions and
   *  limitations under the License
   *
   */
  function(){"use strict";var t=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));"serviceWorker"in navigator&&("https:"===window.location.protocol||t)&&navigator.serviceWorker.register("service-worker.js").then(function(t){t.onupdatefound=function(){if(navigator.serviceWorker.controller){var e=t.installing;e.onstatechange=function(){switch(e.state){case"installed":break;case"redundant":throw new Error("The installing service worker became redundant.")}}}}})["catch"](function(t){console.error("Error during service worker registration:",t)})}();var AddLogo=function(){var t=function(t){var e='<svg id="logo-svg" viewBox="0 0 190 190" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke-width="1" fill="none" transform="translate(10, 1)"><path d="M90.5,0 L173,145 L8,145 L90.5,0 Z M90,141 C113.195959,141 132,121.524387 132,97.5 C132,73.4756134 113.195959,54 90,54 C66.8040405,54 48,73.4756134 48,97.5 C48,121.524387 66.8040405,141 90,141 Z" class="triangle"   stroke="#F661B6" fill="#FB916F" ></path><path d="M58.78125,119.488813 L90.1111013,119.488813 L90.1111013,112.457877 L69.018293,112.457877 L69.018293,112.261011 L89.5486265,84.4185039 L89.5486265,78.90625 L59.2593537,78.90625 L59.2593537,85.9090624 L79.3959547,85.9090624 L79.3959547,86.1340523 L58.78125,113.948436 L58.78125,119.488813 Z M96.1577064,78.90625 L96.1577064,119.488813 L104.651077,119.488813 L104.651077,106.69251 L112.666344,106.69251 C121.215963,106.69251 127.150073,101.124008 127.150073,92.7993798 C127.150073,84.4466277 121.412829,78.90625 113.088201,78.90625 L96.1577064,78.90625 Z M104.651077,85.6278249 L110.838301,85.6278249 C115.703709,85.6278249 118.516083,88.2152094 118.516083,92.8275035 C118.516083,97.4679214 115.675585,100.055306 110.810177,100.055306 L104.651077,100.055306 L104.651077,85.6278249 Z"id="logo-text" stroke="#5A7EFD" stroke-width="4" fill-opacity="0.87" fill="#E3F2FD" transform="translate(-5, -4)"></path><g id="bottom" transform="translate(28.000000, 147.000000)" stroke="#FFBA4F" stroke-width="3" ><path d="M129.4,0.5 C121.3,11.2 110.5,20.2 97.4,26.2 C65.2,41 28.6,33.9 4.2,11.1"  ></path><path d="M135.4,0.8 C126.6,13.4 114.4,23.9 99.5,30.8 C65.2,46.6 26,38.8 0.2,14.2" ></path></g><g id="right" transform="translate(95.000000, 7.000000)" stroke="#FFBA4F" stroke-width="3"><path d="M2.7,5.3 C31.8,8 58.7,25.7 71.8,54.1 C79.6,71.1 81.3,89.2 77.9,106.2"></path><path d="M0.8,0.2 C32.5,2.3 62,21.2 76.3,52.1 C84.6,70.2 86.4,89.7 82.6,107.8"></path></g><g id="left" transform="translate(0.000000, 15.000000)" stroke="#FFBA4F" stroke-width="3" ><path d="M13.2,116.8 C-6.3,74.4 12.2,24.2 54.6,4.7"></path><path d="M8.7,118.9 C-12,74 7.7,20.8 52.6,0.2" ></path></g></g></svg>';e='<div class="logo-container">'+e+"</div>",t.prepend(e)},e=function(){TweenMax.set(".triangle",{scale:.95}),TweenMax.set("#logo-svg",{visibility:"visible"});var t=new TimelineMax({repeat:-1,repeatDelay:1});t.timeScale(6),t.to(".triangle",3,{rotation:"-=120",transformOrigin:"49.6% 67.5%",ease:Power2.easeInOut}).staggerFrom("#bottom path",2,{drawSVG:"100% 100%",ease:Power4.easeInOut,alpha:0},.2,"-=2.5").staggerFrom("#right path",2,{drawSVG:"100% 100%",ease:Power4.easeInOut,alpha:0},.2,"-=2.5").staggerFrom("#left path",2,{drawSVG:"100% 100%",ease:Power4.easeInOut,alpha:0},.2,"-=2.5").to(["#bottom path","#right path","#left path"],2,{drawSVG:"0% 0%",ease:Power1.easeOut},"-=1.5").to("#logo-text",1.5,{scale:.9,alpha:.3,transformOrigin:"49.6% 67.5%",ease:Power1.easeInOut}),TweenMax.globalTimeScale(.5)},i=function(i){t(i),e()},n=function(t){var e='<svg id="zp-logo-img-svg" viewBox="-1 -1 153 153" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="zp-logo-img"  stroke="#979797" ><circle id="circle-down" cx="75" cy="75" r="75" fill="grey"></circle><circle id="circle-up" cx="75" cy="75" r="72" fill="black"></circle><polygon id="path-n" fill="white" points="68.0932166 27.6583823 78.2091937 27.6583823 102.092417 54.1854436 102.160742 29.9242526 97.8727419 29.9242526 97.8727419 27.6583823 111.975313 27.6583823 111.975313 70.2805852 102.160742 70.2805852 78.2091937 42.058967 78.2091937 131.396089 83.3762115 131.396089 83.2555524 134.03169 68.0932166 134.074332"></polygon><polygon id="path-i"  fill="white" points="43.5293774 27.8120512 57.8746827 27.8120512 57.8746827 30.7014101 53.1161219 30.7014101 53.1161219 70.1773732 43.5293774 70.1773732"></polygon></g></svg>';e='<div class="logo-container">'+e+"</div>",t.prepend(e)},r=function(){TweenMax.set("#zp-logo-img-svg",{visibility:"visible"});var t=new TimelineMax({repeat:-1,repeatDelay:1});t.timeScale(6),t.staggerFrom("polygon#path-n polygon#path-i",2,{drawSVG:"100% 100%",ease:Power4.easeInOut,alpha:0},.2),TweenMax.globalTimeScale(.5)},s=function(t){n(t),r()};return{done:s,doneNice:i}}(),ChartCatagory=function(){var t=function(t,e,i,n,r){return{type:"line",data:{labels:["-4天","","","","今天","","","","+4天"],datasets:[{label:"拍品数量",data:t,backgroundColor:"rgba(98, 157, 252, 0.5)",borderWidth:1,fontColor:"rgba(250, 250, 250, 0.7)"},{label:"成交件数",data:e,backgroundColor:"rgb(63, 252, 253,0.5)",borderWidth:2,fontColor:"rgba(250, 250, 250, 0.7)"}]},options:{responsive:!0,element:{display:!0,point:{radius:2.5}},defaultFontSize:9,title:{display:!0,text:i,padding:10,fontColor:"rgba(250, 250, 250, 0.7)"},axisY:{prefix:n,suffix:r}}}},e=function(){var e=[[19,19,13,25,50,23,9.03,15,13,15],[190,200,90,250,300,98,93,150,213,115]],i=[[10,11,3,15,20,9.03],[100,190,50,190,20,93]],n=["瓷器 近九天上拍和拍出量","家具 近九天上拍和拍出量"],r=["",""],s=["",""],a=[];return $.each(e,function(e,o){var l=t(o,i[e],n[e],r[e],s[e]);a.push(l)}),a},i=function(t,e,i){return{type:t,data:{labels:e,datasets:[{data:i,backgroundColor:["rgba(92, 107, 192, 0.5)","rgba(63, 81, 181, 0.5)","rgba(48, 63, 159, 0.5)"],hoverBackgroundColor:["rgb(92, 225, 236)","rgb(53, 197, 231)","rgb(75, 181, 223)"]}]},options:{legend:{display:!0,labels:{boxWidth:3,fontSize:8,fontColor:"rgba(250, 250, 250, 0.7)"}},responsive:!0,defaultFontSize:8,title:{display:!1}}}},n=function(t){var e=[["英国瓷器","法国瓷器","美国瓷器"],["美国家具","法国家具","德国家具"],["加利拍卖行","ABC拍卖行","纽约拍卖行"],["超出估价","低于估价","极低价"]],n=[[300,100,50],[150,130,90],[50,30,15],[108,90,400]],r=[];return $.each(e,function(e,s){var a=i(t,s,n[e]);r.push(a)}),r},r=function(t,e){$.each(t,function(t,i){i.attr("width",e[t].width),i.attr("height",e[t].height),i.parent().css({width:e[t].width,height:e[t].height})})};return{createLineChartDataObj:e,createBarPieDoughnutChartDataObj:n,setChartCanvaAndParentWidthHeight:r}}(),tt=new TimelineMax;tt.set("section.main-chart",{display:"block"}).from("section.main-chart",.3,{opacity:0,width:0});var ctx1=$("#myChart1"),ctx2=$("#myChart2"),ctx3=$("#myChart3"),ctx4=$("#myChart4"),ctx5=$("#myChart5"),ctx6=$("#myChart6");ChartCatagory.setChartCanvaAndParentWidthHeight([ctx1,ctx2],[{width:300,height:150},{width:300,height:150}]),ChartCatagory.setChartCanvaAndParentWidthHeight([ctx3,ctx4],[{width:135,height:150},{width:135,height:150}]),ChartCatagory.setChartCanvaAndParentWidthHeight([ctx5,ctx6],[{width:135,height:150},{width:135,height:150}]);var objStrArrLine=ChartCatagory.createLineChartDataObj(),objStrArrDuoghnut=ChartCatagory.createBarPieDoughnutChartDataObj("doughnut"),mChart1=new Chart(ctx1,objStrArrLine[0]),mChart2=new Chart(ctx2,objStrArrLine[1]),mChart3=new Chart(ctx3,objStrArrDuoghnut[0]),mChart4=new Chart(ctx4,objStrArrDuoghnut[1]),mChart5=new Chart(ctx5,objStrArrDuoghnut[2]),mChart6=new Chart(ctx6,objStrArrDuoghnut[3]),$window=$(window);checkWidth(),$(window).resize(checkWidth);var GlobeWorld=function(){var t=function(){var t='<div class="globe-world-container globe-world__isHidden"></div>';return t},e=function(e){$(t()).appendTo(e)},i=function(t){setTimeout(function(){var e=t.find(".globe-world-container");e.removeClass("globe-world__isHidden").fadeIn(300)},300)},n=function(t){var n=t.find(".globe-world-container");!n.length>0&&(e(t),i(t))},r=function(t){var e=t.find(".globe-world-container");e.length>0&&e.fadeIn(300).addClass("globe-world__isHidden")};return{doShow:n,doHide:r}}(),HeaderTab=function(){var t=[{id:"biddingNow",bool:!1},{id:"biddingSoon",bool:!1},{id:"biddingChart",bool:!1},{id:"hotLot",bool:!1},{id:"coldLot",bool:!1},{id:"auctionHouse",bool:!1},{id:"liveAuction",bool:!1}],e=function(e){var i=$(e).attr("href").match(/([^#]\w+(?=\-))/)[0];$.each(t,function(t,e){if(e.id!==i){var n=$("main").find("#"+e.id+"-page");n.hasClass("is-active")&&n.removeClass("is-active")}})},i=function(){$('a[href*="-page"]').on("click",function(){e(this),$("main").find("#overview").css({display:"none"})}),$('a[href="#biddingChart-page"]').on("click",function(){e(this),$.getScript("./scripts/my-js/chart-catagory.js",function(){})}),$('a[href="#liveAuction-page"]').on("click",function(){e(this),$.getScript("./scripts/my-js/live-auction.js",function(){LiveAuction.done()}),$.getScript("./scripts/my-js/itemsline.js",function(){Itemsline.done()}),$.getScript("./scripts/my-js/live-auction__bidders-chat.js",function(){LiveAuctionBiddersChat.done()}),$.getScript("./scripts/my-js/live-bidding-chart.js",function(){LiveBiddingChart.done()})})};return{setAllTabClickEvent:i}}(),HeaderTextSearchLogo=function(){var t=function(){var t=$(".header-text-search-container"),e=(t.find(".header-search__container"),t.find(".header-text__title>span")),i=t.find(".header-text__content>span"),n=new TimelineLite;n.set(t,{visibility:"visible"}).from(e,.35,{width:"0px",alpha:0,backgroundColor:"rgb(20.9%, 96%, 20.9%)"},"-=0.2").staggerFrom(i,.2,{alpha:0,ease:Back.easeOut},.05)},e=function(){$.getScript("./scripts/my-js/add-logo.js",function(){AddLogo.done($(".header-text-search-container")),t()})},i=function(){var t=$(".mdl-layout__header").find(".header-text-search-container");$(".mdl-layout__header").on("scrollDownHideTextSplitLogoAndSearch",function(){t.addClass("shrink-color-ani")}),$(".mdl-layout__header").on("scrollUpToOrigin",function(){t.removeClass("shrink-color-ani")})};return{doneLongBarAni:e,subEvent:i}}(),cnt=$(" .mdl-layout__header ").find(" .header-search__container ");cnt.on("click",function(){var t=$(".mdl-layout__header").find(".header-text__content--short");cnt.hasClass("is-focused")&&t.css("display","none")}),$(".mdl-layout__header").on("click",".mdl-layout__drawer-button",function(){var t=$(".mdl-layout__drawer").find(".mdl-navigation").find(".mdl-navigation__link");t.addClass("stagger-link-in"),$(".mdl-layout__drawer").find(".mdl-navigation").find("#hamburger-menu").addClass("is-active"),console.log("!!!")}),$(".mdl-layout").on("click",".mdl-layout__obfuscator",function(){$(".mdl-layout__drawer").find(".mdl-navigation").find(".mdl-navigation__link").removeClass("stagger-link-in"),$(".mdl-layout__drawer").find(".mdl-navigation").find("#hamburger-menu.c-hamburger--htx").removeClass("is-active")}),$(".mdl-layout").on("click","#hamburger-menu",function(){$(".mdl-layout__drawer").find(".mdl-navigation").find(".mdl-navigation__link").removeClass("stagger-link-in"),$(".mdl-layout__drawer").find(".mdl-navigation").find("#hamburger-menu.c-hamburger--htx").removeClass("is-active"),$(".mdl-layout__drawer").attr("aria-hidden",!0).removeClass("is-visible"),$(".mdl-layout__obfuscator").removeClass("is-visible")});var arrBgImages=["./images/material-design-bg-39-t.jpg","./images/material-design-bg-36-t.jpg","./images/material-design-bg-38-t.jpg","./images/material-design-bg-37-t.jpg","./images/material-design-bg-39-t.jpg","./images/material-design-bg-36-t.jpg","./images/material-design-bg-40-t.jpg"],arrBgTextColor=["white","white","white","white","white","white","white"];$.fn.preload=function(){this.each(function(){$("<img/>")[0].src=this})},setTimeout(function(){$(arrBgImages).preload()},1e3);var tabList=$(".header-tab-container").find(".mdl-layout__tab");tabList.each(function(t,e){$(e).on("click",function(){activeOneTabAni(tabList,e,t);var i=arrBgImages[t];$("header.mdl-layout__header").css("background-image",'url("'+i+'")'),$(".header-text-search-container").find(".header-text__title").css("color",arrBgTextColor[t]),$(".header-text-search-container").find(".header-text__content--long").css("color",arrBgTextColor[t]),$(".header-text-search-container").find(".header-text__content--short").css("color",arrBgTextColor[t]),$(".header-text-search-container").find("#header-search__container").find("i.material-icons").css("color",arrBgTextColor[t])})});var navList=$(".mdl-layout__drawer").find(".mdl-navigation__link");navList.each(function(t,e){$(e).on("click",function(){var e=arrBgImages[t];$("header.mdl-layout__header").css("background-image",'url("'+e+'")'),$(".header-text-search-container").find(".header-text__title").css("color",arrBgTextColor[t]),$(".header-text-search-container").find(".header-text__content--long").css("color",arrBgTextColor[t]),$(".header-text-search-container").find(".header-text__content--short").css("color",arrBgTextColor[t]),$(".header-text-search-container").find("#header-search__container").find("i.material-icon").css("color",arrBgTextColor[t])})});var initScrollTop=0,header=$(".mdl-layout__header"),map=$(".header-up-part-container").find(".map-container"),tabCnt=$(".mdl-layout__header").find(".mdl-layout__tab-bar-container"),isLessTablet;isLessTablet=$(window).outerWidth()<=768,$("main").on("scroll",function(){var t=$(this)[0],e=t.scrollTop;e>initScrollTop?e<60&&(header.addClass("is-bg-changed"),map.addClass("shrink"),tabCnt.addClass("go-up"),$.getScript("./scripts/my-js/globe-world.js",function(){var t=$("main.mdl-layout__content");GlobeWorld.doShow(t)}),$("body").trigger("hideAcitveMenuAndAni"),$(".mdl-layout").trigger("hideMapNoteAndAni"),$(".mdl-layout__header").trigger("scrollDownHideTextSplitLogoAndSearch"),isLessTablet&&$(this).animate({"margin-top":"-1"},500,function(){})):e<60&&(header.removeClass("is-bg-changed"),map.removeClass("shrink"),tabCnt.removeClass("go-up"),$.getScript("./scripts/my-js/globe-world.js",function(){var t=$("main.mdl-layout__content");GlobeWorld.doHide(t)}),$("body").trigger("showAcitveMenuAndAni"),$(".mdl-layout").trigger("showMapNoteAndAni"),$(".mdl-layout__header").trigger("scrollUpToOrigin"),isLessTablet&&$(this).animate({"margin-top":"0px"},500,function(){})),initScrollTop=t.scrollTop});var _once=function(t){var e,i=!1;return function(){return i?e:(i=!0,e=t.apply(this,arguments),t=null,e)}},Itemsline=function(){var t=[{itemNo:"238906",shortName:"手表",imgUrl:["./images/images-photos-icons/photos/watch-for-live-auction1.jpeg","./images/images-photos-icons/photos/watch-for-live-auction1.jpeg","./images/images-photos-icons/photos/watch-for-live-auction1.jpeg"],description:"Eu dolor et sit minim consequat sunt."},{itemNo:"435412",shortName:"瓷器",imgUrl:["./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg","./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg","./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg"],description:"Tempor adipisicing est id excepteur aute eu tempor eiusmod ad cillum. Cillum aliqua est aliqua commodo esse veniam enim. Laborum est commodo commodo dolor incididunt ullamco mollit elit exercitation excepteur eu. Nulla culpa qui laboris pariatur ullamco excepteur sunt id aliqua minim. Enim et laboris id consectetur quis velit quis eu ad. Qui exercitation qui ad deserunt velit dolore."},{itemNo:"984506",shortName:"首饰",imgUrl:["./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg"],description:"Amet sunt sint reprehenderit duis ex ut enim Lorem eiusmod et."},{itemNo:"236785",shortName:"手表",imgUrl:["./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg"],description:"Do non dolore deserunt proident est do duis dolore cupidatat ea elit dolor. Excepteur ex pariatur consequat ullamco anim dolore eu incididunt voluptate proident pariatur. Velit ut ea aute et aute magna enim magna magna officia consectetur eiusmod duis. Consectetur id in aute nisi do laboris commodo. Consequat sunt eu adipisicing excepteur in eiusmod nostrud ea incididunt eiusmod deserunt. Sint ut exercitation exercitation velit sunt laborum nisi voluptate anim ad ullamco consequat. Ad qui adipisicing id laboris ut laboris eiusmod nostrud dolore ex."},{itemNo:"564356",shortName:"家具",imgUrl:["./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg","./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg","./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg"],description:"Commodo sit labore commodo ex."},{itemNo:"765432",shortName:"瓷器",imgUrl:["./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg","./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg","./images/images-photos-icons/photos/porcelain-for-live-auction1.jpeg"],description:"Proident ex nulla non ipsum ex. Laboris officia esse minim nostrud. Cupidatat voluptate irure in nulla in quis dolor nulla. Mollit ex elit minim do ut tempor nostrud. Commodo sint commodo pariatur adipisicing pariatur consectetur ad proident fugiat eiusmod. Qui labore laborum adipisicing est in elit magna. Deserunt ea ex cupidatat proident quis id aute irure ipsum."},{itemNo:"345678",shortName:"首饰",imgUrl:["./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg","./images/images-photos-icons/photos/jewellery-for-live-auction1.jpeg"],description:"Exercitation consectetur commodo ea officia sunt reprehenderit esse esse dolore dolore duis eiusmod tempor ea."},{itemNo:"234567",shortName:"家具",imgUrl:["./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg","./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg","./images/images-photos-icons/photos/furnish-for-live-auction1.jpeg"],description:"Velit eu reprehenderit eiusmod exercitation qui voluptate reprehenderit laboris laborum veniam ad sunt incididunt."},{itemNo:"123456",shortName:"手表",imgUrl:["./images/images-photos-icons/photos/watch-for-live-auction1.jpeg","./images/images-photos-icons/photos/watch-for-live-auction1.jpeg","./images/images-photos-icons/photos/watch-for-live-auction1.jpeg"],description:"Deserunt dolore magna dolor aliquip qui do quis ipsum non cillum ex esse. Ullamco sit nisi occaecat laboris voluptate veniam consequat eu deserunt. Sit sunt deserunt excepteur magna aliqua duis ea eiusmod reprehenderit dolore. Mollit sint duis Lorem nulla quis do elit eiusmod esse irure nostrud fugiat incididunt voluptate. Anim nisi ullamco proident et in dolor sint esse."}],e=45,i=function(){var e=$(".cd-horizontal-timeline"),i=$(".live-auction__main").find(".mdl-card__supporting-text"),r=20;y(e,i,t,r),setTimeout(function(){var t=$(".cd-horizontal-timeline");t.length>0&&n(t),v()},200)},n=function(t){t.each(function(){var t=$(this),i={};i.timelineWrapper=t.find(".events-wrapper"),i.eventsWrapper=i.timelineWrapper.children(".events"),i.fillingLine=i.eventsWrapper.children(".filling-line"),i.timelineEvents=i.eventsWrapper.find("a"),i.timelineDates=[],i.eventsMinLapse=[],i.timelineNavigation=t.find(".cd-timeline-navigation"),i.eventsContent=$(".events-content"),h(i,e);var n=u(i,e);t.addClass("loaded"),i.timelineNavigation.on("click",".next",function(t){t.preventDefault(),r(i,n,"next")}),i.timelineNavigation.on("click",".prev",function(t){t.preventDefault(),r(i,n,"prev")}),i.eventsWrapper.on("click","a",function(t){t.preventDefault(),i.timelineEvents.removeClass("selected"),$(this).addClass("selected"),d($(this)),l($(this),i.fillingLine,n),c($(this),i.eventsContent)}),i.eventsContent.on("swipeleft",function(){var t=m();"mobile"==t&&s(i,n,"next")}),i.eventsContent.on("swiperight",function(){var t=m();"mobile"==t&&s(i,n,"prev")}),$(document).keyup(function(e){"37"==e.which&&g(t.get(0))?s(i,n,"prev"):"39"==e.which&&g(t.get(0))&&s(i,n,"next")})})},r=function(t,i,n){var r=f(t.eventsWrapper),s=Number(t.timelineWrapper.css("width").replace("px",""));"next"==n?o(t,r-s+e,s-i):o(t,r+s-e)},s=function(t,e,i){var n=t.eventsContent.find(".selected"),r="next"==i?n.next():n.prev();if(r.length>0){var s=t.eventsWrapper.find(".selected"),o="next"==i?s.parent("li").next("li").children("a"):s.parent("li").prev("li").children("a");l(o,t.fillingLine,e),c(o,t.eventsContent),o.addClass("selected"),s.removeClass("selected"),d(o),a(i,o,t)}},a=function(t,e,i){var n=window.getComputedStyle(e.get(0),null),r=Number(n.getPropertyValue("left").replace("px","")),s=Number(i.timelineWrapper.css("width").replace("px","")),a=Number(i.eventsWrapper.css("width").replace("px","")),l=f(i.eventsWrapper);("next"==t&&r>s-l||"prev"==t&&r<-l)&&o(i,-r+s/2,s-a)},o=function(t,e,i){var n=t.eventsWrapper.get(0);e=e>0?0:e,e="undefined"!=typeof i&&e<i?i:e,p(n,"translateX",e+"px"),0==e?t.timelineNavigation.find(".prev").addClass("inactive"):t.timelineNavigation.find(".prev").removeClass("inactive"),e==i?t.timelineNavigation.find(".next").addClass("inactive"):t.timelineNavigation.find(".next").removeClass("inactive")},l=function(t,e,i){var n=window.getComputedStyle(t.get(0),null),r=n.getPropertyValue("left"),s=n.getPropertyValue("width");r=Number(r.replace("px",""))+Number(s.replace("px",""))/2;var a=r/i;p(e.get(0),"scaleX",a)},h=function(t,e){for(var i=0;i<t.timelineEvents.length;i++)t.timelineEvents.eq(i).css("left",e*(1+i)+2+"px")},u=function(t,e){var i=t.timelineEvents.length*e+4;return t.eventsWrapper.css("width",i+"px"),l(t.eventsWrapper.find("a.selected"),t.fillingLine,i),a("next",t.eventsWrapper.find("a.selected"),t),i},c=function(t,e){var i=t.data("date"),n=e.find(".selected"),r=e.find('[data-date="'+i+'"]'),s=r.height();if(r.index()>n.index())var a="selected enter-right",o="leave-left";else var a="selected enter-left",o="leave-right";r.attr("class",a),n.attr("class",o).one("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(){n.removeClass("leave-right leave-left"),r.removeClass("enter-left enter-right")}),e.css("height",s+"px")},d=function(t){t.parent("li").prevAll("li").children("a").addClass("older-event").end().end().nextAll("li").children("a").removeClass("older-event")},f=function(t){var e=window.getComputedStyle(t.get(0),null),i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i.indexOf("(")>=0){var i=i.split("(")[1];i=i.split(")")[0],i=i.split(",");var n=i[4]}else var n=0;return Number(n)},p=function(t,e,i){t.style["-webkit-transform"]=e+"("+i+")",t.style["-moz-transform"]=e+"("+i+")",t.style["-ms-transform"]=e+"("+i+")",t.style["-o-transform"]=e+"("+i+")",t.style.transform=e+"("+i+")"},g=function(t){for(var e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth,r=t.offsetHeight;t.offsetParent;)t=t.offsetParent,e+=t.offsetTop,i+=t.offsetLeft;return e<window.pageYOffset+window.innerHeight&&i<window.pageXOffset+window.innerWidth&&e+r>window.pageYOffset&&i+n>window.pageXOffset},m=function(){return window.getComputedStyle(document.querySelector(".cd-horizontal-timeline"),"::before").getPropertyValue("content").replace(/'/g,"").replace(/"/g,"")},_=function(t,e){function i(t,e){return Math.floor(Math.random()*(e-t+1))+t}for(var n='<div class="timeline"><div class="events-wrapper"><div class="events"><ol>',r="",s='</ol><span class="filling-line" aria-hidden="true"></span></div> <!-- .events --></div> <!-- .events-wrapper --><ul class="cd-timeline-navigation"><li><a href="#0" class="prev inactive">Prev</a></li><li><a href="#0" class="next">Next</a></li></ul> <!-- .cd-timeline-navigation --></div> <!-- .timeline -->',a='<div class="events-content"><ol>',o="",l="</ol></div> <!-- .events-content -->",h=[],u=t.length,c=0;c<e;c++)h.push(i(0,u-1));return $.each(h,function(e,i){r=r+'<li><a href="#0" data-date="'+t[i].itemNo+'" class="'+(0===e?"selected":"")+'">'+t[i].shortName+"</a></li>",o=o+'<li class="'+(0===e?"selected":"")+'" data-date="'+t[i].itemNo+'"><h2>'+t[i].shortName+'<span class="itemsline__items-status itemsline__items-status__willBid">即将拍</span></h2><div class="itemsline-img-container"><img class="itemsline-img" src="'+t[i].imgUrl[0]+'" /><img class="itemsline-img" src="'+t[i].imgUrl[1]+'" /><img class="itemsline-img" src="'+t[i].imgUrl[2]+'" /></div><p>'+t[i].description+"</p></li>"}),[n+r+s,a+o+l]},v=function(){var t=$(".cd-horizontal-timeline").find(".events-wrapper").find("ol>li"),e="";t.on("click",function(){e=$(this).find("a").text(),$("#liveAuction-page").trigger("clickChangeItemOnHeader",[e])})},y=function(t,e,i,n){if(!t.find(".timeline").length>0&&!e.find(".event-contents").length>0){var r=_(i,n);$(t).prepend(r[0]),$(e).prepend(r[1])}};return{done:i}}(),LiveAuction=function(){var t=function(){var t=$("#liveAuction-page").find(".live-auction__main"),e=t.find(".itemsline-event-content-container"),i=t.find(".live-bidding-chart-container");e.hover(function(){i.addClass("hoverItemsDetail-smallLiveChart"),e.addClass("showText-canScroll"),t.addClass("change-itemsDetail-bg")},function(){i.removeClass("hoverItemsDetail-smallLiveChart"),e.removeClass("showText-canScroll"),t.removeClass("change-itemsDetail-bg")})},e=function(){var t=$("#liveAuction-page").find(".live-auction-container"),e=t.find(".cd-horizontal-timeline"),i=e.find(".cd-timeline-navigation").find("a.next"),n=e.find(".cd-timeline-navigation").find("a.prev");console.log(i),e.hover(function(){i.addClass("up-box-shadow-when-hover"),n.addClass("up-box-shadow-when-hover")},function(){i.removeClass("up-box-shadow-when-hover"),n.removeClass("up-box-shadow-when-hover")})},i=function(){var t=$("#liveAuction-page"),e=t.find(".timeline-live-auction-container"),i=t.find(".live-video-container").find(".main-live-video"),n=t.find(".live-video-container").find(".all-degree-live-video");i.hover(function(){e.addClass("move-left-for-video"),n.addClass("shrink-when-main-hover")},function(){e.removeClass("move-left-for-video"),n.removeClass("shrink-when-main-hover")})},n=function(){$("#liveAuction-page").on("clickChangeItemOnHeader",function(t,e){var i=$("#liveAuction-page").find(".live-auction__header__item-short-name");i.text(e).hide(),i.fadeIn(800)}),$("#liveAuction-page").on("ItemPriceFollowBiddingOnHeader",function(t,e){var i=$("#liveAuction-page").find(".live-auction__header__items--current-price");i.text(e).hide(),i.fadeIn(800)})},r=function(){n(),setTimeout(function(){t(),i(),e()},100)};return{done:r}}(),LiveAuctionBiddersChat=function(){var t=$("#liveAuction-page").find(".live-auction__social-container"),e=function(){var t='<div class="live-auction__bidder__isOnline mdl-cell mdl-cell--9-col mdl-grid"><span class="live-auction__bidder__header mdl-cell mdl-cell--2-col mdl-cell--middle">竞标人</span><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/brideIcon35x35.png"><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/bridegroomIcon35x35.png"><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/womanIcon35x35.png"><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/brideIcon35x35.png"><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/bridegroomIcon35x35.png"><img class="live-auction__bidder live-auction__s-avatar  mdl-cell mdl-cell--1-col mdl-cell--middle" src="./images/images-photos-icons/womanIcon35x35.png"><span class="live-auction__bidder__more  mdl-cell mdl-cell--1-col mdl-cell--middle">..</span></div><div class="live-auction__chat-icon mdl-cell mdl-cell--3-col mdl-cell--middle"><span class="live-auction__chat__title">参加聊天</span><i class="material-icons">chat</i></div>';return t},i=function(){$(e()).appendTo(t)},n=function(t,e){t.find(".live-auction__bidder__isOnline").length<1&&"function"==typeof e&&e()},r=function(){i(),setTimeout(function(){t.addClass("showAni"),t.find(".live-auction__bidder__isOnline").addClass("showAni__bidder"),t.find(".live-auction__chat-icon").addClass("showAni__chat")},300)},s=function(){n(t,r)};return{done:s}}(),LiveBiddingChart=function(){var t="http://www.w3.org/2000/svg",e=$(".live-bidding-chart-container").find("svg#live-bidding-chart-svg"),i=e[0],n=[{originX:0,originY:45,horizotalDistance:85,verticalDistance:10,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:100,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/bridegroomIcon35x35.png",avatarSize:10},{originX:0,originY:45,horizotalDistance:85,verticalDistance:15,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:500,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/brideIcon35x35.png",avatarSize:10},{originX:0,originY:45,horizotalDistance:85,verticalDistance:20,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:1e3,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/womanIcon35x35.png",avatarSize:10},{originX:0,originY:45,horizotalDistance:85,verticalDistance:25,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:1800,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/avatar-1.svg",avatarSize:10},{originX:0,originY:45,horizotalDistance:85,verticalDistance:30,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:3800,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/avatar-4.svg",avatarSize:10}],r={originX:0,originY:45,horizotalDistance:85,verticalDistance:30,rectWidth:6,rectHeight:10,ovalRx:28,ovalRy:14,currency:"$",bidNumber:4e3,bidderId:"",bidderAvatarUrl:"../images/images-photos-icons/manIcon35x35.png",avatarSize:10},s=function(e,n){var r=document.createElementNS(t,"g");i.appendChild(r),r.setAttribute("id",e),r.setAttribute("transform","translate("+n+",0)")},a=function(e,i,n,r,s,a){var o=document.createElementNS(t,"line");e.appendChild(o),o.setAttribute("id",i),o.setAttribute("x1",n),o.setAttribute("x2",s),o.setAttribute("y1",r),o.setAttribute("y2",a),o.style.stroke="rgb(104, 213, 223)",o.style.strokeWidth="2px",o.style.strokeLinecap="square"},o=function(e,i,n,r,s,a){var o=document.createElementNS(t,"rect");e.appendChild(o),o.setAttribute("id",i),o.setAttribute("x",n),o.setAttribute("y",r),o.setAttribute("width",s),o.setAttribute("height",a),o.setAttribute("fill","none"),o.style.stroke="rgb(27, 229, 210)",o.style.strokeWidth="2px",o.style.strokeLinecap="square"},l=function(e,i,n,r,s,a){var o=document.createElementNS(t,"ellipse");e.appendChild(o),o.setAttribute("id",i),o.setAttribute("cx",n),o.setAttribute("cy",r),o.setAttribute("rx",s),o.setAttribute("ry",a),o.setAttribute("fill","none"),o.style.stroke="rgba(142, 218, 246)",o.style.strokeWidth="2px",o.style.fill="rgba(142, 218, 246, 0.69)"},h=function(e,i,n,r,s,a){var o=document.createElementNS(t,"text");e.appendChild(o),o.setAttribute("id",i),o.setAttribute("x",n),o.setAttribute("y",r),o.setAttribute("fill","grey"),o.style.stroke="#000000",o.style.strokeWidth="1px",o.textContent=s+a;var l=o.getBBox(),h=l.width,u=l.height;o.setAttribute("x",Math.round(n-h/2)),o.setAttribute("y",Math.round(r+u/3))},u=function(e,i,n,r,s,a,o){var l=document.createElementNS(t,"clipPath");e.appendChild(l),l.setAttribute("id",i);var h=document.createElementNS(t,"circle");l.appendChild(h),h.setAttribute("cx",r),h.setAttribute("cy",s),h.setAttribute("r",a),h.setAttribute("stroke","black"),h.setAttribute("strokeWidth","1");var u=document.createElementNS(t,"image");e.appendChild(u),u.setAttribute("id",n),
  u.setAttribute("clip-path","url(#"+i+")"),u.setAttributeNS("http://www.w3.org/1999/xlink","href",o),u.setAttribute("width",2*a),u.setAttribute("height",2*a),u.setAttribute("x",r-a),u.setAttribute("y",s-a)},c=function(t,e,n,r,s,a,o,l,h){i.setAttribute("viewBox",t-1+" "+(e-r-2*l-1)+" "+(n*h+o+2)+" "+(Math.round(r+a/2+2*l)+2)),i.setAttribute("width",n*h+o+2),i.setAttribute("height",Math.round(r+a/2+2*l)+2)},d=function(t,e,i,n,r,d,f,p,g,m,_,v,y,b){s("bottom-unit-"+t,e);var x=document.getElementById("bottom-unit-"+t);a(x,"h-line"+t,i,n,i+r,n),a(x,"v-line"+t,i+r,n,i+r,n-d),o(x,"s-rect"+t,Math.round(i+r-f/2),Math.round(n-p/2),f,p),l(x,"oval-plate"+t,i+r,n-d-m,g,m),h(x,"money-text"+t,i+r,n-d-m,_,v),u(x,"avatarclip"+t,"avatar-image"+t,i+r-g-y,n-d-m,y,b),c(i,n,r,d,f,p,g,m,t)},f=function(t,i,n,r,s,a,o,l,h,u,c,f){var p=e.find("g"),g=p.length;d(g+1,g*n,t,i,n,r,s,a,o,l,h,u,c,f)},p=function(t,e){function i(t){$("#liveAuction-page").trigger("ItemPriceFollowBiddingOnHeader",[t])}var n=new TimelineMax({onComplete:i,onCompleteParams:[e]}),r=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("line#h-line"+(t+1)),s=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("line#v-line"+(t+1)),a=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("rect#s-rect"+(t+1)),o=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("ellipse#oval-plate"+(t+1)),l=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("text#money-text"+(t+1)),h=$("svg#live-bidding-chart-svg").find("g#bottom-unit-"+(t+1)).find("image#avatar-image"+(t+1));return n.add(TweenMax.from(r,.1,{drawSVG:0,ease:Linear.easeNone})).add(TweenMax.from(a,.2,{drawSVG:0,ease:Power4.easeInOut})).add(TweenMax.from(s,.1,{drawSVG:0,ease:Linear.easeNone})).add(TweenMax.from(o,.2,{y:"-150",ease:Elastic.easeOut.config(1.6,.3)},"ovalDown")).add(TweenMax.from(l,.2,{alpha:0,y:"-30",ease:Elastic.easeOut.config(1.6,.3)})).add(TweenMax.fromTo([s,a],.1,{scaleY:1,transformOrigin:"50% 50%"},{scaleY:"0.4",ease:Elastic.easeInOut.config(1,.6)})).add(TweenMax.to([s,a],.1,{scaleY:1,transformOrigin:"50% 50%",ease:Elastic.easeInOut.config(1,.6)})).add(TweenMax.from(h,.2,{x:"-30",alpha:0,ease:Elastic.easeOut.config(1,.3)},"oval-shake")).add(TweenMax.fromTo([o,l],.1,{rotation:"0",x:"0",transformOrigin:"50% 60"},{rotation:"5",x:"4",transformOrigin:"50% 60",ease:Elastic.easeInOut.config(1,.6)})).add(TweenMax.to([o,l],.1,{rotation:"0",x:"0",transformOrigin:"50% 60",ease:Elastic.easeInOut.config(1.3,.6)})).add(TweenMax.fromTo([s,a],.1,{rotation:"0",transformOrigin:"50% 40"},{rotation:"5",transformOrigin:"50% 40",ease:Elastic.easeInOut.config(1,.6)})).add(TweenMax.to([s,a],.1,{rotation:"0",transformOrigin:"50% 40",ease:Elastic.easeInOut.config(1,.6)})),n},g=function(){var t=$("svg#live-bidding-chart-svg").find('g[id*="bottom-unit-"]'),e=t.length,i=new TimelineMax,n=[],r=[],s=[],a=[],o=[];return t.each(function(t){if(t===e-1)return!1;var i=$(this).find('line[id*="v-line"]');v(i[0])&&(n.push(i),r.push($(this).find('ellipse[id*="oval-plate"]')),s.push($(this).find('text[id*="money-text"]')),o.push($(this).find('image[id*="avatar-image"]')),a.push($(this).find('clipPath[id*="avatar-image"]').find("circle")))}),i.add(TweenMax.staggerTo(n,.3,{attr:{y2:"+=5"},ease:Cubic.ease},.1)).add(TweenMax.staggerTo(r,.3,{attr:{cy:"+=5"},ease:Cubic.ease},.1)).add(TweenMax.staggerTo(s,.3,{y:"+=5",ease:Cubic.ease},.1)).add(TweenMax.staggerTo(o,.3,{y:"+=5",ease:Cubic.ease},.1)),i},m=function(){var t=85,e=$("svg#live-bidding-chart-svg").find('g[id*="bottom-unit-"]'),i=new TimelineMax({pause:!0});return i.add(TweenMax.staggerTo(e,.5,{xPercent:"-="+t},.2)),i},_=function(){var t=new TimelineMax,i=r;f(i.originX,i.originY,i.horizotalDistance,i.verticalDistance,i.rectWidth,i.rectHeight,i.ovalRx,i.ovalRy,i.currency,i.bidNumber,i.avatarSize,i.bidderAvatarUrl),t.add(g()),t.add(m());var n=e.find("g"),s=n.length;return t.add(p(s-1,i.currency+" "+i.bidNumber)),t},v=function(t){var e=t.getAttribute("y1"),i=t.getAttribute("y2");if(Math.abs(e-i)>4)return!0},y=function(){var t=$("svg#live-bidding-chart-svg").find("g#bottom-unit-1");if(!(t.length>0)){var e=new TimelineMax({pause:!0,delay:1});$.each(n,function(t,i){f(i.originX,i.originY,i.horizotalDistance,i.verticalDistance,i.rectWidth,i.rectHeight,i.ovalRx,i.ovalRy,i.currency,i.bidNumber,i.avatarSize,i.bidderAvatarUrl),e.add(p(t,i.currency+" "+i.bidNumber))}),TweenMax.set("svg#live-bidding-chart-svg",{visibility:"visible"}),e.add(_()),e.play()}},b=function(t){var e,i=!1;return function(){return i?e:(i=!0,e=t.apply(this,arguments),t=null,e)}},x=function(){b(y())};return{done:x}}(),MapActiveMenu=function(){var t=function(){return[{who:"bidder",whoChinese:"竞拍人",act:"JoinBid",actChinese:"正在竞拍",logo:!1},{who:"bidder",whoChinese:"竞拍人",act:"GetBid",actChinese:"成功拍到",logo:!1},{who:"agent",whoChinese:"拍卖行",act:"PostSchedule",actChinese:"发时间表",logo:!0},{who:"agent",whoChinese:"拍卖行",act:"PostItem",actChinese:"发布拍品",logo:!0},{who:"bidder",whoChinese:"竞拍人",act:"AskItem",actChinese:"问拍品",logo:!1},{who:"seller",whoChinese:"货主",act:"AnswerItem",actChinese:"答问题",logo:!1},{who:"translator",whoChinese:"翻译",act:"DonePost",actChinese:"翻译完",logo:!1}]},e=function(){for(var t="./images/images-photos-icons/",e=["manIcon35x35.png","avatar-1.svg","avatar-4.svg","brideIcon35x35.png","bridegroomIcon35x35.png","peopleIcon35x35.png","womanIcon35x35.png"],i=[],n=0;n<7;n++){var r=Math.floor(Math.random()*e.length);i.push(t+e[r])}return i},i=function(){for(var e=t(),i=[],n=0;n<7;n++){var r=Math.floor(Math.random()*e.length);i.push(e[r])}return i},n=function(){var t=$(".header-up-part-container").find(".map-active-menu"),n=i(),r=e(),s='<div class="map-active-menu__container">';$.each(n,function(t,e){s=s+'<div class="map-active-menu__'+e.who+e.act+' map-active-menu__item"><span class="map-active-menu__text">'+e.whoChinese+'</span><img class="map-active-menu__'+(e.logo?"avatar":"logo")+'" src="'+r[t]+'"/><span class="map-active-menu__text">'+e.actChinese+"</span></div>"}),s+="</div>",$(s).appendTo(t)},r=function(t){n();var e=$(".map-active-menu__container"),i=e.find(".map-active-menu__item"),r=new TimelineMax({repeatDelay:3.5});r.set(e,{visibility:"visible",position:"relative"}).staggerFrom(i,.5,{opacity:0,scal:.5,top:"60",delay:2},.1).staggerTo(i,.5,{opacity:0,top:"+=60",delay:3.5},.1),t.add(r)},s=function(t){$("body").on("hideAcitveMenuAndAni",function(){var e=$(".header-up-part-container").find(".map-active-menu");e.find(".map-active-menu__container").css({opacity:"0"}),e.addClass("shrink"),t.paused()}),$("body").on("showAcitveMenuAndAni",function(){var e=$(".header-up-part-container").find(".map-active-menu");e.find(".map-active-menu__container").css({opacity:"1"}),e.removeClass("shrink"),t.play()})};return{ani:r,subEvent:s}}(),Overview=function(){var t=$(".overview-container"),e=t.find('div[class*="overview-"].mdl-card'),i=[["biddingNow","biddingSoon"],["biddingChart","hotLot"],["coldLot","auctionHouse"]],n=[{id:"biddingNow",rippleColor:"hsla(39,98%,25%,0.5)"},{id:"biddingSoon",rippleColor:"hsla(194,74%,20%,0.5)"},{id:"biddingChart",rippleColor:"hsla(142,67%,15%,0.5)"},{id:"hotLot",rippleColor:"hsla(0,96%,28%,0.5)"},{id:"coldLot",rippleColor:"hsla(221,48%,30%,0.5)"},{id:"auctionHouse",rippleColor:"hsla(192,97%,25%,0.5)"}],r=[{id:"biddingNow",goUpPos:"-150% -50%"},{id:"biddingSoon",goUpPos:"-100% -50%"},{id:"biddingChart",goUpPos:"-50% -50%"},{id:"hotLot",goUpPos:"0% -50%"},{id:"coldLot",goUpPos:"50% -50%"},{id:"auctionHouse",goUpPos:"100% -50%"}],s=[],a=$(".header-tab-container").find(".mdl-layout__tab"),o=function(t){var e,n,r=[],s=[],a=[],o=[];if($.each(i,function(i,s){e=i,$.each(s,function(i,s){s===t&&(n=i,r=[e,n])})}),$.each(i,function(t,e){t<r[0]?s.push(e):t>r[0]&&a.push(e)}),s.length>0){var l=[];$.each(s,function(t,e){var i=[];$.each(e,function(t,e){i.push("#"+e)}),l.push(i)}),s=l}if(a.length>0){var h=[];$.each(a,function(t,e){var i=[];$.each(e,function(t,e){i.push("#"+e)}),h.push(i)}),a=h}return $.each(i[r[0]],function(t,e){t!==r[1]&&o.push("#"+e)}),{before:s,clicked:["#"+t],clickedSibling:o,after:a}},l=function(t,e,i,n){function r(t){}if(0!==t.length){var s=new TimelineMax({onComplete:r,onCompleteParams:[e]});s.set(t,{boxShadow:"none"}).to(t,.1,{sacle:0,transformOrigin:"50% 50%",alpha:0,delay:.001*i,ease:Power4.easeOut}).to(t,.1,{paddingTop:0,paddingBottom:0,margin:0,delay:.001*i,ease:Power4.easeOut}).to(t,.015,{marginTop:0,marginBottom:0,delay:.001*i}).to(t,.015,{marginRight:0,marginLeft:0,delay:.001*i}).set(t,{display:"none"}),n.add(s)}},h=function(t,e,i,n){i.set(t,{boxShadow:"none"}).to(t,.1,{scale:0,transformOrigin:"50% 50%",delay:.001*e,ease:Power4.easeOut},"shrinkX"+n).to(t,.05,{alpha:0,delay:.001*e,ease:Power4.easeOut},"shrinkX"+n+.001).to(t,.02,{paddingTop:0,paddingBottom:0,margin:0,delay:.001*e,ease:Power4.easeOut}).to(t,.008,{marginTop:0,marginBottom:0,delay:.001*e,ease:Power4.easeOut}).to(t,.008,{marginRight:0,marginLeft:0,delay:.001*e,ease:Power4.easeOut}).set(t,{display:"none"})},u=function(t,e,i){t.length>0&&$.each(t,function(t,n){h(n,e*(t+2),i,"before"+t)})},c=function(t,e,i){t.length>0&&$.each(t,function(t,n){h(n,e*(t+1),i,"after"+t)})},d=function(t,e,i){var n=o(t);c(n.after,e,i),u(n.before,e,i),l(n.clickedSibling,n.clicked,e,i)},f=function(){var t=$("main").find(".overview-overlay");t.length<1&&$("main").append('<div class="overview-overlay"><div class="ani-circle"></div><div class="ani-circle"></div><div class="ani-circle"></div></div>')},p=function(t){var e=$(t).find(".click-ripple-container");e.length<1&&$(t).append('<div class="click-ripple-container"><div class="first"></div><div class="second"></div><div class="three"></div></div>')},g=function(t,e,i,n,r,s){var a=$(t).offset(),o=$(t).find(".click-ripple-container").children();o.each(function(){this.setAttribute("style","")}),n.add(TweenMax.set(o,{display:"block",borderRadius:"2px",width:"2px",height:"2px",position:"absolute",top:i-a.top,left:e-a.left})),n.add(TweenMax.staggerTo(o,.5,{opacity:.3,yoyo:!0,cycle:{boxShadow:["0 0 0 0 transparent,0 0 0 0 transparent,0 0 0 0 transparent,0 0 0 0 transparent","0 0 0 0 "+r+",0 0 0 0 rgba(255, 255, 255, 0.4),0 0 0 0 "+r+",0 0 0 0 rgba(0, 0, 0, 0.08)","0 0 80px 400px "+r+",0 0 20px 420px transparent,0 0 60px 440px "+r+",0 0 10px 460px transparent"]}},.1)).add(s)},m=function(t,e,i,n){$(t).find(".overview-"+e+"-text-action-container").find(".overview-"+e+"-text"),$(t).find(".overview-"+e+"-text-action-container").find(".overview-"+e+"-action"),$(t).find("svg"),$(t).find(".click-ripple-container");i.add(TweenMax.to(t,.02,{boxShadow:"0 0 0 0 transparent"})).add(TweenMax.set(t,{boxShadow:"0 0 0 0 transparent"})).add(TweenMax.to(t,.1,{scale:.3,transformOrigin:n,alpha:0,ease:Power4.easeOut}))},_=function(t,e,i,n,r){function s(){a.each(function(){this.setAttribute("style","")})}var a=$("main").find(".overview-overlay").find(".ani-circle"),o=$("main").offset();a.each(function(){this.setAttribute("style","")}),i.add(TweenMax.set(a,{top:e-o.top,left:t-o.left})),i.add([TweenMax.staggerTo(a,.45,{opacity:.3,yoyo:!0,cycle:{boxShadow:["0 0 0 0 transparent,0 0 0 0 transparent,0 0 0 0 transparent,0 0 0 0 transparent","0 0 0 0 "+n+",0 0 0 0 rgba(255,255,255,0.4),0 0 0 0 "+n+",0 0 0 0 rgba(0,0,0,0.08)","0 0 180px 1400px "+n+",0 0 120px 1420px transparent,0 0 160px 1440px "+n+",0 0 110px 1460px transparent"]},onComplete:s},.1)],r+"-=0.3")},v=function(){var t=[];$.each(a,function(e,i){t.push($(i).attr("href").match(/([^#]\w+(?=\-))/)[0])}),s=t},y=function(t,e){s.length<1&&v();var i=0;$.each(s,function(e,n){if(n===t)return i=e,!1});var n,r=[],o=[];$.each(a,function(t,e){t<i?r.push(e):t>i?o.push(e):t===i&&(n=e)}),e.set(a,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"}).to(n,.7,{scale:1.25,transformOrigin:"50% 50%",backgroundColor:"rgba(69, 98, 193, 1)",ease:Elastic.easeInOut.config(1,.1)}).staggerTo(r.reverse(),.25,{scale:1.05,transformOrigin:"100% 50%",backgroundColor:"rgba(99, 167, 174, 1)"},.05,"startPoint").staggerTo(r.reverse(),.2,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"},.05,"endPoint").staggerTo(o,.25,{scale:1.05,transformOrigin:"0% 50%",backgroundColor:"rgba(99, 167, 174, 1)"},.05,"startPoint").staggerTo(o,.2,{scale:1,transformOrigin:"50% 50%",backgroundColor:"rgba(54, 70, 78, 1)"},.05,"endPoint")},b=function(t){function e(t){}var i=new TimelineMax({pause:!0,onComplete:e,onCompleteParams:[t]});if("biddingChart"===t)$("main").find("#overview").css({display:"none"}),$.getScript("./scripts/my-js/chart-catagory.js",function(){}),$("main").find("#biddingChart-page").addClass("is-active");else if("biddingNow"===t)$("main").find("#overview").css({display:"none"}),$("main").find("#liveAuction-page").addClass("is-active"),$.getScript("./scripts/my-js/live-auction.js",function(){LiveAuction.done()}),$.getScript("./scripts/my-js/itemsline.js",function(){Itemsline.done()}),$.getScript("./scripts/my-js/live-auction__bidders-chat.js",function(){LiveAuctionBiddersChat.done()}),$.getScript("./scripts/my-js/live-bidding-chart.js",function(){LiveBiddingChart.done()});else if("coldLot"===t||"hotLot"===t||"auctionHouse"===t||"biddingSoon"===t){$("main").find("#overview").css({display:"none"});var n=$("main").find("#"+t+"-page");n.length>0&&"block"===n.attr("display")?i.to(n,.01,{alpha:0}):i.set(n,{display:"block"}).from(n,.2,{marginTop:"-=50",scale:0,transformOrigin:"50% 50%",alpha:0,ease:Expo.easeIn})}},x=function(){e.on("click",function(t){function e(t){b(t)}f();var i=$(this).attr("id"),s=new TimelineMax({pause:!0,onComplete:e,onCompleteParams:[i]});p(this);var a;$.each(n,function(t,e){if(e.id===i)return a=e.rippleColor,!1});var o="rippleLabel";g(this,t.clientX,t.clientY,s,a,o),_(t.clientX,t.clientY,s,a,o),d(i,.01,s);var l="50% -50%";$.each(r,function(t,e){if(e.id===i)return l=e.goUpPos,!1}),m(this,i,s,l),y(i,s),s.play(),s.timeScale(1.5)})};return{setClickEvent:x}}(),WarningBug=function(){var t=function(){var t=$(".mdl-layout").find(".warning-bug-container").length;!t>0&&$(".mdl-layout").append('<div class="warning-bug-container mdl-shadow-8dp"><h5>由于时间原因响应式页面还没有做</h5><svg id="warning-bug-svg" viewBox="0 0 400 400" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="alerter-bug" transform="translate(10.000000, 10.000000)"><rect id="Rectangle-path" stroke="#232C38" stroke-width="20" fill="#16212F" x="0" y="0" width="380" height="380" rx="70"></rect><path d="M192,155 L192,207" id="exclamationLine" stroke="#EDEDED" stroke-width="22"></path><circle id="exclamationDot" fill="#EDEDED" cx="192.29" cy="239.01" r="11.5"></circle><g id="bugGroup" transform="translate(85.000000, 181.000000)" stroke="#FF6633" stroke-width="20"><path d="M130.72,0.55 L130.72,53.5800898 C130.676071,67.9932336 118.85522,79.6666193 104.26,79.71 L104.26,79.71 C89.6647801,79.6666193 77.8439287,67.9932336 77.8,53.5800898 L77.8,0.55" id="Shape"></path><path d="M0.498591366,81.5960363 L0.222542476,8.95051361 L25.3591691,8.97846957 C25.3591691,8.97846957 37.645227,12.7855334 38.8019678,22.4649575 C39.9587085,32.1443817 34.4448249,42.773275 34.4448249,42.773275 L5.19120579,43.3108205 L35.4448249,43.5344357 C35.4448249,43.5344357 49.0098821,45.1693178 49.0098821,62.9411733 C49.0098821,80.7130288 36.1862647,81.5960363 36.1862647,81.5960363 L0.498591366,81.5960363 Z" id="Path-2"></path><path d="M209.926897,35.005397 C213.109217,3.24742192 177.788894,4.32860549 166.796111,13.9161329 C155.803327,23.5036603 156.706912,68.4395487 167.796111,76.3673942 C178.88531,84.2952396 198.396237,81.8071458 206.041592,77.7529698 C211.840443,74.6779575 213.951807,58.3031003 212.985745,51.8523001 C212.678126,49.7981978 187.213283,51.8523001 187.213283,51.8523001" id="Combined-Shape"></path></g><path d="M193,271.54 L263.4,271.54 C270.751547,271.543126 277.545913,267.622649 281.222146,261.256288 C284.89838,254.889926 284.897561,247.045594 281.22,240.68 L210.82,118.75 C207.147059,112.379899 200.353141,108.454848 193,108.454848 C185.646859,108.454848 178.852941,112.379899 175.18,118.75 L104.78,240.68 C101.102439,247.045594 101.10162,254.889926 104.777854,261.256288 C108.454087,267.622649 115.248453,271.543126 122.6,271.54 L193,271.54" id="outline" stroke="#FF6633" stroke-width="22"></path><g id="heatlineGroup" transform="translate(104.000000, 48.000000)" stroke="#FF6633" stroke-width="16"><path d="M160.66,93 L174.22,77.94 C178.382524,73.3153732 178.382524,66.2946268 174.22,61.67 L168,54.74 C163.837476,50.1153732 163.837476,43.0946268 168,38.47 L174.23,31.54 C178.392524,26.9153732 178.392524,19.8946268 174.23,15.27 L160.66,0.2" id="Shape"></path><path d="M80.66,93 L94.24,77.91 C98.3909442,73.3000505 98.3909442,66.2999495 94.24,61.69 L87.96,54.69 C83.8090558,50.0800505 83.8090558,43.0799495 87.96,38.47 L94.24,31.47 C98.3909442,26.8600505 98.3909442,19.8599495 94.24,15.25 L80.66,0.2" id="Shape"></path><path d="M0.66,93 L14.26,77.89 C18.4007587,73.2914387 18.4007587,66.3085613 14.26,61.71 L7.94,54.71 C3.7992413,50.1114387 3.7992413,43.1285613 7.94,38.53 L14.26,31.53 C18.4007587,26.9314387 18.4007587,19.9485613 14.26,15.35 L0.66,0.24" id="Shape"></path></g></g></g></svg><h6>需要做的地方有－－－</h6></div>')},e=function(){TweenMax.set("#warning-bug-svg",{visibility:"visible"});var t=new TimelineMax({repeat:-1}).timeScale(1.4);t.staggerFromTo("#bugGroup path",.5,{drawSVG:"0% 50%"},{drawSVG:"0% 0%",ease:Sine.easeOut},0).from("#outline",1,{drawSVG:"0% 0%",ease:Sine.easeInOut},"-=0.5").from("#exclamationDot",.3,{attr:{r:0}},"-=0.3").from("#exclamationLine",1e-4,{autoAlpha:0},"-=0.31").from("#exclamationLine",.5,{attr:{y1:293}},"-=0.3").staggerFrom(["#exclamationLine","#exclamationDot"],1,{cycle:{y:[40,20]},ease:Back.easeOut.config(2,.7)},.21,"-=1").to("#exclamationLine",.5,{drawSVG:"100% 100%"},"+=2").to("#exclamationDot",.5,{attr:{r:0}},"-=0.3").staggerTo(["#exclamationLine","#exclamationDot"],.5,{cycle:{y:[40,20]},ease:Back.easeOut.config(2,.7)},.1,"-=0.5").to("#outline",1,{drawSVG:"100% 100%",ease:Sine.easeInOut},"-=0.5").set("#outline",{autoAlpha:0}).staggerTo("#bugGroup path",1,{drawSVG:"0% 100%"},.08,"-=0.3").to("#bugGroup path",.2,{stroke:"#ededed",repeat:11,yoyo:!0,ease:Linear.easeNone}).staggerFromTo("#heatlineGroup path",.5,{drawSVG:"0% 0%",alpha:0,stroke:"#f63"},{alpha:1,drawSVG:"0% 30%",ease:Linear.easeNone},0,"-=2.2").staggerTo("#heatlineGroup path",.7,{drawSVG:"70% 100%",ease:Linear.easeNone,stroke:"#232C38"},0,"-=1.7").staggerTo("#heatlineGroup path",.5,{drawSVG:"100% 100%",alpha:0,ease:Power1.easeOut},0,"-=1").staggerTo("#bugGroup path",.5,{drawSVG:"0% 50%",ease:Sine.easeIn},0)},i=function(){t(),e()},n=function(){var t=$(".mdl-layout").find(".warning-bug-container"),e=t.length;e>0&&t.remove()};return{done:i,cleanWarningBug:n}}(),WorldMapAddNote=function(){var t=function(t){return{id:t.attr("id"),title:t.attr("title")}},e=function(t){return[{agency:"ACB co.","item-list":["porcelain","neck lace","gold watch"],buyer:["jhon","mike","peter","mark"]},{agency:"Good auction co.","item-list":["porcelain","neck lace","gold watch"],buyer:["jhon","mike","peter","mark"]},{agency:"Buyer House","item-list":["porcelain","neck lace","gold watch"],buyer:["jhon","mike","peter","mark"]},{agency:"Big bidding","item-list":["wood sculpt","neck lace","gold watch"],buyer:["jhon","mike","peter","mark"]},{agency:"New York co.","item-list":["stone","neck lace","gold watch"],buyer:["jhon","mike","peter","mark"]}]},i=function(t){return t[0].getBoundingClientRect()},n=function(i){var n=e(i),r=n.length,s=0,a=0;return $.each(n,function(t,e){s+=e["item-list"].length,a+=e=["buyer"].length}),{title:t(i).title,agencyLen:r,itemNum:s,buyerNum:a}},r=function(t){var e=t.attr("d");return e=e.match(/(\d+(\.|)(\d?)+)/g),[parseFloat(e[0]),parseFloat(e[1])]},s=function(e,s,a,o,l){var h=t(e),u=n(e),c=(r(e),'<div id="'+h.id+'-note-container" class="world-map-note__'+l+'"><span class="world-map-note__'+l+'-title">'+u.title+'<span class="xs-font-size">'+o+'</span></span><div class="world-map-note__'+l+'-container"><span class="world-map-note__'+l+'-agency">'+u.agencyLen+'<span class="xs-font-size">拍卖行</span></span><span class="world-map-note__'+l+'-item">'+u.itemNum+'<span class="xs-font-size">拍品</span></span></div><span class="world-map-note__'+l+'-buyer">'+u.buyerNum+'<span class="xs-font-size">竞拍人</span></span></div>'),d=i(e),f=$(".header-up-part-container").find(".header-text-search-container").height(),p=Math.round(d.top+d.width/3-f)+"px",g=Math.round(d.left+d.height/3)+"px";return $(c).appendTo(s).css({top:p,left:g,visibility:"hidden"}),a.push($("#"+h.id+"-note-container.world-map-note__"+l)),a};return{addNoteOnCountry:s}}(),WorldMapAniMock=function(){var t=function(t){var e=new $.Deferred;$.getScript("./scripts/my-js/world-map__isDoing--mock.js",function(){var i=[$("svg#world-map-svg").find("#FR"),$("svg#world-map-svg").find("#FI"),$("svg#world-map-svg").find("#GB"),$("svg#world-map-svg").find("#US"),$("svg#world-map-svg").find("#CN")],n=WorldMapIsDoingMock.show(e,i,"正在拍","isBidding");t.add(n)});var i=new $.Deferred;e.done(function(){var e=[$("svg#world-map-svg").find("#CA"),$("svg#world-map-svg").find("#FI"),$("svg#world-map-svg").find("#ES"),$("svg#world-map-svg").find("#BE"),$("svg#world-map-svg").find("#DE")],n=WorldMapIsDoingMock.show(i,e,"即将拍","isWaiting");t.add(n)});var n=new $.Deferred;i.done(function(){var e=[$("svg#world-map-svg").find("#GB"),$("svg#world-map-svg").find("#FI"),$("svg#world-map-svg").find("#ES"),$("svg#world-map-svg").find("#BE"),$("svg#world-map-svg").find("#US")],i=WorldMapIsDoingMock.show(n,e,"家具","hasFurnish");t.add(i)});var r=new $.Deferred;n.done(function(){var e=[$("svg#world-map-svg").find("#FR"),$("svg#world-map-svg").find("#FI"),$("svg#world-map-svg").find("#GB"),$("svg#world-map-svg").find("#BE"),$("svg#world-map-svg").find("#CN")],i=WorldMapIsDoingMock.show(r,e,"瓷器","hasPorcelain");t.add(i)});var s=new $.Deferred;r.done(function(){var e=[$("svg#world-map-svg").find("#IT"),$("svg#world-map-svg").find("#HU"),$("svg#world-map-svg").find("#NO"),$("svg#world-map-svg").find("#GR"),$("svg#world-map-svg").find("#JP")],i=WorldMapIsDoingMock.show(s,e,"正直播","isLiveVideo");t.add(i)}),s.done(function(){})},e=function(t){$(".mdl-layout").on("hideMapNoteAndAni",function(){var e=$(".mdl-layout"),i=e.find('div[id*="-note-container"]');t.paused(),i.length>0&&i.each(function(){$(this).css({opacity:0})})}),$(".mdl-layout").on("showMapNoteAndAni",function(){var e=$(".mdl-layout"),i=e.find('div[id*="-note-container"]');i.length>0&&i.each(function(){$(this).css({opacity:1})}),t.play()})};return{show:t,subEvent:e}}(),WorldMapIsDoingMock=function(){var t=function(t,e,i,n){function r(){$.each(o,function(t,e){e.attr("class","world-map-svg__each")}),$("[id*='-note-container']").remove(),t.resolve()}var s=new TimelineMax({onComplete:r,pasued:!0}),a=$.Deferred(),o=e,l=[];return $.getScript("./scripts/my-js/world-map__addNote.js",function(){$.each(o,function(t,e){e.attr("class",n)});var t=$(".map-container").find(".map-notes-container");$.each(o,function(e,r){l=WorldMapAddNote.addNoteOnCountry(r,t,l,i,n)}),a.resolve()}),a.done(function(){s.staggerFrom($("."+n),1.5,{css:{scale:.95,opacity:.5,transformOrigin:"50% 50%",backgroundColor:"#FF0000"},repeat:1,ease:Elastic.easeInOut},.3).set(l,{visibility:"visible"}).staggerFrom(l,.6,{opacity:0,scaleX:.5},.3).staggerTo(l,.6,{opacity:0,scaleX:0,delay:3},.3)}),s};return{show:t}}();/*!
   *
   *  Web Starter Kit
   *  Copyright 2015 Google Inc. All rights reserved.
   *
   *  Licensed under the Apache License, Version 2.0 (the "License");
   *  you may not use this file except in compliance with the License.
   *  You may obtain a copy of the License at
   *
   *    https://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing, software
   *  distributed under the License is distributed on an "AS IS" BASIS,
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *  See the License for the specific language governing permissions and
   *  limitations under the License
   *
   */
  !function(t){"use strict";t.toolbox.router.get("/(.*)",t.toolbox.fastest,{origin:/\.(?:googleapis|gstatic)\.com$/})}(self),/*!
   * Chart.js
   * http://chartjs.org/
   * Version: 2.2.1
   *
   * Copyright 2016 Nick Downie
   * Released under the MIT license
   * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
   */
  !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Chart=t()}}(function(){var t;return function e(t,i,n){function r(a,o){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!o&&l)return l(a,!0);if(s)return s(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[a]={exports:{}};t[a][0].call(u.exports,function(e){var i=t[a][1][e];return r(i?i:e)},u,u.exports,e,t,i,n)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){function n(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,i=/^#([a-fA-F0-9]{6})$/,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/(\w+)/,a=[0,0,0],o=1,l=t.match(e);if(l){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l[h]+l[h],16)}else if(l=t.match(i)){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l.slice(2*h,2*h+2),16)}else if(l=t.match(n)){for(var h=0;h<a.length;h++)a[h]=parseInt(l[h+1]);o=parseFloat(l[4])}else if(l=t.match(r)){for(var h=0;h<a.length;h++)a[h]=Math.round(2.55*parseFloat(l[h+1]));o=parseFloat(l[4])}else if(l=t.match(s)){if("transparent"==l[1])return[0,0,0,0];if(a=b[l[1]],!a)return}for(var h=0;h<a.length;h++)a[h]=v(a[h],0,255);return o=o||0==o?v(o,0,1):1,a[3]=o,a}}function r(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=v(parseInt(i[1]),0,360),s=v(parseFloat(i[2]),0,100),a=v(parseFloat(i[3]),0,100),o=v(isNaN(n)?1:n,0,1);return[r,s,a,o]}}}function s(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=v(parseInt(i[1]),0,360),s=v(parseFloat(i[2]),0,100),a=v(parseFloat(i[3]),0,100),o=v(isNaN(n)?1:n,0,1);return[r,s,a,o]}}}function a(t){var e=n(t);return e&&e.slice(0,3)}function o(t){var e=r(t);return e&&e.slice(0,3)}function l(t){var e=n(t);return e?e[3]:(e=r(t))?e[3]:(e=s(t))?e[3]:void 0}function h(t){return"#"+y(t[0])+y(t[1])+y(t[2])}function u(t,e){return 1>e||t[3]&&t[3]<1?c(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function c(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function d(t,e){if(1>e||t[3]&&t[3]<1)return f(t,e);var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgb("+i+"%, "+n+"%, "+r+"%)"}function f(t,e){var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgba("+i+"%, "+n+"%, "+r+"%, "+(e||t[3]||1)+")"}function p(t,e){return 1>e||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function _(t){return x[t.slice(0,3)]}function v(t,e,i){return Math.min(Math.max(e,t),i)}function y(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var b=t(5);e.exports={getRgba:n,getHsla:r,getRgb:a,getHsl:o,getHwb:s,getAlpha:l,hexString:h,rgbString:u,rgbaString:c,percentString:d,percentaString:f,hslString:p,hslaString:g,hwbString:m,keyword:_};var x={};for(var w in b)x[b[w]]=w},{5:5}],2:[function(t,e,i){var n=t(4),r=t(1),s=function(t){if(t instanceof s)return t;if(!(this instanceof s))return new s(t);this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;if("string"==typeof t)if(e=r.getRgba(t))this.setValues("rgb",e);else if(e=r.getHsla(t))this.setValues("hsl",e);else{if(!(e=r.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(e=t,void 0!==e.r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};s.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=0>t?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=.03928>=n?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return 128>e},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;3>e;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=0>i?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,n=t,r=void 0===e?.5:e,s=2*r-1,a=i.alpha()-n.alpha(),o=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,l=1-o;return this.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue()).alpha(i.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new s,n=this.values,r=i.values;for(var a in n)n.hasOwnProperty(a)&&(t=n[a],e={}.toString.call(t),"[object Array]"===e?r[a]=t.slice(0):"[object Number]"===e?r[a]=t:console.error("unexpected color value:",t));return i}},s.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},s.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},s.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},s.prototype.setValues=function(t,e){var i,r=this.values,s=this.spaces,a=this.maxes,o=1;if("alpha"===t)o=e;else if(e.length)r[t]=e.slice(0,t.length),o=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)r[t][i]=e[t.charAt(i)];o=e.a}else if(void 0!==e[s[t][0]]){var l=s[t];for(i=0;i<t.length;i++)r[t][i]=e[l[i]];o=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===o?r.alpha:o)),"alpha"===t)return!1;var h;for(i=0;i<t.length;i++)h=Math.max(0,Math.min(a[t][i],r[t][i])),r[t][i]=Math.round(h);for(var u in s)u!==t&&(r[u]=n[t][u](r[t]));return!0},s.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},s.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:i===n[e]?this:(n[e]=i,this.setValues(t,n),this)},"undefined"!=typeof window&&(window.Color=s),e.exports=s},{1:1,4:4}],3:[function(t,e,i){function n(t){var e,i,n,r=t[0]/255,s=t[1]/255,a=t[2]/255,o=Math.min(r,s,a),l=Math.max(r,s,a),h=l-o;return l==o?e=0:r==l?e=(s-a)/h:s==l?e=2+(a-r)/h:a==l&&(e=4+(r-s)/h),e=Math.min(60*e,360),0>e&&(e+=360),n=(o+l)/2,i=l==o?0:.5>=n?h/(l+o):h/(2-l-o),[e,100*i,100*n]}function s(t){var e,i,n,r=t[0],s=t[1],a=t[2],o=Math.min(r,s,a),l=Math.max(r,s,a),h=l-o;return i=0==l?0:h/l*1e3/10,l==o?e=0:r==l?e=(s-a)/h:s==l?e=2+(a-r)/h:a==l&&(e=4+(r-s)/h),e=Math.min(60*e,360),0>e&&(e+=360),n=l/255*1e3/10,[e,i,n]}function a(t){var e=t[0],i=t[1],r=t[2],s=n(t)[0],a=1/255*Math.min(e,Math.min(i,r)),r=1-1/255*Math.max(e,Math.max(i,r));return[s,100*a,100*r]}function o(t){var e,i,n,r,s=t[0]/255,a=t[1]/255,o=t[2]/255;return r=Math.min(1-s,1-a,1-o),e=(1-s-r)/(1-r)||0,i=(1-a-r)/(1-r)||0,n=(1-o-r)/(1-r)||0,[100*e,100*i,100*n,100*r]}function l(t){return Z[JSON.stringify(t)]}function h(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*e+.3576*i+.1805*n,s=.2126*e+.7152*i+.0722*n,a=.0193*e+.1192*i+.9505*n;return[100*r,100*s,100*a]}function u(t){var e,i,n,r=h(t),s=r[0],a=r[1],o=r[2];return s/=95.047,a/=100,o/=108.883,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,i=500*(s-a),n=200*(a-o),[e,i,n]}function c(t){return B(u(t))}function d(t){var e,i,n,r,s,a=t[0]/360,o=t[1]/100,l=t[2]/100;if(0==o)return s=255*l,[s,s,s];i=.5>l?l*(1+o):l+o-l*o,e=2*l-i,r=[0,0,0];for(var h=0;3>h;h++)n=a+1/3*-(h-1),0>n&&n++,n>1&&n--,s=1>6*n?e+6*(i-e)*n:1>2*n?i:2>3*n?e+(i-e)*(2/3-n)*6:e,r[h]=255*s;return r}function f(t){var e,i,n=t[0],r=t[1]/100,s=t[2]/100;return 0===s?[0,0,0]:(s*=2,r*=1>=s?s:2-s,i=(s+r)/2,e=2*r/(s+r),[n,100*e,100*i])}function p(t){return a(d(t))}function m(t){return o(d(t))}function _(t){return l(d(t))}function v(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,s=e-Math.floor(e),a=255*n*(1-i),o=255*n*(1-i*s),l=255*n*(1-i*(1-s)),n=255*n;switch(r){case 0:return[n,l,a];case 1:return[o,n,a];case 2:return[a,n,l];case 3:return[a,o,n];case 4:return[l,a,n];case 5:return[n,a,o]}}function y(t){var e,i,n=t[0],r=t[1]/100,s=t[2]/100;return i=(2-r)*s,e=r*s,e/=1>=i?i:2-i,e=e||0,i/=2,[n,100*e,100*i]}function x(t){return a(v(t))}function w(t){return o(v(t))}function T(t){return l(v(t))}function C(t){var e,i,n,s,a=t[0]/360,o=t[1]/100,l=t[2]/100,h=o+l;switch(h>1&&(o/=h,l/=h),e=Math.floor(6*a),i=1-l,n=6*a-e,0!=(1&e)&&(n=1-n),s=o+n*(i-o),e){default:case 6:case 0:r=i,g=s,b=o;break;case 1:r=s,g=i,b=o;break;case 2:r=o,g=i,b=s;break;case 3:r=o,g=s,b=i;break;case 4:r=s,g=o,b=i;break;case 5:r=i,g=o,b=s}return[255*r,255*g,255*b]}function S(t){return n(C(t))}function k(t){return s(C(t))}function P(t){return o(C(t))}function M(t){return l(C(t))}function A(t){var e,i,n,r=t[0]/100,s=t[1]/100,a=t[2]/100,o=t[3]/100;return e=1-Math.min(1,r*(1-o)+o),i=1-Math.min(1,s*(1-o)+o),n=1-Math.min(1,a*(1-o)+o),[255*e,255*i,255*n]}function D(t){return n(A(t))}function O(t){return s(A(t))}function R(t){return a(A(t))}function L(t){return l(A(t))}function I(t){var e,i,n,r=t[0]/100,s=t[1]/100,a=t[2]/100;return e=3.2406*r+-1.5372*s+a*-.4986,i=r*-.9689+1.8758*s+.0415*a,n=.0557*r+s*-.204+1.057*a,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,e=Math.min(Math.max(0,e),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*e,255*i,255*n]}function E(t){var e,i,n,r=t[0],s=t[1],a=t[2];return r/=95.047,s/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*s-16,i=500*(r-s),n=200*(s-a),[e,i,n]}function F(t){return B(E(t))}function N(t){var e,i,n,r,s=t[0],a=t[1],o=t[2];return 8>=s?(i=100*s/903.3,r=7.787*(i/100)+16/116):(i=100*Math.pow((s+16)/116,3),r=Math.pow(i/100,1/3)),e=.008856>=e/95.047?e=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),n=.008859>=n/108.883?n=108.883*(r-o/200-16/116)/7.787:108.883*Math.pow(r-o/200,3),[e,i,n]}function B(t){var e,i,n,r=t[0],s=t[1],a=t[2];return e=Math.atan2(a,s),i=360*e/2/Math.PI,0>i&&(i+=360),n=Math.sqrt(s*s+a*a),[r,n,i]}function V(t){return I(N(t))}function W(t){var e,i,n,r=t[0],s=t[1],a=t[2];return n=a/360*2*Math.PI,e=s*Math.cos(n),i=s*Math.sin(n),[r,e,i]}function z(t){return N(W(t))}function H(t){return V(W(t))}function Y(t){return Q[t]}function U(t){return n(Y(t))}function j(t){return s(Y(t))}function X(t){return a(Y(t))}function G(t){return o(Y(t))}function q(t){return u(Y(t))}function $(t){return h(Y(t))}e.exports={rgb2hsl:n,rgb2hsv:s,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:l,rgb2xyz:h,rgb2lab:u,rgb2lch:c,hsl2rgb:d,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:m,hsl2keyword:_,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:w,hsv2keyword:T,hwb2rgb:C,hwb2hsl:S,hwb2hsv:k,hwb2cmyk:P,hwb2keyword:M,cmyk2rgb:A,cmyk2hsl:D,cmyk2hsv:O,cmyk2hwb:R,cmyk2keyword:L,keyword2rgb:Y,keyword2hsl:U,keyword2hsv:j,keyword2hwb:X,keyword2cmyk:G,keyword2lab:q,keyword2xyz:$,xyz2rgb:I,xyz2lab:E,xyz2lch:F,lab2xyz:N,lab2rgb:V,lab2lch:B,lch2lab:W,lch2xyz:z,lch2rgb:H};var Q={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]},Z={};for(var J in Q)Z[JSON.stringify(Q[J])]=J},{}],4:[function(t,e,i){var n=t(3),r=function(){return new h};for(var s in n){r[s+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),n[t](e)}}(s);var a=/(\w+)2(\w+)/.exec(s),o=a[1],l=a[2];r[o]=r[o]||{},r[o][l]=r[s]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=n[t](e);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(s)}var h=function(){this.convs={}};h.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},h.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},h.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=r[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){h.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=r},{3:3}],5:[function(t,e,i){e.exports={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]}},{}],6:[function(e,i,n){!function(e,r){"object"==typeof n&&"undefined"!=typeof i?i.exports=r():"function"==typeof t&&t.amd?t(r):e.moment=r()}(this,function(){"use strict";function t(){return gn.apply(null,arguments)}function n(t){gn=t}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){var e;for(e in t)return!1;return!0}function o(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){for(var i in e)h(e,i)&&(t[i]=e[i]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return ve(t,e,i,n,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(t){return null==t._pf&&(t._pf=d()),t._pf}function p(t){if(null==t._isValid){var e=f(t),i=mn.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function g(t){var e=c(NaN);return null!=t?u(f(e),t):f(e).userInvalidated=!0,e}function m(t){return void 0===t}function _(t,e){var i,n,r;if(m(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),m(e._i)||(t._i=e._i),m(e._f)||(t._f=e._f),m(e._l)||(t._l=e._l),m(e._strict)||(t._strict=e._strict),m(e._tzm)||(t._tzm=e._tzm),m(e._isUTC)||(t._isUTC=e._isUTC),m(e._offset)||(t._offset=e._offset),m(e._pf)||(t._pf=f(e)),m(e._locale)||(t._locale=e._locale),_n.length>0)for(i in _n)n=_n[i],r=e[n],m(r)||(t[n]=r);return t}function v(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),vn===!1&&(vn=!0,t.updateOffset(this),vn=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(t){return 0>t?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=b(e)),i}function w(t,e,i){var n,r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),a=0;for(n=0;r>n;n++)(i&&t[n]!==e[n]||!i&&x(t[n])!==x(e[n]))&&a++;return a+s}function T(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,i){var n=!0;return u(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),n&&(T(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),i.apply(this,arguments)},i)}function S(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),yn[e]||(T(i),yn[e]=!0)}function k(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t){var e,i;for(i in t)e=t[i],k(e)?this[i]=e:this["_"+i]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function M(t,e){var i,n=u({},t);for(i in e)h(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},u(n[i],t[i]),u(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)h(t,i)&&!h(e,i)&&s(t[i])&&(n[i]=u({},n[i]));return n}function A(t){null!=t&&this.set(t)}function D(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return k(n)?n.call(e,i):n}function O(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function R(){return this._invalidDate}function L(t){return this._ordinal.replace("%d",t)}function I(t,e,i,n){var r=this._relativeTime[i];return k(r)?r(t,e,i,n):r.replace(/%d/i,t)}function E(t,e){var i=this._relativeTime[t>0?"future":"past"];return k(i)?i(e):i.replace(/%s/i,e)}function F(t,e){var i=t.toLowerCase();Mn[i]=Mn[i+"s"]=Mn[e]=t}function N(t){return"string"==typeof t?Mn[t]||Mn[t.toLowerCase()]:void 0}function B(t){var e,i,n={};for(i in t)h(t,i)&&(e=N(i),e&&(n[e]=t[i]));return n}function V(t,e){An[t]=e}function W(t){var e=[];for(var i in t)e.push({unit:i,priority:An[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}function z(e,i){return function(n){return null!=n?(Y(this,e,n),t.updateOffset(this,i),this):H(this,e)}}function H(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Y(t,e,i){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](i)}function U(t){return t=N(t),k(this[t])?this[t]():this}function j(t,e){if("object"==typeof t){t=B(t);for(var i=W(t),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(t=N(t),k(this[t]))return this[t](e);return this}function X(t,e,i){var n=""+Math.abs(t),r=e-n.length,s=t>=0;return(s?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}function G(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(Ln[t]=r),e&&(Ln[e[0]]=function(){return X(r.apply(this,arguments),e[1],e[2])}),i&&(Ln[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function q(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function $(t){var e,i,n=t.match(Dn);for(e=0,i=n.length;i>e;e++)Ln[n[e]]?n[e]=Ln[n[e]]:n[e]=q(n[e]);return function(e){var r,s="";for(r=0;i>r;r++)s+=n[r]instanceof Function?n[r].call(e,t):n[r];return s}}function Q(t,e){return t.isValid()?(e=Z(e,t.localeData()),Rn[e]=Rn[e]||$(e),Rn[e](t)):t.localeData().invalidDate()}function Z(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(On.lastIndex=0;n>=0&&On.test(t);)t=t.replace(On,i),On.lastIndex=0,n-=1;return t}function J(t,e,i){Zn[t]=k(e)?e:function(t,n){return t&&i?i:e}}function K(t,e){return h(Zn,t)?Zn[t](e._strict,e._locale):new RegExp(tt(t))}function tt(t){return et(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r}))}function et(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function it(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(n=function(t,i){i[e]=x(t)}),i=0;i<t.length;i++)Jn[t[i]]=n}function nt(t,e){it(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}function rt(t,e,i){null!=e&&h(Jn,t)&&Jn[t](e,i._a,i,t)}function st(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function at(t,e){return r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||lr).test(e)?"format":"standalone"][t.month()]}function ot(t,e){return r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[lr.test(e)?"format":"standalone"][t.month()]}function lt(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;12>n;++n)s=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?(r=xn.call(this._shortMonthsParse,a),-1!==r?r:null):(r=xn.call(this._longMonthsParse,a),-1!==r?r:null):"MMM"===e?(r=xn.call(this._shortMonthsParse,a),-1!==r?r:(r=xn.call(this._longMonthsParse,a),-1!==r?r:null)):(r=xn.call(this._longMonthsParse,a),-1!==r?r:(r=xn.call(this._shortMonthsParse,a),-1!==r?r:null))}function ht(t,e,i){var n,r,s;if(this._monthsParseExact)return lt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;12>n;n++){if(r=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}}function ut(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=x(e);else if(e=t.localeData().monthsParse(e),"number"!=typeof e)return t;return i=Math.min(t.date(),st(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ct(e){return null!=e?(ut(this,e),t.updateOffset(this,!0),this):H(this,"Month")}function dt(){return st(this.year(),this.month())}function ft(t){return this._monthsParseExact?(h(this,"_monthsRegex")||gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=cr),
  this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(t){return this._monthsParseExact?(h(this,"_monthsRegex")||gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=dr),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function gt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;12>e;e++)i=c([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;12>e;e++)n[e]=et(n[e]),r[e]=et(r[e]);for(e=0;24>e;e++)s[e]=et(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function mt(t){return _t(t)?366:365}function _t(t){return t%4===0&&t%100!==0||t%400===0}function vt(){return _t(this.year())}function yt(t,e,i,n,r,s,a){var o=new Date(t,e,i,n,r,s,a);return 100>t&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return 100>t&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function xt(t,e,i){var n=7+e-i,r=(7+bt(t,0,n).getUTCDay()-e)%7;return-r+n-1}function wt(t,e,i,n,r){var s,a,o=(7+i-n)%7,l=xt(t,n,r),h=1+7*(e-1)+o+l;return 0>=h?(s=t-1,a=mt(s)+h):h>mt(t)?(s=t+1,a=h-mt(t)):(s=t,a=h),{year:s,dayOfYear:a}}function Tt(t,e,i){var n,r,s=xt(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return 1>a?(r=t.year()-1,n=a+Ct(r,e,i)):a>Ct(t.year(),e,i)?(n=a-Ct(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Ct(t,e,i){var n=xt(t,e,i),r=xt(t+1,e,i);return(mt(t)-n+r)/7}function St(t){return Tt(t,this._week.dow,this._week.doy).week}function kt(){return this._week.dow}function Pt(){return this._week.doy}function Mt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function At(t){var e=Tt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Dt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ot(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Rt(t,e){return r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]}function Lt(t){return this._weekdaysShort[t.day()]}function It(t){return this._weekdaysMin[t.day()]}function Et(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;7>n;++n)s=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?(r=xn.call(this._weekdaysParse,a),-1!==r?r:null):"ddd"===e?(r=xn.call(this._shortWeekdaysParse,a),-1!==r?r:null):(r=xn.call(this._minWeekdaysParse,a),-1!==r?r:null):"dddd"===e?(r=xn.call(this._weekdaysParse,a),-1!==r?r:(r=xn.call(this._shortWeekdaysParse,a),-1!==r?r:(r=xn.call(this._minWeekdaysParse,a),-1!==r?r:null))):"ddd"===e?(r=xn.call(this._shortWeekdaysParse,a),-1!==r?r:(r=xn.call(this._weekdaysParse,a),-1!==r?r:(r=xn.call(this._minWeekdaysParse,a),-1!==r?r:null))):(r=xn.call(this._minWeekdaysParse,a),-1!==r?r:(r=xn.call(this._weekdaysParse,a),-1!==r?r:(r=xn.call(this._shortWeekdaysParse,a),-1!==r?r:null)))}function Ft(t,e,i){var n,r,s;if(this._weekdaysParseExact)return Et.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;7>n;n++){if(r=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Dt(t,this.localeData()),this.add(t-e,"d")):e}function Bt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Vt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ot(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Wt(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=vr),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yr),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ht(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Yt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=br),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Yt(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],l=[],h=[];for(e=0;7>e;e++)i=c([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),s=this.weekdays(i,""),a.push(n),o.push(r),l.push(s),h.push(n),h.push(r),h.push(s);for(a.sort(t),o.sort(t),l.sort(t),h.sort(t),e=0;7>e;e++)o[e]=et(o[e]),l[e]=et(l[e]),h[e]=et(h[e]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ut(){return this.hours()%12||12}function jt(){return this.hours()||24}function Xt(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Gt(t,e){return e._meridiemParse}function qt(t){return"p"===(t+"").toLowerCase().charAt(0)}function $t(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Qt(t){return t?t.toLowerCase().replace("_","-"):t}function Zt(t){for(var e,i,n,r,s=0;s<t.length;){for(r=Qt(t[s]).split("-"),e=r.length,i=Qt(t[s+1]),i=i?i.split("-"):null;e>0;){if(n=Jt(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&w(r,i,!0)>=e-1)break;e--}s++}return null}function Jt(t){var n=null;if(!Sr[t]&&"undefined"!=typeof i&&i&&i.exports)try{n=xr._abbr,e("./locale/"+t),Kt(n)}catch(r){}return Sr[t]}function Kt(t,e){var i;return t&&(i=m(e)?ie(t):te(t,e),i&&(xr=i)),xr._abbr}function te(t,e){if(null!==e){var i=Cr;return e.abbr=t,null!=Sr[t]?(S("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."),i=Sr[t]._config):null!=e.parentLocale&&(null!=Sr[e.parentLocale]?i=Sr[e.parentLocale]._config:S("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Sr[t]=new A(M(i,e)),Kt(t),Sr[t]}return delete Sr[t],null}function ee(t,e){if(null!=e){var i,n=Cr;null!=Sr[t]&&(n=Sr[t]._config),e=M(n,e),i=new A(e),i.parentLocale=Sr[t],Sr[t]=i,Kt(t)}else null!=Sr[t]&&(null!=Sr[t].parentLocale?Sr[t]=Sr[t].parentLocale:null!=Sr[t]&&delete Sr[t]);return Sr[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return xr;if(!r(t)){if(e=Jt(t))return e;t=[t]}return Zt(t)}function ne(){return bn(Sr)}function re(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[tr]<0||i[tr]>11?tr:i[er]<1||i[er]>st(i[Kn],i[tr])?er:i[ir]<0||i[ir]>24||24===i[ir]&&(0!==i[nr]||0!==i[rr]||0!==i[sr])?ir:i[nr]<0||i[nr]>59?nr:i[rr]<0||i[rr]>59?rr:i[sr]<0||i[sr]>999?sr:-1,f(t)._overflowDayOfYear&&(Kn>e||e>er)&&(e=er),f(t)._overflowWeeks&&-1===e&&(e=ar),f(t)._overflowWeekday&&-1===e&&(e=or),f(t).overflow=e),t}function se(t){var e,i,n,r,s,a,o=t._i,l=kr.exec(o)||Pr.exec(o);if(l){for(f(t).iso=!0,e=0,i=Ar.length;i>e;e++)if(Ar[e][1].exec(l[1])){r=Ar[e][0],n=Ar[e][2]!==!1;break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=Dr.length;i>e;e++)if(Dr[e][1].exec(l[3])){s=(l[2]||" ")+Dr[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(l[4]){if(!Mr.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),ce(t)}else t._isValid=!1}function ae(e){var i=Or.exec(e._i);return null!==i?void(e._d=new Date((+i[1]))):(se(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function oe(t,e,i){return null!=t?t:null!=e?e:i}function le(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function he(t){var e,i,n,r,s=[];if(!t._d){for(n=le(t),t._w&&null==t._a[er]&&null==t._a[tr]&&ue(t),t._dayOfYear&&(r=oe(t._a[Kn],n[Kn]),t._dayOfYear>mt(r)&&(f(t)._overflowDayOfYear=!0),i=bt(r,0,t._dayOfYear),t._a[tr]=i.getUTCMonth(),t._a[er]=i.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;7>e;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ir]&&0===t._a[nr]&&0===t._a[rr]&&0===t._a[sr]&&(t._nextDay=!0,t._a[ir]=0),t._d=(t._useUTC?bt:yt).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ir]=24)}}function ue(t){var e,i,n,r,s,a,o,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,a=4,i=oe(e.GG,t._a[Kn],Tt(ye(),1,4).year),n=oe(e.W,1),r=oe(e.E,1),(1>r||r>7)&&(l=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,i=oe(e.gg,t._a[Kn],Tt(ye(),s,a).year),n=oe(e.w,1),null!=e.d?(r=e.d,(0>r||r>6)&&(l=!0)):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(l=!0)):r=s),1>n||n>Ct(i,s,a)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(o=wt(i,n,r,s,a),t._a[Kn]=o.year,t._dayOfYear=o.dayOfYear)}function ce(e){if(e._f===t.ISO_8601)return void se(e);e._a=[],f(e).empty=!0;var i,n,r,s,a,o=""+e._i,l=o.length,h=0;for(r=Z(e._f,e._locale).match(Dn)||[],i=0;i<r.length;i++)s=r[i],n=(o.match(K(s,e))||[])[0],n&&(a=o.substr(0,o.indexOf(n)),a.length>0&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),h+=n.length),Ln[s]?(n?f(e).empty=!1:f(e).unusedTokens.push(s),rt(s,n,e)):e._strict&&!n&&f(e).unusedTokens.push(s);f(e).charsLeftOver=l-h,o.length>0&&f(e).unusedInput.push(o),e._a[ir]<=12&&f(e).bigHour===!0&&e._a[ir]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[ir]=de(e._locale,e._a[ir],e._meridiem),he(e),re(e)}function de(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&12>e&&(e+=12),n||12!==e||(e=0),e):e}function fe(t){var e,i,n,r,s;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)s=0,e=_({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],ce(e),p(e)&&(s+=f(e).charsLeftOver,s+=10*f(e).unusedTokens.length,f(e).score=s,(null==n||n>s)&&(n=s,i=e));u(t,i||e)}function pe(t){if(!t._d){var e=B(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),he(t)}}function ge(t){var e=new v(re(me(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function me(t){var e=t._i,i=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===i&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(re(e)):(r(i)?fe(t):o(e)?t._d=e:i?ce(t):_e(t),p(t)||(t._d=null),t))}function _e(e){var i=e._i;void 0===i?e._d=new Date(t.now()):o(i)?e._d=new Date(i.valueOf()):"string"==typeof i?ae(e):r(i)?(e._a=l(i.slice(0),function(t){return parseInt(t,10)}),he(e)):"object"==typeof i?pe(e):"number"==typeof i?e._d=new Date(i):t.createFromInputFallback(e)}function ve(t,e,i,n,o){var l={};return"boolean"==typeof i&&(n=i,i=void 0),(s(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=i,l._i=t,l._f=e,l._strict=n,ge(l)}function ye(t,e,i,n){return ve(t,e,i,n,!1)}function be(t,e){var i,n;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return ye();for(i=e[0],n=1;n<e.length;++n)(!e[n].isValid()||e[n][t](i))&&(i=e[n]);return i}function xe(){var t=[].slice.call(arguments,0);return be("isBefore",t)}function we(){var t=[].slice.call(arguments,0);return be("isAfter",t)}function Te(t){var e=B(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||0,a=e.day||0,o=e.hour||0,l=e.minute||0,h=e.second||0,u=e.millisecond||0;this._milliseconds=+u+1e3*h+6e4*l+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=ie(),this._bubble()}function Ce(t){return t instanceof Te}function Se(t,e){G(t,0,0,function(){var t=this.utcOffset(),i="+";return 0>t&&(t=-t,i="-"),i+X(~~(t/60),2)+e+X(~~t%60,2)})}function ke(t,e){var i=(e||"").match(t)||[],n=i[i.length-1]||[],r=(n+"").match(Er)||["-",0,0],s=+(60*r[1])+x(r[2]);return"+"===r[0]?s:-s}function Pe(e,i){var n,r;return i._isUTC?(n=i.clone(),r=(y(e)||o(e)?e.valueOf():ye(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),t.updateOffset(n,!1),n):ye(e).local()}function Me(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ae(e,i){var n,r=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=ke(qn,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&i&&(n=Me(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==e&&(!i||this._changeInProgress?Xe(this,We(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Me(this):null!=e?this:NaN}function De(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Oe(t){return this.utcOffset(0,t)}function Re(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Me(this),"m")),this}function Le(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ke(Gn,this._i)),this}function Ie(t){return!!this.isValid()&&(t=t?ye(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Ee(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Fe(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),t=me(t),t._a){var e=t._isUTC?c(t._a):ye(t._a);this._isDSTShifted=this.isValid()&&w(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ne(){return!!this.isValid()&&!this._isUTC}function Be(){return!!this.isValid()&&this._isUTC}function Ve(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function We(t,e){var i,n,r,s=t,a=null;return Ce(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(a=Fr.exec(t))?(i="-"===a[1]?-1:1,s={y:0,d:x(a[er])*i,h:x(a[ir])*i,m:x(a[nr])*i,s:x(a[rr])*i,ms:x(a[sr])*i}):(a=Nr.exec(t))?(i="-"===a[1]?-1:1,s={y:ze(a[2],i),M:ze(a[3],i),w:ze(a[4],i),d:ze(a[5],i),h:ze(a[6],i),m:ze(a[7],i),s:ze(a[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Ye(ye(s.from),ye(s.to)),s={},s.ms=r.milliseconds,s.M=r.months),n=new Te(s),Ce(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function ze(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function He(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ye(t,e){var i;return t.isValid()&&e.isValid()?(e=Pe(e,t),t.isBefore(e)?i=He(t,e):(i=He(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Ue(t){return 0>t?-1*Math.round(-1*t):Math.round(t)}function je(t,e){return function(i,n){var r,s;return null===n||isNaN(+n)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=i,i=n,n=s),i="string"==typeof i?+i:i,r=We(i,n),Xe(this,r,t),this}}function Xe(e,i,n,r){var s=i._milliseconds,a=Ue(i._days),o=Ue(i._months);e.isValid()&&(r=null==r||r,s&&e._d.setTime(e._d.valueOf()+s*n),a&&Y(e,"Date",H(e,"Date")+a*n),o&&ut(e,H(e,"Month")+o*n),r&&t.updateOffset(e,a||o))}function Ge(t,e){var i=t.diff(e,"days",!0);return-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse"}function qe(e,i){var n=e||ye(),r=Pe(n,this).startOf("day"),s=t.calendarFormat(this,r)||"sameElse",a=i&&(k(i[s])?i[s].call(this,n):i[s]);return this.format(a||this.localeData().calendar(s,this,ye(n)))}function $e(){return new v(this)}function Qe(t,e){var i=y(t)?t:ye(t);return!(!this.isValid()||!i.isValid())&&(e=N(m(e)?"millisecond":e),"millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function Ze(t,e){var i=y(t)?t:ye(t);return!(!this.isValid()||!i.isValid())&&(e=N(m(e)?"millisecond":e),"millisecond"===e?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function Je(t,e,i,n){return n=n||"()",("("===n[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))}function Ke(t,e){var i,n=y(t)?t:ye(t);return!(!this.isValid()||!n.isValid())&&(e=N(e||"millisecond"),"millisecond"===e?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function ti(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function ei(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ii(t,e,i){var n,r,s,a;return this.isValid()?(n=Pe(t,this),n.isValid()?(r=6e4*(n.utcOffset()-this.utcOffset()),e=N(e),"year"===e||"month"===e||"quarter"===e?(a=ni(this,n),"quarter"===e?a/=3:"year"===e&&(a/=12)):(s=this-n,a="second"===e?s/1e3:"minute"===e?s/6e4:"hour"===e?s/36e5:"day"===e?(s-r)/864e5:"week"===e?(s-r)/6048e5:s),i?a:b(a)):NaN):NaN}function ni(t,e){var i,n,r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return 0>e-s?(i=t.clone().add(r-1,"months"),n=(e-s)/(s-i)):(i=t.clone().add(r+1,"months"),n=(e-s)/(i-s)),-(r+n)||0}function ri(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function si(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?k(Date.prototype.toISOString)?this.toDate().toISOString():Q(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):Q(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ai(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=Q(this,e);return this.localeData().postformat(i)}function oi(t,e){return this.isValid()&&(y(t)&&t.isValid()||ye(t).isValid())?We({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function li(t){return this.from(ye(),t)}function hi(t,e){return this.isValid()&&(y(t)&&t.isValid()||ye(t).isValid())?We({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ui(t){return this.to(ye(),t)}function ci(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function di(){return this._locale}function fi(t){switch(t=N(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function pi(t){return t=N(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function gi(){return this._d.valueOf()-6e4*(this._offset||0)}function mi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function vi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function yi(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function bi(){return this.isValid()?this.toISOString():null}function xi(){return p(this)}function wi(){return u({},f(this))}function Ti(){return f(this).overflow}function Ci(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Si(t,e){G(0,[t,t.length],0,e)}function ki(t){return Di.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Pi(t){return Di.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Mi(){return Ct(this.year(),1,4)}function Ai(){var t=this.localeData()._week;return Ct(this.year(),t.dow,t.doy)}function Di(t,e,i,n,r){var s;return null==t?Tt(this,n,r).year:(s=Ct(t,n,r),e>s&&(e=s),Oi.call(this,t,e,i,n,r))}function Oi(t,e,i,n,r){var s=wt(t,e,i,n,r),a=bt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ri(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Li(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Ii(t,e){e[sr]=x(1e3*("0."+t))}function Ei(){return this._isUTC?"UTC":""}function Fi(){return this._isUTC?"Coordinated Universal Time":""}function Ni(t){return ye(1e3*t)}function Bi(){return ye.apply(null,arguments).parseZone()}function Vi(t){return t}function Wi(t,e,i,n){var r=ie(),s=c().set(n,e);return r[i](s,t)}function zi(t,e,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return Wi(t,e,i,"month");var n,r=[];for(n=0;12>n;n++)r[n]=Wi(t,n,i,"month");return r}function Hi(t,e,i,n){"boolean"==typeof t?("number"==typeof e&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,"number"==typeof e&&(i=e,e=void 0),e=e||"");var r=ie(),s=t?r._week.dow:0;if(null!=i)return Wi(e,(i+s)%7,n,"day");var a,o=[];for(a=0;7>a;a++)o[a]=Wi(e,(a+s)%7,n,"day");return o}function Yi(t,e){return zi(t,e,"months")}function Ui(t,e){return zi(t,e,"monthsShort")}function ji(t,e,i){return Hi(t,e,i,"weekdays")}function Xi(t,e,i){return Hi(t,e,i,"weekdaysShort")}function Gi(t,e,i){return Hi(t,e,i,"weekdaysMin")}function qi(){var t=this._data;return this._milliseconds=$r(this._milliseconds),this._days=$r(this._days),this._months=$r(this._months),t.milliseconds=$r(t.milliseconds),t.seconds=$r(t.seconds),t.minutes=$r(t.minutes),t.hours=$r(t.hours),t.months=$r(t.months),t.years=$r(t.years),this}function $i(t,e,i,n){var r=We(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Qi(t,e){return $i(this,t,e,1)}function Zi(t,e){return $i(this,t,e,-1)}function Ji(t){return 0>t?Math.floor(t):Math.ceil(t)}function Ki(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,l=this._data;return s>=0&&a>=0&&o>=0||0>=s&&0>=a&&0>=o||(s+=864e5*Ji(en(o)+a),a=0,o=0),l.milliseconds=s%1e3,t=b(s/1e3),l.seconds=t%60,e=b(t/60),l.minutes=e%60,i=b(e/60),l.hours=i%24,a+=b(i/24),r=b(tn(a)),o+=r,a-=Ji(en(r)),n=b(o/12),o%=12,l.days=a,l.months=o,l.years=n,this}function tn(t){return 4800*t/146097}function en(t){return 146097*t/4800}function nn(t){var e,i,n=this._milliseconds;if(t=N(t),"month"===t||"year"===t)return e=this._days+n/864e5,i=this._months+tn(e),"month"===t?i:i/12;switch(e=this._days+Math.round(en(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function rn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function sn(t){return function(){return this.as(t)}}function an(t){return t=N(t),this[t+"s"]()}function on(t){return function(){return this._data[t]}}function ln(){return b(this.days()/7)}function hn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}function un(t,e,i){var n=We(t).abs(),r=cs(n.as("s")),s=cs(n.as("m")),a=cs(n.as("h")),o=cs(n.as("d")),l=cs(n.as("M")),h=cs(n.as("y")),u=r<ds.s&&["s",r]||1>=s&&["m"]||s<ds.m&&["mm",s]||1>=a&&["h"]||a<ds.h&&["hh",a]||1>=o&&["d"]||o<ds.d&&["dd",o]||1>=l&&["M"]||l<ds.M&&["MM",l]||1>=h&&["y"]||["yy",h];return u[2]=e,u[3]=+t>0,u[4]=i,hn.apply(null,u)}function cn(t){return void 0===t?cs:"function"==typeof t&&(cs=t,!0)}function dn(t,e){return void 0!==ds[t]&&(void 0===e?ds[t]:(ds[t]=e,!0))}function fn(t){var e=this.localeData(),i=un(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function pn(){var t,e,i,n=fs(this._milliseconds)/1e3,r=fs(this._days),s=fs(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60,i=b(s/12),s%=12;var a=i,o=s,l=r,h=e,u=t,c=n,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(l?l+"D":"")+(h||u||c?"T":"")+(h?h+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var gn,mn;mn=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;i>n;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var _n=t.momentProperties=[],vn=!1,yn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var bn;bn=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)h(t,e)&&i.push(e);return i};var xn,wn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Tn={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"},Cn="Invalid date",Sn="%d",kn=/\d{1,2}/,Pn={future:"in %s",past:"%s ago",s:"a few 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"},Mn={},An={},Dn=/(\[[^\[]*\])|(\\)?([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,On=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Rn={},Ln={},In=/\d/,En=/\d\d/,Fn=/\d{3}/,Nn=/\d{4}/,Bn=/[+-]?\d{6}/,Vn=/\d\d?/,Wn=/\d\d\d\d?/,zn=/\d\d\d\d\d\d?/,Hn=/\d{1,3}/,Yn=/\d{1,4}/,Un=/[+-]?\d{1,6}/,jn=/\d+/,Xn=/[+-]?\d+/,Gn=/Z|[+-]\d\d:?\d\d/gi,qn=/Z|[+-]\d\d(?::?\d\d)?/gi,$n=/[+-]?\d+(\.\d{1,3})?/,Qn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Zn={},Jn={},Kn=0,tr=1,er=2,ir=3,nr=4,rr=5,sr=6,ar=7,or=8;xn=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),F("month","M"),V("month",8),J("M",Vn),J("MM",Vn,En),J("MMM",function(t,e){return e.monthsShortRegex(t)}),J("MMMM",function(t,e){return e.monthsRegex(t)}),it(["M","MM"],function(t,e){e[tr]=x(t)-1}),it(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[tr]=r:f(i).invalidMonth=t});var lr=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,hr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ur="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cr=Qn,dr=Qn;G("Y",0,0,function(){var t=this.year();return 9999>=t?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),F("year","y"),V("year",1),J("Y",Xn),J("YY",Vn,En),J("YYYY",Yn,Nn),J("YYYYY",Un,Bn),J("YYYYYY",Un,Bn),it(["YYYYY","YYYYYY"],Kn),it("YYYY",function(e,i){i[Kn]=2===e.length?t.parseTwoDigitYear(e):x(e)}),it("YY",function(e,i){i[Kn]=t.parseTwoDigitYear(e)}),it("Y",function(t,e){e[Kn]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var fr=z("FullYear",!0);G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),V("week",5),V("isoWeek",5),J("w",Vn),J("ww",Vn,En),J("W",Vn),J("WW",Vn,En),nt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=x(t)});var pr={dow:0,doy:6};G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),J("d",Vn),J("e",Vn),J("E",Vn),J("dd",function(t,e){return e.weekdaysMinRegex(t)}),J("ddd",function(t,e){return e.weekdaysShortRegex(t)}),J("dddd",function(t,e){return e.weekdaysRegex(t)}),nt(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:f(i).invalidWeekday=t}),nt(["d","e","E"],function(t,e,i,n){e[n]=x(t)});var gr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_r="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vr=Qn,yr=Qn,br=Qn;G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Ut),G("k",["kk",2],0,jt),G("hmm",0,0,function(){return""+Ut.apply(this)+X(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Ut.apply(this)+X(this.minutes(),2)+X(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+X(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+X(this.minutes(),2)+X(this.seconds(),2)}),Xt("a",!0),Xt("A",!1),F("hour","h"),V("hour",13),J("a",Gt),J("A",Gt),J("H",Vn),J("h",Vn),J("HH",Vn,En),J("hh",Vn,En),J("hmm",Wn),J("hmmss",zn),J("Hmm",Wn),J("Hmmss",zn),it(["H","HH"],ir),it(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),it(["h","hh"],function(t,e,i){e[ir]=x(t),f(i).bigHour=!0}),it("hmm",function(t,e,i){var n=t.length-2;e[ir]=x(t.substr(0,n)),e[nr]=x(t.substr(n)),f(i).bigHour=!0}),it("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[ir]=x(t.substr(0,n)),e[nr]=x(t.substr(n,2)),e[rr]=x(t.substr(r)),f(i).bigHour=!0}),it("Hmm",function(t,e,i){var n=t.length-2;e[ir]=x(t.substr(0,n)),e[nr]=x(t.substr(n))}),it("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[ir]=x(t.substr(0,n)),e[nr]=x(t.substr(n,2)),e[rr]=x(t.substr(r))});var xr,wr=/[ap]\.?m?\.?/i,Tr=z("Hours",!0),Cr={calendar:wn,longDateFormat:Tn,invalidDate:Cn,ordinal:Sn,ordinalParse:kn,relativeTime:Pn,months:hr,monthsShort:ur,week:pr,weekdays:gr,weekdaysMin:_r,weekdaysShort:mr,meridiemParse:wr},Sr={},kr=/^\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)?)?/,Pr=/^\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)?)?/,Mr=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["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}/]],Dr=[["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/]],Or=/^\/?Date\((\-?\d+)/i;
  t.createFromInputFallback=C("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){};var Rr=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ye.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:g()}),Lr=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ye.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}),Ir=function(){return Date.now?Date.now():+new Date};Se("Z",":"),Se("ZZ",""),J("Z",qn),J("ZZ",qn),it(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=ke(qn,t)});var Er=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Fr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Nr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;We.fn=Te.prototype;var Br=je(1,"add"),Vr=je(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Wr=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Si("gggg","weekYear"),Si("ggggg","weekYear"),Si("GGGG","isoWeekYear"),Si("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),J("G",Xn),J("g",Xn),J("GG",Vn,En),J("gg",Vn,En),J("GGGG",Yn,Nn),J("gggg",Yn,Nn),J("GGGGG",Un,Bn),J("ggggg",Un,Bn),nt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=x(t)}),nt(["gg","GG"],function(e,i,n,r){i[r]=t.parseTwoDigitYear(e)}),G("Q",0,"Qo","quarter"),F("quarter","Q"),V("quarter",7),J("Q",In),it("Q",function(t,e){e[tr]=3*(x(t)-1)}),G("D",["DD",2],"Do","date"),F("date","D"),V("date",9),J("D",Vn),J("DD",Vn,En),J("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),it(["D","DD"],er),it("Do",function(t,e){e[er]=x(t.match(Vn)[0],10)});var zr=z("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),V("dayOfYear",4),J("DDD",Hn),J("DDDD",Fn),it(["DDD","DDDD"],function(t,e,i){i._dayOfYear=x(t)}),G("m",["mm",2],0,"minute"),F("minute","m"),V("minute",14),J("m",Vn),J("mm",Vn,En),it(["m","mm"],nr);var Hr=z("Minutes",!1);G("s",["ss",2],0,"second"),F("second","s"),V("second",15),J("s",Vn),J("ss",Vn,En),it(["s","ss"],rr);var Yr=z("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),V("millisecond",16),J("S",Hn,In),J("SS",Hn,En),J("SSS",Hn,Fn);var Ur;for(Ur="SSSS";Ur.length<=9;Ur+="S")J(Ur,jn);for(Ur="S";Ur.length<=9;Ur+="S")it(Ur,Ii);var jr=z("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var Xr=v.prototype;Xr.add=Br,Xr.calendar=qe,Xr.clone=$e,Xr.diff=ii,Xr.endOf=pi,Xr.format=ai,Xr.from=oi,Xr.fromNow=li,Xr.to=hi,Xr.toNow=ui,Xr.get=U,Xr.invalidAt=Ti,Xr.isAfter=Qe,Xr.isBefore=Ze,Xr.isBetween=Je,Xr.isSame=Ke,Xr.isSameOrAfter=ti,Xr.isSameOrBefore=ei,Xr.isValid=xi,Xr.lang=Wr,Xr.locale=ci,Xr.localeData=di,Xr.max=Lr,Xr.min=Rr,Xr.parsingFlags=wi,Xr.set=j,Xr.startOf=fi,Xr.subtract=Vr,Xr.toArray=vi,Xr.toObject=yi,Xr.toDate=_i,Xr.toISOString=si,Xr.toJSON=bi,Xr.toString=ri,Xr.unix=mi,Xr.valueOf=gi,Xr.creationData=Ci,Xr.year=fr,Xr.isLeapYear=vt,Xr.weekYear=ki,Xr.isoWeekYear=Pi,Xr.quarter=Xr.quarters=Ri,Xr.month=ct,Xr.daysInMonth=dt,Xr.week=Xr.weeks=Mt,Xr.isoWeek=Xr.isoWeeks=At,Xr.weeksInYear=Ai,Xr.isoWeeksInYear=Mi,Xr.date=zr,Xr.day=Xr.days=Nt,Xr.weekday=Bt,Xr.isoWeekday=Vt,Xr.dayOfYear=Li,Xr.hour=Xr.hours=Tr,Xr.minute=Xr.minutes=Hr,Xr.second=Xr.seconds=Yr,Xr.millisecond=Xr.milliseconds=jr,Xr.utcOffset=Ae,Xr.utc=Oe,Xr.local=Re,Xr.parseZone=Le,Xr.hasAlignedHourOffset=Ie,Xr.isDST=Ee,Xr.isLocal=Ne,Xr.isUtcOffset=Be,Xr.isUtc=Ve,Xr.isUTC=Ve,Xr.zoneAbbr=Ei,Xr.zoneName=Fi,Xr.dates=C("dates accessor is deprecated. Use date instead.",zr),Xr.months=C("months accessor is deprecated. Use month instead",ct),Xr.years=C("years accessor is deprecated. Use year instead",fr),Xr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",De),Xr.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Fe);var Gr=Xr,qr=A.prototype;qr.calendar=D,qr.longDateFormat=O,qr.invalidDate=R,qr.ordinal=L,qr.preparse=Vi,qr.postformat=Vi,qr.relativeTime=I,qr.pastFuture=E,qr.set=P,qr.months=at,qr.monthsShort=ot,qr.monthsParse=ht,qr.monthsRegex=pt,qr.monthsShortRegex=ft,qr.week=St,qr.firstDayOfYear=Pt,qr.firstDayOfWeek=kt,qr.weekdays=Rt,qr.weekdaysMin=It,qr.weekdaysShort=Lt,qr.weekdaysParse=Ft,qr.weekdaysRegex=Wt,qr.weekdaysShortRegex=zt,qr.weekdaysMinRegex=Ht,qr.isPM=qt,qr.meridiem=$t,Kt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",Kt),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ie);var $r=Math.abs,Qr=sn("ms"),Zr=sn("s"),Jr=sn("m"),Kr=sn("h"),ts=sn("d"),es=sn("w"),is=sn("M"),ns=sn("y"),rs=on("milliseconds"),ss=on("seconds"),as=on("minutes"),os=on("hours"),ls=on("days"),hs=on("months"),us=on("years"),cs=Math.round,ds={s:45,m:45,h:22,d:26,M:11},fs=Math.abs,ps=Te.prototype;ps.abs=qi,ps.add=Qi,ps.subtract=Zi,ps.as=nn,ps.asMilliseconds=Qr,ps.asSeconds=Zr,ps.asMinutes=Jr,ps.asHours=Kr,ps.asDays=ts,ps.asWeeks=es,ps.asMonths=is,ps.asYears=ns,ps.valueOf=rn,ps._bubble=Ki,ps.get=an,ps.milliseconds=rs,ps.seconds=ss,ps.minutes=as,ps.hours=os,ps.days=ls,ps.weeks=ln,ps.months=hs,ps.years=us,ps.humanize=fn,ps.toISOString=pn,ps.toString=pn,ps.toJSON=pn,ps.locale=ci,ps.localeData=di,ps.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pn),ps.lang=Wr,G("X",0,0,"unix"),G("x",0,0,"valueOf"),J("x",Xn),J("X",$n),it("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),it("x",function(t,e,i){i._d=new Date(x(t))}),t.version="2.14.1",n(ye),t.fn=Gr,t.min=xe,t.max=we,t.now=Ir,t.utc=c,t.unix=Ni,t.months=Yi,t.isDate=o,t.locale=Kt,t.invalid=g,t.duration=We,t.isMoment=y,t.weekdays=ji,t.parseZone=Bi,t.localeData=ie,t.isDuration=Ce,t.monthsShort=Ui,t.weekdaysMin=Gi,t.defineLocale=te,t.updateLocale=ee,t.locales=ne,t.weekdaysShort=Xi,t.normalizeUnits=N,t.relativeTimeRounding=cn,t.relativeTimeThreshold=dn,t.calendarFormat=Ge,t.prototype=Gr;var gs=t;return gs})},{}],7:[function(t,e,i){var n=t(27)();t(26)(n),t(22)(n),t(25)(n),t(21)(n),t(23)(n),t(24)(n),t(28)(n),t(32)(n),t(30)(n),t(31)(n),t(33)(n),t(29)(n),t(34)(n),t(35)(n),t(36)(n),t(37)(n),t(38)(n),t(41)(n),t(39)(n),t(40)(n),t(42)(n),t(43)(n),t(44)(n),t(15)(n),t(16)(n),t(17)(n),t(18)(n),t(19)(n),t(20)(n),t(8)(n),t(9)(n),t(10)(n),t(11)(n),t(12)(n),t(13)(n),t(14)(n),window.Chart=e.exports=n},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.options=t.helpers.configMerge({aspectRatio:1},i.options),i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,i){t.DatasetController.prototype.initialize.call(this,e,i),this.getMeta().bar=!0},getBarCount:function(){var t=this,i=0;return e.each(t.chart.data.datasets,function(e,n){var r=t.chart.getDatasetMeta(n);r.bar&&t.chart.isDatasetVisible(n)&&++i},t),i},update:function(t){var i=this;e.each(i.getMeta().data,function(e,n){i.updateElement(e,n,t)},i)},updateElement:function(t,i,n){var r=this,s=r.getMeta(),a=r.getScaleForId(s.xAxisID),o=r.getScaleForId(s.yAxisID),l=o.getBasePixel(),h=r.chart.options.elements.rectangle,u=t.custom||{},c=r.getDataset();e.extend(t,{_xScale:a,_yScale:o,_datasetIndex:r.index,_index:i,_model:{x:r.calculateBarX(i,r.index),y:n?l:r.calculateBarY(i,r.index),label:r.chart.data.labels[i],datasetLabel:c.label,base:n?l:r.calculateBarBase(r.index,i),width:r.calculateBarWidth(i),backgroundColor:u.backgroundColor?u.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,i,h.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:h.borderSkipped,borderColor:u.borderColor?u.borderColor:e.getValueAtIndexOrDefault(c.borderColor,i,h.borderColor),borderWidth:u.borderWidth?u.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,i,h.borderWidth)}}),t.pivot()},calculateBarBase:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=0;if(r.options.stacked){for(var a=i.chart,o=a.data.datasets,l=Number(o[t].data[e]),h=0;t>h;h++){var u=o[h],c=a.getDatasetMeta(h);if(c.bar&&c.yAxisID===r.id&&a.isDatasetVisible(h)){var d=Number(u.data[e]);s+=0>l?Math.min(d,0):Math.max(d,0)}}return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=i.getBarCount();e="category"===r.options.type?r.getPixelForTick(t+1)-r.getPixelForTick(t):r.width/r.ticks.length;var a=e*r.options.categoryPercentage,o=(e-e*r.options.categoryPercentage)/2,l=a/s;if(r.ticks.length!==i.chart.data.labels.length){var h=r.ticks.length/i.chart.data.labels.length;l*=h}var u=l*r.options.barPercentage,c=l-l*r.options.barPercentage;return{datasetCount:s,tickWidth:e,categoryWidth:a,categorySpacing:o,fullBarWidth:l,barWidth:u,barSpacing:c}},calculateBarWidth:function(t){var e=this.getScaleForId(this.getMeta().xAxisID);if(e.options.barThickness)return e.options.barThickness;var i=this.getRuler(t);return e.options.stacked?i.categoryWidth:i.barWidth},getBarIndex:function(t){var e,i,n=0;for(i=0;t>i;++i)e=this.chart.getDatasetMeta(i),e.bar&&this.chart.isDatasetVisible(i)&&++n;return n},calculateBarX:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=i.getBarIndex(e),a=i.getRuler(t),o=r.getPixelForValue(null,t,e,i.chart.isCombo);return o-=i.chart.isCombo?a.tickWidth/2:0,r.options.stacked?o+a.categoryWidth/2+a.categorySpacing:o+a.barWidth/2+a.categorySpacing+a.barWidth*s+a.barSpacing/2+a.barSpacing*s},calculateBarY:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=Number(i.getDataset().data[t]);if(r.options.stacked){for(var a=0,o=0,l=0;e>l;l++){var h=i.chart.data.datasets[l],u=i.chart.getDatasetMeta(l);if(u.bar&&u.yAxisID===r.id&&i.chart.isDatasetVisible(l)){var c=Number(h.data[t]);0>c?o+=c||0:a+=c||0}}return 0>s?r.getPixelForValue(o+s):r.getPixelForValue(a+s)}return r.getPixelForValue(s)},draw:function(t){var i=this,n=t||1;e.each(i.getMeta().data,function(t,e){var r=i.getDataset().data[e];null===r||void 0===r||isNaN(r)||t.transition(n).draw()},i)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model;s.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.hoverBackgroundColor,n,e.getHoverColor(s.backgroundColor)),s.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(i.hoverBorderColor,n,e.getHoverColor(s.borderColor)),s.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(i.hoverBorderWidth,n,s.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model,a=this.chart.options.elements.rectangle;s.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(i.backgroundColor,n,a.backgroundColor),s.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(i.borderColor,n,a.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(i.borderWidth,n,a.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({updateElement:function(t,i,n){var r=this,s=r.getMeta(),a=r.getScaleForId(s.xAxisID),o=r.getScaleForId(s.yAxisID),l=a.getBasePixel(),h=t.custom||{},u=r.getDataset(),c=r.chart.options.elements.rectangle;e.extend(t,{_xScale:a,_yScale:o,_datasetIndex:r.index,_index:i,_model:{x:n?l:r.calculateBarX(i,r.index),y:r.calculateBarY(i,r.index),label:r.chart.data.labels[i],datasetLabel:u.label,base:n?l:r.calculateBarBase(r.index,i),height:r.calculateBarHeight(i),backgroundColor:h.backgroundColor?h.backgroundColor:e.getValueAtIndexOrDefault(u.backgroundColor,i,c.backgroundColor),borderSkipped:h.borderSkipped?h.borderSkipped:c.borderSkipped,borderColor:h.borderColor?h.borderColor:e.getValueAtIndexOrDefault(u.borderColor,i,c.borderColor),borderWidth:h.borderWidth?h.borderWidth:e.getValueAtIndexOrDefault(u.borderWidth,i,c.borderWidth)},draw:function(){function t(t){return l[(u+t)%4]}var e=this._chart.ctx,i=this._view,n=i.height/2,r=i.y-n,s=i.y+n,a=i.base-(i.base-i.x),o=i.borderWidth/2;i.borderWidth&&(r+=o,s-=o,a+=o),e.beginPath(),e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth;var l=[[i.base,s],[i.base,r],[a,r],[a,s]],h=["bottom","left","top","right"],u=h.indexOf(i.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),i.borderWidth&&e.stroke()},inRange:function(t,e){var i=this._view,n=!1;return i&&(n=i.x<i.base?e>=i.y-i.height/2&&e<=i.y+i.height/2&&t>=i.x&&t<=i.base:e>=i.y-i.height/2&&e<=i.y+i.height/2&&t>=i.base&&t<=i.x),n}}),t.pivot()},calculateBarBase:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=0;if(r.options.stacked){for(var a=i.chart,o=a.data.datasets,l=Number(o[t].data[e]),h=0;t>h;h++){var u=o[h],c=a.getDatasetMeta(h);if(c.bar&&c.xAxisID===r.id&&a.isDatasetVisible(h)){var d=Number(u.data[e]);s+=0>l?Math.min(d,0):Math.max(d,0)}}return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=i.getBarCount();e="category"===r.options.type?r.getPixelForTick(t+1)-r.getPixelForTick(t):r.width/r.ticks.length;var a=e*r.options.categoryPercentage,o=(e-e*r.options.categoryPercentage)/2,l=a/s;if(r.ticks.length!==i.chart.data.labels.length){var h=r.ticks.length/i.chart.data.labels.length;l*=h}var u=l*r.options.barPercentage,c=l-l*r.options.barPercentage;return{datasetCount:s,tickHeight:e,categoryHeight:a,categorySpacing:o,fullBarHeight:l,barHeight:u,barSpacing:c}},calculateBarHeight:function(t){var e=this,i=e.getScaleForId(e.getMeta().yAxisID);if(i.options.barThickness)return i.options.barThickness;var n=e.getRuler(t);return i.options.stacked?n.categoryHeight:n.barHeight},calculateBarX:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=Number(i.getDataset().data[t]);if(r.options.stacked){for(var a=0,o=0,l=0;e>l;l++){var h=i.chart.data.datasets[l],u=i.chart.getDatasetMeta(l);if(u.bar&&u.xAxisID===r.id&&i.chart.isDatasetVisible(l)){var c=Number(h.data[t]);0>c?o+=c||0:a+=c||0}}return 0>s?r.getPixelForValue(o+s):r.getPixelForValue(a+s)}return r.getPixelForValue(s)},calculateBarY:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=i.getBarIndex(e),a=i.getRuler(t),o=r.getPixelForValue(null,t,e,i.chart.isCombo);return o-=i.chart.isCombo?a.tickHeight/2:0,r.options.stacked?o+a.categoryHeight/2+a.categorySpacing:o+a.barHeight/2+a.categorySpacing+a.barHeight*s+a.barSpacing/2+a.barSpacing*s}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+n.x+", "+n.y+", "+n.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var i=this,n=i.getMeta(),r=n.data;e.each(r,function(e,n){i.updateElement(e,n,t)})},updateElement:function(i,n,r){var s=this,a=s.getMeta(),o=s.getScaleForId(a.xAxisID),l=s.getScaleForId(a.yAxisID),h=i.custom||{},u=s.getDataset(),c=u.data[n],d=s.chart.options.elements.point,f=s.index;e.extend(i,{_xScale:o,_yScale:l,_datasetIndex:f,_index:n,_model:{x:r?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof c?c:NaN,n,f,s.chart.isCombo),y:r?l.getBasePixel():l.getPixelForValue(c,n,f),radius:r?0:h.radius?h.radius:s.getRadius(c),hitRadius:h.hitRadius?h.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,n,d.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(s,i,d);var p=i._model;p.skip=h.skip?h.skip:isNaN(p.x)||isNaN(p.y),i.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var n=this;t.DatasetController.prototype.setHoverStyle.call(n,i);var r=n.chart.data.datasets[i._datasetIndex],s=i._index,a=i.custom||{},o=i._model;o.radius=a.hoverRadius?a.hoverRadius:e.getValueAtIndexOrDefault(r.hoverRadius,s,n.chart.options.elements.point.hoverRadius)+n.getRadius(r.data[s])},removeHoverStyle:function(e){var i=this;t.DatasetController.prototype.removeHoverStyle.call(i,e,i.chart.options.elements.point);var n=i.chart.data.datasets[e._datasetIndex].data[e._index],r=e.custom||{},s=e._model;s.radius=r.radius?r.radius:i.getRadius(n)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var s=0;s<n[0].data.length;++s)e.push('<li><span style="background-color:'+n[0].backgroundColor[s]+'"></span>'),r[s]&&e.push(r[s]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,r){var s=t.getDatasetMeta(0),a=i.datasets[0],o=s.data[r],l=o&&o.custom||{},h=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:h(a.backgroundColor,r,u.backgroundColor),d=l.borderColor?l.borderColor:h(a.borderColor,r,u.borderColor),f=l.borderWidth?l.borderWidth:h(a.borderWidth,r,u.borderWidth);return{text:n,fillStyle:c,strokeStyle:d,lineWidth:f,hidden:isNaN(a.data[r])||s.data[r].hidden,index:r}}):[]}},onClick:function(t,e){var i,n,r,s=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;n>i;++i)r=a.getDatasetMeta(i),r.data[s].hidden=!r.data[s].hidden;a.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+e.datasets[t.datasetIndex].data[t.index]}}}},i.pie=e.clone(i.doughnut),e.extend(i.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,i=0;t>i;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var i=this,n=i.chart,r=n.chartArea,s=n.options,a=s.elements.arc,o=r.right-r.left-a.borderWidth,l=r.bottom-r.top-a.borderWidth,h=Math.min(o,l),u={x:0,y:0},c=i.getMeta(),d=s.cutoutPercentage,f=s.circumference;if(f<2*Math.PI){var p=s.rotation%(2*Math.PI);p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0);var g=p+f,m={x:Math.cos(p),y:Math.sin(p)},_={x:Math.cos(g),y:Math.sin(g)},v=0>=p&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,y=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,b=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,x=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=d/100,T={x:b?-1:Math.min(m.x*(m.x<0?1:w),_.x*(_.x<0?1:w)),y:x?-1:Math.min(m.y*(m.y<0?1:w),_.y*(_.y<0?1:w))},C={x:v?1:Math.max(m.x*(m.x>0?1:w),_.x*(_.x>0?1:w)),y:y?1:Math.max(m.y*(m.y>0?1:w),_.y*(_.y>0?1:w))},S={width:.5*(C.x-T.x),height:.5*(C.y-T.y)};h=Math.min(o/S.width,l/S.height),u={x:(C.x+T.x)*-.5,y:(C.y+T.y)*-.5}}n.borderWidth=i.getMaxBorderWidth(c.data),n.outerRadius=Math.max((h-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=u.x*n.outerRadius,n.offsetY=u.y*n.outerRadius,c.total=i.calculateTotal(),i.outerRadius=n.outerRadius-n.radiusLength*i.getRingIndex(i.index),i.innerRadius=i.outerRadius-n.radiusLength,e.each(c.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){var r=this,s=r.chart,a=s.chartArea,o=s.options,l=o.animation,h=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=o.rotation,d=o.rotation,f=r.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:r.calculateCircumference(f.data[i])*(o.circumference/(2*Math.PI)),g=n&&l.animateScale?0:r.innerRadius,m=n&&l.animateScale?0:r.outerRadius,_=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:r.index,_index:i,_model:{x:h+s.offsetX,y:u+s.offsetY,startAngle:c,endAngle:d,circumference:p,outerRadius:m,innerRadius:g,label:_(f.label,i,s.data.labels[i])}});var v=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(0===i?v.startAngle=o.rotation:v.startAngle=r.getMeta().data[i-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,i=this.getDataset(),n=this.getMeta(),r=0;return e.each(n.data,function(e,n){t=i.data[n],isNaN(t)||e.hidden||(r+=Math.abs(t))}),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i,n=0,r=this.index,s=t.length,a=0;s>a;a++)e=t[a]._model?t[a]._model.borderWidth:0,i=t[a]._chart?t[a]._chart.config.data.datasets[r].hoverBorderWidth:0,n=e>n?e:n,n=i>n?i:n;return n}})}},{}],18:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return i.getValueOrDefault(t.showLine,e.showLines)}var i=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,addElementAndReset:function(i){var n=this,r=n.chart.options,s=n.getMeta();t.DatasetController.prototype.addElementAndReset.call(n,i),e(n.getDataset(),r)&&0!==s.dataset._model.tension&&n.updateBezierControlPoints()},update:function(t){var n,r,s,a=this,o=a.getMeta(),l=o.dataset,h=o.data||[],u=a.chart.options,c=u.elements.line,d=a.getScaleForId(o.yAxisID),f=a.getDataset(),p=e(f,u);for(p&&(s=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=a.index,l._children=h,l._model={spanGaps:f.spanGaps?f.spanGaps:u.spanGaps,tension:s.tension?s.tension:i.getValueOrDefault(f.lineTension,c.tension),backgroundColor:s.backgroundColor?s.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:s.borderWidth?s.borderWidth:f.borderWidth||c.borderWidth,borderColor:s.borderColor?s.borderColor:f.borderColor||c.borderColor,borderCapStyle:s.borderCapStyle?s.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:s.borderDash?s.borderDash:f.borderDash||c.borderDash,borderDashOffset:s.borderDashOffset?s.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:s.borderJoinStyle?s.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:s.fill?s.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:s.steppedLine?s.steppedLine:i.getValueOrDefault(f.steppedLine,c.stepped),scaleTop:d.top,scaleBottom:d.bottom,scaleZero:d.getBasePixel()},l.pivot()),n=0,r=h.length;r>n;++n)a.updateElement(h[n],n,t);for(p&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,r=h.length;r>n;++n)h[n].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),s=t.custom||{};return s.backgroundColor?n=s.backgroundColor:r.pointBackgroundColor?n=i.getValueAtIndexOrDefault(r.pointBackgroundColor,e,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),s=t.custom||{};return s.borderColor?n=s.borderColor:r.pointBorderColor?n=i.getValueAtIndexOrDefault(r.pointBorderColor,e,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),s=t.custom||{};return s.borderWidth?n=s.borderWidth:r.pointBorderWidth?n=i.getValueAtIndexOrDefault(r.pointBorderWidth,e,n):r.borderWidth&&(n=r.borderWidth),n},updateElement:function(t,e,n){var r,s,a=this,o=a.getMeta(),l=t.custom||{},h=a.getDataset(),u=a.index,c=h.data[e],d=a.getScaleForId(o.yAxisID),f=a.getScaleForId(o.xAxisID),p=a.chart.options.elements.point;void 0!==h.radius&&void 0===h.pointRadius&&(h.pointRadius=h.radius),void 0!==h.hitRadius&&void 0===h.pointHitRadius&&(h.pointHitRadius=h.hitRadius),r=f.getPixelForValue("object"==typeof c?c:NaN,e,u,a.chart.isCombo),s=n?d.getBasePixel():a.calculatePointY(c,e,u),t._xScale=f,t._yScale=d,t._datasetIndex=u,t._index=e,t._model={x:r,y:s,skip:l.skip||isNaN(r)||isNaN(s),radius:l.radius||i.getValueAtIndexOrDefault(h.pointRadius,e,p.radius),pointStyle:l.pointStyle||i.getValueAtIndexOrDefault(h.pointStyle,e,p.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:l.hitRadius||i.getValueAtIndexOrDefault(h.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,i){var n,r,s,a=this,o=a.chart,l=a.getMeta(),h=a.getScaleForId(l.yAxisID),u=0,c=0;if(h.options.stacked){for(n=0;i>n;n++)if(r=o.data.datasets[n],s=o.getDatasetMeta(n),"line"===s.type&&s.yAxisID===h.id&&o.isDatasetVisible(n)){var d=Number(h.getRightValue(r.data[e]));0>d?c+=d||0:u+=d||0}var f=Number(h.getRightValue(t));return 0>f?h.getPixelForValue(c+f):h.getPixelForValue(u+f)}return h.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return c?Math.max(Math.min(t,i),e):t}var e,n,r,s,a,o=this,l=o.getMeta(),h=o.chart.chartArea,u=(l.data||[]).filter(function(t){return!t._model.skip}),c=o.chart.options.elements.line.capBezierPoints;for(e=0,n=u.length;n>e;++e)r=u[e],s=r._model,a=i.splineCurve(i.previousItem(u,e)._model,s,i.nextItem(u,e)._model,l.dataset._model.tension),s.controlPointPreviousX=t(a.previous.x,h.left,h.right),s.controlPointPreviousY=t(a.previous.y,h.top,h.bottom),s.controlPointNextX=t(a.next.x,h.left,h.right),s.controlPointNextY=t(a.next.y,h.top,h.bottom)},draw:function(t){var i,n,r=this,s=r.getMeta(),a=s.data||[],o=t||1;for(i=0,n=a.length;n>i;++i)a[i].transition(o);for(e(r.getDataset(),r.chart.options)&&s.dataset.transition(o).draw(),i=0,n=a.length;n>i;++i)a[i].draw()},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model;s.radius=r.hoverRadius||i.getValueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),s.backgroundColor=r.hoverBackgroundColor||i.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,n,i.getHoverColor(s.backgroundColor)),s.borderColor=r.hoverBorderColor||i.getValueAtIndexOrDefault(e.pointHoverBorderColor,n,i.getHoverColor(s.borderColor)),s.borderWidth=r.hoverBorderWidth||i.getValueAtIndexOrDefault(e.pointHoverBorderWidth,n,s.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],r=t._index,s=t.custom||{},a=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),a.radius=s.radius||i.getValueAtIndexOrDefault(n.pointRadius,r,e.chart.options.elements.point.radius),a.backgroundColor=e.getPointBackgroundColor(t,r),a.borderColor=e.getPointBorderColor(t,r),a.borderWidth=e.getPointBorderWidth(t,r)}})}},{}],19:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var s=0;s<n[0].data.length;++s)e.push('<li><span style="background-color:'+n[0].backgroundColor[s]+'">'),r[s]&&e.push(r[s]),e.push("</span></li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,r){var s=t.getDatasetMeta(0),a=i.datasets[0],o=s.data[r],l=o.custom||{},h=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:h(a.backgroundColor,r,u.backgroundColor),d=l.borderColor?l.borderColor:h(a.borderColor,r,u.borderColor),f=l.borderWidth?l.borderWidth:h(a.borderWidth,r,u.borderWidth);return{text:n,fillStyle:c,strokeStyle:d,lineWidth:f,hidden:isNaN(a.data[r])||s.data[r].hidden,index:r}}):[]}},onClick:function(t,e){var i,n,r,s=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;n>i;++i)r=a.getDatasetMeta(i),r.data[s].hidden=!r.data[s].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var i=this,n=i.chart,r=n.chartArea,s=i.getMeta(),a=n.options,o=a.elements.arc,l=Math.min(r.right-r.left,r.bottom-r.top);n.outerRadius=Math.max((l-o.borderWidth/2)/2,0),
  n.innerRadius=Math.max(a.cutoutPercentage?n.outerRadius/100*a.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),i.outerRadius=n.outerRadius-n.radiusLength*i.index,i.innerRadius=i.outerRadius-n.radiusLength,s.count=i.countVisibleElements(),e.each(s.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){for(var r=this,s=r.chart,a=r.getDataset(),o=s.options,l=o.animation,h=s.scale,u=e.getValueAtIndexOrDefault,c=s.data.labels,d=r.calculateCircumference(a.data[i]),f=h.xCenter,p=h.yCenter,g=0,m=r.getMeta(),_=0;i>_;++_)isNaN(a.data[_])||m.data[_].hidden||++g;var v=o.startAngle,y=t.hidden?0:h.getDistanceFromCenterForValue(a.data[i]),b=v+d*g,x=b+(t.hidden?0:d),w=l.animateScale?0:h.getDistanceFromCenterForValue(a.data[i]);e.extend(t,{_datasetIndex:r.index,_index:i,_scale:h,_model:{x:f,y:p,innerRadius:0,outerRadius:n?w:y,startAngle:n&&l.animateRotate?v:b,endAngle:n&&l.animateRotate?v:x,label:u(c,i,c[i])}}),r.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),i=this.getMeta(),n=0;return e.each(i.data,function(e,i){isNaN(t.data[i])||e.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,addElementAndReset:function(e){t.DatasetController.prototype.addElementAndReset.call(this,e),this.updateBezierControlPoints()},update:function(t){var i=this,n=i.getMeta(),r=n.dataset,s=n.data,a=r.custom||{},o=i.getDataset(),l=i.chart.options.elements.line,h=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),e.extend(n.dataset,{_datasetIndex:i.index,_children:s,_loop:!0,_model:{tension:a.tension?a.tension:e.getValueOrDefault(o.lineTension,l.tension),backgroundColor:a.backgroundColor?a.backgroundColor:o.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:o.borderWidth||l.borderWidth,borderColor:a.borderColor?a.borderColor:o.borderColor||l.borderColor,fill:a.fill?a.fill:void 0!==o.fill?o.fill:l.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:o.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash?a.borderDash:o.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:o.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:o.borderJoinStyle||l.borderJoinStyle,scaleTop:h.top,scaleBottom:h.bottom,scaleZero:h.getBasePosition()}}),n.dataset.pivot(),e.each(s,function(e,n){i.updateElement(e,n,t)},i),i.updateBezierControlPoints()},updateElement:function(t,i,n){var r=this,s=t.custom||{},a=r.getDataset(),o=r.chart.scale,l=r.chart.options.elements.point,h=o.getPointPositionForValue(i,a.data[i]);e.extend(t,{_datasetIndex:r.index,_index:i,_scale:o,_model:{x:n?o.xCenter:h.x,y:n?o.yCenter:h.y,tension:s.tension?s.tension:e.getValueOrDefault(a.tension,r.chart.options.elements.line.tension),radius:s.radius?s.radius:e.getValueAtIndexOrDefault(a.pointRadius,i,l.radius),backgroundColor:s.backgroundColor?s.backgroundColor:e.getValueAtIndexOrDefault(a.pointBackgroundColor,i,l.backgroundColor),borderColor:s.borderColor?s.borderColor:e.getValueAtIndexOrDefault(a.pointBorderColor,i,l.borderColor),borderWidth:s.borderWidth?s.borderWidth:e.getValueAtIndexOrDefault(a.pointBorderWidth,i,l.borderWidth),pointStyle:s.pointStyle?s.pointStyle:e.getValueAtIndexOrDefault(a.pointStyle,i,l.pointStyle),hitRadius:s.hitRadius?s.hitRadius:e.getValueAtIndexOrDefault(a.hitRadius,i,l.hitRadius)}}),t._model.skip=s.skip?s.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,i=this.getMeta();e.each(i.data,function(n,r){var s=n._model,a=e.splineCurve(e.previousItem(i.data,r,!0)._model,s,e.nextItem(i.data,r,!0)._model,s.tension);s.controlPointPreviousX=Math.max(Math.min(a.previous.x,t.right),t.left),s.controlPointPreviousY=Math.max(Math.min(a.previous.y,t.bottom),t.top),s.controlPointNextX=Math.max(Math.min(a.next.x,t.right),t.left),s.controlPointNextY=Math.max(Math.min(a.next.y,t.bottom),t.top),n.pivot()})},draw:function(t){var i=this.getMeta(),n=t||1;e.each(i.data,function(t){t.transition(n)}),i.dataset.transition(n).draw(),e.each(i.data,function(t){t.draw()})},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},r=t._index,s=t._model;s.radius=n.hoverRadius?n.hoverRadius:e.getValueAtIndexOrDefault(i.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),s.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.pointHoverBackgroundColor,r,e.getHoverColor(s.backgroundColor)),s.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(i.pointHoverBorderColor,r,e.getHoverColor(s.borderColor)),s.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(i.pointHoverBorderWidth,r,s.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},r=t._index,s=t._model,a=this.chart.options.elements.point;s.radius=n.radius?n.radius:e.getValueAtIndexOrDefault(i.radius,r,a.radius),s.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(i.pointBackgroundColor,r,a.backgroundColor),s.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(i.pointBorderColor,r,a.borderColor),s.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(i.pointBorderWidth,r,a.borderWidth)}})}},{}],21:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var r=this;n||(t.animating=!0);for(var s=0;s<r.animations.length;++s)if(r.animations[s].chartInstance===t)return void(r.animations[s].animationObject=e);r.animations.push({chartInstance:t,animationObject:e}),1===r.animations.length&&r.requestAnimationFrame()},cancelAnimation:function(t){var i=e.findIndex(this.animations,function(e){return e.chartInstance===t});-1!==i&&(this.animations.splice(i,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;t.dropFrames>1&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var n=0;n<t.animations.length;)null===t.animations[n].animationObject.currentStep&&(t.animations[n].animationObject.currentStep=0),t.animations[n].animationObject.currentStep+=1+i,t.animations[n].animationObject.currentStep>t.animations[n].animationObject.numSteps&&(t.animations[n].animationObject.currentStep=t.animations[n].animationObject.numSteps),t.animations[n].animationObject.render(t.animations[n].chartInstance,t.animations[n].animationObject),t.animations[n].animationObject.onAnimationProgress&&t.animations[n].animationObject.onAnimationProgress.call&&t.animations[n].animationObject.onAnimationProgress.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].animationObject.currentStep===t.animations[n].animationObject.numSteps?(t.animations[n].animationObject.onAnimationComplete&&t.animations[n].animationObject.onAnimationComplete.call&&t.animations[n].animationObject.onAnimationComplete.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].chartInstance.animating=!1,t.animations.splice(n,1)):++n;var r=Date.now(),s=(r-e)/t.frameDuration;t.dropFrames+=s,t.animations.length>0&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,i){"use strict";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,i,n,r){var s,a,o,l,h,u;if("object"==typeof e&&(s=e.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return void t.drawImage(e,n-e.width/2,r-e.height/2);if(!(isNaN(i)||0>=i)){switch(e){default:t.beginPath(),t.arc(n,r,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),a=3*i/Math.sqrt(3),h=a*Math.sqrt(3)/2,t.moveTo(n-a/2,r+h/3),t.lineTo(n+a/2,r+h/3),t.lineTo(n,r-2*h/3),t.closePath(),t.fill();break;case"rect":u=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-u,r-u,2*u,2*u),t.strokeRect(n-u,r-u,2*u,2*u);break;case"rectRot":u=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-u,r),t.lineTo(n,r+u),t.lineTo(n+u,r),t.lineTo(n,r-u),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-o,r-l),t.lineTo(n+o,r+l),t.moveTo(n-o,r+l),t.lineTo(n+o,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),o=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-o,r-l),t.lineTo(n+o,r+l),t.moveTo(n-o,r+l),t.lineTo(n+o,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,r),t.lineTo(n+i,r),t.closePath()}t.stroke()}}}},{}],23:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(i){return this.chart=i,this.config=i.config,this.options=this.config.options=e.configMerge(t.defaults.global,t.defaults[this.config.type],this.config.options||{}),this.id=e.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),t.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this},e.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return e.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(i){var n=this,r=n.chart,s=r.canvas,a=e.getMaximumWidth(s),o=r.aspectRatio,l=n.options.maintainAspectRatio&&isNaN(o)===!1&&isFinite(o)&&0!==o?a/o:e.getMaximumHeight(s),h=r.width!==a||r.height!==l;if(!h)return n;s.width=r.width=a,s.height=r.height=l,e.retinaScale(r);var u={width:a,height:l};return t.plugins.notify("resize",[n,u]),n.options.onResize&&n.options.onResize(n,u),i||(n.stop(),n.update(n.options.responsiveAnimationDuration)),n},ensureScalesHaveIDs:function(){var t=this.options,i=t.scales||{},n=t.scale;e.each(i.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),e.each(i.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,n=i.options,r=i.scales={},s=[];n.scales&&(s=s.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&s.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),e.each(s,function(n){var s=n.options,a=e.getValueOrDefault(s.type,n.dtype),o=t.scaleService.getScaleConstructor(a);if(o){var l=new o({id:s.id,options:s,ctx:i.chart.ctx,chart:i});r[l.id]=l,n.isDefault&&(i.scale=l)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var i=this,n=[],r=[];if(e.each(i.data.datasets,function(e,s){var a=i.getDatasetMeta(s);a.type||(a.type=e.type||i.config.type),n.push(a.type),a.controller?a.controller.updateIndex(s):(a.controller=new t.controllers[a.type](i,s),r.push(a.controller))},i),n.length>1)for(var s=1;s<n.length;s++)if(n[s]!==n[s-1]){i.isCombo=!0;break}return r},resetElements:function(){var t=this;e.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},update:function(i,n){var r=this;t.plugins.notify("beforeUpdate",[r]),r.tooltip._data=r.data;var s=r.buildOrUpdateControllers();e.each(r.data.datasets,function(t,e){r.getDatasetMeta(e).controller.buildOrUpdateElements()},r),t.layoutService.update(r,r.chart.width,r.chart.height),t.plugins.notify("afterScaleUpdate",[r]),e.each(s,function(t){t.reset()}),r.updateDatasets(),t.plugins.notify("afterUpdate",[r]),r.render(i,n)},updateDatasets:function(){var e,i,n=this;if(t.plugins.notify("beforeDatasetsUpdate",[n])){for(e=0,i=n.data.datasets.length;i>e;++e)n.getDatasetMeta(e).controller.update();t.plugins.notify("afterDatasetsUpdate",[n])}},render:function(i,n){var r=this;t.plugins.notify("beforeRender",[r]);var s=r.options.animation;if(s&&("undefined"!=typeof i&&0!==i||"undefined"==typeof i&&0!==s.duration)){var a=new t.Animation;a.numSteps=(i||s.duration)/16.66,a.easing=s.easing,a.render=function(t,i){var n=e.easingEffects[i.easing],r=i.currentStep/i.numSteps,s=n(r);t.draw(s,r,i.currentStep)},a.onAnimationProgress=s.onProgress,a.onAnimationComplete=s.onComplete,t.animationService.addAnimation(r,a,i,n)}else r.draw(),s&&s.onComplete&&s.onComplete.call&&s.onComplete.call(r);return r},draw:function(i){var n=this,r=i||1;n.clear(),t.plugins.notify("beforeDraw",[n,r]),e.each(n.boxes,function(t){t.draw(n.chartArea)},n),n.scale&&n.scale.draw(),t.plugins.notify("beforeDatasetsDraw",[n,r]),e.each(n.data.datasets,function(t,e){n.isDatasetVisible(e)&&n.getDatasetMeta(e).controller.draw(i)},n,!0),t.plugins.notify("afterDatasetsDraw",[n,r]),n.tooltip.transition(r).draw(),t.plugins.notify("afterDraw",[n,r])},getElementAtEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[];return e.each(i.data.datasets,function(t,s){if(i.isDatasetVisible(s)){var a=i.getDatasetMeta(s);e.each(a.data,function(t){return t.inRange(n.x,n.y)?(r.push(t),r):void 0})}}),r.slice(0,1)},getElementsAtEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[],s=function(){if(i.data.datasets)for(var t=0;t<i.data.datasets.length;t++){var e=i.getDatasetMeta(t);if(i.isDatasetVisible(t))for(var r=0;r<e.data.length;r++)if(e.data[r].inRange(n.x,n.y))return e.data[r]}}.call(i);return s?(e.each(i.data.datasets,function(t,e){if(i.isDatasetVisible(e)){var n=i.getDatasetMeta(e),a=n.data[s._index];a&&!a._view.skip&&r.push(a)}},i),r):r},getElementsAtXAxis:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[],s=function(){if(i.data.datasets)for(var t=0;t<i.data.datasets.length;t++){var e=i.getDatasetMeta(t);if(i.isDatasetVisible(t))for(var r=0;r<e.data.length;r++)if(e.data[r].inLabelRange(n.x,n.y))return e.data[r]}}.call(i);return s?(e.each(i.data.datasets,function(t,n){if(i.isDatasetVisible(n)){var a=i.getDatasetMeta(n),o=e.findIndex(a.data,function(t){return s._model.x===t._model.x});-1===o||a.data[o]._view.skip||r.push(a.data[o])}},i),r):r},getElementsAtEventForMode:function(t,e){var i=this;switch(e){case"single":return i.getElementAtEvent(t);case"label":return i.getElementsAtEvent(t);case"dataset":return i.getDatasetAtEvent(t);case"x-axis":return i.getElementsAtXAxis(t);default:return t}},getDatasetAtEvent:function(t){var e=this.getElementAtEvent(t);return e.length>0&&(e=this.getDatasetMeta(e[0]._datasetIndex).data),e},getDatasetMeta:function(t){var e=this,i=e.data.datasets[t];i._meta||(i._meta={});var n=i._meta[e.id];return n||(n=i._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;i>e;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var i=this;i.stop(),i.clear(),e.unbindEvents(i,i.events),e.removeResizeListener(i.chart.canvas.parentNode);var n=i.chart.canvas;n.width=i.chart.width,n.height=i.chart.height,void 0!==i.chart.originalDevicePixelRatio&&i.chart.ctx.scale(1/i.chart.originalDevicePixelRatio,1/i.chart.originalDevicePixelRatio),n.style.width=i.chart.originalCanvasStyleWidth,n.style.height=i.chart.originalCanvasStyleHeight,t.plugins.notify("destroy",[i]),delete t.instances[i.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e.chart,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this;e.bindEvents(t,t.options.events,function(e){t.eventHandler(e)})},updateHoverStyle:function(t,e,i){var n,r,s,a=i?"setHoverStyle":"removeHoverStyle";switch(e){case"single":t=[t[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(r=0,s=t.length;s>r;++r)n=t[r],n&&this.getDatasetMeta(n._datasetIndex).controller[a](n)},eventHandler:function(t){var i=this,n=i.tooltip,r=i.options||{},s=r.hover,a=r.tooltips;return i.lastActive=i.lastActive||[],i.lastTooltipActive=i.lastTooltipActive||[],"mouseout"===t.type?(i.active=[],i.tooltipActive=[]):(i.active=i.getElementsAtEventForMode(t,s.mode),i.tooltipActive=i.getElementsAtEventForMode(t,a.mode)),s.onHover&&s.onHover.call(i,i.active),("mouseup"===t.type||"click"===t.type)&&(r.onClick&&r.onClick.call(i,t,i.active),i.legend&&i.legend.handleEvent&&i.legend.handleEvent(t)),i.lastActive.length&&i.updateHoverStyle(i.lastActive,s.mode,!1),i.active.length&&s.mode&&i.updateHoverStyle(i.active,s.mode,!0),(a.enabled||a.custom)&&(n.initialize(),n._active=i.tooltipActive,n.update(!0)),n.pivot(),i.animating||e.arrayEquals(i.active,i.lastActive)&&e.arrayEquals(i.tooltipActive,i.lastTooltipActive)||(i.stop(),(a.enabled||a.custom)&&n.update(!0),i.render(s.animationDuration,!0)),i.lastActive=i.active,i.lastTooltipActive=i.tooltipActive,i}})}},{}],24:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.DatasetController=function(t,e){this.initialize.call(this,t,e)},e.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var i=this;i.chart=t,i.index=e,i.linkScales(),i.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),i=t.getDataset();null===e.xAxisID&&(e.xAxisID=i.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=i.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,i=e.dataElementType;return i&&new i({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,i=this,n=i.getMeta(),r=i.getDataset().data||[],s=n.data;for(t=0,e=r.length;e>t;++t)s[t]=s[t]||i.createMetaData(n,t);n.dataset=n.dataset||i.createMetaDataset()},addElementAndReset:function(t){var e=this,i=e.createMetaData(t);e.getMeta().data.splice(t,0,i),e.updateElement(i,t,!0)},buildOrUpdateElements:function(){var t=this.getMeta(),e=t.data,i=this.getDataset().data.length,n=e.length;if(n>i)e.splice(i,n-i);else if(i>n)for(var r=n;i>r;++r)this.addElementAndReset(r)},update:i,draw:function(t){var i=t||1;e.each(this.getMeta().data,function(t){t.transition(i).draw()})},removeHoverStyle:function(t,i){var n=this.chart.data.datasets[t._datasetIndex],r=t._index,s=t.custom||{},a=e.getValueAtIndexOrDefault,o=t._model;o.backgroundColor=s.backgroundColor?s.backgroundColor:a(n.backgroundColor,r,i.backgroundColor),o.borderColor=s.borderColor?s.borderColor:a(n.borderColor,r,i.borderColor),o.borderWidth=s.borderWidth?s.borderWidth:a(n.borderWidth,r,i.borderWidth)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=e.getValueAtIndexOrDefault,a=e.getHoverColor,o=t._model;o.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:s(i.hoverBackgroundColor,n,a(o.backgroundColor)),o.borderColor=r.hoverBorderColor?r.hoverBorderColor:s(i.hoverBorderColor,n,a(o.borderColor)),o.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:s(i.hoverBorderWidth,n,o.borderWidth)}}),t.DatasetController.extend=e.inherits}},{}],25:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.elements={},t.Element=function(t){e.extend(this,t),this.initialize.apply(this,arguments)},e.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=e.clone(t._model)),t._start=e.clone(t._view),t},transition:function(t){var i=this;return i._view||(i._view=e.clone(i._model)),1===t?(i._view=i._model,i._start=null,i):(i._start||i.pivot(),e.each(i._model,function(n,r){if("_"===r[0]);else if(i._view.hasOwnProperty(r))if(n===i._view[r]);else if("string"==typeof n)try{var s=e.color(i._model[r]).mix(e.color(i._start[r]),t);i._view[r]=s.rgbString()}catch(a){i._view[r]=n}else if("number"==typeof n){var o=void 0!==i._start[r]&&isNaN(i._start[r])===!1?i._start[r]:0;i._view[r]=(i._model[r]-o)*t+o}else i._view[r]=n;else"number"!=typeof n||isNaN(i._view[r])?i._view[r]=n:i._view[r]=n*t},i),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return e.isNumber(this._model.x)&&e.isNumber(this._model.y)}}),t.Element.extend=e.inherits}},{}],26:[function(t,e,i){"use strict";var n=t(2);e.exports=function(t){function e(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!=t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function i(t){return void 0!==t&&null!==t&&"none"!==t}function r(t,n,r){var s=document.defaultView,a=t.parentNode,o=s.getComputedStyle(t)[n],l=s.getComputedStyle(a)[n],h=i(o),u=i(l),c=Number.POSITIVE_INFINITY;return h||u?Math.min(h?e(o,t,r):c,u?e(l,a,r):c):"none"}var s=t.helpers={};s.each=function(t,e,i,n){var r,a;if(s.isArray(t))if(a=t.length,n)for(r=a-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;a>r;r++)e.call(i,t[r],r);else if("object"==typeof t){var o=Object.keys(t);for(a=o.length,r=0;a>r;r++)e.call(i,t[o[r]],o[r])}},s.clone=function(t){var e={};return s.each(t,function(t,i){s.isArray(t)?e[i]=t.slice(0):"object"==typeof t&&null!==t?e[i]=s.clone(t):e[i]=t}),e},s.extend=function(t){for(var e=function(e,i){t[i]=e},i=1,n=arguments.length;n>i;i++)s.each(arguments[i],e);return t},s.configMerge=function(e){var i=s.clone(e);return s.each(Array.prototype.slice.call(arguments,1),function(e){s.each(e,function(e,n){if("scales"===n)i[n]=s.scaleMerge(i.hasOwnProperty(n)?i[n]:{},e);else if("scale"===n)i[n]=s.configMerge(i.hasOwnProperty(n)?i[n]:{},t.scaleService.getScaleDefaults(e.type),e);else if(i.hasOwnProperty(n)&&s.isArray(i[n])&&s.isArray(e)){var r=i[n];s.each(e,function(t,e){e<r.length?"object"==typeof r[e]&&null!==r[e]&&"object"==typeof t&&null!==t?r[e]=s.configMerge(r[e],t):r[e]=t:r.push(t)})}else i.hasOwnProperty(n)&&"object"==typeof i[n]&&null!==i[n]&&"object"==typeof e?i[n]=s.configMerge(i[n],e):i[n]=e})}),i},s.scaleMerge=function(e,i){var n=s.clone(e);return s.each(i,function(e,i){"xAxes"===i||"yAxes"===i?n.hasOwnProperty(i)?s.each(e,function(e,r){var a=s.getValueOrDefault(e.type,"xAxes"===i?"category":"linear"),o=t.scaleService.getScaleDefaults(a);r>=n[i].length||!n[i][r].type?n[i].push(s.configMerge(o,e)):e.type&&e.type!==n[i][r].type?n[i][r]=s.configMerge(n[i][r],o,e):n[i][r]=s.configMerge(n[i][r],e)}):(n[i]=[],s.each(e,function(e){var r=s.getValueOrDefault(e.type,"xAxes"===i?"category":"linear");n[i].push(s.configMerge(t.scaleService.getScaleDefaults(r),e))})):n.hasOwnProperty(i)&&"object"==typeof n[i]&&null!==n[i]&&"object"==typeof e?n[i]=s.configMerge(n[i],e):n[i]=e}),n},s.getValueAtIndexOrDefault=function(t,e,i){return void 0===t||null===t?i:s.isArray(t)?e<t.length?t[e]:i:t},s.getValueOrDefault=function(t,e){return void 0===t?e:t},s.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;++i)if(t[i]===e)return i;return-1},s.where=function(t,e){if(s.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return s.each(t,function(t){e(t)&&i.push(t)}),i},s.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,r=t.length;r>n;++n)if(e.call(i,t[n],n,t))return n;return-1},s.findNextWhere=function(t,e,i){(void 0===i||null===i)&&(i=-1);for(var n=i+1;n<t.length;n++){var r=t[n];if(e(r))return r}},s.findPreviousWhere=function(t,e,i){(void 0===i||null===i)&&(i=t.length);for(var n=i-1;n>=0;n--){var r=t[n];if(e(r))return r}},s.inherits=function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=s.inherits,t&&s.extend(i.prototype,t),i.__super__=e.prototype,i},s.noop=function(){},s.uid=function(){var t=0;return function(){return t++}}(),s.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},s.almostEquals=function(t,e,i){return Math.abs(t-e)<i},s.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},s.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},s.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},s.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},s.toRadians=function(t){return t*(Math.PI/180)},s.toDegrees=function(t){return t*(180/Math.PI)},s.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n),s=Math.atan2(n,i);return s<-.5*Math.PI&&(s+=2*Math.PI),{angle:s,distance:r}},s.aliasPixel=function(t){return t%2===0?0:.5},s.splineCurve=function(t,e,i,n){var r=t.skip?e:t,s=e,a=i.skip?e:i,o=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2)),h=o/(o+l),u=l/(o+l);h=isNaN(h)?0:h,u=isNaN(u)?0:u;var c=n*h,d=n*u;return{previous:{x:s.x-c*(a.x-r.x),y:s.y-c*(a.y-r.y)},next:{x:s.x+d*(a.x-r.x),y:s.y+d*(a.y-r.y)}}},s.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},s.previousItem=function(t,e,i){return i?0>=e?t[t.length-1]:t[e-1]:0>=e?t[0]:t[e-1]},s.niceNum=function(t,e){var i,n=Math.floor(s.log10(t)),r=t/Math.pow(10,n);return i=e?1.5>r?1:3>r?2:7>r?5:10:1>=r?1:2>=r?2:5>=r?5:10,i*Math.pow(10,n)};var a=s.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2===(t/=.5)?1:(i||(i=1*(.3*1.5)),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),1>t?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};s.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),s.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),s.getRelativePosition=function(t,e){var i,n,r=t.originalEvent||t,a=t.currentTarget||t.srcElement,o=a.getBoundingClientRect(),l=r.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=r.clientX,n=r.clientY);var h=parseFloat(s.getStyle(a,"padding-left")),u=parseFloat(s.getStyle(a,"padding-top")),c=parseFloat(s.getStyle(a,"padding-right")),d=parseFloat(s.getStyle(a,"padding-bottom")),f=o.right-o.left-h-c,p=o.bottom-o.top-u-d;return i=Math.round((i-o.left-h)/f*a.width/e.currentDevicePixelRatio),n=Math.round((n-o.top-u)/p*a.height/e.currentDevicePixelRatio),{x:i,y:n}},s.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},s.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=s.noop},s.bindEvents=function(t,e,i){var n=t.events=t.events||{};s.each(e,function(e){n[e]=function(){i.apply(t,arguments)},s.addEvent(t.chart.canvas,e,n[e])})},s.unbindEvents=function(t,e){var i=t.chart.canvas;s.each(e,function(t,e){s.removeEvent(i,e,t)})},s.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},s.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},s.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(s.getStyle(e,"padding-left"))+parseInt(s.getStyle(e,"padding-right")),n=e.clientWidth-i,r=s.getConstraintWidth(t);return isNaN(r)?n:Math.min(n,r)},s.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(s.getStyle(e,"padding-top"))+parseInt(s.getStyle(e,"padding-bottom")),n=e.clientHeight-i,r=s.getConstraintHeight(t);return isNaN(r)?n:Math.min(n,r)},s.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},s.retinaScale=function(t){var e=t.ctx,i=t.canvas,n=i.width,r=i.height,s=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==s&&(i.height=r*s,i.width=n*s,e.scale(s,s),t.originalDevicePixelRatio=t.originalDevicePixelRatio||s),i.style.width=n+"px",i.style.height=r+"px";
  },s.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},s.fontString=function(t,e,i){return e+" "+t+"px "+i},s.longestText=function(t,e,i,n){n=n||{};var r=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},a=n.garbageCollect=[],n.font=e),t.font=e;var o=0;s.each(i,function(e){void 0!==e&&null!==e&&s.isArray(e)!==!0?o=s.measureText(t,r,a,o,e):s.isArray(e)&&s.each(e,function(e){void 0===e||null===e||s.isArray(e)||(o=s.measureText(t,r,a,o,e))})});var l=a.length/2;if(l>i.length){for(var h=0;l>h;h++)delete r[a[h]];a.splice(0,l)}return o},s.measureText=function(t,e,i,n,r){var s=e[r];return s||(s=e[r]=t.measureText(r).width,i.push(r)),s>n&&(n=s),n},s.numberOfLabelLines=function(t){var e=1;return s.each(t,function(t){s.isArray(t)&&t.length>e&&(e=t.length)}),e},s.drawRoundedRectangle=function(t,e,i,n,r,s){t.beginPath(),t.moveTo(e+s,i),t.lineTo(e+n-s,i),t.quadraticCurveTo(e+n,i,e+n,i+s),t.lineTo(e+n,i+r-s),t.quadraticCurveTo(e+n,i+r,e+n-s,i+r),t.lineTo(e+s,i+r),t.quadraticCurveTo(e,i+r,e,i+r-s),t.lineTo(e,i+s),t.quadraticCurveTo(e,i,e+s,i),t.closePath()},s.color=function(e){return n?n(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.log("Color.js not found!"),e)},s.addResizeListener=function(t,e){var i=document.createElement("iframe"),n="chartjs-hidden-iframe";i.classlist?i.classlist.add(n):i.setAttribute("class",n);var r=i.style;r.width="100%",r.display="block",r.border=0,r.height=0,r.margin=0,r.position="absolute",r.left=0,r.right=0,r.top=0,r.bottom=0,t.insertBefore(i,t.firstChild),(i.contentWindow||i).onresize=function(){e&&e()}},s.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},s.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},s.arrayEquals=function(t,e){var i,n,r,a;if(!t||!e||t.length!=e.length)return!1;for(i=0,n=t.length;n>i;++i)if(r=t[i],a=e[i],r instanceof Array&&a instanceof Array){if(!s.arrayEquals(r,a))return!1}else if(r!=a)return!1;return!0},s.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},s.getHoverColor=function(t){return t instanceof CanvasPattern?t:s.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2}],27:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){var n=this,r=t.helpers;return n.config=i||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),n.ctx=e,n.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",n.width=e.canvas.width||parseInt(r.getStyle(e.canvas,"width"),10)||r.getMaximumWidth(e.canvas),n.height=e.canvas.height||parseInt(r.getStyle(e.canvas,"height"),10)||r.getMaximumHeight(e.canvas),n.aspectRatio=n.width/n.height,(isNaN(n.aspectRatio)||isFinite(n.aspectRatio)===!1)&&(n.aspectRatio=void 0!==i.aspectRatio?i.aspectRatio:2),n.originalCanvasStyleWidth=e.canvas.style.width,n.originalCanvasStyleHeight=e.canvas.style.height,r.retinaScale(n),n.controller=new t.Controller(n),r.addResizeListener(e.canvas.parentNode,function(){n.controller&&n.controller.config.options.responsive&&n.controller.resize()}),n.controller?n.controller:n};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){function r(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?g:x,b),w-=e.height):(e=t.update(y,v),x-=e.width),T.push({horizontal:i,minSize:e,box:t})}function s(t){var i=e.findNextWhere(T,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:C,right:S,top:0,bottom:0};t.update(t.options.fullWidth?g:x,m/2,n)}else t.update(i.minSize.width,w)}function a(t){var i=e.findNextWhere(T,function(e){return e.box===t}),n={left:0,right:0,top:k,bottom:P};i&&t.update(i.minSize.width,w,n)}function o(t){t.isHorizontal()?(t.left=t.options.fullWidth?l:C,t.right=t.options.fullWidth?i-l:C+x,t.top=O,t.bottom=O+t.height,O=t.bottom):(t.left=D,t.right=D+t.width,t.top=k,t.bottom=k+w,D=t.right)}if(t){var l=0,h=0,u=e.where(t.boxes,function(t){return"left"===t.options.position}),c=e.where(t.boxes,function(t){return"right"===t.options.position}),d=e.where(t.boxes,function(t){return"top"===t.options.position}),f=e.where(t.boxes,function(t){return"bottom"===t.options.position}),p=e.where(t.boxes,function(t){return"chartArea"===t.options.position});d.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),f.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var g=i-2*l,m=n-2*h,_=g/2,v=m/2,y=(i-_)/(u.length+c.length),b=(n-v)/(d.length+f.length),x=g,w=m,T=[];e.each(u.concat(c,d,f),r);var C=l,S=l,k=h,P=h;e.each(u.concat(c),s),e.each(u,function(t){C+=t.width}),e.each(c,function(t){S+=t.width}),e.each(d.concat(f),s),e.each(d,function(t){k+=t.height}),e.each(f,function(t){P+=t.height}),e.each(u.concat(c),a),C=l,S=l,k=h,P=h,e.each(u,function(t){C+=t.width}),e.each(c,function(t){S+=t.width}),e.each(d,function(t){k+=t.height}),e.each(f,function(t){P+=t.height});var M=n-k-P,A=i-C-S;(A!==x||M!==w)&&(e.each(u,function(t){t.height=M}),e.each(c,function(t){t.height=M}),e.each(d,function(t){t.options.fullWidth||(t.width=A)}),e.each(f,function(t){t.options.fullWidth||(t.width=A)}),w=M,x=A);var D=l,O=h;e.each(u.concat(d),o),D+=x,O+=w,e.each(c,o),e.each(f,o),t.chartArea={left:C,top:k,right:C+x,bottom:k+w},e.each(p,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(x,w)})}}}}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,n.update()},labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=i.options,r=n.labels,s=n.display,a=i.ctx,o=t.defaults.global,l=e.getValueOrDefault,h=l(r.fontSize,o.defaultFontSize),u=l(r.fontStyle,o.defaultFontStyle),c=l(r.fontFamily,o.defaultFontFamily),d=e.fontString(h,u,c),f=i.legendHitBoxes=[],p=i.minSize,g=i.isHorizontal();if(g?(p.width=i.maxWidth,p.height=s?10:0):(p.width=s?10:0,p.height=i.maxHeight),s)if(a.font=d,g){var m=i.lineWidths=[0],_=i.legendItems.length?h+r.padding:0;a.textAlign="left",a.textBaseline="top",e.each(i.legendItems,function(t,e){var n=r.usePointStyle?h*Math.sqrt(2):r.boxWidth,s=n+h/2+a.measureText(t.text).width;m[m.length-1]+s+r.padding>=i.width&&(_+=h+r.padding,m[m.length]=i.left),f[e]={left:0,top:0,width:s,height:h},m[m.length-1]+=s+r.padding}),p.height+=_}else{var v=r.padding,y=i.columnWidths=[],b=r.padding,x=0,w=0,T=h+v;e.each(i.legendItems,function(t,e){var i=r.usePointStyle?2*r.boxWidth:r.boxWidth,n=i+h/2+a.measureText(t.text).width;w+T>p.height&&(b+=x+r.padding,y.push(x),x=0,w=0),x=Math.max(x,n),w+=T,f[e]={left:0,top:0,width:n,height:h}}),b+=x,y.push(x),p.width+=b}i.width=p.width,i.height=p.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,r=n.labels,s=t.defaults.global,a=s.elements.line,o=i.width,l=i.lineWidths;if(n.display){var h,u=i.ctx,c=e.getValueOrDefault,d=c(r.fontColor,s.defaultFontColor),f=c(r.fontSize,s.defaultFontSize),p=c(r.fontStyle,s.defaultFontStyle),g=c(r.fontFamily,s.defaultFontFamily),m=e.fontString(f,p,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=d,u.fillStyle=d,u.font=m;var _=r.boxWidth,v=i.legendHitBoxes,y=function(e,i,r){if(!(isNaN(_)||0>=_)){if(u.save(),u.fillStyle=c(r.fillStyle,s.defaultColor),u.lineCap=c(r.lineCap,a.borderCapStyle),u.lineDashOffset=c(r.lineDashOffset,a.borderDashOffset),u.lineJoin=c(r.lineJoin,a.borderJoinStyle),u.lineWidth=c(r.lineWidth,a.borderWidth),u.strokeStyle=c(r.strokeStyle,s.defaultColor),u.setLineDash&&u.setLineDash(c(r.lineDash,a.borderDash)),n.labels&&n.labels.usePointStyle){var o=f*Math.SQRT2/2,l=o/Math.SQRT2,h=e+l,d=i+l;t.canvasHelpers.drawPoint(u,r.pointStyle,o,h,d)}else u.strokeRect(e,i,_,f),u.fillRect(e,i,_,f);u.restore()}},b=function(t,e,i,n){u.fillText(i.text,_+f/2+t,e),i.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(_+f/2+t,e+f/2),u.lineTo(_+f/2+t+n,e+f/2),u.stroke())},x=i.isHorizontal();h=x?{x:i.left+(o-l[0])/2,y:i.top+r.padding,line:0}:{x:i.left+r.padding,y:i.top+r.padding,line:0};var w=f+r.padding;e.each(i.legendItems,function(t,e){var n=u.measureText(t.text).width,s=r.usePointStyle?f+f/2+n:_+f/2+n,a=h.x,c=h.y;x?a+s>=o&&(c=h.y+=w,h.line++,a=h.x=i.left+(o-l[h.line])/2):c+w>i.bottom&&(a=h.x=a+i.columnWidths[h.line]+r.padding,c=h.y=i.top,h.line++),y(a,c,t),v[e].left=a,v[e].top=c,b(a,c,t,n),x?h.x+=s+r.padding:h.y+=w})}},handleEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart.chart),r=n.x,s=n.y,a=i.options;if(r>=i.left&&r<=i.right&&s>=i.top&&s<=i.bottom)for(var o=i.legendHitBoxes,l=0;l<o.length;++l){var h=o[l];if(r>=h.left&&r<=h.left+h.width&&s>=h.top&&s<=h.top+h.height){a.onClick&&a.onClick.call(i,t,i.legendItems[l]);break}}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,r=this._plugins,s=r.length;for(i=0;s>i;++i)if(n=r[i],"function"==typeof n[t]&&n[t].apply(n,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=i,r.margins=e.extend({left:0,right:0,top:0,bottom:0},n),r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r.beforeBuildTicks(),r.buildTicks(),r.afterBuildTicks(),r.beforeTickToLabelConversion(),r.convertTicksToLabels(),r.afterTickToLabelConversion(),r.beforeCalculateTickRotation(),r.calculateTickRotation(),r.afterCalculateTickRotation(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,r=t.defaults.global,s=i.options.ticks,a=e.getValueOrDefault(s.fontSize,r.defaultFontSize),o=e.getValueOrDefault(s.fontStyle,r.defaultFontStyle),l=e.getValueOrDefault(s.fontFamily,r.defaultFontFamily),h=e.fontString(a,o,l);n.font=h;var u,c=n.measureText(i.ticks[0]).width,d=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=s.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=d/2+3,i.paddingLeft=c/2+3,i.longestTextCache||(i.longestTextCache={});for(var f,p,g=e.longestText(n,h,i.ticks,i.longestTextCache),m=g,_=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>_&&i.labelRotation<s.maxRotation;){if(f=Math.cos(e.toRadians(i.labelRotation)),p=Math.sin(e.toRadians(i.labelRotation)),u=f*c,u+a/2>i.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,p*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=f*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},r=i.options,s=t.defaults.global,a=r.ticks,o=r.scaleLabel,l=r.display,h=i.isHorizontal(),u=e.getValueOrDefault(a.fontSize,s.defaultFontSize),c=e.getValueOrDefault(a.fontStyle,s.defaultFontStyle),d=e.getValueOrDefault(a.fontFamily,s.defaultFontFamily),f=e.fontString(u,c,d),p=e.getValueOrDefault(o.fontSize,s.defaultFontSize),g=r.gridLines.tickMarkLength;if(h?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=l?g:0,h?n.height=l?g:0:n.height=i.maxHeight,o.display&&l&&(h?n.height+=1.5*p:n.width+=1.5*p),a.display&&l){i.longestTextCache||(i.longestTextCache={});var m=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),_=e.numberOfLabelLines(i.ticks),v=.5*u;if(h){i.longestLabelWidth=m;var y=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+u*_+v*_;n.height=Math.min(i.maxHeight,n.height+y),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,w=Math.cos(e.toRadians(i.labelRotation)),T=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?w*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?T*(u/2)+3:x/2+3}else{var C=i.maxWidth-n.width,S=a.mirror;S?m=0:m+=i.options.ticks.padding,C>m?n.width+=m:n.width=i.maxWidth,i.paddingTop=u/2,i.paddingBottom=u/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),r=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),s=r*t+i.paddingLeft;e&&(s+=r/2);var a=i.left+Math.round(s);return a+=i.isFullWidth()?i.margins.left:0}var o=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(o/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,r=e.left+Math.round(n);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,r=n.options;if(r.display){var s,a,o=n.ctx,l=t.defaults.global,h=r.ticks,u=r.gridLines,c=r.scaleLabel,d=0!==n.labelRotation,f=h.autoSkip,p=n.isHorizontal();h.maxTicksLimit&&(a=h.maxTicksLimit);var g=e.getValueOrDefault(h.fontColor,l.defaultFontColor),m=e.getValueOrDefault(h.fontSize,l.defaultFontSize),_=e.getValueOrDefault(h.fontStyle,l.defaultFontStyle),v=e.getValueOrDefault(h.fontFamily,l.defaultFontFamily),y=e.fontString(m,_,v),b=u.tickMarkLength,x=e.getValueOrDefault(c.fontColor,l.defaultFontColor),w=e.getValueOrDefault(c.fontSize,l.defaultFontSize),T=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),C=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),S=e.fontString(w,T,C),k=e.toRadians(n.labelRotation),P=Math.cos(k),M=n.longestLabelWidth*P;o.fillStyle=g;var A=[];if(p){if(s=!1,d&&(M/=2),(M+h.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(s=1+Math.floor((M+h.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!s||n.ticks.length/(s||1)>a;)s||(s=1),s+=1;f||(s=!1)}var D="right"===r.position?n.left:n.right-b,O="right"===r.position?n.left+b:n.right,R="bottom"===r.position?n.top:n.bottom-b,L="bottom"===r.position?n.top+b:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var o=n.ticks.length===a+1,l=s>1&&a%s>0||a%s===0&&a+s>=n.ticks.length;if((!l||o)&&void 0!==t&&null!==t){var c,f;a===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(c=u.zeroLineWidth,f=u.zeroLineColor):(c=e.getValueAtIndexOrDefault(u.lineWidth,a),f=e.getValueAtIndexOrDefault(u.color,a));var g,m,_,v,y,x,w,T,C,S,P,M="middle";if(p){d||(M="top"===r.position?"bottom":"top"),P=d?"right":"center";var I=n.getPixelForTick(a)+e.aliasPixel(c);C=n.getPixelForTick(a,u.offsetGridLines)+h.labelOffset,S=d?n.top+12:"top"===r.position?n.bottom-b:n.top+b,g=_=y=w=I,m=R,v=L,x=i.top,T=i.bottom}else{"left"===r.position?h.mirror?(C=n.right+h.padding,P="left"):(C=n.right-h.padding,P="right"):h.mirror?(C=n.left-h.padding,P="right"):(C=n.left+h.padding,P="left");var E=n.getPixelForTick(a);E+=e.aliasPixel(c),S=n.getPixelForTick(a,u.offsetGridLines),g=D,_=O,y=i.left,w=i.right,m=v=x=T=E}A.push({tx1:g,ty1:m,tx2:_,ty2:v,x1:y,y1:x,x2:w,y2:T,labelX:C,labelY:S,glWidth:c,glColor:f,rotation:-1*k,label:t,textBaseline:M,textAlign:P})}}}),e.each(A,function(t){if(u.display&&(o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.beginPath(),u.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke()),h.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=y,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,r=0;n<i.length;++n)o.fillText(""+i[n],0,r),r+=1.5*m;else o.fillText(i,0,0);o.restore()}}),c.display){var I,E,F=0;if(p)I=n.left+(n.right-n.left)/2,E="bottom"===r.position?n.bottom-w/2:n.top+w/2;else{var N="left"===r.position;I=N?n.left+w/2:n.right-w/2,E=n.top+(n.bottom-n.top)/2,F=N?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(I,E),o.rotate(F),o.textAlign="center",o.textBaseline="middle",o.fillStyle=x,o.font=S,o.fillText(c.labelString,0,0),o.restore()}if(u.drawBorder){o.lineWidth=e.getValueAtIndexOrDefault(u.lineWidth,0),o.strokeStyle=e.getValueAtIndexOrDefault(u.color,0);var B=n.left,V=n.right,W=n.top,z=n.bottom,H=e.aliasPixel(o.lineWidth);p?(W=z="top"===r.position?n.bottom:n.top,W+=H,z+=H):(B=V="left"===r.position?n.right:n.left,B+=H,V+=H),o.beginPath(),o.moveTo(B,W),o.lineTo(V,z),o.stroke()}}}})}},{}],32:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,i,n){this.constructors[t]=i,this.defaults[t]=e.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?e.scaleMerge(t.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(t,i){var n=this.defaults;n.hasOwnProperty(t)&&(n[t]=e.extend(n[t],i))},addScalesToLayout:function(i){e.each(i.scales,function(e){t.layoutService.addBox(i,e)})}}}},{}],33:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var i=e.noop;t.Title=t.Element.extend({initialize:function(i){var n=this;e.extend(n,i),n.options=e.configMerge(t.defaults.global.title,i.options),n.legendHitBoxes=[]},beforeUpdate:function(){var i=this.chart.options;i&&i.title&&(this.options=e.configMerge(t.defaults.global.title,i.title))},update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:i,afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=e.getValueOrDefault,r=i.options,s=t.defaults.global,a=r.display,o=n(r.fontSize,s.defaultFontSize),l=i.minSize;i.isHorizontal()?(l.width=i.maxWidth,l.height=a?o+2*r.padding:0):(l.width=a?o+2*r.padding:0,l.height=i.maxHeight),i.width=l.width,i.height=l.height},afterFit:i,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var i=this,n=i.ctx,r=e.getValueOrDefault,s=i.options,a=t.defaults.global;if(s.display){var o,l,h=r(s.fontSize,a.defaultFontSize),u=r(s.fontStyle,a.defaultFontStyle),c=r(s.fontFamily,a.defaultFontFamily),d=e.fontString(h,u,c),f=0,p=i.top,g=i.left,m=i.bottom,_=i.right;n.fillStyle=r(s.fontColor,a.defaultFontColor),n.font=d,i.isHorizontal()?(o=g+(_-g)/2,l=p+(m-p)/2):(o="left"===s.position?g+h/2:_-h/2,l=p+(m-p)/2,f=Math.PI*("left"===s.position?-.5:.5)),n.save(),n.translate(o,l),n.rotate(f),n.textAlign="center",n.textBaseline="middle",n.fillText(s.text,0,0),n.restore()}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.title;n&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return e&&(r.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function i(t){if(!t.length)return!1;var e,i,n=[],r=[];for(e=0,i=t.length;i>e;++e){var s=t[e];if(s&&s.hasValue()){var a=s.tooltipPosition();n.push(a.x),r.push(a.y)}}var o=0,l=0;for(e=0;e<n.length;++e)n[e]&&(o+=n[e],l+=r[e]);return{x:Math.round(o/n.length),y:Math.round(l/n.length)}}function n(t){var e=t._xScale,i=t._yScale||t._scale,n=t._index,r=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(n,r):"",yLabel:i?i.getLabelForIndex(n,r):"",index:n,datasetIndex:r}}var r=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:r.noop,title:function(t,e){var i="",n=e.labels,r=n?n.length:0;if(t.length>0){var s=t[0];s.xLabel?i=s.xLabel:r>0&&s.index<r&&(i=n[s.index])}return i},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex),n=i.data[t.index],r=n._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},afterLabel:r.noop,afterBody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop}},t.Tooltip=t.Element.extend({initialize:function(){var e=this,i=t.defaults.global,n=e._options,s=r.getValueOrDefault;r.extend(e,{_model:{xPadding:n.xPadding,yPadding:n.yPadding,xAlign:n.xAlign,yAlign:n.yAlign,bodyFontColor:n.bodyFontColor,_bodyFontFamily:s(n.bodyFontFamily,i.defaultFontFamily),_bodyFontStyle:s(n.bodyFontStyle,i.defaultFontStyle),_bodyAlign:n.bodyAlign,bodyFontSize:s(n.bodyFontSize,i.defaultFontSize),bodySpacing:n.bodySpacing,titleFontColor:n.titleFontColor,_titleFontFamily:s(n.titleFontFamily,i.defaultFontFamily),_titleFontStyle:s(n.titleFontStyle,i.defaultFontStyle),titleFontSize:s(n.titleFontSize,i.defaultFontSize),_titleAlign:n.titleAlign,titleSpacing:n.titleSpacing,titleMarginBottom:n.titleMarginBottom,footerFontColor:n.footerFontColor,_footerFontFamily:s(n.footerFontFamily,i.defaultFontFamily),_footerFontStyle:s(n.footerFontStyle,i.defaultFontStyle),footerFontSize:s(n.footerFontSize,i.defaultFontSize),_footerAlign:n.footerAlign,footerSpacing:n.footerSpacing,footerMarginTop:n.footerMarginTop,caretSize:n.caretSize,cornerRadius:n.cornerRadius,backgroundColor:n.backgroundColor,opacity:0,legendColorBackground:n.multiKeyBackground}})},getTitle:function(){var t=this,i=t._options,n=i.callbacks,r=n.beforeTitle.apply(t,arguments),s=n.title.apply(t,arguments),a=n.afterTitle.apply(t,arguments),o=[];return o=e(o,r),o=e(o,s),o=e(o,a)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var n=this,s=n._options.callbacks,a=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};e(r.before,s.beforeLabel.call(n,t,i)),e(r.lines,s.label.call(n,t,i)),e(r.after,s.afterLabel.call(n,t,i)),a.push(r)}),a},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,i=t._options.callbacks,n=i.beforeFooter.apply(t,arguments),r=i.footer.apply(t,arguments),s=i.afterFooter.apply(t,arguments),a=[];return a=e(a,n),a=e(a,r),a=e(a,s)},update:function(t){var e,s,a=this,o=a._options,l=a._model,h=a._active,u=a._data,c=a._chartInstance;if(h.length){l.opacity=1;var d=[],f=i(h),p=[];for(e=0,s=h.length;s>e;++e)p.push(n(h[e]));o.itemSort&&(p=p.sort(o.itemSort)),h.length>1&&r.each(p,function(t){d.push(o.callbacks.labelColor.call(a,t,c))}),r.extend(l,{title:a.getTitle(p,u),beforeBody:a.getBeforeBody(p,u),body:a.getBody(p,u),afterBody:a.getAfterBody(p,u),footer:a.getFooter(p,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:r.getValueOrDefault(f.padding,2),labelColors:d});var g=a.getTooltipSize(l);a.determineAlignment(g),r.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&o.custom&&o.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,s=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,o=t.footer.length,l=t.titleFontSize,h=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=s*h,i.height+=s?(s-1)*t.bodySpacing:0,i.height+=o?t.footerMarginTop:0,i.height+=o*u,i.height+=o?(o-1)*t.footerSpacing:0;var c=0,d=function(t){i.width=Math.max(i.width,e.measureText(t).width+c)};return e.font=r.fontString(l,t._titleFontStyle,t._titleFontFamily),r.each(t.title,d),e.font=r.fontString(h,t._bodyFontStyle,t._bodyFontFamily),r.each(t.beforeBody.concat(t.afterBody),d),c=n.length>1?h+2:0,r.each(n,function(t){r.each(t.before,d),r.each(t.lines,d),r.each(t.after,d)}),c=0,e.font=r.fontString(u,t._footerFontStyle,t._footerFontFamily),r.each(t.footer,d),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,r=e._chartInstance.chartArea;i.y<t.height?i.yAlign="top":i.y>n.height-t.height&&(i.yAlign="bottom");var s,a,o,l,h,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2;"center"===i.yAlign?(s=function(t){return u>=t},a=function(t){return t>u}):(s=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),o=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},h=function(t){return c>=t?"top":"bottom"},s(i.x)?(i.xAlign="left",o(i.x)&&(i.xAlign="center",i.yAlign=h(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=h(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,r=t.caretPadding,s=t.cornerRadius,a=t.xAlign,o=t.yAlign,l=n+r,h=s+r;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===o?i.y+=l:"bottom"===o?i.y-=e.height+l:i.y-=e.height/2,"center"===o?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=h:"right"===a&&(i.x+=h),i},drawCaret:function(t,e,i){var n,s,a,o,l,h,u=this._view,c=this._chart.ctx,d=u.caretSize,f=u.cornerRadius,p=u.xAlign,g=u.yAlign,m=t.x,_=t.y,v=e.width,y=e.height;"center"===g?("left"===p?(n=m,s=n-d,a=n):(n=m+v,s=n+d,a=n),l=_+y/2,o=l-d,h=l+d):("left"===p?(n=m+f,s=n+d,a=s+d):"right"===p?(n=m+v-f,s=n-d,a=s-d):(s=m+v/2,n=s-d,a=s+d),"top"===g?(o=_,l=o-d,h=o):(o=_+y,l=o+d,h=o));var b=r.color(u.backgroundColor);c.fillStyle=b.alpha(i*b.alpha()).rgbString(),
  c.beginPath(),c.moveTo(n,o),c.lineTo(s,l),c.lineTo(a,h),c.closePath(),c.fill()},drawTitle:function(t,e,i,n){var s=e.title;if(s.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,o=e.titleSpacing,l=r.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=r.fontString(a,e._titleFontStyle,e._titleFontFamily);var h,u;for(h=0,u=s.length;u>h;++h)i.fillText(s[h],t.x,t.y),t.y+=a+o,h+1===s.length&&(t.y+=e.titleMarginBottom-o)}},drawBody:function(t,e,i,n){var s=e.bodyFontSize,a=e.bodySpacing,o=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=r.color(e.bodyFontColor),h=l.alpha(n*l.alpha()).rgbString();i.fillStyle=h,i.font=r.fontString(s,e._bodyFontStyle,e._bodyFontFamily);var u=0,c=function(e){i.fillText(e,t.x+u,t.y),t.y+=s+a};r.each(e.beforeBody,c);var d=o.length>1;u=d?s+2:0,r.each(o,function(a,o){r.each(a.before,c),r.each(a.lines,function(a){d&&(i.fillStyle=r.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,s,s),i.strokeStyle=r.color(e.labelColors[o].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,s,s),i.fillStyle=r.color(e.labelColors[o].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,s-2,s-2),i.fillStyle=h),c(a)}),r.each(a.after,c)}),u=0,r.each(e.afterBody,c),t.y-=a},drawFooter:function(t,e,i,n){var s=e.footer;if(s.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=r.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=r.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),r.each(s,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},s=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=r.color(e.backgroundColor);t.fillStyle=a.alpha(s*a.alpha()).rgbString(),r.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,s),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,s),this.drawBody(n,e,t,s),this.drawFooter(n,e,t,s)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,i){var n=this._view;if(n){for(var r=e.getAngleFromPoint(n,{x:t,y:i}),s=r.angle,a=r.distance,o=n.startAngle,l=n.endAngle;o>l;)l+=2*Math.PI;for(;s>l;)s-=2*Math.PI;for(;o>s;)s+=2*Math.PI;var h=s>=o&&l>=s,u=a>=n.innerRadius&&a<=n.outerRadius;return h&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(e._view.x,t._view.y),l.lineTo(e._view.x,e._view.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,r=n._view,s=r.spanGaps,a=r.scaleZero,o=n._loop,l=n._chart.ctx;l.save();var h=n._children.slice(),u=-1;o&&h.length&&h.push(h[0]);var c,d,f,p;if(h.length&&r.fill){for(l.beginPath(),c=0;c<h.length;++c)d=h[c],f=e.previousItem(h,c),p=d._view,0===c?(o?l.moveTo(a.x,a.y):l.moveTo(p.x,a),p.skip||(u=c,l.lineTo(p.x,p.y))):(f=-1===u?f:h[u],p.skip?s||u!==c-1||(o?l.lineTo(a.x,a.y):l.lineTo(f._view.x,a)):(u!==c-1?s&&-1!==u?t(f,d):o?l.lineTo(p.x,p.y):(l.lineTo(p.x,a),l.lineTo(p.x,p.y)):t(f,d),u=c));o||l.lineTo(h[u]._view.x,a),l.fillStyle=r.backgroundColor||i.defaultColor,l.closePath(),l.fill()}var g=i.elements.line;for(l.lineCap=r.borderCapStyle||g.borderCapStyle,l.setLineDash&&l.setLineDash(r.borderDash||g.borderDash),l.lineDashOffset=r.borderDashOffset||g.borderDashOffset,l.lineJoin=r.borderJoinStyle||g.borderJoinStyle,l.lineWidth=r.borderWidth||g.borderWidth,l.strokeStyle=r.borderColor||i.defaultColor,l.beginPath(),u=-1,c=0;c<h.length;++c)d=h[c],f=e.previousItem(h,c),p=d._view,0===c?p.skip||(l.moveTo(p.x,p.y),u=c):(f=-1===u?f:h[u],p.skip||(u!==c-1&&!s||-1===u?l.moveTo(p.x,p.y):t(f,d),u=c));l.stroke(),l.restore()}})}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:n,borderWidth:1,borderColor:n,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(){var r=this._view,s=this._chart.ctx,a=r.pointStyle,o=r.radius,l=r.x,h=r.y;r.skip||(s.strokeStyle=r.borderColor||n,s.lineWidth=e.getValueOrDefault(r.borderWidth,i.elements.point.borderWidth),s.fillStyle=r.backgroundColor||n,t.canvasHelpers.drawPoint(s,a,o,l,h))}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){var e=t.defaults.global;e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return l[(u+t)%4]}var e=this._chart.ctx,i=this._view,n=i.width/2,r=i.x-n,s=i.x+n,a=i.base-(i.base-i.y),o=i.borderWidth/2;i.borderWidth&&(r+=o,s-=o,a+=o),e.beginPath(),e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth;var l=[[r,i.base],[r,a],[s,a],[s,i.base]],h=["bottom","left","top","right"],u=h.indexOf(i.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y<i.base?t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t){return this.ticks[t]},getPixelForValue:function(t,e,i,n){var r=this,s=Math.max(r.maxIndex+1-r.minIndex-(r.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t){var a=r.getLabels(),o=a.indexOf(t);e=-1!==o?o:e}if(r.isHorizontal()){var l=r.width-(r.paddingLeft+r.paddingRight),h=l/s,u=h*(e-r.minIndex)+r.paddingLeft;return r.options.gridLines.offsetGridLines&&n&&(u+=h/2),r.left+Math.round(u)}var c=r.height-(r.paddingTop+r.paddingBottom),d=c/s,f=d*(e-r.minIndex)+r.paddingTop;return r.options.gridLines.offsetGridLines&&n&&(f+=d/2),r.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=i.isHorizontal(),s=r?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),a=s/n;return t-=r?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=a/2),t-=r?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var s=e.log10(Math.abs(r)),a="";if(0!==t){var o=-1*Math.floor(s);o=Math.max(Math.min(o,20),0),a=t.toFixed(o)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return o?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,r=i.chart,s=r.data,a=s.datasets,o=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={},h=!1,u=!1;e.each(a,function(s,a){var o=r.getDatasetMeta(a);void 0===l[o.type]&&(l[o.type]={positiveValues:[],negativeValues:[]});var c=l[o.type].positiveValues,d=l[o.type].negativeValues;r.isDatasetVisible(a)&&t(o)&&e.each(s.data,function(t,e){var r=+i.getRightValue(t);isNaN(r)||o.data[e].hidden||(c[e]=c[e]||0,d[e]=d[e]||0,n.relativePoints?c[e]=100:0>r?(u=!0,d[e]+=r):(h=!0,c[e]+=r))})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=e.min(n),s=e.max(n);i.min=null===i.min?r:Math.min(i.min,r),i.max=null===i.max?s:Math.max(i.max,s)})}else e.each(a,function(n,s){var a=r.getDatasetMeta(s);r.isDatasetVisible(s)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:n<i.min&&(i.min=n),null===i.max?i.max=n:n>i.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,r=n.options.ticks;if(n.isHorizontal())i=Math.min(r.maxTicksLimit?r.maxTicksLimit:11,Math.ceil(n.width/50));else{var s=e.getValueOrDefault(r.fontSize,t.defaults.global.defaultFontSize);i=Math.min(r.maxTicksLimit?r.maxTicksLimit:11,Math.ceil(n.height/(2*s)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,r=n.paddingLeft,s=n.paddingBottom,a=n.start,o=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(r+n.paddingRight),e=n.left+i/l*(o-a),Math.round(e+r)):(i=n.height-(n.paddingTop+s),e=n.bottom-s-i/l*(o-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,r=e.paddingBottom,s=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+r),a=(i?t-e.left-n:e.bottom-r-t)/s;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var r=e.sign(t.min),s=e.sign(t.max);0>r&&0>s?t.max=0:r>0&&s>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],r=i.ticks,s=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var o,l=r.fixedStepSize&&r.fixedStepSize>0||r.stepSize&&r.stepSize>0;if(l)o=s(r.fixedStepSize,r.stepSize);else{var h=e.niceNum(t.max-t.min,!1);o=e.niceNum(h/(a-1),!0)}var u=Math.floor(t.min/o)*o,c=Math.ceil(t.max/o)*o,d=(c-u)/o;d=e.almostEquals(d,Math.round(d),o/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==r.min?r.min:u);for(var f=1;d>f;++f)n.push(u+f*o);n.push(void 0!==r.max?r.max:c),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),r.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var r=t/Math.pow(10,Math.floor(e.log10(t)));return 1===r||2===r||5===r||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return h?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,r=n.ticks,s=i.chart,a=s.data,o=a.datasets,l=e.getValueOrDefault,h=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var u={};e.each(o,function(r,a){var o=s.getDatasetMeta(a);s.isDatasetVisible(a)&&t(o)&&(void 0===u[o.type]&&(u[o.type]=[]),e.each(r.data,function(t,e){var r=u[o.type],s=+i.getRightValue(t);isNaN(s)||o.data[e].hidden||(r[e]=r[e]||0,n.relativePoints?r[e]=100:r[e]+=s)}))}),e.each(u,function(t){var n=e.min(t),r=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(o,function(n,r){var a=s.getDatasetMeta(r);s.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:n<i.min&&(i.min=n),null===i.max?i.max=n:n>i.max&&(i.max=n))})});i.min=l(r.min,i.min),i.max=l(r.max,i.max),i.min===i.max&&(0!==i.min&&null!==i.min?(i.min=Math.pow(10,Math.floor(e.log10(i.min))-1),i.max=Math.pow(10,Math.floor(e.log10(i.max))+1)):(i.min=1,i.max=10))},buildTicks:function(){for(var t=this,i=t.options,n=i.ticks,r=e.getValueOrDefault,s=t.ticks=[],a=r(n.min,Math.pow(10,Math.floor(e.log10(t.min))));a<t.max;){s.push(a);var o=Math.floor(e.log10(a)),l=Math.floor(a/Math.pow(10,o))+1;10===l&&(l=1,++o),a=l*Math.pow(10,o)}var h=r(n.max,a);s.push(h),t.isHorizontal()||s.reverse(),t.max=e.max(s),t.min=e.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var i,n,r=this,s=r.start,a=+r.getRightValue(t),o=e.log10(r.end)-e.log10(s),l=r.paddingTop,h=r.paddingBottom,u=r.paddingLeft;return r.isHorizontal()?0===a?n=r.left+u:(i=r.width-(u+r.paddingRight),n=r.left+i/o*(e.log10(a)-e.log10(s)),n+=u):0===a?n=r.top+l:(i=r.height-(l+h),n=r.bottom-h-i/o*(e.log10(a)-e.log10(s))),n},getValueForPixel:function(t){var i,n,r=this,s=e.log10(r.end)-e.log10(r.start);return r.isHorizontal()?(n=r.width-(r.paddingLeft+r.paddingRight),i=r.start*Math.pow(10,(t-r.left-r.paddingLeft)*s/n)):(n=r.height-(r.paddingTop+r.paddingBottom),i=Math.pow(10,(r.bottom-r.paddingBottom-t)*s/n)/r.start),i}});t.scaleService.registerScaleType("logarithmic",n,i)}},{}],43:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(t){return t}}},r=t.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length},setDimensions:function(){var t=this,n=t.options,r=n.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var s=e.min([t.height,t.width]),a=e.getValueOrDefault(r.fontSize,i.defaultFontSize);t.drawingArea=n.display?s/2-(a/2+r.backdropPaddingY):s/2},determineDataLimits:function(){var t=this,i=t.chart;t.min=null,t.max=null,e.each(i.data.datasets,function(n,r){if(i.isDatasetVisible(r)){var s=i.getDatasetMeta(r);e.each(n.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||s.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,r,s,a,o,l,h,u,c,d,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),_=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,_),y=e.min([this.height/2-g-5,this.width/2]),b=this.width,x=0;for(this.ctx.font=v,n=0;n<this.getValueCount();n++){t=this.getPointPosition(n,y),r=this.ctx.measureText(this.pointLabels[n]?this.pointLabels[n]:"").width+5;var w=this.getIndexAngle(n)+Math.PI/2,T=360*w/(2*Math.PI)%360;0===T||180===T?(s=r/2,t.x+s>b&&(b=t.x+s,a=n),t.x-s<x&&(x=t.x-s,l=n)):180>T?t.x+r>b&&(b=t.x+r,a=n):t.x-r<x&&(x=t.x-r,l=n)}u=x,c=Math.ceil(b-this.width),o=this.getIndexAngle(a),h=this.getIndexAngle(l),d=c/Math.sin(o+Math.PI/2),f=u/Math.sin(h+Math.PI/2),d=e.isNumber(d)?d:0,f=e.isNumber(f)?f:0,this.drawingArea=Math.round(y-(f+d)/2),this.setCenterPoint(f,d)},setCenterPoint:function(t,e){var i=this,n=i.width-e-i.drawingArea,r=t+i.drawingArea;i.xCenter=Math.round((r+n)/2+i.left),i.yCenter=Math.round(i.height/2+i.top)},getIndexAngle:function(t){var e=2*Math.PI/this.getValueCount(),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,n=i*Math.PI*2/360;return t*e-Math.PI/2+n},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this,n=i.getIndexAngle(t);return{x:Math.round(Math.cos(n)*e)+i.xCenter,y:Math.round(Math.sin(n)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,r=n.gridLines,s=n.ticks,a=n.angleLines,o=n.pointLabels,l=e.getValueOrDefault;if(n.display){var h=t.ctx,u=l(s.fontSize,i.defaultFontSize),c=l(s.fontStyle,i.defaultFontStyle),d=l(s.fontFamily,i.defaultFontFamily),f=e.fontString(u,c,d);if(e.each(t.ticks,function(a,o){if(o>0||n.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]),d=t.yCenter-c;if(r.display&&0!==o)if(h.strokeStyle=e.getValueAtIndexOrDefault(r.color,o-1),h.lineWidth=e.getValueAtIndexOrDefault(r.lineWidth,o-1),n.lineArc)h.beginPath(),h.arc(t.xCenter,t.yCenter,c,0,2*Math.PI),h.closePath(),h.stroke();else{h.beginPath();for(var p=0;p<t.getValueCount();p++){var g=t.getPointPosition(p,c);0===p?h.moveTo(g.x,g.y):h.lineTo(g.x,g.y)}h.closePath(),h.stroke()}if(s.display){var m=l(s.fontColor,i.defaultFontColor);if(h.font=f,s.showLabelBackdrop){var _=h.measureText(a).width;h.fillStyle=s.backdropColor,h.fillRect(t.xCenter-_/2-s.backdropPaddingX,d-u/2-s.backdropPaddingY,_+2*s.backdropPaddingX,u+2*s.backdropPaddingY)}h.textAlign="center",h.textBaseline="middle",h.fillStyle=m,h.fillText(a,t.xCenter,d)}}}),!n.lineArc){h.lineWidth=a.lineWidth,h.strokeStyle=a.color;for(var p=t.getDistanceFromCenterForValue(n.reverse?t.min:t.max),g=l(o.fontSize,i.defaultFontSize),m=l(o.fontStyle,i.defaultFontStyle),_=l(o.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,_),y=t.getValueCount()-1;y>=0;y--){if(a.display){var b=t.getPointPosition(y,p);h.beginPath(),h.moveTo(t.xCenter,t.yCenter),h.lineTo(b.x,b.y),h.stroke(),h.closePath()}var x=t.getPointPosition(y,p+5),w=l(o.fontColor,i.defaultFontColor);h.font=v,h.fillStyle=w;var T=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,S=360*C/(2*Math.PI)%360;0===S||180===S?h.textAlign="center":180>S?h.textAlign="left":h.textAlign="right",90===S||270===S?h.textBaseline="middle":S>270||90>S?h.textBaseline="bottom":h.textBaseline="top",h.fillText(T[y]?T[y]:"",x.x,x.y)}}}}});t.scaleService.registerScaleType("radialLinear",r,n)}},{}],44:[function(t,e,i){"use strict";var n=t(6);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},r={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},s=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(r,s){var a=[],o=t.chart.isDatasetVisible(s);"object"==typeof r.data[0]&&null!==r.data[0]?e.each(r.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),o&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildTicks:function(){var n=this;n.ctx.save();var r=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),s=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),o=e.fontString(r,s,a);if(n.ctx.font=o,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),h=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(h).width,c=Math.cos(e.toRadians(n.options.ticks.maxRotation)),d=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*c+r*d;var f=l/u;n.tickUnit="millisecond",n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var p=0,g=i.units[p];p<i.units.length;){if(n.unitScale=1,e.isArray(g.steps)&&Math.ceil(n.scaleSizeInUnits/f)<e.max(g.steps)){for(var m=0;m<g.steps.length;++m)if(g.steps[m]>=Math.ceil(n.scaleSizeInUnits/f)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/f)<g.maxStep){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,Math.ceil(n.scaleSizeInUnits/f));break}++p,g=i.units[p],n.tickUnit=g.name;var _=n.firstTick.diff(n.getMomentStartOf(n.firstTick),n.tickUnit,!0),v=n.getMomentStartOf(n.lastTick.clone().add(1,n.tickUnit)).diff(n.lastTick,n.tickUnit,!0);n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)+_+v,n.displayFormat=n.options.time.displayFormats[g.name]}}var y;if(n.options.time.min?y=n.getMomentStartOf(n.firstTick):(n.firstTick=n.getMomentStartOf(n.firstTick),y=n.firstTick),!n.options.time.max){var b=n.getMomentStartOf(n.lastTick),x=b.diff(n.lastTick,n.tickUnit,!0);0>x?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):x>=0&&(n.lastTick=b),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.smallestLabelSeparation=n.width,e.each(n.chart.data.datasets,function(t,e){for(var i=1;i<n.labelMoments[e].length;i++)n.smallestLabelSeparation=Math.min(n.smallestLabelSeparation,n.labelMoments[e][i].diff(n.labelMoments[e][i-1],n.tickUnit,!0))},n),n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var T=y.clone().add(w,n.tickUnit);if(n.options.time.max&&T.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale===0&&n.ticks.push(T)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore()},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t<i.chart.data.labels.length?i.chart.data.labels[t]:"";return"object"==typeof i.chart.data.datasets[e].data[0]&&(n=i.getRightValue(i.chart.data.datasets[e].data[t])),i.options.time.tooltipFormat&&(n=i.parseTime(n).format(i.options.time.tooltipFormat)),n},tickFormatFunction:function(t,i,n){var r=t.format(this.displayFormat),s=this.options.ticks,a=e.getValueOrDefault(s.callback,s.userCallback);return a?a(r,i,n):r},convertTicksToLabels:function(){var t=this;t.tickMoments=t.ticks,t.ticks=t.ticks.map(t.tickFormatFunction,t)},getPixelForValue:function(t,e,i){var r=this;t&&t.isValid||(t=n(r.getRightValue(t)));var s=t&&t.isValid&&t.isValid()?t:r.getLabelMoment(i,e);if(s){var a=s.diff(r.firstTick,r.tickUnit,!0),o=0!==a?a/r.scaleSizeInUnits:a;if(r.isHorizontal()){var l=r.width-(r.paddingLeft+r.paddingRight),h=l*o+r.paddingLeft;return r.left+Math.round(h)}var u=r.height-(r.paddingTop+r.paddingBottom),c=u*o+r.paddingTop;return r.top+Math.round(c)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),r=(t-(e.isHorizontal()?e.left+e.paddingLeft:e.top+e.paddingTop))/i;return r*=e.scaleSizeInUnits,e.firstTick.clone().add(n.duration(r,e.tickUnit).asSeconds(),"seconds")},parseTime:function(t){var e=this;return"string"==typeof e.options.time.parser?n(t,e.options.time.parser):"function"==typeof e.options.time.parser?e.options.time.parser(t):"function"==typeof t.getMonth||"number"==typeof t?n(t):t.isValid&&t.isValid()?t:"string"!=typeof e.options.time.format&&e.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),e.options.time.format(t)):n(t,e.options.time.format)}});t.scaleService.registerScaleType("time",s,r)}},{6:6}]},{},[7])(7)}),/*!
   * Chart.js
   * http://chartjs.org/
   * Version: 2.2.1
   *
   * Copyright 2016 Nick Downie
   * Released under the MIT license
   * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
   */
  !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Chart=t()}}(function(){return function t(e,i,n){function r(a,o){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!o&&l)return l(a,!0);if(s)return s(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return r(i?i:t)},u,u.exports,t,e,i,n)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){},{}],2:[function(t,e,i){function n(t){if(t){var e=/^#([a-fA-F0-9]{3})$/,i=/^#([a-fA-F0-9]{6})$/,n=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,s=/(\w+)/,a=[0,0,0],o=1,l=t.match(e);if(l){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l[h]+l[h],16)}else if(l=t.match(i)){l=l[1];for(var h=0;h<a.length;h++)a[h]=parseInt(l.slice(2*h,2*h+2),16)}else if(l=t.match(n)){for(var h=0;h<a.length;h++)a[h]=parseInt(l[h+1]);o=parseFloat(l[4])}else if(l=t.match(r)){for(var h=0;h<a.length;h++)a[h]=Math.round(2.55*parseFloat(l[h+1]));o=parseFloat(l[4])}else if(l=t.match(s)){if("transparent"==l[1])return[0,0,0,0];if(a=b[l[1]],!a)return}for(var h=0;h<a.length;h++)a[h]=v(a[h],0,255);return o=o||0==o?v(o,0,1):1,a[3]=o,a}}function r(t){if(t){var e=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=v(parseInt(i[1]),0,360),s=v(parseFloat(i[2]),0,100),a=v(parseFloat(i[3]),0,100),o=v(isNaN(n)?1:n,0,1);return[r,s,a,o]}}}function s(t){if(t){var e=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,i=t.match(e);if(i){var n=parseFloat(i[4]),r=v(parseInt(i[1]),0,360),s=v(parseFloat(i[2]),0,100),a=v(parseFloat(i[3]),0,100),o=v(isNaN(n)?1:n,0,1);return[r,s,a,o]}}}function a(t){var e=n(t);return e&&e.slice(0,3)}function o(t){var e=r(t);return e&&e.slice(0,3)}function l(t){var e=n(t);return e?e[3]:(e=r(t))?e[3]:(e=s(t))?e[3]:void 0}function h(t){return"#"+y(t[0])+y(t[1])+y(t[2])}function u(t,e){return 1>e||t[3]&&t[3]<1?c(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}function c(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function d(t,e){if(1>e||t[3]&&t[3]<1)return f(t,e);var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgb("+i+"%, "+n+"%, "+r+"%)"}function f(t,e){var i=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return"rgba("+i+"%, "+n+"%, "+r+"%, "+(e||t[3]||1)+")"}function p(t,e){return 1>e||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"}function _(t){return x[t.slice(0,3)]}function v(t,e,i){return Math.min(Math.max(e,t),i)}function y(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var b=t(6);e.exports={getRgba:n,getHsla:r,getRgb:a,getHsl:o,getHwb:s,getAlpha:l,hexString:h,rgbString:u,rgbaString:c,percentString:d,percentaString:f,hslString:p,hslaString:g,hwbString:m,keyword:_};var x={};for(var w in b)x[b[w]]=w},{6:6}],3:[function(t,e,i){var n=t(5),r=t(2),s=function(t){if(t instanceof s)return t;if(!(this instanceof s))return new s(t);this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var e;if("string"==typeof t)if(e=r.getRgba(t))this.setValues("rgb",e);else if(e=r.getHsla(t))this.setValues("hsl",e);else{if(!(e=r.getHwb(t)))throw new Error('Unable to parse color from string "'+t+'"');this.setValues("hwb",e)}else if("object"==typeof t)if(e=t,void 0!==e.r||void 0!==e.red)this.setValues("rgb",e);else if(void 0!==e.l||void 0!==e.lightness)this.setValues("hsl",e);else if(void 0!==e.v||void 0!==e.value)this.setValues("hsv",e);else if(void 0!==e.w||void 0!==e.whiteness)this.setValues("hwb",e);else{if(void 0===e.c&&void 0===e.cyan)throw new Error("Unable to parse color from object "+JSON.stringify(t));this.setValues("cmyk",e)}};s.prototype={rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t%=360,t=0>t?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=.03928>=n?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb,e=(299*t[0]+587*t[1]+114*t[2])/1e3;return 128>e},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;3>e;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=0>i?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,n=t,r=void 0===e?.5:e,s=2*r-1,a=i.alpha()-n.alpha(),o=((s*a===-1?s:(s+a)/(1+s*a))+1)/2,l=1-o;return this.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue()).alpha(i.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new s,n=this.values,r=i.values;for(var a in n)n.hasOwnProperty(a)&&(t=n[a],e={}.toString.call(t),"[object Array]"===e?r[a]=t.slice(0):"[object Number]"===e?r[a]=t:console.error("unexpected color value:",t));return i}},s.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},s.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},s.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},s.prototype.setValues=function(t,e){var i,r=this.values,s=this.spaces,a=this.maxes,o=1;if("alpha"===t)o=e;else if(e.length)r[t]=e.slice(0,t.length),o=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)r[t][i]=e[t.charAt(i)];o=e.a}else if(void 0!==e[s[t][0]]){var l=s[t];for(i=0;i<t.length;i++)r[t][i]=e[l[i]];o=e.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===o?r.alpha:o)),"alpha"===t)return!1;var h;for(i=0;i<t.length;i++)h=Math.max(0,Math.min(a[t][i],r[t][i])),r[t][i]=Math.round(h);for(var u in s)u!==t&&(r[u]=n[t][u](r[t]));return!0},s.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},s.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:i===n[e]?this:(n[e]=i,this.setValues(t,n),this)},"undefined"!=typeof window&&(window.Color=s),e.exports=s},{2:2,5:5}],4:[function(t,e,i){function n(t){var e,i,n,r=t[0]/255,s=t[1]/255,a=t[2]/255,o=Math.min(r,s,a),l=Math.max(r,s,a),h=l-o;return l==o?e=0:r==l?e=(s-a)/h:s==l?e=2+(a-r)/h:a==l&&(e=4+(r-s)/h),e=Math.min(60*e,360),0>e&&(e+=360),n=(o+l)/2,i=l==o?0:.5>=n?h/(l+o):h/(2-l-o),[e,100*i,100*n]}function s(t){var e,i,n,r=t[0],s=t[1],a=t[2],o=Math.min(r,s,a),l=Math.max(r,s,a),h=l-o;return i=0==l?0:h/l*1e3/10,l==o?e=0:r==l?e=(s-a)/h:s==l?e=2+(a-r)/h:a==l&&(e=4+(r-s)/h),e=Math.min(60*e,360),0>e&&(e+=360),n=l/255*1e3/10,[e,i,n]}function a(t){var e=t[0],i=t[1],r=t[2],s=n(t)[0],a=1/255*Math.min(e,Math.min(i,r)),r=1-1/255*Math.max(e,Math.max(i,r));return[s,100*a,100*r]}function o(t){var e,i,n,r,s=t[0]/255,a=t[1]/255,o=t[2]/255;return r=Math.min(1-s,1-a,1-o),e=(1-s-r)/(1-r)||0,i=(1-a-r)/(1-r)||0,n=(1-o-r)/(1-r)||0,[100*e,100*i,100*n,100*r]}function l(t){return Z[JSON.stringify(t)]}function h(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var r=.4124*e+.3576*i+.1805*n,s=.2126*e+.7152*i+.0722*n,a=.0193*e+.1192*i+.9505*n;return[100*r,100*s,100*a]}function u(t){var e,i,n,r=h(t),s=r[0],a=r[1],o=r[2];return s/=95.047,a/=100,o/=108.883,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*a-16,i=500*(s-a),n=200*(a-o),[e,i,n]}function c(t){return B(u(t))}function d(t){var e,i,n,r,s,a=t[0]/360,o=t[1]/100,l=t[2]/100;if(0==o)return s=255*l,[s,s,s];i=.5>l?l*(1+o):l+o-l*o,e=2*l-i,r=[0,0,0];for(var h=0;3>h;h++)n=a+1/3*-(h-1),0>n&&n++,n>1&&n--,s=1>6*n?e+6*(i-e)*n:1>2*n?i:2>3*n?e+(i-e)*(2/3-n)*6:e,r[h]=255*s;return r}function f(t){var e,i,n=t[0],r=t[1]/100,s=t[2]/100;return 0===s?[0,0,0]:(s*=2,r*=1>=s?s:2-s,i=(s+r)/2,e=2*r/(s+r),[n,100*e,100*i])}function p(t){return a(d(t))}function m(t){return o(d(t))}function _(t){return l(d(t))}function v(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,s=e-Math.floor(e),a=255*n*(1-i),o=255*n*(1-i*s),l=255*n*(1-i*(1-s)),n=255*n;switch(r){case 0:return[n,l,a];case 1:return[o,n,a];case 2:return[a,n,l];case 3:return[a,o,n];case 4:return[l,a,n];case 5:return[n,a,o]}}function y(t){var e,i,n=t[0],r=t[1]/100,s=t[2]/100;return i=(2-r)*s,e=r*s,e/=1>=i?i:2-i,e=e||0,i/=2,[n,100*e,100*i]}function x(t){return a(v(t))}function w(t){return o(v(t))}function T(t){return l(v(t))}function C(t){var e,i,n,s,a=t[0]/360,o=t[1]/100,l=t[2]/100,h=o+l;switch(h>1&&(o/=h,l/=h),e=Math.floor(6*a),i=1-l,n=6*a-e,0!=(1&e)&&(n=1-n),s=o+n*(i-o),e){default:case 6:case 0:r=i,g=s,b=o;break;case 1:r=s,g=i,b=o;break;case 2:r=o,g=i,b=s;break;case 3:r=o,g=s,b=i;break;case 4:r=s,g=o,b=i;break;case 5:r=i,g=o,b=s}return[255*r,255*g,255*b]}function S(t){return n(C(t))}function k(t){return s(C(t))}function P(t){return o(C(t))}function M(t){return l(C(t))}function A(t){var e,i,n,r=t[0]/100,s=t[1]/100,a=t[2]/100,o=t[3]/100;return e=1-Math.min(1,r*(1-o)+o),i=1-Math.min(1,s*(1-o)+o),n=1-Math.min(1,a*(1-o)+o),[255*e,255*i,255*n]}function D(t){return n(A(t))}function O(t){return s(A(t))}function R(t){return a(A(t))}function L(t){return l(A(t))}function I(t){var e,i,n,r=t[0]/100,s=t[1]/100,a=t[2]/100;return e=3.2406*r+-1.5372*s+a*-.4986,i=r*-.9689+1.8758*s+.0415*a,n=.0557*r+s*-.204+1.057*a,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e=12.92*e,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n=12.92*n,e=Math.min(Math.max(0,e),1),i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),[255*e,255*i,255*n]}function E(t){var e,i,n,r=t[0],s=t[1],a=t[2];return r/=95.047,s/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,e=116*s-16,i=500*(r-s),n=200*(s-a),[e,i,n]}function F(t){return B(E(t))}function N(t){var e,i,n,r,s=t[0],a=t[1],o=t[2];return 8>=s?(i=100*s/903.3,r=7.787*(i/100)+16/116):(i=100*Math.pow((s+16)/116,3),r=Math.pow(i/100,1/3)),e=.008856>=e/95.047?e=95.047*(a/500+r-16/116)/7.787:95.047*Math.pow(a/500+r,3),n=.008859>=n/108.883?n=108.883*(r-o/200-16/116)/7.787:108.883*Math.pow(r-o/200,3),[e,i,n]}function B(t){var e,i,n,r=t[0],s=t[1],a=t[2];return e=Math.atan2(a,s),i=360*e/2/Math.PI,0>i&&(i+=360),n=Math.sqrt(s*s+a*a),[r,n,i]}function V(t){return I(N(t))}function W(t){var e,i,n,r=t[0],s=t[1],a=t[2];return n=a/360*2*Math.PI,e=s*Math.cos(n),i=s*Math.sin(n),[r,e,i]}function z(t){return N(W(t))}function H(t){return V(W(t))}function Y(t){return Q[t]}function U(t){return n(Y(t))}function j(t){return s(Y(t))}function X(t){return a(Y(t))}function G(t){return o(Y(t))}function q(t){return u(Y(t))}function $(t){return h(Y(t))}e.exports={rgb2hsl:n,rgb2hsv:s,rgb2hwb:a,rgb2cmyk:o,rgb2keyword:l,rgb2xyz:h,rgb2lab:u,rgb2lch:c,hsl2rgb:d,hsl2hsv:f,hsl2hwb:p,hsl2cmyk:m,hsl2keyword:_,hsv2rgb:v,hsv2hsl:y,hsv2hwb:x,hsv2cmyk:w,hsv2keyword:T,hwb2rgb:C,hwb2hsl:S,hwb2hsv:k,hwb2cmyk:P,hwb2keyword:M,cmyk2rgb:A,cmyk2hsl:D,cmyk2hsv:O,cmyk2hwb:R,cmyk2keyword:L,keyword2rgb:Y,keyword2hsl:U,keyword2hsv:j,keyword2hwb:X,keyword2cmyk:G,keyword2lab:q,keyword2xyz:$,xyz2rgb:I,xyz2lab:E,xyz2lch:F,lab2xyz:N,lab2rgb:V,lab2lch:B,lch2lab:W,lch2xyz:z,lch2rgb:H};var Q={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]},Z={};for(var J in Q)Z[JSON.stringify(Q[J])]=J},{}],5:[function(t,e,i){var n=t(4),r=function(){return new h};for(var s in n){r[s+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),n[t](e)}}(s);var a=/(\w+)2(\w+)/.exec(s),o=a[1],l=a[2];r[o]=r[o]||{},r[o][l]=r[s]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=n[t](e);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(s)}var h=function(){this.convs={}};h.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},h.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},h.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=r[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){h.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),e.exports=r},{4:4}],6:[function(t,e,i){e.exports={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]}},{}],7:[function(t,e,i){var n=t(27)();t(26)(n),t(22)(n),t(25)(n),t(21)(n),t(23)(n),t(24)(n),t(28)(n),t(32)(n),t(30)(n),t(31)(n),t(33)(n),t(29)(n),t(34)(n),t(35)(n),t(36)(n),t(37)(n),t(38)(n),t(41)(n),t(39)(n),t(40)(n),t(42)(n),t(43)(n),t(44)(n),t(15)(n),t(16)(n),t(17)(n),t(18)(n),t(19)(n),t(20)(n),t(8)(n),t(9)(n),t(10)(n),t(11)(n),t(12)(n),t(13)(n),t(14)(n),window.Chart=e.exports=n},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.options=t.helpers.configMerge({aspectRatio:1},i.options),i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){var e={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}};t.defaults.scatter=e,t.controllers.scatter=t.controllers.line,t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},t.controllers.bar=t.DatasetController.extend({dataElementType:t.elements.Rectangle,initialize:function(e,i){t.DatasetController.prototype.initialize.call(this,e,i),this.getMeta().bar=!0},getBarCount:function(){var t=this,i=0;return e.each(t.chart.data.datasets,function(e,n){var r=t.chart.getDatasetMeta(n);r.bar&&t.chart.isDatasetVisible(n)&&++i},t),i},update:function(t){var i=this;e.each(i.getMeta().data,function(e,n){i.updateElement(e,n,t)},i)},updateElement:function(t,i,n){var r=this,s=r.getMeta(),a=r.getScaleForId(s.xAxisID),o=r.getScaleForId(s.yAxisID),l=o.getBasePixel(),h=r.chart.options.elements.rectangle,u=t.custom||{},c=r.getDataset();e.extend(t,{_xScale:a,_yScale:o,_datasetIndex:r.index,_index:i,_model:{x:r.calculateBarX(i,r.index),y:n?l:r.calculateBarY(i,r.index),label:r.chart.data.labels[i],datasetLabel:c.label,base:n?l:r.calculateBarBase(r.index,i),width:r.calculateBarWidth(i),backgroundColor:u.backgroundColor?u.backgroundColor:e.getValueAtIndexOrDefault(c.backgroundColor,i,h.backgroundColor),borderSkipped:u.borderSkipped?u.borderSkipped:h.borderSkipped,borderColor:u.borderColor?u.borderColor:e.getValueAtIndexOrDefault(c.borderColor,i,h.borderColor),borderWidth:u.borderWidth?u.borderWidth:e.getValueAtIndexOrDefault(c.borderWidth,i,h.borderWidth)}}),t.pivot()},calculateBarBase:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=0;if(r.options.stacked){for(var a=i.chart,o=a.data.datasets,l=Number(o[t].data[e]),h=0;t>h;h++){var u=o[h],c=a.getDatasetMeta(h);if(c.bar&&c.yAxisID===r.id&&a.isDatasetVisible(h)){var d=Number(u.data[e]);s+=0>l?Math.min(d,0):Math.max(d,0)}}return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=i.getBarCount();e="category"===r.options.type?r.getPixelForTick(t+1)-r.getPixelForTick(t):r.width/r.ticks.length;var a=e*r.options.categoryPercentage,o=(e-e*r.options.categoryPercentage)/2,l=a/s;if(r.ticks.length!==i.chart.data.labels.length){var h=r.ticks.length/i.chart.data.labels.length;l*=h}var u=l*r.options.barPercentage,c=l-l*r.options.barPercentage;return{datasetCount:s,tickWidth:e,categoryWidth:a,categorySpacing:o,fullBarWidth:l,barWidth:u,barSpacing:c}},calculateBarWidth:function(t){var e=this.getScaleForId(this.getMeta().xAxisID);if(e.options.barThickness)return e.options.barThickness;var i=this.getRuler(t);return e.options.stacked?i.categoryWidth:i.barWidth},getBarIndex:function(t){var e,i,n=0;for(i=0;t>i;++i)e=this.chart.getDatasetMeta(i),e.bar&&this.chart.isDatasetVisible(i)&&++n;return n},calculateBarX:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=i.getBarIndex(e),a=i.getRuler(t),o=r.getPixelForValue(null,t,e,i.chart.isCombo);return o-=i.chart.isCombo?a.tickWidth/2:0,r.options.stacked?o+a.categoryWidth/2+a.categorySpacing:o+a.barWidth/2+a.categorySpacing+a.barWidth*s+a.barSpacing/2+a.barSpacing*s},calculateBarY:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=Number(i.getDataset().data[t]);if(r.options.stacked){for(var a=0,o=0,l=0;e>l;l++){var h=i.chart.data.datasets[l],u=i.chart.getDatasetMeta(l);if(u.bar&&u.yAxisID===r.id&&i.chart.isDatasetVisible(l)){var c=Number(h.data[t]);0>c?o+=c||0:a+=c||0}}return 0>s?r.getPixelForValue(o+s):r.getPixelForValue(a+s)}return r.getPixelForValue(s)},draw:function(t){var i=this,n=t||1;e.each(i.getMeta().data,function(t,e){var r=i.getDataset().data[e];null===r||void 0===r||isNaN(r)||t.transition(n).draw()},i)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model;s.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.hoverBackgroundColor,n,e.getHoverColor(s.backgroundColor)),s.borderColor=r.hoverBorderColor?r.hoverBorderColor:e.getValueAtIndexOrDefault(i.hoverBorderColor,n,e.getHoverColor(s.borderColor)),s.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:e.getValueAtIndexOrDefault(i.hoverBorderWidth,n,s.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model,a=this.chart.options.elements.rectangle;s.backgroundColor=r.backgroundColor?r.backgroundColor:e.getValueAtIndexOrDefault(i.backgroundColor,n,a.backgroundColor),s.borderColor=r.borderColor?r.borderColor:e.getValueAtIndexOrDefault(i.borderColor,n,a.borderColor),s.borderWidth=r.borderWidth?r.borderWidth:e.getValueAtIndexOrDefault(i.borderWidth,n,a.borderWidth)}}),t.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.xLabel}}}},t.controllers.horizontalBar=t.controllers.bar.extend({updateElement:function(t,i,n){var r=this,s=r.getMeta(),a=r.getScaleForId(s.xAxisID),o=r.getScaleForId(s.yAxisID),l=a.getBasePixel(),h=t.custom||{},u=r.getDataset(),c=r.chart.options.elements.rectangle;e.extend(t,{_xScale:a,_yScale:o,_datasetIndex:r.index,_index:i,_model:{x:n?l:r.calculateBarX(i,r.index),y:r.calculateBarY(i,r.index),label:r.chart.data.labels[i],datasetLabel:u.label,base:n?l:r.calculateBarBase(r.index,i),height:r.calculateBarHeight(i),backgroundColor:h.backgroundColor?h.backgroundColor:e.getValueAtIndexOrDefault(u.backgroundColor,i,c.backgroundColor),borderSkipped:h.borderSkipped?h.borderSkipped:c.borderSkipped,borderColor:h.borderColor?h.borderColor:e.getValueAtIndexOrDefault(u.borderColor,i,c.borderColor),borderWidth:h.borderWidth?h.borderWidth:e.getValueAtIndexOrDefault(u.borderWidth,i,c.borderWidth)},draw:function(){function t(t){return l[(u+t)%4]}var e=this._chart.ctx,i=this._view,n=i.height/2,r=i.y-n,s=i.y+n,a=i.base-(i.base-i.x),o=i.borderWidth/2;i.borderWidth&&(r+=o,s-=o,a+=o),e.beginPath(),e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth;var l=[[i.base,s],[i.base,r],[a,r],[a,s]],h=["bottom","left","top","right"],u=h.indexOf(i.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),i.borderWidth&&e.stroke()},inRange:function(t,e){var i=this._view,n=!1;return i&&(n=i.x<i.base?e>=i.y-i.height/2&&e<=i.y+i.height/2&&t>=i.x&&t<=i.base:e>=i.y-i.height/2&&e<=i.y+i.height/2&&t>=i.base&&t<=i.x),n}}),t.pivot()},calculateBarBase:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=0;
  if(r.options.stacked){for(var a=i.chart,o=a.data.datasets,l=Number(o[t].data[e]),h=0;t>h;h++){var u=o[h],c=a.getDatasetMeta(h);if(c.bar&&c.xAxisID===r.id&&a.isDatasetVisible(h)){var d=Number(u.data[e]);s+=0>l?Math.min(d,0):Math.max(d,0)}}return r.getPixelForValue(s)}return r.getBasePixel()},getRuler:function(t){var e,i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=i.getBarCount();e="category"===r.options.type?r.getPixelForTick(t+1)-r.getPixelForTick(t):r.width/r.ticks.length;var a=e*r.options.categoryPercentage,o=(e-e*r.options.categoryPercentage)/2,l=a/s;if(r.ticks.length!==i.chart.data.labels.length){var h=r.ticks.length/i.chart.data.labels.length;l*=h}var u=l*r.options.barPercentage,c=l-l*r.options.barPercentage;return{datasetCount:s,tickHeight:e,categoryHeight:a,categorySpacing:o,fullBarHeight:l,barHeight:u,barSpacing:c}},calculateBarHeight:function(t){var e=this,i=e.getScaleForId(e.getMeta().yAxisID);if(i.options.barThickness)return i.options.barThickness;var n=e.getRuler(t);return i.options.stacked?n.categoryHeight:n.barHeight},calculateBarX:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.xAxisID),s=Number(i.getDataset().data[t]);if(r.options.stacked){for(var a=0,o=0,l=0;e>l;l++){var h=i.chart.data.datasets[l],u=i.chart.getDatasetMeta(l);if(u.bar&&u.xAxisID===r.id&&i.chart.isDatasetVisible(l)){var c=Number(h.data[t]);0>c?o+=c||0:a+=c||0}}return 0>s?r.getPixelForValue(o+s):r.getPixelForValue(a+s)}return r.getPixelForValue(s)},calculateBarY:function(t,e){var i=this,n=i.getMeta(),r=i.getScaleForId(n.yAxisID),s=i.getBarIndex(e),a=i.getRuler(t),o=r.getPixelForValue(null,t,e,i.chart.isCombo);return o-=i.chart.isCombo?a.tickHeight/2:0,r.options.stacked?o+a.categoryHeight/2+a.categorySpacing:o+a.barHeight/2+a.categorySpacing+a.barHeight*s+a.barSpacing/2+a.barSpacing*s}})}},{}],16:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+n.x+", "+n.y+", "+n.r+")"}}}},t.controllers.bubble=t.DatasetController.extend({dataElementType:t.elements.Point,update:function(t){var i=this,n=i.getMeta(),r=n.data;e.each(r,function(e,n){i.updateElement(e,n,t)})},updateElement:function(i,n,r){var s=this,a=s.getMeta(),o=s.getScaleForId(a.xAxisID),l=s.getScaleForId(a.yAxisID),h=i.custom||{},u=s.getDataset(),c=u.data[n],d=s.chart.options.elements.point,f=s.index;e.extend(i,{_xScale:o,_yScale:l,_datasetIndex:f,_index:n,_model:{x:r?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof c?c:NaN,n,f,s.chart.isCombo),y:r?l.getBasePixel():l.getPixelForValue(c,n,f),radius:r?0:h.radius?h.radius:s.getRadius(c),hitRadius:h.hitRadius?h.hitRadius:e.getValueAtIndexOrDefault(u.hitRadius,n,d.hitRadius)}}),t.DatasetController.prototype.removeHoverStyle.call(s,i,d);var p=i._model;p.skip=h.skip?h.skip:isNaN(p.x)||isNaN(p.y),i.pivot()},getRadius:function(t){return t.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var n=this;t.DatasetController.prototype.setHoverStyle.call(n,i);var r=n.chart.data.datasets[i._datasetIndex],s=i._index,a=i.custom||{},o=i._model;o.radius=a.hoverRadius?a.hoverRadius:e.getValueAtIndexOrDefault(r.hoverRadius,s,n.chart.options.elements.point.hoverRadius)+n.getRadius(r.data[s])},removeHoverStyle:function(e){var i=this;t.DatasetController.prototype.removeHoverStyle.call(i,e,i.chart.options.elements.point);var n=i.chart.data.datasets[e._datasetIndex].data[e._index],r=e.custom||{},s=e._model;s.radius=r.radius?r.radius:i.getRadius(n)}})}},{}],17:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var s=0;s<n[0].data.length;++s)e.push('<li><span style="background-color:'+n[0].backgroundColor[s]+'"></span>'),r[s]&&e.push(r[s]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,r){var s=t.getDatasetMeta(0),a=i.datasets[0],o=s.data[r],l=o&&o.custom||{},h=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:h(a.backgroundColor,r,u.backgroundColor),d=l.borderColor?l.borderColor:h(a.borderColor,r,u.borderColor),f=l.borderWidth?l.borderWidth:h(a.borderWidth,r,u.borderWidth);return{text:n,fillStyle:c,strokeStyle:d,lineWidth:f,hidden:isNaN(a.data[r])||s.data[r].hidden,index:r}}):[]}},onClick:function(t,e){var i,n,r,s=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;n>i;++i)r=a.getDatasetMeta(i),r.data[s].hidden=!r.data[s].hidden;a.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+e.datasets[t.datasetIndex].data[t.index]}}}},i.pie=e.clone(i.doughnut),e.extend(i.pie,{cutoutPercentage:0}),t.controllers.doughnut=t.controllers.pie=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,getRingIndex:function(t){for(var e=0,i=0;t>i;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(t){var i=this,n=i.chart,r=n.chartArea,s=n.options,a=s.elements.arc,o=r.right-r.left-a.borderWidth,l=r.bottom-r.top-a.borderWidth,h=Math.min(o,l),u={x:0,y:0},c=i.getMeta(),d=s.cutoutPercentage,f=s.circumference;if(f<2*Math.PI){var p=s.rotation%(2*Math.PI);p+=2*Math.PI*(p>=Math.PI?-1:p<-Math.PI?1:0);var g=p+f,m={x:Math.cos(p),y:Math.sin(p)},_={x:Math.cos(g),y:Math.sin(g)},v=0>=p&&g>=0||p<=2*Math.PI&&2*Math.PI<=g,y=p<=.5*Math.PI&&.5*Math.PI<=g||p<=2.5*Math.PI&&2.5*Math.PI<=g,b=p<=-Math.PI&&-Math.PI<=g||p<=Math.PI&&Math.PI<=g,x=p<=.5*-Math.PI&&.5*-Math.PI<=g||p<=1.5*Math.PI&&1.5*Math.PI<=g,w=d/100,T={x:b?-1:Math.min(m.x*(m.x<0?1:w),_.x*(_.x<0?1:w)),y:x?-1:Math.min(m.y*(m.y<0?1:w),_.y*(_.y<0?1:w))},C={x:v?1:Math.max(m.x*(m.x>0?1:w),_.x*(_.x>0?1:w)),y:y?1:Math.max(m.y*(m.y>0?1:w),_.y*(_.y>0?1:w))},S={width:.5*(C.x-T.x),height:.5*(C.y-T.y)};h=Math.min(o/S.width,l/S.height),u={x:(C.x+T.x)*-.5,y:(C.y+T.y)*-.5}}n.borderWidth=i.getMaxBorderWidth(c.data),n.outerRadius=Math.max((h-n.borderWidth)/2,0),n.innerRadius=Math.max(d?n.outerRadius/100*d:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=u.x*n.outerRadius,n.offsetY=u.y*n.outerRadius,c.total=i.calculateTotal(),i.outerRadius=n.outerRadius-n.radiusLength*i.getRingIndex(i.index),i.innerRadius=i.outerRadius-n.radiusLength,e.each(c.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){var r=this,s=r.chart,a=s.chartArea,o=s.options,l=o.animation,h=(a.left+a.right)/2,u=(a.top+a.bottom)/2,c=o.rotation,d=o.rotation,f=r.getDataset(),p=n&&l.animateRotate?0:t.hidden?0:r.calculateCircumference(f.data[i])*(o.circumference/(2*Math.PI)),g=n&&l.animateScale?0:r.innerRadius,m=n&&l.animateScale?0:r.outerRadius,_=e.getValueAtIndexOrDefault;e.extend(t,{_datasetIndex:r.index,_index:i,_model:{x:h+s.offsetX,y:u+s.offsetY,startAngle:c,endAngle:d,circumference:p,outerRadius:m,innerRadius:g,label:_(f.label,i,s.data.labels[i])}});var v=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(0===i?v.startAngle=o.rotation:v.startAngle=r.getMeta().data[i-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,i=this.getDataset(),n=this.getMeta(),r=0;return e.each(n.data,function(e,n){t=i.data[n],isNaN(t)||e.hidden||(r+=Math.abs(t))}),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i,n=0,r=this.index,s=t.length,a=0;s>a;a++)e=t[a]._model?t[a]._model.borderWidth:0,i=t[a]._chart?t[a]._chart.config.data.datasets[r].hoverBorderWidth:0,n=e>n?e:n,n=i>n?i:n;return n}})}},{}],18:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return i.getValueOrDefault(t.showLine,e.showLines)}var i=t.helpers;t.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},t.controllers.line=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,addElementAndReset:function(i){var n=this,r=n.chart.options,s=n.getMeta();t.DatasetController.prototype.addElementAndReset.call(n,i),e(n.getDataset(),r)&&0!==s.dataset._model.tension&&n.updateBezierControlPoints()},update:function(t){var n,r,s,a=this,o=a.getMeta(),l=o.dataset,h=o.data||[],u=a.chart.options,c=u.elements.line,d=a.getScaleForId(o.yAxisID),f=a.getDataset(),p=e(f,u);for(p&&(s=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=d,l._datasetIndex=a.index,l._children=h,l._model={spanGaps:f.spanGaps?f.spanGaps:u.spanGaps,tension:s.tension?s.tension:i.getValueOrDefault(f.lineTension,c.tension),backgroundColor:s.backgroundColor?s.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:s.borderWidth?s.borderWidth:f.borderWidth||c.borderWidth,borderColor:s.borderColor?s.borderColor:f.borderColor||c.borderColor,borderCapStyle:s.borderCapStyle?s.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:s.borderDash?s.borderDash:f.borderDash||c.borderDash,borderDashOffset:s.borderDashOffset?s.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:s.borderJoinStyle?s.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:s.fill?s.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:s.steppedLine?s.steppedLine:i.getValueOrDefault(f.steppedLine,c.stepped),scaleTop:d.top,scaleBottom:d.bottom,scaleZero:d.getBasePixel()},l.pivot()),n=0,r=h.length;r>n;++n)a.updateElement(h[n],n,t);for(p&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,r=h.length;r>n;++n)h[n].pivot()},getPointBackgroundColor:function(t,e){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),s=t.custom||{};return s.backgroundColor?n=s.backgroundColor:r.pointBackgroundColor?n=i.getValueAtIndexOrDefault(r.pointBackgroundColor,e,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(t,e){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),s=t.custom||{};return s.borderColor?n=s.borderColor:r.pointBorderColor?n=i.getValueAtIndexOrDefault(r.pointBorderColor,e,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(t,e){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),s=t.custom||{};return s.borderWidth?n=s.borderWidth:r.pointBorderWidth?n=i.getValueAtIndexOrDefault(r.pointBorderWidth,e,n):r.borderWidth&&(n=r.borderWidth),n},updateElement:function(t,e,n){var r,s,a=this,o=a.getMeta(),l=t.custom||{},h=a.getDataset(),u=a.index,c=h.data[e],d=a.getScaleForId(o.yAxisID),f=a.getScaleForId(o.xAxisID),p=a.chart.options.elements.point;void 0!==h.radius&&void 0===h.pointRadius&&(h.pointRadius=h.radius),void 0!==h.hitRadius&&void 0===h.pointHitRadius&&(h.pointHitRadius=h.hitRadius),r=f.getPixelForValue("object"==typeof c?c:NaN,e,u,a.chart.isCombo),s=n?d.getBasePixel():a.calculatePointY(c,e,u),t._xScale=f,t._yScale=d,t._datasetIndex=u,t._index=e,t._model={x:r,y:s,skip:l.skip||isNaN(r)||isNaN(s),radius:l.radius||i.getValueAtIndexOrDefault(h.pointRadius,e,p.radius),pointStyle:l.pointStyle||i.getValueAtIndexOrDefault(h.pointStyle,e,p.pointStyle),backgroundColor:a.getPointBackgroundColor(t,e),borderColor:a.getPointBorderColor(t,e),borderWidth:a.getPointBorderWidth(t,e),tension:o.dataset._model?o.dataset._model.tension:0,steppedLine:!!o.dataset._model&&o.dataset._model.steppedLine,hitRadius:l.hitRadius||i.getValueAtIndexOrDefault(h.pointHitRadius,e,p.hitRadius)}},calculatePointY:function(t,e,i){var n,r,s,a=this,o=a.chart,l=a.getMeta(),h=a.getScaleForId(l.yAxisID),u=0,c=0;if(h.options.stacked){for(n=0;i>n;n++)if(r=o.data.datasets[n],s=o.getDatasetMeta(n),"line"===s.type&&s.yAxisID===h.id&&o.isDatasetVisible(n)){var d=Number(h.getRightValue(r.data[e]));0>d?c+=d||0:u+=d||0}var f=Number(h.getRightValue(t));return 0>f?h.getPixelForValue(c+f):h.getPixelForValue(u+f)}return h.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return c?Math.max(Math.min(t,i),e):t}var e,n,r,s,a,o=this,l=o.getMeta(),h=o.chart.chartArea,u=(l.data||[]).filter(function(t){return!t._model.skip}),c=o.chart.options.elements.line.capBezierPoints;for(e=0,n=u.length;n>e;++e)r=u[e],s=r._model,a=i.splineCurve(i.previousItem(u,e)._model,s,i.nextItem(u,e)._model,l.dataset._model.tension),s.controlPointPreviousX=t(a.previous.x,h.left,h.right),s.controlPointPreviousY=t(a.previous.y,h.top,h.bottom),s.controlPointNextX=t(a.next.x,h.left,h.right),s.controlPointNextY=t(a.next.y,h.top,h.bottom)},draw:function(t){var i,n,r=this,s=r.getMeta(),a=s.data||[],o=t||1;for(i=0,n=a.length;n>i;++i)a[i].transition(o);for(e(r.getDataset(),r.chart.options)&&s.dataset.transition(o).draw(),i=0,n=a.length;n>i;++i)a[i].draw()},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=t._model;s.radius=r.hoverRadius||i.getValueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),s.backgroundColor=r.hoverBackgroundColor||i.getValueAtIndexOrDefault(e.pointHoverBackgroundColor,n,i.getHoverColor(s.backgroundColor)),s.borderColor=r.hoverBorderColor||i.getValueAtIndexOrDefault(e.pointHoverBorderColor,n,i.getHoverColor(s.borderColor)),s.borderWidth=r.hoverBorderWidth||i.getValueAtIndexOrDefault(e.pointHoverBorderWidth,n,s.borderWidth)},removeHoverStyle:function(t){var e=this,n=e.chart.data.datasets[t._datasetIndex],r=t._index,s=t.custom||{},a=t._model;void 0!==n.radius&&void 0===n.pointRadius&&(n.pointRadius=n.radius),a.radius=s.radius||i.getValueAtIndexOrDefault(n.pointRadius,r,e.chart.options.elements.point.radius),a.backgroundColor=e.getPointBackgroundColor(t,r),a.borderColor=e.getPointBorderColor(t,r),a.borderWidth=e.getPointBorderWidth(t,r)}})}},{}],19:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.polarArea={scale:{type:"radialLinear",lineArc:!0,ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,r=i.labels;if(n.length)for(var s=0;s<n[0].data.length;++s)e.push('<li><span style="background-color:'+n[0].backgroundColor[s]+'">'),r[s]&&e.push(r[s]),e.push("</span></li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(t){var i=t.data;return i.labels.length&&i.datasets.length?i.labels.map(function(n,r){var s=t.getDatasetMeta(0),a=i.datasets[0],o=s.data[r],l=o.custom||{},h=e.getValueAtIndexOrDefault,u=t.options.elements.arc,c=l.backgroundColor?l.backgroundColor:h(a.backgroundColor,r,u.backgroundColor),d=l.borderColor?l.borderColor:h(a.borderColor,r,u.borderColor),f=l.borderWidth?l.borderWidth:h(a.borderWidth,r,u.borderWidth);return{text:n,fillStyle:c,strokeStyle:d,lineWidth:f,hidden:isNaN(a.data[r])||s.data[r].hidden,index:r}}):[]}},onClick:function(t,e){var i,n,r,s=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;n>i;++i)r=a.getDatasetMeta(i),r.data[s].hidden=!r.data[s].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}},t.controllers.polarArea=t.DatasetController.extend({dataElementType:t.elements.Arc,linkScales:e.noop,update:function(t){var i=this,n=i.chart,r=n.chartArea,s=i.getMeta(),a=n.options,o=a.elements.arc,l=Math.min(r.right-r.left,r.bottom-r.top);n.outerRadius=Math.max((l-o.borderWidth/2)/2,0),n.innerRadius=Math.max(a.cutoutPercentage?n.outerRadius/100*a.cutoutPercentage:1,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),i.outerRadius=n.outerRadius-n.radiusLength*i.index,i.innerRadius=i.outerRadius-n.radiusLength,s.count=i.countVisibleElements(),e.each(s.data,function(e,n){i.updateElement(e,n,t)})},updateElement:function(t,i,n){for(var r=this,s=r.chart,a=r.getDataset(),o=s.options,l=o.animation,h=s.scale,u=e.getValueAtIndexOrDefault,c=s.data.labels,d=r.calculateCircumference(a.data[i]),f=h.xCenter,p=h.yCenter,g=0,m=r.getMeta(),_=0;i>_;++_)isNaN(a.data[_])||m.data[_].hidden||++g;var v=o.startAngle,y=t.hidden?0:h.getDistanceFromCenterForValue(a.data[i]),b=v+d*g,x=b+(t.hidden?0:d),w=l.animateScale?0:h.getDistanceFromCenterForValue(a.data[i]);e.extend(t,{_datasetIndex:r.index,_index:i,_scale:h,_model:{x:f,y:p,innerRadius:0,outerRadius:n?w:y,startAngle:n&&l.animateRotate?v:b,endAngle:n&&l.animateRotate?v:x,label:u(c,i,c[i])}}),r.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},countVisibleElements:function(){var t=this.getDataset(),i=this.getMeta(),n=0;return e.each(i.data,function(e,i){isNaN(t.data[i])||e.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return e>0&&!isNaN(t)?2*Math.PI/e:0}})}},{}],20:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.radar={scale:{type:"radialLinear"},elements:{line:{tension:0}}},t.controllers.radar=t.DatasetController.extend({datasetElementType:t.elements.Line,dataElementType:t.elements.Point,linkScales:e.noop,addElementAndReset:function(e){t.DatasetController.prototype.addElementAndReset.call(this,e),this.updateBezierControlPoints()},update:function(t){var i=this,n=i.getMeta(),r=n.dataset,s=n.data,a=r.custom||{},o=i.getDataset(),l=i.chart.options.elements.line,h=i.chart.scale;void 0!==o.tension&&void 0===o.lineTension&&(o.lineTension=o.tension),e.extend(n.dataset,{_datasetIndex:i.index,_children:s,_loop:!0,_model:{tension:a.tension?a.tension:e.getValueOrDefault(o.lineTension,l.tension),backgroundColor:a.backgroundColor?a.backgroundColor:o.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:o.borderWidth||l.borderWidth,borderColor:a.borderColor?a.borderColor:o.borderColor||l.borderColor,fill:a.fill?a.fill:void 0!==o.fill?o.fill:l.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:o.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash?a.borderDash:o.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:o.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:o.borderJoinStyle||l.borderJoinStyle,scaleTop:h.top,scaleBottom:h.bottom,scaleZero:h.getBasePosition()}}),n.dataset.pivot(),e.each(s,function(e,n){i.updateElement(e,n,t)},i),i.updateBezierControlPoints()},updateElement:function(t,i,n){var r=this,s=t.custom||{},a=r.getDataset(),o=r.chart.scale,l=r.chart.options.elements.point,h=o.getPointPositionForValue(i,a.data[i]);e.extend(t,{_datasetIndex:r.index,_index:i,_scale:o,_model:{x:n?o.xCenter:h.x,y:n?o.yCenter:h.y,tension:s.tension?s.tension:e.getValueOrDefault(a.tension,r.chart.options.elements.line.tension),radius:s.radius?s.radius:e.getValueAtIndexOrDefault(a.pointRadius,i,l.radius),backgroundColor:s.backgroundColor?s.backgroundColor:e.getValueAtIndexOrDefault(a.pointBackgroundColor,i,l.backgroundColor),borderColor:s.borderColor?s.borderColor:e.getValueAtIndexOrDefault(a.pointBorderColor,i,l.borderColor),borderWidth:s.borderWidth?s.borderWidth:e.getValueAtIndexOrDefault(a.pointBorderWidth,i,l.borderWidth),pointStyle:s.pointStyle?s.pointStyle:e.getValueAtIndexOrDefault(a.pointStyle,i,l.pointStyle),hitRadius:s.hitRadius?s.hitRadius:e.getValueAtIndexOrDefault(a.hitRadius,i,l.hitRadius)}}),t._model.skip=s.skip?s.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,i=this.getMeta();e.each(i.data,function(n,r){var s=n._model,a=e.splineCurve(e.previousItem(i.data,r,!0)._model,s,e.nextItem(i.data,r,!0)._model,s.tension);s.controlPointPreviousX=Math.max(Math.min(a.previous.x,t.right),t.left),s.controlPointPreviousY=Math.max(Math.min(a.previous.y,t.bottom),t.top),s.controlPointNextX=Math.max(Math.min(a.next.x,t.right),t.left),s.controlPointNextY=Math.max(Math.min(a.next.y,t.bottom),t.top),n.pivot()})},draw:function(t){var i=this.getMeta(),n=t||1;e.each(i.data,function(t){t.transition(n)}),i.dataset.transition(n).draw(),e.each(i.data,function(t){t.draw()})},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},r=t._index,s=t._model;s.radius=n.hoverRadius?n.hoverRadius:e.getValueAtIndexOrDefault(i.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),s.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:e.getValueAtIndexOrDefault(i.pointHoverBackgroundColor,r,e.getHoverColor(s.backgroundColor)),s.borderColor=n.hoverBorderColor?n.hoverBorderColor:e.getValueAtIndexOrDefault(i.pointHoverBorderColor,r,e.getHoverColor(s.borderColor)),s.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:e.getValueAtIndexOrDefault(i.pointHoverBorderWidth,r,s.borderWidth)},removeHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},r=t._index,s=t._model,a=this.chart.options.elements.point;s.radius=n.radius?n.radius:e.getValueAtIndexOrDefault(i.radius,r,a.radius),s.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault(i.pointBackgroundColor,r,a.backgroundColor),s.borderColor=n.borderColor?n.borderColor:e.getValueAtIndexOrDefault(i.pointBorderColor,r,a.borderColor),s.borderWidth=n.borderWidth?n.borderWidth:e.getValueAtIndexOrDefault(i.pointBorderWidth,r,a.borderWidth)}})}},{}],21:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:e.noop,onComplete:e.noop},t.Animation=t.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var r=this;n||(t.animating=!0);for(var s=0;s<r.animations.length;++s)if(r.animations[s].chartInstance===t)return void(r.animations[s].animationObject=e);r.animations.push({chartInstance:t,animationObject:e}),1===r.animations.length&&r.requestAnimationFrame()},cancelAnimation:function(t){var i=e.findIndex(this.animations,function(e){return e.chartInstance===t});-1!==i&&(this.animations.splice(i,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=e.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=this,e=Date.now(),i=0;t.dropFrames>1&&(i=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1);for(var n=0;n<t.animations.length;)null===t.animations[n].animationObject.currentStep&&(t.animations[n].animationObject.currentStep=0),t.animations[n].animationObject.currentStep+=1+i,t.animations[n].animationObject.currentStep>t.animations[n].animationObject.numSteps&&(t.animations[n].animationObject.currentStep=t.animations[n].animationObject.numSteps),t.animations[n].animationObject.render(t.animations[n].chartInstance,t.animations[n].animationObject),t.animations[n].animationObject.onAnimationProgress&&t.animations[n].animationObject.onAnimationProgress.call&&t.animations[n].animationObject.onAnimationProgress.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].animationObject.currentStep===t.animations[n].animationObject.numSteps?(t.animations[n].animationObject.onAnimationComplete&&t.animations[n].animationObject.onAnimationComplete.call&&t.animations[n].animationObject.onAnimationComplete.call(t.animations[n].chartInstance,t.animations[n]),t.animations[n].chartInstance.animating=!1,t.animations.splice(n,1)):++n;var r=Date.now(),s=(r-e)/t.frameDuration;t.dropFrames+=s,t.animations.length>0&&t.requestAnimationFrame()}}}},{}],22:[function(t,e,i){"use strict";e.exports=function(t){var e=t.canvasHelpers={};e.drawPoint=function(t,e,i,n,r){var s,a,o,l,h,u;if("object"==typeof e&&(s=e.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return void t.drawImage(e,n-e.width/2,r-e.height/2);if(!(isNaN(i)||0>=i)){switch(e){default:t.beginPath(),t.arc(n,r,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),a=3*i/Math.sqrt(3),h=a*Math.sqrt(3)/2,t.moveTo(n-a/2,r+h/3),t.lineTo(n+a/2,r+h/3),t.lineTo(n,r-2*h/3),t.closePath(),t.fill();break;case"rect":u=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-u,r-u,2*u,2*u),t.strokeRect(n-u,r-u,2*u,2*u);break;case"rectRot":u=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-u,r),t.lineTo(n,r+u),t.lineTo(n+u,r),t.lineTo(n,r-u),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-o,r-l),t.lineTo(n+o,r+l),t.moveTo(n-o,r+l),t.lineTo(n+o,r-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,r+i),t.lineTo(n,r-i),t.moveTo(n-i,r),t.lineTo(n+i,r),o=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-o,r-l),t.lineTo(n+o,r+l),t.moveTo(n-o,r+l),t.lineTo(n+o,r-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,r),t.lineTo(n+i,r),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,r),t.lineTo(n+i,r),t.closePath()}t.stroke()}}}},{}],23:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.types={},t.instances={},t.controllers={},t.Controller=function(i){return this.chart=i,this.config=i.config,this.options=this.config.options=e.configMerge(t.defaults.global,t.defaults[this.config.type],this.config.options||{}),this.id=e.uid(),Object.defineProperty(this,"data",{get:function(){return this.config.data}}),t.instances[this.id]=this,this.options.responsive&&this.resize(!0),this.initialize(),this},e.extend(t.Controller.prototype,{initialize:function(){var e=this;return t.plugins.notify("beforeInit",[e]),e.bindEvents(),e.ensureScalesHaveIDs(),e.buildOrUpdateControllers(),e.buildScales(),e.updateLayout(),e.resetElements(),e.initToolTip(),e.update(),t.plugins.notify("afterInit",[e]),e},clear:function(){return e.clear(this.chart),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(i){var n=this,r=n.chart,s=r.canvas,a=e.getMaximumWidth(s),o=r.aspectRatio,l=n.options.maintainAspectRatio&&isNaN(o)===!1&&isFinite(o)&&0!==o?a/o:e.getMaximumHeight(s),h=r.width!==a||r.height!==l;if(!h)return n;s.width=r.width=a,s.height=r.height=l,e.retinaScale(r);var u={width:a,height:l};return t.plugins.notify("resize",[n,u]),n.options.onResize&&n.options.onResize(n,u),i||(n.stop(),n.update(n.options.responsiveAnimationDuration)),n},ensureScalesHaveIDs:function(){var t=this.options,i=t.scales||{},n=t.scale;e.each(i.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),e.each(i.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,n=i.options,r=i.scales={},s=[];n.scales&&(s=s.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear"}}))),n.scale&&s.push({options:n.scale,dtype:"radialLinear",isDefault:!0}),e.each(s,function(n){var s=n.options,a=e.getValueOrDefault(s.type,n.dtype),o=t.scaleService.getScaleConstructor(a);if(o){var l=new o({id:s.id,options:s,ctx:i.chart.ctx,chart:i});r[l.id]=l,n.isDefault&&(i.scale=l)}}),t.scaleService.addScalesToLayout(this)},updateLayout:function(){t.layoutService.update(this,this.chart.width,this.chart.height)},buildOrUpdateControllers:function(){var i=this,n=[],r=[];if(e.each(i.data.datasets,function(e,s){var a=i.getDatasetMeta(s);a.type||(a.type=e.type||i.config.type),n.push(a.type),a.controller?a.controller.updateIndex(s):(a.controller=new t.controllers[a.type](i,s),r.push(a.controller))},i),n.length>1)for(var s=1;s<n.length;s++)if(n[s]!==n[s-1]){i.isCombo=!0;break}return r},resetElements:function(){var t=this;e.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},update:function(i,n){var r=this;t.plugins.notify("beforeUpdate",[r]),r.tooltip._data=r.data;var s=r.buildOrUpdateControllers();e.each(r.data.datasets,function(t,e){r.getDatasetMeta(e).controller.buildOrUpdateElements()},r),t.layoutService.update(r,r.chart.width,r.chart.height),t.plugins.notify("afterScaleUpdate",[r]),e.each(s,function(t){t.reset()}),r.updateDatasets(),t.plugins.notify("afterUpdate",[r]),r.render(i,n)},updateDatasets:function(){var e,i,n=this;if(t.plugins.notify("beforeDatasetsUpdate",[n])){for(e=0,i=n.data.datasets.length;i>e;++e)n.getDatasetMeta(e).controller.update();t.plugins.notify("afterDatasetsUpdate",[n])}},render:function(i,n){var r=this;t.plugins.notify("beforeRender",[r]);var s=r.options.animation;if(s&&("undefined"!=typeof i&&0!==i||"undefined"==typeof i&&0!==s.duration)){var a=new t.Animation;a.numSteps=(i||s.duration)/16.66,a.easing=s.easing,a.render=function(t,i){var n=e.easingEffects[i.easing],r=i.currentStep/i.numSteps,s=n(r);t.draw(s,r,i.currentStep)},a.onAnimationProgress=s.onProgress,a.onAnimationComplete=s.onComplete,t.animationService.addAnimation(r,a,i,n)}else r.draw(),s&&s.onComplete&&s.onComplete.call&&s.onComplete.call(r);return r},draw:function(i){var n=this,r=i||1;n.clear(),t.plugins.notify("beforeDraw",[n,r]),e.each(n.boxes,function(t){t.draw(n.chartArea)},n),n.scale&&n.scale.draw(),t.plugins.notify("beforeDatasetsDraw",[n,r]),e.each(n.data.datasets,function(t,e){n.isDatasetVisible(e)&&n.getDatasetMeta(e).controller.draw(i)},n,!0),t.plugins.notify("afterDatasetsDraw",[n,r]),n.tooltip.transition(r).draw(),t.plugins.notify("afterDraw",[n,r])},getElementAtEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[];return e.each(i.data.datasets,function(t,s){if(i.isDatasetVisible(s)){var a=i.getDatasetMeta(s);e.each(a.data,function(t){return t.inRange(n.x,n.y)?(r.push(t),r):void 0})}}),r.slice(0,1)},getElementsAtEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[],s=function(){if(i.data.datasets)for(var t=0;t<i.data.datasets.length;t++){var e=i.getDatasetMeta(t);if(i.isDatasetVisible(t))for(var r=0;r<e.data.length;r++)if(e.data[r].inRange(n.x,n.y))return e.data[r]}}.call(i);return s?(e.each(i.data.datasets,function(t,e){if(i.isDatasetVisible(e)){var n=i.getDatasetMeta(e),a=n.data[s._index];a&&!a._view.skip&&r.push(a)}},i),r):r},getElementsAtXAxis:function(t){var i=this,n=e.getRelativePosition(t,i.chart),r=[],s=function(){if(i.data.datasets)for(var t=0;t<i.data.datasets.length;t++){var e=i.getDatasetMeta(t);if(i.isDatasetVisible(t))for(var r=0;r<e.data.length;r++)if(e.data[r].inLabelRange(n.x,n.y))return e.data[r]}}.call(i);return s?(e.each(i.data.datasets,function(t,n){if(i.isDatasetVisible(n)){var a=i.getDatasetMeta(n),o=e.findIndex(a.data,function(t){return s._model.x===t._model.x});-1===o||a.data[o]._view.skip||r.push(a.data[o])}},i),r):r},getElementsAtEventForMode:function(t,e){var i=this;switch(e){case"single":return i.getElementAtEvent(t);case"label":return i.getElementsAtEvent(t);case"dataset":return i.getDatasetAtEvent(t);case"x-axis":return i.getElementsAtXAxis(t);default:return t}},getDatasetAtEvent:function(t){var e=this.getElementAtEvent(t);return e.length>0&&(e=this.getDatasetMeta(e[0]._datasetIndex).data),e},getDatasetMeta:function(t){var e=this,i=e.data.datasets[t];i._meta||(i._meta={});var n=i._meta[e.id];return n||(n=i._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;i>e;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden;
  },generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var i=this;i.stop(),i.clear(),e.unbindEvents(i,i.events),e.removeResizeListener(i.chart.canvas.parentNode);var n=i.chart.canvas;n.width=i.chart.width,n.height=i.chart.height,void 0!==i.chart.originalDevicePixelRatio&&i.chart.ctx.scale(1/i.chart.originalDevicePixelRatio,1/i.chart.originalDevicePixelRatio),n.style.width=i.chart.originalCanvasStyleWidth,n.style.height=i.chart.originalCanvasStyleHeight,t.plugins.notify("destroy",[i]),delete t.instances[i.id]},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new t.Tooltip({_chart:e.chart,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var t=this;e.bindEvents(t,t.options.events,function(e){t.eventHandler(e)})},updateHoverStyle:function(t,e,i){var n,r,s,a=i?"setHoverStyle":"removeHoverStyle";switch(e){case"single":t=[t[0]];break;case"label":case"dataset":case"x-axis":break;default:return}for(r=0,s=t.length;s>r;++r)n=t[r],n&&this.getDatasetMeta(n._datasetIndex).controller[a](n)},eventHandler:function(t){var i=this,n=i.tooltip,r=i.options||{},s=r.hover,a=r.tooltips;return i.lastActive=i.lastActive||[],i.lastTooltipActive=i.lastTooltipActive||[],"mouseout"===t.type?(i.active=[],i.tooltipActive=[]):(i.active=i.getElementsAtEventForMode(t,s.mode),i.tooltipActive=i.getElementsAtEventForMode(t,a.mode)),s.onHover&&s.onHover.call(i,i.active),("mouseup"===t.type||"click"===t.type)&&(r.onClick&&r.onClick.call(i,t,i.active),i.legend&&i.legend.handleEvent&&i.legend.handleEvent(t)),i.lastActive.length&&i.updateHoverStyle(i.lastActive,s.mode,!1),i.active.length&&s.mode&&i.updateHoverStyle(i.active,s.mode,!0),(a.enabled||a.custom)&&(n.initialize(),n._active=i.tooltipActive,n.update(!0)),n.pivot(),i.animating||e.arrayEquals(i.active,i.lastActive)&&e.arrayEquals(i.tooltipActive,i.lastTooltipActive)||(i.stop(),(a.enabled||a.custom)&&n.update(!0),i.render(s.animationDuration,!0)),i.lastActive=i.active,i.lastTooltipActive=i.tooltipActive,i}})}},{}],24:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.DatasetController=function(t,e){this.initialize.call(this,t,e)},e.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var i=this;i.chart=t,i.index=e,i.linkScales(),i.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),i=t.getDataset();null===e.xAxisID&&(e.xAxisID=i.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=i.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,i=e.dataElementType;return i&&new i({_chart:e.chart.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,i=this,n=i.getMeta(),r=i.getDataset().data||[],s=n.data;for(t=0,e=r.length;e>t;++t)s[t]=s[t]||i.createMetaData(n,t);n.dataset=n.dataset||i.createMetaDataset()},addElementAndReset:function(t){var e=this,i=e.createMetaData(t);e.getMeta().data.splice(t,0,i),e.updateElement(i,t,!0)},buildOrUpdateElements:function(){var t=this.getMeta(),e=t.data,i=this.getDataset().data.length,n=e.length;if(n>i)e.splice(i,n-i);else if(i>n)for(var r=n;i>r;++r)this.addElementAndReset(r)},update:i,draw:function(t){var i=t||1;e.each(this.getMeta().data,function(t){t.transition(i).draw()})},removeHoverStyle:function(t,i){var n=this.chart.data.datasets[t._datasetIndex],r=t._index,s=t.custom||{},a=e.getValueAtIndexOrDefault,o=t._model;o.backgroundColor=s.backgroundColor?s.backgroundColor:a(n.backgroundColor,r,i.backgroundColor),o.borderColor=s.borderColor?s.borderColor:a(n.borderColor,r,i.borderColor),o.borderWidth=s.borderWidth?s.borderWidth:a(n.borderWidth,r,i.borderWidth)},setHoverStyle:function(t){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},s=e.getValueAtIndexOrDefault,a=e.getHoverColor,o=t._model;o.backgroundColor=r.hoverBackgroundColor?r.hoverBackgroundColor:s(i.hoverBackgroundColor,n,a(o.backgroundColor)),o.borderColor=r.hoverBorderColor?r.hoverBorderColor:s(i.hoverBorderColor,n,a(o.borderColor)),o.borderWidth=r.hoverBorderWidth?r.hoverBorderWidth:s(i.hoverBorderWidth,n,o.borderWidth)}}),t.DatasetController.extend=e.inherits}},{}],25:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.elements={},t.Element=function(t){e.extend(this,t),this.initialize.apply(this,arguments)},e.extend(t.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=e.clone(t._model)),t._start=e.clone(t._view),t},transition:function(t){var i=this;return i._view||(i._view=e.clone(i._model)),1===t?(i._view=i._model,i._start=null,i):(i._start||i.pivot(),e.each(i._model,function(n,r){if("_"===r[0]);else if(i._view.hasOwnProperty(r))if(n===i._view[r]);else if("string"==typeof n)try{var s=e.color(i._model[r]).mix(e.color(i._start[r]),t);i._view[r]=s.rgbString()}catch(a){i._view[r]=n}else if("number"==typeof n){var o=void 0!==i._start[r]&&isNaN(i._start[r])===!1?i._start[r]:0;i._view[r]=(i._model[r]-o)*t+o}else i._view[r]=n;else"number"!=typeof n||isNaN(i._view[r])?i._view[r]=n:i._view[r]=n*t},i),i)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return e.isNumber(this._model.x)&&e.isNumber(this._model.y)}}),t.Element.extend=e.inherits}},{}],26:[function(t,e,i){"use strict";var n=t(3);e.exports=function(t){function e(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!=t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function i(t){return void 0!==t&&null!==t&&"none"!==t}function r(t,n,r){var s=document.defaultView,a=t.parentNode,o=s.getComputedStyle(t)[n],l=s.getComputedStyle(a)[n],h=i(o),u=i(l),c=Number.POSITIVE_INFINITY;return h||u?Math.min(h?e(o,t,r):c,u?e(l,a,r):c):"none"}var s=t.helpers={};s.each=function(t,e,i,n){var r,a;if(s.isArray(t))if(a=t.length,n)for(r=a-1;r>=0;r--)e.call(i,t[r],r);else for(r=0;a>r;r++)e.call(i,t[r],r);else if("object"==typeof t){var o=Object.keys(t);for(a=o.length,r=0;a>r;r++)e.call(i,t[o[r]],o[r])}},s.clone=function(t){var e={};return s.each(t,function(t,i){s.isArray(t)?e[i]=t.slice(0):"object"==typeof t&&null!==t?e[i]=s.clone(t):e[i]=t}),e},s.extend=function(t){for(var e=function(e,i){t[i]=e},i=1,n=arguments.length;n>i;i++)s.each(arguments[i],e);return t},s.configMerge=function(e){var i=s.clone(e);return s.each(Array.prototype.slice.call(arguments,1),function(e){s.each(e,function(e,n){if("scales"===n)i[n]=s.scaleMerge(i.hasOwnProperty(n)?i[n]:{},e);else if("scale"===n)i[n]=s.configMerge(i.hasOwnProperty(n)?i[n]:{},t.scaleService.getScaleDefaults(e.type),e);else if(i.hasOwnProperty(n)&&s.isArray(i[n])&&s.isArray(e)){var r=i[n];s.each(e,function(t,e){e<r.length?"object"==typeof r[e]&&null!==r[e]&&"object"==typeof t&&null!==t?r[e]=s.configMerge(r[e],t):r[e]=t:r.push(t)})}else i.hasOwnProperty(n)&&"object"==typeof i[n]&&null!==i[n]&&"object"==typeof e?i[n]=s.configMerge(i[n],e):i[n]=e})}),i},s.scaleMerge=function(e,i){var n=s.clone(e);return s.each(i,function(e,i){"xAxes"===i||"yAxes"===i?n.hasOwnProperty(i)?s.each(e,function(e,r){var a=s.getValueOrDefault(e.type,"xAxes"===i?"category":"linear"),o=t.scaleService.getScaleDefaults(a);r>=n[i].length||!n[i][r].type?n[i].push(s.configMerge(o,e)):e.type&&e.type!==n[i][r].type?n[i][r]=s.configMerge(n[i][r],o,e):n[i][r]=s.configMerge(n[i][r],e)}):(n[i]=[],s.each(e,function(e){var r=s.getValueOrDefault(e.type,"xAxes"===i?"category":"linear");n[i].push(s.configMerge(t.scaleService.getScaleDefaults(r),e))})):n.hasOwnProperty(i)&&"object"==typeof n[i]&&null!==n[i]&&"object"==typeof e?n[i]=s.configMerge(n[i],e):n[i]=e}),n},s.getValueAtIndexOrDefault=function(t,e,i){return void 0===t||null===t?i:s.isArray(t)?e<t.length?t[e]:i:t},s.getValueOrDefault=function(t,e){return void 0===t?e:t},s.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;++i)if(t[i]===e)return i;return-1},s.where=function(t,e){if(s.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return s.each(t,function(t){e(t)&&i.push(t)}),i},s.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,r=t.length;r>n;++n)if(e.call(i,t[n],n,t))return n;return-1},s.findNextWhere=function(t,e,i){(void 0===i||null===i)&&(i=-1);for(var n=i+1;n<t.length;n++){var r=t[n];if(e(r))return r}},s.findPreviousWhere=function(t,e,i){(void 0===i||null===i)&&(i=t.length);for(var n=i-1;n>=0;n--){var r=t[n];if(e(r))return r}},s.inherits=function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=s.inherits,t&&s.extend(i.prototype,t),i.__super__=e.prototype,i},s.noop=function(){},s.uid=function(){var t=0;return function(){return t++}}(),s.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},s.almostEquals=function(t,e,i){return Math.abs(t-e)<i},s.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},s.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},s.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},s.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},s.toRadians=function(t){return t*(Math.PI/180)},s.toDegrees=function(t){return t*(180/Math.PI)},s.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,r=Math.sqrt(i*i+n*n),s=Math.atan2(n,i);return s<-.5*Math.PI&&(s+=2*Math.PI),{angle:s,distance:r}},s.aliasPixel=function(t){return t%2===0?0:.5},s.splineCurve=function(t,e,i,n){var r=t.skip?e:t,s=e,a=i.skip?e:i,o=Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)),l=Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2)),h=o/(o+l),u=l/(o+l);h=isNaN(h)?0:h,u=isNaN(u)?0:u;var c=n*h,d=n*u;return{previous:{x:s.x-c*(a.x-r.x),y:s.y-c*(a.y-r.y)},next:{x:s.x+d*(a.x-r.x),y:s.y+d*(a.y-r.y)}}},s.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},s.previousItem=function(t,e,i){return i?0>=e?t[t.length-1]:t[e-1]:0>=e?t[0]:t[e-1]},s.niceNum=function(t,e){var i,n=Math.floor(s.log10(t)),r=t/Math.pow(10,n);return i=e?1.5>r?1:3>r?2:7>r?5:10:1>=r?1:2>=r?2:5>=r?5:10,i*Math.pow(10,n)};var a=s.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1*((t=t/1-1)*t*t+1)},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=t/1-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return 1*(t/=1)*t*t*t*t},easeOutQuint:function(t){return 1*((t=t/1-1)*t*t*t*t+1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(t/1*(Math.PI/2))+1},easeOutSine:function(t){return 1*Math.sin(t/1*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t/1)-1)},easeInExpo:function(t){return 0===t?1:1*Math.pow(2,10*(t/1-1))},easeOutExpo:function(t){return 1===t?1:1*(-Math.pow(2,-10*t/1)+1)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((1*t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2===(t/=.5)?1:(i||(i=1*(.3*1.5)),n<Math.abs(1)?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),1>t?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};s.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),s.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),s.getRelativePosition=function(t,e){var i,n,r=t.originalEvent||t,a=t.currentTarget||t.srcElement,o=a.getBoundingClientRect(),l=r.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=r.clientX,n=r.clientY);var h=parseFloat(s.getStyle(a,"padding-left")),u=parseFloat(s.getStyle(a,"padding-top")),c=parseFloat(s.getStyle(a,"padding-right")),d=parseFloat(s.getStyle(a,"padding-bottom")),f=o.right-o.left-h-c,p=o.bottom-o.top-u-d;return i=Math.round((i-o.left-h)/f*a.width/e.currentDevicePixelRatio),n=Math.round((n-o.top-u)/p*a.height/e.currentDevicePixelRatio),{x:i,y:n}},s.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},s.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=s.noop},s.bindEvents=function(t,e,i){var n=t.events=t.events||{};s.each(e,function(e){n[e]=function(){i.apply(t,arguments)},s.addEvent(t.chart.canvas,e,n[e])})},s.unbindEvents=function(t,e){var i=t.chart.canvas;s.each(e,function(t,e){s.removeEvent(i,e,t)})},s.getConstraintWidth=function(t){return r(t,"max-width","clientWidth")},s.getConstraintHeight=function(t){return r(t,"max-height","clientHeight")},s.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(s.getStyle(e,"padding-left"))+parseInt(s.getStyle(e,"padding-right")),n=e.clientWidth-i,r=s.getConstraintWidth(t);return isNaN(r)?n:Math.min(n,r)},s.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(s.getStyle(e,"padding-top"))+parseInt(s.getStyle(e,"padding-bottom")),n=e.clientHeight-i,r=s.getConstraintHeight(t);return isNaN(r)?n:Math.min(n,r)},s.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},s.retinaScale=function(t){var e=t.ctx,i=t.canvas,n=i.width,r=i.height,s=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==s&&(i.height=r*s,i.width=n*s,e.scale(s,s),t.originalDevicePixelRatio=t.originalDevicePixelRatio||s),i.style.width=n+"px",i.style.height=r+"px"},s.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},s.fontString=function(t,e,i){return e+" "+t+"px "+i},s.longestText=function(t,e,i,n){n=n||{};var r=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},a=n.garbageCollect=[],n.font=e),t.font=e;var o=0;s.each(i,function(e){void 0!==e&&null!==e&&s.isArray(e)!==!0?o=s.measureText(t,r,a,o,e):s.isArray(e)&&s.each(e,function(e){void 0===e||null===e||s.isArray(e)||(o=s.measureText(t,r,a,o,e))})});var l=a.length/2;if(l>i.length){for(var h=0;l>h;h++)delete r[a[h]];a.splice(0,l)}return o},s.measureText=function(t,e,i,n,r){var s=e[r];return s||(s=e[r]=t.measureText(r).width,i.push(r)),s>n&&(n=s),n},s.numberOfLabelLines=function(t){var e=1;return s.each(t,function(t){s.isArray(t)&&t.length>e&&(e=t.length)}),e},s.drawRoundedRectangle=function(t,e,i,n,r,s){t.beginPath(),t.moveTo(e+s,i),t.lineTo(e+n-s,i),t.quadraticCurveTo(e+n,i,e+n,i+s),t.lineTo(e+n,i+r-s),t.quadraticCurveTo(e+n,i+r,e+n-s,i+r),t.lineTo(e+s,i+r),t.quadraticCurveTo(e,i+r,e,i+r-s),t.lineTo(e,i+s),t.quadraticCurveTo(e,i,e+s,i),t.closePath()},s.color=function(e){return n?n(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.log("Color.js not found!"),e)},s.addResizeListener=function(t,e){var i=document.createElement("iframe"),n="chartjs-hidden-iframe";i.classlist?i.classlist.add(n):i.setAttribute("class",n);var r=i.style;r.width="100%",r.display="block",r.border=0,r.height=0,r.margin=0,r.position="absolute",r.left=0,r.right=0,r.top=0,r.bottom=0,t.insertBefore(i,t.firstChild),(i.contentWindow||i).onresize=function(){e&&e()}},s.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},s.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},s.arrayEquals=function(t,e){var i,n,r,a;if(!t||!e||t.length!=e.length)return!1;for(i=0,n=t.length;n>i;++i)if(r=t[i],a=e[i],r instanceof Array&&a instanceof Array){if(!s.arrayEquals(r,a))return!1}else if(r!=a)return!1;return!0},s.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},s.getHoverColor=function(t){return t instanceof CanvasPattern?t:s.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){var n=this,r=t.helpers;return n.config=i||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),n.ctx=e,n.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",n.width=e.canvas.width||parseInt(r.getStyle(e.canvas,"width"),10)||r.getMaximumWidth(e.canvas),n.height=e.canvas.height||parseInt(r.getStyle(e.canvas,"height"),10)||r.getMaximumHeight(e.canvas),n.aspectRatio=n.width/n.height,(isNaN(n.aspectRatio)||isFinite(n.aspectRatio)===!1)&&(n.aspectRatio=void 0!==i.aspectRatio?i.aspectRatio:2),n.originalCanvasStyleWidth=e.canvas.style.width,n.originalCanvasStyleHeight=e.canvas.style.height,r.retinaScale(n),n.controller=new t.Controller(n),r.addResizeListener(e.canvas.parentNode,function(){n.controller&&n.controller.config.options.responsive&&n.controller.resize()}),n.controller?n.controller:n};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){function r(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?g:x,b),w-=e.height):(e=t.update(y,v),x-=e.width),T.push({horizontal:i,minSize:e,box:t})}function s(t){var i=e.findNextWhere(T,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:C,right:S,top:0,bottom:0};t.update(t.options.fullWidth?g:x,m/2,n)}else t.update(i.minSize.width,w)}function a(t){var i=e.findNextWhere(T,function(e){return e.box===t}),n={left:0,right:0,top:k,bottom:P};i&&t.update(i.minSize.width,w,n)}function o(t){t.isHorizontal()?(t.left=t.options.fullWidth?l:C,t.right=t.options.fullWidth?i-l:C+x,t.top=O,t.bottom=O+t.height,O=t.bottom):(t.left=D,t.right=D+t.width,t.top=k,t.bottom=k+w,D=t.right)}if(t){var l=0,h=0,u=e.where(t.boxes,function(t){return"left"===t.options.position}),c=e.where(t.boxes,function(t){return"right"===t.options.position}),d=e.where(t.boxes,function(t){return"top"===t.options.position}),f=e.where(t.boxes,function(t){return"bottom"===t.options.position}),p=e.where(t.boxes,function(t){return"chartArea"===t.options.position});d.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),f.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var g=i-2*l,m=n-2*h,_=g/2,v=m/2,y=(i-_)/(u.length+c.length),b=(n-v)/(d.length+f.length),x=g,w=m,T=[];e.each(u.concat(c,d,f),r);var C=l,S=l,k=h,P=h;e.each(u.concat(c),s),e.each(u,function(t){C+=t.width}),e.each(c,function(t){S+=t.width}),e.each(d.concat(f),s),e.each(d,function(t){k+=t.height}),e.each(f,function(t){P+=t.height}),e.each(u.concat(c),a),C=l,S=l,k=h,P=h,e.each(u,function(t){C+=t.width}),e.each(c,function(t){S+=t.width}),e.each(d,function(t){k+=t.height}),e.each(f,function(t){P+=t.height});var M=n-k-P,A=i-C-S;(A!==x||M!==w)&&(e.each(u,function(t){t.height=M}),e.each(c,function(t){t.height=M}),e.each(d,function(t){t.options.fullWidth||(t.width=A)}),e.each(f,function(t){t.options.fullWidth||(t.width=A)}),w=M,x=A);var D=l,O=h;e.each(u.concat(d),o),D+=x,O+=w,e.each(c,o),e.each(f,o),t.chartArea={left:C,top:k,right:C+x,bottom:k+w},e.each(p,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(x,w)})}}}}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,r=n.getDatasetMeta(i);r.hidden=null===r.hidden?!n.data.datasets[i].hidden:null,n.update()},labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=i.options,r=n.labels,s=n.display,a=i.ctx,o=t.defaults.global,l=e.getValueOrDefault,h=l(r.fontSize,o.defaultFontSize),u=l(r.fontStyle,o.defaultFontStyle),c=l(r.fontFamily,o.defaultFontFamily),d=e.fontString(h,u,c),f=i.legendHitBoxes=[],p=i.minSize,g=i.isHorizontal();if(g?(p.width=i.maxWidth,p.height=s?10:0):(p.width=s?10:0,p.height=i.maxHeight),s)if(a.font=d,g){var m=i.lineWidths=[0],_=i.legendItems.length?h+r.padding:0;a.textAlign="left",a.textBaseline="top",e.each(i.legendItems,function(t,e){var n=r.usePointStyle?h*Math.sqrt(2):r.boxWidth,s=n+h/2+a.measureText(t.text).width;m[m.length-1]+s+r.padding>=i.width&&(_+=h+r.padding,m[m.length]=i.left),f[e]={left:0,top:0,width:s,height:h},m[m.length-1]+=s+r.padding}),p.height+=_}else{var v=r.padding,y=i.columnWidths=[],b=r.padding,x=0,w=0,T=h+v;e.each(i.legendItems,function(t,e){var i=r.usePointStyle?2*r.boxWidth:r.boxWidth,n=i+h/2+a.measureText(t.text).width;w+T>p.height&&(b+=x+r.padding,y.push(x),x=0,w=0),x=Math.max(x,n),w+=T,f[e]={left:0,top:0,width:n,height:h}}),b+=x,y.push(x),p.width+=b}i.width=p.width,i.height=p.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,r=n.labels,s=t.defaults.global,a=s.elements.line,o=i.width,l=i.lineWidths;if(n.display){var h,u=i.ctx,c=e.getValueOrDefault,d=c(r.fontColor,s.defaultFontColor),f=c(r.fontSize,s.defaultFontSize),p=c(r.fontStyle,s.defaultFontStyle),g=c(r.fontFamily,s.defaultFontFamily),m=e.fontString(f,p,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=d,u.fillStyle=d,u.font=m;var _=r.boxWidth,v=i.legendHitBoxes,y=function(e,i,r){if(!(isNaN(_)||0>=_)){if(u.save(),u.fillStyle=c(r.fillStyle,s.defaultColor),u.lineCap=c(r.lineCap,a.borderCapStyle),u.lineDashOffset=c(r.lineDashOffset,a.borderDashOffset),u.lineJoin=c(r.lineJoin,a.borderJoinStyle),u.lineWidth=c(r.lineWidth,a.borderWidth),u.strokeStyle=c(r.strokeStyle,s.defaultColor),u.setLineDash&&u.setLineDash(c(r.lineDash,a.borderDash)),n.labels&&n.labels.usePointStyle){var o=f*Math.SQRT2/2,l=o/Math.SQRT2,h=e+l,d=i+l;t.canvasHelpers.drawPoint(u,r.pointStyle,o,h,d)}else u.strokeRect(e,i,_,f),u.fillRect(e,i,_,f);u.restore()}},b=function(t,e,i,n){u.fillText(i.text,_+f/2+t,e),i.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(_+f/2+t,e+f/2),u.lineTo(_+f/2+t+n,e+f/2),u.stroke())},x=i.isHorizontal();h=x?{x:i.left+(o-l[0])/2,y:i.top+r.padding,line:0}:{x:i.left+r.padding,y:i.top+r.padding,line:0};var w=f+r.padding;e.each(i.legendItems,function(t,e){var n=u.measureText(t.text).width,s=r.usePointStyle?f+f/2+n:_+f/2+n,a=h.x,c=h.y;x?a+s>=o&&(c=h.y+=w,h.line++,a=h.x=i.left+(o-l[h.line])/2):c+w>i.bottom&&(a=h.x=a+i.columnWidths[h.line]+r.padding,c=h.y=i.top,h.line++),y(a,c,t),v[e].left=a,v[e].top=c,b(a,c,t,n),x?h.x+=s+r.padding:h.y+=w})}},handleEvent:function(t){var i=this,n=e.getRelativePosition(t,i.chart.chart),r=n.x,s=n.y,a=i.options;if(r>=i.left&&r<=i.right&&s>=i.top&&s<=i.bottom)for(var o=i.legendHitBoxes,l=0;l<o.length;++l){var h=o[l];if(r>=h.left&&r<=h.left+h.width&&s>=h.top&&s<=h.top+h.height){a.onClick&&a.onClick.call(i,t,i.legendItems[l]);break}}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,r=this._plugins,s=r.length;for(i=0;s>i;++i)if(n=r[i],"function"==typeof n[t]&&n[t].apply(n,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=i,r.margins=e.extend({left:0,right:0,top:0,bottom:0},n),r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r.beforeBuildTicks(),r.buildTicks(),r.afterBuildTicks(),r.beforeTickToLabelConversion(),r.convertTicksToLabels(),r.afterTickToLabelConversion(),r.beforeCalculateTickRotation(),r.calculateTickRotation(),r.afterCalculateTickRotation(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,r=t.defaults.global,s=i.options.ticks,a=e.getValueOrDefault(s.fontSize,r.defaultFontSize),o=e.getValueOrDefault(s.fontStyle,r.defaultFontStyle),l=e.getValueOrDefault(s.fontFamily,r.defaultFontFamily),h=e.fontString(a,o,l);n.font=h;var u,c=n.measureText(i.ticks[0]).width,d=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=s.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=d/2+3,i.paddingLeft=c/2+3,i.longestTextCache||(i.longestTextCache={});for(var f,p,g=e.longestText(n,h,i.ticks,i.longestTextCache),m=g,_=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>_&&i.labelRotation<s.maxRotation;){if(f=Math.cos(e.toRadians(i.labelRotation)),p=Math.sin(e.toRadians(i.labelRotation)),u=f*c,u+a/2>i.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,p*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=f*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},
  fit:function(){var i=this,n=i.minSize={width:0,height:0},r=i.options,s=t.defaults.global,a=r.ticks,o=r.scaleLabel,l=r.display,h=i.isHorizontal(),u=e.getValueOrDefault(a.fontSize,s.defaultFontSize),c=e.getValueOrDefault(a.fontStyle,s.defaultFontStyle),d=e.getValueOrDefault(a.fontFamily,s.defaultFontFamily),f=e.fontString(u,c,d),p=e.getValueOrDefault(o.fontSize,s.defaultFontSize),g=r.gridLines.tickMarkLength;if(h?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=l?g:0,h?n.height=l?g:0:n.height=i.maxHeight,o.display&&l&&(h?n.height+=1.5*p:n.width+=1.5*p),a.display&&l){i.longestTextCache||(i.longestTextCache={});var m=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),_=e.numberOfLabelLines(i.ticks),v=.5*u;if(h){i.longestLabelWidth=m;var y=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+u*_+v*_;n.height=Math.min(i.maxHeight,n.height+y),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,w=Math.cos(e.toRadians(i.labelRotation)),T=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?w*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?T*(u/2)+3:x/2+3}else{var C=i.maxWidth-n.width,S=a.mirror;S?m=0:m+=i.options.ticks.padding,C>m?n.width+=m:n.width=i.maxWidth,i.paddingTop=u/2,i.paddingBottom=u/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),r=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),s=r*t+i.paddingLeft;e&&(s+=r/2);var a=i.left+Math.round(s);return a+=i.isFullWidth()?i.margins.left:0}var o=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(o/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,r=e.left+Math.round(n);return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,r=n.options;if(r.display){var s,a,o=n.ctx,l=t.defaults.global,h=r.ticks,u=r.gridLines,c=r.scaleLabel,d=0!==n.labelRotation,f=h.autoSkip,p=n.isHorizontal();h.maxTicksLimit&&(a=h.maxTicksLimit);var g=e.getValueOrDefault(h.fontColor,l.defaultFontColor),m=e.getValueOrDefault(h.fontSize,l.defaultFontSize),_=e.getValueOrDefault(h.fontStyle,l.defaultFontStyle),v=e.getValueOrDefault(h.fontFamily,l.defaultFontFamily),y=e.fontString(m,_,v),b=u.tickMarkLength,x=e.getValueOrDefault(c.fontColor,l.defaultFontColor),w=e.getValueOrDefault(c.fontSize,l.defaultFontSize),T=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),C=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),S=e.fontString(w,T,C),k=e.toRadians(n.labelRotation),P=Math.cos(k),M=n.longestLabelWidth*P;o.fillStyle=g;var A=[];if(p){if(s=!1,d&&(M/=2),(M+h.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(s=1+Math.floor((M+h.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!s||n.ticks.length/(s||1)>a;)s||(s=1),s+=1;f||(s=!1)}var D="right"===r.position?n.left:n.right-b,O="right"===r.position?n.left+b:n.right,R="bottom"===r.position?n.top:n.bottom-b,L="bottom"===r.position?n.top+b:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var o=n.ticks.length===a+1,l=s>1&&a%s>0||a%s===0&&a+s>=n.ticks.length;if((!l||o)&&void 0!==t&&null!==t){var c,f;a===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(c=u.zeroLineWidth,f=u.zeroLineColor):(c=e.getValueAtIndexOrDefault(u.lineWidth,a),f=e.getValueAtIndexOrDefault(u.color,a));var g,m,_,v,y,x,w,T,C,S,P,M="middle";if(p){d||(M="top"===r.position?"bottom":"top"),P=d?"right":"center";var I=n.getPixelForTick(a)+e.aliasPixel(c);C=n.getPixelForTick(a,u.offsetGridLines)+h.labelOffset,S=d?n.top+12:"top"===r.position?n.bottom-b:n.top+b,g=_=y=w=I,m=R,v=L,x=i.top,T=i.bottom}else{"left"===r.position?h.mirror?(C=n.right+h.padding,P="left"):(C=n.right-h.padding,P="right"):h.mirror?(C=n.left-h.padding,P="right"):(C=n.left+h.padding,P="left");var E=n.getPixelForTick(a);E+=e.aliasPixel(c),S=n.getPixelForTick(a,u.offsetGridLines),g=D,_=O,y=i.left,w=i.right,m=v=x=T=E}A.push({tx1:g,ty1:m,tx2:_,ty2:v,x1:y,y1:x,x2:w,y2:T,labelX:C,labelY:S,glWidth:c,glColor:f,rotation:-1*k,label:t,textBaseline:M,textAlign:P})}}}),e.each(A,function(t){if(u.display&&(o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.beginPath(),u.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke()),h.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=y,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,r=0;n<i.length;++n)o.fillText(""+i[n],0,r),r+=1.5*m;else o.fillText(i,0,0);o.restore()}}),c.display){var I,E,F=0;if(p)I=n.left+(n.right-n.left)/2,E="bottom"===r.position?n.bottom-w/2:n.top+w/2;else{var N="left"===r.position;I=N?n.left+w/2:n.right-w/2,E=n.top+(n.bottom-n.top)/2,F=N?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(I,E),o.rotate(F),o.textAlign="center",o.textBaseline="middle",o.fillStyle=x,o.font=S,o.fillText(c.labelString,0,0),o.restore()}if(u.drawBorder){o.lineWidth=e.getValueAtIndexOrDefault(u.lineWidth,0),o.strokeStyle=e.getValueAtIndexOrDefault(u.color,0);var B=n.left,V=n.right,W=n.top,z=n.bottom,H=e.aliasPixel(o.lineWidth);p?(W=z="top"===r.position?n.bottom:n.top,W+=H,z+=H):(B=V="left"===r.position?n.right:n.left,B+=H,V+=H),o.beginPath(),o.moveTo(B,W),o.lineTo(V,z),o.stroke()}}}})}},{}],32:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.scaleService={constructors:{},defaults:{},registerScaleType:function(t,i,n){this.constructors[t]=i,this.defaults[t]=e.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?e.scaleMerge(t.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(t,i){var n=this.defaults;n.hasOwnProperty(t)&&(n[t]=e.extend(n[t],i))},addScalesToLayout:function(i){e.each(i.scales,function(e){t.layoutService.addBox(i,e)})}}}},{}],33:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.global.title={display:!1,position:"top",fullWidth:!0,fontStyle:"bold",padding:10,text:""};var i=e.noop;t.Title=t.Element.extend({initialize:function(i){var n=this;e.extend(n,i),n.options=e.configMerge(t.defaults.global.title,i.options),n.legendHitBoxes=[]},beforeUpdate:function(){var i=this.chart.options;i&&i.title&&(this.options=e.configMerge(t.defaults.global.title,i.title))},update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:i,afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=e.getValueOrDefault,r=i.options,s=t.defaults.global,a=r.display,o=n(r.fontSize,s.defaultFontSize),l=i.minSize;i.isHorizontal()?(l.width=i.maxWidth,l.height=a?o+2*r.padding:0):(l.width=a?o+2*r.padding:0,l.height=i.maxHeight),i.width=l.width,i.height=l.height},afterFit:i,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var i=this,n=i.ctx,r=e.getValueOrDefault,s=i.options,a=t.defaults.global;if(s.display){var o,l,h=r(s.fontSize,a.defaultFontSize),u=r(s.fontStyle,a.defaultFontStyle),c=r(s.fontFamily,a.defaultFontFamily),d=e.fontString(h,u,c),f=0,p=i.top,g=i.left,m=i.bottom,_=i.right;n.fillStyle=r(s.fontColor,a.defaultFontColor),n.font=d,i.isHorizontal()?(o=g+(_-g)/2,l=p+(m-p)/2):(o="left"===s.position?g+h/2:_-h/2,l=p+(m-p)/2,f=Math.PI*("left"===s.position?-.5:.5)),n.save(),n.translate(o,l),n.rotate(f),n.textAlign="center",n.textBaseline="middle",n.fillText(s.text,0,0),n.restore()}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.title;n&&(e.titleBlock=new t.Title({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.titleBlock))}})}},{}],34:[function(t,e,i){"use strict";e.exports=function(t){function e(t,e){return e&&(r.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function i(t){if(!t.length)return!1;var e,i,n=[],r=[];for(e=0,i=t.length;i>e;++e){var s=t[e];if(s&&s.hasValue()){var a=s.tooltipPosition();n.push(a.x),r.push(a.y)}}var o=0,l=0;for(e=0;e<n.length;++e)n[e]&&(o+=n[e],l+=r[e]);return{x:Math.round(o/n.length),y:Math.round(l/n.length)}}function n(t){var e=t._xScale,i=t._yScale||t._scale,n=t._index,r=t._datasetIndex;return{xLabel:e?e.getLabelForIndex(n,r):"",yLabel:i?i.getLabelForIndex(n,r):"",index:n,datasetIndex:r}}var r=t.helpers;t.defaults.global.tooltips={enabled:!0,custom:null,mode:"single",backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,yAlign:"center",xAlign:"center",caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",callbacks:{beforeTitle:r.noop,title:function(t,e){var i="",n=e.labels,r=n?n.length:0;if(t.length>0){var s=t[0];s.xLabel?i=s.xLabel:r>0&&s.index<r&&(i=n[s.index])}return i},afterTitle:r.noop,beforeBody:r.noop,beforeLabel:r.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i+": "+t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex),n=i.data[t.index],r=n._view;return{borderColor:r.borderColor,backgroundColor:r.backgroundColor}},afterLabel:r.noop,afterBody:r.noop,beforeFooter:r.noop,footer:r.noop,afterFooter:r.noop}},t.Tooltip=t.Element.extend({initialize:function(){var e=this,i=t.defaults.global,n=e._options,s=r.getValueOrDefault;r.extend(e,{_model:{xPadding:n.xPadding,yPadding:n.yPadding,xAlign:n.xAlign,yAlign:n.yAlign,bodyFontColor:n.bodyFontColor,_bodyFontFamily:s(n.bodyFontFamily,i.defaultFontFamily),_bodyFontStyle:s(n.bodyFontStyle,i.defaultFontStyle),_bodyAlign:n.bodyAlign,bodyFontSize:s(n.bodyFontSize,i.defaultFontSize),bodySpacing:n.bodySpacing,titleFontColor:n.titleFontColor,_titleFontFamily:s(n.titleFontFamily,i.defaultFontFamily),_titleFontStyle:s(n.titleFontStyle,i.defaultFontStyle),titleFontSize:s(n.titleFontSize,i.defaultFontSize),_titleAlign:n.titleAlign,titleSpacing:n.titleSpacing,titleMarginBottom:n.titleMarginBottom,footerFontColor:n.footerFontColor,_footerFontFamily:s(n.footerFontFamily,i.defaultFontFamily),_footerFontStyle:s(n.footerFontStyle,i.defaultFontStyle),footerFontSize:s(n.footerFontSize,i.defaultFontSize),_footerAlign:n.footerAlign,footerSpacing:n.footerSpacing,footerMarginTop:n.footerMarginTop,caretSize:n.caretSize,cornerRadius:n.cornerRadius,backgroundColor:n.backgroundColor,opacity:0,legendColorBackground:n.multiKeyBackground}})},getTitle:function(){var t=this,i=t._options,n=i.callbacks,r=n.beforeTitle.apply(t,arguments),s=n.title.apply(t,arguments),a=n.afterTitle.apply(t,arguments),o=[];return o=e(o,r),o=e(o,s),o=e(o,a)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var n=this,s=n._options.callbacks,a=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};e(r.before,s.beforeLabel.call(n,t,i)),e(r.lines,s.label.call(n,t,i)),e(r.after,s.afterLabel.call(n,t,i)),a.push(r)}),a},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,i=t._options.callbacks,n=i.beforeFooter.apply(t,arguments),r=i.footer.apply(t,arguments),s=i.afterFooter.apply(t,arguments),a=[];return a=e(a,n),a=e(a,r),a=e(a,s)},update:function(t){var e,s,a=this,o=a._options,l=a._model,h=a._active,u=a._data,c=a._chartInstance;if(h.length){l.opacity=1;var d=[],f=i(h),p=[];for(e=0,s=h.length;s>e;++e)p.push(n(h[e]));o.itemSort&&(p=p.sort(o.itemSort)),h.length>1&&r.each(p,function(t){d.push(o.callbacks.labelColor.call(a,t,c))}),r.extend(l,{title:a.getTitle(p,u),beforeBody:a.getBeforeBody(p,u),body:a.getBody(p,u),afterBody:a.getAfterBody(p,u),footer:a.getFooter(p,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:r.getValueOrDefault(f.padding,2),labelColors:d});var g=a.getTooltipSize(l);a.determineAlignment(g),r.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&o.custom&&o.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,s=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,o=t.footer.length,l=t.titleFontSize,h=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=s*h,i.height+=s?(s-1)*t.bodySpacing:0,i.height+=o?t.footerMarginTop:0,i.height+=o*u,i.height+=o?(o-1)*t.footerSpacing:0;var c=0,d=function(t){i.width=Math.max(i.width,e.measureText(t).width+c)};return e.font=r.fontString(l,t._titleFontStyle,t._titleFontFamily),r.each(t.title,d),e.font=r.fontString(h,t._bodyFontStyle,t._bodyFontFamily),r.each(t.beforeBody.concat(t.afterBody),d),c=n.length>1?h+2:0,r.each(n,function(t){r.each(t.before,d),r.each(t.lines,d),r.each(t.after,d)}),c=0,e.font=r.fontString(u,t._footerFontStyle,t._footerFontFamily),r.each(t.footer,d),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,r=e._chartInstance.chartArea;i.y<t.height?i.yAlign="top":i.y>n.height-t.height&&(i.yAlign="bottom");var s,a,o,l,h,u=(r.left+r.right)/2,c=(r.top+r.bottom)/2;"center"===i.yAlign?(s=function(t){return u>=t},a=function(t){return t>u}):(s=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),o=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},h=function(t){return c>=t?"top":"bottom"},s(i.x)?(i.xAlign="left",o(i.x)&&(i.xAlign="center",i.yAlign=h(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=h(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,r=t.caretPadding,s=t.cornerRadius,a=t.xAlign,o=t.yAlign,l=n+r,h=s+r;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===o?i.y+=l:"bottom"===o?i.y-=e.height+l:i.y-=e.height/2,"center"===o?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=h:"right"===a&&(i.x+=h),i},drawCaret:function(t,e,i){var n,s,a,o,l,h,u=this._view,c=this._chart.ctx,d=u.caretSize,f=u.cornerRadius,p=u.xAlign,g=u.yAlign,m=t.x,_=t.y,v=e.width,y=e.height;"center"===g?("left"===p?(n=m,s=n-d,a=n):(n=m+v,s=n+d,a=n),l=_+y/2,o=l-d,h=l+d):("left"===p?(n=m+f,s=n+d,a=s+d):"right"===p?(n=m+v-f,s=n-d,a=s-d):(s=m+v/2,n=s-d,a=s+d),"top"===g?(o=_,l=o-d,h=o):(o=_+y,l=o+d,h=o));var b=r.color(u.backgroundColor);c.fillStyle=b.alpha(i*b.alpha()).rgbString(),c.beginPath(),c.moveTo(n,o),c.lineTo(s,l),c.lineTo(a,h),c.closePath(),c.fill()},drawTitle:function(t,e,i,n){var s=e.title;if(s.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,o=e.titleSpacing,l=r.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=r.fontString(a,e._titleFontStyle,e._titleFontFamily);var h,u;for(h=0,u=s.length;u>h;++h)i.fillText(s[h],t.x,t.y),t.y+=a+o,h+1===s.length&&(t.y+=e.titleMarginBottom-o)}},drawBody:function(t,e,i,n){var s=e.bodyFontSize,a=e.bodySpacing,o=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=r.color(e.bodyFontColor),h=l.alpha(n*l.alpha()).rgbString();i.fillStyle=h,i.font=r.fontString(s,e._bodyFontStyle,e._bodyFontFamily);var u=0,c=function(e){i.fillText(e,t.x+u,t.y),t.y+=s+a};r.each(e.beforeBody,c);var d=o.length>1;u=d?s+2:0,r.each(o,function(a,o){r.each(a.before,c),r.each(a.lines,function(a){d&&(i.fillStyle=r.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,s,s),i.strokeStyle=r.color(e.labelColors[o].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,s,s),i.fillStyle=r.color(e.labelColors[o].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,s-2,s-2),i.fillStyle=h),c(a)}),r.each(a.after,c)}),u=0,r.each(e.afterBody,c),t.y-=a},drawFooter:function(t,e,i,n){var s=e.footer;if(s.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=r.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=r.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),r.each(s,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},s=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=r.color(e.backgroundColor);t.fillStyle=a.alpha(s*a.alpha()).rgbString(),r.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,s),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,s),this.drawBody(n,e,t,s),this.drawFooter(n,e,t,s)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,i){var n=this._view;if(n){for(var r=e.getAngleFromPoint(n,{x:t,y:i}),s=r.angle,a=r.distance,o=n.startAngle,l=n.endAngle;o>l;)l+=2*Math.PI;for(;s>l;)s-=2*Math.PI;for(;o>s;)s+=2*Math.PI;var h=s>=o&&l>=s,u=a>=n.innerRadius&&a<=n.outerRadius;return h&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(e._view.x,t._view.y),l.lineTo(e._view.x,e._view.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,r=n._view,s=r.spanGaps,a=r.scaleZero,o=n._loop,l=n._chart.ctx;l.save();var h=n._children.slice(),u=-1;o&&h.length&&h.push(h[0]);var c,d,f,p;if(h.length&&r.fill){for(l.beginPath(),c=0;c<h.length;++c)d=h[c],f=e.previousItem(h,c),p=d._view,0===c?(o?l.moveTo(a.x,a.y):l.moveTo(p.x,a),p.skip||(u=c,l.lineTo(p.x,p.y))):(f=-1===u?f:h[u],p.skip?s||u!==c-1||(o?l.lineTo(a.x,a.y):l.lineTo(f._view.x,a)):(u!==c-1?s&&-1!==u?t(f,d):o?l.lineTo(p.x,p.y):(l.lineTo(p.x,a),l.lineTo(p.x,p.y)):t(f,d),u=c));o||l.lineTo(h[u]._view.x,a),l.fillStyle=r.backgroundColor||i.defaultColor,l.closePath(),l.fill()}var g=i.elements.line;for(l.lineCap=r.borderCapStyle||g.borderCapStyle,l.setLineDash&&l.setLineDash(r.borderDash||g.borderDash),l.lineDashOffset=r.borderDashOffset||g.borderDashOffset,l.lineJoin=r.borderJoinStyle||g.borderJoinStyle,l.lineWidth=r.borderWidth||g.borderWidth,l.strokeStyle=r.borderColor||i.defaultColor,l.beginPath(),u=-1,c=0;c<h.length;++c)d=h[c],f=e.previousItem(h,c),p=d._view,0===c?p.skip||(l.moveTo(p.x,p.y),u=c):(f=-1===u?f:h[u],p.skip||(u!==c-1&&!s||-1===u?l.moveTo(p.x,p.y):t(f,d),u=c));l.stroke(),l.restore()}})}},{}],37:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:n,borderWidth:1,borderColor:n,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},t.elements.Point=t.Element.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(){var r=this._view,s=this._chart.ctx,a=r.pointStyle,o=r.radius,l=r.x,h=r.y;r.skip||(s.strokeStyle=r.borderColor||n,s.lineWidth=e.getValueOrDefault(r.borderWidth,i.elements.point.borderWidth),s.fillStyle=r.backgroundColor||n,t.canvasHelpers.drawPoint(s,a,o,l,h))}})}},{}],38:[function(t,e,i){"use strict";e.exports=function(t){var e=t.defaults.global;e.elements.rectangle={backgroundColor:e.defaultColor,borderWidth:0,borderColor:e.defaultColor,borderSkipped:"bottom"},t.elements.Rectangle=t.Element.extend({draw:function(){function t(t){return l[(u+t)%4]}var e=this._chart.ctx,i=this._view,n=i.width/2,r=i.x-n,s=i.x+n,a=i.base-(i.base-i.y),o=i.borderWidth/2;i.borderWidth&&(r+=o,s-=o,a+=o),e.beginPath(),e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth;var l=[[r,i.base],[r,a],[s,a],[s,i.base]],h=["bottom","left","top","right"],u=h.indexOf(i.borderSkipped,0);-1===u&&(u=0),e.moveTo.apply(e,t(0));for(var c=1;4>c;c++)e.lineTo.apply(e,t(c));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y<i.base?t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t){return this.ticks[t]},getPixelForValue:function(t,e,i,n){var r=this,s=Math.max(r.maxIndex+1-r.minIndex-(r.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t){var a=r.getLabels(),o=a.indexOf(t);e=-1!==o?o:e}if(r.isHorizontal()){var l=r.width-(r.paddingLeft+r.paddingRight),h=l/s,u=h*(e-r.minIndex)+r.paddingLeft;return r.options.gridLines.offsetGridLines&&n&&(u+=h/2),r.left+Math.round(u)}var c=r.height-(r.paddingTop+r.paddingBottom),d=c/s,f=d*(e-r.minIndex)+r.paddingTop;return r.options.gridLines.offsetGridLines&&n&&(f+=d/2),r.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=i.isHorizontal(),s=r?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),a=s/n;return t-=r?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=a/2),t-=r?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var s=e.log10(Math.abs(r)),a="";if(0!==t){var o=-1*Math.floor(s);o=Math.max(Math.min(o,20),0),a=t.toFixed(o)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return o?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,r=i.chart,s=r.data,a=s.datasets,o=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={},h=!1,u=!1;e.each(a,function(s,a){var o=r.getDatasetMeta(a);void 0===l[o.type]&&(l[o.type]={positiveValues:[],negativeValues:[]});var c=l[o.type].positiveValues,d=l[o.type].negativeValues;r.isDatasetVisible(a)&&t(o)&&e.each(s.data,function(t,e){var r=+i.getRightValue(t);isNaN(r)||o.data[e].hidden||(c[e]=c[e]||0,d[e]=d[e]||0,n.relativePoints?c[e]=100:0>r?(u=!0,d[e]+=r):(h=!0,c[e]+=r))})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=e.min(n),s=e.max(n);i.min=null===i.min?r:Math.min(i.min,r),i.max=null===i.max?s:Math.max(i.max,s)})}else e.each(a,function(n,s){var a=r.getDatasetMeta(s);r.isDatasetVisible(s)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:n<i.min&&(i.min=n),null===i.max?i.max=n:n>i.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,r=n.options.ticks;if(n.isHorizontal())i=Math.min(r.maxTicksLimit?r.maxTicksLimit:11,Math.ceil(n.width/50));else{var s=e.getValueOrDefault(r.fontSize,t.defaults.global.defaultFontSize);i=Math.min(r.maxTicksLimit?r.maxTicksLimit:11,Math.ceil(n.height/(2*s)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,r=n.paddingLeft,s=n.paddingBottom,a=n.start,o=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(r+n.paddingRight),e=n.left+i/l*(o-a),Math.round(e+r)):(i=n.height-(n.paddingTop+s),e=n.bottom-s-i/l*(o-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,r=e.paddingBottom,s=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+r),a=(i?t-e.left-n:e.bottom-r-t)/s;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var r=e.sign(t.min),s=e.sign(t.max);0>r&&0>s?t.max=0:r>0&&s>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],r=i.ticks,s=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var o,l=r.fixedStepSize&&r.fixedStepSize>0||r.stepSize&&r.stepSize>0;if(l)o=s(r.fixedStepSize,r.stepSize);else{var h=e.niceNum(t.max-t.min,!1);o=e.niceNum(h/(a-1),!0)}var u=Math.floor(t.min/o)*o,c=Math.ceil(t.max/o)*o,d=(c-u)/o;d=e.almostEquals(d,Math.round(d),o/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==r.min?r.min:u);for(var f=1;d>f;++f)n.push(u+f*o);n.push(void 0!==r.max?r.max:c),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),r.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var r=t/Math.pow(10,Math.floor(e.log10(t)));return 1===r||2===r||5===r||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return h?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,r=n.ticks,s=i.chart,a=s.data,o=a.datasets,l=e.getValueOrDefault,h=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var u={};e.each(o,function(r,a){var o=s.getDatasetMeta(a);s.isDatasetVisible(a)&&t(o)&&(void 0===u[o.type]&&(u[o.type]=[]),e.each(r.data,function(t,e){var r=u[o.type],s=+i.getRightValue(t);isNaN(s)||o.data[e].hidden||(r[e]=r[e]||0,n.relativePoints?r[e]=100:r[e]+=s)}))}),e.each(u,function(t){var n=e.min(t),r=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(o,function(n,r){var a=s.getDatasetMeta(r);s.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:n<i.min&&(i.min=n),null===i.max?i.max=n:n>i.max&&(i.max=n))})});i.min=l(r.min,i.min),i.max=l(r.max,i.max),i.min===i.max&&(0!==i.min&&null!==i.min?(i.min=Math.pow(10,Math.floor(e.log10(i.min))-1),i.max=Math.pow(10,Math.floor(e.log10(i.max))+1)):(i.min=1,i.max=10))},buildTicks:function(){for(var t=this,i=t.options,n=i.ticks,r=e.getValueOrDefault,s=t.ticks=[],a=r(n.min,Math.pow(10,Math.floor(e.log10(t.min))));a<t.max;){s.push(a);var o=Math.floor(e.log10(a)),l=Math.floor(a/Math.pow(10,o))+1;10===l&&(l=1,++o),a=l*Math.pow(10,o)}var h=r(n.max,a);s.push(h),t.isHorizontal()||s.reverse(),t.max=e.max(s),t.min=e.min(s),n.reverse?(s.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var i,n,r=this,s=r.start,a=+r.getRightValue(t),o=e.log10(r.end)-e.log10(s),l=r.paddingTop,h=r.paddingBottom,u=r.paddingLeft;return r.isHorizontal()?0===a?n=r.left+u:(i=r.width-(u+r.paddingRight),n=r.left+i/o*(e.log10(a)-e.log10(s)),n+=u):0===a?n=r.top+l:(i=r.height-(l+h),n=r.bottom-h-i/o*(e.log10(a)-e.log10(s))),n},getValueForPixel:function(t){var i,n,r=this,s=e.log10(r.end)-e.log10(r.start);return r.isHorizontal()?(n=r.width-(r.paddingLeft+r.paddingRight),i=r.start*Math.pow(10,(t-r.left-r.paddingLeft)*s/n)):(n=r.height-(r.paddingTop+r.paddingBottom),i=Math.pow(10,(r.bottom-r.paddingBottom-t)*s/n)/r.start),i}});t.scaleService.registerScaleType("logarithmic",n,i)}},{}],43:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global,n={display:!0,animate:!0,lineArc:!1,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2},pointLabels:{fontSize:10,callback:function(t){return t}}},r=t.LinearScaleBase.extend({getValueCount:function(){return this.chart.data.labels.length;
  },setDimensions:function(){var t=this,n=t.options,r=n.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var s=e.min([t.height,t.width]),a=e.getValueOrDefault(r.fontSize,i.defaultFontSize);t.drawingArea=n.display?s/2-(a/2+r.backdropPaddingY):s/2},determineDataLimits:function(){var t=this,i=t.chart;t.min=null,t.max=null,e.each(i.data.datasets,function(n,r){if(i.isDatasetVisible(r)){var s=i.getDatasetMeta(r);e.each(n.data,function(e,i){var n=+t.getRightValue(e);isNaN(n)||s.data[i].hidden||(null===t.min?t.min=n:n<t.min&&(t.min=n),null===t.max?t.max=n:n>t.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,r,s,a,o,l,h,u,c,d,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),_=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,_),y=e.min([this.height/2-g-5,this.width/2]),b=this.width,x=0;for(this.ctx.font=v,n=0;n<this.getValueCount();n++){t=this.getPointPosition(n,y),r=this.ctx.measureText(this.pointLabels[n]?this.pointLabels[n]:"").width+5;var w=this.getIndexAngle(n)+Math.PI/2,T=360*w/(2*Math.PI)%360;0===T||180===T?(s=r/2,t.x+s>b&&(b=t.x+s,a=n),t.x-s<x&&(x=t.x-s,l=n)):180>T?t.x+r>b&&(b=t.x+r,a=n):t.x-r<x&&(x=t.x-r,l=n)}u=x,c=Math.ceil(b-this.width),o=this.getIndexAngle(a),h=this.getIndexAngle(l),d=c/Math.sin(o+Math.PI/2),f=u/Math.sin(h+Math.PI/2),d=e.isNumber(d)?d:0,f=e.isNumber(f)?f:0,this.drawingArea=Math.round(y-(f+d)/2),this.setCenterPoint(f,d)},setCenterPoint:function(t,e){var i=this,n=i.width-e-i.drawingArea,r=t+i.drawingArea;i.xCenter=Math.round((r+n)/2+i.left),i.yCenter=Math.round(i.height/2+i.top)},getIndexAngle:function(t){var e=2*Math.PI/this.getValueCount(),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,n=i*Math.PI*2/360;return t*e-Math.PI/2+n},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this,n=i.getIndexAngle(t);return{x:Math.round(Math.cos(n)*e)+i.xCenter,y:Math.round(Math.sin(n)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,r=n.gridLines,s=n.ticks,a=n.angleLines,o=n.pointLabels,l=e.getValueOrDefault;if(n.display){var h=t.ctx,u=l(s.fontSize,i.defaultFontSize),c=l(s.fontStyle,i.defaultFontStyle),d=l(s.fontFamily,i.defaultFontFamily),f=e.fontString(u,c,d);if(e.each(t.ticks,function(a,o){if(o>0||n.reverse){var c=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]),d=t.yCenter-c;if(r.display&&0!==o)if(h.strokeStyle=e.getValueAtIndexOrDefault(r.color,o-1),h.lineWidth=e.getValueAtIndexOrDefault(r.lineWidth,o-1),n.lineArc)h.beginPath(),h.arc(t.xCenter,t.yCenter,c,0,2*Math.PI),h.closePath(),h.stroke();else{h.beginPath();for(var p=0;p<t.getValueCount();p++){var g=t.getPointPosition(p,c);0===p?h.moveTo(g.x,g.y):h.lineTo(g.x,g.y)}h.closePath(),h.stroke()}if(s.display){var m=l(s.fontColor,i.defaultFontColor);if(h.font=f,s.showLabelBackdrop){var _=h.measureText(a).width;h.fillStyle=s.backdropColor,h.fillRect(t.xCenter-_/2-s.backdropPaddingX,d-u/2-s.backdropPaddingY,_+2*s.backdropPaddingX,u+2*s.backdropPaddingY)}h.textAlign="center",h.textBaseline="middle",h.fillStyle=m,h.fillText(a,t.xCenter,d)}}}),!n.lineArc){h.lineWidth=a.lineWidth,h.strokeStyle=a.color;for(var p=t.getDistanceFromCenterForValue(n.reverse?t.min:t.max),g=l(o.fontSize,i.defaultFontSize),m=l(o.fontStyle,i.defaultFontStyle),_=l(o.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,_),y=t.getValueCount()-1;y>=0;y--){if(a.display){var b=t.getPointPosition(y,p);h.beginPath(),h.moveTo(t.xCenter,t.yCenter),h.lineTo(b.x,b.y),h.stroke(),h.closePath()}var x=t.getPointPosition(y,p+5),w=l(o.fontColor,i.defaultFontColor);h.font=v,h.fillStyle=w;var T=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,S=360*C/(2*Math.PI)%360;0===S||180===S?h.textAlign="center":180>S?h.textAlign="left":h.textAlign="right",90===S||270===S?h.textBaseline="middle":S>270||90>S?h.textBaseline="bottom":h.textBaseline="top",h.fillText(T[y]?T[y]:"",x.x,x.y)}}}}});t.scaleService.registerScaleType("radialLinear",r,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},r={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},s=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(r,s){var a=[],o=t.chart.isDatasetVisible(s);"object"==typeof r.data[0]&&null!==r.data[0]?e.each(r.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),o&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildTicks:function(){var n=this;n.ctx.save();var r=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),s=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),o=e.fontString(r,s,a);if(n.ctx.font=o,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),h=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(h).width,c=Math.cos(e.toRadians(n.options.ticks.maxRotation)),d=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*c+r*d;var f=l/u;n.tickUnit="millisecond",n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var p=0,g=i.units[p];p<i.units.length;){if(n.unitScale=1,e.isArray(g.steps)&&Math.ceil(n.scaleSizeInUnits/f)<e.max(g.steps)){for(var m=0;m<g.steps.length;++m)if(g.steps[m]>=Math.ceil(n.scaleSizeInUnits/f)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/f)<g.maxStep){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,Math.ceil(n.scaleSizeInUnits/f));break}++p,g=i.units[p],n.tickUnit=g.name;var _=n.firstTick.diff(n.getMomentStartOf(n.firstTick),n.tickUnit,!0),v=n.getMomentStartOf(n.lastTick.clone().add(1,n.tickUnit)).diff(n.lastTick,n.tickUnit,!0);n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)+_+v,n.displayFormat=n.options.time.displayFormats[g.name]}}var y;if(n.options.time.min?y=n.getMomentStartOf(n.firstTick):(n.firstTick=n.getMomentStartOf(n.firstTick),y=n.firstTick),!n.options.time.max){var b=n.getMomentStartOf(n.lastTick),x=b.diff(n.lastTick,n.tickUnit,!0);0>x?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):x>=0&&(n.lastTick=b),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.smallestLabelSeparation=n.width,e.each(n.chart.data.datasets,function(t,e){for(var i=1;i<n.labelMoments[e].length;i++)n.smallestLabelSeparation=Math.min(n.smallestLabelSeparation,n.labelMoments[e][i].diff(n.labelMoments[e][i-1],n.tickUnit,!0))},n),n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var T=y.clone().add(w,n.tickUnit);if(n.options.time.max&&T.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale===0&&n.ticks.push(T)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore()},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t<i.chart.data.labels.length?i.chart.data.labels[t]:"";return"object"==typeof i.chart.data.datasets[e].data[0]&&(n=i.getRightValue(i.chart.data.datasets[e].data[t])),i.options.time.tooltipFormat&&(n=i.parseTime(n).format(i.options.time.tooltipFormat)),n},tickFormatFunction:function(t,i,n){var r=t.format(this.displayFormat),s=this.options.ticks,a=e.getValueOrDefault(s.callback,s.userCallback);return a?a(r,i,n):r},convertTicksToLabels:function(){var t=this;t.tickMoments=t.ticks,t.ticks=t.ticks.map(t.tickFormatFunction,t)},getPixelForValue:function(t,e,i){var r=this;t&&t.isValid||(t=n(r.getRightValue(t)));var s=t&&t.isValid&&t.isValid()?t:r.getLabelMoment(i,e);if(s){var a=s.diff(r.firstTick,r.tickUnit,!0),o=0!==a?a/r.scaleSizeInUnits:a;if(r.isHorizontal()){var l=r.width-(r.paddingLeft+r.paddingRight),h=l*o+r.paddingLeft;return r.left+Math.round(h)}var u=r.height-(r.paddingTop+r.paddingBottom),c=u*o+r.paddingTop;return r.top+Math.round(c)}},getPixelForTick:function(t){return this.getPixelForValue(this.tickMoments[t],null,null)},getValueForPixel:function(t){var e=this,i=e.isHorizontal()?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),r=(t-(e.isHorizontal()?e.left+e.paddingLeft:e.top+e.paddingTop))/i;return r*=e.scaleSizeInUnits,e.firstTick.clone().add(n.duration(r,e.tickUnit).asSeconds(),"seconds")},parseTime:function(t){var e=this;return"string"==typeof e.options.time.parser?n(t,e.options.time.parser):"function"==typeof e.options.time.parser?e.options.time.parser(t):"function"==typeof t.getMonth||"number"==typeof t?n(t):t.isValid&&t.isValid()?t:"string"!=typeof e.options.time.format&&e.options.time.format.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser. See http://nnnick.github.io/Chart.js/docs-v2/#scales-time-scale"),e.options.time.format(t)):n(t,e.options.time.format)}});t.scaleService.registerScaleType("time",s,r)}},{1:1}]},{},[7])(7)});/*!
   * VERSION: 1.19.1
   * DATE: 2016-10-13
   * UPDATES AND DOCS AT: http://greensock.com
   * 
   * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},s=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=s.prototype.render},a=1e-10,o=i._internals,l=o.isSelector,h=o.isArray,u=s.prototype=i.to({},.1,{}),c=[];s.version="1.19.1",u.constructor=s,u.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,r=this.ratio,s=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(n in t)this.vars[n]=t[n];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var o,l=1/(1-r),h=this._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return this},u.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,r,s,l,h,u,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._totalTime,m=this._cycle,_=this._duration,v=this._rawPrevTime;if(t>=f-1e-7?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=_,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===_&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(v<0||t<=0&&t>=-1e-7||v===a&&"isPause"!==this.data)&&v!==t&&(i=!0,v>a&&(r="onReverseComplete")),this._rawPrevTime=d=!e||t||v===t?t:a)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==g||0===_&&v>0)&&(r="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===_&&(this._initted||!this.vars.lazy||i)&&(v>=0&&(i=!0),this._rawPrevTime=d=!e||t||v===t?t:a)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=_+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&g<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=_-this._time),this._time>_?this._time=_:this._time<0&&(this._time=0)),this._easeType?(h=this._time/_,u=this._easeType,c=this._easePower,(1===u||3===u&&h>=.5)&&(h=1-h),3===u&&(h*=2),1===c?h*=h:2===c?h*=h*h:3===c?h*=h*h*h:4===c&&(h*=h*h*h*h),1===u?this.ratio=1-h:2===u?this.ratio=h:this._time/_<.5?this.ratio=h/2:this.ratio=1-h/2):this.ratio=this._ease.getRatio(this._time/_)),p===this._time&&!i&&m===this._cycle)return void(g!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=g,this._rawPrevTime=v,this._cycle=m,o.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/_):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&t>=0&&(this._active=!0),0===g&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==_||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==g||r)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),r&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===_&&this._rawPrevTime===a&&d!==a&&(this._rawPrevTime=0)))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new s(t,e,n)},s.staggerTo=s.allTo=function(t,e,a,o,u,d,f){o=o||0;var p,g,m,_,v=0,y=[],b=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),u.apply(f||a.callbackScope||this,d||c)},x=a.cycle,w=a.startAt&&a.startAt.cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t))),t=t||[],o<0&&(t=n(t),t.reverse(),o*=-1),p=t.length-1,m=0;m<=p;m++){g={};for(_ in a)g[_]=a[_];if(x&&(r(g,t,m),null!=g.duration&&(e=g.duration,delete g.duration)),w){w=g.startAt={};for(_ in a.startAt)w[_]=a.startAt[_];r(g.startAt,t,m)}g.delay=v+(g.delay||0),m===p&&u&&(g.onComplete=b),y[m]=new s(t[m],e,g),v+=o}return y},s.staggerFrom=s.allFrom=function(t,e,i,n,r,a,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,n,r,a,o)},s.staggerFromTo=s.allFromTo=function(t,e,i,n,r,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,n,r,a,o,l)},s.delayedCall=function(t,e,i,n,r){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var d=function(t,e){for(var n=[],r=0,s=t._first;s;)s instanceof i?n[r++]=s:(e&&(n[r++]=s),n=n.concat(d(s,e)),r=n.length),s=s._next;return n},f=s.getAllTweens=function(e){return d(t._rootTimeline,e).concat(d(t._rootFramesTimeline,e))};s.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var s,a,o,l=f(0!=r),h=l.length,u=i&&n&&r;for(o=0;o<h;o++)a=l[o],(u||a instanceof e||(s=a.target===a.vars.onComplete)&&n||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var r,a,u,c,d,f=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t)),h(t))for(c=t.length;--c>-1;)s.killChildTweensOf(t[c],e);else{r=[];for(u in f)for(a=f[u].target.parentNode;a;)a===t&&(r=r.concat(f[u].tweens)),a=a.parentNode;for(d=r.length,c=0;c<d;c++)e&&r[c].totalTime(r[c].totalDuration()),r[c]._enabled(!1,!1)}}};var p=function(t,i,n,r){i=i!==!1,n=n!==!1,r=r!==!1;for(var s,a,o=f(r),l=i&&n&&r,h=o.length;--h>-1;)a=o[h],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&n||i&&!s)&&a.paused(t)};return s.pauseAll=function(t,e,i){p(!0,t,e,i)},s.resumeAll=function(t,e,i){p(!1,t,e,i)},s.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||a,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?this._repeat===-1?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&i.join("").indexOf("{self}")!==-1&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,a=n._internals={},o=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},p=a.pauseCallback=function(){},g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=n.prototype=new e;return n.version="1.19.1",m.constructor=n,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,n,r){var s=n.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},m.from=function(t,e,n,r){return this.add((n.repeat&&c.TweenMax||i).from(t,e,n),r)},m.fromTo=function(t,e,n,r,s){var a=r.repeat&&c.TweenMax||i;return e?this.add(a.fromTo(t,e,n,r),s):this.set(t,r,s)},m.staggerTo=function(t,e,r,s,a,l,h,u){var c,p,m=new n({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),_=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=g(t)),s=s||0,s<0&&(t=g(t),t.reverse(),s*=-1),p=0;p<t.length;p++)c=d(r),c.startAt&&(c.startAt=d(c.startAt),c.startAt.cycle&&f(c.startAt,t,p)),_&&(f(c,t,p),null!=c.duration&&(e=c.duration,delete c.duration)),m.to(t[p],e,c,p*s);return this.add(m,a)},m.staggerFrom=function(t,e,i,n,r,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,a,o)},m.staggerFromTo=function(t,e,i,n,r,s,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,a,o,l)},m.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},m.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,a=new n(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=s;return o.add(a,0),a},m.add=function(r,s,a,o){var h,u,c,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=s,u=r.length,c=0;c<u;c++)l(d=r[c])&&(d=new n({tweens:d})),this.add(d,h),"string"!=typeof d&&"function"!=typeof d&&("sequence"===a?h=d._startTime+d.totalDuration()/d._timeScale:"start"===a&&(d._startTime-=d.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,p=f.rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},m.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),s===-1)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,a,o,l,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._startTime,m=this._timeScale,_=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(c=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!c;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(c=n),n=n._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),d=this._time,d>=p)for(n=this._first;n&&(a=n._next,d===this._time&&(!this._paused||_));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(c===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;else for(n=this._last;n&&(a=n._prev,d===this._time&&(!this._paused||_));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=a}this._onUpdate&&(e||(h.length&&u(),this._callback("onUpdate"))),o&&(this._gc||g!==this._startTime&&m===this._timeScale||(0===this._time||f>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<r||(a instanceof i?e!==!1&&(s[o++]=a):(n!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,n)),o=s.length))),a=a._next;return s},m.getTweensOf=function(t,e){var n,r,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[o++]=n[r]);return s&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},m.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(t){return t&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=_gsScope._gsDefine.globals,h=new i(null,null,1,0),u=n.prototype=new t;return u.constructor=n,u.kill()._gc=!1,n.version="1.19.1",u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},u.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},u.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},u.tweenTo=function(t,i){i=i||{};var n,r,s,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1},o=i.repeat&&l.TweenMax||e;for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,n,a),a.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&n===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&s._callback("onStart")},s},u.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,l,h,u,c,d,f,p=this._dirty?this.totalDuration():this._totalDuration,g=this._duration,m=this._time,_=this._totalTime,v=this._startTime,y=this._timeScale,b=this._rawPrevTime,x=this._paused,w=this._cycle;if(t>=p-1e-7)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,h="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||b<0||b===r)&&b!==t&&this._first&&(u=!0,b>r&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=g,t=g+1e-4);else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==m||0===g&&b!==r&&(b>0||t<0&&b>=0)&&!this._locked)&&(h="onReverseComplete",s=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=s=!0,h="onReverseComplete"):b>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=g||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(u=!0)}else if(0===g&&b<0&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=g+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&_<=t&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?(this._time=g,t=g+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e&&t<g){if(t=this._time,t>=m||this._repeat&&w!==this._cycle)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var T=this._yoyo&&0!==(1&w),C=T===(this._yoyo&&0!==(1&this._cycle)),S=this._totalTime,k=this._cycle,P=this._rawPrevTime,M=this._time;if(this._totalTime=w*g,this._cycle<w?T=!T:this._totalTime+=g,this._time=m,this._rawPrevTime=0===g?b-1e-4:b,this._cycle=w,this._locked=!0,m=T?0:g,this.render(m,e,0===g),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),m!==this._time)return;if(C&&(m=T?g+1e-4:-1e-4,this.render(m,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=M,this._totalTime=S,this._cycle=k,this._rawPrevTime=P}if(!(this._time!==m&&this._first||i||u||d))return void(_!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==_&&t>0&&(this._active=!0),0===_&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),f=this._time,f>=m)for(n=this._first;n&&(l=n._next,f===this._time&&(!this._paused||x));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,f===this._time&&(!this._paused||x));){if(n._active||n._startTime<=m&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(a.length&&o(),this._callback("onUpdate"))),h&&(this._locked||this._gc||v!==this._startTime&&y===this._timeScale||(0===this._time||p>=this.totalDuration())&&(s&&(a.length&&o(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this._callback(h)))},u.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],a=this.getChildren(t,e,i),o=0,l=a.length;for(n=0;n<l;n++)r=a[n],r.isActive()&&(s[o++]=r);return s},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;e<n;e++)if(i[e].time>t)return i[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},u.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.totalDuration=function(e){return arguments.length?this._repeat!==-1&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),function(){var t=180/Math.PI,e=[],i=[],n=[],r={},s=_gsScope._gsDefine.globals,a=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},o=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var r={a:t},s={},a={},o={c:n},l=(t+e)/2,h=(e+i)/2,u=(i+n)/2,c=(l+h)/2,d=(h+u)/2,f=(d-c)/8;return r.b=l+(t-l)/4,s.b=c+f,r.c=s.a=(r.b+s.b)/2,s.c=a.a=(c+d)/2,a.b=d-f,o.b=u+(n-u)/4,a.c=o.a=(a.b+o.b)/2,[r,s,a,o]},h=function(t,r,s,a,o){var h,u,c,d,f,p,g,m,_,v,y,b,x,w=t.length-1,T=0,C=t[0].a;for(h=0;h<w;h++)f=t[T],u=f.a,c=f.d,d=t[T+1].d,o?(y=e[h],b=i[h],x=(b+y)*r*.25/(a?.5:n[h]||.5),p=c-(c-u)*(a?.5*r:0!==y?x/y:0),g=c+(d-c)*(a?.5*r:0!==b?x/b:0),m=c-(p+((g-p)*(3*y/(y+b)+.5)/4||0))):(p=c-(c-u)*r*.5,g=c+(d-c)*r*.5,m=c-(p+g)/2),p+=m,g+=m,f.c=_=p,0!==h?f.b=C:f.b=C=f.a+.6*(f.c-f.a),f.da=c-u,f.ca=_-u,f.ba=C-u,s?(v=l(u,C,_,c),t.splice(T,1,v[0],v[1],v[2],v[3]),T+=4):T++,C=g;f=t[T],f.b=C,f.c=C+.4*(f.d-C),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=C-f.a,s&&(v=l(f.a,C,f.c,f.d),t.splice(T,1,v[0],v[1],v[2],v[3]))},u=function(t,n,r,s){var o,l,h,u,c,d,f=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(d=t[l][n])&&"="===d.charAt(1)&&(t[l][n]=s[n]+Number(d.charAt(0)+d.substr(2)));if(o=t.length-2,o<0)return f[0]=new a(t[0][n],0,0,t[o<-1?0:1][n]),f;for(l=0;l<o;l++)h=t[l][n],u=t[l+1][n],f[l]=new a(h,0,0,u),r&&(c=t[l+2][n],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return f[l]=new a(t[l][n],0,0,t[l+1][n]),f},c=function(t,s,a,l,c,d){var f,p,g,m,_,v,y,b,x={},w=[],T=d||t[0];c="string"==typeof c?","+c+",":o,null==s&&(s=1);for(p in t[0])w.push(p);if(t.length>1){for(b=t[t.length-1],y=!0,f=w.length;--f>-1;)if(p=w[f],Math.abs(T[p]-b[p])>.05){y=!1;break}y&&(t=t.concat(),d&&t.unshift(d),t.push(t[1]),d=t[t.length-3])}for(e.length=i.length=n.length=0,f=w.length;--f>-1;)p=w[f],r[p]=c.indexOf(","+p+",")!==-1,x[p]=u(t,p,r[p],d);for(f=e.length;--f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!l){for(f=w.length;--f>-1;)if(r[p])for(g=x[w[f]],v=g.length-1,m=0;m<v;m++)_=g[m+1].da/i[m]+g[m].da/e[m]||0,n[m]=(n[m]||0)+_*_;for(f=n.length;--f>-1;)n[f]=Math.sqrt(n[f])}for(f=w.length,m=a?4:1;--f>-1;)p=w[f],g=x[p],h(g,s,a,l,r[p]),y&&(g.splice(0,m),g.splice(g.length-m,m));return x},d=function(t,e,i){e=e||"soft";var n,r,s,o,l,h,u,c,d,f,p,g={},m="cubic"===e?3:2,_="soft"===e,v=[];if(_&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(d in t[0])v.push(d);for(h=v.length;--h>-1;){for(d=v[h],g[d]=l=[],f=0,c=t.length,u=0;u<c;u++)n=null==i?t[u][d]:"string"==typeof(p=t[u][d])&&"="===p.charAt(1)?i[d]+Number(p.charAt(0)+p.substr(2)):Number(p),_&&u>1&&u<c-1&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(c=f-m+1,f=0,u=0;u<c;u+=m)n=l[u],r=l[u+1],s=l[u+2],o=2===m?0:l[u+3],l[f++]=p=3===m?new a(n,r,s,o):new a(n,(2*r+n)/3,(2*r+s)/3,s);l.length=f}return g},f=function(t,e,i){for(var n,r,s,a,o,l,h,u,c,d,f,p=1/i,g=t.length;--g>-1;)for(d=t[g],s=d.a,a=d.d-s,o=d.c-s,l=d.b-s,n=r=0,u=1;u<=i;u++)h=p*u,c=1-h,n=r-(r=(h*h*a+3*c*(h*o+c*l))*h),f=g*i+u-1,e[f]=(e[f]||0)+n*n},p=function(t,e){e=e>>0||6;var i,n,r,s,a=[],o=[],l=0,h=0,u=e-1,c=[],d=[];for(i in t)f(t[i],a,e);
  for(r=a.length,n=0;n<r;n++)l+=Math.sqrt(a[n]),s=n%e,d[s]=l,s===u&&(h+=l,s=n/e>>0,c[s]=d,o[s]=h,l=0,d=[]);return{length:h,lengths:o,segments:c}},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,a,o,l=e.values||[],h={},u=l[0],f=e.autoRotate||i.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",f===!0?0:Number(f)||0]]:null;for(n in u)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],h[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),o||h[n]!==l[0][n]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):d(l,e.type,h),this._segCount=this._beziers[n].length,this._timeRes){var g=p(this._beziers,this._timeRes);this._length=g.length,this._lengths=g.lengths,this._segments=g.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(a=0;a<3;a++)n=f[s][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[s][2],this._initialRotations[s]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,a,o,l,h,u,c,d=this._segCount,f=this._func,p=this._target,g=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,r=this._li,e>this._l2&&r<d-1){for(h=d-1;r<h&&(this._l2=u[++r])<=e;);this._l1=u[r-1],this._li=r,this._curSeg=c=this._segments[r],this._s2=c[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=u[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=u[r],this._li=r,this._curSeg=c=this._segments[r],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<c.length-1){for(h=c.length-1;r<h&&(this._s2=c[++r])<=e;);this._s1=c[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=c[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=c[r],this._si=r}o=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else i=e<0?0:e>=1?d-1:d*e>>0,o=(e-i*(1/d))*d;for(n=1-o,r=this._props.length;--r>-1;)s=this._props[r],a=this._beziers[s][i],l=(o*o*a.da+3*n*(o*a.ca+n*a.ba))*o+a.a,this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l;if(this._autoRotate){var m,_,v,y,b,x,w,T=this._autoRotate;for(r=T.length;--r>-1;)s=T[r][2],x=T[r][3]||0,w=T[r][4]===!0?1:t,a=this._beziers[T[r][0]],m=this._beziers[T[r][1]],a&&m&&(a=a[i],m=m[i],_=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,_+=(y-_)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,b=m.b+(m.c-m.b)*o,v+=(b-v)*o,b+=(m.c+(m.d-m.c)*o-b)*o,l=g?Math.atan2(b-v,y-_)*w+x:this._initialRotations[r],this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l)}}}),m=g.prototype;g.bezierThrough=c,g.cubicToQuadratic=l,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new g;var h,u,c,d=e.values,f=d.length-1,p=[],m={};if(f<0)return o;for(h=0;h<=f;h++)c=i(t,d[h],a,o,l,f!==h),p[h]=c.end;for(u in e)m[u]=e[u];return m.values=p,o=new r(t,"bezier",0,0,c.pt,2),o.data=c,o.plugin=l,o.setRatio=n,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween),o}})}},m._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)e=t[i[n]],e&&"function"==typeof e&&(this._mod[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.19.1",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,d,f,p,g,m,_,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,C=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,k=/^(rgb|hsl)/,P=/([A-Z])/g,M=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,E=/[\s,\(]/i,F=Math.PI/180,N=180/Math.PI,B={},V=document,W=function(t){return V.createElementNS?V.createElementNS("http://www.w3.org/1999/xhtml",t):V.createElement(t)},z=W("div"),H=W("img"),Y=a._internals={_specialProps:l},U=navigator.userAgent,j=function(){var t=U.indexOf("Android"),e=W("a");return d=U.indexOf("Safari")!==-1&&U.indexOf("Chrome")===-1&&(t===-1||Number(U.substr(t+8,1))>3),p=d&&Number(U.substr(U.indexOf("Version/")+8,1))<6,f=U.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(g=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),X=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},G=function(t){window.console&&console.log(t)},q="",$="",Q=function(t,e){e=e||z;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?($=3===n?"ms":i[n],q="-"+$.toLowerCase()+"-",$+t):null},Z=V.defaultView?V.defaultView.getComputedStyle:function(){},J=a.getStyle=function(t,e,i,n,r){var s;return j||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||Z(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):X(t)},K=Y.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var o,l,h,u=O.test(i),c=t,d=z.style,f=n<0,p=1===n;if(f&&(n=-n),p&&(n*=100),"%"===r&&i.indexOf("border")!==-1)o=n/100*(u?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&c.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)d[u?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(c=t.parentNode||V.body,l=c._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*n/100;d[u?"width":"height"]=n+r}c.appendChild(z),o=parseFloat(z[u?"offsetWidth":"offsetHeight"]),c.removeChild(z),u&&"%"===r&&a.cacheWidths!==!1&&(l=c._gsCache=c._gsCache||{},l.time=h,l.width=o/n*100),0!==o||s||(o=K(t,i,n,r,!0))}return p&&(o/=100),f?-o:o},tt=Y.calculateOffset=function(t,e,i){if("absolute"!==J(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=J(t,"margin"+n,i);return t["offset"+n]-(K(t,e,parseFloat(r),r.replace(w,""))||0)},et=function(t,e){var i,n,r,s={};if(e=e||Z(t,null))if(i=e.length)for(;--i>-1;)r=e[i],r.indexOf("-transform")!==-1&&Mt!==r||(s[r.replace(M,D)]=e.getPropertyValue(r));else for(i in e)i.indexOf("Transform")!==-1&&Pt!==i||(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(M,D)]=e[i]);return j||(s.opacity=X(t)),n=zt(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,Dt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},it=function(t,e,i,n,r){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||r&&r[a])&&a.indexOf("Origin")===-1&&("number"!=typeof s&&"string"!=typeof s||(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(x,"")?s:0:tt(t,a),void 0!==h[a]&&(o=new _t(h,a,h[a],o))));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}},nt={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],st=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Z(t))[e]||0;if(t.getBBox&&Bt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=nt[e],s=r.length;for(i=i||Z(t,null);--s>-1;)n-=parseFloat(J(t,"padding"+r[s],i,!0))||0,n-=parseFloat(J(t,"border"+r[s]+"Width",i,!0))||0;return n},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,n=t.split(" "),r=t.indexOf("left")!==-1?"0%":t.indexOf("right")!==-1?"100%":n[0],s=t.indexOf("top")!==-1?"0%":t.indexOf("bottom")!==-1?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(at(n[i]));return t.join(",")}return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&(r+"").indexOf("=")===-1)&&(r="50%"),t=r+" "+s+(n.length>2?" "+n[2]:""),e&&(e.oxp=r.indexOf("%")!==-1,e.oyp=s.indexOf("%")!==-1,e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(x,"")),e.oy=parseFloat(s.replace(x,"")),e.v=t),e||t},ot=function(t,e){return"function"==typeof t&&(t=t(_,m)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(_,m)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ht=function(t,e,i,n){var r,s,a,o,l,h=1e-6;return"function"==typeof t&&(t=t(_,m)),null==t?o=e:"number"==typeof t?o=t:(r=360,s=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(t.indexOf("rad")===-1?1:N)-(l?0:e),s.length&&(n&&(n[i]=e+a),t.indexOf("short")!==-1&&(a%=r,a!==a%(r/2)&&(a=a<0?a+r:a-r)),t.indexOf("_cw")!==-1&&a<0?a=(a+9999999999*r)%r-(a/r|0)*r:t.indexOf("ccw")!==-1&&a>0&&(a=(a-9999999999*r)%r-(a/r|0)*r)),o=e+a),o<h&&o>-h&&(o=0),o},ut={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ct=function(t,e,i){return t=t<0?t+1:t>1?t-1:t,255*(6*t<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},dt=a.parseColor=function(t,e){var i,n,r,s,a,o,l,h,u,c,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ut[t])i=ut[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(v),e){if(t.indexOf("=")!==-1)return t.match(y)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,r=l<=.5?l*(o+1):l+o-l*o,n=2*l-r,i.length>3&&(i[3]=Number(t[3])),i[0]=ct(a+1/3,n,r),i[1]=ct(a,n,r),i[2]=ct(a-1/3,n,r);else i=t.match(v)||ut.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ut.black;return e&&!d&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,h=Math.max(n,r,s),u=Math.min(n,r,s),l=(h+u)/2,h===u?a=o=0:(c=h-u,o=l>.5?c/(2-h-u):c/(h+u),a=h===n?(r-s)/c+(r<s?6:0):h===r?(s-n)/c+2:(n-r)/c+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,n,r,s=t.match(pt)||[],a=0,o=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],r=t.substr(a,t.indexOf(n,a)-a),a+=r.length+n.length,n=dt(n,e),3===n.length&&n.push(1),o+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(a)},pt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in ut)pt+="|"+h+"\\b";pt=new RegExp(pt+")","gi"),a.colorStringFilter=function(t){var e,i=t[0]+t[1];pt.test(i)&&(e=i.indexOf("hsl(")!==-1||i.indexOf("hsla(")!==-1,t[0]=ft(t[0],e),t[1]=ft(t[1],e)),pt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var gt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(pt)||[""])[0]:"",a=t.split(s).join("").match(b)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=t.indexOf(" ")!==-1?" ":",",u=a.length,c=u>0?a[0].replace(v,""):"";return u?r=e?function(t){var e,d,f,p;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(p=t.replace(I,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(pt)||[s])[0],d=t.split(e).join("").match(b)||[],f=d.length,u>f--)for(;++f<u;)d[f]=i?d[(f-1)/2|0]:a[f];return o+d.join(h)+h+e+l+(t.indexOf("inset")!==-1?" inset":"")}:function(t){var e,s,d;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(s=t.replace(I,"|").split("|"),d=0;d<s.length;d++)s[d]=r(s[d]);return s.join(",")}if(e=t.match(b)||[],d=e.length,u>d--)for(;++d<u;)e[d]=i?e[(d-1)/2|0]:a[d];return o+e.join(h)+l}:function(t){return t}},mt=function(t){return t=t.split(","),function(e,i,n,r,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;l<4;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return r.parse(e,o,s,a)}},_t=(Y._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,a=this.data,o=a.proxy,l=a.firstMPT,h=1e-6;l;)e=o[l.v],l.r?e=Math.round(e):e<h&&e>-h&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),vt=(Y._parseToProxy=function(t,e,i,n,r,s){var a,o,l,h,u,c=n,d={},f={},p=i._transform,g=B;for(i._transform=null,B=e,n=u=i.parse(t,e,n,r),B=g,s&&(i._transform=p,c&&(c._prev=null,c._prev&&(c._prev._next=null)));n&&n!==c;){if(n.type<=1&&(o=n.p,f[o]=n.s+n.c,d[o]=n.s,s||(h=new _t(n,"s",o,h,n.r),n.c=0),1===n.type))for(a=n.l;--a>0;)l="xn"+a,o=n.p+"_"+l,f[o]=n.data[l],d[o]=n[l],s||(h=new _t(n,l,o,h,n.rxp[l]));n=n._next}return{proxy:d,end:f,firstMPT:h,pt:u}},Y.CSSPropTween=function(t,e,n,r,a,o,l,h,u,c,d){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof vt||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===c?n:c,this.e=void 0===d?n+r:d,a&&(this._next=a,a._prev=this)}),yt=function(t,e,i,n,r,s){var a=new vt(t,e,i,n-i,r,(-1),s);return a.b=i,a.e=a.xs0=n,a},bt=a.parseComplex=function(t,e,i,n,r,s,o,l,h,c){i=i||s||"","function"==typeof n&&(n=n(_,m)),o=new vt(t,e,0,0,o,c?2:1,null,(!1),l,i,n),n+="",r&&pt.test(n+i)&&(n=[i,n],a.colorStringFilter(n),i=n[0],n=n[1]);var d,f,p,g,b,x,w,T,C,S,k,P,M,A=i.split(", ").join(",").split(" "),D=n.split(", ").join(",").split(" "),O=A.length,R=u!==!1;for(n.indexOf(",")===-1&&i.indexOf(",")===-1||(A=A.join(" ").replace(I,", ").split(" "),D=D.join(" ").replace(I,", ").split(" "),O=A.length),O!==D.length&&(A=(s||"").split(" "),O=A.length),o.plugin=h,o.setRatio=c,pt.lastIndex=0,d=0;d<O;d++)if(g=A[d],b=D[d],T=parseFloat(g),T||0===T)o.appendXtra("",T,ot(b,T),b.replace(y,""),R&&b.indexOf("px")!==-1,!0);else if(r&&pt.test(g))P=b.indexOf(")")+1,P=")"+(P?b.substr(P):""),M=b.indexOf("hsl")!==-1&&j,g=dt(g,M),b=dt(b,M),C=g.length+b.length>6,C&&!j&&0===b[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(D[d]).join("transparent")):(j||(C=!1),M?o.appendXtra(C?"hsla(":"hsl(",g[0],ot(b[0],g[0]),",",!1,!0).appendXtra("",g[1],ot(b[1],g[1]),"%,",!1).appendXtra("",g[2],ot(b[2],g[2]),C?"%,":"%"+P,!1):o.appendXtra(C?"rgba(":"rgb(",g[0],b[0]-g[0],",",!0,!0).appendXtra("",g[1],b[1]-g[1],",",!0).appendXtra("",g[2],b[2]-g[2],C?",":P,!0),C&&(g=g.length<4?1:g[3],o.appendXtra("",g,(b.length<4?1:b[3])-g,P,!1))),pt.lastIndex=0;else if(x=g.match(v)){if(w=b.match(y),!w||w.length!==x.length)return o;for(p=0,f=0;f<x.length;f++)k=x[f],S=g.indexOf(k,p),o.appendXtra(g.substr(p,S-p),Number(k),ot(w[f],k),"",R&&"px"===g.substr(S+k.length,2),0===f),p=S+k.length;o["xs"+o.l]+=g.substr(p)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+b:b;if(n.indexOf("=")!==-1&&o.data){for(P=o.xs0+o.data.s,d=1;d<o.l;d++)P+=o["xs"+d]+o.data["xn"+d];o.e=P+o["xs"+d]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},xt=9;for(h=vt.prototype,h.l=h.pr=0;--xt>0;)h["xn"+xt]=0,h["xs"+xt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,n,r,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new vt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(n||""),a)};var wt=function(t,e){e=e||{},this.p=e.prefix?Q(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Tt=Y._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,s=t.split(","),a=e.defaultValue;for(i=i||[a],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||a,r=new wt(s[n],e)},Ct=Y._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,i,n,r,s,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[n].parse(t,i,n,r,s,a,h)):(G("Error: "+e+" js file not loaded."),s)}})}};h=wt.prototype,h.parseComplex=function(t,e,i,n,r,s){var a,o,l,h,u,c,d=this.keyword;if(this.multi&&(I.test(i)||I.test(e)?(o=e.replace(I,"|").split("|"),l=i.replace(I,"|").split("|")):d&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,d&&(u=e.indexOf(d),c=i.indexOf(d),u!==c&&(c===-1?o[a]=o[a].split(d).join(""):u===-1&&(o[a]+=" "+d)));e=o.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},h.parse=function(t,e,i,n,s,a,o){return this.parseComplex(t.style,this.format(J(t,this.p,r,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){Tt(t,{parser:function(t,n,r,s,a,o,l){var h=new vt(t,r,0,0,a,2,r,(!1),i);return h.plugin=o,h.setRatio=e(t,n,s._tween,r),h},priority:i})},a.useSVGTransformAttr=d||f;var St,kt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pt=Q("transform"),Mt=q+"transform",At=Q("transformOrigin"),Dt=null!==Q("perspective"),Ot=Y.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(a.defaultForce3D===!1||!Dt)&&(a.defaultForce3D||"auto")},Rt=window.SVGElement,Lt=function(t,e,i){var n,r=V.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},It=V.documentElement,Et=function(){var t,e,i,n=g||/Android/i.test(U)&&!window.chrome;return V.createElementNS&&!n&&(t=Lt("svg",It),e=Lt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[At]="50% 50%",e.style[Pt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&Dt),It.removeChild(t)),n}(),Ft=function(t,e,i,n,r,s){var o,l,h,u,c,d,f,p,g,m,_,v,y,b,x=t._gsTransform,w=Wt(t,!0);x&&(y=x.xOrigin,b=x.yOrigin),(!n||(o=n.split(" ")).length<2)&&(f=t.getBBox(),0===f.x&&0===f.y&&f.width+f.height===0&&(f={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),e=at(e).split(" "),o=[(e[0].indexOf("%")!==-1?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(e[1].indexOf("%")!==-1?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=u=parseFloat(o[0]),i.yOrigin=c=parseFloat(o[1]),n&&w!==Vt&&(d=w[0],f=w[1],p=w[2],g=w[3],m=w[4],_=w[5],v=d*g-f*p,l=u*(g/v)+c*(-p/v)+(p*_-g*m)/v,h=u*(-f/v)+c*(d/v)-(d*_-f*m)/v,u=i.xOrigin=o[0]=l,c=i.yOrigin=o[1]=h),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),r||r!==!1&&a.defaultSmoothOrigin!==!1?(l=u-y,h=c-b,x.xOffset+=l*w[0]+h*w[2]-l,x.yOffset+=l*w[1]+h*w[3]-h):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))},Nt=function(t){try{return t.getBBox()}catch(t){}},Bt=function(t){return!!(Rt&&t.getBBox&&t.getCTM&&Nt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Vt=[1,0,0,1,0,0],Wt=function(t,e){var i,n,r,s,a,o,l=t._gsTransform||new Ot,h=1e5,u=t.style;if(Pt?n=J(t,Mt,null,!0):t.currentStyle&&(n=t.currentStyle.filter.match(R),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,i&&Pt&&((o="none"===Z(t).display)||!t.parentNode)&&(o&&(s=u.display,u.display="block"),t.parentNode||(a=1,It.appendChild(t)),n=J(t,Mt,null,!0),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,s?u.display=s:o&&jt(u,"display"),a&&It.removeChild(t)),(l.svg||t.getBBox&&Bt(t))&&(i&&(u[Pt]+"").indexOf("matrix")!==-1&&(n=u[Pt],i=0),r=t.getAttribute("transform"),i&&r&&(r.indexOf("matrix")!==-1?(n=r,i=0):r.indexOf("translate")!==-1&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Vt;for(r=(n||"").match(v)||[],xt=r.length;--xt>-1;)s=Number(r[xt]),r[xt]=(a=s-(s|=0))?(a*h+(a<0?-.5:.5)|0)/h+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},zt=Y.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var s,o,l,h,u,c,d=n?t._gsTransform||new Ot:new Ot,f=d.scaleX<0,p=2e-5,g=1e5,m=Dt?parseFloat(J(t,At,i,!1,"0 0 0").split(" ")[2])||d.zOrigin||0:0,_=parseFloat(a.defaultTransformPerspective)||0;if(d.svg=!(!t.getBBox||!Bt(t)),d.svg&&(Ft(t,J(t,At,i,!1,"50% 50%")+"",d,t.getAttribute("data-svg-origin")),St=a.useSVGTransformAttr||Et),s=Wt(t),s!==Vt){if(16===s.length){var v,y,b,x,w,T=s[0],C=s[1],S=s[2],k=s[3],P=s[4],M=s[5],A=s[6],D=s[7],O=s[8],R=s[9],L=s[10],I=s[12],E=s[13],F=s[14],B=s[11],V=Math.atan2(A,L);d.zOrigin&&(F=-d.zOrigin,I=O*F-s[12],E=R*F-s[13],F=L*F+d.zOrigin-s[14]),d.rotationX=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=P*x+O*w,y=M*x+R*w,b=A*x+L*w,O=P*-w+O*x,R=M*-w+R*x,L=A*-w+L*x,B=D*-w+B*x,P=v,M=y,A=b),V=Math.atan2(-S,L),d.rotationY=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=T*x-O*w,y=C*x-R*w,b=S*x-L*w,R=C*w+R*x,L=S*w+L*x,B=k*w+B*x,T=v,C=y,S=b),V=Math.atan2(C,T),d.rotation=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),T=T*x+P*w,y=C*x+M*w,M=C*-w+M*x,A=S*-w+A*x,C=y),d.rotationX&&Math.abs(d.rotationX)+Math.abs(d.rotation)>359.9&&(d.rotationX=d.rotation=0,d.rotationY=180-d.rotationY),d.scaleX=(Math.sqrt(T*T+C*C)*g+.5|0)/g,d.scaleY=(Math.sqrt(M*M+R*R)*g+.5|0)/g,d.scaleZ=(Math.sqrt(A*A+L*L)*g+.5|0)/g,d.rotationX||d.rotationY?d.skewX=0:(d.skewX=P||M?Math.atan2(P,M)*N+d.rotation:d.skewX||0,Math.abs(d.skewX)>90&&Math.abs(d.skewX)<270&&(f?(d.scaleX*=-1,d.skewX+=d.rotation<=0?180:-180,d.rotation+=d.rotation<=0?180:-180):(d.scaleY*=-1,d.skewX+=d.skewX<=0?180:-180))),d.perspective=B?1/(B<0?-B:B):0,d.x=I,d.y=E,d.z=F,d.svg&&(d.x-=d.xOrigin-(d.xOrigin*T-d.yOrigin*P),d.y-=d.yOrigin-(d.yOrigin*C-d.xOrigin*M))}else if(!Dt||r||!s.length||d.x!==s[4]||d.y!==s[5]||!d.rotationX&&!d.rotationY){var W=s.length>=6,z=W?s[0]:1,H=s[1]||0,Y=s[2]||0,U=W?s[3]:1;d.x=s[4]||0,d.y=s[5]||0,l=Math.sqrt(z*z+H*H),h=Math.sqrt(U*U+Y*Y),u=z||H?Math.atan2(H,z)*N:d.rotation||0,c=Y||U?Math.atan2(Y,U)*N+u:d.skewX||0,Math.abs(c)>90&&Math.abs(c)<270&&(f?(l*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(h*=-1,c+=c<=0?180:-180)),d.scaleX=l,d.scaleY=h,d.rotation=u,d.skewX=c,Dt&&(d.rotationX=d.rotationY=d.z=0,d.perspective=_,d.scaleZ=1),d.svg&&(d.x-=d.xOrigin-(d.xOrigin*z+d.yOrigin*Y),d.y-=d.yOrigin-(d.xOrigin*H+d.yOrigin*U))}d.zOrigin=m;for(o in d)d[o]<p&&d[o]>-p&&(d[o]=0)}return n&&(t._gsTransform=d,d.svg&&(St&&t.style[Pt]?e.delayedCall(.001,function(){jt(t.style,Pt)}):!St&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),d},Ht=function(t){var e,i,n=this.data,r=-n.rotation*F,s=r+n.skewX*F,a=1e5,o=(Math.cos(r)*n.scaleX*a|0)/a,l=(Math.sin(r)*n.scaleX*a|0)/a,h=(Math.sin(s)*-n.scaleY*a|0)/a,u=(Math.cos(s)*n.scaleY*a|0)/a,c=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-h,h=-i,e=d.filter,c.filter="";var f,p,m=this.t.offsetWidth,_=this.t.offsetHeight,v="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,b=n.x+m*n.xPercent/100,x=n.y+_*n.yPercent/100;if(null!=n.ox&&(f=(n.oxp?m*n.ox*.01:n.ox)-m/2,p=(n.oyp?_*n.oy*.01:n.oy)-_/2,b+=f-(f*o+p*l),x+=p-(f*h+p*u)),v?(f=m/2,p=_/2,y+=", Dx="+(f-(f*o+p*l)+b)+", Dy="+(p-(f*h+p*u)+x)+")"):y+=", sizingMethod='auto expand')",e.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?c.filter=e.replace(L,y):c.filter=y+" "+e,0!==t&&1!==t||1===o&&0===l&&0===h&&1===u&&(v&&y.indexOf("Dx=0, Dy=0")===-1||T.test(e)&&100!==parseFloat(RegExp.$1)||e.indexOf(e.indexOf("Alpha"))===-1&&c.removeAttribute("filter")),!v){var C,S,k,P=g<8?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((o<0?-o:o)*m+(l<0?-l:l)*_))/2+b),n.ieOffsetY=Math.round((_-((u<0?-u:u)*_+(h<0?-h:h)*m))/2+x),xt=0;xt<4;xt++)S=rt[xt],C=d[S],i=C.indexOf("px")!==-1?parseFloat(C):K(this.t,S,parseFloat(C),C.replace(w,""))||0,k=i!==n[S]?xt<2?-n.ieOffsetX:-n.ieOffsetY:xt<2?f-n.ieOffsetX:p-n.ieOffsetY,c[S]=(n[S]=Math.round(i-k*(0===xt||2===xt?1:P)))+"px"}}},Yt=Y.set3DTransformRatio=Y.setTransformRatio=function(t){var e,i,n,r,s,a,o,l,h,u,c,d,p,g,m,_,v,y,b,x,w,T,C,S=this.data,k=this.t.style,P=S.rotation,M=S.rotationX,A=S.rotationY,D=S.scaleX,O=S.scaleY,R=S.scaleZ,L=S.x,I=S.y,E=S.z,N=S.svg,B=S.perspective,V=S.force3D,W=S.skewY,z=S.skewX;if(W&&(z+=W,P+=W),((1===t||0===t)&&"auto"===V&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!V)&&!E&&!B&&!A&&!M&&1===R||St&&N||!Dt)return void(P||z||N?(P*=F,T=z*F,C=1e5,e=Math.cos(P)*D,r=Math.sin(P)*D,i=Math.sin(P-T)*-O,s=Math.cos(P-T)*O,T&&"simple"===S.skewType&&(v=Math.tan(T-W*F),v=Math.sqrt(1+v*v),i*=v,s*=v,W&&(v=Math.tan(W*F),v=Math.sqrt(1+v*v),e*=v,r*=v)),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset,St&&(S.xPercent||S.yPercent)&&(g=this.t.getBBox(),L+=.01*S.xPercent*g.width,I+=.01*S.yPercent*g.height),g=1e-6,L<g&&L>-g&&(L=0),I<g&&I>-g&&(I=0)),b=(e*C|0)/C+","+(r*C|0)/C+","+(i*C|0)/C+","+(s*C|0)/C+","+L+","+I+")",N&&St?this.t.setAttribute("transform","matrix("+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+D+",0,0,"+O+","+L+","+I+")");if(f&&(g=1e-4,D<g&&D>-g&&(D=R=2e-5),O<g&&O>-g&&(O=R=2e-5),!B||S.z||S.rotationX||S.rotationY||(B=0)),P||z)P*=F,m=e=Math.cos(P),_=r=Math.sin(P),z&&(P-=z*F,m=Math.cos(P),_=Math.sin(P),"simple"===S.skewType&&(v=Math.tan((z-W)*F),v=Math.sqrt(1+v*v),m*=v,_*=v,S.skewY&&(v=Math.tan(W*F),v=Math.sqrt(1+v*v),e*=v,r*=v))),i=-_,s=m;else{if(!(A||M||1!==R||B||N))return void(k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+I+"px,"+E+"px)"+(1!==D||1!==O?" scale("+D+","+O+")":""));e=s=1,i=r=0}h=1,n=a=o=l=u=c=0,d=B?-1/B:0,p=S.zOrigin,g=1e-6,x=",",w="0",P=A*F,P&&(m=Math.cos(P),_=Math.sin(P),o=-_,u=d*-_,n=e*_,a=r*_,h=m,d*=m,e*=m,r*=m),P=M*F,P&&(m=Math.cos(P),_=Math.sin(P),v=i*m+n*_,y=s*m+a*_,l=h*_,c=d*_,n=i*-_+n*m,a=s*-_+a*m,h*=m,d*=m,i=v,s=y),1!==R&&(n*=R,a*=R,h*=R,d*=R),1!==O&&(i*=O,s*=O,l*=O,c*=O),1!==D&&(e*=D,r*=D,o*=D,u*=D),(p||N)&&(p&&(L+=n*-p,I+=a*-p,E+=h*-p+p),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset),L<g&&L>-g&&(L=w),I<g&&I>-g&&(I=w),E<g&&E>-g&&(E=0)),b=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",b+=(e<g&&e>-g?w:e)+x+(r<g&&r>-g?w:r)+x+(o<g&&o>-g?w:o),b+=x+(u<g&&u>-g?w:u)+x+(i<g&&i>-g?w:i)+x+(s<g&&s>-g?w:s),M||A||1!==R?(b+=x+(l<g&&l>-g?w:l)+x+(c<g&&c>-g?w:c)+x+(n<g&&n>-g?w:n),b+=x+(a<g&&a>-g?w:a)+x+(h<g&&h>-g?w:h)+x+(d<g&&d>-g?w:d)+x):b+=",0,0,0,0,1,0,",b+=L+x+I+x+E+x+(B?1+-E/B:1)+")",k[Pt]=b};h=Ot.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,o,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var h;"function"==typeof l[i]&&(h=l[i],l[i]=e);var u,c,d,f,p,g,v,y,b,x=t._gsTransform,w=t.style,T=1e-6,C=kt.length,S=l,k={},P="transformOrigin",M=zt(t,r,!0,S.parseTransform),A=S.transform&&("function"==typeof S.transform?S.transform(_,m):S.transform);if(n._transform=M,A&&"string"==typeof A&&Pt)c=z.style,c[Pt]=A,c.display="block",c.position="absolute",V.body.appendChild(z),u=zt(z,null,!1),M.svg&&(g=M.xOrigin,v=M.yOrigin,u.x-=M.xOffset,u.y-=M.yOffset,(S.transformOrigin||S.svgOrigin)&&(A={},Ft(t,at(S.transformOrigin),A,S.svgOrigin,S.smoothOrigin,!0),g=A.xOrigin,v=A.yOrigin,u.x-=A.xOffset-M.xOffset,u.y-=A.yOffset-M.yOffset),(g||v)&&(y=Wt(z,!0),u.x-=g-(g*y[0]+v*y[2]),u.y-=v-(g*y[1]+v*y[3]))),V.body.removeChild(z),u.perspective||(u.perspective=M.perspective),null!=S.xPercent&&(u.xPercent=lt(S.xPercent,M.xPercent)),null!=S.yPercent&&(u.yPercent=lt(S.yPercent,M.yPercent));else if("object"==typeof S){if(u={scaleX:lt(null!=S.scaleX?S.scaleX:S.scale,M.scaleX),scaleY:lt(null!=S.scaleY?S.scaleY:S.scale,M.scaleY),scaleZ:lt(S.scaleZ,M.scaleZ),x:lt(S.x,M.x),y:lt(S.y,M.y),z:lt(S.z,M.z),xPercent:lt(S.xPercent,M.xPercent),yPercent:lt(S.yPercent,M.yPercent),perspective:lt(S.transformPerspective,M.perspective)},p=S.directionalRotation,null!=p)if("object"==typeof p)for(c in p)S[c]=p[c];else S.rotation=p;"string"==typeof S.x&&S.x.indexOf("%")!==-1&&(u.x=0,u.xPercent=lt(S.x,M.xPercent)),"string"==typeof S.y&&S.y.indexOf("%")!==-1&&(u.y=0,u.yPercent=lt(S.y,M.yPercent)),u.rotation=ht("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:M.rotation,M.rotation,"rotation",k),Dt&&(u.rotationX=ht("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":M.rotationX||0,M.rotationX,"rotationX",k),u.rotationY=ht("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":M.rotationY||0,M.rotationY,"rotationY",k)),u.skewX=ht(S.skewX,M.skewX),u.skewY=ht(S.skewY,M.skewY);
  }for(Dt&&null!=S.force3D&&(M.force3D=S.force3D,f=!0),M.skewType=S.skewType||M.skewType||a.defaultSkewType,d=M.force3D||M.z||M.rotationX||M.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,d||null==S.scale||(u.scaleZ=1);--C>-1;)b=kt[C],A=u[b]-M[b],(A>T||A<-T||null!=S[b]||null!=B[b])&&(f=!0,s=new vt(M,b,M[b],A,s),b in k&&(s.e=k[b]),s.xs0=0,s.plugin=o,n._overwriteProps.push(s.n));return A=S.transformOrigin,M.svg&&(A||S.svgOrigin)&&(g=M.xOffset,v=M.yOffset,Ft(t,at(A),u,S.svgOrigin,S.smoothOrigin),s=yt(M,"xOrigin",(x?M:u).xOrigin,u.xOrigin,s,P),s=yt(M,"yOrigin",(x?M:u).yOrigin,u.yOrigin,s,P),g===M.xOffset&&v===M.yOffset||(s=yt(M,"xOffset",x?g:M.xOffset,M.xOffset,s,P),s=yt(M,"yOffset",x?v:M.yOffset,M.yOffset,s,P)),A=St?null:"0px 0px"),(A||Dt&&d&&M.zOrigin)&&(Pt?(f=!0,b=At,A=(A||J(t,b,r,!1,"50% 50%"))+"",s=new vt(w,b,0,0,s,(-1),P),s.b=w[b],s.plugin=o,Dt?(c=M.zOrigin,A=A.split(" "),M.zOrigin=(A.length>2&&(0===c||"0px"!==A[2])?parseFloat(A[2]):c)||0,s.xs0=s.e=A[0]+" "+(A[1]||"50%")+" 0px",s=new vt(M,"zOrigin",0,0,s,(-1),s.n),s.b=c,s.xs0=s.e=M.zOrigin):s.xs0=s.e=A):at(A+"",M)),f&&(n._transformType=M.svg&&St||!d&&3!==this._transformType?2:3),h&&(l[i]=h),s},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,h,u,c,d,f,p,g,m,_,v,y,b,x,w,T,C=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(m=parseFloat(t.offsetWidth),_=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<C.length;h++)this.p.indexOf("border")&&(C[h]=Q(C[h])),d=c=J(t,C[h],r,!1,"0px"),d.indexOf(" ")!==-1&&(c=d.split(" "),d=c[0],c=c[1]),f=u=l[h],p=parseFloat(d),y=d.substr((p+"").length),b="="===f.charAt(1),b?(g=parseInt(f.charAt(0)+"1",10),f=f.substr(2),g*=parseFloat(f),v=f.substr((g+"").length-(g<0?1:0))||""):(g=parseFloat(f),v=f.substr((g+"").length)),""===v&&(v=n[i]||y),v!==y&&(x=K(t,"borderLeft",p,y),w=K(t,"borderTop",p,y),"%"===v?(d=x/m*100+"%",c=w/_*100+"%"):"em"===v?(T=K(t,"borderLeft",1,"em"),d=x/T+"em",c=w/T+"em"):(d=x+"px",c=w+"px"),b&&(f=parseFloat(d)+g+v,u=parseFloat(c)+g+v)),a=bt(S,C[h],d+" "+c,f+" "+u,!1,"0px",a);return a},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,a){return bt(t.style,i,this.format(J(t,i,r,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,a){var o,l,h,u,c,d,f="background-position",p=r||Z(t,null),m=this.format((p?g?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),_=this.format(e);if(m.indexOf("%")!==-1!=(_.indexOf("%")!==-1)&&_.split(",").length<2&&(d=J(t,"backgroundImage").replace(A,""),d&&"none"!==d)){for(o=m.split(" "),l=_.split(" "),H.setAttribute("src",d),h=2;--h>-1;)m=o[h],u=m.indexOf("%")!==-1,u!==(l[h].indexOf("%")!==-1)&&(c=0===h?t.offsetWidth-H.width:t.offsetHeight-H.height,o[h]=u?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=o.join(" ")}return this.parseComplex(t.style,m,_,s,a)},formatter:at}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",at(t.indexOf(" ")===-1?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:mt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:mt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,a){var o,l,h;return g<9?(l=t.currentStyle,h=g<8?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(J(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,a){var o=J(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(w,"");return"px"!==h&&(o=parseFloat(o)/K(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+J(t,"borderTopStyle",r,!1,"solid")+" "+J(t,"borderTopColor",r,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(pt)||["#000"])[0]}}),Tt("borderWidth",{parser:mt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new vt(a,o,0,0,r,(-1),i,(!1),0,a[o],e)}});var Ut=function(t){var e,i=this.t,n=i.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(n.indexOf("atrix(")===-1&&n.indexOf("radient(")===-1&&n.indexOf("oader(")===-1?(i.removeAttribute("filter"),e=!J(this.data,"filter")):(i.filter=n.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),n.indexOf("pacity")===-1?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(T,"opacity="+r))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,a){var o=parseFloat(J(t,"opacity",r,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===J(t,"visibility",r)&&0!==e&&(o=0),j?s=new vt(l,"opacity",o,e-o,s):(s=new vt(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Ut),h&&(s=new vt(l,"visibility",0,0,s,(-1),null,(!1),0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var jt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:jt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(t,e,n,s,a,o,l){var h,u,c,d,f,p=t.getAttribute("class")||"",g=t.style.cssText;if(a=s._classNamePT=new vt(t,n,0,0,a,2),a.setRatio=Xt,a.pr=-11,i=!0,a.b=p,u=et(t,r),c=t._gsClassPT){for(d={},f=c.data;f;)d[f.p]=1,f=f._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=it(t,u,et(t),l,d),t.setAttribute("class",p),a.data=h.firstMPT,t.style.cssText=g,a=a.xfirst=s.parse(t,h.difs,a,o)}});var Gt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===o?r=!0:i="transformOrigin"===i?At:l[i].p),jt(a,i);r&&(jt(a,Pt),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(t,e,n,r,s){return s=new vt(t,n,0,0,s,2),s.setRatio=Gt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),xt=h.length;xt--;)Ct(h[xt]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o,h){if(!t.nodeType)return!1;this._target=m=t,this._tween=o,this._vars=e,_=h,u=e.autoRound,i=!1,n=e.suffixMap||a.suffixMap,r=Z(t,""),s=this._overwriteProps;var f,g,v,y,b,x,w,T,S,k=t.style;if(c&&""===k.zIndex&&(f=J(t,"zIndex",r),"auto"!==f&&""!==f||this._addLazySet(k,"zIndex",0)),"string"==typeof e&&(y=k.cssText,f=et(t,r),k.cssText=y+";"+e,f=it(t,f,et(t)).difs,!j&&C.test(e)&&(f.opacity=parseFloat(RegExp.$1)),e=f,k.cssText=y),e.className?this._firstPT=g=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=g=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,Pt?d&&(c=!0,""===k.zIndex&&(w=J(t,"zIndex",r),"auto"!==w&&""!==w||this._addLazySet(k,"zIndex",0)),p&&this._addLazySet(k,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):k.zoom=1,v=g;v&&v._next;)v=v._next;T=new vt(t,"transform",0,0,null,2),this._linkCSSP(T,null,v),T.setRatio=Pt?Yt:Ht,T.data=this._transform||zt(t,r,!0),T.tween=o,T.pr=-1,s.pop()}if(i){for(;g;){for(x=g._next,v=y;v&&v.pr>g.pr;)v=v._next;(g._prev=v?v._prev:b)?g._prev._next=g:y=g,(g._next=v)?v._prev=g:b=g,g=x}this._firstPT=y}return!0},h.parse=function(t,e,i,s){var a,o,h,c,d,f,p,g,v,y,b=t.style;for(a in e)f=e[a],"function"==typeof f&&(f=f(_,m)),o=l[a],o?i=o.parse(t,f,a,this,i,s,e):(d=J(t,a,r)+"",v="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||a.indexOf("Color")!==-1||v&&k.test(f)?(v||(f=dt(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=bt(b,a,d,f,!0,"transparent",i,0,s)):v&&E.test(f)?i=bt(b,a,d,f,!0,null,i,0,s):(h=parseFloat(d),p=h||0===h?d.substr((h+"").length):"",""!==d&&"auto"!==d||("width"===a||"height"===a?(h=st(t,a,r),p="px"):"left"===a||"top"===a?(h=tt(t,a,r),p="px"):(h="opacity"!==a?0:1,p="")),y=v&&"="===f.charAt(1),y?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),g=f.replace(w,"")):(c=parseFloat(f),g=v?f.replace(w,""):""),""===g&&(g=a in n?n[a]:p),f=c||0===c?(y?c+h:c)+g:e[a],p!==g&&""!==g&&(c||0===c)&&h&&(h=K(t,a,h,p),"%"===g?(h/=K(t,a,100,"%")/100,e.strictUnits!==!0&&(d=h+"%")):"em"===g||"rem"===g||"vw"===g||"vh"===g?h/=K(t,a,1,g):"px"!==g&&(c=K(t,a,c,g),g="px"),y&&(c||0===c)&&(f=c+h+g)),y&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==b[a]&&(f||f+""!="NaN"&&null!=f)?(i=new vt(b,a,c||h||0,0,i,(-1),a,(!1),0,d,f),i.xs0="none"!==f||"display"!==a&&a.indexOf("Style")===-1?f:d):G("invalid "+a+" tween value: "+e[a]):(i=new vt(b,a,h,c-h,i,0,a,u!==!1&&("px"===g||"zIndex"===a),0,d,f),i.xs0=g))),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,n,r=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):e<s&&e>-s&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else r.type===-1?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&r.type!==-1)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},h._enableTransforms=function(t){this._transform=this._transform||zt(this._target,r,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};var qt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var n=this._firstPT=new vt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=qt,n.data=this},h._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},h._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,s)};var $t=function(t,e,i){var n,r,s,a;if(t.slice)for(r=t.length;--r>-1;)$t(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)s=n[r],a=s.type,s.style&&(e.push(et(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||$t(s,e,i)};return a.cascadeTo=function(t,i,n){var r,s,a,o,l=e.to(t,i,n),h=[l],u=[],c=[],d=[],f=e._internals.reservedProps;for(t=l._targets||l.target,$t(t,u,d),l.render(i,!0,!0),$t(t,c),l.render(0,!0,!0),l._enabled(!0),r=d.length;--r>-1;)if(s=it(d[r],u[r],c[r]),s.firstMPT){s=s.difs;for(a in n)f[a]&&(s[a]=n[a]);o={};for(a in s)o[a]=u[r][a];h.push(e.fromTo(d[r],i,o,s))}return h},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,n,r=this._tween,s=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),a=s.length,o={},l=r._propLookup.roundProps;--a>-1;)o[s[a]]=Math.round;for(a=s.length;--a>-1;)for(t=s[a],i=r._firstPT;i;)n=i._next,i.pg?i.t._mod(o):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[t]=l)),i=n;return!1},i._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,n){var r,s;if("function"!=typeof t.setAttribute)return!1;for(r in e)s=e[r],"function"==typeof s&&(s=s(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",s+"",r,!1,r),this._overwriteProps.push(r);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,s,a,o,l,h,u=e.useRadians===!0?2*Math.PI:360,c=1e-6;for(r in e)"useRadians"!==r&&(o=e[r],"function"==typeof o&&(o=o(n,t)),h=(o+"").split("_"),s=h[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),o=this.finals[r]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,l=o-a,h.length&&(s=h.join("_"),s.indexOf("short")!==-1&&(l%=u,l!==l%(u/2)&&(l=l<0?l+u:l-u)),s.indexOf("_cw")!==-1&&l<0?l=(l+9999999999*u)%u-(l/u|0)*u:s.indexOf("ccw")!==-1&&l>0&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(l>c||l<-c)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},u=t.register||function(){},c=function(t,e,i,n,r){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return u(s,t),s},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},p=c("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=g.prototype=new t;return m.constructor=g,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),m.config=g.config=function(t,e,i){return new g(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,s,a,o,l=e.taper||"none",h=[],u=0,c=0|(e.points||20),f=c,p=e.randomize!==!1,g=e.clamp===!0,m=e.template instanceof t?e.template:null,_="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/c*f,n=m?m.getRatio(i):i,"none"===l?r=_:"out"===l?(s=1-i,r=s*s*_):"in"===l?r=i*i*_:i<.5?(s=2*i,r=s*s*.5*_):(s=2*(1-i),r=s*s*.5*_),p?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,g&&(n>1?n=1:n<0&&(n=0)),h[u++]={x:i,y:n};for(h.sort(function(t,e){return t.x-e.x}),o=new d(1,1,null),f=c;--f>-1;)a=h[f],o=new d(a.x,a.y,o);this._prev=new d(0,0,0!==o.t?o:o.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=t<.5;return t=e?1-2*t:2*t-1,t=t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),c("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},c("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),n("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),c("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),c("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return-Math.cos(t*o)+1}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(r.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!n.TweenLite){var r,s,a,o,l,h=function(t){var e,i=t.split("."),r=n;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},u=h("com.greensock"),c=1e-10,d=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),g={},m=function(r,s,a,o){this.sc=g[r]?g[r].sc:[],g[r]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(u){for(var c,d,f,p,_,v=s.length,y=v;--v>-1;)(c=g[s[v]]||new m(s[v],[])).gsClass?(l[v]=c.gsClass,y--):u&&c.sc.push(this);if(0===y&&a){if(d=("com.greensock."+r).split("."),f=d.pop(),p=h(d.join("."))[f]=this.gsClass=a.apply(a,l),o)if(n[f]=i[f]=p,_="undefined"!=typeof module&&module.exports,!_&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return p});else if(_)if(r===e){module.exports=i[e]=p;for(v in i)p[v]=i[v]}else i[e]&&(i[e][f]=p);for(v=0;v<this.sc.length;v++)this.sc[v].check()}},this.check(!0)},_=t._gsDefine=function(t,e,i,n){return new m(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},_(t,[],function(){return e},i),e};_.globals=n;var y=[0,0,1,1],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?y.concat(e):y},!0),x=b.map={},w=b.register=function(t,e,i,n){for(var r,s,a,o,l=e.split(","),h=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(s=l[h],r=n?v("easing."+s,null,!0):u.easing[s]||{},a=c.length;--a>-1;)o=c[a],x[s+"."+o]=x[o+s]=r[o]=t.getRatio?t:t[o]||new t};for(a=b.prototype,a._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:t<.5?n/2:1-n/2},r=["Linear","Quad","Cubic","Quart","Quint,Strong"],s=r.length;--s>-1;)a=r[s]+",Power"+s,w(new b(null,null,1,s),a,"easeOut",!0),w(new b(null,null,2,s),a,"easeIn"+(0===s?",easeNone":"")),w(new b(null,null,3,s),a,"easeInOut");x.linear=u.easing.Linear.easeIn,x.swing=u.easing.Quad.easeInOut;var T=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});a=T.prototype,a.addEventListener=function(t,e,i,n,r){r=r||0;var s,a,h=this._listeners[t],u=0;for(this!==o||l||o.wake(),null==h&&(this._listeners[t]=h=[]),a=h.length;--a>-1;)s=h[a],s.c===e&&s.s===i?h.splice(a,1):0===u&&s.pr<r&&(u=a+1);h.splice(u,0,{c:e,s:i,up:n,pr:r})},a.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},a.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,e>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)n=r[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var C=t.requestAnimationFrame,S=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},P=k();for(r=["ms","moz","webkit","o"],s=r.length;--s>-1&&!C;)C=t[r[s]+"RequestAnimationFrame"],S=t[r[s]+"CancelAnimationFrame"]||t[r[s]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,a,h=this,u=k(),d=!(e===!1||!C)&&"auto",p=500,g=33,m="tick",_=function(t){var e,o,l=k()-P;l>p&&(u+=l-g),P+=l,h.time=(P-u)/1e3,e=h.time-a,(!i||e>0||t===!0)&&(h.frame++,a+=e+(e>=s?.004:s-e),o=!0),t!==!0&&(r=n(_)),o&&h.dispatchEvent(m)};T.call(h),h.time=h.frame=0,h.tick=function(){_(!0)},h.lagSmoothing=function(t,e){p=t||1/c,g=Math.min(e,p,0)},h.sleep=function(){null!=r&&(d&&S?S(r):clearTimeout(r),n=f,r=null,h===o&&(l=!1))},h.wake=function(t){null!==r?h.sleep():t?u+=-P+(P=k()):h.frame>10&&(P=k()-p+5),n=0===i?f:d&&C?C:function(t){return setTimeout(t,1e3*(a-h.time)+1|0)},h===o&&(l=!0),_(2)},h.fps=function(t){return arguments.length?(i=t,s=1/(i||60),a=this.time+s,void h.wake()):i},h.useRAF=function(t){return arguments.length?(h.sleep(),d=t,void h.fps(i)):d},h.fps(t),setTimeout(function(){"auto"===d&&h.frame<5&&"hidden"!==document.visibilityState&&h.useRAF(!1)},1500)}),a=u.Ticker.prototype=new u.events.EventDispatcher,a.constructor=u.Ticker;var M=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,G){l||o.wake();var i=this.vars.useFrames?X:G;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=M.ticker=new u.Ticker,a=M.prototype,a._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var A=function(){l&&k()-P>2e3&&o.wake(),setTimeout(A,2e3)};A(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<i+this.totalDuration()/this._timeScale},a._enabled=function(t,e){return l||o.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this,s=n?n.length:0;switch(s){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},a.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=p(i)&&i.join("").indexOf("{self}")!==-1?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(l||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(I.length&&$(),this.render(t,e,!1),I.length&&$())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(l||t||o.wake(),e=n.rawTime(),i=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});a=D.prototype=new M,a.constructor=D,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,i,n){var r,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},a.rawTime=function(){return l||o.wake(),this._totalTime};var O=v("TweenLite",function(e,i,n){if(M.call(this,i,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,s,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?j[O.defaultOverwrite]:"number"==typeof l?l>>0:j[l],(o||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=a=d(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)s=a[r],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(d(s))):(this._siblings[r]=Q(s,this,!1),1===l&&this._siblings[r].length>1&&J(s,this,null,1,this._siblings[r])):(s=a[r--]=O.selector(s),"string"==typeof s&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},
  this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-c,this.render(Math.min(0,-this._delay)))},!0),R=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},L=function(t,e){var i,n={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};a=O.prototype=new M,a.constructor=O,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,O.version="1.19.1",O.defaultEase=a._ease=new b(null,null,1,1),O.defaultOverwrite="auto",O.ticker=o,O.autoSleep=120,O.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(O.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],E={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<n&&e>-n&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},B=function(t,e,i,n){var r,s,a,o,l,h,u,c=[t,e],d=0,f="",p=0;for(c.start=t,i&&(i(c),t=c[0],e=c[1]),c.length=0,r=t.match(F)||[],s=e.match(F)||[],n&&(n._next=null,n.blob=1,c._firstPT=c._applyPT=n),l=s.length,o=0;o<l;o++)u=s[o],h=e.substr(d,e.indexOf(u,d)-d),f+=h||!o?h:",",d+=h.length,p?p=(p+1)%5:"rgba("===h.substr(-5)&&(p=1),u===r[o]||r.length<=o?f+=u:(f&&(c.push(f),f=""),a=parseFloat(r[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:p&&p<4?Math.round:0}),d+=u.length;return f+=e.substr(d),f&&c.push(f),c.setRatio=N,c},V=function(t,e,i,n,r,s,a,o,l){"function"==typeof n&&(n=n(l||0,t));var h,u,c="get"===i?t[e]:i,d=typeof t[e],f="string"==typeof n&&"="===n.charAt(1),p={t:t,p:e,s:c,f:"function"===d,pg:0,n:r||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-c||0};if("number"!==d&&("function"===d&&"get"===i&&(u=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p.s=c=a?t[u](a):t[u]()),"string"==typeof c&&(a||isNaN(c))?(p.fp=a,h=B(c,n,o||O.defaultStringFilter,p),p={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):f||(p.s=parseFloat(c),p.c=parseFloat(n)-p.s||0)),p.c)return(p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p},W=O._internals={isArray:p,isSelector:R,lazyTweens:I,blobDif:B},z=O._plugins={},H=W.tweenLookup={},Y=0,U=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},j={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},X=M._rootFramesTimeline=new D,G=M._rootTimeline=new D,q=30,$=W.lazyRender=function(){var t,e=I.length;for(E={};--e>-1;)t=I[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);I.length=0};G._startTime=o.time,X._startTime=o.frame,G._active=X._active=!0,setTimeout($,1),M._updateRoot=O.render=function(){var t,e,i;if(I.length&&$(),G.render((o.time-G._startTime)*G._timeScale,!1,!1),X.render((o.frame-X._startTime)*X._timeScale,!1,!1),I.length&&$(),o.frame>=q){q=o.frame+(parseInt(O.autoSleep,10)||120);for(i in H){for(e=H[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if(i=G._first,(!i||i._paused)&&O.autoSleep&&!X._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",M._updateRoot);var Q=function(t,e,i){var n,r,s=t._gsTweenID;if(H[s||(t._gsTweenID=s="t"+Y++)]||(H[s]={target:t,tweens:[]}),e&&(n=H[s].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[s].tweens},Z=function(t,e,i,n){var r,s,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,n)),a=O.onOverwrite,a&&(s=a(t,e,i,n)),r!==!1&&s!==!1},J=function(t,e,i,n,r){var s,a,o,l;if(1===n||n>=4){for(l=r.length,s=0;s<l;s++)if((o=r[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===n)break;return a}var h,u=e._startTime+c,d=[],f=0,p=0===e._duration;for(s=r.length;--s>-1;)(o=r[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||K(e,0,p),0===K(o,h,p)&&(d[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&u-o._startTime<=2e-10||(d[f++]=o)));for(s=f;--s>-1;)if(o=d[s],2===n&&o._kill(i,t,e)&&(a=!0),2!==n||!o._firstPT&&o._initted){if(2!==n&&!Z(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=r,s>e?s-e:i&&s===e||!t._initted&&s-e<2*c?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};a._init=function(){var t,e,i,n,r,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in a.startAt)r[n]=a.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&a.lazy!==!1,r.startAt=r.delay=null,this._startAt=O.to(this.target,0,r),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(h=!1),i={};for(n in a)U[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&a.lazy!==!1,i.immediateRender=h,this._startAt=O.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,a.easeParams):x[u]||O.defaultEase:O.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},a._initProps=function(e,i,n,r,s){var a,o,l,h,u,c;if(null==e)return!1;E[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&this.vars.autoCSS!==!1&&L(this.vars,e);for(a in this.vars)if(c=this.vars[a],U[a])c&&(c instanceof Array||c.push&&p(c))&&c.join("").indexOf("{self}")!==-1&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(z[a]&&(h=new z[a])._onInitTween(e,this.vars[a],this,s)){for(this._firstPT=u={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=V.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,s);return r&&this._kill(r,e)?this._initProps(e,i,n,r,s):this._overwrite>1&&this._firstPT&&n.length>1&&J(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,s)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(E[e._gsTweenID]=!0),l)},a.render=function(t,e,i){var n,r,s,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(h<0||t<=0&&t>=-1e-7||h===c&&"isPause"!==this.data)&&h!==t&&(i=!0,h>c&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:c);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(r="onReverseComplete",n=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,d=this._easeType,f=this._easePower;(1===d||3===d&&u>=.5)&&(u=1-u),3===d&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),1===d?this.ratio=1-u:2===d?this.ratio=u:t/l<.5?this.ratio=u/2:this.ratio=1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,I.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(t<0&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||n||i)&&this._callback("onUpdate")),r&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===c&&a!==c&&(this._rawPrevTime=0)))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,r,s,a,o,l,h,u,c,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(e)||R(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){o=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!Z(this,i,e,c))return!1}for(s in h)(a=o[s])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},a.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(Math.min(0,-this._delay))),this},a._enabled=function(t,e){if(l||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Q(n[i],this,!0);else this._siblings=Q(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:O.selector(t)||t;var i,n,r,s;if((p(t)||R(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(n=Q(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var tt=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(a=tt.prototype,tt.version="1.19.0",tt.API=2,a._firstPT=null,a._addTween=V,a.setRatio=N,a._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,r,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:s)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:s=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(z[(new t[e])._propName]=t[e]);return!0},_.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new tt(i);o.constructor=a,a.API=t.API;for(e in s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,tt.activate([a]),a},r=t._gsQueue){for(s=0;s<r.length;s++)r[s]();for(a in g)g[a].func||t.console.log("GSAP encountered missing dependency: "+a)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");/*!
   * VERSION: 1.18.6
   * DATE: 2016-07-08
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,a=n._internals={},o=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},p=a.pauseCallback=function(){},g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=n.prototype=new e;return n.version="1.19.0",m.constructor=n,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,n,r){var s=n.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},m.from=function(t,e,n,r){return this.add((n.repeat&&c.TweenMax||i).from(t,e,n),r)},m.fromTo=function(t,e,n,r,s){var a=r.repeat&&c.TweenMax||i;return e?this.add(a.fromTo(t,e,n,r),s):this.set(t,r,s)},m.staggerTo=function(t,e,r,s,a,l,h,u){var c,p,m=new n({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),_=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=g(t)),s=s||0,0>s&&(t=g(t),t.reverse(),s*=-1),p=0;p<t.length;p++)c=d(r),c.startAt&&(c.startAt=d(c.startAt),c.startAt.cycle&&f(c.startAt,t,p)),_&&(f(c,t,p),null!=c.duration&&(e=c.duration,delete c.duration)),m.to(t[p],e,c,p*s);return this.add(m,a)},m.staggerFrom=function(t,e,i,n,r,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,a,o)},m.staggerFromTo=function(t,e,i,n,r,s,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,a,o,l)},m.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},m.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,a=new n(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=s;return o.add(a,0),a},m.add=function(r,s,a,o){var h,u,c,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=s,u=r.length,c=0;u>c;c++)l(d=r[c])&&(d=new n({tweens:d})),this.add(d,h),"string"!=typeof d&&"function"!=typeof d&&("sequence"===a?h=d._startTime+d.totalDuration()/d._timeScale:"start"===a&&(d._startTime-=d.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,p=f.rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},m.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,a,o,l,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._startTime,m=this._timeScale,_=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(c=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!c;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(c=n),n=n._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),d=this._time,d>=p)for(n=this._first;n&&(a=n._next,d===this._time&&(!this._paused||_));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(c===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;else for(n=this._last;n&&(a=n._prev,d===this._time&&(!this._paused||_));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=a}this._onUpdate&&(e||(h.length&&u(),this._callback("onUpdate"))),o&&(this._gc||(g===this._startTime||m!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<r||(a instanceof i?e!==!1&&(s[o++]=a):(n!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,n)),o=s.length))),a=a._next;return s},m.getTweensOf=function(t,e){var n,r,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[o++]=n[r]);return s&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},m.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite");/*!
   * VERSION: 1.18.6
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=_gsScope._gsDefine.globals,h=new i(null,null,1,0),u=n.prototype=new t;return u.constructor=n,u.kill()._gc=!1,n.version="1.19.0",u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},u.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},u.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},u.tweenTo=function(t,i){i=i||{};var n,r,s,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1},o=i.repeat&&l.TweenMax||e;for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,n,a),a.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&n===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&s._callback("onStart")},s},u.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,l,h,u,c,d,f,p=this._dirty?this.totalDuration():this._totalDuration,g=this._duration,m=this._time,_=this._totalTime,v=this._startTime,y=this._timeScale,b=this._rawPrevTime,x=this._paused,w=this._cycle;if(t>=p-1e-7)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,h="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||0>b||b===r)&&b!==t&&this._first&&(u=!0,b>r&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=g,t=g+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==m||0===g&&b!==r&&(b>0||0>t&&b>=0)&&!this._locked)&&(h="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=s=!0,h="onReverseComplete"):b>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=g||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(u=!0)}else if(0===g&&0>b&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=g+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&t>=_&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?(this._time=g,t=g+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(t=this._time,t>=m)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var T=this._yoyo&&0!==(1&w),C=T===(this._yoyo&&0!==(1&this._cycle)),S=this._totalTime,k=this._cycle,P=this._rawPrevTime,M=this._time;if(this._totalTime=w*g,this._cycle<w?T=!T:this._totalTime+=g,this._time=m,this._rawPrevTime=0===g?b-1e-4:b,this._cycle=w,this._locked=!0,m=T?0:g,this.render(m,e,0===g),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),m!==this._time)return;if(C&&(m=T?g+1e-4:-1e-4,this.render(m,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=M,this._totalTime=S,this._cycle=k,this._rawPrevTime=P}if(!(this._time!==m&&this._first||i||u||d))return void(_!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==_&&t>0&&(this._active=!0),0===_&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),f=this._time,f>=m)for(n=this._first;n&&(l=n._next,f===this._time&&(!this._paused||x));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,f===this._time&&(!this._paused||x));){if(n._active||n._startTime<=m&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(a.length&&o(),this._callback("onUpdate"))),h&&(this._locked||this._gc||(v===this._startTime||y!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(a.length&&o(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this._callback(h)))},u.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],a=this.getChildren(t,e,i),o=0,l=a.length;for(n=0;l>n;n++)r=a[n],r.isActive()&&(s[o++]=r);return s},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},u.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,a=n._internals={},o=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=a.pauseCallback=function(){},g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=n.prototype=new e;return n.version="1.19.0",m.constructor=n,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,n,r){var s=n.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},m.from=function(t,e,n,r){return this.add((n.repeat&&c.TweenMax||i).from(t,e,n),r)},m.fromTo=function(t,e,n,r,s){var a=r.repeat&&c.TweenMax||i;return e?this.add(a.fromTo(t,e,n,r),s):this.set(t,r,s)},m.staggerTo=function(t,e,r,s,a,l,h,u){var c,p,m=new n({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),_=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=g(t)),s=s||0,0>s&&(t=g(t),t.reverse(),s*=-1),p=0;p<t.length;p++)c=d(r),c.startAt&&(c.startAt=d(c.startAt),c.startAt.cycle&&f(c.startAt,t,p)),_&&(f(c,t,p),null!=c.duration&&(e=c.duration,delete c.duration)),m.to(t[p],e,c,p*s);return this.add(m,a)},m.staggerFrom=function(t,e,i,n,r,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,a,o)},m.staggerFromTo=function(t,e,i,n,r,s,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,a,o,l)},m.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},m.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,a=new n(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=s;return o.add(a,0),a},m.add=function(r,s,a,o){var h,u,c,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=s,u=r.length,c=0;u>c;c++)l(d=r[c])&&(d=new n({tweens:d})),this.add(d,h),"string"!=typeof d&&"function"!=typeof d&&("sequence"===a?h=d._startTime+d.totalDuration()/d._timeScale:"start"===a&&(d._startTime-=d.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,p=f.rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},m.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,a,o,l,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._startTime,m=this._timeScale,_=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(c=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!c;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(c=n),n=n._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),d=this._time,d>=p)for(n=this._first;n&&(a=n._next,d===this._time&&(!this._paused||_));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(c===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;else for(n=this._last;n&&(a=n._prev,d===this._time&&(!this._paused||_));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=a}this._onUpdate&&(e||(h.length&&u(),this._callback("onUpdate"))),o&&(this._gc||(g===this._startTime||m!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<r||(a instanceof i?e!==!1&&(s[o++]=a):(n!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,n)),o=s.length))),a=a._next;return s},m.getTweensOf=function(t,e){var n,r,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[o++]=n[r]);return s&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},m.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineMax"),/*!
   * VERSION: 1.19.0
   * DATE: 2016-07-16
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  !function(t,e){"use strict";var i={},n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!n.TweenLite){var r,s,a,o,l,h=function(t){var e,i=t.split("."),r=n;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},u=h("com.greensock"),c=1e-10,d=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),g={},m=function(r,s,a,o){this.sc=g[r]?g[r].sc:[],g[r]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(u){for(var c,d,f,p,_,v=s.length,y=v;--v>-1;)(c=g[s[v]]||new m(s[v],[])).gsClass?(l[v]=c.gsClass,y--):u&&c.sc.push(this);if(0===y&&a){if(d=("com.greensock."+r).split("."),f=d.pop(),p=h(d.join("."))[f]=this.gsClass=a.apply(a,l),o)if(n[f]=i[f]=p,_="undefined"!=typeof module&&module.exports,!_&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return p});else if(_)if(r===e){module.exports=i[e]=p;for(v in i)p[v]=i[v]}else i[e]&&(i[e][f]=p);for(v=0;v<this.sc.length;v++)this.sc[v].check()}},this.check(!0)},_=t._gsDefine=function(t,e,i,n){return new m(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},_(t,[],function(){return e},i),e};_.globals=n;var y=[0,0,1,1],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?y.concat(e):y},!0),x=b.map={},w=b.register=function(t,e,i,n){for(var r,s,a,o,l=e.split(","),h=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(s=l[h],r=n?v("easing."+s,null,!0):u.easing[s]||{},a=c.length;--a>-1;)o=c[a],x[s+"."+o]=x[o+s]=r[o]=t.getRatio?t:t[o]||new t};for(a=b.prototype,a._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},r=["Linear","Quad","Cubic","Quart","Quint,Strong"],s=r.length;--s>-1;)a=r[s]+",Power"+s,w(new b(null,null,1,s),a,"easeOut",!0),w(new b(null,null,2,s),a,"easeIn"+(0===s?",easeNone":"")),w(new b(null,null,3,s),a,"easeInOut");x.linear=u.easing.Linear.easeIn,x.swing=u.easing.Quad.easeInOut;var T=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});a=T.prototype,a.addEventListener=function(t,e,i,n,r){r=r||0;var s,a,h=this._listeners[t],u=0;for(this!==o||l||o.wake(),null==h&&(this._listeners[t]=h=[]),a=h.length;--a>-1;)s=h[a],s.c===e&&s.s===i?h.splice(a,1):0===u&&s.pr<r&&(u=a+1);h.splice(u,0,{c:e,s:i,up:n,pr:r})},a.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},a.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,e>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)n=r[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var C=t.requestAnimationFrame,S=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},P=k();for(r=["ms","moz","webkit","o"],s=r.length;--s>-1&&!C;)C=t[r[s]+"RequestAnimationFrame"],S=t[r[s]+"CancelAnimationFrame"]||t[r[s]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,a,h=this,u=k(),d=!(e===!1||!C)&&"auto",p=500,g=33,m="tick",_=function(t){var e,o,l=k()-P;l>p&&(u+=l-g),P+=l,h.time=(P-u)/1e3,e=h.time-a,(!i||e>0||t===!0)&&(h.frame++,a+=e+(e>=s?.004:s-e),o=!0),t!==!0&&(r=n(_)),o&&h.dispatchEvent(m)};T.call(h),h.time=h.frame=0,h.tick=function(){_(!0)},h.lagSmoothing=function(t,e){p=t||1/c,g=Math.min(e,p,0)},h.sleep=function(){null!=r&&(d&&S?S(r):clearTimeout(r),n=f,r=null,h===o&&(l=!1))},h.wake=function(t){null!==r?h.sleep():t?u+=-P+(P=k()):h.frame>10&&(P=k()-p+5),n=0===i?f:d&&C?C:function(t){return setTimeout(t,1e3*(a-h.time)+1|0)},h===o&&(l=!0),_(2)},h.fps=function(t){return arguments.length?(i=t,s=1/(i||60),a=this.time+s,void h.wake()):i},h.useRAF=function(t){return arguments.length?(h.sleep(),d=t,void h.fps(i)):d},h.fps(t),setTimeout(function(){"auto"===d&&h.frame<5&&"hidden"!==document.visibilityState&&h.useRAF(!1)},1500)}),a=u.Ticker.prototype=new u.events.EventDispatcher,a.constructor=u.Ticker;var M=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,G){l||o.wake();var i=this.vars.useFrames?X:G;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=M.ticker=new u.Ticker,a=M.prototype,a._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var A=function(){l&&k()-P>2e3&&o.wake(),setTimeout(A,2e3)};A(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},a._enabled=function(t,e){return l||o.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this,s=n?n.length:0;switch(s){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},a.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(l||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(I.length&&$(),this.render(t,e,!1),I.length&&$())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(l||t||o.wake(),e=n.rawTime(),i=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});a=D.prototype=new M,a.constructor=D,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,i,n){var r,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},a.rawTime=function(){return l||o.wake(),this._totalTime};var O=v("TweenLite",function(e,i,n){if(M.call(this,i,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,s,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?j[O.defaultOverwrite]:"number"==typeof l?l>>0:j[l],(o||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=a=d(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)s=a[r],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(d(s))):(this._siblings[r]=Q(s,this,!1),1===l&&this._siblings[r].length>1&&J(s,this,null,1,this._siblings[r])):(s=a[r--]=O.selector(s),"string"==typeof s&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-c,this.render(Math.min(0,-this._delay)))},!0),R=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},L=function(t,e){var i,n={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};a=O.prototype=new M,a.constructor=O,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,O.version="1.19.0",O.defaultEase=a._ease=new b(null,null,1,1),O.defaultOverwrite="auto",O.ticker=o,O.autoSleep=120,O.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(O.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],E={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):n>e&&e>-n&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},B=function(t,e,i,n){var r,s,a,o,l,h,u,c=[t,e],d=0,f="",p=0;for(c.start=t,i&&(i(c),t=c[0],e=c[1]),c.length=0,r=t.match(F)||[],s=e.match(F)||[],n&&(n._next=null,n.blob=1,c._firstPT=c._applyPT=n),l=s.length,o=0;l>o;o++)u=s[o],h=e.substr(d,e.indexOf(u,d)-d),f+=h||!o?h:",",d+=h.length,p?p=(p+1)%5:"rgba("===h.substr(-5)&&(p=1),u===r[o]||r.length<=o?f+=u:(f&&(c.push(f),f=""),a=parseFloat(r[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:p&&4>p?Math.round:0}),d+=u.length;return f+=e.substr(d),f&&c.push(f),c.setRatio=N,c},V=function(t,e,i,n,r,s,a,o,l){"function"==typeof n&&(n=n(l||0,t));var h,u,c="get"===i?t[e]:i,d=typeof t[e],f="string"==typeof n&&"="===n.charAt(1),p={t:t,p:e,s:c,f:"function"===d,pg:0,n:r||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-c||0};return"number"!==d&&("function"===d&&"get"===i&&(u=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p.s=c=a?t[u](a):t[u]()),"string"==typeof c&&(a||isNaN(c))?(p.fp=a,h=B(c,n,o||O.defaultStringFilter,p),p={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):f||(p.s=parseFloat(c),p.c=parseFloat(n)-p.s||0)),p.c?((p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p):void 0},W=O._internals={isArray:p,isSelector:R,lazyTweens:I,blobDif:B},z=O._plugins={},H=W.tweenLookup={},Y=0,U=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},j={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},X=M._rootFramesTimeline=new D,G=M._rootTimeline=new D,q=30,$=W.lazyRender=function(){var t,e=I.length;for(E={};--e>-1;)t=I[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);I.length=0};G._startTime=o.time,X._startTime=o.frame,G._active=X._active=!0,setTimeout($,1),M._updateRoot=O.render=function(){var t,e,i;if(I.length&&$(),G.render((o.time-G._startTime)*G._timeScale,!1,!1),X.render((o.frame-X._startTime)*X._timeScale,!1,!1),I.length&&$(),o.frame>=q){q=o.frame+(parseInt(O.autoSleep,10)||120);for(i in H){for(e=H[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if(i=G._first,(!i||i._paused)&&O.autoSleep&&!X._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",M._updateRoot);var Q=function(t,e,i){var n,r,s=t._gsTweenID;if(H[s||(t._gsTweenID=s="t"+Y++)]||(H[s]={target:t,tweens:[]}),e&&(n=H[s].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[s].tweens},Z=function(t,e,i,n){var r,s,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,n)),a=O.onOverwrite,a&&(s=a(t,e,i,n)),r!==!1&&s!==!1},J=function(t,e,i,n,r){var s,a,o,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((o=r[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===n)break;return a}var h,u=e._startTime+c,d=[],f=0,p=0===e._duration;for(s=r.length;--s>-1;)(o=r[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||K(e,0,p),0===K(o,h,p)&&(d[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&u-o._startTime<=2e-10||(d[f++]=o)));for(s=f;--s>-1;)if(o=d[s],2===n&&o._kill(i,t,e)&&(a=!0),2!==n||!o._firstPT&&o._initted){if(2!==n&&!Z(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=r,s>e?s-e:i&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};a._init=function(){var t,e,i,n,r,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in a.startAt)r[n]=a.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&a.lazy!==!1,r.startAt=r.delay=null,this._startAt=O.to(this.target,0,r),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(h=!1),i={};for(n in a)U[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&a.lazy!==!1,i.immediateRender=h,this._startAt=O.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,a.easeParams):x[u]||O.defaultEase:O.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;s>t;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},a._initProps=function(e,i,n,r,s){var a,o,l,h,u,c;if(null==e)return!1;E[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&this.vars.autoCSS!==!1&&L(this.vars,e);for(a in this.vars)if(c=this.vars[a],U[a])c&&(c instanceof Array||c.push&&p(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(z[a]&&(h=new z[a])._onInitTween(e,this.vars[a],this,s)){for(this._firstPT=u={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=V.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,s);return r&&this._kill(r,e)?this._initProps(e,i,n,r,s):this._overwrite>1&&this._firstPT&&n.length>1&&J(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,s)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(E[e._gsTweenID]=!0),l)},a.render=function(t,e,i){var n,r,s,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>h||0>=t&&t>=-1e-7||h===c&&"isPause"!==this.data)&&h!==t&&(i=!0,h>c&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,d=this._easeType,f=this._easePower;(1===d||3===d&&u>=.5)&&(u=1-u),3===d&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),1===d?this.ratio=1-u:2===d?this.ratio=u:.5>t/l?this.ratio=u/2:this.ratio=1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,I.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||n||i)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===c&&a!==c&&(this._rawPrevTime=0))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,r,s,a,o,l,h,u,c,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(e)||R(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){o=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!Z(this,i,e,c))return!1}for(s in h)(a=o[s])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},a.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(Math.min(0,-this._delay))),this},a._enabled=function(t,e){if(l||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Q(n[i],this,!0);else this._siblings=Q(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:O.selector(t)||t;var i,n,r,s;if((p(t)||R(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(n=Q(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var tt=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(a=tt.prototype,tt.version="1.19.0",tt.API=2,a._firstPT=null,a._addTween=V,a.setRatio=N,a._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,r,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:s)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:s=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(z[(new t[e])._propName]=t[e]);return!0},_.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new tt(i);o.constructor=a,a.API=t.API;for(e in s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,tt.activate([a]),a},r=t._gsQueue){for(s=0;s<r.length;s++)r[s]();for(a in g)g[a].func||t.console.log("GSAP encountered missing dependency: "+a)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");/*!
   * VERSION: 1.19.0
   * DATE: 2016-07-14
   * UPDATES AND DOCS AT: http://greensock.com
   * 
   * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},r=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r(i,e[i]):r[i%r.length];delete t.cycle},s=function(t,e,n){i.call(this,t,e,n),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=s.prototype.render},a=1e-10,o=i._internals,l=o.isSelector,h=o.isArray,u=s.prototype=i.to({},.1,{}),c=[];s.version="1.19.0",u.constructor=s,u.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var n,r=this.ratio,s=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(n in t)this.vars[n]=t[n];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||s)for(var o,l=1/(1-r),h=this._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return this},u.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,r,s,l,h,u,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._totalTime,m=this._cycle,_=this._duration,v=this._rawPrevTime;if(t>=f-1e-7?(this._totalTime=f,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=_,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===_&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>v||0>=t&&t>=-1e-7||v===a&&"isPause"!==this.data)&&v!==t&&(i=!0,v>a&&(r="onReverseComplete")),this._rawPrevTime=d=!e||t||v===t?t:a)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==g||0===_&&v>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===_&&(this._initted||!this.vars.lazy||i)&&(v>=0&&(i=!0),this._rawPrevTime=d=!e||t||v===t?t:a)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=_+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&t>=g&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=_-this._time),this._time>_?this._time=_:this._time<0&&(this._time=0)),this._easeType?(h=this._time/_,u=this._easeType,c=this._easePower,(1===u||3===u&&h>=.5)&&(h=1-h),3===u&&(h*=2),1===c?h*=h:2===c?h*=h*h:3===c?h*=h*h*h:4===c&&(h*=h*h*h*h),1===u?this.ratio=1-h:2===u?this.ratio=h:this._time/_<.5?this.ratio=h/2:this.ratio=1-h/2):this.ratio=this._ease.getRatio(this._time/_)),p===this._time&&!i&&m===this._cycle)return void(g!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=g,this._rawPrevTime=v,this._cycle=m,o.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/_):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&t>=0&&(this._active=!0),0===g&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===_)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==g||r)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===_&&this._rawPrevTime===a&&d!==a&&(this._rawPrevTime=0))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new s(t,e,n)},s.staggerTo=s.allTo=function(t,e,a,o,u,d,f){o=o||0;var p,g,m,_,v=0,y=[],b=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),u.apply(f||a.callbackScope||this,d||c)},x=a.cycle,w=a.startAt&&a.startAt.cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t))),t=t||[],0>o&&(t=n(t),t.reverse(),o*=-1),p=t.length-1,m=0;p>=m;m++){g={};for(_ in a)g[_]=a[_];if(x&&(r(g,t,m),null!=g.duration&&(e=g.duration,delete g.duration)),w){w=g.startAt={};for(_ in a.startAt)w[_]=a.startAt[_];r(g.startAt,t,m)}g.delay=v+(g.delay||0),m===p&&u&&(g.onComplete=b),y[m]=new s(t[m],e,g),v+=o}return y},s.staggerFrom=s.allFrom=function(t,e,i,n,r,a,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,n,r,a,o)},s.staggerFromTo=s.allFromTo=function(t,e,i,n,r,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,n,r,a,o,l)},s.delayedCall=function(t,e,i,n,r){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:r,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var d=function(t,e){for(var n=[],r=0,s=t._first;s;)s instanceof i?n[r++]=s:(e&&(n[r++]=s),n=n.concat(d(s,e)),r=n.length),s=s._next;return n},f=s.getAllTweens=function(e){return d(t._rootTimeline,e).concat(d(t._rootFramesTimeline,e))};s.killAll=function(t,i,n,r){null==i&&(i=!0),null==n&&(n=!0);var s,a,o,l=f(0!=r),h=l.length,u=i&&n&&r;for(o=0;h>o;o++)a=l[o],(u||a instanceof e||(s=a.target===a.vars.onComplete)&&n||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var r,a,u,c,d,f=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=n(t)),h(t))for(c=t.length;--c>-1;)s.killChildTweensOf(t[c],e);else{r=[];for(u in f)for(a=f[u].target.parentNode;a;)a===t&&(r=r.concat(f[u].tweens)),a=a.parentNode;for(d=r.length,c=0;d>c;c++)e&&r[c].totalTime(r[c].totalDuration()),r[c]._enabled(!1,!1)}}};var p=function(t,i,n,r){i=i!==!1,n=n!==!1,r=r!==!1;for(var s,a,o=f(r),l=i&&n&&r,h=o.length;--h>-1;)a=o[h],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&n||i&&!s)&&a.paused(t)};return s.pauseAll=function(t,e,i){p(!0,t,e,i)},s.resumeAll=function(t,e,i){p(!1,t,e,i)},s.globalTimeScale=function(e){var n=t._rootTimeline,r=i.ticker.time;return arguments.length?(e=e||a,n._startTime=r-(r-n._startTime)*n._timeScale/e,n=t._rootFramesTimeline,r=i.ticker.frame,n._startTime=r-(r-n._startTime)*n._timeScale/e,n._timeScale=t._rootTimeline._timeScale=e,e):n._timeScale},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var n=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,n,r=this.vars;for(n in r)i=r[n],l(i)&&-1!==i.join("").indexOf("{self}")&&(r[n]=this._swapSelfInParams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,s=i._internals,a=n._internals={},o=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=_gsScope._gsDefine.globals,d=function(t){var e,i={};for(e in t)i[e]=t[e];return i},f=function(t,e,i){var n,r,s=t.cycle;for(n in s)r=s[n],t[n]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=a.pauseCallback=function(){},g=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},m=n.prototype=new e;return n.version="1.19.0",m.constructor=n,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,n,r){var s=n.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,n),r):this.set(t,n,r)},m.from=function(t,e,n,r){return this.add((n.repeat&&c.TweenMax||i).from(t,e,n),r)},m.fromTo=function(t,e,n,r,s){var a=r.repeat&&c.TweenMax||i;return e?this.add(a.fromTo(t,e,n,r),s):this.set(t,r,s)},m.staggerTo=function(t,e,r,s,a,l,h,u){var c,p,m=new n({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),_=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=g(t)),s=s||0,0>s&&(t=g(t),t.reverse(),s*=-1),p=0;p<t.length;p++)c=d(r),c.startAt&&(c.startAt=d(c.startAt),c.startAt.cycle&&f(c.startAt,t,p)),_&&(f(c,t,p),null!=c.duration&&(e=c.duration,delete c.duration)),m.to(t[p],e,c,p*s);return this.add(m,a)},m.staggerFrom=function(t,e,i,n,r,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,n,r,s,a,o)},m.staggerFromTo=function(t,e,i,n,r,s,a,o,l){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,n,r,s,a,o,l)},m.call=function(t,e,n,r){return this.add(i.delayedCall(0,t,e,n),r)},m.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new i(t,0,e),n)},n.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,s,a=new n(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)s=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=s;return o.add(a,0),a},m.add=function(r,s,a,o){var h,u,c,d,f,p;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=s,u=r.length,c=0;u>c;c++)l(d=r[c])&&(d=new n({tweens:d})),this.add(d,h),"string"!=typeof d&&"function"!=typeof d&&("sequence"===a?h=d._startTime+d.totalDuration()/d._timeScale:"start"===a&&(d._startTime-=d.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,s);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(f=this,p=f.rawTime()>r._startTime;f._timeline;)p&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var n=e.length;--n>-1;)this.remove(e[n]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var n=this._last;return n?this._time>n._startTime+n._totalDuration/n._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,n){return this.add(t,e||0,i,n)},m.appendMultiple=function(t,e,i,n){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,n)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,n,r){var s=i.delayedCall(0,p,n,r||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,n,r){var s;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&l(r)))for(s=r.length;--s>-1;)r[s]instanceof t&&r[s].timeline===this&&this.remove(r[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,n&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,n);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?n?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,n):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,a,o,l,c,d,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,g=this._startTime,m=this._timeScale,_=this._paused;if(t>=f-1e-7)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(n=this._first;n&&n._startTime<=t&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(c=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!c;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(c=n),n=n._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),d=this._time,d>=p)for(n=this._first;n&&(a=n._next,d===this._time&&(!this._paused||_));)(n._active||n._startTime<=d&&!n._paused&&!n._gc)&&(c===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=a;else for(n=this._last;n&&(a=n._prev,d===this._time&&(!this._paused||_));){if(n._active||n._startTime<=p&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=a}this._onUpdate&&(e||(h.length&&u(),this._callback("onUpdate"))),o&&(this._gc||(g===this._startTime||m!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof n&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,n,r){r=r||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<r||(a instanceof i?e!==!1&&(s[o++]=a):(n!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,n)),o=s.length))),a=a._next;return s},m.getTweensOf=function(t,e){var n,r,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=i.getTweensOf(t),r=n.length;--r>-1;)(n[r].timeline===this||e&&this._contains(n[r]))&&(a[o++]=n[r]);return s&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var n,r=this._first,s=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),n=i.length,r=!1;--n>-1;)i[n]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(e,i,n){this._forcingPlayhead=!0;var r=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,r},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,n=0,r=this._last,s=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>s&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):s=r._startTime,r._startTime<0&&!r._paused&&(n-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),s=0),i=r._startTime+r._totalDuration/r._timeScale,i>n&&(n=i),r=e;this._duration=this._totalDuration=n,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},m.paused=function(e){if(!e)for(var i=this._first,n=this._time;i;)i._startTime===n&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},n},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var n=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},r=1e-10,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=_gsScope._gsDefine.globals,h=new i(null,null,1,0),u=n.prototype=new t;return u.constructor=n,u.kill()._gc=!1,n.version="1.19.0",u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},u.addCallback=function(t,i,n,r){return this.add(e.delayedCall(0,t,n,r),i)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),n=i.length,r=this._parseTimeOrLabel(e);--n>-1;)i[n]._startTime===r&&i[n]._enabled(!1,!1);return this},u.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},u.tweenTo=function(t,i){i=i||{};var n,r,s,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1},o=i.repeat&&l.TweenMax||e;for(r in i)a[r]=i[r];return a.time=this._parseTimeOrLabel(t),n=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,n,a),a.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&n===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&s._callback("onStart")},s},u.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var n=this.tweenTo(e,i);return n.duration(Math.abs(n.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var n,s,l,h,u,c,d,f,p=this._dirty?this.totalDuration():this._totalDuration,g=this._duration,m=this._time,_=this._totalTime,v=this._startTime,y=this._timeScale,b=this._rawPrevTime,x=this._paused,w=this._cycle;if(t>=p-1e-7)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,h="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=t&&t>=-1e-7||0>b||b===r)&&b!==t&&this._first&&(u=!0,b>r&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=g,t=g+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==m||0===g&&b!==r&&(b>0||0>t&&b>=0)&&!this._locked)&&(h="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=s=!0,h="onReverseComplete"):b>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=g||!e||t||this._rawPrevTime===t?t:r,0===t&&s)for(n=this._first;n&&0===n._startTime;)n._duration||(s=!1),n=n._next;t=0,this._initted||(u=!0)}else if(0===g&&0>b&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=g+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&t>=_&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?(this._time=g,t=g+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(t=this._time,t>=m)for(n=this._first;n&&n._startTime<=t&&!d;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===this._rawPrevTime||(d=n),n=n._next;else for(n=this._last;n&&n._startTime>=t&&!d;)n._duration||"isPause"===n.data&&n._rawPrevTime>0&&(d=n),n=n._prev;d&&(this._time=t=d._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var T=this._yoyo&&0!==(1&w),C=T===(this._yoyo&&0!==(1&this._cycle)),S=this._totalTime,k=this._cycle,P=this._rawPrevTime,M=this._time;if(this._totalTime=w*g,this._cycle<w?T=!T:this._totalTime+=g,this._time=m,this._rawPrevTime=0===g?b-1e-4:b,this._cycle=w,this._locked=!0,m=T?0:g,this.render(m,e,0===g),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),m!==this._time)return;if(C&&(m=T?g+1e-4:-1e-4,this.render(m,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=M,this._totalTime=S,this._cycle=k,this._rawPrevTime=P}if(!(this._time!==m&&this._first||i||u||d))return void(_!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==_&&t>0&&(this._active=!0),0===_&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),f=this._time,f>=m)for(n=this._first;n&&(l=n._next,f===this._time&&(!this._paused||x));)(n._active||n._startTime<=this._time&&!n._paused&&!n._gc)&&(d===n&&this.pause(),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=l;else for(n=this._last;n&&(l=n._prev,f===this._time&&(!this._paused||x));){if(n._active||n._startTime<=m&&!n._paused&&!n._gc){if(d===n){for(d=n._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(t-d._startTime)*d._timeScale:(t-d._startTime)*d._timeScale,e,i),d=d._prev;d=null,this.pause()}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)}n=l}this._onUpdate&&(e||(a.length&&o(),this._callback("onUpdate"))),h&&(this._locked||this._gc||(v===this._startTime||y!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(a.length&&o(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this._callback(h)))},u.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var n,r,s=[],a=this.getChildren(t,e,i),o=0,l=a.length;for(n=0;l>n;n++)r=a[n],r.isActive()&&(s[o++]=r);return s},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),n=i.length;for(e=0;n>e;e++)if(i[e].time>t)return i[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},u.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},n},!0),function(){var t=180/Math.PI,e=[],i=[],n=[],r={},s=_gsScope._gsDefine.globals,a=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},o=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var r={a:t},s={},a={},o={c:n},l=(t+e)/2,h=(e+i)/2,u=(i+n)/2,c=(l+h)/2,d=(h+u)/2,f=(d-c)/8;return r.b=l+(t-l)/4,s.b=c+f,r.c=s.a=(r.b+s.b)/2,s.c=a.a=(c+d)/2,a.b=d-f,o.b=u+(n-u)/4,a.c=o.a=(a.b+o.b)/2,[r,s,a,o]},h=function(t,r,s,a,o){var h,u,c,d,f,p,g,m,_,v,y,b,x,w=t.length-1,T=0,C=t[0].a;for(h=0;w>h;h++)f=t[T],u=f.a,c=f.d,d=t[T+1].d,o?(y=e[h],b=i[h],x=(b+y)*r*.25/(a?.5:n[h]||.5),p=c-(c-u)*(a?.5*r:0!==y?x/y:0),g=c+(d-c)*(a?.5*r:0!==b?x/b:0),m=c-(p+((g-p)*(3*y/(y+b)+.5)/4||0))):(p=c-(c-u)*r*.5,g=c+(d-c)*r*.5,m=c-(p+g)/2),p+=m,g+=m,f.c=_=p,0!==h?f.b=C:f.b=C=f.a+.6*(f.c-f.a),f.da=c-u,f.ca=_-u,f.ba=C-u,s?(v=l(u,C,_,c),t.splice(T,1,v[0],v[1],v[2],v[3]),T+=4):T++,C=g;f=t[T],f.b=C,f.c=C+.4*(f.d-C),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=C-f.a,s&&(v=l(f.a,C,f.c,f.d),t.splice(T,1,v[0],v[1],v[2],v[3]))},u=function(t,n,r,s){var o,l,h,u,c,d,f=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(d=t[l][n])&&"="===d.charAt(1)&&(t[l][n]=s[n]+Number(d.charAt(0)+d.substr(2)));if(o=t.length-2,0>o)return f[0]=new a(t[0][n],0,0,t[-1>o?0:1][n]),f;for(l=0;o>l;l++)h=t[l][n],u=t[l+1][n],f[l]=new a(h,0,0,u),r&&(c=t[l+2][n],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return f[l]=new a(t[l][n],0,0,t[l+1][n]),f},c=function(t,s,a,l,c,d){var f,p,g,m,_,v,y,b,x={},w=[],T=d||t[0];c="string"==typeof c?","+c+",":o,null==s&&(s=1);for(p in t[0])w.push(p);if(t.length>1){for(b=t[t.length-1],y=!0,f=w.length;--f>-1;)if(p=w[f],Math.abs(T[p]-b[p])>.05){y=!1;break}y&&(t=t.concat(),d&&t.unshift(d),t.push(t[1]),d=t[t.length-3])}for(e.length=i.length=n.length=0,f=w.length;--f>-1;)p=w[f],r[p]=-1!==c.indexOf(","+p+","),x[p]=u(t,p,r[p],d);for(f=e.length;--f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!l){for(f=w.length;--f>-1;)if(r[p])for(g=x[w[f]],v=g.length-1,m=0;v>m;m++)_=g[m+1].da/i[m]+g[m].da/e[m]||0,n[m]=(n[m]||0)+_*_;for(f=n.length;--f>-1;)n[f]=Math.sqrt(n[f])}for(f=w.length,m=a?4:1;--f>-1;)p=w[f],g=x[p],h(g,s,a,l,r[p]),y&&(g.splice(0,m),g.splice(g.length-m,m));return x},d=function(t,e,i){e=e||"soft";var n,r,s,o,l,h,u,c,d,f,p,g={},m="cubic"===e?3:2,_="soft"===e,v=[];if(_&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(d in t[0])v.push(d);for(h=v.length;--h>-1;){for(d=v[h],g[d]=l=[],f=0,c=t.length,u=0;c>u;u++)n=null==i?t[u][d]:"string"==typeof(p=t[u][d])&&"="===p.charAt(1)?i[d]+Number(p.charAt(0)+p.substr(2)):Number(p),_&&u>1&&c-1>u&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(c=f-m+1,f=0,u=0;c>u;u+=m)n=l[u],r=l[u+1],s=l[u+2],o=2===m?0:l[u+3],l[f++]=p=3===m?new a(n,r,s,o):new a(n,(2*r+n)/3,(2*r+s)/3,s);l.length=f}return g},f=function(t,e,i){for(var n,r,s,a,o,l,h,u,c,d,f,p=1/i,g=t.length;--g>-1;)for(d=t[g],s=d.a,a=d.d-s,o=d.c-s,l=d.b-s,n=r=0,u=1;i>=u;u++)h=p*u,c=1-h,n=r-(r=(h*h*a+3*c*(h*o+c*l))*h),f=g*i+u-1,e[f]=(e[f]||0)+n*n},p=function(t,e){e=e>>0||6;var i,n,r,s,a=[],o=[],l=0,h=0,u=e-1,c=[],d=[];for(i in t)f(t[i],a,e);for(r=a.length,n=0;r>n;n++)l+=Math.sqrt(a[n]),s=n%e,d[s]=l,s===u&&(h+=l,s=n/e>>0,c[s]=d,o[s]=h,l=0,d=[]);return{length:h,lengths:o,
  segments:c}},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,a,o,l=e.values||[],h={},u=l[0],f=e.autoRotate||i.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",f===!0?0:Number(f)||0]]:null;for(n in u)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],h[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),o||h[n]!==l[0][n]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):d(l,e.type,h),this._segCount=this._beziers[n].length,this._timeRes){var g=p(this._beziers,this._timeRes);this._length=g.length,this._lengths=g.lengths,this._segments=g.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(a=0;3>a;a++)n=f[s][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[s][2],this._initialRotations[s]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,a,o,l,h,u,c,d=this._segCount,f=this._func,p=this._target,g=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,r=this._li,e>this._l2&&d-1>r){for(h=d-1;h>r&&(this._l2=u[++r])<=e;);this._l1=u[r-1],this._li=r,this._curSeg=c=this._segments[r],this._s2=c[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=u[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=u[r],this._li=r,this._curSeg=c=this._segments[r],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<c.length-1){for(h=c.length-1;h>r&&(this._s2=c[++r])<=e;);this._s1=c[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=c[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=c[r],this._si=r}o=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else i=0>e?0:e>=1?d-1:d*e>>0,o=(e-i*(1/d))*d;for(n=1-o,r=this._props.length;--r>-1;)s=this._props[r],a=this._beziers[s][i],l=(o*o*a.da+3*n*(o*a.ca+n*a.ba))*o+a.a,this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l;if(this._autoRotate){var m,_,v,y,b,x,w,T=this._autoRotate;for(r=T.length;--r>-1;)s=T[r][2],x=T[r][3]||0,w=T[r][4]===!0?1:t,a=this._beziers[T[r][0]],m=this._beziers[T[r][1]],a&&m&&(a=a[i],m=m[i],_=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,_+=(y-_)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,b=m.b+(m.c-m.b)*o,v+=(b-v)*o,b+=(m.c+(m.d-m.c)*o-b)*o,l=g?Math.atan2(b-v,y-_)*w+x:this._initialRotations[r],this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l)}}}),m=g.prototype;g.bezierThrough=c,g.cubicToQuadratic=l,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new g;var h,u,c,d=e.values,f=d.length-1,p=[],m={};if(0>f)return o;for(h=0;f>=h;h++)c=i(t,d[h],a,o,l,f!==h),p[h]=c.end;for(u in e)m[u]=e[u];return m.values=p,o=new r(t,"bezier",0,0,c.pt,2),o.data=c,o.plugin=l,o.setRatio=n,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween),o}})}},m._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)e=t[i[n]],e&&"function"==typeof e&&(this._mod[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.19.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,d,f,p,g,m,_,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,C=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,k=/^(rgb|hsl)/,P=/([A-Z])/g,M=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,E=/[\s,\(]/i,F=Math.PI/180,N=180/Math.PI,B={},V=document,W=function(t){return V.createElementNS?V.createElementNS("http://www.w3.org/1999/xhtml",t):V.createElement(t)},z=W("div"),H=W("img"),Y=a._internals={_specialProps:l},U=navigator.userAgent,j=function(){var t=U.indexOf("Android"),e=W("a");return d=-1!==U.indexOf("Safari")&&-1===U.indexOf("Chrome")&&(-1===t||Number(U.substr(t+8,1))>3),p=d&&Number(U.substr(U.indexOf("Version/")+8,1))<6,f=-1!==U.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(g=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),X=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},G=function(t){window.console&&console.log(t)},q="",$="",Q=function(t,e){e=e||z;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?($=3===n?"ms":i[n],q="-"+$.toLowerCase()+"-",$+t):null},Z=V.defaultView?V.defaultView.getComputedStyle:function(){},J=a.getStyle=function(t,e,i,n,r){var s;return j||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||Z(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):X(t)},K=Y.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var o,l,h,u=O.test(i),c=t,d=z.style,f=0>n,p=1===n;if(f&&(n=-n),p&&(n*=100),"%"===r&&-1!==i.indexOf("border"))o=n/100*(u?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&c.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)d[u?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(c=t.parentNode||V.body,l=c._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*n/100;d[u?"width":"height"]=n+r}c.appendChild(z),o=parseFloat(z[u?"offsetWidth":"offsetHeight"]),c.removeChild(z),u&&"%"===r&&a.cacheWidths!==!1&&(l=c._gsCache=c._gsCache||{},l.time=h,l.width=o/n*100),0!==o||s||(o=K(t,i,n,r,!0))}return p&&(o/=100),f?-o:o},tt=Y.calculateOffset=function(t,e,i){if("absolute"!==J(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=J(t,"margin"+n,i);return t["offset"+n]-(K(t,e,parseFloat(r),r.replace(w,""))||0)},et=function(t,e){var i,n,r,s={};if(e=e||Z(t,null))if(i=e.length)for(;--i>-1;)r=e[i],(-1===r.indexOf("-transform")||Mt===r)&&(s[r.replace(M,D)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Pt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(M,D)]=e[i]);return j||(s.opacity=X(t)),n=zt(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,Dt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},it=function(t,e,i,n,r){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(x,"")?s:0:tt(t,a),void 0!==h[a]&&(o=new _t(h,a,h[a],o)));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}},nt={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],st=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Z(t))[e]||0;if(t.getBBox&&Bt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=nt[e],s=r.length;for(i=i||Z(t,null);--s>-1;)n-=parseFloat(J(t,"padding"+r[s],i,!0))||0,n-=parseFloat(J(t,"border"+r[s]+"Width",i,!0))||0;return n},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(at(n[i]));return t.join(",")}return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+s+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(x,"")),e.oy=parseFloat(s.replace(x,"")),e.v=t),e||t},ot=function(t,e){return"function"==typeof t&&(t=t(_,m)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(_,m)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ht=function(t,e,i,n){var r,s,a,o,l,h=1e-6;return"function"==typeof t&&(t=t(_,m)),null==t?o=e:"number"==typeof t?o=t:(r=360,s=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:N)-(l?0:e),s.length&&(n&&(n[i]=e+a),-1!==t.indexOf("short")&&(a%=r,a!==a%(r/2)&&(a=0>a?a+r:a-r)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*r)%r-(a/r|0)*r:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*r)%r-(a/r|0)*r)),o=e+a),h>o&&o>-h&&(o=0),o},ut={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ct=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},dt=a.parseColor=function(t,e){var i,n,r,s,a,o,l,h,u,c,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ut[t])i=ut[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(v),e){if(-1!==t.indexOf("="))return t.match(y)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,r=.5>=l?l*(o+1):l+o-l*o,n=2*l-r,i.length>3&&(i[3]=Number(t[3])),i[0]=ct(a+1/3,n,r),i[1]=ct(a,n,r),i[2]=ct(a-1/3,n,r);else i=t.match(v)||ut.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ut.black;return e&&!d&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,h=Math.max(n,r,s),u=Math.min(n,r,s),l=(h+u)/2,h===u?a=o=0:(c=h-u,o=l>.5?c/(2-h-u):c/(h+u),a=h===n?(r-s)/c+(s>r?6:0):h===r?(s-n)/c+2:(n-r)/c+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,n,r,s=t.match(pt)||[],a=0,o=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],r=t.substr(a,t.indexOf(n,a)-a),a+=r.length+n.length,n=dt(n,e),3===n.length&&n.push(1),o+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(a)},pt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in ut)pt+="|"+h+"\\b";pt=new RegExp(pt+")","gi"),a.colorStringFilter=function(t){var e,i=t[0]+t[1];pt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ft(t[0],e),t[1]=ft(t[1],e)),pt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var gt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(pt)||[""])[0]:"",a=t.split(s).join("").match(b)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,c=u>0?a[0].replace(v,""):"";return u?r=e?function(t){var e,d,f,p;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(p=t.replace(I,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(pt)||[s])[0],d=t.split(e).join("").match(b)||[],f=d.length,u>f--)for(;++f<u;)d[f]=i?d[(f-1)/2|0]:a[f];return o+d.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,d;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(s=t.replace(I,"|").split("|"),d=0;d<s.length;d++)s[d]=r(s[d]);return s.join(",")}if(e=t.match(b)||[],d=e.length,u>d--)for(;++d<u;)e[d]=i?e[(d-1)/2|0]:a[d];return o+e.join(h)+l}:function(t){return t}},mt=function(t){return t=t.split(","),function(e,i,n,r,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return r.parse(e,o,s,a)}},_t=(Y._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,a=this.data,o=a.proxy,l=a.firstMPT,h=1e-6;l;)e=o[l.v],l.r?e=Math.round(e):h>e&&e>-h&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),vt=(Y._parseToProxy=function(t,e,i,n,r,s){var a,o,l,h,u,c=n,d={},f={},p=i._transform,g=B;for(i._transform=null,B=e,n=u=i.parse(t,e,n,r),B=g,s&&(i._transform=p,c&&(c._prev=null,c._prev&&(c._prev._next=null)));n&&n!==c;){if(n.type<=1&&(o=n.p,f[o]=n.s+n.c,d[o]=n.s,s||(h=new _t(n,"s",o,h,n.r),n.c=0),1===n.type))for(a=n.l;--a>0;)l="xn"+a,o=n.p+"_"+l,f[o]=n.data[l],d[o]=n[l],s||(h=new _t(n,l,o,h,n.rxp[l]));n=n._next}return{proxy:d,end:f,firstMPT:h,pt:u}},Y.CSSPropTween=function(t,e,n,r,a,o,l,h,u,c,d){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof vt||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===c?n:c,this.e=void 0===d?n+r:d,a&&(this._next=a,a._prev=this)}),yt=function(t,e,i,n,r,s){var a=new vt(t,e,i,n-i,r,(-1),s);return a.b=i,a.e=a.xs0=n,a},bt=a.parseComplex=function(t,e,i,n,r,s,o,l,h,c){i=i||s||"","function"==typeof n&&(n=n(_,m)),o=new vt(t,e,0,0,o,c?2:1,null,(!1),l,i,n),n+="",r&&pt.test(n+i)&&(n=[i,n],a.colorStringFilter(n),i=n[0],n=n[1]);var d,f,p,g,b,x,w,T,C,S,k,P,M,A=i.split(", ").join(",").split(" "),D=n.split(", ").join(",").split(" "),O=A.length,R=u!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(A=A.join(" ").replace(I,", ").split(" "),D=D.join(" ").replace(I,", ").split(" "),O=A.length),O!==D.length&&(A=(s||"").split(" "),O=A.length),o.plugin=h,o.setRatio=c,pt.lastIndex=0,d=0;O>d;d++)if(g=A[d],b=D[d],T=parseFloat(g),T||0===T)o.appendXtra("",T,ot(b,T),b.replace(y,""),R&&-1!==b.indexOf("px"),!0);else if(r&&pt.test(g))P=b.indexOf(")")+1,P=")"+(P?b.substr(P):""),M=-1!==b.indexOf("hsl")&&j,g=dt(g,M),b=dt(b,M),C=g.length+b.length>6,C&&!j&&0===b[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(D[d]).join("transparent")):(j||(C=!1),M?o.appendXtra(C?"hsla(":"hsl(",g[0],ot(b[0],g[0]),",",!1,!0).appendXtra("",g[1],ot(b[1],g[1]),"%,",!1).appendXtra("",g[2],ot(b[2],g[2]),C?"%,":"%"+P,!1):o.appendXtra(C?"rgba(":"rgb(",g[0],b[0]-g[0],",",!0,!0).appendXtra("",g[1],b[1]-g[1],",",!0).appendXtra("",g[2],b[2]-g[2],C?",":P,!0),C&&(g=g.length<4?1:g[3],o.appendXtra("",g,(b.length<4?1:b[3])-g,P,!1))),pt.lastIndex=0;else if(x=g.match(v)){if(w=b.match(y),!w||w.length!==x.length)return o;for(p=0,f=0;f<x.length;f++)k=x[f],S=g.indexOf(k,p),o.appendXtra(g.substr(p,S-p),Number(k),ot(w[f],k),"",R&&"px"===g.substr(S+k.length,2),0===f),p=S+k.length;o["xs"+o.l]+=g.substr(p)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+b:b;if(-1!==n.indexOf("=")&&o.data){for(P=o.xs0+o.data.s,d=1;d<o.l;d++)P+=o["xs"+d]+o.data["xn"+d];o.e=P+o["xs"+d]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},xt=9;for(h=vt.prototype,h.l=h.pr=0;--xt>0;)h["xn"+xt]=0,h["xs"+xt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,n,r,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new vt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(n||""),a)};var wt=function(t,e){e=e||{},this.p=e.prefix?Q(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Tt=Y._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,s=t.split(","),a=e.defaultValue;for(i=i||[a],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||a,r=new wt(s[n],e)},Ct=Y._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,i,n,r,s,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[n].parse(t,i,n,r,s,a,h)):(G("Error: "+e+" js file not loaded."),s)}})}};h=wt.prototype,h.parseComplex=function(t,e,i,n,r,s){var a,o,l,h,u,c,d=this.keyword;if(this.multi&&(I.test(i)||I.test(e)?(o=e.replace(I,"|").split("|"),l=i.replace(I,"|").split("|")):d&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,d&&(u=e.indexOf(d),c=i.indexOf(d),u!==c&&(-1===c?o[a]=o[a].split(d).join(""):-1===u&&(o[a]+=" "+d)));e=o.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},h.parse=function(t,e,i,n,s,a,o){return this.parseComplex(t.style,this.format(J(t,this.p,r,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){Tt(t,{parser:function(t,n,r,s,a,o,l){var h=new vt(t,r,0,0,a,2,r,(!1),i);return h.plugin=o,h.setRatio=e(t,n,s._tween,r),h},priority:i})},a.useSVGTransformAttr=d||f;var St,kt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pt=Q("transform"),Mt=q+"transform",At=Q("transformOrigin"),Dt=null!==Q("perspective"),Ot=Y.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(a.defaultForce3D===!1||!Dt)&&(a.defaultForce3D||"auto")},Rt=window.SVGElement,Lt=function(t,e,i){var n,r=V.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},It=V.documentElement,Et=function(){var t,e,i,n=g||/Android/i.test(U)&&!window.chrome;return V.createElementNS&&!n&&(t=Lt("svg",It),e=Lt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[At]="50% 50%",e.style[Pt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&Dt),It.removeChild(t)),n}(),Ft=function(t,e,i,n,r,s){var o,l,h,u,c,d,f,p,g,m,_,v,y,b,x=t._gsTransform,w=Wt(t,!0);x&&(y=x.xOrigin,b=x.yOrigin),(!n||(o=n.split(" ")).length<2)&&(f=t.getBBox(),e=at(e).split(" "),o=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=u=parseFloat(o[0]),i.yOrigin=c=parseFloat(o[1]),n&&w!==Vt&&(d=w[0],f=w[1],p=w[2],g=w[3],m=w[4],_=w[5],v=d*g-f*p,l=u*(g/v)+c*(-p/v)+(p*_-g*m)/v,h=u*(-f/v)+c*(d/v)-(d*_-f*m)/v,u=i.xOrigin=o[0]=l,c=i.yOrigin=o[1]=h),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),r||r!==!1&&a.defaultSmoothOrigin!==!1?(l=u-y,h=c-b,x.xOffset+=l*w[0]+h*w[2]-l,x.yOffset+=l*w[1]+h*w[3]-h):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))},Nt=function(t){try{return t.getBBox()}catch(t){}},Bt=function(t){return!!(Rt&&t.getBBox&&t.getCTM&&Nt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Vt=[1,0,0,1,0,0],Wt=function(t,e){var i,n,r,s,a,o,l=t._gsTransform||new Ot,h=1e5,u=t.style;if(Pt?n=J(t,Mt,null,!0):t.currentStyle&&(n=t.currentStyle.filter.match(R),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,i&&Pt&&((o="none"===Z(t).display)||!t.parentNode)&&(o&&(s=u.display,u.display="block"),t.parentNode||(a=1,It.appendChild(t)),n=J(t,Mt,null,!0),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,s?u.display=s:o&&jt(u,"display"),a&&It.removeChild(t)),(l.svg||t.getBBox&&Bt(t))&&(i&&-1!==(u[Pt]+"").indexOf("matrix")&&(n=u[Pt],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Vt;for(r=(n||"").match(v)||[],xt=r.length;--xt>-1;)s=Number(r[xt]),r[xt]=(a=s-(s|=0))?(a*h+(0>a?-.5:.5)|0)/h+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},zt=Y.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var s,o,l,h,u,c,d=n?t._gsTransform||new Ot:new Ot,f=d.scaleX<0,p=2e-5,g=1e5,m=Dt?parseFloat(J(t,At,i,!1,"0 0 0").split(" ")[2])||d.zOrigin||0:0,_=parseFloat(a.defaultTransformPerspective)||0;if(d.svg=!(!t.getBBox||!Bt(t)),d.svg&&(Ft(t,J(t,At,i,!1,"50% 50%")+"",d,t.getAttribute("data-svg-origin")),St=a.useSVGTransformAttr||Et),s=Wt(t),s!==Vt){if(16===s.length){var v,y,b,x,w,T=s[0],C=s[1],S=s[2],k=s[3],P=s[4],M=s[5],A=s[6],D=s[7],O=s[8],R=s[9],L=s[10],I=s[12],E=s[13],F=s[14],B=s[11],V=Math.atan2(A,L);d.zOrigin&&(F=-d.zOrigin,I=O*F-s[12],E=R*F-s[13],F=L*F+d.zOrigin-s[14]),d.rotationX=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=P*x+O*w,y=M*x+R*w,b=A*x+L*w,O=P*-w+O*x,R=M*-w+R*x,L=A*-w+L*x,B=D*-w+B*x,P=v,M=y,A=b),V=Math.atan2(-S,L),d.rotationY=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=T*x-O*w,y=C*x-R*w,b=S*x-L*w,R=C*w+R*x,L=S*w+L*x,B=k*w+B*x,T=v,C=y,S=b),V=Math.atan2(C,T),d.rotation=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),T=T*x+P*w,y=C*x+M*w,M=C*-w+M*x,A=S*-w+A*x,C=y),d.rotationX&&Math.abs(d.rotationX)+Math.abs(d.rotation)>359.9&&(d.rotationX=d.rotation=0,d.rotationY=180-d.rotationY),d.scaleX=(Math.sqrt(T*T+C*C)*g+.5|0)/g,d.scaleY=(Math.sqrt(M*M+R*R)*g+.5|0)/g,d.scaleZ=(Math.sqrt(A*A+L*L)*g+.5|0)/g,d.rotationX||d.rotationY?d.skewX=0:(d.skewX=P||M?Math.atan2(P,M)*N+d.rotation:d.skewX||0,Math.abs(d.skewX)>90&&Math.abs(d.skewX)<270&&(f?(d.scaleX*=-1,d.skewX+=d.rotation<=0?180:-180,d.rotation+=d.rotation<=0?180:-180):(d.scaleY*=-1,d.skewX+=d.skewX<=0?180:-180))),d.perspective=B?1/(0>B?-B:B):0,d.x=I,d.y=E,d.z=F,d.svg&&(d.x-=d.xOrigin-(d.xOrigin*T-d.yOrigin*P),d.y-=d.yOrigin-(d.yOrigin*C-d.xOrigin*M))}else if(!Dt||r||!s.length||d.x!==s[4]||d.y!==s[5]||!d.rotationX&&!d.rotationY){var W=s.length>=6,z=W?s[0]:1,H=s[1]||0,Y=s[2]||0,U=W?s[3]:1;d.x=s[4]||0,d.y=s[5]||0,l=Math.sqrt(z*z+H*H),h=Math.sqrt(U*U+Y*Y),u=z||H?Math.atan2(H,z)*N:d.rotation||0,c=Y||U?Math.atan2(Y,U)*N+u:d.skewX||0,Math.abs(c)>90&&Math.abs(c)<270&&(f?(l*=-1,c+=0>=u?180:-180,u+=0>=u?180:-180):(h*=-1,c+=0>=c?180:-180)),d.scaleX=l,d.scaleY=h,d.rotation=u,d.skewX=c,Dt&&(d.rotationX=d.rotationY=d.z=0,d.perspective=_,d.scaleZ=1),d.svg&&(d.x-=d.xOrigin-(d.xOrigin*z+d.yOrigin*Y),d.y-=d.yOrigin-(d.xOrigin*H+d.yOrigin*U))}d.zOrigin=m;for(o in d)d[o]<p&&d[o]>-p&&(d[o]=0)}return n&&(t._gsTransform=d,d.svg&&(St&&t.style[Pt]?e.delayedCall(.001,function(){jt(t.style,Pt)}):!St&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),d},Ht=function(t){var e,i,n=this.data,r=-n.rotation*F,s=r+n.skewX*F,a=1e5,o=(Math.cos(r)*n.scaleX*a|0)/a,l=(Math.sin(r)*n.scaleX*a|0)/a,h=(Math.sin(s)*-n.scaleY*a|0)/a,u=(Math.cos(s)*n.scaleY*a|0)/a,c=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-h,h=-i,e=d.filter,c.filter="";var f,p,m=this.t.offsetWidth,_=this.t.offsetHeight,v="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,b=n.x+m*n.xPercent/100,x=n.y+_*n.yPercent/100;if(null!=n.ox&&(f=(n.oxp?m*n.ox*.01:n.ox)-m/2,p=(n.oyp?_*n.oy*.01:n.oy)-_/2,b+=f-(f*o+p*l),x+=p-(f*h+p*u)),v?(f=m/2,p=_/2,y+=", Dx="+(f-(f*o+p*l)+b)+", Dy="+(p-(f*h+p*u)+x)+")"):y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(L,y):c.filter=y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var C,S,k,P=8>g?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*_))/2+b),n.ieOffsetY=Math.round((_-((0>u?-u:u)*_+(0>h?-h:h)*m))/2+x),xt=0;4>xt;xt++)S=rt[xt],C=d[S],i=-1!==C.indexOf("px")?parseFloat(C):K(this.t,S,parseFloat(C),C.replace(w,""))||0,k=i!==n[S]?2>xt?-n.ieOffsetX:-n.ieOffsetY:2>xt?f-n.ieOffsetX:p-n.ieOffsetY,c[S]=(n[S]=Math.round(i-k*(0===xt||2===xt?1:P)))+"px"}}},Yt=Y.set3DTransformRatio=Y.setTransformRatio=function(t){var e,i,n,r,s,a,o,l,h,u,c,d,p,g,m,_,v,y,b,x,w,T,C,S=this.data,k=this.t.style,P=S.rotation,M=S.rotationX,A=S.rotationY,D=S.scaleX,O=S.scaleY,R=S.scaleZ,L=S.x,I=S.y,E=S.z,N=S.svg,B=S.perspective,V=S.force3D;if(((1===t||0===t)&&"auto"===V&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!V)&&!E&&!B&&!A&&!M&&1===R||St&&N||!Dt)return void(P||S.skewX||N?(P*=F,T=S.skewX*F,C=1e5,e=Math.cos(P)*D,r=Math.sin(P)*D,i=Math.sin(P-T)*-O,s=Math.cos(P-T)*O,T&&"simple"===S.skewType&&(v=Math.tan(T-S.skewY*F),v=Math.sqrt(1+v*v),i*=v,s*=v,S.skewY&&(v=Math.tan(S.skewY*F),v=Math.sqrt(1+v*v),e*=v,r*=v)),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset,St&&(S.xPercent||S.yPercent)&&(g=this.t.getBBox(),L+=.01*S.xPercent*g.width,I+=.01*S.yPercent*g.height),g=1e-6,g>L&&L>-g&&(L=0),g>I&&I>-g&&(I=0)),b=(e*C|0)/C+","+(r*C|0)/C+","+(i*C|0)/C+","+(s*C|0)/C+","+L+","+I+")",N&&St?this.t.setAttribute("transform","matrix("+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+D+",0,0,"+O+","+L+","+I+")");if(f&&(g=1e-4,g>D&&D>-g&&(D=R=2e-5),g>O&&O>-g&&(O=R=2e-5),!B||S.z||S.rotationX||S.rotationY||(B=0)),P||S.skewX)P*=F,m=e=Math.cos(P),_=r=Math.sin(P),S.skewX&&(P-=S.skewX*F,m=Math.cos(P),_=Math.sin(P),"simple"===S.skewType&&(v=Math.tan((S.skewX-S.skewY)*F),v=Math.sqrt(1+v*v),m*=v,_*=v,S.skewY&&(v=Math.tan(S.skewY*F),v=Math.sqrt(1+v*v),e*=v,r*=v))),i=-_,s=m;else{if(!(A||M||1!==R||B||N))return void(k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+I+"px,"+E+"px)"+(1!==D||1!==O?" scale("+D+","+O+")":""));e=s=1,i=r=0}h=1,n=a=o=l=u=c=0,d=B?-1/B:0,p=S.zOrigin,g=1e-6,x=",",w="0",P=A*F,P&&(m=Math.cos(P),_=Math.sin(P),o=-_,u=d*-_,n=e*_,a=r*_,h=m,d*=m,e*=m,r*=m),P=M*F,P&&(m=Math.cos(P),_=Math.sin(P),v=i*m+n*_,y=s*m+a*_,l=h*_,c=d*_,n=i*-_+n*m,a=s*-_+a*m,h*=m,d*=m,i=v,s=y),1!==R&&(n*=R,a*=R,h*=R,d*=R),1!==O&&(i*=O,s*=O,l*=O,c*=O),1!==D&&(e*=D,r*=D,o*=D,u*=D),(p||N)&&(p&&(L+=n*-p,I+=a*-p,E+=h*-p+p),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset),g>L&&L>-g&&(L=w),g>I&&I>-g&&(I=w),g>E&&E>-g&&(E=0)),b=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",b+=(g>e&&e>-g?w:e)+x+(g>r&&r>-g?w:r)+x+(g>o&&o>-g?w:o),b+=x+(g>u&&u>-g?w:u)+x+(g>i&&i>-g?w:i)+x+(g>s&&s>-g?w:s),M||A||1!==R?(b+=x+(g>l&&l>-g?w:l)+x+(g>c&&c>-g?w:c)+x+(g>n&&n>-g?w:n),b+=x+(g>a&&a>-g?w:a)+x+(g>h&&h>-g?w:h)+x+(g>d&&d>-g?w:d)+x):b+=",0,0,0,0,1,0,",b+=L+x+I+x+E+x+(B?1+-E/B:1)+")",k[Pt]=b};h=Ot.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,o,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var h;"function"==typeof l[i]&&(h=l[i],l[i]=e);var u,c,d,f,p,g,v,y,b,x=t._gsTransform,w=t.style,T=1e-6,C=kt.length,S=l,k={},P="transformOrigin",M=zt(t,r,!0,S.parseTransform),A=S.transform&&("function"==typeof S.transform?S.transform(_,m):S.transform);if(n._transform=M,A&&"string"==typeof A&&Pt)c=z.style,c[Pt]=A,c.display="block",c.position="absolute",V.body.appendChild(z),u=zt(z,null,!1),M.svg&&(g=M.xOrigin,v=M.yOrigin,u.x-=M.xOffset,u.y-=M.yOffset,(S.transformOrigin||S.svgOrigin)&&(A={},Ft(t,at(S.transformOrigin),A,S.svgOrigin,S.smoothOrigin,!0),g=A.xOrigin,v=A.yOrigin,u.x-=A.xOffset-M.xOffset,u.y-=A.yOffset-M.yOffset),(g||v)&&(y=Wt(z,!0),u.x-=g-(g*y[0]+v*y[2]),u.y-=v-(g*y[1]+v*y[3]))),V.body.removeChild(z),u.perspective||(u.perspective=M.perspective),null!=S.xPercent&&(u.xPercent=lt(S.xPercent,M.xPercent)),null!=S.yPercent&&(u.yPercent=lt(S.yPercent,M.yPercent));else if("object"==typeof S){if(u={scaleX:lt(null!=S.scaleX?S.scaleX:S.scale,M.scaleX),scaleY:lt(null!=S.scaleY?S.scaleY:S.scale,M.scaleY),scaleZ:lt(S.scaleZ,M.scaleZ),x:lt(S.x,M.x),y:lt(S.y,M.y),z:lt(S.z,M.z),xPercent:lt(S.xPercent,M.xPercent),yPercent:lt(S.yPercent,M.yPercent),perspective:lt(S.transformPerspective,M.perspective)},p=S.directionalRotation,null!=p)if("object"==typeof p)for(c in p)S[c]=p[c];else S.rotation=p;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(u.x=0,u.xPercent=lt(S.x,M.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(u.y=0,u.yPercent=lt(S.y,M.yPercent)),u.rotation=ht("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:M.rotation-M.skewY,M.rotation-M.skewY,"rotation",k),Dt&&(u.rotationX=ht("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":M.rotationX||0,M.rotationX,"rotationX",k),u.rotationY=ht("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":M.rotationY||0,M.rotationY,"rotationY",k)),u.skewX=ht(S.skewX,M.skewX-M.skewY),(u.skewY=ht(S.skewY,M.skewY))&&(u.skewX+=u.skewY,u.rotation+=u.skewY)}for(Dt&&null!=S.force3D&&(M.force3D=S.force3D,f=!0),M.skewType=S.skewType||M.skewType||a.defaultSkewType,d=M.force3D||M.z||M.rotationX||M.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,d||null==S.scale||(u.scaleZ=1);--C>-1;)b=kt[C],A=u[b]-M[b],(A>T||-T>A||null!=S[b]||null!=B[b])&&(f=!0,
  s=new vt(M,b,M[b],A,s),b in k&&(s.e=k[b]),s.xs0=0,s.plugin=o,n._overwriteProps.push(s.n));return A=S.transformOrigin,M.svg&&(A||S.svgOrigin)&&(g=M.xOffset,v=M.yOffset,Ft(t,at(A),u,S.svgOrigin,S.smoothOrigin),s=yt(M,"xOrigin",(x?M:u).xOrigin,u.xOrigin,s,P),s=yt(M,"yOrigin",(x?M:u).yOrigin,u.yOrigin,s,P),(g!==M.xOffset||v!==M.yOffset)&&(s=yt(M,"xOffset",x?g:M.xOffset,M.xOffset,s,P),s=yt(M,"yOffset",x?v:M.yOffset,M.yOffset,s,P)),A=St?null:"0px 0px"),(A||Dt&&d&&M.zOrigin)&&(Pt?(f=!0,b=At,A=(A||J(t,b,r,!1,"50% 50%"))+"",s=new vt(w,b,0,0,s,(-1),P),s.b=w[b],s.plugin=o,Dt?(c=M.zOrigin,A=A.split(" "),M.zOrigin=(A.length>2&&(0===c||"0px"!==A[2])?parseFloat(A[2]):c)||0,s.xs0=s.e=A[0]+" "+(A[1]||"50%")+" 0px",s=new vt(M,"zOrigin",0,0,s,(-1),s.n),s.b=c,s.xs0=s.e=M.zOrigin):s.xs0=s.e=A):at(A+"",M)),f&&(n._transformType=M.svg&&St||!d&&3!==this._transformType?2:3),h&&(l[i]=h),s},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,h,u,c,d,f,p,g,m,_,v,y,b,x,w,T,C=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(m=parseFloat(t.offsetWidth),_=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<C.length;h++)this.p.indexOf("border")&&(C[h]=Q(C[h])),d=c=J(t,C[h],r,!1,"0px"),-1!==d.indexOf(" ")&&(c=d.split(" "),d=c[0],c=c[1]),f=u=l[h],p=parseFloat(d),y=d.substr((p+"").length),b="="===f.charAt(1),b?(g=parseInt(f.charAt(0)+"1",10),f=f.substr(2),g*=parseFloat(f),v=f.substr((g+"").length-(0>g?1:0))||""):(g=parseFloat(f),v=f.substr((g+"").length)),""===v&&(v=n[i]||y),v!==y&&(x=K(t,"borderLeft",p,y),w=K(t,"borderTop",p,y),"%"===v?(d=x/m*100+"%",c=w/_*100+"%"):"em"===v?(T=K(t,"borderLeft",1,"em"),d=x/T+"em",c=w/T+"em"):(d=x+"px",c=w+"px"),b&&(f=parseFloat(d)+g+v,u=parseFloat(c)+g+v)),a=bt(S,C[h],d+" "+c,f+" "+u,!1,"0px",a);return a},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,a){return bt(t.style,i,this.format(J(t,i,r,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,a){var o,l,h,u,c,d,f="background-position",p=r||Z(t,null),m=this.format((p?g?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),_=this.format(e);if(-1!==m.indexOf("%")!=(-1!==_.indexOf("%"))&&_.split(",").length<2&&(d=J(t,"backgroundImage").replace(A,""),d&&"none"!==d)){for(o=m.split(" "),l=_.split(" "),H.setAttribute("src",d),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(c=0===h?t.offsetWidth-H.width:t.offsetHeight-H.height,o[h]=u?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=o.join(" ")}return this.parseComplex(t.style,m,_,s,a)},formatter:at}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",at(-1===t.indexOf(" ")?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:mt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:mt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,a){var o,l,h;return 9>g?(l=t.currentStyle,h=8>g?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(J(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,a){var o=J(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(w,"");return"px"!==h&&(o=parseFloat(o)/K(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+J(t,"borderTopStyle",r,!1,"solid")+" "+J(t,"borderTopColor",r,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(pt)||["#000"])[0]}}),Tt("borderWidth",{parser:mt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new vt(a,o,0,0,r,(-1),i,(!1),0,a[o],e)}});var Ut=function(t){var e,i=this.t,n=i.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!J(this.data,"filter")):(i.filter=n.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(T,"opacity="+r))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,a){var o=parseFloat(J(t,"opacity",r,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===J(t,"visibility",r)&&0!==e&&(o=0),j?s=new vt(l,"opacity",o,e-o,s):(s=new vt(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Ut),h&&(s=new vt(l,"visibility",0,0,s,(-1),null,(!1),0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var jt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:jt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(t,e,n,s,a,o,l){var h,u,c,d,f,p=t.getAttribute("class")||"",g=t.style.cssText;if(a=s._classNamePT=new vt(t,n,0,0,a,2),a.setRatio=Xt,a.pr=-11,i=!0,a.b=p,u=et(t,r),c=t._gsClassPT){for(d={},f=c.data;f;)d[f.p]=1,f=f._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=it(t,u,et(t),l,d),t.setAttribute("class",p),a.data=h.firstMPT,t.style.cssText=g,a=a.xfirst=s.parse(t,h.difs,a,o)}});var Gt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===o?r=!0:i="transformOrigin"===i?At:l[i].p),jt(a,i);r&&(jt(a,Pt),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(t,e,n,r,s){return s=new vt(t,n,0,0,s,2),s.setRatio=Gt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),xt=h.length;xt--;)Ct(h[xt]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o,h){if(!t.nodeType)return!1;this._target=m=t,this._tween=o,this._vars=e,_=h,u=e.autoRound,i=!1,n=e.suffixMap||a.suffixMap,r=Z(t,""),s=this._overwriteProps;var f,g,v,y,b,x,w,T,S,k=t.style;if(c&&""===k.zIndex&&(f=J(t,"zIndex",r),("auto"===f||""===f)&&this._addLazySet(k,"zIndex",0)),"string"==typeof e&&(y=k.cssText,f=et(t,r),k.cssText=y+";"+e,f=it(t,f,et(t)).difs,!j&&C.test(e)&&(f.opacity=parseFloat(RegExp.$1)),e=f,k.cssText=y),e.className?this._firstPT=g=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=g=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,Pt?d&&(c=!0,""===k.zIndex&&(w=J(t,"zIndex",r),("auto"===w||""===w)&&this._addLazySet(k,"zIndex",0)),p&&this._addLazySet(k,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):k.zoom=1,v=g;v&&v._next;)v=v._next;T=new vt(t,"transform",0,0,null,2),this._linkCSSP(T,null,v),T.setRatio=Pt?Yt:Ht,T.data=this._transform||zt(t,r,!0),T.tween=o,T.pr=-1,s.pop()}if(i){for(;g;){for(x=g._next,v=y;v&&v.pr>g.pr;)v=v._next;(g._prev=v?v._prev:b)?g._prev._next=g:y=g,(g._next=v)?v._prev=g:b=g,g=x}this._firstPT=y}return!0},h.parse=function(t,e,i,s){var a,o,h,c,d,f,p,g,v,y,b=t.style;for(a in e)f=e[a],"function"==typeof f&&(f=f(_,m)),o=l[a],o?i=o.parse(t,f,a,this,i,s,e):(d=J(t,a,r)+"",v="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||v&&k.test(f)?(v||(f=dt(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=bt(b,a,d,f,!0,"transparent",i,0,s)):v&&E.test(f)?i=bt(b,a,d,f,!0,null,i,0,s):(h=parseFloat(d),p=h||0===h?d.substr((h+"").length):"",(""===d||"auto"===d)&&("width"===a||"height"===a?(h=st(t,a,r),p="px"):"left"===a||"top"===a?(h=tt(t,a,r),p="px"):(h="opacity"!==a?0:1,p="")),y=v&&"="===f.charAt(1),y?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),g=f.replace(w,"")):(c=parseFloat(f),g=v?f.replace(w,""):""),""===g&&(g=a in n?n[a]:p),f=c||0===c?(y?c+h:c)+g:e[a],p!==g&&""!==g&&(c||0===c)&&h&&(h=K(t,a,h,p),"%"===g?(h/=K(t,a,100,"%")/100,e.strictUnits!==!0&&(d=h+"%")):"em"===g||"rem"===g||"vw"===g||"vh"===g?h/=K(t,a,1,g):"px"!==g&&(c=K(t,a,c,g),g="px"),y&&(c||0===c)&&(f=c+h+g)),y&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==b[a]&&(f||f+""!="NaN"&&null!=f)?(i=new vt(b,a,c||h||0,0,i,(-1),a,(!1),0,d,f),i.xs0="none"!==f||"display"!==a&&-1===a.indexOf("Style")?f:d):G("invalid "+a+" tween value: "+e[a]):(i=new vt(b,a,h,c-h,i,0,a,u!==!1&&("px"===g||"zIndex"===a),0,d,f),i.xs0=g))),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,n,r=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):s>e&&e>-s&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},h._enableTransforms=function(t){this._transform=this._transform||zt(this._target,r,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};var qt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var n=this._firstPT=new vt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=qt,n.data=this},h._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},h._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,s)};var $t=function(t,e,i){var n,r,s,a;if(t.slice)for(r=t.length;--r>-1;)$t(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)s=n[r],a=s.type,s.style&&(e.push(et(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||$t(s,e,i)};return a.cascadeTo=function(t,i,n){var r,s,a,o,l=e.to(t,i,n),h=[l],u=[],c=[],d=[],f=e._internals.reservedProps;for(t=l._targets||l.target,$t(t,u,d),l.render(i,!0,!0),$t(t,c),l.render(0,!0,!0),l._enabled(!0),r=d.length;--r>-1;)if(s=it(d[r],u[r],c[r]),s.firstMPT){s=s.difs;for(a in n)f[a]&&(s[a]=n[a]);o={};for(a in s)o[a]=u[r][a];h.push(e.fromTo(d[r],i,o,s))}return h},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,n,r=this._tween,s=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),a=s.length,o={},l=r._propLookup.roundProps;--a>-1;)o[s[a]]=Math.round;for(a=s.length;--a>-1;)for(t=s[a],i=r._firstPT;i;)n=i._next,i.pg?i.t._mod(o):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[t]=l)),i=n;return!1},i._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,n){var r,s;if("function"!=typeof t.setAttribute)return!1;for(r in e)s=e[r],"function"==typeof s&&(s=s(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",s+"",r,!1,r),this._overwriteProps.push(r);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,s,a,o,l,h,u=e.useRadians===!0?2*Math.PI:360,c=1e-6;for(r in e)"useRadians"!==r&&(o=e[r],"function"==typeof o&&(o=o(n,t)),h=(o+"").split("_"),s=h[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),o=this.finals[r]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,l=o-a,h.length&&(s=h.join("_"),-1!==s.indexOf("short")&&(l%=u,l!==l%(u/2)&&(l=0>l?l+u:l-u)),-1!==s.indexOf("_cw")&&0>l?l=(l+9999999999*u)%u-(l/u|0)*u:-1!==s.indexOf("ccw")&&l>0&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(l>c||-c>l)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},u=t.register||function(){},c=function(t,e,i,n,r){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return u(s,t),s},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},p=c("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=g.prototype=new t;return m.constructor=g,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),m.config=g.config=function(t,e,i){return new g(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,s,a,o,l=e.taper||"none",h=[],u=0,c=0|(e.points||20),f=c,p=e.randomize!==!1,g=e.clamp===!0,m=e.template instanceof t?e.template:null,_="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/c*f,n=m?m.getRatio(i):i,"none"===l?r=_:"out"===l?(s=1-i,r=s*s*_):"in"===l?r=i*i*_:.5>i?(s=2*i,r=s*s*.5*_):(s=2*(1-i),r=s*s*.5*_),p?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,g&&(n>1?n=1:0>n&&(n=0)),h[u++]={x:i,y:n};for(h.sort(function(t,e){return t.x-e.x}),o=new d(1,1,null),f=c;--f>-1;)a=h[f],o=new d(a.x,a.y,o);this._prev=new d(0,0,0!==o.t?o:o.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),c("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},c("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),n("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),c("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),c("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return-Math.cos(t*o)+1}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(r.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!n.TweenLite){var r,s,a,o,l,h=function(t){var e,i=t.split("."),r=n;for(e=0;e<i.length;e++)r[i[e]]=r=r[i[e]]||{};return r},u=h("com.greensock"),c=1e-10,d=function(t){var e,i=[],n=t.length;for(e=0;e!==n;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),g={},m=function(r,s,a,o){this.sc=g[r]?g[r].sc:[],g[r]=this,this.gsClass=null,this.func=a;var l=[];this.check=function(u){for(var c,d,f,p,_,v=s.length,y=v;--v>-1;)(c=g[s[v]]||new m(s[v],[])).gsClass?(l[v]=c.gsClass,y--):u&&c.sc.push(this);if(0===y&&a){if(d=("com.greensock."+r).split("."),f=d.pop(),p=h(d.join("."))[f]=this.gsClass=a.apply(a,l),o)if(n[f]=i[f]=p,_="undefined"!=typeof module&&module.exports,!_&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return p});else if(_)if(r===e){module.exports=i[e]=p;for(v in i)p[v]=i[v]}else i[e]&&(i[e][f]=p);for(v=0;v<this.sc.length;v++)this.sc[v].check()}},this.check(!0)},_=t._gsDefine=function(t,e,i,n){return new m(t,e,i,n)},v=u._class=function(t,e,i){return e=e||function(){},_(t,[],function(){return e},i),e};_.globals=n;var y=[0,0,1,1],b=v("easing.Ease",function(t,e,i,n){this._func=t,this._type=i||0,this._power=n||0,this._params=e?y.concat(e):y},!0),x=b.map={},w=b.register=function(t,e,i,n){for(var r,s,a,o,l=e.split(","),h=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--h>-1;)for(s=l[h],r=n?v("easing."+s,null,!0):u.easing[s]||{},a=c.length;--a>-1;)o=c[a],x[s+"."+o]=x[o+s]=r[o]=t.getRatio?t:t[o]||new t};for(a=b.prototype,a._calcEnd=!1,a.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,n=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?n*=n:2===i?n*=n*n:3===i?n*=n*n*n:4===i&&(n*=n*n*n*n),1===e?1-n:2===e?n:.5>t?n/2:1-n/2},r=["Linear","Quad","Cubic","Quart","Quint,Strong"],s=r.length;--s>-1;)a=r[s]+",Power"+s,w(new b(null,null,1,s),a,"easeOut",!0),w(new b(null,null,2,s),a,"easeIn"+(0===s?",easeNone":"")),w(new b(null,null,3,s),a,"easeInOut");x.linear=u.easing.Linear.easeIn,x.swing=u.easing.Quad.easeInOut;var T=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});a=T.prototype,a.addEventListener=function(t,e,i,n,r){r=r||0;var s,a,h=this._listeners[t],u=0;for(this!==o||l||o.wake(),null==h&&(this._listeners[t]=h=[]),a=h.length;--a>-1;)s=h[a],s.c===e&&s.s===i?h.splice(a,1):0===u&&s.pr<r&&(u=a+1);h.splice(u,0,{c:e,s:i,up:n,pr:r})},a.removeEventListener=function(t,e){var i,n=this._listeners[t];if(n)for(i=n.length;--i>-1;)if(n[i].c===e)return void n.splice(i,1)},a.dispatchEvent=function(t){var e,i,n,r=this._listeners[t];if(r)for(e=r.length,e>1&&(r=r.slice(0)),i=this._eventTarget;--e>-1;)n=r[e],n&&(n.up?n.c.call(n.s||i,{type:t,target:i}):n.c.call(n.s||i))};var C=t.requestAnimationFrame,S=t.cancelAnimationFrame,k=Date.now||function(){return(new Date).getTime()},P=k();for(r=["ms","moz","webkit","o"],s=r.length;--s>-1&&!C;)C=t[r[s]+"RequestAnimationFrame"],S=t[r[s]+"CancelAnimationFrame"]||t[r[s]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,n,r,s,a,h=this,u=k(),d=!(e===!1||!C)&&"auto",p=500,g=33,m="tick",_=function(t){var e,o,l=k()-P;l>p&&(u+=l-g),P+=l,h.time=(P-u)/1e3,e=h.time-a,(!i||e>0||t===!0)&&(h.frame++,a+=e+(e>=s?.004:s-e),o=!0),t!==!0&&(r=n(_)),o&&h.dispatchEvent(m)};T.call(h),h.time=h.frame=0,h.tick=function(){_(!0)},h.lagSmoothing=function(t,e){p=t||1/c,g=Math.min(e,p,0)},h.sleep=function(){null!=r&&(d&&S?S(r):clearTimeout(r),n=f,r=null,h===o&&(l=!1))},h.wake=function(t){null!==r?h.sleep():t?u+=-P+(P=k()):h.frame>10&&(P=k()-p+5),n=0===i?f:d&&C?C:function(t){return setTimeout(t,1e3*(a-h.time)+1|0)},h===o&&(l=!0),_(2)},h.fps=function(t){return arguments.length?(i=t,s=1/(i||60),a=this.time+s,void h.wake()):i},h.useRAF=function(t){return arguments.length?(h.sleep(),d=t,void h.fps(i)):d},h.fps(t),setTimeout(function(){"auto"===d&&h.frame<5&&"hidden"!==document.visibilityState&&h.useRAF(!1)},1500)}),a=u.Ticker.prototype=new u.events.EventDispatcher,a.constructor=u.Ticker;var M=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,G){l||o.wake();var i=this.vars.useFrames?X:G;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});o=M.ticker=new u.Ticker,a=M.prototype,a._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var A=function(){l&&k()-P>2e3&&o.wake(),setTimeout(A,2e3)};A(),a.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},a.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},a.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},a.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},a.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},a.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},a.render=function(t,e,i){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},a.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},a._enabled=function(t,e){return l||o.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(t,e){return this._enabled(!1,!1)},a.kill=function(t,e){return this._kill(t,e),this},a._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},a._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},a._callback=function(t){var e=this.vars,i=e[t],n=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this,s=n?n.length:0;switch(s){case 0:i.call(r);break;case 1:i.call(r,n[0]);break;case 2:i.call(r,n[0],n[1]);break;default:i.apply(r,n)}},a.eventCallback=function(t,e,i,n){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=n),"onUpdate"===t&&(this._onUpdate=e)}return this},a.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},a.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},a.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},a.totalTime=function(t,e,i){if(l||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,r=this._timeline;if(t>n&&!i&&(t=n),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?n-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(I.length&&$(),this.render(t,e,!1),I.length&&$())}return this},a.progress=a.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},a.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},a.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},a.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||c,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},a.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(t){if(!arguments.length)return this._paused;var e,i,n=this._timeline;return t!=this._paused&&n&&(l||t||o.wake(),e=n.rawTime(),i=e-this._pauseTime,!t&&n.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=n.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});a=D.prototype=new M,a.constructor=D,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(t,e,i,n){var r,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(s=t._startTime;r&&r._startTime>s;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},a._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(t,e,i){var n,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)n=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=n},a.rawTime=function(){return l||o.wake(),this._totalTime};var O=v("TweenLite",function(e,i,n){if(M.call(this,i,n),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var r,s,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?j[O.defaultOverwrite]:"number"==typeof l?l>>0:j[l],(o||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=a=d(e),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)s=a[r],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(d(s))):(this._siblings[r]=Q(s,this,!1),1===l&&this._siblings[r].length>1&&J(s,this,null,1,this._siblings[r])):(s=a[r--]=O.selector(s),"string"==typeof s&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=Q(e,this,!1),1===l&&this._siblings.length>1&&J(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-c,this.render(Math.min(0,-this._delay)))},!0),R=function(e){
  return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},L=function(t,e){var i,n={};for(i in t)U[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!z[i]||z[i]&&z[i]._autoCSS)||(n[i]=t[i],delete t[i]);t.css=n};a=O.prototype=new M,a.constructor=O,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,O.version="1.19.0",O.defaultEase=a._ease=new b(null,null,1,1),O.defaultOverwrite="auto",O.ticker=o,O.autoSleep=120,O.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},O.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(O.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],E={},F=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):n>e&&e>-n&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},B=function(t,e,i,n){var r,s,a,o,l,h,u,c=[t,e],d=0,f="",p=0;for(c.start=t,i&&(i(c),t=c[0],e=c[1]),c.length=0,r=t.match(F)||[],s=e.match(F)||[],n&&(n._next=null,n.blob=1,c._firstPT=c._applyPT=n),l=s.length,o=0;l>o;o++)u=s[o],h=e.substr(d,e.indexOf(u,d)-d),f+=h||!o?h:",",d+=h.length,p?p=(p+1)%5:"rgba("===h.substr(-5)&&(p=1),u===r[o]||r.length<=o?f+=u:(f&&(c.push(f),f=""),a=parseFloat(r[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,m:p&&4>p?Math.round:0}),d+=u.length;return f+=e.substr(d),f&&c.push(f),c.setRatio=N,c},V=function(t,e,i,n,r,s,a,o,l){"function"==typeof n&&(n=n(l||0,t));var h,u,c="get"===i?t[e]:i,d=typeof t[e],f="string"==typeof n&&"="===n.charAt(1),p={t:t,p:e,s:c,f:"function"===d,pg:0,n:r||e,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:f?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-c||0};return"number"!==d&&("function"===d&&"get"===i&&(u=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p.s=c=a?t[u](a):t[u]()),"string"==typeof c&&(a||isNaN(c))?(p.fp=a,h=B(c,n,o||O.defaultStringFilter,p),p={t:h,p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):f||(p.s=parseFloat(c),p.c=parseFloat(n)-p.s||0)),p.c?((p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p):void 0},W=O._internals={isArray:p,isSelector:R,lazyTweens:I,blobDif:B},z=O._plugins={},H=W.tweenLookup={},Y=0,U=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},j={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},X=M._rootFramesTimeline=new D,G=M._rootTimeline=new D,q=30,$=W.lazyRender=function(){var t,e=I.length;for(E={};--e>-1;)t=I[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);I.length=0};G._startTime=o.time,X._startTime=o.frame,G._active=X._active=!0,setTimeout($,1),M._updateRoot=O.render=function(){var t,e,i;if(I.length&&$(),G.render((o.time-G._startTime)*G._timeScale,!1,!1),X.render((o.frame-X._startTime)*X._timeScale,!1,!1),I.length&&$(),o.frame>=q){q=o.frame+(parseInt(O.autoSleep,10)||120);for(i in H){for(e=H[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if(i=G._first,(!i||i._paused)&&O.autoSleep&&!X._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",M._updateRoot);var Q=function(t,e,i){var n,r,s=t._gsTweenID;if(H[s||(t._gsTweenID=s="t"+Y++)]||(H[s]={target:t,tweens:[]}),e&&(n=H[s].tweens,n[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return H[s].tweens},Z=function(t,e,i,n){var r,s,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,n)),a=O.onOverwrite,a&&(s=a(t,e,i,n)),r!==!1&&s!==!1},J=function(t,e,i,n,r){var s,a,o,l;if(1===n||n>=4){for(l=r.length,s=0;l>s;s++)if((o=r[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===n)break;return a}var h,u=e._startTime+c,d=[],f=0,p=0===e._duration;for(s=r.length;--s>-1;)(o=r[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||K(e,0,p),0===K(o,h,p)&&(d[f++]=o)):o._startTime<=u&&o._startTime+o.totalDuration()/o._timeScale>u&&((p||!o._initted)&&u-o._startTime<=2e-10||(d[f++]=o)));for(s=f;--s>-1;)if(o=d[s],2===n&&o._kill(i,t,e)&&(a=!0),2!==n||!o._firstPT&&o._initted){if(2!==n&&!Z(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},K=function(t,e,i){for(var n=t._timeline,r=n._timeScale,s=t._startTime;n._timeline;){if(s+=n._startTime,r*=n._timeScale,n._paused)return-100;n=n._timeline}return s/=r,s>e?s-e:i&&s===e||!t._initted&&2*c>s-e?c:(s+=t.totalDuration()/t._timeScale/r)>e+c?0:s-e-c};a._init=function(){var t,e,i,n,r,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,u=a.ease;if(a.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(n in a.startAt)r[n]=a.startAt[n];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&a.lazy!==!1,r.startAt=r.delay=null,this._startAt=O.to(this.target,0,r),h)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(h=!1),i={};for(n in a)U[n]&&"autoCSS"!==n||(i[n]=a[n]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&a.lazy!==!1,i.immediateRender=h,this._startAt=O.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof b?u:"function"==typeof u?new b(u,a.easeParams):x[u]||O.defaultEase:O.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;s>t;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&O._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},a._initProps=function(e,i,n,r,s){var a,o,l,h,u,c;if(null==e)return!1;E[e._gsTweenID]&&$(),this.vars.css||e.style&&e!==t&&e.nodeType&&z.css&&this.vars.autoCSS!==!1&&L(this.vars,e);for(a in this.vars)if(c=this.vars[a],U[a])c&&(c instanceof Array||c.push&&p(c))&&-1!==c.join("").indexOf("{self}")&&(this.vars[a]=c=this._swapSelfInParams(c,this));else if(z[a]&&(h=new z[a])._onInitTween(e,this.vars[a],this,s)){for(this._firstPT=u={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;--o>-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=V.call(this,e,a,"get",c,a,0,null,this.vars.stringFilter,s);return r&&this._kill(r,e)?this._initProps(e,i,n,r,s):this._overwrite>1&&this._firstPT&&n.length>1&&J(e,this,i,this._overwrite,n)?(this._kill(i,e),this._initProps(e,i,n,r,s)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(E[e._gsTweenID]=!0),l)},a.render=function(t,e,i){var n,r,s,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(n=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0>h||0>=t&&t>=-1e-7||h===c&&"isPause"!==this.data)&&h!==t&&(i=!0,h>c&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:c);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(r="onReverseComplete",n=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==c||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:c)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,d=this._easeType,f=this._easePower;(1===d||3===d&&u>=.5)&&(u=1-u),3===d&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),1===d?this.ratio=1-u:2===d?this.ratio=u:.5>t/l?this.ratio=u/2:this.ratio=1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,I.push(this),void(this._lazy=[t,e]);this._time&&!n?this.ratio=this._ease.getRatio(this._time/l):n&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||n||i)&&this._callback("onUpdate")),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),n&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawPrevTime===c&&a!==c&&(this._rawPrevTime=0))}},a._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:O.selector(e)||e;var n,r,s,a,o,l,h,u,c,d=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(e)||R(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(l=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){o=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(O.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!Z(this,i,e,c))return!1}for(s in h)(a=o[s])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(r[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},a.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-c,this.render(Math.min(0,-this._delay))),this},a._enabled=function(t,e){if(l||o.wake(),t&&this._gc){var i,n=this._targets;if(n)for(i=n.length;--i>-1;)this._siblings[i]=Q(n[i],this,!0);else this._siblings=Q(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(t?"_onEnable":"_onDisable",this)},O.to=function(t,e,i){return new O(t,e,i)},O.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new O(t,e,i)},O.fromTo=function(t,e,i,n){return n.startAt=i,n.immediateRender=0!=n.immediateRender&&0!=i.immediateRender,new O(t,e,n)},O.delayedCall=function(t,e,i,n,r){return new O(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:n,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},O.set=function(t,e){return new O(t,0,e)},O.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:O.selector(t)||t;var i,n,r,s;if((p(t)||R(t))&&"number"!=typeof t[0]){for(i=t.length,n=[];--i>-1;)n=n.concat(O.getTweensOf(t[i],e));for(i=n.length;--i>-1;)for(s=n[i],r=i;--r>-1;)s===n[r]&&n.splice(i,1)}else for(n=Q(t).concat(),i=n.length;--i>-1;)(n[i]._gc||e&&!n[i].isActive())&&n.splice(i,1);return n},O.killTweensOf=O.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var n=O.getTweensOf(t,e),r=n.length;--r>-1;)n[r]._kill(i,t)};var tt=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(a=tt.prototype,tt.version="1.19.0",tt.API=2,a._firstPT=null,a._addTween=V,a.setRatio=N,a._kill=function(t){var e,i=this._overwriteProps,n=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;n;)null!=t[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},a._mod=a._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},O._onPluginEvent=function(t,e){var i,n,r,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:s)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:s=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(z[(new t[e])._propName]=t[e]);return!0},_.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,n=t.priority||0,r=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,n),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new tt(i);o.constructor=a,a.API=t.API;for(e in s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,tt.activate([a]),a},r=t._gsQueue){for(s=0;s<r.length;s++)r[s]();for(a in g)g[a].func||t.console.log("GSAP encountered missing dependency: "+a)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),/*!
   * VERSION: 0.1.12
   * DATE: 2015-08-11
   * UPDATES AND DOCS AT: http://greensock.com/jquery-gsap-plugin/
   *
   * Requires TweenLite version 1.8.0 or higher and CSSPlugin.
   *
   * @license Copyright (c) 2013-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   *
   * @author: Jack Doyle, jack@greensock.com
   */
  !function(t){"use strict";var e,i,n,r=t.fn.animate,s=t.fn.stop,a=!0,o=function(t){var e,i={};for(e in t)i[e]=t[e];return i},l={overwrite:1,delay:1,useFrames:1,runBackwards:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,autoCSS:1},h=",scrollTop,scrollLeft,show,hide,toggle,",u=h,c=function(t,e){for(var i in l)l[i]&&void 0!==t[i]&&(e[i]=t[i])},d=function(t){return function(e){return t.getRatio(e)}},f={},p=function(){var r,s,a,o=window.GreenSockGlobals||window;if(e=o.TweenMax||o.TweenLite,e&&(r=(e.version+".0.0").split("."),s=!(Number(r[0])>0&&Number(r[1])>7),o=o.com.greensock,i=o.plugins.CSSPlugin,f=o.easing.Ease.map||{}),!e||!i||s)return e=null,void(!n&&window.console&&(window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)."+(s?" Version "+r.join(".")+" is too old.":"")),n=!0));if(t.easing){for(a in f)t.easing[a]=d(f[a]);p=!1}};t.fn.animate=function(n,s,l,h){if(n=n||{},p&&(p(),!e||!i))return r.call(this,n,s,l,h);if(!a||n.skipGSAP===!0||"object"==typeof s&&"function"==typeof s.step)return r.call(this,n,s,l,h);var d,g,m,_,v=t.speed(s,l,h),y={ease:f[v.easing]||(v.easing===!1?f.linear:f.swing)},b=this,x="object"==typeof s?s.specialEasing:null;for(g in n){if(d=n[g],d instanceof Array&&f[d[1]]&&(x=x||{},x[g]=d[1],d=d[0]),"show"===d||"hide"===d||"toggle"===d||-1!==u.indexOf(g)&&-1!==u.indexOf(","+g+","))return r.call(this,n,s,l,h);y[-1===g.indexOf("-")?g:t.camelCase(g)]=d}if(x){y=o(y),_=[];for(g in x)d=_[_.length]={},c(y,d),d.ease=f[x[g]]||y.ease,-1!==g.indexOf("-")&&(g=t.camelCase(g)),d[g]=y[g],delete y[g];0===_.length&&(_=null)}return m=function(i){var n,r=o(y);if(_)for(n=_.length;--n>-1;)e.to(this,t.fx.off?0:v.duration/1e3,_[n]);r.onComplete=function(){i?i():v.old&&t(this).each(v.old)},e.to(this,t.fx.off?0:v.duration/1e3,r)},v.queue!==!1?(b.queue(v.queue,m),"function"==typeof v.old&&t(b[b.length-1]).queue(v.queue,function(t){v.old.call(b),t()})):m.call(b),b},t.fn.stop=function(t,i){if(s.call(this,t,i),e){if(i)for(var n,r=e.getTweensOf(this),a=r.length;--a>-1;)n=r[a].totalTime()/r[a].totalDuration(),n>0&&1>n&&r[a].seek(r[a].totalDuration());e.killTweensOf(this)}return this},t.gsap={enabled:function(t){a=t},version:"0.1.12",legacyProps:function(t){u=h+t+","}}}(jQuery);/*!
   * VERSION: 1.15.5
   * DATE: 2016-07-08
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,n,r=_gsScope.GreenSockGlobals||_gsScope,s=r.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var n=l("easing."+e,function(){},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,n},u=t.register||function(){},c=function(t,e,i,n,r){var s=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new n},!0);return u(s,t),s},d=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var n=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=n.prototype=new t;return r.constructor=n,r.getRatio=i,r.config=function(t){return new n(t)},n},p=c("Back",f("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=g.prototype=new t;return m.constructor=g,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),m.config=g.config=function(t,e,i){return new g(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,n,r,s,a,o,l=e.taper||"none",h=[],u=0,c=0|(e.points||20),f=c,p=e.randomize!==!1,g=e.clamp===!0,m=e.template instanceof t?e.template:null,_="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?Math.random():1/c*f,n=m?m.getRatio(i):i,"none"===l?r=_:"out"===l?(s=1-i,r=s*s*_):"in"===l?r=i*i*_:.5>i?(s=2*i,r=s*s*.5*_):(s=2*(1-i),r=s*s*.5*_),p?n+=Math.random()*r-.5*r:f%2?n+=.5*r:n-=.5*r,g&&(n>1?n=1:0>n&&(n=0)),h[u++]={x:i,y:n};for(h.sort(function(t,e){return t.x-e.x}),o=new d(1,1,null),f=c;--f>-1;)a=h[f],o=new d(a.x,a.y,o);this._prev=new d(0,0,0!==o.t?o:o.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),c("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),n=function(e,i,n){var r=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),s=r.prototype=new t;return s.constructor=r,s.getRatio=i,s.config=function(t,e){return new r(t,e)},r},c("Elastic",n("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),n("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),c("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),c("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return-Math.cos(t*o)+1}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(r.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";var t=function(){return _gsScope.GreenSockGlobals||_gsScope};"function"==typeof define&&define.amd?define(["TweenLite"],t):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=t())}();/*!
   * VERSION: 0.6.0
   * DATE: 2016-07-13
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,n){var r,s;if("function"!=typeof t.setAttribute)return!1;for(r in e)s=e[r],"function"==typeof s&&(s=s(n,t)),this._addTween(t,"setAttribute",t.getAttribute(r)+"",s+"",r,!1,r),this._overwriteProps.push(r);return!0}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 1.3.7
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=180/Math.PI,e=[],i=[],n=[],r={},s=_gsScope._gsDefine.globals,a=function(t,e,i,n){i===n&&(i=n-(n-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=n,this.da=n-t,this.ca=i-t,this.ba=e-t},o=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,n){var r={a:t},s={},a={},o={c:n},l=(t+e)/2,h=(e+i)/2,u=(i+n)/2,c=(l+h)/2,d=(h+u)/2,f=(d-c)/8;return r.b=l+(t-l)/4,s.b=c+f,r.c=s.a=(r.b+s.b)/2,s.c=a.a=(c+d)/2,a.b=d-f,o.b=u+(n-u)/4,a.c=o.a=(a.b+o.b)/2,[r,s,a,o]},h=function(t,r,s,a,o){var h,u,c,d,f,p,g,m,_,v,y,b,x,w=t.length-1,T=0,C=t[0].a;for(h=0;w>h;h++)f=t[T],u=f.a,c=f.d,d=t[T+1].d,o?(y=e[h],b=i[h],x=(b+y)*r*.25/(a?.5:n[h]||.5),p=c-(c-u)*(a?.5*r:0!==y?x/y:0),g=c+(d-c)*(a?.5*r:0!==b?x/b:0),m=c-(p+((g-p)*(3*y/(y+b)+.5)/4||0))):(p=c-(c-u)*r*.5,g=c+(d-c)*r*.5,m=c-(p+g)/2),p+=m,g+=m,f.c=_=p,0!==h?f.b=C:f.b=C=f.a+.6*(f.c-f.a),f.da=c-u,f.ca=_-u,f.ba=C-u,s?(v=l(u,C,_,c),t.splice(T,1,v[0],v[1],v[2],v[3]),T+=4):T++,C=g;f=t[T],f.b=C,f.c=C+.4*(f.d-C),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=C-f.a,s&&(v=l(f.a,C,f.c,f.d),t.splice(T,1,v[0],v[1],v[2],v[3]))},u=function(t,n,r,s){var o,l,h,u,c,d,f=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(d=t[l][n])&&"="===d.charAt(1)&&(t[l][n]=s[n]+Number(d.charAt(0)+d.substr(2)));if(o=t.length-2,0>o)return f[0]=new a(t[0][n],0,0,t[-1>o?0:1][n]),f;for(l=0;o>l;l++)h=t[l][n],u=t[l+1][n],f[l]=new a(h,0,0,u),r&&(c=t[l+2][n],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return f[l]=new a(t[l][n],0,0,t[l+1][n]),f},c=function(t,s,a,l,c,d){var f,p,g,m,_,v,y,b,x={},w=[],T=d||t[0];c="string"==typeof c?","+c+",":o,null==s&&(s=1);for(p in t[0])w.push(p);if(t.length>1){for(b=t[t.length-1],y=!0,f=w.length;--f>-1;)if(p=w[f],Math.abs(T[p]-b[p])>.05){y=!1;break}y&&(t=t.concat(),d&&t.unshift(d),t.push(t[1]),d=t[t.length-3])}for(e.length=i.length=n.length=0,f=w.length;--f>-1;)p=w[f],r[p]=-1!==c.indexOf(","+p+","),x[p]=u(t,p,r[p],d);for(f=e.length;--f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!l){for(f=w.length;--f>-1;)if(r[p])for(g=x[w[f]],v=g.length-1,m=0;v>m;m++)_=g[m+1].da/i[m]+g[m].da/e[m]||0,n[m]=(n[m]||0)+_*_;for(f=n.length;--f>-1;)n[f]=Math.sqrt(n[f])}for(f=w.length,m=a?4:1;--f>-1;)p=w[f],g=x[p],h(g,s,a,l,r[p]),y&&(g.splice(0,m),g.splice(g.length-m,m));return x},d=function(t,e,i){e=e||"soft";var n,r,s,o,l,h,u,c,d,f,p,g={},m="cubic"===e?3:2,_="soft"===e,v=[];if(_&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(d in t[0])v.push(d);for(h=v.length;--h>-1;){for(d=v[h],g[d]=l=[],f=0,c=t.length,u=0;c>u;u++)n=null==i?t[u][d]:"string"==typeof(p=t[u][d])&&"="===p.charAt(1)?i[d]+Number(p.charAt(0)+p.substr(2)):Number(p),_&&u>1&&c-1>u&&(l[f++]=(n+l[f-2])/2),l[f++]=n;for(c=f-m+1,f=0,u=0;c>u;u+=m)n=l[u],r=l[u+1],s=l[u+2],o=2===m?0:l[u+3],l[f++]=p=3===m?new a(n,r,s,o):new a(n,(2*r+n)/3,(2*r+s)/3,s);l.length=f}return g},f=function(t,e,i){for(var n,r,s,a,o,l,h,u,c,d,f,p=1/i,g=t.length;--g>-1;)for(d=t[g],s=d.a,a=d.d-s,o=d.c-s,l=d.b-s,n=r=0,u=1;i>=u;u++)h=p*u,c=1-h,n=r-(r=(h*h*a+3*c*(h*o+c*l))*h),f=g*i+u-1,e[f]=(e[f]||0)+n*n},p=function(t,e){e=e>>0||6;var i,n,r,s,a=[],o=[],l=0,h=0,u=e-1,c=[],d=[];for(i in t)f(t[i],a,e);for(r=a.length,n=0;r>n;n++)l+=Math.sqrt(a[n]),s=n%e,d[s]=l,s===u&&(h+=l,s=n/e>>0,c[s]=d,o[s]=h,l=0,d=[]);return{length:h,lengths:o,segments:c}},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var n,r,s,a,o,l=e.values||[],h={},u=l[0],f=e.autoRotate||i.vars.orientToBezier;this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",f===!0?0:Number(f)||0]]:null;for(n in u)this._props.push(n);for(s=this._props.length;--s>-1;)n=this._props[s],this._overwriteProps.push(n),r=this._func[n]="function"==typeof t[n],h[n]=r?t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(t[n]),o||h[n]!==l[0][n]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):d(l,e.type,h),this._segCount=this._beziers[n].length,this._timeRes){var g=p(this._beziers,this._timeRes);this._length=g.length,this._lengths=g.lengths,this._segments=g.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(a=0;3>a;a++)n=f[s][a],this._func[n]="function"==typeof t[n]&&t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[s][2],this._initialRotations[s]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,n,r,s,a,o,l,h,u,c,d=this._segCount,f=this._func,p=this._target,g=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,r=this._li,e>this._l2&&d-1>r){for(h=d-1;h>r&&(this._l2=u[++r])<=e;);this._l1=u[r-1],this._li=r,this._curSeg=c=this._segments[r],this._s2=c[this._s1=this._si=0]}else if(e<this._l1&&r>0){for(;r>0&&(this._l1=u[--r])>=e;);0===r&&e<this._l1?this._l1=0:r++,this._l2=u[r],this._li=r,this._curSeg=c=this._segments[r],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=r,e-=this._l1,r=this._si,e>this._s2&&r<c.length-1){for(h=c.length-1;h>r&&(this._s2=c[++r])<=e;);this._s1=c[r-1],this._si=r}else if(e<this._s1&&r>0){for(;r>0&&(this._s1=c[--r])>=e;);0===r&&e<this._s1?this._s1=0:r++,this._s2=c[r],this._si=r}o=(r+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else i=0>e?0:e>=1?d-1:d*e>>0,o=(e-i*(1/d))*d;for(n=1-o,r=this._props.length;--r>-1;)s=this._props[r],a=this._beziers[s][i],l=(o*o*a.da+3*n*(o*a.ca+n*a.ba))*o+a.a,this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l;if(this._autoRotate){var m,_,v,y,b,x,w,T=this._autoRotate;for(r=T.length;--r>-1;)s=T[r][2],x=T[r][3]||0,w=T[r][4]===!0?1:t,a=this._beziers[T[r][0]],m=this._beziers[T[r][1]],a&&m&&(a=a[i],m=m[i],_=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,_+=(y-_)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,b=m.b+(m.c-m.b)*o,v+=(b-v)*o,b+=(m.c+(m.d-m.c)*o-b)*o,l=g?Math.atan2(b-v,y-_)*w+x:this._initialRotations[r],this._mod[s]&&(l=this._mod[s](l,p)),f[s]?p[s](l):p[s]=l)}}}),m=g.prototype;g.bezierThrough=c,g.cubicToQuadratic=l,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,n=e._setPluginRatio,r=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new g;var h,u,c,d=e.values,f=d.length-1,p=[],m={};if(0>f)return o;for(h=0;f>=h;h++)c=i(t,d[h],a,o,l,f!==h),p[h]=c.end;for(u in e)m[u]=e[u];return m.values=p,o=new r(t,"bezier",0,0,c.pt,2),o.data=c,o.plugin=l,o.setRatio=n,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween),o}})}},m._mod=function(t){for(var e,i=this._overwriteProps,n=i.length;--n>-1;)e=t[i[n]],e&&"function"==typeof e&&(this._mod[i[n]]=e)},m._kill=function(t){var e,i,n=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=n.length;--i>-1;)n[i]===e&&n.splice(i,1);if(n=this._autoRotate)for(i=n.length;--i>-1;)t[n[i][2]]&&n.splice(i,1);return this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("BezierPlugin");/*!
   * VERSION: 1.19.0
   * DATE: 2016-07-14
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,n,r,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.19.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,d,f,p,g,m,_,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,y=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,x=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,C=/opacity:([^;]*)/i,S=/alpha\(opacity *=.+?\)/i,k=/^(rgb|hsl)/,P=/([A-Z])/g,M=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,D=function(t,e){return e.toUpperCase()},O=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,L=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,E=/[\s,\(]/i,F=Math.PI/180,N=180/Math.PI,B={},V=document,W=function(t){return V.createElementNS?V.createElementNS("http://www.w3.org/1999/xhtml",t):V.createElement(t)},z=W("div"),H=W("img"),Y=a._internals={_specialProps:l},U=navigator.userAgent,j=function(){var t=U.indexOf("Android"),e=W("a");return d=-1!==U.indexOf("Safari")&&-1===U.indexOf("Chrome")&&(-1===t||Number(U.substr(t+8,1))>3),p=d&&Number(U.substr(U.indexOf("Version/")+8,1))<6,f=-1!==U.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(g=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),X=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},G=function(t){window.console&&console.log(t)},q="",$="",Q=function(t,e){e=e||z;var i,n,r=e.style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===r[i[n]+t];);return n>=0?($=3===n?"ms":i[n],q="-"+$.toLowerCase()+"-",$+t):null},Z=V.defaultView?V.defaultView.getComputedStyle:function(){},J=a.getStyle=function(t,e,i,n,r){var s;return j||"opacity"!==e?(!n&&t.style[e]?s=t.style[e]:(i=i||Z(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):X(t)},K=Y.convertToPixels=function(t,i,n,r,s){if("px"===r||!r)return n;if("auto"===r||!n)return 0;var o,l,h,u=O.test(i),c=t,d=z.style,f=0>n,p=1===n;if(f&&(n=-n),p&&(n*=100),"%"===r&&-1!==i.indexOf("border"))o=n/100*(u?t.clientWidth:t.clientHeight);else{if(d.cssText="border:0 solid red;position:"+J(t,"position")+";line-height:0;","%"!==r&&c.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)d[u?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(c=t.parentNode||V.body,l=c._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*n/100;d[u?"width":"height"]=n+r}c.appendChild(z),o=parseFloat(z[u?"offsetWidth":"offsetHeight"]),c.removeChild(z),u&&"%"===r&&a.cacheWidths!==!1&&(l=c._gsCache=c._gsCache||{},l.time=h,l.width=o/n*100),0!==o||s||(o=K(t,i,n,r,!0))}return p&&(o/=100),f?-o:o},tt=Y.calculateOffset=function(t,e,i){if("absolute"!==J(t,"position",i))return 0;var n="left"===e?"Left":"Top",r=J(t,"margin"+n,i);return t["offset"+n]-(K(t,e,parseFloat(r),r.replace(w,""))||0)},et=function(t,e){var i,n,r,s={};if(e=e||Z(t,null))if(i=e.length)for(;--i>-1;)r=e[i],(-1===r.indexOf("-transform")||Mt===r)&&(s[r.replace(M,D)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Pt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(M,D)]=e[i]);return j||(s.opacity=X(t)),n=zt(t,e,!1),s.rotation=n.rotation,s.skewX=n.skewX,s.scaleX=n.scaleX,s.scaleY=n.scaleY,s.x=n.x,s.y=n.y,Dt&&(s.z=n.z,s.rotationX=n.rotationX,s.rotationY=n.rotationY,s.scaleZ=n.scaleZ),s.filters&&delete s.filters,s},it=function(t,e,i,n,r){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(x,"")?s:0:tt(t,a),void 0!==h[a]&&(o=new _t(h,a,h[a],o)));if(n)for(a in n)"className"!==a&&(l[a]=n[a]);return{difs:l,firstMPT:o}},nt={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],st=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||Z(t))[e]||0;if(t.getBBox&&Bt(t))return t.getBBox()[e]||0;var n=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=nt[e],s=r.length;for(i=i||Z(t,null);--s>-1;)n-=parseFloat(J(t,"padding"+r[s],i,!0))||0,n-=parseFloat(J(t,"border"+r[s]+"Width",i,!0))||0;return n},at=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i,n=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":n[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":n[1];if(n.length>3&&!e){for(n=t.split(", ").join(",").split(","),t=[],i=0;i<n.length;i++)t.push(at(n[i]));return t.join(",")}return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+s+(n.length>2?" "+n[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(x,"")),e.oy=parseFloat(s.replace(x,"")),e.v=t),e||t},ot=function(t,e){return"function"==typeof t&&(t=t(_,m)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(_,m)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ht=function(t,e,i,n){var r,s,a,o,l,h=1e-6;return"function"==typeof t&&(t=t(_,m)),null==t?o=e:"number"==typeof t?o=t:(r=360,s=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:N)-(l?0:e),s.length&&(n&&(n[i]=e+a),-1!==t.indexOf("short")&&(a%=r,a!==a%(r/2)&&(a=0>a?a+r:a-r)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*r)%r-(a/r|0)*r:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*r)%r-(a/r|0)*r)),o=e+a),h>o&&o>-h&&(o=0),o},ut={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ct=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},dt=a.parseColor=function(t,e){var i,n,r,s,a,o,l,h,u,c,d;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ut[t])i=ut[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=d=t.match(v),e){if(-1!==t.indexOf("="))return t.match(y)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,r=.5>=l?l*(o+1):l+o-l*o,n=2*l-r,i.length>3&&(i[3]=Number(t[3])),i[0]=ct(a+1/3,n,r),i[1]=ct(a,n,r),i[2]=ct(a-1/3,n,r);else i=t.match(v)||ut.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ut.black;return e&&!d&&(n=i[0]/255,r=i[1]/255,s=i[2]/255,h=Math.max(n,r,s),u=Math.min(n,r,s),l=(h+u)/2,h===u?a=o=0:(c=h-u,o=l>.5?c/(2-h-u):c/(h+u),a=h===n?(r-s)/c+(s>r?6:0):h===r?(s-n)/c+2:(n-r)/c+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},ft=function(t,e){var i,n,r,s=t.match(pt)||[],a=0,o=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],r=t.substr(a,t.indexOf(n,a)-a),a+=r.length+n.length,n=dt(n,e),3===n.length&&n.push(1),o+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return o+t.substr(a)},pt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in ut)pt+="|"+h+"\\b";pt=new RegExp(pt+")","gi"),a.colorStringFilter=function(t){var e,i=t[0]+t[1];pt.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ft(t[0],e),t[1]=ft(t[1],e)),pt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var gt=function(t,e,i,n){if(null==t)return function(t){return t};var r,s=e?(t.match(pt)||[""])[0]:"",a=t.split(s).join("").match(b)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,c=u>0?a[0].replace(v,""):"";return u?r=e?function(t){var e,d,f,p;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(p=t.replace(I,"|").split("|"),f=0;f<p.length;f++)p[f]=r(p[f]);return p.join(",")}if(e=(t.match(pt)||[s])[0],d=t.split(e).join("").match(b)||[],f=d.length,u>f--)for(;++f<u;)d[f]=i?d[(f-1)/2|0]:a[f];return o+d.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,d;if("number"==typeof t)t+=c;else if(n&&I.test(t)){for(s=t.replace(I,"|").split("|"),d=0;d<s.length;d++)s[d]=r(s[d]);return s.join(",")}if(e=t.match(b)||[],d=e.length,u>d--)for(;++d<u;)e[d]=i?e[(d-1)/2|0]:a[d];return o+e.join(h)+l}:function(t){return t}},mt=function(t){return t=t.split(","),function(e,i,n,r,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return r.parse(e,o,s,a)}},_t=(Y._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,n,r,s,a=this.data,o=a.proxy,l=a.firstMPT,h=1e-6;l;)e=o[l.v],l.r?e=Math.round(e):h>e&&e>-h&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod(o.rotation,this.t):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i[s]=r}}else i[s]=i.s+i.xs0;l=l._next}},function(t,e,i,n,r){this.t=t,this.p=e,this.v=i,this.r=r,n&&(n._prev=this,this._next=n)}),vt=(Y._parseToProxy=function(t,e,i,n,r,s){var a,o,l,h,u,c=n,d={},f={},p=i._transform,g=B;for(i._transform=null,B=e,n=u=i.parse(t,e,n,r),B=g,s&&(i._transform=p,c&&(c._prev=null,c._prev&&(c._prev._next=null)));n&&n!==c;){if(n.type<=1&&(o=n.p,f[o]=n.s+n.c,d[o]=n.s,s||(h=new _t(n,"s",o,h,n.r),n.c=0),1===n.type))for(a=n.l;--a>0;)l="xn"+a,o=n.p+"_"+l,f[o]=n.data[l],d[o]=n[l],s||(h=new _t(n,l,o,h,n.rxp[l]));n=n._next}return{proxy:d,end:f,firstMPT:h,pt:u}},Y.CSSPropTween=function(t,e,n,r,a,o,l,h,u,c,d){this.t=t,this.p=e,this.s=n,this.c=r,this.n=l||e,t instanceof vt||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===c?n:c,this.e=void 0===d?n+r:d,a&&(this._next=a,a._prev=this)}),yt=function(t,e,i,n,r,s){var a=new vt(t,e,i,n-i,r,(-1),s);return a.b=i,a.e=a.xs0=n,a},bt=a.parseComplex=function(t,e,i,n,r,s,o,l,h,c){i=i||s||"","function"==typeof n&&(n=n(_,m)),o=new vt(t,e,0,0,o,c?2:1,null,(!1),l,i,n),n+="",r&&pt.test(n+i)&&(n=[i,n],a.colorStringFilter(n),i=n[0],n=n[1]);var d,f,p,g,b,x,w,T,C,S,k,P,M,A=i.split(", ").join(",").split(" "),D=n.split(", ").join(",").split(" "),O=A.length,R=u!==!1;for((-1!==n.indexOf(",")||-1!==i.indexOf(","))&&(A=A.join(" ").replace(I,", ").split(" "),D=D.join(" ").replace(I,", ").split(" "),O=A.length),O!==D.length&&(A=(s||"").split(" "),O=A.length),o.plugin=h,o.setRatio=c,pt.lastIndex=0,d=0;O>d;d++)if(g=A[d],b=D[d],T=parseFloat(g),T||0===T)o.appendXtra("",T,ot(b,T),b.replace(y,""),R&&-1!==b.indexOf("px"),!0);else if(r&&pt.test(g))P=b.indexOf(")")+1,P=")"+(P?b.substr(P):""),M=-1!==b.indexOf("hsl")&&j,g=dt(g,M),b=dt(b,M),C=g.length+b.length>6,C&&!j&&0===b[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(D[d]).join("transparent")):(j||(C=!1),M?o.appendXtra(C?"hsla(":"hsl(",g[0],ot(b[0],g[0]),",",!1,!0).appendXtra("",g[1],ot(b[1],g[1]),"%,",!1).appendXtra("",g[2],ot(b[2],g[2]),C?"%,":"%"+P,!1):o.appendXtra(C?"rgba(":"rgb(",g[0],b[0]-g[0],",",!0,!0).appendXtra("",g[1],b[1]-g[1],",",!0).appendXtra("",g[2],b[2]-g[2],C?",":P,!0),C&&(g=g.length<4?1:g[3],o.appendXtra("",g,(b.length<4?1:b[3])-g,P,!1))),pt.lastIndex=0;else if(x=g.match(v)){if(w=b.match(y),!w||w.length!==x.length)return o;for(p=0,f=0;f<x.length;f++)k=x[f],S=g.indexOf(k,p),o.appendXtra(g.substr(p,S-p),Number(k),ot(w[f],k),"",R&&"px"===g.substr(S+k.length,2),0===f),p=S+k.length;o["xs"+o.l]+=g.substr(p)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+b:b;if(-1!==n.indexOf("=")&&o.data){for(P=o.xs0+o.data.s,d=1;d<o.l;d++)P+=o["xs"+d]+o.data["xn"+d];o.e=P+o["xs"+d]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},xt=9;for(h=vt.prototype,h.l=h.pr=0;--xt>0;)h["xn"+xt]=0,h["xs"+xt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,n,r,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new vt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r,a)):(a["xs"+o]+=e+(n||""),a)};var wt=function(t,e){e=e||{},this.p=e.prefix?Q(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Tt=Y._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var n,r,s=t.split(","),a=e.defaultValue;for(i=i||[a],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||a,r=new wt(s[n],e)},Ct=Y._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,i,n,r,s,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[n].parse(t,i,n,r,s,a,h)):(G("Error: "+e+" js file not loaded."),s)}})}};h=wt.prototype,h.parseComplex=function(t,e,i,n,r,s){var a,o,l,h,u,c,d=this.keyword;if(this.multi&&(I.test(i)||I.test(e)?(o=e.replace(I,"|").split("|"),l=i.replace(I,"|").split("|")):d&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,d&&(u=e.indexOf(d),c=i.indexOf(d),u!==c&&(-1===c?o[a]=o[a].split(d).join(""):-1===u&&(o[a]+=" "+d)));e=o.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,n,this.pr,r,s)},h.parse=function(t,e,i,n,s,a,o){return this.parseComplex(t.style,this.format(J(t,this.p,r,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){Tt(t,{parser:function(t,n,r,s,a,o,l){var h=new vt(t,r,0,0,a,2,r,(!1),i);return h.plugin=o,h.setRatio=e(t,n,s._tween,r),h},priority:i})},a.useSVGTransformAttr=d||f;var St,kt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pt=Q("transform"),Mt=q+"transform",At=Q("transformOrigin"),Dt=null!==Q("perspective"),Ot=Y.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(a.defaultForce3D===!1||!Dt)&&(a.defaultForce3D||"auto")},Rt=window.SVGElement,Lt=function(t,e,i){var n,r=V.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in i)r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},It=V.documentElement,Et=function(){var t,e,i,n=g||/Android/i.test(U)&&!window.chrome;return V.createElementNS&&!n&&(t=Lt("svg",It),e=Lt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[At]="50% 50%",e.style[Pt]="scaleX(0.5)",n=i===e.getBoundingClientRect().width&&!(f&&Dt),It.removeChild(t)),n}(),Ft=function(t,e,i,n,r,s){var o,l,h,u,c,d,f,p,g,m,_,v,y,b,x=t._gsTransform,w=Wt(t,!0);x&&(y=x.xOrigin,b=x.yOrigin),(!n||(o=n.split(" ")).length<2)&&(f=t.getBBox(),e=at(e).split(" "),o=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=u=parseFloat(o[0]),i.yOrigin=c=parseFloat(o[1]),n&&w!==Vt&&(d=w[0],f=w[1],p=w[2],g=w[3],m=w[4],_=w[5],v=d*g-f*p,l=u*(g/v)+c*(-p/v)+(p*_-g*m)/v,h=u*(-f/v)+c*(d/v)-(d*_-f*m)/v,u=i.xOrigin=o[0]=l,c=i.yOrigin=o[1]=h),x&&(s&&(i.xOffset=x.xOffset,i.yOffset=x.yOffset,x=i),r||r!==!1&&a.defaultSmoothOrigin!==!1?(l=u-y,h=c-b,x.xOffset+=l*w[0]+h*w[2]-l,x.yOffset+=l*w[1]+h*w[3]-h):x.xOffset=x.yOffset=0),s||t.setAttribute("data-svg-origin",o.join(" "))},Nt=function(t){try{return t.getBBox()}catch(t){}},Bt=function(t){return!!(Rt&&t.getBBox&&t.getCTM&&Nt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Vt=[1,0,0,1,0,0],Wt=function(t,e){var i,n,r,s,a,o,l=t._gsTransform||new Ot,h=1e5,u=t.style;if(Pt?n=J(t,Mt,null,!0):t.currentStyle&&(n=t.currentStyle.filter.match(R),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),l.x||0,l.y||0].join(","):""),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,i&&Pt&&((o="none"===Z(t).display)||!t.parentNode)&&(o&&(s=u.display,u.display="block"),t.parentNode||(a=1,It.appendChild(t)),n=J(t,Mt,null,!0),i=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,s?u.display=s:o&&jt(u,"display"),a&&It.removeChild(t)),(l.svg||t.getBBox&&Bt(t))&&(i&&-1!==(u[Pt]+"").indexOf("matrix")&&(n=u[Pt],i=0),r=t.getAttribute("transform"),i&&r&&(-1!==r.indexOf("matrix")?(n=r,i=0):-1!==r.indexOf("translate")&&(n="matrix(1,0,0,1,"+r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Vt;for(r=(n||"").match(v)||[],xt=r.length;--xt>-1;)s=Number(r[xt]),r[xt]=(a=s-(s|=0))?(a*h+(0>a?-.5:.5)|0)/h+s:s;return e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r},zt=Y.getTransform=function(t,i,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var s,o,l,h,u,c,d=n?t._gsTransform||new Ot:new Ot,f=d.scaleX<0,p=2e-5,g=1e5,m=Dt?parseFloat(J(t,At,i,!1,"0 0 0").split(" ")[2])||d.zOrigin||0:0,_=parseFloat(a.defaultTransformPerspective)||0;if(d.svg=!(!t.getBBox||!Bt(t)),d.svg&&(Ft(t,J(t,At,i,!1,"50% 50%")+"",d,t.getAttribute("data-svg-origin")),St=a.useSVGTransformAttr||Et),s=Wt(t),s!==Vt){if(16===s.length){var v,y,b,x,w,T=s[0],C=s[1],S=s[2],k=s[3],P=s[4],M=s[5],A=s[6],D=s[7],O=s[8],R=s[9],L=s[10],I=s[12],E=s[13],F=s[14],B=s[11],V=Math.atan2(A,L);d.zOrigin&&(F=-d.zOrigin,I=O*F-s[12],E=R*F-s[13],F=L*F+d.zOrigin-s[14]),d.rotationX=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=P*x+O*w,y=M*x+R*w,b=A*x+L*w,O=P*-w+O*x,R=M*-w+R*x,L=A*-w+L*x,B=D*-w+B*x,P=v,M=y,A=b),V=Math.atan2(-S,L),d.rotationY=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),v=T*x-O*w,y=C*x-R*w,b=S*x-L*w,R=C*w+R*x,L=S*w+L*x,B=k*w+B*x,T=v,C=y,S=b),V=Math.atan2(C,T),d.rotation=V*N,V&&(x=Math.cos(-V),w=Math.sin(-V),T=T*x+P*w,y=C*x+M*w,M=C*-w+M*x,A=S*-w+A*x,C=y),d.rotationX&&Math.abs(d.rotationX)+Math.abs(d.rotation)>359.9&&(d.rotationX=d.rotation=0,d.rotationY=180-d.rotationY),d.scaleX=(Math.sqrt(T*T+C*C)*g+.5|0)/g,d.scaleY=(Math.sqrt(M*M+R*R)*g+.5|0)/g,d.scaleZ=(Math.sqrt(A*A+L*L)*g+.5|0)/g,d.rotationX||d.rotationY?d.skewX=0:(d.skewX=P||M?Math.atan2(P,M)*N+d.rotation:d.skewX||0,Math.abs(d.skewX)>90&&Math.abs(d.skewX)<270&&(f?(d.scaleX*=-1,d.skewX+=d.rotation<=0?180:-180,d.rotation+=d.rotation<=0?180:-180):(d.scaleY*=-1,d.skewX+=d.skewX<=0?180:-180))),d.perspective=B?1/(0>B?-B:B):0,d.x=I,d.y=E,d.z=F,d.svg&&(d.x-=d.xOrigin-(d.xOrigin*T-d.yOrigin*P),d.y-=d.yOrigin-(d.yOrigin*C-d.xOrigin*M))}else if(!Dt||r||!s.length||d.x!==s[4]||d.y!==s[5]||!d.rotationX&&!d.rotationY){var W=s.length>=6,z=W?s[0]:1,H=s[1]||0,Y=s[2]||0,U=W?s[3]:1;d.x=s[4]||0,d.y=s[5]||0,l=Math.sqrt(z*z+H*H),h=Math.sqrt(U*U+Y*Y),u=z||H?Math.atan2(H,z)*N:d.rotation||0,c=Y||U?Math.atan2(Y,U)*N+u:d.skewX||0,Math.abs(c)>90&&Math.abs(c)<270&&(f?(l*=-1,c+=0>=u?180:-180,u+=0>=u?180:-180):(h*=-1,c+=0>=c?180:-180)),d.scaleX=l,d.scaleY=h,d.rotation=u,d.skewX=c,Dt&&(d.rotationX=d.rotationY=d.z=0,d.perspective=_,d.scaleZ=1),d.svg&&(d.x-=d.xOrigin-(d.xOrigin*z+d.yOrigin*Y),d.y-=d.yOrigin-(d.xOrigin*H+d.yOrigin*U))}d.zOrigin=m;for(o in d)d[o]<p&&d[o]>-p&&(d[o]=0)}return n&&(t._gsTransform=d,d.svg&&(St&&t.style[Pt]?e.delayedCall(.001,function(){jt(t.style,Pt)}):!St&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),d},Ht=function(t){var e,i,n=this.data,r=-n.rotation*F,s=r+n.skewX*F,a=1e5,o=(Math.cos(r)*n.scaleX*a|0)/a,l=(Math.sin(r)*n.scaleX*a|0)/a,h=(Math.sin(s)*-n.scaleY*a|0)/a,u=(Math.cos(s)*n.scaleY*a|0)/a,c=this.t.style,d=this.t.currentStyle;if(d){i=l,l=-h,h=-i,e=d.filter,c.filter="";var f,p,m=this.t.offsetWidth,_=this.t.offsetHeight,v="absolute"!==d.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,b=n.x+m*n.xPercent/100,x=n.y+_*n.yPercent/100;if(null!=n.ox&&(f=(n.oxp?m*n.ox*.01:n.ox)-m/2,p=(n.oyp?_*n.oy*.01:n.oy)-_/2,b+=f-(f*o+p*l),x+=p-(f*h+p*u)),v?(f=m/2,p=_/2,y+=", Dx="+(f-(f*o+p*l)+b)+", Dy="+(p-(f*h+p*u)+x)+")"):y+=", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?c.filter=e.replace(L,y):c.filter=y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var C,S,k,P=8>g?1:-1;for(f=n.ieOffsetX||0,p=n.ieOffsetY||0,n.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*_))/2+b),n.ieOffsetY=Math.round((_-((0>u?-u:u)*_+(0>h?-h:h)*m))/2+x),xt=0;4>xt;xt++)S=rt[xt],C=d[S],i=-1!==C.indexOf("px")?parseFloat(C):K(this.t,S,parseFloat(C),C.replace(w,""))||0,k=i!==n[S]?2>xt?-n.ieOffsetX:-n.ieOffsetY:2>xt?f-n.ieOffsetX:p-n.ieOffsetY,c[S]=(n[S]=Math.round(i-k*(0===xt||2===xt?1:P)))+"px"}}},Yt=Y.set3DTransformRatio=Y.setTransformRatio=function(t){var e,i,n,r,s,a,o,l,h,u,c,d,p,g,m,_,v,y,b,x,w,T,C,S=this.data,k=this.t.style,P=S.rotation,M=S.rotationX,A=S.rotationY,D=S.scaleX,O=S.scaleY,R=S.scaleZ,L=S.x,I=S.y,E=S.z,N=S.svg,B=S.perspective,V=S.force3D;if(((1===t||0===t)&&"auto"===V&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!V)&&!E&&!B&&!A&&!M&&1===R||St&&N||!Dt)return void(P||S.skewX||N?(P*=F,T=S.skewX*F,C=1e5,e=Math.cos(P)*D,r=Math.sin(P)*D,i=Math.sin(P-T)*-O,s=Math.cos(P-T)*O,T&&"simple"===S.skewType&&(v=Math.tan(T-S.skewY*F),v=Math.sqrt(1+v*v),i*=v,s*=v,S.skewY&&(v=Math.tan(S.skewY*F),v=Math.sqrt(1+v*v),e*=v,r*=v)),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset,St&&(S.xPercent||S.yPercent)&&(g=this.t.getBBox(),L+=.01*S.xPercent*g.width,I+=.01*S.yPercent*g.height),g=1e-6,g>L&&L>-g&&(L=0),g>I&&I>-g&&(I=0)),b=(e*C|0)/C+","+(r*C|0)/C+","+(i*C|0)/C+","+(s*C|0)/C+","+L+","+I+")",N&&St?this.t.setAttribute("transform","matrix("+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+b):k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+D+",0,0,"+O+","+L+","+I+")");if(f&&(g=1e-4,g>D&&D>-g&&(D=R=2e-5),g>O&&O>-g&&(O=R=2e-5),!B||S.z||S.rotationX||S.rotationY||(B=0)),P||S.skewX)P*=F,m=e=Math.cos(P),_=r=Math.sin(P),S.skewX&&(P-=S.skewX*F,m=Math.cos(P),_=Math.sin(P),"simple"===S.skewType&&(v=Math.tan((S.skewX-S.skewY)*F),v=Math.sqrt(1+v*v),m*=v,_*=v,S.skewY&&(v=Math.tan(S.skewY*F),v=Math.sqrt(1+v*v),e*=v,r*=v))),i=-_,s=m;else{if(!(A||M||1!==R||B||N))return void(k[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+L+"px,"+I+"px,"+E+"px)"+(1!==D||1!==O?" scale("+D+","+O+")":""));e=s=1,i=r=0}h=1,n=a=o=l=u=c=0,d=B?-1/B:0,p=S.zOrigin,g=1e-6,x=",",w="0",P=A*F,P&&(m=Math.cos(P),_=Math.sin(P),o=-_,u=d*-_,n=e*_,a=r*_,h=m,d*=m,e*=m,r*=m),P=M*F,P&&(m=Math.cos(P),_=Math.sin(P),v=i*m+n*_,y=s*m+a*_,l=h*_,c=d*_,n=i*-_+n*m,a=s*-_+a*m,h*=m,d*=m,i=v,s=y),1!==R&&(n*=R,a*=R,h*=R,d*=R),1!==O&&(i*=O,s*=O,l*=O,c*=O),1!==D&&(e*=D,r*=D,o*=D,u*=D),(p||N)&&(p&&(L+=n*-p,I+=a*-p,E+=h*-p+p),N&&(L+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,I+=S.yOrigin-(S.xOrigin*r+S.yOrigin*s)+S.yOffset),g>L&&L>-g&&(L=w),g>I&&I>-g&&(I=w),g>E&&E>-g&&(E=0)),b=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",b+=(g>e&&e>-g?w:e)+x+(g>r&&r>-g?w:r)+x+(g>o&&o>-g?w:o),b+=x+(g>u&&u>-g?w:u)+x+(g>i&&i>-g?w:i)+x+(g>s&&s>-g?w:s),M||A||1!==R?(b+=x+(g>l&&l>-g?w:l)+x+(g>c&&c>-g?w:c)+x+(g>n&&n>-g?w:n),b+=x+(g>a&&a>-g?w:a)+x+(g>h&&h>-g?w:h)+x+(g>d&&d>-g?w:d)+x):b+=",0,0,0,0,1,0,",b+=L+x+I+x+E+x+(B?1+-E/B:1)+")",k[Pt]=b};h=Ot.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,n,s,o,l){if(n._lastParsedTransform===l)return s;n._lastParsedTransform=l;var h;"function"==typeof l[i]&&(h=l[i],l[i]=e);var u,c,d,f,p,g,v,y,b,x=t._gsTransform,w=t.style,T=1e-6,C=kt.length,S=l,k={},P="transformOrigin",M=zt(t,r,!0,S.parseTransform),A=S.transform&&("function"==typeof S.transform?S.transform(_,m):S.transform);if(n._transform=M,A&&"string"==typeof A&&Pt)c=z.style,c[Pt]=A,c.display="block",c.position="absolute",V.body.appendChild(z),u=zt(z,null,!1),M.svg&&(g=M.xOrigin,v=M.yOrigin,u.x-=M.xOffset,u.y-=M.yOffset,(S.transformOrigin||S.svgOrigin)&&(A={},Ft(t,at(S.transformOrigin),A,S.svgOrigin,S.smoothOrigin,!0),g=A.xOrigin,v=A.yOrigin,u.x-=A.xOffset-M.xOffset,u.y-=A.yOffset-M.yOffset),(g||v)&&(y=Wt(z,!0),u.x-=g-(g*y[0]+v*y[2]),u.y-=v-(g*y[1]+v*y[3]))),V.body.removeChild(z),u.perspective||(u.perspective=M.perspective),null!=S.xPercent&&(u.xPercent=lt(S.xPercent,M.xPercent)),null!=S.yPercent&&(u.yPercent=lt(S.yPercent,M.yPercent));else if("object"==typeof S){if(u={scaleX:lt(null!=S.scaleX?S.scaleX:S.scale,M.scaleX),scaleY:lt(null!=S.scaleY?S.scaleY:S.scale,M.scaleY),scaleZ:lt(S.scaleZ,M.scaleZ),x:lt(S.x,M.x),y:lt(S.y,M.y),z:lt(S.z,M.z),xPercent:lt(S.xPercent,M.xPercent),yPercent:lt(S.yPercent,M.yPercent),perspective:lt(S.transformPerspective,M.perspective)},p=S.directionalRotation,null!=p)if("object"==typeof p)for(c in p)S[c]=p[c];else S.rotation=p;"string"==typeof S.x&&-1!==S.x.indexOf("%")&&(u.x=0,u.xPercent=lt(S.x,M.xPercent)),"string"==typeof S.y&&-1!==S.y.indexOf("%")&&(u.y=0,u.yPercent=lt(S.y,M.yPercent)),u.rotation=ht("rotation"in S?S.rotation:"shortRotation"in S?S.shortRotation+"_short":"rotationZ"in S?S.rotationZ:M.rotation-M.skewY,M.rotation-M.skewY,"rotation",k),Dt&&(u.rotationX=ht("rotationX"in S?S.rotationX:"shortRotationX"in S?S.shortRotationX+"_short":M.rotationX||0,M.rotationX,"rotationX",k),u.rotationY=ht("rotationY"in S?S.rotationY:"shortRotationY"in S?S.shortRotationY+"_short":M.rotationY||0,M.rotationY,"rotationY",k)),u.skewX=ht(S.skewX,M.skewX-M.skewY),(u.skewY=ht(S.skewY,M.skewY))&&(u.skewX+=u.skewY,u.rotation+=u.skewY)}for(Dt&&null!=S.force3D&&(M.force3D=S.force3D,f=!0),M.skewType=S.skewType||M.skewType||a.defaultSkewType,d=M.force3D||M.z||M.rotationX||M.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,d||null==S.scale||(u.scaleZ=1);--C>-1;)b=kt[C],A=u[b]-M[b],(A>T||-T>A||null!=S[b]||null!=B[b])&&(f=!0,s=new vt(M,b,M[b],A,s),b in k&&(s.e=k[b]),s.xs0=0,s.plugin=o,n._overwriteProps.push(s.n));return A=S.transformOrigin,M.svg&&(A||S.svgOrigin)&&(g=M.xOffset,v=M.yOffset,Ft(t,at(A),u,S.svgOrigin,S.smoothOrigin),s=yt(M,"xOrigin",(x?M:u).xOrigin,u.xOrigin,s,P),s=yt(M,"yOrigin",(x?M:u).yOrigin,u.yOrigin,s,P),(g!==M.xOffset||v!==M.yOffset)&&(s=yt(M,"xOffset",x?g:M.xOffset,M.xOffset,s,P),s=yt(M,"yOffset",x?v:M.yOffset,M.yOffset,s,P)),A=St?null:"0px 0px"),(A||Dt&&d&&M.zOrigin)&&(Pt?(f=!0,b=At,A=(A||J(t,b,r,!1,"50% 50%"))+"",s=new vt(w,b,0,0,s,(-1),P),s.b=w[b],s.plugin=o,Dt?(c=M.zOrigin,A=A.split(" "),M.zOrigin=(A.length>2&&(0===c||"0px"!==A[2])?parseFloat(A[2]):c)||0,s.xs0=s.e=A[0]+" "+(A[1]||"50%")+" 0px",s=new vt(M,"zOrigin",0,0,s,(-1),s.n),s.b=c,s.xs0=s.e=M.zOrigin):s.xs0=s.e=A):at(A+"",M)),f&&(n._transformType=M.svg&&St||!d&&3!==this._transformType?2:3),h&&(l[i]=h),s},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,a,o){e=this.format(e);var l,h,u,c,d,f,p,g,m,_,v,y,b,x,w,T,C=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],S=t.style;for(m=parseFloat(t.offsetWidth),_=parseFloat(t.offsetHeight),l=e.split(" "),h=0;h<C.length;h++)this.p.indexOf("border")&&(C[h]=Q(C[h])),d=c=J(t,C[h],r,!1,"0px"),-1!==d.indexOf(" ")&&(c=d.split(" "),d=c[0],c=c[1]),f=u=l[h],p=parseFloat(d),y=d.substr((p+"").length),b="="===f.charAt(1),b?(g=parseInt(f.charAt(0)+"1",10),f=f.substr(2),g*=parseFloat(f),v=f.substr((g+"").length-(0>g?1:0))||""):(g=parseFloat(f),v=f.substr((g+"").length)),""===v&&(v=n[i]||y),v!==y&&(x=K(t,"borderLeft",p,y),w=K(t,"borderTop",p,y),"%"===v?(d=x/m*100+"%",c=w/_*100+"%"):"em"===v?(T=K(t,"borderLeft",1,"em"),d=x/T+"em",c=w/T+"em"):(d=x+"px",c=w+"px"),b&&(f=parseFloat(d)+g+v,u=parseFloat(c)+g+v)),a=bt(S,C[h],d+" "+c,f+" "+u,!1,"0px",a);return a},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,n,s,a){return bt(t.style,i,this.format(J(t,i,r,!1,"0px 0px")),this.format(e),!1,"0px",s)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,n,s,a){var o,l,h,u,c,d,f="background-position",p=r||Z(t,null),m=this.format((p?g?p.getPropertyValue(f+"-x")+" "+p.getPropertyValue(f+"-y"):p.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),_=this.format(e);if(-1!==m.indexOf("%")!=(-1!==_.indexOf("%"))&&_.split(",").length<2&&(d=J(t,"backgroundImage").replace(A,""),d&&"none"!==d)){for(o=m.split(" "),l=_.split(" "),H.setAttribute("src",d),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(c=0===h?t.offsetWidth-H.width:t.offsetHeight-H.height,o[h]=u?parseFloat(m)/100*c+"px":parseFloat(m)/c*100+"%");m=o.join(" ")}return this.parseComplex(t.style,m,_,s,a)},formatter:at}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",at(-1===t.indexOf(" ")?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:mt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:mt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,n,s,a){var o,l,h;return 9>g?(l=t.currentStyle,h=8>g?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(J(t,this.p,r,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,n,r){return r}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,n,s,a){var o=J(t,"borderTopWidth",r,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(w,"");return"px"!==h&&(o=parseFloat(o)/K(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+J(t,"borderTopStyle",r,!1,"solid")+" "+J(t,"borderTopColor",r,!1,"#000")),l.join(" "),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(pt)||["#000"])[0];
  }}),Tt("borderWidth",{parser:mt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,n,r,s){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new vt(a,o,0,0,r,(-1),i,(!1),0,a[o],e)}});var Ut=function(t){var e,i=this.t,n=i.filter||J(this.data,"filter")||"",r=this.s+this.c*t|0;100===r&&(-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(i.removeAttribute("filter"),e=!J(this.data,"filter")):(i.filter=n.replace(S,""),e=!0)),e||(this.xn1&&(i.filter=n=n||"alpha(opacity="+r+")"),-1===n.indexOf("pacity")?0===r&&this.xn1||(i.filter=n+" alpha(opacity="+r+")"):i.filter=n.replace(T,"opacity="+r))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,n,s,a){var o=parseFloat(J(t,"opacity",r,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===J(t,"visibility",r)&&0!==e&&(o=0),j?s=new vt(l,"opacity",o,e-o,s):(s=new vt(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Ut),h&&(s=new vt(l,"visibility",0,0,s,(-1),null,(!1),0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",n._overwriteProps.push(s.n),n._overwriteProps.push(i)),s}});var jt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:jt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(t,e,n,s,a,o,l){var h,u,c,d,f,p=t.getAttribute("class")||"",g=t.style.cssText;if(a=s._classNamePT=new vt(t,n,0,0,a,2),a.setRatio=Xt,a.pr=-11,i=!0,a.b=p,u=et(t,r),c=t._gsClassPT){for(d={},f=c.data;f;)d[f.p]=1,f=f._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:p.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=it(t,u,et(t),l,d),t.setAttribute("class",p),a.data=h.firstMPT,t.style.cssText=g,a=a.xfirst=s.parse(t,h.difs,a,o)}});var Gt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,n,r,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",r=!0;else for(e=this.e.split(" ").join("").split(","),n=e.length;--n>-1;)i=e[n],l[i]&&(l[i].parse===o?r=!0:i="transformOrigin"===i?At:l[i].p),jt(a,i);r&&(jt(a,Pt),s=this.t._gsTransform,s&&(s.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(t,e,n,r,s){return s=new vt(t,n,0,0,s,2),s.setRatio=Gt,s.e=e,s.pr=-10,s.data=r._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),xt=h.length;xt--;)Ct(h[xt]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o,h){if(!t.nodeType)return!1;this._target=m=t,this._tween=o,this._vars=e,_=h,u=e.autoRound,i=!1,n=e.suffixMap||a.suffixMap,r=Z(t,""),s=this._overwriteProps;var f,g,v,y,b,x,w,T,S,k=t.style;if(c&&""===k.zIndex&&(f=J(t,"zIndex",r),("auto"===f||""===f)&&this._addLazySet(k,"zIndex",0)),"string"==typeof e&&(y=k.cssText,f=et(t,r),k.cssText=y+";"+e,f=it(t,f,et(t)).difs,!j&&C.test(e)&&(f.opacity=parseFloat(RegExp.$1)),e=f,k.cssText=y),e.className?this._firstPT=g=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=g=this.parse(t,e,null),this._transformType){for(S=3===this._transformType,Pt?d&&(c=!0,""===k.zIndex&&(w=J(t,"zIndex",r),("auto"===w||""===w)&&this._addLazySet(k,"zIndex",0)),p&&this._addLazySet(k,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(S?"visible":"hidden"))):k.zoom=1,v=g;v&&v._next;)v=v._next;T=new vt(t,"transform",0,0,null,2),this._linkCSSP(T,null,v),T.setRatio=Pt?Yt:Ht,T.data=this._transform||zt(t,r,!0),T.tween=o,T.pr=-1,s.pop()}if(i){for(;g;){for(x=g._next,v=y;v&&v.pr>g.pr;)v=v._next;(g._prev=v?v._prev:b)?g._prev._next=g:y=g,(g._next=v)?v._prev=g:b=g,g=x}this._firstPT=y}return!0},h.parse=function(t,e,i,s){var a,o,h,c,d,f,p,g,v,y,b=t.style;for(a in e)f=e[a],"function"==typeof f&&(f=f(_,m)),o=l[a],o?i=o.parse(t,f,a,this,i,s,e):(d=J(t,a,r)+"",v="string"==typeof f,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||v&&k.test(f)?(v||(f=dt(f),f=(f.length>3?"rgba(":"rgb(")+f.join(",")+")"),i=bt(b,a,d,f,!0,"transparent",i,0,s)):v&&E.test(f)?i=bt(b,a,d,f,!0,null,i,0,s):(h=parseFloat(d),p=h||0===h?d.substr((h+"").length):"",(""===d||"auto"===d)&&("width"===a||"height"===a?(h=st(t,a,r),p="px"):"left"===a||"top"===a?(h=tt(t,a,r),p="px"):(h="opacity"!==a?0:1,p="")),y=v&&"="===f.charAt(1),y?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),g=f.replace(w,"")):(c=parseFloat(f),g=v?f.replace(w,""):""),""===g&&(g=a in n?n[a]:p),f=c||0===c?(y?c+h:c)+g:e[a],p!==g&&""!==g&&(c||0===c)&&h&&(h=K(t,a,h,p),"%"===g?(h/=K(t,a,100,"%")/100,e.strictUnits!==!0&&(d=h+"%")):"em"===g||"rem"===g||"vw"===g||"vh"===g?h/=K(t,a,1,g):"px"!==g&&(c=K(t,a,c,g),g="px"),y&&(c||0===c)&&(f=c+h+g)),y&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==b[a]&&(f||f+""!="NaN"&&null!=f)?(i=new vt(b,a,c||h||0,0,i,(-1),a,(!1),0,d,f),i.xs0="none"!==f||"display"!==a&&-1===a.indexOf("Style")?f:d):G("invalid "+a+" tween value: "+e[a]):(i=new vt(b,a,h,c-h,i,0,a,u!==!1&&("px"===g||"zIndex"===a),0,d,f),i.xs0=g))),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,n,r=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):s>e&&e>-s&&(e=0),r.type)if(1===r.type)if(n=r.l,2===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===n)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=Math.round(r.s+r.c),r.type){if(1===r.type){for(n=r.l,i=r.xs0+e+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r.t[r.p]=i}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},h._enableTransforms=function(t){this._transform=this._transform||zt(this._target,r,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};var qt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var n=this._firstPT=new vt(t,e,0,0,this._firstPT,2);n.e=i,n.setRatio=qt,n.data=this},h._linkCSSP=function(t,e,i,n){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,n=!0),i?i._next=t:n||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},h._kill=function(e){var i,n,r,s=e;if(e.autoAlpha||e.alpha){s={};for(n in e)s[n]=e[n];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&(r=i.xfirst,r&&r._prev?this._linkCSSP(r._prev,i._next,r._prev._prev):r===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,r._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==n&&i.plugin._kill&&(i.plugin._kill(e),n=i.plugin),i=i._next;return t.prototype._kill.call(this,s)};var $t=function(t,e,i){var n,r,s,a;if(t.slice)for(r=t.length;--r>-1;)$t(t[r],e,i);else for(n=t.childNodes,r=n.length;--r>-1;)s=n[r],a=s.type,s.style&&(e.push(et(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||$t(s,e,i)};return a.cascadeTo=function(t,i,n){var r,s,a,o,l=e.to(t,i,n),h=[l],u=[],c=[],d=[],f=e._internals.reservedProps;for(t=l._targets||l.target,$t(t,u,d),l.render(i,!0,!0),$t(t,c),l.render(0,!0,!0),l._enabled(!0),r=d.length;--r>-1;)if(s=it(d[r],u[r],c[r]),s.firstMPT){s=s.difs;for(a in n)f[a]&&(s[a]=n[a]);o={};for(a in s)o[a]=u[r][a];h.push(e.fromTo(d[r],i,o,s))}return h},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin");/*!
   * VERSION: 0.6.4
   * DATE: 2016-07-08
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"],function(t,e,i){var n=function(){t.call(this,"cssRule"),this._overwriteProps.length=0},r=window.document,s=i.prototype.setRatio,a=n.prototype=new i;return a._propName="cssRule",a.constructor=n,n.version="0.6.4",n.API=2,n.getRule=function(t){var e,i,n,s,a=r.all?"rules":"cssRules",o=r.styleSheets,l=o.length,h=":"===t.charAt(0);for(t=(h?"":",")+t.toLowerCase()+",",h&&(s=[]);--l>-1;){try{if(i=o[l][a],!i)continue;e=i.length}catch(u){console.log(u);continue}for(;--e>-1;)if(n=i[e],n.selectorText&&-1!==(","+n.selectorText.split("::").join(":").toLowerCase()+",").indexOf(t)){if(!h)return n.style;s.push(n.style)}}return s},a._onInitTween=function(t,e,n){if(void 0===t.cssText)return!1;var s=t._gsProxy=t._gsProxy||r.createElement("div");return this._ss=t,this._proxy=s.style,s.style.cssText=t.cssText,i.prototype._onInitTween.call(this,s,e,n),!0},a.setRatio=function(t){s.call(this,t),this._ss.cssText=this._proxy.cssText},t.activate([n]),n},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSRulePlugin");/*!
   * VERSION: beta 1.5.0
   * DATE: 2016-07-14
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,e,i=/(\d|\.)+/g,n=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,r={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},s=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,255*(1>6*t?e+(i-e)*t*6:.5>t?i:2>3*t?e+(i-e)*(2/3-t)*6:e)+.5|0},a=function(t,e){var a,o,l,h,u,c,d,f,p,g,m;if(t)if("number"==typeof t)a=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),r[t])a=r[t];else if("#"===t.charAt(0))4===t.length&&(o=t.charAt(1),l=t.charAt(2),h=t.charAt(3),t="#"+o+o+l+l+h+h),t=parseInt(t.substr(1),16),a=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(a=m=t.match(i),e){if(-1!==t.indexOf("="))return t.match(n)}else u=Number(a[0])%360/360,c=Number(a[1])/100,d=Number(a[2])/100,l=.5>=d?d*(c+1):d+c-d*c,o=2*d-l,a.length>3&&(a[3]=Number(t[3])),a[0]=s(u+1/3,o,l),a[1]=s(u,o,l),a[2]=s(u-1/3,o,l);else a=t.match(i)||r.transparent;a[0]=Number(a[0]),a[1]=Number(a[1]),a[2]=Number(a[2]),a.length>3&&(a[3]=Number(a[3]))}else a=r.black;return e&&!m&&(o=a[0]/255,l=a[1]/255,h=a[2]/255,f=Math.max(o,l,h),p=Math.min(o,l,h),d=(f+p)/2,f===p?u=c=0:(g=f-p,c=d>.5?g/(2-f-p):g/(f+p),u=f===o?(l-h)/g+(h>l?6:0):f===l?(h-o)/g+2:(o-l)/g+4,u*=60),a[0]=u+.5|0,a[1]=100*c+.5|0,a[2]=100*d+.5|0),a},o=function(t,e){var i,n,r,s=(t+"").match(h)||[],o=0,l=s.length?"":t;for(i=0;i<s.length;i++)n=s[i],r=t.substr(o,t.indexOf(n,o)-o),o+=r.length+n.length,n=a(n,e),3===n.length&&n.push(1),l+=r+(e?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return l+t.substr(o)},l=_gsScope.TweenLite,h="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b",u=_gsScope._gsDefine.plugin({propName:"colorProps",version:"1.5.0",priority:-1,API:2,global:!0,init:function(t,i,n,r){var s,o,l,h;this._target=t,this._proxy=o="NUMBER"===(i.format+"").toUpperCase()?{}:0;for(s in i)"format"!==s&&(o?(this._firstNumPT=l={_next:this._firstNumPT,t:t,p:s,f:"function"==typeof t[s]},o[s]="rgb("+a(l.f?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():t[s]).join(",")+")",h=i[s],"function"==typeof h&&(h=h(r,t)),this._addTween(o,s,"get","number"==typeof h?"rgb("+a(h,!1).join(",")+")":h,s,null,null,e)):this._addTween(t,s,"get",i[s],s,null,null,e,r));return!0},set:function(t){var e,i=this._firstNumPT;for(this._super.setRatio.call(this,t);i;)e=a(this._proxy[i.p],!1),e=e[0]<<16|e[1]<<8|e[2],i.f?this._target[i.p](e):this._target[i.p]=e,i=i._next}});for(t in r)h+="|"+t+"\\b";h=new RegExp(h+")","gi"),u.colorStringFilter=e=function(t){var e,i=t[0]+t[1];h.lastIndex=0,h.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=o(t[0],e),t[1]=o(t[1],e))},l.defaultStringFilter||(l.defaultStringFilter=u.colorStringFilter),u.parseColor=a,t=u.prototype,t._firstNumPT=null,t._kill=function(e){for(var i,n=this._firstNumPT;n;)n.p in e?(n===t._firstNumPT&&(this._firstNumPT=n._next),i&&(i._next=n._next)):i=n,n=n._next;return this._super._kill(e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.3.0
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,n){"object"!=typeof e&&(e={rotation:e}),this.finals={};var r,s,a,o,l,h,u=e.useRadians===!0?2*Math.PI:360,c=1e-6;for(r in e)"useRadians"!==r&&(o=e[r],"function"==typeof o&&(o=o(n,t)),h=(o+"").split("_"),s=h[0],a=parseFloat("function"!=typeof t[r]?t[r]:t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]()),o=this.finals[r]="string"==typeof s&&"="===s.charAt(1)?a+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0,l=o-a,h.length&&(s=h.join("_"),-1!==s.indexOf("short")&&(l%=u,l!==l%(u/2)&&(l=0>l?l+u:l-u)),-1!==s.indexOf("_cw")&&0>l?l=(l+9999999999*u)%u-(l/u|0)*u:-1!==s.indexOf("ccw")&&l>0&&(l=(l-9999999999*u)%u-(l/u|0)*u)),(l>c||-c>l)&&(this._addTween(t,r,a,a+l,r),this._overwriteProps.push(r)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.1.1
   * DATE: 2016-08-16
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * DrawSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function t(t,e,i,n,r,s){return i=(parseFloat(i)-parseFloat(t))*r,n=(parseFloat(n)-parseFloat(e))*s,Math.sqrt(i*i+n*n)}function e(t){return"string"!=typeof t&&t.nodeType||(t=_gsScope.TweenLite.selector(t),t.length&&(t=t[0])),t}function i(t,e,i){var n,r,s=t.indexOf(" ");return-1===s?(n=void 0!==i?i+"":t,r=t):(n=t.substr(0,s),r=t.substr(s+1)),n=-1!==n.indexOf("%")?parseFloat(n)/100*e:parseFloat(n),r=-1!==r.indexOf("%")?parseFloat(r)/100*e:parseFloat(r),n>r?[r,n]:[n,r]}function n(i){if(!i)return 0;i=e(i);var n,r,s,a,l,h,u,c=i.tagName.toLowerCase(),d=1,f=1;if("non-scaling-stroke"===i.getAttribute("vector-effect")&&(f=i.getScreenCTM(),d=f.a,f=f.d),"path"===c){a=i.style.strokeDasharray,i.style.strokeDasharray="none",n=i.getTotalLength()||0,d!==f&&console.log("Warning: <path> length cannot be measured accurately when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(d+f)/2;try{r=i.getBBox()}catch(p){}i.style.strokeDasharray=a}else if("rect"===c)n=2*i.getAttribute("width")*d+2*i.getAttribute("height")*f;else if("line"===c)n=t(i.getAttribute("x1"),i.getAttribute("y1"),i.getAttribute("x2"),i.getAttribute("y2"),d,f);else if("polyline"===c||"polygon"===c)for(s=i.getAttribute("points").match(o)||[],"polygon"===c&&s.push(s[0],s[1]),n=0,l=2;l<s.length;l+=2)n+=t(s[l-2],s[l-1],s[l],s[l+1],d,f)||0;else("circle"===c||"ellipse"===c)&&(h=parseFloat(i.getAttribute("circle"===c?"r":"rx"))*d,u=parseFloat(i.getAttribute("circle"===c?"r":"ry"))*f,n=Math.PI*(3*(h+u)-Math.sqrt((3*h+u)*(h+3*u))));return n||0}function r(t,i){if(!t)return[0,0];t=e(t),i=i||n(t)+1;var r=a(t),s=r.strokeDasharray||"",o=parseFloat(r.strokeDashoffset),l=s.indexOf(",");return 0>l&&(l=s.indexOf(" ")),s=0>l?i:parseFloat(s.substr(0,l))||1e-5,s>i&&(s=i),[Math.max(0,-o),Math.max(0,s-o)]}var s,a=document.defaultView?document.defaultView.getComputedStyle:function(){},o=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi;s=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.1.1",global:!0,overwriteProps:["drawSVG"],init:function(t,e,s,a){if(!t.getBBox)return!1;var o,l,h,u=n(t)+1;return this._style=t.style,"function"==typeof e&&(e=e(a,t)),e===!0||"true"===e?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=r(t,u),l=i(e,u,o[0]),this._length=u+10,0===o[0]&&0===l[0]?(h=Math.max(1e-5,l[1]-u),this._dash=u+h,this._offset=u-o[1]+h,this._addTween(this,"_offset",this._offset,u-l[1]+h,"drawSVG")):(this._dash=o[1]-o[0]||1e-6,this._offset=-o[0],this._addTween(this,"_dash",this._dash,l[1]-l[0]||1e-5,"drawSVG"),this._addTween(this,"_offset",this._offset,-l[0],"drawSVG")),!0},set:function(t){this._firstPT&&(this._super.setRatio.call(this,t),this._style.strokeDashoffset=this._offset,1===t||0===t?this._style.strokeDasharray=this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._style.strokeDasharray=this._dash+"px,"+this._length+"px")}}),s.getLength=n,s.getPosition=r}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("DrawSVGPlugin");/*!
   * VERSION: 0.2.0
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t,e,i=/(\d|\.)+/g,n=["redMultiplier","greenMultiplier","blueMultiplier","alphaMultiplier","redOffset","greenOffset","blueOffset","alphaOffset"],r={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},s=function(t){return""===t||null==t||"none"===t?r.transparent:r[t]?r[t]:"number"==typeof t?[t>>16,t>>8&255,255&t]:"#"===t.charAt(0)?(4===t.length&&(t="#"+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)+t.charAt(3)+t.charAt(3)),t=parseInt(t.substr(1),16),[t>>16,t>>8&255,255&t]):t.match(i)||r.transparent},a=function(e,i,r){if(!t&&(t=_gsScope.ColorFilter||_gsScope.createjs.ColorFilter,!t))throw"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.";for(var a,o,l,h,u,c=e.filters||[],d=c.length;--d>-1;)if(c[d]instanceof t){o=c[d];break}if(o||(o=new t,c.push(o),e.filters=c),l=o.clone(),null!=i.tint)a=s(i.tint),h=null!=i.tintAmount?Number(i.tintAmount):1,l.redOffset=Number(a[0])*h,l.greenOffset=Number(a[1])*h,l.blueOffset=Number(a[2])*h,l.redMultiplier=l.greenMultiplier=l.blueMultiplier=1-h;else for(u in i)"exposure"!==u&&"brightness"!==u&&(l[u]=Number(i[u]));for(null!=i.exposure?(l.redOffset=l.greenOffset=l.blueOffset=255*(Number(i.exposure)-1),l.redMultiplier=l.greenMultiplier=l.blueMultiplier=1):null!=i.brightness&&(h=Number(i.brightness)-1,l.redOffset=l.greenOffset=l.blueOffset=h>0?255*h:0,l.redMultiplier=l.greenMultiplier=l.blueMultiplier=1-Math.abs(h)),d=8;--d>-1;)u=n[d],o[u]!==l[u]&&r._addTween(o,u,o[u],l[u],"easel_colorFilter");if(r._overwriteProps.push("easel_colorFilter"),!e.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+e},o=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],l=.212671,h=.71516,u=.072169,c=function(t,e){if(!(t instanceof Array&&e instanceof Array))return e;var i,n,r=[],s=0,a=0;for(i=0;4>i;i++){for(n=0;5>n;n++)a=4===n?t[s+4]:0,r[s+n]=t[s]*e[n]+t[s+1]*e[n+5]+t[s+2]*e[n+10]+t[s+3]*e[n+15]+a;s+=5}return r},d=function(t,e){if(isNaN(e))return t;var i=1-e,n=i*l,r=i*h,s=i*u;return c([n+e,r,s,0,0,n,r+e,s,0,0,n,r,s+e,0,0,0,0,0,1,0],t)},f=function(t,e,i){isNaN(i)&&(i=1);var n=s(e),r=n[0]/255,a=n[1]/255,o=n[2]/255,d=1-i;return c([d+i*r*l,i*r*h,i*r*u,0,0,i*a*l,d+i*a*h,i*a*u,0,0,i*o*l,i*o*h,d+i*o*u,0,0,0,0,0,1,0],t)},p=function(t,e){if(isNaN(e))return t;e*=Math.PI/180;var i=Math.cos(e),n=Math.sin(e);return c([l+i*(1-l)+n*-l,h+i*-h+n*-h,u+i*-u+n*(1-u),0,0,l+i*-l+.143*n,h+i*(1-h)+.14*n,u+i*-u+n*-.283,0,0,l+i*-l+n*-(1-l),h+i*-h+n*h,u+i*(1-u)+n*u,0,0,0,0,0,1,0,0,0,0,0,1],t)},g=function(t,e){return isNaN(e)?t:(e+=.01,c([e,0,0,0,128*(1-e),0,e,0,0,128*(1-e),0,0,e,0,128*(1-e),0,0,0,1,0],t))},m=function(t,i,n){if(!e&&(e=_gsScope.ColorMatrixFilter||_gsScope.createjs.ColorMatrixFilter,!e))throw"EaselPlugin error: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.";for(var r,s,a,l=t.filters||[],h=l.length;--h>-1;)if(l[h]instanceof e){a=l[h];break}for(a||(a=new e(o.slice()),l.push(a),t.filters=l),s=a.matrix,r=o.slice(),null!=i.colorize&&(r=f(r,i.colorize,Number(i.colorizeAmount))),null!=i.contrast&&(r=g(r,Number(i.contrast))),null!=i.hue&&(r=p(r,Number(i.hue))),null!=i.saturation&&(r=d(r,Number(i.saturation))),h=r.length;--h>-1;)r[h]!==s[h]&&n._addTween(s,h,s[h],r[h],"easel_colorMatrixFilter");if(n._overwriteProps.push("easel_colorMatrixFilter"),!t.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+t;n._matrix=s};_gsScope._gsDefine.plugin({propName:"easel",priority:-1,version:"0.2.0",API:2,init:function(t,e,i,n){this._target=t;var r,s,o,l,h;for(r in e)h=e[r],"function"==typeof h&&(h=h(n,t)),"colorFilter"===r||"tint"===r||"tintAmount"===r||"exposure"===r||"brightness"===r?o||(a(t,e.colorFilter||e,this),o=!0):"saturation"===r||"contrast"===r||"hue"===r||"colorize"===r||"colorizeAmount"===r?l||(m(t,e.colorMatrixFilter||e,this),l=!0):"frame"===r?(this._firstPT=s={_next:this._firstPT,t:t,p:"gotoAndStop",s:t.currentFrame,f:!0,n:"frame",pr:0,type:0,m:Math.round},s.c="number"==typeof h?h-s.s:"string"==typeof h?parseFloat(h.split("=").join("")):0,s._next&&(s._next._prev=s)):null!=t[r]&&(this._firstPT=s={_next:this._firstPT,t:t,p:r,f:"function"==typeof t[r],n:r,pr:0,type:0},s.s=s.f?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),s.c="number"==typeof h?h-s.s:"string"==typeof h?parseFloat(h.split("=").join("")):0,s._next&&(s._next._prev=s));return!0},set:function(t){for(var e,i=this._firstPT,n=1e-6;i;)e=i.c*t+i.s,i.m?e=i.m(e,i.t):n>e&&e>-n&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next;this._target.cacheID&&this._target.updateCache()}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.1.3
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"endArray",API:2,version:"0.1.3",init:function(t,e,i){var n,r,s=e.length,a=this.a=[];if(this.target=t,this._mod=0,!s)return!1;for(;--s>-1;)n=t[s],r=e[s],n!==r&&a.push({i:s,s:n,c:r-n});return!0},mod:function(t){"function"==typeof t.endArray&&(this._mod=t.endArray)},set:function(t){var e,i,n=this.target,r=this.a,s=r.length,a=this._mod;if(a)for(;--s>-1;)e=r[s],n[e.i]=a(e.s+e.c*t,n);else for(;--s>-1;)e=r[s],i=e.s+e.c*t,n[e.i]=1e-6>i&&i>-1e-6?0:i}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.0.2
   * DATE: 2016-07-14
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=function(t,e,i){var n=t.type,r=t.setRatio,s=e._tween,a=e._target;t.type=2,t.m=i,t.setRatio=function(e){var o,l,h,u=1e-6;if(1!==e||s._time!==s._duration&&0!==s._time)if(e||s._time!==s._duration&&0!==s._time||s._rawPrevTime===-1e-6)if(o=t.c*e+t.s,t.r?o=Math.round(o):u>o&&o>-u&&(o=0),n)if(1===n){for(l=t.xs0+o+t.xs1,h=1;h<t.l;h++)l+=t["xn"+h]+t["xs"+(h+1)];t.t[t.p]=i(l,a)}else-1===n?t.t[t.p]=i(t.xs0,a):r&&r.call(t,e);else t.t[t.p]=i(o+t.xs0,a);else 2!==n?t.t[t.p]=i(t.b,a):r.call(t,e);else if(2!==n)if(t.r&&-1!==n)if(o=Math.round(t.s+t.c),n){if(1===n){for(l=t.xs0+o+t.xs1,h=1;h<t.l;h++)l+=t["xn"+h]+t["xs"+(h+1)];t.t[t.p]=i(l,a)}}else t.t[t.p]=i(o+t.xs0,a);else t.t[t.p]=i(t.e,a);else r.call(t,e)}},e=function(e,i){for(var n=i._firstPT,r=e.rotation&&-1!==i._overwriteProps.join("").indexOf("bezier");n;)"function"==typeof e[n.p]?t(n,i,e[n.p]):r&&"bezier"===n.n&&-1!==n.plugin._overwriteProps.join("").indexOf("rotation")&&(n.data.mod=e.rotation),n=n._next},i=_gsScope._gsDefine.plugin({propName:"modifiers",version:"0.0.2",API:2,init:function(t,e,i){return this._tween=i,this._vars=e,!0},initAll:function(){for(var t,i,n=this._tween,r=this._vars,s=this,a=n._firstPT;a;)i=a._next,t=r[a.n],a.pg?"css"===a.t._propName?e(r,a.t):a.t!==s&&(t=r[a.t._propName],a.t._mod("object"==typeof t?t:r)):"function"==typeof t&&(2===a.f&&a.t?a.t._applyPT.m=t:(this._add(a.t,a.p,a.s,a.c,t),i&&(i._prev=a._prev),a._prev?a._prev._next=i:n._firstPT===a&&(n._firstPT=i),a._next=a._prev=null,n._propLookup[a.n]=s)),a=i;return!1}}),n=i.prototype;n._add=function(t,e,i,n,r){this._addTween(t,e,i,i+n,e,r),this._overwriteProps.push(e)},n=_gsScope._gsDefine.globals.TweenLite.version.split("."),Number(n[0])<=1&&Number(n[1])<19&&window.console&&console.log("ModifiersPlugin requires GSAP 1.19.0 or later.")}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.8.6
   * DATE: 2016-07-08
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * MorphSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=Math.PI/180,e=180/Math.PI,i=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[achlmqstvz]/gi,s=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,a=_gsScope._gsDefine.globals.TweenLite,o=function(t){window.console&&console.log(t)},l=function(e,i){var n,r,s,a,o,l,h=Math.ceil(Math.abs(i)/90),u=0,c=[];for(e*=t,i*=t,n=i/h,r=4/3*Math.sin(n/2)/(1+Math.cos(n/2)),l=0;h>l;l++)s=e+l*n,a=Math.cos(s),o=Math.sin(s),c[u++]=a-r*o,c[u++]=o+r*a,s+=n,a=Math.cos(s),o=Math.sin(s),c[u++]=a+r*o,c[u++]=o-r*a,c[u++]=a,c[u++]=o;return c},h=function(i,n,r,s,a,o,h,u,c){if(i!==u||n!==c){r=Math.abs(r),s=Math.abs(s);var d=a%360*t,f=Math.cos(d),p=Math.sin(d),g=(i-u)/2,m=(n-c)/2,_=f*g+p*m,v=-p*g+f*m,y=r*r,b=s*s,x=_*_,w=v*v,T=x/y+w/b;T>1&&(r=Math.sqrt(T)*r,s=Math.sqrt(T)*s,y=r*r,b=s*s);var C=o===h?-1:1,S=(y*b-y*w-b*x)/(y*w+b*x);0>S&&(S=0);var k=C*Math.sqrt(S),P=k*(r*v/s),M=k*-(s*_/r),A=(i+u)/2,D=(n+c)/2,O=A+(f*P-p*M),R=D+(p*P+f*M),L=(_-P)/r,I=(v-M)/s,E=(-_-P)/r,F=(-v-M)/s,N=Math.sqrt(L*L+I*I),B=L;C=0>I?-1:1;var V=C*Math.acos(B/N)*e;N=Math.sqrt((L*L+I*I)*(E*E+F*F)),B=L*E+I*F,C=0>L*F-I*E?-1:1;var W=C*Math.acos(B/N)*e;!h&&W>0?W-=360:h&&0>W&&(W+=360),W%=360,V%=360;var z,H,Y,U=l(V,W),j=f*r,X=p*r,G=p*-s,q=f*s,$=U.length-2;for(z=0;$>z;z+=2)H=U[z],Y=U[z+1],U[z]=H*j+Y*G+O,U[z+1]=H*X+Y*q+R;return U[U.length-2]=u,U[U.length-1]=c,U}},u=function(t){var e,n,r,a,l,u,c,d,f,p,g,m,_,v=(t+"").replace(s,function(t){var e=+t;return 1e-4>e&&e>-1e-4?0:e}).match(i)||[],y=[],b=0,x=0,w=v.length,T=2,C=0;if(!t||!isNaN(v[0])||isNaN(v[1]))return o("ERROR: malformed path data: "+t),y;for(e=0;w>e;e++)if(_=l,isNaN(v[e])?(l=v[e].toUpperCase(),u=l!==v[e]):e--,r=+v[e+1],a=+v[e+2],u&&(r+=b,a+=x),0===e&&(d=r,f=a),"M"===l)c&&c.length<8&&(y.length-=1,T=0),b=d=r,x=f=a,c=[r,a],C+=T,T=2,y.push(c),e+=2,l="L";else if("C"===l)c||(c=[0,0]),c[T++]=r,c[T++]=a,u||(b=x=0),c[T++]=b+1*v[e+3],c[T++]=x+1*v[e+4],c[T++]=b+=1*v[e+5],c[T++]=x+=1*v[e+6],e+=6;else if("S"===l)"C"===_||"S"===_?(p=b-c[T-4],g=x-c[T-3],c[T++]=b+p,c[T++]=x+g):(c[T++]=b,c[T++]=x),c[T++]=r,c[T++]=a,u||(b=x=0),c[T++]=b+=1*v[e+3],c[T++]=x+=1*v[e+4],e+=4;else if("Q"===l)p=r-b,g=a-x,c[T++]=b+2*p/3,c[T++]=x+2*g/3,u||(b=x=0),b+=1*v[e+3],x+=1*v[e+4],p=r-b,g=a-x,c[T++]=b+2*p/3,c[T++]=x+2*g/3,c[T++]=b,c[T++]=x,e+=4;else if("T"===l)p=b-c[T-4],g=x-c[T-3],c[T++]=b+p,c[T++]=x+g,p=b+1.5*p-r,g=x+1.5*g-a,c[T++]=r+2*p/3,c[T++]=a+2*g/3,c[T++]=b=r,c[T++]=x=a,e+=2;else if("H"===l)a=x,c[T++]=b+(r-b)/3,c[T++]=x+(a-x)/3,c[T++]=b+2*(r-b)/3,c[T++]=x+2*(a-x)/3,c[T++]=b=r,c[T++]=a,e+=1;else if("V"===l)a=r,r=b,u&&(a+=x-b),c[T++]=r,c[T++]=x+(a-x)/3,c[T++]=r,c[T++]=x+2*(a-x)/3,c[T++]=r,c[T++]=x=a,e+=1;else if("L"===l||"Z"===l)"Z"===l&&(r=d,a=f,c.closed=!0),("L"===l||Math.abs(b-r)>.5||Math.abs(x-a)>.5)&&(c[T++]=b+(r-b)/3,c[T++]=x+(a-x)/3,c[T++]=b+2*(r-b)/3,c[T++]=x+2*(a-x)/3,c[T++]=r,c[T++]=a,"L"===l&&(e+=2)),b=r,x=a;else if("A"===l){for(m=h(b,x,1*v[e+1],1*v[e+2],1*v[e+3],1*v[e+4],1*v[e+5],(u?b:0)+1*v[e+6],(u?x:0)+1*v[e+7]),n=0;n<m.length;n++)c[T++]=m[n];b=c[T-2],x=c[T-1],e+=7}else o("Error: malformed path data: "+t);return y.totalPoints=C+T,y},c=function(t,e){var i,n,r,s,a,o,l,h,u,c,d,f,p,g,m=0,_=.999999,v=t.length,y=e/((v-2)/6);for(p=2;v>p;p+=6)for(m+=y;m>_;)i=t[p-2],n=t[p-1],r=t[p],s=t[p+1],a=t[p+2],o=t[p+3],l=t[p+4],h=t[p+5],g=1/(Math.floor(m)+1),u=i+(r-i)*g,d=r+(a-r)*g,u+=(d-u)*g,d+=(a+(l-a)*g-d)*g,c=n+(s-n)*g,f=s+(o-s)*g,c+=(f-c)*g,f+=(o+(h-o)*g-f)*g,t.splice(p,4,i+(r-i)*g,n+(s-n)*g,u,c,u+(d-u)*g,c+(f-c)*g,d,f,a+(l-a)*g,o+(h-o)*g),p+=6,v+=6,m--;return t},d=function(t){var e,i,n,r,s="",a=t.length,o=100;for(i=0;a>i;i++){for(r=t[i],s+="M"+r[0]+","+r[1]+" C",e=r.length,n=2;e>n;n++)s+=(r[n++]*o|0)/o+","+(r[n++]*o|0)/o+" "+(r[n++]*o|0)/o+","+(r[n++]*o|0)/o+" "+(r[n++]*o|0)/o+","+(r[n]*o|0)/o+" ";r.closed&&(s+="z")}return s},f=function(t){for(var e=[],i=t.length-1,n=0;--i>-1;)e[n++]=t[i],e[n++]=t[i+1],i--;for(i=0;n>i;i++)t[i]=e[i];t.reversed=!t.reversed},p=function(t){var e,i=t.length,n=0,r=0;for(e=0;i>e;e++)n+=t[e++],r+=t[e];return[n/(i/2),r/(i/2)]},g=function(t){var e,i,n,r=t.length,s=t[0],a=s,o=t[1],l=o;for(n=6;r>n;n+=6)e=t[n],i=t[n+1],e>s?s=e:a>e&&(a=e),i>o?o=i:l>i&&(l=i);return t.centerX=(s+a)/2,t.centerY=(o+l)/2,t.size=(s-a)*(o-l)},m=function(t){for(var e,i,n,r,s,a=t.length,o=t[0][0],l=o,h=t[0][1],u=h;--a>-1;)for(s=t[a],e=s.length,r=6;e>r;r+=6)i=s[r],n=s[r+1],i>o?o=i:l>i&&(l=i),n>h?h=n:u>n&&(u=n);return t.centerX=(o+l)/2,t.centerY=(h+u)/2,t.size=(o-l)*(h-u)},_=function(t,e){return e.length-t.length},v=function(t,e){var i=t.size||g(t),n=e.size||g(e);return Math.abs(n-i)<(i+n)/20?e.centerX-t.centerX||e.centerY-t.centerY:n-i},y=function(t,e){var i,n,r=t.slice(0),s=t.length,a=s-2;for(e=0|e,i=0;s>i;i++)n=(i+e)%a,t[i++]=r[n],t[i]=r[n+1]},b=function(t,e,i,n,r){var s,a,o,l,h=t.length,u=0,c=h-2;for(i*=6,a=0;h>a;a+=6)s=(a+i)%c,l=t[s]-(e[a]-n),o=t[s+1]-(e[a+1]-r),u+=Math.sqrt(o*o+l*l);return u},x=function(t,e,i){var n,r,s,a=t.length,o=p(t),l=p(e),h=l[0]-o[0],u=l[1]-o[1],c=b(t,e,0,h,u),d=0;for(s=6;a>s;s+=6)r=b(t,e,s/6,h,u),c>r&&(c=r,d=s);if(i)for(n=t.slice(0),f(n),s=6;a>s;s+=6)r=b(n,e,s/6,h,u),c>r&&(c=r,d=-s);return d/6},w=function(t,e,i){for(var n,r,s,a,o,l,h=t.length,u=99999999999,c=0,d=0;--h>-1;)for(n=t[h],l=n.length,o=0;l>o;o+=6)r=n[o]-e,s=n[o+1]-i,a=Math.sqrt(r*r+s*s),u>a&&(u=a,c=n[o],d=n[o+1]);return[c,d]},T=function(t,e,i,n,r,s){var a,o,l,h,u,c=e.length,d=0,f=Math.min(t.size||g(t),e[i].size||g(e[i]))*n,p=999999999999,m=t.centerX+r,_=t.centerY+s;for(o=i;c>o&&(a=e[o].size||g(e[o]),!(f>a));o++)l=e[o].centerX-m,h=e[o].centerY-_,u=Math.sqrt(l*l+h*h),p>u&&(d=o,p=u);return u=e[d],e.splice(d,1),u},C=function(t,e,i,n){var r,s,a,l,h,u,d,p=e.length-t.length,b=p>0?e:t,C=p>0?t:e,S=0,k="complexity"===n?_:v,P="position"===n?0:"number"==typeof n?n:.8,M=C.length,A="object"==typeof i&&i.push?i.slice(0):[i],D="reverse"===A[0]||A[0]<0,O="log"===i;if(C[0]){if(b.length>1&&(t.sort(k),e.sort(k),u=b.size||m(b),u=C.size||m(C),u=b.centerX-C.centerX,d=b.centerY-C.centerY,k===v))for(M=0;M<C.length;M++)b.splice(M,0,T(C[M],b,M,P,u,d));if(p)for(0>p&&(p=-p),b[0].length>C[0].length&&c(C[0],(b[0].length-C[0].length)/6|0),M=C.length;p>S;)l=b[M].size||g(b[M]),a=w(C,b[M].centerX,b[M].centerY),l=a[0],h=a[1],C[M++]=[l,h,l,h,l,h,l,h],C.totalPoints+=8,S++;for(M=0;M<t.length;M++)r=e[M],s=t[M],p=r.length-s.length,0>p?c(r,-p/6|0):p>0&&c(s,p/6|0),D&&!s.reversed&&f(s),i=A[M]||0===A[M]?A[M]:"auto",i&&(s.closed||Math.abs(s[0]-s[s.length-2])<.5&&Math.abs(s[1]-s[s.length-1])<.5?"auto"===i||"log"===i?(A[M]=i=x(s,r,0===M),0>i&&(D=!0,f(s),i=-i),y(s,6*i)):"reverse"!==i&&(M&&0>i&&f(s),y(s,6*(0>i?-i:i))):!D&&("auto"===i&&Math.abs(r[0]-s[0])+Math.abs(r[1]-s[1])+Math.abs(r[r.length-2]-s[s.length-2])+Math.abs(r[r.length-1]-s[s.length-1])>Math.abs(r[0]-s[s.length-2])+Math.abs(r[1]-s[s.length-1])+Math.abs(r[r.length-2]-s[0])+Math.abs(r[r.length-1]-s[1])||i%2)?(f(s),A[M]=-1,D=!0):"auto"===i?A[M]=0:"reverse"===i&&(A[M]=-1),s.closed!==r.closed&&(s.closed=r.closed=!1));return O&&o("shapeIndex:["+A.join(",")+"]"),A}},S=function(t,e,i,n){var r=u(t[0]),s=u(t[1]);C(r,s,e||0===e?e:"auto",i)&&(t[0]=d(r),t[1]=d(s),("log"===n||n===!0)&&o('precompile:["'+t[0]+'","'+t[1]+'"]'))},k=function(t,e,i){return e||i||t||0===t?function(n){S(n,t,e,i)}:S},P=function(t,e){if(!e)return t;var i,r,s,a=t.match(n)||[],o=a.length,l="";for("reverse"===e?(r=o-1,i=-2):(r=(2*(parseInt(e,10)||0)+1+100*o)%o,i=2),s=0;o>s;s+=2)l+=a[r-1]+","+a[r]+" ",r=(r+i)%o;return l},M=function(t,e){var i,n,r,s,a,o,l,h=0,u=parseFloat(t[0]),c=parseFloat(t[1]),d=u+","+c+" ",f=.999999;for(r=t.length,i=.5*e/(.5*r-1),n=0;r-2>n;n+=2){if(h+=i,o=parseFloat(t[n+2]),l=parseFloat(t[n+3]),h>f)for(a=1/(Math.floor(h)+1),s=1;h>f;)d+=(u+(o-u)*a*s).toFixed(2)+","+(c+(l-c)*a*s).toFixed(2)+" ",h--,s++;d+=o+","+l+" ",u=o,c=l}return d},A=function(t){var e=t[0].match(n)||[],i=t[1].match(n)||[],r=i.length-e.length;r>0?t[0]=M(e,r):t[1]=M(i,-r)},D=function(t){return isNaN(t)?A:function(e){A(e),e[1]=P(e[1],parseInt(t,10))}},O=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path"),n=Array.prototype.slice.call(t.attributes),r=n.length;for(e=","+e+",";--r>-1;)-1===e.indexOf(","+n[r].nodeName+",")&&i.setAttributeNS(null,n[r].nodeName,n[r].nodeValue);return i},R=function(t,e){var i,r,s,a,o,l,h,u,c,d,f,p,g,m,_,v,y,b,x,w,T,C=t.tagName.toLowerCase(),S=.552284749831;return"path"!==C&&t.getBBox?(l=O(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),"rect"===C?(a=+t.getAttribute("rx")||0,o=+t.getAttribute("ry")||0,r=+t.getAttribute("x")||0,s=+t.getAttribute("y")||0,d=(+t.getAttribute("width")||0)-2*a,f=(+t.getAttribute("height")||0)-2*o,a||o?(p=r+a*(1-S),g=r+a,m=g+d,_=m+a*S,v=m+a,y=s+o*(1-S),b=s+o,x=b+f,w=x+o*S,T=x+o,i="M"+v+","+b+" V"+x+" C"+[v,w,_,T,m,T,m-(m-g)/3,T,g+(m-g)/3,T,g,T,p,T,r,w,r,x,r,x-(x-b)/3,r,b+(x-b)/3,r,b,r,y,p,s,g,s,g+(m-g)/3,s,m-(m-g)/3,s,m,s,_,s,v,y,v,b].join(",")+"z"):i="M"+(r+d)+","+s+" v"+f+" h"+-d+" v"+-f+" h"+d+"z"):"circle"===C||"ellipse"===C?("circle"===C?(a=o=+t.getAttribute("r")||0,u=a*S):(a=+t.getAttribute("rx")||0,o=+t.getAttribute("ry")||0,u=o*S),r=+t.getAttribute("cx")||0,s=+t.getAttribute("cy")||0,h=a*S,i="M"+(r+a)+","+s+" C"+[r+a,s+u,r+h,s+o,r,s+o,r-h,s+o,r-a,s+u,r-a,s,r-a,s-u,r-h,s-o,r,s-o,r+h,s-o,r+a,s-u,r+a,s].join(",")+"z"):"line"===C?i="M"+t.getAttribute("x1")+","+t.getAttribute("y1")+" L"+t.getAttribute("x2")+","+t.getAttribute("y2"):("polyline"===C||"polygon"===C)&&(c=(t.getAttribute("points")+"").match(n)||[],r=c.shift(),s=c.shift(),i="M"+r+","+s+" L"+c.join(","),"polygon"===C&&(i+=","+r+","+s+"z")),l.setAttribute("d",i),e&&t.parentNode&&(t.parentNode.insertBefore(l,t),t.parentNode.removeChild(t)),l):t},L=function(t,e,i){var r,s,l="string"==typeof t;return(!l||(t.match(n)||[]).length<3)&&(r=l?a.selector(t):t&&t[0]?t:[t],r&&r[0]?(r=r[0],s=r.nodeName.toUpperCase(),e&&"PATH"!==s&&(r=R(r,!1),s="PATH"),t=r.getAttribute("PATH"===s?"d":"points")||"",r===i&&(t=r.getAttributeNS(null,"data-original")||t)):(o("WARNING: invalid morph to: "+t),t=!1)),t},I="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",E=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.8.6",init:function(t,e,i,n){var s,a,l,h,u;return"function"==typeof t.setAttribute&&("function"==typeof e&&(e=e(n,t)),s=t.nodeName.toUpperCase(),u="POLYLINE"===s||"POLYGON"===s,"PATH"===s||u?(a="PATH"===s?"d":"points",("string"==typeof e||e.getBBox||e[0])&&(e={shape:e}),h=L(e.shape||e.d||e.points||"","d"===a,t),u&&r.test(h)?(o("WARNING: a <"+s+"> cannot accept path data. "+I),!1):(h&&(this._target=t,t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",t.getAttribute(a)),l=this._addTween(t,"setAttribute",t.getAttribute(a)+"",h+"","morphSVG",!1,a,"object"==typeof e.precompile?function(t){t[0]=e.precompile[0],t[1]=e.precompile[1]}:"d"===a?k(e.shapeIndex,e.map||E.defaultMap,e.precompile):D(e.shapeIndex)),l&&(this._overwriteProps.push("morphSVG"),l.end=h,l.endProp=a)),!0)):(o("WARNING: cannot morph a <"+s+"> SVG element. "+I),!1))},set:function(t){var e;if(this._super.setRatio.call(this,t),1===t)for(e=this._firstPT;e;)e.end&&this._target.setAttribute(e.endProp,e.end),e=e._next}});E.pathFilter=S,E.pointsFilter=A,E.subdivideRawBezier=c,E.defaultMap="size",E.pathDataToRawBezier=function(t){return u(L(t,!0))},E.equalizeSegmentQuantity=C,E.convertToPath=function(t,e){"string"==typeof t&&(t=a.selector(t));for(var i=t&&0!==t.length?t.length&&t[0]&&t[0].nodeType?Array.prototype.slice.call(t,0):[t]:[],n=i.length;--n>-1;)i[n]=R(i[n],e!==!1);return i},E.pathDataToBezier=function(t,e){var i,n,r,s,o,l,h,c,d=u(L(t,!0))[0]||[],f=0;if(e=e||{},c=e.align||e.relative,s=e.matrix||[1,0,0,1,0,0],o=e.offsetX||0,l=e.offsetY||0,"relative"===c||c===!0?(o-=d[0]*s[0]+d[1]*s[2],l-=d[0]*s[1]+d[1]*s[3],f="+="):(o+=s[4],l+=s[5],c&&(c="string"==typeof c?a.selector(c):c&&c[0]?c:[c],c&&c[0]&&(h=c[0].getBBox()||{x:0,y:0},o-=h.x,l-=h.y))),i=[],r=d.length,s)for(n=0;r>n;n+=2)i.push({x:f+(d[n]*s[0]+d[n+1]*s[2]+o),y:f+(d[n]*s[1]+d[n+1]*s[3]+l)});else for(n=0;r>n;n+=2)i.push({x:f+(d[n]+o),y:f+(d[n+1]+l)});return i}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("MorphSVGPlugin");/*!
   * VERSION: 0.2.0
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * Physics2DPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=Math.PI/180,e=function(t,e,i,n,r){this.p=e,this.f="function"==typeof t[e],this.start=this.value=this.f?t[e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3)]():parseFloat(t[e]),this.velocity=i||0,this.v=this.velocity/r,n||0===n?(this.acceleration=n,this.a=this.acceleration/(r*r)):this.acceleration=this.a=0},i=Math.random(),n=_gsScope._gsDefine.globals,r=n.com.greensock.core.Animation._rootFramesTimeline,s=_gsScope._gsDefine.plugin({propName:"physics2D",version:"0.2.0",API:2,init:function(i,n,s,a){"function"==typeof n&&(n=n(a,i)),this._target=i,this._tween=s,this._runBackwards=s.vars.runBackwards===!0,this._step=0;for(var o,l=s._timeline,h=Number(n.angle)||0,u=Number(n.velocity)||0,c=Number(n.acceleration)||0,d=n.xProp||"x",f=n.yProp||"y",p=n.accelerationAngle||0===n.accelerationAngle?Number(n.accelerationAngle):h;l._timeline;)l=l._timeline;return this._stepsPerTimeUnit=o=l===r?1:30,n.gravity&&(c=Number(n.gravity),p=90),h*=t,p*=t,this._friction=1-Number(n.friction||0),this._overwriteProps.push(d),this._overwriteProps.push(f),this._x=new e(i,d,Math.cos(h)*u,Math.cos(p)*c,o),this._y=new e(i,f,Math.sin(h)*u,Math.sin(p)*c,o),this._skipX=this._skipY=!1,!0},set:function(t){var e,i,n,r,s,a,o=this._tween._time,l=this._x,h=this._y;if(this._runBackwards===!0&&(o=this._tween._duration-o),1===this._friction)n=o*o*.5,e=l.start+(l.velocity*o+l.acceleration*n),i=h.start+(h.velocity*o+h.acceleration*n);else{if(o*=this._stepsPerTimeUnit,r=a=(0|o)-this._step,s=o%1,a>=0)for(;--a>-1;)l.v+=l.a,h.v+=h.a,l.v*=this._friction,h.v*=this._friction,l.value+=l.v,h.value+=h.v;else for(a=-a;--a>-1;)l.value-=l.v,h.value-=h.v,l.v/=this._friction,h.v/=this._friction,l.v-=l.a,h.v-=h.a;e=l.value+l.v*s,i=h.value+h.v*s,this._step+=r}this._skipX||(l.m&&(e=l.m(e,this._target)),l.f?this._target[l.p](e):this._target[l.p]=e),this._skipY||(h.m&&(i=h.m(i,this._target)),h.f?this._target[h.p](i):this._target[h.p]=i)}}),a=s.prototype;a._kill=function(t){return null!=t[this._x.p]&&(this._skipX=!0),null!=t[this._y.p]&&(this._skipY=!0),this._super._kill.call(this,t)},a._mod=function(t){var e=t[this._x.p]||t.physics2D;e&&"function"==typeof e&&(this._x.m=e),e=t[this._y.p]||t.physics2D,e&&"function"==typeof e&&(this._y.m=e)},s._autoCSS=!0,s._cssRegister=function(){var t=n.CSSPlugin;if(t){var e=t._internals,r=e._parseToProxy,a=e._setPluginRatio,o=e.CSSPropTween;e._registerComplexSpecialProp("physics2D",{parser:function(t,e,n,l,h,u){u=new s;var c,d=e.xProp||"x",f=e.yProp||"y",p={};return p[d]=p[f]=i++,c=r(t,p,l,h,u),h=new o(t,"physics2D",0,0,c.pt,2),h.data=c,h.plugin=u,h.setRatio=a,u._onInitTween(c.proxy,e,l._tween),h}})}}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.2.0
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * PhysicsPropsPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=function(t,e,i,n,r,s){this.p=e,this.f="function"==typeof t[e],this.start=this.value=this.f?t[e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3)]():parseFloat(t[e]),this.velocity=i||0,this.v=this.velocity/s,n||0==n?(this.acceleration=n,this.a=this.acceleration/(s*s)):this.acceleration=this.a=0,this.friction=1-(r||0)},e=Math.random(),i=_gsScope._gsDefine.globals,n=i.com.greensock.core.Animation._rootFramesTimeline,r=_gsScope._gsDefine.plugin({propName:"physicsProps",version:"0.2.0",API:2,init:function(e,i,r,s){"function"==typeof i&&(i=i(e)),this._target=e,this._tween=r,this._runBackwards=r.vars.runBackwards===!0,this._step=0;for(var a,o,l=r._timeline,h=0;l._timeline;)l=l._timeline;this._stepsPerTimeUnit=l===n?1:30,this._props=[];for(a in i)o=i[a],"function"==typeof o&&(o=o(s,e)),(o.velocity||o.acceleration)&&(this._props[h++]=new t(e,a,o.velocity,o.acceleration,o.friction,this._stepsPerTimeUnit),this._overwriteProps[h]=a,o.friction&&(this._hasFriction=!0));return!0},set:function(t){var e,i,n,r,s,a,o=this._props.length,l=this._tween._time,h=this._target;if(this._runBackwards&&(l=this._tween._duration-l),this._hasFriction){if(l*=this._stepsPerTimeUnit,n=(0|l)-this._step,r=l%1,n>=0)for(;--o>-1;){for(e=this._props[o],s=n;--s>-1;)e.v+=e.a,e.v*=e.friction,e.value+=e.v;i=e.value+e.v*r,e.m&&(i=e.m(i,h)),e.f?h[e.p](i):h[e.p]=i}else for(;--o>-1;){for(e=this._props[o],s=-n;--s>-1;)e.value-=e.v,e.v/=e.friction,e.v-=e.a;i=e.value+e.v*r,e.m&&(i=e.m(i,h)),e.f?h[e.p](i):h[e.p]=i}this._step+=n}else for(a=l*l*.5;--o>-1;)e=this._props[o],i=e.start+(e.velocity*l+e.acceleration*a),e.m&&(i=e.m(i,h)),e.f?h[e.p](i):h[e.p]=i}}),s=r.prototype;s._kill=function(t){for(var e=this._props.length;--e>-1;)this._props[e].p in t&&this._props.splice(e,1);return this._super._kill.call(this,t)},s._mod=function(t){for(var e,i=this._props.length;--i>-1;)e=t[this._props[i].p]||t.physicsProps,"function"==typeof e&&(this._props[i].m=e)},r._autoCSS=!0,r._cssRegister=function(){var t=i.CSSPlugin;if(t){var n=t._internals,s=n._parseToProxy,a=n._setPluginRatio,o=n.CSSPropTween;n._registerComplexSpecialProp("physicsProps",{parser:function(t,i,n,l,h,u){u=new r;var c,d,f={};i.scale&&(i.scaleX=i.scaleY=i.scale,delete i.scale);for(c in i)f[c]=e++;return d=s(t,f,l,h,u),h=new o(t,"physicsProps",0,0,d.pt,2),h.data=d,h.plugin=u,h.setRatio=a,u._onInitTween(d.proxy,i,l._tween),h}})}}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.2.2
   * DATE: 2014-07-17
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=/[^\d\-\.]/g,e=Math.PI/180,i=/(\d|\.)+/g,n={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},r=function(t){return"number"==typeof t?[t>>16,t>>8&255,255&t]:""===t||null==t||"none"===t||"string"!=typeof t?n.transparent:n[t]?n[t]:"#"===t.charAt(0)?(4===t.length&&(t="#"+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)+t.charAt(3)+t.charAt(3)),t=parseInt(t.substr(1),16),[t>>16,t>>8&255,255&t]):t.match(i)||n.transparent},s={scaleX:1,scaleY:1,tx:1,ty:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},a=function(t,e){var i=t.matrix,n=1e-6,r=i.a,s=i.b,a=i.c,o=i.d,l=e?t._gsTransform||{skewY:0}:{skewY:0},h=l.scaleX<0;return l.tx=i.e-(l.ox||0),l.ty=i.f-(l.oy||0),l.scaleX=Math.sqrt(r*r+s*s),l.scaleY=Math.sqrt(o*o+a*a),l.rotation=r||s?Math.atan2(s,r):l.rotation||0,l.skewX=a||o?Math.atan2(a,o)+l.rotation:l.skewX||0,Math.abs(l.skewX)>Math.PI/2&&(h?(l.scaleX*=-1,l.skewX+=l.rotation<=0?Math.PI:-Math.PI,l.rotation+=l.rotation<=0?Math.PI:-Math.PI):(l.scaleY*=-1,l.skewX+=l.skewX<=0?Math.PI:-Math.PI)),l.rotation<n&&l.rotation>-n&&(r||s)&&(l.rotation=0),l.skewX<n&&l.skewX>-n&&(s||a)&&(l.skewX=0),e&&(t._gsTransform=l),l},o=function(t,e){return null==t?e:"string"==typeof t&&1===t.indexOf("=")?parseInt(t.charAt(0)+"1",10)*Number(t.substr(2))+e:Number(t)},l=function(i,n){var r=-1===i.indexOf("rad")?e:1,s=1===i.indexOf("=");return i=Number(i.replace(t,""))*r,s?i+n:i},h=_gsScope._gsDefine.plugin({propName:"raphael",version:"0.2.2",API:2,init:function(e,i,n){if(!e.attr)return!1;this._target=e,this._tween=n,this._props=e._gsProps=e._gsProps||{};var a,o,l,h,u,c,d;for(a in i)l=i[a],"transform"!==a?s[a]||"pivot"===a?this._parseTransform(e,i):(o=e.attr(a),this._firstPT=h={_next:this._firstPT,t:this._props,p:a,b:o,f:!1,n:"raphael_"+a,r:!1,type:0},"fill"===a||"stroke"===a?(u=r(o),c=r(l),h.e=l,h.s=Number(u[0]),h.c=Number(c[0])-h.s,h.gs=Number(u[1]),h.gc=Number(c[1])-h.gs,h.bs=Number(u[2]),h.bc=Number(c[2])-h.bs,u.length>3||c.length>3?(h.as=u.length<4?1:Number(u[3]),h.ac=(c.length<4?1:Number(c[3]))-h.as,h.type=2):h.type=1):(o="string"==typeof o?parseFloat(o.replace(t,"")):Number(o),"string"==typeof l?(d="="===l.charAt(1),l=parseFloat(l.replace(t,""))):d=!1,h.e=l||0===l?d?l+o:l:i[a],!o&&0!==o||!l&&0!==l||!(h.c=d?l:l-o)?(h.type=-1,h.i=i[a],h.s=h.c=0):h.s=o),this._overwriteProps.push("raphael_"+a),h._next&&(h._next._prev=h)):this._parseTransform(e,l);return!0},set:function(t){for(var e,i=this._firstPT;i;)e=i.c*t+i.s,i.r&&(e=Math.round(e)),i.type?1===i.type?i.t[i.p]="rgb("+(e>>0)+", "+(i.gs+t*i.gc>>0)+", "+(i.bs+t*i.bc>>0)+")":2===i.type?i.t[i.p]="rgba("+(e>>0)+", "+(i.gs+t*i.gc>>0)+", "+(i.bs+t*i.bc>>0)+", "+(i.as+t*i.ac)+")":-1===i.type&&(i.t[i.p]=i.i):i.t[i.p]=e,i=i._next;if(this._target.attr(this._props),this._transform){i=this._transform;var n=i.rotation,r=n-i.skewX,s=Math.cos(n)*i.scaleX,a=Math.sin(n)*i.scaleX,o=Math.sin(r)*-i.scaleY,l=Math.cos(r)*i.scaleY,h=1e-6,u=this._pxl,c=this._pyl;h>a&&a>-h&&(a=0),h>o&&o>-h&&(o=0),i.ox=this._pxg-(u*s+c*o),i.oy=this._pyg-(u*a+c*l),this._target.transform("m"+s+","+a+","+o+","+l+","+(i.tx+i.ox)+","+(i.ty+i.oy))}}}),u=h.prototype;u._parseTransform=function(t,i){if(!this._transform){var n,r,h,u,c,d,f,p,g,m=this._transform=a(t,!0),_=1e-6;if("object"==typeof i){if(n={scaleX:o(null!=i.scaleX?i.scaleX:i.scale,m.scaleX),scaleY:o(null!=i.scaleY?i.scaleY:i.scale,m.scaleY),tx:o(i.tx,m.tx),ty:o(i.ty,m.ty)},null!=i.shortRotation){n.rotation="number"==typeof i.shortRotation?i.shortRotation*e:l(i.shortRotation,m.rotation);var v=(n.rotation-m.rotation)%(2*Math.PI);v!==v%Math.PI&&(v+=Math.PI*(0>v?2:-2)),n.rotation=m.rotation+v}else n.rotation=null==i.rotation?m.rotation:"number"==typeof i.rotation?i.rotation*e:l(i.rotation,m.rotation);n.skewX=null==i.skewX?m.skewX:"number"==typeof i.skewX?i.skewX*e:l(i.skewX,m.skewX),n.skewY=null==i.skewY?m.skewY:"number"==typeof i.skewY?i.skewY*e:l(i.skewY,m.skewY),(r=n.skewY-m.skewY)&&(n.skewX+=r,n.rotation+=r),n.skewY<_&&n.skewY>-_&&(n.skewY=0),n.skewX<_&&n.skewX>-_&&(n.skewX=0),n.rotation<_&&n.rotation>-_&&(n.rotation=0),g=i.localPivot||i.globalPivot,"string"==typeof g?(c=g.split(","),d=Number(c[0]),f=Number(c[1])):"object"==typeof g?(d=Number(g.x),f=Number(g.y)):i.localPivot?(c=t.getBBox(!0),d=c.width/2,f=c.height/2):(c=t.getBBox(),d=c.x+c.width/2,f=c.y+c.height/2),i.localPivot?(p=t.matrix,d+=t.attr("x"),f+=t.attr("y"),this._pxl=d,this._pyl=f,this._pxg=d*p.a+f*p.c+p.e-m.tx,this._pyg=d*p.b+f*p.d+p.f-m.ty):(p=t.matrix.invert(),this._pxl=d*p.a+f*p.c+p.e,this._pyl=d*p.b+f*p.d+p.f,this._pxg=d-m.tx,this._pyg=f-m.ty)}else{if("string"!=typeof i)return;c=this._target.transform(),t.transform(i),n=a(t,!1),t.transform(c)}for(h in s)m[h]!==n[h]&&"shortRotation"!==h&&"scale"!==h&&(this._firstPT=u={_next:this._firstPT,t:m,p:h,s:m[h],c:n[h]-m[h],n:h,f:!1,r:!1,b:m[h],e:n[h],type:0},u._next&&(u._next._prev=u),this._overwriteProps.push("raphael_"+h))}}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 1.6.0
   * DATE: 2015-07-16
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,n,r=this._tween,s=r.vars.roundProps.join?r.vars.roundProps:r.vars.roundProps.split(","),a=s.length,o={},l=r._propLookup.roundProps;--a>-1;)o[s[a]]=Math.round;for(a=s.length;--a>-1;)for(t=s[a],i=r._firstPT;i;)n=i._next,i.pg?i.t._mod(o):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),n&&(n._prev=i._prev),i._prev?i._prev._next=n:r._firstPT===i&&(r._firstPT=n),i._next=i._prev=null,r._propLookup[t]=l)),i=n;return!1},i._add=function(t,e,i,n){this._addTween(t,e,i,i+n,e,Math.round),this._overwriteProps.push(e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.3.0
   * DATE: 2016-07-14
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * ScrambleTextPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=function(e){var i=e.nodeType,n="";if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=t(e)}else if(3===i||4===i)return e.nodeValue;return n},e=function(t,e){for(var i=e.length,n="";--t>-1;)n+=e[Math.random()*i|0];return n},i=function(t){this.chars=t.split(""),this.sets=[],this.length=50;var i;for(i=0;20>i;i++)this.sets[i]=e(80,this.chars);this.grow=function(t){for(i=0;20>i;i++)this.sets[i]+=e(t-this.length,this.chars);this.length=t}},n="ABCDEFGHIJKLMNOPQRSTUVWXYZ",r=n.toLowerCase(),s={upperCase:new i(n),lowerCase:new i(r),upperAndLowerCase:new i(n+r)},a=_gsScope._gsDefine.plugin({propName:"scrambleText",version:"0.3.0",API:2,overwriteProps:["scrambleText","text"],init:function(e,n,r,a){if(this._prop="innerHTML"in e?"innerHTML":"textContent"in e?"textContent":0,!this._prop)return!1;"function"==typeof n&&(n=n(a,e)),this._target=e,"object"!=typeof n&&(n={text:n});var o,l,h,u;return this._delimiter=o=n.delimiter||"",this._original=t(e).replace(/\s+/g," ").split("&nbsp;").join("").split(o),this._text=(n.text||n.value||"").replace(/\s+/g," ").split(o),this._hasClass=!1,"string"==typeof n.newClass&&(this._newClass=n.newClass,this._hasClass=!0),"string"==typeof n.oldClass&&(this._oldClass=n.oldClass,this._hasClass=!0),l=this._text.length-this._original.length,this._length=this._original.join(o).length,this._lengthDif=this._text.join(o).length-this._length,this._fillChar=n.fillChar||n.chars&&-1!==n.chars.indexOf(" ")?"&nbsp;":"",this._charSet=u=s[n.chars||"upperCase"]||new i(n.chars),this._speed=.016/(n.speed||1),this._prevScrambleTime=0,this._setIndex=20*Math.random()|0,h=this._length+Math.max(this._lengthDif,0),h>u.length&&u.grow(h),this._chars=u.sets[this._setIndex],this._revealDelay=n.revealDelay||0,this._tweenLength=n.tweenLength!==!1,this._tween=r,!0},set:function(t){var e,i,n,r,s,a,o=this._text.length,l=this._delimiter,h=this._tween._time,u=h-this._prevScrambleTime;this._revealDelay&&(this._tween.vars.runBackwards&&(h=this._tween._duration-h),t=0===h?0:h<this._revealDelay?1e-6:h===this._tween._duration?1:this._tween._ease.getRatio((h-this._revealDelay)/(this._tween._duration-this._revealDelay))),0>t?t=0:t>1&&(t=1),e=t*o+.5|0,i=this._text.slice(0,e).join(l),n=this._original.slice(e).join(l),t&&((u>this._speed||u<-this._speed)&&(this._setIndex=(this._setIndex+(19*Math.random()|0))%20,this._chars=this._charSet.sets[this._setIndex],this._prevScrambleTime+=u),n=this._chars.substr(i.length,this._length+(this._tweenLength?1-(t=1-t)*t*t*t:1)*this._lengthDif-i.length+.5|0)),this._hasClass?(r=this._newClass&&0!==e,s=this._oldClass&&e!==o,a=(r?"<span class='"+this._newClass+"'>":"")+i+(r?"</span>":"")+(s?"<span class='"+this._oldClass+"'>":"")+l+n+(s?"</span>":"")):a=i+l+n,this._target[this._prop]="&nbsp;"===this._fillChar&&-1!==a.indexOf("  ")?a.split("  ").join("&nbsp;&nbsp;"):a}}),o=a.prototype;o._newClass=o._oldClass="";for(o in s)s[o.toLowerCase()]=s[o],s[o.toUpperCase()]=s[o]}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 1.8.0
   * DATE: 2016-07-09
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   **/
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=document.documentElement,e=window,i=function(i,n){var r="x"===n?"Width":"Height",s="scroll"+r,a="client"+r,o=document.body;return i===e||i===t||i===o?Math.max(t[s],o[s])-(e["inner"+r]||t[a]||o[a]):i[s]-i["offset"+r]},n=function(t){return"string"==typeof t&&(t=TweenLite.selector(t)),t.length&&t!==e&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]),t===e||t.nodeType&&t.style?t:null},r=function(i,n){var r="scroll"+("x"===n?"Left":"Top");return i===e&&(null!=i.pageXOffset?r="page"+n.toUpperCase()+"Offset":i=null!=t[r]?t:document.body),function(){return i[r]}},s=function(i,s){var a=n(i).getBoundingClientRect(),o=!s||s===e||s===document.body,l=(o?t:s).getBoundingClientRect(),h={x:a.left-l.left,y:a.top-l.top};return!o&&s&&(h.x+=r(s,"x")(),h.y+=r(s,"y")()),h},a=function(t,e,n){var r=typeof t;return"number"===r||"string"===r&&"="===t.charAt(1)?t:"max"===t?i(e,n):Math.min(i(e,n),s(t,e)[n])},o=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,version:"1.8.0",init:function(t,i,n){return this._wdw=t===e,this._target=t,this._tween=n,"object"!=typeof i?(i={y:i},"string"==typeof i.y&&"max"!==i.y&&"="!==i.y.charAt(1)&&(i.x=i.y)):i.nodeType&&(i={y:i,x:i}),this.vars=i,this._autoKill=i.autoKill!==!1,this.getX=r(t,"x"),this.getY=r(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=i.x?(this._addTween(this,"x",this.x,a(i.x,t,"x")-(i.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=i.y?(this._addTween(this,"y",this.y,a(i.y,t,"y")-(i.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(t){this._super.setRatio.call(this,t);var n=this._wdw||!this.skipX?this.getX():this.xPrev,r=this._wdw||!this.skipY?this.getY():this.yPrev,s=r-this.yPrev,a=n-this.xPrev,l=o.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(a>l||-l>a)&&n<i(this._target,"x")&&(this.skipX=!0),!this.skipY&&(s>l||-l>s)&&r<i(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?e.scrollTo(this.skipX?n:this.x,this.skipY?r:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),l=o.prototype;o.max=i,o.getOffset=s,o.autoKillThreshold=7,l._kill=function(t){return t.scrollTo_x&&(this.skipX=!0),t.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("ScrollToPlugin");/*!
   * VERSION: 0.5.2
   * DATE: 2016-06-22
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t=function(e){var i=e.nodeType,n="";if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=t(e)}else if(3===i||4===i)return e.nodeValue;return n},e=_gsScope._gsDefine.plugin({propName:"text",API:2,version:"0.5.2",init:function(e,i,n,r){var s,a=e.nodeName.toUpperCase();if("function"==typeof i&&(i=i(r,e)),this._svg=e.getBBox&&("TEXT"===a||"TSPAN"===a),!("innerHTML"in e||this._svg))return!1;if(this._target=e,"object"!=typeof i&&(i={value:i}),void 0===i.value)return this._text=this._original=[""],!0;for(this._delimiter=i.delimiter||"",this._original=t(e).replace(/\s+/g," ").split(this._delimiter),this._text=i.value.replace(/\s+/g," ").split(this._delimiter),this._runBackwards=n.vars.runBackwards===!0,this._runBackwards&&(a=this._original,this._original=this._text,this._text=a),"string"==typeof i.newClass&&(this._newClass=i.newClass,this._hasClass=!0),"string"==typeof i.oldClass&&(this._oldClass=i.oldClass,this._hasClass=!0),a=this._original.length-this._text.length,s=0>a?this._original:this._text,this._fillChar=i.fillChar||(i.padSpace?"&nbsp;":""),0>a&&(a=-a);--a>-1;)s.push(this._fillChar);return!0},set:function(t){t>1?t=1:0>t&&(t=0),this._runBackwards&&(t=1-t);var e,i,n,r=this._text.length,s=t*r+.5|0;this._hasClass?(e=this._newClass&&0!==s,i=this._oldClass&&s!==r,n=(e?"<span class='"+this._newClass+"'>":"")+this._text.slice(0,s).join(this._delimiter)+(e?"</span>":"")+(i?"<span class='"+this._oldClass+"'>":"")+this._delimiter+this._original.slice(s).join(this._delimiter)+(i?"</span>":"")):n=this._text.slice(0,s).join(this._delimiter)+this._delimiter+this._original.slice(s).join(this._delimiter),this._svg?this._target.textContent=n:this._target.innerHTML="&nbsp;"===this._fillChar&&-1!==n.indexOf("  ")?n.split("  ").join("&nbsp;&nbsp;"):n}}),i=e.prototype;i._newClass=i._oldClass=i._delimiter=""}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
   * VERSION: 0.10.0
   * DATE: 2016-07-12
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * ThrowPropsPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.ThrowPropsPlugin",["plugins.TweenPlugin","TweenLite","easing.Ease","utils.VelocityTracker"],function(t,e,i,n){var r,s,a,o,l=function(e,i){t.call(this,"throwProps"),this._overwriteProps.length=0},h=999999999999999,u=1e-10,c=_gsScope._gsDefine.globals,d=!1,f={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},p=function(t,e,i,n){for(var r,s,a=e.length,o=0,l=h;--a>-1;)r=e[a],s=r-t,0>s&&(s=-s),l>s&&r>=n&&i>=r&&(o=a,l=s);return e[o]},g=function(t,e,i,n){if("auto"===t.end)return t;i=isNaN(i)?h:i,n=isNaN(n)?-h:n;var r="function"==typeof t.end?t.end(e):t.end instanceof Array?p(e,t.end,i,n):Number(t.end);return r>i?r=i:n>r&&(r=n),{max:r,min:r,unitFactor:t.unitFactor}},m=function(t,e,i){for(var n in e)void 0===t[n]&&n!==i&&(t[n]=e[n]);return t},_=l.calculateChange=function(t,n,r,s){null==s&&(s=.05);var a=n instanceof i?n:n?new i(n):e.defaultEase;return r*s*t/a.getRatio(s)},v=l.calculateDuration=function(t,n,r,s,a){a=a||.05;var o=s instanceof i?s:s?new i(s):e.defaultEase;return Math.abs((n-t)*o.getRatio(a)/r/a)},y=l.calculateTweenDuration=function(t,r,s,a,o,h){if("string"==typeof t&&(t=e.selector(t)),!t)return 0;null==s&&(s=10),null==a&&(a=.2),null==o&&(o=1),t.length&&(t=t[0]||t);var c,f,p,y,b,x,w,T,C,S,k=0,P=9999999999,M=r.throwProps||r,A=r.ease instanceof i?r.ease:r.ease?new i(r.ease):e.defaultEase,D=isNaN(M.checkpoint)?.05:Number(M.checkpoint),O=isNaN(M.resistance)?l.defaultResistance:Number(M.resistance);for(c in M)"resistance"!==c&&"checkpoint"!==c&&"preventOvershoot"!==c&&(f=M[c],"object"!=typeof f&&(C=C||n.getByTarget(t),C&&C.isTrackingProp(c)?f="number"==typeof f?{velocity:f}:{velocity:C.getVelocity(c)}:(y=Number(f)||0,p=y*O>0?y/O:y/-O)),"object"==typeof f&&(void 0!==f.velocity&&"number"==typeof f.velocity?y=Number(f.velocity)||0:(C=C||n.getByTarget(t),y=C&&C.isTrackingProp(c)?C.getVelocity(c):0),b=isNaN(f.resistance)?O:Number(f.resistance),p=y*b>0?y/b:y/-b,x="function"==typeof t[c]?t[c.indexOf("set")||"function"!=typeof t["get"+c.substr(3)]?c:"get"+c.substr(3)]():t[c]||0,w=x+_(y,A,p,D),void 0!==f.end&&(f=g(f,w,f.max,f.min),(h||d)&&(M[c]=m(f,M[c],"end"))),void 0!==f.max&&w>Number(f.max)+u?(S=f.unitFactor||l.defaultUnitFactors[c]||1,T=x>f.max&&f.min!==f.max||y*S>-15&&45>y*S?a+.1*(s-a):v(x,f.max,y,A,D),P>T+o&&(P=T+o)):void 0!==f.min&&w<Number(f.min)-u&&(S=f.unitFactor||l.defaultUnitFactors[c]||1,T=x<f.min&&f.min!==f.max||y*S>-45&&15>y*S?a+.1*(s-a):v(x,f.min,y,A,D),P>T+o&&(P=T+o)),T>k&&(k=T)),p>k&&(k=p));return k>P&&(k=P),k>s?s:a>k?a:k},b=l.prototype=new t("throwProps");return b.constructor=l,l.version="0.10.0",l.API=2,l._autoCSS=!0,l.defaultResistance=100,l.defaultUnitFactors={time:1e3,totalTime:1e3},l.track=function(t,e,i){return n.track(t,e,i)},l.untrack=function(t,e){n.untrack(t,e)},l.isTracking=function(t,e){return n.isTracking(t,e)},l.getVelocity=function(t,e){var i=n.getByTarget(t);return i?i.getVelocity(e):NaN},l._cssRegister=function(){var t=c.com.greensock.plugins.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,a=e._setPluginRatio,o=e.CSSPropTween;e._registerComplexSpecialProp("throwProps",{parser:function(t,e,h,u,c,d){d=new l;var p,g,m,_,v,y={},b={},x={},w={},T={},C={};s={};for(m in e)"resistance"!==m&&"preventOvershoot"!==m&&(g=e[m],"object"==typeof g?(void 0!==g.velocity&&"number"==typeof g.velocity?y[m]=Number(g.velocity)||0:(v=v||n.getByTarget(t),y[m]=v&&v.isTrackingProp(m)?v.getVelocity(m):0),void 0!==g.end&&(w[m]=g.end),void 0!==g.min&&(b[m]=g.min),void 0!==g.max&&(x[m]=g.max),g.preventOvershoot&&(C[m]=!0),void 0!==g.resistance&&(p=!0,T[m]=g.resistance)):"number"==typeof g?y[m]=g:(v=v||n.getByTarget(t),v&&v.isTrackingProp(m)?y[m]=v.getVelocity(m):y[m]=g||0),f[m]&&u._enableTransforms(2===f[m]));_=i(t,y,u,c,d),r=_.proxy,y=_.end;for(m in r)s[m]={velocity:y[m],min:b[m],max:x[m],end:w[m],resistance:T[m],preventOvershoot:C[m]};return null!=e.resistance&&(s.resistance=e.resistance),e.preventOvershoot&&(s.preventOvershoot=!0),c=new o(t,"throwProps",0,0,_.pt,2),u._overwriteProps.pop(),c.plugin=d,c.setRatio=a,c.data=_,d._onInitTween(r,s,u._tween),c}})}},l.to=function(t,i,n,l,h){i.throwProps||(i={throwProps:i}),0===h&&(i.throwProps.preventOvershoot=!0),d=!0;var u=new e(t,l||1,i);return u.render(0,!0,!0),u.vars.css?(u.duration(y(r,{throwProps:s,ease:i.ease},n,l,h)),u._delay&&!u.vars.immediateRender?u.invalidate():a._onInitTween(r,o,u),d=!1,u):(u.kill(),u=new e(t,y(t,i,n,l,h),i),d=!1,u)},b._onInitTween=function(t,e,i,r){this.target=t,this._props=[],a=this,o=e;var s,l,h,u,c,f,p,v,y,b=i._ease,x=isNaN(e.checkpoint)?.05:Number(e.checkpoint),w=i._duration,T=e.preventOvershoot,C=0;for(s in e)if("resistance"!==s&&"checkpoint"!==s&&"preventOvershoot"!==s){if(l=e[s],"function"==typeof l&&(l=l(r,t)),"number"==typeof l)c=Number(l)||0;else if("object"!=typeof l||isNaN(l.velocity)){if(y=y||n.getByTarget(t),!y||!y.isTrackingProp(s))throw"ERROR: No velocity was defined in the throwProps tween of "+t+" property: "+s;c=y.getVelocity(s)}else c=Number(l.velocity);f=_(c,b,w,x),v=0,u="function"==typeof t[s],h=u?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():t[s],"object"==typeof l&&(p=h+f,void 0!==l.end&&(l=g(l,p,l.max,l.min),d&&(e[s]=m(l,e[s],"end"))),void 0!==l.max&&Number(l.max)<p?T||l.preventOvershoot?f=l.max-h:v=l.max-h-f:void 0!==l.min&&Number(l.min)>p&&(T||l.preventOvershoot?f=l.min-h:v=l.min-h-f)),this._overwriteProps[C]=s,this._props[C++]={p:s,s:h,c1:f,c2:v,f:u,r:!1}}return!0},b._kill=function(e){for(var i=this._props.length;--i>-1;)null!=e[this._props[i].p]&&this._props.splice(i,1);return t.prototype._kill.call(this,e)},b._mod=function(t){for(var e,i=this._props,n=i.length;--n>-1;)e=t[i[n].p]||t.throwProps,"function"==typeof e&&(i[n].m=e)},b.setRatio=function(t){for(var e,i,n=this._props.length;--n>-1;)e=this._props[n],i=e.s+e.c1*t+e.c2*t*t,e.m?i=e.m(i,this.target):1===t&&(i=(1e4*i+(0>i?-.5:.5)|0)/1e4),e.f?this.target[e.p](i):this.target[e.p]=i},t.activate([l]),l},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(t){var e,i,n,r,s=/([A-Z])/g,a={},o={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},l=document.defaultView?document.defaultView.getComputedStyle:function(){},h=function(t,e,i){var n=(t._gsTransform||a)[e];return n||0===n?n:(t.style[e]?n=t.style[e]:(i=i||l(t,null))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(s,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),parseFloat(n)||0)},u=t.ticker,c=function(t,e,i){this.p=t,this.f=e,this.v1=this.v2=0,this.t1=this.t2=u.time,this.css=!1,this.type="",this._prev=null,i&&(this._next=i,i._prev=this)},d=function(){var t,i,s=e,a=u.time;if(a-n>=.03)for(r=n,n=a;s;){for(i=s._firstVP;i;)t=i.css?h(s.target,i.p):i.f?s.target[i.p]():s.target[i.p],(t!==i.v1||a-i.t1>.15)&&(i.v2=i.v1,i.v1=t,i.t2=i.t1,i.t1=a),i=i._next;s=s._next}},f=function(t){this._lookup={},this.target=t,this.elem=!(!t.style||!t.nodeType),i||(u.addEventListener("tick",d,null,!1,-100),n=r=u.time,i=!0),e&&(this._next=e,e._prev=this),e=this},p=f.getByTarget=function(t){for(var i=e;i;){if(i.target===t)return i;i=i._next}},g=f.prototype;return g.addProp=function(e,i){if(!this._lookup[e]){var n=this.target,r="function"==typeof n[e],s=r?this._altProp(e):e,a=this._firstVP;this._firstVP=this._lookup[e]=this._lookup[s]=a=new c(s!==e&&0===e.indexOf("set")?s:e,r,a),a.css=this.elem&&(void 0!==this.target.style[a.p]||o[a.p]),a.css&&o[a.p]&&!n._gsTransform&&t.set(n,{x:"+=0",overwrite:!1}),a.type=i||a.css&&0===e.indexOf("rotation")?"deg":"",a.v1=a.v2=a.css?h(n,a.p):r?n[a.p]():n[a.p]}},g.removeProp=function(t){var e=this._lookup[t];e&&(e._prev?e._prev._next=e._next:e===this._firstVP&&(this._firstVP=e._next),e._next&&(e._next._prev=e._prev),this._lookup[t]=0,e.f&&(this._lookup[this._altProp(t)]=0))},g.isTrackingProp=function(t){return this._lookup[t]instanceof c},g.getVelocity=function(t){var e,i,n,r=this._lookup[t],s=this.target;if(!r)throw"The velocity of "+t+" is not being tracked.";return e=r.css?h(s,r.p):r.f?s[r.p]():s[r.p],i=e-r.v2,("rad"===r.type||"deg"===r.type)&&(n="rad"===r.type?2*Math.PI:360,i%=n,i!==i%(n/2)&&(i=0>i?i+n:i-n)),i/(u.time-r.t2)},g._altProp=function(t){var e=t.substr(0,3),i=("get"===e?"set":"set"===e?"get":e)+t.substr(3);return"function"==typeof this.target[i]?i:t},f.getByTarget=function(i){var n=e;for("string"==typeof i&&(i=t.selector(i)),i.length&&i!==window&&i[0]&&i[0].style&&!i.nodeType&&(i=i[0]);n;){if(n.target===i)return n;n=n._next}},f.track=function(t,e,i){var n=p(t),r=e.split(","),s=r.length;for(i=(i||"").split(","),n||(n=new f(t));--s>-1;)n.addProp(r[s],i[s]||i[0]);return n},f.untrack=function(t,i){var n=p(t),r=(i||"").split(","),s=r.length;if(n){for(;--s>-1;)n.removeProp(r[s]);n._firstVP&&i||(n._prev?n._prev._next=n._next:n===e&&(e=n._next),n._next&&(n._next._prev=n._prev))}},f.isTracking=function(t,e){var i=p(t);return!!i&&(!(e||!i._firstVP)||i.isTrackingProp(e))},f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("ThrowPropsPlugin");/*!
   * VERSION: 0.2.2
   * DATE: 2015-05-26
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * Requires TweenLite version 1.16.1 or later and CSSPlugin version 1.16.1 or later (or TweenMax 1.16.1 which contains both).
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.CSSTransform",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(t,e,i){var n,r,s,a,o,l=document,h=l.documentElement||{},u=function(){return!1},c={},d={},f={},p={},g=function(t){return l.createElementNS?l.createElementNS("http://www.w3.org/1999/xhtml",t):l.createElement(t)},m=g("div"),_=i._internals,v=!(l.addEventListener||!l.all),y=_.Transform,b=_.getTransform,x=_.setTransformRatio,w=i.getStyle,T=function(t){return t?("string"==typeof t&&(t=e.selector(t)),t.length&&t!==window&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]),t===window||t.nodeType&&t.style?t:null):t},C=function(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},S=function(t){var e,i,n,r=[],s=t.length;for(e=0;s>e;e++)if(i=t[e],C(i))for(n=i.length,n=0;n<i.length;n++)r.push(i[n]);else r.push(i);return r},k=function(t,e){var i,r,s,a=t.style;if(void 0===a[e]){for(s=["O","Moz","ms","Ms","Webkit"],r=5,i=e.charAt(0).toUpperCase()+e.substr(1);--r>-1&&void 0===a[s[r]+i];);if(0>r)return"";n=3===r?"ms":s[r],e=n+i}return e},P=function(){return null!=window.pageYOffset?window.pageYOffset:null!=l.scrollTop?l.scrollTop:h.scrollTop||l.body.scrollTop||0},M=function(){return null!=window.pageXOffset?window.pageXOffset:null!=l.scrollLeft?l.scrollLeft:h.scrollLeft||l.body.scrollLeft||0},A=l.defaultView?l.defaultView.getComputedStyle:u,D=k(m,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),O=k(m,"transform"),R=O.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),L=function(t,e,i,n){if(n=n||{},"origin"===t)return n.x=n.y=0,n;t&&"auto"!==t&&"auto auto"!==t||(t="50% 50%");var r=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],a=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1],o=e.getBBox&&B(e);return(null==a||"center"===a)&&(a="50%"),("center"===s||isNaN(parseFloat(s)))&&(s="50%"),o&&-1!==(s+a).indexOf("%")&&(t=e.getBBox()),s=parseFloat(s)*(-1!==s.indexOf("%")?.01*(o?t.width:e===window?window.innerWidth:e.offsetWidth):1),a=parseFloat(a)*(-1!==a.indexOf("%")?.01*(o?t.height:e===window?window.innerHeight:e.offsetHeight):1),i=i||Y(e),n.x=s-i.x,n.y=a-i.y,n},I=function(t,e){return e?j(t,Y(t,f),Y(t.parentNode,p)):j(t)},E=function(t,e,i,n){t=T(t),"string"==typeof e&&(e=L(e,l.body,null,c));var r=X(t,!0),s=e.x,a=e.y;return n=n===!0?e:n||{},n.x=s*r[0]+a*r[2]+r[4],n.y=s*r[1]+a*r[3]+r[5],i&&(e=Y(t),n.x-=e.x,n.y-=e.y),n},F=function(){if(!l.createElementNS)return r=0,void(s=!1);var t,e,i,n,u=g("div"),c=l.createElementNS("http://www.w3.org/2000/svg","svg"),d=g("div"),f=u.style,p=l.body||h;l.body&&O&&(f.position=d.style.position="absolute",p.appendChild(d),d.appendChild(u),f.height="10px",n=u.offsetTop,d.style.border="5px solid red",o=n!==u.offsetTop,p.removeChild(d)),f=c.style,c.setAttributeNS(null,"width","400px"),c.setAttributeNS(null,"height","400px"),c.setAttributeNS(null,"viewBox","0 0 400 400"),f.display="block",f.boxSizing="border-box",f.border="0px solid red",f.transform="none",u.style.cssText="width:100px;height:100px;overflow:scroll",p.appendChild(u),u.appendChild(c),i=c.createSVGPoint().matrixTransform(c.getScreenCTM()),e=i.y,u.scrollTop=100,i.x=i.y=0,i=i.matrixTransform(c.getScreenCTM()),a=e-i.y<100.1?0:e-i.y-150,u.removeChild(c),p.removeChild(u),p.appendChild(c),t=c.getScreenCTM(),e=t.e,f.border="50px solid red",t=c.getScreenCTM(),0===e&&0===t.e&&0===t.f&&1===t.a?(r=1,s=!0):(r=e!==t.e?1:0,s=1!==t.a),p.removeChild(c)},N=window.SVGElement,B=function(t){return!!(N&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},V=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,W=[],z=[],H=function(t){if(!t.getBoundingClientRect||!t.parentNode)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:h};if(K.cacheSVGData!==!1&&t._gsCache&&t._gsCache.lastUpdate===e.ticker.frame)return t._gsCache;var i,n,o,u,c,d,f,p,g,m,_,v,y=t,b=U(t);if(b.lastUpdate=e.ticker.frame,t.getBBox&&!b.isSVGRoot){for(y=t.parentNode,i=t.getBBox();y&&"svg"!==(y.nodeName+"").toLowerCase();)y=y.parentNode;return u=H(y),b.offsetTop=i.y*u.scaleY,b.offsetLeft=i.x*u.scaleX,b.scaleX=u.scaleX,b.scaleY=u.scaleY,b.offsetParent=y||h,b}for(o=b.offsetParent,o===l.body&&(o=h),z.length=W.length=0;y&&(c=w(y,O,null,!0),"matrix(1, 0, 0, 1, 0, 0)"!==c&&"none"!==c&&"translate3d(0px, 0px, 0px)"!==c&&(z.push(y),W.push(y.style[O]),y.style[O]="none"),y!==o);)y=y.parentNode;for(n=o.getBoundingClientRect(),c=t.getScreenCTM(),p=t.createSVGPoint(),f=p.matrixTransform(c),p.x=p.y=10,p=p.matrixTransform(c),b.scaleX=(p.x-f.x)/10,b.scaleY=(p.y-f.y)/10,void 0===r&&F(),b.borderBox&&!s&&t.getAttribute("width")&&(u=A(t)||{},g=parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)||0,m=parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)||0,_=parseFloat(u.width)||0,v=parseFloat(u.height)||0,b.scaleX*=(_-g)/_,b.scaleY*=(v-m)/v),a?(i=t.getBoundingClientRect(),b.offsetLeft=i.left-n.left,b.offsetTop=i.top-n.top):(b.offsetLeft=f.x-n.left,b.offsetTop=f.y-n.top),b.offsetParent=o,d=z.length;--d>-1;)z[d].style[O]=W[d];return b},Y=function(t,i){if(i=i||{},!t||t===h||!t.parentNode||t===window)return{x:0,y:0};var n=A(t),r=D&&n?n.getPropertyValue(D):"50% 50%",s=r.split(" "),a=-1!==r.indexOf("left")?"0%":-1!==r.indexOf("right")?"100%":s[0],o=-1!==r.indexOf("top")?"0%":-1!==r.indexOf("bottom")?"100%":s[1];return("center"===o||null==o)&&(o="50%"),("center"===a||isNaN(parseFloat(a)))&&(a="50%"),t.getBBox&&B(t)?(t._gsTransform||(e.set(t,{x:"+=0",overwrite:!1}),void 0===t._gsTransform.xOrigin&&console.log("CSSTransform requires at least GSAP 1.16.1")),r=t.getBBox(),i.x=t._gsTransform.xOrigin-r.x,i.y=t._gsTransform.yOrigin-r.y):(t.getBBox&&!t.offsetWidth&&-1!==(a+o).indexOf("%")&&(t=t.getBBox(),t={offsetWidth:t.width,offsetHeight:t.height}),i.x=-1!==a.indexOf("%")?t.offsetWidth*parseFloat(a)/100:parseFloat(a),i.y=-1!==o.indexOf("%")?t.offsetHeight*parseFloat(o)/100:parseFloat(o)),i},U=function(t){if(K.cacheSVGData!==!1&&t._gsCache&&t._gsCache.lastUpdate===e.ticker.frame)return t._gsCache;var i,n=t._gsCache=t._gsCache||{},r=A(t),s=t.getBBox&&B(t),a="svg"===(t.nodeName+"").toLowerCase();if(n.isSVG=s,n.isSVGRoot=a,n.borderBox="border-box"===r.boxSizing,n.computedStyle=r,a)(n.offsetParent=t.offsetParent)||(t.parentNode.insertBefore(m,t),n.offsetParent=m.offsetParent,t.parentNode.removeChild(m));else if(s){for(i=t.parentNode;i&&"svg"!==(i.nodeName+"").toLowerCase();)i=i.parentNode;n.offsetParent=i}return n},j=function(t,e,i,n){if(t===window||!t||!t.style||!t.parentNode)return[1,0,0,1,0,0];var s,a,u,c,d,f,p,g,m,_,v,y,b,x,T=t._gsCache||U(t),C=t.parentNode,S=C._gsCache||U(C),k=T.computedStyle,A=T.isSVG?S.offsetParent:C.offsetParent;return s=T.isSVG&&-1!==(t.style[O]+"").indexOf("matrix")?t.style[O]:k?k.getPropertyValue(R):t.currentStyle?t.currentStyle[O]:"1,0,0,1,0,0",t.getBBox&&-1!==(t.getAttribute("transform")+"").indexOf("matrix")&&(s=t.getAttribute("transform")),s=(s+"").match(/(?:\-|\b)[\d\-\.e]+\b/g)||[1,0,0,1,0,0],s.length>6&&(s=[s[0],s[1],s[4],s[5],s[12],s[13]]),n?s[4]=s[5]=0:T.isSVG&&(d=t._gsTransform)&&(d.xOrigin||d.yOrigin)&&(s[0]=parseFloat(s[0]),s[1]=parseFloat(s[1]),s[2]=parseFloat(s[2]),s[3]=parseFloat(s[3]),s[4]=parseFloat(s[4])-(d.xOrigin-(d.xOrigin*s[0]+d.yOrigin*s[2])),s[5]=parseFloat(s[5])-(d.yOrigin-(d.xOrigin*s[1]+d.yOrigin*s[3]))),e&&(void 0===r&&F(),u=T.isSVG||T.isSVGRoot?H(t):t,T.isSVG?(c=t.getBBox(),_=S.isSVGRoot?{x:0,y:0}:C.getBBox(),u={offsetLeft:c.x-_.x,offsetTop:c.y-_.y,offsetParent:T.offsetParent}):T.isSVGRoot?(v=parseInt(k.borderTopWidth,10)||0,y=parseInt(k.borderLeftWidth,10)||0,b=(s[0]-r)*y+s[2]*v,x=s[1]*y+(s[3]-r)*v,f=e.x,p=e.y,g=f-(f*s[0]+p*s[2]),m=p-(f*s[1]+p*s[3]),s[4]=parseFloat(s[4])+g,s[5]=parseFloat(s[5])+m,e.x-=g,e.y-=m,f=u.scaleX,p=u.scaleY,e.x*=f,e.y*=p,s[0]*=f,s[1]*=p,s[2]*=f,s[3]*=p,V||(e.x+=b,e.y+=x)):!o&&t.offsetParent&&(e.x+=parseInt(w(t.offsetParent,"borderLeftWidth"),10)||0,e.y+=parseInt(w(t.offsetParent,"borderTopWidth"),10)||0),a=C===h||C===l.body,s[4]=Number(s[4])+e.x+(u.offsetLeft||0)-i.x-(a?0:C.scrollLeft||0),s[5]=Number(s[5])+e.y+(u.offsetTop||0)-i.y-(a?0:C.scrollTop||0),C&&"fixed"===w(t,"position",k)&&(s[4]+=M(),s[5]+=P()),C&&C!==h&&A===u.offsetParent&&(s[4]-=C.offsetLeft||0,s[5]-=C.offsetTop||0,o||!C.offsetParent||T.isSVG||T.isSVGRoot||(s[4]-=parseInt(w(C.offsetParent,"borderLeftWidth"),10)||0,s[5]-=parseInt(w(C.offsetParent,"borderTopWidth"),10)||0))),s},X=function(t,e,i){if(t===window||!t||!t.parentNode)return[1,0,0,1,0,0];for(var n,r,s,a,o,l,u,c,d=Y(t,f),g=Y(t.parentNode,p),m=j(t,d,g,i);(t=t.parentNode)&&t.parentNode&&t!==h;)d=g,g=Y(t.parentNode,d===f?p:f),u=j(t,d,g),n=m[0],r=m[1],s=m[2],a=m[3],o=m[4],l=m[5],m[0]=n*u[0]+r*u[2],m[1]=n*u[1]+r*u[3],m[2]=s*u[0]+a*u[2],m[3]=s*u[1]+a*u[3],m[4]=o*u[0]+l*u[2]+u[4],m[5]=o*u[1]+l*u[3]+u[5];return e&&(n=m[0],r=m[1],s=m[2],a=m[3],o=m[4],l=m[5],c=n*a-r*s,m[0]=a/c,m[1]=-r/c,m[2]=-s/c,m[3]=n/c,m[4]=(s*l-a*o)/c,m[5]=-(n*l-r*o)/c),m},G=function(t,e,i,n,r){t=T(t),"string"==typeof e&&(e=L(e,t,null,c));var s=X(t,!1,r),a=e.x,o=e.y;return i&&(Y(t,e),a-=e.x,o-=e.y),n=n===!0?e:n||{},n.x=a*s[0]+o*s[2]+s[4],n.y=a*s[1]+o*s[3]+s[5],n},q=function(t,e,i){var n=t.x*e[0]+t.y*e[2]+e[4],r=t.x*e[1]+t.y*e[3]+e[5];return t.x=n*i[0]+r*i[2]+i[4],t.y=n*i[1]+r*i[3]+i[5],t},$=function(t,e,i){if(!(t=T(t)))return null;e=T(e);var n,r,s,a,o,u,d,f,p,g,m,_,y,b,x,w,C,S,k,D,O,R,L=t.getBBox&&B(t);if(t===window)a=P(),r=M(),s=r+(h.clientWidth||t.innerWidth||l.body.clientWidth||0),o=a+((t.innerHeight||0)-20<h.clientHeight?h.clientHeight:t.innerHeight||l.body.clientHeight||0);else{if(void 0===e||e===window)return t.getBoundingClientRect();n=Y(t),r=-n.x,a=-n.y,L?(_=t.getBBox(),y=_.width,b=_.height):t.offsetWidth?(y=t.offsetWidth,b=t.offsetHeight):(O=A(t),y=parseFloat(O.width),b=parseFloat(O.height)),s=r+y,o=a+b,"svg"!==t.nodeName.toLowerCase()||v||(x=H(t),R=x.computedStyle||{},S=(t.getAttribute("viewBox")||"0 0").split(" "),k=parseFloat(S[0]),D=parseFloat(S[1]),w=parseFloat(R.borderLeftWidth)||0,C=parseFloat(R.borderTopWidth)||0,s-=y-(y-w)/x.scaleX-k,o-=b-(b-C)/x.scaleY-D,r-=w/x.scaleX-k,a-=C/x.scaleY-D,O&&(s+=(parseFloat(R.borderRightWidth)+w)/x.scaleX,o+=(C+parseFloat(R.borderBottomWidth))/x.scaleY))}return t===e?{left:r,top:a,width:s-r,height:o-a}:(u=X(t),d=X(e,!0),f=q({x:r,y:a},u,d),p=q({x:s,y:a},u,d),g=q({x:s,y:o},u,d),m=q({x:r,y:o},u,d),r=Math.min(f.x,p.x,g.x,m.x),a=Math.min(f.y,p.y,g.y,m.y),c.x=c.y=0,i&&Y(e,c),{left:r+c.x,top:a+c.y,width:Math.max(f.x,p.x,g.x,m.x)-r,height:Math.max(f.y,p.y,g.y,m.y)-a})},Q=function(t,i,n){i=i||{};var r,s,a,o=T(t),l=T(i.element)||o.parentNode,h=i.point,u=i.elementPoint,f=i.duration||0,p={},g=p;for(a in i)"element"!==a&&"elementPoint"!==a&&"point"!==a&&"duration"!==a&&(p[a]=i[a]);return f&&(s=e.to(o,1,p).seek(1)),u?"string"==typeof u&&(u=L(u,l)):(u=c,u.x=u.y=0),"string"==typeof h?r=G(o,h,!1,!1,!0):(d.x=d.y=0,r=G(o,d,!1,!0,!0)),E(o.parentNode,r,!1,!0),u=G(l,u),E(o.parentNode,u,!1,!0),s&&s.vars.css&&(g=s.vars.css),g.x=u.x-r.x,g.y=u.y-r.y,n&&(n.x=g.x,n.y=g.y),s&&s.seek(0).kill(),e.to(o,f,p)},Z=function(t,e){var i=t.pageX!==e||t.x!==e?{left:t.pageX||t.x||0,top:t.pageY||t.y||0,width:1,height:1}:t.nodeType||t.left===e||t.top===e?T(t).getBoundingClientRect():t;return i.right===e&&i.width!==e?(i.right=i.left+i.width,i.bottom=i.top+i.height):i.width===e&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i},J=function(t,e,i){if(t===e)return!1;var n,r,s,a=Z(t),o=Z(e),l=o.left>a.right||o.right<a.left||o.top>a.bottom||o.bottom<a.top;return l||!i?!l:(s=-1!==(i+"").indexOf("%"),i=parseFloat(i)||0,n={left:Math.max(a.left,o.left),top:Math.max(a.top,o.top)},n.width=Math.min(a.right,o.right)-n.left,n.height=Math.min(a.bottom,o.bottom)-n.top,!(n.width<0||n.height<0)&&(s?(i*=.01,r=n.width*n.height,r>=a.width*a.height*i||r>=o.width*o.height*i):n.width>i&&n.height>i))},K={version:"0.2.2",get:function(t){t=T(t);var e=b(t);return e.target=t,t._gsTransform=e,e},create:function(t){"string"==typeof t&&(t=e.selector(t));for(var i=C(t)?S(t):[t],n=i.length;--n>-1;)i[n]=K.get(i[n]);return i},align:Q,hitTest:J,localToGlobal:G,globalToLocal:E,getBounds:$,getMatrix:I,getConcatenatedMatrix:X},tt=y.prototype;return tt.getMatrix=function(t){return I(this.target,t)},tt.getConcatenatedMatrix=function(t,e){return X(this.target,t,e)},tt.getBounds=function(t,e){return $(this.target,t,e)},tt.parse=function(){b(this.target,null,!0,!0)},tt.render=function(){var t=c.data=this instanceof e&&this.target.target.prototype===y.prototype?this.target.target:this;c.t=t.target,c.tween=this,x.call(c)},tt.hitTest=function(t,e){return J(this.target,t,e)},tt.localToGlobal=function(t,e,i){return G(this.target,t,e,i)},tt.globalToLocal=function(t,e,i){return E(this.target,t,e,i)},tt.align=function(t,e){return Q(this.target,t,e)},K},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=e())}("CSSTransform");/*!
   * VERSION: 0.14.8
   * DATE: 2016-07-18
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * This work is subject to the terms at http://greensock.com/standard-license or for
   * Club GreenSock members, the software agreement that was issued with your membership.
   *
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(t,e,i){var n,r,s,a,o,l,h,u,c,d={css:{}},f={css:{}},p={css:{}},g={css:{}},m=_gsScope._gsDefine.globals,_={},v=document,y=v.documentElement||{},b=function(t){return v.createElementNS?v.createElementNS("http://www.w3.org/1999/xhtml",t):v.createElement(t)},x=b("div"),w=[],T=function(){return!1},C=180/Math.PI,S=999999999999999,k=Date.now||function(){return(new Date).getTime()},P=!(v.addEventListener||!v.all),M=v.createElement("div"),A=[],D={},O=0,R=/^(?:a|input|textarea|button|select)$/i,L=0,I=-1!==navigator.userAgent.toLowerCase().indexOf("android"),E=0,F={},N={},B=function(t){if("string"==typeof t&&(t=e.selector(t)),!t||t.nodeType)return[t];var i,n=[],r=t.length;for(i=0;i!==r;n.push(t[i++]));return n},V=function(t){var e,i={};for(e in t)i[e]=t[e];return i},W=function(){for(var t=A.length;--t>-1;)A[t]()},z=function(t){A.push(t),1===A.length&&e.ticker.addEventListener("tick",W,this,!1,1)},H=function(t){for(var i=A.length;--i>-1;)A[i]===t&&A.splice(i,1);e.to(Y,0,{overwrite:"all",delay:15,onComplete:Y})},Y=function(){A.length||e.ticker.removeEventListener("tick",W)},U=function(t,e){var i;for(i in e)void 0===t[i]&&(t[i]=e[i]);return t},j=function(){return null!=window.pageYOffset?window.pageYOffset:null!=v.scrollTop?v.scrollTop:y.scrollTop||v.body.scrollTop||0},X=function(){return null!=window.pageXOffset?window.pageXOffset:null!=v.scrollLeft?v.scrollLeft:y.scrollLeft||v.body.scrollLeft||0},G=function(t,e){It(t,"scroll",e),$(t.parentNode)||G(t.parentNode,e)},q=function(t,e){Et(t,"scroll",e),$(t.parentNode)||q(t.parentNode,e)},$=function(t){return!(t&&t!==y&&t!==v&&t!==v.body&&t!==window&&t.nodeType&&t.parentNode)},Q=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,r="client"+i,s=v.body;return Math.max(0,$(t)?Math.max(y[n],s[n])-(window["inner"+i]||y[r]||s[r]):t[n]-t[r])},Z=function(t){var e=$(t),i=Q(t,"x"),n=Q(t,"y");e?t=N:Z(t.parentNode),t._gsMaxScrollX=i,t._gsMaxScrollY=n,t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0},J=function(t,e){return t=t||window.event,_.pageX=t.clientX+v.body.scrollLeft+y.scrollLeft,_.pageY=t.clientY+v.body.scrollTop+y.scrollTop,e&&(t.returnValue=!1),_},K=function(t){return t?("string"==typeof t&&(t=e.selector(t)),t.length&&t!==window&&t[0]&&t[0].style&&!t.nodeType&&(t=t[0]),t===window||t.nodeType&&t.style?t:null):t},tt=function(t,e){var i,r,s,a=t.style;if(void 0===a[e]){for(s=["O","Moz","ms","Ms","Webkit"],r=5,i=e.charAt(0).toUpperCase()+e.substr(1);--r>-1&&void 0===a[s[r]+i];);if(0>r)return"";n=3===r?"ms":s[r],e=n+i}return e},et=function(t,e,i){var n=t.style;n&&(void 0===n[e]&&(e=tt(t,e)),null==i?n.removeProperty?n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n.removeAttribute(e):void 0!==n[e]&&(n[e]=i))},it=v.defaultView?v.defaultView.getComputedStyle:T,nt=/(?:Left|Right|Width)/i,rt=/(?:\d|\-|\+|=|#|\.)*/g,st=function(t,e,i,n,r){if("px"===n||!n)return i;if("auto"===n||!i)return 0;var s,a=nt.test(e),o=t,l=x.style,h=0>i;return h&&(i=-i),"%"===n&&-1!==e.indexOf("border")?s=i/100*(a?t.clientWidth:t.clientHeight):(l.cssText="border:0 solid red;position:"+ot(t,"position",!0)+";line-height:0;","%"!==n&&o.appendChild?l[a?"borderLeftWidth":"borderTopWidth"]=i+n:(o=t.parentNode||v.body,l[a?"width":"height"]=i+n),o.appendChild(x),s=parseFloat(x[a?"offsetWidth":"offsetHeight"]),o.removeChild(x),0!==s||r||(s=st(t,e,i,n,!0))),h?-s:s},at=function(t,e){if("absolute"!==ot(t,"position",!0))return 0;var i="left"===e?"Left":"Top",n=ot(t,"margin"+i,!0);return t["offset"+i]-(st(t,e,parseFloat(n),(n+"").replace(rt,""))||0)},ot=function(t,e,i){var n,r=(t._gsTransform||{})[e];return r||0===r?r:(t.style[e]?r=t.style[e]:(n=it(t))?(r=n.getPropertyValue(e.replace(/([A-Z])/g,"-$1").toLowerCase()),r=r||n.length?r:n[e]):t.currentStyle&&(r=t.currentStyle[e]),"auto"!==r||"top"!==e&&"left"!==e||(r=at(t,e)),i?r:parseFloat(r)||0)},lt=function(t,e,i){var n=t.vars,r=n[i],s=t._listeners[e];"function"==typeof r&&r.apply(n[i+"Scope"]||n.callbackScope||t,n[i+"Params"]||[t.pointerEvent]),s&&t.dispatchEvent(e)},ht=function(t,e){var i,n,r,s=K(t);return s?At(s,e):void 0!==t.left?(r=Tt(e),{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height}):(n=t.min||t.minX||t.minRotation||0,i=t.min||t.minY||0,{left:n,top:i,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-i})},ut=function(){if(!v.createElementNS)return a=0,void(o=!1);var t,e,i,n,r=b("div"),s=v.createElementNS("http://www.w3.org/2000/svg","svg"),c=b("div"),d=r.style,f=v.body||y;v.body&&ft&&(d.position="absolute",f.appendChild(c),c.appendChild(r),n=r.offsetParent,c.style[ft]="rotate(1deg)",u=r.offsetParent===n,c.style.position="absolute",d.height="10px",n=r.offsetTop,c.style.border="5px solid red",h=n!==r.offsetTop,f.removeChild(c)),d=s.style,s.setAttributeNS(null,"width","400px"),s.setAttributeNS(null,"height","400px"),s.setAttributeNS(null,"viewBox","0 0 400 400"),d.display="block",d.boxSizing="border-box",d.border="0px solid red",d.transform="none",r.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",f.appendChild(r),r.appendChild(s),i=s.createSVGPoint().matrixTransform(s.getScreenCTM()),e=i.y,r.scrollTop=100,i.x=i.y=0,i=i.matrixTransform(s.getScreenCTM()),l=e-i.y<100.1?0:e-i.y-150,r.removeChild(s),f.removeChild(r),f.appendChild(s),t=s.getScreenCTM(),e=t.e,d.border="50px solid red",t=s.getScreenCTM(),0===e&&0===t.e&&0===t.f&&1===t.a?(a=1,o=!0):(a=e!==t.e?1:0,o=1!==t.a),f.removeChild(s)},ct=""!==tt(x,"perspective"),dt=tt(x,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),ft=tt(x,"transform"),pt=ft.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),gt={},mt={},_t=window.SVGElement,vt=function(t){return!!(_t&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},yt=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,bt=[],xt=[],wt=function(t){if(!t.getBoundingClientRect||!t.parentNode||!ft)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:y};if(Ut.cacheSVGData!==!1&&t._gsCache&&t._gsCache.lastUpdate===e.ticker.frame)return t._gsCache;var i,n,r,s,h,u,c,d,f,p,g,m,_=t,b=Ct(t);if(b.lastUpdate=e.ticker.frame,t.getBBox&&!b.isSVGRoot){for(_=t.parentNode,i=t.getBBox();_&&"svg"!==(_.nodeName+"").toLowerCase();)_=_.parentNode;return s=wt(_),b.offsetTop=i.y*s.scaleY,b.offsetLeft=i.x*s.scaleX,b.scaleX=s.scaleX,b.scaleY=s.scaleY,b.offsetParent=_||y,b}for(r=b.offsetParent,r===v.body&&(r=y),xt.length=bt.length=0;_&&(h=ot(_,ft,!0),"matrix(1, 0, 0, 1, 0, 0)"!==h&&"none"!==h&&"translate3d(0px, 0px, 0px)"!==h&&(xt.push(_),bt.push(_.style[ft]),_.style[ft]="none"),_!==r);)_=_.parentNode;for(n=r.getBoundingClientRect(),h=t.getScreenCTM(),d=t.createSVGPoint(),c=d.matrixTransform(h),d.x=d.y=10,d=d.matrixTransform(h),b.scaleX=(d.x-c.x)/10,b.scaleY=(d.y-c.y)/10,void 0===a&&ut(),b.borderBox&&!o&&t.getAttribute("width")&&(s=it(t)||{},f=parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth)||0,p=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth)||0,g=parseFloat(s.width)||0,m=parseFloat(s.height)||0,b.scaleX*=(g-f)/g,b.scaleY*=(m-p)/m),l?(i=t.getBoundingClientRect(),b.offsetLeft=i.left-n.left,b.offsetTop=i.top-n.top):(b.offsetLeft=c.x-n.left,b.offsetTop=c.y-n.top),b.offsetParent=r,u=xt.length;--u>-1;)xt[u].style[ft]=bt[u];return b},Tt=function(t,i){if(i=i||{},!t||t===y||!t.parentNode||t===window)return{x:0,y:0};var n=it(t),r=dt&&n?n.getPropertyValue(dt):"50% 50%",s=r.split(" "),a=-1!==r.indexOf("left")?"0%":-1!==r.indexOf("right")?"100%":s[0],o=-1!==r.indexOf("top")?"0%":-1!==r.indexOf("bottom")?"100%":s[1];return("center"===o||null==o)&&(o="50%"),("center"===a||isNaN(parseFloat(a)))&&(a="50%"),t.getBBox&&vt(t)?(t._gsTransform||(e.set(t,{x:"+=0",overwrite:!1}),void 0===t._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),r=t.getBBox(),i.x=t._gsTransform.xOrigin-r.x,i.y=t._gsTransform.yOrigin-r.y):(t.getBBox&&-1!==(a+o).indexOf("%")&&(t=t.getBBox(),t={offsetWidth:t.width,offsetHeight:t.height}),i.x=-1!==a.indexOf("%")?t.offsetWidth*parseFloat(a)/100:parseFloat(a),i.y=-1!==o.indexOf("%")?t.offsetHeight*parseFloat(o)/100:parseFloat(o)),i},Ct=function(t){if(Ut.cacheSVGData!==!1&&t._gsCache&&t._gsCache.lastUpdate===e.ticker.frame)return t._gsCache;var i,n=t._gsCache=t._gsCache||{},r=it(t),s=t.getBBox&&vt(t),a="svg"===(t.nodeName+"").toLowerCase();if(n.isSVG=s,n.isSVGRoot=a,n.borderBox="border-box"===r.boxSizing,n.computedStyle=r,a)i=t.parentNode||y,i.insertBefore(x,t),n.offsetParent=x.offsetParent||y,i.removeChild(x);else if(s){for(i=t.parentNode;i&&"svg"!==(i.nodeName+"").toLowerCase();)i=i.parentNode;n.offsetParent=i}else n.offsetParent=t.offsetParent;return n},St=function(t,e,i,n){if(t===window||!t||!t.style||!t.parentNode)return[1,0,0,1,0,0];var r,s,o,l,c,d,f,p,g,m,_,b,x,w,T=t._gsCache||Ct(t),C=t.parentNode,S=C._gsCache||Ct(C),k=T.computedStyle,P=T.isSVG?S.offsetParent:C.offsetParent;return r=T.isSVG&&-1!==(t.style[ft]+"").indexOf("matrix")?t.style[ft]:k?k.getPropertyValue(pt):t.currentStyle?t.currentStyle[ft]:"1,0,0,1,0,0",t.getBBox&&-1!==(t.getAttribute("transform")+"").indexOf("matrix")&&(r=t.getAttribute("transform")),r=(r+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0],r.length>6&&(r=[r[0],r[1],r[4],r[5],r[12],r[13]]),n?r[4]=r[5]=0:T.isSVG&&(c=t._gsTransform)&&(c.xOrigin||c.yOrigin)&&(r[0]=parseFloat(r[0]),r[1]=parseFloat(r[1]),r[2]=parseFloat(r[2]),r[3]=parseFloat(r[3]),r[4]=parseFloat(r[4])-(c.xOrigin-(c.xOrigin*r[0]+c.yOrigin*r[2])),r[5]=parseFloat(r[5])-(c.yOrigin-(c.xOrigin*r[1]+c.yOrigin*r[3]))),e&&(void 0===a&&ut(),o=T.isSVG||T.isSVGRoot?wt(t):t,T.isSVG?(l=t.getBBox(),m=S.isSVGRoot?{x:0,y:0}:C.getBBox(),o={offsetLeft:l.x-m.x,offsetTop:l.y-m.y,offsetParent:T.offsetParent}):T.isSVGRoot?(_=parseInt(k.borderTopWidth,10)||0,b=parseInt(k.borderLeftWidth,10)||0,x=(r[0]-a)*b+r[2]*_,w=r[1]*b+(r[3]-a)*_,d=e.x,f=e.y,p=d-(d*r[0]+f*r[2]),g=f-(d*r[1]+f*r[3]),r[4]=parseFloat(r[4])+p,r[5]=parseFloat(r[5])+g,e.x-=p,e.y-=g,d=o.scaleX,f=o.scaleY,e.x*=d,e.y*=f,r[0]*=d,r[1]*=f,r[2]*=d,r[3]*=f,yt||(e.x+=x,e.y+=w)):!h&&t.offsetParent&&(e.x+=parseInt(ot(t.offsetParent,"borderLeftWidth"),10)||0,e.y+=parseInt(ot(t.offsetParent,"borderTopWidth"),10)||0),s=C===y||C===v.body,r[4]=Number(r[4])+e.x+(o.offsetLeft||0)-i.x-(s?0:C.scrollLeft||0),r[5]=Number(r[5])+e.y+(o.offsetTop||0)-i.y-(s?0:C.scrollTop||0),C&&"fixed"===ot(t,"position",k)&&(r[4]+=X(),r[5]+=j()),!C||C===y||P!==o.offsetParent||S.isSVG||u&&"100100"!==St(C).join("")||(o=S.isSVGRoot?wt(C):C,r[4]-=o.offsetLeft||0,r[5]-=o.offsetTop||0,h||!S.offsetParent||T.isSVG||T.isSVGRoot||(r[4]-=parseInt(ot(S.offsetParent,"borderLeftWidth"),10)||0,r[5]-=parseInt(ot(S.offsetParent,"borderTopWidth"),10)||0))),r},kt=function(t,e){if(!t||t===window||!t.parentNode)return[1,0,0,1,0,0];for(var i,n,r,s,a,o,l,h,u=Tt(t,gt),c=Tt(t.parentNode,mt),d=St(t,u,c);(t=t.parentNode)&&t.parentNode&&t!==y;)u=c,c=Tt(t.parentNode,u===gt?mt:gt),l=St(t,u,c),i=d[0],n=d[1],r=d[2],s=d[3],a=d[4],o=d[5],d[0]=i*l[0]+n*l[2],d[1]=i*l[1]+n*l[3],d[2]=r*l[0]+s*l[2],d[3]=r*l[1]+s*l[3],d[4]=a*l[0]+o*l[2]+l[4],d[5]=a*l[1]+o*l[3]+l[5];return e&&(i=d[0],n=d[1],r=d[2],s=d[3],a=d[4],o=d[5],h=i*s-n*r,d[0]=s/h,d[1]=-n/h,d[2]=-r/h,d[3]=i/h,d[4]=(r*o-s*a)/h,d[5]=-(i*o-n*a)/h),d},Pt=function(t,e,i,n,r){t=K(t);var s=kt(t,!1,r),a=e.x,o=e.y;return i&&(Tt(t,e),a-=e.x,o-=e.y),n=n===!0?e:n||{},n.x=a*s[0]+o*s[2]+s[4],n.y=a*s[1]+o*s[3]+s[5],n},Mt=function(t,e,i){var n=t.x*e[0]+t.y*e[2]+e[4],r=t.x*e[1]+t.y*e[3]+e[5];return t.x=n*i[0]+r*i[2]+i[4],t.y=n*i[1]+r*i[3]+i[5],t},At=function(t,e,i){if(!(t=K(t)))return null;e=K(e);var n,r,s,a,o,l,h,u,c,d,f,p,g,m,_,b,x,w,T,C,S,k,M=t.getBBox&&vt(t);if(t===window)a=j(),r=X(),s=r+(y.clientWidth||t.innerWidth||v.body.clientWidth||0),o=a+((t.innerHeight||0)-20<y.clientHeight?y.clientHeight:t.innerHeight||v.body.clientHeight||0);else{if(void 0===e||e===window)return t.getBoundingClientRect();n=Tt(t),r=-n.x,a=-n.y,M?(p=t.getBBox(),g=p.width,m=p.height):"svg"!==(t.nodeName+"").toLowerCase()&&t.offsetWidth?(g=t.offsetWidth,m=t.offsetHeight):(S=it(t),g=parseFloat(S.width),m=parseFloat(S.height)),s=r+g,o=a+m,"svg"!==t.nodeName.toLowerCase()||P||(_=wt(t),k=_.computedStyle||{},w=(t.getAttribute("viewBox")||"0 0").split(" "),T=parseFloat(w[0]),C=parseFloat(w[1]),b=parseFloat(k.borderLeftWidth)||0,x=parseFloat(k.borderTopWidth)||0,s-=g-(g-b)/_.scaleX-T,o-=m-(m-x)/_.scaleY-C,r-=b/_.scaleX-T,a-=x/_.scaleY-C,S&&(s+=(parseFloat(k.borderRightWidth)+b)/_.scaleX,o+=(x+parseFloat(k.borderBottomWidth))/_.scaleY))}return t===e?{left:r,top:a,width:s-r,height:o-a}:(l=kt(t),h=kt(e,!0),u=Mt({x:r,y:a},l,h),c=Mt({x:s,y:a},l,h),d=Mt({x:s,y:o},l,h),f=Mt({x:r,y:o},l,h),r=Math.min(u.x,c.x,d.x,f.x),a=Math.min(u.y,c.y,d.y,f.y),F.x=F.y=0,i&&Tt(e,F),{left:r+F.x,top:a+F.y,width:Math.max(u.x,c.x,d.x,f.x)-r,height:Math.max(u.y,c.y,d.y,f.y)-a})},Dt=function(t){return!!(t&&t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},Ot=function(t){var e,i,n,r=[],s=t.length;for(e=0;s>e;e++)if(i=t[e],Dt(i))for(n=i.length,n=0;n<i.length;n++)r.push(i[n]);else i&&0!==i.length&&r.push(i);return r},Rt="ontouchstart"in y&&"orientation"in window,Lt=function(t){for(var e=t.split(","),i=(void 0!==x.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==x.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),n={},r=8;--r>-1;)n[e[r]]=i[r],n[i[r]]=e[r];return n}("touchstart,touchmove,touchend,touchcancel"),It=function(t,e,i,n){t.addEventListener?t.addEventListener(Lt[e]||e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},Et=function(t,e,i){t.removeEventListener?t.removeEventListener(Lt[e]||e,i):t.detachEvent&&t.detachEvent("on"+e,i)},Ft=function(t,e){for(var i=t.length;--i>-1;)if(t[i].identifier===e)return!0;return!1},Nt=function(t){r=t.touches&&L<t.touches.length,Et(t.target,"touchend",Nt)},Bt=function(t){r=t.touches&&L<t.touches.length,It(t.target,"touchend",Nt)},Vt=function(t,e,i,n,r,s){var a,o,l,h={};if(e)if(1!==r&&e instanceof Array){for(h.end=a=[],l=e.length,o=0;l>o;o++)a[o]=e[o]*r;i+=1.1,n-=1.1}else"function"==typeof e?h.end=function(i){return e.call(t,i)*r}:h.end=e;return(i||0===i)&&(h.max=i),(n||0===n)&&(h.min=n),s&&(h.velocity=0),h},Wt=function(t){var e;return!(!t||!t.getAttribute||"BODY"===t.nodeName)&&(!("true"!==(e=t.getAttribute("data-clickable"))&&("false"===e||!t.onclick&&!R.test(t.nodeName+"")&&"true"!==t.getAttribute("contentEditable")))||Wt(t.parentNode))},zt=function(t,e){for(var i,n=t.length;--n>-1;)i=t[n],i.ondragstart=i.onselectstart=e?null:T,et(i,"userSelect",e?"text":"none")},Ht=function(){var t,e=v.createElement("div"),i=v.createElement("div"),n=i.style,r=v.body||x;return n.display="inline-block",n.position="relative",e.style.cssText=i.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",e.appendChild(i),r.appendChild(e),c=i.offsetHeight+18>e.scrollHeight,n.width="100%",ft||(n.paddingRight="500px",t=e.scrollLeft=e.scrollWidth-e.clientWidth,n.left="-90px",t=t!==e.scrollLeft),r.removeChild(e),t}(),Yt=function(t,i){t=K(t),i=i||{};var n,r,s,a,o,l,h=v.createElement("div"),u=h.style,d=t.firstChild,f=0,p=0,g=t.scrollTop,m=t.scrollLeft,_=t.scrollWidth,y=t.scrollHeight,b=0,x=0,w=0;ct&&i.force3D!==!1?(o="translate3d(",l="px,0px)"):ft&&(o="translate(",l="px)"),this.scrollTop=function(t,e){return arguments.length?void this.top(-t,e):-this.top()},this.scrollLeft=function(t,e){return arguments.length?void this.left(-t,e):-this.left()},this.left=function(n,r){if(!arguments.length)return-(t.scrollLeft+p);var s=t.scrollLeft-m,a=p;return(s>2||-2>s)&&!r?(m=t.scrollLeft,e.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-m),void(i.onKill&&i.onKill())):(n=-n,0>n?(p=n-.5|0,n=0):n>x?(p=n-x|0,n=x):p=0,(p||a)&&(o?this._suspendTransforms||(u[ft]=o+-p+"px,"+-f+l):u.left=-p+"px",Ht&&p+b>=0&&(u.paddingRight=p+b+"px")),t.scrollLeft=0|n,void(m=t.scrollLeft))},this.top=function(n,r){if(!arguments.length)return-(t.scrollTop+f);var s=t.scrollTop-g,a=f;return(s>2||-2>s)&&!r?(g=t.scrollTop,e.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-g),void(i.onKill&&i.onKill())):(n=-n,0>n?(f=n-.5|0,n=0):n>w?(f=n-w|0,n=w):f=0,(f||a)&&(o?this._suspendTransforms||(u[ft]=o+-p+"px,"+-f+l):u.top=-f+"px"),t.scrollTop=0|n,void(g=t.scrollTop))},this.maxScrollTop=function(){return w},this.maxScrollLeft=function(){return x},this.disable=function(){for(d=h.firstChild;d;)a=d.nextSibling,t.appendChild(d),d=a;t===h.parentNode&&t.removeChild(h)},this.enable=function(){if(d=t.firstChild,d!==h){for(;d;)a=d.nextSibling,h.appendChild(d),d=a;t.appendChild(h),this.calibrate()}},this.calibrate=function(e){var i,a,o=t.clientWidth===n;g=t.scrollTop,m=t.scrollLeft,(!o||t.clientHeight!==r||h.offsetHeight!==s||_!==t.scrollWidth||y!==t.scrollHeight||e)&&((f||p)&&(i=this.left(),a=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),(!o||e)&&(u.display="block",u.width="auto",u.paddingRight="0px",b=Math.max(0,t.scrollWidth-t.clientWidth),b&&(b+=ot(t,"paddingLeft")+(c?ot(t,"paddingRight"):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.width="100%",u.paddingRight=b+"px",c&&(u.paddingBottom=ot(t,"paddingBottom",!0)),P&&(u.zoom="1"),n=t.clientWidth,r=t.clientHeight,_=t.scrollWidth,y=t.scrollHeight,x=t.scrollWidth-n,w=t.scrollHeight-r,s=h.offsetHeight,u.display="block",(i||a)&&(this.left(i),this.top(a)))},this.content=h,this.element=t,this._suspendTransforms=!1,this.enable()},Ut=function(n,a){t.call(this,n),n=K(n),s||(s=m.com.greensock.plugins.ThrowPropsPlugin),this.vars=a=V(a||{}),this.target=n,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(a.dragResistance)||0,this.edgeResistance=isNaN(a.edgeResistance)?1:parseFloat(a.edgeResistance)||0,this.lockAxis=a.lockAxis,this.autoScroll=a.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!a.allowEventDefault;var o,l,h,u,c,_,b,x,T,A,R,F,W,Y,j,X,Q,tt,it,nt,rt,st,at,ut,ct,dt,ft,pt,gt,mt,_t,vt,yt,bt=(a.type||(P?"top,left":"x,y")).toLowerCase(),xt=-1!==bt.indexOf("x")||-1!==bt.indexOf("y"),wt=-1!==bt.indexOf("rotation"),Tt=wt?"rotation":xt?"x":"left",Ct=xt?"y":"top",St=-1!==bt.indexOf("x")||-1!==bt.indexOf("left")||"scroll"===bt,Mt=-1!==bt.indexOf("y")||-1!==bt.indexOf("top")||"scroll"===bt,At=a.minimumMovement||2,Dt=this,Ot=B(a.trigger||a.handle||n),Nt={},Ht=0,jt=!1,Xt=a.clickableTest||Wt,Gt=0,$t=function(t){if(Dt.autoScroll&&Dt.isDragging&&(jt||tt)){var e,i,r,s,a,o,h,u,c=n,d=15*Dt.autoScroll;for(jt=!1,N.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=y.scrollTop?y.scrollTop:v.body.scrollTop,N.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=y.scrollLeft?y.scrollLeft:v.body.scrollLeft,s=Dt.pointerX-N.scrollLeft,a=Dt.pointerY-N.scrollTop;c&&!i;)i=$(c.parentNode),e=i?N:c.parentNode,r=i?{bottom:Math.max(y.clientHeight,window.innerHeight||0),right:Math.max(y.clientWidth,window.innerWidth||0),left:0,top:0}:e.getBoundingClientRect(),o=h=0,Mt&&(u=e._gsMaxScrollY-e.scrollTop,0>u?h=u:a>r.bottom-40&&u?(jt=!0,h=Math.min(u,d*(1-Math.max(0,r.bottom-a)/40)|0)):a<r.top+40&&e.scrollTop&&(jt=!0,h=-Math.min(e.scrollTop,d*(1-Math.max(0,a-r.top)/40)|0)),h&&(e.scrollTop+=h)),St&&(u=e._gsMaxScrollX-e.scrollLeft,0>u?o=u:s>r.right-40&&u?(jt=!0,o=Math.min(u,d*(1-Math.max(0,r.right-s)/40)|0)):s<r.left+40&&e.scrollLeft&&(jt=!0,o=-Math.min(e.scrollLeft,d*(1-Math.max(0,s-r.left)/40)|0)),o&&(e.scrollLeft+=o)),i&&(o||h)&&(window.scrollTo(e.scrollLeft,e.scrollTop),le(Dt.pointerX+o,Dt.pointerY+h)),c=e}if(tt){var f=Dt.x,p=Dt.y,g=1e-6;g>f&&f>-g&&(f=0),g>p&&p>-g&&(p=0),wt?(pt.data.rotation=Dt.rotation=f,pt.setRatio(1)):l?(Mt&&l.top(p),St&&l.left(f)):xt?(Mt&&(pt.data.y=p),St&&(pt.data.x=f),pt.setRatio(1)):(Mt&&(n.style.top=p+"px"),St&&(n.style.left=f+"px")),!x||t||_t||(_t=!0,lt(Dt,"drag","onDrag"),_t=!1)}tt=!1},Qt=function(t,i){var r;Dt.x,Dt.y,n._gsTransform||!xt&&!wt||e.set(n,{x:"+=0",overwrite:!1}),xt?(Dt.y=n._gsTransform.y,Dt.x=n._gsTransform.x):wt?Dt.x=Dt.rotation=n._gsTransform.rotation:l?(Dt.y=l.top(),Dt.x=l.left()):(Dt.y=parseInt(n.style.top,10)||0,Dt.x=parseInt(n.style.left,10)||0),!nt&&!rt||i||(nt&&(r=nt(Dt.x),r!==Dt.x&&(Dt.x=r,wt&&(Dt.rotation=r),tt=!0)),rt&&(r=rt(Dt.y),r!==Dt.y&&(Dt.y=r),tt=!0)),tt&&$t(!0),t||lt(Dt,"throwupdate","onThrowUpdate")},Zt=function(){var t,e,i,r;b=!1,l?(l.calibrate(),Dt.minX=A=-l.maxScrollLeft(),Dt.minY=F=-l.maxScrollTop(),Dt.maxX=T=Dt.maxY=R=0,b=!0):a.bounds&&(t=ht(a.bounds,n.parentNode),wt?(Dt.minX=A=t.left,Dt.maxX=T=t.left+t.width,Dt.minY=F=Dt.maxY=R=0):void 0!==a.bounds.maxX||void 0!==a.bounds.maxY?(t=a.bounds,Dt.minX=A=t.minX,Dt.minY=F=t.minY,Dt.maxX=T=t.maxX,Dt.maxY=R=t.maxY):(e=ht(n,n.parentNode),Dt.minX=A=ot(n,Tt)+t.left-e.left,Dt.minY=F=ot(n,Ct)+t.top-e.top,Dt.maxX=T=A+(t.width-e.width),Dt.maxY=R=F+(t.height-e.height)),A>T&&(Dt.minX=T,Dt.maxX=T=A,A=Dt.minX),F>R&&(Dt.minY=R,Dt.maxY=R=F,F=Dt.minY),wt&&(Dt.minRotation=A,Dt.maxRotation=T),b=!0),a.liveSnap&&(i=a.liveSnap===!0?a.snap||{}:a.liveSnap,r=i instanceof Array||"function"==typeof i,wt?(nt=se(r?i:i.rotation,A,T,1),rt=null):(St&&(nt=se(r?i:i.x||i.left||i.scrollLeft,A,T,l?-1:1)),Mt&&(rt=se(r?i:i.y||i.top||i.scrollTop,F,R,l?-1:1))))},Jt=function(){Dt.isThrowing=!1,lt(Dt,"throwcomplete","onThrowComplete")},Kt=function(){Dt.isThrowing=!1},te=function(t,e){var i,r,o,h;t&&s?(t===!0&&(i=a.snap||{},r=i instanceof Array||"function"==typeof i,t={resistance:(a.throwResistance||a.resistance||1e3)/(wt?10:1)},wt?t.rotation=Vt(Dt,r?i:i.rotation,T,A,1,e):(St&&(t[Tt]=Vt(Dt,r?i:i.x||i.left||i.scrollLeft,T,A,l?-1:1,e||"x"===Dt.lockedAxis)),Mt&&(t[Ct]=Vt(Dt,r?i:i.y||i.top||i.scrollTop,R,F,l?-1:1,e||"y"===Dt.lockedAxis)))),Dt.isThrowing=!0,h=isNaN(a.overshootTolerance)?1===a.edgeResistance?0:1-Dt.edgeResistance+.2:a.overshootTolerance,Dt.tween=o=s.to(l||n,{throwProps:t,ease:a.ease||m.Power3.easeOut,onComplete:Jt,onOverwrite:Kt,onUpdate:a.fastMode?lt:Qt,onUpdateParams:a.fastMode?[Dt,"onthrowupdate","onThrowUpdate"]:w},isNaN(a.maxDuration)?2:a.maxDuration,isNaN(a.minDuration)?0===h?0:.5:a.minDuration,h),a.fastMode||(l&&(l._suspendTransforms=!0),o.render(o.duration(),!0,!0),Qt(!0,!0),Dt.endX=Dt.x,Dt.endY=Dt.y,wt&&(Dt.endRotation=Dt.x),o.play(0),Qt(!0,!0),l&&(l._suspendTransforms=!1))):b&&Dt.applyBounds()},ee=function(t){var e,i,r,s,a,o,l,c,d,f=ut||[1,0,0,1,0,0];ut=kt(n.parentNode,!0),t&&Dt.isPressed&&f.join(",")!==ut.join(",")&&(e=f[0],i=f[1],r=f[2],s=f[3],a=f[4],o=f[5],l=e*s-i*r,c=h*(s/l)+u*(-r/l)+(r*o-s*a)/l,d=h*(-i/l)+u*(e/l)+-(e*o-i*a)/l,u=c*ut[1]+d*ut[3]+ut[5],h=c*ut[0]+d*ut[2]+ut[4]),ut[1]||ut[2]||1!=ut[0]||1!=ut[3]||0!=ut[4]||0!=ut[5]||(ut=null)},ie=function(){var t=1-Dt.edgeResistance;ee(!1),ut&&(h=Dt.pointerX*ut[0]+Dt.pointerY*ut[2]+ut[4],u=Dt.pointerX*ut[1]+Dt.pointerY*ut[3]+ut[5]),tt&&(le(Dt.pointerX,Dt.pointerY),$t(!0)),l?(Zt(),_=l.top(),c=l.left()):(ne()?(Qt(!0,!0),Zt()):Dt.applyBounds(),wt?(Q=Pt(n,{x:0,y:0}),Qt(!0,!0),c=Dt.x,_=Dt.y=Math.atan2(Q.y-Dt.pointerY,Dt.pointerX-Q.x)*C):(dt=n.parentNode?n.parentNode.scrollTop||0:0,ft=n.parentNode?n.parentNode.scrollLeft||0:0,_=ot(n,Ct),c=ot(n,Tt))),b&&t&&(c>T?c=T+(c-T)/t:A>c&&(c=A-(A-c)/t),wt||(_>R?_=R+(_-R)/t:F>_&&(_=F-(F-_)/t)))},ne=function(){return Dt.tween&&Dt.tween.isActive()},re=function(){!M.parentNode||ne()||Dt.isDragging||M.parentNode.removeChild(M)},se=function(t,e,i,n){return"function"==typeof t?function(r){var s=Dt.isPressed?1-Dt.edgeResistance:1;return t.call(Dt,r>i?i+(r-i)*s:e>r?e+(r-e)*s:r)*n}:t instanceof Array?function(n){for(var r,s,a=t.length,o=0,l=S;--a>-1;)r=t[a],s=r-n,0>s&&(s=-s),l>s&&r>=e&&i>=r&&(o=a,l=s);return t[o]}:isNaN(t)?function(t){return t}:function(){return t*n}},ae=function(t){var i;if(!(!o||Dt.isPressed||!t||("mousedown"===t.type||"pointerdown"===t.type)&&k()-Gt<30&&Lt[Dt.pointerEvent.type])){if(ct=ne(),Dt.pointerEvent=t,Lt[t.type]?(at=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:v,It(at,"touchend",he),It(at,"touchmove",oe),It(at,"touchcancel",he),It(v,"touchstart",Bt)):(at=null,It(v,"mousemove",oe)),mt=null,It(v,"mouseup",he),t&&t.target&&It(t.target,"mouseup",he),st=Xt.call(Dt,t.target)&&!a.dragClickables)return It(t.target,"change",he),lt(Dt,"press","onPress"),void zt(Ot,!0);if(gt=!(!at||St===Mt||l||Dt.vars.allowNativeTouchScrolling===!1)&&(St?"y":"x"),P?t=J(t,!0):gt||Dt.allowEventDefault||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()),t.changedTouches?(t=j=t.changedTouches[0],X=t.identifier):t.pointerId?X=t.pointerId:j=X=null,L++,z($t),u=Dt.pointerY=t.pageY,h=Dt.pointerX=t.pageX,(gt||Dt.autoScroll)&&Z(n.parentNode),n.parentNode&&(l||Dt.autoScroll&&!wt&&n.parentNode._gsMaxScrollX&&!M.parentNode)&&!n.getBBox&&(M.style.width=n.parentNode.scrollWidth+"px",n.parentNode.appendChild(M)),ie(),Dt.tween&&Dt.tween.kill(),Dt.isThrowing=!1,e.killTweensOf(l||n,!0,Nt),l&&e.killTweensOf(n,!0,{scrollTo:1}),Dt.tween=Dt.lockedAxis=null,(a.zIndexBoost||!wt&&!l&&a.zIndexBoost!==!1)&&(n.style.zIndex=Ut.zIndex++),Dt.isPressed=!0,x=!(!a.onDrag&&!Dt._listeners.drag),!wt)for(i=Ot.length;--i>-1;)et(Ot[i],"cursor",a.cursor||"move");lt(Dt,"press","onPress")}},oe=function(t){var e,i,n,s,a=t;if(o&&!r&&Dt.isPressed&&t){if(Dt.pointerEvent=t,e=t.changedTouches){if(t=e[0],t!==j&&t.identifier!==X){for(s=e.length;--s>-1&&(t=e[s]).identifier!==X;);if(0>s)return}}else if(t.pointerId&&X&&t.pointerId!==X)return;if(P)t=J(t,!0);else{if(at&&gt&&!mt&&(i=t.pageX,n=t.pageY,ut&&(s=i*ut[0]+n*ut[2]+ut[4],n=i*ut[1]+n*ut[3]+ut[5],i=s),mt=Math.abs(i-h)>Math.abs(n-u)&&St?"x":"y",Dt.vars.lockAxisOnTouchScroll!==!1&&(Dt.lockedAxis="x"===mt?"y":"x","function"==typeof Dt.vars.onLockAxis&&Dt.vars.onLockAxis.call(Dt,a)),I&&gt===mt))return void he(a);Dt.allowEventDefault||gt&&(!mt||gt===mt)||a.cancelable===!1||(a.preventDefault(),a.preventManipulation&&a.preventManipulation())}Dt.autoScroll&&(jt=!0),le(t.pageX,t.pageY)}},le=function(t,e){var i,n,r,s,a,o,l=1-Dt.dragResistance,d=1-Dt.edgeResistance;Dt.pointerX=t,Dt.pointerY=e,wt?(s=Math.atan2(Q.y-e,t-Q.x)*C,a=Dt.y-s,Dt.y=s,a>180?_-=360:-180>a&&(_+=360),r=c+(_-s)*l):(ut&&(o=t*ut[0]+e*ut[2]+ut[4],e=t*ut[1]+e*ut[3]+ut[5],t=o),n=e-u,i=t-h,At>n&&n>-At&&(n=0),At>i&&i>-At&&(i=0),(Dt.lockAxis||Dt.lockedAxis)&&(i||n)&&(o=Dt.lockedAxis,o||(Dt.lockedAxis=o=St&&Math.abs(i)>Math.abs(n)?"y":Mt?"x":null,o&&"function"==typeof Dt.vars.onLockAxis&&Dt.vars.onLockAxis.call(Dt,Dt.pointerEvent)),"y"===o?n=0:"x"===o&&(i=0)),r=c+i*l,s=_+n*l),nt||rt?(nt&&(r=nt(r)),rt&&(s=rt(s))):b&&(r>T?r=T+(r-T)*d:A>r&&(r=A+(r-A)*d),wt||(s>R?s=R+(s-R)*d:F>s&&(s=F+(s-F)*d))),wt||(r=Math.round(r),s=Math.round(s)),(Dt.x!==r||Dt.y!==s&&!wt)&&(wt?Dt.endRotation=Dt.x=Dt.endX=r:(Mt&&(Dt.y=Dt.endY=s),St&&(Dt.x=Dt.endX=r)),tt=!0,!Dt.isDragging&&Dt.isPressed&&(Dt.isDragging=!0,lt(Dt,"dragstart","onDragStart")))},he=function(t,i){if(o&&Dt.isPressed&&(!t||null==X||i||!(t.pointerId&&t.pointerId!==X||t.changedTouches&&!Ft(t.changedTouches,X)))){Dt.isPressed=!1;var r,s,l,h,u,c=t,d=Dt.isDragging,f=e.delayedCall(.001,re);if(at?(Et(at,"touchend",he),Et(at,"touchmove",oe),Et(at,"touchcancel",he),Et(v,"touchstart",Bt)):Et(v,"mousemove",oe),Et(v,"mouseup",he),t&&t.target&&Et(t.target,"mouseup",he),tt=!1,st)return t&&Et(t.target,"change",he),zt(Ot,!1),lt(Dt,"release","onRelease"),lt(Dt,"click","onClick"),void(st=!1);if(H($t),!wt)for(s=Ot.length;--s>-1;)et(Ot[s],"cursor",a.cursor||"move");if(d&&(Ht=E=k(),Dt.isDragging=!1),L--,t){if(P&&(t=J(t,!1)),r=t.changedTouches,r&&(t=r[0],t!==j&&t.identifier!==X)){for(s=r.length;--s>-1&&(t=r[s]).identifier!==X;);if(0>s)return}Dt.pointerEvent=c,Dt.pointerX=t.pageX,Dt.pointerY=t.pageY}return c&&!d?(ct&&(a.snap||a.bounds)&&te(a.throwProps),lt(Dt,"release","onRelease"),I&&"touchmove"===c.type||(lt(Dt,"click","onClick"),h=c.target||c.srcElement||n,Gt=k(),u=function(){Gt!==vt&&Dt.enabled()&&!Dt.isPressed&&(h.click?h.click():v.createEvent&&(l=v.createEvent("MouseEvents"),l.initMouseEvent("click",!0,!0,window,1,Dt.pointerEvent.screenX,Dt.pointerEvent.screenY,Dt.pointerX,Dt.pointerY,!1,!1,!1,!1,0,null),h.dispatchEvent(l)))},I||e.delayedCall(1e-5,u))):(te(a.throwProps),P||Dt.allowEventDefault||!c||!a.dragClickables&&Xt.call(Dt,c.target)||!d||gt&&(!mt||gt!==mt)||c.cancelable===!1||(c.preventDefault(),c.preventManipulation&&c.preventManipulation()),lt(Dt,"release","onRelease")),ne()&&f.duration(Dt.tween.duration()),d&&lt(Dt,"dragend","onDragEnd"),!0}},ue=function(t){if(t&&Dt.isDragging){var e=t.target||t.srcElement||n.parentNode,i=e.scrollLeft-e._gsScrollX,r=e.scrollTop-e._gsScrollY;(i||r)&&(ut?(h-=i*ut[0]+r*ut[2],u-=r*ut[3]+i*ut[1]):(h-=i,u-=r),e._gsScrollX+=i,e._gsScrollY+=r,le(Dt.pointerX,Dt.pointerY))}},ce=function(t){var e=k(),i=40>e-Gt,n=40>e-Ht,r=i&&vt===Gt,s=!!t.preventDefault,a=i&&yt===Gt,o=t.isTrusted||null==t.isTrusted&&i&&r;return s&&(r||n&&Dt.vars.suppressClickOnDrag!==!1)&&t.stopImmediatePropagation(),!i||r&&o===a?void((Dt.isPressed||n||i)&&(s?o&&t.detail&&i||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()):t.returnValue=!1)):(o&&r&&(yt=Gt),void(vt=Gt))};it=Ut.get(this.target),it&&it.kill(),this.startDrag=function(t){ae(t),Dt.isDragging||(Dt.isDragging=!0,lt(Dt,"dragstart","onDragStart"))},this.drag=oe,this.endDrag=function(t){he(t,!0)},this.timeSinceDrag=function(){return Dt.isDragging?0:(k()-Ht)/1e3},this.hitTest=function(t,e){return Ut.hitTest(Dt.target,t,e)},this.getDirection=function(t,e){var i,n,r,a,o,l,h="velocity"===t&&s?t:"object"!=typeof t||wt?"start":"element";return"element"===h&&(o=qt(Dt.target),l=qt(t)),i="start"===h?Dt.x-c:"velocity"===h?s.getVelocity(this.target,Tt):o.left+o.width/2-(l.left+l.width/2),wt?0>i?"counter-clockwise":"clockwise":(e=e||2,n="start"===h?Dt.y-_:"velocity"===h?s.getVelocity(this.target,Ct):o.top+o.height/2-(l.top+l.height/2),r=Math.abs(i/n),a=1/e>r?"":0>i?"left":"right",e>r&&(""!==a&&(a+="-"),a+=0>n?"up":"down"),a)},this.applyBounds=function(t){var e,i,r,s,o,l;if(t&&a.bounds!==t)return a.bounds=t,Dt.update(!0);if(Qt(!0),Zt(),b){if(e=Dt.x,i=Dt.y,e>T?e=T:A>e&&(e=A),i>R?i=R:F>i&&(i=F),(Dt.x!==e||Dt.y!==i)&&(r=!0,Dt.x=Dt.endX=e,wt?Dt.endRotation=e:Dt.y=Dt.endY=i,tt=!0,$t(!0),Dt.autoScroll&&!Dt.isDragging))for(Z(n.parentNode),s=n,N.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=y.scrollTop?y.scrollTop:v.body.scrollTop,N.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=y.scrollLeft?y.scrollLeft:v.body.scrollLeft;s&&!l;)l=$(s.parentNode),o=l?N:s.parentNode,Mt&&o.scrollTop>o._gsMaxScrollY&&(o.scrollTop=o._gsMaxScrollY),St&&o.scrollLeft>o._gsMaxScrollX&&(o.scrollLeft=o._gsMaxScrollX),s=o;Dt.isThrowing&&(r||Dt.endX>T||Dt.endX<A||Dt.endY>R||Dt.endY<F)&&te(a.throwProps,r)}return Dt},this.update=function(t,e,i){var r=Dt.x,s=Dt.y;return ee(!e),t?Dt.applyBounds():(tt&&i&&$t(!0),Qt(!0)),e&&(le(Dt.pointerX,Dt.pointerY),tt&&$t(!0)),Dt.isPressed&&!e&&(St&&Math.abs(r-Dt.x)>.01||Mt&&Math.abs(s-Dt.y)>.01&&!wt)&&ie(),Dt.autoScroll&&(Z(n.parentNode),jt=Dt.isDragging,$t(!0)),Dt.autoScroll&&(q(n,ue),G(n,ue)),Dt},this.enable=function(t){var r,h,u;if("soft"!==t){for(h=Ot.length;--h>-1;)u=Ot[h],It(u,"mousedown",ae),It(u,"touchstart",ae),It(u,"click",ce,!0),wt||et(u,"cursor",a.cursor||"move"),et(u,"touchCallout","none"),et(u,"touchAction",St===Mt||l?"none":St?"pan-y":"pan-x");zt(Ot,!1)}return G(n,ue),o=!0,s&&"soft"!==t&&s.track(l||n,xt?"x,y":wt?"rotation":"top,left"),l&&l.enable(),n._gsDragID=r="d"+O++,D[r]=this,l&&(l.element._gsDragID=r),e.set(n,{x:"+=0",overwrite:!1}),pt={t:n,data:P?Y:n._gsTransform,tween:{},setRatio:P?function(){e.set(n,W)}:i._internals.setTransformRatio||i._internals.set3DTransformRatio},ie(),Dt.update(!0),Dt},this.disable=function(t){var e,i,r=Dt.isDragging;if(!wt)for(e=Ot.length;--e>-1;)et(Ot[e],"cursor",null);if("soft"!==t){for(e=Ot.length;--e>-1;)i=Ot[e],et(i,"touchCallout",null),et(i,"touchAction",null),Et(i,"mousedown",ae),Et(i,"touchstart",ae),
  Et(i,"click",ce);zt(Ot,!0),at&&(Et(at,"touchcancel",he),Et(at,"touchend",he),Et(at,"touchmove",oe)),Et(v,"mouseup",he),Et(v,"mousemove",oe)}return q(n,ue),o=!1,s&&"soft"!==t&&s.untrack(l||n,xt?"x,y":wt?"rotation":"top,left"),l&&l.disable(),H($t),Dt.isDragging=Dt.isPressed=st=!1,r&&lt(Dt,"dragend","onDragEnd"),Dt},this.enabled=function(t,e){return arguments.length?t?Dt.enable(e):Dt.disable(e):o},this.kill=function(){return Dt.isThrowing=!1,e.killTweensOf(l||n,!0,Nt),Dt.disable(),delete D[n._gsDragID],Dt},-1!==bt.indexOf("scroll")&&(l=this.scrollProxy=new Yt(n,U({onKill:function(){Dt.isPressed&&he(null)}},a)),n.style.overflowY=Mt&&!Rt?"auto":"hidden",n.style.overflowX=St&&!Rt?"auto":"hidden",n=l.content),a.force3D!==!1&&e.set(n,{force3D:!0}),wt?Nt.rotation=1:(St&&(Nt[Tt]=1),Mt&&(Nt[Ct]=1)),wt?(W=g,Y=W.css,W.overwrite=!1):xt&&(W=St&&Mt?d:St?f:p,Y=W.css,W.overwrite=!1),this.enable()},jt=Ut.prototype=new t;jt.constructor=Ut,jt.pointerX=jt.pointerY=0,jt.isDragging=jt.isPressed=!1,Ut.version="0.14.8",Ut.zIndex=1e3,It(v,"touchcancel",function(){}),It(v,"contextmenu",function(t){var e;for(e in D)D[e].isPressed&&D[e].endDrag()}),Ut.create=function(t,i){"string"==typeof t&&(t=e.selector(t));for(var n=t&&0!==t.length?Dt(t)?Ot(t):[t]:[],r=n.length;--r>-1;)n[r]=new Ut(n[r],i);return n},Ut.get=function(t){return D[(K(t)||{})._gsDragID]},Ut.timeSinceDrag=function(){return(k()-E)/1e3};var Xt={},Gt=function(t){var e,i,n=0,r=0;for(t=K(t),e=t.offsetWidth,i=t.offsetHeight;t;)n+=t.offsetTop,r+=t.offsetLeft,t=t.offsetParent;return{top:n,left:r,width:e,height:i}},qt=function(t,e){if(t===window)return Xt.left=Xt.top=0,Xt.width=Xt.right=y.clientWidth||t.innerWidth||v.body.clientWidth||0,Xt.height=Xt.bottom=(t.innerHeight||0)-20<y.clientHeight?y.clientHeight:t.innerHeight||v.body.clientHeight||0,Xt;var i=t.pageX!==e?{left:t.pageX-X(),top:t.pageY-j(),right:t.pageX-X()+1,bottom:t.pageY-j()+1}:t.nodeType||t.left===e||t.top===e?P?Gt(t):K(t).getBoundingClientRect():t;return i.right===e&&i.width!==e?(i.right=i.left+i.width,i.bottom=i.top+i.height):i.width===e&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i};return Ut.hitTest=function(t,e,i){if(t===e)return!1;var n,r,s,a=qt(t),o=qt(e),l=o.left>a.right||o.right<a.left||o.top>a.bottom||o.bottom<a.top;return l||!i?!l:(s=-1!==(i+"").indexOf("%"),i=parseFloat(i)||0,n={left:Math.max(a.left,o.left),top:Math.max(a.top,o.top)},n.width=Math.min(a.right,o.right)-n.left,n.height=Math.min(a.bottom,o.bottom)-n.top,!(n.width<0||n.height<0)&&(s?(i*=.01,r=n.width*n.height,r>=a.width*a.height*i||r>=o.width*o.height*i):n.width>i&&n.height>i))},M.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",Ut},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite","CSSPlugin"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=e())}("Draggable");/*!
   * VERSION: 0.4.0
   * DATE: 2016-07-09
   * UPDATES AND DOCS AT: http://greensock.com
   *
   * @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
   * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use
   * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
   * This work is subject to the software agreement that was issued with your membership.
   * 
   * @author: Jack Doyle, jack@greensock.com
   */
  var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;!function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,n=t.split("."),r=e;for(i=0;i<n.length;i++)r[n[i]]=r=r[n[i]]||{};return r},n=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},s=document,a=s.defaultView?s.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,l=function(t,e,i,n){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),n?r:parseInt(r,10)||0},h=function(t){return!!(t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))},u=function(t){var e,i,n,r=[],s=t.length;for(e=0;s>e;e++)if(i=t[e],h(i))for(n=i.length,n=0;n<i.length;n++)r.push(i[n]);else r.push(i);return r},c=/(?:\r|\n|\s\s|\t\t)/g,d=")eefec303079ad17405c",f=/(?:<br>|<br\/>|<br \/>)/gi,p=s.all&&!s.addEventListener,g=" style='position:relative;display:inline-block;"+(p?"*display:inline;*zoom:1;'":"'"),m=function(t,e){t=t||"";var i=-1!==t.indexOf("++"),n=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+g+(t?" class='"+t+(i?n++:"")+"'>":">")}},_=n.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=_.selector(t)),!t)throw"cannot split a null element.";this.elements=h(t)?u(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},v=function(t,e,i){var n=t.nodeType;if(1===n||9===n||11===n)for(t=t.firstChild;t;t=t.nextSibling)v(t,e,i);else(3===n||4===n)&&(t.nodeValue=t.nodeValue.split(e).join(i))},y=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},b=function(t,e,i,n,o){f.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(f,d));var h,u,p,g,_,b,x,w,T,C,S,k,P,M,A=r(t),D=e.span?"span":"div",O=e.type||e.split||"chars,words,lines",R=-1!==O.indexOf("lines")?[]:null,L=-1!==O.indexOf("words"),I=-1!==O.indexOf("chars"),E="absolute"===e.position||e.absolute===!0,F=e.wordDelimiter||" ",N=" "!==F?"":E?"&#173; ":" ",B=-999,V=a(t),W=l(t,"paddingLeft",V),z=l(t,"borderBottomWidth",V)+l(t,"borderTopWidth",V),H=l(t,"borderLeftWidth",V)+l(t,"borderRightWidth",V),Y=l(t,"paddingTop",V)+l(t,"paddingBottom",V),U=l(t,"paddingLeft",V)+l(t,"paddingRight",V),j=l(t,"textAlign",V,!0),X=.2*l(t,"fontSize"),G=t.clientHeight,q=t.clientWidth,$=e.span?"</span>":"</div>",Q=m(e.wordsClass,D),Z=m(e.charsClass,D),J=-1!==(e.linesClass||"").indexOf("++"),K=e.linesClass,tt=-1!==A.indexOf("<"),et=!0,it=[],nt=[],rt=[];for(0!=!e.reduceWhiteSpace&&(A=A.replace(c,"")),J&&(K=K.split("++").join("")),tt&&(A=A.split("<").join("{{LT}}")),h=A.length,g=Q(),_=0;h>_;_++)if(x=A.charAt(_),")"===x&&A.substr(_,20)===d)g+=(et?$:"")+"<BR/>",et=!1,_!==h-20&&A.substr(_+20,20)!==d&&(g+=" "+Q(),et=!0),_+=19;else if(x===F&&A.charAt(_-1)!==F&&_!==h-1&&A.substr(_-20,20)!==d){for(g+=et?$:"",et=!1;A.charAt(_+1)===F;)g+=N,_++;(")"!==A.charAt(_+1)||A.substr(_+1,20)!==d)&&(g+=N+Q(),et=!0)}else"{"===x&&"{{LT}}"===A.substr(_,6)?(g+=I?Z()+"{{LT}}</"+D+">":"{{LT}}",_+=5):g+=I&&" "!==x?Z()+x+"</"+D+">":x;for(t.innerHTML=g+(et?$:""),tt&&v(t,"{{LT}}","<"),b=t.getElementsByTagName("*"),h=b.length,w=[],_=0;h>_;_++)w[_]=b[_];if(R||E)for(_=0;h>_;_++)T=w[_],p=T.parentNode===t,(p||E||I&&!L)&&(C=T.offsetTop,R&&p&&Math.abs(C-B)>X&&"BR"!==T.nodeName&&(u=[],R.push(u),B=C),E&&(T._x=T.offsetLeft,T._y=C,T._w=T.offsetWidth,T._h=T.offsetHeight),R&&(L!==p&&I||(u.push(T),T._x-=W),p&&_&&(w[_-1]._wordEnd=!0),"BR"===T.nodeName&&T.nextSibling&&"BR"===T.nextSibling.nodeName&&R.push([])));for(_=0;h>_;_++)T=w[_],p=T.parentNode===t,"BR"!==T.nodeName?(E&&(k=T.style,L||p||(T._x+=T.parentNode._x,T._y+=T.parentNode._y),k.left=T._x+"px",k.top=T._y+"px",k.position="absolute",k.display="block",k.width=T._w+1+"px",k.height=T._h+"px"),L?p&&""!==T.innerHTML?nt.push(T):I&&it.push(T):p?(t.removeChild(T),w.splice(_--,1),h--):!p&&I&&(C=!R&&!E&&T.nextSibling,t.appendChild(T),C||t.appendChild(s.createTextNode(" ")),it.push(T))):R||E?(t.removeChild(T),w.splice(_--,1),h--):L||t.appendChild(T);if(R){for(E&&(S=s.createElement(D),t.appendChild(S),P=S.offsetWidth+"px",C=S.offsetParent===t?0:t.offsetLeft,t.removeChild(S)),k=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(M=" "===F&&(!E||!L&&!I),_=0;_<R.length;_++){for(u=R[_],S=s.createElement(D),S.style.cssText="display:block;text-align:"+j+";position:"+(E?"absolute;":"relative;"),K&&(S.className=K+(J?_+1:"")),rt.push(S),h=u.length,b=0;h>b;b++)"BR"!==u[b].nodeName&&(T=u[b],S.appendChild(T),M&&(T._wordEnd||L)&&S.appendChild(s.createTextNode(" ")),E&&(0===b&&(S.style.top=T._y+"px",S.style.left=W+C+"px"),T.style.top="0px",C&&(T.style.left=T._x-C+"px")));0===h&&(S.innerHTML="&nbsp;"),L||I||(S.innerHTML=r(S).split(String.fromCharCode(160)).join(" ")),E&&(S.style.width=P,S.style.height=T._h+"px"),t.appendChild(S)}t.style.cssText=k}E&&(G>t.clientHeight&&(t.style.height=G-Y+"px",t.clientHeight<G&&(t.style.height=G+z+"px")),q>t.clientWidth&&(t.style.width=q-U+"px",t.clientWidth<q&&(t.style.width=q+H+"px"))),y(i,it),y(n,nt),y(o,rt)},x=_.prototype;x.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,b(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},x.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},_.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(_.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},_.version="0.4.0"}(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText");
  //# sourceMappingURL=main.min.js.map
  