github.com/wanliu/go-oauth2-server@v0.0.0-20180817021415-f928fa1580df/public/js/anime.min.js (about) 1 var $jscomp = { 2 scope: {} 3 }; 4 $jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty: function(e, r, p) { 5 if (p.get || p.set) throw new TypeError("ES3 does not support getters and setters."); 6 e != Array.prototype && e != Object.prototype && (e[r] = p.value) 7 }; 8 $jscomp.getGlobal = function(e) { 9 return "undefined" != typeof window && window === e ? e: "undefined" != typeof global && null != global ? global: e 10 }; 11 $jscomp.global = $jscomp.getGlobal(this); 12 $jscomp.SYMBOL_PREFIX = "jscomp_symbol_"; 13 $jscomp.initSymbol = function() { 14 $jscomp.initSymbol = function() {}; 15 $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol) 16 }; 17 $jscomp.symbolCounter_ = 0; 18 $jscomp.Symbol = function(e) { 19 return $jscomp.SYMBOL_PREFIX + (e || "") + $jscomp.symbolCounter_++ 20 }; 21 $jscomp.initSymbolIterator = function() { 22 $jscomp.initSymbol(); 23 var e = $jscomp.global.Symbol.iterator; 24 e || (e = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")); 25 "function" != typeof Array.prototype[e] && $jscomp.defineProperty(Array.prototype, e, { 26 configurable: !0, 27 writable: !0, 28 value: function() { 29 return $jscomp.arrayIterator(this) 30 } 31 }); 32 $jscomp.initSymbolIterator = function() {} 33 }; 34 $jscomp.arrayIterator = function(e) { 35 var r = 0; 36 return $jscomp.iteratorPrototype(function() { 37 return r < e.length ? { 38 done: !1, 39 value: e[r++] 40 }: { 41 done: !0 42 } 43 }) 44 }; 45 $jscomp.iteratorPrototype = function(e) { 46 $jscomp.initSymbolIterator(); 47 e = { 48 next: e 49 }; 50 e[$jscomp.global.Symbol.iterator] = function() { 51 return this 52 }; 53 return e 54 }; 55 $jscomp.array = $jscomp.array || {}; 56 $jscomp.iteratorFromArray = function(e, r) { 57 $jscomp.initSymbolIterator(); 58 e instanceof String && (e += ""); 59 var p = 0, 60 m = { 61 next: function() { 62 if (p < e.length) { 63 var u = p++; 64 return { 65 value: r(u, e[u]), 66 done: !1 67 } 68 } 69 m.next = function() { 70 return { 71 done: !0, 72 value: void 0 73 } 74 }; 75 return m.next() 76 } 77 }; 78 m[Symbol.iterator] = function() { 79 return m 80 }; 81 return m 82 }; 83 $jscomp.polyfill = function(e, r, p, m) { 84 if (r) { 85 p = $jscomp.global; 86 e = e.split("."); 87 for (m = 0; m < e.length - 1; m++) { 88 var u = e[m]; 89 u in p || (p[u] = {}); 90 p = p[u] 91 } 92 e = e[e.length - 1]; 93 m = p[e]; 94 r = r(m); 95 r != m && null != r && $jscomp.defineProperty(p, e, { 96 configurable: !0, 97 writable: !0, 98 value: r 99 }) 100 } 101 }; 102 $jscomp.polyfill("Array.prototype.keys", 103 function(e) { 104 return e ? e: function() { 105 return $jscomp.iteratorFromArray(this, 106 function(e) { 107 return e 108 }) 109 } 110 }, 111 "es6-impl", "es3"); 112 var $jscomp$this = this; (function(e, r) { 113 "function" === typeof define && define.amd ? define([], r) : "object" === typeof module && module.exports ? module.exports = r() : e.anime = r() 114 })(this, 115 function() { 116 function e(a) { 117 if (!h.col(a)) try { 118 return document.querySelectorAll(a) 119 } catch(c) {} 120 } 121 function r(a, c) { 122 for (var d = a.length, 123 b = 2 <= arguments.length ? arguments[1] : void 0, f = [], n = 0; n < d; n++) if (n in a) { 124 var k = a[n]; 125 c.call(b, k, n, a) && f.push(k) 126 } 127 return f 128 } 129 function p(a) { 130 return a.reduce(function(a, d) { 131 return a.concat(h.arr(d) ? p(d) : d) 132 }, 133 []) 134 } 135 function m(a) { 136 if (h.arr(a)) return a; 137 h.str(a) && (a = e(a) || a); 138 return a instanceof NodeList || a instanceof HTMLCollection ? [].slice.call(a) : [a] 139 } 140 function u(a, c) { 141 return a.some(function(a) { 142 return a === c 143 }) 144 } 145 function C(a) { 146 var c = {}, 147 d; 148 for (d in a) c[d] = a[d]; 149 return c 150 } 151 function D(a, c) { 152 var d = C(a), 153 b; 154 for (b in a) d[b] = c.hasOwnProperty(b) ? c[b] : a[b]; 155 return d 156 } 157 function z(a, c) { 158 var d = C(a), 159 b; 160 for (b in c) d[b] = h.und(a[b]) ? c[b] : a[b]; 161 return d 162 } 163 function T(a) { 164 a = a.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, 165 function(a, c, d, k) { 166 return c + c + d + d + k + k 167 }); 168 var c = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a); 169 a = parseInt(c[1], 16); 170 var d = parseInt(c[2], 16), 171 c = parseInt(c[3], 16); 172 return "rgba(" + a + "," + d + "," + c + ",1)" 173 } 174 function U(a) { 175 function c(a, c, b) { 176 0 > b && (b += 1); 177 1 < b && --b; 178 return b < 1 / 6 ? a + 6 * (c - a) * b: .5 > b ? c: b < 2 / 3 ? a + (c - a) * (2 / 3 - b) * 6 : a 179 } 180 var d = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a); 181 a = parseInt(d[1]) / 360; 182 var b = parseInt(d[2]) / 100, 183 f = parseInt(d[3]) / 100, 184 d = d[4] || 1; 185 if (0 == b) f = b = a = f; 186 else { 187 var n = .5 > f ? f * (1 + b) : f + b - f * b, 188 k = 2 * f - n, 189 f = c(k, n, a + 1 / 3), 190 b = c(k, n, a); 191 a = c(k, n, a - 1 / 3) 192 } 193 return "rgba(" + 255 * f + "," + 255 * b + "," + 255 * a + "," + d + ")" 194 } 195 function y(a) { 196 if (a = /([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a)) return a[2] 197 } 198 function V(a) { 199 if ( - 1 < a.indexOf("translate") || "perspective" === a) return "px"; 200 if ( - 1 < a.indexOf("rotate") || -1 < a.indexOf("skew")) return "deg" 201 } 202 function I(a, c) { 203 return h.fnc(a) ? a(c.target, c.id, c.total) : a 204 } 205 function E(a, c) { 206 if (c in a.style) return getComputedStyle(a).getPropertyValue(c.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()) || "0" 207 } 208 function J(a, c) { 209 if (h.dom(a) && u(W, c)) return "transform"; 210 if (h.dom(a) && (a.getAttribute(c) || h.svg(a) && a[c])) return "attribute"; 211 if (h.dom(a) && "transform" !== c && E(a, c)) return "css"; 212 if (null != a[c]) return "object" 213 } 214 function X(a, c) { 215 var d = V(c), 216 d = -1 < c.indexOf("scale") ? 1 : 0 + d; 217 a = a.style.transform; 218 if (!a) return d; 219 for (var b = [], f = [], n = [], k = /(\w+)\((.+?)\)/g; b = k.exec(a);) f.push(b[1]), 220 n.push(b[2]); 221 a = r(n, 222 function(a, b) { 223 return f[b] === c 224 }); 225 return a.length ? a[0] : d 226 } 227 function K(a, c) { 228 switch (J(a, c)) { 229 case "transform": 230 return X(a, c); 231 case "css": 232 return E(a, c); 233 case "attribute": 234 return a.getAttribute(c) 235 } 236 return a[c] || 0 237 } 238 function L(a, c) { 239 var d = /^(\*=|\+=|-=)/.exec(a); 240 if (!d) return a; 241 var b = y(a) || 0; 242 c = parseFloat(c); 243 a = parseFloat(a.replace(d[0], "")); 244 switch (d[0][0]) { 245 case "+": 246 return c + a + b; 247 case "-": 248 return c - a + b; 249 case "*": 250 return c * a + b 251 } 252 } 253 function F(a, c) { 254 return Math.sqrt(Math.pow(c.x - a.x, 2) + Math.pow(c.y - a.y, 2)) 255 } 256 function M(a) { 257 a = a.points; 258 for (var c = 0, 259 d, b = 0; b < a.numberOfItems; b++) { 260 var f = a.getItem(b); 261 0 < b && (c += F(d, f)); 262 d = f 263 } 264 return c 265 } 266 function N(a) { 267 if (a.getTotalLength) return a.getTotalLength(); 268 switch (a.tagName.toLowerCase()) { 269 case "circle": 270 return 2 * Math.PI * a.getAttribute("r"); 271 case "rect": 272 return 2 * a.getAttribute("width") + 2 * a.getAttribute("height"); 273 case "line": 274 return F({ 275 x: 276 a.getAttribute("x1"), 277 y: a.getAttribute("y1") 278 }, 279 { 280 x: a.getAttribute("x2"), 281 y: a.getAttribute("y2") 282 }); 283 case "polyline": 284 return M(a); 285 case "polygon": 286 var c = a.points; 287 return M(a) + F(c.getItem(c.numberOfItems - 1), c.getItem(0)) 288 } 289 } 290 function Y(a, c) { 291 function d(b) { 292 b = void 0 === b ? 0 : b; 293 return a.el.getPointAtLength(1 <= c + b ? c + b: 0) 294 } 295 var b = d(), 296 f = d( - 1), 297 n = d(1); 298 switch (a.property) { 299 case "x": 300 return b.x; 301 case "y": 302 return b.y; 303 case "angle": 304 return 180 * Math.atan2(n.y - f.y, n.x - f.x) / Math.PI 305 } 306 } 307 function O(a, c) { 308 var d = /-?\d*\.?\d+/g, 309 b; 310 b = h.pth(a) ? a.totalLength: a; 311 if (h.col(b)) if (h.rgb(b)) { 312 var f = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(b); 313 b = f ? "rgba(" + f[1] + ",1)": b 314 } else b = h.hex(b) ? T(b) : h.hsl(b) ? U(b) : void 0; 315 else f = (f = y(b)) ? b.substr(0, b.length - f.length) : b, 316 b = c && !/\s/g.test(b) ? f + c: f; 317 b += ""; 318 return { 319 original: b, 320 numbers: b.match(d) ? b.match(d).map(Number) : [0], 321 strings: h.str(a) || c ? b.split(d) : [] 322 } 323 } 324 function P(a) { 325 a = a ? p(h.arr(a) ? a.map(m) : m(a)) : []; 326 return r(a, 327 function(a, d, b) { 328 return b.indexOf(a) === d 329 }) 330 } 331 function Z(a) { 332 var c = P(a); 333 return c.map(function(a, b) { 334 return { 335 target: a, 336 id: b, 337 total: c.length 338 } 339 }) 340 } 341 function aa(a, c) { 342 var d = C(c); 343 if (h.arr(a)) { 344 var b = a.length; 345 2 !== b || h.obj(a[0]) ? h.fnc(c.duration) || (d.duration = c.duration / b) : a = { 346 value: a 347 } 348 } 349 return m(a).map(function(a, b) { 350 b = b ? 0 : c.delay; 351 a = h.obj(a) && !h.pth(a) ? a: { 352 value: a 353 }; 354 h.und(a.delay) && (a.delay = b); 355 return a 356 }).map(function(a) { 357 return z(a, d) 358 }) 359 } 360 function ba(a, c) { 361 var d = {}, 362 b; 363 for (b in a) { 364 var f = I(a[b], c); 365 h.arr(f) && (f = f.map(function(a) { 366 return I(a, c) 367 }), 1 === f.length && (f = f[0])); 368 d[b] = f 369 } 370 d.duration = parseFloat(d.duration); 371 d.delay = parseFloat(d.delay); 372 return d 373 } 374 function ca(a) { 375 return h.arr(a) ? A.apply(this, a) : Q[a] 376 } 377 function da(a, c) { 378 var d; 379 return a.tweens.map(function(b) { 380 b = ba(b, c); 381 var f = b.value, 382 e = K(c.target, a.name), 383 k = d ? d.to.original: e, 384 k = h.arr(f) ? f[0] : k, 385 w = L(h.arr(f) ? f[1] : f, k), 386 e = y(w) || y(k) || y(e); 387 b.from = O(k, e); 388 b.to = O(w, e); 389 b.start = d ? d.end: a.offset; 390 b.end = b.start + b.delay + b.duration; 391 b.easing = ca(b.easing); 392 b.elasticity = (1E3 - Math.min(Math.max(b.elasticity, 1), 999)) / 1E3; 393 b.isPath = h.pth(f); 394 b.isColor = h.col(b.from.original); 395 b.isColor && (b.round = 1); 396 return d = b 397 }) 398 } 399 function ea(a, c) { 400 return r(p(a.map(function(a) { 401 return c.map(function(b) { 402 var c = J(a.target, b.name); 403 if (c) { 404 var d = da(b, a); 405 b = { 406 type: c, 407 property: b.name, 408 animatable: a, 409 tweens: d, 410 duration: d[d.length - 1].end, 411 delay: d[0].delay 412 } 413 } else b = void 0; 414 return b 415 }) 416 })), 417 function(a) { 418 return ! h.und(a) 419 }) 420 } 421 function R(a, c, d, b) { 422 var f = "delay" === a; 423 return c.length ? (f ? Math.min: Math.max).apply(Math, c.map(function(b) { 424 return b[a] 425 })) : f ? b.delay: d.offset + b.delay + b.duration 426 } 427 function fa(a) { 428 var c = D(ga, a), 429 d = D(S, a), 430 b = Z(a.targets), 431 f = [], 432 e = z(c, d), 433 k; 434 for (k in a) e.hasOwnProperty(k) || "targets" === k || f.push({ 435 name: k, 436 offset: e.offset, 437 tweens: aa(a[k], d) 438 }); 439 a = ea(b, f); 440 return z(c, { 441 children: [], 442 animatables: b, 443 animations: a, 444 duration: R("duration", a, c, d), 445 delay: R("delay", a, c, d) 446 }) 447 } 448 function q(a) { 449 function c() { 450 return window.Promise && new Promise(function(a) { 451 return p = a 452 }) 453 } 454 function d(a) { 455 return g.reversed ? g.duration - a: a 456 } 457 function b(a) { 458 for (var b = 0, 459 c = {}, 460 d = g.animations, 461 f = d.length; b < f;) { 462 var e = d[b], 463 k = e.animatable, 464 h = e.tweens, 465 n = h.length - 1, 466 l = h[n]; 467 n && (l = r(h, 468 function(b) { 469 return a < b.end 470 })[0] || l); 471 for (var h = Math.min(Math.max(a - l.start - l.delay, 0), l.duration) / l.duration, w = isNaN(h) ? 1 : l.easing(h, l.elasticity), h = l.to.strings, p = l.round, n = [], m = void 0, m = l.to.numbers.length, t = 0; t < m; t++) { 472 var x = void 0, 473 x = l.to.numbers[t], 474 q = l.from.numbers[t], 475 x = l.isPath ? Y(l.value, w * x) : q + w * (x - q); 476 p && (l.isColor && 2 < t || (x = Math.round(x * p) / p)); 477 n.push(x) 478 } 479 if (l = h.length) for (m = h[0], w = 0; w < l; w++) p = h[w + 1], 480 t = n[w], 481 isNaN(t) || (m = p ? m + (t + p) : m + (t + " ")); 482 else m = n[0]; 483 ha[e.type](k.target, e.property, m, c, k.id); 484 e.currentValue = m; 485 b++ 486 } 487 if (b = Object.keys(c).length) for (d = 0; d < b; d++) H || (H = E(document.body, "transform") ? "transform": "-webkit-transform"), 488 g.animatables[d].target.style[H] = c[d].join(" "); 489 g.currentTime = a; 490 g.progress = a / g.duration * 100 491 } 492 function f(a) { 493 if (g[a]) g[a](g) 494 } 495 function e() { 496 g.remaining && !0 !== g.remaining && g.remaining-- 497 } 498 function k(a) { 499 var k = g.duration, 500 n = g.offset, 501 w = n + g.delay, 502 r = g.currentTime, 503 x = g.reversed, 504 q = d(a); 505 if (g.children.length) { 506 var u = g.children, 507 v = u.length; 508 if (q >= g.currentTime) for (var G = 0; G < v; G++) u[G].seek(q); 509 else for (; v--;) u[v].seek(q) 510 } 511 if (q >= w || !k) g.began || (g.began = !0, f("begin")), 512 f("run"); 513 if (q > n && q < k) b(q); 514 else if (q <= n && 0 !== r && (b(0), x && e()), q >= k && r !== k || !k) b(k), 515 x || e(); 516 f("update"); 517 a >= k && (g.remaining ? (t = h, "alternate" === g.direction && (g.reversed = !g.reversed)) : (g.pause(), g.completed || (g.completed = !0, f("complete"), "Promise" in window && (p(), m = c()))), l = 0) 518 } 519 a = void 0 === a ? {}: a; 520 var h, t, l = 0, 521 p = null, 522 m = c(), 523 g = fa(a); 524 g.reset = function() { 525 var a = g.direction, 526 c = g.loop; 527 g.currentTime = 0; 528 g.progress = 0; 529 g.paused = !0; 530 g.began = !1; 531 g.completed = !1; 532 g.reversed = "reverse" === a; 533 g.remaining = "alternate" === a && 1 === c ? 2 : c; 534 b(0); 535 for (a = g.children.length; a--;) g.children[a].reset() 536 }; 537 g.tick = function(a) { 538 h = a; 539 t || (t = h); 540 k((l + h - t) * q.speed) 541 }; 542 g.seek = function(a) { 543 k(d(a)) 544 }; 545 g.pause = function() { 546 var a = v.indexOf(g); - 1 < a && v.splice(a, 1); 547 g.paused = !0 548 }; 549 g.play = function() { 550 g.paused && (g.paused = !1, t = 0, l = d(g.currentTime), v.push(g), B || ia()) 551 }; 552 g.reverse = function() { 553 g.reversed = !g.reversed; 554 t = 0; 555 l = d(g.currentTime) 556 }; 557 g.restart = function() { 558 g.pause(); 559 g.reset(); 560 g.play() 561 }; 562 g.finished = m; 563 g.reset(); 564 g.autoplay && g.play(); 565 return g 566 } 567 var ga = { 568 update: void 0, 569 begin: void 0, 570 run: void 0, 571 complete: void 0, 572 loop: 1, 573 direction: "normal", 574 autoplay: !0, 575 offset: 0 576 }, 577 S = { 578 duration: 1E3, 579 delay: 0, 580 easing: "easeOutElastic", 581 elasticity: 500, 582 round: 0 583 }, 584 W = "translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "), 585 H, 586 h = { 587 arr: function(a) { 588 return Array.isArray(a) 589 }, 590 obj: function(a) { 591 return - 1 < Object.prototype.toString.call(a).indexOf("Object") 592 }, 593 pth: function(a) { 594 return h.obj(a) && a.hasOwnProperty("totalLength") 595 }, 596 svg: function(a) { 597 return a instanceof SVGElement 598 }, 599 dom: function(a) { 600 return a.nodeType || h.svg(a) 601 }, 602 str: function(a) { 603 return "string" === typeof a 604 }, 605 fnc: function(a) { 606 return "function" === typeof a 607 }, 608 und: function(a) { 609 return "undefined" === typeof a 610 }, 611 hex: function(a) { 612 return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a) 613 }, 614 rgb: function(a) { 615 return /^rgb/.test(a) 616 }, 617 hsl: function(a) { 618 return /^hsl/.test(a) 619 }, 620 col: function(a) { 621 return h.hex(a) || h.rgb(a) || h.hsl(a) 622 } 623 }, 624 A = function() { 625 function a(a, d, b) { 626 return (((1 - 3 * b + 3 * d) * a + (3 * b - 6 * d)) * a + 3 * d) * a 627 } 628 return function(c, d, b, f) { 629 if (0 <= c && 1 >= c && 0 <= b && 1 >= b) { 630 var e = new Float32Array(11); 631 if (c !== d || b !== f) for (var k = 0; 11 > k; ++k) e[k] = a(.1 * k, c, b); 632 return function(k) { 633 if (c === d && b === f) return k; 634 if (0 === k) return 0; 635 if (1 === k) return 1; 636 for (var h = 0, 637 l = 1; 10 !== l && e[l] <= k; ++l) h += .1; --l; 638 var l = h + (k - e[l]) / (e[l + 1] - e[l]) * .1, 639 n = 3 * (1 - 3 * b + 3 * c) * l * l + 2 * (3 * b - 6 * c) * l + 3 * c; 640 if (.001 <= n) { 641 for (h = 0; 4 > h; ++h) { 642 n = 3 * (1 - 3 * b + 3 * c) * l * l + 2 * (3 * b - 6 * c) * l + 3 * c; 643 if (0 === n) break; 644 var m = a(l, c, b) - k, 645 l = l - m / n 646 } 647 k = l 648 } else if (0 === n) k = l; 649 else { 650 var l = h, 651 h = h + .1, 652 g = 0; 653 do m = l + (h - l) / 2, 654 n = a(m, c, b) - k, 655 0 < n ? h = m: l = m; 656 while (1e-7 < Math.abs(n) && 10 > ++g); 657 k = m 658 } 659 return a(k, d, f) 660 } 661 } 662 } 663 } (), 664 Q = function() { 665 function a(a, b) { 666 return 0 === a || 1 === a ? a: -Math.pow(2, 10 * (a - 1)) * Math.sin(2 * (a - 1 - b / (2 * Math.PI) * Math.asin(1)) * Math.PI / b) 667 } 668 var c = "Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "), 669 d = { 670 In: [[.55, .085, .68, .53], [.55, .055, .675, .19], [.895, .03, .685, .22], [.755, .05, .855, .06], [.47, 0, .745, .715], [.95, .05, .795, .035], [.6, .04, .98, .335], [.6, -.28, .735, .045], a], 671 Out: [[.25, .46, .45, .94], [.215, .61, .355, 1], [.165, .84, .44, 1], [.23, 1, .32, 1], [.39, .575, .565, 1], [.19, 1, .22, 1], [.075, .82, .165, 1], [.175, .885, .32, 1.275], 672 function(b, c) { 673 return 1 - a(1 - b, c) 674 }], 675 InOut: [[.455, .03, .515, .955], [.645, .045, .355, 1], [.77, 0, .175, 1], [.86, 0, .07, 1], [.445, .05, .55, .95], [1, 0, 0, 1], [.785, .135, .15, .86], [.68, -.55, .265, 1.55], 676 function(b, c) { 677 return.5 > b ? a(2 * b, c) / 2 : 1 - a( - 2 * b + 2, c) / 2 678 }] 679 }, 680 b = { 681 linear: A(.25, .25, .75, .75) 682 }, 683 f = {}, 684 e; 685 for (e in d) f.type = e, 686 d[f.type].forEach(function(a) { 687 return function(d, f) { 688 b["ease" + a.type + c[f]] = h.fnc(d) ? d: A.apply($jscomp$this, d) 689 } 690 } (f)), 691 f = { 692 type: f.type 693 }; 694 return b 695 } (), 696 ha = { 697 css: function(a, c, d) { 698 return a.style[c] = d 699 }, 700 attribute: function(a, c, d) { 701 return a.setAttribute(c, d) 702 }, 703 object: function(a, c, d) { 704 return a[c] = d 705 }, 706 transform: function(a, c, d, b, f) { 707 b[f] || (b[f] = []); 708 b[f].push(c + "(" + d + ")") 709 } 710 }, 711 v = [], 712 B = 0, 713 ia = function() { 714 function a() { 715 B = requestAnimationFrame(c) 716 } 717 function c(c) { 718 var b = v.length; 719 if (b) { 720 for (var d = 0; d < b;) v[d] && v[d].tick(c), 721 d++; 722 a() 723 } else cancelAnimationFrame(B), 724 B = 0 725 } 726 return a 727 } (); 728 q.version = "2.2.0"; 729 q.speed = 1; 730 q.running = v; 731 q.remove = function(a) { 732 a = P(a); 733 for (var c = v.length; c--;) for (var d = v[c], b = d.animations, f = b.length; f--;) u(a, b[f].animatable.target) && (b.splice(f, 1), b.length || d.pause()) 734 }; 735 q.getValue = K; 736 q.path = function(a, c) { 737 var d = h.str(a) ? e(a)[0] : a, 738 b = c || 100; 739 return function(a) { 740 return { 741 el: d, 742 property: a, 743 totalLength: N(d) * (b / 100) 744 } 745 } 746 }; 747 q.setDashoffset = function(a) { 748 var c = N(a); 749 a.setAttribute("stroke-dasharray", c); 750 return c 751 }; 752 q.bezier = A; 753 q.easings = Q; 754 q.timeline = function(a) { 755 var c = q(a); 756 c.pause(); 757 c.duration = 0; 758 c.add = function(d) { 759 c.children.forEach(function(a) { 760 a.began = !0; 761 a.completed = !0 762 }); 763 m(d).forEach(function(b) { 764 var d = z(b, D(S, a || {})); 765 d.targets = d.targets || a.targets; 766 b = c.duration; 767 var e = d.offset; 768 d.autoplay = !1; 769 d.direction = c.direction; 770 d.offset = h.und(e) ? b: L(e, b); 771 c.began = !0; 772 c.completed = !0; 773 c.seek(d.offset); 774 d = q(d); 775 d.began = !0; 776 d.completed = !0; 777 d.duration > b && (c.duration = d.duration); 778 c.children.push(d) 779 }); 780 c.seek(0); 781 c.reset(); 782 c.autoplay && c.restart(); 783 return c 784 }; 785 return c 786 }; 787 q.random = function(a, c) { 788 return Math.floor(Math.random() * (c - a + 1)) + a 789 }; 790 return q 791 });