kute.js/demo/src/kute-extra.min.js
thednp 7a782229dd Changes (big update):
* updated SVGPathCommander to support a wider range of shapes, including closed/unclosed shapes
* added d3-polygon dependency for ***svgMorph*** component
* updated both ***svgMorph*** and ***svgCubicMorph*** components
* updated polyfill
* code cleanup
* documentation updates
2020-08-31 15:39:43 +00:00

3 lines
53 KiB
JavaScript

// KUTE.js Extra v2.0.14 | 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={},a={},i={};i.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,a)if("function"==typeof a[n])t[n]&&delete t[n];else for(var i in a[n])t[i]&&delete t[i];for(var o in r)t[o]&&delete t[o]}}),64)}var l={Tick:s,Ticker:o,Tweens:e,Time:i};for(var c in l)t[c]||(t[c]="Time"===c?i.now:l[c]);n._KUTE=t;var p={},h={},f={duration:700,delay:0,easing:"linear"},d={},v={},g={},m={},y={},b={supportedProperties:p,defaultValues:h,defaultOptions:f,prepareProperty:d,prepareStart:v,crossCheck:g,onStart:a,onComplete:m,linkProperty:y},w={},x={};function S(t){return e.push(t)}function C(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function M(){var e=this,n=function(n){var r=y[n],a=p[n];for(var i in r)if("function"==typeof r[i]&&Object.keys(e.valuesEnd).some((function(t){return a&&a.includes(t)||"attr"===t&&Object.keys(e.valuesEnd[t]).some((function(t){return a&&a.includes(t)}))})))!t[i]&&(t[i]=r[i]);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[i])r[o]&&"function"==typeof r[o][u]&&!t[u]&&(t[u]=r[o][u])};for(var r in y)n(r)}var T={add:S,remove:C,getAll:function(){return e},removeAll:function(){e.length=0},stop:u,linkInterpolation:M};function E(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("("),a=e[0],i=e[1];/matrix/.test(a)||(n[a]=r.includes(a)?i.split(","):i)}))})),n}}function _(t,e){var n=t.style,r=getComputedStyle(t)||t.currentStyle,a=n[e]&&!/auto|initial|none|unset/.test(n[e])?n[e]:r[e];if("transform"!==e&&(e in r||e in n))return a||h[e]}function k(t,e){var n="start"===e?this.valuesStart:this.valuesEnd;for(var r in d){var a=d[r],i=p[r];for(var s in a){var o={};for(var u in t)h[u]&&a[u]?n[u]=a[u].call(this,u,t[u]):!h[s]&&"transform"===s&&i.includes(u)?o[u]=t[u]:h[u]||"transform"!==u?!h[s]&&i&&i.includes(u)&&(n[u]=a[s].call(this,u,t[u])):n[u]=t[u];Object.keys&&Object.keys(o).length&&(n[s]=a[s].call(this,s,o))}}}function I(){var t={},e=E(this.element);for(var n in this.valuesStart)for(var r in v){var a=v[r];for(var i in a)(i===n&&a[n]||p[r]&&p[r].includes(n))&&(t[n]=a[i].call(this,n,this.valuesStart[n]))}for(var s in e)s in this.valuesStart||(t[s]=e[s]||h[s]);this.valuesStart={},k.call(this,t,"start")}var A={getInlineStyle:E,getStyleForProperty:_,getStartValues:I,prepareObject:k},P=function(t,e,n,r,a){var i=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 i.sampleCurveY(i.solveCurveX(t))};return Object.defineProperty(s,"name",{writable:!0}),s.name=a||"cubic-bezier("+[t,e,n,r]+")",s};P.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},P.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},P.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},P.prototype.solveCurveX=function(t){var e,n,r,a,i,s,o=1e-5;for(r=t,s=0;s<32;s++){if(a=this.sampleCurveX(r)-t,Math.abs(a)<o)return r;if(i=this.sampleCurveDerivativeX(r),Math.abs(i)<o)break;r-=a/i}if((r=t)<(e=0))return e;if(r>(n=1))return n;for(;e<n;){if(a=this.sampleCurveX(r),Math.abs(a-t)<o)return r;t>a?e=r:n=r,r=.5*(n-e)+e}return r};var O={},L={linear:new P(0,0,1,1,"linear"),easingSinusoidalIn:new P(.47,0,.745,.715,"easingSinusoidalIn"),easingSinusoidalOut:new P(.39,.575,.565,1,"easingSinusoidalOut"),easingSinusoidalInOut:new P(.445,.05,.55,.95,"easingSinusoidalInOut"),easingQuadraticIn:new P(.55,.085,.68,.53,"easingQuadraticIn"),easingQuadraticOut:new P(.25,.46,.45,.94,"easingQuadraticOut"),easingQuadraticInOut:new P(.455,.03,.515,.955,"easingQuadraticInOut"),easingCubicIn:new P(.55,.055,.675,.19,"easingCubicIn"),easingCubicOut:new P(.215,.61,.355,1,"easingCubicOut"),easingCubicInOut:new P(.645,.045,.355,1,"easingCubicInOut"),easingQuarticIn:new P(.895,.03,.685,.22,"easingQuarticIn"),easingQuarticOut:new P(.165,.84,.44,1,"easingQuarticOut"),easingQuarticInOut:new P(.77,0,.175,1,"easingQuarticInOut"),easingQuinticIn:new P(.755,.05,.855,.06,"easingQuinticIn"),easingQuinticOut:new P(.23,1,.32,1,"easingQuinticOut"),easingQuinticInOut:new P(.86,0,.07,1,"easingQuinticInOut"),easingExponentialIn:new P(.95,.05,.795,.035,"easingExponentialIn"),easingExponentialOut:new P(.19,1,.22,1,"easingExponentialOut"),easingExponentialInOut:new P(1,0,0,1,"easingExponentialInOut"),easingCircularIn:new P(.6,.04,.98,.335,"easingCircularIn"),easingCircularOut:new P(.075,.82,.165,1,"easingCircularOut"),easingCircularInOut:new P(.785,.135,.15,.86,"easingCircularInOut"),easingBackIn:new P(.6,-.28,.735,.045,"easingBackIn"),easingBackOut:new P(.175,.885,.32,1.275,"easingBackOut"),easingBackInOut:new P(.68,-.55,.265,1.55,"easingBackInOut")};function V(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 U(){for(var t in a)if("function"==typeof a[t])a[t].call(this,t);else for(var e in a[t])a[t][e].call(this,e);M.call(this)}O.processEasing=function(t){if("function"==typeof t)return t;if("function"==typeof L[t])return L[t];if(/bezier/.test(t)){var e=t.replace(/bezier|\s|\(|\)/g,"").split(",");return new P(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."),L.linear};var j=function(e,n,r,i){for(var s in this.element=e,this.playing=!1,this._startTime=null,this._startFired=!1,this.valuesEnd=r,this.valuesStart=n,i=i||{},this._resetStart=i.resetStart||0,this._easing="function"==typeof i.easing?i.easing:O.processEasing(i.easing),this._duration=i.duration||f.duration,this._delay=i.delay||f.delay,i){var o="_"+s;o in this||(this[o]=i[s])}var u=this._easing.name;return a[u]||(a[u]=function(e){!t[e]&&e===this._easing.name&&(t[e]=this._easing)}),this};j.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),U.call(this),this._startFired=!0),!s&&o(),this},j.prototype.stop=function(){return this.playing&&(C(this),this.playing=!1,this._onStop&&this._onStop.call(this),this.close()),this},j.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)},j.prototype.chain=function(t){return this._chain=[],this._chain=t.length?t:this._chain.concat(t),this},j.prototype.stopChainedTweens=function(){this._chain&&this._chain.length&&this._chain.map((function(t){return t.stop()}))},j.prototype.update=function(e){var n,r;if((e=void 0!==e?e:t.Time())<this._startTime&&this.playing)return!0;for(var a in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[a](this.element,this.valuesStart[a],this.valuesEnd[a],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)},O.tween=j,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],a=t[2];if(k.call(this,a,"end"),this._resetStart?this.valuesStart=r:k.call(this,r,"start"),!this._resetStart)for(var i in g)for(var s in g[i])g[i][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,I.call(this),g)for(var r in g[n])g[n][r].call(this,r);if(this.paused=!1,this._yoyo)for(var a in this.valuesEnd)this.valuesRepeat[a]=this.valuesStart[a];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),U.call(this),this._startTime+=t.Time()-this._pauseTime,S(this),!s&&o()),this},n.prototype.pause=function(){return!this.paused&&this.playing&&(C(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 a in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[a](this.element,this.valuesStart[a],this.valuesEnd[a],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}(j);O.tween=F;var N=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);O.tween=N;var R=function(t,e,n,r){var a=this;this.tweens=[],!("offset"in f)&&(f.offset=0),(r=r||{}).delay=r.delay||f.delay;var i=[];return Array.from(t).map((function(t,s){i[s]=r||{},i[s].delay=s>0?r.delay+(r.offset||f.offset):r.delay,t instanceof Element?a.tweens.push(new O.tween(t,e,n,i[s])):console.error("KUTE.js - "+t+" not instanceof [Element]")})),this.length=this.tweens.length,this};R.prototype.start=function(e){return e=void 0===e?t.Time():e,this.tweens.map((function(t){return t.start(e)})),this},R.prototype.stop=function(){return this.tweens.map((function(t){return t.stop(time)})),this},R.prototype.pause=function(){return this.tweens.map((function(t){return t.pause(time)})),this},R.prototype.resume=function(){return this.tweens.map((function(t){return t.resume(time)})),this},R.prototype.chain=function(t){var e=this.tweens[this.length-1];if(t instanceof R)e.chain(t.tweens);else{if(!(t instanceof O.tween))throw new TypeError("KUTE.js - invalid chain value");e.chain(t)}return this},R.prototype.playing=function(){return this.tweens.some((function(t){return t.playing}))},R.prototype.removeTweens=function(){this.tweens=[]},R.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 D=function(t,e){if(this.element=V(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 O.tween))throw TypeError("tween parameter is not ["+O.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)};D.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)+"%")},D.prototype.toggleEvents=function(t){this.element[t+"EventListener"]("mousemove",this.moveAction,!1),this.element[t+"EventListener"]("mouseup",this.upAction,!1)},D.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)},D.prototype.moveAction=function(){this.toolbar.updateTween.call(this)},D.prototype.downAction=function(){this.tween.playing||this.tween.start(),this.tween.paused||(this.tween.pause(),this.toolbar.toggleEvents("add"),t.Tick=cancelAnimationFrame(t.Ticker))},D.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 H=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)}};H.prototype.setComponent=function(t){var e=this,n=t.component,i={prepareProperty:d,prepareStart:v,onStart:a,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 b in i)if(b in t.functions)if("function"==typeof t.functions[b])!i[b][n]&&(i[b][n]={}),!i[b][n][s||o]&&(i[b][n][s||o]=t.functions[b]);else for(var x in t.functions[b])!i[b][n]&&(i[b][n]={}),!i[b][n][x]&&(i[b][n][x]=t.functions[b][x]);if(t.Interpolate){for(var S in t.Interpolate){var C=t.Interpolate[S];if("function"!=typeof C||r[S])for(var M in C)"function"!=typeof C[M]||r[S]||(r[S]=C[M]);else r[S]=C}y[n]=t.Interpolate}if(t.Util)for(var T in t.Util)!w[T]&&(w[T]=t.Util[T]);return e};var q=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,i={prepareProperty:d,prepareStart:v,onStart:a,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=[],i)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}(H);function B(t,e,n){return(t=+t)+(e-=t)*n}function X(t,e){for(var n,r=parseInt(t)||0,a=["px","%","deg","rad","em","rem","vh","vw"],i=0;i<a.length;i++)if("string"==typeof t&&t.includes(a[i])){n=a[i];break}return{v:r,u:n=void 0!==n?n:e?"deg":"px"}}var z={prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){if(e instanceof Array){var n=X(e[0]).v,r=X(e[1]).v;return[NaN!==n?n:50,NaN!==r?r:50]}var a=e.replace(/top|left/g,0).replace(/right|bottom/g,100).replace(/center|middle/g,50);return[X((a=2===(a=a.split(/(\,|\s)/g)).length?a:[a[0],50])[0]).v,X(a[1]).v]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(100*B(n[0],r[0],a)>>0)/100+"% "+(100*B(n[1],r[1],a)>>0)/100+"%"})}},Q={component:"backgroundPositionProp",property:"backgroundPosition",defaultValue:[50,50],Interpolate:{numbers:B},functions:z,Util:{trueDimension:X}};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,a){t.style[e]=Y(n.v,r.v,r.u,a)})}x.BackgroundPosition=Q;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 _(this.element,t)||h[t]},prepareProperty:function(t,e){return X(e)},onStart:G},Util:{trueDimension:X}};function J(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(a>.99||a<.01?(10*B(n,r,a)>>0)/10:B(n,r,a)>>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 _(this.element,t)||h[t]},prepareProperty:function(t,e){var n=X(e),r="height"===t?"offsetHeight":"offsetWidth";return"%"===n.u?n.v*this.element[r]/100:n.v},onStart:nt}};x.BoxModelProperties=rt;var at={prepareStart:function(t,e){var n=_(this.element,t),r=_(this.element,"width"),a=_(this.element,"height");return/rect/.test(n)?n:[0,r,a,0]},prepareProperty:function(t,e){if(e instanceof Array)return[X(e[0]),X(e[1]),X(e[2]),X(e[3])];var n=e.replace(/rect|\(|\)/g,"");return[X((n=/\,/g.test(n)?n.split(/\,/g):n.split(/\s/g))[0]),X(n[1]),X(n[2]),X(n[3])]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,e,n,r){for(var a=0,i=[];a<4;a++){var s=e[a].v,o=n[a].v,u=n[a].u||"px";i[a]=(100*B(s,o,r)>>0)/100+u}t.style.clip="rect("+i+")"})}},it={component:"clipProperty",property:"clip",defaultValue:[0,0,0,0],Interpolate:{numbers:B},functions:at,Util:{trueDimension:X}};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 a=document.getElementsByTagName("head")[0];a.style.color=t;var i=getComputedStyle(a,null).color;return i=/rgb/.test(i)?i.replace(/[^\d,]/g,"").split(","):[0,0,0],a.style.color="",{r:parseInt(i[0]),g:parseInt(i[1]),b:parseInt(i[2])}}}function ot(t,e,n){var r,a={},i=",";for(r in e)a[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 a.a?"rgba("+a.r+i+a.g+i+a.b+i+a.a+")":"rgb("+a.r+i+a.g+i+a.b+")"}function ut(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=ot(n,r,a)})}x.ClipProperty=it;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 _(this.element,t)||h[t]},prepareProperty:function(t,e){return st(e)},onStart:pt},Util:{trueColor:st}};x.ColorProperties=ht;var ft={},dt="htmlAttributes",vt=["fill","stroke","stop-color"];function gt(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}var mt={prepareStart:function(t,e){var n={};for(var r in e){var a=gt(r).replace(/_+[a-z]+/,""),i=this.element.getAttribute(a);n[a]=vt.includes(a)?i||"rgba(0,0,0,0)":i||(/opacity/i.test(r)?1:0)}return n},prepareProperty:function(t,e){var n={};for(var r in e){var i=gt(r),s=/(%|[a-z]+)$/,o=this.element.getAttribute(i.replace(/_+[a-z]+/,""));if(vt.includes(i))a.htmlAttributes[i]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){t.setAttribute(e,ot(n,r,a))})},n[i]=st(e[r])||h.htmlAttributes[r];else if(null!==o&&s.test(o)){var u=X(o).u||X(e[r]).u,l=/%/.test(u)?"_percent":"_"+u;a.htmlAttributes[i+l]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){var i=e.replace(l,"");t.setAttribute(i,(1e3*B(n.v,r.v,a)>>0)/1e3+r.u)})},n[i+l]=X(e[r])}else s.test(e[r])&&null!==o&&(null===o||s.test(o))||(a.htmlAttributes[i]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){t.setAttribute(e,(1e3*B(n,r,a)>>0)/1e3)})},n[i]=parseFloat(e[r]))}return n},onStart:{attr:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(e,n,r,a){for(var i in r)t.attributes[i](e,i,n[i],r[i],a)})},attributes:function(e){!t[e]&&this.valuesEnd.attr&&(t[e]=ft)}}},yt={component:dt,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:gt,trueColor:st,trueDimension:X}};function bt(t,e,n){for(var r=[],a=0;a<3;a++)r[a]=(100*B(t[a],e[a],n)>>0)/100+"px";return"drop-shadow("+r.concat(ot(t[3],e[3],n)).join(" ")+")"}function wt(t){return t.replace("-r","R").replace("-s","S")}function xt(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 St(t){var e={},n=t.match(/(([a-z].*?)\(.*?\))(?=\s([a-z].*?)\(.*?\)|\s*$)/g),r="none"!==t?n:"none";if(r instanceof Array)for(var a=0,i=r.length;a<i;a++){var s=r[a].trim().split(/\((.+)/),o=wt(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.HTMLAttributes=yt;var Ct={prepareStart:function(t,e){var n,r=St(_(this.element,t));for(var a in e)r[n=wt(a)]||(r[n]=h[t][a]);return r},prepareProperty:function(t,e){var n,r={};for(var a in e)n=wt(a),/hue/.test(a)?r[n]=parseFloat(e[a]):/drop/.test(a)?r[n]=xt(e[a]):r[a]="url"===a?e[a]:parseFloat(e[a]);return r},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(r.url?"url("+r.url+")":"")+(n.opacity||r.opacity?"opacity("+(100*B(n.opacity,r.opacity,a)>>0)/100+"%)":"")+(n.blur||r.blur?"blur("+(100*B(n.blur,r.blur,a)>>0)/100+"em)":"")+(n.saturate||r.saturate?"saturate("+(100*B(n.saturate,r.saturate,a)>>0)/100+"%)":"")+(n.invert||r.invert?"invert("+(100*B(n.invert,r.invert,a)>>0)/100+"%)":"")+(n.grayscale||r.grayscale?"grayscale("+(100*B(n.grayscale,r.grayscale,a)>>0)/100+"%)":"")+(n.hueRotate||r.hueRotate?"hue-rotate("+(100*B(n.hueRotate,r.hueRotate,a)>>0)/100+"deg)":"")+(n.sepia||r.sepia?"sepia("+(100*B(n.sepia,r.sepia,a)>>0)/100+"%)":"")+(n.brightness||r.brightness?"brightness("+(100*B(n.brightness,r.brightness,a)>>0)/100+"%)":"")+(n.contrast||r.contrast?"contrast("+(100*B(n.contrast,r.contrast,a)>>0)/100+"%)":"")+(n.dropShadow||r.dropShadow?bt(n.dropShadow,r.dropShadow,a):"")})},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])}},Mt={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:bt}},functions:Ct,Util:{parseDropShadow:xt,parseFilterString:St,replaceDashNamespace:wt,trueColor:st}};x.FilterEffects=Mt;var Tt={prepareStart:function(t){return _(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,a){t.style[e]=(1e3*B(n,r,a)>>0)/1e3})}},Et={component:"opacityProperty",property:"opacity",defaultValue:1,Interpolate:{numbers:B},functions:Tt};function _t(t,e){return parseFloat(t)/100*e}function kt(t){return 2*t.getAttribute("width")+2*t.getAttribute("height")}function It(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])]},a=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 i=0;i<e.length-1;i++)n+=a(r(e[i]),r(e[i+1]));n+="polygon"===t.tagName?a(r(e[0]),r(e[e.length-1])):0}return n}function At(t){var e=t.getAttribute("x1"),n=t.getAttribute("x2"),r=t.getAttribute("y1"),a=t.getAttribute("y2");return Math.sqrt(Math.pow(n-e,2)+Math.pow(a-r,2))}function Pt(t){var e=t.getAttribute("r");return 2*Math.PI*e}function Ot(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 Lt(t){return/rect/.test(t.tagName)?kt(t):/circle/.test(t.tagName)?Pt(t):/ellipse/.test(t.tagName)?Ot(t):/polygon|polyline/.test(t.tagName)?It(t):/line/.test(t.tagName)?At(t):void 0}function Vt(t,e){var n,r,a,i,s=/path|glyph/.test(t.tagName)?t.getTotalLength():Lt(t);return e instanceof Object?e:("string"==typeof e?(e=e.split(/\,|\s/),n=/%/.test(e[0])?_t(e[0].trim(),s):parseFloat(e[0]),r=/%/.test(e[1])?_t(e[1].trim(),s):parseFloat(e[1])):void 0===e&&(i=parseFloat(_(t,"stroke-dashoffset")),a=_(t,"stroke-dasharray").split(/\,/),n=0-i,r=parseFloat(a[0])+n||s),{s:n,e:r,l:s})}x.OpacityProperty=Et;var Ut={prepareStart:function(){return Vt(this.element)},prepareProperty:function(t,e){return Vt(this.element,e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){var a=(100*e.l>>0)/100,i=0-(100*B(e.s,n.s,r)>>0)/100,s=(100*B(e.e,n.e,r)>>0)/100+i;t.style.strokeDashoffset=i+"px",t.style.strokeDasharray=(100*(s<1?0:s)>>0)/100+"px, "+a+"px"})}},jt={component:"svgDraw",property:"draw",defaultValue:"0% 0%",Interpolate:{numbers:B},functions:Ut,Util:{getRectLength:kt,getPolyLength:It,getLineLength:At,getCircleLength:Pt,getEllipseLength:Ot,getTotalLength:Lt,resetDraw:function(t){t.style.strokeDashoffset="",t.style.strokeDasharray=""},getDraw:Vt,percent:_t}};function Ft(t){return t.map((function(t){return t[0].concat(t.slice(1).join(" "))})).join(" ")}function Nt(t){return t.map((function(t){return Array.isArray(t)?Nt(t):isNaN(+t)?t:+t}))}x.SVGDraw=jt;var Rt=3;function Dt(t){return t.map((function(t){return t.map((function(t,e){var n=+t,r=Math.pow(10,Rt);return e?n%1==0?n:(n*r>>0)/r:t}))}))}function Ht(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}var qt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Bt(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>=qt[n]&&(t.segments.push([e].concat(r.splice(0,qt[n]))),qt[n]););}var Xt="Invalid path value";function zt(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=Xt)}function Qt(t){return t>=48&&t<=57}function Yt(t){var e,n=t.index,r=n,a=t.max,i=!1,s=!1,o=!1,u=!1;if(r>=a)t.err=Xt;else if(43!==(e=t.pathValue.charCodeAt(r))&&45!==e||(e=++r<a?t.pathValue.charCodeAt(r):0),Qt(e)||46===e){if(46!==e){if(i=48===e,e=++r<a?t.pathValue.charCodeAt(r):0,i&&r<a&&e&&Qt(e))return void(t.err=Xt);for(;r<a&&Qt(t.pathValue.charCodeAt(r));)r++,s=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(46===e){for(u=!0,r++;Qt(t.pathValue.charCodeAt(r));)r++,o=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(101===e||69===e){if(u&&!s&&!o)return void(t.err=Xt);if(43!==(e=++r<a?t.pathValue.charCodeAt(r):0)&&45!==e||r++,!(r<a&&Qt(t.pathValue.charCodeAt(r))))return void(t.err=Xt);for(;r<a&&Qt(t.pathValue.charCodeAt(r));)r++}t.index=r,t.param=+t.pathValue.slice(n,r)}else t.err=Xt}function Wt(t){return t>=48&&t<=57||43===t||45===t||46===t}function Kt(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 $t(t){var e,n,r,a,i=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=qt[t.pathValue[t.index].toLowerCase()],t.index++,Kt(t),t.data=[],r){for(n=!1;;){for(a=r;a>0;a--){if(97!=(32|e)||3!==a&&4!==a?Yt(t):zt(t),t.err.length)return;t.data.push(t.param),Kt(t),n=!1,t.index<i&&44===t.pathValue.charCodeAt(t.index)&&(t.index++,Kt(t),n=!0)}if(!n){if(t.index>=t.max)break;if(!Wt(t.pathValue.charCodeAt(t.index)))break}}Bt(t)}else Bt(t);else t.err=Xt}function Gt(t){return Array.isArray(t)&&t.every((function(t){var e=t[0].toLowerCase();return qt[e]===t.length-1&&/[achlmrqstvz]/g.test(e)}))}function Zt(t){if(Gt(t))return Nt(t);var e=new Ht(t),n=e.max;for(Kt(e);e.index<n&&!e.err.length;)$t(e);return e.err.length?e.segments=[]:e.segments.length&&("mM".indexOf(e.segments[0][0])<0?(e.err=Xt,e.segments=[]):e.segments[0][0]="M"),Dt(e.segments)}function Jt(t,e){for(var n=[],r=0,a=t.length;a-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?a-4==r?i[3]={x:+t[0],y:+t[1]}:a-2==r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4==r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}function te(t,e,n,r,a){var i;if(null==a&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=a){var s=Math.PI/180,o=t+n*Math.cos(-r*s),u=t+n*Math.cos(-a*s);i=[["M",o,e+n*Math.sin(-r*s)],["A",n,n,0,+(a-r>180),0,u,e+n*Math.sin(-a*s)]]}else i=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i}function ee(t){if(Gt(e=t)&&e.every((function(t){return t[0]===t[0].toUpperCase()})))return Nt(t);var e;t=Zt(t);var n=[],r=0,a=0,i=0,s=0,o=0,u=t.length,l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase();"M"===t[0][0]&&(r=+t[0][1],a=+t[0][2],i=r,s=a,o++,n[0]=["M",r,a]);for(var c=function(e){var o=[],u=t[e],c=u[0],p=[];if(n.push(o=[]),c!==c.toUpperCase())switch(o[0]=c.toUpperCase(),o[0]){case"A":o[1]=u[1],o[2]=u[2],o[3]=u[3],o[4]=u[4],o[5]=u[5],o[6]=+u[6]+r,o[7]=+u[7]+a;break;case"V":o[1]=+u[1]+a;break;case"H":o[1]=+u[1]+r;break;case"R":for(var h=2,f=(p=[r,a].concat(u.slice(1))).length;h<f;h++)p[h]=+p[h]+r,p[++h]=+p[h]+a;n.pop(),n=n.concat(Jt(p,l));break;case"O":n.pop(),(p=te(r,a,+u[1],+u[2])).push(p[0]),n=n.concat(p);break;case"U":n.pop(),n=n.concat(te(r,a,u[1],u[2],u[3])),o=["U"].concat(n[n.length-1].slice(-2));break;case"M":i=+u[1]+r,s=+u[2]+a;default:for(var d=1,v=u.length;d<v;d++)o[d]=+u[d]+(d%2?r:a)}else"R"===c?(p=[r,a].concat(u.slice(1)),n.pop(),n=n.concat(Jt(p,l)),o=["R"].concat(u.slice(-2))):"O"===c?(n.pop(),(p=te(r,a,+u[1],+u[2])).push(p[0]),n=n.concat(p)):"U"===c?(n.pop(),n=n.concat(te(r,a,+u[1],+u[2],+u[3])),o=["U"].concat(n[n.length-1].slice(-2))):u.map((function(t){return o.push(t)}));if("O"!==(c=c.toUpperCase()))switch(o[0]){case"Z":r=i,a=s;break;case"H":r=+o[1];break;case"V":a=+o[1];break;case"M":i=+o[o.length-2],s=+o[o.length-1];default:r=+o[o.length-2],a=+o[o.length-1]}},p=o;p<u;p++)c(p);return Dt(n)}function ne(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function re(t,e,n,r,a,i,s,o,u,l){var c,p,h,f,d,v=120*Math.PI/180,g=Math.PI/180*(a||0),m=[];if(l)p=l[0],h=l[1],f=l[2],d=l[3];else{t=(c=ne(t,e,-g)).x,e=c.y;var y=(t-(o=(c=ne(o,u,-g)).x))/2,b=(e-(u=c.y))/2,w=y*y/(n*n)+b*b/(r*r);w>1&&(n*=w=Math.sqrt(w),r*=w);var x=n*n,S=r*r,C=(i==s?-1:1)*Math.sqrt(Math.abs((x*S-x*b*b-S*y*y)/(x*b*b+S*y*y)));f=C*n*b/r+(t+o)/2,d=C*-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 M=h-p;if(Math.abs(M)>v){var T=h,E=o,_=u;h=p+v*(s&&h>p?1:-1),o=f+n*Math.cos(h),u=d+r*Math.sin(h),m=re(o,u,n,r,a,0,s,E,_,[h,T,f,d])}M=h-p;var k=Math.cos(p),I=Math.sin(p),A=Math.cos(h),P=Math.sin(h),O=Math.tan(M/4),L=4/3*n*O,V=4/3*r*O,U=[t,e],j=[t+L*I,e-V*k],F=[o+L*P,u-V*A],N=[o,u];return j[0]=2*U[0]-j[0],j[1]=2*U[1]-j[1],l?[j,F,N].concat(m):(m=[j,F,N].concat(m).join().split(",")).map((function(t,e){return e%2?ne(m[e-1],t,g).y:ne(t,m[e+1],g).x}))}function ae(t,e,n,r,a,i){var s=1/3,o=2/3;return[s*t+o*n,s*e+o*r,s*a+o*n,s*i+o*r,a,i]}function ie(t,e,n,r){return[t,e,n,r,n,r]}function se(t,e,n){var r,a;switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(re.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,a=2*e.y-e.by):(r=e.x,a=e.y),t=["C",r,a].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(ae(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(ae(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(ie(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(ie(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(ie(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(ie(e.x,e.y,e.X,e.Y))}return t}function oe(t,e,n,r){if(t[n].length>7){t[n].shift();for(var a=t[n];a.length;)e[n]="A",t.splice(n++,0,["C"].concat(a.splice(0,6)));t.splice(n,1),t.length}}function ue(t){return Gt(t)&&t.slice(1).every((function(t){return"C"===t[0]}))}function le(t){if(ue(t))return Nt(t);for(var e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},n=[],r="",a="",i=(t=ee(t)).length,s=0;s<i;s++){t[s]&&(r=t[s][0]),"C"!==r&&(n[s]=r,s&&(a=n[s-1])),t[s]=se(t[s],e,a),"A"!==n[s]&&"C"===r&&(n[s]="C"),oe(t,n,s);var o=t[s],u=o.length;e.x=+o[u-2],e.y=+o[u-1],e.bx=+o[u-4]||e.x,e.by=+o[u-3]||e.y}return ue(t)?Dt(t):le(t)}function ce(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 pe(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path"),n=t instanceof SVGElement&&["path","glyph"].indexOf(t.tagName)>-1?t.getAttribute("d"):t;return e.setAttribute("d",n),e}function he(t){if(!ue(t))throw"getDrawDirection expects a curveArray";return function(t){return t.slice(1).map((function(t,e,n){var r,a,i,s,o,u,l,c,p,h=n[0===e?n.length-1:e-1];return a=(r=h.slice(h.length-2).concat(t.slice(1)))[0],i=r[1],s=r[2],o=r[3],u=r[4],l=r[5],c=r[6],3*(((p=r[7])-i)*(s+u)-(c-a)*(o+l)+o*(a-u)-s*(i-l)+p*(u+a/3)-c*(l+i/3))/20})).reduce((function(t,e){return t+e}),0)}(t)>=0}function fe(t,e,n){return[t[0]*(1-n)+e[0]*n,t[1]*(1-n)+e[1]*n]}function de(t,e){e=e||.5;var n=t.slice(0,2),r=t.slice(2,4),a=t.slice(4,6),i=t.slice(6,8),s=fe(n,r,e),o=fe(r,a,e),u=fe(a,i,e),l=fe(s,o,e),c=fe(o,u,e),p=fe(l,c,e);return[["C"].concat(s,l,p),["C"].concat(c,u,i)]}function ve(t){return le(function(t){return t.replace(/(m|M)/g,"|$1").split("|").map((function(t){return t.trim()})).filter((function(t){return t}))}(Ft(ee(t)))[0]).map((function(t,e,n){var r=e?[["M"].concat(n[e-1].slice(-2))].concat([t]):[],a=e?pe(Ft(Nt(r))).getTotalLength():0,i=e?a?de(n[e-1].slice(-2).concat(t.slice(1))):[t,t]:[t];return{seg:t,subsegs:i,length:a}}))}function ge(t,e,n){var r=ve(t),a=ve(e),i=r.length,s=a.length,o=r.filter((function(t){return t.length})).length,u=a.filter((function(t){return t.length})).length,l=r.filter((function(t){return t.length})).reduce((function(t,e){return t+e.length}),0)/o||0,c=a.filter((function(t){return t.length})).reduce((function(t,e){return t+e.length}),0)/u||0,p=n||Math.max(i,s),h=[l,c],f=[p-i,p-s],d=[r,a].map((function(t,e){return t.length===p?t.map((function(t){return t.seg})):t.map((function(t,n){var r=n&&f[e]&&t.length>=h[e],a=r?t.subsegs:[t.seg];return f[e]-=r?1:0,a})).flat()}));return d[0].length===d[1].length?d:ge(d[0],d[1],p)}function me(t){var e=t.length,n=e-1;return t.map((function(r,a){return t.map((function(r,i){var s,o=a+i;return 0===i||t[o]&&"M"===t[o][0]?(s=t[o],["M"].concat(s.slice(-2))):(o>=e&&(o-=n),t[o])}))}))}function ye(t,e){var n=t.length-1,r=[],a=[],i=me(t);return i.map((function(i,s){for(var o,u,l,c,p,h=0,f=pe("M0,0L0,0"),d=0;d<n;d++)u=(o=t[(s+d)%n]).length,c=(l=e[d%n]).length,p="M"+o[u-2]+","+o[u-1]+"L"+l[c-2]+","+l[c-1],f.setAttribute("d",p),h+=Math.pow(f.getTotalLength(),2),r[d]=f;a[s]=h,h=0})),i[a.indexOf(Math.min.apply(null,a))]}var be={prepareStart:function(t){return this.element.getAttribute("d")},prepareProperty:function(t,e){var n={},r=e instanceof SVGElement?e:/^\.|^\#/.test(e)?V(e):null,a=new RegExp("\\n","ig");return"object"==typeof e&&e.curve?e:(r&&/path|glyph/.test(r.tagName)?n.original=r.getAttribute("d").replace(a,""):r||"string"!=typeof e||(n.original=e.replace(a,"")),n)},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){for(var a=[],i=e.curve,s=n.curve,o=0,u=s.length;o<u;o++){a.push([i[o][0]]);for(var l=1,c=i[o].length;l<c;l++)a[o].push((1e3*B(i[o][l],s[o][l],r)>>0)/1e3)}t.setAttribute("d",1===r?n.original:Ft(a))})},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=ge(this.valuesStart[t].original,this.valuesEnd[t].original),a=he(r[0])!==he(r[1])?ce(r[0]):Nt(r[0]);this.valuesStart[t].curve=a,this.valuesEnd[t].curve=ye(r[1],a)}}}},we={component:"svgCubicMorph",property:"path",defaultValue:[],Interpolate:{numbers:B,pathToString:Ft},functions:be,Util:{pathToCurve:le,pathToAbsolute:ee,pathToString:Ft,parsePathString:Zt,getRotatedCurve:ye,getRotations:me,equalizeSegments:ge,reverseCurve:ce,createPath:pe,clonePath:Nt,getDrawDirection:he,splitCubic:de,getCurveArray:ve}};function xe(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 Se(t){var e=t&&/\)/.test(t)?t.substring(0,t.length-1).split(/\)\s|\)/):"none",n={};if(e instanceof Array)for(var r=0,a=e.length;r<a;r++){var i=e[r].trim().split("(");n[i[0]]=i[1]}return n}function Ce(t,e){var n,r={},a=this.element.getBBox(),i=a.x+a.width/2,s=a.y+a.height/2,o=this._transformOrigin;for(var u in(o=void 0!==o?o.constructor===Array?o:o.split(/\s/):[i,s])[0]="number"==typeof o[0]?o[0]:xe(o[0],a),o[1]="number"==typeof o[1]?o[1]:xe(o[1],a),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=we;var Me={prepareStart:function(t,e){var n={},r=Se(this.element.getAttribute("transform"));for(var a in e)n[a]=a in r?r[a]:"scale"===a?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 a,i=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;i-=d?n.origin[0]:0,s-=d?n.origin[1]:0,i*=u,s*=u,s+=f?i*Math.tan(f*o):0,a=p*(i+=h?s*Math.tan(h*o):0)-c*s,s=l?c*i+p*s:s,i=l?a:i,i+="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,i+=d?n.origin[0]:0,s+=d?n.origin[1]:0,t.setAttribute("transform",(i||s?"translate("+(1e3*i>>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,Se(this.element.getAttribute("transform")));for(var a in r)e[a]=r[a];var i=this.element.ownerSVGElement,s=i.createSVGTransformFromMatrix(i.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])}}},Te={component:"svgTransformProperty",property:"svgTransform",defaultOptions:{transformOrigin:"50% 50%"},defaultValue:{translate:0,rotate:0,skewX:0,skewY:0,scale:1},Interpolate:{numbers:B},functions:Me,Util:{parseStringOrigin:xe,parseTransformString:Se,parseTransformSVG:Ce}};x.SVGTransformProperty=Te;var Ee=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}(),_e="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],ke="ontouchstart"in window||navigator.msMaxTouchPoints||!1?"touchstart":"mousewheel",Ie=navigator&&/(EDGE|Mac)/i.test(navigator.userAgent)?document.body:document.documentElement,Ae=!!Ee&&{passive:!1};function Pe(t){this.scrolling&&t.preventDefault()}function Oe(){var t=this.element;return t===Ie?{el:document,st:document.body}:{el:t,st:t}}function Le(t,e){e[t](_e[0],Pe,Ae),e[t](ke,Pe,Ae)}function Ve(){var t=Oe.call(this);"scroll"in this.valuesEnd&&!t.el.scrolling&&(t.el.scrolling=1,Le("addEventListener",t.el),t.st.style.pointerEvents="none")}function Ue(){var t=Oe.call(this);"scroll"in this.valuesEnd&&t.el.scrolling&&(t.el.scrolling=0,Le("removeEventListener",t.el),t.st.style.pointerEvents="")}var je={prepareStart:function(){return this.element=!("scroll"in this.valuesEnd)||this.element&&this.element!==window?this.element:Ie,this.element===Ie?window.pageYOffset||Ie.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:Ie,Ve.call(this),t[e]=function(t,e,n,r){t.scrollTop=B(e,n,r)>>0})},onComplete:function(t){Ue.call(this)}},Fe={component:"scrollProperty",property:"scroll",defaultValue:0,Interpolate:{numbers:B},functions:je,Util:{preventScroll:Pe,scrollIn:Ve,scrollOut:Ue,getScrollTargets:Oe,toggleScrollEvents:Le,supportPassive:Ee}};function Ne(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){for(var i=[],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++)i.push((1e3*B(n[c],r[c],a)>>0)/1e3+"px");t.style[e]=l?ot(o,u,a)+i.join(" ")+l:ot(o,u,a)+i.join(" ")})}x.ScrollProperty=Fe;var Re=["boxShadow","textShadow"];function De(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 He={};Re.map((function(t){return He[t]=Ne}));var qe={component:"shadowProperties",properties:Re,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=_(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=De(e=e.replace(n[0],"").split(" ").concat([n[0].replace(/\s/g,"")],[r]),t)}else e instanceof Array&&(e=De(e,t));return e},onStart:He},Util:{processShadowArray:De,trueColor:st}};function Be(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=Y(n.v,r.v,r.u,a)})}x.ShadowProperties=qe;var Xe=["fontSize","lineHeight","letterSpacing","wordSpacing"],ze={};Xe.forEach((function(t){ze[t]=Be}));var Qe={component:"textProperties",category:"textProperties",properties:Xe,defaultValues:{fontSize:0,lineHeight:0,letterSpacing:0,wordSpacing:0},Interpolate:{units:Y},functions:{prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){return X(e)},onStart:ze},Util:{trueDimension:X}};x.TextProperties=Qe;var Ye=String("abcdefghijklmnopqrstuvwxyz").split(""),We=String("abcdefghijklmnopqrstuvwxyz").toUpperCase().split(""),Ke=String("~!@#$%^&*()_+{}[];'<>,./?=-").split(""),$e=String("0123456789").split(""),Ge=Ye.concat(We,$e),Ze=Ge.concat(Ke),Je={alpha:Ye,upper:We,symbols:Ke,numeric:$e,alphanumeric:Ge,all:Ze},tn={text:function(e){if(!t[e]&&this.valuesEnd[e]){var n=this._textChars,r=n in Je?Je[n]:n&&n.length?n:Je[f.textChars];t[e]=function(t,e,n,a){var i="",s="",o=e.substring(0),u=n.substring(0),l=r[Math.random()*r.length>>0];" "===e?(s=u.substring(Math.min(a*u.length,u.length)>>0,0),t.innerHTML=a<1?s+l:""===n?" ":n):" "===n?(i=o.substring(0,Math.min((1-a)*o.length,o.length)>>0),t.innerHTML=a<1?i+l:""===n?" ":n):(i=o.substring(o.length,Math.min(a*o.length,o.length)>>0),s=u.substring(0,Math.min(a*u.length,u.length)>>0),t.innerHTML=a<1?s+l+i:""===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 en(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 a=t.innerHTML;(n=document.createElement("SPAN")).className=e,n.innerHTML=a,t.appendChild(n),t.innerHTML=n.outerHTML}else t.children.length&&t.children[0].className===e&&(n=t.children[0]);return n}function nn(t,e){var n=[];if(t.children.length){for(var r,a=[],i=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=i.split(l))[0]?(c=en(r[0],e),a.push(c),i=i.replace(r[0],"")):""!==r[1]&&(c=en(r[1].split("<")[0],e),a.push(c),i=i.replace(r[0].split("<")[0],"")),!u.classList.contains(e)&&u.classList.add(e),a.push(u),i=i.replace(l,"");if(""!==i){var p=en(i,e);a.push(p)}n=n.concat(a)}else n=n.concat([en(t,e)]);return n}var rn={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:tn},Util:{charSet:Je,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=nn(t,"text-part"),r=nn(en(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),a=r[0],i=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*a[e].innerHTML.length:n.duration,n.delay=l,n.onComplete=null,l+=n.duration,new O.tween(t,{text:t.innerHTML},{text:""},n)})))).concat(o.map((function(r,a){return n.duration="auto"===n.duration?75*i[a].innerHTML.length:n.duration,n.delay=l,n.onComplete=a===i.length-1?function(){t.innerHTML=e,t.playing=!1}:null,l+=n.duration,new O.tween(r,{text:""},{text:i[a].innerHTML},n)})))).start=function(){!t.playing&&u.map((function(t){return t.start()}))&&(t.playing=!0)},u}}}};function an(t,e,n){for(var r=[],a=0,i=e.length;a<i;a++)r[a]=(1e3*(t[a]+(e[a]-t[a])*n)>>0)/1e3;return r}x.TextWriteProperties=rn;var sn="undefined"!=typeof DOMMatrix?DOMMatrix:"undefined"!=typeof WebKitCSSMatrix?WebKitCSSMatrix:"undefined"!=typeof CSSMatrix?CSSMatrix:"undefined"!=typeof MSCSSMatrix?MSCSSMatrix:null,on="transformMatrix";var un={component:on,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 a in r)n[a]=r[a]}else for(var i in e)n[i]="perspective"===i?e[i]:h.transform[i];return n},prepareProperty:function(t,e){if("object"==typeof e&&!e.length){var n,r={},a={},i={},s={},o={},u=[{translate3d:a},{rotate3d:i},{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)?a:/rotate/.test(t)?i:/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,a){var i=new sn,s={};for(var o in r)s[o]="perspective"===o?B(n[o],r[o],a):an(n[o],r[o],a);s.perspective&&(i.m34=-1/s.perspective),i=s.translate3d?i.translate(s.translate3d[0],s.translate3d[1],s.translate3d[2]):i,i=s.rotate3d?i.rotate(s.rotate3d[0],s.rotate3d[1],s.rotate3d[2]):i,s.skew&&(i=s.skew[0]?i.skewX(s.skew[0]):i,i=s.skew[1]?i.skewY(s.skew[1]):i),i=s.scale3d?i.scale(s.scale3d[0],s.scale3d[1],s.scale3d[2]):i,t.style[e]=i.toString()})},CSS3Matrix:function(e){this.valuesEnd.transform&&!t[e]&&(t[e]=sn)}},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:an,rotate3d:an,skew:an,scale3d:an}};for(var ln in x.TransformMatrix=un,x){var cn=x[ln];x[ln]=new q(cn)}return{Animation:q,Components:x,TweenExtra:N,fromTo:function(t,e,n,r){return r=r||{},new O.tween(V(t),e,n,r)},to:function(t,e,n){return(n=n||{}).resetStart=e,new O.tween(V(t),e,e,n)},TweenCollection:R,ProgressBar:D,allFromTo:function(t,e,n,r){return r=r||{},new R(V(t,!0),e,n,r)},allTo:function(t,e,n){return(n=n||{}).resetStart=e,new R(V(t,!0),e,e,n)},Objects:b,Util:w,Easing:L,CubicBezier:P,Render:l,Interpolate:r,Process:A,Internals:T,Selector:V,Version:"2.0.14"}}));