kute.js/demo/src/kute-extra.min.js
thednp 0b7fd91bab Changes, lots of them:
* Updated SVGPathCommander to make use of the new features, the SVG morph components can now process paths in Node.js
* svgCubicMorph component now can morph lines properly, as shown in the updated demo
* svgMorph component also updated
* documentation updates for more clarity with the morph components
2020-09-23 18:59:39 +00:00

3 lines
53 KiB
JavaScript

// KUTE.js Extra v2.0.16 | thednp © 2020 | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).KUTE=e()}(this,(function(){"use strict";var t={},e=[],n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r={},i={},a={};a.now=self.performance.now.bind(self.performance);var s=0,o=function(t){for(var n=0;n<e.length;)e[n].update(t)?n++:e.splice(n,1);s=requestAnimationFrame(o)};function u(){setTimeout((function(){if(!e.length&&s){for(var n in cancelAnimationFrame(s),s=null,i)if("function"==typeof i[n])t[n]&&delete t[n];else for(var a in i[n])t[a]&&delete t[a];for(var o in r)t[o]&&delete t[o]}}),64)}var l={Tick:s,Ticker:o,Tweens:e,Time:a};for(var c in l)t[c]||(t[c]="Time"===c?a.now:l[c]);n._KUTE=t;var p={},h={},f={duration:700,delay:0,easing:"linear"},d={},v={},g={},m={},y={},w={supportedProperties:p,defaultValues:h,defaultOptions:f,prepareProperty:d,prepareStart:v,crossCheck:g,onStart:i,onComplete:m,linkProperty:y},b={},x={};function S(t){return e.push(t)}function M(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function T(){var e=this,n=function(n){var r=y[n],i=p[n];for(var a in r)if("function"==typeof r[a]&&Object.keys(e.valuesEnd).some((function(t){return i&&i.includes(t)||"attr"===t&&Object.keys(e.valuesEnd[t]).some((function(t){return i&&i.includes(t)}))})))!t[a]&&(t[a]=r[a]);else for(var s in e.valuesEnd)for(var o in e.valuesEnd[s])if("function"==typeof r[o])!t[o]&&(t[o]=r[o]);else for(var u in r[a])r[o]&&"function"==typeof r[o][u]&&!t[u]&&(t[u]=r[o][u])};for(var r in y)n(r)}var C={add:S,remove:M,getAll:function(){return e},removeAll:function(){e.length=0},stop:u,linkInterpolation:T};function _(t){if(t.style){var e=t.style.cssText.replace(/\s/g,"").split(";"),n={},r=["translate3d","translate","scale3d","skew"];return e.map((function(t){/transform/i.test(t)&&t.split(":")[1].split(")").map((function(t){var e=t.split("("),i=e[0],a=e[1];/matrix/.test(i)||(n[i]=r.includes(i)?a.split(","):a)}))})),n}}function E(t,e){var n=t.style,r=getComputedStyle(t)||t.currentStyle,i=n[e]&&!/auto|initial|none|unset/.test(n[e])?n[e]:r[e];if("transform"!==e&&(e in r||e in n))return i||h[e]}function I(t,e){var n="start"===e?this.valuesStart:this.valuesEnd;for(var r in d){var i=d[r],a=p[r];for(var s in i){var o={};for(var u in t)h[u]&&i[u]?n[u]=i[u].call(this,u,t[u]):!h[s]&&"transform"===s&&a.includes(u)?o[u]=t[u]:h[u]||"transform"!==u?!h[s]&&a&&a.includes(u)&&(n[u]=i[s].call(this,u,t[u])):n[u]=t[u];Object.keys&&Object.keys(o).length&&(n[s]=i[s].call(this,s,o))}}}function A(){var t={},e=_(this.element);for(var n in this.valuesStart)for(var r in v){var i=v[r];for(var a in i)(a===n&&i[n]||p[r]&&p[r].includes(n))&&(t[n]=i[a].call(this,n,this.valuesStart[n]))}for(var s in e)s in this.valuesStart||(t[s]=e[s]||h[s]);this.valuesStart={},I.call(this,t,"start")}var k={getInlineStyle:_,getStyleForProperty:E,getStartValues:A,prepareObject:I},O=function(t,e,n,r,i){var a=this;this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by;var s=function(t){return a.sampleCurveY(a.solveCurveX(t))};return Object.defineProperty(s,"name",{writable:!0}),s.name=i||"cubic-bezier("+[t,e,n,r]+")",s};O.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},O.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},O.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},O.prototype.solveCurveX=function(t){var e,n,r,i,a,s,o=1e-5;for(r=t,s=0;s<32;s++){if(i=this.sampleCurveX(r)-t,Math.abs(i)<o)return r;if(a=this.sampleCurveDerivativeX(r),Math.abs(a)<o)break;r-=i/a}if((r=t)<(e=0))return e;if(r>(n=1))return n;for(;e<n;){if(i=this.sampleCurveX(r),Math.abs(i-t)<o)return r;t>i?e=r:n=r,r=.5*(n-e)+e}return r};var P={},V={linear:new O(0,0,1,1,"linear"),easingSinusoidalIn:new O(.47,0,.745,.715,"easingSinusoidalIn"),easingSinusoidalOut:new O(.39,.575,.565,1,"easingSinusoidalOut"),easingSinusoidalInOut:new O(.445,.05,.55,.95,"easingSinusoidalInOut"),easingQuadraticIn:new O(.55,.085,.68,.53,"easingQuadraticIn"),easingQuadraticOut:new O(.25,.46,.45,.94,"easingQuadraticOut"),easingQuadraticInOut:new O(.455,.03,.515,.955,"easingQuadraticInOut"),easingCubicIn:new O(.55,.055,.675,.19,"easingCubicIn"),easingCubicOut:new O(.215,.61,.355,1,"easingCubicOut"),easingCubicInOut:new O(.645,.045,.355,1,"easingCubicInOut"),easingQuarticIn:new O(.895,.03,.685,.22,"easingQuarticIn"),easingQuarticOut:new O(.165,.84,.44,1,"easingQuarticOut"),easingQuarticInOut:new O(.77,0,.175,1,"easingQuarticInOut"),easingQuinticIn:new O(.755,.05,.855,.06,"easingQuinticIn"),easingQuinticOut:new O(.23,1,.32,1,"easingQuinticOut"),easingQuinticInOut:new O(.86,0,.07,1,"easingQuinticInOut"),easingExponentialIn:new O(.95,.05,.795,.035,"easingExponentialIn"),easingExponentialOut:new O(.19,1,.22,1,"easingExponentialOut"),easingExponentialInOut:new O(1,0,0,1,"easingExponentialInOut"),easingCircularIn:new O(.6,.04,.98,.335,"easingCircularIn"),easingCircularOut:new O(.075,.82,.165,1,"easingCircularOut"),easingCircularInOut:new O(.785,.135,.15,.86,"easingCircularInOut"),easingBackIn:new O(.6,-.28,.735,.045,"easingBackIn"),easingBackOut:new O(.175,.885,.32,1.275,"easingBackOut"),easingBackInOut:new O(.68,-.55,.265,1.55,"easingBackInOut")};function L(t,e){try{return e?t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array&&t.every((function(t){return t instanceof Element}))?t:document.querySelectorAll(t):t instanceof Element||t===window?t:document.querySelector(t)}catch(e){console.error("KUTE.js - Element(s) not found: "+t+".")}}function j(){for(var t in i)if("function"==typeof i[t])i[t].call(this,t);else for(var e in i[t])i[t][e].call(this,e);T.call(this)}P.processEasing=function(t){if("function"==typeof t)return t;if("function"==typeof V[t])return V[t];if(/bezier/.test(t)){var e=t.replace(/bezier|\s|\(|\)/g,"").split(",");return new O(1*e[0],1*e[1],1*e[2],1*e[3])}return/elastic|bounce/i.test(t)&&console.warn("KUTE.js - CubicBezier doesn't support "+t+" easing."),V.linear};var U=function(e,n,r,a){for(var s in this.element=e,this.playing=!1,this._startTime=null,this._startFired=!1,this.valuesEnd=r,this.valuesStart=n,a=a||{},this._resetStart=a.resetStart||0,this._easing="function"==typeof a.easing?a.easing:P.processEasing(a.easing),this._duration=a.duration||f.duration,this._delay=a.delay||f.delay,a){var o="_"+s;o in this||(this[o]=a[s])}var u=this._easing.name;return i[u]||(i[u]=function(e){!t[e]&&e===this._easing.name&&(t[e]=this._easing)}),this};U.prototype.start=function(e){return S(this),this.playing=!0,this._startTime=void 0!==e?e:t.Time(),this._startTime+=this._delay,this._startFired||(this._onStart&&this._onStart.call(this),j.call(this),this._startFired=!0),!s&&o(),this},U.prototype.stop=function(){return this.playing&&(M(this),this.playing=!1,this._onStop&&this._onStop.call(this),this.close()),this},U.prototype.close=function(){for(var t in m)for(var e in m[t])m[t][e].call(this,e);this._startFired=!1,u.call(this)},U.prototype.chain=function(t){return this._chain=[],this._chain=t.length?t:this._chain.concat(t),this},U.prototype.stopChainedTweens=function(){this._chain&&this._chain.length&&this._chain.map((function(t){return t.stop()}))},U.prototype.update=function(e){var n,r;if((e=void 0!==e?e:t.Time())<this._startTime&&this.playing)return!0;for(var i in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[i](this.element,this.valuesStart[i],this.valuesEnd[i],r);return this._onUpdate&&this._onUpdate.call(this),1!==n||(this._onComplete&&this._onComplete.call(this),this.playing=!1,this.close(),void 0!==this._chain&&this._chain.length&&this._chain.map((function(t){return t.start()})),!1)},P.tween=U,f.repeat=0,f.repeatDelay=0,f.yoyo=!1,f.resetStart=!1;var F=function(e){function n(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];e.apply(this,t),this.valuesStart={},this.valuesEnd={};var r=t[1],i=t[2];if(I.call(this,i,"end"),this._resetStart?this.valuesStart=r:I.call(this,r,"start"),!this._resetStart)for(var a in g)for(var s in g[a])g[a][s].call(this,s);this.paused=!1,this._pauseTime=null;var o=t[3];return this._repeat=o.repeat||f.repeat,this._repeatDelay=o.repeatDelay||f.repeatDelay,this._repeatOption=this._repeat,this.valuesRepeat={},this._yoyo=o.yoyo||f.yoyo,this._reversed=!1,this}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.start=function(t){if(this._resetStart)for(var n in this.valuesStart=this._resetStart,A.call(this),g)for(var r in g[n])g[n][r].call(this,r);if(this.paused=!1,this._yoyo)for(var i in this.valuesEnd)this.valuesRepeat[i]=this.valuesStart[i];return e.prototype.start.call(this,t),this},n.prototype.stop=function(){return e.prototype.stop.call(this),!this.paused&&this.playing&&(this.paused=!1,this.stopChainedTweens()),this},n.prototype.close=function(){return e.prototype.close.call(this),this._repeatOption>0&&(this._repeat=this._repeatOption),this._yoyo&&!0===this._reversed&&(this.reverse(),this._reversed=!1),this},n.prototype.resume=function(){return this.paused&&this.playing&&(this.paused=!1,void 0!==this._onResume&&this._onResume.call(this),j.call(this),this._startTime+=t.Time()-this._pauseTime,S(this),!s&&o()),this},n.prototype.pause=function(){return!this.paused&&this.playing&&(M(this),this.paused=!0,this._pauseTime=t.Time(),void 0!==this._onPause&&this._onPause.call(this)),this},n.prototype.reverse=function(){for(var t in this.valuesEnd){var e=this.valuesRepeat[t];this.valuesRepeat[t]=this.valuesEnd[t],this.valuesEnd[t]=e,this.valuesStart[t]=this.valuesRepeat[t]}},n.prototype.update=function(e){var n,r;if((e=void 0!==e?e:t.Time())<this._startTime&&this.playing)return!0;for(var i in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[i](this.element,this.valuesStart[i],this.valuesEnd[i],r);return this._onUpdate&&this._onUpdate.call(this),1!==n||(this._repeat>0?(isFinite(this._repeat)&&this._repeat--,this._startTime=isFinite(this._repeat)&&this._yoyo&&!this._reversed?e+this._repeatDelay:e,this._yoyo&&(this._reversed=!this._reversed,this.reverse()),!0):(this._onComplete&&this._onComplete.call(this),this.playing=!1,this.close(),void 0!==this._chain&&this._chain.length&&this._chain.map((function(t){return t.start()})),!1))},n}(U);P.tween=F;var q=function(t){function e(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.apply(this,e),this}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.to=function(t,e){},e.prototype.fromTo=function(t,e){},e.prototype.getTotalDuration=function(){},e.prototype.on=function(t,e){["start","stop","update","complete","pause","resume"].indexOf(t)>-1&&(this["_on"+(t.charAt(0).toUpperCase()+t.slice(1))]=e)},e.prototype.option=function(t,e){this["_"+t]=e},e}(F);P.tween=q;var N=function(t,e,n,r){var i=this;this.tweens=[],!("offset"in f)&&(f.offset=0),(r=r||{}).delay=r.delay||f.delay;var a=[];return Array.from(t).map((function(t,s){a[s]=r||{},a[s].delay=s>0?r.delay+(r.offset||f.offset):r.delay,t instanceof Element?i.tweens.push(new P.tween(t,e,n,a[s])):console.error("KUTE.js - "+t+" not instanceof [Element]")})),this.length=this.tweens.length,this};N.prototype.start=function(e){return e=void 0===e?t.Time():e,this.tweens.map((function(t){return t.start(e)})),this},N.prototype.stop=function(){return this.tweens.map((function(t){return t.stop(time)})),this},N.prototype.pause=function(){return this.tweens.map((function(t){return t.pause(time)})),this},N.prototype.resume=function(){return this.tweens.map((function(t){return t.resume(time)})),this},N.prototype.chain=function(t){var e=this.tweens[this.length-1];if(t instanceof N)e.chain(t.tweens);else{if(!(t instanceof P.tween))throw new TypeError("KUTE.js - invalid chain value");e.chain(t)}return this},N.prototype.playing=function(){return this.tweens.some((function(t){return t.playing}))},N.prototype.removeTweens=function(){this.tweens=[]},N.prototype.getMaxDuration=function(){var t=[];return this.tweens.forEach((function(e){t.push(e._duration+e._delay+e._repeat*e._repeatDelay)})),Math.max(t)};var H=function(t,e){if(this.element=L(t),this.element.tween=e,this.element.tween.toolbar=this.element,this.element.toolbar=this,this.element.output=this.element.parentNode.getElementsByTagName("OUTPUT")[0],!(this.element instanceof HTMLInputElement))throw TypeError("Target element is not [HTMLInputElement]");if("range"!==this.element.type)throw TypeError("Target element is not a range input");if(!(e instanceof P.tween))throw TypeError("tween parameter is not ["+P.tween+"]");this.element.setAttribute("value",0),this.element.setAttribute("min",0),this.element.setAttribute("max",1),this.element.setAttribute("step",1e-4),this.element.tween._onUpdate=this.updateBar,this.element.addEventListener("mousedown",this.downAction,!1)};H.prototype.updateBar=function(){var e=this.toolbar.output,n=this.paused?this.toolbar.value:(t.Time()-this._startTime)/this._duration;n=n>.9999?1:n<.01?0:n;var r=this._reversed?1-n:n;this.toolbar.value=r,e&&(e.value=(100*r).toFixed(2)+"%")},H.prototype.toggleEvents=function(t){this.element[t+"EventListener"]("mousemove",this.moveAction,!1),this.element[t+"EventListener"]("mouseup",this.upAction,!1)},H.prototype.updateTween=function(){var t=(this.tween._reversed?1-this.value:this.value)*this.tween._duration-1e-4;this.tween._startTime=0,this.tween.update(t)},H.prototype.moveAction=function(){this.toolbar.updateTween.call(this)},H.prototype.downAction=function(){this.tween.playing||this.tween.start(),this.tween.paused||(this.tween.pause(),this.toolbar.toggleEvents("add"),t.Tick=cancelAnimationFrame(t.Ticker))},H.prototype.upAction=function(){this.tween.paused&&(this.tween.paused&&this.tween.resume(),this.tween._startTime=t.Time()-(this.tween._reversed?1-this.value:this.value)*this.tween._duration,this.toolbar.toggleEvents("remove"),t.Tick=requestAnimationFrame(t.Ticker))};var D=function(t){try{t.component in p?console.error("KUTE.js - "+t.component+" already registered"):t.property in h?console.error("KUTE.js - "+t.property+" already registered"):this.setComponent(t)}catch(t){console.error(t)}};D.prototype.setComponent=function(t){var e=this,n=t.component,a={prepareProperty:d,prepareStart:v,onStart:i,onComplete:m,crossCheck:g},s=t.category,o=t.property,u=t.properties&&t.properties.length||t.subProperties&&t.subProperties.length;if(p[n]=t.properties||t.subProperties||t.property,"defaultValue"in t)h[o]=t.defaultValue,e.supports=o+" property";else if(t.defaultValues){for(var l in t.defaultValues)h[l]=t.defaultValues[l];e.supports=(u||o)+" "+(o||s)+" properties"}if(t.defaultOptions)for(var c in t.defaultOptions)f[c]=t.defaultOptions[c];if(t.functions)for(var w in a)if(w in t.functions)if("function"==typeof t.functions[w])!a[w][n]&&(a[w][n]={}),!a[w][n][s||o]&&(a[w][n][s||o]=t.functions[w]);else for(var x in t.functions[w])!a[w][n]&&(a[w][n]={}),!a[w][n][x]&&(a[w][n][x]=t.functions[w][x]);if(t.Interpolate){for(var S in t.Interpolate){var M=t.Interpolate[S];if("function"!=typeof M||r[S])for(var T in M)"function"!=typeof M[T]||r[S]||(r[S]=M[T]);else r[S]=M}y[n]=t.Interpolate}if(t.Util)for(var C in t.Util)!b[C]&&(b[C]=t.Util[C]);return e};var R=function(t){function e(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];t.apply(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setComponent=function(e){t.prototype.setComponent.call(this,e);var n=this,a={prepareProperty:d,prepareStart:v,onStart:i,onComplete:m,crossCheck:g},s=e.category,o=e.property,u=e.properties&&e.properties.length||e.subProperties&&e.subProperties.length;if("defaultValue"in e?(n.supports=o+" property",n.defaultValue=(e.defaultValue+"").length?"YES":"not set or incorrect"):e.defaultValues&&(n.supports=(u||o)+" "+(o||s)+" properties",n.defaultValues=Object.keys(e.defaultValues).length===u?"YES":"Not set or incomplete"),e.defaultOptions){for(var l in n.extends=[],e.defaultOptions)n.extends.push(l);n.extends.length?n.extends="with <"+n.extends.join(", ")+"> new option(s)":delete n.extends}if(e.functions){for(var c in n.interface=[],n.render=[],n.warning=[],a)c in e.functions?("prepareProperty"===c&&n.interface.push("fromTo()"),"prepareStart"===c&&n.interface.push("to()"),"onStart"===c&&(n.render="can render update")):("prepareProperty"===c&&n.warning.push("fromTo()"),"prepareStart"===c&&n.warning.push("to()"),"onStart"===c&&(n.render="no function to render update"));n.interface.length?n.interface=(s||o)+" can use ["+n.interface.join(", ")+"] method(s)":delete n.uses,n.warning.length?n.warning=(s||o)+" can't use ["+n.warning.join(", ")+"] method(s) because values aren't processed":delete n.warning}if(e.Interpolate){for(var p in n.uses=[],n.adds=[],e.Interpolate){var h=e.Interpolate[p];if("function"==typeof h)r[p]||n.adds.push(""+p),n.uses.push(""+p);else for(var f in h)"function"!=typeof h[f]||r[p]||n.adds.push(""+f),n.uses.push(""+f)}n.uses.length?n.uses="["+n.uses.join(", ")+"] interpolation function(s)":delete n.uses,n.adds.length?n.adds="new ["+n.adds.join(", ")+"] interpolation function(s)":delete n.adds}else n.critical="For "+(o||s)+" no interpolation function[s] is set";return e.Util&&(n.hasUtil=Object.keys(e.Util).join(",")),n},e}(D);function B(t,e,n){return(t=+t)+(e-=t)*n}function Q(t,e){for(var n,r=parseInt(t)||0,i=["px","%","deg","rad","em","rem","vh","vw"],a=0;a<i.length;a++)if("string"==typeof t&&t.includes(i[a])){n=i[a];break}return{v:r,u:n=void 0!==n?n:e?"deg":"px"}}var z={prepareStart:function(t){return E(this.element,t)||h[t]},prepareProperty:function(t,e){if(e instanceof Array){var n=Q(e[0]).v,r=Q(e[1]).v;return[NaN!==n?n:50,NaN!==r?r:50]}var i=e.replace(/top|left/g,0).replace(/right|bottom/g,100).replace(/center|middle/g,50);return[Q((i=2===(i=i.split(/(\,|\s)/g)).length?i:[i[0],50])[0]).v,Q(i[1]).v]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=(100*B(n[0],r[0],i)>>0)/100+"% "+(100*B(n[1],r[1],i)>>0)/100+"%"})}},X={component:"backgroundPositionProp",property:"backgroundPosition",defaultValue:[50,50],Interpolate:{numbers:B},functions:z,Util:{trueDimension:Q}};function Y(t,e,n,r){return(t=+t)+(e-=t)*r+n}function W(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=Y(n.v,r.v,r.u,i)})}x.BackgroundPosition=X;var K=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],$={};K.map((function(t){return $[t]=0}));var G={};K.forEach((function(t){G[t]=W}));var Z={component:"borderRadiusProperties",category:"borderRadius",properties:K,defaultValues:$,Interpolate:{units:Y},functions:{prepareStart:function(t){return E(this.element,t)||h[t]},prepareProperty:function(t,e){return Q(e)},onStart:G},Util:{trueDimension:Q}};function J(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=(i>.99||i<.01?(10*B(n,r,i)>>0)/10:B(n,r,i)>>0)+"px"})}x.BorderRadiusProperties=Z;var tt=["top","left","width","height","right","bottom","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","margin","marginTop","marginBottom","marginLeft","marginRight","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth"],et={};tt.map((function(t){return et[t]=0}));var nt={};tt.map((function(t){return nt[t]=J}));var rt={component:"boxModelProperties",category:"boxModel",properties:tt,defaultValues:et,Interpolate:{numbers:B},functions:{prepareStart:function(t){return E(this.element,t)||h[t]},prepareProperty:function(t,e){var n=Q(e),r="height"===t?"offsetHeight":"offsetWidth";return"%"===n.u?n.v*this.element[r]/100:n.v},onStart:nt}};x.BoxModelProperties=rt;var it={prepareStart:function(t,e){var n=E(this.element,t),r=E(this.element,"width"),i=E(this.element,"height");return/rect/.test(n)?n:[0,r,i,0]},prepareProperty:function(t,e){if(e instanceof Array)return[Q(e[0]),Q(e[1]),Q(e[2]),Q(e[3])];var n=e.replace(/rect|\(|\)/g,"");return[Q((n=/\,/g.test(n)?n.split(/\,/g):n.split(/\s/g))[0]),Q(n[1]),Q(n[2]),Q(n[3])]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,e,n,r){for(var i=0,a=[];i<4;i++){var s=e[i].v,o=n[i].v,u=n[i].u||"px";a[i]=(100*B(s,o,r)>>0)/100+u}t.style.clip="rect("+a+")"})}},at={component:"clipProperty",property:"clip",defaultValue:[0,0,0,0],Interpolate:{numbers:B},functions:it,Util:{trueDimension:Q}};function st(t){if(/rgb|rgba/.test(t)){var e=t.replace(/\s|\)/,"").split("(")[1].split(","),n=e[3]?e[3]:null;return n?{r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2]),a:parseFloat(n)}:{r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2])}}if(/^#/.test(t)){var r=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(t);return{r:r.r,g:r.g,b:r.b}}if(/transparent|none|initial|inherit/.test(t))return{r:0,g:0,b:0,a:0};if(!/^#|^rgb/.test(t)){var i=document.getElementsByTagName("head")[0];i.style.color=t;var a=getComputedStyle(i,null).color;return a=/rgb/.test(a)?a.replace(/[^\d,]/g,"").split(","):[0,0,0],i.style.color="",{r:parseInt(a[0]),g:parseInt(a[1]),b:parseInt(a[2])}}}function ot(t,e,n){var r,i={},a=",";for(r in e)i[r]="a"!==r?B(t[r],e[r],n)>>0||0:t[r]&&e[r]?(100*B(t[r],e[r],n)>>0)/100:null;return i.a?"rgba("+i.r+a+i.g+a+i.b+a+i.a+")":"rgb("+i.r+a+i.g+a+i.b+")"}function ut(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=ot(n,r,i)})}x.ClipProperty=at;var lt=["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],ct={};lt.map((function(t){ct[t]="#000"}));var pt={};lt.map((function(t){return pt[t]=ut}));var ht={component:"colorProperties",category:"colors",properties:lt,defaultValues:ct,Interpolate:{numbers:B,colors:ot},functions:{prepareStart:function(t,e){return E(this.element,t)||h[t]},prepareProperty:function(t,e){return st(e)},onStart:pt},Util:{trueColor:st}};function ft(t,e,n){for(var r=[],i=0;i<3;i++)r[i]=(100*B(t[i],e[i],n)>>0)/100+"px";return"drop-shadow("+r.concat(ot(t[3],e[3],n)).join(" ")+")"}function dt(t){return t.replace("-r","R").replace("-s","S")}function vt(t){var e;3===t.length?e=[t[0],t[1],0,t[2]]:4===t.length&&(e=[t[0],t[1],t[2],t[3]]);for(var n=0;n<3;n++)e[n]=parseFloat(e[n]);return e[3]=st(e[3]),e}function gt(t){var e={},n=t.match(/(([a-z].*?)\(.*?\))(?=\s([a-z].*?)\(.*?\)|\s*$)/g),r="none"!==t?n:"none";if(r instanceof Array)for(var i=0,a=r.length;i<a;i++){var s=r[i].trim().split(/\((.+)/),o=dt(s[0]);if("dropShadow"===o){var u=s[1].match(/(([a-z].*?)\(.*?\))(?=\s(.*?))/)[0],l=s[1].replace(u,"").split(/\s/).map(parseFloat);e[o]=l.filter((function(t){return!isNaN(t)})).concat(u)}else e[o]=s[1].replace(/\'|\"|\)/g,"")}return e}x.ColorProperties=ht;var mt={prepareStart:function(t,e){var n,r=gt(E(this.element,t));for(var i in e)r[n=dt(i)]||(r[n]=h[t][i]);return r},prepareProperty:function(t,e){var n,r={};for(var i in e)n=dt(i),/hue/.test(i)?r[n]=parseFloat(e[i]):/drop/.test(i)?r[n]=vt(e[i]):r[i]="url"===i?e[i]:parseFloat(e[i]);return r},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=(r.url?"url("+r.url+")":"")+(n.opacity||r.opacity?"opacity("+(100*B(n.opacity,r.opacity,i)>>0)/100+"%)":"")+(n.blur||r.blur?"blur("+(100*B(n.blur,r.blur,i)>>0)/100+"em)":"")+(n.saturate||r.saturate?"saturate("+(100*B(n.saturate,r.saturate,i)>>0)/100+"%)":"")+(n.invert||r.invert?"invert("+(100*B(n.invert,r.invert,i)>>0)/100+"%)":"")+(n.grayscale||r.grayscale?"grayscale("+(100*B(n.grayscale,r.grayscale,i)>>0)/100+"%)":"")+(n.hueRotate||r.hueRotate?"hue-rotate("+(100*B(n.hueRotate,r.hueRotate,i)>>0)/100+"deg)":"")+(n.sepia||r.sepia?"sepia("+(100*B(n.sepia,r.sepia,i)>>0)/100+"%)":"")+(n.brightness||r.brightness?"brightness("+(100*B(n.brightness,r.brightness,i)>>0)/100+"%)":"")+(n.contrast||r.contrast?"contrast("+(100*B(n.contrast,r.contrast,i)>>0)/100+"%)":"")+(n.dropShadow||r.dropShadow?ft(n.dropShadow,r.dropShadow,i):"")})},crossCheck:function(t){if(this.valuesEnd[t])for(var e in this.valuesStart[t])this.valuesEnd[t][e]||(this.valuesEnd[t][e]=this.valuesStart[t][e])}},yt={component:"filterEffects",property:"filter",defaultValue:{opacity:100,blur:0,saturate:100,grayscale:0,brightness:100,contrast:100,sepia:0,invert:0,hueRotate:0,dropShadow:[0,0,0,{r:0,g:0,b:0}],url:""},Interpolate:{opacity:B,blur:B,saturate:B,grayscale:B,brightness:B,contrast:B,sepia:B,invert:B,hueRotate:B,dropShadow:{numbers:B,colors:ot,dropShadow:ft}},functions:mt,Util:{parseDropShadow:vt,parseFilterString:gt,replaceDashNamespace:dt,trueColor:st}};x.FilterEffects=yt;var wt={},bt="htmlAttributes",xt=["fill","stroke","stop-color"];function St(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}var Mt={prepareStart:function(t,e){var n={};for(var r in e){var i=St(r).replace(/_+[a-z]+/,""),a=this.element.getAttribute(i);n[i]=xt.includes(i)?a||"rgba(0,0,0,0)":a||(/opacity/i.test(r)?1:0)}return n},prepareProperty:function(t,e){var n={};for(var r in e){var a=St(r),s=/(%|[a-z]+)$/,o=this.element.getAttribute(a.replace(/_+[a-z]+/,""));if(xt.includes(a))i.htmlAttributes[a]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in wt)&&(wt[e]=function(t,e,n,r,i){t.setAttribute(e,ot(n,r,i))})},n[a]=st(e[r])||h.htmlAttributes[r];else if(null!==o&&s.test(o)){var u=Q(o).u||Q(e[r]).u,l=/%/.test(u)?"_percent":"_"+u;i.htmlAttributes[a+l]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in wt)&&(wt[e]=function(t,e,n,r,i){var a=e.replace(l,"");t.setAttribute(a,(1e3*B(n.v,r.v,i)>>0)/1e3+r.u)})},n[a+l]=Q(e[r])}else s.test(e[r])&&null!==o&&(null===o||s.test(o))||(i.htmlAttributes[a]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in wt)&&(wt[e]=function(t,e,n,r,i){t.setAttribute(e,(1e3*B(n,r,i)>>0)/1e3)})},n[a]=parseFloat(e[r]))}return n},onStart:{attr:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(e,n,r,i){for(var a in r)t.attributes[a](e,a,n[a],r[a],i)})},attributes:function(e){!t[e]&&this.valuesEnd.attr&&(t[e]=wt)}}},Tt={component:bt,property:"attr",subProperties:["fill","stroke","stop-color","fill-opacity","stroke-opacity"],defaultValue:{fill:"rgb(0,0,0)",stroke:"rgb(0,0,0)","stop-color":"rgb(0,0,0)",opacity:1,"stroke-opacity":1,"fill-opacity":1},Interpolate:{numbers:B,colors:ot},functions:Mt,Util:{replaceUppercase:St,trueColor:st,trueDimension:Q}};x.HTMLAttributes=Tt;var Ct={prepareStart:function(t){return E(this.element,t)},prepareProperty:function(t,e){return parseFloat(e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=(1e3*B(n,r,i)>>0)/1e3})}},_t={component:"opacityProperty",property:"opacity",defaultValue:1,Interpolate:{numbers:B},functions:Ct};function Et(t,e){return parseFloat(t)/100*e}function It(t){return 2*t.getAttribute("width")+2*t.getAttribute("height")}function At(t){var e=t.getAttribute("points").split(" "),n=0;if(e.length>1){var r=function(t){var e=t.split(",");if(2==e.length&&!isNaN(e[0])&&!isNaN(e[1]))return[parseFloat(e[0]),parseFloat(e[1])]},i=function(t,e){return null!=t&&null!=e?Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)):0};if(e.length>2)for(var a=0;a<e.length-1;a++)n+=i(r(e[a]),r(e[a+1]));n+="polygon"===t.tagName?i(r(e[0]),r(e[e.length-1])):0}return n}function kt(t){var e=t.getAttribute("x1"),n=t.getAttribute("x2"),r=t.getAttribute("y1"),i=t.getAttribute("y2");return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-r,2))}function Ot(t){var e=t.getAttribute("r");return 2*Math.PI*e}function Pt(t){var e=2*t.getAttribute("rx"),n=2*t.getAttribute("ry");return Math.sqrt(.5*(e*e+n*n))*(2*Math.PI)/2}function Vt(t){return"rect"===t.tagName?It(t):"circle"===t.tagName?Ot(t):"ellipse"===t.tagName?Pt(t):["polygon,polyline"].indexOf(t.tagName)>-1?At(t):"line"===t.tagName?kt(t):void 0}function Lt(t,e){var n,r,i,a,s=/path|glyph/.test(t.tagName)?t.getTotalLength():Vt(t);return e instanceof Object?e:("string"==typeof e?(e=e.split(/\,|\s/),n=/%/.test(e[0])?Et(e[0].trim(),s):parseFloat(e[0]),r=/%/.test(e[1])?Et(e[1].trim(),s):parseFloat(e[1])):void 0===e&&(a=parseFloat(E(t,"stroke-dashoffset")),i=E(t,"stroke-dasharray").split(/\,/),n=0-a,r=parseFloat(i[0])+n||s),{s:n,e:r,l:s})}x.OpacityProperty=_t;var jt={prepareStart:function(){return Lt(this.element)},prepareProperty:function(t,e){return Lt(this.element,e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){var i=(100*e.l>>0)/100,a=0-(100*B(e.s,n.s,r)>>0)/100,s=(100*B(e.e,n.e,r)>>0)/100+a;t.style.strokeDashoffset=a+"px",t.style.strokeDasharray=(100*(s<1?0:s)>>0)/100+"px, "+i+"px"})}},Ut={component:"svgDraw",property:"draw",defaultValue:"0% 0%",Interpolate:{numbers:B},functions:jt,Util:{getRectLength:It,getPolyLength:At,getLineLength:kt,getCircleLength:Ot,getEllipseLength:Pt,getTotalLength:Vt,resetDraw:function(t){t.style.strokeDashoffset="",t.style.strokeDasharray=""},getDraw:Lt,percent:Et}};function Ft(t){return t.map((function(t){return t[0].concat(t.slice(1).join(" "))})).join("")}function qt(t){return t.map((function(t){return Array.isArray(t)?qt(t):isNaN(+t)?t:+t}))}x.SVGDraw=Ut;var Nt=3;function Ht(t,e){var n=isNaN(+e)?Nt:+e;return n?t.map((function(t){return t.map((function(t,e){var r=+t,i=Math.pow(10,n);return r?r%1==0?r:Math.round(r*i)/i:t}))})):qt(t)}var Dt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Rt(t){var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;if("m"===n&&r.length>2&&(t.segments.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.segments.push([e].concat(r));else for(;r.length>=Dt[n]&&(t.segments.push([e].concat(r.splice(0,Dt[n]))),Dt[n]););}var Bt="Invalid path value";function Qt(t){var e=t.pathValue.charCodeAt(t.index);return 48===e?(t.param=0,void t.index++):49===e?(t.param=1,void t.index++):void(t.err=Bt+": invalid Arc flag "+e)}function zt(t){return t>=48&&t<=57}function Xt(t){var e,n=t.index,r=n,i=t.max,a=!1,s=!1,o=!1,u=!1;if(r>=i)t.err=Bt+": missing param "+t.pathValue[r];else if(43!==(e=t.pathValue.charCodeAt(r))&&45!==e||(e=++r<i?t.pathValue.charCodeAt(r):0),zt(e)||46===e){if(46!==e){if(a=48===e,e=++r<i?t.pathValue.charCodeAt(r):0,a&&r<i&&e&&zt(e))return void(t.err=Bt+": "+t.pathValue[n]+" illegal number");for(;r<i&&zt(t.pathValue.charCodeAt(r));)r++,s=!0;e=r<i?t.pathValue.charCodeAt(r):0}if(46===e){for(u=!0,r++;zt(t.pathValue.charCodeAt(r));)r++,o=!0;e=r<i?t.pathValue.charCodeAt(r):0}if(101===e||69===e){if(u&&!s&&!o)return void(t.err=Bt+": "+t.pathValue[r]+" invalid float exponent");if(43!==(e=++r<i?t.pathValue.charCodeAt(r):0)&&45!==e||r++,!(r<i&&zt(t.pathValue.charCodeAt(r))))return void(t.err=Bt+": "+t.pathValue[r]+" invalid float exponent");for(;r<i&&zt(t.pathValue.charCodeAt(r));)r++}t.index=r,t.param=+t.pathValue.slice(n,r)}else t.err=Bt+": "+t.pathValue[r]+" not number"}function Yt(t){for(;t.index<t.max&&(10===(e=t.pathValue.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0);)t.index++;var e}function Wt(t){return t>=48&&t<=57||43===t||45===t||46===t}function Kt(t){var e,n,r,i,a=t.max;if(t.segmentStart=t.index,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(e=t.pathValue.charCodeAt(t.index)))if(r=Dt[t.pathValue[t.index].toLowerCase()],t.index++,Yt(t),t.data=[],r){for(n=!1;;){for(i=r;i>0;i--){if(97!=(32|e)||3!==i&&4!==i?Xt(t):Qt(t),t.err.length)return;t.data.push(t.param),Yt(t),n=!1,t.index<a&&44===t.pathValue.charCodeAt(t.index)&&(t.index++,Yt(t),n=!0)}if(!n){if(t.index>=t.max)break;if(!Wt(t.pathValue.charCodeAt(t.index)))break}}Rt(t)}else Rt(t);else t.err=Bt+": "+t.pathValue[t.index]+" not a path command"}function $t(t){return this.segments=[],this.pathValue=t,this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err="",this}function Gt(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return Dt[e]===t.length-1&&/[achlmrqstvz]/g.test(e)}))}function Zt(t,e){if(Gt(t))return qt(t);var n=new $t(t);for(Yt(n);n.index<n.max&&!n.err.length;)Kt(n);return n.err.length?n.segments=[]:n.segments.length&&("mM".indexOf(n.segments[0][0])<0?(n.err=Bt+": missing M/m",n.segments=[]):n.segments[0][0]="M"),Ht(n.segments,e)}function Jt(t,e){if(Gt(n=t)&&n.every((function(t){return t[0]===t[0].toUpperCase()})))return qt(t);var n;t=Zt(t);var r=[],i=0,a=0,s=0,o=0,u=0,l=t.length,c="",p=[],h=0,f=[];"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],s=i,o=a,u++,r[0]=["M",i,a]);for(var d=u;d<l;d++){if(c=(p=t[d])[0],r.push(f=[]),c!==c.toUpperCase())switch(f[0]=c.toUpperCase(),f[0]){case"A":p.slice(1,-2).concat([+p[6]+i,+p[7]+a]).map((function(t){return f.push(t)}));break;case"V":f[1]=+p[1]+a;break;case"H":f[1]=+p[1]+i;break;case"M":s=+p[1]+i,o=+p[2]+a;default:p.map((function(t,e){return e&&f.push(+t+(e%2?i:a))}))}else p.map((function(t){return f.push(t)}));switch(h=f.length,f[0]){case"Z":i=s,a=o;break;case"H":i=+f[1];break;case"V":a=+f[1];break;case"M":s=+f[h-2],o=+f[h-1];default:i=+f[h-2],a=+f[h-1]}}return Ht(r,e)}function te(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n];r.length;)e[n]="A",t.splice(n++,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}function ee(t,e,n){var r,i;switch("TQ".indexOf(t[0])<0&&(e.qx=e.qy=null),t[0]){case"H":return["L",t[1],e.y1];case"V":return["L",e.x1,t[1]];case"S":return i=function(t,e,n,r,i){return"CS".indexOf(i)>-1?{x1:2*t-n,y1:2*e-r}:{x1:t,y1:e}}(e.x1,e.y1,e.x2,e.y2,n),e.x1=i.x1,e.y1=i.y1,["C",i.x1,i.y1].concat(t.slice(1));case"T":return r=function(t,e,n,r,i){return"QT".indexOf(i)>-1?{qx:2*t-n,qy:2*e-r}:{qx:t,qy:e}}(e.x1,e.y1,e.qx,e.qy,n),e.qx=r.qx,e.qy=r.qy,["Q",e.qx,e.qy].concat(t.slice(1));case"Q":e.qx=t[1],e.qy=t[2]}return t}function ne(t,e){if(function(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return Dt[e]===t.length-1&&/[ACLMQZ]/.test(t[0])}))}(t))return qt(t);for(var n,r,i={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],s="",o="",u=(t=Jt(t)).length,l=0;l<u;l++)s=t[l][0],a[l]=s,l&&(o=a[l-1]),t[l]=ee(t[l],i,o),r=(n=t[l]).length,i.x1=+n[r-2],i.y1=+n[r-1],i.x2=+n[r-4]||i.x1,i.y2=+n[r-3]||i.y1;return Ht(t,e)}function re(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function ie(t,e,n,r,i,a,s,o,u,l){var c,p,h,f,d,v=120*Math.PI/180,g=Math.PI/180*(i||0),m=[];if(l)p=l[0],h=l[1],f=l[2],d=l[3];else{t=(c=re(t,e,-g)).x,e=c.y;var y=(t-(o=(c=re(o,u,-g)).x))/2,w=(e-(u=c.y))/2,b=y*y/(n*n)+w*w/(r*r);b>1&&(n*=b=Math.sqrt(b),r*=b);var x=n*n,S=r*r,M=(a==s?-1:1)*Math.sqrt(Math.abs((x*S-x*w*w-S*y*y)/(x*w*w+S*y*y)));f=M*n*w/r+(t+o)/2,d=M*-r*y/n+(e+u)/2,p=Math.asin(((e-d)/r).toFixed(9)),h=Math.asin(((u-d)/r).toFixed(9)),p=t<f?Math.PI-p:p,h=o<f?Math.PI-h:h,p<0&&(p=2*Math.PI+p),h<0&&(h=2*Math.PI+h),s&&p>h&&(p-=2*Math.PI),!s&&h>p&&(h-=2*Math.PI)}var T=h-p;if(Math.abs(T)>v){var C=h,_=o,E=u;h=p+v*(s&&h>p?1:-1),o=f+n*Math.cos(h),u=d+r*Math.sin(h),m=ie(o,u,n,r,i,0,s,_,E,[h,C,f,d])}T=h-p;var I=Math.cos(p),A=Math.sin(p),k=Math.cos(h),O=Math.sin(h),P=Math.tan(T/4),V=4/3*n*P,L=4/3*r*P,j=[t,e],U=[t+V*A,e-L*I],F=[o+V*O,u-L*k],q=[o,u];return U[0]=2*j[0]-U[0],U[1]=2*j[1]-U[1],l?[U,F,q].concat(m):(m=[U,F,q].concat(m).join().split(",")).map((function(t,e){return e%2?re(m[e-1],t,g).y:re(t,m[e+1],g).x}))}function ae(t,e,n,r,i,a){var s=1/3,o=2/3;return[s*t+o*n,s*e+o*r,s*i+o*n,s*a+o*r,i,a]}function se(t,e,n,r,i,a,s,o,u){var l=1-u;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*u*n+3*l*u*u*i+Math.pow(u,3)*s,y:Math.pow(l,3)*e+3*Math.pow(l,2)*u*r+3*l*u*u*a+Math.pow(u,3)*o}}function oe(t,e,n){var r=t[0],i=t[1];return[r+(e[0]-r)*n,i+(e[1]-i)*n]}function ue(t,e,n,r){var i=.5,a=[t,e],s=[n,r],o=oe(a,s,i),u=oe(s,o,i),l=oe(o,u,i),c=oe(u,l,i),p=oe(l,c,i),h=se.apply(0,a.concat(o,l,p,i)),f=se.apply(0,p.concat(c,u,s,0));return[h.x,h.y,f.x,f.y,n,r]}function le(t,e){switch("TQ".indexOf(t[0])<0&&(e.qx=e.qy=null),t[0]){case"M":return e.x=t[1],e.y=t[2],t;case"A":return["C"].concat(ie.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=t[1],e.qy=t[2],["C"].concat(ae.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(ue(e.x1,e.y1,t[1],t[2]));case"Z":return["C"].concat(ue(e.x1,e.y1,e.x,e.y))}return t}function ce(t,e){if(function(t){return Gt(t)&&t.slice(1).every((function(t){return"C"===t[0]}))}(t))return qt(t);for(var n,r,i={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],s="",o=(t=ne(t)).length,u=0;u<o;u++)t[u]&&(s=t[u][0]),a[u]=s,t[u]=le(t[u],i),te(t,a,u),o=t.length,r=(n=t[u]).length,i.x1=+n[r-2],i.y1=+n[r-1],i.x2=+n[r-4]||i.x1,i.y2=+n[r-3]||i.y1;return Ht(t,e)}function pe(t){var e=t.slice(1).map((function(e,n,r){return n?r[n-1].slice(-2).concat(e.slice(1)):t[0].slice(1).concat(e.slice(1))})).map((function(t){return t.map((function(e,n){return t[t.length-n-2*(1-n%2)]}))})).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map((function(t){return["C"].concat(t.slice(2))})))}function he(t,e,n,r,i,a,s,o){return 3*((o-e)*(n+i)-(s-t)*(r+a)+r*(t-i)-n*(e-a)+o*(i+t/3)-s*(a+e/3))/20}function fe(t){return function(t){var e=0,n=0,r=0,i=0,a=0;return ce(t).map((function(t){var s;switch(t[0]){case"M":case"Z":return r="M"===t[0]?t[1]:r,i="M"===t[0]?t[2]:i,e=r,n=i,0;default:return a=he.apply(0,[e,n].concat(t.slice(1))),s=t.slice(-2),e=s[0],n=s[1],a}})).reduce((function(t,e){return t+e}),0)}(ce(t))>=0}function de(t,e){e=e||.5;var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),s=oe(n,r,e),o=oe(r,i,e),u=oe(i,a,e),l=oe(s,o,e),c=oe(o,u,e),p=oe(l,c,e);return[["C"].concat(s,l,p),["C"].concat(c,u,a)]}function ve(t,e,n,r,i){return i*(i*(-3*t+9*e-9*n+3*r)+6*t-12*e+6*n)-3*t+3*e}function ge(t,e,n,r,i,a,s,o,u){(null===u||isNaN(+u))&&(u=1);var l=(u=u>1?1:u<0?0:u)/2,c=0,p=0,h=0,f=0,d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];return[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816].map((function(u,v){p=ve(t,n,i,s,c=l*u+l),h=ve(e,r,a,o,c),f+=d[v]*Math.sqrt(p*p+h*h)})),l*f}function me(t){return ce((e=Ft(Jt(t)),Ft(Jt(e,0)).replace(/(m|M)/g,"|$1").split("|").map((function(t){return t.trim()})).filter((function(t){return t})))[0]).map((function(t,e,n){var r=e&&n[e-1].slice(-2).concat(t.slice(1)),i=e?ge.apply(0,r):0;return{s:t,ss:e?i?de(r):[t,t]:[t],l:i}}));var e}function ye(t,e,n){var r=me(t),i=me(e),a=r.length,s=i.length,o=r.filter((function(t){return t.l})).length,u=i.filter((function(t){return t.l})).length,l=r.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/o||0,c=i.filter((function(t){return t.l})).reduce((function(t,e){return t+e.l}),0)/u||0,p=n||Math.max(a,s),h=[l,c],f=[p-a,p-s],d=0,v=[r,i].map((function(t,e){return t.l===p?t.map((function(t){return t.s})):t.map((function(t,n){return d=n&&f[e]&&t.l>=h[e],f[e]-=d?1:0,d?t.ss:[t.s]})).flat()}));return v[0].length===v[1].length?v:ye(v[0],v[1],p)}function we(t){var e=t.length,n=e-1;return t.map((function(r,i){return t.map((function(r,a){var s,o=i+a;return 0===a||t[o]&&"M"===t[o][0]?(s=t[o],["M"].concat(s.slice(-2))):(o>=e&&(o-=n),t[o])}))}))}function be(t,e){var n=t.length-1,r=[],i=0,a=we(t);return a.map((function(a,s){t.slice(1).map((function(r,a){i+=function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}(t[(s+a)%n].slice(-2),e[a%n].slice(-2))})),r[s]=i,i=0})),a[r.indexOf(Math.min.apply(null,r))]}var xe={prepareStart:function(t){return this.element.getAttribute("d")},prepareProperty:function(t,e){var n={},r=e instanceof SVGElement?e:/^\.|^\#/.test(e)?L(e):null,i=new RegExp("\\n","ig");return"object"==typeof e&&e.curve?e:(r&&/path|glyph/.test(r.tagName)?n.original=r.getAttribute("d").replace(i,""):r||"string"!=typeof e||(n.original=e.replace(i,"")),n)},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){for(var i=[],a=e.curve,s=n.curve,o=0,u=s.length;o<u;o++){i.push([a[o][0]]);for(var l=1,c=a[o].length;l<c;l++)i[o].push((1e3*B(a[o][l],s[o][l],r)>>0)/1e3)}t.setAttribute("d",1===r?n.original:Ft(i))})},crossCheck:function(t){if(this.valuesEnd[t]){var e=this.valuesStart[t].curve,n=this.valuesEnd[t].curve;if(!e||!n||e&&n&&"M"===e[0][0]&&e.length!==n.length){var r=ye(this.valuesStart[t].original,this.valuesEnd[t].original),i=fe(r[0])!==fe(r[1])?pe(r[0]):qt(r[0]);this.valuesStart[t].curve=i,this.valuesEnd[t].curve=be(r[1],i)}}}},Se={component:"svgCubicMorph",property:"path",defaultValue:[],Interpolate:{numbers:B,pathToString:Ft},functions:xe,Util:{pathToCurve:ce,pathToAbsolute:Jt,pathToString:Ft,parsePathString:Zt,getRotatedCurve:be,getRotations:we,equalizeSegments:ye,reverseCurve:pe,clonePath:qt,getDrawDirection:fe,splitCubic:de,getCurveArray:me}};function Me(t,e){var n=e.x,r=e.width;return/[a-z]/i.test(t)&&!/px/.test(t)?t.replace(/top|left/,0).replace(/right|bottom/,100).replace(/center|middle/,50):/%/.test(t)?n+parseFloat(t)*r/100:parseFloat(t)}function Te(t){var e=t&&/\)/.test(t)?t.substring(0,t.length-1).split(/\)\s|\)/):"none",n={};if(e instanceof Array)for(var r=0,i=e.length;r<i;r++){var a=e[r].trim().split("(");n[a[0]]=a[1]}return n}function Ce(t,e){var n,r={},i=this.element.getBBox(),a=i.x+i.width/2,s=i.y+i.height/2,o=this._transformOrigin;for(var u in(o=void 0!==o?o.constructor===Array?o:o.split(/\s/):[a,s])[0]="number"==typeof o[0]?o[0]:Me(o[0],i),o[1]="number"==typeof o[1]?o[1]:Me(o[1],i),r.origin=o,e)"rotate"===u?r[u]="number"==typeof e[u]?e[u]:e[u]instanceof Array?e[u][0]:1*e[u].split(/\s/)[0]:"translate"===u?(n=e[u]instanceof Array?e[u]:/\,|\s/.test(e[u])?e[u].split(","):[e[u],0],r[u]=[1*n[0]||0,1*n[1]||0]):/skew/.test(u)?r[u]=1*e[u]||0:"scale"===u&&(r[u]=parseFloat(e[u])||1);return r}x.SVGCubicMorph=Se;var _e={prepareStart:function(t,e){var n={},r=Te(this.element.getAttribute("transform"));for(var i in e)n[i]=i in r?r[i]:"scale"===i?1:0;return n},prepareProperty:function(t,e){return Ce.call(this,t,e)},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){var i,a=0,s=0,o=Math.PI/180,u="scale"in n?B(e.scale,n.scale,r):1,l="rotate"in n?B(e.rotate,n.rotate,r):0,c=Math.sin(l*o),p=Math.cos(l*o),h="skewX"in n?B(e.skewX,n.skewX,r):0,f="skewY"in n?B(e.skewY,n.skewY,r):0,d=l||h||f||1!==u||0;a-=d?n.origin[0]:0,s-=d?n.origin[1]:0,a*=u,s*=u,s+=f?a*Math.tan(f*o):0,i=p*(a+=h?s*Math.tan(h*o):0)-c*s,s=l?c*a+p*s:s,a=l?i:a,a+="translate"in n?B(e.translate[0],n.translate[0],r):0,s+="translate"in n?B(e.translate[1],n.translate[1],r):0,a+=d?n.origin[0]:0,s+=d?n.origin[1]:0,t.setAttribute("transform",(a||s?"translate("+(1e3*a>>0)/1e3+(s?","+(1e3*s>>0)/1e3:"")+")":"")+(l?"rotate("+(1e3*l>>0)/1e3+")":"")+(h?"skewX("+(1e3*h>>0)/1e3+")":"")+(f?"skewY("+(1e3*f>>0)/1e3+")":"")+(1!==u?"scale("+(1e3*u>>0)/1e3+")":""))})},crossCheck:function(t){if(this._resetStart&&this.valuesEnd[t]){var e=this.valuesStart[t],n=this.valuesEnd[t],r=Ce.call(this,t,Te(this.element.getAttribute("transform")));for(var i in r)e[i]=r[i];var a=this.element.ownerSVGElement,s=a.createSVGTransformFromMatrix(a.createSVGMatrix().translate(-e.origin[0],-e.origin[1]).translate("translate"in e?e.translate[0]:0,"translate"in e?e.translate[1]:0).rotate(e.rotate||0).skewX(e.skewX||0).skewY(e.skewY||0).scale(e.scale||1).translate(+e.origin[0],+e.origin[1]));for(var o in e.translate=[s.matrix.e,s.matrix.f],e)o in n&&"origin"!==o||(n[o]=e[o])}}},Ee={component:"svgTransformProperty",property:"svgTransform",defaultOptions:{transformOrigin:"50% 50%"},defaultValue:{translate:0,rotate:0,skewX:0,skewY:0,scale:1},Interpolate:{numbers:B},functions:_e,Util:{parseStringOrigin:Me,parseTransformString:Te,parseTransformSVG:Ce}};x.SVGTransformProperty=Ee;var Ie=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}(),Ae="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],ke="ontouchstart"in window||navigator.msMaxTouchPoints||!1?"touchstart":"mousewheel",Oe=navigator&&/(EDGE|Mac)/i.test(navigator.userAgent)?document.body:document.documentElement,Pe=!!Ie&&{passive:!1};function Ve(t){this.scrolling&&t.preventDefault()}function Le(){var t=this.element;return t===Oe?{el:document,st:document.body}:{el:t,st:t}}function je(t,e){e[t](Ae[0],Ve,Pe),e[t](ke,Ve,Pe)}function Ue(){var t=Le.call(this);"scroll"in this.valuesEnd&&!t.el.scrolling&&(t.el.scrolling=1,je("addEventListener",t.el),t.st.style.pointerEvents="none")}function Fe(){var t=Le.call(this);"scroll"in this.valuesEnd&&t.el.scrolling&&(t.el.scrolling=0,je("removeEventListener",t.el),t.st.style.pointerEvents="")}var qe={prepareStart:function(){return this.element=!("scroll"in this.valuesEnd)||this.element&&this.element!==window?this.element:Oe,this.element===Oe?window.pageYOffset||Oe.scrollTop:this.element.scrollTop},prepareProperty:function(t,e){return parseInt(e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(this.element=!("scroll"in this.valuesEnd)||this.element&&this.element!==window?this.element:Oe,Ue.call(this),t[e]=function(t,e,n,r){t.scrollTop=B(e,n,r)>>0})},onComplete:function(t){Fe.call(this)}},Ne={component:"scrollProperty",property:"scroll",defaultValue:0,Interpolate:{numbers:B},functions:qe,Util:{preventScroll:Ve,scrollIn:Ue,scrollOut:Fe,getScrollTargets:Le,toggleScrollEvents:je,supportPassive:Ie}};function He(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){for(var a=[],s="textShadow"===e?3:4,o=3===s?n[3]:n[4],u=3===s?r[3]:r[4],l=!!(n[5]&&"none"!==n[5]||r[5]&&"none"!==r[5])&&" inset",c=0;c<s;c++)a.push((1e3*B(n[c],r[c],i)>>0)/1e3+"px");t.style[e]=l?ot(o,u,i)+a.join(" ")+l:ot(o,u,i)+a.join(" ")})}x.ScrollProperty=Ne;var De=["boxShadow","textShadow"];function Re(t,e){var n,r;for(3===t.length?n=[t[0],t[1],0,0,t[2],"none"]:4===t.length?n=/inset|none/.test(t[3])?[t[0],t[1],0,0,t[2],t[3]]:[t[0],t[1],t[2],0,t[3],"none"]:5===t.length?n=/inset|none/.test(t[4])?[t[0],t[1],t[2],0,t[3],t[4]]:[t[0],t[1],t[2],t[3],t[4],"none"]:6===t.length&&(n=t),r=0;r<4;r++)n[r]=parseFloat(n[r]);return n[4]=st(n[4]),n="boxShadow"===e?n:n.filter((function(t,e){return[0,1,2,4].indexOf(e)>-1}))}var Be={};De.map((function(t){return Be[t]=He}));var Qe={component:"shadowProperties",properties:De,defaultValues:{boxShadow:"0px 0px 0px 0px rgb(0,0,0)",textShadow:"0px 0px 0px rgb(0,0,0)"},Interpolate:{numbers:B,colors:ot},functions:{prepareStart:function(t,e){var n=E(this.element,t);return/^none$|^initial$|^inherit$|^inset$/.test(n)?h[t]:n},prepareProperty:function(t,e){if("string"==typeof e){var n,r="none";r=/inset/.test(e)?"inset":r,n=(e=/inset/.test(e)?e.replace(/(\s+inset|inset+\s)/g,""):e).match(/(\s?(?:#(?:[\da-f]{3}){1,2}|rgba?\(\d{1,3},\s*\d{1,3},\s*\d{1,3}\))\s?)/gi),e=Re(e=e.replace(n[0],"").split(" ").concat([n[0].replace(/\s/g,"")],[r]),t)}else e instanceof Array&&(e=Re(e,t));return e},onStart:Be},Util:{processShadowArray:Re,trueColor:st}};function ze(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){t.style[e]=Y(n.v,r.v,r.u,i)})}x.ShadowProperties=Qe;var Xe=["fontSize","lineHeight","letterSpacing","wordSpacing"],Ye={};Xe.forEach((function(t){Ye[t]=ze}));var We={component:"textProperties",category:"textProperties",properties:Xe,defaultValues:{fontSize:0,lineHeight:0,letterSpacing:0,wordSpacing:0},Interpolate:{units:Y},functions:{prepareStart:function(t){return E(this.element,t)||h[t]},prepareProperty:function(t,e){return Q(e)},onStart:Ye},Util:{trueDimension:Q}};x.TextProperties=We;var Ke=String("abcdefghijklmnopqrstuvwxyz").split(""),$e=String("abcdefghijklmnopqrstuvwxyz").toUpperCase().split(""),Ge=String("~!@#$%^&*()_+{}[];'<>,./?=-").split(""),Ze=String("0123456789").split(""),Je=Ke.concat($e,Ze),tn=Je.concat(Ge),en={alpha:Ke,upper:$e,symbols:Ge,numeric:Ze,alphanumeric:Je,all:tn},nn={text:function(e){if(!t[e]&&this.valuesEnd[e]){var n=this._textChars,r=n in en?en[n]:n&&n.length?n:en[f.textChars];t[e]=function(t,e,n,i){var a="",s="",o=e.substring(0),u=n.substring(0),l=r[Math.random()*r.length>>0];" "===e?(s=u.substring(Math.min(i*u.length,u.length)>>0,0),t.innerHTML=i<1?s+l:""===n?" ":n):" "===n?(a=o.substring(0,Math.min((1-i)*o.length,o.length)>>0),t.innerHTML=i<1?a+l:""===n?" ":n):(a=o.substring(o.length,Math.min(i*o.length,o.length)>>0),s=u.substring(0,Math.min(i*u.length,u.length)>>0),t.innerHTML=i<1?s+l+a:""===n?" ":n)}}},number:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){t.innerHTML=B(e,n,r)>>0})}};function rn(t,e){var n,r;if("string"==typeof t)return(r=document.createElement("SPAN")).innerHTML=t,r.className=e,r;if(!t.children.length||t.children.length&&t.children[0].className!==e){var i=t.innerHTML;(n=document.createElement("SPAN")).className=e,n.innerHTML=i,t.appendChild(n),t.innerHTML=n.outerHTML}else t.children.length&&t.children[0].className===e&&(n=t.children[0]);return n}function an(t,e){var n=[];if(t.children.length){for(var r,i=[],a=t.innerHTML,s=0,o=t.children.length,u=void 0,l=void 0,c=void 0;s<o;s++)l=(u=t.children[s]).outerHTML,""!==(r=a.split(l))[0]?(c=rn(r[0],e),i.push(c),a=a.replace(r[0],"")):""!==r[1]&&(c=rn(r[1].split("<")[0],e),i.push(c),a=a.replace(r[0].split("<")[0],"")),!u.classList.contains(e)&&u.classList.add(e),i.push(u),a=a.replace(l,"");if(""!==a){var p=rn(a,e);i.push(p)}n=n.concat(i)}else n=n.concat([rn(t,e)]);return n}var sn={component:"textWriteProperties",category:"textWrite",properties:["text","number"],defaultValues:{text:" ",numbers:"0"},defaultOptions:{textChars:"alpha"},Interpolate:{numbers:B},functions:{prepareStart:function(t,e){return this.element.innerHTML},prepareProperty:function(t,e){return"number"===t?parseFloat(e):""===e?" ":e},onStart:nn},Util:{charSet:en,createTextTweens:function(t,e,n){if(!t.playing){(n=n||{}).duration="auto"===n.duration?"auto":isFinite(1*n.duration)?1*n.duration:1e3;var r=function(t,e){var n=an(t,"text-part"),r=an(rn(e),"text-part");return t.innerHTML="",t.innerHTML+=n.map((function(t){return t.className+=" oldText",t.outerHTML})).join(""),t.innerHTML+=r.map((function(t){return t.className+=" newText",t.outerHTML.replace(t.innerHTML,"")})).join(""),[n,r]}(t,e),i=r[0],a=r[1],s=[].slice.call(t.getElementsByClassName("oldText")).reverse(),o=[].slice.call(t.getElementsByClassName("newText")),u=[],l=0;return(u=(u=u.concat(s.map((function(t,e){return n.duration="auto"===n.duration?75*i[e].innerHTML.length:n.duration,n.delay=l,n.onComplete=null,l+=n.duration,new P.tween(t,{text:t.innerHTML},{text:""},n)})))).concat(o.map((function(r,i){return n.duration="auto"===n.duration?75*a[i].innerHTML.length:n.duration,n.delay=l,n.onComplete=i===a.length-1?function(){t.innerHTML=e,t.playing=!1}:null,l+=n.duration,new P.tween(r,{text:""},{text:a[i].innerHTML},n)})))).start=function(){!t.playing&&u.map((function(t){return t.start()}))&&(t.playing=!0)},u}}}};function on(t,e,n){for(var r=[],i=0,a=e.length;i<a;i++)r[i]=(1e3*(t[i]+(e[i]-t[i])*n)>>0)/1e3;return r}x.TextWriteProperties=sn;var un="undefined"!=typeof DOMMatrix?DOMMatrix:"undefined"!=typeof WebKitCSSMatrix?WebKitCSSMatrix:"undefined"!=typeof CSSMatrix?CSSMatrix:"undefined"!=typeof MSCSSMatrix?MSCSSMatrix:null,ln="transformMatrix";var cn={component:ln,property:"transform",defaultValue:{perspective:400,translate3d:[0,0,0],translateX:0,translateY:0,translateZ:0,rotate3d:[0,0,0],rotateX:0,rotateY:0,rotateZ:0,skew:[0,0],skewX:0,skewY:0,scale3d:[1,1,1],scaleX:1,scaleY:1,scaleZ:1},functions:{prepareStart:function(t,e){var n={};if(this.element.transformMatrix){var r=this.element.transformMatrix;for(var i in r)n[i]=r[i]}else for(var a in e)n[a]="perspective"===a?e[a]:h.transform[a];return n},prepareProperty:function(t,e){if("object"==typeof e&&!e.length){var n,r={},i={},a={},s={},o={},u=[{translate3d:i},{rotate3d:a},{skew:o},{scale3d:s}],l=function(t){if(/3d/.test(t)&&"object"==typeof e[t]&&e[t].length)n=e[t].map((function(e){return"scale3d"===t?parseFloat(e):parseInt(e)})),r[t]="scale3d"===t?[n[0]||1,n[1]||1,n[2]||1]:[n[0]||0,n[1]||0,n[2]||0];else if(/[XYZ]/.test(t)){(/translate/.test(t)?i:/rotate/.test(t)?a:/scale/.test(t)?s:/skew/.test(t)?o:{})[t.replace(/translate|rotate|scale|skew/,"").toLowerCase()]=/scale/.test(t)?parseFloat(e[t]):parseInt(e[t])}else"skew"===t?(n=e[t].map((function(t){return parseInt(t)||0})),r[t]=[n[0]||0,n[1]||0]):r[t]=parseInt(e[t])};for(var c in e)l(c);return u.map((function(t){var e=Object.keys(t)[0],n=t[e];Object.keys(n).length&&!r[e]&&(r[e]="scale3d"===e?[n.x||1,n.y||1,n.z||1]:"skew"===e?[n.x||0,n.y||0]:[n.x||0,n.y||0,n.z||0])})),r}console.error('KUTE.js - "'+e+'" is not valid/supported transform function')},onStart:{transform:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,i){var a=new un,s={};for(var o in r)s[o]="perspective"===o?B(n[o],r[o],i):on(n[o],r[o],i);s.perspective&&(a.m34=-1/s.perspective),a=s.translate3d?a.translate(s.translate3d[0],s.translate3d[1],s.translate3d[2]):a,a=s.rotate3d?a.rotate(s.rotate3d[0],s.rotate3d[1],s.rotate3d[2]):a,s.skew&&(a=s.skew[0]?a.skewX(s.skew[0]):a,a=s.skew[1]?a.skewY(s.skew[1]):a),a=s.scale3d?a.scale(s.scale3d[0],s.scale3d[1],s.scale3d[2]):a,t.style[e]=a.toString()})},CSS3Matrix:function(e){this.valuesEnd.transform&&!t[e]&&(t[e]=un)}},onComplete:function(t){if(this.valuesEnd[t])for(var e in this.element.transformMatrix={},this.valuesEnd[t])this.element.transformMatrix[e]=this.valuesEnd[t][e]},crossCheck:function(t){this.valuesEnd[t]&&this.valuesEnd[t].perspective&&!this.valuesStart[t].perspective&&(this.valuesStart[t].perspective=this.valuesEnd[t].perspective)}},Interpolate:{perspective:B,translate3d:on,rotate3d:on,skew:on,scale3d:on}};for(var pn in x.TransformMatrix=cn,x){var hn=x[pn];x[pn]=new R(hn)}return{Animation:R,Components:x,Tween:q,fromTo:function(t,e,n,r){return r=r||{},new P.tween(L(t),e,n,r)},to:function(t,e,n){return(n=n||{}).resetStart=e,new P.tween(L(t),e,e,n)},TweenCollection:N,ProgressBar:H,allFromTo:function(t,e,n,r){return r=r||{},new N(L(t,!0),e,n,r)},allTo:function(t,e,n){return(n=n||{}).resetStart=e,new N(L(t,!0),e,e,n)},Objects:w,Util:b,Easing:V,CubicBezier:O,Render:l,Interpolate:r,Process:k,Internals:C,Selector:L,Version:"2.0.16"}}));