1/*! 2 * @license PreloadJS 3 * Visit http://createjs.com/ for documentation, updates and examples. 4 * 5 * Copyright (c) 2011-2015 gskinner.com, inc. 6 * 7 * Distributed under the terms of the MIT license. 8 * http://www.opensource.org/licenses/mit-license.html 9 * 10 * This notice shall be included in all copies or substantial portions of the Software. 11 */ 12(this.createjs = this.createjs || {}), 13 (function () { 14 "use strict"; 15 var a = (createjs.PreloadJS = createjs.PreloadJS || {}); 16 (a.version = "1.0.0"), (a.buildDate = "Thu, 14 Sep 2017 19:47:47 GMT"); 17 })(), 18 (this.createjs = this.createjs || {}), 19 (createjs.extend = function (a, b) { 20 "use strict"; 21 function c() { 22 this.constructor = a; 23 } 24 return (c.prototype = b.prototype), (a.prototype = new c()); 25 }), 26 (this.createjs = this.createjs || {}), 27 (createjs.promote = function (a, b) { 28 "use strict"; 29 var c = a.prototype, 30 d = (Object.getPrototypeOf && Object.getPrototypeOf(c)) || c.__proto__; 31 if (d) { 32 c[(b += "_") + "constructor"] = d.constructor; 33 for (var e in d) 34 c.hasOwnProperty(e) && "function" == typeof d[e] && (c[b + e] = d[e]); 35 } 36 return a; 37 }), 38 (this.createjs = this.createjs || {}), 39 (createjs.deprecate = function (a, b) { 40 "use strict"; 41 return function () { 42 var c = "Deprecated property or method '" + b + "'. See docs for info."; 43 return ( 44 console && (console.warn ? console.warn(c) : console.log(c)), 45 a && a.apply(this, arguments) 46 ); 47 }; 48 }), 49 (this.createjs = this.createjs || {}), 50 (function () { 51 "use strict"; 52 createjs.proxy = function (a, b) { 53 var c = Array.prototype.slice.call(arguments, 2); 54 return function () { 55 return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c)); 56 }; 57 }; 58 })(), 59 (this.createjs = this.createjs || {}), 60 (createjs.indexOf = function (a, b) { 61 "use strict"; 62 for (var c = 0, d = a.length; d > c; c++) if (b === a[c]) return c; 63 return -1; 64 }), 65 (this.createjs = this.createjs || {}), 66 (function () { 67 "use strict"; 68 function Event(a, b, c) { 69 (this.type = a), 70 (this.target = null), 71 (this.currentTarget = null), 72 (this.eventPhase = 0), 73 (this.bubbles = !!b), 74 (this.cancelable = !!c), 75 (this.timeStamp = new Date().getTime()), 76 (this.defaultPrevented = !1), 77 (this.propagationStopped = !1), 78 (this.immediatePropagationStopped = !1), 79 (this.removed = !1); 80 } 81 var a = Event.prototype; 82 (a.preventDefault = function () { 83 this.defaultPrevented = this.cancelable && !0; 84 }), 85 (a.stopPropagation = function () { 86 this.propagationStopped = !0; 87 }), 88 (a.stopImmediatePropagation = function () { 89 this.immediatePropagationStopped = this.propagationStopped = !0; 90 }), 91 (a.remove = function () { 92 this.removed = !0; 93 }), 94 (a.clone = function () { 95 return new Event(this.type, this.bubbles, this.cancelable); 96 }), 97 (a.set = function (a) { 98 for (var b in a) this[b] = a[b]; 99 return this; 100 }), 101 (a.toString = function () { 102 return "[Event (type=" + this.type + ")]"; 103 }), 104 (createjs.Event = Event); 105 })(), 106 (this.createjs = this.createjs || {}), 107 (function () { 108 "use strict"; 109 function ErrorEvent(a, b, c) { 110 this.Event_constructor("error"), 111 (this.title = a), 112 (this.message = b), 113 (this.data = c); 114 } 115 var a = createjs.extend(ErrorEvent, createjs.Event); 116 (a.clone = function () { 117 return new createjs.ErrorEvent(this.title, this.message, this.data); 118 }), 119 (createjs.ErrorEvent = createjs.promote(ErrorEvent, "Event")); 120 })(), 121 (this.createjs = this.createjs || {}), 122 (function () { 123 "use strict"; 124 function EventDispatcher() { 125 (this._listeners = null), (this._captureListeners = null); 126 } 127 var a = EventDispatcher.prototype; 128 (EventDispatcher.initialize = function (b) { 129 (b.addEventListener = a.addEventListener), 130 (b.on = a.on), 131 (b.removeEventListener = b.off = a.removeEventListener), 132 (b.removeAllEventListeners = a.removeAllEventListeners), 133 (b.hasEventListener = a.hasEventListener), 134 (b.dispatchEvent = a.dispatchEvent), 135 (b._dispatchEvent = a._dispatchEvent), 136 (b.willTrigger = a.willTrigger); 137 }), 138 (a.addEventListener = function (a, b, c) { 139 var d; 140 d = c 141 ? (this._captureListeners = this._captureListeners || {}) 142 : (this._listeners = this._listeners || {}); 143 var e = d[a]; 144 return ( 145 e && this.removeEventListener(a, b, c), 146 (e = d[a]), 147 e ? e.push(b) : (d[a] = [b]), 148 b
149 ); 150 }), 151 (a.on = function (a, b, c, d, e, f) { 152 return ( 153 b.handleEvent && ((c = c || b), (b = b.handleEvent)), 154 (c = c || this), 155 this.addEventListener( 156 a, 157 function (a) { 158 b.call(c, a, e), d && a.remove(); 159 }, 160 f 161 ) 162 ); 163 }), 164 (a.removeEventListener = function (a, b, c) { 165 var d = c ? this._captureListeners : this._listeners; 166 if (d) { 167 var e = d[a]; 168 if (e) 169 for (var f = 0, g = e.length; g > f; f++) 170 if (e[f] == b) { 171 1 == g ? delete d[a] : e.splice(f, 1); 172 break; 173 } 174 } 175 }), 176 (a.off = a.removeEventListener), 177 (a.removeAllEventListeners = function (a) { 178 a 179 ? (this._listeners && delete this._listeners[a], 180 this._captureListeners && delete this._captureListeners[a]) 181 : (this._listeners = this._captureListeners = null); 182 }), 183 (a.dispatchEvent = function (a, b, c) { 184 if ("string" == typeof a) { 185 var d = this._listeners; 186 if (!(b || (d && d[a]))) return !0; 187 a = new createjs.Event(a, b, c); 188 } else a.target && a.clone && (a = a.clone()); 189 try { 190 a.target = this; 191 } catch (e) {} 192 if (a.bubbles && this.parent) { 193 for (var f = this, g = [f]; f.parent; ) g.push((f = f.parent)); 194 var h, 195 i = g.length; 196 for (h = i - 1; h >= 0 && !a.propagationStopped; h--) 197 g[h]._dispatchEvent(a, 1 + (0 == h)); 198 for (h = 1; i > h && !a.propagationStopped; h++) g[h]._dispatchEvent(a, 3); 199 } else this._dispatchEvent(a, 2); 200 return !a.defaultPrevented; 201 }), 202 (a.hasEventListener = function (a) { 203 var b = this._listeners, 204 c = this._captureListeners; 205 return !!((b && b[a]) || (c && c[a])); 206 }), 207 (a.willTrigger = function (a) { 208 for (var b = this; b; ) { 209 if (b.hasEventListener(a)) return !0; 210 b = b.parent; 211 } 212 return !1; 213 }), 214 (a.toString = function () { 215 return "[EventDispatcher]"; 216 }), 217 (a._dispatchEvent = function (a, b) { 218 var c, 219 d, 220 e = 2 >= b ? this._captureListeners : this._listeners; 221 if (a && e && (d = e[a.type]) && (c = d.length)) { 222 try { 223 a.currentTarget = this; 224 } catch (f) {} 225 try { 226 a.eventPhase = 0 | b; 227 } catch (f) {} 228 (a.removed = !1), (d = d.slice()); 229 for (var g = 0; c > g && !a.immediatePropagationStopped; g++) { 230 var h = d[g]; 231 h.handleEvent ? h.handleEvent(a) : h(a), 232 a.removed && (this.off(a.type, h, 1 == b), (a.removed = !1)); 233 } 234 } 235 2 === b && this._dispatchEvent(a, 2.1); 236 }), 237 (createjs.EventDispatcher = EventDispatcher); 238 })(), 239 (this.createjs = this.createjs || {}), 240 (function () { 241 "use strict"; 242 function ProgressEvent(a, b) { 243 this.Event_constructor("progress"), 244 (this.loaded = a), 245 (this.total = null == b ? 1 : b), 246 (this.progress = 0 == b ? 0 : this.loaded / this.total); 247 } 248 var a = createjs.extend(ProgressEvent, createjs.Event); 249 (a.clone = function () { 250 return new createjs.ProgressEvent(this.loaded, this.total); 251 }), 252 (createjs.ProgressEvent = createjs.promote(ProgressEvent, "Event")); 253 })(window), 254 function () { 255 function a(b, d) { 256 function f(a) { 257 if (f[a] !== q) return f[a]; 258 var b; 259 if ("bug-string-char-index" == a) b = "a" != "a"[0]; 260 else if ("json" == a) b = f("json-stringify") && f("json-parse"); 261 else { 262 var c, 263 e = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'; 264 if ("json-stringify" == a) { 265 var i = d.stringify, 266 k = "function" == typeof i && t; 267 if (k) { 268 (c = function () { 269 return 1; 270 }).toJSON = c; 271 try { 272 k = 273 "0" === i(0) && 274 "0" === i(new g()) && 275 '""' == i(new h()) && 276 i(s) === q && 277 i(q) === q && 278 i() === q && 279 "1" === i(c) && 280 "[1]" == i([c]) && 281 "[null]" == i([q]) && 282 "null" == i(null) && 283 "[null,null,null]" == i([q, s, null]) && 284 i({ a: [c, !0, !1, null, "\x00\b\n\f\r "] }) == e && 285 "1" === i(null, c) && 286 "[\n 1,\n 2\n]" == i([1, 2], null, 1) && 287 '"-271821-04-20T00:00:00.000Z"' == i(new j(-864e13)) && 288 '"+275760-09-13T00:00:00.000Z"' == i(new j(864e13)) && 289 '"-000001-01-01T00:00:00.000Z"' == i(new j(-621987552e5)) && 290 '"1969-12-31T23:59:59.999Z"' == i(new j(-1)); 291 } catch (l) { 292 k = !1; 293 } 294 } 295 b = k; 296 } 297 if ("json-parse" == a) { 298 var m = d.parse; 299 if ("function" == typeof m) 300 try { 301 if (0 === m("0") && !m(!1)) { 302 c = m(e); 303 var n = 5 == c.a.length && 1 === c.a[0]; 304 if (n) { 305 try { 306 n = !m('" "'); 307 } catch (l) {} 308 if (n) 309 try { 310 n = 1 !== m("01"); 311 } catch (l) {} 312 if (n) 313 try { 314 n = 1 !== m("1."); 315 } catch (l) {} 316 } 317 } 318 } catch (l) { 319 n = !1; 320 } 321 b = n; 322 } 323 } 324 return (f[a] = !!b); 325 } 326 b || (b = e.Object()), d || (d = e.Object()); 327 var g = b.Number || e.Number, 328 h = b.String || e.String, 329 i = b.Object || e.Object, 330 j = b.Date || e.Date, 331 k = b.SyntaxError || e.SyntaxError, 332 l = b.TypeError || e.TypeError, 333 m = b.Math || e.Math, 334 n = b.JSON || e.JSON; 335 "object" == typeof n && n && ((d.stringify = n.stringify), (d.parse = n.parse)); 336 var o, 337 p, 338 q, 339 r = i.prototype, 340 s = r.toString, 341 t = new j(-0xc782b5b800cec);
342 try { 343 t = 344 -109252 == t.getUTCFullYear() && 345 0 === t.getUTCMonth() && 346 1 === t.getUTCDate() && 347 10 == t.getUTCHours() && 348 37 == t.getUTCMinutes() && 349 6 == t.getUTCSeconds() && 350 708 == t.getUTCMilliseconds(); 351 } catch (u) {} 352 if (!f("json")) { 353 var v = "[object Function]", 354 w = "[object Date]", 355 x = "[object Number]", 356 y = "[object String]", 357 z = "[object Array]", 358 A = "[object Boolean]", 359 B = f("bug-string-char-index"); 360 if (!t) 361 var C = m.floor, 362 D = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], 363 E = function (a, b) { 364 return ( 365 D[b] + 366 365 * (a - 1970) + 367 C((a - 1969 + (b = +(b > 1))) / 4) - 368 C((a - 1901 + b) / 100) + 369 C((a - 1601 + b) / 400) 370 ); 371 }; 372 if ( 373 ((o = r.hasOwnProperty) || 374 (o = function (a) { 375 var b, 376 c = {}; 377 return ( 378 ((c.__proto__ = null), (c.__proto__ = { toString: 1 }), c).toString != s 379 ? (o = function (a) { 380 var b = this.__proto__, 381 c = a in ((this.__proto__ = null), this); 382 return (this.__proto__ = b), c; 383 }) 384 : ((b = c.constructor), 385 (o = function (a) { 386 var c = (this.constructor || b).prototype; 387 return a in this && !(a in c && this[a] === c[a]); 388 })), 389 (c = null), 390 o.call(this, a) 391 ); 392 }), 393 (p = function (a, b) { 394 var d, 395 e, 396 f, 397 g = 0; 398 ((d = function () { 399 this.valueOf = 0; 400 }).prototype.valueOf = 0), 401 (e = new d()); 402 for (f in e) o.call(e, f) && g++; 403 return ( 404 (d = e = null), 405 g 406 ? (p = 407 2 == g 408 ? function (a, b) { 409 var c, 410 d = {}, 411 e = s.call(a) == v; 412 for (c in a) 413 (e && "prototype" == c) || 414 o.call(d, c) || 415 !(d[c] = 1) || 416 !o.call(a, c) || 417 b(c); 418 } 419 : function (a, b) { 420 var c, 421 d, 422 e = s.call(a) == v; 423 for (c in a) 424 (e && "prototype" == c) || 425 !o.call(a, c) || 426 (d = "constructor" === c) || 427 b(c); 428 (d || o.call(a, (c = "constructor"))) && b(c); 429 }) 430 : ((e = [ 431 "valueOf", 432 "toString", 433 "toLocaleString", 434 "propertyIsEnumerable", 435 "isPrototypeOf", 436 "hasOwnProperty", 437 "constructor", 438 ]), 439 (p = function (a, b) { 440 var d, 441 f, 442 g = s.call(a) == v, 443 h = 444 (!g && 445 "function" != typeof a.constructor && 446 c[typeof a.hasOwnProperty] && 447 a.hasOwnProperty) || 448 o; 449 for (d in a) (g && "prototype" == d) || !h.call(a, d) || b(d); 450 for (f = e.length; (d = e[--f]); h.call(a, d) && b(d)); 451 })), 452 p(a, b) 453 ); 454 }), 455 !f("json-stringify")) 456 ) { 457 var F = { 458 92: "\\\\", 459 34: '\\"', 460 8: "\\b", 461 12: "\\f", 462 10: "\\n", 463 13: "\\r", 464 9: "\\t", 465 }, 466 G = "000000", 467 H = function (a, b) { 468 return (G + (b || 0)).slice(-a); 469 }, 470 I = "\\u00", 471 J = function (a) { 472 for ( 473 var b = '"', 474 c = 0, 475 d = a.length, 476 e = !B || d > 10, 477 f = e && (B ? a.split("") : a); 478 d > c; 479 c++ 480 ) { 481 var g = a.charCodeAt(c);
482 switch (g) { 483 case 8: 484 case 9: 485 case 10: 486 case 12: 487 case 13: 488 case 34: 489 case 92: 490 b += F[g]; 491 break; 492 default: 493 if (32 > g) { 494 b += I + H(2, g.toString(16)); 495 break; 496 } 497 b += e ? f[c] : a.charAt(c); 498 } 499 } 500 return b + '"'; 501 }, 502 K = function (a, b, c, d, e, f, g) { 503 var h, i, j, k, m, n, r, t, u, v, B, D, F, G, I, L; 504 try { 505 h = b[a]; 506 } catch (M) {} 507 if ("object" == typeof h && h) 508 if (((i = s.call(h)), i != w || o.call(h, "toJSON"))) 509 "function" == typeof h.toJSON && 510 ((i != x && i != y && i != z) || o.call(h, "toJSON")) && 511 (h = h.toJSON(a)); 512 else if (h > -1 / 0 && 1 / 0 > h) { 513 if (E) { 514 for ( 515 m = C(h / 864e5), j = C(m / 365.2425) + 1970 - 1; 516 E(j + 1, 0) <= m; 517 j++ 518 ); 519 for (k = C((m - E(j, 0)) / 30.42); E(j, k + 1) <= m; k++); 520 (m = 1 + m - E(j, k)), 521 (n = ((h % 864e5) + 864e5) % 864e5), 522 (r = C(n / 36e5) % 24), 523 (t = C(n / 6e4) % 60), 524 (u = C(n / 1e3) % 60), 525 (v = n % 1e3); 526 } else 527 (j = h.getUTCFullYear()), 528 (k = h.getUTCMonth()), 529 (m = h.getUTCDate()), 530 (r = h.getUTCHours()), 531 (t = h.getUTCMinutes()), 532 (u = h.getUTCSeconds()), 533 (v = h.getUTCMilliseconds()); 534 h = 535 (0 >= j || j >= 1e4 536 ? (0 > j ? "-" : "+") + H(6, 0 > j ? -j : j) 537 : H(4, j)) + 538 "-" + 539 H(2, k + 1) + 540 "-" + 541 H(2, m) + 542 "T" + 543 H(2, r) + 544 ":" + 545 H(2, t) + 546 ":" + 547 H(2, u) + 548 "." + 549 H(3, v) + 550 "Z"; 551 } else h = null; 552 if ((c && (h = c.call(b, a, h)), null === h)) return "null"; 553 if (((i = s.call(h)), i == A)) return "" + h; 554 if (i == x) return h > -1 / 0 && 1 / 0 > h ? "" + h : "null"; 555 if (i == y) return J("" + h); 556 if ("object" == typeof h) { 557 for (G = g.length; G--; ) if (g[G] === h) throw l(); 558 if ((g.push(h), (B = []), (I = f), (f += e), i == z)) { 559 for (F = 0, G = h.length; G > F; F++) 560 (D = K(F, h, c, d, e, f, g)), B.push(D === q ? "null" : D); 561 L = B.length 562 ? e 563 ? "[\n" + f + B.join(",\n" + f) + "\n" + I + "]" 564 : "[" + B.join(",") + "]" 565 : "[]"; 566 } else 567 p(d || h, function (a) { 568 var b = K(a, h, c, d, e, f, g); 569 b !== q && B.push(J(a) + ":" + (e ? " " : "") + b); 570 }), 571 (L = B.length 572 ? e 573 ? "{\n" + f + B.join(",\n" + f) + "\n" + I + "}" 574 : "{" + B.join(",") + "}" 575 : "{}"); 576 return g.pop(), L; 577 } 578 }; 579 d.stringify = function (a, b, d) { 580 var e, f, g, h; 581 if (c[typeof b] && b) 582 if ((h = s.call(b)) == v) f = b; 583 else if (h == z) { 584 g = {}; 585 for ( 586 var i, j = 0, k = b.length; 587 k > j; 588 i = b[j++], h = s.call(i), (h == y || h == x) && (g[i] = 1) 589 ); 590 } 591 if (d) 592 if ((h = s.call(d)) == x) { 593 if ((d -= d % 1) > 0) 594 for (e = "", d > 10 && (d = 10); e.length < d; e += " "); 595 } else h == y && (e = d.length <= 10 ? d : d.slice(0, 10)); 596 return K("", ((i = {}), (i[""] = a), i), f, g, e, "", []); 597 }; 598 } 599 if (!f("json-parse")) { 600 var L, 601 M, 602 N = h.fromCharCode, 603 O = { 604 92: "\\", 605 34: '"', 606 47: "/", 607 98: "\b", 608 116: " ", 609 110: "\n", 610 102: "\f", 611 114: "\r", 612 }, 613 P = function () { 614 throw ((L = M = null), k()); 615 }, 616 Q = function () { 617 for (var a, b, c, d, e, f = M, g = f.length; g > L; ) 618 switch ((e = f.charCodeAt(L))) { 619 case 9: 620 case 10: 621 case 13: 622 case 32: 623 L++; 624 break; 625 case 123: 626 case 125: 627 case 91: 628 case 93: 629 case 58: 630 case 44: 631 return (a = B ? f.charAt(L) : f[L]), L++, a; 632 case 34: 633 for (a = "@", L++; g > L; ) 634 if (((e = f.charCodeAt(L)), 32 > e)) P(); 635 else if (92 == e) 636 switch ((e = f.charCodeAt(++L))) { 637 case 92: 638 case 34: 639 case 47: 640 case 98: 641 case 116: 642 case 110: 643 case 102: 644 case 114: 645 (a += O[e]), L++; 646 break; 647 case 117: 648 for (b = ++L, c = L + 4; c > L; L++) 649 (e = f.charCodeAt(L)), 650 (e >= 48 && 57 >= e) || 651 (e >= 97 && 102 >= e) || 652 (e >= 65 && 70 >= e) || 653 P(); 654 a += N("0x" + f.slice(b, L)); 655 break; 656 default: 657 P(); 658 } 659 else { 660 if (34 == e) break; 661 for ( 662 e = f.charCodeAt(L), b = L; 663 e >= 32 && 92 != e && 34 != e; 664 665 ) 666 e = f.charCodeAt(++L); 667 a += f.slice(b, L); 668 } 669 if (34 == f.charCodeAt(L)) return L++, a; 670 P(); 671 default: 672 if ( 673 ((b = L), 674 45 == e && ((d = !0), (e = f.charCodeAt(++L))), 675 e >= 48 && 57 >= e) 676 ) { 677 for ( 678 48 == e && 679 ((e = f.charCodeAt(L + 1)), e >= 48 && 57 >= e) && 680 P(), 681 d = !1; 682 g > L && ((e = f.charCodeAt(L)), e >= 48 && 57 >= e); 683 L++ 684 ); 685 if (46 == f.charCodeAt(L)) { 686 for ( 687 c = ++L; 688 g > c && ((e = f.charCodeAt(c)), e >= 48 && 57 >= e); 689 c++ 690 ); 691 c == L && P(), (L = c); 692 } 693 if (((e = f.charCodeAt(L)), 101 == e || 69 == e)) { 694 for ( 695 e = f.charCodeAt(++L), (43 == e || 45 == e) && L++, c = L; 696 g > c && ((e = f.charCodeAt(c)), e >= 48 && 57 >= e); 697 c++ 698 ); 699 c == L && P(), (L = c); 700 } 701 return +f.slice(b, L); 702 } 703 if ((d && P(), "true" == f.slice(L, L + 4))) return (L += 4), !0; 704 if ("false" == f.slice(L, L + 5)) return (L += 5), !1; 705 if ("null" == f.slice(L, L + 4)) return (L += 4), null; 706 P(); 707 } 708 return "$"; 709 }, 710 R = function (a) { 711 var b, c; 712 if (("$" == a && P(), "string" == typeof a)) { 713 if ("@" == (B ? a.charAt(0) : a[0])) return a.slice(1); 714 if ("[" == a) { 715 for (b = []; (a = Q()), "]" != a; c || (c = !0)) 716 c && ("," == a ? ((a = Q()), "]" == a && P()) : P()), 717 "," == a && P(), 718 b.push(R(a)); 719 return b; 720 } 721 if ("{" == a) { 722 for (b = {}; (a = Q()), "}" != a; c || (c = !0)) 723 c && ("," == a ? ((a = Q()), "}" == a && P()) : P()), 724 ("," == a || 725 "string" != typeof a || 726 "@" != (B ? a.charAt(0) : a[0]) || 727 ":" != Q()) && 728 P(), 729 (b[a.slice(1)] = R(Q())); 730 return b; 731 } 732 P(); 733 } 734 return a; 735 }, 736 S = function (a, b, c) { 737 var d = T(a, b, c); 738 d === q ? delete a[b] : (a[b] = d); 739 }, 740 T = function (a, b, c) { 741 var d, 742 e = a[b]; 743 if ("object" == typeof e && e) 744 if (s.call(e) == z) for (d = e.length; d--; ) S(e, d, c); 745 else 746 p(e, function (a) { 747 S(e, a, c); 748 }); 749 return c.call(a, b, e); 750 }; 751 d.parse = function (a, b) { 752 var c, d; 753 return ( 754 (L = 0), 755 (M = "" + a), 756 (c = R(Q())), 757 "$" != Q() && P(), 758 (L = M = null), 759 b && s.call(b) == v ? T(((d = {}), (d[""] = c), d), "", b) : c 760 ); 761 }; 762 } 763 } 764 return (d.runInContext = a), d; 765 } 766 var b = "function" == typeof define && define.amd, 767 c = { function: !0, object: !0 }, 768 d = c[typeof exports] && exports && !exports.nodeType && exports, 769 e = (c[typeof window] && window) || this, 770 f = 771 d && 772 c[typeof module] && 773 module && 774 !module.nodeType && 775 "object" == typeof global && 776 global; 777 if ((!f || (f.global !== f && f.window !== f && f.self !== f) || (e = f), d && !b)) 778 a(e, d); 779 else { 780 var g = e.JSON, 781 h = e.JSON3, 782 i = !1, 783 j = a( 784 e, 785 (e.JSON3 = { 786 noConflict: function () { 787 return i || ((i = !0), (e.JSON = g), (e.JSON3 = h), (g = h = null)), j; 788 }, 789 }) 790 ); 791 e.JSON = { parse: j.parse, stringify: j.stringify }; 792 } 793 b && 794 define(function () { 795 return j; 796 }); 797 }.call(this), 798 (function () { 799 var a = {}; 800 (a.a = function () { 801 return a.el("a"); 802 }), 803 (a.svg = function () { 804 return a.el("svg"); 805 }), 806 (a.object = function () { 807 return a.el("object"); 808 }), 809 (a.image = function () { 810 return a.el("image"); 811 }), 812 (a.img = function () { 813 return a.el("img"); 814 }), 815 (a.style = function () { 816 return a.el("style"); 817 }), 818 (a.link = function () { 819 return a.el("link"); 820 }), 821 (a.script = function () { 822 return a.el("script"); 823 }), 824 (a.audio = function () { 825 return a.el("audio"); 826 }), 827 (a.video = function () { 828 return a.el("video"); 829 }), 830 (a.text = function (a) { 831 return document.createTextNode(a); 832 }), 833 (a.el = function (a) { 834 return document.createElement(a); 835 }), 836 (createjs.Elements = a);
837 })(), 838 (function () { 839 var a = {}; 840 (a.ABSOLUTE_PATT = /^(?:\w+:)?\/{2}/i), 841 (a.RELATIVE_PATT = /^[.\/]*?\//i), 842 (a.EXTENSION_PATT = /\/?[^\/]+\.(\w{1,5})$/i), 843 (a.parseURI = function (b) { 844 var c = { 845 absolute: !1, 846 relative: !1, 847 protocol: null, 848 hostname: null, 849 port: null, 850 pathname: null, 851 search: null, 852 hash: null, 853 host: null, 854 }; 855 if (null == b) return c; 856 var d = createjs.Elements.a(); 857 d.href = b; 858 for (var e in c) e in d && (c[e] = d[e]); 859 var f = b.indexOf("?"); 860 f > -1 && (b = b.substr(0, f)); 861 var g; 862 return ( 863 a.ABSOLUTE_PATT.test(b) 864 ? (c.absolute = !0) 865 : a.RELATIVE_PATT.test(b) && (c.relative = !0), 866 (g = b.match(a.EXTENSION_PATT)) && (c.extension = g[1].toLowerCase()), 867 c 868 ); 869 }), 870 (a.formatQueryString = function (a, b) { 871 if (null == a) throw new Error("You must specify data."); 872 var c = []; 873 for (var d in a) c.push(d + "=" + escape(a[d])); 874 return b && (c = c.concat(b)), c.join("&"); 875 }), 876 (a.buildURI = function (a, b) { 877 if (null == b) return a; 878 var c = [], 879 d = a.indexOf("?"); 880 if (-1 != d) { 881 var e = a.slice(d + 1); 882 c = c.concat(e.split("&")); 883 } 884 return -1 != d 885 ? a.slice(0, d) + "?" + this.formatQueryString(b, c) 886 : a + "?" + this.formatQueryString(b, c); 887 }), 888 (a.isCrossDomain = function (a) { 889 var b = createjs.Elements.a(); 890 b.href = a.src; 891 var c = createjs.Elements.a(); 892 c.href = location.href; 893 var d = 894 "" != b.hostname && 895 (b.port != c.port || b.protocol != c.protocol || b.hostname != c.hostname); 896 return d; 897 }), 898 (a.isLocal = function (a) { 899 var b = createjs.Elements.a(); 900 return (b.href = a.src), "" == b.hostname && "file:" == b.protocol; 901 }), 902 (createjs.URLUtils = a); 903 })(), 904 (function () { 905 var a = { container: null }; 906 (a.appendToHead = function (b) { 907 a.getHead().appendChild(b); 908 }), 909 (a.appendToBody = function (b) { 910 if (null == a.container) { 911 (a.container = document.createElement("div")), 912 (a.container.id = "preloadjs-container"); 913 var c = a.container.style; 914 (c.visibility = "hidden"), 915 (c.position = "absolute"), 916 (c.width = a.container.style.height = "10px"), 917 (c.overflow = "hidden"), 918 (c.transform = 919 c.msTransform = 920 c.webkitTransform = 921 c.oTransform = 922 "translate(-10px, -10px)"), 923 a.getBody().appendChild(a.container); 924 } 925 a.container.appendChild(b); 926 }), 927 (a.getHead = function () { 928 return document.head || document.getElementsByTagName("head")[0]; 929 }), 930 (a.getBody = function () { 931 return document.body || document.getElementsByTagName("body")[0]; 932 }), 933 (a.removeChild = function (a) { 934 a.parent && a.parent.removeChild(a); 935 }), 936 (a.isImageTag = function (a) { 937 return a instanceof HTMLImageElement; 938 }), 939 (a.isAudioTag = function (a) { 940 return window.HTMLAudioElement ? a instanceof HTMLAudioElement : !1; 941 }), 942 (a.isVideoTag = function (a) { 943 return window.HTMLVideoElement ? a instanceof HTMLVideoElement : !1; 944 }), 945 (createjs.DomUtils = a); 946 })(), 947 (function () { 948 var a = {}; 949 (a.parseXML = function (a) { 950 var b = null; 951 try { 952 if (window.DOMParser) { 953 var c = new DOMParser(); 954 b = c.parseFromString(a, "text/xml"); 955 } 956 } catch (d) {} 957 if (!b) 958 try { 959 (b = new ActiveXObject("Microsoft.XMLDOM")), (b.async = !1), b.loadXML(a); 960 } catch (d) { 961 b = null; 962 } 963 return b; 964 }), 965 (a.parseJSON = function (a) { 966 if (null == a) return null; 967 try { 968 return JSON.parse(a); 969 } catch (b) { 970 throw b; 971 } 972 }), 973 (createjs.DataUtils = a);
974 })(), 975 (this.createjs = this.createjs || {}), 976 (function () { 977 var a = {}; 978 (a.BINARY = "binary"), 979 (a.CSS = "css"), 980 (a.FONT = "font"), 981 (a.FONTCSS = "fontcss"), 982 (a.IMAGE = "image"), 983 (a.JAVASCRIPT = "javascript"), 984 (a.JSON = "json"), 985 (a.JSONP = "jsonp"), 986 (a.MANIFEST = "manifest"), 987 (a.SOUND = "sound"), 988 (a.VIDEO = "video"), 989 (a.SPRITESHEET = "spritesheet"), 990 (a.SVG = "svg"), 991 (a.TEXT = "text"), 992 (a.XML = "xml"), 993 (createjs.Types = a); 994 })(), 995 (this.createjs = this.createjs || {}), 996 (function () { 997 var a = {}; 998 (a.POST = "POST"), (a.GET = "GET"), (createjs.Methods = a); 999 })(), 1000 (this.createjs = this.createjs || {}), 1001 (function () { 1002 "use strict"; 1003 function LoadItem() { 1004 (this.src = null), 1005 (this.type = null), 1006 (this.id = null), 1007 (this.maintainOrder = !1), 1008 (this.callback = null), 1009 (this.data = null), 1010 (this.method = createjs.Methods.GET), 1011 (this.values = null), 1012 (this.headers = null), 1013 (this.withCredentials = !1), 1014 (this.mimeType = null), 1015 (this.crossOrigin = null), 1016 (this.loadTimeout = b.LOAD_TIMEOUT_DEFAULT); 1017 } 1018 var a = (LoadItem.prototype = {}), 1019 b = LoadItem; 1020 (b.LOAD_TIMEOUT_DEFAULT = 8e3), 1021 (b.create = function (a) { 1022 if ("string" == typeof a) { 1023 var c = new LoadItem(); 1024 return (c.src = a), c; 1025 } 1026 if (a instanceof b) return a; 1027 if (a instanceof Object && a.src) 1028 return null == a.loadTimeout && (a.loadTimeout = b.LOAD_TIMEOUT_DEFAULT), a; 1029 throw new Error("Type not recognized."); 1030 }), 1031 (a.set = function (a) { 1032 for (var b in a) this[b] = a[b]; 1033 return this; 1034 }), 1035 (createjs.LoadItem = b); 1036 })(), 1037 (function () { 1038 var a = {}; 1039 (a.isBinary = function (a) { 1040 switch (a) { 1041 case createjs.Types.IMAGE: 1042 case createjs.Types.BINARY: 1043 return !0; 1044 default: 1045 return !1; 1046 } 1047 }), 1048 (a.isText = function (a) { 1049 switch (a) { 1050 case createjs.Types.TEXT: 1051 case createjs.Types.JSON: 1052 case createjs.Types.MANIFEST: 1053 case createjs.Types.XML: 1054 case createjs.Types.CSS: 1055 case createjs.Types.SVG: 1056 case createjs.Types.JAVASCRIPT: 1057 case createjs.Types.SPRITESHEET: 1058 return !0; 1059 default: 1060 return !1; 1061 } 1062 }), 1063 (a.getTypeByExtension = function (a) { 1064 if (null == a) return createjs.Types.TEXT; 1065 switch (a.toLowerCase()) { 1066 case "jpeg": 1067 case "jpg": 1068 case "gif": 1069 case "png": 1070 case "webp": 1071 case "bmp": 1072 return createjs.Types.IMAGE; 1073 case "ogg": 1074 case "mp3": 1075 case "webm": 1076 return createjs.Types.SOUND; 1077 case "mp4": 1078 case "webm": 1079 case "ts": 1080 return createjs.Types.VIDEO; 1081 case "json": 1082 return createjs.Types.JSON; 1083 case "xml": 1084 return createjs.Types.XML; 1085 case "css": 1086 return createjs.Types.CSS; 1087 case "js": 1088 return createjs.Types.JAVASCRIPT; 1089 case "svg": 1090 return createjs.Types.SVG; 1091 default: 1092 return createjs.Types.TEXT; 1093 } 1094 }), 1095 (createjs.RequestUtils = a); 1096 })(), 1097 (this.createjs = this.createjs || {}), 1098 (function () { 1099 "use strict"; 1100 function AbstractLoader(a, b, c) { 1101 this.EventDispatcher_constructor(), 1102 (this.loaded = !1), 1103 (this.canceled = !1), 1104 (this.progress = 0), 1105 (this.type = c), 1106 (this.resultFormatter = null), 1107 (this._item = a ? createjs.LoadItem.create(a) : null), 1108 (this._preferXHR = b), 1109 (this._result = null), 1110 (this._rawResult = null), 1111 (this._loadedItems = null), 1112 (this._tagSrcAttribute = null), 1113 (this._tag = null); 1114 } 1115 var a = createjs.extend(AbstractLoader, createjs.EventDispatcher), 1116 b = AbstractLoader; 1117 try { 1118 Object.defineProperties(b, { 1119 POST: { 1120 get: createjs.deprecate(function () { 1121 return createjs.Methods.POST; 1122 }, "AbstractLoader.POST"), 1123 }, 1124 GET: { 1125 get: createjs.deprecate(function () { 1126 return createjs.Methods.GET; 1127 }, "AbstractLoader.GET"), 1128 }, 1129 BINARY: { 1130 get: createjs.deprecate(function () { 1131 return createjs.Types.BINARY; 1132 }, "AbstractLoader.BINARY"), 1133 }, 1134 CSS: { 1135 get: createjs.deprecate(function () { 1136 return createjs.Types.CSS; 1137 }, "AbstractLoader.CSS"), 1138 }, 1139 FONT: { 1140 get: createjs.deprecate(function () { 1141 return createjs.Types.FONT; 1142 }, "AbstractLoader.FONT"), 1143 }, 1144 FONTCSS: { 1145 get: createjs.deprecate(function () { 1146 return createjs.Types.FONTCSS; 1147 }, "AbstractLoader.FONTCSS"), 1148 }, 1149 IMAGE: { 1150 get: createjs.deprecate(function () { 1151 return createjs.Types.IMAGE; 1152 }, "AbstractLoader.IMAGE"), 1153 }, 1154 JAVASCRIPT: { 1155 get: createjs.deprecate(function () { 1156 return createjs.Types.JAVASCRIPT; 1157 }
1157, "AbstractLoader.JAVASCRIPT"), 1158 }, 1159 JSON: { 1160 get: createjs.deprecate(function () { 1161 return createjs.Types.JSON; 1162 }, "AbstractLoader.JSON"), 1163 }, 1164 JSONP: { 1165 get: createjs.deprecate(function () { 1166 return createjs.Types.JSONP; 1167 }, "AbstractLoader.JSONP"), 1168 }, 1169 MANIFEST: { 1170 get: createjs.deprecate(function () { 1171 return createjs.Types.MANIFEST; 1172 }, "AbstractLoader.MANIFEST"), 1173 }, 1174 SOUND: { 1175 get: createjs.deprecate(function () { 1176 return createjs.Types.SOUND; 1177 }, "AbstractLoader.SOUND"), 1178 }, 1179 VIDEO: { 1180 get: createjs.deprecate(function () { 1181 return createjs.Types.VIDEO; 1182 }, "AbstractLoader.VIDEO"), 1183 }, 1184 SPRITESHEET: { 1185 get: createjs.deprecate(function () { 1186 return createjs.Types.SPRITESHEET; 1187 }, "AbstractLoader.SPRITESHEET"), 1188 }, 1189 SVG: { 1190 get: createjs.deprecate(function () { 1191 return createjs.Types.SVG; 1192 }, "AbstractLoader.SVG"), 1193 }, 1194 TEXT: { 1195 get: createjs.deprecate(function () { 1196 return createjs.Types.TEXT; 1197 }, "AbstractLoader.TEXT"), 1198 }, 1199 XML: { 1200 get: createjs.deprecate(function () { 1201 return createjs.Types.XML; 1202 }, "AbstractLoader.XML"), 1203 }, 1204 }); 1205 } catch (c) {} 1206 (a.getItem = function () { 1207 return this._item; 1208 }), 1209 (a.getResult = function (a) { 1210 return a ? this._rawResult : this._result; 1211 }), 1212 (a.getTag = function () { 1213 return this._tag; 1214 }), 1215 (a.setTag = function (a) { 1216 this._tag = a; 1217 }), 1218 (a.load = function () { 1219 this._createRequest(), 1220 this._request.on("complete", this, this), 1221 this._request.on("progress", this, this), 1222 this._request.on("loadStart", this, this), 1223 this._request.on("abort", this, this), 1224 this._request.on("timeout", this, this), 1225 this._request.on("error", this, this); 1226 var a = new createjs.Event("initialize"); 1227 (a.loader = this._request), this.dispatchEvent(a), this._request.load(); 1228 }), 1229 (a.cancel = function () { 1230 (this.canceled = !0), this.destroy(); 1231 }), 1232 (a.destroy = function () { 1233 this._request && 1234 (this._request.removeAllEventListeners(), this._request.destroy()), 1235 (this._request = null), 1236 (this._item = null), 1237 (this._rawResult = null), 1238 (this._result = null), 1239 (this._loadItems = null), 1240 this.removeAllEventListeners(); 1241 }), 1242 (a.getLoadedItems = function () { 1243 return this._loadedItems; 1244 }), 1245 (a._createRequest = function () { 1246 this._request = this._preferXHR 1247 ? new createjs.XHRRequest(this._item) 1248 : new createjs.TagRequest( 1249 this._item, 1250 this._tag || this._createTag(), 1251 this._tagSrcAttribute 1252 ); 1253 }), 1254 (a._createTag = function () { 1255 return null; 1256 }), 1257 (a._sendLoadStart = function () { 1258 this._isCanceled() || this.dispatchEvent("loadstart"); 1259 }), 1260 (a._sendProgress = function (a) { 1261 if (!this._isCanceled()) { 1262 var b = null; 1263 "number" == typeof a 1264 ? ((this.progress = a), (b = new createjs.ProgressEvent(this.progress))) 1265 : ((b = a), 1266 (this.progress = a.loaded / a.total), 1267 (b.progress = this.progress), 1268 (isNaN(this.progress) || 1 / 0 == this.progress) && (this.progress = 0)), 1269 this.hasEventListener("progress") && this.dispatchEvent(b); 1270 } 1271 }), 1272 (a._sendComplete = function () { 1273 if (!this._isCanceled()) { 1274 this.loaded = !0; 1275 var a = new createjs.Event("complete"); 1276 (a.rawResult = this._rawResult), 1277 null != this._result && (a.result = this._result), 1278 this.dispatchEvent(a); 1279 } 1280 }), 1281 (a._sendError = function (a) { 1282 !this._isCanceled() && 1283 this.hasEventListener("error") && 1284 (null == a && (a = new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")), 1285 this.dispatchEvent(a)); 1286 }), 1287 (a._isCanceled = function () { 1288 return null == window.createjs || this.canceled ? !0 : !1; 1289 }), 1290 (a.resultFormatter = null), 1291 (a.handleEvent = function (a) { 1292 switch (a.type) { 1293 case "complete": 1294 this._rawResult = a.target._response; 1295 var b = this.resultFormatter && this.resultFormatter(this); 1296 b instanceof Function 1297 ? b.call( 1298 this, 1299 createjs.proxy(this._resultFormatSuccess, this), 1300 createjs.proxy(this._resultFormatFailed, this) 1301 ) 1302 : ((this._result = b || this._rawResult), this._sendComplete()); 1303 break; 1304 case "progress": 1305 this._sendProgress(a); 1306 break; 1307 case "error": 1308 this._sendError(a); 1309 break; 1310 case "loadstart": 1311 this._sendLoadStart(); 1312 break; 1313 case "abort": 1314 case "timeout": 1315 this._isCanceled() || 1316 this.dispatchEvent( 1317 new createjs.ErrorEvent("PRELOAD_" + a.type.toUpperCase() + "_ERROR") 1318 ); 1319 } 1320 }), 1321 (a._resultFormatSuccess = function (a) { 1322 (this._result = a), this._sendComplete(); 1323 }), 1324 (a._resultFormatFailed = function (a) { 1325 this._sendError(a); 1326 }), 1327 (a.toString = function () { 1328 return "[PreloadJS AbstractLoader]"; 1329 }), 1330 (createjs.AbstractLoader = createjs.promote(AbstractLoader, "EventDispatcher")); 1331 })(), 1332 (this.createjs = this.createjs || {}), 1333 (function () { 1334 "use strict"; 1335 function AbstractMediaLoader(a, b, c) { 1336 this.AbstractLoader_constructor(a, b, c), 1337 (this.resultFormatter = this._formatResult), 1338 (this._tagSrcAttribute = "src"), 1339 this.on("initialize", this._updateXHR, this); 1340 } 1341 var a = createjs.extend(AbstractMediaLoader, createjs.AbstractLoader); 1342 (a.load = function () { 1343 this._tag || (this._tag = this._createTag(this._item.src)), 1344 (this._tag.preload = "auto"), 1345 this._tag.load(), 1346 this.AbstractLoader_load(); 1347 }), 1348 (a._createTag = function () {}), 1349 (a._createRequest = function () { 1350 this._request = this._preferXHR 1351 ? new createjs.XHRRequest(this._item) 1352 : new createjs.MediaTagRequest( 1353 this._item, 1354 this._tag || this._createTag(), 1355 this._tagSrcAttribute 1356 ); 1357 }), 1358 (a._updateXHR = function (a) { 1359 a.loader.setResponseType && a.loader.setResponseType("blob"); 1360 }), 1361 (a._formatResult = function (a) { 1362 if ( 1363 (this._tag.removeEventListener && 1364 this._tag.removeEventListener("canplaythrough", this._loadedHandler), 1365 (this._tag.onstalled = null), 1366 this._preferXHR) 1367 ) { 1368 var b = window.URL || window.webkitURL, 1369 c = a.getResult(!0); 1370 a.getTag().src = b.createObjectURL(c); 1371 } 1372 return a.getTag(); 1373 }), 1374 (createjs.AbstractMediaLoader = createjs.promote( 1375 AbstractMediaLoader, 1376 "AbstractLoader" 1377 )); 1378 })(), 1379 (this.createjs = this.createjs || {}), 1380 (function () { 1381 "use strict"; 1382 var AbstractRequest = function (a) { 1383 this._item = a; 1384 }, 1385 a = createjs.extend(AbstractRequest, createjs.EventDispatcher); 1386 (a.load = function () {}), 1387 (a.destroy = function () {}), 1388 (a.cancel = function () {}), 1389 (createjs.AbstractRequest = createjs.promote(AbstractRequest, "EventDispatcher")); 1390 })(), 1391 (this.createjs = this.createjs || {}), 1392 (function () { 1393 "use strict"; 1394 function TagRequest(a, b, c) {
1395 this.AbstractRequest_constructor(a), 1396 (this._tag = b), 1397 (this._tagSrcAttribute = c), 1398 (this._loadedHandler = createjs.proxy(this._handleTagComplete, this)), 1399 (this._addedToDOM = !1); 1400 } 1401 var a = createjs.extend(TagRequest, createjs.AbstractRequest); 1402 (a.load = function () { 1403 (this._tag.onload = createjs.proxy(this._handleTagComplete, this)), 1404 (this._tag.onreadystatechange = createjs.proxy( 1405 this._handleReadyStateChange, 1406 this 1407 )), 1408 (this._tag.onerror = createjs.proxy(this._handleError, this)); 1409 var a = new createjs.Event("initialize"); 1410 (a.loader = this._tag), 1411 this.dispatchEvent(a), 1412 (this._loadTimeout = setTimeout( 1413 createjs.proxy(this._handleTimeout, this), 1414 this._item.loadTimeout 1415 )), 1416 (this._tag[this._tagSrcAttribute] = this._item.src), 1417 null == this._tag.parentNode && 1418 (createjs.DomUtils.appendToBody(this._tag), (this._addedToDOM = !0)); 1419 }), 1420 (a.destroy = function () { 1421 this._clean(), (this._tag = null), this.AbstractRequest_destroy(); 1422 }), 1423 (a._handleReadyStateChange = function () { 1424 clearTimeout(this._loadTimeout); 1425 var a = this._tag; 1426 ("loaded" == a.readyState || "complete" == a.readyState) && 1427 this._handleTagComplete(); 1428 }), 1429 (a._handleError = function () { 1430 this._clean(), this.dispatchEvent("error"); 1431 }), 1432 (a._handleTagComplete = function () { 1433 (this._rawResult = this._tag), 1434 (this._result = 1435 (this.resultFormatter && this.resultFormatter(this)) || this._rawResult), 1436 this._clean(), 1437 this.dispatchEvent("complete"); 1438 }), 1439 (a._handleTimeout = function () { 1440 this._clean(), this.dispatchEvent(new createjs.Event("timeout")); 1441 }), 1442 (a._clean = function () { 1443 (this._tag.onload = null), 1444 (this._tag.onreadystatechange = null), 1445 (this._tag.onerror = null), 1446 this._addedToDOM && 1447 null != this._tag.parentNode && 1448 this._tag.parentNode.removeChild(this._tag), 1449 clearTimeout(this._loadTimeout); 1450 }), 1451 (a._handleStalled = function () {}), 1452 (createjs.TagRequest = createjs.promote(TagRequest, "AbstractRequest")); 1453 })(), 1454 (this.createjs = this.createjs || {}), 1455 (function () { 1456 "use strict"; 1457 function MediaTagRequest(a, b, c) { 1458 this.AbstractRequest_constructor(a), 1459 (this._tag = b), 1460 (this._tagSrcAttribute = c), 1461 (this._loadedHandler = createjs.proxy(this._handleTagComplete, this)); 1462 } 1463 var a = createjs.extend(MediaTagRequest, createjs.TagRequest); 1464 (a.load = function () { 1465 var a = createjs.proxy(this._handleStalled, this); 1466 this._stalledCallback = a; 1467 var b = createjs.proxy(this._handleProgress, this); 1468 (this._handleProgress = b), 1469 this._tag.addEventListener("stalled", a), 1470 this._tag.addEventListener("progress", b), 1471 this._tag.addEventListener && 1472 this._tag.addEventListener("canplaythrough", this._loadedHandler, !1), 1473 this.TagRequest_load(); 1474 }), 1475 (a._handleReadyStateChange = function () { 1476 clearTimeout(this._loadTimeout); 1477 var a = this._tag; 1478 ("loaded" == a.readyState || "complete" == a.readyState) && 1479 this._handleTagComplete(); 1480 }), 1481 (a._handleStalled = function () {}), 1482 (a._handleProgress = function (a) { 1483 if (a && !(a.loaded > 0 && 0 == a.total)) { 1484 var b = new createjs.ProgressEvent(a.loaded, a.total); 1485 this.dispatchEvent(b); 1486 } 1487 }), 1488 (a._clean = function () { 1489 this._tag.removeEventListener && 1490 this._tag.removeEventListener("canplaythrough", this._loadedHandler), 1491 this._tag.removeEventListener("stalled", this._stalledCallback), 1492 this._tag.removeEventListener("progress", this._progressCallback), 1493 this.TagRequest__clean(); 1494 }), 1495 (createjs.MediaTagRequest = createjs.promote(MediaTagRequest, "TagRequest")); 1496 })(), 1497 (this.createjs = this.createjs || {}), 1498 (function () { 1499 "use strict"; 1500 function XHRRequest(a) {
1501 this.AbstractRequest_constructor(a), 1502 (this._request = null), 1503 (this._loadTimeout = null), 1504 (this._xhrLevel = 1), 1505 (this._response = null), 1506 (this._rawResponse = null), 1507 (this._canceled = !1), 1508 (this._handleLoadStartProxy = createjs.proxy(this._handleLoadStart, this)), 1509 (this._handleProgressProxy = createjs.proxy(this._handleProgress, this)), 1510 (this._handleAbortProxy = createjs.proxy(this._handleAbort, this)), 1511 (this._handleErrorProxy = createjs.proxy(this._handleError, this)), 1512 (this._handleTimeoutProxy = createjs.proxy(this._handleTimeout, this)), 1513 (this._handleLoadProxy = createjs.proxy(this._handleLoad, this)), 1514 (this._handleReadyStateChangeProxy = createjs.proxy( 1515 this._handleReadyStateChange, 1516 this 1517 )), 1518 !this._createXHR(a); 1519 } 1520 var a = createjs.extend(XHRRequest, createjs.AbstractRequest); 1521 (XHRRequest.ACTIVEX_VERSIONS = [ 1522 "Msxml2.XMLHTTP.6.0", 1523 "Msxml2.XMLHTTP.5.0", 1524 "Msxml2.XMLHTTP.4.0", 1525 "MSXML2.XMLHTTP.3.0", 1526 "MSXML2.XMLHTTP", 1527 "Microsoft.XMLHTTP", 1528 ]), 1529 (a.getResult = function (a) { 1530 return a && this._rawResponse ? this._rawResponse : this._response; 1531 }), 1532 (a.cancel = function () { 1533 (this.canceled = !0), this._clean(), this._request.abort(); 1534 }), 1535 (a.load = function () { 1536 if (null == this._request) return void this._handleError(); 1537 null != this._request.addEventListener 1538 ? (this._request.addEventListener( 1539 "loadstart", 1540 this._handleLoadStartProxy, 1541 !1 1542 ), 1543 this._request.addEventListener("progress", this._handleProgressProxy, !1), 1544 this._request.addEventListener("abort", this._handleAbortProxy, !1), 1545 this._request.addEventListener("error", this._handleErrorProxy, !1), 1546 this._request.addEventListener("timeout", this._handleTimeoutProxy, !1), 1547 this._request.addEventListener("load", this._handleLoadProxy, !1), 1548 this._request.addEventListener( 1549 "readystatechange", 1550 this._handleReadyStateChangeProxy, 1551 !1 1552 )) 1553 : ((this._request.onloadstart = this._handleLoadStartProxy), 1554 (this._request.onprogress = this._handleProgressProxy), 1555 (this._request.onabort = this._handleAbortProxy), 1556 (this._request.onerror = this._handleErrorProxy), 1557 (this._request.ontimeout = this._handleTimeoutProxy), 1558 (this._request.onload = this._handleLoadProxy), 1559 (this._request.onreadystatechange = this._handleReadyStateChangeProxy)), 1560 1 == this._xhrLevel && 1561 (this._loadTimeout = setTimeout( 1562 createjs.proxy(this._handleTimeout, this), 1563 this._item.loadTimeout 1564 )); 1565 try { 1566 this._item.values 1567 ? this._request.send(createjs.URLUtils.formatQueryString(this._item.values)) 1568 : this._request.send(); 1569 } catch (a) { 1570 this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND", null, a)); 1571 } 1572 }), 1573 (a.setResponseType = function (a) { 1574 "blob" === a && 1575 ((a = window.URL ? "blob" : "arraybuffer"), (this._responseType = a)), 1576 (this._request.responseType = a); 1577 }), 1578 (a.getAllResponseHeaders = function () { 1579 return this._request.getAllResponseHeaders instanceof Function 1580 ? this._request.getAllResponseHeaders() 1581 : null; 1582 }), 1583 (a.getResponseHeader = function (a) { 1584 return this._request.getResponseHeader instanceof Function 1585 ? this._request.getResponseHeader(a) 1586 : null; 1587 }), 1588 (a._handleProgress = function (a) { 1589 if (a && !(a.loaded > 0 && 0 == a.total)) { 1590 var b = new createjs.ProgressEvent(a.loaded, a.total); 1591 this.dispatchEvent(b); 1592 } 1593 }), 1594 (a._handleLoadStart = function () { 1595 clearTimeout(this._loadTimeout), this.dispatchEvent("loadstart"); 1596 }), 1597 (a._handleAbort = function (a) { 1598 this._clean(), 1599 this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED", null, a)); 1600 }), 1601 (a._handleError = function (a) { 1602 this._clean(), this.dispatchEvent(new createjs.ErrorEvent(a.message)); 1603 }), 1604 (a._handleReadyStateChange = function () { 1605 4 == this._request.readyState && this._handleLoad(); 1606 }), 1607 (a._handleLoad = function () { 1608 if (!this.loaded) { 1609 this.loaded = !0; 1610 var a = this._checkError(); 1611 if (a) return void this._handleError(a); 1612 if ( 1613 ((this._response = this._getResponse()), 1614 "arraybuffer" === this._responseType) 1615 ) 1616 try { 1617 this._response = new Blob([this._response]); 1618 } catch (b) { 1619 if ( 1620 ((window.BlobBuilder = 1621 window.BlobBuilder || 1622 window.WebKitBlobBuilder || 1623 window.MozBlobBuilder || 1624 window.MSBlobBuilder), 1625 "TypeError" === b.name && window.BlobBuilder) 1626 ) { 1627 var c = new BlobBuilder(); 1628 c.append(this._response), (this._response = c.getBlob()); 1629 } 1630 } 1631 this._clean(), this.dispatchEvent(new createjs.Event("complete"));
1632 } 1633 }), 1634 (a._handleTimeout = function (a) { 1635 this._clean(), 1636 this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT", null, a)); 1637 }), 1638 (a._checkError = function () { 1639 var a = parseInt(this._request.status); 1640 return a >= 400 && 599 >= a 1641 ? new Error(a) 1642 : 0 == a && /^https?:/.test(location.protocol) 1643 ? new Error(0) 1644 : null; 1645 }), 1646 (a._getResponse = function () { 1647 if (null != this._response) return this._response; 1648 if (null != this._request.response) return this._request.response; 1649 try { 1650 if (null != this._request.responseText) return this._request.responseText; 1651 } catch (a) {} 1652 try { 1653 if (null != this._request.responseXML) return this._request.responseXML; 1654 } catch (a) {} 1655 return null; 1656 }), 1657 (a._createXHR = function (a) { 1658 var b = createjs.URLUtils.isCrossDomain(a), 1659 c = {}, 1660 d = null; 1661 if (window.XMLHttpRequest) 1662 (d = new XMLHttpRequest()), 1663 b && 1664 void 0 === d.withCredentials && 1665 window.XDomainRequest && 1666 (d = new XDomainRequest()); 1667 else { 1668 for (var e = 0, f = s.ACTIVEX_VERSIONS.length; f > e; e++) { 1669 var g = s.ACTIVEX_VERSIONS[e]; 1670 try { 1671 d = new ActiveXObject(g); 1672 break; 1673 } catch (h) {} 1674 } 1675 if (null == d) return !1; 1676 } 1677 null == a.mimeType && 1678 createjs.RequestUtils.isText(a.type) && 1679 (a.mimeType = "text/plain; charset=utf-8"), 1680 a.mimeType && d.overrideMimeType && d.overrideMimeType(a.mimeType), 1681 (this._xhrLevel = "string" == typeof d.responseType ? 2 : 1); 1682 var i = null; 1683 if ( 1684 ((i = 1685 a.method == createjs.Methods.GET 1686 ? createjs.URLUtils.buildURI(a.src, a.values) 1687 : a.src), 1688 d.open(a.method || createjs.Methods.GET, i, !0), 1689 b && 1690 d instanceof XMLHttpRequest && 1691 1 == this._xhrLevel && 1692 (c.Origin = location.origin), 1693 a.values && 1694 a.method == createjs.Methods.POST && 1695 (c["Content-Type"] = "application/x-www-form-urlencoded"), 1696 b || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest"), 1697 a.headers) 1698 ) 1699 for (var j in a.headers) c[j] = a.headers[j]; 1700 for (j in c) d.setRequestHeader(j, c[j]); 1701 return ( 1702 d instanceof XMLHttpRequest && 1703 void 0 !== a.withCredentials && 1704 (d.withCredentials = a.withCredentials), 1705 (this._request = d), 1706 !0 1707 ); 1708 }), 1709 (a._clean = function () { 1710 clearTimeout(this._loadTimeout), 1711 null != this._request.removeEventListener 1712 ? (this._request.removeEventListener( 1713 "loadstart", 1714 this._handleLoadStartProxy 1715 ), 1716 this._request.removeEventListener("progress", this._handleProgressProxy), 1717 this._request.removeEventListener("abort", this._handleAbortProxy), 1718 this._request.removeEventListener("error", this._handleErrorProxy), 1719 this._request.removeEventListener("timeout", this._handleTimeoutProxy), 1720 this._request.removeEventListener("load", this._handleLoadProxy), 1721 this._request.removeEventListener( 1722 "readystatechange", 1723 this._handleReadyStateChangeProxy 1724 )) 1725 : ((this._request.onloadstart = null), 1726 (this._request.onprogress = null), 1727 (this._request.onabort = null), 1728 (this._request.onerror = null), 1729 (this._request.ontimeout = null), 1730 (this._request.onload = null), 1731 (this._request.onreadystatechange = null)); 1732 }), 1733 (a.toString = function () { 1734 return "[PreloadJS XHRRequest]"; 1735 }), 1736 (createjs.XHRRequest = createjs.promote(XHRRequest, "AbstractRequest")); 1737 })(), 1738 (this.createjs = this.createjs || {}), 1739 (function () { 1740 "use strict"; 1741 function LoadQueue(a, b, c) { 1742 this.AbstractLoader_constructor(), 1743 (this._plugins = []), 1744 (this._typeCallbacks = {}), 1745 (this._extensionCallbacks = {}), 1746 (this.next = null), 1747 (this.maintainScriptOrder = !0), 1748 (this.stopOnError = !1), 1749 (this._maxConnections = 1), 1750 (this._availableLoaders = [ 1751 createjs.FontLoader, 1752 createjs.ImageLoader, 1753 createjs.JavaScriptLoader, 1754 createjs.CSSLoader, 1755 createjs.JSONLoader, 1756 createjs.JSONPLoader, 1757 createjs.SoundLoader, 1758 createjs.ManifestLoader, 1759 createjs.SpriteSheetLoader, 1760 createjs.XMLLoader, 1761 createjs.SVGLoader, 1762 createjs.BinaryLoader, 1763 createjs.VideoLoader, 1764 createjs.TextLoader, 1765 ]), 1766 (this._defaultLoaderLength = this._availableLoaders.length),
1767 this.init(a, b, c); 1768 } 1769 var a = createjs.extend(LoadQueue, createjs.AbstractLoader), 1770 b = LoadQueue; 1771 try { 1772 Object.defineProperties(b, { 1773 POST: { 1774 get: createjs.deprecate(function () { 1775 return createjs.Methods.POST; 1776 }, "AbstractLoader.POST"), 1777 }, 1778 GET: { 1779 get: createjs.deprecate(function () { 1780 return createjs.Methods.GET; 1781 }, "AbstractLoader.GET"), 1782 }, 1783 BINARY: { 1784 get: createjs.deprecate(function () { 1785 return createjs.Types.BINARY; 1786 }, "AbstractLoader.BINARY"), 1787 }, 1788 CSS: { 1789 get: createjs.deprecate(function () { 1790 return createjs.Types.CSS; 1791 }, "AbstractLoader.CSS"), 1792 }, 1793 FONT: { 1794 get: createjs.deprecate(function () { 1795 return createjs.Types.FONT; 1796 }, "AbstractLoader.FONT"), 1797 }, 1798 FONTCSS: { 1799 get: createjs.deprecate(function () { 1800 return createjs.Types.FONTCSS; 1801 }, "AbstractLoader.FONTCSS"), 1802 }, 1803 IMAGE: { 1804 get: createjs.deprecate(function () { 1805 return createjs.Types.IMAGE; 1806 }, "AbstractLoader.IMAGE"), 1807 }, 1808 JAVASCRIPT: { 1809 get: createjs.deprecate(function () { 1810 return createjs.Types.JAVASCRIPT; 1811 }, "AbstractLoader.JAVASCRIPT"), 1812 }, 1813 JSON: { 1814 get: createjs.deprecate(function () { 1815 return createjs.Types.JSON; 1816 }, "AbstractLoader.JSON"), 1817 }, 1818 JSONP: { 1819 get: createjs.deprecate(function () { 1820 return createjs.Types.JSONP; 1821 }, "AbstractLoader.JSONP"), 1822 }, 1823 MANIFEST: { 1824 get: createjs.deprecate(function () { 1825 return createjs.Types.MANIFEST; 1826 }, "AbstractLoader.MANIFEST"), 1827 }, 1828 SOUND: { 1829 get: createjs.deprecate(function () { 1830 return createjs.Types.SOUND; 1831 }, "AbstractLoader.SOUND"), 1832 }, 1833 VIDEO: { 1834 get: createjs.deprecate(function () { 1835 return createjs.Types.VIDEO; 1836 }, "AbstractLoader.VIDEO"), 1837 }, 1838 SPRITESHEET: { 1839 get: createjs.deprecate(function () { 1840 return createjs.Types.SPRITESHEET; 1841 }, "AbstractLoader.SPRITESHEET"), 1842 }, 1843 SVG: { 1844 get: createjs.deprecate(function () { 1845 return createjs.Types.SVG; 1846 }, "AbstractLoader.SVG"), 1847 }, 1848 TEXT: { 1849 get: createjs.deprecate(function () { 1850 return createjs.Types.TEXT; 1851 }, "AbstractLoader.TEXT"), 1852 }, 1853 XML: { 1854 get: createjs.deprecate(function () { 1855 return createjs.Types.XML; 1856 }, "AbstractLoader.XML"), 1857 }, 1858 }); 1859 } catch (c) {} 1860 (a.init = function (a, b, c) { 1861 (this.preferXHR = !0), 1862 (this._preferXHR = !0), 1863 this.setPreferXHR(a), 1864 (this._paused = !1), 1865 (this._basePath = b), 1866 (this._crossOrigin = c), 1867 (this._loadStartWasDispatched = !1), 1868 (this._currentlyLoadingScript = null), 1869 (this._currentLoads = []), 1870 (this._loadQueue = []), 1871 (this._loadQueueBackup = []), 1872 (this._loadItemsById = {}), 1873 (this._loadItemsBySrc = {}), 1874 (this._loadedResults = {}), 1875 (this._loadedRawResults = {}), 1876 (this._numItems = 0), 1877 (this._numItemsLoaded = 0), 1878 (this._scriptOrder = []), 1879 (this._loadedScripts = []), 1880 (this._lastProgress = 0 / 0); 1881 }), 1882 (a.registerLoader = function (a) { 1883 if (!a || !a.canLoadItem) throw new Error("loader is of an incorrect type."); 1884 if (-1 != this._availableLoaders.indexOf(a)) 1885 throw new Error("loader already exists."); 1886 this._availableLoaders.unshift(a); 1887 }), 1888 (a.unregisterLoader = function (a) { 1889 var b = this._availableLoaders.indexOf(a); 1890 -1 != b && 1891 b < this._defaultLoaderLength - 1 && 1892 this._availableLoaders.splice(b, 1); 1893 }), 1894 (a.setPreferXHR = function (a) { 1895 return ( 1896 (this.preferXHR = 0 != a && null != window.XMLHttpRequest), this.preferXHR 1897 ); 1898 }), 1899 (a.removeAll = function () { 1900 this.remove(); 1901 }), 1902 (a.remove = function (a) { 1903 var b = null; 1904 if (a && !Array.isArray(a)) b = [a]; 1905 else if (a) b = a; 1906 else if (arguments.length > 0) return; 1907 var c = !1; 1908 if (b) { 1909 for (; b.length; ) { 1910 var d = b.pop(), 1911 e = this.getResult(d); 1912 for (f = this._loadQueue.length - 1; f >= 0;
1912 f--) 1913 if (((g = this._loadQueue[f].getItem()), g.id == d || g.src == d)) { 1914 this._loadQueue.splice(f, 1)[0].cancel(); 1915 break; 1916 } 1917 for (f = this._loadQueueBackup.length - 1; f >= 0; f--) 1918 if (((g = this._loadQueueBackup[f].getItem()), g.id == d || g.src == d)) { 1919 this._loadQueueBackup.splice(f, 1)[0].cancel(); 1920 break; 1921 } 1922 if (e) this._disposeItem(this.getItem(d)); 1923 else 1924 for (var f = this._currentLoads.length - 1; f >= 0; f--) { 1925 var g = this._currentLoads[f].getItem(); 1926 if (g.id == d || g.src == d) { 1927 this._currentLoads.splice(f, 1)[0].cancel(), (c = !0); 1928 break; 1929 } 1930 } 1931 } 1932 c && this._loadNext(); 1933 } else { 1934 this.close(); 1935 for (var h in this._loadItemsById) this._disposeItem(this._loadItemsById[h]); 1936 this.init(this.preferXHR, this._basePath); 1937 } 1938 }), 1939 (a.reset = function () { 1940 this.close(); 1941 for (var a in this._loadItemsById) this._disposeItem(this._loadItemsById[a]); 1942 for (var b = [], c = 0, d = this._loadQueueBackup.length; d > c; c++) 1943 b.push(this._loadQueueBackup[c].getItem()); 1944 this.loadManifest(b, !1); 1945 }), 1946 (a.installPlugin = function (a) { 1947 if (null != a && null != a.getPreloadHandlers) { 1948 this._plugins.push(a); 1949 var b = a.getPreloadHandlers(); 1950 if (((b.scope = a), null != b.types)) 1951 for (var c = 0, d = b.types.length; d > c; c++) 1952 this._typeCallbacks[b.types[c]] = b; 1953 if (null != b.extensions) 1954 for (c = 0, d = b.extensions.length; d > c; c++) 1955 this._extensionCallbacks[b.extensions[c]] = b; 1956 } 1957 }), 1958 (a.setMaxConnections = function (a) { 1959 (this._maxConnections = a), 1960 !this._paused && this._loadQueue.length > 0 && this._loadNext(); 1961 }), 1962 (a.loadFile = function (a, b, c) { 1963 if (null == a) { 1964 var d = new createjs.ErrorEvent("PRELOAD_NO_FILE"); 1965 return void this._sendError(d); 1966 } 1967 this._addItem(a, null, c), this.setPaused(b !== !1 ? !1 : !0); 1968 }), 1969 (a.loadManifest = function (a, c, d) { 1970 var e = null, 1971 f = null; 1972 if (Array.isArray(a)) { 1973 if (0 == a.length) { 1974 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY"); 1975 return void this._sendError(g); 1976 } 1977 e = a; 1978 } else if ("string" == typeof a) e = [{ src: a, type: b.MANIFEST }]; 1979 else { 1980 if ("object" != typeof a) { 1981 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL"); 1982 return void this._sendError(g); 1983 }
1984 if (void 0 !== a.src) { 1985 if (null == a.type) a.type = b.MANIFEST; 1986 else if (a.type != b.MANIFEST) { 1987 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE"); 1988 this._sendError(g); 1989 } 1990 e = [a]; 1991 } else void 0 !== a.manifest && ((e = a.manifest), (f = a.path)); 1992 } 1993 for (var h = 0, i = e.length; i > h; h++) this._addItem(e[h], f, d); 1994 this.setPaused(c !== !1 ? !1 : !0); 1995 }), 1996 (a.load = function () { 1997 this.setPaused(!1); 1998 }), 1999 (a.getItem = function (a) { 2000 return this._loadItemsById[a] || this._loadItemsBySrc[a]; 2001 }), 2002 (a.getResult = function (a, b) { 2003 var c = this._loadItemsById[a] || this._loadItemsBySrc[a]; 2004 if (null == c) return null; 2005 var d = c.id; 2006 return b && this._loadedRawResults[d] 2007 ? this._loadedRawResults[d] 2008 : this._loadedResults[d]; 2009 }), 2010 (a.getItems = function (a) { 2011 var b = []; 2012 for (var c in this._loadItemsById) { 2013 var d = this._loadItemsById[c], 2014 e = this.getResult(c); 2015 (a !== !0 || null != e) && 2016 b.push({ item: d, result: e, rawResult: this.getResult(c, !0) }); 2017 } 2018 return b; 2019 }), 2020 (a.setPaused = function (a) { 2021 (this._paused = a), this._paused || this._loadNext(); 2022 }), 2023 (a.close = function () { 2024 for (; this._currentLoads.length; ) this._currentLoads.pop().cancel(); 2025 (this._scriptOrder.length = 0), 2026 (this._loadedScripts.length = 0), 2027 (this.loadStartWasDispatched = !1), 2028 (this._itemCount = 0), 2029 (this._lastProgress = 0 / 0); 2030 }), 2031 (a._addItem = function (a, b, c) { 2032 var d = this._createLoadItem(a, b, c); 2033 if (null != d) { 2034 var e = this._createLoader(d); 2035 null != e && 2036 ("plugins" in e && (e.plugins = this._plugins), 2037 (d._loader = e), 2038 this._loadQueue.push(e), 2039 this._loadQueueBackup.push(e), 2040 this._numItems++, 2041 this._updateProgress(), 2042 ((this.maintainScriptOrder && d.type == createjs.Types.JAVASCRIPT) || 2043 d.maintainOrder === !0) && 2044 (this._scriptOrder.push(d), this._loadedScripts.push(null))); 2045 } 2046 }), 2047 (a._createLoadItem = function (a, b, c) { 2048 var d = createjs.LoadItem.create(a); 2049 if (null == d) return null; 2050 var e = "", 2051 f = c || this._basePath; 2052 if (d.src instanceof Object) { 2053 if (!d.type) return null; 2054 if (b) { 2055 e = b; 2056 var g = createjs.URLUtils.parseURI(b); 2057 null == f || g.absolute || g.relative || (e = f + e); 2058 } else null != f && (e = f); 2059 } else { 2060 var h = createjs.URLUtils.parseURI(d.src); 2061 h.extension && (d.ext = h.extension), 2062 null == d.type && 2063 (d.type = createjs.RequestUtils.getTypeByExtension(d.ext)); 2064 var i = d.src; 2065 if (!h.absolute && !h.relative) 2066 if (b) { 2067 e = b; 2068 var g = createjs.URLUtils.parseURI(b); 2069 (i = b + i), null == f || g.absolute || g.relative || (e = f + e); 2070 } else null != f && (e = f); 2071 d.src = e + d.src; 2072 } 2073 (d.path = e), (void 0 === d.id || null === d.id || "" === d.id) && (d.id = i); 2074 var j = this._typeCallbacks[d.type] || this._extensionCallbacks[d.ext]; 2075 if (j) { 2076 var k = j.callback.call(j.scope, d, this); 2077 if (k === !1) return null; 2078 k === !0 || (null != k && (d._loader = k)), 2079 (h = createjs.URLUtils.parseURI(d.src)), 2080 null != h.extension && (d.ext = h.extension); 2081 } 2082 return ( 2083 (this._loadItemsById[d.id] = d), 2084 (this._loadItemsBySrc[d.src] = d), 2085 null == d.crossOrigin && (d.crossOrigin = this._crossOrigin), 2086 d 2087 ); 2088 }), 2089 (a._createLoader = function (a) { 2090 if (null != a._loader) return a._loader; 2091 for (var b = this.preferXHR, c = 0; c < this._availableLoaders.length; c++) {
2092 var d = this._availableLoaders[c]; 2093 if (d && d.canLoadItem(a)) return new d(a, b); 2094 } 2095 return null; 2096 }), 2097 (a._loadNext = function () { 2098 if (!this._paused) { 2099 this._loadStartWasDispatched || 2100 (this._sendLoadStart(), (this._loadStartWasDispatched = !0)), 2101 this._numItems == this._numItemsLoaded 2102 ? ((this.loaded = !0), 2103 this._sendComplete(), 2104 this.next && this.next.load && this.next.load()) 2105 : (this.loaded = !1); 2106 for ( 2107 var a = 0; 2108 a < this._loadQueue.length && 2109 !(this._currentLoads.length >= this._maxConnections); 2110 a++ 2111 ) { 2112 var b = this._loadQueue[a]; 2113 this._canStartLoad(b) && 2114 (this._loadQueue.splice(a, 1), a--, this._loadItem(b)); 2115 } 2116 } 2117 }), 2118 (a._loadItem = function (a) { 2119 a.on("fileload", this._handleFileLoad, this), 2120 a.on("progress", this._handleProgress, this), 2121 a.on("complete", this._handleFileComplete, this), 2122 a.on("error", this._handleError, this), 2123 a.on("fileerror", this._handleFileError, this), 2124 this._currentLoads.push(a), 2125 this._sendFileStart(a.getItem()), 2126 a.load(); 2127 }), 2128 (a._handleFileLoad = function (a) { 2129 (a.target = null), this.dispatchEvent(a); 2130 }), 2131 (a._handleFileError = function (a) { 2132 var b = new createjs.ErrorEvent("FILE_LOAD_ERROR", null, a.item); 2133 this._sendError(b); 2134 }), 2135 (a._handleError = function (a) { 2136 var b = a.target; 2137 this._numItemsLoaded++, this._finishOrderedItem(b, !0), this._updateProgress(); 2138 var c = new createjs.ErrorEvent("FILE_LOAD_ERROR", null, b.getItem()); 2139 this._sendError(c), 2140 this.stopOnError 2141 ? this.setPaused(!0) 2142 : (this._removeLoadItem(b), this._cleanLoadItem(b), this._loadNext()); 2143 }), 2144 (a._handleFileComplete = function (a) { 2145 var b = a.target, 2146 c = b.getItem(), 2147 d = b.getResult(); 2148 this._loadedResults[c.id] = d; 2149 var e = b.getResult(!0); 2150 null != e && e !== d && (this._loadedRawResults[c.id] = e), 2151 this._saveLoadedItems(b), 2152 this._removeLoadItem(b), 2153 this._finishOrderedItem(b) || this._processFinishedLoad(c, b), 2154 this._cleanLoadItem(b); 2155 }), 2156 (a._saveLoadedItems = function (a) { 2157 var b = a.getLoadedItems();
2158 if (null !== b) 2159 for (var c = 0; c < b.length; c++) { 2160 var d = b[c].item; 2161 (this._loadItemsBySrc[d.src] = d), 2162 (this._loadItemsById[d.id] = d), 2163 (this._loadedResults[d.id] = b[c].result), 2164 (this._loadedRawResults[d.id] = b[c].rawResult); 2165 } 2166 }), 2167 (a._finishOrderedItem = function (a, b) { 2168 var c = a.getItem(); 2169 if ( 2170 (this.maintainScriptOrder && c.type == createjs.Types.JAVASCRIPT) || 2171 c.maintainOrder 2172 ) { 2173 a instanceof createjs.JavaScriptLoader && (this._currentlyLoadingScript = !1); 2174 var d = createjs.indexOf(this._scriptOrder, c); 2175 return -1 == d 2176 ? !1 2177 : ((this._loadedScripts[d] = b === !0 ? !0 : c), 2178 this._checkScriptLoadOrder(), 2179 !0); 2180 } 2181 return !1; 2182 }), 2183 (a._checkScriptLoadOrder = function () { 2184 for (var a = this._loadedScripts.length, b = 0; a > b; b++) { 2185 var c = this._loadedScripts[b]; 2186 if (null === c) break; 2187 if (c !== !0) { 2188 var d = this._loadedResults[c.id]; 2189 c.type == createjs.Types.JAVASCRIPT && createjs.DomUtils.appendToHead(d); 2190 var e = c._loader; 2191 this._processFinishedLoad(c, e), (this._loadedScripts[b] = !0); 2192 } 2193 } 2194 }), 2195 (a._processFinishedLoad = function (a, b) { 2196 if ( 2197 (this._numItemsLoaded++, 2198 !this.maintainScriptOrder && a.type == createjs.Types.JAVASCRIPT) 2199 ) { 2200 var c = b.getTag(); 2201 createjs.DomUtils.appendToHead(c); 2202 } 2203 this._updateProgress(), this._sendFileComplete(a, b), this._loadNext(); 2204 }), 2205 (a._canStartLoad = function (a) { 2206 if (!this.maintainScriptOrder || a.preferXHR) return !0; 2207 var b = a.getItem(); 2208 if (b.type != createjs.Types.JAVASCRIPT) return !0; 2209 if (this._currentlyLoadingScript) return !1; 2210 for (var c = this._scriptOrder.indexOf(b), d = 0; c > d; ) { 2211 var e = this._loadedScripts[d]; 2212 if (null == e) return !1; 2213 d++; 2214 } 2215 return (this._currentlyLoadingScript = !0), !0; 2216 }), 2217 (a._removeLoadItem = function (a) { 2218 for (var b = this._currentLoads.length, c = 0; b > c; c++) 2219 if (this._currentLoads[c] == a) { 2220 this._currentLoads.splice(c, 1); 2221 break; 2222 } 2223 }), 2224 (a._cleanLoadItem = function (a) { 2225 var b = a.getItem(); 2226 b && delete b._loader; 2227 }), 2228 (a._handleProgress = function (a) { 2229 var b = a.target; 2230 this._sendFileProgress(b.getItem(), b.progress), this._updateProgress(); 2231 }), 2232 (a._updateProgress = function () { 2233 var a = this._numItemsLoaded / this._numItems, 2234 b = this._numItems - this._numItemsLoaded; 2235 if (b > 0) { 2236 for (var c = 0, d = 0, e = this._currentLoads.length; e > d; d++) 2237 c += this._currentLoads[d].progress; 2238 a += (c / b) * (b / this._numItems); 2239 } 2240 this._lastProgress != a && (this._sendProgress(a), (this._lastProgress = a)); 2241 }), 2242 (a._disposeItem = function (a) { 2243 delete this._loadedResults[a.id], 2244 delete this._loadedRawResults[a.id], 2245 delete this._loadItemsById[a.id], 2246 delete this._loadItemsBySrc[a.src]; 2247 }), 2248 (a._sendFileProgress = function (a, b) { 2249 if ( 2250 !this._isCanceled() && 2251 !this._paused && 2252 this.hasEventListener("fileprogress") 2253 ) { 2254 var c = new createjs.Event("fileprogress"); 2255 (c.progress = b), 2256 (c.loaded = b), 2257 (c.total = 1), 2258 (c.item = a), 2259 this.dispatchEvent(c); 2260 } 2261 }), 2262 (a._sendFileComplete = function (a, b) { 2263 if (!this._isCanceled() && !this._paused) { 2264 var c = new createjs.Event("fileload"); 2265 (c.loader = b), 2266 (c.item = a), 2267 (c.result = this._loadedResults[a.id]), 2268 (c.rawResult = this._loadedRawResults[a.id]), 2269 a.completeHandler && a.completeHandler(c), 2270 this.hasEventListener("fileload") && this.dispatchEvent(c); 2271 } 2272 }), 2273 (a._sendFileStart = function (a) { 2274 var b = new createjs.Event("filestart"); 2275 (b.item = a), this.hasEventListener("filestart") && this.dispatchEvent(b); 2276 }), 2277 (a.toString = function () { 2278 return "[PreloadJS LoadQueue]"; 2279 }), 2280 (createjs.LoadQueue = createjs.promote(LoadQueue, "AbstractLoader")); 2281 })(), 2282 (this.createjs = this.createjs || {}), 2283 (function () { 2284 "use strict"; 2285 function TextLoader(a) { 2286 this.AbstractLoader_constructor(a, !0, createjs.Types.TEXT); 2287 } 2288 var a = (createjs.extend(TextLoader, createjs.AbstractLoader), TextLoader); 2289 (a.canLoadItem = function (a) { 2290 return a.type == createjs.Types.TEXT; 2291 }), 2292 (createjs.TextLoader = createjs.promote(TextLoader, "AbstractLoader")); 2293 })(), 2294 (this.createjs = this.createjs || {}), 2295 (function () { 2296 "use strict"; 2297 function BinaryLoader(a) { 2298 this.AbstractLoader_constructor(a, !0, createjs.Types.BINARY), 2299 this.on("initialize", this._updateXHR, this); 2300 } 2301 var a = createjs.extend(BinaryLoader, createjs.AbstractLoader), 2302 b = BinaryLoader; 2303 (b.canLoadItem = function (a) { 2304 return a.type == createjs.Types.BINARY; 2305 }), 2306 (a._updateXHR = function (a) { 2307 a.loader.setResponseType("arraybuffer"); 2308 }), 2309 (createjs.BinaryLoader = createjs.promote(BinaryLoader, "AbstractLoader")); 2310 })(), 2311 (this.createjs = this.createjs || {}), 2312 (function () { 2313 "use strict"; 2314 function CSSLoader(a, b) { 2315 this.AbstractLoader_constructor(a, b, createjs.Types.CSS), 2316 (this.resultFormatter = this._formatResult), 2317 (this._tagSrcAttribute = "href"), 2318 (this._tag = b ? createjs.Elements.style() : createjs.Elements.link()), 2319 (this._tag.rel = "stylesheet"), 2320 (this._tag.type = "text/css"); 2321 } 2322 var a = createjs.extend(CSSLoader, createjs.AbstractLoader), 2323 b = CSSLoader; 2324 (b.canLoadItem = function (a) { 2325 return a.type == createjs.Types.CSS; 2326 }), 2327 (a._formatResult = function (a) { 2328 if (this._preferXHR) { 2329 var b = a.getTag(); 2330 if (b.styleSheet) b.styleSheet.cssText = a.getResult(!0); 2331 else { 2332 var c = createjs.Elements.text(a.getResult(!0)); 2333 b.appendChild(c); 2334 } 2335 } else b = this._tag; 2336 return createjs.DomUtils.appendToHead(b), b; 2337 }), 2338 (createjs.CSSLoader = createjs.promote(CSSLoader, "AbstractLoader")); 2339 })(), 2340 (this.createjs = this.createjs || {}), 2341 (function () { 2342 "use strict"; 2343 function FontLoader(a, b) { 2344 this.AbstractLoader_constructor(a, b, a.type), 2345 (this._faces = {}), 2346 (this._watched = []), 2347 (this._count = 0), 2348 (this._watchInterval = null), 2349 (this._loadTimeout = null), 2350 (this._injectCSS = void 0 === a.injectCSS ? !0 : a.injectCSS), 2351 this.dispatchEvent("initialize"); 2352 } 2353 var a = createjs.extend(FontLoader, createjs.AbstractLoader); 2354 (FontLoader.canLoadItem = function (a) { 2355 return a.type == createjs.Types.FONT || a.type == createjs.Types.FONTCSS; 2356 }),
2357 (FontLoader.sampleText = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"), 2358 (FontLoader._ctx = document.createElement("canvas").getContext("2d")), 2359 (FontLoader._referenceFonts = ["serif", "monospace"]), 2360 (FontLoader.WEIGHT_REGEX = 2361 /[- ._]*(thin|normal|book|regular|medium|black|heavy|[1-9]00|(?:extra|ultra|semi|demi)?[- ._]*(?:light|bold))[- ._]*/gi), 2362 (FontLoader.STYLE_REGEX = /[- ._]*(italic|oblique)[- ._]*/gi), 2363 (FontLoader.FONT_FORMAT = { 2364 woff2: "woff2", 2365 woff: "woff", 2366 ttf: "truetype", 2367 otf: "truetype", 2368 }), 2369 (FontLoader.FONT_WEIGHT = { 2370 thin: 100, 2371 extralight: 200, 2372 ultralight: 200, 2373 light: 300, 2374 semilight: 300, 2375 demilight: 300, 2376 book: "normal", 2377 regular: "normal", 2378 semibold: 600, 2379 demibold: 600, 2380 extrabold: 800, 2381 ultrabold: 800, 2382 black: 900, 2383 heavy: 900, 2384 }), 2385 (FontLoader.WATCH_DURATION = 10), 2386 (a.load = function () { 2387 if (this.type == createjs.Types.FONTCSS) { 2388 var a = this._watchCSS(); 2389 if (!a) return void this.AbstractLoader_load(); 2390 } else if (this._item.src instanceof Array) this._watchFontArray(); 2391 else { 2392 var b = this._defFromSrc(this._item.src); 2393 this._watchFont(b), this._injectStyleTag(this._cssFromDef(b)); 2394 } 2395 (this._loadTimeout = setTimeout( 2396 createjs.proxy(this._handleTimeout, this), 2397 this._item.loadTimeout 2398 )), 2399 this.dispatchEvent("loadstart"); 2400 }), 2401 (a._handleTimeout = function () { 2402 this._stopWatching(), 2403 this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT")); 2404 }), 2405 (a._createRequest = function () { 2406 return this._request; 2407 }), 2408 (a.handleEvent = function (a) { 2409 switch (a.type) { 2410 case "complete": 2411 (this._rawResult = a.target._response), 2412 (this._result = !0), 2413 this._parseCSS(this._rawResult); 2414 break; 2415 case "error": 2416 this._stopWatching(), this.AbstractLoader_handleEvent(a); 2417 } 2418 }), 2419 (a._watchCSS = function () { 2420 var a = this._item.src; 2421 return ( 2422 a instanceof HTMLStyleElement && 2423 (this._injectCSS && 2424 !a.parentNode && 2425 (document.head || document.getElementsByTagName("head")[0]).appendChild( 2426 a 2427 ), 2428 (this._injectCSS = !1), 2429 (a = "\n" + a.textContent)), 2430 -1 !== a.search(/\n|\r|@font-face/i) 2431 ? (this._parseCSS(a), !0) 2432 : ((this._request = new createjs.XHRRequest(this._item)), !1) 2433 ); 2434 }), 2435 (a._parseCSS = function (a) { 2436 for (var b = /@font-face\s*\{([^}]+)}/g; ; ) { 2437 var c = b.exec(a); 2438 if (!c) break; 2439 this._watchFont(this._parseFontFace(c[1])); 2440 } 2441 this._injectStyleTag(a); 2442 }), 2443 (a._watchFontArray = function () { 2444 for (var a, b = this._item.src, c = "", d = b.length - 1; d >= 0; d--) { 2445 var e = b[d]; 2446 (a = "string" == typeof e ? this._defFromSrc(e) : this._defFromObj(e)), 2447 this._watchFont(a), 2448 (c += this._cssFromDef(a) + "\n"); 2449 } 2450 this._injectStyleTag(c); 2451 }), 2452 (a._injectStyleTag = function (a) { 2453 if (this._injectCSS) { 2454 var b = document.head || document.getElementsByTagName("head")[0], 2455 c = document.createElement("style"); 2456 (c.type = "text/css"), 2457 c.styleSheet 2458 ? (c.styleSheet.cssText = a) 2459 : c.appendChild(document.createTextNode(a)), 2460 b.appendChild(c); 2461 } 2462 }), 2463 (a._parseFontFace = function (a) { 2464 var b = this._getCSSValue(a, "font-family"), 2465 c = this._getCSSValue(a, "src"); 2466 return b && c 2467 ? this._defFromObj({ 2468 family: b, 2469 src: c, 2470 style: this._getCSSValue(a, "font-style"), 2471 weight: this._getCSSValue(a, "font-weight"), 2472 }) 2473 : null; 2474 }), 2475 (a._watchFont = function (a) { 2476 a && 2477 !this._faces[a.id] && 2478 ((this._faces[a.id] = a), 2479 this._watched.push(a), 2480 this._count++, 2481 this._calculateReferenceSizes(a), 2482 this._startWatching()); 2483 }), 2484 (a._startWatching = function () { 2485 null == this._watchInterval && 2486 (this._watchInterval = setInterval( 2487 createjs.proxy(this._watch, this), 2488 FontLoader.WATCH_DURATION 2489 )); 2490 }), 2491 (a._stopWatching = function () { 2492 clearInterval(this._watchInterval), 2493 clearTimeout(this._loadTimeout), 2494 (this._watchInterval = null); 2495 }), 2496 (a._watch = function () { 2497 for ( 2498 var a = this._watched, 2499 b = FontLoader._referenceFonts, 2500 c = a.length, 2501 d = c - 1; 2502 d >= 0; 2503 d-- 2504 ) 2505 for (var e = a[d], f = e.refs, g = f.length - 1; g >= 0; g--) { 2506 var h = this._getTextWidth(e.family + "," + b[g], e.weight, e.style); 2507 if (h != f[g]) { 2508 var i = new createjs.Event("fileload"); 2509 (e.type = "font-family"), 2510 (i.item = e), 2511 this.dispatchEvent(i), 2512 a.splice(d, 1); 2513 break; 2514 } 2515 } 2516 if (c !== a.length) { 2517 var i = new createjs.ProgressEvent(this._count - a.length, this._count); 2518 this.dispatchEvent(i); 2519 } 2520 0 === c && (this._stopWatching(), this._sendComplete()); 2521 }), 2522 (a._calculateReferenceSizes = function (a) { 2523 for ( 2524 var b = FontLoader._referenceFonts, c = (a.refs = []), d = 0; 2525 d < b.length; 2526 d++ 2527 ) 2528 c[d] = this._getTextWidth(b[d], a.weight, a.style); 2529 }), 2530 (a._defFromSrc = function (a) { 2531 var b, 2532 c = /[- ._]+/g, 2533 d = a, 2534 e = null; 2535 (b = d.search(/[?#]/)), 2536 -1 !== b && (d = d.substr(0, b)), 2537 (b = d.lastIndexOf(".")), 2538 -1 !== b && ((e = d.substr(b + 1)), (d = d.substr(0, b))), 2539 (b = d.lastIndexOf("/")), 2540 -1 !== b && (d = d.substr(b + 1)); 2541 var f = d, 2542 g = f.match(FontLoader.WEIGHT_REGEX); 2543 g && ((g = g[0]), (f = f.replace(g, "")), (g = g.replace(c, "").toLowerCase())); 2544 var h = d.match(FontLoader.STYLE_REGEX); 2545 h && ((f = f.replace(h[0], "")), (h = "italic")), (f = f.replace(c, "")); 2546 var i = "local('" + d.replace(c, " ") + "'), url('" + a + "')", 2547 j = FontLoader.FONT_FORMAT[e]; 2548 return ( 2549 j && (i += " format('" + j + "')"), 2550 this._defFromObj({ 2551 family: f, 2552 weight: FontLoader.FONT_WEIGHT[g] || g, 2553 style: h, 2554 src: i, 2555 }) 2556 ); 2557 }), 2558 (a._defFromObj = function (a) { 2559 var b = { 2560 family: a.family, 2561 src: a.src, 2562 style: a.style || "normal", 2563 weight: a.weight || "normal", 2564 }; 2565 return (b.id = b.family + ";" + b.style + ";" + b.weight), b; 2566 }), 2567 (a._cssFromDef = function (a) { 2568 return ( 2569 "@font-face {\n font-family: '" + 2570 a.family + 2571 "';\n font-style: " + 2572 a.style + 2573 ";\n font-weight: " + 2574 a.weight + 2575 ";\n src: " + 2576 a.src + 2577 ";\n}" 2578 ); 2579 }), 2580 (a._getTextWidth = function (a, b, c) { 2581 var d = FontLoader._ctx; 2582 return ( 2583 (d.font = c + " " + b + " 72px " + a),
2584 d.measureText(FontLoader.sampleText).width 2585 ); 2586 }), 2587 (a._getCSSValue = function (a, b) { 2588 var c = new RegExp(b + ":s*([^;}]+?)s*[;}]"), 2589 d = c.exec(a); 2590 return d && d[1] ? d[1] : null; 2591 }), 2592 (createjs.FontLoader = createjs.promote(FontLoader, "AbstractLoader")); 2593 })(), 2594 (this.createjs = this.createjs || {}), 2595 (function () { 2596 "use strict"; 2597 function ImageLoader(a, b) { 2598 this.AbstractLoader_constructor(a, b, createjs.Types.IMAGE), 2599 (this.resultFormatter = this._formatResult), 2600 (this._tagSrcAttribute = "src"), 2601 createjs.DomUtils.isImageTag(a) 2602 ? (this._tag = a) 2603 : createjs.DomUtils.isImageTag(a.src) 2604 ? (this._tag = a.src) 2605 : createjs.DomUtils.isImageTag(a.tag) && (this._tag = a.tag), 2606 null != this._tag 2607 ? (this._preferXHR = !1) 2608 : (this._tag = createjs.Elements.img()), 2609 this.on("initialize", this._updateXHR, this); 2610 } 2611 var a = createjs.extend(ImageLoader, createjs.AbstractLoader), 2612 b = ImageLoader; 2613 (b.canLoadItem = function (a) { 2614 return a.type == createjs.Types.IMAGE; 2615 }), 2616 (a.load = function () { 2617 if ("" != this._tag.src && this._tag.complete) return void this._sendComplete(); 2618 var a = this._item.crossOrigin; 2619 1 == a && (a = "Anonymous"), 2620 null == a || 2621 createjs.URLUtils.isLocal(this._item) || 2622 (this._tag.crossOrigin = a), 2623 this.AbstractLoader_load(); 2624 }), 2625 (a._updateXHR = function (a) { 2626 (a.loader.mimeType = "text/plain; charset=x-user-defined-binary"), 2627 a.loader.setResponseType && a.loader.setResponseType("blob"); 2628 }), 2629 (a._formatResult = function () { 2630 return this._formatImage; 2631 }), 2632 (a._formatImage = function (a, b) { 2633 var c = this._tag, 2634 d = window.URL || window.webkitURL; 2635 if (this._preferXHR) 2636 if (d) { 2637 var e = d.createObjectURL(this.getResult(!0)); 2638 (c.src = e), 2639 c.addEventListener("load", this._cleanUpURL, !1), 2640 c.addEventListener("error", this._cleanUpURL, !1); 2641 } else c.src = this._item.src; 2642 else; 2643 c.complete 2644 ? a(c) 2645 : ((c.onload = createjs.proxy(function () { 2646 a(this._tag), (c.onload = c.onerror = null); 2647 }, this)), 2648 (c.onerror = createjs.proxy(function (a) { 2649 b(new createjs.ErrorEvent("IMAGE_FORMAT", null, a)), 2650 (c.onload = c.onerror = null); 2651 }, this))); 2652 }), 2653 (a._cleanUpURL = function (a) { 2654 var b = window.URL || window.webkitURL; 2655 b.revokeObjectURL(a.target.src); 2656 }), 2657 (createjs.ImageLoader = createjs.promote(ImageLoader, "AbstractLoader")); 2658 })(), 2659 (this.createjs = this.createjs || {}), 2660 (function () { 2661 "use strict"; 2662 function JavaScriptLoader(a, b) { 2663 this.AbstractLoader_constructor(a, b, createjs.Types.JAVASCRIPT), 2664 (this.resultFormatter = this._formatResult), 2665 (this._tagSrcAttribute = "src"), 2666 this.setTag(createjs.Elements.script()); 2667 } 2668 var a = createjs.extend(JavaScriptLoader, createjs.AbstractLoader), 2669 b = JavaScriptLoader; 2670 (b.canLoadItem = function (a) { 2671 return a.type == createjs.Types.JAVASCRIPT; 2672 }), 2673 (a._formatResult = function (a) { 2674 var b = a.getTag(); 2675 return this._preferXHR && (b.text = a.getResult(!0)), b; 2676 }), 2677 (createjs.JavaScriptLoader = createjs.promote( 2678 JavaScriptLoader, 2679 "AbstractLoader" 2680 )); 2681 })(), 2682 (this.createjs = this.createjs || {}), 2683 (function () { 2684 "use strict"; 2685 function JSONLoader(a) { 2686 this.AbstractLoader_constructor(a, !0, createjs.Types.JSON), 2687 (this.resultFormatter = this._formatResult); 2688 } 2689 var a = createjs.extend(JSONLoader, createjs.AbstractLoader), 2690 b = JSONLoader; 2691 (b.canLoadItem = function (a) { 2692 return a.type == createjs.Types.JSON; 2693 }), 2694 (a._formatResult = function (a) { 2695 var b = null; 2696 try { 2697 b = createjs.DataUtils.parseJSON(a.getResult(!0)); 2698 } catch (c) { 2699 var d = new createjs.ErrorEvent("JSON_FORMAT", null, c); 2700 return this._sendError(d), c; 2701 } 2702 return b; 2703 }), 2704 (createjs.JSONLoader = createjs.promote(JSONLoader, "AbstractLoader")); 2705 })(), 2706 (this.createjs = this.createjs || {}), 2707 (function () { 2708 "use strict"; 2709 function JSONPLoader(a) { 2710 this.AbstractLoader_constructor(a, !1, createjs.Types.JSONP), 2711 this.setTag(createjs.Elements.script()), 2712 (this.getTag().type = "text/javascript"); 2713 } 2714 var a = createjs.extend(JSONPLoader, createjs.AbstractLoader), 2715 b = JSONPLoader; 2716 (b.canLoadItem = function (a) { 2717 return a.type == createjs.Types.JSONP; 2718 }), 2719 (a.cancel = function () { 2720 this.AbstractLoader_cancel(), this._dispose(); 2721 }), 2722 (a.load = function () { 2723 if (null == this._item.callback) 2724 throw new Error("callback is required for loading JSONP requests."); 2725 if (null != window[this._item.callback]) 2726 throw new Error( 2727 "JSONP callback '" + 2728 this._item.callback + 2729 "' already exists on window. You need to specify a different callback or re-name the current one." 2730 ); 2731 (window[this._item.callback] = createjs.proxy(this._handleLoad, this)), 2732 createjs.DomUtils.appendToBody(this._tag), 2733 (this._loadTimeout = setTimeout( 2734 createjs.proxy(this._handleTimeout, this), 2735 this._item.loadTimeout 2736 )), 2737 (this._tag.src = this._item.src); 2738 }), 2739 (a._handleLoad = function (a) { 2740 (this._result = this._rawResult = a), this._sendComplete(), this._dispose(); 2741 }), 2742 (a._handleTimeout = function () { 2743 this._dispose(), this.dispatchEvent(new createjs.ErrorEvent("timeout")); 2744 }), 2745 (a._dispose = function () { 2746 createjs.DomUtils.removeChild(this._tag), 2747 delete window[this._item.callback], 2748 clearTimeout(this._loadTimeout); 2749 }), 2750 (createjs.JSONPLoader = createjs.promote(JSONPLoader, "AbstractLoader")); 2751 })(), 2752 (this.createjs = this.createjs || {}), 2753 (function () { 2754 "use strict"; 2755 function ManifestLoader(a, b) { 2756 this.AbstractLoader_constructor(a, b, createjs.Types.MANIFEST), 2757 (this.plugins = null), 2758 (this._manifestQueue = null); 2759 } 2760 var a = createjs.extend(ManifestLoader, createjs.AbstractLoader), 2761 b = ManifestLoader; 2762 (b.MANIFEST_PROGRESS = 0.25), 2763 (b.canLoadItem = function (a) { 2764 return a.type == createjs.Types.MANIFEST; 2765 }), 2766 (a.load = function () { 2767 this.AbstractLoader_load(); 2768 }), 2769 (a._createRequest = function () { 2770 var a = this._item.callback; 2771 this._request = 2772 null != a 2773 ? new createjs.JSONPLoader(this._item) 2774 : new createjs.JSONLoader(this._item); 2775 }), 2776 (a.handleEvent = function (a) { 2777 switch (a.type) { 2778 case "complete": 2779 return ( 2780 (this._rawResult = a.target.getResult(!0)), 2781 (this._result = a.target.getResult()), 2782 this._sendProgress(b.MANIFEST_PROGRESS), 2783 void this._loadManifest(this._result) 2784 ); 2785 case "progress": 2786 return ( 2787 (a.loaded *= b.MANIFEST_PROGRESS), 2788 (this.progress = a.loaded / a.total), 2789 (isNaN(this.progress) || 1 / 0 == this.progress) && (this.progress = 0), 2790 void this._sendProgress(a) 2791 ); 2792 } 2793 this.AbstractLoader_handleEvent(a); 2794 }), 2795 (a.destroy = function () { 2796 this.AbstractLoader_destroy(), this._manifestQueue.close(); 2797 }), 2798 (a._loadManifest = function (a) { 2799 if (a && a.manifest) { 2800 var b = (this._manifestQueue = new createjs.LoadQueue(this._preferXHR)); 2801 b.on("fileload", this._handleManifestFileLoad, this), 2802 b.on("progress", this._handleManifestProgress, this), 2803 b.on("complete", this._handleManifestComplete, this, !0), 2804 b.on("error", this._handleManifestError, this, !0); 2805 for (var c = 0, d = this.plugins.length; d > c; c++) 2806 b.installPlugin(this.plugins[c]); 2807 b.loadManifest(a); 2808 } else this._sendComplete(); 2809 }), 2810 (a._handleManifestFileLoad = function (a) { 2811 (a.target = null), this.dispatchEvent(a); 2812 }), 2813 (a._handleManifestComplete = function () { 2814 (this._loadedItems = this._manifestQueue.getItems(!0)), this._sendComplete(); 2815 }), 2816 (a._handleManifestProgress = function (a) { 2817 (this.progress = a.progress * (1 - b.MANIFEST_PROGRESS) + b.MANIFEST_PROGRESS), 2818 this._sendProgress(this.progress); 2819 }), 2820 (a._handleManifestError = function (a) { 2821 var b = new createjs.Event("fileerror"); 2822 (b.item = a.data), this.dispatchEvent(b); 2823 }), 2824 (createjs.ManifestLoader = createjs.promote(ManifestLoader, "AbstractLoader")); 2825 })(), 2826 (this.createjs = this.createjs || {}), 2827 (function () { 2828 "use strict"; 2829 function SoundLoader(a, b) { 2830 this.AbstractMediaLoader_constructor(a, b, createjs.Types.SOUND), 2831 createjs.DomUtils.isAudioTag(a) 2832 ? (this._tag = a) 2833 : createjs.DomUtils.isAudioTag(a.src) 2834 ? (this._tag = a) 2835 : createjs.DomUtils.isAudioTag(a.tag) && 2836 (this._tag = createjs.DomUtils.isAudioTag(a) ? a : a.src), 2837 null != this._tag && (this._preferXHR = !1); 2838 } 2839 var a = createjs.extend(SoundLoader, createjs.AbstractMediaLoader), 2840 b = SoundLoader; 2841 (b.canLoadItem = function (a) { 2842 return a.type == createjs.Types.SOUND;
2843 }), 2844 (a._createTag = function (a) { 2845 var b = createjs.Elements.audio(); 2846 return (b.autoplay = !1), (b.preload = "none"), (b.src = a), b; 2847 }), 2848 (createjs.SoundLoader = createjs.promote(SoundLoader, "AbstractMediaLoader")); 2849 })(), 2850 (this.createjs = this.createjs || {}), 2851 (function () { 2852 "use strict"; 2853 function VideoLoader(a, b) { 2854 this.AbstractMediaLoader_constructor(a, b, createjs.Types.VIDEO), 2855 createjs.DomUtils.isVideoTag(a) || createjs.DomUtils.isVideoTag(a.src) 2856 ? (this.setTag(createjs.DomUtils.isVideoTag(a) ? a : a.src), 2857 (this._preferXHR = !1)) 2858 : this.setTag(this._createTag()); 2859 } 2860 var a = createjs.extend(VideoLoader, createjs.AbstractMediaLoader), 2861 b = VideoLoader; 2862 (a._createTag = function () { 2863 return createjs.Elements.video(); 2864 }), 2865 (b.canLoadItem = function (a) { 2866 return a.type == createjs.Types.VIDEO; 2867 }), 2868 (createjs.VideoLoader = createjs.promote(VideoLoader, "AbstractMediaLoader")); 2869 })(), 2870 (this.createjs = this.createjs || {}), 2871 (function () { 2872 "use strict"; 2873 function SpriteSheetLoader(a, b) { 2874 this.AbstractLoader_constructor(a, b, createjs.Types.SPRITESHEET), 2875 (this._manifestQueue = null); 2876 } 2877 var a = createjs.extend(SpriteSheetLoader, createjs.AbstractLoader), 2878 b = SpriteSheetLoader; 2879 (b.SPRITESHEET_PROGRESS = 0.25), 2880 (b.canLoadItem = function (a) { 2881 return a.type == createjs.Types.SPRITESHEET; 2882 }), 2883 (a.destroy = function () { 2884 this.AbstractLoader_destroy(), this._manifestQueue.close(); 2885 }), 2886 (a._createRequest = function () { 2887 var a = this._item.callback; 2888 this._request = 2889 null != a 2890 ? new createjs.JSONPLoader(this._item) 2891 : new createjs.JSONLoader(this._item); 2892 }), 2893 (a.handleEvent = function (a) { 2894 switch (a.type) { 2895 case "complete": 2896 return ( 2897 (this._rawResult = a.target.getResult(!0)), 2898 (this._result = a.target.getResult()), 2899 this._sendProgress(b.SPRITESHEET_PROGRESS), 2900 void this._loadManifest(this._result) 2901 ); 2902 case "progress": 2903 return ( 2904 (a.loaded *= b.SPRITESHEET_PROGRESS), 2905 (this.progress = a.loaded / a.total), 2906 (isNaN(this.progress) || 1 / 0 == this.progress) && (this.progress = 0), 2907 void this._sendProgress(a) 2908 ); 2909 } 2910 this.AbstractLoader_handleEvent(a); 2911 }), 2912 (a._loadManifest = function (a) { 2913 if (a && a.images) { 2914 var b = (this._manifestQueue = new createjs.LoadQueue( 2915 this._preferXHR, 2916 this._item.path, 2917 this._item.crossOrigin 2918 )); 2919 b.on("complete", this._handleManifestComplete, this, !0), 2920 b.on("fileload", this._handleManifestFileLoad, this), 2921 b.on("progress", this._handleManifestProgress, this), 2922 b.on("error", this._handleManifestError, this, !0), 2923 b.loadManifest(a.images); 2924 } 2925 }), 2926 (a._handleManifestFileLoad = function (a) { 2927 var b = a.result; 2928 if (null != b) { 2929 var c = this.getResult().images, 2930 d = c.indexOf(a.item.src); 2931 c[d] = b; 2932 } 2933 }), 2934 (a._handleManifestComplete = function () { 2935 (this._result = new createjs.SpriteSheet(this._result)), 2936 (this._loadedItems = this._manifestQueue.getItems(!0)), 2937 this._sendComplete(); 2938 }), 2939 (a._handleManifestProgress = function (a) { 2940 (this.progress = 2941 a.progress * (1 - b.SPRITESHEET_PROGRESS) + b.SPRITESHEET_PROGRESS), 2942 this._sendProgress(this.progress); 2943 }), 2944 (a._handleManifestError = function (a) { 2945 var b = new createjs.Event("fileerror"); 2946 (b.item = a.data), this.dispatchEvent(b); 2947 }), 2948 (createjs.SpriteSheetLoader = createjs.promote( 2949 SpriteSheetLoader, 2950 "AbstractLoader" 2951 )); 2952 })(), 2953 (this.createjs = this.createjs || {}), 2954 (function () { 2955 "use strict"; 2956 function SVGLoader(a, b) { 2957 this.AbstractLoader_constructor(a, b, createjs.Types.SVG), 2958 (this.resultFormatter = this._formatResult), 2959 (this._tagSrcAttribute = "data"), 2960 b
2961 ? this.setTag(createjs.Elements.svg()) 2962 : (this.setTag(createjs.Elements.object()), 2963 (this.getTag().type = "image/svg+xml")); 2964 } 2965 var a = createjs.extend(SVGLoader, createjs.AbstractLoader), 2966 b = SVGLoader; 2967 (b.canLoadItem = function (a) { 2968 return a.type == createjs.Types.SVG; 2969 }), 2970 (a._formatResult = function (a) { 2971 var b = createjs.DataUtils.parseXML(a.getResult(!0)), 2972 c = a.getTag(); 2973 if ( 2974 (!this._preferXHR && 2975 document.body.contains(c) && 2976 document.body.removeChild(c), 2977 null != b.documentElement) 2978 ) { 2979 var d = b.documentElement; 2980 return ( 2981 document.importNode && (d = document.importNode(d, !0)), c.appendChild(d), c 2982 ); 2983 } 2984 return b; 2985 }), 2986 (createjs.SVGLoader = createjs.promote(SVGLoader, "AbstractLoader")); 2987 })(), 2988 (this.createjs = this.createjs || {}), 2989 (function () { 2990 "use strict"; 2991 function XMLLoader(a) { 2992 this.AbstractLoader_constructor(a, !0, createjs.Types.XML), 2993 (this.resultFormatter = this._formatResult); 2994 } 2995 var a = createjs.extend(XMLLoader, createjs.AbstractLoader), 2996 b = XMLLoader; 2997 (b.canLoadItem = function (a) { 2998 return a.type == createjs.Types.XML; 2999 }), 3000 (a._formatResult = function (a) { 3001 return createjs.DataUtils.parseXML(a.getResult(!0)); 3002 }), 3003 (createjs.XMLLoader = createjs.promote(XMLLoader, "AbstractLoader")); 3004 })();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.