Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

animate-css-grid

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animate-css-grid - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/main.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.animateCSSGrid=n():t.animateCSSGrid=n()}(window,function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=4)}([function(t,n,r){"use strict";r.r(n),r.d(n,"currentTime",function(){return u}),r.d(n,"onFrameStart",function(){return b}),r.d(n,"onFrameUpdate",function(){return O}),r.d(n,"onFrameRender",function(){return w}),r.d(n,"onFrameEnd",function(){return M}),r.d(n,"cancelOnFrameStart",function(){return x}),r.d(n,"cancelOnFrameUpdate",function(){return j}),r.d(n,"cancelOnFrameRender",function(){return F}),r.d(n,"cancelOnFrameEnd",function(){return C}),r.d(n,"timeSinceLastFrame",function(){return A}),r.d(n,"currentFrameTime",function(){return k});var e=0,o="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var n=Date.now(),r=Math.max(0,16.7-(n-e));e=n+r,setTimeout(function(){return t(e)},r)};function i(t){var n=[],r=[],e=0,o=!1,i=0;return{cancel:function(t){var n=r.indexOf(t);-1!==n&&r.splice(n,1)},process:function(){for(o=!0,n=(t=[r,n])[0],(r=t[1]).length=0,e=n.length,i=0;i<e;i++)n[i]();var t;o=!1},schedule:function(i,u){void 0===u&&(u=!1),t();var a=u&&o,c=a?n:r;-1===c.indexOf(i)&&(c.push(i),a&&(e=n.length))}}}var u="undefined"!=typeof performance&&void 0!==performance.now?function(){return performance.now()}:function(){return Date.now()},a=!1,c=40,f=16.7,s=!0,p=0,d=0;function l(){a||(a=!0,s=!0,o(y))}var v=i(l),h=i(l),m=i(l),g=i(l);function y(t){a=!1,d=s?f:Math.max(Math.min(t-p,c),1),s||(f=d),p=t,v.process(),h.process(),m.process(),g.process(),a&&(s=!1)}var b=v.schedule,O=h.schedule,w=m.schedule,M=g.schedule,x=v.cancel,j=h.cancel,F=m.cancel,C=g.cancel,A=function(){return d},k=function(){return p}},function(t,n,r){"use strict";r.r(n);var e={};r.d(e,"getValueFromFunctionString",function(){return l}),r.d(e,"splitCommaDelimited",function(){return v}),r.d(e,"splitColorValues",function(){return h}),r.d(e,"number",function(){return m}),r.d(e,"alpha",function(){return g}),r.d(e,"degrees",function(){return y}),r.d(e,"percent",function(){return b}),r.d(e,"px",function(){return O}),r.d(e,"scale",function(){return w}),r.d(e,"complex",function(){return j}),r.d(e,"rgbUnit",function(){return C}),r.d(e,"rgba",function(){return A}),r.d(e,"hsla",function(){return k}),r.d(e,"hex",function(){return P}),r.d(e,"color",function(){return S});var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])};function i(t,n){function r(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var u=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t};function a(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)n.indexOf(e[o])<0&&(r[e[o]]=t[e[o]])}return r}var c=r(0),f=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},s=function(t,n){return function(r){return Math.max(Math.min(r,n),t)}},p=function(t){return{test:(n=t,function(t){return"string"==typeof t&&-1!==t.indexOf(n)}),parse:parseFloat,transform:function(n){return""+n+t}};var n},d=function(t){return function(n){return"string"==typeof n&&0===n.indexOf(t)}},l=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))},v=function(t){return"string"==typeof t?t.split(/,\s*/):[t]};function h(t){var n=t.length;return function(r){for(var e={},o=v(l(r)),i=0;i<n;i++)e[t[i]]=void 0!==o[i]?parseFloat(o[i]):1;return e}}var m={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},g=f({},m,{transform:s(0,1)}),y=p("deg"),b=p("%"),O=p("px"),w=f({},m,{default:1}),M=/(-)?(\d[\d\.]*)/g,x=function(t){return"${"+t+"}"},j={test:function(t){var n=t.match&&t.match(M);return void 0!==n&&n.constructor===Array&&n.length>1},parse:function(t){var n={};return t.match(M).forEach(function(t,r){return n[r]=parseFloat(t)}),n},createTransformer:function(t){var n=0,r=t.replace(M,function(){return x(""+n++)});return function(t){var n=r;for(var e in t)t.hasOwnProperty(e)&&(n=n.replace(x(e),t[e].toString()));return n}}},F=s(0,255),C=f({},m,{transform:function(t){return Math.round(F(t))}}),A={test:d("rgb"),parse:h(["red","green","blue","alpha"]),transform:function(t){var n=t.red,r=t.green,e=t.blue,o=t.alpha;return function(t){var n=t.red,r=t.green,e=t.blue,o=t.alpha;return"rgba("+n+", "+r+", "+e+", "+(void 0===o?1:o)+")"}({red:C.transform(n),green:C.transform(r),blue:C.transform(e),alpha:o})}},k={test:d("hsl"),parse:h(["hue","saturation","lightness","alpha"]),transform:function(t){var n=t.hue,r=t.saturation,e=t.lightness,o=t.alpha;return function(t){var n=t.hue,r=t.saturation,e=t.lightness,o=t.alpha;return"hsla("+n+", "+r+", "+e+", "+(void 0===o?1:o)+")"}({hue:Math.round(n),saturation:b.transform(r),lightness:b.transform(e),alpha:o})}},P=f({},A,{test:d("#"),parse:function(t){var n,r,e;return t.length>4?(n=t.substr(1,2),r=t.substr(3,2),e=t.substr(5,2)):(n=t.substr(1,1),r=t.substr(2,1),e=t.substr(3,1),n+=n,r+=r,e+=e),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(e,16),alpha:1}}}),S={test:function(t){return A.test(t)||k.test(t)||P.test(t)},parse:function(t){return A.test(t)?A.parse(t):k.test(t)?k.parse(t):P.test(t)?P.parse(t):t},transform:function(t){return function(t){return void 0!==t.red}(t)?A.transform(t):function(t){return void 0!==t.hue}(t)?k.transform(t):t}};var T,Y=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},X=function(t){var n=t.onRead,r=t.onRender,e=t.aliasMap,o=void 0===e?{}:e,i=t.useCache,u=void 0===i||i;return function(t){var e={},i=[],a=!1,f=function(t,n){var r=o[t]||t,u=e[r];e[r]=n,e[r]!==u&&(-1===i.indexOf(r)&&i.push(r),a||(a=!0,Object(c.onFrameRender)(s)))};function s(n){return void 0===n&&(n=!1),(n||a)&&(r(e,t,i),a=!1,i.length=0),this}return{get:function(r){var i=o[r]||r;return i?u&&void 0!==e[i]?e[i]:n(i,t):e},set:function(t,n){if("string"==typeof t){if(void 0===n)return function(n){return f(t,n)};f(t,n)}else for(var r in t)t.hasOwnProperty(r)&&f(r,t[r]);return this},render:s}}},E=/([a-z])([A-Z])/g,L=function(t){return t.replace(E,"$1-$2").toLowerCase()},V=new Map,I=new Map,R=["Webkit","Moz","O","ms",""],U=R.length,D=function(t,n){void 0===n&&(n=!1);var r=n?I:V;return r.has(t)||function(t){if("undefined"!=typeof document){T=T||document.createElement("div");for(var n=0;n<U;n++){var r=R[n],e=""===r,o=e?t:r+t.charAt(0).toUpperCase()+t.slice(1);o in T.style&&(V.set(t,o),I.set(t,(e?"":"-")+L(o)))}}}(t),r.get(t)||t},_=["","X","Y","Z"],G=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return _.reduce(function(t,r){return t.push(n+r),t},t)},["x","y","z"]),z=G.reduce(function(t,n){return t[n]=!0,t},{}),Z=function(t){return!0===z[t]},B=function(t,n){return G.indexOf(t)-G.indexOf(n)},q=function(t){return"transformOriginX"===t||"transformOriginY"===t},N={color:S,backgroundColor:S,outlineColor:S,fill:S,stroke:S,borderColor:S,borderTopColor:S,borderRightColor:S,borderBottomColor:S,borderLeftColor:S,borderRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,left:O,bottom:O,right:O,rotate:y,rotateX:y,rotateY:y,rotateZ:y,scale:w,scaleX:w,scaleY:w,scaleZ:w,skewX:y,skewY:y,distance:O,translateX:O,translateY:O,translateZ:O,perspective:O,opacity:g,transformOriginX:b,transformOriginY:b,transformOriginZ:O},$=function(t){return N[t]},W="number",H="object",K="transform-origin",J="transform",Q="translateZ",tt=";transform: none",nt=function(t,n){return";"+t+":"+n};var rt=new Set(["scrollLeft","scrollTop"]),et=X({onRead:function(t,n){var r=n.element,e=n.preparseOutput,o=$(t);if(Z(t))return o&&o.default||0;if(rt.has(t))return r[t];var i=window.getComputedStyle(r,null).getPropertyValue(D(t,!0))||0;return e&&o&&o.parse?o.parse(i):i},onRender:function(t,n,r){var e=n.element,o=n.enableHardwareAcceleration;e.style.cssText+=function(t,n,r,e){void 0===n&&(n=!0),void 0===r&&(r=!0);for(var o=!0===n?Object.keys(t):n,i="",u="",a=!1,c=!0,f=!1,s=!1,p=o.length,d=0;d<p;d++){var l=o[d];if(Z(l)){for(var v in f=!0,t)Z(v)&&-1===o.indexOf(v)&&o.push(v);break}}o.sort(B);var h=o.length;for(d=0;d<h;d++)if(l=o[d],!e.has(l)){var m=Z(l),g=t[l],y=$(l);m&&(y.default&&g!==y.default||!y.default&&0!==g)&&(c=!1),y&&(typeof g===W||typeof g===H)&&y.transform&&(g=y.transform(g)),m?(u+=l+"("+g+") ",s=l===Q||s):q(l)?(t[l]=g,a=!0):i+=nt(D(l,!0),g)}return a&&(i+=nt(K,(t.transformOriginX||0)+" "+(t.transformOriginY||0)+" "+(t.transformOriginZ||0))),f&&(!s&&r&&(u+=Q+"(0)"),i+=nt(J,c?tt:u)),i}(t,r,o,rt),-1!==r.indexOf("scrollLeft")&&(e.scrollLeft=t.scrollLeft),-1!==r.indexOf("scrollTop")&&(e.scrollTop=t.scrollTop)},aliasMap:{x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ"},uncachedValues:rt}),ot=function(t,n){return t/100*n+"px"},it={fill:S,stroke:S,scale:w,scaleX:w,scaleY:w,opacity:g,fillOpacity:g,strokeOpacity:g},ut=X({onRead:function(t,n){var r=n.element;if(Z(t)){var e=function(t){return it[t]}(t);return e?e.default:0}return r.getAttribute(t)},onRender:function(t,n,r){var e=n.dimensions;!function(t,n){for(var r in n)n.hasOwnProperty(r)&&t.setAttribute(r,n[r])}(n.element,function(t,n,r,e){var o=!1,i=!1,u={},a=r?{pathLength:"0",pathSpacing:""+e}:void 0,c=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,f=void 0!==t.scaleY?t.scaleY||1e-7:c||1,s=n.width*((t.originX||50)/100)+n.x,p=n.height*((t.originY||50)/100)+n.y,d=1*c*-s,l=1*f*-p,v=s/c,h=p/f,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+d+", "+l+") scale("+c+", "+f+") translate("+v+", "+h+") ",rotate:"rotate("+t.rotate+", "+s+", "+p+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];Z(g)?o=!0:!r||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?r&&"pathOffset"===g?u["stroke-dashoffset"]=ot(-y,e):u[L(g)]=y:(i=!0,a[g]=ot(y,e))}if(i&&(u["stroke-dasharray"]=a.pathLength+" "+a.pathSpacing),o)for(var g in u.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";u.transform+=m[g].replace(/undefined/g,b)}return u}(t,e,n.isPath,n.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),at=X({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var n=t.scrollTop,r=void 0===n?0:n,e=t.scrollLeft,o=void 0===e?0:e;return window.scrollTo(o,r)}}),ct=new WeakMap,ft=function(t,n){var r;return t instanceof HTMLElement?r=function(t,n){return et(Y({element:t,enableHardwareAcceleration:!0,preparseOutput:!0},n))}(t,n):t instanceof SVGElement?r=function(t){var n=t.getBBox(),r={element:t,dimensions:{x:n.x,y:n.y,width:n.width,height:n.height},isPath:!1};return"path"===t.tagName&&(r.isPath=!0,r.pathLength=t.getTotalLength()),ut(r)}(t):"undefined"!=typeof window&&t===window&&(r=at(t)),ct.set(t,r),r},st=function(t,n){return ct.has(t)?ct.get(t):ft(t,n)};var pt=function(t,n){var r="string"==typeof t?document.querySelector(t):t;return st(r,n)};r.d(n,"action",function(){return zt}),r.d(n,"multicast",function(){return qt}),r.d(n,"value",function(){return Ht}),r.d(n,"decay",function(){return un}),r.d(n,"keyframes",function(){return Dn}),r.d(n,"everyFrame",function(){return on}),r.d(n,"physics",function(){return _n}),r.d(n,"spring",function(){return Gn}),r.d(n,"timeline",function(){return Bn}),r.d(n,"tween",function(){return Rn}),r.d(n,"listen",function(){return qn}),r.d(n,"pointer",function(){return rr}),r.d(n,"mouse",function(){return Qn}),r.d(n,"multitouch",function(){return Hn}),r.d(n,"chain",function(){return er}),r.d(n,"composite",function(){return Jt}),r.d(n,"crossfade",function(){return or}),r.d(n,"delay",function(){return ir}),r.d(n,"merge",function(){return ur}),r.d(n,"parallel",function(){return tn}),r.d(n,"schedule",function(){return ar}),r.d(n,"stagger",function(){return cr}),r.d(n,"calc",function(){return At}),r.d(n,"easing",function(){return Ln}),r.d(n,"transform",function(){return Rt}),r.d(n,"css",function(){return fr}),r.d(n,"svg",function(){return sr}),r.d(n,"valueTypes",function(){return e}),r.d(n,"styler",function(){return pt});var dt=function(t){return"number"==typeof t},lt=function(t){return void 0!==t.x&&void 0!==t.y},vt=function(t){return void 0!==t.z},ht={x:0,y:0,z:0},mt=function(t,n){return Math.abs(t-n)},gt=function(t,n){return void 0===n&&(n=ht),Mt(Math.atan2(n.y-t.y,n.x-t.x))},yt=function(t){return t*Math.PI/180},bt=function(t,n){if(void 0===n&&(n=ht),dt(t)&&dt(n))return mt(t,n);if(lt(t)&&lt(n)){var r=mt(t.x,n.x),e=mt(t.y,n.y),o=vt(t)&&vt(n)?mt(t.z,n.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(e,2)+Math.pow(o,2))}return 0},Ot=function(t,n,r){var e=n-t;return 0===e?1:(r-t)/e},wt=function(t,n,r){return-r*t+r*n+t},Mt=function(t){return 180*t/Math.PI},xt=function(t,n,r,e){return void 0===e&&(e=0),o=n+r*(t-n)/Math.max(e,r),void 0===i&&(i=2),i=Math.pow(10,i),Math.round(o*i)/i;var o,i},jt=function(t,n){return dt(t)?t/(1e3/n):0},Ft=function(t,n){return n?t*(1e3/n):0},Ct=function(t,n){var r=1/(t-1),e=1-1/t,o=Math.min(n/e,1);return Math.floor(o/r)*r},At=Object.freeze({isPoint:lt,isPoint3D:vt,angle:gt,degreesToRadians:yt,dilate:function(t,n,r){return t+(n-t)*r},distance:bt,getProgressFromValue:Ot,getValueFromProgress:wt,pointFromAngleAndDistance:function(t,n,r){return n=yt(n),{x:r*Math.cos(n)+t.x,y:r*Math.sin(n)+t.y}},radiansToDegrees:Mt,smooth:xt,speedPerFrame:jt,speedPerSecond:Ft,stepProgress:Ct}),kt=function(t){return t},Pt=function(t,n){var r=!0;void 0===n&&(n=t,r=!1);return function(e){return r?function(t){return t+n}(function(n){return n-t}(e)):(t=e,r=!0,n)}},St=function(t,n,r){var e=t*t,o=n*n;return Math.sqrt(r*(o-e)+e)},Tt=function(t,n){var r="string"==typeof t?S.parse(t):t,e="string"==typeof n?S.parse(n):n,o=u({},r),i=void 0!==t.hue||"string"==typeof t&&k.test(t)?wt:St;return function(t){for(var n in o=u({},o))"alpha"!==n&&o.hasOwnProperty(n)&&(o[n]=i(r[n],e[n],t));return o.alpha=wt(r.alpha,e.alpha,t),o}},Yt=function(t,n){return function(r){return Math.min(Math.max(r,t),n)}},Xt=function(t,n){return function(r){return n(t(r))}},Et=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(Xt)},Lt=function(t){return void 0===t&&(t=kt),function(n,r){return function(e){var o=r-e,i=-n*(0-t(Math.abs(o)));return o<=0?r+i:r-i}}},Vt=Lt(),It=Lt(Math.sqrt),Rt=Object.freeze({appendUnit:function(t){return function(n){return""+n+t}},applyOffset:Pt,blendColor:Tt,clamp:Yt,pipe:Et,conditional:function(t,n){return function(r){return t(r)?n(r):r}},interpolate:function(t,n,r){var e,o,i,u,a=t.length;return 2!==a?function(t,n,r,e){var o=r-1;return t[0]>t[o]&&(t.reverse(),n.reverse()),function(i){if(i<=t[0])return n[0];if(i>=t[o])return n[o];for(var u=1;u<r&&!(t[u]>i||u===o);u++);var a=Ot(t[u-1],t[u],i),c=e?e[u-1](a):a;return wt(n[u-1],n[u],c)}}(t,n,a,r):(e=t[0],o=t[1],i=n[0],u=n[1],function(t){return(t-e)*(u-i)/(o-e)+i})},generateStaticSpring:Lt,linearSpring:Vt,nonlinearSpring:It,wrap:function(t,n){return function(r){var e=n-t;return((r-t)%e+e)%e+t}},smooth:function(t){void 0===t&&(t=50);var n=0,r=0;return function(e){var o=Object(c.currentFrameTime)(),i=o!==r?o-r:0,u=i?xt(e,n,i,t):n;return r=o,n=u,u}},snap:function(t){if("number"==typeof t)return function(n){return Math.round(n/t)*t};var n=0,r=t.length;return function(e){var o=Math.abs(t[0]-e);for(n=1;n<r;n++){var i=t[n],u=Math.abs(i-e);if(0===u)return i;if(u>o)return t[n-1];if(n===r-1)return i;o=u}}},steps:function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=1),function(e){var o=Ot(n,r,e);return wt(n,r,Ct(t,o))}},transformMap:function(t){return function(n){var r=u({},n);for(var e in t)if(t.hasOwnProperty(e)){var o=t[e];r[e]=o(n[e])}return r}}}),Ut=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(u({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=1===t.length?t[0]:Et.apply(void 0,t);return this.applyMiddleware(function(t){return function(n){return t(r(n))}})},t.prototype.while=function(t){return this.applyMiddleware(function(n,r){return function(e){return t(e)?n(e):r()}})},t.prototype.filter=function(t){return this.applyMiddleware(function(n,r){return function(r){return t(r)&&n(r)}})},t}(),Dt=function(){return function(t,n){var r=t.middleware,e=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=n,this.updateObserver=function(t){return n.update(t)},this.onComplete=e,n.update&&r&&r.length&&r.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),_t=function(t,n,r){var e=n.middleware;return new Dt({middleware:e,onComplete:r},"function"==typeof t?{update:t}:t)},Gt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.create=function(t){return new n(t)},n.prototype.start=function(t){void 0===t&&(t={});var n=!1,r={stop:function(){}},e=this.props,o=e.init,i=a(e,["init"]),c=o(_t(t,i,function(){n=!0,r.stop()}));return r=c?u({},r,c):r,t.registerParent&&t.registerParent(r),n&&r.stop(),r},n}(Ut),zt=function(t){return new Gt({init:t})},Zt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.subscribers=[],n}return i(n,t),n.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},n.prototype.error=function(t){this.subscribers.forEach(function(n){return n.error(t)})},n.prototype.update=function(t){for(var n=0;n<this.subscribers.length;n++)this.subscribers[n].update(t)},n.prototype.subscribe=function(t){var n=this,r=_t(t,this.props);return this.subscribers.push(r),{unsubscribe:function(){var t=n.subscribers.indexOf(r);-1!==t&&n.subscribers.splice(t,1)}}},n.prototype.stop=function(){this.parent&&this.parent.stop()},n.prototype.registerParent=function(t){this.stop(),this.parent=t},n}(Ut),Bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.create=function(t){return new n(t)},n}(Zt),qt=function(){return new Bt},Nt=function(t){return Array.isArray(t)},$t=function(t){var n=typeof t;return"string"===n||"number"===n},Wt=function(t){function n(n){var r=t.call(this,n)||this;return r.scheduleVelocityCheck=function(){return Object(c.onFrameEnd)(r.velocityCheck)},r.velocityCheck=function(){Object(c.currentFrameTime)()!==r.lastUpdated&&(r.prev=r.current)},r.prev=r.current=n.value||0,$t(r.current)?(r.updateCurrent=function(t){return r.current=t},r.getVelocityOfCurrent=function(){return r.getSingleVelocity(r.current,r.prev)}):Nt(r.current)?(r.updateCurrent=function(t){return r.current=t.slice()},r.getVelocityOfCurrent=function(){return r.getListVelocity()}):(r.updateCurrent=function(t){for(var n in r.current={},t)t.hasOwnProperty(n)&&(r.current[n]=t[n])},r.getVelocityOfCurrent=function(){return r.getMapVelocity()}),n.initialSubscription&&r.subscribe(n.initialSubscription),r}return i(n,t),n.prototype.create=function(t){return new n(t)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},n.prototype.update=function(n){t.prototype.update.call(this,n),this.prev=this.current,this.updateCurrent(n),this.timeDelta=Object(c.timeSinceLastFrame)(),this.lastUpdated=Object(c.currentFrameTime)(),Object(c.onFrameEnd)(this.scheduleVelocityCheck)},n.prototype.subscribe=function(n){var r=t.prototype.subscribe.call(this,n);return this.update(this.current),r},n.prototype.getSingleVelocity=function(t,n){return"number"==typeof t&&"number"==typeof n?Ft(t-n,this.timeDelta):Ft(parseFloat(t)-parseFloat(n),this.timeDelta)||0},n.prototype.getListVelocity=function(){var t=this;return this.current.map(function(n,r){return t.getSingleVelocity(n,t.prev[r])})},n.prototype.getMapVelocity=function(){var t={};for(var n in this.current)this.current.hasOwnProperty(n)&&(t[n]=this.getSingleVelocity(this.current[n],this.prev[n]));return t},n}(Zt),Ht=function(t,n){return new Wt({value:t,initialSubscription:n})},Kt=function(t){var n=t.getCount,r=t.getFirst,e=t.getOutput,o=t.mapApi,i=t.setProp,u=t.startActions;return function(t){return zt(function(a){var f=a.update,s=a.complete,p=a.error,d=n(t),l=e(),v=function(){return f(l)},h=0,m=u(t,function(t,n){var r=!1;return t.start({complete:function(){r||(r=!0,++h===d&&Object(c.onFrameUpdate)(s))},error:p,update:function(t){i(l,n,t),Object(c.onFrameUpdate)(v,!0)}})});return Object.keys(r(m)).reduce(function(t,n){return t[n]=o(m,n),t},{})})}},Jt=Kt({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(t,n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Object.keys(t).reduce(function(e,o){return t[o][n]&&(r[0]&&void 0!==r[0][o]?e[o]=t[o][n](r[0][o]):e[o]=(i=t[o])[n].apply(i,r)),e;var i},{})}},setProp:function(t,n,r){return t[n]=r},startActions:function(t,n){return Object.keys(t).reduce(function(r,e){return r[e]=n(t[e],e),r},{})}}),Qt=Kt({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(t,n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return t.map(function(t,e){if(t[n])return Array.isArray(r[0])?t[n](r[0][e]):t[n].apply(t,r)})}},setProp:function(t,n,r){return t[n]=r},startActions:function(t,n){return t.map(function(t,r){return n(t,r)})}}),tn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Qt(t)},nn=S.test,rn=function(t,n){return"string"==typeof n.from&&nn(n.from)&&"string"==typeof n.to&&nn(n.to)?t(u({},n,{from:0,to:1})).pipe(Tt(n.from,n.to),S.transform):t(n)},en=function(t,n){var r=function(t){var n=Object.keys(t);return{getVectorKeys:function(r){return n.reduce(function(n,e){return void 0===r[e]||t[e](r[e])||n.push(e),n},[])},test:function(r){return r&&n.reduce(function(n,e){return n||void 0!==r[e]&&!t[e](r[e])},!1)}}}(n),e=r.test,o=r.getVectorKeys;return function(n){if(!e(n))return t(n);var r=o(n),i=n[r[0]];return Array.isArray(i)?function(t,n,r){var e=r[0],o=n[e].map(function(e,o){return rn(t,r.reduce(function(t){return function(n,r){return n[r]=n[r][t],n}}(o),u({},n)))});return tn.apply(void 0,o)}(t,n,r):"string"==typeof i&&nn(i)?function(t,n){return rn(t,n)}(t,n):function(t,n,r){var e=r[0],o=Object.keys(n[e]).reduce(function(e,o){return e[o]=rn(t,r.reduce(function(t){return function(n,r){return n[r]=n[r][t],n}}(o),u({},n))),e},{});return Jt(o)}(t,n,r)}},on=function(){return zt(function(t){var n=t.update,r=!0,e=Object(c.currentTime)(),o=function(){r&&(n(Math.max(Object(c.currentFrameTime)()-e,0)),Object(c.onFrameUpdate)(o))};return Object(c.onFrameUpdate)(o),{stop:function(){return r=!1}}})},un=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.complete,e=n.update,o=t.velocity,i=void 0===o?0:o,u=t.from,a=void 0===u?0:u,f=t.power,s=void 0===f?.8:f,p=t.timeConstant,d=void 0===p?350:p,l=t.restDelta,v=void 0===l?.5:l,h=t.modifyTarget,m=0,g=s*i,y=Math.round(a+g),b=void 0===h?y:h(y),O=on().start(function(){m+=Object(c.timeSinceLastFrame)();var t=-g*Math.exp(-m/d),n=t>v||t<-v;e(n?b+t:b),n||(O.stop(),r())});return{stop:function(){return O.stop()}}})},{from:m.test,modifyTarget:function(t){return"function"==typeof t},velocity:m.test}),an=function(t){return function(n){return 1-t(1-n)}},cn=function(t){return function(n){return n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2}},fn=function(t){return t},sn=function(t){return function(n){return Math.pow(n,t)}},pn=sn(2),dn=an(pn),ln=cn(pn),vn=function(t){return 1-Math.sin(Math.acos(t))},hn=an(vn),mn=cn(hn),gn=function(t){return function(n){return n*n*((t+1)*n-t)}},yn=gn(1.525),bn=an(yn),On=cn(yn),wn=function(t){var n=gn(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}},Mn=wn(1.525),xn=8,jn=.001,Fn=1e-7,Cn=10,An=11,kn=1/(An-1),Pn="undefined"!=typeof Float32Array,Sn=function(t,n){return 1-3*n+3*t},Tn=function(t,n){return 3*n-6*t},Yn=function(t){return 3*t},Xn=function(t,n,r){return 3*Sn(n,r)*t*t+2*Tn(n,r)*t+Yn(n)},En=function(t,n,r){return((Sn(n,r)*t+Tn(n,r))*t+Yn(n))*t};var Ln=Object.freeze({createReversedEasing:an,createMirroredEasing:cn,linear:fn,createExpoIn:sn,easeIn:pn,easeOut:dn,easeInOut:ln,circIn:vn,circOut:hn,circInOut:mn,createBackIn:gn,backIn:yn,backOut:bn,backInOut:On,createAnticipateEasing:wn,anticipate:Mn,cubicBezier:function(t,n,r,e){var o=Pn?new Float32Array(An):new Array(An),i=!1,u=function(n){for(var e,i,u,a=0,c=1,f=An-1;c!=f&&o[c]<=n;++c)a+=kn;return e=(n-o[--c])/(o[c+1]-o[c]),(u=Xn(i=a+e*kn,t,r))>=jn?function(n,e){for(var o=0,i=0;o<xn;++o){if(0===(i=Xn(e,t,r)))return e;e-=(En(e,t,r)-n)/i}return e}(n,i):0===u?i:function(n,e,o){var i,u,a=0;do{(i=En(u=e+(o-e)/2,t,r)-n)>0?o=u:e=u}while(Math.abs(i)>Fn&&++a<Cn);return u}(n,a,a+kn)},a=function(){i=!0,t==n&&r==e||function(){for(var n=0;n<An;++n)o[n]=En(n*kn,t,r)}()};return function(o){return i||a(),t===n&&r===e?o:0===o?0:1===o?1:En(u(o),n,e)}}}),Vn=en(function(t){var n=t.from,r=void 0===n?0:n,e=t.to,o=void 0===e?1:e,i=t.ease,u=void 0===i?fn:i;return zt(function(t){var n=t.update;return{seek:function(t){return n(t)}}}).pipe(u,function(t){return wt(r,o,t)})},{ease:function(t){return"function"==typeof t},from:m.test,to:m.test}),In=Yt(0,1),Rn=function(t){return void 0===t&&(t={}),zt(function(n){var r,e=n.update,o=n.complete,i=t.duration,u=void 0===i?300:i,a=t.ease,f=void 0===a?dn:a,s=t.flip,p=void 0===s?0:s,d=t.loop,l=void 0===d?0:d,v=t.yoyo,h=void 0===v?0:v,m=t.from,g=void 0===m?0:m,y=t.to,b=void 0===y?1:y,O=t.elapsed,w=void 0===O?0:O,M=t.playDirection,x=void 0===M?1:M,j=t.flipCount,F=void 0===j?0:j,C=t.yoyoCount,A=void 0===C?0:C,k=t.loopCount,P=void 0===k?0:k,S=Vn({from:g,to:b,ease:f}).start(e),T=0,Y=!1,X=function(){return x*=-1},E=function(){T=In(Ot(0,u,w)),S.seek(T)},L=function(){Y=!0,r=on().start(function(){w+=Object(c.timeSinceLastFrame)()*x,E(),function(){var t=1===x?Y&&w>=u:Y&&w<=0;if(!t)return!1;if(t&&!l&&!p&&!h)return!0;var n,r=!1;return l&&P<l?(w=0,P++,r=!0):p&&F<p?(w=u-w,S=Vn({from:g=(n=[b,g])[0],to:b=n[1],ease:f}).start(e),F++,r=!0):h&&A<h&&(X(),A++,r=!0),!r}()&&o&&(r.stop(),Object(c.onFrameUpdate)(o,!0))})},V=function(){Y=!1,r&&r.stop()};return L(),{isActive:function(){return Y},getElapsed:function(){return Yt(0,u)(w)},getProgress:function(){return T},stop:function(){V()},pause:function(){return V(),this},resume:function(){return L(),this},seek:function(t){return w=wt(0,u,t),Object(c.onFrameUpdate)(E,!0),this},reverse:function(){return X(),this}}})},Un=Yt(0,1),Dn=function(t){var n=t.easings,r=t.ease,e=void 0===r?fn:r,o=t.times,i=t.values,c=a(t,["easings","ease","times","values"]);n=Array.isArray(n)?n:function(t,n){return t.map(function(){return n||dn}).splice(0,t.length-1)}(i,n),o=o||function(t){var n=t.length;return t.map(function(t,r){return 0!==r?r/(n-1):0})}(i);var f=n.map(function(t,n){return Vn({from:i[n],to:i[n+1],ease:t})});return Rn(u({},c,{ease:e})).applyMiddleware(function(t){return function(t,n,r){var e=t.length,o=e-1,i=o-1,u=n.map(function(t){return t.start(r)});return function(n){n<=t[0]&&u[0].seek(0),n>=t[o]&&u[i].seek(1);for(var r=1;r<e&&!(t[r]>n||r===o);r++);var a=Ot(t[r-1],t[r],n);u[r-1].seek(Un(a))}}(o,f,t)})},_n=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.complete,e=n.update,o=t.acceleration,i=void 0===o?0:o,u=t.friction,a=void 0===u?0:u,f=t.velocity,s=void 0===f?0:f,p=t.springStrength,d=t.to,l=t.restSpeed,v=void 0===l?.001:l,h=t.from,m=void 0===h?0:h,g=on().start(function(){var t=Math.max(Object(c.timeSinceLastFrame)(),16);i&&(s+=jt(i,t)),a&&(s*=Math.pow(1-a,t/100)),void 0!==p&&void 0!==d&&(s+=(d-m)*jt(p,t)),m+=jt(s,t),e(m),!1!==v&&(!s||Math.abs(s)<=v)&&(g.stop(),r())});return{set:function(t){return m=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=t,this},setSpringStrength:function(t){return p=t,this},setSpringTarget:function(t){return d=t,this},setVelocity:function(t){return s=t,this},stop:function(){return g.stop()}}})},{acceleration:m.test,friction:m.test,velocity:m.test,from:m.test,to:m.test,springStrength:m.test}),Gn=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.update,e=n.complete,o=t.velocity,i=void 0===o?0:o,u=t.from,a=void 0===u?0:u,f=t.to,s=void 0===f?0:f,p=t.stiffness,d=void 0===p?100:p,l=t.damping,v=void 0===l?10:l,h=t.mass,m=void 0===h?1:h,g=t.restSpeed,y=void 0===g?.01:g,b=t.restDelta,O=void 0===b?.01:b,w=i?-i/1e3:0,M=0,x=s-a,j=a,F=j,C=on().start(function(){var t=Object(c.timeSinceLastFrame)();M+=t;var n=v/(2*Math.sqrt(d*m)),o=Math.sqrt(d/m)/1e3;if(F=j,n<1){var u=Math.exp(-n*o*M),a=o*Math.sqrt(1-n*n);j=s-u*((w+n*o*x)/a*Math.sin(a*M)+x*Math.cos(a*M))}else u=Math.exp(-o*M),j=s-u*(x+(w+o*x)*M);i=Ft(j-F,t);var f=Math.abs(i)<=y,p=Math.abs(s-j)<=O;f&&p?(r(j=s),C.stop(),e()):r(j)});return{stop:function(){return C.stop()}}})},{from:m.test,to:m.test,stiffness:m.test,damping:m.test,mass:m.test,velocity:m.test}),zn=function(t,n){return Array.isArray(n)?t.push.apply(t,function(t){var n=[],r=t[t.length-1],e="number"==typeof r,o=e?r:0,i=e?t.slice(0,-1):t,u=i.length,a=0;return i.forEach(function(t,r){if(n.push(t),r!==u-1){var e=t.duration||300;a+=o,n.push("-"+(e-a))}}),n}(n)):t.push(n),t},Zn=function(t,n,r){var e=t.duration,o=t.easings,i=t.times,u=t.values,a=u.length,c=i[a-1],f=0===n.at?0:n.at/e,s=(n.at+n.duration)/e;if(0===r)u.push(n.from),i.push(f);else if(c!==f){void 0!==n.from&&(u.push(u[a-1]),i.push(f),o.push(fn));var p=void 0!==n.from?n.from:u[a-1];u.push(p),i.push(f),o.push(fn)}else void 0!==n.from&&(u.push(n.from),i.push(f),o.push(fn));return u.push(n.to),i.push(s),o.push(n.ease||ln),t},Bn=function(t,n){var r=void 0===n?{}:n,e=r.duration,o=r.elapsed,i=r.ease,a=r.loop,c=r.flip,f=r.yoyo,s=0,p=0,d=[];t.reduce(zn,[]).forEach(function(t){if("string"==typeof t)s+=parseFloat(t);else if("number"==typeof t)s=t;else{var n=u({},t,{at:s});n.duration=void 0===n.duration?300:n.duration,d.push(n),s+=n.duration,p=Math.max(p,n.at+n.duration)}});for(var l={},v=d.length,h=0;h<v;h++){var m=d[h],g=m.track;if(void 0===g)throw new Error("No track defined");l.hasOwnProperty(g)||(l[g]=[]),l[g].push(m)}var y={};for(var b in l)if(l.hasOwnProperty(b)){var O=l[b].reduce(Zn,{duration:p,easings:[],times:[],values:[]});y[b]=Dn(u({},O,{duration:e||p,ease:i,elapsed:o,loop:a,yoyo:f,flip:c}))}return Jt(y)},qn=function(t,n,r){return zt(function(e){var o=e.update,i=n.split(" ").map(function(n){return t.addEventListener(n,o,r),n});return{stop:function(){return i.forEach(function(n){return t.removeEventListener(n,o,r)})}}})},Nn=function(t,n){return void 0===n&&(n={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),n.clientX=n.x=t.clientX,n.clientY=n.y=t.clientY,n.pageX=t.pageX,n.pageY=t.pageY,n},$n=[{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}],Wn=!1;if("undefined"!=typeof document){qn(document,"touchstart touchmove",!0).start(function(t){var n=t.touches;Wn=!0;var r=n.length;$n.length=0;for(var e=0;e<r;e++){var o=n[e];$n.push(Nn(o))}})}var Hn=function(t){var n=void 0===t?{}:t,r=n.preventDefault,e=void 0===r||r,o=n.scale,i=void 0===o?1:o,u=n.rotate,a=void 0===u?0:u;return zt(function(t){var n=t.update,r={touches:$n,scale:i,rotate:a},o=0,u=0,f=$n.length>1;if(f){var s=$n[0],p=$n[1];o=bt(s,p),u=gt(s,p)}var d=function(){if(f){var t=$n[0],e=$n[1],c=bt(t,e),s=gt(t,e);r.scale=i*(c/o),r.rotate=a+(s-u)}n(r)},l=qn(document,"touchmove",{passive:!e}).start(function(t){(e||t.touches.length>1)&&t.preventDefault(),Object(c.onFrameUpdate)(d)});return Wn&&Object(c.onFrameUpdate)(d),{stop:function(){Object(c.cancelOnFrameUpdate)(d),l.stop()}}})},Kn={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0},Jn=!1;if("undefined"!=typeof document){qn(document,"mousedown mousemove",!0).start(function(t){Jn=!0,Nn(t,Kn)})}var Qn=function(t){var n=(void 0===t?{}:t).preventDefault,r=void 0===n||n;return zt(function(t){var n=t.update,e=function(){return n(Kn)},o=qn(document,"mousemove").start(function(t){r&&t.preventDefault(),Object(c.onFrameUpdate)(e)});return Jn&&Object(c.onFrameUpdate)(e),{stop:function(){Object(c.cancelOnFrameUpdate)(e),o.stop()}}})},tr=function(t){return t[0]},nr=function(t){return void 0===t&&(t={}),Wn?Hn(t).pipe(function(t){return t.touches},tr):Qn(t)},rr=function(t){void 0===t&&(t={});var n=t.x,r=t.y,e=a(t,["x","y"]);if(void 0!==n||void 0!==r){var o=Pt(n||0),i=Pt(r||0),u={x:0,y:0};return nr(e).pipe(function(t){return u.x=o(t.x),u.y=i(t.y),u})}return nr(e)},er=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zt(function(n){var r,e=n.update,o=n.complete,i=0,u=function(){r=t[i].start({complete:function(){++i>=t.length?o():u()},update:e})};return u(),{stop:function(){return r&&r.stop()}}})},or=function(t,n){return zt(function(r){var e=0,o=tn(t,n).start(u({},r,{update:function(t){var n=t[0],o=t[1];r.update(wt(n,o,e))}}));return{setBalance:function(t){return e=t},stop:function(){return o.stop()}}})},ir=function(t){return zt(function(n){var r=n.complete,e=setTimeout(r,t);return{stop:function(){return clearTimeout(e)}}})},ur=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zt(function(n){var r=t.map(function(t){return t.start(n)});return{stop:function(){return r.forEach(function(t){return t.stop()})}}})},ar=function(t,n){return zt(function(r){var e,o=r.update,i=r.complete,u=t.start({update:function(){return void 0!==e&&o(e)},complete:i}),a=n.start({update:function(t){return e=t},complete:i});return{stop:function(){u.stop(),a.stop()}}})},cr=function(t,n){var r="number"==typeof n,e=t.map(function(t,e){var o=r?n*e:n(e);return er(ir(o),t)});return tn.apply(void 0,e)},fr=function(t,n){return pt(t,n)},sr=function(t,n){return pt(t,n)}},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){(function(n){var r="Expected a function",e=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,s="object"==typeof n&&n&&n.Object===Object&&n,p="object"==typeof self&&self&&self.Object===Object&&self,d=s||p||Function("return this")(),l=Object.prototype.toString,v=Math.max,h=Math.min,m=function(){return d.Date.now()};function g(t,n,e){var o,i,u,a,c,f,s=0,p=!1,d=!1,l=!0;if("function"!=typeof t)throw new TypeError(r);function g(n){var r=o,e=i;return o=i=void 0,s=n,a=t.apply(e,r)}function O(t){var r=t-f;return void 0===f||r>=n||r<0||d&&t-s>=u}function w(){var t=m();if(O(t))return M(t);c=setTimeout(w,function(t){var r=n-(t-f);return d?h(r,u-(t-s)):r}(t))}function M(t){return c=void 0,l&&o?g(t):(o=i=void 0,a)}function x(){var t=m(),r=O(t);if(o=arguments,i=this,f=t,r){if(void 0===c)return function(t){return s=t,c=setTimeout(w,n),p?g(t):a}(f);if(d)return c=setTimeout(w,n),g(f)}return void 0===c&&(c=setTimeout(w,n)),a}return n=b(n)||0,y(e)&&(p=!!e.leading,u=(d="maxWait"in e)?v(b(e.maxWait)||0,n):u,l="trailing"in e?!!e.trailing:l),x.cancel=function(){void 0!==c&&clearTimeout(c),s=0,o=f=i=c=void 0},x.flush=function(){return void 0===c?a:M(m())},x}function y(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&l.call(t)==o}(t))return e;if(y(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=y(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=a.test(t);return r||c.test(t)?f(t.slice(2),r?2:8):u.test(t)?e:+t}t.exports=function(t,n,e){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(r);return y(e)&&(o="leading"in e?!!e.leading:o,i="trailing"in e?!!e.trailing:i),g(t,n,{leading:o,maxWait:n,trailing:i})}}).call(this,r(2))},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wrapGrid=void 0;var e,o=r(3),i=(e=o)&&e.__esModule?e:{default:e},u=r(1),a=r(0);function c(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return Array.from(t)}var f=function(t,n){var r=n.getBoundingClientRect(),e={top:r.top,left:r.left,width:r.width,height:r.height};return e.top-=t.top,e.left-=t.left,e},s=function(t,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,e=(0,u.styler)(t).set(n);if(r&&e.render(),t.children[0]){var o=(0,u.styler)(t.children[0]).set({scaleX:1/n.scaleX,scaleY:1/n.scaleY});r&&o.render()}};n.wrapGrid=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.duration,e=void 0===r?250:r,o=n.stagger,p=void 0===o?0:o,d=n.easing,l=void 0===d?"easeInOut":d,v={},h=function(n){var r=t.getBoundingClientRect();[].concat(c(n)).forEach(function(t){if("function"==typeof t.getBoundingClientRect){if(!t.dataset.animateGridId){var n=Math.random();t.dataset.animateGridId=n,v[n]={}}var e=t.dataset.animateGridId,o=f(r,t);v[e].rect=o}})};h(t.children);var m=(0,i.default)(function(){h(t.children)},250);window.addEventListener("resize",m);var g=function(n){if("forceGridAnimation"!==n&&!n.filter(function(t){return"class"===t.attributeName||t.addedNodes.length||t.removedNodes.length}).length)return;var r=t.getBoundingClientRect(),o=[].concat(c(t.children));o.filter(function(t){var n=v[t.dataset.animateGridId];if(n&&n.stopTween)return n.stopTween(),delete n.stopTween,!0}).forEach(function(t){t.style.transform="",t.children[0]&&(t.children[0].style.transform="")});var i=o.map(function(t){return{el:t,boundingClientRect:f(r,t)}}).filter(function(t){var n=t.el,r=t.boundingClientRect,e=v[n.dataset.animateGridId];return e?r.top!==e.rect.top||r.left!==e.rect.left||r.width!==e.rect.width||r.height!==e.rect.height:(h([n]),!1)});i.forEach(function(t){var n=t.el;if([].concat(c(n.children)).length>1)throw new Error("Make sure every grid item has a single container element surrounding its children")}),i.map(function(t){var n=t.el.children[0];if(n){var e=f(r,n),o=e.left,i=e.top;t.childCoords={childLeft:o,childTop:i}}else t.childCoords={};return t}).forEach(function(t,n,r){var o=t.el,i=t.boundingClientRect,c=i.top,f=i.left,d=i.width,m=i.height,g=t.childCoords,y=g.childLeft,b=g.childTop,O=v[o.dataset.animateGridId],w={};w.scaleX=O.rect.width/d,w.scaleY=O.rect.height/m,w.translateX=O.rect.left-f,w.translateY=O.rect.top-c,o.style.transformOrigin="0 0",y===f&&b===c&&(firstChild.style.transformOrigin="0 0"),s(o,w,{immediate:!0});var M=function(){var t=(0,u.tween)({from:w,to:{translateX:0,translateY:0,scaleX:1,scaleY:1},duration:e,ease:u.easing[l]}).start(function(t){s(o,t),(0,a.onFrameEnd)(function(){return h([o])})}).stop;O.stopTween=t};if("number"!=typeof p)M();else{var x=setTimeout(M,p*n);O.stopTween=function(){return clearTimeout(x)}}})},y=new MutationObserver(g);y.observe(t,{childList:!0,attributes:!0,subtree:!0,attributeFilter:["class"]});return{unwrapGrid:function(){window.removeEventListener("resize",m),y.disconnect()},forceGridAnimation:function(){return g("forceGridAnimation")}}}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.animateCSSGrid=n():t.animateCSSGrid=n()}(window,function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:e})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=4)}([function(t,n,r){"use strict";r.r(n),r.d(n,"currentTime",function(){return u}),r.d(n,"onFrameStart",function(){return b}),r.d(n,"onFrameUpdate",function(){return O}),r.d(n,"onFrameRender",function(){return w}),r.d(n,"onFrameEnd",function(){return M}),r.d(n,"cancelOnFrameStart",function(){return x}),r.d(n,"cancelOnFrameUpdate",function(){return j}),r.d(n,"cancelOnFrameRender",function(){return F}),r.d(n,"cancelOnFrameEnd",function(){return C}),r.d(n,"timeSinceLastFrame",function(){return A}),r.d(n,"currentFrameTime",function(){return k});var e=0,o="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var n=Date.now(),r=Math.max(0,16.7-(n-e));e=n+r,setTimeout(function(){return t(e)},r)};function i(t){var n=[],r=[],e=0,o=!1,i=0;return{cancel:function(t){var n=r.indexOf(t);-1!==n&&r.splice(n,1)},process:function(){for(o=!0,n=(t=[r,n])[0],(r=t[1]).length=0,e=n.length,i=0;i<e;i++)n[i]();var t;o=!1},schedule:function(i,u){void 0===u&&(u=!1),t();var a=u&&o,c=a?n:r;-1===c.indexOf(i)&&(c.push(i),a&&(e=n.length))}}}var u="undefined"!=typeof performance&&void 0!==performance.now?function(){return performance.now()}:function(){return Date.now()},a=!1,c=40,f=16.7,s=!0,p=0,d=0;function l(){a||(a=!0,s=!0,o(y))}var v=i(l),h=i(l),m=i(l),g=i(l);function y(t){a=!1,d=s?f:Math.max(Math.min(t-p,c),1),s||(f=d),p=t,v.process(),h.process(),m.process(),g.process(),a&&(s=!1)}var b=v.schedule,O=h.schedule,w=m.schedule,M=g.schedule,x=v.cancel,j=h.cancel,F=m.cancel,C=g.cancel,A=function(){return d},k=function(){return p}},function(t,n,r){"use strict";r.r(n);var e={};r.d(e,"getValueFromFunctionString",function(){return l}),r.d(e,"splitCommaDelimited",function(){return v}),r.d(e,"splitColorValues",function(){return h}),r.d(e,"number",function(){return m}),r.d(e,"alpha",function(){return g}),r.d(e,"degrees",function(){return y}),r.d(e,"percent",function(){return b}),r.d(e,"px",function(){return O}),r.d(e,"scale",function(){return w}),r.d(e,"complex",function(){return j}),r.d(e,"rgbUnit",function(){return C}),r.d(e,"rgba",function(){return A}),r.d(e,"hsla",function(){return k}),r.d(e,"hex",function(){return P}),r.d(e,"color",function(){return S});var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])};function i(t,n){function r(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var u=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t};function a(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)n.indexOf(e[o])<0&&(r[e[o]]=t[e[o]])}return r}var c=r(0),f=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},s=function(t,n){return function(r){return Math.max(Math.min(r,n),t)}},p=function(t){return{test:(n=t,function(t){return"string"==typeof t&&-1!==t.indexOf(n)}),parse:parseFloat,transform:function(n){return""+n+t}};var n},d=function(t){return function(n){return"string"==typeof n&&0===n.indexOf(t)}},l=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))},v=function(t){return"string"==typeof t?t.split(/,\s*/):[t]};function h(t){var n=t.length;return function(r){for(var e={},o=v(l(r)),i=0;i<n;i++)e[t[i]]=void 0!==o[i]?parseFloat(o[i]):1;return e}}var m={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},g=f({},m,{transform:s(0,1)}),y=p("deg"),b=p("%"),O=p("px"),w=f({},m,{default:1}),M=/(-)?(\d[\d\.]*)/g,x=function(t){return"${"+t+"}"},j={test:function(t){var n=t.match&&t.match(M);return void 0!==n&&n.constructor===Array&&n.length>1},parse:function(t){var n={};return t.match(M).forEach(function(t,r){return n[r]=parseFloat(t)}),n},createTransformer:function(t){var n=0,r=t.replace(M,function(){return x(""+n++)});return function(t){var n=r;for(var e in t)t.hasOwnProperty(e)&&(n=n.replace(x(e),t[e].toString()));return n}}},F=s(0,255),C=f({},m,{transform:function(t){return Math.round(F(t))}}),A={test:d("rgb"),parse:h(["red","green","blue","alpha"]),transform:function(t){var n=t.red,r=t.green,e=t.blue,o=t.alpha;return function(t){var n=t.red,r=t.green,e=t.blue,o=t.alpha;return"rgba("+n+", "+r+", "+e+", "+(void 0===o?1:o)+")"}({red:C.transform(n),green:C.transform(r),blue:C.transform(e),alpha:o})}},k={test:d("hsl"),parse:h(["hue","saturation","lightness","alpha"]),transform:function(t){var n=t.hue,r=t.saturation,e=t.lightness,o=t.alpha;return function(t){var n=t.hue,r=t.saturation,e=t.lightness,o=t.alpha;return"hsla("+n+", "+r+", "+e+", "+(void 0===o?1:o)+")"}({hue:Math.round(n),saturation:b.transform(r),lightness:b.transform(e),alpha:o})}},P=f({},A,{test:d("#"),parse:function(t){var n,r,e;return t.length>4?(n=t.substr(1,2),r=t.substr(3,2),e=t.substr(5,2)):(n=t.substr(1,1),r=t.substr(2,1),e=t.substr(3,1),n+=n,r+=r,e+=e),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(e,16),alpha:1}}}),S={test:function(t){return A.test(t)||k.test(t)||P.test(t)},parse:function(t){return A.test(t)?A.parse(t):k.test(t)?k.parse(t):P.test(t)?P.parse(t):t},transform:function(t){return function(t){return void 0!==t.red}(t)?A.transform(t):function(t){return void 0!==t.hue}(t)?k.transform(t):t}};var T,Y=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},X=function(t){var n=t.onRead,r=t.onRender,e=t.aliasMap,o=void 0===e?{}:e,i=t.useCache,u=void 0===i||i;return function(t){var e={},i=[],a=!1,f=function(t,n){var r=o[t]||t,u=e[r];e[r]=n,e[r]!==u&&(-1===i.indexOf(r)&&i.push(r),a||(a=!0,Object(c.onFrameRender)(s)))};function s(n){return void 0===n&&(n=!1),(n||a)&&(r(e,t,i),a=!1,i.length=0),this}return{get:function(r){var i=o[r]||r;return i?u&&void 0!==e[i]?e[i]:n(i,t):e},set:function(t,n){if("string"==typeof t){if(void 0===n)return function(n){return f(t,n)};f(t,n)}else for(var r in t)t.hasOwnProperty(r)&&f(r,t[r]);return this},render:s}}},E=/([a-z])([A-Z])/g,L=function(t){return t.replace(E,"$1-$2").toLowerCase()},V=new Map,I=new Map,R=["Webkit","Moz","O","ms",""],U=R.length,D=function(t,n){void 0===n&&(n=!1);var r=n?I:V;return r.has(t)||function(t){if("undefined"!=typeof document){T=T||document.createElement("div");for(var n=0;n<U;n++){var r=R[n],e=""===r,o=e?t:r+t.charAt(0).toUpperCase()+t.slice(1);o in T.style&&(V.set(t,o),I.set(t,(e?"":"-")+L(o)))}}}(t),r.get(t)||t},_=["","X","Y","Z"],G=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return _.reduce(function(t,r){return t.push(n+r),t},t)},["x","y","z"]),z=G.reduce(function(t,n){return t[n]=!0,t},{}),Z=function(t){return!0===z[t]},B=function(t,n){return G.indexOf(t)-G.indexOf(n)},q=function(t){return"transformOriginX"===t||"transformOriginY"===t},N={color:S,backgroundColor:S,outlineColor:S,fill:S,stroke:S,borderColor:S,borderTopColor:S,borderRightColor:S,borderBottomColor:S,borderLeftColor:S,borderRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,left:O,bottom:O,right:O,rotate:y,rotateX:y,rotateY:y,rotateZ:y,scale:w,scaleX:w,scaleY:w,scaleZ:w,skewX:y,skewY:y,distance:O,translateX:O,translateY:O,translateZ:O,perspective:O,opacity:g,transformOriginX:b,transformOriginY:b,transformOriginZ:O},$=function(t){return N[t]},W="number",H="object",K="transform-origin",J="transform",Q="translateZ",tt=";transform: none",nt=function(t,n){return";"+t+":"+n};var rt=new Set(["scrollLeft","scrollTop"]),et=X({onRead:function(t,n){var r=n.element,e=n.preparseOutput,o=$(t);if(Z(t))return o&&o.default||0;if(rt.has(t))return r[t];var i=window.getComputedStyle(r,null).getPropertyValue(D(t,!0))||0;return e&&o&&o.parse?o.parse(i):i},onRender:function(t,n,r){var e=n.element,o=n.enableHardwareAcceleration;e.style.cssText+=function(t,n,r,e){void 0===n&&(n=!0),void 0===r&&(r=!0);for(var o=!0===n?Object.keys(t):n,i="",u="",a=!1,c=!0,f=!1,s=!1,p=o.length,d=0;d<p;d++){var l=o[d];if(Z(l)){for(var v in f=!0,t)Z(v)&&-1===o.indexOf(v)&&o.push(v);break}}o.sort(B);var h=o.length;for(d=0;d<h;d++)if(l=o[d],!e.has(l)){var m=Z(l),g=t[l],y=$(l);m&&(y.default&&g!==y.default||!y.default&&0!==g)&&(c=!1),y&&(typeof g===W||typeof g===H)&&y.transform&&(g=y.transform(g)),m?(u+=l+"("+g+") ",s=l===Q||s):q(l)?(t[l]=g,a=!0):i+=nt(D(l,!0),g)}return a&&(i+=nt(K,(t.transformOriginX||0)+" "+(t.transformOriginY||0)+" "+(t.transformOriginZ||0))),f&&(!s&&r&&(u+=Q+"(0)"),i+=nt(J,c?tt:u)),i}(t,r,o,rt),-1!==r.indexOf("scrollLeft")&&(e.scrollLeft=t.scrollLeft),-1!==r.indexOf("scrollTop")&&(e.scrollTop=t.scrollTop)},aliasMap:{x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ"},uncachedValues:rt}),ot=function(t,n){return t/100*n+"px"},it={fill:S,stroke:S,scale:w,scaleX:w,scaleY:w,opacity:g,fillOpacity:g,strokeOpacity:g},ut=X({onRead:function(t,n){var r=n.element;if(Z(t)){var e=function(t){return it[t]}(t);return e?e.default:0}return r.getAttribute(t)},onRender:function(t,n,r){var e=n.dimensions;!function(t,n){for(var r in n)n.hasOwnProperty(r)&&t.setAttribute(r,n[r])}(n.element,function(t,n,r,e){var o=!1,i=!1,u={},a=r?{pathLength:"0",pathSpacing:""+e}:void 0,c=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,f=void 0!==t.scaleY?t.scaleY||1e-7:c||1,s=n.width*((t.originX||50)/100)+n.x,p=n.height*((t.originY||50)/100)+n.y,d=1*c*-s,l=1*f*-p,v=s/c,h=p/f,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+d+", "+l+") scale("+c+", "+f+") translate("+v+", "+h+") ",rotate:"rotate("+t.rotate+", "+s+", "+p+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];Z(g)?o=!0:!r||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?r&&"pathOffset"===g?u["stroke-dashoffset"]=ot(-y,e):u[L(g)]=y:(i=!0,a[g]=ot(y,e))}if(i&&(u["stroke-dasharray"]=a.pathLength+" "+a.pathSpacing),o)for(var g in u.transform="",m)if(m.hasOwnProperty(g)){var b="scale"===g?"1":"0";u.transform+=m[g].replace(/undefined/g,b)}return u}(t,e,n.isPath,n.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),at=X({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var n=t.scrollTop,r=void 0===n?0:n,e=t.scrollLeft,o=void 0===e?0:e;return window.scrollTo(o,r)}}),ct=new WeakMap,ft=function(t,n){var r;return t instanceof HTMLElement?r=function(t,n){return et(Y({element:t,enableHardwareAcceleration:!0,preparseOutput:!0},n))}(t,n):t instanceof SVGElement?r=function(t){var n=t.getBBox(),r={element:t,dimensions:{x:n.x,y:n.y,width:n.width,height:n.height},isPath:!1};return"path"===t.tagName&&(r.isPath=!0,r.pathLength=t.getTotalLength()),ut(r)}(t):"undefined"!=typeof window&&t===window&&(r=at(t)),ct.set(t,r),r},st=function(t,n){return ct.has(t)?ct.get(t):ft(t,n)};var pt=function(t,n){var r="string"==typeof t?document.querySelector(t):t;return st(r,n)};r.d(n,"action",function(){return zt}),r.d(n,"multicast",function(){return qt}),r.d(n,"value",function(){return Ht}),r.d(n,"decay",function(){return un}),r.d(n,"keyframes",function(){return Dn}),r.d(n,"everyFrame",function(){return on}),r.d(n,"physics",function(){return _n}),r.d(n,"spring",function(){return Gn}),r.d(n,"timeline",function(){return Bn}),r.d(n,"tween",function(){return Rn}),r.d(n,"listen",function(){return qn}),r.d(n,"pointer",function(){return rr}),r.d(n,"mouse",function(){return Qn}),r.d(n,"multitouch",function(){return Hn}),r.d(n,"chain",function(){return er}),r.d(n,"composite",function(){return Jt}),r.d(n,"crossfade",function(){return or}),r.d(n,"delay",function(){return ir}),r.d(n,"merge",function(){return ur}),r.d(n,"parallel",function(){return tn}),r.d(n,"schedule",function(){return ar}),r.d(n,"stagger",function(){return cr}),r.d(n,"calc",function(){return At}),r.d(n,"easing",function(){return Ln}),r.d(n,"transform",function(){return Rt}),r.d(n,"css",function(){return fr}),r.d(n,"svg",function(){return sr}),r.d(n,"valueTypes",function(){return e}),r.d(n,"styler",function(){return pt});var dt=function(t){return"number"==typeof t},lt=function(t){return void 0!==t.x&&void 0!==t.y},vt=function(t){return void 0!==t.z},ht={x:0,y:0,z:0},mt=function(t,n){return Math.abs(t-n)},gt=function(t,n){return void 0===n&&(n=ht),Mt(Math.atan2(n.y-t.y,n.x-t.x))},yt=function(t){return t*Math.PI/180},bt=function(t,n){if(void 0===n&&(n=ht),dt(t)&&dt(n))return mt(t,n);if(lt(t)&&lt(n)){var r=mt(t.x,n.x),e=mt(t.y,n.y),o=vt(t)&&vt(n)?mt(t.z,n.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(e,2)+Math.pow(o,2))}return 0},Ot=function(t,n,r){var e=n-t;return 0===e?1:(r-t)/e},wt=function(t,n,r){return-r*t+r*n+t},Mt=function(t){return 180*t/Math.PI},xt=function(t,n,r,e){return void 0===e&&(e=0),o=n+r*(t-n)/Math.max(e,r),void 0===i&&(i=2),i=Math.pow(10,i),Math.round(o*i)/i;var o,i},jt=function(t,n){return dt(t)?t/(1e3/n):0},Ft=function(t,n){return n?t*(1e3/n):0},Ct=function(t,n){var r=1/(t-1),e=1-1/t,o=Math.min(n/e,1);return Math.floor(o/r)*r},At=Object.freeze({isPoint:lt,isPoint3D:vt,angle:gt,degreesToRadians:yt,dilate:function(t,n,r){return t+(n-t)*r},distance:bt,getProgressFromValue:Ot,getValueFromProgress:wt,pointFromAngleAndDistance:function(t,n,r){return n=yt(n),{x:r*Math.cos(n)+t.x,y:r*Math.sin(n)+t.y}},radiansToDegrees:Mt,smooth:xt,speedPerFrame:jt,speedPerSecond:Ft,stepProgress:Ct}),kt=function(t){return t},Pt=function(t,n){var r=!0;void 0===n&&(n=t,r=!1);return function(e){return r?function(t){return t+n}(function(n){return n-t}(e)):(t=e,r=!0,n)}},St=function(t,n,r){var e=t*t,o=n*n;return Math.sqrt(r*(o-e)+e)},Tt=function(t,n){var r="string"==typeof t?S.parse(t):t,e="string"==typeof n?S.parse(n):n,o=u({},r),i=void 0!==t.hue||"string"==typeof t&&k.test(t)?wt:St;return function(t){for(var n in o=u({},o))"alpha"!==n&&o.hasOwnProperty(n)&&(o[n]=i(r[n],e[n],t));return o.alpha=wt(r.alpha,e.alpha,t),o}},Yt=function(t,n){return function(r){return Math.min(Math.max(r,t),n)}},Xt=function(t,n){return function(r){return n(t(r))}},Et=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(Xt)},Lt=function(t){return void 0===t&&(t=kt),function(n,r){return function(e){var o=r-e,i=-n*(0-t(Math.abs(o)));return o<=0?r+i:r-i}}},Vt=Lt(),It=Lt(Math.sqrt),Rt=Object.freeze({appendUnit:function(t){return function(n){return""+n+t}},applyOffset:Pt,blendColor:Tt,clamp:Yt,pipe:Et,conditional:function(t,n){return function(r){return t(r)?n(r):r}},interpolate:function(t,n,r){var e,o,i,u,a=t.length;return 2!==a?function(t,n,r,e){var o=r-1;return t[0]>t[o]&&(t.reverse(),n.reverse()),function(i){if(i<=t[0])return n[0];if(i>=t[o])return n[o];for(var u=1;u<r&&!(t[u]>i||u===o);u++);var a=Ot(t[u-1],t[u],i),c=e?e[u-1](a):a;return wt(n[u-1],n[u],c)}}(t,n,a,r):(e=t[0],o=t[1],i=n[0],u=n[1],function(t){return(t-e)*(u-i)/(o-e)+i})},generateStaticSpring:Lt,linearSpring:Vt,nonlinearSpring:It,wrap:function(t,n){return function(r){var e=n-t;return((r-t)%e+e)%e+t}},smooth:function(t){void 0===t&&(t=50);var n=0,r=0;return function(e){var o=Object(c.currentFrameTime)(),i=o!==r?o-r:0,u=i?xt(e,n,i,t):n;return r=o,n=u,u}},snap:function(t){if("number"==typeof t)return function(n){return Math.round(n/t)*t};var n=0,r=t.length;return function(e){var o=Math.abs(t[0]-e);for(n=1;n<r;n++){var i=t[n],u=Math.abs(i-e);if(0===u)return i;if(u>o)return t[n-1];if(n===r-1)return i;o=u}}},steps:function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=1),function(e){var o=Ot(n,r,e);return wt(n,r,Ct(t,o))}},transformMap:function(t){return function(n){var r=u({},n);for(var e in t)if(t.hasOwnProperty(e)){var o=t[e];r[e]=o(n[e])}return r}}}),Ut=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(u({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=1===t.length?t[0]:Et.apply(void 0,t);return this.applyMiddleware(function(t){return function(n){return t(r(n))}})},t.prototype.while=function(t){return this.applyMiddleware(function(n,r){return function(e){return t(e)?n(e):r()}})},t.prototype.filter=function(t){return this.applyMiddleware(function(n,r){return function(r){return t(r)&&n(r)}})},t}(),Dt=function(){return function(t,n){var r=t.middleware,e=t.onComplete,o=this;this.isActive=!0,this.update=function(t){o.observer.update&&o.updateObserver(t)},this.complete=function(){o.observer.complete&&o.isActive&&o.observer.complete(),o.onComplete&&o.onComplete(),o.isActive=!1},this.error=function(t){o.observer.error&&o.isActive&&o.observer.error(t),o.isActive=!1},this.observer=n,this.updateObserver=function(t){return n.update(t)},this.onComplete=e,n.update&&r&&r.length&&r.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),_t=function(t,n,r){var e=n.middleware;return new Dt({middleware:e,onComplete:r},"function"==typeof t?{update:t}:t)},Gt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.create=function(t){return new n(t)},n.prototype.start=function(t){void 0===t&&(t={});var n=!1,r={stop:function(){}},e=this.props,o=e.init,i=a(e,["init"]),c=o(_t(t,i,function(){n=!0,r.stop()}));return r=c?u({},r,c):r,t.registerParent&&t.registerParent(r),n&&r.stop(),r},n}(Ut),zt=function(t){return new Gt({init:t})},Zt=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.subscribers=[],n}return i(n,t),n.prototype.complete=function(){this.subscribers.forEach(function(t){return t.complete()})},n.prototype.error=function(t){this.subscribers.forEach(function(n){return n.error(t)})},n.prototype.update=function(t){for(var n=0;n<this.subscribers.length;n++)this.subscribers[n].update(t)},n.prototype.subscribe=function(t){var n=this,r=_t(t,this.props);return this.subscribers.push(r),{unsubscribe:function(){var t=n.subscribers.indexOf(r);-1!==t&&n.subscribers.splice(t,1)}}},n.prototype.stop=function(){this.parent&&this.parent.stop()},n.prototype.registerParent=function(t){this.stop(),this.parent=t},n}(Ut),Bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.create=function(t){return new n(t)},n}(Zt),qt=function(){return new Bt},Nt=function(t){return Array.isArray(t)},$t=function(t){var n=typeof t;return"string"===n||"number"===n},Wt=function(t){function n(n){var r=t.call(this,n)||this;return r.scheduleVelocityCheck=function(){return Object(c.onFrameEnd)(r.velocityCheck)},r.velocityCheck=function(){Object(c.currentFrameTime)()!==r.lastUpdated&&(r.prev=r.current)},r.prev=r.current=n.value||0,$t(r.current)?(r.updateCurrent=function(t){return r.current=t},r.getVelocityOfCurrent=function(){return r.getSingleVelocity(r.current,r.prev)}):Nt(r.current)?(r.updateCurrent=function(t){return r.current=t.slice()},r.getVelocityOfCurrent=function(){return r.getListVelocity()}):(r.updateCurrent=function(t){for(var n in r.current={},t)t.hasOwnProperty(n)&&(r.current[n]=t[n])},r.getVelocityOfCurrent=function(){return r.getMapVelocity()}),n.initialSubscription&&r.subscribe(n.initialSubscription),r}return i(n,t),n.prototype.create=function(t){return new n(t)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.getVelocityOfCurrent()},n.prototype.update=function(n){t.prototype.update.call(this,n),this.prev=this.current,this.updateCurrent(n),this.timeDelta=Object(c.timeSinceLastFrame)(),this.lastUpdated=Object(c.currentFrameTime)(),Object(c.onFrameEnd)(this.scheduleVelocityCheck)},n.prototype.subscribe=function(n){var r=t.prototype.subscribe.call(this,n);return this.update(this.current),r},n.prototype.getSingleVelocity=function(t,n){return"number"==typeof t&&"number"==typeof n?Ft(t-n,this.timeDelta):Ft(parseFloat(t)-parseFloat(n),this.timeDelta)||0},n.prototype.getListVelocity=function(){var t=this;return this.current.map(function(n,r){return t.getSingleVelocity(n,t.prev[r])})},n.prototype.getMapVelocity=function(){var t={};for(var n in this.current)this.current.hasOwnProperty(n)&&(t[n]=this.getSingleVelocity(this.current[n],this.prev[n]));return t},n}(Zt),Ht=function(t,n){return new Wt({value:t,initialSubscription:n})},Kt=function(t){var n=t.getCount,r=t.getFirst,e=t.getOutput,o=t.mapApi,i=t.setProp,u=t.startActions;return function(t){return zt(function(a){var f=a.update,s=a.complete,p=a.error,d=n(t),l=e(),v=function(){return f(l)},h=0,m=u(t,function(t,n){var r=!1;return t.start({complete:function(){r||(r=!0,++h===d&&Object(c.onFrameUpdate)(s))},error:p,update:function(t){i(l,n,t),Object(c.onFrameUpdate)(v,!0)}})});return Object.keys(r(m)).reduce(function(t,n){return t[n]=o(m,n),t},{})})}},Jt=Kt({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(t,n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Object.keys(t).reduce(function(e,o){return t[o][n]&&(r[0]&&void 0!==r[0][o]?e[o]=t[o][n](r[0][o]):e[o]=(i=t[o])[n].apply(i,r)),e;var i},{})}},setProp:function(t,n,r){return t[n]=r},startActions:function(t,n){return Object.keys(t).reduce(function(r,e){return r[e]=n(t[e],e),r},{})}}),Qt=Kt({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(t,n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return t.map(function(t,e){if(t[n])return Array.isArray(r[0])?t[n](r[0][e]):t[n].apply(t,r)})}},setProp:function(t,n,r){return t[n]=r},startActions:function(t,n){return t.map(function(t,r){return n(t,r)})}}),tn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Qt(t)},nn=S.test,rn=function(t,n){return"string"==typeof n.from&&nn(n.from)&&"string"==typeof n.to&&nn(n.to)?t(u({},n,{from:0,to:1})).pipe(Tt(n.from,n.to),S.transform):t(n)},en=function(t,n){var r=function(t){var n=Object.keys(t);return{getVectorKeys:function(r){return n.reduce(function(n,e){return void 0===r[e]||t[e](r[e])||n.push(e),n},[])},test:function(r){return r&&n.reduce(function(n,e){return n||void 0!==r[e]&&!t[e](r[e])},!1)}}}(n),e=r.test,o=r.getVectorKeys;return function(n){if(!e(n))return t(n);var r=o(n),i=n[r[0]];return Array.isArray(i)?function(t,n,r){var e=r[0],o=n[e].map(function(e,o){return rn(t,r.reduce(function(t){return function(n,r){return n[r]=n[r][t],n}}(o),u({},n)))});return tn.apply(void 0,o)}(t,n,r):"string"==typeof i&&nn(i)?function(t,n){return rn(t,n)}(t,n):function(t,n,r){var e=r[0],o=Object.keys(n[e]).reduce(function(e,o){return e[o]=rn(t,r.reduce(function(t){return function(n,r){return n[r]=n[r][t],n}}(o),u({},n))),e},{});return Jt(o)}(t,n,r)}},on=function(){return zt(function(t){var n=t.update,r=!0,e=Object(c.currentTime)(),o=function(){r&&(n(Math.max(Object(c.currentFrameTime)()-e,0)),Object(c.onFrameUpdate)(o))};return Object(c.onFrameUpdate)(o),{stop:function(){return r=!1}}})},un=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.complete,e=n.update,o=t.velocity,i=void 0===o?0:o,u=t.from,a=void 0===u?0:u,f=t.power,s=void 0===f?.8:f,p=t.timeConstant,d=void 0===p?350:p,l=t.restDelta,v=void 0===l?.5:l,h=t.modifyTarget,m=0,g=s*i,y=Math.round(a+g),b=void 0===h?y:h(y),O=on().start(function(){m+=Object(c.timeSinceLastFrame)();var t=-g*Math.exp(-m/d),n=t>v||t<-v;e(n?b+t:b),n||(O.stop(),r())});return{stop:function(){return O.stop()}}})},{from:m.test,modifyTarget:function(t){return"function"==typeof t},velocity:m.test}),an=function(t){return function(n){return 1-t(1-n)}},cn=function(t){return function(n){return n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2}},fn=function(t){return t},sn=function(t){return function(n){return Math.pow(n,t)}},pn=sn(2),dn=an(pn),ln=cn(pn),vn=function(t){return 1-Math.sin(Math.acos(t))},hn=an(vn),mn=cn(hn),gn=function(t){return function(n){return n*n*((t+1)*n-t)}},yn=gn(1.525),bn=an(yn),On=cn(yn),wn=function(t){var n=gn(t);return function(t){return(t*=2)<1?.5*n(t):.5*(2-Math.pow(2,-10*(t-1)))}},Mn=wn(1.525),xn=8,jn=.001,Fn=1e-7,Cn=10,An=11,kn=1/(An-1),Pn="undefined"!=typeof Float32Array,Sn=function(t,n){return 1-3*n+3*t},Tn=function(t,n){return 3*n-6*t},Yn=function(t){return 3*t},Xn=function(t,n,r){return 3*Sn(n,r)*t*t+2*Tn(n,r)*t+Yn(n)},En=function(t,n,r){return((Sn(n,r)*t+Tn(n,r))*t+Yn(n))*t};var Ln=Object.freeze({createReversedEasing:an,createMirroredEasing:cn,linear:fn,createExpoIn:sn,easeIn:pn,easeOut:dn,easeInOut:ln,circIn:vn,circOut:hn,circInOut:mn,createBackIn:gn,backIn:yn,backOut:bn,backInOut:On,createAnticipateEasing:wn,anticipate:Mn,cubicBezier:function(t,n,r,e){var o=Pn?new Float32Array(An):new Array(An),i=!1,u=function(n){for(var e,i,u,a=0,c=1,f=An-1;c!=f&&o[c]<=n;++c)a+=kn;return e=(n-o[--c])/(o[c+1]-o[c]),(u=Xn(i=a+e*kn,t,r))>=jn?function(n,e){for(var o=0,i=0;o<xn;++o){if(0===(i=Xn(e,t,r)))return e;e-=(En(e,t,r)-n)/i}return e}(n,i):0===u?i:function(n,e,o){var i,u,a=0;do{(i=En(u=e+(o-e)/2,t,r)-n)>0?o=u:e=u}while(Math.abs(i)>Fn&&++a<Cn);return u}(n,a,a+kn)},a=function(){i=!0,t==n&&r==e||function(){for(var n=0;n<An;++n)o[n]=En(n*kn,t,r)}()};return function(o){return i||a(),t===n&&r===e?o:0===o?0:1===o?1:En(u(o),n,e)}}}),Vn=en(function(t){var n=t.from,r=void 0===n?0:n,e=t.to,o=void 0===e?1:e,i=t.ease,u=void 0===i?fn:i;return zt(function(t){var n=t.update;return{seek:function(t){return n(t)}}}).pipe(u,function(t){return wt(r,o,t)})},{ease:function(t){return"function"==typeof t},from:m.test,to:m.test}),In=Yt(0,1),Rn=function(t){return void 0===t&&(t={}),zt(function(n){var r,e=n.update,o=n.complete,i=t.duration,u=void 0===i?300:i,a=t.ease,f=void 0===a?dn:a,s=t.flip,p=void 0===s?0:s,d=t.loop,l=void 0===d?0:d,v=t.yoyo,h=void 0===v?0:v,m=t.from,g=void 0===m?0:m,y=t.to,b=void 0===y?1:y,O=t.elapsed,w=void 0===O?0:O,M=t.playDirection,x=void 0===M?1:M,j=t.flipCount,F=void 0===j?0:j,C=t.yoyoCount,A=void 0===C?0:C,k=t.loopCount,P=void 0===k?0:k,S=Vn({from:g,to:b,ease:f}).start(e),T=0,Y=!1,X=function(){return x*=-1},E=function(){T=In(Ot(0,u,w)),S.seek(T)},L=function(){Y=!0,r=on().start(function(){w+=Object(c.timeSinceLastFrame)()*x,E(),function(){var t=1===x?Y&&w>=u:Y&&w<=0;if(!t)return!1;if(t&&!l&&!p&&!h)return!0;var n,r=!1;return l&&P<l?(w=0,P++,r=!0):p&&F<p?(w=u-w,S=Vn({from:g=(n=[b,g])[0],to:b=n[1],ease:f}).start(e),F++,r=!0):h&&A<h&&(X(),A++,r=!0),!r}()&&o&&(r.stop(),Object(c.onFrameUpdate)(o,!0))})},V=function(){Y=!1,r&&r.stop()};return L(),{isActive:function(){return Y},getElapsed:function(){return Yt(0,u)(w)},getProgress:function(){return T},stop:function(){V()},pause:function(){return V(),this},resume:function(){return L(),this},seek:function(t){return w=wt(0,u,t),Object(c.onFrameUpdate)(E,!0),this},reverse:function(){return X(),this}}})},Un=Yt(0,1),Dn=function(t){var n=t.easings,r=t.ease,e=void 0===r?fn:r,o=t.times,i=t.values,c=a(t,["easings","ease","times","values"]);n=Array.isArray(n)?n:function(t,n){return t.map(function(){return n||dn}).splice(0,t.length-1)}(i,n),o=o||function(t){var n=t.length;return t.map(function(t,r){return 0!==r?r/(n-1):0})}(i);var f=n.map(function(t,n){return Vn({from:i[n],to:i[n+1],ease:t})});return Rn(u({},c,{ease:e})).applyMiddleware(function(t){return function(t,n,r){var e=t.length,o=e-1,i=o-1,u=n.map(function(t){return t.start(r)});return function(n){n<=t[0]&&u[0].seek(0),n>=t[o]&&u[i].seek(1);for(var r=1;r<e&&!(t[r]>n||r===o);r++);var a=Ot(t[r-1],t[r],n);u[r-1].seek(Un(a))}}(o,f,t)})},_n=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.complete,e=n.update,o=t.acceleration,i=void 0===o?0:o,u=t.friction,a=void 0===u?0:u,f=t.velocity,s=void 0===f?0:f,p=t.springStrength,d=t.to,l=t.restSpeed,v=void 0===l?.001:l,h=t.from,m=void 0===h?0:h,g=on().start(function(){var t=Math.max(Object(c.timeSinceLastFrame)(),16);i&&(s+=jt(i,t)),a&&(s*=Math.pow(1-a,t/100)),void 0!==p&&void 0!==d&&(s+=(d-m)*jt(p,t)),m+=jt(s,t),e(m),!1!==v&&(!s||Math.abs(s)<=v)&&(g.stop(),r())});return{set:function(t){return m=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return a=t,this},setSpringStrength:function(t){return p=t,this},setSpringTarget:function(t){return d=t,this},setVelocity:function(t){return s=t,this},stop:function(){return g.stop()}}})},{acceleration:m.test,friction:m.test,velocity:m.test,from:m.test,to:m.test,springStrength:m.test}),Gn=en(function(t){return void 0===t&&(t={}),zt(function(n){var r=n.update,e=n.complete,o=t.velocity,i=void 0===o?0:o,u=t.from,a=void 0===u?0:u,f=t.to,s=void 0===f?0:f,p=t.stiffness,d=void 0===p?100:p,l=t.damping,v=void 0===l?10:l,h=t.mass,m=void 0===h?1:h,g=t.restSpeed,y=void 0===g?.01:g,b=t.restDelta,O=void 0===b?.01:b,w=i?-i/1e3:0,M=0,x=s-a,j=a,F=j,C=on().start(function(){var t=Object(c.timeSinceLastFrame)();M+=t;var n=v/(2*Math.sqrt(d*m)),o=Math.sqrt(d/m)/1e3;if(F=j,n<1){var u=Math.exp(-n*o*M),a=o*Math.sqrt(1-n*n);j=s-u*((w+n*o*x)/a*Math.sin(a*M)+x*Math.cos(a*M))}else u=Math.exp(-o*M),j=s-u*(x+(w+o*x)*M);i=Ft(j-F,t);var f=Math.abs(i)<=y,p=Math.abs(s-j)<=O;f&&p?(r(j=s),C.stop(),e()):r(j)});return{stop:function(){return C.stop()}}})},{from:m.test,to:m.test,stiffness:m.test,damping:m.test,mass:m.test,velocity:m.test}),zn=function(t,n){return Array.isArray(n)?t.push.apply(t,function(t){var n=[],r=t[t.length-1],e="number"==typeof r,o=e?r:0,i=e?t.slice(0,-1):t,u=i.length,a=0;return i.forEach(function(t,r){if(n.push(t),r!==u-1){var e=t.duration||300;a+=o,n.push("-"+(e-a))}}),n}(n)):t.push(n),t},Zn=function(t,n,r){var e=t.duration,o=t.easings,i=t.times,u=t.values,a=u.length,c=i[a-1],f=0===n.at?0:n.at/e,s=(n.at+n.duration)/e;if(0===r)u.push(n.from),i.push(f);else if(c!==f){void 0!==n.from&&(u.push(u[a-1]),i.push(f),o.push(fn));var p=void 0!==n.from?n.from:u[a-1];u.push(p),i.push(f),o.push(fn)}else void 0!==n.from&&(u.push(n.from),i.push(f),o.push(fn));return u.push(n.to),i.push(s),o.push(n.ease||ln),t},Bn=function(t,n){var r=void 0===n?{}:n,e=r.duration,o=r.elapsed,i=r.ease,a=r.loop,c=r.flip,f=r.yoyo,s=0,p=0,d=[];t.reduce(zn,[]).forEach(function(t){if("string"==typeof t)s+=parseFloat(t);else if("number"==typeof t)s=t;else{var n=u({},t,{at:s});n.duration=void 0===n.duration?300:n.duration,d.push(n),s+=n.duration,p=Math.max(p,n.at+n.duration)}});for(var l={},v=d.length,h=0;h<v;h++){var m=d[h],g=m.track;if(void 0===g)throw new Error("No track defined");l.hasOwnProperty(g)||(l[g]=[]),l[g].push(m)}var y={};for(var b in l)if(l.hasOwnProperty(b)){var O=l[b].reduce(Zn,{duration:p,easings:[],times:[],values:[]});y[b]=Dn(u({},O,{duration:e||p,ease:i,elapsed:o,loop:a,yoyo:f,flip:c}))}return Jt(y)},qn=function(t,n,r){return zt(function(e){var o=e.update,i=n.split(" ").map(function(n){return t.addEventListener(n,o,r),n});return{stop:function(){return i.forEach(function(n){return t.removeEventListener(n,o,r)})}}})},Nn=function(t,n){return void 0===n&&(n={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),n.clientX=n.x=t.clientX,n.clientY=n.y=t.clientY,n.pageX=t.pageX,n.pageY=t.pageY,n},$n=[{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}],Wn=!1;if("undefined"!=typeof document){qn(document,"touchstart touchmove",!0).start(function(t){var n=t.touches;Wn=!0;var r=n.length;$n.length=0;for(var e=0;e<r;e++){var o=n[e];$n.push(Nn(o))}})}var Hn=function(t){var n=void 0===t?{}:t,r=n.preventDefault,e=void 0===r||r,o=n.scale,i=void 0===o?1:o,u=n.rotate,a=void 0===u?0:u;return zt(function(t){var n=t.update,r={touches:$n,scale:i,rotate:a},o=0,u=0,f=$n.length>1;if(f){var s=$n[0],p=$n[1];o=bt(s,p),u=gt(s,p)}var d=function(){if(f){var t=$n[0],e=$n[1],c=bt(t,e),s=gt(t,e);r.scale=i*(c/o),r.rotate=a+(s-u)}n(r)},l=qn(document,"touchmove",{passive:!e}).start(function(t){(e||t.touches.length>1)&&t.preventDefault(),Object(c.onFrameUpdate)(d)});return Wn&&Object(c.onFrameUpdate)(d),{stop:function(){Object(c.cancelOnFrameUpdate)(d),l.stop()}}})},Kn={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0},Jn=!1;if("undefined"!=typeof document){qn(document,"mousedown mousemove",!0).start(function(t){Jn=!0,Nn(t,Kn)})}var Qn=function(t){var n=(void 0===t?{}:t).preventDefault,r=void 0===n||n;return zt(function(t){var n=t.update,e=function(){return n(Kn)},o=qn(document,"mousemove").start(function(t){r&&t.preventDefault(),Object(c.onFrameUpdate)(e)});return Jn&&Object(c.onFrameUpdate)(e),{stop:function(){Object(c.cancelOnFrameUpdate)(e),o.stop()}}})},tr=function(t){return t[0]},nr=function(t){return void 0===t&&(t={}),Wn?Hn(t).pipe(function(t){return t.touches},tr):Qn(t)},rr=function(t){void 0===t&&(t={});var n=t.x,r=t.y,e=a(t,["x","y"]);if(void 0!==n||void 0!==r){var o=Pt(n||0),i=Pt(r||0),u={x:0,y:0};return nr(e).pipe(function(t){return u.x=o(t.x),u.y=i(t.y),u})}return nr(e)},er=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zt(function(n){var r,e=n.update,o=n.complete,i=0,u=function(){r=t[i].start({complete:function(){++i>=t.length?o():u()},update:e})};return u(),{stop:function(){return r&&r.stop()}}})},or=function(t,n){return zt(function(r){var e=0,o=tn(t,n).start(u({},r,{update:function(t){var n=t[0],o=t[1];r.update(wt(n,o,e))}}));return{setBalance:function(t){return e=t},stop:function(){return o.stop()}}})},ir=function(t){return zt(function(n){var r=n.complete,e=setTimeout(r,t);return{stop:function(){return clearTimeout(e)}}})},ur=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return zt(function(n){var r=t.map(function(t){return t.start(n)});return{stop:function(){return r.forEach(function(t){return t.stop()})}}})},ar=function(t,n){return zt(function(r){var e,o=r.update,i=r.complete,u=t.start({update:function(){return void 0!==e&&o(e)},complete:i}),a=n.start({update:function(t){return e=t},complete:i});return{stop:function(){u.stop(),a.stop()}}})},cr=function(t,n){var r="number"==typeof n,e=t.map(function(t,e){var o=r?n*e:n(e);return er(ir(o),t)});return tn.apply(void 0,e)},fr=function(t,n){return pt(t,n)},sr=function(t,n){return pt(t,n)}},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){(function(n){var r="Expected a function",e=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,s="object"==typeof n&&n&&n.Object===Object&&n,p="object"==typeof self&&self&&self.Object===Object&&self,d=s||p||Function("return this")(),l=Object.prototype.toString,v=Math.max,h=Math.min,m=function(){return d.Date.now()};function g(t,n,e){var o,i,u,a,c,f,s=0,p=!1,d=!1,l=!0;if("function"!=typeof t)throw new TypeError(r);function g(n){var r=o,e=i;return o=i=void 0,s=n,a=t.apply(e,r)}function O(t){var r=t-f;return void 0===f||r>=n||r<0||d&&t-s>=u}function w(){var t=m();if(O(t))return M(t);c=setTimeout(w,function(t){var r=n-(t-f);return d?h(r,u-(t-s)):r}(t))}function M(t){return c=void 0,l&&o?g(t):(o=i=void 0,a)}function x(){var t=m(),r=O(t);if(o=arguments,i=this,f=t,r){if(void 0===c)return function(t){return s=t,c=setTimeout(w,n),p?g(t):a}(f);if(d)return c=setTimeout(w,n),g(f)}return void 0===c&&(c=setTimeout(w,n)),a}return n=b(n)||0,y(e)&&(p=!!e.leading,u=(d="maxWait"in e)?v(b(e.maxWait)||0,n):u,l="trailing"in e?!!e.trailing:l),x.cancel=function(){void 0!==c&&clearTimeout(c),s=0,o=f=i=c=void 0},x.flush=function(){return void 0===c?a:M(m())},x}function y(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function b(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&l.call(t)==o}(t))return e;if(y(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=y(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=a.test(t);return r||c.test(t)?f(t.slice(2),r?2:8):u.test(t)?e:+t}t.exports=function(t,n,e){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(r);return y(e)&&(o="leading"in e?!!e.leading:o,i="trailing"in e?!!e.trailing:i),g(t,n,{leading:o,maxWait:n,trailing:i})}}).call(this,r(2))},function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wrapGrid=void 0;var e,o=r(3),i=(e=o)&&e.__esModule?e:{default:e},u=r(1),a=r(0);function c(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return Array.from(t)}var f=function(t,n){var r=n.getBoundingClientRect(),e={top:r.top,left:r.left,width:r.width,height:r.height};return e.top-=t.top,e.left-=t.left,e},s=function(t,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).immediate,e=(0,u.styler)(t).set(n);if(r&&e.render(),t.children[0]){var o=(0,u.styler)(t.children[0]).set({scaleX:1/n.scaleX,scaleY:1/n.scaleY});r&&o.render()}};n.wrapGrid=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.duration,e=void 0===r?250:r,o=n.stagger,p=void 0===o?0:o,d=n.easing,l=void 0===d?"easeInOut":d,v={},h=function(n){var r=t.getBoundingClientRect();[].concat(c(n)).forEach(function(t){if("function"==typeof t.getBoundingClientRect){if(!t.dataset.animateGridId){var n=Math.random();t.dataset.animateGridId=n,v[n]={}}var e=t.dataset.animateGridId,o=f(r,t);v[e].rect=o}})};h(t.children);var m=(0,i.default)(function(){h(t.children)},250);window.addEventListener("resize",m);var g=function(n){if("forceGridAnimation"!==n&&!n.filter(function(t){return"class"===t.attributeName||t.addedNodes.length||t.removedNodes.length}).length)return;var r=t.getBoundingClientRect(),o=[].concat(c(t.children));o.filter(function(t){var n=v[t.dataset.animateGridId];if(n&&n.stopTween)return n.stopTween(),delete n.stopTween,!0}).forEach(function(t){t.style.transform="",t.children[0]&&(t.children[0].style.transform="")});var i=o.map(function(t){return{el:t,boundingClientRect:f(r,t)}}).filter(function(t){var n=t.el,r=t.boundingClientRect,e=v[n.dataset.animateGridId];return e?r.top!==e.rect.top||r.left!==e.rect.left||r.width!==e.rect.width||r.height!==e.rect.height:(h([n]),!1)});i.forEach(function(t){var n=t.el;if([].concat(c(n.children)).length>1)throw new Error("Make sure every grid item has a single container element surrounding its children")}),i.map(function(t){var n=t.el.children[0];if(n){var e=f(r,n),o=e.left,i=e.top;t.childCoords={childLeft:o,childTop:i}}else t.childCoords={};return t}).forEach(function(t,n,r){var o=t.el,i=t.boundingClientRect,c=i.top,f=i.left,d=i.width,m=i.height,g=t.childCoords,y=g.childLeft,b=g.childTop,O=o.children[0],w=v[o.dataset.animateGridId],M={};M.scaleX=w.rect.width/d,M.scaleY=w.rect.height/m,M.translateX=w.rect.left-f,M.translateY=w.rect.top-c,o.style.transformOrigin="0 0",O&&y===f&&b===c&&(O.style.transformOrigin="0 0"),s(o,M,{immediate:!0});var x=function(){var t=(0,u.tween)({from:M,to:{translateX:0,translateY:0,scaleX:1,scaleY:1},duration:e,ease:u.easing[l]}).start(function(t){s(o,t),(0,a.onFrameEnd)(function(){return h([o])})}).stop;w.stopTween=t};if("number"!=typeof p)x();else{var j=setTimeout(x,p*n);w.stopTween=function(){return clearTimeout(j)}}})},y=new MutationObserver(g);y.observe(t,{childList:!0,attributes:!0,subtree:!0,attributeFilter:["class"]});return{unwrapGrid:function(){window.removeEventListener("resize",m),y.disconnect()},forceGridAnimation:function(){return g("forceGridAnimation")}}}}])});
{
"name": "animate-css-grid",
"version": "1.0.0",
"version": "1.0.1",
"description": "Easy, smooth transitions for CSS grid",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/aholachek/animate-css-grid",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc