PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/libs/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/elintscleaningservices.co.uk/wp-content/themes/porto/js/libs/kute.min.js

!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 u={},r=[],t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},d={},v={},e={};e.now=self.performance.now.bind(self.performance);var a=0,n=function(t){for(var e=0;e<r.length;)r[e].update(t)?e++:r.splice(e,1);a=requestAnimationFrame(n)};function i(){setTimeout(function(){if(!r.length&&a){for(var t in cancelAnimationFrame(a),a=null,v)if("function"==typeof v[t])u[t]&&delete u[t];else for(var e in v[t])u[e]&&delete u[e];for(var n in d)u[n]&&delete u[n]}},64)}var s={Tick:a,Ticker:n,Tweens:r,Time:e};for(var o in s)u[o]||(u[o]="Time"===o?e.now:s[o]);t._KUTE=u;var g={},y={},m={duration:700,delay:0,easing:"linear"},x={},w={},b={},M={},_={},l={supportedProperties:g,defaultValues:y,defaultOptions:m,prepareProperty:x,prepareStart:w,crossCheck:b,onStart:v,onComplete:M,linkProperty:_},C={},c={};function p(t){return r.push(t)}function h(t){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}function f(){var o=this;for(var t in _)!function(t){var e=_[t],n=g[t];for(var r in e)if("function"==typeof e[r]&&Object.keys(o.valuesEnd).some(function(t){return n&&n.includes(t)||"attr"===t&&Object.keys(o.valuesEnd[t]).some(function(t){return n&&n.includes(t)})}))u[r]||(u[r]=e[r]);else for(var a in o.valuesEnd)for(var i in o.valuesEnd[a])if("function"==typeof e[i])u[i]||(u[i]=e[i]);else for(var s in e[r])e[i]&&"function"==typeof e[i][s]&&(u[s]||(u[s]=e[i][s]))}(t)}var T={add:p,remove:h,getAll:function(){return r},removeAll:function(){r.length=0},stop:i,linkInterpolation:f};function S(t){if(t.style){var e=t.style.cssText.replace(/\s/g,"").split(";"),a={},i=["translate3d","translate","scale3d","skew"];return e.map(function(t){/transform/i.test(t)&&t.split(":")[1].split(")").map(function(t){var e=t.split("("),n=e[0],r=e[1];/matrix/.test(n)||(a[n]=i.includes(n)?r.split(","):r)})}),a}}function I(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||y[e]}function E(t,e){var n="start"===e?this.valuesStart:this.valuesEnd;for(var r in x){var a=x[r],i=g[r];for(var s in a){var o={};for(var u in t)y[u]&&a[u]?n[u]=a[u].call(this,u,t[u]):!y[s]&&"transform"===s&&i.includes(u)?o[u]=t[u]:y[u]||"transform"!==u?!y[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 A(){var t={},e=S(this.element);for(var n in this.valuesStart)for(var r in w){var a=w[r];for(var i in a)(i===n&&a[n]||g[r]&&g[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]||y[s]);this.valuesStart={},E.call(this,t,"start")}function k(t,e,n,r,a){var i=this;function s(t){return i.sampleCurveY(i.solveCurveX(t))}return 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,Object.defineProperty(s,"name",{writable:!0}),s.name=a||"cubic-bezier("+[t,e,n,r]+")",s}var O={getInlineStyle:S,getStyleForProperty:I,getStartValues:A,prepareObject:E};k.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},k.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},k.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},k.prototype.solveCurveX=function(t){for(var e,n,r,a,i=t,s=0;s<32;s++){if(r=this.sampleCurveX(i)-t,Math.abs(r)<1e-5)return i;if(a=this.sampleCurveDerivativeX(i),Math.abs(a)<1e-5)break;i-=r/a}if((i=t)<(e=0))return e;if((n=1)<i)return n;for(;e<n;){if(r=this.sampleCurveX(i),Math.abs(r-t)<1e-5)return i;r<t?e=i:n=i,i=.5*(n-e)+e}return i};var L={},P={linear:new k(0,0,1,1,"linear"),easingSinusoidalIn:new k(.47,0,.745,.715,"easingSinusoidalIn"),easingSinusoidalOut:new k(.39,.575,.565,1,"easingSinusoidalOut"),easingSinusoidalInOut:new k(.445,.05,.55,.95,"easingSinusoidalInOut"),easingQuadraticIn:new k(.55,.085,.68,.53,"easingQuadraticIn"),easingQuadraticOut:new k(.25,.46,.45,.94,"easingQuadraticOut"),easingQuadraticInOut:new k(.455,.03,.515,.955,"easingQuadraticInOut"),easingCubicIn:new k(.55,.055,.675,.19,"easingCubicIn"),easingCubicOut:new k(.215,.61,.355,1,"easingCubicOut"),easingCubicInOut:new k(.645,.045,.355,1,"easingCubicInOut"),easingQuarticIn:new k(.895,.03,.685,.22,"easingQuarticIn"),easingQuarticOut:new k(.165,.84,.44,1,"easingQuarticOut"),easingQuarticInOut:new k(.77,0,.175,1,"easingQuarticInOut"),easingQuinticIn:new k(.755,.05,.855,.06,"easingQuinticIn"),easingQuinticOut:new k(.23,1,.32,1,"easingQuinticOut"),easingQuinticInOut:new k(.86,0,.07,1,"easingQuinticInOut"),easingExponentialIn:new k(.95,.05,.795,.035,"easingExponentialIn"),easingExponentialOut:new k(.19,1,.22,1,"easingExponentialOut"),easingExponentialInOut:new k(1,0,0,1,"easingExponentialInOut"),easingCircularIn:new k(.6,.04,.98,.335,"easingCircularIn"),easingCircularOut:new k(.075,.82,.165,1,"easingCircularOut"),easingCircularInOut:new k(.785,.135,.15,.86,"easingCircularInOut"),easingBackIn:new k(.6,-.28,.735,.045,"easingBackIn"),easingBackOut:new k(.175,.885,.32,1.275,"easingBackOut"),easingBackInOut:new k(.68,-.55,.265,1.55,"easingBackInOut")};function V(e,t){try{var n=t?e instanceof HTMLCollection||e instanceof NodeList||e instanceof Array&&e.every(function(t){return t instanceof Element})?e:document.querySelectorAll(e):e instanceof Element||e===window?e:document.querySelector(e);return n}catch(t){console.error("KUTE.js - Element(s) not found: "+e+".")}}function q(){for(var t in v)if("function"==typeof v[t])v[t].call(this,t);else for(var e in v[t])v[t][e].call(this,e);f.call(this)}L.processEasing=function(t){if("function"==typeof t)return t;if("function"==typeof P[t])return P[t];if(/bezier/.test(t)){var e=t.replace(/bezier|\s|\(|\)/g,"").split(",");return new k(+e[0],+e[1],+e[2],+e[3])}return/elastic|bounce/i.test(t)&&console.warn("KUTE.js - CubicBezier doesn't support "+t+" easing."),P.linear};function N(t,e,n,r){for(var a in this.element=t,this.playing=!1,this._startTime=null,this._startFired=!1,this.valuesEnd=n,this.valuesStart=e,r=r||{},this._resetStart=r.resetStart||0,this._easing="function"==typeof r.easing?r.easing:L.processEasing(r.easing),this._duration=r.duration||m.duration,this._delay=r.delay||m.delay,r){var i="_"+a;i in this||(this[i]=r[a])}var s=this._easing.name;return v[s]||(v[s]=function(t){u[t]||t!==this._easing.name||(u[t]=this._easing)}),this}N.prototype.start=function(t){return p(this),this.playing=!0,this._startTime=void 0!==t?t:u.Time(),this._startTime+=this._delay,this._startFired||(this._onStart&&this._onStart.call(this),q.call(this),this._startFired=!0),a||n(),this},N.prototype.stop=function(){return this.playing&&(h(this),this.playing=!1,this._onStop&&this._onStop.call(this),this.close()),this},N.prototype.close=function(){for(var t in M)for(var e in M[t])M[t][e].call(this,e);this._startFired=!1,i.call(this)},N.prototype.chain=function(t){return this._chain=[],this._chain=t.length?t:this._chain.concat(t),this},N.prototype.stopChainedTweens=function(){this._chain&&this._chain.length&&this._chain.map(function(t){return t.stop()})},N.prototype.update=function(t){var e,n;if((t=void 0!==t?t:u.Time())<this._startTime&&this.playing)return!0;for(var r in e=(t-this._startTime)/this._duration,e=0===this._duration||1<e?1:e,n=this._easing(e),this.valuesEnd)u[r](this.element,this.valuesStart[r],this.valuesEnd[r],n);return this._onUpdate&&this._onUpdate.call(this),1!==e||(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)},L.tween=N,m.repeat=0,m.repeatDelay=0,m.yoyo=!1,m.resetStart=!1;var j,H=((j=N)&&(F.__proto__=j),((F.prototype=Object.create(j&&j.prototype)).constructor=F).prototype.start=function(t){if(this._resetStart)for(var e in this.valuesStart=this._resetStart,A.call(this),b)for(var n in b[e])b[e][n].call(this,n);if(this.paused=!1,this._yoyo)for(var r in this.valuesEnd)this.valuesRepeat[r]=this.valuesStart[r];return j.prototype.start.call(this,t),this},F.prototype.stop=function(){return j.prototype.stop.call(this),!this.paused&&this.playing&&(this.paused=!1,this.stopChainedTweens()),this},F.prototype.close=function(){return j.prototype.close.call(this),0<this._repeatOption&&(this._repeat=this._repeatOption),this._yoyo&&!0===this._reversed&&(this.reverse(),this._reversed=!1),this},F.prototype.resume=function(){return this.paused&&this.playing&&(this.paused=!1,void 0!==this._onResume&&this._onResume.call(this),q.call(this),this._startTime+=u.Time()-this._pauseTime,p(this),a||n()),this},F.prototype.pause=function(){return!this.paused&&this.playing&&(h(this),this.paused=!0,this._pauseTime=u.Time(),void 0!==this._onPause&&this._onPause.call(this)),this},F.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]}},F.prototype.update=function(t){var e,n;if((t=void 0!==t?t:u.Time())<this._startTime&&this.playing)return!0;for(var r in e=(t-this._startTime)/this._duration,e=0===this._duration||1<e?1:e,n=this._easing(e),this.valuesEnd)u[r](this.element,this.valuesStart[r],this.valuesEnd[r],n);return this._onUpdate&&this._onUpdate.call(this),1!==e||(0<this._repeat?(isFinite(this._repeat)&&this._repeat--,this._startTime=isFinite(this._repeat)&&this._yoyo&&!this._reversed?t+this._repeatDelay:t,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))},F);function F(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];j.apply(this,t),this.valuesStart={},this.valuesEnd={};var n=t[1],r=t[2];if(E.call(this,r,"end"),this._resetStart?this.valuesStart=n:E.call(this,n,"start"),!this._resetStart)for(var a in b)for(var i in b[a])b[a][i].call(this,i);this.paused=!1,this._pauseTime=null;var s=t[3];return this._repeat=s.repeat||m.repeat,this._repeatDelay=s.repeatDelay||m.repeatDelay,this._repeatOption=this._repeat,this.valuesRepeat={},this._yoyo=s.yoyo||m.yoyo,this._reversed=!1,this}L.tween=H;function U(t,n,r,a){var i=this;this.tweens=[],"offset"in m||(m.offset=0),(a=a||{}).delay=a.delay||m.delay;var s=[];return Array.from(t).map(function(t,e){s[e]=a||{},s[e].delay=0<e?a.delay+(a.offset||m.offset):a.delay,t instanceof Element?i.tweens.push(new L.tween(t,n,r,s[e])):console.error("KUTE.js - "+t+" not instanceof [Element]")}),this.length=this.tweens.length,this}U.prototype.start=function(e){return e=void 0===e?u.Time():e,this.tweens.map(function(t){return t.start(e)}),this},U.prototype.stop=function(){return this.tweens.map(function(t){return t.stop(time)}),this},U.prototype.pause=function(){return this.tweens.map(function(t){return t.pause(time)}),this},U.prototype.resume=function(){return this.tweens.map(function(t){return t.resume(time)}),this},U.prototype.chain=function(t){var e=this.tweens[this.length-1];if(t instanceof U)e.chain(t.tweens);else{if(!(t instanceof L.tween))throw new TypeError("KUTE.js - invalid chain value");e.chain(t)}return this},U.prototype.playing=function(){return this.tweens.some(function(t){return t.playing})},U.prototype.removeTweens=function(){this.tweens=[]},U.prototype.getMaxDuration=function(){var e=[];return this.tweens.forEach(function(t){e.push(t._duration+t._delay+t._repeat*t._repeatDelay)}),Math.max(e)};function Q(t){try{t.component in g?console.error("KUTE.js - "+t.component+" already registered"):t.property in y?console.error("KUTE.js - "+t.property+" already registered"):this.setComponent(t)}catch(t){console.error(t)}}function D(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"}}function R(t,e,n){return(t=+t)+(e-=t)*n}function X(a){a in this.valuesEnd&&!u[a]&&(u[a]=function(t,e,n,r){t.style[a]=(.99<r||r<.01?(10*R(e,n,r)>>0)/10:R(e,n,r)>>0)+"px"})}Q.prototype.setComponent=function(t){var e=t.component,n={prepareProperty:x,prepareStart:w,onStart:v,onComplete:M,crossCheck:b},r=t.category,a=t.property,i=t.properties&&t.properties.length||t.subProperties&&t.subProperties.length;if(g[e]=t.properties||t.subProperties||t.property,"defaultValue"in t)y[a]=t.defaultValue,this.supports=a+" property";else if(t.defaultValues){for(var s in t.defaultValues)y[s]=t.defaultValues[s];this.supports=(i||a)+" "+(a||r)+" properties"}if(t.defaultOptions)for(var o in t.defaultOptions)m[o]=t.defaultOptions[o];if(t.functions)for(var u in n)if(u in t.functions)if("function"==typeof t.functions[u])n[u][e]||(n[u][e]={}),n[u][e][r||a]||(n[u][e][r||a]=t.functions[u]);else for(var l in t.functions[u])n[u][e]||(n[u][e]={}),n[u][e][l]||(n[u][e][l]=t.functions[u][l]);if(t.Interpolate){for(var c in t.Interpolate){var p=t.Interpolate[c];if("function"!=typeof p||d[c])for(var h in p)"function"!=typeof p[h]||d[c]||(d[c]=p[h]);else d[c]=p}_[e]=t.Interpolate}if(t.Util)for(var f in t.Util)C[f]||(C[f]=t.Util[f]);return this};var B=["top","left","width","height"],Z={};B.map(function(t){return Z[t]=X});var z={component:"essentialBoxModel",category:"boxModel",properties:B,defaultValues:{top:0,left:0,width:0,height:0},Interpolate:{numbers:R},functions:{prepareStart:function(t){return I(this.element,t)||y[t]},prepareProperty:function(t,e){var n=D(e),r="height"===t?"offsetHeight":"offsetWidth";return"%"===n.u?n.v*this.element[r]/100:n.v},onStart:Z},Util:{trueDimension:D}};function Y(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,i=/rgb/.test(i)?i.replace(/[^\d,]/g,"").split(","):[0,0,0];return a.style.color="",{r:parseInt(i[0]),g:parseInt(i[1]),b:parseInt(i[2])}}}function K(t,e,n){var r,a={};for(r in e)a[r]="a"!==r?R(t[r],e[r],n)>>0||0:t[r]&&e[r]?(100*R(t[r],e[r],n)>>0)/100:null;return a.a?"rgba("+a.r+","+a.g+","+a.b+","+a.a+")":"rgb("+a.r+","+a.g+","+a.b+")"}function $(a){this.valuesEnd[a]&&!u[a]&&(u[a]=function(t,e,n,r){t.style[a]=K(e,n,r)})}c.BoxModelEssential=z;var W=["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],G={};W.map(function(t){G[t]="#000"});var J={};W.map(function(t){return J[t]=$});var tt={component:"colorProperties",category:"colors",properties:W,defaultValues:G,Interpolate:{numbers:R,colors:K},functions:{prepareStart:function(t,e){return I(this.element,t)||y[t]},prepareProperty:function(t,e){return Y(e)},onStart:J},Util:{trueColor:Y}};c.ColorProperties=tt;var et={},nt="htmlAttributes",rt=["fill","stroke","stop-color"];function at(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}var it={prepareStart:function(t,e){var n={};for(var r in e){var a=at(r).replace(/_+[a-z]+/,""),i=this.element.getAttribute(a);n[a]=rt.includes(a)?i||"rgba(0,0,0,0)":i||(/opacity/i.test(r)?1:0)}return n},prepareProperty:function(e,t){var n={};for(var r in t){var a,s,i=at(r),o=/(%|[a-z]+)$/,u=this.element.getAttribute(i.replace(/_+[a-z]+/,""));rt.includes(i)?(v[nt][i]=function(t){!this.valuesEnd[e]||!this.valuesEnd[e][t]||t in et||(et[t]=function(t,e,n,r,a){t.setAttribute(e,K(n,r,a))})},n[i]=Y(t[r])||y.htmlAttributes[r]):null!==u&&o.test(u)?(a=D(u).u||D(t[r]).u,s=/%/.test(a)?"_percent":"_"+a,v[nt][i+s]=function(t){!this.valuesEnd[e]||!this.valuesEnd[e][t]||t in et||(et[t]=function(t,e,n,r,a){var i=e.replace(s,"");t.setAttribute(i,(1e3*R(n.v,r.v,a)>>0)/1e3+r.u)})},n[i+s]=D(t[r])):o.test(t[r])&&null!==u&&(null===u||o.test(u))||(v[nt][i]=function(t){!this.valuesEnd[e]||!this.valuesEnd[e][t]||t in et||(et[t]=function(t,e,n,r,a){t.setAttribute(e,(1e3*R(n,r,a)>>0)/1e3)})},n[i]=parseFloat(t[r]))}return n},onStart:{attr:function(t){!u[t]&&this.valuesEnd[t]&&(u[t]=function(t,e,n,r){for(var a in n)u.attributes[a](t,a,e[a],n[a],r)})},attributes:function(t){!u[t]&&this.valuesEnd.attr&&(u[t]=et)}}},st={component:nt,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:R,colors:K},functions:it,Util:{replaceUppercase:at,trueColor:Y,trueDimension:D}};c.HTMLAttributes=st;var ot={prepareStart:function(t){return I(this.element,t)},prepareProperty:function(t,e){return parseFloat(e)},onStart:function(a){a in this.valuesEnd&&!u[a]&&(u[a]=function(t,e,n,r){t.style[a]=(1e3*R(e,n,r)>>0)/1e3})}},ut={component:"opacityProperty",property:"opacity",defaultValue:1,Interpolate:{numbers:R},functions:ot};c.OpacityProperty=ut;var lt=String("abcdefghijklmnopqrstuvwxyz").split(""),ct=String("abcdefghijklmnopqrstuvwxyz").toUpperCase().split(""),pt=String("~!@#$%^&*()_+{}[];'<>,./?=-").split(""),ht=String("0123456789").split(""),ft=lt.concat(ct,ht),dt=ft.concat(pt),vt={alpha:lt,upper:ct,symbols:pt,numeric:ht,alphanumeric:ft,all:dt},gt={text:function(t){var e,l;!u[t]&&this.valuesEnd[t]&&(e=this._textChars,l=e in vt?vt[e]:e&&e.length?e:vt[m.textChars],u[t]=function(t,e,n,r){var a="",i="",s=e.substring(0),o=n.substring(0),u=l[Math.random()*l.length>>0];" "===e?(i=o.substring(Math.min(r*o.length,o.length)>>0,0),t.innerHTML=r<1?i+u:""===n?" ":n):" "===n?(a=s.substring(0,Math.min((1-r)*s.length,s.length)>>0),t.innerHTML=r<1?a+u:""===n?" ":n):(a=s.substring(s.length,Math.min(r*s.length,s.length)>>0),i=o.substring(0,Math.min(r*o.length,o.length)>>0),t.innerHTML=r<1?i+u+a:""===n?" ":n)})},number:function(t){t in this.valuesEnd&&!u[t]&&(u[t]=function(t,e,n,r){t.innerHTML=R(e,n,r)>>0})}};function yt(t,e){var n,r,a;return"string"==typeof t?((n=document.createElement("SPAN")).innerHTML=t,n.className=e,n):(!t.children.length||t.children.length&&t.children[0].className!==e?(r=t.innerHTML,(a=document.createElement("SPAN")).className=e,a.innerHTML=r,t.appendChild(a),t.innerHTML=a.outerHTML):t.children.length&&t.children[0].className===e&&(a=t.children[0]),a)}function mt(t,e){var n=[];if(t.children.length){for(var r,a,i,s=[],o=t.innerHTML,u=0,l=t.children.length,c=void 0,p=void 0;u<l;u++)a=(c=t.children[u]).outerHTML,""!==(r=o.split(a))[0]?(p=yt(r[0],e),s.push(p),o=o.replace(r[0],"")):""!==r[1]&&(p=yt(r[1].split("<")[0],e),s.push(p),o=o.replace(r[0].split("<")[0],"")),c.classList.contains(e)||c.classList.add(e),s.push(c),o=o.replace(a,"");""!==o&&(i=yt(o,e),s.push(i)),n=n.concat(s)}else n=n.concat([yt(t,e)]);return n}var xt={component:"textWriteProperties",category:"textWrite",properties:["text","number"],defaultValues:{text:" ",numbers:"0"},defaultOptions:{textChars:"alpha"},Interpolate:{numbers:R},functions:{prepareStart:function(t,e){return this.element.innerHTML},prepareProperty:function(t,e){return"number"===t?parseFloat(e):""===e?" ":e},onStart:gt},Util:{charSet:vt,createTextTweens:function(n,r,a){if(!n.playing){(a=a||{}).duration="auto"===a.duration?"auto":isFinite(+a.duration)?+a.duration:1e3;var t,e,i,s,o=(e=r,i=mt(t=n,"text-part"),s=mt(yt(e),"text-part"),t.innerHTML="",t.innerHTML+=i.map(function(t){return t.className+=" oldText",t.outerHTML}).join(""),t.innerHTML+=s.map(function(t){return t.className+=" newText",t.outerHTML.replace(t.innerHTML,"")}).join(""),[i,s]),u=o[0],l=o[1],c=[].slice.call(n.getElementsByClassName("oldText")).reverse(),p=[].slice.call(n.getElementsByClassName("newText")),h=[],f=0;return(h=(h=h.concat(c.map(function(t,e){return a.duration="auto"===a.duration?75*u[e].innerHTML.length:a.duration,a.delay=f,a.onComplete=null,f+=a.duration,new L.tween(t,{text:t.innerHTML},{text:""},a)}))).concat(p.map(function(t,e){return a.duration="auto"===a.duration?75*l[e].innerHTML.length:a.duration,a.delay=f,a.onComplete=e===l.length-1?function(){n.innerHTML=r,n.playing=!1}:null,f+=a.duration,new L.tween(t,{text:""},{text:l[e].innerHTML},a)}))).start=function(){!n.playing&&h.map(function(t){return t.start()})&&(n.playing=!0)},h}}}};function wt(t,e,n,r){return"perspective("+(1e3*(t+(e-t)*r)>>0)/1e3+n+")"}function bt(t,e,n,r){for(var a=[],i=0;i<3;i++)a[i]=(t[i]||e[i]?(1e3*(t[i]+(e[i]-t[i])*r)>>0)/1e3:0)+n;return"translate3d("+a.join(",")+")"}function Mt(t,e,n,r){var a="";return a+=t[0]||e[0]?"rotateX("+(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3+n+")":"",a+=t[1]||e[1]?"rotateY("+(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3+n+")":"",a+=t[2]||e[2]?"rotateZ("+(1e3*(t[2]+(e[2]-t[2])*r)>>0)/1e3+n+")":""}function _t(t,e,n){return"scale("+(1e3*(t+(e-t)*n)>>0)/1e3+")"}function Ct(t,e,n,r){var a=[];return a[0]=(t[0]===e[0]?e[0]:(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3)+n,a[1]=t[1]||e[1]?(t[1]===e[1]?e[1]:(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3)+n:"0","skew("+a.join(",")+")"}c.TextWriteProperties=xt;var Tt={component:"transformFunctions",property:"transform",subProperties:["perspective","translate3d","translateX","translateY","translateZ","translate","rotate3d","rotateX","rotateY","rotateZ","rotate","skewX","skewY","skew","scale"],defaultValues:{perspective:400,translate3d:[0,0,0],translateX:0,translateY:0,translateZ:0,translate:[0,0],rotate3d:[0,0,0],rotateX:0,rotateY:0,rotateZ:0,rotate:0,skewX:0,skewY:0,skew:[0,0],scale:1},functions:{prepareStart:function(t,e){var n=S(this.element);return n[t]?n[t]:y[t]},prepareProperty:function(t,e){var n=["X","Y","Z"],r={},a=[],i=[],s=[],o=["translate3d","translate","rotate3d","skew"];for(var u in e){var l="object"==typeof e[u]&&e[u].length?e[u].map(function(t){return parseInt(t)}):parseInt(e[u]);if(o.includes(u))r["translate"===u||"rotate"===u?u+"3d":u]="skew"===u?l.length?[l[0]||0,l[1]||0]:[l||0,0]:"translate"!==u||l.length?[l[0]||0,l[1]||0,l[2]||0]:[l||0,0,0];else if(/[XYZ]/.test(u)){for(var c=u.replace(/[XYZ]/,""),p="skew"===c?c:c+"3d",h="skew"===c?2:3,f="translate"===c?a:"rotate"===c?i:"skew"===c?s:{},d=0;d<h;d++){var v=n[d];f[d]=""+c+v in e?parseInt(e[""+c+v]):0}r[p]=f}else"rotate"===u?r.rotate3d=[0,0,l]:r[u]="scale"===u?parseFloat(e[u]):l}return r},onStart:function(a){!u[a]&&this.valuesEnd[a]&&(u[a]=function(t,e,n,r){t.style[a]=(e.perspective||n.perspective?wt(e.perspective,n.perspective,"px",r):"")+(e.translate3d?bt(e.translate3d,n.translate3d,"px",r):"")+(e.rotate3d?Mt(e.rotate3d,n.rotate3d,"deg",r):"")+(e.skew?Ct(e.skew,n.skew,"deg",r):"")+(e.scale||n.scale?_t(e.scale,n.scale,r):"")})},crossCheck:function(t){this.valuesEnd[t]&&this.valuesEnd[t]&&this.valuesEnd[t].perspective&&!this.valuesStart[t].perspective&&(this.valuesStart[t].perspective=this.valuesEnd[t].perspective)}},Interpolate:{perspective:wt,translate3d:bt,rotate3d:Mt,translate:function(t,e,n,r){var a=[];return a[0]=(t[0]===e[0]?e[0]:(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3)+n,a[1]=t[1]||e[1]?(t[1]===e[1]?e[1]:(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3)+n:"0","translate("+a.join(",")+")"},rotate:function(t,e,n,r){return"rotate("+(1e3*(t+(e-t)*r)>>0)/1e3+n+")"},scale:_t,skew:Ct}};function St(t,e){return parseFloat(t)/100*e}function It(t){return 2*t.getAttribute("width")+2*t.getAttribute("height")}function Et(t){var e=t.getAttribute("points").split(" "),n=0;if(1<e.length){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(2<e.length)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 kt(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"===t.tagName?It(t):"circle"===t.tagName?kt(t):"ellipse"===t.tagName?Ot(t):-1<["polygon,polyline"].indexOf(t.tagName)?Et(t):"line"===t.tagName?At(t):void 0}function Pt(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])?St(e[0].trim(),s):parseFloat(e[0]),r=/%/.test(e[1])?St(e[1].trim(),s):parseFloat(e[1])):void 0===e&&(i=parseFloat(I(t,"stroke-dashoffset")),a=I(t,"stroke-dasharray").split(/\,/),n=0-i,r=parseFloat(a[0])+n||s),{s:n,e:r,l:s})}c.TransformFunctions=Tt;var Vt={prepareStart:function(){return Pt(this.element)},prepareProperty:function(t,e){return Pt(this.element,e)},onStart:function(t){t in this.valuesEnd&&!u[t]&&(u[t]=function(t,e,n,r){var a=(100*e.l>>0)/100,i=0-(100*R(e.s,n.s,r)>>0)/100,s=(100*R(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"})}},qt={component:"svgDraw",property:"draw",defaultValue:"0% 0%",Interpolate:{numbers:R},functions:Vt,Util:{getRectLength:It,getPolyLength:Et,getLineLength:At,getCircleLength:kt,getEllipseLength:Ot,getTotalLength:Lt,resetDraw:function(t){t.style.strokeDashoffset="",t.style.strokeDasharray=""},getDraw:Pt,percent:St}};function Nt(t,e,n,r){for(var a=[],i=0;i<n;i++){a[i]=[];for(var s=0;s<2;s++)a[i].push((1e3*(t[i][s]+(e[i][s]-t[i][s])*r)>>0)/1e3)}return a}c.SVGDraw=qt;var jt={origin:null,decimals:3,round:1};function Ht(t){return t.map(function(t){return Array.isArray(t)?Ht(t):isNaN(+t)?t:+t})}function Ft(t,e){var a=isNaN(+e)?jt.decimals:+e;return a?t.map(function(t){return t.map(function(t,e){var n=+t,r=Math.pow(10,a);return n?n%1==0?n:Math.round(n*r)/r:t})}):Ht(t)}var Ut={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Qt(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return Ut[e]===t.length-1&&/[achlmrqstvz]/g.test(e)})}function Dt(t){var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;if("m"===n&&2<r.length&&(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>=Ut[n]&&(t.segments.push([e].concat(r.splice(0,Ut[n]))),Ut[n]););}var Rt="Invalid path value";function Xt(t){return 48<=t&&t<=57}function Bt(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||5760<=e&&0<=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e));)t.index++;var e}function Zt(t){var e,n,r,a,i,s,o,u=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 1}}(e=t.pathValue.charCodeAt(t.index)))if(r=Ut[t.pathValue[t.index].toLowerCase()],t.index++,Bt(t),t.data=[],r){for(n=!1;;){for(a=r;0<a;a--){if(97!=(32|e)||3!==a&&4!==a?function(t){var e,n,r=t.index,a=r,i=t.max,s=!1,o=!1,u=!1;if(i<=a)t.err=Rt+": missing param "+t.pathValue[a];else if(43!==(n=t.pathValue.charCodeAt(a))&&45!==n||(n=++a<i?t.pathValue.charCodeAt(a):0),Xt(n)||46===n){if(46!==n){if(e=48===n,n=++a<i?t.pathValue.charCodeAt(a):0,e&&a<i&&n&&Xt(n))return t.err=Rt+": "+t.pathValue[r]+" illegal number";for(;a<i&&Xt(t.pathValue.charCodeAt(a));)a++,s=!0;n=a<i?t.pathValue.charCodeAt(a):0}if(46===n){for(u=!0,a++;Xt(t.pathValue.charCodeAt(a));)a++,o=!0;n=a<i?t.pathValue.charCodeAt(a):0}if(101===n||69===n){if(u&&!s&&!o)return t.err=Rt+": "+t.pathValue[a]+" invalid float exponent";if(43!==(n=++a<i?t.pathValue.charCodeAt(a):0)&&45!==n||a++,!(a<i&&Xt(t.pathValue.charCodeAt(a))))return t.err=Rt+": "+t.pathValue[a]+" invalid float exponent";for(;a<i&&Xt(t.pathValue.charCodeAt(a));)a++}t.index=a,t.param=+t.pathValue.slice(r,a)}else t.err=Rt+": "+t.pathValue[a]+" not number"}(t):(o=void 0,48===(o=(s=t).pathValue.charCodeAt(s.index))?(s.param=0,s.index++):49===o?(s.param=1,s.index++):s.err=Rt+": invalid Arc flag "+o),t.err.length)return;t.data.push(t.param),Bt(t),n=!1,t.index<u&&44===t.pathValue.charCodeAt(t.index)&&(t.index++,Bt(t),n=!0)}if(!n){if(t.index>=t.max)break;if(!(48<=(i=t.pathValue.charCodeAt(t.index))&&i<=57||43===i||45===i||46===i))break}}Dt(t)}else Dt(t);else t.err=Rt+": "+t.pathValue[t.index]+" not a path command"}function zt(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 Yt(t,e){if(Qt(n=t)&&n.every(function(t){return t[0]===t[0].toUpperCase()}))return Ht(t);var n;t=function(t,e){if(Qt(t))return Ht(t);var n=new zt(t);for(Bt(n);n.index<n.max&&!n.err.length;)Zt(n);return n.err.length?n.segments=[]:n.segments.length&&("mM".indexOf(n.segments[0][0])<0?(n.err=Rt+": missing M/m",n.segments=[]):n.segments[0][0]="M"),Ft(n.segments,e)}(t);var r,a=[],i=0,s=0,o=0,u=0,l=0,c=t.length,p="",h=[],f=[];"M"===t[0][0]&&(i=+t[0][1],s=+t[0][2],o=i,u=s,l++,a[0]=["M",i,s]);for(var d=l;d<c;d++){if(p=(h=t[d])[0],a.push(f=[]),p!==p.toUpperCase())switch(f[0]=p.toUpperCase(),f[0]){case"A":h.slice(1,-2).concat([+h[6]+i,+h[7]+s]).map(function(t){return f.push(t)});break;case"V":f[1]=+h[1]+s;break;case"H":f[1]=+h[1]+i;break;case"M":o=+h[1]+i,u=+h[2]+s;default:h.map(function(t,e){return e&&f.push(+t+(e%2?i:s))})}else h.map(function(t){return f.push(t)});switch(r=f.length,f[0]){case"Z":i=o,s=u;break;case"H":i=+f[1];break;case"V":s=+f[1];break;case"M":o=+f[r-2],u=+f[r-1];default:i=+f[r-2],s=+f[r-1]}}return Ft(a,e)}function Kt(t,e){if(n=t,Array.isArray(n)&&n.every(function(t){var e=t[0].toLowerCase();return Ut[e]===t.length-1&&/[ACLMQZ]/.test(t[0])}))return Ht(t);for(var n,r,a,i,s={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},o=[],u="",l=(t=Yt(t)).length,c=0;c<l;c++)r=t[c][0],o[c]=r,c&&(u=o[c-1]),t[c]=function(t,e,n){var r,a,i,s,o,u,l,c,p,h;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 l=e.x1,c=e.y1,p=e.x2,h=e.y2,a=-1<"CS".indexOf(n)?{x1:2*l-p,y1:2*c-h}:{x1:l,y1:c},e.x1=a.x1,e.y1=a.y1,["C",a.x1,a.y1].concat(t.slice(1));case"T":return i=e.x1,s=e.y1,o=e.qx,u=e.qy,r=-1<"QT".indexOf(n)?{qx:2*i-o,qy:2*s-u}:{qx:i,qy:s},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}(t[c],s,u),i=(a=t[c]).length,s.x1=+a[i-2],s.y1=+a[i-1],s.x2=+a[i-4]||s.x1,s.y2=+a[i-3]||s.y1;return Ft(t,e)}function $t(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function Wt(t,e,n,r,a,i,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*a+Math.pow(u,3)*s,y:Math.pow(l,3)*e+3*Math.pow(l,2)*u*r+3*l*u*u*i+Math.pow(u,3)*o}}function Gt(t,e,n){var r=t[0],a=t[1];return[r+(e[0]-r)*n,a+(e[1]-a)*n]}function Jt(t,e,n,r){var a=[t,e],i=[n,r],s=Gt(a,i,.5),o=Gt(i,s,.5),u=Gt(s,o,.5),l=Gt(o,u,.5),c=Gt(u,l,.5),p=Wt.apply(0,a.concat(s,u,c,.5)),h=Wt.apply(0,c.concat(l,o,i,0));return[p.x,p.y,h.x,h.y,n,r]}function te(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(function t(e,n,r,a,i,s,o,u,l,c){var p,h,f,d,v,g,y,m,x,w,b,M=120*Math.PI/180,_=Math.PI/180*(i||0),C=[];c?(w=c[0],b=c[1],m=c[2],x=c[3]):(e=(p=$t(e,n,-_)).x,n=p.y,1<(d=(h=(e-(u=(p=$t(u,l,-_)).x))/2)*h/(r*r)+(f=(n-(l=p.y))/2)*f/(a*a))&&(r*=d=Math.sqrt(d),a*=d),v=r*r,g=a*a,m=(y=(s==o?-1:1)*Math.sqrt(Math.abs((v*g-v*f*f-g*h*h)/(v*f*f+g*h*h))))*r*f/a+(e+u)/2,x=y*-a*h/r+(n+l)/2,w=Math.asin(((n-x)/a).toFixed(9)),b=Math.asin(((l-x)/a).toFixed(9)),w=e<m?Math.PI-w:w,b=u<m?Math.PI-b:b,w<0&&(w=2*Math.PI+w),b<0&&(b=2*Math.PI+b),o&&b<w&&(w-=2*Math.PI),!o&&w<b&&(b-=2*Math.PI));var T,S,I,E=b-w;Math.abs(E)>M&&(T=b,S=u,I=l,b=w+M*(o&&w<b?1:-1),u=m+r*Math.cos(b),l=x+a*Math.sin(b),C=t(u,l,r,a,i,0,o,S,I,[b,T,m,x])),E=b-w;var A=Math.cos(w),k=Math.sin(w),O=Math.cos(b),L=Math.sin(b),P=Math.tan(E/4),V=4/3*r*P,q=4/3*a*P,N=[e,n],j=[e+V*k,n-q*A],H=[u+V*L,l-q*O],F=[u,l];return j[0]=2*N[0]-j[0],j[1]=2*N[1]-j[1],c?[j,H,F].concat(C):(C=[j,H,F].concat(C).join().split(",")).map(function(t,e){return e%2?$t(C[e-1],t,_).y:$t(t,C[e+1],_).x})}.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=t[1],e.qy=t[2],["C"].concat(function(t,e,n,r,a,i){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*a+2/3*n,1/3*i+2/3*r,a,i]}.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(Jt(e.x1,e.y1,t[1],t[2]));case"Z":return["C"].concat(Jt(e.x1,e.y1,e.x,e.y))}return t}function ee(t,e){if(Qt(n=t)&&n.slice(1).every(function(t){return"C"===t[0]}))return Ht(t);for(var n,r,a,i={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},s=[],o="",u=(t=Kt(t)).length,l=0;l<u;l++)t[l]&&(o=t[l][0]),s[l]=o,t[l]=te(t[l],i),function(t,e,n){if(7<t[n].length){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)}}(t,s,l),u=t.length,a=(r=t[l]).length,i.x1=+r[a-2],i.y1=+r[a-1],i.x2=+r[a-4]||i.x1,i.y2=+r[a-3]||i.y1;return Ft(t,e)}function ne(t){return t.map(function(t){return t[0].concat(t.slice(1).join(" "))}).join("")}function re(t,e,n,r,a){return a*(a*(-3*t+9*e-9*n+3*r)+6*t-12*e+6*n)-3*t+3*e}function ae(n,r,a,i,s,o,u,l,t){null!==t&&!isNaN(+t)||(t=1);var c,p,h,f=(t=1<t?1:t<0?0:t)/2,d=0,v=[.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(t,e){p=re(n,a,s,u,c=f*t+f),h=re(r,i,o,l,c),d+=v[e]*Math.sqrt(p*p+h*h)}),f*d}function ie(t){var r=0;return ee(t).map(function(t,e,n){r+="M"!==t[0]?ae.apply(0,n[e-1].slice(-2).concat(t.slice(1))):0}),r}function se(t,r){var a,i,s=0;return ee(t).map(function(t,e,n){return i=e?n[e-1].slice(-2).concat(t.slice(1)):t.slice(1),a=e?ae.apply(0,i):0,s+=a,0===e?{x:i[0],y:i[1]}:r<s&&s-a<r?Wt.apply(0,i.concat(1-(s-r)/a)):null}).filter(function(t){return t}).slice(-1)[0]}function oe(t){var n,r=0,a=0,i=0,s=0;return ee(t).map(function(t){var e;switch(t[0]){case"M":case"Z":return i="M"===t[0]?t[1]:i,s="M"===t[0]?t[2]:s,r=i,a=s,0;default:return n=function(t,e,n,r,a,i,s,o){return 3*((o-e)*(n+a)-(s-t)*(r+i)+r*(t-a)-n*(e-i)+o*(a+t/3)-s*(i+e/3))/20}.apply(0,[r,a].concat(t.slice(1))),e=t.slice(-2),r=e[0],a=e[1],n}}).reduce(function(t,e){return t+e},0)}function ue(t){return 0<=oe(ee(t))}var le=1e-9;function ce(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function pe(r){return r.reduce(function(t,e,n){return n?t+ce(r[n-1],e):0},0)}function he(t,e){var n=Kt(t,0);return function(t){var e=[],n=[],r="",a=t.length,i=0;if(!t.length||"M"!==t[0][0])return!1;for(var s=0;s<a&&(n=t[s],!("M"===(r=n[0])&&s||"Z"===r));s++){if(!(-1<"ML".indexOf(r)))return!1;e.push([n[1],n[2]])}return i=pe(e),!!a&&{ring:e,pathLength:i}}(n)||fe(n,e)}function fe(t,e){var n,r,a=ee((r=ne(t),ne(Yt(r,0)).replace(/(m|M)/g,"|$1").split("|").map(function(t){return t.trim()}).filter(function(t){return t})[0]),4),i=ie(a),s=[],o=3;e&&!isNaN(e)&&0<+e&&(o=Math.max(o,Math.ceil(i/e)));for(var u=0;u<o;u++)n=se(a,i*u/o),s.push([n.x,n.y]);return ue(a)||s.reverse(),{pathLength:i,ring:s,skipBisect:!0}}function de(a,t){for(var e,i,n,s=a.length,o=1/0,r=0;r<s;r++)!function(r){i=0,t.forEach(function(t,e){var n=ce(a[(r+e)%s],t);i+=n*n}),i<o&&(o=i,e=r)}(r);e&&(n=a.splice(0,e),a.splice.apply(a,[a.length,0].concat(n)))}function ve(t,e){for(var n,r,a,i=t.length+e,s=pe(t)/e,o=0,u=0,l=s/2;t.length<i;)l<=u+(a=ce(n=t[o],r=t[(o+1)%t.length]))?(t.splice(o+1,0,a?Gt(n,r,(l-u)/a):n.slice(0)),l+=s):(u+=a,o++)}function ge(t,e){void 0===e&&(e=1/0);for(var n,r=[],a=0;a<t.length;a++)for(n=t[a],r=a===t.length-1?t[0]:t[a+1];ce(n,r)>e;)r=Gt(n,r,.5),t.splice(a+1,0,r)}function ye(t,e){var n,r,a;if("string"==typeof t){var i=he(t,e);t=i.ring,r=i.skipBisect,a=i.pathLength}else if(!Array.isArray(t))throw Rt;if((n=t.slice(0)).pathLength=a,!me(n))throw Rt;return 1<n.length&&ce(n[0],n[n.length-1])<le&&n.pop(),!r&&e&&!isNaN(e)&&0<+e&&ge(n,e),n}function me(t){return Array.isArray(t)&&t.every(function(t){return Array.isArray(t)&&2===t.length&&!isNaN(t[0])&&!isNaN(t[1])})}function xe(t,e,n){var r=ye(t,n=n||m.morphPrecision),a=ye(e,n),i=r.length-a.length;return ve(r,i<0?-1*i:0),ve(a,0<i?i:0),de(r,a),[Ft(r),Ft(a)]}var we={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.pathArray?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(t){!u[t]&&this.valuesEnd[t]&&(u[t]=function(t,e,n,r){var a=e.pathArray,i=n.pathArray,s=i.length;t.setAttribute("d",1===r?n.original:"M"+Nt(a,i,s,r).join("L")+"Z")})},crossCheck:function(t){var e,n,r;this.valuesEnd[t]&&(e=this.valuesStart[t].pathArray,n=this.valuesEnd[t].pathArray,(!e||!n||e&&n&&e.length!==n.length)&&(r=xe(this.valuesStart[t].original,this.valuesEnd[t].original,this._morphPrecision?parseInt(this._morphPrecision):m.morphPrecision),this.valuesStart[t].pathArray=r[0],this.valuesEnd[t].pathArray=r[1]))}},be={component:"svgMorph",property:"path",defaultValue:[],Interpolate:Nt,defaultOptions:{morphPrecision:10,morphIndex:0},functions:we,Util:{addPoints:ve,bisect:ge,normalizeRing:ye,validRing:me,getInterpolationPoints:xe,pathStringToRing:he,distanceSquareRoot:ce,midPoint:Gt,approximateRing:fe,rotateRing:de,pathToString:ne,pathToCurve:ee,getPathLength:ie,getPointAtLength:se,getDrawDirection:ue,roundPath:Ft}};for(var Me in c.SVGMorph=be,c){var _e=c[Me];c[Me]=new Q(_e)}return{Animation:Q,Components:c,Tween:H,fromTo:function(t,e,n,r){return r=r||{},new L.tween(V(t),e,n,r)},to:function(t,e,n){return(n=n||{}).resetStart=e,new L.tween(V(t),e,e,n)},TweenCollection:U,allFromTo:function(t,e,n,r){return r=r||{},new U(V(t,!0),e,n,r)},allTo:function(t,e,n){return(n=n||{}).resetStart=e,new U(V(t,!0),e,e,n)},Objects:l,Util:C,Easing:P,CubicBezier:k,Render:s,Interpolate:d,Process:O,Internals:T,Selector:V,Version:"2.0.16"}});