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O,EAAYF,EAAQ,EAC1B,MAAgB,SAAT5O,EAAkB8O,EAAYA,EAAY,GAjBPC,CAAa/O,EAAM4O,GACvDI,EAAW5Q,KAAKC,IAAIwQ,EAAY1Q,GACtC,IAAIyH,EAAQlB,EAAWsK,EACvB,GAAIpL,EAAQ,CACR,MAAMqL,EAAWL,EAAQzQ,EAEzByH,GADuB,OAAkBhC,EACjCsL,CAAetJ,EAAQqJ,GAAYA,EAE/C,OAAON,EAAQ/I,GAYvB,SAASuJ,EAAcC,EAAQjR,EAAGyQ,GAC9B,MAAyB,mBAAXQ,EACRA,EAAOjR,EAAGyQ,GACVQ,I,yCC5BV,IAAIC,EAAU,aACVC,EAAY","sources":["webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/easing/cubic-bezier.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/clamp.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/easing/utils/get-function.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/easing/steps.es.js","webpack:///../.yarn/cache/tslib-npm-2.3.1-0e21e18015-de17a98d46.zip/node_modules/tslib/tslib.es6.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/progress.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/mix.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/utils/offset.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/data.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/array.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/transforms.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/css-var.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/time.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/easing.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/feature-detection.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/defaults.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/utils/get-easing.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/wrap.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/NumberAnimation.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/js/utils/interpolate.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/keyframes.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/get-style-name.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/style.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/stop-animation.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/animate-style.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/controls.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/options.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/animate/utils/resolve-elements.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/timeline/utils/calc-time.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/timeline/utils/edit.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/timeline/utils/sort.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/timeline/index.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/is-number.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/noop.es.js","webpack:///../.yarn/cache/@motionone-dom-npm-10.5.0-a09822ed56-086bddbf36.zip/node_modules/@motionone/dom/dist/utils/stagger.es.js","webpack:///../.yarn/cache/hey-listen-npm-1.0.8-adb7dae9da-6bad60b367.zip/node_modules/hey-listen/dist/hey-listen.es.js"],"sourcesContent":["import { noopReturn } from '../../utils/noop.es.js';\n\n/*\n Bezier function generator\n\n This has been modified from Gaƫtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticiably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) * t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noopReturn;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n","const clamp = (min, max, v) => Math.min(Math.max(v, min), max);\n\nexport { clamp };\n","import { cubicBezier } from '../cubic-bezier.es.js';\nimport { steps } from '../steps.es.js';\nimport { noopReturn } from '../../../utils/noop.es.js';\n\nconst namedEasings = {\n ease: cubicBezier(0.25, 0.1, 0.25, 1.0),\n \"ease-in\": cubicBezier(0.42, 0.0, 1.0, 1.0),\n \"ease-in-out\": cubicBezier(0.42, 0.0, 0.58, 1.0),\n \"ease-out\": cubicBezier(0.0, 0.0, 0.58, 1.0),\n};\nconst functionArgsRegex = /\\((.*?)\\)/;\nfunction getEasingFunction(definition) {\n // If already an easing function, return\n if (typeof definition === \"function\")\n return definition;\n // If an easing curve definition, return bezier function\n if (Array.isArray(definition))\n return cubicBezier(...definition);\n // If we have a predefined easing function, return\n if (namedEasings[definition])\n return namedEasings[definition];\n // If this is a steps function, attempt to create easing curve\n if (definition.startsWith(\"steps\")) {\n const args = functionArgsRegex.exec(definition);\n if (args) {\n const argsArray = args[1].split(\",\");\n return steps(parseFloat(argsArray[0]), argsArray[1].trim());\n }\n }\n return noopReturn;\n}\n\nexport { getEasingFunction };\n","import { clamp } from '../../utils/clamp.es.js';\n\nconst steps = (steps, direction = \"end\") => (progress) => {\n progress =\n direction === \"end\" ? Math.min(progress, 0.999) : Math.max(progress, 0.001);\n const expanded = progress * steps;\n const rounded = direction === \"end\" ? Math.floor(expanded) : Math.ceil(expanded);\n return clamp(0, 1, rounded / steps);\n};\n\nexport { steps };\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/*\n Progress within given range\n\n Given a lower limit and an upper limit, we return the progress\n (expressed as a number 0-1) represented by the given value.\n\n @param [number]: Lower limit\n @param [number]: Upper limit\n @param [number]: Value to find progress within given range\n @return [number]: Progress of value within range as expressed 0-1\n*/\nconst progress = (from, to, value) => {\n return to - from === 0 ? 1 : (value - from) / (to - from);\n};\n\nexport { progress };\n","/*\n Value in range from progress\n\n Given a lower limit and an upper limit, we return the value within\n that range as expressed by progress (usually a number from 0 to 1)\n\n So progress = 0.5 would change\n\n from -------- to\n\n to\n\n from ---- to\n\n E.g. from = 10, to = 20, progress = 0.5 => 15\n\n @param [number]: Lower limit of range\n @param [number]: Upper limit of range\n @param [number]: The progress between lower and upper limits expressed 0-1\n @return [number]: Value as calculated from progress within range (not limited within range)\n*/\nconst mix = (from, to, progress) => -progress * from + progress * to + from;\n\nexport { mix };\n","import { mix } from '../../utils/mix.es.js';\nimport { progress } from '../../utils/progress.es.js';\n\nfunction fillOffset(offset, remaining) {\n const min = offset[offset.length - 1];\n for (let i = 1; i <= remaining; i++) {\n const offsetProgress = progress(0, remaining, i);\n offset.push(mix(min, 1, offsetProgress));\n }\n}\nfunction defaultOffset(length) {\n const offset = [0];\n fillOffset(offset, length - 1);\n return offset;\n}\n\nexport { defaultOffset, fillOffset };\n","const data = new WeakMap();\nfunction getAnimationData(element) {\n if (!data.has(element)) {\n data.set(element, {\n transforms: [],\n animations: {},\n generators: {},\n prevGeneratorState: {},\n });\n }\n return data.get(element);\n}\n\nexport { getAnimationData };\n","function addUniqueItem(array, item) {\n array.indexOf(item) === -1 && array.push(item);\n}\nfunction removeItem(arr, item) {\n const index = arr.indexOf(item);\n index > -1 && arr.splice(index, 1);\n}\n\nexport { addUniqueItem, removeItem };\n","import { addUniqueItem } from '../../utils/array.es.js';\nimport { noopReturn } from '../../utils/noop.es.js';\nimport { getAnimationData } from '../data.es.js';\n\n/**\n * A list of all transformable axes. We'll use this list to generated a version\n * of each axes for each transform.\n */\nconst axes = [\"\", \"X\", \"Y\", \"Z\"];\n/**\n * An ordered array of each transformable value. By default, transform values\n * will be sorted to this order.\n */\nconst order = [\"translate\", \"scale\", \"rotate\", \"skew\"];\nconst transformAlias = {\n x: \"translateX\",\n y: \"translateY\",\n z: \"translateZ\",\n};\nconst rotation = {\n syntax: \"<angle>\",\n initialValue: \"0deg\",\n toDefaultUnit: (v) => v + \"deg\",\n};\nconst baseTransformProperties = {\n translate: {\n syntax: \"<length-percentage>\",\n initialValue: \"0px\",\n toDefaultUnit: (v) => v + \"px\",\n },\n rotate: rotation,\n scale: {\n syntax: \"<number>\",\n initialValue: 1,\n toDefaultUnit: noopReturn,\n },\n skew: rotation,\n};\nconst transformDefinitions = new Map();\nconst asTransformCssVar = (name) => `--motion-${name}`;\n/**\n * Generate a list of every possible transform key\n */\nconst transforms = [\"x\", \"y\", \"z\"];\norder.forEach((name) => {\n axes.forEach((axis) => {\n transforms.push(name + axis);\n transformDefinitions.set(asTransformCssVar(name + axis), baseTransformProperties[name]);\n });\n});\n/**\n * A function to use with Array.sort to sort transform keys by their default order.\n */\nconst compareTransformOrder = (a, b) => transforms.indexOf(a) - transforms.indexOf(b);\n/**\n * Provide a quick way to check if a string is the name of a transform\n */\nconst transformLookup = new Set(transforms);\nconst isTransform = (name) => transformLookup.has(name);\nconst addTransformToElement = (element, name) => {\n // Map x to translateX etc\n if (transformAlias[name])\n name = transformAlias[name];\n const { transforms } = getAnimationData(element);\n addUniqueItem(transforms, name);\n element.style.transform = buildTransformTemplate(transforms);\n};\nconst buildTransformTemplate = (transforms) => transforms\n .sort(compareTransformOrder)\n .reduce(transformListToString, \"\")\n .trim();\nconst transformListToString = (template, name) => `${template} ${name}(var(${asTransformCssVar(name)}))`;\n\nexport { addTransformToElement, asTransformCssVar, axes, buildTransformTemplate, compareTransformOrder, isTransform, transformAlias, transformDefinitions };\n","import { transformDefinitions } from './transforms.es.js';\n\nconst isCssVar = (name) => name.startsWith(\"--\");\nconst registeredProperties = new Set();\nfunction registerCssVariable(name) {\n if (registeredProperties.has(name))\n return;\n registeredProperties.add(name);\n try {\n const { syntax, initialValue } = transformDefinitions.has(name)\n ? transformDefinitions.get(name)\n : {};\n CSS.registerProperty({\n name,\n inherits: false,\n syntax,\n initialValue,\n });\n }\n catch (e) { }\n}\n\nexport { isCssVar, registerCssVariable, registeredProperties };\n","const ms = (seconds) => seconds * 1000;\n\nexport { ms };\n","import { isNumber } from '../../utils/is-number.es.js';\n\nconst isCubicBezier = (easing) => Array.isArray(easing) && isNumber(easing[0]);\nconst isEasingList = (easing) => Array.isArray(easing) && !isNumber(easing[0]);\nconst isCustomEasing = (easing) => typeof easing === \"object\" &&\n Boolean(easing.createAnimation);\nconst convertEasing = (easing) => isCubicBezier(easing) ? cubicBezierAsString(easing) : easing;\nconst cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\n\nexport { convertEasing, cubicBezierAsString, isCubicBezier, isCustomEasing, isEasingList };\n","const testAnimation = (keyframes) => document.createElement(\"div\").animate(keyframes, { duration: 0.001 });\nconst featureTests = {\n cssRegisterProperty: () => typeof CSS !== \"undefined\" &&\n Object.hasOwnProperty.call(CSS, \"registerProperty\"),\n waapi: () => Object.hasOwnProperty.call(Element.prototype, \"animate\"),\n partialKeyframes: () => {\n try {\n testAnimation({ opacity: [1] });\n }\n catch (e) {\n return false;\n }\n return true;\n },\n finished: () => Boolean(testAnimation({ opacity: [0, 1] }).finished),\n};\nconst results = {};\nconst supports = {};\nfor (const key in featureTests) {\n supports[key] = () => {\n if (results[key] === undefined)\n results[key] = featureTests[key]();\n return results[key];\n };\n}\n\nexport { supports };\n","const defaults = {\n duration: 0.3,\n delay: 0,\n endDelay: 0,\n repeat: 0,\n easing: \"ease\",\n};\n\nexport { defaults };\n","import { wrap } from '../../utils/wrap.es.js';\nimport { isEasingList } from '../../animate/utils/easing.es.js';\n\nfunction getEasingForSegment(easing, i) {\n return isEasingList(easing)\n ? easing[wrap(0, easing.length, i)]\n : easing;\n}\n\nexport { getEasingForSegment };\n","const wrap = (min, max, v) => {\n const rangeSize = max - min;\n return ((((v - min) % rangeSize) + rangeSize) % rangeSize) + min;\n};\n\nexport { wrap };\n","import { defaults } from '../animate/utils/defaults.es.js';\nimport { isCustomEasing, isEasingList } from '../animate/utils/easing.es.js';\nimport { getEasingFunction } from './easing/utils/get-function.es.js';\nimport { slowInterpolateNumbers } from './utils/interpolate.es.js';\n\nclass NumberAnimation {\n constructor(output, keyframes = [0, 1], { easing = defaults.easing, duration = defaults.duration, delay = defaults.delay, endDelay = defaults.endDelay, repeat = defaults.repeat, offset, direction = \"normal\", } = {}) {\n this.startTime = 0;\n this.rate = 1;\n this.t = 0;\n this.cancelTimestamp = 0;\n this.playState = \"idle\";\n this.finished = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n const totalDuration = duration * (repeat + 1);\n /**\n * We don't currently support custom easing (spring, glide etc) in NumberAnimation\n * (although this is completely possible), so this will have been hydrated by\n * animateStyle.\n */\n if (isCustomEasing(easing))\n easing = \"ease\";\n const interpolate = slowInterpolateNumbers(keyframes, offset, isEasingList(easing)\n ? easing.map(getEasingFunction)\n : getEasingFunction(easing));\n this.tick = (timestamp) => {\n var _a;\n if (this.pauseTime)\n timestamp = this.pauseTime;\n let t = (timestamp - this.startTime) * this.rate;\n this.t = t;\n // Convert to seconds\n t /= 1000;\n // Rebase on delay\n t = Math.max(t - delay, 0);\n /**\n * If this animation has finished, set the current time\n * to the total duration.\n */\n if (this.playState === \"finished\")\n t = totalDuration;\n /**\n * Get the current progress (0-1) of the animation. If t is >\n * than duration we'll get values like 2.5 (midway through the\n * third iteration)\n */\n const progress = t / duration;\n // TODO progress += iterationStart\n /**\n * Get the current iteration (0 indexed). For instance the floor of\n * 2.5 is 2.\n */\n let currentIteration = Math.floor(progress);\n /**\n * Get the current progress of the iteration by taking the remainder\n * so 2.5 is 0.5 through iteration 2\n */\n let iterationProgress = progress % 1.0;\n if (!iterationProgress && progress >= 1) {\n iterationProgress = 1;\n }\n /**\n * If iteration progress is 1 we count that as the end\n * of the previous iteration.\n */\n iterationProgress === 1 && currentIteration--;\n /**\n * Reverse progress if we're not running in \"normal\" direction\n */\n const iterationIsOdd = currentIteration % 2;\n if (direction === \"reverse\" ||\n (direction === \"alternate\" && iterationIsOdd) ||\n (direction === \"alternate-reverse\" && !iterationIsOdd)) {\n iterationProgress = 1 - iterationProgress;\n }\n const latest = interpolate(t >= totalDuration ? 1 : Math.min(iterationProgress, 1));\n output(latest);\n const isAnimationFinished = this.playState === \"finished\" || t >= totalDuration + endDelay;\n if (isAnimationFinished) {\n this.playState = \"finished\";\n (_a = this.resolve) === null || _a === void 0 ? void 0 : _a.call(this, latest);\n }\n else if (this.playState !== \"idle\") {\n requestAnimationFrame(this.tick);\n }\n };\n this.play();\n }\n play() {\n const now = performance.now();\n this.playState = \"running\";\n if (this.pauseTime) {\n this.startTime = now - (this.pauseTime - this.startTime);\n }\n else if (!this.startTime) {\n this.startTime = now;\n }\n this.pauseTime = undefined;\n requestAnimationFrame(this.tick);\n }\n pause() {\n this.playState = \"paused\";\n this.pauseTime = performance.now();\n }\n finish() {\n this.playState = \"finished\";\n this.tick(0);\n }\n cancel() {\n var _a;\n this.playState = \"idle\";\n this.tick(this.cancelTimestamp);\n (_a = this.reject) === null || _a === void 0 ? void 0 : _a.call(this, false);\n }\n reverse() {\n this.rate *= -1;\n }\n commitStyles() {\n this.cancelTimestamp = performance.now();\n }\n get currentTime() {\n return this.t;\n }\n set currentTime(t) {\n if (this.pauseTime || this.rate === 0) {\n this.pauseTime = t;\n }\n else {\n this.startTime = performance.now() - t / this.rate;\n }\n }\n get playbackRate() {\n return this.rate;\n }\n set playbackRate(rate) {\n this.rate = rate;\n }\n}\n\nexport { NumberAnimation };\n","import { mix } from '../../utils/mix.es.js';\nimport { noopReturn } from '../../utils/noop.es.js';\nimport { progress } from '../../utils/progress.es.js';\nimport { getEasingForSegment } from './get-easing.es.js';\nimport { defaultOffset, fillOffset } from './offset.es.js';\n\nconst clampProgress = (p) => Math.min(1, Math.max(p, 0));\nfunction slowInterpolateNumbers(output, input = defaultOffset(output.length), easing = noopReturn) {\n const length = output.length;\n /**\n * If the input length is lower than the output we\n * fill the input to match. This currently assumes the input\n * is an animation progress value so is a good candidate for\n * moving outside the function.\n */\n const remainder = length - input.length;\n remainder > 0 && fillOffset(input, remainder);\n return (t) => {\n let i = 0;\n for (; i < length - 2; i++) {\n if (t < input[i + 1])\n break;\n }\n let progressInRange = clampProgress(progress(input[i], input[i + 1], t));\n const segmentEasing = getEasingForSegment(easing, i);\n progressInRange = segmentEasing(progressInRange);\n return mix(output[i], output[i + 1], progressInRange);\n };\n}\n\nexport { slowInterpolateNumbers };\n","function hydrateKeyframes(keyframes, readInitialValue) {\n for (let i = 0; i < keyframes.length; i++) {\n if (keyframes[i] === null) {\n keyframes[i] = i ? keyframes[i - 1] : readInitialValue();\n }\n }\n return keyframes;\n}\nconst keyframesList = (keyframes) => Array.isArray(keyframes) ? keyframes : [keyframes];\n\nexport { hydrateKeyframes, keyframesList };\n","import { isTransform, asTransformCssVar, transformAlias } from './transforms.es.js';\n\nfunction getStyleName(key) {\n if (transformAlias[key])\n key = transformAlias[key];\n return isTransform(key) ? asTransformCssVar(key) : key;\n}\n\nexport { getStyleName };\n","import { isCssVar } from './utils/css-var.es.js';\nimport { getStyleName } from './utils/get-style-name.es.js';\nimport { transformDefinitions } from './utils/transforms.es.js';\n\nconst style = {\n get: (element, name) => {\n name = getStyleName(name);\n let value = isCssVar(name)\n ? element.style.getPropertyValue(name)\n : getComputedStyle(element)[name];\n if (!value && value !== 0) {\n const definition = transformDefinitions.get(name);\n if (definition)\n value = definition.initialValue;\n }\n return value;\n },\n set: (element, name, value) => {\n name = getStyleName(name);\n if (isCssVar(name)) {\n element.style.setProperty(name, value);\n }\n else {\n element.style[name] = value;\n }\n },\n};\n\nexport { style };\n","function stopAnimation(animation) {\n if (!animation)\n return;\n // Suppress error thrown by WAAPI\n try {\n /**\n * commitStyles has overhead so we only want to commit and cancel\n */\n animation.playState !== \"finished\" && animation.commitStyles();\n animation.cancel();\n }\n catch (e) { }\n}\n\nexport { stopAnimation };\n","import { getAnimationData } from './data.es.js';\nimport { isCssVar, registerCssVariable } from './utils/css-var.es.js';\nimport { noop } from '../utils/noop.es.js';\nimport { ms } from './utils/time.es.js';\nimport { isTransform, addTransformToElement, transformDefinitions } from './utils/transforms.es.js';\nimport { isCustomEasing, isEasingList, convertEasing } from './utils/easing.es.js';\nimport { supports } from './utils/feature-detection.es.js';\nimport { NumberAnimation } from '../js/NumberAnimation.es.js';\nimport { hydrateKeyframes, keyframesList } from './utils/keyframes.es.js';\nimport { style } from './style.es.js';\nimport { defaults } from './utils/defaults.es.js';\nimport { getStyleName } from './utils/get-style-name.es.js';\nimport { isNumber } from '../utils/is-number.es.js';\nimport { stopAnimation } from './utils/stop-animation.es.js';\n\nfunction animateStyle(element, key, keyframesDefinition, options = {}) {\n let animation;\n let { duration = defaults.duration, delay = defaults.delay, endDelay = defaults.endDelay, repeat = defaults.repeat, easing = defaults.easing, direction, offset, allowWebkitAcceleration = false, } = options;\n const data = getAnimationData(element);\n let canAnimateNatively = supports.waapi();\n const valueIsTransform = isTransform(key);\n /**\n * If this is an individual transform, we need to map its\n * key to a CSS variable and update the element's transform style\n */\n valueIsTransform && addTransformToElement(element, key);\n const name = getStyleName(key);\n /**\n * Get definition of value, this will be used to convert numerical\n * keyframes into the default value type.\n */\n const definition = transformDefinitions.get(name);\n /**\n * Stop the current animation, if any. Because this will trigger\n * commitStyles (DOM writes) and we might later trigger DOM reads,\n * this is fired now and we return a factory function to create\n * the actual animation that can get called in batch,\n */\n stopAnimation(data.animations[name]);\n /**\n * Batchable factory function containing all DOM reads.\n */\n return () => {\n const readInitialValue = () => { var _a, _b; return (_b = (_a = style.get(element, name)) !== null && _a !== void 0 ? _a : definition === null || definition === void 0 ? void 0 : definition.initialValue) !== null && _b !== void 0 ? _b : 0; };\n /**\n * Replace null values with the previous keyframe value, or read\n * it from the DOM if it's the first keyframe.\n */\n let keyframes = hydrateKeyframes(keyframesList(keyframesDefinition), readInitialValue);\n if (isCustomEasing(easing)) {\n const custom = easing.createAnimation(keyframes, readInitialValue, valueIsTransform, name, data);\n easing = custom.easing;\n if (custom.keyframes !== undefined)\n keyframes = custom.keyframes;\n if (custom.duration !== undefined)\n duration = custom.duration;\n }\n /**\n * If this is a CSS variable we need to register it with the browser\n * before it can be animated natively. We also set it with setProperty\n * rather than directly onto the element.style object.\n */\n if (isCssVar(name)) {\n if (supports.cssRegisterProperty()) {\n registerCssVariable(name);\n }\n else {\n canAnimateNatively = false;\n }\n }\n /**\n * If we can animate this value with WAAPI, do so. Currently this only\n * feature detects CSS.registerProperty but could check WAAPI too.\n */\n if (canAnimateNatively) {\n /**\n * Convert numbers to default value types. Currently this only supports\n * transforms but it could also support other value types.\n */\n if (definition) {\n keyframes = keyframes.map((value) => isNumber(value) ? definition.toDefaultUnit(value) : value);\n }\n /**\n * If this browser doesn't support partial/implicit keyframes we need to\n * explicitly provide one.\n */\n if (!supports.partialKeyframes() && keyframes.length === 1) {\n keyframes.unshift(readInitialValue());\n }\n const animationOptions = {\n delay: ms(delay),\n duration: ms(duration),\n endDelay: ms(endDelay),\n easing: !isEasingList(easing) ? convertEasing(easing) : undefined,\n direction,\n iterations: repeat + 1,\n fill: \"both\",\n };\n animation = element.animate({\n [name]: keyframes,\n offset,\n easing: isEasingList(easing) ? easing.map(convertEasing) : undefined,\n }, animationOptions);\n /**\n * Polyfill finished Promise in browsers that don't support it\n */\n if (!animation.finished) {\n animation.finished = new Promise((resolve, reject) => {\n animation.onfinish = resolve;\n animation.oncancel = reject;\n });\n }\n const target = keyframes[keyframes.length - 1];\n animation.finished\n .then(() => {\n // Apply styles to target\n style.set(element, name, target);\n // Ensure fill modes don't persist\n animation.cancel();\n })\n .catch(noop);\n /**\n * This forces Webkit to run animations on the main thread by exploiting\n * this condition:\n * https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp?rev=281238#L1099\n *\n * This fixes Webkit's timing bugs, like accelerated animations falling\n * out of sync with main thread animations and massive delays in starting\n * accelerated animations in WKWebView.\n */\n if (!allowWebkitAcceleration)\n animation.playbackRate = 1.000001;\n /**\n * If we can't animate the value natively then we can fallback to the numbers-only\n * polyfill for transforms. All keyframes must be numerical.\n */\n }\n else if (valueIsTransform && keyframes.every(isNumber)) {\n /**\n * If we only have a single keyframe, we need to create an initial keyframe by reading\n * the current value from the DOM.\n */\n if (keyframes.length === 1) {\n keyframes.unshift(parseFloat(readInitialValue()));\n }\n const render = (latest) => {\n if (definition)\n latest = definition.toDefaultUnit(latest);\n style.set(element, name, latest);\n };\n animation = new NumberAnimation(render, keyframes, Object.assign(Object.assign({}, options), { duration,\n easing }));\n }\n else {\n const target = keyframes[keyframes.length - 1];\n style.set(element, name, definition && isNumber(target)\n ? definition.toDefaultUnit(target)\n : target);\n }\n data.animations[name] = animation;\n /**\n * When an animation finishes, delete the reference to the previous animation.\n */\n animation === null || animation === void 0 ? void 0 : animation.finished.then(() => {\n data.animations[name] = undefined;\n data.generators[name] = undefined;\n data.prevGeneratorState[name] = undefined;\n }).catch(noop);\n return animation;\n };\n}\n\nexport { animateStyle };\n","import { noop } from '../../utils/noop.es.js';\nimport { stopAnimation } from './stop-animation.es.js';\nimport { ms } from './time.es.js';\n\nconst createAnimation = (factory) => factory();\nconst createAnimations = (animationFactory, duration) => new Proxy({\n animations: animationFactory.map(createAnimation).filter(Boolean),\n duration,\n}, controls);\n/**\n * TODO:\n * Currently this returns the first animation, ideally it would return\n * the first active animation.\n */\nconst getActiveAnimation = (state) => state.animations[0];\nconst controls = {\n get: (target, key) => {\n var _a, _b;\n switch (key) {\n case \"duration\":\n return target.duration;\n case \"currentTime\":\n let time = ((_a = getActiveAnimation(target)) === null || _a === void 0 ? void 0 : _a[key]) || 0;\n return time ? time / 1000 : 0;\n case \"playbackRate\":\n return (_b = getActiveAnimation(target)) === null || _b === void 0 ? void 0 : _b[key];\n case \"finished\":\n if (!target.finished) {\n target.finished = Promise.all(target.animations.map(selectFinished)).catch(noop);\n }\n return target.finished;\n case \"stop\":\n return () => target.animations.forEach(stopAnimation);\n default:\n return () => target.animations.forEach((animation) => animation[key]());\n }\n },\n set: (target, key, value) => {\n switch (key) {\n case \"currentTime\":\n value = ms(value);\n case \"currentTime\":\n case \"playbackRate\":\n for (let i = 0; i < target.animations.length; i++) {\n target.animations[i][key] = value;\n }\n return true;\n }\n return false;\n },\n};\nconst selectFinished = (animation) => animation.finished;\n\nexport { controls, createAnimations };\n","const getOptions = (options, key) => \n/**\n * TODO: Make test for this\n * Always return a new object otherwise delay is overwritten by results of stagger\n * and this results in no stagger\n */\noptions[key] ? Object.assign(Object.assign({}, options), options[key]) : Object.assign({}, options);\n\nexport { getOptions };\n","function resolveElements(elements, selectorCache) {\n var _a;\n if (typeof elements === \"string\") {\n if (selectorCache) {\n (_a = selectorCache[elements]) !== null && _a !== void 0 ? _a : (selectorCache[elements] = document.querySelectorAll(elements));\n elements = selectorCache[elements];\n }\n else {\n elements = document.querySelectorAll(elements);\n }\n }\n else if (elements instanceof Element) {\n elements = [elements];\n }\n return Array.from(elements);\n}\n\nexport { resolveElements };\n","import { isNumber } from '../../utils/is-number.es.js';\n\nfunction calcNextTime(current, next, prev, labels) {\n var _a;\n if (isNumber(next)) {\n return next;\n }\n else if (next.startsWith(\"-\") || next.startsWith(\"+\")) {\n return Math.max(0, current + parseFloat(next));\n }\n else if (next === \"<\") {\n return prev;\n }\n else {\n return (_a = labels.get(next)) !== null && _a !== void 0 ? _a : current;\n }\n}\n\nexport { calcNextTime };\n","import { mix } from '../../utils/mix.es.js';\nimport { removeItem } from '../../utils/array.es.js';\nimport { getEasingForSegment } from '../../js/utils/get-easing.es.js';\n\nfunction eraseKeyframes(sequence, startTime, endTime) {\n for (let i = 0; i < sequence.length; i++) {\n const keyframe = sequence[i];\n if (keyframe.at > startTime && keyframe.at < endTime) {\n removeItem(sequence, keyframe);\n // If we remove this item we have to push the pointer back one\n i--;\n }\n }\n}\nfunction addKeyframes(sequence, keyframes, easing, offset, startTime, endTime) {\n /**\n * Erase every existing value between currentTime and targetTime,\n * this will essentially splice this timeline into any currently\n * defined ones.\n */\n eraseKeyframes(sequence, startTime, endTime);\n for (let i = 0; i < keyframes.length; i++) {\n sequence.push({\n value: keyframes[i],\n at: mix(startTime, endTime, offset[i]),\n easing: getEasingForSegment(easing, i),\n });\n }\n}\n\nexport { addKeyframes, eraseKeyframes };\n","function compareByTime(a, b) {\n if (a.at === b.at) {\n return a.value === null ? 1 : -1;\n }\n else {\n return a.at - b.at;\n }\n}\n\nexport { compareByTime };\n","import { __rest } from 'tslib';\nimport { invariant } from 'hey-listen';\nimport { progress } from '../utils/progress.es.js';\nimport { resolveOption } from '../utils/stagger.es.js';\nimport { defaultOffset, fillOffset } from '../js/utils/offset.es.js';\nimport { animateStyle } from '../animate/animate-style.es.js';\nimport { createAnimations } from '../animate/utils/controls.es.js';\nimport { defaults } from '../animate/utils/defaults.es.js';\nimport { isCustomEasing } from '../animate/utils/easing.es.js';\nimport { keyframesList } from '../animate/utils/keyframes.es.js';\nimport { getOptions } from '../animate/utils/options.es.js';\nimport { resolveElements } from '../animate/utils/resolve-elements.es.js';\nimport { isTransform } from '../animate/utils/transforms.es.js';\nimport { calcNextTime } from './utils/calc-time.es.js';\nimport { addKeyframes } from './utils/edit.es.js';\nimport { compareByTime } from './utils/sort.es.js';\n\nfunction timeline(definition, options = {}) {\n var _a, _b;\n const animationDefinitions = createAnimationsFromTimeline(definition, options);\n /**\n * Create and start animations\n */\n const animationFactories = animationDefinitions\n .map((definition) => animateStyle(...definition))\n .filter(Boolean);\n return createAnimations(animationFactories, \n // Get the duration from the first animation definition\n (_b = (_a = animationDefinitions[0]) === null || _a === void 0 ? void 0 : _a[3].duration) !== null && _b !== void 0 ? _b : defaults.duration);\n}\nfunction createAnimationsFromTimeline(definition, _a = {}) {\n var { defaultOptions = {} } = _a, timelineOptions = __rest(_a, [\"defaultOptions\"]);\n const animationDefinitions = [];\n const elementSequences = new Map();\n const elementCache = {};\n const timeLabels = new Map();\n let prevTime = 0;\n let currentTime = 0;\n let totalDuration = 0;\n /**\n * Build the timeline by mapping over the definition array and converting\n * the definitions into keyframes and offsets with absolute time values.\n * These will later get converted into relative offsets in a second pass.\n */\n for (let i = 0; i < definition.length; i++) {\n const [elementDefinition, keyframes, options = {}] = definition[i];\n /**\n * If a relative or absolute time value has been specified we need to resolve\n * it in relation to the currentTime.\n */\n if (options.at !== undefined) {\n currentTime = calcNextTime(currentTime, options.at, prevTime, timeLabels);\n }\n /**\n * Keep track of the maximum duration in this definition. This will be\n * applied to currentTime once the definition has been parsed.\n */\n let maxDuration = 0;\n /**\n * Find all the elements specified in the definition and parse value\n * keyframes from their timeline definitions.\n */\n const elements = resolveElements(elementDefinition, elementCache);\n const numElements = elements.length;\n for (let elementIndex = 0; elementIndex < numElements; elementIndex++) {\n const element = elements[elementIndex];\n const elementSequence = getElementSequence(element, elementSequences);\n for (const key in keyframes) {\n const valueSequence = getValueSequence(key, elementSequence);\n let valueKeyframes = keyframesList(keyframes[key]);\n const valueOptions = getOptions(options, key);\n let { duration = defaultOptions.duration || defaults.duration, easing = defaultOptions.easing || defaults.easing, } = valueOptions;\n if (isCustomEasing(easing)) {\n const valueIsTransform = isTransform(key);\n invariant(valueKeyframes.length === 2 || !valueIsTransform, \"spring must be provided 2 keyframes within timeline\");\n const custom = easing.createAnimation(valueKeyframes, \n // TODO We currently only support explicit keyframes\n // so this doesn't currently read from the DOM\n () => \"0\", valueIsTransform);\n easing = custom.easing;\n if (custom.keyframes !== undefined)\n valueKeyframes = custom.keyframes;\n if (custom.duration !== undefined)\n duration = custom.duration;\n }\n const delay = resolveOption(options.delay, elementIndex, numElements) || 0;\n const startTime = currentTime + delay;\n const targetTime = startTime + duration;\n /**\n *\n */\n let { offset = defaultOffset(valueKeyframes.length) } = valueOptions;\n /**\n * If there's only one offset of 0, fill in a second with length 1\n *\n * TODO: Ensure there's a test that covers this removal\n */\n if (offset.length === 1 && offset[0] === 0) {\n offset[1] = 1;\n }\n /**\n * Fill out if offset if fewer offsets than keyframes\n */\n const remainder = length - valueKeyframes.length;\n remainder > 0 && fillOffset(offset, remainder);\n /**\n * If only one value has been set, ie [1], push a null to the start of\n * the keyframe array. This will let us mark a keyframe at this point\n * that will later be hydrated with the previous value.\n */\n valueKeyframes.length === 1 && valueKeyframes.unshift(null);\n /**\n * Add keyframes, mapping offsets to absolute time.\n */\n addKeyframes(valueSequence, valueKeyframes, easing, offset, startTime, targetTime);\n maxDuration = Math.max(delay + duration, maxDuration);\n totalDuration = Math.max(targetTime, totalDuration);\n }\n }\n prevTime = currentTime;\n currentTime += maxDuration;\n }\n /**\n * For every element and value combination create a new animation.\n */\n elementSequences.forEach((valueSequences, element) => {\n for (const key in valueSequences) {\n const valueSequence = valueSequences[key];\n /**\n * Arrange all the keyframes in ascending time order.\n */\n valueSequence.sort(compareByTime);\n const keyframes = [];\n const valueOffset = [];\n const valueEasing = [];\n /**\n * For each keyframe, translate absolute times into\n * relative offsets based on the total duration of the timeline.\n */\n for (let i = 0; i < valueSequence.length; i++) {\n const { at, value, easing } = valueSequence[i];\n keyframes.push(value);\n valueOffset.push(progress(0, totalDuration, at));\n valueEasing.push(easing || defaults.easing);\n }\n /**\n * If the first keyframe doesn't land on offset: 0\n * provide one by duplicating the initial keyframe. This ensures\n * it snaps to the first keyframe when the animation starts.\n */\n if (valueOffset[0] !== 0) {\n valueOffset.unshift(0);\n keyframes.unshift(keyframes[0]);\n valueEasing.unshift(\"linear\");\n }\n /**\n * If the last keyframe doesn't land on offset: 1\n * provide one with a null wildcard value. This will ensure it\n * stays static until the end of the animation.\n */\n if (valueOffset[valueOffset.length - 1] !== 1) {\n valueOffset.push(1);\n keyframes.push(null);\n }\n animationDefinitions.push([\n element,\n key,\n keyframes,\n Object.assign(Object.assign(Object.assign({}, defaultOptions), { duration: totalDuration, easing: valueEasing, offset: valueOffset }), timelineOptions),\n ]);\n }\n });\n return animationDefinitions;\n}\nfunction getElementSequence(element, sequences) {\n !sequences.has(element) && sequences.set(element, {});\n return sequences.get(element);\n}\nfunction getValueSequence(name, sequences) {\n if (!sequences[name])\n sequences[name] = [];\n return sequences[name];\n}\n\nexport { createAnimationsFromTimeline, timeline };\n","const isNumber = (value) => typeof value === \"number\";\n\nexport { isNumber };\n","const noop = () => { };\nconst noopReturn = (v) => v;\n\nexport { noop, noopReturn };\n","import { getEasingFunction } from '../js/easing/utils/get-function.es.js';\nimport { isNumber } from './is-number.es.js';\n\nfunction stagger(duration = 0.1, { start = 0, from = 0, easing } = {}) {\n return (i, total) => {\n const fromIndex = isNumber(from) ? from : getFromIndex(from, total);\n const distance = Math.abs(fromIndex - i);\n let delay = duration * distance;\n if (easing) {\n const maxDelay = total * i;\n const easingFunction = getEasingFunction(easing);\n delay = easingFunction(delay / maxDelay) * maxDelay;\n }\n return start + delay;\n };\n}\nfunction getFromIndex(from, total) {\n if (from === \"first\") {\n return 0;\n }\n else {\n const lastIndex = total - 1;\n return from === \"last\" ? lastIndex : lastIndex / 2;\n }\n}\nfunction resolveOption(option, i, total) {\n return typeof option === \"function\"\n ? option(i, total)\n : option;\n}\n\nexport { getFromIndex, resolveOption, stagger };\n","var warning = function () { };\r\nvar invariant = function () { };\r\nif (process.env.NODE_ENV !== 'production') {\r\n warning = function (check, message) {\r\n if (!check && typeof console !== 'undefined') {\r\n console.warn(message);\r\n }\r\n };\r\n invariant = function (check, message) {\r\n if (!check) {\r\n throw new Error(message);\r\n }\r\n };\r\n}\n\nexport { invariant, warning };\n"],"names":["calcBezier","t","a1","a2","cubicBezier","mX1","mY1","mX2","mY2","x","lowerBound","upperBound","currentX","currentT","i","Math","abs","binarySubdivide","namedEasings","ease","functionArgsRegex","getEasingFunction","definition","Array","isArray","startsWith","args","exec","argsArray","split","steps","direction","progress","expanded","min","max","v","floor","ceil","parseFloat","trim","Object","create","from","to","value","mix","fillOffset","offset","remaining","length","offsetProgress","push","defaultOffset","data","WeakMap","getAnimationData","element","has","set","transforms","animations","generators","prevGeneratorState","get","removeItem","arr","item","index","indexOf","splice","axes","transformAlias","y","z","rotation","syntax","initialValue","toDefaultUnit","baseTransformProperties","translate","rotate","scale","skew","transformDefinitions","Map","asTransformCssVar","name","forEach","axis","compareTransformOrder","a","b","transformLookup","Set","isTransform","transformListToString","template","isCssVar","registeredProperties","ms","seconds","isEasingList","easing","isCustomEasing","Boolean","createAnimation","convertEasing","isCubicBezier","cubicBezierAsString","c","d","testAnimation","keyframes","document","createElement","animate","duration","featureTests","cssRegisterProperty","CSS","hasOwnProperty","call","waapi","Element","prototype","partialKeyframes","opacity","e","finished","results","supports","key","undefined","defaults","delay","endDelay","repeat","getEasingForSegment","rangeSize","wrap","NumberAnimation","constructor","output","this","startTime","rate","cancelTimestamp","playState","Promise","resolve","reject","totalDuration","interpolate","input","remainder","progressInRange","p","segmentEasing","slowInterpolateNumbers","map","tick","timestamp","_a","pauseTime","currentIteration","iterationProgress","iterationIsOdd","latest","requestAnimationFrame","play","now","performance","pause","finish","cancel","reverse","commitStyles","currentTime","playbackRate","keyframesList","getStyleName","style","setProperty","stopAnimation","animation","animateStyle","keyframesDefinition","options","allowWebkitAcceleration","canAnimateNatively","valueIsTransform","array","transform","sort","reduce","buildTransformTemplate","addTransformToElement","readInitialValue","_b","getPropertyValue","getComputedStyle","hydrateKeyframes","custom","add","registerProperty","inherits","registerCssVariable","unshift","animationOptions","iterations","fill","onfinish","oncancel","target","then","catch","every","assign","factory","getActiveAnimation","state","controls","time","all","selectFinished","getOptions","resolveElements","elements","selectorCache","querySelectorAll","calcNextTime","current","next","prev","labels","addKeyframes","sequence","endTime","keyframe","at","eraseKeyframes","compareByTime","timeline","animationDefinitions","defaultOptions","timelineOptions","s","getOwnPropertySymbols","propertyIsEnumerable","__rest","elementSequences","elementCache","timeLabels","prevTime","elementDefinition","maxDuration","numElements","elementIndex","elementSequence","sequences","valueSequence","getValueSequence","valueKeyframes","valueOptions","targetTime","valueSequences","valueOffset","valueEasing","createAnimationsFromTimeline","animationFactories","filter","animationFactory","Proxy","isNumber","noop","noopReturn","stagger","start","total","fromIndex","lastIndex","getFromIndex","distance","maxDelay","easingFunction","resolveOption","option","warning","invariant"],"sourceRoot":""}