Socket
Socket
Sign inDemoInstall

framer-motion

Package Overview
Dependencies
7
Maintainers
20
Versions
1062
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.11 to 0.0.12

dist/dom/value-types.d.ts

42

dist/dom/unit-type-conversion.d.ts

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

import { Pose } from "../motion/types";
import { RefObject } from "react";
import { MotionValue } from "../motion-value";
import { PoseDefinition, PoseTransition } from "../types";
import { MotionValuesMap } from "../motion";
export declare type BoundingBox = {

@@ -15,2 +15,38 @@ [key in BoundingBoxDimension]: number;

}
export declare const transformPose: (pose: Pose, values: Map<string, MotionValue<any>>, ref: RefObject<Element>) => Pose;
export declare const unitConversion: (pose: PoseDefinition, transition: (import("../types").TransitionOrchestration & import("../types").BaseTransition) | (import("../types").TransitionOrchestration & import("../types").BaseTransition & {
type?: "tween" | undefined;
duration?: number | undefined;
ease?: [number, number, number, number] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | import("../types").EasingFunction | undefined;
elapsed?: number | undefined;
loop?: number | undefined;
flip?: number | undefined;
yoyo?: number | undefined;
}) | (import("../types").TransitionOrchestration & import("../types").BaseTransition & {
type: "spring";
stiffness?: number | undefined;
damping?: number | undefined;
mass?: number | undefined;
restSpeed?: number | undefined;
restDelta?: number | undefined;
}) | (import("../types").TransitionOrchestration & import("../types").BaseTransition & {
type: "decay";
modifyTarget?: ((v: number) => number) | undefined;
power?: number | undefined;
timeConstant?: number | undefined;
restDelta?: number | undefined;
}) | (import("../types").TransitionOrchestration & import("../types").BaseTransition & {
type: "keyframes";
values: string[] | number[];
easings?: import("../types").Easing[] | undefined;
easeAll?: [number, number, number, number] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate" | import("../types").EasingFunction | undefined;
elapsed?: number | undefined;
duration?: number | undefined;
loop?: number | undefined;
flip?: number | undefined;
yoyo?: number | undefined;
}) | (import("../types").TransitionOrchestration & import("../types").BaseTransition & {
type: "physics";
acceleration?: number | undefined;
friction?: number | undefined;
restSpeed?: number | false | undefined;
}) | import("../types").TransitionMap | undefined, values: MotionValuesMap, ref: RefObject<Element>) => [PoseDefinition, PoseTransition];

@@ -239,3 +239,2 @@ 'use strict';

this.lastUpdated = 0;
this.cancelSubscriber = new Set();
this.canTrackVelocity = false;

@@ -271,22 +270,17 @@ this.notifySubscriber = function (subscriber) {

};
MotionValue.prototype.subscribeTo = function (subscriptions, subscription) {
var _this = this;
var updateSubscriber = function () { return subscription(_this.current); };
subscriptions.add(updateSubscriber);
return function () { return subscriptions.delete(updateSubscriber); };
};
MotionValue.prototype.addUpdateSubscription = function (subscription) {
var _this = this;
if (!this.updateSubscribers)
this.updateSubscribers = new Set();
var updateSubscriber = function () { return subscription(_this.current); };
var scheduleUpdate = function () { return sync__default.update(updateSubscriber, false, true); };
this.updateSubscribers.add(scheduleUpdate);
this.cancelSubscriber.add(function () { return sync.cancelSync.update(updateSubscriber); });
return function () { return _this.updateSubscribers.delete(scheduleUpdate); };
return this.subscribeTo(this.updateSubscribers, subscription);
};
MotionValue.prototype.addRenderSubscription = function (subscription) {
var _this = this;
if (!this.renderSubscribers)
this.renderSubscribers = new Set();
var updateSubscriber = function () { return subscription(_this.current); };
var scheduleUpdate = function () { return sync__default.render(updateSubscriber); };
this.renderSubscribers.add(scheduleUpdate);
scheduleUpdate();
this.cancelSubscriber.add(function () { return sync.cancelSync.render(updateSubscriber); });
return function () { return _this.renderSubscribers.delete(scheduleUpdate); };
return this.subscribeTo(this.renderSubscribers, subscription);
};

@@ -345,4 +339,2 @@ MotionValue.prototype.set = function (v, render) {

this.renderSubscribers && this.renderSubscribers.clear();
this.cancelSubscriber.forEach(function (cancel) { return cancel(); });
this.cancelSubscriber.clear();
this.parent && this.parent.removeChild(this);

@@ -430,3 +422,3 @@ this.stop();

return function () { return motionValues.unmount(); };
});
}, []);
return motionValues;

@@ -534,2 +526,113 @@ };

var auto = {
test: function (v) { return v === "auto"; },
parse: function (v) { return v; },
};
var valueTypeTests = [styleValueTypes.number, styleValueTypes.degrees, styleValueTypes.percent, styleValueTypes.px, styleValueTypes.vw, styleValueTypes.vh, auto];
var testValueType = function (v) { return function (type) { return type.test(v); }; };
var getValueType = function (v) { return valueTypeTests.find(testValueType(v)); };
var positionalKeys = new Set(["width", "height", "top", "left", "right", "bottom", "x", "y"]);
var isPositionalKey = function (key) { return positionalKeys.has(key); };
var hasPositionalKey = function (pose) { return Object.keys(pose).some(isPositionalKey); };
var setAndResetVelocity = function (value, to) {
value.set(to, false);
value.set(to);
};
var BoundingBoxDimension;
(function (BoundingBoxDimension) {
BoundingBoxDimension["width"] = "width";
BoundingBoxDimension["height"] = "height";
BoundingBoxDimension["left"] = "left";
BoundingBoxDimension["right"] = "right";
BoundingBoxDimension["top"] = "top";
BoundingBoxDimension["bottom"] = "bottom";
})(BoundingBoxDimension || (BoundingBoxDimension = {}));
var getPosFromMatrix = function (matrix, pos) { return parseFloat(matrix.split(", ")[pos]); };
var getTranslateFromMatrix = function (pos2, pos3) { return function (_bbox, _a) {
var transform = _a.transform;
if (transform === "none" || !transform)
return 0;
var matrix3d = transform.match(/^matrix3d\((.+)\)$/);
if (matrix3d) {
return getPosFromMatrix(matrix3d[1], pos3);
}
else {
var matrix = transform.match(/^matrix\((.+)\)$/);
return getPosFromMatrix(matrix[1], pos2);
}
}; };
var positionalValues = {
width: function (_a) {
var width = _a.width;
return width;
},
height: function (_a) {
var height = _a.height;
return height;
},
top: function (_bbox, _a) {
var top = _a.top;
return parseFloat(top);
},
left: function (_bbox, _a) {
var left = _a.left;
return parseFloat(left);
},
bottom: function (_a, _b) {
var height = _a.height;
var top = _b.top;
return parseFloat(top) + height;
},
right: function (_a, _b) {
var width = _a.width;
var left = _b.left;
return parseFloat(left) + width;
},
x: getTranslateFromMatrix(4, 13),
y: getTranslateFromMatrix(5, 14),
};
var convertChangedValueTypes = function (pose, values, ref, changedKeys) {
var element = ref.current;
var elementStyler = styler__default(element);
var originBbox = element.getBoundingClientRect();
var elementComputedStyle = getComputedStyle(element);
var top = elementComputedStyle.top, left = elementComputedStyle.left, bottom = elementComputedStyle.bottom, right = elementComputedStyle.right, transform = elementComputedStyle.transform;
var originComputedStyle = { top: top, left: left, bottom: bottom, right: right, transform: transform };
elementStyler.render();
var targetBbox = element.getBoundingClientRect();
changedKeys.forEach(function (key) {
var value = values.get(key);
setAndResetVelocity(value, positionalValues[key](originBbox, originComputedStyle));
pose[key] = positionalValues[key](targetBbox, elementComputedStyle);
});
elementStyler.render();
return pose;
};
var checkAndConvertChangedValueTypes = function (pose, transition, values, ref) {
var _a = transition.applyOnEnd, applyOnEnd = _a === void 0 ? {} : _a;
applyOnEnd = __assign({}, applyOnEnd);
var posePositionalKeys = Object.keys(pose).filter(isPositionalKey);
var changedValueTypeKeys = posePositionalKeys.reduce(function (acc, key) {
var value = values.get(key);
var from = value.get();
var to = pose[key];
var fromType = getValueType(from);
var toType = getValueType(to);
if (fromType !== toType) {
acc.push(key);
applyOnEnd[key] = applyOnEnd[key] || pose[key];
setAndResetVelocity(value, to);
}
return acc;
}, []);
return changedValueTypeKeys.length
? [convertChangedValueTypes(pose, values, ref, changedValueTypeKeys), __assign({}, transition, { applyOnEnd: applyOnEnd })]
: [pose, transition];
};
var unitConversion = function (pose, transition, values, ref) {
if (transition === void 0) { transition = {}; }
return hasPositionalKey(pose) ? checkAndConvertChangedValueTypes(pose, transition, values, ref) : [pose, transition];
};
var isAnimatable = function (value) { return typeof value === "number" || styleValueTypes.complex.test(value); };

@@ -562,7 +665,18 @@ var isPoseResolver = function (p) { return typeof p === "function"; };

};
var checkForNewValues = function (target, values, ref) {
var newValueKeys = Object.keys(target).filter(function (key) { return !values.has(key); });
if (!newValueKeys.length)
return;
var domStyler = styler__default(ref.current);
newValueKeys.forEach(function (key) {
var domValue = domStyler.get(key);
values.set(key, motionValue(domValue));
});
};
var AnimationControls = (function () {
function AnimationControls(values) {
function AnimationControls(values, ref) {
this.poses = {};
this.isAnimating = new Set();
this.values = values;
this.ref = ref;
}

@@ -603,11 +717,11 @@ AnimationControls.prototype.setProps = function (props) {

if (delay === void 0) { delay = 0; }
var _a = resolveAnimationDefinition(animationDefinition), target = _a[0], _b = _a[1], transition = _b === void 0 ? {} : _b;
var _a;
var _b = resolveAnimationDefinition(animationDefinition), target = _b[0], _c = _b[1], transition = _c === void 0 ? {} : _c;
if (!target)
return Promise.resolve();
checkForNewValues(target, this.values, this.ref);
_a = unitConversion(target, transition, this.values, this.ref), target = _a[0], transition = _a[1];
var animations = Object.keys(target).reduce(function (acc, key) {
if (_this.isAnimating.has(key))
return acc;
if (!_this.values.has(key)) {
_this.values.set(key, motionValue(0));
}
var value = _this.values.get(key);

@@ -717,5 +831,5 @@ if (!value)

}());
var useAnimationControls = function (values, inherit, props) {
var useAnimationControls = function (values, inherit, props, ref) {
var parentControls = React.useContext(MotionContext).controls;
var controls = React.useMemo(function () { return new AnimationControls(values); }, []);
var controls = React.useMemo(function () { return new AnimationControls(values, ref); }, []);
controls.resetChildren();

@@ -1356,3 +1470,3 @@ if (inherit && parentControls) {

var style = addMotionStyles(values, motionStyle);
var controls = useAnimationControls(values, inherit, props);
var controls = useAnimationControls(values, inherit, props, ref);
var context = useMotionContext(controls, inherit, initialPose || pose);

@@ -1359,0 +1473,0 @@ var handleAnimation = isAnimationSubscription(animate) && (React.createElement(AnimationSubscription, { animate: animate, controls: controls }));

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

import sync, { getFrameData, cancelSync } from 'framesync';
import sync, { getFrameData } from 'framesync';
import { chain, delay, action, tween, spring, keyframes, decay, physics, easing } from 'popmotion';
import { invariant } from 'hey-listen';
import { complex } from 'style-value-types';
import { number, degrees, percent, px, vw, vh, complex } from 'style-value-types';
import styler, { buildStyleProperty } from 'stylefire';

@@ -231,3 +231,2 @@ import { velocityPerSecond, interpolate } from '@popmotion/popcorn';

this.lastUpdated = 0;
this.cancelSubscriber = new Set();
this.canTrackVelocity = false;

@@ -263,22 +262,17 @@ this.notifySubscriber = function (subscriber) {

};
MotionValue.prototype.subscribeTo = function (subscriptions, subscription) {
var _this = this;
var updateSubscriber = function () { return subscription(_this.current); };
subscriptions.add(updateSubscriber);
return function () { return subscriptions.delete(updateSubscriber); };
};
MotionValue.prototype.addUpdateSubscription = function (subscription) {
var _this = this;
if (!this.updateSubscribers)
this.updateSubscribers = new Set();
var updateSubscriber = function () { return subscription(_this.current); };
var scheduleUpdate = function () { return sync.update(updateSubscriber, false, true); };
this.updateSubscribers.add(scheduleUpdate);
this.cancelSubscriber.add(function () { return cancelSync.update(updateSubscriber); });
return function () { return _this.updateSubscribers.delete(scheduleUpdate); };
return this.subscribeTo(this.updateSubscribers, subscription);
};
MotionValue.prototype.addRenderSubscription = function (subscription) {
var _this = this;
if (!this.renderSubscribers)
this.renderSubscribers = new Set();
var updateSubscriber = function () { return subscription(_this.current); };
var scheduleUpdate = function () { return sync.render(updateSubscriber); };
this.renderSubscribers.add(scheduleUpdate);
scheduleUpdate();
this.cancelSubscriber.add(function () { return cancelSync.render(updateSubscriber); });
return function () { return _this.renderSubscribers.delete(scheduleUpdate); };
return this.subscribeTo(this.renderSubscribers, subscription);
};

@@ -337,4 +331,2 @@ MotionValue.prototype.set = function (v, render) {

this.renderSubscribers && this.renderSubscribers.clear();
this.cancelSubscriber.forEach(function (cancel) { return cancel(); });
this.cancelSubscriber.clear();
this.parent && this.parent.removeChild(this);

@@ -422,3 +414,3 @@ this.stop();

return function () { return motionValues.unmount(); };
});
}, []);
return motionValues;

@@ -526,2 +518,113 @@ };

var auto = {
test: function (v) { return v === "auto"; },
parse: function (v) { return v; },
};
var valueTypeTests = [number, degrees, percent, px, vw, vh, auto];
var testValueType = function (v) { return function (type) { return type.test(v); }; };
var getValueType = function (v) { return valueTypeTests.find(testValueType(v)); };
var positionalKeys = new Set(["width", "height", "top", "left", "right", "bottom", "x", "y"]);
var isPositionalKey = function (key) { return positionalKeys.has(key); };
var hasPositionalKey = function (pose) { return Object.keys(pose).some(isPositionalKey); };
var setAndResetVelocity = function (value, to) {
value.set(to, false);
value.set(to);
};
var BoundingBoxDimension;
(function (BoundingBoxDimension) {
BoundingBoxDimension["width"] = "width";
BoundingBoxDimension["height"] = "height";
BoundingBoxDimension["left"] = "left";
BoundingBoxDimension["right"] = "right";
BoundingBoxDimension["top"] = "top";
BoundingBoxDimension["bottom"] = "bottom";
})(BoundingBoxDimension || (BoundingBoxDimension = {}));
var getPosFromMatrix = function (matrix, pos) { return parseFloat(matrix.split(", ")[pos]); };
var getTranslateFromMatrix = function (pos2, pos3) { return function (_bbox, _a) {
var transform = _a.transform;
if (transform === "none" || !transform)
return 0;
var matrix3d = transform.match(/^matrix3d\((.+)\)$/);
if (matrix3d) {
return getPosFromMatrix(matrix3d[1], pos3);
}
else {
var matrix = transform.match(/^matrix\((.+)\)$/);
return getPosFromMatrix(matrix[1], pos2);
}
}; };
var positionalValues = {
width: function (_a) {
var width = _a.width;
return width;
},
height: function (_a) {
var height = _a.height;
return height;
},
top: function (_bbox, _a) {
var top = _a.top;
return parseFloat(top);
},
left: function (_bbox, _a) {
var left = _a.left;
return parseFloat(left);
},
bottom: function (_a, _b) {
var height = _a.height;
var top = _b.top;
return parseFloat(top) + height;
},
right: function (_a, _b) {
var width = _a.width;
var left = _b.left;
return parseFloat(left) + width;
},
x: getTranslateFromMatrix(4, 13),
y: getTranslateFromMatrix(5, 14),
};
var convertChangedValueTypes = function (pose, values, ref, changedKeys) {
var element = ref.current;
var elementStyler = styler(element);
var originBbox = element.getBoundingClientRect();
var elementComputedStyle = getComputedStyle(element);
var top = elementComputedStyle.top, left = elementComputedStyle.left, bottom = elementComputedStyle.bottom, right = elementComputedStyle.right, transform = elementComputedStyle.transform;
var originComputedStyle = { top: top, left: left, bottom: bottom, right: right, transform: transform };
elementStyler.render();
var targetBbox = element.getBoundingClientRect();
changedKeys.forEach(function (key) {
var value = values.get(key);
setAndResetVelocity(value, positionalValues[key](originBbox, originComputedStyle));
pose[key] = positionalValues[key](targetBbox, elementComputedStyle);
});
elementStyler.render();
return pose;
};
var checkAndConvertChangedValueTypes = function (pose, transition, values, ref) {
var _a = transition.applyOnEnd, applyOnEnd = _a === void 0 ? {} : _a;
applyOnEnd = __assign({}, applyOnEnd);
var posePositionalKeys = Object.keys(pose).filter(isPositionalKey);
var changedValueTypeKeys = posePositionalKeys.reduce(function (acc, key) {
var value = values.get(key);
var from = value.get();
var to = pose[key];
var fromType = getValueType(from);
var toType = getValueType(to);
if (fromType !== toType) {
acc.push(key);
applyOnEnd[key] = applyOnEnd[key] || pose[key];
setAndResetVelocity(value, to);
}
return acc;
}, []);
return changedValueTypeKeys.length
? [convertChangedValueTypes(pose, values, ref, changedValueTypeKeys), __assign({}, transition, { applyOnEnd: applyOnEnd })]
: [pose, transition];
};
var unitConversion = function (pose, transition, values, ref) {
if (transition === void 0) { transition = {}; }
return hasPositionalKey(pose) ? checkAndConvertChangedValueTypes(pose, transition, values, ref) : [pose, transition];
};
var isAnimatable = function (value) { return typeof value === "number" || complex.test(value); };

@@ -554,7 +657,18 @@ var isPoseResolver = function (p) { return typeof p === "function"; };

};
var checkForNewValues = function (target, values, ref) {
var newValueKeys = Object.keys(target).filter(function (key) { return !values.has(key); });
if (!newValueKeys.length)
return;
var domStyler = styler(ref.current);
newValueKeys.forEach(function (key) {
var domValue = domStyler.get(key);
values.set(key, motionValue(domValue));
});
};
var AnimationControls = (function () {
function AnimationControls(values) {
function AnimationControls(values, ref) {
this.poses = {};
this.isAnimating = new Set();
this.values = values;
this.ref = ref;
}

@@ -595,11 +709,11 @@ AnimationControls.prototype.setProps = function (props) {

if (delay$$1 === void 0) { delay$$1 = 0; }
var _a = resolveAnimationDefinition(animationDefinition), target = _a[0], _b = _a[1], transition = _b === void 0 ? {} : _b;
var _a;
var _b = resolveAnimationDefinition(animationDefinition), target = _b[0], _c = _b[1], transition = _c === void 0 ? {} : _c;
if (!target)
return Promise.resolve();
checkForNewValues(target, this.values, this.ref);
_a = unitConversion(target, transition, this.values, this.ref), target = _a[0], transition = _a[1];
var animations = Object.keys(target).reduce(function (acc, key) {
if (_this.isAnimating.has(key))
return acc;
if (!_this.values.has(key)) {
_this.values.set(key, motionValue(0));
}
var value = _this.values.get(key);

@@ -709,5 +823,5 @@ if (!value)

}());
var useAnimationControls = function (values, inherit, props) {
var useAnimationControls = function (values, inherit, props, ref) {
var parentControls = useContext(MotionContext).controls;
var controls = useMemo(function () { return new AnimationControls(values); }, []);
var controls = useMemo(function () { return new AnimationControls(values, ref); }, []);
controls.resetChildren();

@@ -1348,3 +1462,3 @@ if (inherit && parentControls) {

var style = addMotionStyles(values, motionStyle);
var controls = useAnimationControls(values, inherit, props);
var controls = useAnimationControls(values, inherit, props, ref);
var context = useMotionContext(controls, inherit, initialPose || pose);

@@ -1351,0 +1465,0 @@ var handleAnimation = isAnimationSubscription(animate) && (createElement(AnimationSubscription, { animate: animate, controls: controls }));

2

dist/framer-motion.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,Z){"use strict";var e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"],n=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],r=e.concat(n),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _=function(){return(_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function z(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var u,a,s=0,c="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-s));s=e+n,setTimeout(function(){return t(s)},n)};(a=u||(u={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var f=1/60*1e3,l=!0,d=!1,p=!1,h={delta:0,timestamp:0},v=[u.Read,u.Update,u.Render,u.PostRender],m=function(t){return d=t},g=v.reduce(function(t,e){var r,i,u,a,s,o,c,f,l,p=(r=m,i=[],s=!(u=[]),o=a=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=u.indexOf(t);c.add(t),-1!==e&&u.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[u,i])[0],(u=e[1]).length=0,a=i.length)for(o=0;o<a;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:u;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(a=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),d||P(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),y=g.steps,D=g.sync,F=g.cancelSync,b=function(t){return y[t].process(h)},w=function(t){d=!1,h.delta=l?f:Math.max(Math.min(t-h.timestamp,40),1),l||(f=h.delta),h.timestamp=t,p=!0,v.forEach(b),p=!1,d&&(l=!1,c(w))},P=function(){l=d=!0,p||c(w)},M=function(){return h},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},E=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},S=function(t){return t%1?Number(t.toFixed(5)):t},C={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},k=O({},C,{transform:x(0,1)}),A=O({},C,{default:1}),R=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},T=R("deg"),L=R("%"),Y=R("px"),X=R("vh"),j=R("vw"),V=x(0,255),U=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,I=function(t){return void 0!==t.red},W=function(t){return void 0!==t.hue},B=function(u){var a=u.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<a;i++)r[u[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},q=O({},C,{transform:function(t){return Math.round(V(t))}}),N=E("rgb"),G={test:function(t){return"string"==typeof t?N(t):I(t)},parse:B(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,u=t.red,a=t.green,s=t.blue,c=t.alpha;return e={red:q.transform(u),green:q.transform(a),blue:q.transform(s),alpha:S(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},H=E("hsl"),$={test:function(t){return"string"==typeof t?H(t):W(t)},parse:B(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,u=t.hue,a=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(u),saturation:L.transform(S(a)),lightness:L.transform(S(s)),alpha:S(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},K=O({},G,{test:E("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(t){return"string"==typeof t&&U.test(t)||G.test(t)||$.test(t)||K.test(t)},parse:function(t){return G.test(t)?G.parse(t):$.test(t)?$.parse(t):K.test(t)?K.parse(t):t},transform:function(t){return I(t)?G.transform(t):W(t)?$.transform(t):t}},Q=/(-)?(\d[\d\.]*)/g,tt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,et="${c}",nt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(Q),r=t.match(tt);return n&&(e+=n.length),r&&(e+=r.length),0<e},rt=function(t){var e=t,n=[],r=e.match(tt);r&&(e=e.replace(tt,et),n.push.apply(n,r.map(J.parse)));var o=e.match(Q);return o&&n.push.apply(n,o.map(C.parse)),n},ot=function(t){var r=t,o=0,e=t.match(tt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],et),o++;var u=r.match(Q),a=u?u.length:0;if(u)for(n=0;n<a;n++)r=r.replace(u[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?et:"${n}",n<i?J.transform(t[n]):S(t[n]));return e}},it=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},at=function(e){return function(t){return t*t*((e+1)*t-e)}},st=function(t){var e=at(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ct=function(t){return t},ft=function(e){return function(t){return Math.pow(t,e)}}(2),lt=it(ft),pt=ut(ft),dt=function(t){return 1-Math.sin(Math.acos(t))},ht=it(dt),vt=ut(ht),mt=at(1.525),gt=it(mt),yt=ut(mt),bt=st(1.525),wt="undefined"!=typeof Float32Array,Pt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},xt=function(t,e,n){return 3*Pt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Et=function(t,e,n){return((Pt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function St(u,e,a,n){var s=wt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=xt(n=o+.1*e,u,a))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=xt(e,u,a)))return e;e-=(Et(e,u,a)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Et(o=e+(n-e)/2,u,a)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Et(.1*t,u,a)}();return function(t){return u===e&&a===n?t:0===t?0:1===t?1:Et(r(t),e,n)}}var Ct=function(t){return"number"==typeof t},kt=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},At=kt(function(t,e,n){return Math.min(Math.max(n,t),e)}),Rt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Tt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Yt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Xt=[K,G,$],jt=function(e){return Xt.find(function(t){return t.test(e)})},Dt=function(t,e){var n=jt(t),r=jt(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Lt({},o),a=n===$?Tt:Yt;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Tt(o.alpha,i.alpha,t),n.transform(u)}},Ft=function(e,n){return function(t){return n(e(t))}},Vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Ft)},Ut=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return Ct(e)?function(t){return Tt(e,n,t)}:J.test(e)?Dt(e,n):It(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},It=function(t,e){var n=ot(t);return n(t),ot(e)(t),Vt(Ut(rt(t),rt(e)),n)},Wt=(kt(Tt),function(t){return t}),Bt=function(i){return void 0===i&&(i=Wt),kt(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},qt=(Bt(),Bt(Math.sqrt),function(t,e){return Ct(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0};kt(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),At(0,1);var _t=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(_({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Vt.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),zt=function(){return function(t,e){var n=t.middleware,r=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=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Nt=function(t,e,n){var r=e.middleware;return new zt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=z(r,["init"]),u=o(Nt(t,i,function(){e=!0,n.stop()}));return n=u?_({},n,u):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(_t),Ht=function(t){return new Gt({init:t})},$t=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return Ht(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),u=p(),a=function(){return e(u)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&D.update(r))},error:o,update:function(t){h(u,e,t),D.update(a,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Kt=$t({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Jt=$t({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Qt=[Y,L,T,X,j],te=function(e){return Qt.find(function(t){return t.test(e)})},ee=function(t,e){return t(e)},ne=function(o,i,u){var t=u[0],e=i[t].map(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return se(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jt(t)}.apply(void 0,e)},re=function(o,i,u){var a=u[0],t=Object.keys(i[a]).reduce(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),_({},i));return t[e]=se(i[a][e])(o,r),t},{});return Kt(t)},oe=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=te(n)||te(r),u=i.transform,a=i.parse;return t(_({},o,{from:"string"==typeof n?a(n):n,to:"string"==typeof r?a(r):r})).pipe(u)},ie=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]);return t(_({},o,{from:0,to:1})).pipe(Dt(n,r),J.transform)},ue=function(t,e){var n=e.from,r=e.to,o=z(e,["from","to"]),i=ot(n);return i(n),ot(r)(n),t(_({},o,{from:0,to:1})).pipe(Ut(rt(n),rt(r)),i)},ae=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),u=e.testVectorProps,a=e.getVectorKeys;return function(t){if(!u(t))return r(t);var e=a(t),n=t[e[0]];return se(n)(r,t,e)}},se=function(t){var e=ee;return"number"==typeof t?e=ee:Array.isArray(t)?e=ne:Boolean(te(t))?e=oe:J.test(t)?e=ie:nt(t)?e=ue:"object"==typeof t&&(e=re),e},ce=ae(function(b){return void 0===b&&(b={}),Ht(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,u=void 0===r?0:r,a=b.power,s=void 0===a?.8:a,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(u+v),g=void 0===d?m:d(m),y=D.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(F.update(y),o())},!0);return{stop:function(){return F.update(y)}}})},{from:C.test,modifyTarget:function(t){return"function"==typeof t},velocity:C.test}),fe=ae(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,u=void 0===i?ct:i;return Ht(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(u,function(t){return Tt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:C.test,to:C.test}),le=At(0,1),pe=function(j){return void 0===j&&(j={}),Ht(function(t){var n,r=t.update,o=t.complete,e=j.duration,i=void 0===e?300:e,u=j.ease,a=void 0===u?lt:u,s=j.flip,c=void 0===s?0:s,f=j.loop,l=void 0===f?0:f,p=j.yoyo,d=void 0===p?0:p,h=j.from,v=void 0===h?0:h,m=j.to,g=void 0===m?1:m,y=j.elapsed,b=void 0===y?0:y,w=j.playDirection,P=void 0===w?1:w,M=j.flipCount,O=void 0===M?0:M,x=j.yoyoCount,E=void 0===x?0:x,S=j.loopCount,C=void 0===S?0:S,k=fe({from:v,to:g,ease:a}).start(r),A=0,R=!1,T=function(){return P*=-1},L=function(){A=le(Rt(0,i,b)),k.seek(A)},Y=function(){R=!0,n=D.update(function(t){var e=t.delta;b+=e*P,L(),function(){var t,e=1===P?R&&i<=b:R&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&C<l?(C++,n=!(b=0)):c&&O<c?(b=i-b,k=fe({from:v=(t=[g,v])[0],to:g=t[1],ease:a}).start(r),O++,n=!0):d&&E<d&&(T(),E++,n=!0),!n}()&&o&&(F.update(n),D.update(o,!1,!0))},!0)},X=function(){R=!1,n&&F.update(n)};return Y(),{isActive:function(){return R},getElapsed:function(){return At(0,i,b)},getProgress:function(){return A},stop:function(){X()},pause:function(){return X(),this},resume:function(){return R||Y(),this},seek:function(t){return b=Tt(0,i,t),D.update(L,!1,!0),this},reverse:function(){return T(),this}}})},de=At(0,1),he=ae(function(m){return void 0===m&&(m={}),Ht(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,u=void 0===n?0:n,a=m.velocity,s=void 0===a?0:a,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=D.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=qt(i,n)),u&&(s*=Math.pow(1-u,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*qt(c,n));h+=qt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(F.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return u=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return F.update(v)}}})},{acceleration:C.test,friction:C.test,velocity:C.test,from:C.test,to:C.test,springStrength:C.test}),ve=ae(function(E){return void 0===E&&(E={}),Ht(function(t){var s=t.update,c=t.complete,e=E.velocity,f=void 0===e?0:e,n=E.from,r=void 0===n?0:n,o=E.to,l=void 0===o?0:o,i=E.stiffness,p=void 0===i?100:i,u=E.damping,d=void 0===u?10:u,a=E.mass,h=void 0===a?1:a,v=E.restSpeed,m=void 0===v?.01:v,g=E.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,M=r,O=M,x=D.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(O=M,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);M=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);M=l-o*(P+(b+r*P)*w)}f=Zt(M-O,e);var u=Math.abs(f)<=m,a=Math.abs(l-M)<=y;u&&a?(s(M=l),F.update(x),c()):s(M)},!0);return{stop:function(){return F.update(x)}}})},{from:C.test,to:C.test,stiffness:C.test,damping:C.test,mass:C.test,velocity:C.test}),me=function(r,o,i){return Ht(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},ge=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},ye=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},be=[ge()];if("undefined"!=typeof document){me(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=be.length=0;r<n;r++){var o=e[r];be.push(ye(o))}})}var we=ge();if("undefined"!=typeof document){me(document,"mousedown mousemove",!0).start(function(t){ye(t,we)})}var Pe,Me=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Oe=Me(function(t,e,n){return Math.min(Math.max(n,t),e)}),xe=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Ee=function(t,e,n){return-n*t+n*e+t},Se=function(){return(Se=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Ce=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},ke=[K,G,$],Ae=function(e){return ke.find(function(t){return t.test(e)})},Re=function(t,e){var n=Ae(t),r=Ae(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Se({},o),a=n===$?Ee:Ce;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Ee(o.alpha,i.alpha,t),n.transform(u)}},Te=function(e,n){return function(t){return n(e(t))}},Le=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Te)},Ye=function(t,e){var n,r,o,i,u,a=ot(t);return a(t),ot(e)(t),Le((n=rt(t),r=rt(e),o=n.slice(),i=o.length,u=n.map(function(e,t){var n=r[t];return"number"==typeof e?function(t){return Ee(e,n,t)}:J.test(e)?Re(e,n):Ye(e,n)}),function(t){for(var e=0;e<i;e++)o[e]=u[e](t);return o}),a)},Xe=Me(Ee),je=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Xe:J.test(t)?Re:Ye)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Le(r,n)}return n});var t},De=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,u=r.ease,a=t.length;e.length,!u||!Array.isArray(u)||(u.length,t.length),t[0]>t[a-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=je(e,u),y=2===a?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(xe(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=xe(s[e],s[e+1],t);return c[e](o)});return i?Le(Oe(t[0],t[a-1]),y):y},Fe=(Oe(0,1),function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,u=this;this.timeDelta=0,this.lastUpdated=0,this.cancelSubscriber=new Set,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(u.current)},this.scheduleVelocityCheck=function(){return D.postRender(u.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==u.lastUpdated&&(u.prev=u.current)},this.setChild=function(t){return t.set(u.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,_({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.addUpdateSubscription=function(t){var e=this;this.updateSubscribers||(this.updateSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.update(n,!1,!0)};return this.updateSubscribers.add(r),this.cancelSubscriber.add(function(){return F.update(n)}),function(){return e.updateSubscribers.delete(r)}},n.prototype.addRenderSubscription=function(t){var e=this;this.renderSubscribers||(this.renderSubscribers=new Set);var n=function(){return t(e.current)},r=function(){return D.render(n)};return this.renderSubscribers.add(r),r(),this.cancelSubscriber.add(function(){return F.render(n)}),function(){return e.renderSubscribers.delete(r)}},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.timeDelta=r,this.lastUpdated=o,D.postRender(this.scheduleVelocityCheck)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?(t=parseFloat(this.prev)-parseFloat(this.current),(e=this.timeDelta)?t*(1e3/e):0):0;var t,e},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=z(e,["delay"]);this.stop();var u,a=t(_({from:this.get(),velocity:this.getVelocity()},i));return n&&(a=a.pipe(n)),o&&(a=function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return Ht(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=u[o].start({complete:function(){++o>=u.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((u=o,Ht(function(t){var e=t.complete,n=setTimeout(e,u);return{stop:function(){return clearTimeout(n)}}})),a)),new Promise(function(t){r.controller=a.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.cancelSubscriber.forEach(function(t){return t()}),this.cancelSubscriber.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}()),Ve=function(t,e){return new Fe(t,e)},Ue=function(t){var e,n=t instanceof Fe?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))},Ie=function(t){return[t.join(",")]},We=Z.createContext({dragging:!1}),Be=function(){return(Be=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},qe=function(t){var s=t.onRead,e=t.onRender,n=t.aliasMap,c=void 0===n?{}:n,r=t.uncachedValues,f=void 0===r?new Set:r,o=t.useCache,l=void 0===o||o;return function(n){var o={},i=[],u=!1,r=function(t,e){var n=c[t]||t,r=o[n];o[n]=e,o[n]!==r&&(-1===i.indexOf(n)&&i.push(n),u||(u=!0,D.render(a)))};function a(t){return void 0===t&&(t=!1),(!0===t||u)&&(e(o,n,i),u=!1,i.length=0),this}return{get:function(t){var e=c[t]||t;return e?l&&!f.has(e)&&void 0!==o[e]?o[e]:s(e,n):o},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return r(e,t)};r(e,t)}else for(var n in e)e.hasOwnProperty(n)&&r(n,e[n]);return this},render:a}}},Ze=/([a-z])([A-Z])/g,_e=function(t){return t.replace(Ze,"$1-$2").toLowerCase()},ze=new Map,Ne=new Map,Ge=["Webkit","Moz","O","ms",""],He=Ge.length,$e="undefined"!=typeof document,Ke=function(t,e){return Ne.set(t,_e(e))},Je=function(t,e){void 0===e&&(e=!1);var n,r=e?Ne:ze;return r.has(t)||($e?function(t){Pe=Pe||document.createElement("div");for(var e=0;e<He;e++){var n=Ge[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Pe.style||r)&&(ze.set(t,o),Ke(t,(r?"":"-")+_e(o)))}}(t):Ke(n=t,n)),r.get(t)||t},Qe=["","X","Y","Z"],tn=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return Qe.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),en=tn.reduce(function(t,e){return t[e]=!0,t},{}),nn=function(t){return!0===en[t]},rn=function(t,e){return tn.indexOf(t)-tn.indexOf(e)},on={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:T,skewX:T,skewY:T,distance:Y,translateX:Y,translateY:Y,translateZ:Y,perspective:Y,opacity:k,transformOriginX:L,transformOriginY:L,transformOriginZ:Y},un=function(t){return on[t]},an="scrollLeft",sn="scrollTop",cn=new Set([an,sn]),fn={x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ",scrollX:an,scrollY:sn},ln=function(t,e,n,r,o,i){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]);var u,a=!0,s=!1;for(var c in t){var f=fn[c]?fn[c]:c,l=t[c],p=un(f),d="number"==typeof l&&p?p.transform(l):l;nn(f)?(r[f]=d,i.push(f),a&&(p.default&&l!==p.default||!p.default&&0!==l)&&(a=!1)):"transformOriginX"===(u=f)||"transformOriginY"===u?(o[f]=d,s=!0):cn.has(f)||(n[f]=d)}if(a)n.transform="none";else{var h="",v=!1;i.sort(rn);for(var m=i.length,g=0;g<m;g++){h+=(f=i[g])+"("+r[f]+") ",v="z"===f||v}!v&&e&&(h+="translateZ(0)"),n.transform=h}return s&&(n.transformOrigin=(o.transformOriginX||0)+" "+(o.transformOriginY||0)+" "+(o.transformOriginZ||0)),n},pn=qe({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=un(t);if(nn(t))return o&&o.default||0;if(cn.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(Je(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;r.style.cssText+=o(t),-1!==n.indexOf(an)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(sn)&&(r.scrollTop=t.scrollTop)},aliasMap:fn,uncachedValues:cn}),dn=function(t,e){return pn(Be({element:t,buildStyles:function(u){void 0===u&&(u=!0);var a={},s={},c={},f={},l=[];return function(t){var e,n,r="";for(var o in l.length=0,a=ln(t,u,a,c,f,l)){var i=a[o];i!==s[o]&&(r+=(n=i,";"+Je(o,!0)+":"+n))}return a=(e=[s,a])[0],s=e[1],r}}(),preparseOutput:!0},e))},hn=function(t,e){return t/100*e+"px"},vn={fill:J,stroke:J,scale:A,scaleX:A,scaleY:A,opacity:k,fillOpacity:k,strokeOpacity:k},mn=qe({onRead:function(t,e){var n=e.element;if(nn(t)){var r=vn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e,n){var r=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,u={},a=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];nn(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?u["stroke-dashoffset"]=hn(-y,r):u[_e(g)]=y:(i=!0,a[g]=hn(y,r))}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,r,e.isPath,e.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),gn=qe({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),yn=new WeakMap,bn=function(t,e){var n,r,o,i;return t instanceof HTMLElement?n=dn(t,e):t instanceof SVGElement?(o=(r=t).getBBox(),i={element:r,dimensions:{x:o.x,y:o.y,width:o.width,height:o.height},isPath:!1},"path"===r.tagName&&(i.isPath=!0,i.pathLength=r.getTotalLength()),n=mn(i)):t===window&&(n=gn(t)),yn.set(t,n),n};function wn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,yn.has(n)?yn.get(n):bn(n,r)}var Pn,Mn=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new Fe(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=wn(t),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),On=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},xn=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},En=function(){return{ease:"linear",duration:250}},Sn={x:On,y:On,z:On,rotate:On,rotateX:On,rotateY:On,rotateZ:On,scaleX:xn,scaleY:xn,scale:xn,opacity:En,backgroundColor:En,color:En,default:xn},Cn={tween:pe,spring:ve,keyframes:function(t){var e,n,r,o,i=t.easings,u=t.ease,a=void 0===u?ct:u,s=t.times,c=t.values,f=z(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||lt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return fe({from:c[e],to:c[e+1],ease:t})});return pe(_({},f,{ease:a})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,u=(i=o-1)-1,a=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&a[0].seek(0),t>=r[i]&&a[u].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Rt(r[e-1],r[e],t);a[e-1].seek(de(n))};var r,e,n,o,i,u,a})},decay:ce,physics:he,just:function(t){var r=t.to;return Ht(function(t){var e=t.update,n=t.complete;e(r),n()})}},kn={linear:ct,easeIn:ft,easeOut:lt,easeInOut:pt,circIn:dt,circOut:ht,circInOut:vt,backIn:mt,backOut:gt,backInOut:yt,anticipate:bt},An={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=St(n,r,o,i)}else"string"==typeof e&&(t.ease=kn[e]);return t},keyframes:function(t){t.from,t.to;return z(t,["from","to"])}},Rn=function(t,e,n){if(void 0===n)return _({},(Sn[t]||Sn.default)(r=e),{to:r});var r,o=n.delay,i=void 0===o?0:o,u=n[t]||n.default||n;return!1===u.type?{type:"just",delay:i,to:e}:_({delay:i,to:e},u)},Tn=function(t,e,n){var r,o,i=Rn(t,e,n),u=i.type,a=void 0===u?"tween":u,s=z(i,["type"]);return[Cn[a],(o=s,An[r=a]?An[r](o):o)]},Ln=function(n,r,o){return void 0===o&&(o=new Set),Object.keys(n).forEach(function(t){if(!o.has(t))if(o.add(t),r.has(t)){var e=r.get(t);e&&e.set(n[t])}else r.set(t,Ve(n[t]))})},Yn=function(t,e){return void 0===e&&(e={}),t?("function"==typeof t&&(t=t(e)),Array.isArray(t)?t:[t]):[]},Xn=function(){function t(t){this.poses={},this.isAnimating=new Set,this.values=t}return t.prototype.setProps=function(t){this.props=t},t.prototype.setPoses=function(t){this.poses=t},t.prototype.start=function(t,e){return this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateMultiplePoses(t):"string"==typeof t?this.animatePose(t):this.animate([t,e]);var n},t.prototype.set=function(t){var i=this,u=new Set;t.slice().reverse().forEach(function(t){var e=Yn(i.poses[t],i.props),n=e[0],r=e[1];if(r){var o=r.applyOnEnd;o&&Ln(o,i.values,u)}n&&Ln(n,i.values,u)})},t.prototype.animate=function(t,s){var c=this;void 0===s&&(s=0);var e=Yn(t),f=e[0],n=e[1],l=void 0===n?{}:n;if(!f)return Promise.resolve();var r=Object.keys(f).reduce(function(t,e){if(c.isAnimating.has(e))return t;c.values.has(e)||c.values.set(e,Ve(0));var n=c.values.get(e);if(!n)return t;var r,o=f[e];if("number"==typeof(r=o)||nt(r)){var i=Tn(e,o,_({delay:s},l)),u=i[0],a=i[1];t.push(n.control(u,a))}else n.set(o);return c.isAnimating.add(e),t},[]);return Promise.all(r).then(function(){if(l&&l.applyOnEnd){var t=l.applyOnEnd;Ln(t,c.values)}})},t.prototype.animateMultiplePoses=function(t){var e=this,n=t.slice().reverse().map(function(t){return e.animatePose(t)});return Promise.all(n)},t.prototype.animatePose=function(t,e){var n=this;void 0===e&&(e=0);var r=!1,o=!1,i=0,u=0,a=1,s=this.poses[t],c=s?function(){return n.animate(s,e)}:function(){return Promise.resolve()},f=this.children?function(){return n.animateChildren(t,i,u,a)}:function(){return Promise.resolve()};if(s&&this.children){var l=Yn(s)[1];l&&(r=l.beforeChildren||r,o=l.afterChildren||o,i=l.delayChildren||i,u=l.staggerChildren||u,a=l.staggerDirection||a)}if(r||o){var p=r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},t.prototype.animateChildren=function(r,o,e,t){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),!this.children)return Promise.resolve();var i=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animatePose(r,o+u(e));i.push(n)}),Promise.all(i)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),jn=(Pn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Pn(t)}),n}),Dn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set,this.poses={}}return t.prototype.setPoses=function(e){this.poses=e,this.subscribers.forEach(function(t){return t.setPoses(e)})},t.prototype.subscribe=function(t){var e=this;return this.subscribers.add(t),this.poses&&t.setPoses(this.poses),function(){return e.subscribers.delete(t)}},t.prototype.start=function(n,r){if(this.hasMounted){var o=[];return this.subscribers.forEach(function(t){var e=t.start(n,r);o.push(e)}),Promise.all(o)}return this.pendingAnimations.push([n,r]),Promise.resolve()},t.prototype.stop=function(){this.subscribers.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var e=t[0],n=t[1];return r.start(e,n)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}();function Fn(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var Vn,Un=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},In=function(o,i,u,a){var t=void 0;return i&&!Fn(i)||!u||(t=Un(i,o,u,a)),Z.useEffect(function(){var t=i;if(u&&i&&!Fn(i)&&t.current){var e=Un(t.current,o,u,a),n=e[0],r=e[1];return n(),r}},[o,i,u,a]),t},Wn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var u=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:u*(t.pageY-r.top-e.clientTop+e.scrollTop)}},Bn=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Wn(n,r),devicePoint:Wn(n,document.body)}),o(t,e)}}},qn=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},Zn=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,u=t.onPointerCancel,a=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:u}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:a,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,M,O,x,E,S,C,k,A,R,T,L,Y,X,j,D,F,V,U,I,W,B,q,Z,_,z,N,G,H,$,K,J,Q,tt,et,nt,rt,ot,it,ut,at=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,M=h.onPointerOut,O=h.onPointerEnter,x=h.onPointerLeave,E=In("pointerdown",v,Bn(g),m),S=In("pointermove",v,Bn(y),m),C=In("pointerup",v,Bn(b),m),k=In("pointercancel",v,Bn(w),m),A=In("pointerover",v,Bn(P),m),R=In("pointerout",v,Bn(M),m),T=In("pointerenter",v,Bn(O),m),L=In("pointerleave",v,Bn(x),m),qn(E,S,C,k,A,R,T,L)),st=(X=e,j=n,D=(Y=p).onTouchStart,F=Y.onTouchMove,V=Y.onTouchEnd,U=Y.onTouchCancel,I=In("touchstart",X,Bn(D),j),W=In("touchmove",X,Bn(F),j),B=In("touchend",X,Bn(V),j),q=In("touchcancel",X,Bn(U),j),qn(I,W,B,q)),ct=(_=e,z=n,N=(Z=l).onMouseDown,G=Z.onMouseMove,H=Z.onMouseUp,$=Z.onMouseOver,K=Z.onMouseOut,J=Z.onMouseEnter,Q=Z.onMouseLeave,tt=In("mousedown",_,Bn(N),z),et=In("mousemove",_,Bn(G),z),nt=In("mouseup",_,Bn(H),z),rt=In("mouseover",_,Bn($),z),ot=In("mouseout",_,Bn(K),z),it=In("mouseenter",_,Bn(J),z),ut=In("mouseleave",_,Bn(Q),z),qn(tt,et,nt,rt,ot,it,ut));return qn(at,st,ct)},_n=function(t,e,n){var r,o,i=Z.useRef(null);return o=e?(r=e,t):(r=i,{}),Zn(o,r,n),e?void 0:t};(Vn||(Vn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var zn=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function Nn(t,e){var u=t.onPan,a=t.onPanStart,s=t.onPanEnd,c=null,f=Z.useRef(null),n=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);f.current.x.set(n.x),f.current.y.set(n.y),(0<Math.abs(o.x)||0<Math.abs(o.y))&&(c.startEvent?u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}):(a&&a(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c.startEvent=t)),c.lastDevicePoint=r}else console.error("Pointer move without started session")}},[u,a]),r=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Vn.subtract(r,c.lastDevicePoint),i=Vn.subtract(r,c.startDevicePoint);h(),l(),s&&s(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:zn(f.current)}),c=null}else console.error("Pointer end without started session")}},[s,n]),o=Zn({onPointerUp:r},window),i=o[0],l=o[1],p=Zn({onPointerMove:n},window,{capture:!0}),d=p[0],h=p[1],v=Z.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;f.current={x:Ve(r.x),y:Ve(r.y)},c={target:t.target,lastDevicePoint:n,startDevicePoint:n},d(),i()}},[r,n]);Z.useEffect(function(){return function(){h(),l()}},[]);var m={onPointerDown:v};return u||a||s||(m={}),_n(m,e)}function Gn(t,o){var i=t.onTap,u=null,e=Z.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;u&&o&&t.target===o.current&&(i&&i({point:n,devicePoint:r},t),u=null)}},[i]),n=Zn({onPointerUp:e},window),r=n[0],a=n[1];return Z.useEffect(function(){return function(){a()}},[o&&o.current,e]),_n({onPointerDown:function(t){r(),o&&t.target===o.current&&(u={target:t.target})}},o)}var Hn=function(t,e){Nn(t,e),Gn(t,e)};function $n(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Kn=function(t){var e={dragEnabled:!1,dragLocksDirection:!1,dragPropagation:!1};return Object.assign(e,t),void 0===t.dragEnabled&&(t.dragLocksDirection||t.dragPropagation)&&(e.dragEnabled=!0),e};function Jn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function Qn(t,e,n){var r,o,i,u=(r=t,"function"==typeof(o=Kn)?i=o(r):(i=o,Object.assign(i,r)),i),a=u.dragEnabled,s=u.dragPropagation,c=u.dragLocksDirection,f={},l=null;Jn("x",a,l)&&(f.x=n.get("x",0)),Jn("y",a,l)&&(f.y=n.get("y",0));var p=Z.useContext(We),d=!1,h=Z.useMemo(function(){return function(){(s||(d=function(t){var e=!1;if("y"===t)e=er();else if("x"===t)e=tr();else{var n=tr(),r=er();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(a)))&&(l=null,p.dragging=!0)}},[a,s,p]),v=Z.useMemo(function(){return function(t,e){var n=e.delta,r=e.offset;if(s||d)if(c&&null===l)l=function(t){var e=null;10<Math.abs(t.y)?e="y":10<Math.abs(t.x)&&(e="x");return e}(r);else{var o=f.x,i=f.y;Jn("x",a,l)&&o&&o.set(o.get()+n.x),Jn("y",a,l)&&i&&i.set(i.get()+n.y)}}},[d,a,f]),m=Z.useMemo(function(){return function(){!s&&d&&d(),p.dragging=!1}},[d,p,a]),g={};a&&(g={onPanStart:h,onPan:v,onPanEnd:m}),Nn(g,e)}var tr=$n("dragHorizontal"),er=$n("dragVertical");var nr=["dragEnabled","onPan","onPanStart","onPanEnd","onTap"],rr=function(t){return t instanceof Dn},or=function(e){return function(t){return e(t),null}},ir=or(function(t){return e=t.animate,n=t.controls,r=Z.useMemo(function(){return e.subscribe(n)},[e]),void Z.useEffect(function(){return function(){return r&&r()}},[r]);var e,n,r}),ur=or(function(t){var e,n,r,o,i,u,a,s,c,f=t.animate,l=t.inherit,p=t.controls,d=t.onPoseComplete,h=t.pose,v=t.initialPose;return e=f,n=l,r=p,o=d,i=h,u=v,a=Z.useContext(We).pose,s=Ue(n?a:i),c=Z.useRef(!1),r.setPoses(e),Z.useMemo(function(){var t=u?Ue(u):s;r.set(t)},[]),void Z.useEffect(function(){n||((c.current||u)&&r.start(s).then(function(){o&&o()}),c.current=!0)},Ie(s))}),ar=or(function(t){var e=t.innerRef,n=z(t,["innerRef"]);return Hn(n,e)}),sr=or(function(t){var e=t.innerRef,n=t.values;return Qn(z(t,["innerRef","values"]),e,n)}),cr=function(t){var e,n,r=t.base,o=t.remainingProps,i=t.innerRef,u=t.style,a=t.values;return Z.createElement(r,_({},o,{ref:i,style:(e=a,n=u,_({},n,ln(jn(e))))}))},fr=function(q){return Z.memo(Z.forwardRef(function(t,e){var n,r,o,i,u,a,s,c,f,l,p,d,h,v,m,g,y,b,w=t,P=w.animate,M=w.pose,O=void 0===M?"default":M,x=w.style,E=w.onPoseComplete,S=w.inherit,C=void 0!==S&&S,k=w.initialPose,A=w.dragEnabled,R=w.dragLocksDirection,T=w.dragPropagation,L=z(w,["animate","pose","style","onPoseComplete","inherit","initialPose","dragEnabled","dragLocksDirection","dragPropagation"]),Y=(r=(n=e)&&"function"!=typeof n?n:Z.useRef(null),Z.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),X=(o=Y,i=Z.useMemo(function(){return new Mn},[]),Z.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}}),i),j=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Fe?t.set(r,o):n[r]=o}return n}(X,x),D=(u=X,a=C,s=L,c=Z.useContext(We).controls,(f=Z.useMemo(function(){return new Xn(u)},[])).resetChildren(),a&&c&&c.addChild(f),Z.useEffect(function(){return function(){return c&&c.removeChild(f)}},[]),f.setProps(s),f),F=(l=D,p=C,d=k||O,h=Z.useContext(We),v=h.pose,m=h.dragging,(g=Z.useMemo(function(){return{controls:l,dragging:m}},Ie(Ue(d)))).pose=p?v:d,g),V=rr(P)&&Z.createElement(ir,{animate:P,controls:D}),U=void 0!==(y=P)&&!rr(y)&&Z.createElement(ur,{animate:P,inherit:C,controls:D,onPoseComplete:E,pose:O,initialPose:k}),I=(b=t,nr.some(function(t){return b.hasOwnProperty(t)})&&Z.createElement(ar,_({},t,{innerRef:Y}))),W=!!t.dragEnabled&&Z.createElement(sr,{dragEnabled:A,dragLocksDirection:R,dragPropagation:T,innerRef:Y,values:X}),B=Z.createElement(cr,{base:q,remainingProps:L,innerRef:Y,style:j,values:X});return Z.createElement(We.Provider,{value:F},V,U,I,W,B)}))},lr=r.reduce(function(t,e){return t[e]=fr(e),t},{custom:fr}),pr=Ve(0),dr=Ve(0),hr=Ve(0),vr=Ve(0),mr=0,gr=0,yr=0,br=0,wr=!1,Pr={scrollX:pr,scrollY:dr,scrollXProgress:hr,scrollYProgress:vr};t.motion=lr,t.useMotionValue=function(t){return Z.useMemo(function(){return Ve(t)},[])},t.useTransformedValue=function(e,n,r){var o=Z.useRef(null);return Z.useMemo(function(){o.current&&o.current.destroy();var t=De(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return wr||function(){if(wr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;pr.set(t),dr.set(e),hr.set(mr-t-yr),vr.set(gr-e-br)},e=function(){mr=document.body.clientWidth,gr=document.body.clientHeight,yr=window.innerWidth,br=window.innerHeight};e(),t(),window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0})}}(),Pr},t.useAnimation=function(t){var e=Z.useMemo(function(){return new Dn},[]);return t&&e.setPoses(t),Z.useEffect(function(){return e.mount(),function(){return e.unmount()}},[]),e},t.useTapGesture=Gn,t.usePanGesture=Nn,t.useGestures=Hn,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.FramerMotion={},t.React)}(this,function(t,_){"use strict";var e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"],n=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],r=e.concat(n),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var z=function(){return(z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function N(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}var u,a,s=0,c="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-s));s=e+n,setTimeout(function(){return t(s)},n)};(a=u||(u={})).Read="read",a.Update="update",a.Render="render",a.PostRender="postRender",a.FixedUpdate="fixedUpdate";var f=1/60*1e3,l=!0,d=!1,p=!1,h={delta:0,timestamp:0},v=[u.Read,u.Update,u.Render,u.PostRender],m=function(t){return d=t},g=v.reduce(function(t,e){var r,i,u,a,s,o,c,f,l,p=(r=m,i=[],s=!(u=[]),o=a=0,c=new WeakSet,f=new WeakSet,l={cancel:function(t){var e=u.indexOf(t);c.add(t),-1!==e&&u.splice(e,1)},process:function(t){var e,n;if(s=!0,i=(e=[u,i])[0],(u=e[1]).length=0,a=i.length)for(o=0;o<a;o++)(n=i[o])(t),!0!==f.has(n)||c.has(n)||(l.schedule(n),r(!0));s=!1},schedule:function(t,e,n){var r=n&&s,o=r?i:u;e&&f.add(t),-1===o.indexOf(t)&&(o.push(t),r&&(a=i.length))}});return t.sync[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),d||P(),p.schedule(t,e,n),t},t.cancelSync[e]=function(t){return p.cancel(t)},t.steps[e]=p,t},{steps:{},sync:{},cancelSync:{}}),y=g.steps,D=g.sync,F=g.cancelSync,b=function(t){return y[t].process(h)},w=function(t){d=!1,h.delta=l?f:Math.max(Math.min(t-h.timestamp,40),1),l||(f=h.delta),h.timestamp=t,p=!0,v.forEach(b),p=!1,d&&(l=!1,c(w))},P=function(){l=d=!0,p||c(w)},M=function(){return h},O=function(){return(O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},x=function(e,n){return function(t){return Math.max(Math.min(t,n),e)}},E=function(e){return function(t){return"string"==typeof t&&0===t.indexOf(e)}},C=function(t){return t%1?Number(t.toFixed(5)):t},k={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},S=O({},k,{transform:x(0,1)}),A=O({},k,{default:1}),T=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},R=T("deg"),L=T("%"),j=T("px"),Y=T("vh"),X=T("vw"),V=x(0,255),B=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i,U=function(t){return void 0!==t.red},I=function(t){return void 0!==t.hue},W=function(u){var a=u.length;return function(t){if("string"!=typeof t)return t;for(var e,n,r={},o="string"==typeof(e=(n=t).substring(n.indexOf("(")+1,n.lastIndexOf(")")))?e.split(/,\s*/):[e],i=0;i<a;i++)r[u[i]]=void 0!==o[i]?parseFloat(o[i]):1;return r}},q=O({},k,{transform:function(t){return Math.round(V(t))}}),Z=E("rgb"),G={test:function(t){return"string"==typeof t?Z(t):U(t)},parse:W(["red","green","blue","alpha"]),transform:function(t){var e,n,r,o,i,u=t.red,a=t.green,s=t.blue,c=t.alpha;return e={red:q.transform(u),green:q.transform(a),blue:q.transform(s),alpha:C(c)},n=e.red,r=e.green,o=e.blue,i=e.alpha,"rgba("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},$=E("hsl"),H={test:function(t){return"string"==typeof t?$(t):I(t)},parse:W(["hue","saturation","lightness","alpha"]),transform:function(t){var e,n,r,o,i,u=t.hue,a=t.saturation,s=t.lightness,c=t.alpha;return e={hue:Math.round(u),saturation:L.transform(C(a)),lightness:L.transform(C(s)),alpha:C(c)},n=e.hue,r=e.saturation,o=e.lightness,i=e.alpha,"hsla("+n+", "+r+", "+o+", "+(void 0===i?1:i)+")"}},K=O({},G,{test:E("#"),parse:function(t){var e="",n="",r="";return 4<t.length?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),J={test:function(t){return"string"==typeof t&&B.test(t)||G.test(t)||H.test(t)||K.test(t)},parse:function(t){return G.test(t)?G.parse(t):H.test(t)?H.parse(t):K.test(t)?K.parse(t):t},transform:function(t){return U(t)?G.transform(t):I(t)?H.transform(t):t}},Q=/(-)?(\d[\d\.]*)/g,tt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,et="${c}",nt=function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,n=t.match(Q),r=t.match(tt);return n&&(e+=n.length),r&&(e+=r.length),0<e},rt=function(t){var e=t,n=[],r=e.match(tt);r&&(e=e.replace(tt,et),n.push.apply(n,r.map(J.parse)));var o=e.match(Q);return o&&n.push.apply(n,o.map(k.parse)),n},ot=function(t){var r=t,o=0,e=t.match(tt),i=e?e.length:0;if(e)for(var n=0;n<i;n++)r=r.replace(e[n],et),o++;var u=r.match(Q),a=u?u.length:0;if(u)for(n=0;n<a;n++)r=r.replace(u[n],"${n}"),o++;return function(t){for(var e=r,n=0;n<o;n++)e=e.replace(n<i?et:"${n}",n<i?J.transform(t[n]):C(t[n]));return e}},it=function(e){return function(t){return 1-e(1-t)}},ut=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},at=function(e){return function(t){return t*t*((e+1)*t-e)}},st=function(t){var e=at(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},ct=function(t){return t},ft=function(e){return function(t){return Math.pow(t,e)}}(2),lt=it(ft),pt=ut(ft),dt=function(t){return 1-Math.sin(Math.acos(t))},ht=it(dt),vt=ut(ht),mt=at(1.525),gt=it(mt),yt=ut(mt),bt=st(1.525),wt="undefined"!=typeof Float32Array,Pt=function(t,e){return 1-3*e+3*t},Mt=function(t,e){return 3*e-6*t},Ot=function(t){return 3*t},xt=function(t,e,n){return 3*Pt(e,n)*t*t+2*Mt(e,n)*t+Ot(e)},Et=function(t,e,n){return((Pt(e,n)*t+Mt(e,n))*t+Ot(e))*t};function Ct(u,e,a,n){var s=wt?new Float32Array(11):new Array(11),r=function(t){for(var e,n,r,o=0,i=1;10!==i&&s[i]<=t;++i)o+=.1;return e=(t-s[--i])/(s[i+1]-s[i]),.001<=(r=xt(n=o+.1*e,u,a))?function(t,e){for(var n=0,r=0;n<8;++n){if(0===(r=xt(e,u,a)))return e;e-=(Et(e,u,a)-t)/r}return e}(t,n):0===r?n:function(t,e,n){for(var r,o,i=0;0<(r=Et(o=e+(n-e)/2,u,a)-t)?n=o:e=o,1e-7<Math.abs(r)&&++i<10;);return o}(t,o,o+.1)};!function(){for(var t=0;t<11;++t)s[t]=Et(.1*t,u,a)}();return function(t){return u===e&&a===n?t:0===t?0:1===t?1:Et(r(t),e,n)}}var kt=function(t){return"number"==typeof t},St=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},At=St(function(t,e,n){return Math.min(Math.max(n,t),e)}),Tt=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Rt=function(t,e,n){return-n*t+n*e+t},Lt=function(){return(Lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},jt=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Yt=[K,G,H],Xt=function(e){return Yt.find(function(t){return t.test(e)})},Dt=function(t,e){var n=Xt(t),r=Xt(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Lt({},o),a=n===H?Rt:jt;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Rt(o.alpha,i.alpha,t),n.transform(u)}},Ft=function(e,n){return function(t){return n(e(t))}},Vt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Ft)},Bt=function(t,r){var n=t.slice(),o=n.length,i=t.map(function(e,t){var n=r[t];return kt(e)?function(t){return Rt(e,n,t)}:J.test(e)?Dt(e,n):Ut(e,n)});return function(t){for(var e=0;e<o;e++)n[e]=i[e](t);return n}},Ut=function(t,e){var n=ot(t);return n(t),ot(e)(t),Vt(Bt(rt(t),rt(e)),n)},It=(St(Rt),function(t){return t}),Wt=function(i){return void 0===i&&(i=It),St(function(t,e,n){var r=e-n,o=-(0-t+1)*(0-i(Math.abs(r)));return r<=0?e+o:e-o})},qt=(Wt(),Wt(Math.sqrt),function(t,e){return kt(t)?t/(1e3/e):0}),Zt=function(t,e){return e?t*(1e3/e):0};St(function(t,e,n){var r=e-t;return((n-t)%r+r)%r+t}),At(0,1);var _t=function(){function t(t){void 0===t&&(t={}),this.props=t}return t.prototype.applyMiddleware=function(t){return this.create(z({},this.props,{middleware:this.props.middleware?[t].concat(this.props.middleware):[t]}))},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1===t.length?t[0]:Vt.apply(void 0,t);return this.applyMiddleware(function(e){return function(t){return e(n(t))}})},t.prototype.while=function(r){return this.applyMiddleware(function(e,n){return function(t){return r(t)?e(t):n()}})},t.prototype.filter=function(n){return this.applyMiddleware(function(e){return function(t){return n(t)&&e(t)}})},t}(),zt=function(){return function(t,e){var n=t.middleware,r=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=e,this.updateObserver=function(t){return e.update(t)},this.onComplete=r,e.update&&n&&n.length&&n.forEach(function(t){return o.updateObserver=t(o.updateObserver,o.complete)})}}(),Nt=function(t,e,n){var r=e.middleware;return new zt({middleware:r,onComplete:n},"function"==typeof t?{update:t}:t)},Gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t){return new e(t)},e.prototype.start=function(t){void 0===t&&(t={});var e=!1,n={stop:function(){}},r=this.props,o=r.init,i=N(r,["init"]),u=o(Nt(t,i,function(){e=!0,n.stop()}));return n=u?z({},n,u):n,t.registerParent&&t.registerParent(n),e&&n.stop(),n},e}(_t),$t=function(t){return new Gt({init:t})},Ht=function(t){var f=t.getCount,l=t.getFirst,p=t.getOutput,d=t.mapApi,h=t.setProp,v=t.startActions;return function(c){return $t(function(t){var e=t.update,r=t.complete,o=t.error,i=f(c),u=p(),a=function(){return e(u)},s=0,n=v(c,function(t,e){var n=!1;return t.start({complete:function(){n||(n=!0,++s===i&&D.update(r))},error:o,update:function(t){h(u,e,t),D.update(a,!1,!0)}})});return Object.keys(l(n)).reduce(function(t,e){return t[e]=d(n,e),t},{})})}},Kt=Ht({getOutput:function(){return{}},getCount:function(t){return Object.keys(t).length},getFirst:function(t){return t[Object.keys(t)[0]]},mapApi:function(o,i){return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Object.keys(o).reduce(function(t,e){var n;return o[e][i]&&(r[0]&&void 0!==r[0][e]?t[e]=o[e][i](r[0][e]):t[e]=(n=o[e])[i].apply(n,r)),t},{})}},setProp:function(t,e,n){return t[e]=n},startActions:function(n,r){return Object.keys(n).reduce(function(t,e){return t[e]=r(n[e],e),t},{})}}),Jt=Ht({getOutput:function(){return[]},getCount:function(t){return t.length},getFirst:function(t){return t[0]},mapApi:function(e,r){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return e.map(function(t,e){if(t[r])return Array.isArray(n[0])?t[r](n[0][e]):t[r].apply(t,n)})}},setProp:function(t,e,n){return t[e]=n},startActions:function(t,n){return t.map(function(t,e){return n(t,e)})}}),Qt=[j,L,R,Y,X],te=function(e){return Qt.find(function(t){return t.test(e)})},ee=function(t,e){return t(e)},ne=function(o,i,u){var t=u[0],e=i[t].map(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),z({},i));return se(t)(o,r)});return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Jt(t)}.apply(void 0,e)},re=function(o,i,u){var a=u[0],t=Object.keys(i[a]).reduce(function(t,e){var n,r=u.reduce((n=e,function(t,e){return t[e]=t[e][n],t}),z({},i));return t[e]=se(i[a][e])(o,r),t},{});return Kt(t)},oe=function(t,e){var n=e.from,r=e.to,o=N(e,["from","to"]),i=te(n)||te(r),u=i.transform,a=i.parse;return t(z({},o,{from:"string"==typeof n?a(n):n,to:"string"==typeof r?a(r):r})).pipe(u)},ie=function(t,e){var n=e.from,r=e.to,o=N(e,["from","to"]);return t(z({},o,{from:0,to:1})).pipe(Dt(n,r),J.transform)},ue=function(t,e){var n=e.from,r=e.to,o=N(e,["from","to"]),i=ot(n);return i(n),ot(r)(n),t(z({},o,{from:0,to:1})).pipe(Bt(rt(n),rt(r)),i)},ae=function(r,t){var n,o,i,e=(n=t,o=Object.keys(n),i=function(t,e){return void 0!==t&&!n[e](t)},{getVectorKeys:function(n){return o.reduce(function(t,e){return i(n[e],e)&&t.push(e),t},[])},testVectorProps:function(e){return e&&o.some(function(t){return i(e[t],t)})}}),u=e.testVectorProps,a=e.getVectorKeys;return function(t){if(!u(t))return r(t);var e=a(t),n=t[e[0]];return se(n)(r,t,e)}},se=function(t){var e=ee;return"number"==typeof t?e=ee:Array.isArray(t)?e=ne:Boolean(te(t))?e=oe:J.test(t)?e=ie:nt(t)?e=ue:"object"==typeof t&&(e=re),e},ce=ae(function(b){return void 0===b&&(b={}),$t(function(t){var o=t.complete,i=t.update,e=b.velocity,n=void 0===e?0:e,r=b.from,u=void 0===r?0:r,a=b.power,s=void 0===a?.8:a,c=b.timeConstant,f=void 0===c?350:c,l=b.restDelta,p=void 0===l?.5:l,d=b.modifyTarget,h=0,v=s*n,m=Math.round(u+v),g=void 0===d?m:d(m),y=D.update(function(t){var e=t.delta;h+=e;var n=-v*Math.exp(-h/f),r=p<n||n<-p;i(r?g+n:g),r||(F.update(y),o())},!0);return{stop:function(){return F.update(y)}}})},{from:k.test,modifyTarget:function(t){return"function"==typeof t},velocity:k.test}),fe=ae(function(t){var e=t.from,n=void 0===e?0:e,r=t.to,o=void 0===r?1:r,i=t.ease,u=void 0===i?ct:i;return $t(function(t){var e=t.update;return{seek:function(t){return e(t)}}}).pipe(u,function(t){return Rt(n,o,t)})},{ease:function(t){return"function"==typeof t},from:k.test,to:k.test}),le=At(0,1),pe=function(X){return void 0===X&&(X={}),$t(function(t){var n,r=t.update,o=t.complete,e=X.duration,i=void 0===e?300:e,u=X.ease,a=void 0===u?lt:u,s=X.flip,c=void 0===s?0:s,f=X.loop,l=void 0===f?0:f,p=X.yoyo,d=void 0===p?0:p,h=X.from,v=void 0===h?0:h,m=X.to,g=void 0===m?1:m,y=X.elapsed,b=void 0===y?0:y,w=X.playDirection,P=void 0===w?1:w,M=X.flipCount,O=void 0===M?0:M,x=X.yoyoCount,E=void 0===x?0:x,C=X.loopCount,k=void 0===C?0:C,S=fe({from:v,to:g,ease:a}).start(r),A=0,T=!1,R=function(){return P*=-1},L=function(){A=le(Tt(0,i,b)),S.seek(A)},j=function(){T=!0,n=D.update(function(t){var e=t.delta;b+=e*P,L(),function(){var t,e=1===P?T&&i<=b:T&&b<=0;if(!e)return!1;if(e&&!l&&!c&&!d)return!0;var n=!1;return l&&k<l?(k++,n=!(b=0)):c&&O<c?(b=i-b,S=fe({from:v=(t=[g,v])[0],to:g=t[1],ease:a}).start(r),O++,n=!0):d&&E<d&&(R(),E++,n=!0),!n}()&&o&&(F.update(n),D.update(o,!1,!0))},!0)},Y=function(){T=!1,n&&F.update(n)};return j(),{isActive:function(){return T},getElapsed:function(){return At(0,i,b)},getProgress:function(){return A},stop:function(){Y()},pause:function(){return Y(),this},resume:function(){return T||j(),this},seek:function(t){return b=Rt(0,i,t),D.update(L,!1,!0),this},reverse:function(){return R(),this}}})},de=At(0,1),he=ae(function(m){return void 0===m&&(m={}),$t(function(t){var r=t.complete,o=t.update,e=m.acceleration,i=void 0===e?0:e,n=m.friction,u=void 0===n?0:n,a=m.velocity,s=void 0===a?0:a,c=m.springStrength,f=m.to,l=m.restSpeed,p=void 0===l?.001:l,d=m.from,h=void 0===d?0:d,v=D.update(function(t){var e=t.delta,n=Math.max(e,16);(i&&(s+=qt(i,n)),u&&(s*=Math.pow(1-u,n/100)),void 0!==c&&void 0!==f)&&(s+=(f-h)*qt(c,n));h+=qt(s,n),o(h),!1!==p&&(!s||Math.abs(s)<=p)&&(F.update(v),r())},!0);return{set:function(t){return h=t,this},setAcceleration:function(t){return i=t,this},setFriction:function(t){return u=t,this},setSpringStrength:function(t){return c=t,this},setSpringTarget:function(t){return f=t,this},setVelocity:function(t){return s=t,this},stop:function(){return F.update(v)}}})},{acceleration:k.test,friction:k.test,velocity:k.test,from:k.test,to:k.test,springStrength:k.test}),ve=ae(function(E){return void 0===E&&(E={}),$t(function(t){var s=t.update,c=t.complete,e=E.velocity,f=void 0===e?0:e,n=E.from,r=void 0===n?0:n,o=E.to,l=void 0===o?0:o,i=E.stiffness,p=void 0===i?100:i,u=E.damping,d=void 0===u?10:u,a=E.mass,h=void 0===a?1:a,v=E.restSpeed,m=void 0===v?.01:v,g=E.restDelta,y=void 0===g?.01:g,b=f?-f/1e3:0,w=0,P=l-r,M=r,O=M,x=D.update(function(t){var e=t.delta;w+=e;var n=d/(2*Math.sqrt(p*h)),r=Math.sqrt(p/h)/1e3;if(O=M,n<1){var o=Math.exp(-n*r*w),i=r*Math.sqrt(1-n*n);M=l-o*((b+n*r*P)/i*Math.sin(i*w)+P*Math.cos(i*w))}else{o=Math.exp(-r*w);M=l-o*(P+(b+r*P)*w)}f=Zt(M-O,e);var u=Math.abs(f)<=m,a=Math.abs(l-M)<=y;u&&a?(s(M=l),F.update(x),c()):s(M)},!0);return{stop:function(){return F.update(x)}}})},{from:k.test,to:k.test,stiffness:k.test,damping:k.test,mass:k.test,velocity:k.test}),me=function(r,o,i){return $t(function(t){var e=t.update,n=o.split(" ").map(function(t){return r.addEventListener(t,e,i),t});return{stop:function(){return n.forEach(function(t){return r.removeEventListener(t,e,i)})}}})},ge=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},ye=function(t,e){return void 0===e&&(e={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),e.clientX=e.x=t.clientX,e.clientY=e.y=t.clientY,e.pageX=t.pageX,e.pageY=t.pageY,e},be=[ge()];if("undefined"!=typeof document){me(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(t){for(var e=t.touches,n=e.length,r=be.length=0;r<n;r++){var o=e[r];be.push(ye(o))}})}var we=ge();if("undefined"!=typeof document){me(document,"mousedown mousemove",!0).start(function(t){ye(t,we)})}var Pe,Me=function(r){return function(e,n,t){return void 0!==t?r(e,n,t):function(t){return r(e,n,t)}}},Oe=Me(function(t,e,n){return Math.min(Math.max(n,t),e)}),xe=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Ee=function(t,e,n){return-n*t+n*e+t},Ce=function(){return(Ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ke=function(t,e,n){var r=t*t,o=e*e;return Math.sqrt(n*(o-r)+r)},Se=[K,G,H],Ae=function(e){return Se.find(function(t){return t.test(e)})},Te=function(t,e){var n=Ae(t),r=Ae(e);n.transform,r.transform;var o=n.parse(t),i=r.parse(e),u=Ce({},o),a=n===H?Ee:ke;return function(t){for(var e in u)"alpha"!==e&&(u[e]=a(o[e],i[e],t));return u.alpha=Ee(o.alpha,i.alpha,t),n.transform(u)}},Re=function(e,n){return function(t){return n(e(t))}},Le=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(Re)},je=function(t,e){var n,r,o,i,u,a=ot(t);return a(t),ot(e)(t),Le((n=rt(t),r=rt(e),o=n.slice(),i=o.length,u=n.map(function(e,t){var n=r[t];return"number"==typeof e?function(t){return Ee(e,n,t)}:J.test(e)?Te(e,n):je(e,n)}),function(t){for(var e=0;e<i;e++)o[e]=u[e](t);return o}),a)},Ye=Me(Ee),Xe=function(o,i){return Array(o.length-1).fill((t=o[0],"number"==typeof t?Ye:J.test(t)?Te:je)).map(function(t,e){var n=t(o[e],o[e+1]);if(i){var r=Array.isArray(i)?i[e]:i;return Le(r,n)}return n});var t},De=function(t,e,n){var r=void 0===n?{}:n,o=r.clamp,i=void 0===o||o,u=r.ease,a=t.length;e.length,!u||!Array.isArray(u)||(u.length,t.length),t[0]>t[a-1]&&(t=t.slice(),e=e.slice(),t.reverse(),e.reverse());var s,c,f,l,p,d,h,v,m,g=Xe(e,u),y=2===a?(d=g,h=(p=t)[0],v=p[1],m=d[0],function(t){return m(xe(h,v,t))}):(c=g,f=(s=t).length,l=f-1,function(t){var e=0,n=!1;if(t<=s[0]?n=!0:t>=s[l]&&(e=l-1,n=!0),!n){for(var r=1;r<f&&!(s[r]>t||r===l);r++);e=r-1}var o=xe(s[e],s[e+1],t);return c[e](o)});return i?Le(Oe(t[0],t[a-1]),y):y},Fe=(Oe(0,1),function(){function n(t,e){var n,r=void 0===e?{}:e,o=r.transformer,i=r.parent,u=this;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.notifySubscriber=function(t){t(u.current)},this.scheduleVelocityCheck=function(){return D.postRender(u.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==u.lastUpdated&&(u.prev=u.current)},this.setChild=function(t){return t.set(u.current)},this.parent=i,this.transformer=o,this.set(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return n.prototype.addChild=function(t){var e=new n(this.current,z({parent:this},t));return this.children||(this.children=new Set),this.children.add(e),e},n.prototype.removeChild=function(t){this.children&&this.children.delete(t)},n.prototype.subscribeTo=function(t,e){var n=this,r=function(){return e(n.current)};return t.add(r),function(){return t.delete(r)}},n.prototype.addUpdateSubscription=function(t){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,t)},n.prototype.addRenderSubscription=function(t){return this.renderSubscribers||(this.renderSubscribers=new Set),this.subscribeTo(this.renderSubscribers,t)},n.prototype.set=function(t,e){void 0===e&&(e=!0),this.prev=this.current,this.current=this.transformer?this.transformer(t):t,this.updateSubscribers&&this.updateSubscribers.forEach(this.notifySubscriber),this.children&&this.children.forEach(this.setChild),e&&this.renderSubscribers&&this.renderSubscribers.forEach(this.notifySubscriber);var n=M(),r=n.delta,o=n.timestamp;this.timeDelta=r,this.lastUpdated=o,D.postRender(this.scheduleVelocityCheck)},n.prototype.get=function(){return this.current},n.prototype.getVelocity=function(){return this.canTrackVelocity?(t=parseFloat(this.prev)-parseFloat(this.current),(e=this.timeDelta)?t*(1e3/e):0):0;var t,e},n.prototype.control=function(t,e,n){var r=this,o=e.delay,i=N(e,["delay"]);this.stop();var u,a=t(z({from:this.get(),velocity:this.getVelocity()},i));return n&&(a=a.pipe(n)),o&&(a=function(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return $t(function(t){var e,n=t.update,r=t.complete,o=0,i=function(){e=u[o].start({complete:function(){++o>=u.length?r():i()},update:n})};return i(),{stop:function(){return e&&e.stop()}}})}((u=o,$t(function(t){var e=t.complete,n=setTimeout(e,u);return{stop:function(){return clearTimeout(n)}}})),a)),new Promise(function(t){r.controller=a.start({update:function(t){return r.set(t)},complete:t})})},n.prototype.stop=function(){this.controller&&this.controller.stop()},n.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},n}()),Ve=function(t,e){return new Fe(t,e)},Be=function(t){var e,n=t instanceof Fe?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))},Ue=function(t){return[t.join(",")]},Ie=_.createContext({dragging:!1}),We=function(){return(We=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},qe=function(t){var s=t.onRead,e=t.onRender,n=t.aliasMap,c=void 0===n?{}:n,r=t.uncachedValues,f=void 0===r?new Set:r,o=t.useCache,l=void 0===o||o;return function(n){var o={},i=[],u=!1,r=function(t,e){var n=c[t]||t,r=o[n];o[n]=e,o[n]!==r&&(-1===i.indexOf(n)&&i.push(n),u||(u=!0,D.render(a)))};function a(t){return void 0===t&&(t=!1),(!0===t||u)&&(e(o,n,i),u=!1,i.length=0),this}return{get:function(t){var e=c[t]||t;return e?l&&!f.has(e)&&void 0!==o[e]?o[e]:s(e,n):o},set:function(e,t){if("string"==typeof e){if(void 0===t)return function(t){return r(e,t)};r(e,t)}else for(var n in e)e.hasOwnProperty(n)&&r(n,e[n]);return this},render:a}}},Ze=/([a-z])([A-Z])/g,_e=function(t){return t.replace(Ze,"$1-$2").toLowerCase()},ze=new Map,Ne=new Map,Ge=["Webkit","Moz","O","ms",""],$e=Ge.length,He="undefined"!=typeof document,Ke=function(t,e){return Ne.set(t,_e(e))},Je=function(t,e){void 0===e&&(e=!1);var n,r=e?Ne:ze;return r.has(t)||(He?function(t){Pe=Pe||document.createElement("div");for(var e=0;e<$e;e++){var n=Ge[e],r=""===n,o=r?t:n+t.charAt(0).toUpperCase()+t.slice(1);(o in Pe.style||r)&&(ze.set(t,o),Ke(t,(r?"":"-")+_e(o)))}}(t):Ke(n=t,n)),r.get(t)||t},Qe=["","X","Y","Z"],tn=["translate","scale","rotate","skew","transformPerspective"].reduce(function(t,n){return Qe.reduce(function(t,e){return t.push(n+e),t},t)},["x","y","z"]),en=tn.reduce(function(t,e){return t[e]=!0,t},{}),nn=function(t){return!0===en[t]},rn=function(t,e){return tn.indexOf(t)-tn.indexOf(e)},on={color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,rotate:R,rotateX:R,rotateY:R,rotateZ:R,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:R,skewX:R,skewY:R,distance:j,translateX:j,translateY:j,translateZ:j,perspective:j,opacity:S,transformOriginX:L,transformOriginY:L,transformOriginZ:j},un=function(t){return on[t]},an="scrollLeft",sn="scrollTop",cn=new Set([an,sn]),fn={x:"translateX",y:"translateY",z:"translateZ",originX:"transformOriginX",originY:"transformOriginY",originZ:"transformOriginZ",scrollX:an,scrollY:sn},ln=function(t,e,n,r,o,i){void 0===e&&(e=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o={}),void 0===i&&(i=[]);var u,a=!0,s=!1;for(var c in t){var f=fn[c]?fn[c]:c,l=t[c],p=un(f),d="number"==typeof l&&p?p.transform(l):l;nn(f)?(r[f]=d,i.push(f),a&&(p.default&&l!==p.default||!p.default&&0!==l)&&(a=!1)):"transformOriginX"===(u=f)||"transformOriginY"===u?(o[f]=d,s=!0):cn.has(f)||(n[f]=d)}if(a)n.transform="none";else{var h="",v=!1;i.sort(rn);for(var m=i.length,g=0;g<m;g++){h+=(f=i[g])+"("+r[f]+") ",v="z"===f||v}!v&&e&&(h+="translateZ(0)"),n.transform=h}return s&&(n.transformOrigin=(o.transformOriginX||0)+" "+(o.transformOriginY||0)+" "+(o.transformOriginZ||0)),n},pn=qe({onRead:function(t,e){var n=e.element,r=e.preparseOutput,o=un(t);if(nn(t))return o&&o.default||0;if(cn.has(t))return n[t];var i=window.getComputedStyle(n,null).getPropertyValue(Je(t,!0))||0;return r&&o&&o.parse?o.parse(i):i},onRender:function(t,e,n){var r=e.element,o=e.buildStyles;r.style.cssText+=o(t),-1!==n.indexOf(an)&&(r.scrollLeft=t.scrollLeft),-1!==n.indexOf(sn)&&(r.scrollTop=t.scrollTop)},aliasMap:fn,uncachedValues:cn}),dn=function(t,e){return pn(We({element:t,buildStyles:function(u){void 0===u&&(u=!0);var a={},s={},c={},f={},l=[];return function(t){var e,n,r="";for(var o in l.length=0,a=ln(t,u,a,c,f,l)){var i=a[o];i!==s[o]&&(r+=(n=i,";"+Je(o,!0)+":"+n))}return a=(e=[s,a])[0],s=e[1],r}}(),preparseOutput:!0},e))},hn=function(t,e){return t/100*e+"px"},vn={fill:J,stroke:J,scale:A,scaleX:A,scaleY:A,opacity:S,fillOpacity:S,strokeOpacity:S},mn=qe({onRead:function(t,e){var n=e.element;if(nn(t)){var r=vn[t];return r?r.default:0}return n.getAttribute(t)},onRender:function(t,e,n){var r=e.dimensions;!function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setAttribute(n,e[n])}(e.element,function(t,e,n,r){var o=!1,i=!1,u={},a=n?{pathLength:"0",pathSpacing:""+r}:void 0,s=void 0!==t.scale?t.scale||1e-7:t.scaleX||1,c=void 0!==t.scaleY?t.scaleY||1e-7:s||1,f=e.width*((t.originX||50)/100)+e.x,l=e.height*((t.originY||50)/100)+e.y,p=1*s*-f,d=1*c*-l,h=f/s,v=l/c,m={translate:"translate("+t.translateX+", "+t.translateY+") ",scale:"translate("+p+", "+d+") scale("+s+", "+c+") translate("+h+", "+v+") ",rotate:"rotate("+t.rotate+", "+f+", "+l+") ",skewX:"skewX("+t.skewX+") ",skewY:"skewY("+t.skewY+") "};for(var g in t)if(t.hasOwnProperty(g)){var y=t[g];nn(g)?o=!0:!n||"pathLength"!==g&&"pathSpacing"!==g||"number"!=typeof y?n&&"pathOffset"===g?u["stroke-dashoffset"]=hn(-y,r):u[_e(g)]=y:(i=!0,a[g]=hn(y,r))}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,r,e.isPath,e.pathLength))},aliasMap:{x:"translateX",y:"translateY",background:"fill"}}),gn=qe({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,n=void 0===e?0:e,r=t.scrollLeft,o=void 0===r?0:r;return window.scrollTo(o,n)}}),yn=new WeakMap,bn=function(t,e){var n,r,o,i;return t instanceof HTMLElement?n=dn(t,e):t instanceof SVGElement?(o=(r=t).getBBox(),i={element:r,dimensions:{x:o.x,y:o.y,width:o.width,height:o.height},isPath:!1},"path"===r.tagName&&(i.isPath=!0,i.pathLength=r.getTotalLength()),n=mn(i)):t===window&&(n=gn(t)),yn.set(t,n),n};function wn(t,e){var n,r,o="string"==typeof t?document.querySelector(t):t;return n=o,r=e,yn.has(n)?yn.get(n):bn(n,r)}var Pn,Mn,On=function(){function t(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return t.prototype.has=function(t){return this.values.has(t)},t.prototype.set=function(t,e){this.values.set(t,e),this.hasMounted&&this.bindValueToStyler(t,e)},t.prototype.get=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new Fe(e),this.set(t,n)),n},t.prototype.forEach=function(t){return this.values.forEach(t)},t.prototype.bindValueToStyler=function(e,t){var n=this,r=t.addRenderSubscription(function(t){return n.styler.set(e,t)});this.unsubscribers.set(e,r)},t.prototype.mount=function(t){var n=this;this.hasMounted=!0,this.styler=wn(t),this.values.forEach(function(t,e){return n.bindValueToStyler(e,t)})},t.prototype.unmount=function(){var r=this;this.values.forEach(function(t,e){var n=r.unsubscribers.get(e);n&&n()})},t}(),xn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},En=function(t){return{type:"spring",stiffness:700,damping:0===t?100:35}},Cn=function(){return{ease:"linear",duration:250}},kn={x:xn,y:xn,z:xn,rotate:xn,rotateX:xn,rotateY:xn,rotateZ:xn,scaleX:En,scaleY:En,scale:En,opacity:Cn,backgroundColor:Cn,color:Cn,default:En},Sn={tween:pe,spring:ve,keyframes:function(t){var e,n,r,o,i=t.easings,u=t.ease,a=void 0===u?ct:u,s=t.times,c=t.values,f=N(t,["easings","ease","times","values"]);i=Array.isArray(i)?i:(n=i,(e=c).map(function(){return n||lt}).splice(0,e.length-1)),s=s||(o=(r=c).length,r.map(function(t,e){return 0!==e?e/(o-1):0}));var l=i.map(function(t,e){return fe({from:c[e],to:c[e+1],ease:t})});return pe(z({},f,{ease:a})).applyMiddleware(function(t){return e=l,n=t,o=(r=s).length,u=(i=o-1)-1,a=e.map(function(t){return t.start(n)}),function(t){t<=r[0]&&a[0].seek(0),t>=r[i]&&a[u].seek(1);for(var e=1;e<o&&!(r[e]>t||e===i);e++);var n=Tt(r[e-1],r[e],t);a[e-1].seek(de(n))};var r,e,n,o,i,u,a})},decay:ce,physics:he,just:function(t){var r=t.to;return $t(function(t){var e=t.update,n=t.complete;e(r),n()})}},An={linear:ct,easeIn:ft,easeOut:lt,easeInOut:pt,circIn:dt,circOut:ht,circInOut:vt,backIn:mt,backOut:gt,backInOut:yt,anticipate:bt},Tn={tween:function(t){var e=t.ease;if(Array.isArray(e)){e.length;var n=e[0],r=e[1],o=e[2],i=e[3];t.ease=Ct(n,r,o,i)}else"string"==typeof e&&(t.ease=An[e]);return t},keyframes:function(t){t.from,t.to;return N(t,["from","to"])}},Rn=function(t,e,n){if(void 0===n)return z({},(kn[t]||kn.default)(r=e),{to:r});var r,o=n.delay,i=void 0===o?0:o,u=n[t]||n.default||n;return!1===u.type?{type:"just",delay:i,to:e}:z({delay:i,to:e},u)},Ln=function(t,e,n){var r,o,i=Rn(t,e,n),u=i.type,a=void 0===u?"tween":u,s=N(i,["type"]);return[Sn[a],(o=s,Tn[r=a]?Tn[r](o):o)]},jn=[k,R,L,j,X,Y,{test:function(t){return"auto"===t},parse:function(t){return t}}],Yn=function(t){return jn.find((e=t,function(t){return t.test(e)}));var e},Xn=new Set(["width","height","top","left","right","bottom","x","y"]),Dn=function(t){return Xn.has(t)},Fn=function(t,e){t.set(e,!1),t.set(e)};(Mn=Pn||(Pn={})).width="width",Mn.height="height",Mn.left="left",Mn.right="right",Mn.top="top",Mn.bottom="bottom";var Vn,Bn=function(t,e){return parseFloat(t.split(", ")[e])},Un=function(i,u){return function(t,e){var n=e.transform;if("none"===n||!n)return 0;var r=n.match(/^matrix3d\((.+)\)$/);if(r)return Bn(r[1],u);var o=n.match(/^matrix\((.+)\)$/);return Bn(o[1],i)}},In={width:function(t){return t.width},height:function(t){return t.height},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.height,r=e.top;return parseFloat(r)+n},right:function(t,e){var n=t.width,r=e.left;return parseFloat(r)+n},x:Un(4,13),y:Un(5,14)},Wn=function(i,t,u,e){var n=t.applyOnEnd,a=void 0===n?{}:n;a=z({},a);var r=Object.keys(i).filter(Dn).reduce(function(t,e){var n=u.get(e),r=n.get(),o=i[e];return Yn(r)!==Yn(o)&&(t.push(e),a[e]=a[e]||i[e],Fn(n,o)),t},[]);return r.length?[function(n,r,t,e){var o=t.current,i=wn(o),u=o.getBoundingClientRect(),a=getComputedStyle(o),s={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};i.render();var c=o.getBoundingClientRect();return e.forEach(function(t){var e=r.get(t);Fn(e,In[t](u,s)),n[t]=In[t](c,a)}),i.render(),n}(i,u,e,r),z({},t,{applyOnEnd:a})]:[i,t]},qn=function(t,e,n,r){return void 0===e&&(e={}),o=t,Object.keys(o).some(Dn)?Wn(t,e,n,r):[t,e];var o},Zn=function(n,r,o){return void 0===o&&(o=new Set),Object.keys(n).forEach(function(t){if(!o.has(t))if(o.add(t),r.has(t)){var e=r.get(t);e&&e.set(n[t])}else r.set(t,Ve(n[t]))})},_n=function(t,e){return void 0===e&&(e={}),t?("function"==typeof t&&(t=t(e)),Array.isArray(t)?t:[t]):[]},zn=function(){function t(t,e){this.poses={},this.isAnimating=new Set,this.values=t,this.ref=e}return t.prototype.setProps=function(t){this.props=t},t.prototype.setPoses=function(t){this.poses=t},t.prototype.start=function(t,e){return this.resetIsAnimating(),n=t,Array.isArray(n)?this.animateMultiplePoses(t):"string"==typeof t?this.animatePose(t):this.animate([t,e]);var n},t.prototype.set=function(t){var i=this,u=new Set;t.slice().reverse().forEach(function(t){var e=_n(i.poses[t],i.props),n=e[0],r=e[1];if(r){var o=r.applyOnEnd;o&&Zn(o,i.values,u)}n&&Zn(n,i.values,u)})},t.prototype.animate=function(t,s){var e,c=this;void 0===s&&(s=0);var n=_n(t),f=n[0],r=n[1],l=void 0===r?{}:r;if(!f)return Promise.resolve();!function(t,n,e){var r=Object.keys(t).filter(function(t){return!n.has(t)});if(r.length){var o=wn(e.current);r.forEach(function(t){var e=o.get(t);n.set(t,Ve(e))})}}(f,this.values,this.ref),e=qn(f,l,this.values,this.ref),f=e[0],l=e[1];var o=Object.keys(f).reduce(function(t,e){if(c.isAnimating.has(e))return t;var n=c.values.get(e);if(!n)return t;var r,o=f[e];if("number"==typeof(r=o)||nt(r)){var i=Ln(e,o,z({delay:s},l)),u=i[0],a=i[1];t.push(n.control(u,a))}else n.set(o);return c.isAnimating.add(e),t},[]);return Promise.all(o).then(function(){if(l&&l.applyOnEnd){var t=l.applyOnEnd;Zn(t,c.values)}})},t.prototype.animateMultiplePoses=function(t){var e=this,n=t.slice().reverse().map(function(t){return e.animatePose(t)});return Promise.all(n)},t.prototype.animatePose=function(t,e){var n=this;void 0===e&&(e=0);var r=!1,o=!1,i=0,u=0,a=1,s=this.poses[t],c=s?function(){return n.animate(s,e)}:function(){return Promise.resolve()},f=this.children?function(){return n.animateChildren(t,i,u,a)}:function(){return Promise.resolve()};if(s&&this.children){var l=_n(s)[1];l&&(r=l.beforeChildren||r,o=l.afterChildren||o,i=l.delayChildren||i,u=l.staggerChildren||u,a=l.staggerDirection||a)}if(r||o){var p=r?[c,f]:[f,c],d=p[1];return(0,p[0])().then(d)}return Promise.all([c(),f()])},t.prototype.animateChildren=function(r,o,e,t){if(void 0===o&&(o=0),void 0===e&&(e=0),void 0===t&&(t=1),!this.children)return Promise.resolve();var i=[],n=(this.children.size-1)*e,u=1===t?function(t){return t*e}:function(t){return n-t*e};return Array.from(this.children).forEach(function(t,e){var n=t.animatePose(r,o+u(e));i.push(n)}),Promise.all(i)},t.prototype.resetIsAnimating=function(){this.isAnimating.clear(),this.children&&this.children.forEach(function(t){return t.resetIsAnimating()})},t.prototype.stop=function(){this.values.forEach(function(t){return t.stop()})},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t)},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}(),Nn=(Vn=function(t){return t.get()},function(t){var n={};return t.forEach(function(t,e){return n[e]=Vn(t)}),n}),Gn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.subscribers=new Set,this.poses={}}return t.prototype.setPoses=function(e){this.poses=e,this.subscribers.forEach(function(t){return t.setPoses(e)})},t.prototype.subscribe=function(t){var e=this;return this.subscribers.add(t),this.poses&&t.setPoses(this.poses),function(){return e.subscribers.delete(t)}},t.prototype.start=function(n,r){if(this.hasMounted){var o=[];return this.subscribers.forEach(function(t){var e=t.start(n,r);o.push(e)}),Promise.all(o)}return this.pendingAnimations.push([n,r]),Promise.resolve()},t.prototype.stop=function(){this.subscribers.forEach(function(t){return t.stop()})},t.prototype.mount=function(){var r=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(t){var e=t[0],n=t[1];return r.start(e,n)})},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}();function $n(t){return"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var Hn,Kn=function(t,e,n,r){return[function(){t&&t.addEventListener(e,n,r)},function(){t&&t.removeEventListener(e,n,r)}]},Jn=function(o,i,u,a){var t=void 0;return i&&!$n(i)||!u||(t=Kn(i,o,u,a)),_.useEffect(function(){var t=i;if(u&&i&&!$n(i)&&t.current){var e=Kn(t.current,o,u,a),n=e[0],r=e[1];return n(),r}},[o,i,u,a]),t},Qn=function(t,e){if(!e)return{x:t.pageX,y:t.pageY};if(window.webkitConvertPointFromPageToNode){var n=new WebKitPoint(t.pageX,t.pageY);return{x:(n=window.webkitConvertPointFromPageToNode(e,n)).x,y:n.y}}var r=e.getBoundingClientRect(),o=1;e.style.width&&""!==e.style.width&&(o=parseFloat(e.style.width)/r.width);var i=1;e.style.height&&""!==e.style.height&&(i=parseFloat(e.style.height)/r.height);var u=i;return{x:o*(t.pageX-r.left-e.clientLeft+e.scrollLeft),y:u*(t.pageY-r.top-e.clientTop+e.scrollTop)}},tr=function(o){if(o){return function(t,e){var n,r;e||(r=(n=t).target instanceof HTMLElement?n.target:null,e={point:Qn(n,r),devicePoint:Qn(n,document.body)}),o(t,e)}}},er=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(!r.every(function(t){return void 0===t})){return[function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[0]()}},function(){for(var t=0,e=r;t<e.length;t++){var n=e[t];n&&n[1]()}}]}},nr=function(t,e,n){var r=t.onPointerDown,o=t.onPointerMove,i=t.onPointerUp,u=t.onPointerCancel,a=t.onPointerOver,s=t.onPointerOut,c=t.onPointerEnter,f=t.onPointerLeave,l={},p={},d={};null===window.onpointerdown&&null===window.onpointermove&&null===window.onpointerup?d=t:null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend?p={onTouchStart:r,onTouchMove:o,onTouchEnd:i,onTouchCancel:u}:null===window.onmousedown&&null===window.onmousemove&&null===window.onmouseup&&(l={onMouseDown:r,onMouseMove:o,onMouseUp:i,onMouseOver:a,onMouseOut:s,onMouseEnter:c,onMouseLeave:f});var h,v,m,g,y,b,w,P,M,O,x,E,C,k,S,A,T,R,L,j,Y,X,D,F,V,B,U,I,W,q,Z,_,z,N,G,$,H,K,J,Q,tt,et,nt,rt,ot,it,ut,at=(v=e,m=n,g=(h=d).onPointerDown,y=h.onPointerMove,b=h.onPointerUp,w=h.onPointerCancel,P=h.onPointerOver,M=h.onPointerOut,O=h.onPointerEnter,x=h.onPointerLeave,E=Jn("pointerdown",v,tr(g),m),C=Jn("pointermove",v,tr(y),m),k=Jn("pointerup",v,tr(b),m),S=Jn("pointercancel",v,tr(w),m),A=Jn("pointerover",v,tr(P),m),T=Jn("pointerout",v,tr(M),m),R=Jn("pointerenter",v,tr(O),m),L=Jn("pointerleave",v,tr(x),m),er(E,C,k,S,A,T,R,L)),st=(Y=e,X=n,D=(j=p).onTouchStart,F=j.onTouchMove,V=j.onTouchEnd,B=j.onTouchCancel,U=Jn("touchstart",Y,tr(D),X),I=Jn("touchmove",Y,tr(F),X),W=Jn("touchend",Y,tr(V),X),q=Jn("touchcancel",Y,tr(B),X),er(U,I,W,q)),ct=(_=e,z=n,N=(Z=l).onMouseDown,G=Z.onMouseMove,$=Z.onMouseUp,H=Z.onMouseOver,K=Z.onMouseOut,J=Z.onMouseEnter,Q=Z.onMouseLeave,tt=Jn("mousedown",_,tr(N),z),et=Jn("mousemove",_,tr(G),z),nt=Jn("mouseup",_,tr($),z),rt=Jn("mouseover",_,tr(H),z),ot=Jn("mouseout",_,tr(K),z),it=Jn("mouseenter",_,tr(J),z),ut=Jn("mouseleave",_,tr(Q),z),er(tt,et,nt,rt,ot,it,ut));return er(at,st,ct)},rr=function(t,e,n){var r,o,i=_.useRef(null);return o=e?(r=e,t):(r=i,{}),nr(o,r,n),e?void 0:t};(Hn||(Hn={})).subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}};var or=function(t){var e=t.x,n=t.y;return{x:e.getVelocity(),y:n.getVelocity()}};function ir(t,e){var u=t.onPan,a=t.onPanStart,s=t.onPanEnd,c=null,f=_.useRef(null),n=_.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Hn.subtract(r,c.lastDevicePoint),i=Hn.subtract(r,c.startDevicePoint);f.current.x.set(n.x),f.current.y.set(n.y),(0<Math.abs(o.x)||0<Math.abs(o.y))&&(c.startEvent?u&&u(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:or(f.current)}):(a&&a(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:or(f.current)}),c.startEvent=t)),c.lastDevicePoint=r}else console.error("Pointer move without started session")}},[u,a]),r=_.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;if(c&&null!==f.current){var o=Hn.subtract(r,c.lastDevicePoint),i=Hn.subtract(r,c.startDevicePoint);h(),l(),s&&s(t,{point:n,devicePoint:r,delta:o,offset:i,velocity:or(f.current)}),c=null}else console.error("Pointer end without started session")}},[s,n]),o=nr({onPointerUp:r},window),i=o[0],l=o[1],p=nr({onPointerMove:n},window,{capture:!0}),d=p[0],h=p[1],v=_.useMemo(function(){return function(t,e){var n=e.devicePoint,r=e.point;f.current={x:Ve(r.x),y:Ve(r.y)},c={target:t.target,lastDevicePoint:n,startDevicePoint:n},d(),i()}},[r,n]);_.useEffect(function(){return function(){h(),l()}},[]);var m={onPointerDown:v};return u||a||s||(m={}),rr(m,e)}function ur(t,o){var i=t.onTap,u=null,e=_.useMemo(function(){return function(t,e){var n=e.point,r=e.devicePoint;u&&o&&t.target===o.current&&(i&&i({point:n,devicePoint:r},t),u=null)}},[i]),n=nr({onPointerUp:e},window),r=n[0],a=n[1];return _.useEffect(function(){return function(){a()}},[o&&o.current,e]),rr({onPointerDown:function(t){r(),o&&t.target===o.current&&(u={target:t.target})}},o)}var ar=function(t,e){ir(t,e),ur(t,e)};function sr(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var cr=function(t){var e={dragEnabled:!1,dragLocksDirection:!1,dragPropagation:!1};return Object.assign(e,t),void 0===t.dragEnabled&&(t.dragLocksDirection||t.dragPropagation)&&(e.dragEnabled=!0),e};function fr(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}function lr(t,e,n){var r,o,i,u=(r=t,"function"==typeof(o=cr)?i=o(r):(i=o,Object.assign(i,r)),i),a=u.dragEnabled,s=u.dragPropagation,c=u.dragLocksDirection,f={},l=null;fr("x",a,l)&&(f.x=n.get("x",0)),fr("y",a,l)&&(f.y=n.get("y",0));var p=_.useContext(Ie),d=!1,h=_.useMemo(function(){return function(){(s||(d=function(t){var e=!1;if("y"===t)e=dr();else if("x"===t)e=pr();else{var n=pr(),r=dr();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}(a)))&&(l=null,p.dragging=!0)}},[a,s,p]),v=_.useMemo(function(){return function(t,e){var n=e.delta,r=e.offset;if(s||d)if(c&&null===l)l=function(t){var e=null;10<Math.abs(t.y)?e="y":10<Math.abs(t.x)&&(e="x");return e}(r);else{var o=f.x,i=f.y;fr("x",a,l)&&o&&o.set(o.get()+n.x),fr("y",a,l)&&i&&i.set(i.get()+n.y)}}},[d,a,f]),m=_.useMemo(function(){return function(){!s&&d&&d(),p.dragging=!1}},[d,p,a]),g={};a&&(g={onPanStart:h,onPan:v,onPanEnd:m}),ir(g,e)}var pr=sr("dragHorizontal"),dr=sr("dragVertical");var hr=["dragEnabled","onPan","onPanStart","onPanEnd","onTap"],vr=function(t){return t instanceof Gn},mr=function(e){return function(t){return e(t),null}},gr=mr(function(t){return e=t.animate,n=t.controls,r=_.useMemo(function(){return e.subscribe(n)},[e]),void _.useEffect(function(){return function(){return r&&r()}},[r]);var e,n,r}),yr=mr(function(t){var e,n,r,o,i,u,a,s,c,f=t.animate,l=t.inherit,p=t.controls,d=t.onPoseComplete,h=t.pose,v=t.initialPose;return e=f,n=l,r=p,o=d,i=h,u=v,a=_.useContext(Ie).pose,s=Be(n?a:i),c=_.useRef(!1),r.setPoses(e),_.useMemo(function(){var t=u?Be(u):s;r.set(t)},[]),void _.useEffect(function(){n||((c.current||u)&&r.start(s).then(function(){o&&o()}),c.current=!0)},Ue(s))}),br=mr(function(t){var e=t.innerRef,n=N(t,["innerRef"]);return ar(n,e)}),wr=mr(function(t){var e=t.innerRef,n=t.values;return lr(N(t,["innerRef","values"]),e,n)}),Pr=function(t){var e,n,r=t.base,o=t.remainingProps,i=t.innerRef,u=t.style,a=t.values;return _.createElement(r,z({},o,{ref:i,style:(e=a,n=u,z({},n,ln(Nn(e))))}))},Mr=function(Z){return _.memo(_.forwardRef(function(t,e){var n,r,o,i,u,a,s,c,f,l,p,d,h,v,m,g,y,b,w,P=t,M=P.animate,O=P.pose,x=void 0===O?"default":O,E=P.style,C=P.onPoseComplete,k=P.inherit,S=void 0!==k&&k,A=P.initialPose,T=P.dragEnabled,R=P.dragLocksDirection,L=P.dragPropagation,j=N(P,["animate","pose","style","onPoseComplete","inherit","initialPose","dragEnabled","dragLocksDirection","dragPropagation"]),Y=(r=(n=e)&&"function"!=typeof n?n:_.useRef(null),_.useEffect(function(){if(n&&"function"==typeof n)return n(r.current),function(){return n(null)}}),r),X=(o=Y,i=_.useMemo(function(){return new On},[]),_.useEffect(function(){return o.current,Element,i.mount(o.current),function(){return i.unmount()}},[]),i),D=function(t,e){void 0===e&&(e={});var n={};for(var r in e){var o=e[r];o instanceof Fe?t.set(r,o):n[r]=o}return n}(X,E),F=(u=X,a=S,s=j,c=Y,f=_.useContext(Ie).controls,(l=_.useMemo(function(){return new zn(u,c)},[])).resetChildren(),a&&f&&f.addChild(l),_.useEffect(function(){return function(){return f&&f.removeChild(l)}},[]),l.setProps(s),l),V=(p=F,d=S,h=A||x,v=_.useContext(Ie),m=v.pose,g=v.dragging,(y=_.useMemo(function(){return{controls:p,dragging:g}},Ue(Be(h)))).pose=d?m:h,y),B=vr(M)&&_.createElement(gr,{animate:M,controls:F}),U=void 0!==(b=M)&&!vr(b)&&_.createElement(yr,{animate:M,inherit:S,controls:F,onPoseComplete:C,pose:x,initialPose:A}),I=(w=t,hr.some(function(t){return w.hasOwnProperty(t)})&&_.createElement(br,z({},t,{innerRef:Y}))),W=!!t.dragEnabled&&_.createElement(wr,{dragEnabled:T,dragLocksDirection:R,dragPropagation:L,innerRef:Y,values:X}),q=_.createElement(Pr,{base:Z,remainingProps:j,innerRef:Y,style:D,values:X});return _.createElement(Ie.Provider,{value:V},B,U,I,W,q)}))},Or=r.reduce(function(t,e){return t[e]=Mr(e),t},{custom:Mr}),xr=Ve(0),Er=Ve(0),Cr=Ve(0),kr=Ve(0),Sr=0,Ar=0,Tr=0,Rr=0,Lr=!1,jr={scrollX:xr,scrollY:Er,scrollXProgress:Cr,scrollYProgress:kr};t.motion=Or,t.useMotionValue=function(t){return _.useMemo(function(){return Ve(t)},[])},t.useTransformedValue=function(e,n,r){var o=_.useRef(null);return _.useMemo(function(){o.current&&o.current.destroy();var t=De(n,r);return o.current=e.addChild({transformer:t}),o.current},[e,n.join(","),r.join(",")])},t.useViewportScrollValues=function(){return Lr||function(){if(Lr=!0,"undefined"!=typeof window){var t=function(){var t=window.pageXOffset,e=window.pageYOffset;xr.set(t),Er.set(e),Cr.set(Sr-t-Tr),kr.set(Ar-e-Rr)},e=function(){Sr=document.body.clientWidth,Ar=document.body.clientHeight,Tr=window.innerWidth,Rr=window.innerHeight};e(),t(),window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0})}}(),jr},t.useAnimation=function(t){var e=_.useMemo(function(){return new Gn},[]);return t&&e.setPoses(t),_.useEffect(function(){return e.mount(),function(){return e.unmount()}},[]),e},t.useTapGesture=ur,t.usePanGesture=ir,t.useGestures=ar,Object.defineProperty(t,"__esModule",{value:!0})});

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

import { RefObject } from "react";
import { MotionValuesMap } from "./use-motion-values";

@@ -6,6 +7,7 @@ import { PoseResolver, PoseTransition, Poses, PoseDefinition } from "../../types";

private values;
private ref;
private poses;
private children?;
private isAnimating;
constructor(values: MotionValuesMap);
constructor(values: MotionValuesMap, ref: RefObject<Element>);
setProps(props: P): void;

@@ -25,2 +27,2 @@ setPoses(poses: Poses): void;

}
export declare const useAnimationControls: <P>(values: MotionValuesMap, inherit: boolean, props: P) => AnimationControls<P>;
export declare const useAnimationControls: <P>(values: MotionValuesMap, inherit: boolean, props: P, ref: RefObject<Element>) => AnimationControls<P>;

@@ -20,3 +20,2 @@ import { FrameData } from "framesync";

private renderSubscribers?;
private cancelSubscriber;
private transformer?;

@@ -28,2 +27,3 @@ private controller?;

removeChild(child: MotionValue): void;
subscribeTo(subscriptions: Set<Subscriber<V>>, subscription: Subscriber<V>): () => boolean;
addUpdateSubscription(subscription: Subscriber<V>): () => boolean;

@@ -30,0 +30,0 @@ addRenderSubscription(subscription: Subscriber<V>): () => boolean;

{
"name": "framer-motion",
"version": "0.0.11",
"version": "0.0.12",
"main": "dist/framer-motion.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/framer-motion.es.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc