1(() => { 2 var n = { 3 105: () => { 4 !(function (s) { 5 function a(e, t) { 6 (this.options = t), (this.$elementFilestyle = []), (this.$element = s(e)); 7 } 8 var r = 0; 9 a.prototype = { 10 clear: function () { 11 this.$element.val(""), this.$elementFilestyle.find(":text").val(""), this.$elementFilestyle.find(".badge").remove(); 12 }, 13 destroy: function () { 14 this.$element.removeAttr("style").removeData("filestyle"), this.$elementFilestyle.remove(); 15 }, 16 disabled: function (e) { 17 if (!0 === e) this.options.disabled || (this.$element.attr("disabled", "true"), this.$elementFilestyle.find("label").attr("disabled", "true"), (this.options.disabled = !0)); 18 else { 19 if (!1 !== e) return this.options.disabled; 20 this.options.disabled && (this.$element.removeAttr("disabled"), this.$elementFilestyle.find("label").removeAttr("disabled"), (this.options.disabled = !1)); 21 } 22 }, 23 buttonBefore: function (e) { 24 if (!0 === e) this.options.buttonBefore || ((this.options.buttonBefore = !0), this.options.input && (this.$elementFilestyle.remove(), this.constructor(), this.pushNameFiles())); 25 else { 26 if (!1 !== e) return this.options.buttonBefore; 27 this.options.buttonBefore && ((this.options.buttonBefore = !1), this.options.input && (this.$elementFilestyle.remove(), this.constructor(), this.pushNameFiles())); 28 } 29 }, 30 icon: function (e) { 31 if (!0 === e) this.options.icon || ((this.options.icon = !0), this.$elementFilestyle.find("label").prepend(this.htmlIcon())); 32 else { 33 if (!1 !== e) return this.options.icon; 34 this.options.icon && ((this.options.icon = !1), this.$elementFilestyle.find(".icon-span-filestyle").remove()); 35 } 36 }, 37 input: function (e) { 38 if (!0 === e) 39 this.options.input || 40 ((this.options.input = !0), 41 this.options.buttonBefore ? this.$elementFilestyle.append(this.htmlInput()) : this.$elementFilestyle.prepend(this.htmlInput()), 42 this.$elementFilestyle.find(".badge").remove(), 43 this.pushNameFiles(), 44 this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn")); 45 else { 46 if (!1 !== e) return this.options.input; 47 this.options.input && 48 ((this.options.input = !1), 49 this.$elementFilestyle.find(":text").remove(), 50 0 < (e = this.pushNameFiles()).length && this.options.badge && this.$elementFilestyle.find("label").append(' <span class="badge">' + e.length + "</span>"), 51 this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn")); 52 } 53 }, 54 size: function (e) { 55 if (void 0 === e) return this.options.size; 56 var t = this.$elementFilestyle.find("label"), 57 n = this.$elementFilestyle.find("input"); 58 t.removeClass("btn-lg btn-sm"), n.removeClass("input-lg input-sm"), "nr" != e && (t.addClass("btn-" + e), n.addClass("input-" + e)); 59 }, 60 placeholder: function (e) { 61 if (void 0 === e) return this.options.placeholder; 62 (this.options.placeholder = e), this.$elementFilestyle.find("input").attr("placeholder", e); 63 }, 64 buttonText: function (e) { 65 if (void 0 === e) return this.options.buttonText; 66 (this.options.buttonText = e), this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText); 67 }, 68 buttonName: function (e) { 69 if (void 0 === e) return this.options.buttonName; 70 (this.options.buttonName = e), this.$elementFilestyle.find("label").attr({ class: "btn " + this.options.buttonName }); 71 }, 72 iconName: function (e) { 73 if (void 0 === e) return this.options.iconName;
74 this.$elementFilestyle.find(".icon-span-filestyle").attr({ class: "icon-span-filestyle " + this.options.iconName }); 75 }, 76 htmlIcon: function () { 77 return this.options.icon ? '<span class="icon-span-filestyle ' + this.options.iconName + '"></span> ' : ""; 78 }, 79 htmlInput: function () { 80 return this.options.input ? '<input type="text" class="form-control ' + ("nr" == this.options.size ? "" : "input-" + this.options.size) + '" placeholder="' + this.options.placeholder + '" disabled> ' : ""; 81 }, 82 pushNameFiles: function () { 83 var e = "", 84 t = []; 85 void 0 === this.$element[0].files ? (t[0] = { name: this.$element[0] && this.$element[0].value }) : (t = this.$element[0].files); 86 for (var n = 0; n < t.length; n++) e += t[n].name.split("\\").pop() + ", "; 87 return "" !== e ? this.$elementFilestyle.find(":text").val(e.replace(/\, $/g, "")) : this.$elementFilestyle.find(":text").val(""), t; 88 }, 89 constructor: function () { 90 var e, 91 t, 92 n = this, 93 i = n.$element.attr("id"); 94 ("" !== i && i) || (n.$element.attr({ id: (i = "filestyle-" + r) }), r++), 95 (t = 96 '<span class="group-span-filestyle ' + 97 (n.options.input ? "input-group-btn" : "") + 98 '"><label for="' + 99 i + 100 '" class="btn ' + 101 n.options.buttonName + 102 " " + 103 ("nr" == n.options.size ? "" : "btn-" + n.options.size) + 104 '" ' + 105 (n.options.disabled ? 'disabled="true"' : "") + 106 ">" + 107 n.htmlIcon() + 108 '<span class="buttonText">' + 109 n.options.buttonText + 110 "</span></label></span>"), 111 (e = n.options.buttonBefore ? t + n.htmlInput() : n.htmlInput() + t), 112 (n.$elementFilestyle = s('<div class="bootstrap-filestyle input-group">' + e + "</div>")), 113 n.$elementFilestyle 114 .find(".group-span-filestyle") 115 .attr("tabindex", "0") 116 .keypress(function (e) { 117 if (13 === e.keyCode || 32 === e.charCode) return n.$elementFilestyle.find("label").click(), !1; 118 }), 119 n.$element.css({ position: "absolute", clip: "rect(0px 0px 0px 0px)" }).attr("tabindex", "-1").after(n.$elementFilestyle), 120 n.options.disabled && n.$element.attr("disabled", "true"), 121 n.$element.change(function () { 122 var e = n.pushNameFiles(); 123 0 == n.options.input && n.options.badge 124 ? 0 == n.$elementFilestyle.find(".badge").length 125 ? n.$elementFilestyle.find("label").append(' <span class="badge">' + e.length + "</span>") 126 : 0 == e.length 127 ? n.$elementFilestyle.find(".badge").remove() 128 : n.$elementFilestyle.find(".badge").html(e.length) 129 : n.$elementFilestyle.find(".badge").remove(); 130 }), 131 -1 < window.navigator.userAgent.
131search(/firefox/i) && 132 n.$elementFilestyle.find("label").click(function () { 133 return n.$element.click(), !1; 134 }); 135 }, 136 }; 137 var e = s.fn.filestyle; 138 (s.fn.filestyle = function (i, r) { 139 var o = ""; 140 this.each(function () { 141 var e, t, n; 142 "file" === s(this).attr("type") && 143 ((t = (e = s(this)).data("filestyle")), 144 (n = s.extend({}, s.fn.filestyle.defaults, i, "object" == typeof i && i)), 145 t || (e.data("filestyle", (t = new a(this, n))), t.constructor()), 146 "string" == typeof i && (o = t[i](r))); 147 }); 148 return o; 149 }), 150 (s.fn.filestyle.defaults = { 151 buttonText: "Choose file", 152 iconName: "glyphicon glyphicon-folder-open", 153 buttonName: "btn-default", 154 size: "nr", 155 input: !0, 156 badge: !0, 157 icon: !0, 158 buttonBefore: !1, 159 disabled: !1, 160 placeholder: "", 161 }), 162 (s.fn.filestyle.noConflict = function () { 163 return (s.fn.filestyle = e), this; 164 }), 165 s(function () { 166 s(".filestyle").each(function () { 167 var e = s(this), 168 t = { 169 input: "false" !== e.attr("data-input"), 170 icon: "false" !== e.attr("data-icon"), 171 buttonBefore: "true" === e.attr("data-buttonBefore"), 172 disabled: "true" === e.attr("data-disabled"), 173 size: e.attr("data-size"), 174 buttonText: e.attr("data-buttonText"), 175 buttonName: e.attr("data-buttonName"), 176 iconName: e.attr("data-iconName"), 177 badge: "false" !== e.attr("data-badge"), 178 placeholder: e.attr("data-placeholder"), 179 }; 180 e.filestyle(t); 181 }); 182 }); 183 })(window.jQuery); 184 }, 185 285: () => { 186 var g; 187 (g = jQuery).fn.scrollbox = function (m) { 188 return ( 189 ((m = g.extend( 190 { 191 linear: !1, 192 startDelay: 2, 193 delay: 3, 194 step: 5, 195 speed: 32, 196 switchItems: 1, 197 direction: "vertical", 198 distance: "auto", 199 autoPlay: !0, 200 onMouseOverPause: !0, 201 paused: !1, 202 queue: null, 203 listElement: "ul", 204 listItemElement: "li", 205 infiniteLoop: !0, 206 switchAmount: 0, 207 afterForward: null, 208 afterBackward: null, 209 triggerStackable: !1, 210 }, 211 m 212 )).scrollOffset = "vertical" === m.direction ? "scrollTop" : "scrollLeft"), 213 m.queue && (m.queue = g("#" + m.queue)), 214 this.each(function () { 215 var i, 216 r, 217 e, 218 o, 219 t, 220 n, 221 s, 222 a, 223 l, 224 c = g(this), 225 u = null, 226 f = null, 227 d = !1, 228 h = 0, 229 p = 0; 230 m.onMouseOverPause && 231 (c.bind("mouseover", function () { 232 d = !0; 233 }), 234 c.bind("mouseout", function () { 235 d = !1; 236 })), 237 (i = c.children(m.listElement + ":first-child")), 238 !1 === m.infiniteLoop && 0 === m.switchAmount && (m.switchAmount = i.children().length), 239 (n = function () { 240 if (!d) { 241 var e, 242 t = i.children(m.listItemElement + ":first-child"), 243 t = "auto" !== m.distance ? m.distance : "vertical" === m.direction ? t.outerHeight(!0) : t.outerWidth(!0), 244 n = m.linear ? Math.min(c[0][m.scrollOffset] + m.step, t) : ((n = Math.max(3, parseInt(0.3 * (t - c[0][m.scrollOffset]), 10))), Math.min(c[0][m.scrollOffset] + n, t)); 245 if (t <= (c[0][m.scrollOffset] = n)) { 246 for (e = 0; e < m.switchItems; e++) 247 m.queue && 0 < m.queue.find(m.listItemElement).length 248 ? (i.append(m.queue.find(m.listItemElement)[0]), i.children(m.listItemElement + ":first-child").remove()) 249 : i.append(i.children(m.listItemElement + ":first-child")), 250 ++h; 251 (c[0][m.scrollOffset] = 0), 252 clearInterval(u), 253 (u = null),
254 g.isFunction(m.afterForward) && m.afterForward.call(c, { switchCount: h, currentFirstChild: i.children(m.listItemElement + ":first-child") }), 255 m.triggerStackable && 0 !== p ? r() : (!1 === m.infiniteLoop && h >= m.switchAmount) || (m.autoPlay && (f = setTimeout(o, 1e3 * m.delay))); 256 } 257 } 258 }), 259 (s = function () { 260 if (!d) { 261 var e, t, n; 262 if (0 === c[0][m.scrollOffset]) { 263 for (e = 0; e < m.switchItems; e++) i.children(m.listItemElement + ":last-child").insertBefore(i.children(m.listItemElement + ":first-child")); 264 (t = i.children(m.listItemElement + ":first-child")), (t = "auto" !== m.distance ? m.distance : "vertical" === m.direction ? t.height() : t.width()), (c[0][m.scrollOffset] = t); 265 } 266 (n = m.linear ? Math.max(c[0][m.scrollOffset] - m.step, 0) : ((n = Math.max(3, parseInt(0.3 * c[0][m.scrollOffset], 10))), Math.max(c[0][m.scrollOffset] - n, 0))), 267 0 === (c[0][m.scrollOffset] = n) && 268 (--h, 269 clearInterval(u), 270 (u = null), 271 g.isFunction(m.afterBackward) && m.afterBackward.call(c, { switchCount: h, currentFirstChild: i.children(m.listItemElement + ":first-child") }), 272 m.triggerStackable && 0 !== p ? r() : m.autoPlay && (f = setTimeout(o, 1e3 * m.delay))); 273 } 274 }), 275 (r = function () { 276 0 !== p && (f = 0 < p ? (p--, setTimeout(o, 0)) : (p++, setTimeout(e, 0))); 277 }), 278 (o = function () { 279 clearInterval(u), (u = setInterval(n, m.speed)); 280 }), 281 (e = function () { 282 clearInterval(u), (u = setInterval(s, m.speed)); 283 }), 284 (a = function () { 285 (m.autoPlay = !0), (d = !1), clearInterval(u), (u = setInterval(n, m.speed)); 286 }), 287 (l = function () { 288 d = !0; 289 }), 290 (t = function (e) { 291 (m.delay = e || m.delay), clearTimeout(f), m.autoPlay && (f = setTimeout(o, 1e3 * m.delay)); 292 }), 293 m.autoPlay && (f = setTimeout(o, 1e3 * m.startDelay)), 294 c.bind("resetClock", function (e) { 295 t(e); 296 }), 297 c.bind("forward", function () { 298 m.triggerStackable ? (null !== u ? p++ : o()) : (clearTimeout(f), o()); 299 }), 300 c.bind("backward", function () { 301 m.triggerStackable ? (null !== u ? p-- : e()) : (clearTimeout(f), e()); 302 }), 303 c.bind("pauseHover", function () { 304 l(); 305 }), 306 c.bind("forwardHover", function () { 307 a(); 308 }), 309 c.bind("speedUp", function (e, t) { 310 "undefined" === t && (t = Math.max(1, parseInt(m.speed / 2, 10))), (m.speed = t); 311 }), 312 c.bind("speedDown", function (e, t) { 313 "undefined" === t && (t = 2 * m.speed), (m.speed = t); 314 }), 315 c.bind("updateConfig", function (e, t) { 316 m = g.extend(m, t); 317 }); 318 }) 319 ); 320 }; 321 }, 322 877: () => { 323 !(function (_) { 324 "use strict"; 325 var S = 0; 326 function T(e, t) { 327 return _.map(e, function (e) { 328 return e + ".touchspin_" + t; 329 }); 330 } 331 _.fn.TouchSpin = function (b) { 332 if ("destroy" !== b) { 333 var w = { 334 min: 0, 335 max: 100, 336 initval: "", 337 replacementval: "", 338 step: 1, 339 decimals: 0, 340 stepinterval: 100, 341 forcestepdivisibility: "round", 342 stepintervaldelay: 500, 343 verticalbuttons: !1, 344 verticalupclass: "glyphicon glyphicon-chevron-up", 345 verticaldownclass: "glyphicon glyphicon-chevron-down", 346 prefix: "", 347 postfix: "", 348 prefix_extraclass: "", 349 postfix_extraclass: "", 350 booster: !0, 351 boostat: 10, 352 maxboostedstep: !1, 353 mousewheel: !0, 354 buttondown_class: "btn btn-default", 355 buttonup_class: "btn btn-default", 356 buttondown_txt: "-", 357 buttonup_txt: "+", 358 }, 359 x = { 360 min: "min", 361 max: "max", 362 initval: "init-val", 363 replacementval: "replacement-val", 364 step: "step", 365 decimals: "decimals", 366 stepinterval: "step-interval", 367 verticalbuttons: "vertical-buttons", 368 verticalupclass: "vertical-up-class", 369 verticaldownclass: "vertical-down-class", 370 forcestepdivisibility: "force-step-divisibility", 371 stepintervaldelay: "step-interval-delay", 372 prefix: "prefix", 373 postfix: "postfix", 374 prefix_extraclass: "prefix-extra-class", 375 postfix_extraclass: "postfix-extra-class", 376 booster: "booster", 377 boostat: "boostat", 378 maxboostedstep: "max-boosted-step", 379 mousewheel: "mouse-wheel", 380 buttondown_class: "button-down-class", 381 buttonup_class: "button-up-class", 382 buttondown_txt: "button-down-txt", 383 buttonup_txt: "button-up-txt", 384 }; 385 return this.each(function () { 386 var a, 387 l, 388 n, 389 i, 390 e, 391 t, 392 r, 393 o, 394 c = _(this), 395 s = c.data(), 396 u = 0, 397 f = !1; 398 function d() { 399 var e, 400 t, 401 n = c.val(); 402 "" !== n 403 ? (0 < a.decimals && "." === n) || 404 ((e = parseFloat(n)), 405 (t = e = isNaN(e) ? ("" !== a.replacementval ? a.replacementval : 0) : e).toString() !== n && (t = e), 406 e < a.min && (t = a.min), 407 (t = (function (e) { 408 switch (a.forcestepdivisibility) { 409 case "round": 410 return (Math.round(e / a.step) * a.step).toFixed(a.decimals); 411 case "floor": 412 return (Math.floor(e / a.step) * a.step).toFixed(a.decimals); 413 case "ceil": 414 return (Math.ceil(e / a.step) * a.step).toFixed(a.decimals); 415 default: 416 return e; 417 } 418 })((t = e > a.max ? a.max : t))), 419 Number(n).toString() !== t.toString() && (c.val(t), c.trigger("change"))) 420 : "" !== a.replacementval && (c.val(a.replacementval), c.trigger("change")); 421 } 422 function h() { 423 if (a.booster) { 424 var e = Math.pow(2, Math.floor(u / a.boostat)) * a.step; 425 return a.maxboostedstep && e > a.maxboostedstep && ((e = a.maxboostedstep), (i = Math.round(i / e) * e)), Math.max(a.step, e); 426 } 427 return a.step; 428 } 429 function p() { 430 d(), (i = parseFloat(n.input.val())); 431 var e = (i = isNaN(i) ? 0 : i), 432 t = h(); 433 (i += t) > a.max && ((i = a.max), c.trigger("touchspin.on.max"), v()), n.input.val(Number(i).toFixed(a.decimals)), e !== i && c.trigger("change"); 434 } 435 function m() { 436 d(), (i = parseFloat(n.input.val())); 437 var e = (i = isNaN(i) ? 0 : i), 438 t = h(); 439 (i -= t) < a.min && ((i = a.min), c.trigger("touchspin.on.min"), v()), n.input.val(i.toFixed(a.decimals)), e !== i && c.trigger("change"); 440 } 441 function g() { 442 v(), 443 (u = 0), 444 (f = "down"), 445 c.trigger("touchspin.on.startspin"), 446 c.trigger("touchspin.on.startdownspin"), 447 (r = setTimeout(function () { 448 e = setInterval(function () { 449 u++, m(); 450 }, a.stepinterval); 451 }, a.stepintervaldelay)); 452 } 453 function y() { 454 v(), 455 (u = 0), 456 (f = "up"), 457 c.trigger("touchspin.on.startspin"), 458 c.trigger("touchspin.on.startupspin"), 459 (o = setTimeout(function () { 460 t = setInterval(function () { 461 u++, p(); 462 }, a.stepinterval); 463 }, a.stepintervaldelay)); 464 } 465 function v() { 466 switch ((clearTimeout(r), clearTimeout(o), clearInterval(e), clearInterval(t), f)) { 467 case "up": 468 c.trigger("touchspin.on.stopupspin"), c.trigger("touchspin.on.stopspin"); 469 break; 470 case "down": 471 c.trigger("touchspin.on.stopdownspin"), c.trigger("touchspin.on.stopspin"); 472 } 473 (u = 0), (f = !1); 474 } 475 c.data("alreadyinitialized") || 476 (c.data("alreadyinitialized", !0), 477 (S += 1), 478 c.data("spinnerid", S), 479 c.is("input") && 480 ("" !== 481 (a = _.extend( 482 {}, 483 w, 484 s, 485 (function () { 486 var n = {}; 487 return ( 488 _.each(x, function (e, t) { 489 t = "bts-" + t; 490 c.is("[data-" + t + "]") && (n[e] = c.data(t)); 491 }), 492 n 493 ); 494 })(), 495 b 496 )).initval && 497 "" === c.val() && 498 c.val(a.initval), 499 d(), 500 (function () { 501 var e = c.val(), 502 t = c.parent(); 503 "" !== e && (e = Number(e).toFixed(a.decimals)); 504 c.data("initvalue", e).val(e), 505 c.addClass("form-control"), 506 t.hasClass("input-group") 507 ? (function (e) { 508 e.addClass("bootstrap-touchspin"); 509 var t, 510
510 n, 511 i = c.prev(), 512 r = c.next(), 513 o = '<span class="input-group-addon bootstrap-touchspin-prefix">' + a.prefix + "</span>", 514 s = '<span class="input-group-addon bootstrap-touchspin-postfix">' + a.postfix + "</span>"; 515 i.hasClass("input-group-btn") 516 ? ((t = '<button class="' + a.buttondown_class + ' bootstrap-touchspin-down" type="button">' + a.buttondown_txt + "</button>"), i.append(t)) 517 : ((t = '<span class="input-group-btn"><button class="' + a.buttondown_class + ' bootstrap-touchspin-down" type="button">' + a.buttondown_txt + "</button></span>"), 518 _(t).insertBefore(c)); 519 r.hasClass("input-group-btn") 520 ? ((n = '<button class="' + a.buttonup_class + ' bootstrap-touchspin-up" type="button">' + a.buttonup_txt + "</button>"), r.prepend(n)) 521 : ((n = '<span class="input-group-btn"><button class="' + a.buttonup_class + ' bootstrap-touchspin-up" type="button">' + a.buttonup_txt + "</button></span>"), 522 _(n).insertAfter(c)); 523 _(o).insertBefore(c), _(s).insertAfter(c), (l = e); 524 })(t) 525 : (function () { 526 var e; 527 e = a.verticalbuttons 528 ? '<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">' + 529 a.prefix + 530 '</span><span class="input-group-addon bootstrap-touchspin-postfix">' + 531 a.postfix + 532 '</span><button class="' + 533 a.buttondown_class + 534 ' bootstrap-touchspin-up" type="button"><i class="' + 535 a.verticalupclass + 536 '"></i></button><button class="' + 537 a.buttonup_class + 538 ' bootstrap-touchspin-down" type="button"><i class="' + 539 a.verticaldownclass + 540 '"></i></button><span class="input-group-btn-vertical"></div>' 541 : '<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="' + 542 a.buttondown_class + 543 ' bootstrap-touchspin-down" type="button">' + 544 a.buttondown_txt + 545 '</button></span><span class="input-group-addon bootstrap-touchspin-prefix">' + 546 a.prefix + 547 '</span><span class="input-group-addon bootstrap-touchspin-postfix">' + 548 a.postfix + 549 '</span><span class="input-group-btn"><button class="' + 550 a.buttonup_class + 551 ' bootstrap-touchspin-up" type="button">' + 552 a.buttonup_txt + 553 "</button></span></div>"; 554 (l = _(e).insertBefore(c)), 555 _(".bootstrap-touchspin-prefix", l).after(c), 556 c.hasClass("input-sm") ? l.addClass("input-group-sm") : c.hasClass("input-lg") && l.addClass("input-group-lg"); 557 })(); 558 })(), 559 (n = { 560 down: _(".bootstrap-touchspin-down", l), 561 up: _(".bootstrap-touchspin-up", l), 562 input: _("input", l), 563 prefix: _(".bootstrap-touchspin-prefix", l).addClass(a.prefix_extraclass), 564 postfix: _(".bootstrap-touchspin-postfix", l).addClass(a.postfix_extraclass), 565 }), 566 (function () { 567 "" === a.prefix && n.prefix.hide(); 568 "" === a.postfix && n.postfix.hide(); 569 })(), 570 c.on("keydown", function (e) { 571 var t = e.keyCode || e.which; 572 38 === t ? ("up" !== f && (p(), y()), e.preventDefault()) : 40 === t && ("down" !== f && (m(), g()), e.preventDefault()); 573 }), 574 c.on("keyup", function (e) { 575 e = e.keyCode || e.which; 576 (38 !== e && 40 !== e) || v(); 577 }), 578 c.on("blur", function () { 579 d(); 580 }), 581 n.down.on("keydown", function (e) { 582 var t = e.keyCode || e.which; 583 (32 !== t && 13 !== t) || ("down" !== f && (m(), g()), e.preventDefault()); 584 }), 585 n.down.on("keyup", function (e) { 586 e = e.keyCode || e.which; 587 (32 !== e && 13 !== e) || v(); 588 }), 589 n.up.on("keydown", function (e) { 590 var t = e.keyCode || e.which; 591 (32 !== t && 13 !== t) || ("up" !== f && (p(), y()), e.preventDefault()); 592 }), 593 n.up.on("keyup", function (e) { 594 e = e.keyCode || e.which; 595 (32 !== e && 13 !== e) || v(); 596 }), 597 n.down.on("mousedown.touchspin", function (e) { 598 n.down.off("touchstart.touchspin"), c.is(":disabled") || (m(), g(), e.preventDefault(), e.stopPropagation()); 599 }), 600 n.down.on("touchstart.touchspin", function (e) { 601 n.down.off("mousedown.touchspin"), c.is(":disabled") || (m(), g(), e.preventDefault(), e.stopPropagation()); 602 }), 603 n.up.on("mousedown.touchspin", function (e) { 604 n.up.off("touchstart.touchspin"), c.is(":disabled") || (p(), y(), e.preventDefault(), e.stopPropagation()); 605 }), 606 n.up.on("touchstart.touchspin", function (e) { 607 n.up.off("mousedown.touchspin"), c.is(":disabled") || (p(), y(), e.preventDefault(), e.stopPropagation()); 608 }), 609 n.up.on("mouseout touchleave touchend touchcancel", function (e) { 610 f && (e.stopPropagation(), v()); 611 }), 612 n.down.on("mouseout touchleave touchend touchcancel", function (e) { 613 f && (e.stopPropagation(), v()); 614 }), 615 n.down.on("mousemove touchmove", function (e) { 616 f && (e.stopPropagation(), e.preventDefault()); 617 }), 618 n.up.on("mousemove touchmove", function (e) { 619 f && (e.stopPropagation(), e.preventDefault()); 620 }), 621 _(document).on(T(["mouseup", "touchend", "touchcancel"], S).join(" "), function (e) { 622 f && (e.preventDefault(), v()); 623 }), 624 _(document).on(T(["mousemove", "touchmove", "scroll", "scrollstart"], S).join(" "), function (e) { 625 f && (e.preventDefault(), v()); 626 }), 627 c.on("mousewheel DOMMouseScroll", function (e) { 628 var t; 629 a.mousewheel && c.is(":focus") && ((t = e.originalEvent.wheelDelta || -e.originalEvent.deltaY || -e.originalEvent.detail), e.stopPropagation(), e.preventDefault(), (t < 0 ? m : p)()); 630 }), 631 c.on("touchspin.uponce", function () { 632 v(), p(); 633 }), 634 c.on("touchspin.downonce", function () { 635 v(), m(); 636 }), 637 c.on("touchspin.startupspin", function () { 638 y(); 639 }), 640 c.on("touchspin.startdownspin", function () { 641 g(); 642 }), 643 c.on("touchspin.stopspin", function () { 644 v(); 645 }), 646 c.on("touchspin.updatesettings", function (e, t) { 647 !(function (e) { 648 (function (e) { 649 a = _.extend({}, a, e); 650 })(e), 651 d(); 652 e = n.input.val(); 653 "" !== e && ((e = Number(n.input.val())), n.input.val(e.toFixed(a.decimals))); 654 })(t); 655 }), 656 n.input.css("display", "block"))); 657 }); 658 } 659 this.each(function () { 660 var e = _(this).data(); 661 _(document).off(T(["mouseup", "touchend", "touchcancel", "mousemove", "touchmove", "scroll", "scrollstart"], e.spinnerid).join(" ")); 662 }); 663 }; 664 })(jQuery); 665 }, 666 948: () => { 667 if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); 668 function w(e, t) { 669 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 670 } 671 function e(e) { 672 var t = this, 673 n = !1; 674 return ( 675 r(this).one(o.TRANSITION_END, function () { 676 n = !0; 677 }), 678 setTimeout(function () { 679 n || o.triggerTransitionEnd(t); 680 }, e), 681 this 682 ); 683 } 684 function i(e, t) { 685 for (var n = 0; n < t.length; n++) { 686 var i = t[n]; 687 (i.enumerable = i.enumerable || !1), (i.configurable = !0), "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i); 688 } 689 } 690 var r, t, n, o, x, _, S, m; 691 !(function () { 692 var e = jQuery.fn.jquery.split(" ")[0].split("."); 693 if ((e[0] < 2 && e[1] < 9) || (1 == e[0] && 9 == e[1] && e[2] < 1) || 4 <= e[0]) throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0"); 694 })(), 695 (x = 696 "function" == typeof Symbol && "symbol" == typeof Symbol.iterator 697 ? function (e) { 698 return typeof e; 699 } 700 : function (e) { 701 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 702 }), 703 (r = jQuery), 704 (t = !(_ = function (e, t, n) { 705 return t && i(e.prototype, t), n && i(e, n), e; 706 })), 707 (n = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }), 708 (o = { 709 TRANSITION_END: "bsTransitionEnd", 710 getUID: function (e) { 711 for (; (e += ~~(1e6 * Math.random())), document.getElementById(e); ); 712 return e; 713 }, 714 getSelectorFromElement: function (e) { 715 var t = e.getAttribute("data-target"); 716 return t || ((t = e.getAttribute("href") || ""), (t = /^#[a-z]/i.test(t) ? t : null)), t; 717 }, 718 reflow: function (e) { 719 new Function("bs", "return bs")(e.offsetHeight); 720 }, 721 triggerTransitionEnd: function (e) {
722 r(e).trigger(t.end); 723 }, 724 supportsTransitionEnd: function () { 725 return Boolean(t); 726 }, 727 typeCheckConfig: function (e, t, n) { 728 for (var i in n) 729 if (n.hasOwnProperty(i)) { 730 var r = n[i], 731 o = t[i], 732 s = 733 o && ((a = o)[0] || a).nodeType 734 ? "element" 735 : ((o = o), 736 {}.toString 737 .call(o) 738 .match(/\s([a-zA-Z]+)/)[1] 739 .toLowerCase()); 740 if (!new RegExp(r).test(s)) throw new Error(e.toUpperCase() + ': Option "' + i + '" provided type "' + s + '" but expected type "' + r + '".'); 741 } 742 var a; 743 }, 744 }), 745 (t = (function () { 746 if (window.QUnit) return !1; 747 var e, 748 t = document.createElement("bootstrap"); 749 for (e in n) if (void 0 !== t.style[e]) return { end: n[e] }; 750 return !1; 751 })()), 752 (r.fn.emulateTransitionEnd = e), 753 o.supportsTransitionEnd() && 754 (r.event.special[o.TRANSITION_END] = { 755 bindType: t.end, 756 delegateType: t.end, 757 handle: function (e) { 758 if (r(e.target).is(this)) return e.handleObj.handler.apply(this, arguments); 759 }, 760 }), 761 (S = o), 762 (function (i) { 763 var e = "alert", 764 r = "bs.alert", 765 t = "." + r, 766 n = i.fn[e], 767 o = { CLOSE: "close" + t, CLOSED: "closed" + t, CLICK_DATA_API: "click" + t + ".data-api" }, 768 s = "alert", 769 a = "fade", 770 l = "in", 771 c = 772 ((u.prototype.close = function (e) { 773 e = e || this._element; 774 e = this._getRootElement(e); 775 this._triggerCloseEvent(e).isDefaultPrevented() || this._removeElement(e); 776 }), 777 (u.prototype.dispose = function () { 778 i.removeData(this._element, r), (this._element = null); 779 }), 780 (u.prototype._getRootElement = function (e) { 781 var t = S.getSelectorFromElement(e), 782 n = !1; 783 return (n = (n = t ? i(t)[0] : n) || i(e).closest("." + s)[0]); 784 }), 785 (u.prototype._triggerCloseEvent = function (e) { 786 var t = i.Event(o.CLOSE); 787 return i(e).trigger(t), t; 788 }), 789 (u.prototype._removeElement = function (e) { 790 return ( 791 i(e).removeClass(l), S.supportsTransitionEnd() && i(e).hasClass(a) ? void i(e).one(S.TRANSITION_END, i.proxy(this._destroyElement, this, e)).emulateTransitionEnd(150) : void this._destroyElement(e) 792 ); 793 }), 794 (u.prototype._destroyElement = function (e) { 795 i(e).detach().trigger(o.CLOSED).remove(); 796 }), 797 (u._jQueryInterface = function (n) { 798 return this.each(function () { 799 var e = i(this), 800 t = e.data(r); 801 t || ((t = new u(this)), e.data(r, t)), "close" === n && t[n](this); 802 }); 803 }), 804 (u._handleDismiss = function (t) { 805 return function (e) { 806 e && e.preventDefault(), t.close(this); 807 }; 808 }), 809 _(u, null, [ 810 { 811 key: "VERSION", 812 get: function () { 813 return "4.0.0-alpha.5"; 814 }, 815 }, 816 ]), 817 u); 818 function u(e) { 819 w(this, u), (this._element = e); 820 } 821 i(document).on(o.CLICK_DATA_API, '[data-dismiss="alert"]', c._handleDismiss(new c())), 822 (i.fn[e] = c._jQueryInterface), 823 (i.fn[e].Constructor = c), 824 (i.fn[e].noConflict = function () { 825 return (i.fn[e] = n), c._jQueryInterface; 826 }); 827 })(jQuery), 828 (function (i) { 829 var e = "button", 830 n = "bs.button", 831 t = "." + n, 832 r = ".data-api", 833 o = i.fn[e], 834 s = "active", 835 a = "btn", 836 l = "focus", 837 c = '[data-toggle^="button"]', 838 u = '[data-toggle="buttons"]', 839 f = "input", 840 d = ".active", 841 h = ".btn", 842 r = { CLICK_DATA_API: "click" + t + r, FOCUS_BLUR_DATA_API: "focus" + t + r + " blur" + t + r }, 843 p = 844 ((m.prototype.toggle = function () { 845 var e, 846 t = !0, 847 n = i(this._element).closest(u)[0]; 848 n 849 ? (e = i(this._element).find(f)[0]) && 850 ("radio" === e.type && (e.checked && i(this._element).hasClass(s) ? (t = !1) : (n = i(n).find(d)[0]) && i(n).removeClass(s)), 851 t && ((e.checked = !i(this._element).hasClass(s)), i(this._element).trigger("change")), 852 e.focus()) 853 : this._element.setAttribute("aria-pressed", !i(this._element).hasClass(s)), 854 t && i(this._element).toggleClass(s); 855 }), 856 (m.prototype.dispose = function () { 857 i.removeData(this._element, n), (this._element = null); 858 }), 859 (m._jQueryInterface = function (t) { 860 return this.each(function () { 861 var e = i(this).data(n); 862 e || ((e = new m(this)), i(this).data(n, e)), "toggle" === t && e[t](); 863 }); 864 }), 865 _(m, null, [ 866 { 867 key: "VERSION", 868 get: function () { 869 return "4.0.0-alpha.5"; 870 }, 871 }, 872 ]), 873 m); 874 function m(e) { 875 w(this, m), (this._element = e); 876 } 877 i(document) 878 .on(r.CLICK_DATA_API, c, function (e) { 879 e.preventDefault(); 880 e = e.target; 881 i(e).hasClass(a) || (e = i(e).closest(h)), p._jQueryInterface.call(i(e), "toggle"); 882 }) 883 .on(r.FOCUS_BLUR_DATA_API, c, function (e) { 884 var t = i(e.target).closest(h)[0]; 885 i(t).toggleClass(l, /^focus(in)?$/.test(e.type)); 886 }), 887 (i.fn[e] = p._jQueryInterface), 888 (i.fn[e].Constructor = p), 889 (i.fn[e].noConflict = function () { 890 return (i.fn[e] = o), p._jQueryInterface; 891 }); 892 })(jQuery), 893 (function (a) { 894 var t = "carousel", 895 r = "bs.carousel", 896 e = "." + r, 897 n = ".data-api", 898 i = a.fn[t], 899 o = { interval: 5e3, keyboard: !0, slide: !1, pause: "hover", wrap: !0 }, 900 s = { interval: "(number|boolean)", keyboard: "boolean", slide: "(boolean|string)", pause: "(string|boolean)", wrap: "boolean" }, 901 l = "next", 902 c = "prev", 903 u = { SLIDE: "slide" + e, SLID: "slid" + e, KEYDOWN: "keydown" + e, MOUSEENTER: "mouseenter" + e, MOUSELEAVE: "mouseleave" + e, LOAD_DATA_API: "load" + e + n, CLICK_DATA_API: "click" + e + n }, 904 f = "carousel", 905 d = "active", 906 h = "slide", 907 p = "right", 908 m = "left", 909 g = { 910 ACTIVE: ".active", 911 ACTIVE_ITEM: ".active.carousel-item", 912 ITEM: ".carousel-item", 913 NEXT_PREV: ".next, .prev", 914 INDICATORS: ".carousel-indicators",
915 DATA_SLIDE: "[data-slide], [data-slide-to]", 916 DATA_RIDE: '[data-ride="carousel"]', 917 }, 918 y = 919 ((v.prototype.next = function () { 920 this._isSliding || this._slide(l); 921 }), 922 (v.prototype.nextWhenVisible = function () { 923 document.hidden || this.next(); 924 }), 925 (v.prototype.prev = function () { 926 this._isSliding || this._slide(c); 927 }), 928 (v.prototype.pause = function (e) { 929 e || (this._isPaused = !0), 930 a(this._element).find(g.NEXT_PREV)[0] && S.supportsTransitionEnd() && (S.triggerTransitionEnd(this._element), this.cycle(!0)), 931 clearInterval(this._interval), 932 (this._interval = null); 933 }), 934 (v.prototype.cycle = function (e) { 935 e || (this._isPaused = !1), 936 this._interval && (clearInterval(this._interval), (this._interval = null)), 937 this._config.interval && !this._isPaused && (this._interval = setInterval(a.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval)); 938 }), 939 (v.prototype.to = function (e) { 940 var t = this; 941 this._activeElement = a(this._element).find(g.ACTIVE_ITEM)[0]; 942 var n = this._getItemIndex(this._activeElement); 943 if (!(e > this._items.length - 1 || e < 0)) 944 if (this._isSliding) 945 a(this._element).one(u.SLID, function () { 946 return t.to(e); 947 }); 948 else { 949 if (n === e) return this.pause(), void this.cycle(); 950 this._slide(n < e ? l : c, this._items[e]); 951 } 952 }), 953 (v.prototype.dispose = function () { 954 a(this._element).off(e), 955 a.removeData(this._element, r), 956 (this._items = null), 957 (this._config = null), 958 (this._element = null), 959 (this._interval = null), 960 (this._isPaused = null),
961 (this._isSliding = null), 962 (this._activeElement = null), 963 (this._indicatorsElement = null); 964 }), 965 (v.prototype._getConfig = function (e) { 966 return (e = a.extend({}, o, e)), S.typeCheckConfig(t, e, s), e; 967 }), 968 (v.prototype._addEventListeners = function () { 969 this._config.keyboard && a(this._element).on(u.KEYDOWN, a.proxy(this._keydown, this)), 970 "hover" !== this._config.pause || "ontouchstart" in document.documentElement || a(this._element).on(u.MOUSEENTER, a.proxy(this.pause, this)).on(u.MOUSELEAVE, a.proxy(this.cycle, this)); 971 }), 972 (v.prototype._keydown = function (e) { 973 if ((e.preventDefault(), !/input|textarea/i.test(e.target.tagName))) 974 switch (e.which) { 975 case 37: 976 this.prev(); 977 break; 978 case 39: 979 this.next(); 980 break; 981 default: 982 return; 983 } 984 }), 985 (v.prototype._getItemIndex = function (e) { 986 return (this._items = a.makeArray(a(e).parent().find(g.ITEM))), this._items.indexOf(e); 987 }), 988 (v.prototype._getItemByDirection = function (e, t) { 989 var n = e === l, 990 i = e === c, 991 r = this._getItemIndex(t), 992 o = this._items.length - 1; 993 if (((i && 0 === r) || (n && r === o)) && !this._config.wrap) return t; 994 e = (r + (e === c ? -1 : 1)) % this._items.length; 995 return -1 == e ? this._items[this._items.length - 1] : this._items[e]; 996 }), 997 (v.prototype._triggerSlideEvent = function (e, t) { 998 t = a.Event(u.SLIDE, { relatedTarget: e, direction: t }); 999 return a(this._element).trigger(t), t; 1000 }), 1001 (v.prototype._setActiveIndicatorElement = function (e) { 1002 this._indicatorsElement && (a(this._indicatorsElement).find(g.ACTIVE).removeClass(d), (e = this._indicatorsElement.children[this._getItemIndex(e)]) && a(e).addClass(d)); 1003 }), 1004 (v.prototype._slide = function (e, t) { 1005 var n, 1006 i = this, 1007 r = a(this._element).find(g.ACTIVE_ITEM)[0], 1008 o = t || (r && this._getItemByDirection(e, r)), 1009 t = Boolean(this._interval), 1010 s = e === l ? m : p; 1011 o && a(o).hasClass(d) 1012 ? (this._isSliding = !1) 1013 : !this._triggerSlideEvent(o, s).isDefaultPrevented() && 1014 r && 1015 o && 1016 ((this._isSliding = !0), 1017 t && this.pause(), 1018 this._setActiveIndicatorElement(o), 1019 (n = a.Event(u.SLID, { relatedTarget: o, direction: s })), 1020 S.supportsTransitionEnd() && a(this._element).hasClass(h) 1021 ? (a(o).addClass(e), 1022 S.reflow(o), 1023 a(r).addClass(s), 1024 a(o).addClass(s), 1025 a(r) 1026 .one(S.TRANSITION_END, function () { 1027 a(o).removeClass(s).removeClass(e), 1028 a(o).addClass(d), 1029 a(r).removeClass(d).removeClass(e).removeClass(s), 1030 (i._isSliding = !1), 1031 setTimeout(function () { 1032 return a(i._element).trigger(n); 1033 }, 0); 1034 }) 1035 .emulateTransitionEnd(600)) 1036 : (a(r).removeClass(d), a(o).addClass(d), (this._isSliding = !1), a(this._element).trigger(n)), 1037 t && this.cycle()); 1038 }), 1039 (v._jQueryInterface = function (i) { 1040 return this.each(function () { 1041 var e = a(this).data(r), 1042 t = a.extend({}, o, a(this).data()); 1043 "object" === (void 0 === i ? "undefined" : x(i)) && a.extend(t, i); 1044 var n = "string" == typeof i ? i : t.slide; 1045 if ((e || ((e = new v(this, t)), a(this).data(r, e)), "number" == typeof i)) e.to(i); 1046 else if ("string" == typeof n) { 1047 if (void 0 === e[n]) throw new Error('No method n
1047amed "' + n + '"'); 1048 e[n](); 1049 } else t.interval && (e.pause(), e.cycle()); 1050 }); 1051 }), 1052 (v._dataApiClickHandler = function (e) { 1053 var t, 1054 n, 1055 i = S.getSelectorFromElement(this); 1056 !i || 1057 ((t = a(i)[0]) && 1058 a(t).hasClass(f) && 1059 ((n = a.extend({}, a(t).data(), a(this).data())), (i = this.getAttribute("data-slide-to")) && (n.interval = !1), v._jQueryInterface.call(a(t), n), i && a(t).data(r).to(i), e.preventDefault())); 1060 }), 1061 _(v, null, [ 1062 { 1063 key: "VERSION", 1064 get: function () { 1065 return "4.0.0-alpha.5"; 1066 }, 1067 }, 1068 { 1069 key: "Default", 1070 get: function () { 1071 return o; 1072 }, 1073 }, 1074 ]), 1075 v); 1076 function v(e, t) { 1077 w(this, v), 1078 (this._items = null), 1079 (this._interval = null), 1080 (this._activeElement = null), 1081 (this._isPaused = !1), 1082 (this._isSliding = !1), 1083 (this._config = this._getConfig(t)), 1084 (this._element = a(e)[0]), 1085 (this._indicatorsElement = a(this._element).find(g.INDICATORS)[0]), 1086 this._addEventListeners(); 1087 } 1088 a(document).on(u.CLICK_DATA_API, g.DATA_SLIDE, y._dataApiClickHandler), 1089 a(window).on(u.LOAD_DATA_API, function () { 1090 a(g.DATA_RIDE).each(function () { 1091 var e = a(this); 1092 y._jQueryInterface.call(e, e.data()); 1093 }); 1094 }), 1095 (a.fn[t] = y._jQueryInterface), 1096 (a.fn[t].Constructor = y), 1097 (a.fn[t].noConflict = function () { 1098 return (a.fn[t] = i), y._jQueryInterface; 1099 }); 1100 })(jQuery), 1101 (function (o) { 1102 var t = "collapse", 1103 s = "bs.collapse", 1104 e = "." + s, 1105 n = o.fn[t], 1106 r = { toggle: !0, parent: "" }, 1107 i = { toggle: "boolean", parent: "string" }, 1108 a = { SHOW: "show" + e, SHOWN: "shown" + e, HIDE: "hide" + e, HIDDEN: "hidden" + e, CLICK_DATA_API: "click" + e + ".data-api" }, 1109 l = "in", 1110 c = "collapse", 1111 u = "collapsing", 1112 f = "collapsed", 1113 d = "width", 1114 h = "height", 1115 p = ".card > .in, .card > .collapsing", 1116 e = '[data-toggle="collapse"]', 1117 m = 1118 ((g.prototype.toggle = function () { 1119 o(this._element).hasClass(l) ? this.hide() : this.show(); 1120 }), 1121 (g.prototype.show = function () { 1122 var e, 1123 t, 1124 n, 1125 i, 1126 r = this; 1127 this._isTransitioning || 1128 o(this._element).hasClass(l) || 1129 ((n = i = void 0), 1130 this._parent && ((i = o.makeArray(o(p))).length || (i = null)), 1131 (i && (n = o(i).data(s)) && n._isTransitioning) || 1132 ((e = o.Event(a.SHOW)), 1133 o(this._element).trigger(e), 1134 e.isDefaultPrevented() || 1135 (i && (g._jQueryInterface.call(o(i), "hide"), n || o(i).data(s, null)), 1136 (t = this._getDimension()), 1137 o(this._element).removeClass(c).addClass(u), 1138 (this._element.style[t] = 0), 1139 this._element.setAttribute("aria-expanded", !0), 1140 this._triggerArray.length && o(this._triggerArray).removeClass(f).attr("aria-expanded", !0), 1141 this.setTransitioning(!0), 1142 (n = function () { 1143 o(r._element).removeClass(u).addClass(c).addClass(l), (r._element.style[t] = ""), r.setTransitioning(!1), o(r._element).trigger(a.SHOWN); 1144 }), 1145 S.supportsTransitionEnd() 1146 ? ((i = "scroll" + (t[0].toUpperCase() + t.slice(1))), o(this._element).one(S.TRANSITION_END, n).emulateTransitionEnd(600), (this._element.style[t] = this._element[i] + "px")) 1147 : n()))); 1148 }), 1149 (g.prototype.hide = function () { 1150 var e = this; 1151 if (!this._isTransitioning && o(this._element).hasClass(l)) { 1152 var t = o.Event(a.HIDE); 1153 if ((o(this._element).trigger(t), !t.isDefaultPrevented())) { 1154 var n = this._getDimension(); 1155 (this._element.style[n] = this._element[n === d ? "offsetWidth" : "offsetHeight"] + "px"), 1156 S.reflow(this._element), 1157 o(this._element).addClass(u).removeClass(c).removeClass(l), 1158 this._element.setAttribute("aria-expanded", !1), 1159 this._triggerArray.length && o(this._triggerArray).addClass(f).attr("aria-expanded", !1), 1160 this.setTransitioning(!0); 1161 t = function () { 1162 e.setTransitioning(!1), o(e._element).removeClass(u).addClass(c).trigger(a.HIDDEN); 1163 }; 1164 return (this._element.style[n] = ""), S.supportsTransitionEnd() ? void o(this._element).one(S.TRANSITION_END, t).emulateTransitionEnd(600) : void t(); 1165 } 1166 } 1167 }), 1168 (g.prototype.setTransitioning = function (e) { 1169 this._isTransitioning = e; 1170 }), 1171 (g.prototype.dispose = function () { 1172 o.removeData(this._element, s), (this._config = null), (this._parent = null), (this._element = null), (this._triggerArray = null), (this._isTransitioning = null); 1173 }), 1174 (g.prototype._getConfig = function (e) { 1175 return ((e = o.extend({}, r, e)).toggle = Boolean(e.toggle)), S.typeCheckConfig(t, e, i), e; 1176 }), 1177 (g.prototype._getDimension = function () { 1178 return o(this._element).hasClass(d) ? d : h; 1179 }), 1180 (g.prototype._getParent = function () { 1181 var n = this, 1182 e = o(this._config.parent)[0], 1183 t = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]'; 1184 return ( 1185 o(e) 1186 .find(t) 1187 .each(function (e, t) { 1188 n._addAriaAndCollapsedClass(g._getTargetFromElement(t), [t]); 1189 }), 1190 e 1191 ); 1192 }), 1193 (g.prototype._addAriaAndCollapsedClass = function (e, t) { 1194 var n; 1195 e && ((n = o(e).hasClass(l)), e.setAttribute("aria-expanded", n), t.length && o(t).toggleClass(f, !n).attr("aria-expanded", n)); 1196 }), 1197 (g._getTargetFromElement = function (e) { 1198 e = S.getSelectorFromElement(e); 1199 return e ? o(e)[0] : null; 1200 }), 1201 (g._jQueryInterface = function (i) { 1202 return this.each(function () { 1203 var e = o(this), 1204 t = e.data(s), 1205 n = o.extend({}, r, e.data(), "object" === (void 0 === i ? "undefined" : x(i)) && i); 1206 if ((!t && n.toggle && /show|hide/.test(i) && (n.toggle = !1), t || ((t = new g(this, n)), e.data(s, t)), "string" == typeof i)) { 1207 if (void 0 === t[i]) throw new Error('No method n
1207amed "' + i + '"'); 1208 t[i](); 1209 } 1210 }); 1211 }), 1212 _(g, null, [ 1213 { 1214 key: "VERSION", 1215 get: function () { 1216 return "4.0.0-alpha.5"; 1217 }, 1218 }, 1219 { 1220 key: "Default", 1221 get: function () { 1222 return r; 1223 }, 1224 }, 1225 ]), 1226 g); 1227 function g(e, t) { 1228 w(this, g), 1229 (this._isTransitioning = !1), 1230 (this._element = e), 1231 (this._config = this._getConfig(t)), 1232 (this._triggerArray = o.makeArray(o('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]'))), 1233 (this._parent = this._config.parent ? this._getParent() : null), 1234 this._config.parent || this._addAriaAndCollapsedClass(this._element, this._triggerArray), 1235 this._config.toggle && this.toggle(); 1236 } 1237 o(document).on(a.CLICK_DATA_API, e, function (e) { 1238 e.preventDefault(); 1239 var t = m._getTargetFromElement(this), 1240 e = o(t).data(s) ? "toggle" : o(this).data(); 1241 m._jQueryInterface.call(o(t), e); 1242 }), 1243 (o.fn[t] = m._jQueryInterface), 1244 (o.fn[t].Constructor = m), 1245 (o.fn[t].noConflict = function () { 1246 return (o.fn[t] = n), m._jQueryInterface; 1247 }); 1248 })(jQuery), 1249 (function (a) { 1250 var e = "dropdown", 1251 n = "bs.dropdown", 1252 t = "." + n, 1253 i = ".data-api", 1254 r = a.fn[e], 1255 l = { HIDE: "hide" + t, HIDDEN: "hidden" + t, SHOW: "show" + t, SHOWN: "shown" + t, CLICK: "click" + t, CLICK_DATA_API: "click" + t + i, KEYDOWN_DATA_API: "keydown" + t + i }, 1256 o = "dropdown-backdrop", 1257 s = "disabled", 1258 c = "open", 1259 u = ".dropdown-backdrop", 1260 f = '[data-toggle="dropdown"]', 1261 d = ".dropdown form", 1262 h = '[role="menu"]', 1263 i = '[role="listbox"]', 1264 p = ".navbar-nav", 1265 m = '[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a', 1266 g = 1267 ((y.prototype.toggle = function () { 1268 if (this.disabled || a(this).hasClass(s)) return !1; 1269 var e = y._getParentFromElement(this), 1270 t = a(e).hasClass(c); 1271 if ((y._clearMenus(), t)) return !1; 1272 "ontouchstart" in document.documentElement && !a(e).closest(p).length && (((n = document.createElement("div")).className = o), a(n).insertBefore(this), a(n).on("click", y._clearMenus)); 1273 var t = { relatedTarget: this }, 1274 n = a.Event(l.SHOW, t); 1275 return a(e).trigger(n), !n.isDefaultPrevented() && (this.focus(), this.setAttribute("aria-expanded", "true"), a(e).toggleClass(c), a(e).trigger(a.Event(l.SHOWN, t)), !1); 1276 }), 1277 (y.prototype.dispose = function () { 1278 a.removeData(this._element, n), a(this._element).off(t), (this._element = null); 1279 }), 1280 (y.prototype._addEventListeners = function () { 1281 a(this._element).on(l.CLICK, this.toggle); 1282 }), 1283 (y._jQueryInterface = function (t) { 1284 return this.each(function () { 1285 var e = a(this).data(n); 1286 if ((e || a(this).data(n, (e = new y(this))), "string" == typeof t)) { 1287 if (void 0 === e[t]) throw new Error('No method n
1287amed "' + t + '"'); 1288 e[t].call(this); 1289 } 1290 }); 1291 }), 1292 (y._clearMenus = function (e) { 1293 if (!e || 3 !== e.which) { 1294 var t = a(u)[0]; 1295 t && t.parentNode.removeChild(t); 1296 for (var n = a.makeArray(a(f)), i = 0; i < n.length; i++) { 1297 var r, 1298 o = y._getParentFromElement(n[i]), 1299 s = { relatedTarget: n[i] }; 1300 !a(o).hasClass(c) || 1301 (e && "click" === e.type && /input|textarea/i.test(e.target.tagName) && a.contains(o, e.target)) || 1302 ((r = a.Event(l.HIDE, s)), a(o).trigger(r), r.isDefaultPrevented() || (n[i].setAttribute("aria-expanded", "false"), a(o).removeClass(c).trigger(a.Event(l.HIDDEN, s)))); 1303 } 1304 } 1305 }), 1306 (y._getParentFromElement = function (e) { 1307 var t = void 0, 1308 n = S.getSelectorFromElement(e); 1309 return (t = n ? a(n)[0] : t) || e.parentNode; 1310 }), 1311 (y._dataApiKeydownHandler = function (e) { 1312 if (/(38|40|27|32)/.test(e.which) && !/input|textarea/i.test(e.target.tagName) && (e.preventDefault(), e.stopPropagation(), !this.disabled && !a(this).hasClass(s))) { 1313 var t = y._getParentFromElement(this), 1314 n = a(t).hasClass(c); 1315 if ((!n && 27 !== e.which) || (n && 27 === e.which)) return 27 === e.which && ((i = a(t).find(f)[0]), a(i).trigger("focus")), void a(this).trigger("click"); 1316 var i, 1317 t = a.makeArray(a(m)); 1318 (t = t.filter(function (e) { 1319 return e.offsetWidth || e.offsetHeight; 1320 })).length && ((i = t.indexOf(e.target)), 38 === e.which && 0 < i && i--, 40 === e.which && i < t.length - 1 && i++, t[(i = i < 0 ? 0 : i)].focus()); 1321 } 1322 }), 1323 _(y, null, [ 1324 { 1325 key: "VERSION", 1326 get: function () { 1327 return "4.0.0-alpha.5"; 1328 }, 1329 }, 1330 ]), 1331 y); 1332 function y(e) { 1333 w(this, y), (this._element = e), this._addEventListeners(); 1334 } 1335 a(document) 1336 .on(l.KEYDOWN_DATA_API, f, g._dataApiKeydownHandler) 1337 .on(l.KEYDOWN_DATA_API, h, g._dataApiKeydownHandler) 1338 .on(l.KEYDOWN_DATA_API, i, g._dataApiKeydownHandler) 1339 .on(l.CLICK_DATA_API, g._clearMenus) 1340 .on(l.CLICK_DATA_API, f, g.prototype.toggle) 1341 .on(l.CLICK_DATA_API, d, function (e) { 1342 e.stopPropagation(); 1343 }), 1344 (a.fn[e] = g._jQueryInterface), 1345 (a.fn[e].Constructor = g), 1346 (a.fn[e].noConflict = function () { 1347 return (a.fn[e] = r), g._jQueryInterface; 1348 }); 1349 })(jQuery), 1350 (function (o) { 1351 var t = "modal", 1352 s = "bs.modal", 1353 e = "." + s, 1354 n = o.fn[t], 1355 i = { backdrop: !0, keyboard: !0, focus: !0, show: !0 }, 1356 r = { backdrop: "(boolean|string)", keyboard: "boolean", focus: "boolean", show: "boolean" }, 1357 a = { 1358 HIDE: "hide" + e, 1359 HIDDEN: "hidden" + e, 1360 SHOW: "show" + e, 1361 SHOWN: "shown" + e, 1362 FOCUSIN: "focusin" + e, 1363 RESIZE: "resize" + e, 1364 CLICK_DISMISS: "click.dismiss" + e, 1365 KEYDOWN_DISMISS: "keydown.dismiss" + e, 1366 MOUSEUP_DISMISS: "mouseup.dismiss" + e, 1367 MOUSEDOWN_DISMISS: "mousedown.dismiss" + e, 1368 CLICK_DATA_API: "click" + e + ".data-api", 1369 },
1370 l = "modal-scrollbar-measure", 1371 c = "modal-backdrop", 1372 u = "modal-open", 1373 f = "fade", 1374 d = "in", 1375 h = { DIALOG: ".modal-dialog", DATA_TOGGLE: '[data-toggle="modal"]', DATA_DISMISS: '[data-dismiss="modal"]', FIXED_CONTENT: ".navbar-fixed-top, .navbar-fixed-bottom, .is-fixed" }, 1376 p = 1377 ((m.prototype.toggle = function (e) { 1378 return this._isShown ? this.hide() : this.show(e); 1379 }), 1380 (m.prototype.show = function (e) { 1381 var t = this, 1382 n = o.Event(a.SHOW, { relatedTarget: e }); 1383 o(this._element).trigger(n), 1384 this._isShown || 1385 n.isDefaultPrevented() || 1386 ((this._isShown = !0), 1387 this._checkScrollbar(), 1388 this._setScrollbar(), 1389 o(document.body).addClass(u), 1390 this._setEscapeEvent(), 1391 this._setResizeEvent(), 1392 o(this._element).on(a.CLICK_DISMISS, h.DATA_DISMISS, o.proxy(this.hide, this)), 1393 o(this._dialog).on(a.MOUSEDOWN_DISMISS, function () { 1394 o(t._element).one(a.MOUSEUP_DISMISS, function (e) { 1395 o(e.target).is(t._element) && (t._ignoreBackdropClick = !0); 1396 }); 1397 }), 1398 this._showBackdrop(o.proxy(this._showElement, this, e))); 1399 }), 1400 (m.prototype.hide = function (e) { 1401 e && e.preventDefault(); 1402 e = o.Event(a.HIDE); 1403 o(this._element).trigger(e), 1404 this._isShown && 1405 !e.isDefaultPrevented() && 1406 ((this._isShown = !1), 1407 this._setEscapeEvent(), 1408 this._setResizeEvent(), 1409 o(document).off(a.FOCUSIN), 1410 o(this._element).removeClass(d), 1411 o(this._element).off(a.CLICK_DISMISS), 1412 o(this._dialog).off(a.MOUSEDOWN_DISMISS), 1413 S.supportsTransitionEnd() && o(this._element).hasClass(f) ? o(this._element).one(S.TRANSITION_END, o.proxy(this._hideModal, this)).emulateTransitionEnd(300) : this._hideModal()); 1414 }), 1415 (m.prototype.dispose = function () { 1416 o.removeData(this._element, s), 1417 o(window).off(e), 1418 o(document).off(e), 1419 o(this._element).off(e), 1420 o(this._backdrop).off(e), 1421 (this._config = null), 1422 (this._element = null), 1423 (this._dialog = null), 1424 (this._backdrop = null), 1425 (this._isShown = null),
1426 (this._isBodyOverflowing = null), 1427 (this._ignoreBackdropClick = null), 1428 (this._originalBodyPadding = null), 1429 (this._scrollbarWidth = null); 1430 }), 1431 (m.prototype._getConfig = function (e) { 1432 return (e = o.extend({}, i, e)), S.typeCheckConfig(t, e, r), e; 1433 }), 1434 (m.prototype._showElement = function (e) { 1435 var t = this, 1436 n = S.supportsTransitionEnd() && o(this._element).hasClass(f); 1437 (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE) || document.body.appendChild(this._element), 1438 (this._element.style.display = "block"), 1439 this._element.removeAttribute("aria-hidden"), 1440 (this._element.scrollTop = 0), 1441 n && S.reflow(this._element), 1442 o(this._element).addClass(d), 1443 this._config.focus && this._enforceFocus(); 1444 var i = o.Event(a.SHOWN, { relatedTarget: e }), 1445 e = function () { 1446 t._config.focus && t._element.focus(), o(t._element).trigger(i); 1447 }; 1448 n ? o(this._dialog).one(S.TRANSITION_END, e).emulateTransitionEnd(300) : e(); 1449 }), 1450 (m.prototype._enforceFocus = function () { 1451 var t = this; 1452 o(document) 1453 .off(a.FOCUSIN) 1454 .on(a.FOCUSIN, function (e) { 1455 document === e.target || t._element === e.target || o(t._element).has(e.target).length || t._element.focus(); 1456 }); 1457 }), 1458 (m.prototype._setEscapeEvent = function () { 1459 var t = this; 1460 this._isShown && this._config.keyboard 1461 ? o(this._element).on(a.KEYDOWN_DISMISS, function (e) { 1462 27 === e.which && t.hide(); 1463 }) 1464 : this._isShown || o(this._element).off(a.KEYDOWN_DISMISS); 1465 }), 1466 (m.prototype._setResizeEvent = function () { 1467 this._isShown ? o(window).on(a.RESIZE, o.proxy(this._handleUpdate, this)) : o(window).off(a.RESIZE); 1468 }), 1469 (m.prototype._hideModal = function () { 1470 var e = this; 1471 (this._element.style.display = "none"), 1472 this._element.setAttribute("aria-hidden", "true"), 1473 this._showBackdrop(function () { 1474 o(document.body).removeClass(u), e._resetAdjustments(), e._resetScrollbar(), o(e._element).trigger(a.HIDDEN); 1475 }); 1476 }), 1477 (m.prototype._removeBackdrop = function () { 1478 this._backdrop && (o(this._backdrop).remove(), (this._backdrop = null)); 1479 }), 1480 (m.prototype._showBackdrop = function (e) { 1481 var t, 1482 n = this, 1483 i = o(this._element).hasClass(f) ? f : ""; 1484 this._isShown && this._config.backdrop 1485 ? ((t = S.supportsTransitionEnd() && i), 1486 (this._backdrop = document.createElement("div")), 1487 (this._backdrop.className = c), 1488 i && o(this._backdrop).addClass(i), 1489 o(this._backdrop).appendTo(document.body), 1490 o(this._element).on(a.CLICK_DISMISS, function (e) { 1491 return n._ignoreBackdropClick ? void (n._ignoreBackdropClick = !1) : void (e.target === e.currentTarget && ("static" === n._config.backdrop ? n._element.focus() : n.hide())); 1492 }), 1493 t && S.reflow(this._backdrop), 1494 o(this._backdrop).addClass(d), 1495 e && (t ? o(this._backdrop).one(S.TRANSITION_END, e).emulateTransitionEnd(150) : e())) 1496 : !this._isShown && this._backdrop 1497 ? (o(this._backdrop).removeClass(d), 1498 (t = function () { 1499 n._removeBackdrop(), e && e(); 1500 }), 1501 S.supportsTransitionEnd() && o(this._element).hasClass(f) ? o(this._backdrop).one(S.TRANSITION_END, t).emulateTransitionEnd(150) : t()
1501) 1502 : e && e(); 1503 }), 1504 (m.prototype._handleUpdate = function () { 1505 this._adjustDialog(); 1506 }), 1507 (m.prototype._adjustDialog = function () { 1508 var e = this._element.scrollHeight > document.documentElement.clientHeight; 1509 !this._isBodyOverflowing && e && (this._element.style.paddingLeft = this._scrollbarWidth + "px"), this._isBodyOverflowing && !e && (this._element.style.paddingRight = this._scrollbarWidth + "px"); 1510 }), 1511 (m.prototype._resetAdjustments = function () { 1512 (this._element.style.paddingLeft = ""), (this._element.style.paddingRight = ""); 1513 }), 1514 (m.prototype._checkScrollbar = function () { 1515 (this._isBodyOverflowing = document.body.clientWidth < window.innerWidth), (this._scrollbarWidth = this._getScrollbarWidth()); 1516 }), 1517 (m.prototype._setScrollbar = function () { 1518 var e = parseInt(o(h.FIXED_CONTENT).css("padding-right") || 0, 10); 1519 (this._originalBodyPadding = document.body.style.paddingRight || ""), this._isBodyOverflowing && (document.body.style.paddingRight = e + this._scrollbarWidth + "px"); 1520 }), 1521 (m.prototype._resetScrollbar = function () { 1522 document.body.style.paddingRight = this._originalBodyPadding; 1523 }), 1524 (m.prototype._getScrollbarWidth = function () { 1525 var e = document.createElement("div"); 1526 (e.className = l), document.body.appendChild(e); 1527 var t = e.offsetWidth - e.clientWidth; 1528 return document.body.removeChild(e), t; 1529 }), 1530 (m._jQueryInterface = function (n, i) { 1531 return this.each(function () { 1532 var e = o(this).data(s), 1533 t = o.extend({}, m.Default, o(this).data(), "object" === (void 0 === n ? "undefined" : x(n)) && n); 1534 if ((e || ((e = new m(this, t)), o(this).data(s, e)), "string" == typeof n)) { 1535 if (void 0 === e[n]) throw new Error('No method named "' + n + '"'); 1536 e[n](i); 1537 } else t.show && e.show(i); 1538 }); 1539 }), 1540 _(m, null, [ 1541 { 1542 key: "VERSION", 1543 get: function () { 1544 return "4.0.0-alpha.5"; 1545 }, 1546 }, 1547 { 1548 key: "Default", 1549 get: function () { 1550 return i; 1551 }, 1552 }, 1553 ]), 1554 m); 1555 function m(e, t) { 1556 w(this, m), 1557 (this._config = this._getConfig(t)), 1558 (this._element = e), 1559 (this._dialog = o(e).find(h.DIALOG)[0]), 1560 (this._backdrop = null),
1561 (this._isShown = !1), 1562 (this._isBodyOverflowing = !1), 1563 (this._ignoreBackdropClick = !1), 1564 (this._originalBodyPadding = 0), 1565 (this._scrollbarWidth = 0); 1566 } 1567 o(document).on(a.CLICK_DATA_API, h.DATA_TOGGLE, function (e) { 1568 var t = this, 1569 n = void 0, 1570 i = S.getSelectorFromElement(this); 1571 i && (n = o(i)[0]); 1572 i = o(n).data(s) ? "toggle" : o.extend({}, o(n).data(), o(this).data()); 1573 "A" === this.tagName && e.preventDefault(); 1574 var r = o(n).one(a.SHOW, function (e) { 1575 e.isDefaultPrevented() || 1576 r.one(a.HIDDEN, function () { 1577 o(t).is(":visible") && t.focus(); 1578 }); 1579 }); 1580 p._jQueryInterface.call(o(n), i, this); 1581 }), 1582 (o.fn[t] = p._jQueryInterface), 1583 (o.fn[t].Constructor = p), 1584 (o.fn[t].noConflict = function () { 1585 return (o.fn[t] = n), p._jQueryInterface; 1586 }); 1587 })(jQuery), 1588 (function (r) { 1589 var n = "scrollspy", 1590 i = "bs.scrollspy", 1591 e = "." + i, 1592 t = r.fn[n], 1593 o = { offset: 10, method: "auto", target: "" }, 1594 s = { offset: "number", method: "string", target: "(string|element)" }, 1595 a = { ACTIVATE: "activate" + e, SCROLL: "scroll" + e, LOAD_DATA_API: "load" + e + ".data-api" }, 1596 l = "dropdown-item", 1597 c = "active", 1598 u = { 1599 DATA_SPY: '[data-spy="scroll"]', 1600 ACTIVE: ".active", 1601 LIST_ITEM: ".list-item", 1602 LI: "li", 1603 LI_DROPDOWN: "li.dropdown", 1604 NAV_LINKS: ".nav-link", 1605 DROPDOWN: ".dropdown", 1606 DROPDOWN_ITEMS: ".dropdown-item", 1607 DROPDOWN_TOGGLE: ".dropdown-toggle", 1608 }, 1609 f = "offset", 1610 d = "position", 1611 h = 1612 ((p.prototype.refresh = function () { 1613 var t = this, 1614 e = this._scrollElement !== this._scrollElement.window ? d : f, 1615 n = "auto" === this._config.method ? e : this._config.method, 1616 i = n === d ? this._getScrollTop() : 0; 1617 (this._offsets = []), 1618 (this._targets = []), 1619 (this._scrollHeight = this._getScrollHeight()), 1620 r 1621 .makeArray(r(this._selector)) 1622 .map(function (e) { 1623 var t = void 0, 1624 e = S.getSelectorFromElement(e); 1625 return (t = e ? r(e)[0] : t) && (t.offsetWidth || t.offsetHeight) ? [r(t)[n]().top + i, e] : null; 1626 }) 1627 .filter(function (e) { 1628 return e; 1629 }) 1630 .sort(function (e, t) { 1631 return e[0] - t[0]; 1632 }) 1633 .forEach(function (e) { 1634 t._offsets.push(e[0]), t._targets.push(e[1]); 1635 }); 1636 }), 1637 (p.prototype.dispose = function () { 1638 r.removeData(this._element, i), 1639 r(this._scrollElement).off(e), 1640 (this._element = null),
1641 (this._scrollElement = null), 1642 (this._config = null), 1643 (this._selector = null), 1644 (this._offsets = null), 1645 (this._targets = null), 1646 (this._activeTarget = null), 1647 (this._scrollHeight = null); 1648 }), 1649 (p.prototype._getConfig = function (e) { 1650 var t; 1651 return "string" != typeof (e = r.extend({}, o, e)).target && ((t = r(e.target).attr("id")) || ((t = S.getUID(n)), r(e.target).attr("id", t)), (e.target = "#" + t)), S.typeCheckConfig(n, e, s), e; 1652 }), 1653 (p.prototype._getScrollTop = function () { 1654 return this._scrollElement === window ? this._scrollElement.scrollY : this._scrollElement.scrollTop; 1655 }), 1656 (p.prototype._getScrollHeight = function () { 1657 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); 1658 }), 1659 (p.prototype._process = function () { 1660 var e = this._getScrollTop() + this._config.offset, 1661 t = this._getScrollHeight(), 1662 n = this._config.offset + t - this._scrollElement.offsetHeight; 1663 if ((this._scrollHeight !== t && this.refresh(), n <= e && ((n = this._targets[this._targets.length - 1]), this._activeTarget !== n && this._activate(n)), this._activeTarget && e < this._offsets[0])) 1664 return (this._activeTarget = null), void this._clear(); 1665 for (var i = this._offsets.length; i--; ) 1666 this._activeTarget !== this._targets[i] && e >= this._offsets[i] && (void 0 === this._offsets[i + 1] || e < this._offsets[i + 1]) && this._activate(this._targets[i]); 1667 }), 1668 (p.prototype._activate = function (t) { 1669 (this._activeTarget = t), this._clear(); 1670 var e = (e = this._selector.split(",")).map(function (e) { 1671 return e + '[data-target="' + t + '"],' + e + '[href="' + t + '"]'; 1672 }), 1673 e = r(e.join(",")); 1674 e.hasClass(l) ? (e.closest(u.DROPDOWN).find(u.DROPDOWN_TOGGLE).addClass(c), e.addClass(c)) : e.parents(u.LI).find(u.NAV_LINKS).addClass(c), 1675 r(this._scrollElement).trigger(a.ACTIVATE, { relatedTarget: t }); 1676 }), 1677 (p.prototype._clear = function () { 1678 r(this._selector).filter(u.ACTIVE).removeClass(c); 1679 }), 1680 (p._jQueryInterface = function (n) { 1681 return this.each(function () { 1682 var e = r(this).data(i), 1683 t = ("object" === (void 0 === n ? "undefined" : x(n)) && n) || null; 1684 if ((e || ((e = new p(this, t)), r(this).data(i, e)), "string" == typeof n)) { 1685 if (void 0 === e[n]) throw new Error('No method named "' + n + '"'); 1686 e[n](); 1687 } 1688 }); 1689 }), 1690 _(p, null, [ 1691 { 1692 key: "VERSION", 1693 get: function () { 1694 return "4.0.0-alpha.5"; 1695 }, 1696 }, 1697 { 1698 key: "Default", 1699 get: function () { 1700 return o; 1701 }, 1702 }, 1703 ]), 1704 p); 1705 function p(e, t) { 1706 w(this, p), 1707 (this._element = e), 1708 (this._scrollElement = "BODY" === e.tagName ? window : e), 1709 (this._config = this._getConfig(t)), 1710 (this._selector = this._config.target + " " + u.NAV_LINKS + "," + this._config.target + " " + u.DROPDOWN_IT
1710EMS), 1711 (this._offsets = []), 1712 (this._targets = []), 1713 (this._activeTarget = null), 1714 (this._scrollHeight = 0), 1715 r(this._scrollElement).on(a.SCROLL, r.proxy(this._process, this)), 1716 this.refresh(), 1717 this._process(); 1718 } 1719 r(window).on(a.LOAD_DATA_API, function () { 1720 for (var e = r.makeArray(r(u.DATA_SPY)), t = e.length; t--; ) { 1721 var n = r(e[t]); 1722 h._jQueryInterface.call(n, n.data()); 1723 } 1724 }), 1725 (r.fn[n] = h._jQueryInterface), 1726 (r.fn[n].Constructor = h), 1727 (r.fn[n].noConflict = function () { 1728 return (r.fn[n] = t), h._jQueryInterface; 1729 }); 1730 })(jQuery), 1731 (function (a) { 1732 var i = "bs.tab", 1733 e = "." + i, 1734 t = a.fn.tab, 1735 l = { HIDE: "hide" + e, HIDDEN: "hidden" + e, SHOW: "show" + e, SHOWN: "shown" + e, CLICK_DATA_API: "click" + e + ".data-api" }, 1736 o = "dropdown-menu", 1737 c = "active", 1738 s = "fade", 1739 u = "in", 1740 f = ".dropdown", 1741 d = "ul:not(.dropdown-menu)", 1742 r = "> .nav-item .fade, > .fade", 1743 h = ".active", 1744 p = "> .nav-item > .active, > .active", 1745 e = '[data-toggle="tab"], [data-toggle="pill"]', 1746 m = ".dropdown-toggle", 1747 g = "> .dropdown-menu .active", 1748 n = 1749 ((y.prototype.show = function () { 1750 var e, 1751 n, 1752 t, 1753 i, 1754 r, 1755 o, 1756 s = this; 1757 (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && a(this._element).hasClass(c)) || 1758 ((n = e = void 0), 1759 (o = a(this._element).closest(d)[0]), 1760 (t = S.getSelectorFromElement(this._element)), 1761 o && (n = (n = a.makeArray(a(o).find(h)))[n.length - 1]), 1762 (i = a.Event(l.HIDE, { relatedTarget: this._element })), 1763 (r = a.Event(l.SHOW, { relatedTarget: n })), 1764 n && a(n).trigger(i), 1765 a(this._element).trigger(r), 1766 r.isDefaultPrevented() || 1767 i.isDefaultPrevented() || 1768 (t && (e = a(t)[0]), 1769 this._activate(this._element, o), 1770 (o = function () { 1771 var e = a.Event(l.HIDDEN, { relatedTarget: s._element }), 1772 t = a.Event(l.SHOWN, { relatedTarget: n }); 1773 a(n).trigger(e), a(s._element).trigger(t); 1774 }), 1775 e ? this._activate(e, e.parentNode, o) : o())); 1776 }), 1777 (y.prototype.dispose = function () { 1778 a.removeClass(this._element, i), (this._element = null); 1779 }), 1780 (y.prototype._activate = function (e, t, n) { 1781 var i = a(t).find(p)[0], 1782 t = n && S.supportsTransitionEnd() && ((i && a(i).hasClass(s)) || Boolean(a(t).find(r)[0])), 1783 n = a.proxy(this._transitionComplete, this, e, i, t, n); 1784 i && t ? a(i).one(S.TRANSITION_END, n).emulateTransitionEnd(150) : n(), i && a(i).removeClass(u); 1785 }), 1786 (y.prototype._transitionComplete = function (e, t, n, i) { 1787 var r; 1788 t && (a(t).removeClass(c), (r = a(t).find(g)[0]) && a(r).removeClass(c), t.setAttribute("aria-expanded", !1)), 1789 a(e).addClass(c), 1790 e.setAttribute("aria-expanded", !0), 1791 n ? (S.reflow(e), a(e).addClass(u)) : a(e).removeClass(s), 1792 e.parentNode && a(e.parentNode).hasClass(o) && ((n = a(e).closest(f)[0]) && a(n).find(m).addClass(c), e.setAttribute("aria-expanded", !0)), 1793 i && i(); 1794 }), 1795 (y._jQueryInterface = function (n) { 1796 return this.each(function () { 1797 var e = a(this), 1798 t = e.data(i); 1799 if ((t || ((t = new y(this)), e.data(i, t)), "string" == typeof n)) { 1800 if (void 0 === t[n]) throw new Error('No method n
1800amed "' + n + '"'); 1801 t[n](); 1802 } 1803 }); 1804 }), 1805 _(y, null, [ 1806 { 1807 key: "VERSION", 1808 get: function () { 1809 return "4.0.0-alpha.5"; 1810 }, 1811 }, 1812 ]), 1813 y); 1814 function y(e) { 1815 w(this, y), (this._element = e); 1816 } 1817 a(document).on(l.CLICK_DATA_API, e, function (e) { 1818 e.preventDefault(), n._jQueryInterface.call(a(this), "show"); 1819 }), 1820 (a.fn.tab = n._jQueryInterface), 1821 (a.fn.tab.Constructor = n), 1822 (a.fn.tab.noConflict = function () { 1823 return (a.fn.tab = t), n._jQueryInterface; 1824 }); 1825 })(jQuery), 1826 (m = (function (o) { 1827 if (void 0 === window.Tether) throw new Error("Bootstrap tooltips require Tether (http://tether.io/)"); 1828 var t = "tooltip", 1829 i = "bs.tooltip", 1830 e = "." + i, 1831 n = o.fn[t], 1832 r = { 1833 animation: !0, 1834 template: '<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>', 1835 trigger: "hover focus", 1836 title: "", 1837 delay: 0, 1838 html: !1, 1839 selector: !1, 1840 placement: "top", 1841 offset: "0 0", 1842 constraints: [], 1843 }, 1844 s = { 1845 animation: "boolean", 1846 template: "string", 1847 title: "(string|element|function)", 1848 trigger: "string", 1849 delay: "(number|object)", 1850 html: "boolean", 1851 selector: "(string|boolean)", 1852 placement: "(string|function)", 1853 offset: "string", 1854 constraints: "array", 1855 }, 1856 a = { TOP: "bottom center", RIGHT: "middle left", BOTTOM: "top center", LEFT: "middle right" }, 1857 l = "in", 1858 c = "out", 1859 u = { 1860 HIDE: "hide" + e, 1861 HIDDEN: "hidden" + e, 1862 SHOW: "show" + e, 1863 SHOWN: "shown" + e, 1864 INSERTED: "inserted" + e, 1865 CLICK: "click" + e, 1866 FOCUSIN: "focusin" + e, 1867 FOCUSOUT: "focusout" + e, 1868 MOUSEENTER: "mouseenter" + e, 1869 MOUSELEAVE: "mouseleave" + e, 1870 }, 1871 f = "fade", 1872 d = "in", 1873 h = ".tooltip-inner", 1874 p = { element: !1, enabled: !1 }, 1875 m = "hover", 1876 g = "focus", 1877 y = "manual", 1878 v = 1879 ((b.prototype.enable = function () { 1880 this._isEnabled = !0; 1881 }), 1882 (b.prototype.disable = function () { 1883 this._isEnabled = !1; 1884 }), 1885 (b.prototype.toggleEnabled = function () { 1886 this._isEnabled = !this._isEnabled; 1887 }), 1888 (b.prototype.toggle = function (e) { 1889 var t, n; 1890 e 1891 ? ((t = this.constructor.DATA_KEY), 1892 (n = o(e.currentTarget).data(t)) || ((n = new this.constructor(e.currentTarget, this._getDelegateConfig())), o(e.currentTarget).data(t, n)), 1893 (n._activeTrigger.click = !n._activeTrigger.click), 1894 n._isWithActiveTrigger() ? n._enter(null, n) : n._leave(null, n)) 1895 : o(this.getTipElement()).hasClass(d) 1896 ? this._leave(null, this) 1897 : this._enter(null, this); 1898 }), 1899 (b.prototype.dispose = function () { 1900 clearTimeout(this._timeout), 1901 this.cleanupTether(), 1902 o.removeData(this.element, this.constructor.DATA_KEY), 1903 o(this.element).off(this.constructor.EVENT_KEY), 1904 this.tip && o(this.tip).remove(), 1905 (this._isEnabled = null),
1906 (this._timeout = null), 1907 (this._hoverState = null), 1908 (this._activeTrigger = null), 1909 (this._tether = null), 1910 (this.element = null), 1911 (this.config = null), 1912 (this.tip = null); 1913 }), 1914 (b.prototype.show = function () { 1915 var e, 1916 t = this, 1917 n = o.Event(this.constructor.Event.SHOW); 1918 this.isWithContent() && 1919 this._isEnabled && 1920 (o(this.element).trigger(n), 1921 (e = o.contains(this.element.ownerDocument.documentElement, this.element)), 1922 !n.isDefaultPrevented() && 1923 e && 1924 ((n = this.getTipElement()), 1925 (e = S.getUID(this.constructor.NAME)), 1926 n.setAttribute("id", e), 1927 this.element.setAttribute("aria-describedby", e), 1928 this.setContent(), 1929 this.config.animation && o(n).addClass(f), 1930 (e = "function" == typeof this.config.placement ? this.config.placement.call(this, n, this.element) : this.config.placement), 1931 (e = this._getAttachment(e)), 1932 o(n).data(this.constructor.DATA_KEY, this).appendTo(document.body), 1933 o(this.element).trigger(this.constructor.Event.INSERTED), 1934 (this._tether = new Tether({ 1935 attachment: e, 1936 element: n, 1937 target: this.element, 1938 classes: p, 1939 classPrefix: "bs-tether", 1940 offset: this.config.offset, 1941 constraints: this.config.constraints, 1942 addTargetClasses: !1, 1943 })), 1944 S.reflow(n), 1945 this._tether.position(), 1946 o(n).addClass(d), 1947 (n = function () { 1948 var e = t._hoverState; 1949 (t._hoverState = null), o(t.element).trigger(t.constructor.Event.SHOWN), e === c && t._leave(null, t); 1950 }), 1951 S.supportsTransitionEnd() && o(this.tip).hasClass(f) ? o(this.tip).one(S.TRANSITION_END, n).emulateTransitionEnd(b._TRANSITION_DURATION) : n())); 1952 }), 1953 (b.prototype.hide = function (e) { 1954 function t() { 1955 n._hoverState !== l && i.parentNode && i.parentNode.removeChild(i), n.element.removeAttribute("aria-describedby"), o(n.element).trigger(n.constructor.Event.HIDDEN), n.cleanupTether(), e && e(); 1956 } 1957 var n = this, 1958 i = this.getTipElement(), 1959 r = o.Event(this.constructor.Event.HIDE); 1960 o(this.element).trigger(r), 1961 r.isDefaultPrevented() || (o(i).removeClass(d), S.supportsTransitionEnd() && o(this.tip).hasClass(f) ? o(i).one(S.TRANSITION_END, t).emulateTransitionEnd(150) : t(), (this._hoverState = "")); 1962 }), 1963 (b.prototype.isWithContent = function () { 1964 return Boolean(this.getTitle()); 1965 }), 1966 (b.prototype.getTipElement = function () { 1967 return (this.tip = this.tip || o(this.config.template)[0]); 1968 }), 1969 (b.prototype.setContent = function () { 1970 var e = o(this.getTipElement()); 1971 this.setElementContent(e.find(h), this.getTitle()), e.removeClass(f).removeClass(d), this.cleanupTether(); 1972 }), 1973 (b.prototype.setElementContent = function (e, t) { 1974 var n = this.config.html; 1975 "object" === (void 0 === t ? "undefined" : x(t)) && (t.nodeType || t.jquery) ? (n ? o(t).parent().is(e) || e.empty().append(t) : e.text(o(t).text())) : e[n ? "html" : "text"](t); 1976 }), 1977 (b.prototype.getTitle = function () { 1978 return this.element.getAttribute("data-original-title") || ("function" == typeof this.config.title ? this.config.title.call(this.element) : this.config.title); 1979 }), 1980 (b.prototype.cleanupTether = function () { 1981 this._tether && this._tether.destroy(); 1982 }), 1983 (b.prototype._getAttachment = function (e) { 1984 return a[e.toUpperCase()]; 1985 }), 1986 (b.prototype._setListeners = function () { 1987 var n = this; 1988 this.config.trigger.split(" ").forEach(function (e) { 1989 var t; 1990 "click" === e 1991 ? o(n.element).on(n.constructor.Event.CLICK, n.config.selector, o.proxy(n.toggle, n)) 1992 : e !== y && 1993 ((t = e === m ? n.constructor.Event.MOUSEENTER : n.constructor.Event.FOCUSIN), 1994 (e = e === m ? n.constructor.Event.MOUSELEAVE : n.constructor.Event.FOCUSOUT), 1995 o(n.element).on(t, n.config.selector, o.proxy(n._enter, n)).on(e, n.config.selector, o.proxy(n._leave, n))); 1996 }), 1997 this.config.selector ? (this.config = o.extend({}, this.config, { trigger: "manual", selector: "" })) : this._fixTitle(); 1998 }), 1999 (b.prototype._fixTitle = function () { 2000 var e = x(this.element.getAttribute("data-original-title")); 2001 (!this.element.getAttribute("title") && "string" === e) || (this.element.setAttribute("data-original-title", this.element.getAttribute("title") || ""), this.element.setAttribute("title", "")); 2002 }), 2003 (b.prototype._enter = function (e, t) { 2004 var n = this.constructor.DATA_KEY; 2005 return ( 2006 (t = t || o(e.currentTarget).data(n)) || ((t = new this.constructor(e.currentTarget, this._getDelegateConfig())), o(e.currentTarget).data(n, t)), 2007 e && (t._activeTrigger["focusin" === e.type ? g : m] = !0), 2008 o(t.getTipElement()).hasClass(d) || t._hoverState === l 2009 ? void (t._hoverState = l) 2010 : (clearTimeout(t._timeout), 2011 (t._hoverState = l), 2012 t.config.delay && t.config.delay.show 2013 ? void (t._timeout = setTimeout(function () { 2014 t._hoverState === l && t.show(); 2015 }, t.config.delay.show)) 2016 : void t.show()) 2017 ); 2018 }), 2019 (b.prototype._leave = function (e, t) { 2020 var n = this.constructor.DATA_KEY; 2021 if ( 2022 ((t = t || o(e.currentTarget).data(n)) || ((t = new this.constructor(e.currentTarget, this._getDelegateConfig())), o(e.currentTarget).data(n, t)), 2023 e && (t._activeTrigger["focusout" === e.type ? g : m] = !1), 2024 !t._isWithActiveTrigger()) 2025 ) 2026 return ( 2027 clearTimeout(t._timeout), 2028 (t._hoverState = c), 2029 t.config.delay && t.config.delay.hide 2030 ? void (t._timeout = setTimeout(function () { 2031 t._hoverState === c && t.hide(); 2032 }, t.config.delay.hide)) 2033 : void t.hide() 2034 ); 2035 }), 2036 (b.prototype._isWithActiveTrigger = function () { 2037 for (var e in this._activeTrigger) if (this._activeTrigger[e]) return !0; 2038 return !1; 2039 }), 2040 (b.prototype._getConfig = function (e) { 2041 return ( 2042 (e = o.extend({}, this.constructor.Default, o(this.element).data(), e)).delay && "number" == typeof e.delay && (e.delay = { show: e.delay, hide: e.delay }), 2043 S.typeCheckConfig(t, e, this.constructor.DefaultType), 2044 e 2045 ); 2046 }), 2047 (b.prototype._getDelegateConfig = function () { 2048 var e = {}; 2049 if (this.config) for (var t in this.config) this.constructor.Default[t] !== this.config[t] && (e[t] = this.config[t]); 2050 return e; 2051 }), 2052 (b._jQueryInterface = function (n) { 2053 return this.each(function () { 2054 var e = o(this).data(i), 2055 t = "object" === (void 0 === n ? "undefined" : x(n)) ? n : null; 2056 if ((e || !/dispose|hide/.test(n)) && (e || ((e = new b(this, t)), o(this).data(i, e)), "string" == typeof n)) { 2057 if (void 0 === e[n]) throw new Error('No method n
2057amed "' + n + '"'); 2058 e[n](); 2059 } 2060 }); 2061 }), 2062 _(b, null, [ 2063 { 2064 key: "VERSION", 2065 get: function () { 2066 return "4.0.0-alpha.5"; 2067 }, 2068 }, 2069 { 2070 key: "Default", 2071 get: function () { 2072 return r; 2073 }, 2074 }, 2075 { 2076 key: "NAME", 2077 get: function () { 2078 return t; 2079 }, 2080 }, 2081 { 2082 key: "DATA_KEY", 2083 get: function () { 2084 return i; 2085 }, 2086 }, 2087 { 2088 key: "Event", 2089 get: function () { 2090 return u; 2091 }, 2092 }, 2093 { 2094 key: "EVENT_KEY", 2095 get: function () { 2096 return e; 2097 }, 2098 }, 2099 { 2100 key: "DefaultType", 2101 get: function () { 2102 return s; 2103 }, 2104 }, 2105 ]), 2106 b); 2107 function b(e, t) { 2108 w(this, b), 2109 (this._isEnabled = !0), 2110 (this._timeout = 0), 2111 (this._hoverState = ""), 2112 (this._activeTrigger = {}), 2113 (this._tether = null), 2114 (this.element = e), 2115 (this.config = this._getConfig(t)), 2116 (this.tip = null), 2117 this._setListeners(); 2118 } 2119 return ( 2120 (o.fn[t] = v._jQueryInterface), 2121 (o.fn[t].Constructor = v), 2122 (o.fn[t].noConflict = function () { 2123 return (o.fn[t] = n), v._jQueryInterface; 2124 }), 2125 v 2126 ); 2127 })(jQuery)), 2128 (function (i) { 2129 var e, 2130 t = "popover", 2131 r = "bs.popover", 2132 n = "." + r, 2133 o = i.fn[t], 2134 s = i.extend({}, m.Default, { placement: "right", trigger: "click", content: "", template: '<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }), 2135 a = i.extend({}, m.DefaultType, { content: "(string|element|function)" }), 2136 l = "fade", 2137 c = "in", 2138 u = ".popover-title", 2139 f = ".popover-content", 2140 d = { 2141 HIDE: "hide" + n, 2142 HIDDEN: "hidden" + n, 2143 SHOW: "show" + n, 2144 SHOWN: "shown" + n, 2145 INSERTED: "inserted" + n, 2146 CLICK: "click" + n, 2147 FOCUSIN: "focusin" + n, 2148 FOCUSOUT: "focusout" + n, 2149 MOUSEENTER: "mouseenter" + n, 2150 MOUSELEAVE: "mouseleave" + n, 2151 }, 2152 h = 2153 ((function (e, t) { 2154 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t); 2155 (e.prototype = Object.create(t && t.prototype, { c
2155onstructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })), 2156 t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t)); 2157 })(p, (e = m)), 2158 (p.prototype.isWithContent = function () { 2159 return this.getTitle() || this._getContent(); 2160 }), 2161 (p.prototype.getTipElement = function () { 2162 return (this.tip = this.tip || i(this.config.template)[0]); 2163 }), 2164 (p.prototype.setContent = function () { 2165 var e = i(this.getTipElement()); 2166 this.setElementContent(e.find(u), this.getTitle()), this.setElementContent(e.find(f), this._getContent()), e.removeClass(l).removeClass(c), this.cleanupTether(); 2167 }), 2168 (p.prototype._getContent = function () { 2169 return this.element.getAttribute("data-content") || ("function" == typeof this.config.content ? this.config.content.call(this.element) : this.config.content); 2170 }), 2171 (p._jQueryInterface = function (n) { 2172 return this.each(function () { 2173 var e = i(this).data(r), 2174 t = "object" === (void 0 === n ? "undefined" : x(n)) ? n : null; 2175 if ((e || !/destroy|hide/.test(n)) && (e || ((e = new p(this, t)), i(this).data(r, e)), "string" == typeof n)) { 2176 if (void 0 === e[n]) throw new Error('No method named "' + n + '"'); 2177 e[n](); 2178 } 2179 }); 2180 }), 2181 _(p, null, [ 2182 { 2183 key: "VERSION", 2184 get: function () { 2185 return "4.0.0-alpha.5"; 2186 }, 2187 }, 2188 { 2189 key: "Default", 2190 get: function () { 2191 return s; 2192 }, 2193 }, 2194 { 2195 key: "NAME", 2196 get: function () { 2197 return t; 2198 }, 2199 }, 2200 { 2201 key: "DATA_KEY", 2202 get: function () { 2203 return r; 2204 }, 2205 }, 2206 { 2207 key: "Event", 2208 get: function () { 2209 return d; 2210 }, 2211 }, 2212 { 2213 key: "EVENT_KEY", 2214 get: function () { 2215 return n; 2216 }, 2217 }, 2218 { 2219 key: "DefaultType", 2220 get: function () { 2221 return a; 2222 }, 2223 }, 2224 ]), 2225 p); 2226 function p() { 2227 return ( 2228 w(this, p), 2229 (function (e, t) { 2230 if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2231 return !t || ("object" != typeof t && "function" != typeof t) ? e : t; 2232 })(this, e.apply(this, arguments)) 2233 ); 2234 } 2235 (i.fn[t] = h._jQueryInterface),
2236 (i.fn[t].Constructor = h), 2237 (i.fn[t].noConflict = function () { 2238 return (i.fn[t] = o), h._jQueryInterface; 2239 }); 2240 })(jQuery); 2241 }, 2242 590: (e) => { 2243 function i() { 2244 (this._events = this._events || {}), (this._maxListeners = this._maxListeners || void 0); 2245 } 2246 function l(e) { 2247 return "function" == typeof e; 2248 } 2249 function c(e) { 2250 return "object" == typeof e && null !== e; 2251 } 2252 function u(e) { 2253 return void 0 === e; 2254 } 2255 (((e.exports = i).EventEmitter = i).prototype._events = void 0), 2256 (i.prototype._maxListeners = void 0), 2257 (i.defaultMaxListeners = 10), 2258 (i.prototype.setMaxListeners = function (e) { 2259 if ("number" != typeof e || e < 0 || isNaN(e)) throw TypeError("n must be a positive number"); 2260 return (this._maxListeners = e), this; 2261 }), 2262 (i.prototype.emit = function (e) { 2263 var t, n, i, r, o, s; 2264 if ((this._events || (this._events = {}), "error" === e && (!this._events.error || (c(this._events.error) && !this._events.error.length)))) { 2265 if ((t = arguments[1]) instanceof Error) throw t; 2266 var a = new Error('Uncaught, unspecified "error" event. (' + t + ")"); 2267 throw ((a.context = t), a); 2268 } 2269 if (u((n = this._events[e]))) return !1; 2270 if (l(n)) 2271 switch (arguments.length) { 2272 case 1: 2273 n.call(this); 2274 break; 2275 case 2: 2276 n.call(this, arguments[1]); 2277 break; 2278 case 3: 2279 n.call(this, arguments[1], arguments[2]); 2280 break; 2281 default: 2282 (r = Array.prototype.slice.call(arguments, 1)), n.apply(this, r); 2283 } 2284 else if (c(n)) for (r = Array.prototype.slice.call(arguments, 1), i = (s = n.slice()).length, o = 0; o < i; o++) s[o].apply(this, r); 2285 return !0; 2286 }), 2287 (i.prototype.on = i.prototype.addListener = function (e, t) { 2288 var n; 2289 if (!l(t)) throw TypeError("listener must be a function"); 2290 return ( 2291 this._events || (this._events = {}), 2292 this._events.newListener && this.emit("newListener", e, l(t.listener) ? t.listener : t), 2293 this._events[e] ? (c(this._events[e]) ? this._events[e].push(t) : (this._events[e] = [this._events[e], t])) : (this._events[e] = t), 2294 c(this._events[e]) && !this._events[e].warned && (n = u(this._maxListeners) ? i.defaultMaxListeners : this._maxListeners) && 0 < n && this._events[e].length > n && ((this._events[e].warned = !0), console.trace), 2295 this 2296 ); 2297 }), 2298 (i.prototype.once = function (e, t) { 2299 if (!l(t)) throw TypeError("listener must be a function"); 2300 var n = !1; 2301 function i() { 2302 this.removeListener(e, i), n || ((n = !0), t.apply(this, arguments)); 2303 } 2304 return (i.listener = t), this.on(e, i), this; 2305 }), 2306 (i.prototype.removeListener = function (e, t) { 2307 var n, i, r, o; 2308 if (!l(t)) throw TypeError("listener must be a function"); 2309 if (!this._events || !this._events[e]) return this; 2310 if (((r = (n = this._events[e]).length), (i = -1), n === t || (l(n.listener) && n.listener === t))) delete this._events[e], this._events.removeListener && this.emit
2310("removeListener", e, t); 2311 else if (c(n)) { 2312 for (o = r; 0 < o--; ) 2313 if (n[o] === t || (n[o].listener && n[o].listener === t)) { 2314 i = o; 2315 break; 2316 } 2317 if (i < 0) return this; 2318 1 === n.length ? ((n.length = 0), delete this._events[e]) : n.splice(i, 1), this._events.removeListener && this.emit("removeListener", e, t); 2319 } 2320 return this; 2321 }), 2322 (i.prototype.removeAllListeners = function (e) { 2323 var t, n; 2324 if (!this._events) return this; 2325 if (!this._events.removeListener) return 0 === arguments.length ? (this._events = {}) : this._events[e] && delete this._events[e], this; 2326 if (0 === arguments.length) { 2327 for (t in this._events) "removeListener" !== t && this.removeAllListeners(t); 2328 return this.removeAllListeners("removeListener"), (this._events = {}), this; 2329 } 2330 if (l((n = this._events[e]))) this.removeListener(e, n); 2331 else if (n) for (; n.length; ) this.removeListener(e, n[n.length - 1]); 2332 return delete this._events[e], this; 2333 }), 2334 (i.prototype.listeners = function (e) { 2335 e = this._events && this._events[e] ? (l(this._events[e]) ? [this._events[e]] : this._events[e].slice()) : []; 2336 return e; 2337 }), 2338 (i.prototype.listenerCount = function (e) { 2339 if (this._events) { 2340 e = this._events[e]; 2341 if (l(e)) return 1; 2342 if (e) return e.length; 2343 } 2344 return 0; 2345 }), 2346 (i.listenerCount = function (e, t) { 2347 return e.listenerCount(t); 2348 }); 2349 }, 2350 635: (e) => { 2351 e.exports = (function i(r, o, s) { 2352 function a(n, e) { 2353 if (!o[n]) { 2354 if (!r[n]) { 2355 if ((0, l)) return l(n, !0); 2356 var t = new Error("Cannot find module '" + n + "'"); 2357 throw ((t.code = "MODULE_NOT_FOUND"), t); 2358 } 2359 t = o[n] = { exports: {} }; 2360 r[n][0].call( 2361 t.exports, 2362 function (e) { 2363 var t = r[n][1][e]; 2364 return a(t || e); 2365 }, 2366 t, 2367 t.exports, 2368 i, 2369 r, 2370 o, 2371 s 2372 ); 2373 } 2374 return o[n].exports; 2375 } 2376 for (var l = void 0, e = 0; e < s.length; e++) a(s[e]); 2377 return a; 2378 })( 2379 { 2380 1: [ 2381 function (e, t, n) { 2382 t.exports = function (e) { 2383 var t, 2384 n, 2385 i, 2386 r = -1; 2387 if (1 < e.lines.length && "flex-start" === e.style.alignContent) for (t = 0; (i = e.lines[++r]); ) (i.crossStart = t), (t += i.cross); 2388 else if (1 < e.lines.length && "flex-end" === e.style.alignContent) for (t = e.flexStyle.crossSpace; (i = e.lines[++r]); ) (i.crossStart = t), (t += i.cross); 2389 else if (1 < e.lines.length && "center" === e.style.alignContent) for (t = e.flexStyle.crossSpace / 2; (i = e.lines[++r]); ) (i.crossStart = t), (t += i.cross); 2390 else if (1 < e.lines.length && "space-between" === e.style.alignContent) for (n = e.flexStyle.crossSpace / (e.lines.length - 1), t = 0; (i = e.lines[++r]); ) (i.crossStart = t), (t += i.cross + n); 2391 else if (1 < e.lines.length && "space-around" === e.style.alignContent) 2392 for (t = (n = (2 * e.flexStyle.crossSpace) / (2 * e.lines.length)) / 2; (i = e.lines[++r]); ) (i.crossStart = t), (t += i.cross + n); 2393 else for (n = e.flexStyle.crossSpace / e.lines.length, t = e.flexStyle.crossInnerBefore; (i = e.lines[++r]); ) (i.crossStart = t), (i.cross += n), (t += i.cross); 2394 }; 2395 }, 2396 {}, 2397 ], 2398 2: [ 2399 function (e, t, n) { 2400 t.exports = function (e) { 2401 for (var t, n = -1; (line = e.lines[++n]); ) 2402 for (t = -1; (child = line.children[++t]); ) { 2403 var i = child.style.alignSelf; 2404 "flex-start" === (i = "auto" === i ? e.style.alignItems : i) 2405 ? (child.flexStyle.crossStart = line.crossStart) 2406 : "flex-end" === i 2407 ? (child.flexStyle.crossStart = line.crossStart + line.cross - child.flexStyle.crossOuter) 2408 : "center" === i 2409 ? (child.flexStyle.crossStart = line.crossStart + (line.cross - child.flexStyle.crossOuter) / 2) 2410 : ((child.flexStyle.crossStart = line.crossStart), 2411 (child.flexStyle.crossOuter = line.cross), 2412 (child.flexStyle.cross = child.flexStyle.crossOuter - child.flexStyle.crossBefore - child.flexStyle.crossAfter)); 2413 } 2414 }; 2415 }, 2416 {}, 2417 ], 2418 3: [ 2419 function (e, t, n) { 2420 t.exports = function (e, t) { 2421 var n = "row" === t || "row-reverse" === t, 2422 i = e.mainAxis; 2423 i 2424 ? (n && "inline" === i) || 2425 (!n && "block" === i) || 2426 (e.flexStyle = { 2427 main: e.flexStyle.cross, 2428 cross: e.flexStyle.main, 2429 mainOffset: e.flexStyle.crossOffset, 2430 crossOffset: e.flexStyle.mainOffset, 2431 mainBefore: e.flexStyle.crossBefore, 2432 mainAfter: e.flexStyle.crossAfter, 2433 crossBefore: e.flexStyle.mainBefore, 2434 crossAfter: e.flexStyle.mainAfter, 2435 mainInnerBefore: e.flexStyle.crossInnerBefore, 2436 mainInnerAfter: e.flexStyle.crossInnerAfter, 2437 crossInnerBefore: e.flexStyle.mainInnerBefore, 2438 crossInnerAfter: e.flexStyle.mainInnerAfter, 2439 mainBorderBefore: e.flexStyle.crossBorderBefore, 2440 mainBorderAfter: e.flexStyle.crossBorderAfter, 2441 crossBorderBefore: e.flexStyle.mainBorderBefore, 2442 crossBorderAfter: e.flexStyle.mainBorderAfter, 2443 }) 2444 : ((e.flexStyle = n 2445 ? { 2446 main: e.style.width, 2447 cross: e.style.height, 2448 mainOffset: e.style.offsetWidth, 2449 crossOffset: e.style.offsetHeight, 2450 mainBefore: e.style.marginLeft, 2451 mainAfter: e.style.marginRight, 2452 crossBefore: e.style.marginTop, 2453 crossAfter: e.style.marginBottom, 2454 mainInnerBefore: e.style.paddingLeft, 2455 mainInnerAfter: e.style.paddingRight, 2456 crossInnerBefore: e.style.paddingTop, 2457 crossInnerAfter: e.style.paddingBottom, 2458 mainBorderBefore: e.style.borderLeftWidth, 2459 mainBorderAfter: e.style.borderRightWidth, 2460 crossBorderBefore: e.style.borderTopWidth, 2461 crossBorderAfter: e.style.borderBottomWidth, 2462 } 2463 : { 2464 main: e.style.height, 2465 cross: e.style.width, 2466 mainOffset: e.style.offsetHeight, 2467 crossOffset: e.style.offsetWidth, 2468 mainBefore: e.style.marginTop, 2469 mainAfter: e.style.marginBottom, 2470 crossBefore: e.style.marginLeft, 2471 crossAfter: e.style.marginRight, 2472 mainInnerBefore: e.style.paddingTop, 2473 mainInnerAfter: e.style.paddingBottom, 2474 crossInnerBefore: e.style.paddingLeft, 2475 crossInnerAfter: e.style.paddingRight, 2476 mainBorderBefore: e.style.borderTopWidth, 2477 mainBorderAfter: e.style.borderBottomWidth, 2478 crossBorderBefore: e.style.borderLeftWidth, 2479 crossBorderAfter: e.style.borderRightWidth, 2480 }), 2481 "content-box" === e.style.boxSizing && 2482 ("number" == typeof e.flexStyle.main && (e.flexStyle.main += e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), 2483 "number" == typeof e.flexStyle.cross && (e.flexStyle.cross += e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter))), 2484 (e.mainAxis = n ? "inline" : "block"), 2485 (e.crossAxis = n ? "block" : "
2485inline"), 2486 "number" == typeof e.style.flexBasis && (e.flexStyle.main = e.style.flexBasis + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), 2487 (e.flexStyle.mainOuter = e.flexStyle.main), 2488 (e.flexStyle.crossOuter = e.flexStyle.cross), 2489 "auto" === e.flexStyle.mainOuter && (e.flexStyle.mainOuter = e.flexStyle.mainOffset), 2490 "auto" === e.flexStyle.crossOuter && (e.flexStyle.crossOuter = e.flexStyle.crossOffset), 2491 "number" == typeof e.flexStyle.mainBefore && (e.flexStyle.mainOuter += e.flexStyle.mainBefore), 2492 "number" == typeof e.flexStyle.mainAfter && (e.flexStyle.mainOuter += e.flexStyle.mainAfter), 2493 "number" == typeof e.flexStyle.crossBefore && (e.flexStyle.crossOuter += e.flexStyle.crossBefore), 2494 "number" == typeof e.flexStyle.crossAfter && (e.flexStyle.crossOuter += e.flexStyle.crossAfter); 2495 }; 2496 }, 2497 {}, 2498 ], 2499 4: [ 2500 function (e, t, n) { 2501 var r = e("../reduce"); 2502 t.exports = function (n) { 2503 var i; 2504 0 < n.mainSpace && 2505 0 < 2506 (i = r( 2507 n.children, 2508 function (e, t) { 2509 return e + parseFloat(t.style.flexGrow); 2510 }, 2511 0 2512 )) && 2513 ((n.main = r( 2514 n.children, 2515 function (e, t) { 2516 return ( 2517 "auto" === t.flexStyle.main 2518 ? (t.flexStyle.main = t.flexStyle.mainOffset + (parseFloat(t.style.flexGrow) / i) * n.mainSpace) 2519 : (t.flexStyle.main += (parseFloat(t.style.flexGrow) / i) * n.mainSpace), 2520 (t.flexStyle.mainOuter = t.flexStyle.main + t.flexStyle.mainBefore + t.flexStyle.mainAfter), 2521 e + t.flexStyle.mainOuter 2522 ); 2523 }, 2524 0 2525 )), 2526 (n.mainSpace = 0)); 2527 }; 2528 }, 2529 { "../reduce": 12 }, 2530 ], 2531 5: [ 2532 function (e, t, n) { 2533 var r = e("../reduce"); 2534 t.exports = function (n) { 2535 var i; 2536 n.mainSpace < 0 && 2537 0 < 2538 (i = r( 2539 n.children, 2540 function (e, t) { 2541 return e + parseFloat(t.style.flexShrink); 2542 }, 2543 0 2544 )) && 2545 ((n.main = r( 2546 n.children, 2547 function (e, t) { 2548 return ( 2549 (t.flexStyle.main += (parseFloat(t.style.flexShrink) / i) * n.mainSpace), 2550 (t.flexStyle.mainOuter = t.flexStyle.main + t.flexStyle.mainBefore + t.flexStyle.mainAfter), 2551 e + t.flexStyle.mainOuter 2552 ); 2553 }, 2554 0 2555 )), 2556 (n.mainSpace = 0)); 2557 }; 2558 }, 2559 { "../reduce": 12 }, 2560 ], 2561 6: [ 2562 function (e, t, n) { 2563 var r = e("../reduce"); 2564 t.exports = function (e) { 2565 var t; 2566 e.lines = [(t = { main: 0, cross: 0, children: [] })]; 2567 for (var n, i = -1; (n = e.children[++i]); ) 2568 "nowrap" === e.style.flexWrap || 2569 0 === t.children.length || 2570 "auto" === e.flexStyle.main || 2571 e.flexStyle.main - e.flexStyle.mainInnerBefore - e.flexStyle.mainInnerAfter - e.flexStyle.mainBorderBefore - e.flexStyle.mainBorderAfter >= t.main + n.flexStyle.mainOuter 2572 ? ((t.main += n.flexStyle.mainOuter), (t.cross = Math.max(t.cross, n.flexStyle.crossOuter))) 2573 : e.lines.push((t = { main:
2573n.flexStyle.mainOuter, cross: n.flexStyle.crossOuter, children: [] })), 2574 t.children.push(n); 2575 (e.flexStyle.mainLines = r( 2576 e.lines, 2577 function (e, t) { 2578 return Math.max(e, t.main); 2579 }, 2580 0 2581 )), 2582 (e.flexStyle.crossLines = r( 2583 e.lines, 2584 function (e, t) { 2585 return e + t.cross; 2586 }, 2587 0 2588 )), 2589 "auto" === e.flexStyle.main && 2590 (e.flexStyle.main = Math.max( 2591 e.flexStyle.mainOffset, 2592 e.flexStyle.mainLines + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter 2593 )), 2594 "auto" === e.flexStyle.cross && 2595 (e.flexStyle.cross = Math.max( 2596 e.flexStyle.crossOffset, 2597 e.flexStyle.crossLines + e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter 2598 )), 2599 (e.flexStyle.crossSpace = e.flexStyle.cross - e.flexStyle.crossInnerBefore - e.flexStyle.crossInnerAfter - e.flexStyle.crossBorderBefore - e.flexStyle.crossBorderAfter - e.flexStyle.crossLines), 2600 (e.flexStyle.mainOuter = e.flexStyle.main + e.flexStyle.mainBefore + e.flexStyle.mainAfter), 2601 (e.flexStyle.crossOuter = e.flexStyle.cross + e.flexStyle.crossBefore + e.flexStyle.crossAfter); 2602 }; 2603 }, 2604 { "../reduce": 12 }, 2605 ], 2606 7: [ 2607 function (r, e, t) { 2608 e.exports = function (e) { 2609 for (var t, n, i = -1; (t = e.children[++i]); ) r("./flex-direction")(t, e.style.flexDirection); 2610 for (r("./flex-direction")(e, e.style.flexDirection), r("./order")(e), r("./flexbox-lines")(e), r("./align-content")(e), i = -1; (n = e.lines[++i]); ) 2611 (n.mainSpace = e.flexStyle.main - e.flexStyle.mainInnerBefore - e.flexStyle.mainInnerAfter - e.flexStyle.mainBorderBefore - e.flexStyle.mainBorderAfter - n.main), 2612 r("./flex-grow")(n), 2613 r("./flex-shrink")(n), 2614 r("./margin-main")(n), 2615 r("./margin-cross")(n), 2616 r("./justify-content")(n, e.style.justifyContent, e); 2617 r("./align-items")(e); 2618 }; 2619 }, 2620 { "./align-content": 1, "./align-items": 2, "./flex-direction": 3, "./flex-grow": 4, "./flex-shrink": 5, "./flexbox-lines": 6, "./justify-content": 8, "./margin-cross": 9, "./margin-main": 10, "./order": 11 }, 2621 ], 2622 8: [ 2623 function (e, t, n) { 2624 t.exports = function (e, t, n) { 2625 var i, 2626 r, 2627 o, 2628 n = n.flexStyle.mainInnerBefore, 2629 s = -1; 2630 if ("flex-end" === t) for (i = e.mainSpace, i += n; (o = e.children[++s]); ) (o.flexStyle.mainStart = i), (i += o.flexStyle.mainOuter); 2631 else if ("center" === t) for (i = e.mainSpace / 2, i += n; (o = e.children[++s]); ) (o.flexStyle.mainStart = i), (i += o.flexStyle.mainOuter); 2632 else if ("space-between" === t) for (r = e.mainSpace / (e.children.length - 1), i = 0, i += n; (o = e.children[++s]); ) (o.flexStyle.mainStart = i), (i += o.flexStyle.mainOuter + r); 2633 else if ("space-around" === t) for (i = (r = (2 * e.mainSpace) / (2 * e.children.length)) / 2, i += n; (o = e.children[++s]); ) (o.flexStyle.mainStart = i), (i += o.flexStyle.mainOuter + r); 2634 else for (i = 0, i += n; (o = e.children[++s]); ) (o.flexStyle.mainStart = i), (i += o.flexStyle.mainOuter); 2635 }; 2636 }, 2637 {}, 2638 ], 2639 9: [ 2640 function (e, t, n) { 2641 t.exports = function (e) { 2642 for (var t, n = -1; (t = e.children[++n]); ) { 2643 var i = 0; 2644 "auto" === t.flexStyle.crossBefore && ++i, "auto" === t.flexStyle.crossAfter && ++i; 2645 var r = e.cross - t.flexStyle.crossOuter; 2646 "auto" === t.flexStyle.crossBefore && (t.flexStyle.crossBefore = r / i), 2647 "auto" === t.flexStyle.crossAfter && (t.flexStyle.crossAfter = r / i), 2648 "auto" === t.flexStyle.cross 2649 ? (t.flexStyle.crossOuter = t.flexStyle.crossOffset + t.flexStyle.crossBefore + t.flexStyle.crossAfter) 2650 : (t.flexStyle.crossOuter = t.flexStyle.cross + t.flexStyle.crossBefore + t.flexStyle.crossAfter); 2651 } 2652 }; 2653 }, 2654 {}, 2655 ], 2656 10: [ 2657 function (e, t, n) { 2658 t.exports = function (e) { 2659 for (var t, n = 0, i = -1; (t = e.children[++i]); ) "auto" === t.flexStyle.mainBefore && ++n, "auto" === t.flexStyle.mainAfter && ++n; 2660 if (0 < n) { 2661 for (i = -1; (t = e.children[++i]); ) 2662 "auto" === t.flexStyle.mainBefore && (t.flexStyle.mainBefore = e.mainSpace / n), 2663 "auto" === t.flexStyle.mainAfter && (t.flexStyle.mainAfter = e.mainSpace / n), 2664 "auto" === t.flexStyle.main 2665 ? (t.flexStyle.mainOuter = t.flexStyle.mainOffset + t.flexStyle.mainBefore + t.flexStyle.mainAfter) 2666 : (t.flexStyle.mainOuter = t.flexStyle.main + t.flexStyle.mainBefore + t.flexStyle.mainAfter); 2667 e.mainSpace = 0; 2668 } 2669 }; 2670 }, 2671 {}, 2672 ], 2673 11: [ 2674 function (e, t, n) { 2675 var i = /^(column|row)-reverse$/; 2676 t.exports = function (e) { 2677 e.children.sort(function (e, t) { 2678 return e.style.order - t.style.order || e.index - t.index; 2679 }), 2680 i.test(e.style.flexDirection) && e.children.reverse(); 2681 }; 2682 }, 2683 {}, 2684 ], 2685 12: [ 2686 function (e, t, n) { 2687 t.exports = function (e, t, n) { 2688 for (var i = e.length, r = -1; ++r < i; ) r in e && (n = t(n, e[r], r)); 2689 return n; 2690 }; 2691 }, 2692 {}, 2693 ], 2694 13: [ 2695 function (e, t, n) { 2696 var i = e("./read"), 2697 r = e("./write"), 2698 o = e("./readAll"), 2699 s = e("./writeAll"); 2700 (t.exports = function (e) { 2701 s(o(e)); 2702 }), 2703 (t.exports.read = i), 2704 (t.exports.write = r), 2705 (t.exports.readAll = o), 2706 (t.exports.writeAll = s); 2707 }, 2708 { "./read": 15, "./readAll": 16, "./write": 17, "./writeAll": 18 }, 2709 ], 2710 14: [ 2711 function (e, t, n) { 2712 t.exports = function (e, t) { 2713 var n = String(e).match(r); 2714 if (!n) return e; 2715 var i = n[1]; 2716 return "px" === (n = n[2]) 2717 ? +i 2718 : "cm" === n 2719 ? 0.3937 * i * 96 2720 : "in" === n 2721 ? 96 * i 2722 : "mm" === n 2723 ? (0.3937 * i * 96) / 10 2724 : "pc" === n 2725 ? (12 * i * 96) / 72 2726 : "pt" === n 2727 ? (96 * i) / 72 2728 : "rem" === n 2729 ? 16 * i 2730 : (function (e, t) { 2731 (o.style.cssText = 2732 "border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;
2732width:" + 2733 e + 2734 "!important"), 2735 t.parentNode.insertBefore(o, t.nextSibling); 2736 e = o.offsetWidth; 2737 return t.parentNode.removeChild(o), e; 2738 })(e, t); 2739 }; 2740 var r = /^([-+]?\d*\.?\d+)(%|[a-z]+)$/, 2741 o = document.createElement("div"); 2742 }, 2743 {}, 2744 ], 2745 15: [ 2746 function (e, t, n) { 2747 t.exports = function (e) { 2748 var t = { 2749 alignContent: "stretch", 2750 alignItems: "stretch", 2751 alignSelf: "auto", 2752 borderBottomWidth: 0, 2753 borderLeftWidth: 0, 2754 borderRightWidth: 0, 2755 borderTopWidth: 0, 2756 boxSizing: "content-box", 2757 display: "inline", 2758 flexBasis: "auto", 2759 flexDirection: "row", 2760 flexGrow: 0, 2761 flexShrink: 1, 2762 flexWrap: "nowrap", 2763 justifyContent: "flex-start", 2764 height: "auto", 2765 marginTop: 0, 2766 marginRight: 0, 2767 marginLeft: 0, 2768 marginBottom: 0, 2769 paddingTop: 0, 2770 paddingRight: 0, 2771 paddingLeft: 0, 2772 paddingBottom: 0, 2773 maxHeight: "none", 2774 maxWidth: "none", 2775 minHeight: 0, 2776 minWidth: 0, 2777 order: 0, 2778 position: "static", 2779 width: "auto", 2780 }; 2781 if (e instanceof Element) { 2782 var n, 2783 i = e.hasAttribute("data-style"), 2784 r = i ? e.getAttribute("data-style") : e.getAttribute("style") || ""; 2785 for (n in (i || e.setAttribute("data-style", r), 2786 (function (e, t) { 2787 for (var n in e) n in t && !/^(alignSelf|height|width)$/.test(n) && (e[n] = t[n]); 2788 })(t, (window.getComputedStyle && getComputedStyle(e)) || {}), 2789 (function (e, t) { 2790 for (var n in e) { 2791 var i; 2792 n in t ? (e[n] = t[n]) : (i = n.replace(/[A-Z]/g, "-$&").toLowerCase()) in t && (e[n] = t[i]); 2793 } 2794 "-js-display" in t && (e.dis
2794play = t["-js-display"]); 2795 })(t, e.currentStyle || {}), 2796 (function (e, t) { 2797 for (var n; (n = o.exec(t)); ) { 2798 var i = n[1].toLowerCase().replace(/-[a-z]/g, function (e) { 2799 return e.slice(1).toUpperCase(); 2800 }); 2801 e[i] = n[2]; 2802 } 2803 })(t, r), 2804 t)) 2805 t[n] = s(t[n], e); 2806 r = e.getBoundingClientRect(); 2807 (t.offsetHeight = r.height || e.offsetHeight), (t.offsetWidth = r.width || e.offsetWidth); 2808 } 2809 return { element: e, style: t }; 2810 }; 2811 var o = /([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g, 2812 s = e("./getComputedLength"); 2813 }, 2814 { "./getComputedLength": 14 }, 2815 ], 2816 16: [ 2817 function (e, t, n) { 2818 function u(e) { 2819 var t = e instanceof Element, 2820 n = t && e.getAttribute("data-style"), 2821 e = t && e.currentStyle && e.currentStyle["-js-display"]; 2822 return i.test(n) || r.test(e); 2823 } 2824 t.exports = function (e) { 2825 var t = []; 2826 return ( 2827 (function e(t, n) { 2828 for (var i, r = u(t), o = [], s = -1; (i = t.childNodes[++s]); ) { 2829 var a = 3 === i.nodeType && !/^\s*$/.test(i.nodeValue); 2830 r && a && ((l = i), (i = t.insertBefore(document.createElement("flex-item"), l)).appendChild(l)); 2831 var l, 2832 a = i instanceof Element; 2833 a && ((l = e(i, n)), r && (((a = i.style).display = "inline-block"), (a.position = "absolute"), (l.style = f(i).style), o.push(l))); 2834 } 2835 var c = { element: t, children: o }; 2836 return r && ((c.style = f(t).style), n.push(c)), c; 2837 })(e, t), 2838 t 2839 ); 2840 }; 2841 var f = e("../read"), 2842 i = /(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i, 2843 r = /^(inline-)?flex$/i; 2844 }, 2845 { "../read": 15 }, 2846 ], 2847 17: [ 2848 function (e, t, n) { 2849 function a(e) { 2850 return "string" == typeof e ? e : Math.max(e, 0) + "px"; 2851 } 2852 t.exports = function (e) { 2853 l(e); 2854 var t = e.element.style, 2855 n = "inline" === e.mainAxis ? ["main", "cross"] : ["cross", "main"]; 2856 (t.boxSizing = "content-box"), 2857 (t.display = "block"), 2858 (t.position = "relative"), 2859 (t.width = a(e.flexStyle[n[0]] - e.flexStyle[n[0] + "InnerBefore"] - e.flexStyle[n[0] + "InnerAfter"] - e.flexStyle[n[0] + "BorderBefore"] - e.flexStyle[n[0] + "BorderAfter"])), 2860 (t.height = a(e.flexStyle[n[1]] - e.flexStyle[n[1] + "InnerBefore"] - e.flexStyle[n[1] + "InnerAfter"] - e.flexStyle[n[1] + "BorderBefore"] - e.flexStyle[n[1] + "BorderAfter"])); 2861 for (var i, r = -1; (i = e.children[++r]); ) { 2862 var o = i.element.style, 2863 s = "inline" === i.mainAxis ? ["main", "cross"] : ["cross", "main"]; 2864 (o.boxSizing = "content-box"), 2865 (o.display = "block"), 2866 (o.position = "absolute"), 2867 "auto" !== i.flexStyle[s[0]] && 2868 (o.width = a(i.flexStyle[s[0]] - i.flexStyle[s[0] + "InnerBefore"] - i.flexStyle[s[0] + "InnerAfter"] - i.flexStyle[s[0] + "BorderBefore"] - i.flexStyle[s[0] + "BorderAfter"])), 2869 "auto" !== i.flexStyle[s[1]] && 2870 (o.height = a(i.flexStyle[s[1]] - i.flexStyle[s[1] + "InnerBefore"] - i.flexStyle[s[1] + "InnerAfter"] - i.flexStyle[s[1] + "BorderBefore"] - i.flexStyle[s[1] + "BorderAfter"])), 2871 (o.top = a(i.flexStyle[s[1] + "Start"])), 2872 (o.left = a(i.flexStyle[s[0] + "Start"])), 2873 (o.marginTop = a(i.flexStyle[s[1] + "Before"])), 2874 (o.marginRight = a(i.flexStyle[s[0] + "After"])), 2875 (o.marginBottom = a(i.flexStyle[s[1] + "After"])), 2876 (o.marginLeft = a(i.flexStyle[s[0] + "Before"])); 2877 } 2878 }; 2879 var l = e("../flexbox"); 2880 }, 2881 { "../flexbox": 7 }, 2882 ], 2883 18: [ 2884 function (e, t, n) { 2885 t.exports = function (e) { 2886 for (var t, n = -1; (t = e[++n]); ) i(t); 2887 }; 2888 var i = e("../write"); 2889 }, 2890 { "../write": 17 }, 2891 ], 2892 }, 2893 {}, 2894 [13] 2895 )(13); 2896 }, 2897 990: (e, t, n) => { 2898 var i, r, o; 2899 (o = function (ae) { 2900 "use strict"; 2901 function i(e, s) { 2902 function t(e) { 2903 if (!(!0 === X.data(De + "_intouch") || 0 < ae(e.target).closest(s.excludedElements, X).length)) { 2904 var t = e.originalEvent || e; 2905 if (!t.pointerType || "mouse" != t.pointerType || 0 != s.fallbackToMouseEvents) { 2906 var n, 2907 i = t.touches, 2908 r = i ? i[0] : t; 2909 return ( 2910 (G = Ce), 2911 i ? (Z = i.length) : !1 !== s.preventDefaultEvents && e.preventDefault(), 2912 (Y = R = H = null),
2913 (U = 1), 2914 (Q = z = q = $ = W = 0), 2915 ((e = {})[le] = O(le)), 2916 (e[ce] = O(ce)), 2917 (e[ue] = O(ue)), 2918 (e[fe] = O(fe)), 2919 (K = e), 2920 S(), 2921 E(0, r), 2922 !i || Z === s.fingers || s.fingers === Se || m() ? ((ee = N()), 2 == Z && (E(1, i[1]), (q = z = P(J[0].start, J[1].start))), (s.swipeStatus || s.pinchStatus) && (n = c(t, G))) : (n = !1), 2923 !1 === n 2924 ? (c(t, (G = ke)), n) 2925 : (s.hold && 2926 (se = setTimeout( 2927 ae.proxy(function () { 2928 X.trigger("hold", [t.target]), s.hold && (n = s.hold.call(X, t, t.target)); 2929 }, this), 2930 s.longTapThreshold 2931 )), 2932 C(!0), 2933 null) 2934 ); 2935 } 2936 } 2937 } 2938 function n(e) { 2939 var t, 2940 n, 2941 i, 2942 r, 2943 o = e.originalEvent || e; 2944 G === Ae || 2945 G === ke || 2946 T() || 2947 ((t = A((n = o.touches) ? n[0] : o)), 2948 (te = N()), 2949 n && (Z = n.length), 2950 s.hold && clearTimeout(se), 2951 (G = Ee), 2952 2 == Z && 2953 (0 == q ? (E(1, n[1]), (q = z = P(J[0].start, J[1].start))) : (A(n[1]), (z = P(J[0].end, J[1].end)), J[0].end, J[1].end, (Y = U < 1 ? he : de)), (U = ((z / q) * 1).toFixed(2)), (Q = Math.abs(q - z))), 2954 Z === s.fingers || s.fingers === Se || !n || m() 2955 ? ((H = D(t.start, t.end)), 2956 (function (e, t) { 2957 if (!1 !== s.preventDefaultEvents) 2958 if (s.allowPageScroll === pe) e.preventDefault(); 2959 else { 2960 var n = s.allowPageScroll === me; 2961 switch (t) { 2962 case le: 2963 ((s.swipeLeft && n) || (!n && s.allowPageScroll != xe)) && e.preventDefault(); 2964 break; 2965 case ce: 2966 ((s.swipeRight && n) || (!n && s.allowPageScroll != xe)) && e.preventDefault(); 2967 break; 2968 case ue: 2969 ((s.swipeUp && n) || (!n && s.allowPageScroll != _e)) && e.preventDefault(); 2970 break; 2971 case fe: 2972 ((s.swipeDown && n) || (!n && s.allowPageScroll != _e)) && e.preventDefault(); 2973 } 2974 } 2975 })(e, (R = D(t.last, t.end))), 2976 (i = t.start), 2977 (r = t.end), 2978 (W = Math.round(Math.sqrt(Math.pow(r.x - i.x, 2) + Math.pow(r.y - i.y, 2)))
2978), 2979 ($ = I()), 2980 (n = W), 2981 (e = H) != pe && ((n = Math.max(n, k(e))), (K[e].distance = n)), 2982 (r = c(o, G)), 2983 (s.triggerOnTouchEnd && !s.triggerOnTouchLeave) || 2984 ((i = !0), 2985 s.triggerOnTouchLeave && 2986 ((e = { left: (n = (e = ae((e = this))).offset()).left, right: n.left + e.outerWidth(), top: n.top, bottom: n.top + e.outerHeight() }), 2987 (t = t.end), 2988 (e = e), 2989 (i = t.x > e.left && t.x < e.right && t.y > e.top && t.y < e.bottom)), 2990 !s.triggerOnTouchEnd && i ? (G = l(Ee)) : s.triggerOnTouchLeave && !i && (G = l(Ae)), 2991 (G != ke && G != Ae) || c(o, G))) 2992 : c(o, (G = ke)), 2993 !1 === r && c(o, (G = ke))); 2994 } 2995 function i(e) { 2996 var t, 2997 n = e.originalEvent || e, 2998 i = n.touches; 2999 if (i) { 3000 if (i.length && !T()) return (t = n), (ne = N()), (ie = t.touches.length + 1), !0; 3001 if (i.length && T()) return !0; 3002 } 3003 return ( 3004 T() && (Z = ie), 3005 (te = N()), 3006 ($ = I()), 3007 d() || !f() 3008 ? c(n, (G = ke)) 3009 : s.triggerOnTouchEnd || (!1 === s.triggerOnTouchEnd && G === Ee) 3010 ? (!1 !== s.preventDefaultEvents && !1 !== e.cancelable && e.preventDefault(), c(n, (G = Ae))) 3011 : !s.triggerOnTouchEnd && w() 3012 ? u(n, (G = Ae), ve) 3013 : G === Ee && c(n, (G = ke)), 3014 C(!1), 3015 null 3016 ); 3017 } 3018 function r() { 3019 (z = q = ee = te = Z = 0), S(), C(!(U = 1)); 3020 } 3021 function o(e) { 3022 e = e.originalEvent || e; 3023 s.triggerOnTouchLeave && c(e, (G = l(Ae))); 3024 } 3025 function a() { 3026 X.off(B, t), X.off(M, r), X.off(F, n), X.off(L, i), V && X.off(V, o), C(!1); 3027 } 3028 function l(e) { 3029 var t = e, 3030 n = h(), 3031 i = f(), 3032 r = d(); 3033 return !n || r ? (t = ke) : !i || e != Ee || (s.triggerOnTouchEnd && !s.triggerOnTouchLeave) ? !i && e == Ae && s.triggerOnTouchLeave && (t = ke) : (t = Ae), t; 3034 } 3035 function c(e, t) { 3036 var n, 3037 i = e.touches; 3038 return ( 3039 ((g() && y()) || y()) && (n = u(e, t, ge)), 3040 ((p() && m()) || m()) && !1 !== n && (n = u(e, t, ye)), 3041 _() && x() && !1 !== n 3042 ? (n = u(e, t, be)) 3043 : $ > s.longTapThreshold && W < Te && s.longTap && !1 !== n 3044 ? (n = u(e, t, we)) 3045 : (1 !== Z && Oe) || !(isNaN(W) || W < s.threshold) || !w() || !1 === n || (n = u(e, t, ve)), 3046 t === ke && r(), 3047 t === Ae && ((i && i.length) || r()
3047), 3048 n 3049 ); 3050 } 3051 function u(e, t, n) { 3052 var i; 3053 if (n == ge) { 3054 if ((X.trigger("swipeStatus", [t, H || null, W || 0, $ || 0, Z, J, R]), s.swipeStatus && !1 === (i = s.swipeStatus.call(X, e, t, H || null, W || 0, $ || 0, Z, J, R)))) return !1; 3055 if (t == Ae && g()) { 3056 if ((clearTimeout(oe), clearTimeout(se), X.trigger("swipe", [H, W, $, Z, J, R]), s.swipe && !1 === (i = s.swipe.call(X, e, H, W, $, Z, J, R)))) return !1; 3057 switch (H) { 3058 case le: 3059 X.trigger("swipeLeft", [H, W, $, Z, J, R]), s.swipeLeft && (i = s.swipeLeft.call(X, e, H, W, $, Z, J, R)); 3060 break; 3061 case ce: 3062 X.trigger("swipeRight", [H, W, $, Z, J, R]), s.swipeRight && (i = s.swipeRight.call(X, e, H, W, $, Z, J, R)); 3063 break; 3064 case ue: 3065 X.trigger("swipeUp", [H, W, $, Z, J, R]), s.swipeUp && (i = s.swipeUp.call(X, e, H, W, $, Z, J, R)); 3066 break; 3067 case fe: 3068 X.trigger("swipeDown", [H, W, $, Z, J, R]), s.swipeDown && (i = s.swipeDown.call(X, e, H, W, $, Z, J, R)); 3069 } 3070 } 3071 } 3072 if (n == ye) { 3073 if ((X.trigger("pinchStatus", [t, Y || null, Q || 0, $ || 0, Z, U, J]), s.pinchStatus && !1 === (i = s.pinchStatus.call(X, e, t, Y || null, Q || 0, $ || 0, Z, U, J)))) return !1; 3074 if (t == Ae && p()) 3075 switch (Y) { 3076 case de: 3077 X.trigger("pinchIn", [Y || null, Q || 0, $ || 0, Z, U, J]), s.pinchIn && (i = s.pinchIn.call(X, e, Y || null, Q || 0, $ || 0, Z, U, J)); 3078 break; 3079 case he: 3080 X.trigger("pinchOut", [Y || null, Q || 0, $ || 0, Z, U, J]), s.pinchOut && (i = s.pinchOut.call(X, e, Y || null, Q || 0, $ || 0, Z, U, J)); 3081 } 3082 } 3083 return ( 3084 n == ve 3085 ? (t !== ke && t !== Ae) || 3086 (clearTimeout(oe), 3087 clearTimeout(se), 3088 x() && !_() 3089 ? ((re = N()), 3090 (oe = setTimeout( 3091 ae.proxy(function () { 3092 (re = null), X.trigger("tap", [e.target]), s.tap && (i = s.tap.call(X, e, e.target)); 3093 }, this), 3094 s.doubleTapThreshold 3095 ))) 3096 : ((re = null), X.trigger("tap", [e.target]), s.tap && (i = s.tap.call(X, e, e.target)))) 3097 : n == be 3098 ? (t !== ke && t !== Ae) || (clearTimeout(oe), clearTimeout(se), (re = null), X.trigger("doubletap", [e.target]), s.doubleTap && (i = s.doubleTap.call(X, e, e.target))) 3099 : n == we && ((t !== ke && t !== Ae) || (clearTimeout(oe), (re = null), X.trigger("longtap", [e.target]), s.longTap && (i = s.longTap.call(X, e, e.target)))), 3100 i 3101 ); 3102 } 3103 function f() { 3104 var e = !0; 3105 return (e = null !== s.threshold ? W >= s.threshold : e); 3106 } 3107 function d() { 3108 var e = !1; 3109 return (e = null !== s.cancelThreshold && null !== H ? k(H) - W >= s.cancelThreshold : e); 3110 } 3111 function h() { 3112 return !s.maxTimeThreshold || !($ >= s.maxTimeThreshold); 3113 } 3114 function p() { 3115 var e = v(), 3116 t = b(), 3117 n = null === s.pinchThreshold || Q >= s.pinchThreshold; 3118 return e && t && n; 3119 } 3120 function m() { 3121 return s.pinchStatus || s.pinchIn || s.pinchOut; 3122 } 3123 function g() { 3124 var e = h(), 3125 t = f(), 3126 n = v(), 3127 i = b(); 3128 return !d() && i && n && t && e; 3129 } 3130 function y() { 3131 return s.swipe || s.swipeStatus || s.swipeLeft || s.swipeRight || s.swipeUp || s.swipeDown; 3132 } 3133 function v() { 3134 return Z === s.fingers || s.fingers === Se || !Oe; 3135 } 3136 function b() { 3137 return 0 !== J[0].end.x; 3138 } 3139 function w() { 3140 return s.tap; 3141 } 3142 function x() { 3143 return !!s.doubleTap; 3144 } 3145 function _() { 3146 if (null == re) return !1; 3147 var e = N(); 3148 return x() && e - re <= s.doubleTapThreshold; 3149 } 3150 function S() { 3151 ie = ne = 0; 3152 } 3153 function T() { 3154 var e = !1; 3155 return (e = ne && N() - ne <= s.fingerReleaseThreshold ? !0 : e); 3156 } 3157 function C(e) { 3158 X && (!0 === e ? (X.on(F, n), X.on(L, i), V && X.on(V, o)) : (X.off(F, n, !1), X.off(L, i, !1), V && X.off(V, o, !1)), X.data(De + "_intouch", !0 === e)); 3159 } 3160 function E(e, t) { 3161 var n = { start: { x: 0, y: 0 }, last: { x: 0, y: 0 }, end: { x: 0, y: 0 } };
3162 return (n.start.x = n.last.x = n.end.x = t.pageX || t.clientX), (n.start.y = n.last.y = n.end.y = t.pageY || t.clientY), (J[e] = n); 3163 } 3164 function A(e) { 3165 var t = void 0 !== e.identifier ? e.identifier : 0, 3166 n = J[t] || null; 3167 return ((n = null === n ? E(t, e) : n).last.x = n.end.x), (n.last.y = n.end.y), (n.end.x = e.pageX || e.clientX), (n.end.y = e.pageY || e.clientY), n; 3168 } 3169 function k(e) { 3170 return K[e] ? K[e].distance : void 0; 3171 } 3172 function O(e) { 3173 return { direction: e, distance: 0 }; 3174 } 3175 function I() { 3176 return te - ee; 3177 } 3178 function P(e, t) { 3179 var n = Math.abs(e.x - t.x), 3180 t = Math.abs(e.y - t.y); 3181 return Math.round(Math.sqrt(n * n + t * t)); 3182 } 3183 function D(e, t) { 3184 if (((i = t), (n = e).x == i.x && n.y == i.y)) return pe; 3185 var n, 3186 i, 3187 e = ((i = t), (e = (t = e).x - i.x), (t = i.y - t.y), (e = Math.atan2(t, e)), (e = (e = Math.round((180 * e) / Math.PI)) < 0 ? 360 - Math.abs(e) : e)); 3188 return (e <= 45 && 0 <= e) || (e <= 360 && 315 <= e) ? le : 135 <= e && e <= 225 ? ce : 45 < e && e < 135 ? fe : ue; 3189 } 3190 function N() { 3191 return new Date().getTime(); 3192 } 3193 var s = ae.extend({}, s), 3194 j = Oe || Pe || !s.fallbackToMouseEvents, 3195 B = j ? (Pe ? (Ie ? "MSPointerDown" : "pointerdown") : "touchstart") : "mousedown", 3196 F = j ? (Pe ? (Ie ? "MSPointerMove" : "pointermove") : "touchmove") : "mousemove", 3197 L = j ? (Pe ? (Ie ? "MSPointerUp" : "pointerup") : "touchend") : "mouseup", 3198 V = !j || Pe ? "mouseleave" : null, 3199 M = Pe ? (Ie ? "MSPointerCancel" : "pointercancel") : "touchcancel", 3200 W = 0, 3201 H = null, 3202 R = null, 3203 $ = 0, 3204 q = 0, 3205 z = 0, 3206 U = 1, 3207 Q = 0, 3208 Y = 0, 3209 K = null, 3210 X = ae(e), 3211 G = "start", 3212 Z = 0, 3213 J = {}, 3214 ee = 0, 3215 te = 0, 3216 ne = 0, 3217 ie = 0, 3218 re = 0, 3219 oe = null, 3220 se = null; 3221 try { 3222 X.on(B, t), X.on(M, r); 3223 } catch (e) { 3224 ae.error("events not supported " + B + "," + M + " on jQuery.swipe"); 3225 } 3226 (this.enable = function () { 3227 return this.disable(), X.on(B, t), X.on(M, r), X; 3228 }), 3229 (this.disable = function () { 3230 return a(), X; 3231 }), 3232 (this.destroy = function () { 3233 a(), X.data(De, null), (X = null); 3234 }), 3235 (this.option = function (e, t) { 3236 if ("object" == typeof e) s = ae.extend(s, e); 3237 else if (void 0 !== s[e]) { 3238 if (void 0 === t) return s[e]; 3239 s[e] = t; 3240 } else { 3241 if (!e) return s; 3242 ae.error("Option " + e + " does not exist on jQuery.swipe.options"); 3243 } 3244 return null; 3245 }); 3246 } 3247 var le = "left", 3248 ce = "right", 3249 ue = "up", 3250 fe = "down", 3251 de = "in", 3252 he = "out", 3253 pe = "none", 3254 me = "auto", 3255 ge = "swipe", 3256 ye = "pinch", 3257 ve = "tap", 3258 be = "doubletap", 3259 we = "longtap", 3260 xe = "horizontal", 3261 _e = "vertical", 3262 Se = "all", 3263 Te = 10, 3264 Ce = "start", 3265 Ee = "move", 3266 Ae = "end", 3267 ke = "cancel", 3268 Oe = "ontouchstart" in window, 3269 Ie = window.navigator.msPointerEnabled && !window.PointerEvent && !Oe, 3270 Pe = (window.PointerEvent || window.navigator.msPointerEnabled) && !Oe, 3271 De = "TouchSwipe"; 3272 (ae.fn.swipe = function (e) { 3273 var t = ae(this), 3274 n = t.data(De); 3275 if (n && "string" == typeof e) { 3276 if (n[e]) return n[e].apply(n, Array.prototype.slice.call(arguments, 1)); 3277 ae.error("Method " + e + " does not exist on jQuery.swipe"); 3278 } else if (n && "object" == typeof e) n.option.apply(n, arguments); 3279 else if (!(n || ("object" != typeof e && e))) 3280 return function (n) { 3281 return ( 3282 !n || void 0 !== n.allowPageScroll || (void 0 === n.swipe && void 0 === n.swipeStatus) || (n.allowPageScroll = pe), 3283 void 0 !== n.click && void 0 === n.tap && (n.tap = n.click), 3284 (n = ae.extend({}, ae.fn.swipe.defaults, (n = n || {}))), 3285 this.each(function () { 3286 var e = ae(this), 3287 t = e.data(De); 3288 t || ((t = new i(this, n)), e.data(De, t)); 3289 }) 3290 ); 3291 }.apply(this, arguments); 3292 return t; 3293 }), 3294 (ae.fn.swipe.version = "1.6.18"), 3295 (ae.fn.swipe.defaults = { 3296 fingers: 1, 3297 threshold: 75, 3298 cancelThreshold: null, 3299 pinchThreshold: 20, 3300 maxTimeThreshold: null, 3301 fingerReleaseThreshold: 250, 3302 longTapThreshold: 500, 3303 doubleTapThreshold: 200, 3304 swipe: null, 3305 swipeLeft: null, 3306 swipeRight: null, 3307 swipeUp: null, 3308 swipeDown: null, 3309 swipeStatus: null, 3310 pinchIn: null, 3311 pinchOut: null, 3312 pinchStatus: null, 3313 click: null, 3314 tap: null, 3315 doubleTap: null, 3316 longTap: null, 3317 hold: null, 3318 triggerOnTouchEnd: !0, 3319 triggerOnTouchLeave: !1, 3320 allowPageScroll: "auto", 3321 fallbackToMouseEvents: !0,
3322 excludedElements: ".noSwipe", 3323 preventDefaultEvents: !0, 3324 }), 3325 (ae.fn.swipe.phases = { PHASE_START: Ce, PHASE_MOVE: Ee, PHASE_END: Ae, PHASE_CANCEL: ke }), 3326 (ae.fn.swipe.directions = { LEFT: le, RIGHT: ce, UP: ue, DOWN: fe, IN: de, OUT: he }), 3327 (ae.fn.swipe.pageScroll = { NONE: pe, HORIZONTAL: xe, VERTICAL: _e, AUTO: me }), 3328 (ae.fn.swipe.fingers = { ONE: 1, TWO: 2, THREE: 3, FOUR: 4, FIVE: 5, ALL: Se }); 3329 }), 3330 n.amdO.jQuery ? ((i = [n(609)]), void 0 === (r = "function" == typeof (r = o) ? r.apply(t, i) : r) || (e.exports = r)) : o(e.exports ? n(609) : jQuery); 3331 }, 3332 519: function (e, t) { 3333 var n; 3334 void 0 === 3335 (n = 3336 "function" == 3337 typeof (n = function () { 3338 "use strict"; 3339 var t = (function () { 3340 function i(e, t) { 3341 for (var n = 0; n < t.length; n++) { 3342 var i = t[n]; 3343 i.enumerable = i.enumerable || false; 3344 i.configurable = true; 3345 if ("value" in i) i.writable = true; 3346 Object.defineProperty(e, i.key, i); 3347 } 3348 } 3349 return function (e, t, n) { 3350 if (t) i(e.prototype, t); 3351 if (n) i(e, n); 3352 return e; 3353 }; 3354 })(); 3355 function i(e, t) { 3356 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 3357 } 3358 var S = undefined; 3359 if (typeof S === "undefined") S = { modules: [] }; 3360 var r = null; 3361 function s(e) { 3362 var t = e.getBoundingClientRect(); 3363 var n = {}; 3364 for (var i in t) n[i] = t[i]; 3365 try { 3366 if (e.ownerDocument !== document) { 3367 var r = e.ownerDocument.defaultView.frameElement; 3368 if (r) { 3369 var o = s(r); 3370 n.top += o.top; 3371 n.bottom += o.top; 3372 n.left += o.left; 3373 n.right += o.left; 3374 } 3375 } 3376 } catch (e) {} 3377 return n; 3378 } 3379 function c(e) { 3380 var t = getComputedStyle(e) || {}; 3381 var n = t.position; 3382 var i = []; 3383 if (n === "fixed") return [e]; 3384 var r = e; 3385 while ((r = r.parentNode) && r && r.nodeType === 1) { 3386 var o = undefined; 3387 try { 3388 o = getComputedStyle(r); 3389 } catch (e) {} 3390 if (typeof o === "undefined" || o === null) { 3391 i.push(r); 3392 return i; 3393 } 3394 var s = o; 3395 var a = s.overflow; 3396 var l = s.overflowX; 3397 var c = s.overflowY; 3398 if (/(auto|scroll|overlay)/.test(a + c + l)) if (n !== "absolute" || ["relative", "absolute", "fixed"].indexOf(o.position) >= 0) i.push(r); 3399 } 3400 i.push(e.ownerDocument.body); 3401 if (e.ownerDocument !== document) i.push(e.ownerDocument.defaultView); 3402 return i; 3403 } 3404 var o = (function () { 3405 var e = 0; 3406 return function () { 3407 return ++e; 3408 }; 3409 })(), 3410 a = {}, 3411 l = function e() { 3412 var t = r; 3413 if (!t || !document.body.contains(t)) { 3414 t = document.createElement("div"); 3415 t.setAttribute("data-tether-id", o()); 3416 _(t.style, { top: 0, left: 0, position: "absolute" }); 3417 document.body.appendChild(t); 3418 r = t; 3419 } 3420 var n = t.getAttribute("data-tether-id"); 3421 if (typeof a[n] === "undefined") { 3422 a[n] = s(t); 3423 k(function () { 3424 delete a[n]; 3425 }); 3426 } 3427 return a[n]; 3428 }; 3429 function u() { 3430 if (r) document.body.removeChild(r); 3431 r = null; 3432 } 3433 function T(e) { 3434 var t = undefined; 3435 if (e === document) { 3436 t = document; 3437 e = document.documentElement; 3438 } else t = e.ownerDocument; 3439 var n = t.documentElement; 3440 var i = s(e); 3441 var r = l(); 3442 i.top -= r.top; 3443 i.left -= r.left; 3444 if (typeof i.width === "undefined") i.width = document.body.scrollWidth - i.left - i.right; 3445 if (typeof i.height === "undefined") i.height = document.body.scrollHeight - i.top - i.bottom; 3446 i.top = i.top - n.clientTop; 3447 i.left = i.left - n.clientLeft; 3448 i.right = t.body.clientWidth - i.width - i.left; 3449 i.bottom = t.body.clientHeight - i.height - i.top; 3450 return i; 3451 } 3452 function C(e) { 3453 return e.offsetParent || document.documentElement; 3454 } 3455 var f = null; 3456 function E() { 3457 if (f) return f; 3458 var e = document.createElement("div"); 3459 e.style.width = "100%"; 3460 e.style.height = "200px"; 3461 var t = document.createElement("div"); 3462 _(t.style, { position: "absolute", top: 0, left: 0, pointerEvents: "none", visibility: "hidden", width: "200px", height: "150px", overflow: "hidden" }); 3463 t.appendChild(e); 3464 document.body.appendChild(t); 3465 var n = e.offsetWidth; 3466 t.style.overflow = "scroll"; 3467 var i = e.offsetWidth; 3468 if (n === i) i = t.clientWidth; 3469 document.body.removeChild(t); 3470 var r = n - i; 3471 f = { width: r, height: r }; 3472 return f; 3473 } 3474 function _() { 3475 var n = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; 3476 var e = []; 3477 Array.prototype.push.apply(e, arguments);
3478 e.slice(1).forEach(function (e) { 3479 if (e) for (var t in e) if ({}.hasOwnProperty.call(e, t)) n[t] = e[t]; 3480 }); 3481 return n; 3482 } 3483 function d(t, e) { 3484 if (typeof t.classList !== "undefined") 3485 e.split(" ").forEach(function (e) { 3486 if (e.trim()) t.classList.remove(e); 3487 }); 3488 else { 3489 var n = new RegExp("(^| )" + e.split(" ").join("|") + "( |$)", "gi"); 3490 var i = m(t).replace(n, " "); 3491 g(t, i); 3492 } 3493 } 3494 function h(t, e) { 3495 if (typeof t.classList !== "undefined") 3496 e.split(" ").forEach(function (e) { 3497 if (e.trim()) t.classList.add(e); 3498 }); 3499 else { 3500 d(t, e); 3501 var n = m(t) + (" " + e); 3502 g(t, n); 3503 } 3504 } 3505 function p(e, t) { 3506 if (typeof e.classList !== "undefined") return e.classList.contains(t); 3507 var n = m(e); 3508 return new RegExp("(^| )" + t + "( |$)", "gi").test(n); 3509 } 3510 function m(e) { 3511 if (e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString) return e.className.baseVal; 3512 return e.className; 3513 } 3514 function g(e, t) { 3515 e.setAttribute("class", t); 3516 } 3517 function A(t, n, e) { 3518 e.forEach(function (e) { 3519 if (n.indexOf(e) === -1 && p(t, e)) d(t, e); 3520 }); 3521 n.forEach(function (e) { 3522 if (!p(t, e)) h(t, e); 3523 }); 3524 } 3525 var n = [], 3526 k = function e(t) { 3527 n.push(t); 3528 }, 3529 O = function e() { 3530 var t = undefined; 3531 while ((t = n.pop())) t(); 3532 }, 3533 e = (function () { 3534 function e() { 3535 i(this, e); 3536 } 3537 t(e, [ 3538 { 3539 key: "on", 3540 value: function e(t, n, i) { 3541 var r = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; 3542 if (typeof this.bindings === "undefined") this.bindings = {}; 3543 if (typeof this.bindings[t] === "undefined") this.bindings[t] = []; 3544 this.bindings[t].push({ handler: n, ctx: i, once: r }); 3545 }, 3546 }, 3547 { 3548 key: "once", 3549 value: function e(t, n, i) { 3550 this.on(t, n, i, true); 3551 }, 3552 }, 3553 { 3554 key: "off", 3555 value: function e(t, n) { 3556 if (typeof this.bindings === "undefined" || typeof this.bindings[t] === "undefined") return; 3557 if (typeof n === "undefined") delete this.bindings[t]; 3558 else { 3559 var i = 0; 3560 while (i < this.bindings[t].length) 3561 if (this.bindings[t][i].handler === n) this.bindings[t].splice(i, 1); 3562 else ++i; 3563 } 3564 }, 3565 }, 3566 { 3567 key: "trigger", 3568 value: function e(t) { 3569 if (typeof this.bindings !== "undefined" && this.bindings[t]) { 3570 var n = 0; 3571 for (var i = arguments.length, r = Array(i > 1 ? i - 1 : 0), o = 1; o < i; o++) r[o - 1] = arguments[o]; 3572 while (n < this.bindings[t].length) { 3573 var s = this.bindings[t][n]; 3574 var a = s.handler; 3575 var l = s.ctx; 3576 var c = s.once; 3577 var u = l; 3578 if (typeof u === "undefined") u = this; 3579 a.apply(u, r); 3580 if (c) this.bindings[t].splice(n, 1); 3581 else ++n; 3582 } 3583 } 3584 }, 3585 }, 3586 ]); 3587 return e; 3588 })(); 3589 S.Utils = { 3590 getActualBoundingClientRect: s, 3591 getScrollParents: c, 3592 getBounds: T, 3593 getOffsetParent: C, 3594 extend: _, 3595 addClass: h, 3596 removeClass: d, 3597 hasClass: p, 3598 updateClasses: A, 3599 defer: k, 3600 flush: O, 3601 uniqueId: o, 3602 Evented: e, 3603 getScrollBarSize: E, 3604 removeUtilElements: u, 3605 }; 3606 var I = (function () { 3607 function n(e, t) { 3608 var n = []; 3609 var i = true; 3610 var r = false;
3611 var o = undefined; 3612 try { 3613 for (var s = e[Symbol.iterator](), a; !(i = (a = s.next()).done); i = true) { 3614 n.push(a.value); 3615 if (t && n.length === t) break; 3616 } 3617 } catch (e) { 3618 r = true; 3619 o = e; 3620 } finally { 3621 try { 3622 if (!i && s["return"]) s["return"](); 3623 } finally { 3624 if (r) throw o; 3625 } 3626 } 3627 return n; 3628 } 3629 return function (e, t) { 3630 if (Array.isArray(e)) return e; 3631 else if (Symbol.iterator in Object(e)) return n(e, t); 3632 else throw new TypeError("Invalid attempt to destructure non-iterable instance"); 3633 }; 3634 })(), 3635 t = (function () { 3636 function i(e, t) { 3637 for (var n = 0; n < t.length; n++) { 3638 var i = t[n]; 3639 i.enumerable = i.enumerable || false; 3640 i.configurable = true; 3641 if ("value" in i) i.writable = true; 3642 Object.defineProperty(e, i.key, i); 3643 } 3644 } 3645 return function (e, t, n) { 3646 if (t) i(e.prototype, t); 3647 if (n) i(e, n); 3648 return e; 3649 }; 3650 })(), 3651 y = function e(t, n, i) { 3652 var r = true; 3653 e: while (r) { 3654 var o = t, 3655 s = n, 3656 a = i; 3657 r = false; 3658 if (o === null) o = Function.prototype; 3659 var l = Object.getOwnPropertyDescriptor(o, s); 3660 if (l === undefined) { 3661 var c = Object.getPrototypeOf(o); 3662 if (c === null) return undefined; 3663 else { 3664 t = c; 3665 n = s; 3666 i = a; 3667 r = true; 3668 l = c = undefined; 3669 continue e; 3670 } 3671 } else if ("value" in l) return l.value; 3672 else { 3673 var u = l.get; 3674 if (u === undefined) return undefined; 3675 return u.call(a); 3676 } 3677 } 3678 }; 3679 function i(e, t) { 3680 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 3681 } 3682 function v(e, t) { 3683 if (typeof t !== "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t); 3684 e.prototype = Object.create(t && t.prototype, { c
3684onstructor: { value: e, enumerable: false, writable: true, configurable: true } }); 3685 if (t) Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t); 3686 } 3687 if (typeof S === "undefined") throw new Error("You must include the utils.js file before tether.js"); 3688 var b = S.Utils, 3689 c = b.getScrollParents, 3690 T = b.getBounds, 3691 C = b.getOffsetParent, 3692 _ = b.extend, 3693 h = b.addClass, 3694 d = b.removeClass, 3695 A = b.updateClasses, 3696 k = b.defer, 3697 O = b.flush, 3698 E = b.getScrollBarSize, 3699 u = b.removeUtilElements; 3700 function w(e, t) { 3701 var n = arguments.length <= 2 || arguments[2] === undefined ? 1 : arguments[2]; 3702 return e + n >= t && t >= e - n; 3703 } 3704 var x = (function () { 3705 if (typeof document === "undefined") return ""; 3706 var e = document.createElement("div"); 3707 var t = ["transform", "WebkitTransform", "OTransform", "MozTransform", "msTransform"]; 3708 for (var n = 0; n < t.length; ++n) { 3709 var i = t[n]; 3710 if (e.style[i] !== undefined) return i; 3711 } 3712 })(), 3713 P = [], 3714 D = function e() { 3715 P.forEach(function (e) { 3716 e.position(false); 3717 }); 3718 O(); 3719 }; 3720 function N() { 3721 if (typeof performance === "object" && typeof performance.now === "function") return performance.now(); 3722 return +new Date(); 3723 } 3724 (function () { 3725 var t = null; 3726 var n = null; 3727 var i = null; 3728 var r = function e() { 3729 if (typeof n !== "undefined" && n > 16) { 3730 n = Math.min(n - 16, 250); 3731 i = setTimeout(e, 250); 3732 return; 3733 } 3734 if (typeof t !== "undefined" && N() - t < 10) return; 3735 if (i != null) { 3736 clearTimeout(i); 3737 i = null; 3738 } 3739 t = N(); 3740 D(); 3741 n = N() - t; 3742 }; 3743 if (typeof window !== "undefined" && typeof window.addEventListener !== "undefined") 3744 ["resize", "scroll", "touchmove"].forEach(function (e) { 3745 window.addEventListener(e, r); 3746 }); 3747 })(); 3748 var j = { center: "center", left: "right", right: "left" }, 3749 B = { middle: "middle", top: "bottom", bottom: "top" }, 3750 F = { top: 0, left: 0, middle: "50%", center: "50%", bottom: "100%", right: "100%" }, 3751 L = function e(t, n) { 3752 var i = t.left; 3753 var r = t.top; 3754 if (i === "auto") i = j[n.left]; 3755 if (r === "auto") r = B[n.top]; 3756 return { left: i, top: r }; 3757 }, 3758 V = function e(t) { 3759 var n = t.left; 3760 var i = t.top; 3761 if (typeof F[t.left] !== "undefined") n = F[t.left]; 3762 if (typeof F[t.top] !== "undefined") i = F[t.top]; 3763 return { left: n, top: i }; 3764 }; 3765 function M() { 3766 var i = { top: 0, left: 0 }; 3767 for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 3768 t.forEach(function (e) { 3769 var t = e.top; 3770 var n = e.left; 3771 if (typeof t === "string") t = parseFloat(t, 10); 3772 if (typeof n === "string") n = parseFloat(n, 10); 3773 i.top += t; 3774 i.left += n; 3775 }); 3776 return i; 3777 } 3778 function W(e, t) { 3779 if (typeof e.left === "string" && e.left.indexOf("%") !== -1) e.left = (parseFloat(e.left, 10) / 100) * t.width; 3780 if (typeof e.top === "string" && e.top.indexOf("%") !== -1) e.top = (parseFloat(e.top, 10) / 100) * t.height; 3781 return e; 3782 } 3783 var H = function e(t) { 3784 var n = t.split(" "); 3785 var i = I(n, 2); 3786 var r = i[0]; 3787 var o = i[1]; 3788 return { top: r, left: o }; 3789 }, 3790 R = H, 3791 $ = (function (e) { 3792 v(n, e); 3793 function n(e) { 3794 var t = this; 3795 i(this, n); 3796 y(Object.getPrototypeOf(n.prototype), "constructor", this).call(this); 3797 this.position = this.position.bind(this); 3798 P.push(this); 3799 this.history = []; 3800 this.setOptions(e, false);
3801 S.modules.forEach(function (e) { 3802 if (typeof e.initialize !== "undefined") e.initialize.call(t); 3803 }); 3804 this.position(); 3805 } 3806 t(n, [ 3807 { 3808 key: "getClass", 3809 value: function e() { 3810 var t = arguments.length <= 0 || arguments[0] === undefined ? "" : arguments[0]; 3811 var n = this.options.classes; 3812 if (typeof n !== "undefined" && n[t]) return this.options.classes[t]; 3813 else if (this.options.classPrefix) return this.options.classPrefix + "-" + t; 3814 else return t; 3815 }, 3816 }, 3817 { 3818 key: "setOptions", 3819 value: function e(t) { 3820 var n = this; 3821 var i = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; 3822 var r = { offset: "0 0", targetOffset: "0 0", targetAttachment: "auto auto", classPrefix: "tether" }; 3823 this.options = _(r, t); 3824 var o = this.options; 3825 var s = o.element; 3826 var a = o.target; 3827 var l = o.targetModifier; 3828 this.element = s; 3829 this.target = a; 3830 this.targetModifier = l; 3831 if (this.target === "viewport") { 3832 this.target = document.body; 3833 this.targetModifier = "visible"; 3834 } else if (this.target === "scroll-handle") { 3835 this.target = document.body; 3836 this.targetModifier = "scroll-handle"; 3837 } 3838 ["element", "target"].forEach(function (e) { 3839 if (typeof n[e] === "undefined") throw new Error("Tether Error: Both element and target must be defined"); 3840 if (typeof n[e].jquery !== "undefined") n[e] = n[e][0]; 3841 else if (typeof n[e] === "string") n[e] = document.querySelector(n[e]); 3842 }); 3843 h(this.element, this.getClass("element")); 3844 if (!(this.options.addTargetClasses === false)) h(this.target, this.getClass("target")); 3845 if (!this.options.attachment) throw new Error("Tether Error: You must provide an attachment"); 3846 this.targetAttachment = R(this.options.targetAttachment); 3847 this.attachment = R(this.options.attachment); 3848 this.offset = H(this.options.offset); 3849 this.targetOffset = H(this.options.targetOffset); 3850 if (typeof this.scrollParents !== "undefined") this.disable(); 3851 if (this.targetModifier === "scroll-handle") this.scrollParents = [this.target]; 3852 else this.scrollParents = c(this.target); 3853 if (!(this.options.enabled === false)) this.enable(i); 3854 }, 3855 }, 3856 { 3857 key: "getTargetBounds", 3858 value: function e() { 3859 if (typeof this.targetModifier !== "undefined") { 3860 if (this.targetModifier === "visible") 3861 if (this.target === document.body) return { top: pageYOffset, left: pageXOffset, height: innerHe
3861ight, width: innerWidth }; 3862 else { 3863 var t = T(this.target); 3864 var n = { height: t.height, width: t.width, top: t.top, left: t.left }; 3865 n.height = Math.min(n.height, t.height - (pageYOffset - t.top)); 3866 n.height = Math.min(n.height, t.height - (t.top + t.height - (pageYOffset + innerHeight))); 3867 n.height = Math.min(innerHeight, n.height); 3868 n.height -= 2; 3869 n.width = Math.min(n.width, t.width - (pageXOffset - t.left)); 3870 n.width = Math.min(n.width, t.width - (t.left + t.width - (pageXOffset + innerWidth))); 3871 n.width = Math.min(innerWidth, n.width); 3872 n.width -= 2; 3873 if (n.top < pageYOffset) n.top = pageYOffset; 3874 if (n.left < pageXOffset) n.left = pageXOffset; 3875 return n; 3876 } 3877 else if (this.targetModifier === "scroll-handle") { 3878 var t = undefined; 3879 var i = this.target; 3880 if (i === document.body) { 3881 i = document.documentElement; 3882 t = { left: pageXOffset, top: pageYOffset, height: innerHeight, width: innerWidth }; 3883 } else t = T(i); 3884 var r = getComputedStyle(i); 3885 var o = i.scrollWidth > i.clientWidth || [r.overflow, r.overflowX].indexOf("scroll") >= 0 || this.target !== document.body; 3886 var s = 0; 3887 if (o) s = 15; 3888 var a = t.height - parseFloat(r.borderTopWidth) - parseFloat(r.borderBottomWidth) - s; 3889 var n = { width: 15, height: a * 0.975 * (a / i.scrollHeight), left: t.left + t.width - parseFloat(r.borderLeftWidth) - 15 }; 3890 var l = 0; 3891 if (a < 408 && this.target === document.body) l = -11e-5 * Math.pow(a, 2) - 0.00727 * a + 22.58; 3892 if (this.target !== document.body) n.height = Math.max(n.height, 24); 3893 var c = this.target.scrollTop / (i.scrollHeight - a); 3894 n.top = c * (a - n.height - l) + t.top + parseFloat(r.borderTopWidth); 3895 if (this.target === document.body) n.height = Math.max(n.height, 24); 3896 return n; 3897 } 3898 } else return T(this.target); 3899 }, 3900 }, 3901 { 3902 key: "clearCache", 3903 value: function e() { 3904 this._cache = {}; 3905 }, 3906 }, 3907 { 3908 key: "cache", 3909 value: function e(t, n) { 3910 if (typeof this._cache === "undefined") this._cache = {}; 3911 if (typeof this._cache[t] === "undefined") this._cache[t] = n.call(this); 3912 return this._cache[t]; 3913 }, 3914 }, 3915 { 3916 key: "enable", 3917 value: function e() { 3918 var t = this; 3919 var n = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; 3920 if (!(this.options.addTargetClasses === false)) h(this.target, this.getClass("enabled")); 3921 h(this.element, this.getClass("enabled")); 3922 this.enabled = true; 3923 this.scrollParents.forEac
3923h(function (e) { 3924 if (e !== t.target.ownerDocument) e.addEventListener("scroll", t.position); 3925 }); 3926 if (n) this.position(); 3927 }, 3928 }, 3929 { 3930 key: "disable", 3931 value: function e() { 3932 var t = this; 3933 d(this.target, this.getClass("enabled")); 3934 d(this.element, this.getClass("enabled")); 3935 this.enabled = false; 3936 if (typeof this.scrollParents !== "undefined") 3937 this.scrollParents.forEach(function (e) { 3938 e.removeEventListener("scroll", t.position); 3939 }); 3940 }, 3941 }, 3942 { 3943 key: "destroy", 3944 value: function e() { 3945 var n = this; 3946 this.disable(); 3947 P.forEach(function (e, t) { 3948 if (e === n) P.splice(t, 1); 3949 }); 3950 if (P.length === 0) u(); 3951 }, 3952 }, 3953 { 3954 key: "updateAttachClasses", 3955 value: function e(t, n) { 3956 var i = this; 3957 t = t || this.attachment; 3958 n = n || this.targetAttachment; 3959 var r = ["left", "top", "bottom", "right", "middle", "center"]; 3960 if (typeof this._addAttachClasses !== "undefined" && this._addAttachClasses.length) this._addAttachClasses.splice(0, this._addAttachClasses.length); 3961 if (typeof this._addAttachClasses === "undefined") this._addAttachClasses = []; 3962 var o = this._addAttachClasses; 3963 if (t.top) o.push(this.getClass("element-attached") + "-" + t.top); 3964 if (t.left) o.push(this.getClass("element-attached") + "-" + t.left); 3965 if (n.top) o.push(this.getClass("target-attached") + "-" + n.top); 3966 if (n.left) o.push(this.getClass("target-attached") + "-" + n.left); 3967 var s = []; 3968 r.forEach(function (e) { 3969 s.push(i.getClass("element-attached") + "-" + e); 3970 s.push(i.getClass("target-attached") + "-" + e); 3971 }); 3972 k(function () { 3973 if (!(typeof i._addAttachClasses !== "undefined")) return; 3974 A(i.element, i._addAttachClasses, s); 3975 if (!(i.options.addTargetClasses === false)) A(i.target, i._addAttachClasses, s); 3976 delete i._addAttachClasses; 3977 }); 3978 }, 3979 }, 3980 { 3981 key: "position", 3982 value: function e() { 3983 var a = this; 3984 var t = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; 3985 if (!this.enabled) return; 3986 this.clearCache(); 3987 var n = L(this.targetAttachment, this.attachment); 3988 this.updateAttachClasses(this.attachment, n); 3989 var i = this.cache("element-bounds", function () { 3990 return T(a.element); 3991 }); 3992 var r = i.width; 3993 var o = i.height; 3994 if (r === 0 && o === 0 && typeof this.lastSize !== "undefined") { 3995 var s = this.lastSize; 3996 r = s.width; 3997 o = s.height; 3998 } else this.lastSize = { width: r, height: o }; 3999 var l = this.cache("target-bounds", function () { 4000 return a.getTargetBounds(); 4001 }); 4002 var c = l; 4003 var u = W(V(this.attachment), { width: r, height: o }); 4004 var f = W(V(n), c); 4005 var d = W(this.offset, { width: r, height: o }); 4006 var h = W(this.targetOffset, c); 4007 u = M(u, d); 4008 f = M(f, h); 4009 var p = l.left + f.left - u.left; 4010 var m = l.top + f.top - u.top; 4011 for (var g = 0; g < S.modules.length; ++g) { 4012 var y = S.modules[g]; 4013 var v = y.position.call(this, { 4014 left: p, 4015 top: m, 4016 targetAttachment: n, 4017 targetPos: l, 4018 elementPos: i, 4019 offset: u, 4020 targetOffset: f, 4021 manualOffset: d, 4022 manualTargetOffset: h, 4023 scrollbarSize: _, 4024 attachment: this.attachment, 4025 }); 4026 if (v === false) return false;
4027 else if (typeof v === "undefined" || typeof v !== "object") continue; 4028 else { 4029 m = v.top; 4030 p = v.left; 4031 } 4032 } 4033 var b = { page: { top: m, left: p }, viewport: { top: m - pageYOffset, bottom: pageYOffset - m - o + innerHeight, left: p - pageXOffset, right: pageXOffset - p - r + innerWidth } }; 4034 var w = this.target.ownerDocument; 4035 var x = w.defaultView; 4036 var _ = undefined; 4037 if (x.innerHeight > w.documentElement.clientHeight) { 4038 _ = this.cache("scrollbar-size", E); 4039 b.viewport.bottom -= _.height; 4040 } 4041 if (x.innerWidth > w.documentElement.clientWidth) { 4042 _ = this.cache("scrollbar-size", E); 4043 b.viewport.right -= _.width; 4044 } 4045 if (["", "static"].indexOf(w.body.style.position) === -1 || ["", "static"].indexOf(w.body.parentElement.style.position) === -1) { 4046 b.page.bottom = w.body.scrollHeight - m - o; 4047 b.page.right = w.body.scrollWidth - p - r; 4048 } 4049 if (typeof this.options.optimizations !== "undefined" && this.options.optimizations.moveElement !== false && !(typeof this.targetModifier !== "undefined")) 4050 (function () { 4051 var e = a.cache("target-offsetparent", function () { 4052 return C(a.target); 4053 }); 4054 var t = a.cache("target-offsetparent-bounds", function () { 4055 return T(e); 4056 }); 4057 var n = getComputedStyle(e); 4058 var i = t; 4059 var r = {}; 4060 ["Top", "Left", "Bottom", "Right"].forEach(function (e) { 4061 r[e.toLowerCase()] = parseFloat(n["border" + e + "Width"]); 4062 }); 4063 t.right = w.body.scrollWidth - t.left - i.width + r.right; 4064 t.bottom = w.body.scrollHeight - t.top - i.height + r.bottom; 4065 if (b.page.top >= t.top + r.top && b.page.bottom >= t.bottom) 4066 if (b.page.left >= t.left + r.left && b.page.right >= t.right) { 4067 var o = e.scrollTop; 4068 var s = e.scrollLeft; 4069 b.offset = { top: b.page.top - t.top + o - r.top, left: b.page.left - t.left + s - r.left }; 4070 } 4071 })(); 4072 this.move(b); 4073 this.history.unshift(b); 4074 if (this.history.length > 3) this.history.pop(); 4075 if (t) O(); 4076 return true; 4077 }, 4078 }, 4079 { 4080 key: "move", 4081 value: function e(t) { 4082 var a = this; 4083 if (!(typeof this.element.parentNode !== "undefined")) return; 4084 var n = {}; 4085 for (var i in t) { 4086 n[i] = {}; 4087 for (var r in t[i]) { 4088 var o = false;
4089 for (var s = 0; s < this.history.length; ++s) { 4090 var l = this.history[s]; 4091 if (typeof l[i] !== "undefined" && !w(l[i][r], t[i][r])) { 4092 o = true; 4093 break; 4094 } 4095 } 4096 if (!o) n[i][r] = true; 4097 } 4098 } 4099 var c = { top: "", left: "", right: "", bottom: "" }; 4100 var u = function e(t, n) { 4101 var i = typeof a.options.optimizations !== "undefined"; 4102 var r = i ? a.options.optimizations.gpu : null; 4103 if (r !== false) { 4104 var o = undefined, 4105 s = undefined; 4106 if (t.top) { 4107 c.top = 0; 4108 o = n.top; 4109 } else { 4110 c.bottom = 0; 4111 o = -n.bottom; 4112 } 4113 if (t.left) { 4114 c.left = 0; 4115 s = n.left; 4116 } else { 4117 c.right = 0; 4118 s = -n.right; 4119 } 4120 if (typeof window.devicePixelRatio === "number" && devicePixelRatio % 1 === 0) { 4121 s = Math.round(s * devicePixelRatio) / devicePixelRatio; 4122 o = Math.round(o * devicePixelRatio) / devicePixelRatio; 4123 } 4124 c[x] = "translateX(" + s + "px) translateY(" + o + "px)"; 4125 if (x !== "msTransform") c[x] += " translateZ(0)"; 4126 } else { 4127 if (t.top) c.top = n.top + "px"; 4128 else c.bottom = n.bottom + "px"; 4129 if (t.left) c.left = n.left + "px"; 4130 else c.right = n.right + "px"; 4131 } 4132 }; 4133 var f = false;
4134 if ((n.page.top || n.page.bottom) && (n.page.left || n.page.right)) { 4135 c.position = "absolute"; 4136 u(n.page, t.page); 4137 } else if ((n.viewport.top || n.viewport.bottom) && (n.viewport.left || n.viewport.right)) { 4138 c.position = "fixed"; 4139 u(n.viewport, t.viewport); 4140 } else if (typeof n.offset !== "undefined" && n.offset.top && n.offset.left) 4141 (function () { 4142 c.position = "absolute"; 4143 var e = a.cache("target-offsetparent", function () { 4144 return C(a.target); 4145 }); 4146 if (C(a.element) !== e) 4147 k(function () { 4148 a.element.parentNode.removeChild(a.element); 4149 e.appendChild(a.element); 4150 }); 4151 u(n.offset, t.offset); 4152 f = true; 4153 })(); 4154 else { 4155 c.position = "absolute"; 4156 u({ top: true, left: true }, t.page); 4157 } 4158 if (!f) 4159 if (this.options.bodyElement) { 4160 if (this.element.parentNode !== this.options.bodyElement) this.options.bodyElement.appendChild(this.element); 4161 } else { 4162 var d = function e(t) { 4163 var n = t.ownerDocument; 4164 var i = n.fullscreenElement || n.webkitFullscreenElement || n.mozFullScreenElement || n.msFullscreenElement; 4165 return i === t; 4166 }; 4167 var h = true; 4168 var p = this.element.parentNode; 4169 while (p && p.nodeType === 1 && p.tagName !== "BODY" && !d(p)) { 4170 if (getComputedStyle(p).position !== "static") { 4171 h = false; 4172 break; 4173 } 4174 p = p.parentNode; 4175 } 4176 if (!h) { 4177 this.element.parentNode.removeChild(this.element); 4178 this.element.ownerDocument.body.appendChild(this.element); 4179 } 4180 } 4181 var m = {}; 4182 var g = false;
4183 for (var r in c) { 4184 var y = c[r]; 4185 var v = this.element.style[r]; 4186 if (v !== y) { 4187 g = true; 4188 m[r] = y; 4189 } 4190 } 4191 if (g) 4192 k(function () { 4193 _(a.element.style, m); 4194 a.trigger("repositioned"); 4195 }); 4196 }, 4197 }, 4198 ]); 4199 return n; 4200 })(e); 4201 ($.modules = []), (S.position = D); 4202 var q = _($, S); 4203 ("use strict"); 4204 var I = (function () { 4205 function n(e, t) { 4206 var n = []; 4207 var i = true; 4208 var r = false; 4209 var o = undefined; 4210 try { 4211 for (var s = e[Symbol.iterator](), a; !(i = (a = s.next()).done); i = true) { 4212 n.push(a.value); 4213 if (t && n.length === t) break; 4214 } 4215 } catch (e) { 4216 r = true; 4217 o = e; 4218 } finally { 4219 try { 4220 if (!i && s["return"]) s["return"](); 4221 } finally { 4222 if (r) throw o; 4223 } 4224 } 4225 return n; 4226 } 4227 return function (e, t) { 4228 if (Array.isArray(e)) return e; 4229 else if (Symbol.iterator in Object(e)) return n(e, t); 4230 else throw new TypeError("Invalid attempt to destructure non-iterable instance"); 4231 }; 4232 })(), 4233 b, 4234 T = (b = S.Utils).getBounds, 4235 _ = b.extend, 4236 A = b.updateClasses, 4237 k = b.defer, 4238 z = ["left", "top", "right", "bottom"]; 4239 function U(e, o) { 4240 if (o === "scrollParent") o = e.scrollParents[0]; 4241 else if (o === "window") o = [pageXOffset, pageYOffset, innerWidth + pageXOffset, innerHeight + pageYOffset]; 4242 if (o === document) o = o.documentElement; 4243 if (typeof o.nodeType !== "undefined") 4244 (function () { 4245 var e = o; 4246 var t = T(o); 4247 var n = t; 4248 var i = getComputedStyle(o); 4249 o = [n.left, n.top, t.width + n.left, t.height + n.top]; 4250 if (e.ownerDocument !== document) { 4251 var r = e.ownerDocument.defaultView; 4252 o[0] += r.pageXOffset; 4253 o[1] += r.pageYOffset; 4254 o[2] += r.pageXOffset; 4255 o[3] += r.pageYOffset; 4256 } 4257 z.forEach(function (e, t) { 4258 e = e[0].toUpperCase() + e.substr(1); 4259 if (e === "Top" || e === "Left") o[t] += parseFloat(i["border" + e + "Width"]); 4260 else o[t] -= parseFloat(i["border" + e + "Width"]); 4261 }); 4262 })(); 4263 return o; 4264 } 4265 S.modules.push({ 4266 position: function e(t) { 4267 var f = this; 4268 var d = t.top; 4269 var h = t.left; 4270 var p = t.targetAttachment; 4271 if (!this.options.constraints) return true; 4272 var n = this.cache("element-bounds", function () { 4273 return T(f.element); 4274 }); 4275 var m = n.height; 4276 var g = n.width; 4277 if (g === 0 && m === 0 && typeof this.lastSize !== "undefined") { 4278 var i = this.lastSize; 4279 g = i.width; 4280 m = i.height; 4281 } 4282 var r = this.cache("target-bounds", function () { 4283 return f.getTargetBounds(); 4284 }); 4285 var y = r.height; 4286 var v = r.width; 4287 var o = [this.getClass("pinned"), this.getClass("out-of-bounds")]; 4288 this.options.constraints.forEac
4288h(function (e) { 4289 var t = e.outOfBoundsClass; 4290 var n = e.pinnedClass; 4291 if (t) o.push(t); 4292 if (n) o.push(n); 4293 }); 4294 o.forEach(function (t) { 4295 ["left", "top", "right", "bottom"].forEach(function (e) { 4296 o.push(t + "-" + e); 4297 }); 4298 }); 4299 var b = []; 4300 var w = _({}, p); 4301 var x = _({}, this.attachment); 4302 this.options.constraints.forEach(function (e) { 4303 var t = e.to; 4304 var n = e.attachment; 4305 var i = e.pin; 4306 if (typeof n === "undefined") n = ""; 4307 var r = undefined, 4308 o = undefined; 4309 if (n.indexOf(" ") >= 0) { 4310 var s = n.split(" "); 4311 var a = I(s, 2); 4312 o = a[0]; 4313 r = a[1]; 4314 } else r = o = n; 4315 var l = U(f, t); 4316 if (o === "target" || o === "both") { 4317 if (d < l[1] && w.top === "top") { 4318 d += y; 4319 w.top = "bottom"; 4320 } 4321 if (d + m > l[3] && w.top === "bottom") { 4322 d -= y; 4323 w.top = "top"; 4324 } 4325 } 4326 if (o === "together") { 4327 if (w.top === "top") 4328 if (x.top === "bottom" && d < l[1]) { 4329 d += y; 4330 w.top = "bottom"; 4331 d += m; 4332 x.top = "top"; 4333 } else if (x.top === "top" && d + m > l[3] && d - (m - y) >= l[1]) { 4334 d -= m - y; 4335 w.top = "bottom"; 4336 x.top = "bottom"; 4337 } 4338 if (w.top === "bottom") 4339 if (x.top === "top" && d + m > l[3]) { 4340 d -= y; 4341 w.top = "top"; 4342 d -= m; 4343 x.top = "bottom"; 4344 } else if (x.top === "bottom" && d < l[1] && d + (m * 2 - y) <= l[3]) { 4345 d += m - y; 4346 w.top = "top"; 4347 x.top = "top"; 4348 } 4349 if (w.top === "middle") 4350 if (d + m > l[3] && x.top === "top") { 4351 d -= m; 4352 x.top = "bottom"; 4353 } else if (d < l[1] && x.top === "bottom") { 4354 d += m; 4355 x.top = "top"; 4356 } 4357 } 4358 if (r === "target" || r === "both") { 4359 if (h < l[0] && w.left === "left") { 4360 h += v; 4361 w.left = "right"; 4362 } 4363 if (h + g > l[2] && w.left === "right") { 4364 h -= v; 4365 w.left = "left"; 4366 } 4367 } 4368 if (r === "together") 4369 if (h < l[0] && w.left === "left") { 4370 if (x.left === "right") { 4371 h += v; 4372 w.left = "right"; 4373 h += g; 4374 x.left = "left"; 4375 } else if (x.left === "left") { 4376 h += v; 4377 w.left = "right"; 4378 h -= g; 4379 x.left = "right"; 4380 } 4381 } else if (h + g > l[2] && w.left === "right") { 4382 if (x.left === "left") { 4383 h -= v; 4384 w.left = "left"; 4385 h -= g; 4386 x.left = "right"; 4387 } else if (x.left === "right") { 4388 h -= v; 4389 w.left = "left"; 4390 h += g; 4391 x.left = "left"; 4392 } 4393 } else if (w.left === "center") 4394 if (h + g > l[2] && x.left === "left") { 4395 h -= g; 4396 x.left = "right"; 4397 } else if (h < l[0] && x.left === "right") { 4398 h += g; 4399 x.left = "left"; 4400 } 4401 if (o === "element" || o === "both") { 4402 if (d < l[1] && x.top === "bottom") { 4403 d += m; 4404 x.top = "top"; 4405 } 4406 if (d + m > l[3] && x.top === "top") { 4407 d -= m; 4408 x.top = "bottom"; 4409 } 4410 } 4411 if (r === "element" || r === "both") { 4412 if (h < l[0]) 4413 if (x.left === "right") { 4414 h += g; 4415 x.left = "left"; 4416 } else if (x.left === "center") { 4417 h += g / 2; 4418 x.left = "left"; 4419 } 4420 if (h + g > l[2]) 4421 if (x.left === "left") { 4422 h -= g; 4423 x.left = "right"; 4424 } else if (x.left === "center") { 4425 h -= g / 2; 4426 x.left = "right"; 4427 } 4428 } 4429 if (typeof i === "string") 4430 i = i.split(",").map(function (e) { 4431 return e.trim(); 4432 }); 4433 else if (i === true) i = ["top", "left", "right", "bottom"]; 4434 i = i || []; 4435 var c = []; 4436 var u = []; 4437 if (d < l[1]) 4438 if (i.indexOf("top") >= 0) { 4439 d = l[1]; 4440 c.push("top"); 4441 } else u.push("top"); 4442 if (d + m > l[3]) 4443 if (i.indexOf("bottom") >= 0) { 4444 d = l[3] - m; 4445 c.push("bottom"); 4446 } else u.push("bottom"); 4447 if (h < l[0]) 4448 if (i.indexOf("left") >= 0) { 4449 h = l[0]; 4450 c.push("left"); 4451 } else u.push("left"); 4452 if (h + g > l[2]) 4453 if (i.indexOf("right") >= 0) { 4454 h = l[2] - g; 4455 c.push("right"); 4456 } else u.push("right"); 4457 if (c.length) 4458 (function () { 4459 var t = undefined; 4460 if (typeof f.options.pinnedClass !== "undefined") t = f.options.pinnedClass; 4461 else t = f.getClass("pinned"); 4462 b.push(t);
4463 c.forEach(function (e) { 4464 b.push(t + "-" + e); 4465 }); 4466 })(); 4467 if (u.length) 4468 (function () { 4469 var t = undefined; 4470 if (typeof f.options.outOfBoundsClass !== "undefined") t = f.options.outOfBoundsClass; 4471 else t = f.getClass("out-of-bounds"); 4472 b.push(t); 4473 u.forEach(function (e) { 4474 b.push(t + "-" + e); 4475 }); 4476 })(); 4477 if (c.indexOf("left") >= 0 || c.indexOf("right") >= 0) x.left = w.left = false; 4478 if (c.indexOf("top") >= 0 || c.indexOf("bottom") >= 0) x.top = w.top = false; 4479 if (w.top !== p.top || w.left !== p.left || x.top !== f.attachment.top || x.left !== f.attachment.left) { 4480 f.updateAttachClasses(x, w); 4481 f.trigger("update", { attachment: x, targetAttachment: w }); 4482 } 4483 }); 4484 k(function () { 4485 if (!(f.options.addTargetClasses === false)) A(f.target, b, o); 4486 A(f.element, b, o); 4487 }); 4488 return { top: d, left: h }; 4489 }, 4490 }); 4491 var b, 4492 T = (b = S.Utils).getBounds, 4493 A = b.updateClasses, 4494 k = b.defer; 4495 S.modules.push({ 4496 position: function e(t) { 4497 var n = this; 4498 var i = t.top; 4499 var r = t.left; 4500 var o = this.cache("element-bounds", function () { 4501 return T(n.element); 4502 }); 4503 var s = o.height; 4504 var a = o.width; 4505 var l = this.getTargetBounds(); 4506 var c = i + s; 4507 var u = r + a; 4508 var f = []; 4509 if (i <= l.bottom && c >= l.top) 4510 ["left", "right"].forEach(function (e) { 4511 var t = l[e]; 4512 if (t === r || t === u) f.push(e); 4513 }); 4514 if (r <= l.right && u >= l.left) 4515 ["top", "bottom"].forEach(function (e) { 4516 var t = l[e]; 4517 if (t === i || t === c) f.push(e); 4518 }); 4519 var d = []; 4520 var h = []; 4521 var p = ["left", "top", "right", "bottom"]; 4522 d.push(this.getClass("abutted")); 4523 p.forEach(function (e) { 4524 d.push(n.getClass("abutted") + "-" + e); 4525 }); 4526 if (f.length) h.push(this.getClass("abutted")); 4527 f.forEach(function (e) { 4528 h.push(n.getClass("abutted") + "-" + e); 4529 }); 4530 k(function () { 4531 if (!(n.options.addTargetClasses === false)) A(n.target, h, d); 4532 A(n.element, h, d); 4533 }); 4534 return true; 4535 }, 4536 }); 4537 var I = (function () { 4538 function n(e, t) { 4539 var n = []; 4540 var i = true; 4541 var r = false;
4542 var o = undefined; 4543 try { 4544 for (var s = e[Symbol.iterator](), a; !(i = (a = s.next()).done); i = true) { 4545 n.push(a.value); 4546 if (t && n.length === t) break; 4547 } 4548 } catch (e) { 4549 r = true; 4550 o = e; 4551 } finally { 4552 try { 4553 if (!i && s["return"]) s["return"](); 4554 } finally { 4555 if (r) throw o; 4556 } 4557 } 4558 return n; 4559 } 4560 return function (e, t) { 4561 if (Array.isArray(e)) return e; 4562 else if (Symbol.iterator in Object(e)) return n(e, t); 4563 else throw new TypeError("Invalid attempt to destructure non-iterable instance"); 4564 }; 4565 })(); 4566 return ( 4567 S.modules.push({ 4568 position: function e(t) { 4569 var n = t.top; 4570 var i = t.left; 4571 if (!this.options.shift) return; 4572 var r = this.options.shift; 4573 if (typeof this.options.shift === "function") r = this.options.shift.call(this, { top: n, left: i }); 4574 var o = undefined, 4575 s = undefined; 4576 if (typeof r === "string") { 4577 r = r.split(" "); 4578 r[1] = r[1] || r[0]; 4579 var a = r; 4580 var l = I(a, 2); 4581 o = l[0]; 4582 s = l[1]; 4583 o = parseFloat(o, 10); 4584 s = parseFloat(s, 10); 4585 } else { 4586 o = r.top; 4587 s = r.left; 4588 } 4589 n += o; 4590 i += s; 4591 return { top: n, left: i }; 4592 }, 4593 }), 4594 q 4595 ); 4596 }) 4597 ? n.apply(t, []) 4598 : n) || (e.exports = n); 4599 }, 4600 5: (t, n, i) => { 4601 var r; 4602 !(function (t) { 4603 "use strict"; 4604 if (!t.jQuery) { 4605 var c = function (e, t) { 4606 return new c.fn.init(e, t); 4607 }; 4608 (c.isWindow = function (e) { 4609 return e && e === e.window; 4610 }), 4611 (c.type = function (e) { 4612 return e ? ("object" == typeof e || "function" == typeof e ? n[o.call(e)] || "object" : typeof e) : e + ""; 4613 }), 4614 (c.isArray = 4615 Array.isArray || 4616 function (e) { 4617 return "array" === c.type(e); 4618 }), 4619 (c.isPlainObject = function (e) { 4620 if (!e || "object" !== c.type(e) || e.nodeType || c.isWindow(e)) return !1; 4621 try { 4622 if (e.constructor && !i.call(e, "constructor") && !i.call(e.constructor.prototype, "isPrototypeOf")) return !1; 4623 } catch (e) { 4624 return !1; 4625 } 4626 for (var t in e); 4627 return void 0 === t || i.call(e, t); 4628 }), 4629 (c.each = function (e, t, n) { 4630 var i = 0, 4631 r = e.length, 4632 o = a(e); 4633 if (n) { 4634 if (o) for (; i < r && !1 !== t.apply(e[i], n); i++); 4635 else for (i in e) if (e.hasOwnProperty(i) && !1 === t.apply(e[i], n)) break; 4636 } else if (o) for (; i < r && !1 !== t.call(e[i], i, e[i]); i++); 4637 else for (i in e) if (e.hasOwnProperty(i) && !1 === t.call(e[i], i, e[i])) break; 4638 return e; 4639 }), 4640 (c.data = function (e, t, n) { 4641 if (void 0 === n) { 4642 var i = e[c.expando], 4643 i = i && r[i]; 4644 return void 0 === t ? i : i && t in i ? i[t] : void 0; 4645 } 4646 if (void 0 !== t) { 4647 e = e[c.expando] || (e[c.expando] = ++c.uuid); 4648 return (r[e] = r[e] || {}), (r[e][t] = n); 4649 } 4650 }), 4651 (c.removeData = function (e, t) { 4652 var e = e[c.expando], 4653 n = e && r[e]; 4654 n && 4655 (t 4656 ? c.each(t, function (e, t) { 4657 delete n[t]; 4658 }) 4659 : delete r[e]); 4660 }), 4661 (c.extend = function () { 4662 var e, 4663 t, 4664 n, 4665 i, 4666 r, 4667 o = arguments[0] || {}, 4668 s = 1, 4669 a = arguments.length, 4670 l = !1; 4671 for ("boolean" == typeof o && ((l = o), (o = arguments[s] || {}), s++), "object" != typeof o && "function" !== c.type(o) && (o = {}), s === a && ((o = this), s--); s < a; s++)
4672 if ((i = arguments[s])) 4673 for (n in i) 4674 i.hasOwnProperty(n) && 4675 ((r = o[n]), 4676 o !== (t = i[n]) && 4677 (l && t && (c.isPlainObject(t) || (e = c.isArray(t))) 4678 ? ((r = e ? ((e = !1), r && c.isArray(r) ? r : []) : r && c.isPlainObject(r) ? r : {}), (o[n] = c.extend(l, r, t))) 4679 : void 0 !== t && (o[n] = t))); 4680 return o; 4681 }), 4682 (c.queue = function (e, t, n) { 4683 function i(e, t) { 4684 t = t || []; 4685 return ( 4686 e && 4687 (a(Object(e)) 4688 ? (function (e, t) { 4689 for (var n = +t.length, i = 0, r = e.length; i < n; ) e[r++] = t[i++]; 4690 if (n != n) for (; void 0 !== t[i]; ) e[r++] = t[i++]; 4691 e.length = r; 4692 })(t, "string" == typeof e ? [e] : e) 4693 : [].push.call(t, e)), 4694 t 4695 ); 4696 } 4697 if (e) { 4698 var r = c.data(e, (t = (t || "fx") + "queue")); 4699 return n ? (!r || c.isArray(n) ? (r = c.data(e, t, i(n))) : r.push(n), r) : r || []; 4700 } 4701 }), 4702 (c.dequeue = function (e, r) { 4703 c.each(e.nodeType ? [e] : e, function (e, t) { 4704 r = r || "fx"; 4705 var n = c.queue(t, r), 4706 i = n.shift(); 4707 (i = "inprogress" === i ? n.shift() : i) && 4708 ("fx" === r && n.unshift("inprogress"), 4709 i.call(t, function () { 4710 c.dequeue(t, r); 4711 })); 4712 }); 4713 }), 4714 (c.fn = c.prototype = { 4715 init: function (e) { 4716 if (e.nodeType) return (this[0] = e), this; 4717 throw new Error("Not a DOM node."); 4718 }, 4719 offset: function () { 4720 var e = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : { top: 0, left: 0 }; 4721 return { top: e.top + (t.pageYOffset || document.scrollTop || 0) - (document.clientTop || 0), left: e.left + (t.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || 0) }; 4722 }, 4723 position: function () { 4724 var e = this[0], 4725 t = (function (e) { 4726 for (var t = e.offsetParent; t && "html" !== t.nodeName.toLowerCase() && t.style && "static" === t.style.position; ) t = t.offsetParent; 4727 return t || document; 4728 })(e), 4729 n = this.offset(), 4730 i = /^(?:body|html)$/i.test(t.nodeName) ? { top: 0, left: 0 } : c(t).offset(); 4731 return ( 4732 (n.top -= parseFloat(e.style.marginTop) || 0), 4733 (n.left -= parseFloat(e.style.marginLeft) || 0), 4734 t.style && ((i.top += parseFloat(t.style.borderTopWidth) || 0), (i.left += parseFloat(t.style.borderLeftWidth) || 0)), 4735 { top: n.top - i.top, left: n.left - i.left } 4736 ); 4737 }, 4738 }); 4739 var r = {}; 4740 (c.expando = "velocity" + new Date().getTime()), (c.uuid = 0); 4741 for (var n = {}, i = n.hasOwnProperty, o = n.toString, e = "Boolean Number String Function Array Date RegExp Object Error".split(" "), s = 0; s < e.length; s++) n["[object " + e[s] + "]"] = e[s].toLowerCase(); 4742 (c.fn.init.prototype = c.fn), (t.Velocity = { Utilities: c }); 4743 } 4744 function a(e) { 4745 var t = e.length, 4746 n = c.type(e); 4747 return "function" !== n && !c.isWindow(e) && (!(1 !== e.
4747nodeType || !t) || "array" === n || 0 === t || ("number" == typeof t && 0 < t && t - 1 in e)); 4748 } 4749 })(window), 4750 (function (e) { 4751 "use strict"; 4752 "object" == typeof t.exports ? (t.exports = e()) : void 0 === (r = "function" == typeof (r = e) ? r.call(n, i, n, t) : r) || (t.exports = r); 4753 })(function () { 4754 "use strict"; 4755 return (function (e, H, R, $) { 4756 var i, 4757 t, 4758 T = (function () { 4759 if (R.documentMode) return R.documentMode; 4760 for (var e = 7; 4 < e; e--) { 4761 var t = R.createElement("div"); 4762 if (((t.innerHTML = "\x3c!--[if IE " + e + "]><span></span><![endif]--\x3e"), t.getElementsByTagName("span").length)) return (t = null), e; 4763 } 4764 return $; 4765 })(), 4766 n = 4767 ((i = 0), 4768 H.webkitRequestAnimationFrame || 4769 H.mozRequestAnimationFrame || 4770 function (e) { 4771 var t = new Date().getTime(), 4772 n = Math.max(0, 16 - (t - i)); 4773 return ( 4774 (i = t + n), 4775 setTimeout(function () { 4776 e(t + n); 4777 }, n) 4778 ); 4779 }), 4780 C = 4781 ("function" != typeof (o = H.performance || {}).now && 4782 ((t = o.timing && o.timing.navigationStart ? o.timing.navigationStart : new Date().getTime()), 4783 (o.now = function () { 4784 return new Date().getTime() - t; 4785 })), 4786 o); 4787 function q() { 4788 return Array.prototype.includes 4789 ? function (e, t) { 4790 return e.includes(t); 4791 } 4792 : Array.prototype.indexOf 4793 ? function (e, t) { 4794 return 0 <= e.indexOf(t); 4795 } 4796 : function (e, t) { 4797 for (var n = 0; n < e.length; n++) if (e[n] === t) return !0; 4798 return !1; 4799 }; 4800 } 4801 var r = (function () { 4802 var a = Array.prototype.slice; 4803 try { 4804 return a.call(R.documentElement), a; 4805 } catch (e) { 4806 return function (e, t) { 4807 var n = this.length; 4808 if (("number" != typeof e && (e = 0), "number" != typeof t && (t = n), this.slice)) return a.call(this, e, t); 4809 var i, 4810 r = [], 4811 o = 0 <= e ? e : Math.max(0, n + e), 4812 s = (t < 0 ? n + t : Math.min(t, n)) - o; 4813 if (0 < s) 4814 if (((r = new Array(s)), this.charAt)) for (i = 0; i < s; i++) r[i] = this.charAt(o + i); 4815 else for (i = 0; i < s; i++) r[i] = this[o + i]; 4816 return r; 4817 }; 4818 } 4819 })(); 4820 function g(e) { 4821 return U.isWrapped(e) ? (e = r.call(e)) : U.isNode(e) && (e = [e]), e; 4822 } 4823 var z, 4824 U = { 4825 isNumber: function (e) { 4826 return "number" == typeof e; 4827 }, 4828 isString: function (e) { 4829 return "string" == typeof e; 4830 }, 4831 isArray: 4832 Array.isArray || 4833 function (e) { 4834 return "[object Array]" === Object.prototype.toString.call(e); 4835 }, 4836 isFunction: function (e) { 4837 return "[object Function]" === Object.prototype.toString.call(e); 4838 }, 4839 isNode: function (e) { 4840 return e && e.nodeType; 4841 }, 4842 isWrapped: function (e) { 4843 return e && e !== H && U.isNumber(e.length) && !U.isString(e) && !U.isFunction(e) && !U.isNode(e) && (0 === e.length || U.isNode(e[0])); 4844 }, 4845 isSVG: function (e) { 4846 return H.SVGElement && e instanceof H.SVGElement; 4847 }, 4848 isEmptyObject: function (e) { 4849 for (var t in e) if (e.hasOwnProperty(t)) return !1; 4850 return !0; 4851 }, 4852 }, 4853 o = !1; 4854 if ((e.fn && e.fn.jquery ? ((z = e), (o = !0)) : (z = H.Velocity.Utilities), T <= 8 && !o)) throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity."); 4855 if (!(T <= 7)) { 4856 var s = "swing", 4857 Q = { 4858 State: { 4859 isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), 4860 isAndroid: /Android/i.test(navigator.userAgent), 4861 isGingerbread: /Android 2\.3\.[3-7]/i.test(navigator.userAgent), 4862 isChrome: H.chrome, 4863 isFirefox: /Firefox/i.test(navigator.userAgent), 4864 prefixElement: R.createElement("div"), 4865 prefixMatches: {}, 4866 scrollAnchor: null, 4867 scrollPropertyLeft: null, 4868 scrollPropertyTop: null, 4869 isTicking: !1, 4870 calls: [], 4871 delayedElements: { count: 0 }, 4872 }, 4873 CSS: {}, 4874 Utilities: z, 4875 Redirects: {}, 4876 Easings: {}, 4877 Promise: H.Promise, 4878 defaults: { queue: "", duration: 400, easing: s, begin: $, complete: $, progress: $, display: $, visibility: $, loop: !1, delay: !1, mobileHA: !0, _cacheValues: !0, promiseRe
4878jectEmpty: !0 }, 4879 init: function (e) { 4880 z.data(e, "velocity", { isSVG: U.isSVG(e), isAnimating: !1, computedStyle: null, tweensContainer: null, rootPropertyValueCache: {}, transformCache: {} }); 4881 }, 4882 hook: null, 4883 mock: !1, 4884 version: { major: 1, minor: 5, patch: 0 }, 4885 debug: !1, 4886 timestamp: !0, 4887 pauseAll: function (n) { 4888 var i = new Date().getTime(); 4889 z.each(Q.State.calls, function (e, t) { 4890 if (t) { 4891 if (n !== $ && (t[2].queue !== n || !1 === t[2].queue)) return !0; 4892 t[5] = { resume: !1 }; 4893 } 4894 }), 4895 z.each(Q.State.delayedElements, function (e, t) { 4896 t && v(t, i); 4897 }); 4898 }, 4899 resumeAll: function (n) { 4900 var e = new Date().getTime(); 4901 z.each(Q.State.calls, function (e, t) { 4902 if (t) { 4903 if (n !== $ && (t[2].queue !== n || !1 === t[2].queue)) return !0; 4904 t[5] && (t[5].resume = !0); 4905 } 4906 }), 4907 z.each(Q.State.delayedElements, function (e, t) { 4908 t && b(t); 4909 }); 4910 }, 4911 }; 4912 H.pageYOffset !== $ 4913 ? ((Q.State.scrollAnchor = H), (Q.State.scrollPropertyLeft = "pageXOffset"), (Q.State.scrollPropertyTop = "pageYOffset")) 4914 : ((Q.State.scrollAnchor = R.documentElement || R.body.parentNode || R.body), (Q.State.scrollPropertyLeft = "scrollLeft"), (Q.State.scrollPropertyTop = "scrollTop")); 4915 var a = function e(t, n, i) { 4916 var r, 4917 o, 4918 s, 4919 a, 4920 l, 4921 c, 4922 u, 4923 f, 4924 d, 4925 h, 4926 p = { x: -1, v: 0, tension: null, friction: null }, 4927 m = [0], 4928 g = 0; 4929 for ( 4930 t = parseFloat(t) || 500, n = parseFloat(n) || 20, i = i || null, p.tension = t, p.friction = n, o = (r = null !== i) ? ((g = e(t, n)) / i) * 0.016 : 0.016; 4931 (l = o), 4932 (d = h = d = f = u = c = void 0), 4933 (c = { dx: (a = s || p).v, dv: w(a) }), 4934 (u = x(a, 0.5 * l, c)), 4935 (f = x(a, 0.5 * l, u)), 4936 (d = x(a, l, f)), 4937 (h = (1 / 6) * (c.dx + 2 * (u.dx + f.dx) + d.dx)), 4938 (d = (1 / 6) * (c.dv + 2 * (u.dv + f.dv) + d.dv)), 4939 (a.x = a.x + h * l), 4940 (a.v = a.v + d * l), 4941 m.push(1 + (s = a).x), 4942 (g += 16), 4943 1e-4 < Math.abs(s.x) && 1e-4 < Math.abs(s.v); 4944 4945 ); 4946 return r 4947 ? function (e) { 4948 return m[(e * (m.length - 1)) | 0]; 4949 } 4950 : g; 4951 }; 4952 (Q.Easings = { 4953 linear: function (e) { 4954 return e; 4955 }, 4956 swing: function (e) { 4957 return 0.5 - Math.cos(e * Math.PI) / 2; 4958 }, 4959 spring: function (e) { 4960 return 1 - Math.cos(4.5 * e * Math.PI) * Math.exp(6 * -e); 4961 }, 4962 }), 4963 z.each( 4964 [ 4965 ["ease", [0.25, 0.1, 0.25, 1]], 4966 ["ease-in", [0.42, 0, 1, 1]], 4967 ["ease-out", [0, 0, 0.58, 1]], 4968 ["ease-in-out", [0.42, 0, 0.58, 1]], 4969 ["easeInSine", [0.47, 0, 0.745, 0.715]], 4970 ["easeOutSine", [0.39, 0.575, 0.565, 1]], 4971 ["easeInOutSine", [0.445, 0.05, 0.55, 0.95]], 4972 ["easeInQuad", [0.55, 0.085, 0.68, 0.53]], 4973 ["easeOutQuad", [0.25, 0.46, 0.45, 0.94]], 4974 ["easeInOutQuad", [0.45
49745, 0.03, 0.515, 0.955]], 4975 ["easeInCubic", [0.55, 0.055, 0.675, 0.19]], 4976 ["easeOutCubic", [0.215, 0.61, 0.355, 1]], 4977 ["easeInOutCubic", [0.645, 0.045, 0.355, 1]], 4978 ["easeInQuart", [0.895, 0.03, 0.685, 0.22]], 4979 ["easeOutQuart", [0.165, 0.84, 0.44, 1]], 4980 ["easeInOutQuart", [0.77, 0, 0.175, 1]], 4981 ["easeInQuint", [0.755, 0.05, 0.855, 0.06]], 4982 ["easeOutQuint", [0.23, 1, 0.32, 1]], 4983 ["easeInOutQuint", [0.86, 0, 0.07, 1]], 4984 ["easeInExpo", [0.95, 0.05, 0.795, 0.035]], 4985 ["easeOutExpo", [0.19, 1, 0.22, 1]], 4986 ["easeInOutExpo", [1, 0, 0, 1]], 4987 ["easeInCirc", [0.6, 0.04, 0.98, 0.335]], 4988 ["easeOutCirc", [0.075, 0.82, 0.165, 1]], 4989 ["easeInOutCirc", [0.785, 0.135, 0.15, 0.86]], 4990 ], 4991 function (e, t) { 4992 Q.Easings[t[0]] = l.apply(null, t[1]); 4993 } 4994 ); 4995 var Y = (Q.CSS = { 4996 RegEx: { isHex: /^#([A-f\d]{3}){1,2}$/i, valueUnwrap: /^[A-z]+\((.*)\)$/i, wrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/, valueSplit: /([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi }, 4997 Lists: { 4998 colors: ["fill", "stroke", "stopColor", "color", "backgroundColor", "borderColor", "borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor", "outlineColor"], 4999 transformsBase: ["translateX", "translateY", "scale", "scaleX", "scaleY", "skewX", "skewY", "rotateZ"], 5000 transforms3D: ["transformPerspective", "translateZ", "scaleZ", "rotateX", "rotateY"], 5001 units: ["%", "em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "Q", "in", "pc", "pt", "px", "deg", "grad", "rad", "turn", "s", "ms"], 5002 colorNames: { 5003 aliceblue: "240,248,255", 5004 antiquewhite: "250,235,215", 5005 aquamarine: "127,255,212", 5006 aqua: "0,255,255", 5007 azure: "240,255,255", 5008 beige: "245,245,220", 5009 bisque: "255,228,196", 5010 black: "0,0,0", 5011 blanchedalmond: "255,235,205", 5012 blueviolet: "138,43,226", 5013 blue: "0,0,255", 5014 brown: "165,42,42", 5015 burlywood: "222,184,135", 5016 cadetblue: "95,158,160", 5017 chartreuse: "127,255,0", 5018 chocolate: "210,105,30", 5019 coral: "255,127,80", 5020 cornflowerblue: "100,149,237", 5021 cornsilk: "255,248,220", 5022 crimson: "220,20,60", 5023 cyan: "0,255,255", 5024 darkblue: "0,0,139", 5025 darkcyan: "0,139,139", 5026 darkgoldenrod: "184,134,11", 5027 darkgray: "169,169,169", 5028 darkgrey: "169,169,169", 5029 darkgreen: "0,100,0", 5030 darkkhaki: "189,183,107", 5031 darkmagenta: "139,0,139", 5032 darkolivegreen: "85,107,47", 5033 darkorange: "255,140,0", 5034 darkorchid: "153,50,204", 5035 darkred: "139,0,0", 5036 darksalmon: "233,150,122", 5037 darkseagreen: "143,188,143", 5038 darkslateblue: "72,61,139", 5039 darkslategray: "47,79,79", 5040 darkturquoise: "0,206,209", 5041 darkviolet: "148,0,211", 5042 deeppink: "255,20,147", 5043 deepskyblue: "0,191,255", 5044 dimgray: "105,105,105", 5045 dimgrey: "105,105,105", 5046 dodgerblue: "30,144,255", 5047 firebrick: "178,34,34", 5048 floralwhite: "255,250,240", 5049 forestgreen: "34,139,34", 5050 fuchsia: "255,0,255", 5051 gainsboro: "220,220,220", 5052 ghostwhite: "248,248,255", 5053 gold: "255,215,0", 5054 goldenrod: "218,165,32", 5055 gray: "128,128,128", 5056 grey: "128,128,128", 5057 greenyellow: "173,255,47", 5058 green: "0,128,0", 5059 honeydew: "240,255,240", 5060 hotpink: "255,105,180", 5061 indianred: "205,92,92", 5062 indigo: "75,0,130", 5063 ivory: "255,255,240", 5064 khaki: "240,230,140", 5065 lavenderblush: "255,240,245", 5066 lavender: "230,230,250", 5067 lawngreen: "124,252,0", 5068 lemonchiffon: "255,250,205", 5069 lightblue: "173,216,230", 5070 lightcoral: "240,128,128", 5071 lightcyan: "224,255,255", 5072 lightgoldenrodyellow: "250,250,210", 5073 lightgray: "211,211,211", 5074 lightgrey: "211,211,211", 5075 lightgreen: "144,238,144", 5076 lightpink: "255,182,193", 5077 lightsalmon: "255,160,122", 5078 lightseagreen: "32,178,170", 5079 lightskyblue: "135,206,250", 5080 lightslategray: "119,136,153", 5081 lightsteelblue: "176,196,222", 5082 lightyellow: "255,255,224", 5083 limegreen: "50,205,50", 5084 lime: "0,255,0", 5085 linen: "250,240,230", 5086 magenta: "255,0,255", 5087 maroon: "128,0,0", 5088 mediumaquamarine: "102,205,170", 5089 mediumblue: "0,0,205", 5090 mediumorchid: "186,85,211", 5091 mediumpurple: "147,112,219", 5092 mediumseagreen: "60,179,113", 5093 mediumslateblue: "123,104,238", 5094 mediumspringgreen: "0,250,154", 5095 mediumturquoise: "72,209,204", 5096 mediumvioletred: "199,21,133", 5097 midnightblue: "25,25,112", 5098 mintcream: "245,255,250", 5099 mistyrose: "255,228,225", 5100 moccasin: "255,228,181", 5101 navajowhite: "255,222,173", 5102 navy: "0,0,128", 5103 oldlace: "253,245,230", 5104 olivedrab: "107,142,35", 5105 olive: "128,128,0", 5106 orangered: "255,69,0", 5107 orange: "255,165,0", 5108 orchid: "218,112,214", 5109 palegoldenrod: "238,232,170", 5110 palegreen: "152,251,152", 5111 paleturquoise: "175,238,238", 5112 palevioletred: "219,112,147",
5113 papayawhip: "255,239,213", 5114 peachpuff: "255,218,185", 5115 peru: "205,133,63", 5116 pink: "255,192,203", 5117 plum: "221,160,221", 5118 powderblue: "176,224,230", 5119 purple: "128,0,128", 5120 red: "255,0,0", 5121 rosybrown: "188,143,143", 5122 royalblue: "65,105,225", 5123 saddlebrown: "139,69,19", 5124 salmon: "250,128,114", 5125 sandybrown: "244,164,96", 5126 seagreen: "46,139,87", 5127 seashell: "255,245,238", 5128 sienna: "160,82,45", 5129 silver: "192,192,192", 5130 skyblue: "135,206,235", 5131 slateblue: "106,90,205", 5132 slategray: "112,128,144", 5133 snow: "255,250,250", 5134 springgreen: "0,255,127", 5135 steelblue: "70,130,180", 5136 tan: "210,180,140", 5137 teal: "0,128,128", 5138 thistle: "216,191,216", 5139 tomato: "255,99,71", 5140 turquoise: "64,224,208", 5141 violet: "238,130,238", 5142 wheat: "245,222,179", 5143 whitesmoke: "245,245,245", 5144 white: "255,255,255", 5145 yellowgreen: "154,205,50", 5146 yellow: "255,255,0", 5147 }, 5148 }, 5149 Hooks: { 5150 templates: { 5151 textShadow: ["Color X Y Blur", "black 0px 0px 0px"], 5152 boxShadow: ["Color X Y Blur Spread", "black 0px 0px 0px 0px"], 5153 clip: ["Top Right Bottom Left", "0px 0px 0px 0px"], 5154 backgroundPosition: ["X Y", "0% 0%"], 5155 transformOrigin: ["X Y Z", "50% 50% 0px"], 5156 perspectiveOrigin: ["X Y", "50% 50%"], 5157 }, 5158 registered: {}, 5159 register: function () { 5160 for (var e, t, n, i, r, o = 0; o < Y.Lists.colors.length; o++) { 5161 var s = "color" === Y.Lists.colors[o] ? "0 0 0 1" : "255 255 255 1"; 5162 Y.Hooks.templates[Y.Lists.colors[o]] = ["Red Green Blue Alpha", s]; 5163 } 5164 if (T) 5165 for (e in Y.Hooks.templates) 5166 Y.Hooks.templates.hasOwnProperty(e) && 5167 ((n = (t = Y.Hooks.templates[e])[0].split(" ")), 5168 (i = t[1].match(Y.RegEx.valueSplit)), 5169 "Color" === n[0] && (n.push(n.shift()), i.push(i.shift()), (Y.Hooks.templates[e] = [n.join(" "), i.join(" ")]))); 5170 for (e in Y.Hooks.templates) 5171 if (Y.Hooks.templates.hasOwnProperty(e)) for (var a in (n = (t = Y.Hooks.templates[e])[0].split(" "))) n.hasOwnProperty(a) && ((r = e + n[a]), (Y.Hooks.registered[r] = [e, a])); 5172 }, 5173 getRoot: function (e) { 5174 var t = Y.Hooks.registered[e]; 5175 return t ? t[0] : e; 5176 }, 5177 getUnit: function (e, t) { 5178 t = (e.substr(t || 0, 5).match(/^[a-z%]+/) || [])[0] || ""; 5179 return t && q(Y.Lists.units) ? t : ""; 5180 }, 5181 fixColors: function (e) { 5182 return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g, function (e, t, n) { 5183 return Y.Lists.colorNames.hasOwnProperty(n) ? (t || "rgba(") + Y.Lists.colorNames[n] + (t ? "" : ",1)") : t + n; 5184 }); 5185 }, 5186 cleanRootPropertyValue: function (e, t) { 5187 return Y.RegEx.valueUnwrap.test(t) && (t = t.match(Y.RegEx.valueUnwrap
5187)[1]), (t = Y.Values.isCSSNullValue(t) ? Y.Hooks.templates[e][1] : t); 5188 }, 5189 extractValue: function (e, t) { 5190 var n = Y.Hooks.registered[e]; 5191 if (n) { 5192 (e = n[0]), (n = n[1]); 5193 return (t = Y.Hooks.cleanRootPropertyValue(e, t)).toString().match(Y.RegEx.valueSplit)[n]; 5194 } 5195 return t; 5196 }, 5197 injectValue: function (e, t, n) { 5198 var i = Y.Hooks.registered[e]; 5199 if (i) { 5200 (e = i[0]), (i = i[1]); 5201 return ((e = (n = Y.Hooks.cleanRootPropertyValue(e, n)).toString().match(Y.RegEx.valueSplit))[i] = t), e.join(" "); 5202 } 5203 return n; 5204 }, 5205 }, 5206 Normalizations: { 5207 registered: { 5208 clip: function (e, t, n) { 5209 switch (e) { 5210 case "name": 5211 return "clip"; 5212 case "extract": 5213 var i = !Y.RegEx.wrappedValueAlreadyExtracted.test(n) && (i = n.toString().match(Y.RegEx.valueUnwrap)) ? i[1].replace(/,(\s+)?/g, " ") : n; 5214 return i; 5215 case "inject": 5216 return "rect(" + n + ")"; 5217 } 5218 }, 5219 blur: function (e, t, n) { 5220 switch (e) { 5221 case "name": 5222 return Q.State.isFirefox ? "filter" : "-webkit-filter"; 5223 case "extract": 5224 var i, 5225 r = parseFloat(n); 5226 return (r = !r && 0 !== r ? ((i = n.toString().match(/blur\(([0-9]+[A-z]+)\)/i)) ? i[1] : 0) : r); 5227 case "inject": 5228 return parseFloat(n) ? "blur(" + n + ")" : "none"; 5229 } 5230 }, 5231 opacity: function (e, t, n) { 5232 if (T <= 8) 5233 switch (e) { 5234 case "name": 5235 return "filter"; 5236 case "extract": 5237 var i = n.toString().match(/alpha\(opacity=(.*)\)/i); 5238 return (n = i ? i[1] / 100 : 1); 5239 case "inject": 5240 return (t.style.zoom = 1) <= parseFloat(n) ? "" : "alpha(opacity=" + parseInt(100 * parseFloat(n), 10) + ")"; 5241 } 5242 else 5243 switch (e) { 5244 case "name": 5245 return "opacity"; 5246 case "extract": 5247 case "inject": 5248 return n; 5249 } 5250 }, 5251 }, 5252 register: function () { 5253 (T && !(9 < T)) || Q.State.isGingerbread || (Y.Lists.transformsBase = Y.Lists.transformsBase.concat(Y.Lists.transforms3D)); 5254 for (var e = 0; e < Y.Lists.transformsBase.length; e++) 5255 !(function () { 5256 var r = Y.Lists.transformsBase[e]; 5257 Y.Normalizations.registered[r] = function (e, t, n) { 5258 switch (e) { 5259 case "name": 5260 return "transform"; 5261 case "extract": 5262 return K(t) === $ || K(t).transformCache[r] === $ ? (/^scale/i.test(r) ? 1 : 0) : K(t).transformCache[r].replace(/[()]/g, ""); 5263 case "inject": 5264 var i = !1; 5265 switch (r.substr(0, r.length - 1)) { 5266 case "translate": 5267 i = !/(%|px|em|rem|vw|vh|\d)$/i.test(n); 5268 break; 5269 case "scal": 5270 case "scale": 5271 Q.State.isAndroid && K(t).transformCache[r] === $ && n < 1 && (n = 1), (i = !/(\d)$/i.test(n)); 5272 break; 5273 case "skew": 5274 case "rotate": 5275 i = !/(deg|\d)$/i.test(n); 5276 } 5277 return i || (K(t).transformCache[r] = "(" + n + ")"), K(t).transformCache[r]; 5278 } 5279 }; 5280 })(); 5281 for (var t = 0; t < Y.Lists.colors.length; t++) 5282 !(function () { 5283 var o = Y.Lists.colors[t]; 5284 Y.Normalizations.registered[o] = function (e, t, n) { 5285 switch (e) { 5286 case "name": 5287 return o; 5288 case "extract": 5289 var i, 5290 r = Y.RegEx.wrappedValueAlreadyExtracted.test(n) 5291 ? n 5292 : ((i = { black: "rgb(0, 0, 0)", blue: "rgb(0, 0, 255)", gray: "rgb(128, 128, 128)", green: "rgb(0, 128, 0)", red: "rgb(255, 0, 0)", white: "rgb(255, 255, 255)" }), 5293 /^[A-z]+$/i.test(n) 5294 ? (r = i[n] !== $ ? i[n] : i.black) 5295 : Y.RegEx.isHex.test(n) 5296 ? (r = "rgb(" + Y.Values.hexToRgb(n).join(" ") + ")") 5297 : /^rgba?\(/i.test(n) || (r = i.black), 5298 (r || n) 5299 .toString() 5300 .match(Y.RegEx.valueUnwrap
5300)[1] 5301 .replace(/,(\s+)?/g, " ")); 5302 return (!T || 8 < T) && 3 === r.split(" ").length && (r += " 1"), r; 5303 case "inject": 5304 return /^rgb/.test(n) 5305 ? n 5306 : (T <= 8 ? 4 === n.split(" ").length && (n = n.split(/\s+/).slice(0, 3).join(" ")) : 3 === n.split(" ").length && (n += " 1"), 5307 (T <= 8 ? "rgb" : "rgba") + "(" + n.replace(/\s+/g, ",").replace(/\.(\d)+(?=,)/g, "") + ")"); 5308 } 5309 }; 5310 })(); 5311 function o(e, t, n) { 5312 if (("border-box" === Y.getPropertyValue(t, "boxSizing").toString().toLowerCase()) !== (n || !1)) return 0; 5313 for ( 5314 var i, r = 0, e = "width" === e ? ["Left", "Right"] : ["Top", "Bottom"], o = ["padding" + e[0], "padding" + e[1], "border" + e[0] + "Width", "border" + e[1] + "Width"], s = 0; 5315 s < o.length; 5316 s++ 5317 ) 5318 (i = parseFloat(Y.getPropertyValue(t, o[s]))), isNaN(i) || (r += i); 5319 return n ? -r : r; 5320 } 5321 function n(i, r) { 5322 return function (e, t, n) { 5323 switch (e) { 5324 case "name": 5325 return i; 5326 case "extract": 5327 return parseFloat(n) + o(i, t, r); 5328 case "inject": 5329 return parseFloat(n) - o(i, t, r) + "px"; 5330 } 5331 }; 5332 } 5333 (Y.Normalizations.registered.innerWidth = n("width", !0)), 5334 (Y.Normalizations.registered.innerHeight = n("height", !0)), 5335 (Y.Normalizations.registered.outerWidth = n("width")), 5336 (Y.Normalizations.registered.outerHeight = n("height")); 5337 }, 5338 }, 5339 Names: { 5340 camelCase: function (e) { 5341 return e.replace(/-(\w)/g, function (e, t) { 5342 return t.toUpperCase(); 5343 }); 5344 }, 5345 SVGAttribute: function (e) { 5346 var t = "width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2"; 5347 return (T || (Q.State.isAndroid && !Q.State.isChrome)) && (t += "|transform"), new RegExp("^(" + t + ")$", "i").test(e); 5348 }, 5349 prefixCheck: function (e) { 5350 if (Q.State.prefixMatches[e]) return [Q.State.prefixMatches[e], !0]; 5351 for (var t = ["", "Webkit", "Moz", "ms", "O"], n = 0, i = t.length; n < i; n++) { 5352 var r = 5353 0 === n 5354 ? e 5355 : t[n] + 5356 e.replace(/^\w/, function (e) { 5357 return e.toUpperCase(); 5358 }); 5359 if (U.isString(Q.State.prefixElement.style[r])) return [(Q.State.prefixMatches[e] = r), !0]; 5360 } 5361 return [e, !1]; 5362 }, 5363 }, 5364 Values: { 5365 hexToRgb: function (e) { 5366 return ( 5367 (e = e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function (e, t, n, i) { 5368 return t + t + n + n + i + i; 5369 })), 5370 (e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)) ? [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)] : [0, 0, 0] 5371 ); 5372 }, 5373 isCSSNullValue: function (e) { 5374 return !e || /^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e); 5375 }, 5376 getUnitType: function (e) { 5377 return /^(rotate|skew)/i.test(e) ? "deg" : /(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e) ? "" : "px"; 5378 }, 5379 getDisplayType: function (e) { 5380 e = e && e.tagName.toString().toLowerCase(); 5381 return /^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(e) 5382 ? "inline" 5383 : /^(li)$/i.test(e) 5384 ? "list-item" 5385 : /^(tr)$/i.test(e) 5386 ? "table-row" 5387 : /^(table)$/i.test(e) 5388 ? "table" 5389 : /^(tbody)$/i.test(e) 5390 ? "table-row-group" 5391 : "block"; 5392 }, 5393 addClass: function (e, t) { 5394 var n; 5395 e && 5396 (e.classList 5397 ? e.classList.add(t) 5398 : U.isString(e.className) 5399 ? (e.className += (e.className.length ? " " : "") + t) 5400 : ((n = e.getAttribute(T <= 7 ? "className" : "class") || ""), e.setAttribute("class", n + (n ? " " : "") + t))); 5401 }, 5402 removeClass: function (e, t) { 5403 var n; 5404 e && 5405 (e.classList 5406 ? e.classList.remove(t) 5407 : U.isString(e.className) 5408 ? (e.className = e.className.toString().replace(new RegExp("(^|\\s)" + t.split(" ").join("|") + "(\\s|$)", "gi"), " ")) 5409 : ((n = e.getAttribute(T <= 7 ? "className" : "class") || ""), e.setAttribute("class", n.replace(new RegExp("(^|s)" + t.split(" ").join("|") + "(s|$)", "gi"), " ")))); 5410 }, 5411 }, 5412 getPropertyValue: function (e, t, n, a) { 5413 function l(e, t) { 5414 var n = 0; 5415 if (T <= 8) n = z.css(e, t); 5416 else { 5417 var i = !1; 5418 /^(width|height)$/.test(t) && 0 === Y.getPropertyValue(e, "display") && ((i = !0), Y.
5418setPropertyValue(e, "display", Y.Values.getDisplayType(e))); 5419 var r = function () { 5420 i && Y.setPropertyValue(e, "display", "none"); 5421 }; 5422 if (!a) { 5423 if ("height" === t && "border-box" !== Y.getPropertyValue(e, "boxSizing").toString().toLowerCase()) { 5424 var o = 5425 e.offsetHeight - 5426 (parseFloat(Y.getPropertyValue(e, "borderTopWidth")) || 0) - 5427 (parseFloat(Y.getPropertyValue(e, "borderBottomWidth")) || 0) - 5428 (parseFloat(Y.getPropertyValue(e, "paddingTop")) || 0) - 5429 (parseFloat(Y.getPropertyValue(e, "paddingBottom")) || 0); 5430 return r(), o; 5431 } 5432 if ("width" === t && "border-box" !== Y.getPropertyValue(e, "boxSizing").toString().toLowerCase()) { 5433 var s = 5434 e.offsetWidth - 5435 (parseFloat(Y.getPropertyValue(e, "borderLeftWidth")) || 0) - 5436 (parseFloat(Y.getPropertyValue(e, "borderRightWidth")) || 0) - 5437 (parseFloat(Y.getPropertyValue(e, "paddingLeft")) || 0) - 5438 (parseFloat(Y.getPropertyValue(e, "paddingRight")) || 0); 5439 return r(), s; 5440 } 5441 } 5442 (s = K(e) === $ ? H.getComputedStyle(e, null) : K(e).computedStyle ? K(e).computedStyle : (K(e).computedStyle = H.getComputedStyle(e, null))), 5443 "borderColor" === t && (t = "borderTopColor"), 5444 ("" !== (n = 9 === T && "filter" === t ? s.getPropertyValue(t) : s[t]) && null !== n) || (n = e.style[t]), 5445 r(); 5446 } 5447 return "auto" !== n || !/^(top|right|bottom|left)$/i.test(t) || (("fixed" === (r = l(e, "position")) || ("absolute" === r && /top|left/i.test(t))) && (n = z(e).position()[t] + "px")), n; 5448 } 5449 var i, r; 5450 if ( 5451 (Y.Hooks.registered[t] 5452 ? ((r = Y.Hooks.getRoot((i = t))), 5453 n === $ && (n = Y.getPropertyValue(e, Y.Names.prefixCheck(r)[0])), 5454 Y.Normalizations.registered[r] && (n = Y.Normalizations.registered[r]("extract", e, n)), 5455 (i = Y.Hooks.extractValue(i, n))) 5456 : Y.Normalizations.registered[t] && 5457 ("transform" !== (n = Y.Normalizations.registered[t]("name", e)) && 5458 ((o = l(e, Y.Names.prefixCheck(n)[0])), Y.Values.isCSSNullValue(o) && Y.Hooks.templates[t] && (o = Y.Hooks.templates[t][1])), 5459 (i = Y.Normalizations.registered[t]("extract", e, o))), 5460 !/^[\d-]/.test(i)) 5461 ) { 5462 var o = K(e); 5463 if (o && o.isSVG && Y.Names.SVGAttribute(t)) 5464 if (/^(height|width)$/i.test(t)) 5465 try { 5466 i = e.getBBox()[t]; 5467 } catch (e) { 5468 i = 0; 5469 } 5470 else i = e.getAttribute(t); 5471 else i = l(e, Y.Names.prefixCheck(t)[0]); 5472 } 5473 return Y.Values.isCSSNullValue(i) && (i = 0), Q.debug, i; 5474 }, 5475 setPropertyValue: function (e, t, n, i, r) { 5476 var o = t; 5477 if ("scroll" === t) r.container ? (r.container["scroll" + r.direction] = n) : "Left" === r.direction ? H.scrollTo(n, r.alternateValue) : H.scrollTo(r.alternateValue, n); 5478 else if (Y.Normalizations.registered[t] && "transform" === Y.Normalizations.registered[t]("name", e)) Y.Normalizations.registered[t]("inject", e, n), (o = "transform"), (n = K(e).transformCache[t]); 5479 else { 5480 if ( 5481 (Y.Hooks.registered[t] && ((s = Y.Hooks.getRoot((r = t))), (i = i || Y.getPropertyValue(e, s)), (n = Y.Hooks.injectValue(r, n, i)), (t = s)), 5482 Y.Normalizations.registered[t] && ((n = Y.Normalizations.registered[t]("inject", e, n)), (t = Y.Normalizations.registered[t]("name", e))), 5483 (o = Y.Names.prefixCheck(t)[0]), 5484 T <= 8) 5485 ) 5486 try { 5487 e.style[o] = n; 5488 } catch (e) { 5489 Q.debug; 5490 } 5491 else { 5492 var s = K(e); 5493 s && s.isSVG && Y.Names.SVGAttribute(t) ? e.setAttribute(t, n) : (e.style[o] = n); 5494 } 5495 Q.debug; 5496 } 5497 return [o, n]; 5498 }, 5499 flushTransformCache: function (t) { 5500 var n, 5501 i, 5502 r, 5503 o = "", 5504 e = K(t); 5505 (T || (Q.State.isAndroid && !Q.State.isChrome)) && e && e.isSVG 5506 ? ((n = { 5507 translate: [ 5508 (e = function (e) { 5509 return parseFloat(Y.getPropertyValue(t, e)); 5510 })("translateX"), 5511 e("translateY"), 5512 ], 5513 skewX: [e("skewX")], 5514 skewY: [e("skewY")], 5515 scale: 1 !== e("scale") ? [e("scale"), e("scale")] : [e("scaleX"), e("scaleY")], 5516 rotate: [e("rotateZ"), 0, 0], 5517 }), 5518 z.each(K(t).transformCache, function (e) { 5519 /^translate/i.test(e) ? (e = "translate") : /^scale/i.test(e) ? (e = "scale") : /^rotate/i.test(e) && (e = "rotate"), n[e] && ((o += e + "(" + n[e].join(" ") + ") "), delete n[e]); 5520 })) 5521 : (z.each(K(t).transformCache, function (e) { 5522 return (i = K(t).transformCache[e]), "transformPerspective" === e ? ((r = i), !0) : void (o += (e = 9 === T && "rotateZ" === e ? "rotate" : e) + i + " "); 5523 }), 5524 r && (o = "perspective" + r + " " + o)), 5525 Y.setPropertyValue(t, "transform", o); 5526 }, 5527 }); 5528 Y.Hooks.register(), 5529 Y.Normalizations.register(), 5530 (Q.hook = function (e, i, r) { 5531 var o; 5532 return ( 5533 (e = g(e)), 5534 z.each(e, function (e, t) { 5535 var n; 5536 K(t) === $ && Q.init(t), r === $ ? o === $ && (o = Y.getPropertyValue(t, i)) : ("transform" === (n = Y.setPropertyValue(t, i, r))[0] && Q.CSS.flushTransformCache(t), (o = n)); 5537 }), 5538 o 5539 ); 5540 }); 5541 var y = function () { 5542 function e() { 5543 return t ? k.promise || null : n; 5544 } 5545 var t, 5546 n, 5547 i, 5548 E, 5549 A, 5550 r = arguments[0] && (arguments[0].p || (z.isPlainObject(arguments[0].properties) && !arguments[0].properties.names) || U.isString(arguments[0].properties)); 5551 U.isWrapped(this) ? ((t = !1), (i = 0), (n = E = this)) : ((t = !0), (i = 1), (E = r ? arguments[0].elements || arguments[0].e : arguments[0])); 5552 var k = { promise: null, resolver: null, rejecter: null }; 5553 if ( 5554 (t && 5555 Q.Promise && 5556 (k.promise = new Q.Promise(function (e, t) { 5557 (k.resolver = e), (k.rejecter = t); 5558 })),
5559 (V = r ? ((A = arguments[0].properties || arguments[0].p), arguments[0].options || arguments[0].o) : ((A = arguments[i]), arguments[i + 1])), 5560 (E = g(E))) 5561 ) { 5562 var B, 5563 F = E.length, 5564 L = 0; 5565 if (!/^(stop|finish|finishAll|pause|resume)$/i.test(A) && !z.isPlainObject(V)) 5566 for (var V = {}, o = i + 1; o < arguments.length; o++) 5567 U.isArray(arguments[o]) || (!/^(fast|normal|slow)$/i.test(arguments[o]) && !/^\d/.test(arguments[o])) 5568 ? U.isString(arguments[o]) || U.isArray(arguments[o]) 5569 ? (V.easing = arguments[o]) 5570 : U.isFunction(arguments[o]) && (V.complete = arguments[o]) 5571 : (V.duration = arguments[o]); 5572 switch (A) { 5573 case "scroll": 5574 B = "scroll"; 5575 break; 5576 case "reverse": 5577 B = "reverse"; 5578 break; 5579 case "pause": 5580 var s = new Date().getTime(); 5581 return ( 5582 z.each(E, function (e, t) { 5583 v(t, s); 5584 }), 5585 z.each(Q.State.calls, function (e, i) { 5586 var r = !1; 5587 i && 5588 z.each(i[1], function (e, n) { 5589 var t = V === $ ? "" : V; 5590 return ( 5591 (!0 !== t && i[2].queue !== t && (V !== $ || !1 !== i[2].queue)) || 5592 (z.each(E, function (e, t) { 5593 if (t === n) return (i[5] = { resume: !1 }), !(r = !0); 5594 }), 5595 !r && void 0) 5596 ); 5597 }); 5598 }), 5599 e() 5600 ); 5601 case "resume": 5602 return ( 5603 z.each(E, function (e, t) { 5604 b(t); 5605 }), 5606 z.each(Q.State.calls, function (e, i) { 5607 var r = !1; 5608 i && 5609 z.each(i[1], function (e, n) { 5610 var t = V === $ ? "" : V; 5611 return ( 5612 (!0 !== t && i[2].queue !== t && (V !== $ || !1 !== i[2].queue)) || 5613 !i[5] || 5614 (z.each(E, function (e, t) { 5615 if (t === n) return (i[5].resume = !0), !(r = !0); 5616 }), 5617 !r && void 0) 5618 ); 5619 }); 5620 }), 5621 e() 5622 ); 5623 case "finish": 5624 case "finishAll": 5625 case "stop": 5626 z.each(E, function (e, t) { 5627 K(t) && K(t).delayTimer && (clearTimeout(K(t).delayTimer.setTimeout), K(t).delayTimer.next && K(t).delayTimer.next(), delete K(t).delayTimer), 5628 "finishAll" !== A || 5629 (!0 !== V && !U.isString(V)) || 5630 (z.each(z.queue(t, U.isString(V) ? V : ""), function (e, t) { 5631 U.isFunction(t) && t(); 5632 }), 5633 z.queue(t, U.isString(V) ? V : "", [])); 5634 }); 5635 var a = []; 5636 return ( 5637 z.each(Q.State.calls, function (r, o) { 5638 o && 5639 z.each(o[1], function (e, n) { 5640 var i = V === $ ? "" : V; 5641 if (!0 !== i && o[2].queue !== i && (V !== $ || !1 !== o[2].queue)) return !0; 5642 z.each(E, function (e, t) { 5643 t === n && 5644 ((!0 !== V && !U.isString(V)) || 5645 (z.each(z.queue(t, U.isString(V) ? V : ""), function (e, t) { 5646 U.isFunction(t) && t(null, !0); 5647 }), 5648 z.queue(t, U.isString(V) ? V : "", [])), 5649 "stop" === A 5650 ? ((t = K(t)) && 5651 t.tweensContainer && 5652 !1 !== i && 5653 z.each(t.tweensContainer, function (e, t) { 5654 t.endValue = t.currentValue; 5655 }), 5656 a.push(r)) 5657 : ("finish" !== A && "finishAll" !== A) || (o[2].duration = 1)); 5658 }); 5659 }); 5660 }), 5661 "stop" === A && 5662 (z.each(a, function (e, t) { 5663 O(t, !0); 5664 }), 5665 k.promise && k.resolver(E)), 5666 e() 5667 ); 5668 default: 5669 if (!z.isPlainObject(A) || U.isEmptyObject(A)) { 5670 if (U.isString(A) && Q.Redirects[A]) { 5671 var l, 5672 c = (l = z.extend({}, V)).duration, 5673 u = l.delay || 0; 5674 return ( 5675 !0 === l.backwards && (E = z.extend(!0, [], E).reverse()), 5676 z.each(E, function (e, t) { 5677 parseFloat(l.stagger) ? (l.delay = u + parseFloat(l.stagger) * e) : U.isFunction(l.stagger) && (l.delay = u + l.stagger.call(t, e, F)), 5678 l.drag && 5679 ((l.duration = parseFloat(c) || (/^(callout|transition)/.test(A) ? 1e3 : 400)), 5680 (l.duration = Math.max(l.duration * (l.backwards ? 1
5680- e / F : (e + 1) / F), 0.75 * l.duration, 200))), 5681 Q.Redirects[A].call(t, t, l || {}, e, F, E, k.promise ? k : $); 5682 }), 5683 e() 5684 ); 5685 } 5686 var f = "Velocity: First argument (" + A + ") was not a property map, a known action, or a registered redirect. Aborting."; 5687 return k.promise ? k.rejecter(new Error(f)) : H.console, e(); 5688 } 5689 B = "start"; 5690 } 5691 var M = { lastParent: null, lastPosition: null, lastFontSize: null, lastPercentToPxWidth: null, lastPercentToPxHeight: null, lastEmToPx: null, remToPx: null, vwToPx: null, vhToPx: null }, 5692 W = []; 5693 z.each(E, function (e, t) { 5694 U.isNode(t) && m(t, e); 5695 }), 5696 ((l = z.extend({}, Q.defaults, V)).loop = parseInt(l.loop, 10)); 5697 var d = 2 * l.loop - 1; 5698 if (l.loop) 5699 for (var h = 0; h < d; h++) { 5700 var p = { delay: l.delay, progress: l.progress }; 5701 h === d - 1 && ((p.display = l.display), (p.visibility = l.visibility), (p.complete = l.complete)), y(E, "reverse", p); 5702 } 5703 return e(); 5704 } 5705 function m(P, C) { 5706 var D, 5707 e, 5708 t, 5709 N = z.extend({}, Q.defaults, V), 5710 j = {}; 5711 switch ( 5712 (K(P) === $ && Q.init(P), 5713 parseFloat(N.delay) && 5714 !1 !== N.queue && 5715 z.queue(P, N.queue, function (e) { 5716 Q.velocityQueueEntryFlag = !0; 5717 var t = Q.State.delayedElements.count++; 5718 Q.State.delayedElements[t] = P; 5719 var n, 5720 t = 5721 ((n = t), 5722 function () { 5723 (Q.State.delayedElements[n] = !1), e(); 5724 }); 5725 (K(P).delayBegin = new Date().getTime()), (K(P).delay = parseFloat(N.delay)), (K(P).delayTimer = { setTimeout: setTimeout(e, parseFloat(N.delay)), next: t }); 5726 }), 5727 N.duration.toString().toLowerCase()) 5728 ) { 5729 case "fast": 5730 N.duration = 200; 5731 break; 5732 case "normal": 5733 N.duration = 400; 5734 break; 5735 case "slow": 5736 N.duration = 600; 5737 break; 5738 default: 5739 N.duration = parseFloat(N.duration) || 1; 5740 } 5741 function n(e) { 5742 var O, I, t, n, i, r, o, s; 5743 if (N.begin && 0 === L) 5744 try { 5745 N.begin.call(E, E); 5746 } catch (e) { 5747 setTimeout(function () { 5748 throw e; 5749 }, 1); 5750 } 5751 if ("scroll" === B) { 5752 var a, 5753 l, 5754 c, 5755 u = /^x$/i.test(N.axis) ? "Left" : "Top", 5756 f = parseFloat(N.offset) || 0; 5757 N.container 5758 ? U.isWrapped(N.container) || U.isNode(N.container) 5759 ? ((N.container = N.container[0] || N.c
5759ontainer), (c = (a = N.container["scroll" + u]) + z(P).position()[u.toLowerCase()] + f)) 5760 : (N.container = null) 5761 : ((a = Q.State.scrollAnchor[Q.State["scrollProperty" + u]]), 5762 (l = Q.State.scrollAnchor[Q.State["scrollProperty" + ("Left" === u ? "Top" : "Left")]]), 5763 (c = z(P).offset()[u.toLowerCase()] + f)), 5764 (j = { 5765 scroll: { rootPropertyValue: !1, startValue: a, currentValue: a, endValue: c, unitType: "", easing: N.easing, scrollData: { container: N.container, direction: u, alternateValue: l } }, 5766 element: P, 5767 }), 5768 Q.debug; 5769 } else if ("reverse" === B) { 5770 if (!(O = K(P))) return; 5771 if (!O.tweensContainer) return void z.dequeue(P, N.queue); 5772 for (var d in ("none" === O.opts.display && (O.opts.display = "auto"), 5773 "hidden" === O.opts.visibility && (O.opts.visibility = "visible"), 5774 (O.opts.loop = !1), 5775 (O.opts.begin = null), 5776 (O.opts.complete = null), 5777 V.easing || delete N.easing, 5778 V.duration || delete N.duration, 5779 (N = z.extend({}, O.opts, N)), 5780 (I = z.extend(!0, {}, O ? O.tweensContainer : null)))) 5781 I.hasOwnProperty(d) && 5782 "element" !== d && 5783 ((t = I[d].startValue), (I[d].startValue = I[d].currentValue = I[d].endValue), (I[d].endValue = t), U.isEmptyObject(V) || (I[d].easing = N.easing), Q.debug); 5784 j = I; 5785 } else if ("start" === B) { 5786 (O = K(P)) && O.tweensContainer && !0 === O.isAnimating && (I = O.tweensContainer); 5787 var h, 5788 p = function (e, t) { 5789 var n = Y.Hooks.getRoot(e), 5790 i = !1, 5791 r = t[0], 5792 o = t[1], 5793 s = t[2]; 5794 if ((O && O.isSVG) || "tween" === n || !1 !== Y.Names.prefixCheck(n)[1] || Y.Normalizations.registered[n] !== $) { 5795 ((N.display !== $ && null !== N.display && "none" !== N.display) || (N.visibility !== $ && "hidden" !== N.visibility)) && /opacity|filter/.test(e) && !s && 0 !== r && (s = 0), 5796 N._cacheValues && I && I[e] 5797 ? (s === $ && (s = I[e].endValue + I[e].unitType), (i = O.rootPropertyValueCache[n])) 5798 : Y.Hooks.registered[e] 5799 ? s === $ 5800 ? ((i = Y.getPropertyValue(P, n)), (s = Y.getPropertyValue(P, e, i))) 5801 : (i = Y.Hooks.templates[n][1]) 5802 : s === $ && (s = Y.getPropertyValue(P, e)); 5803 var a, 5804 l, 5805 c = !1, 5806 t = function (e, t) { 5807 var t = (t || "0") 5808 .toString() 5809 .toLowerCase() 5810 .replace(/[%A-z]+$/, function (e) { 5811 return (n = e), ""; 5812 }), 5813 n = n || Y.Values.getUnitType(e); 5814 return [t, n]; 5815 }; 5816 if (s !== r && U.isString(s) && U.isString(r)) { 5817 for (var u = "", f = 0, d = 0, h = [], p
5817= [], m = 0, g = 0, y = 0, s = Y.Hooks.fixColors(s), r = Y.Hooks.fixColors(r); f < s.length && d < r.length; ) { 5818 var v = s[f], 5819 b = r[d]; 5820 if (/[\d\.-]/.test(v) && /[\d\.-]/.test(b)) { 5821 for (var w = v, x = b, _ = ".", S = "."; ++f < s.length; ) { 5822 if ((v = s[f]) === _) _ = ".."; 5823 else if (!/\d/.test(v)) break; 5824 w += v; 5825 } 5826 for (; ++d < r.length; ) { 5827 if ((b = r[d]) === S) S = ".."; 5828 else if (!/\d/.test(b)) break; 5829 x += b; 5830 } 5831 var T, 5832 C, 5833 E = Y.Hooks.getUnit(s, f), 5834 A = Y.Hooks.getUnit(r, d); 5835 (f += E.length), 5836 (d += A.length), 5837 E === A 5838 ? w === x 5839 ? (u += w + E) 5840 : ((u += "{" + h.length + (g ? "!" : "") + "}" + E), h.push(parseFloat(w)), p.push(parseFloat(x))) 5841 : ((T = parseFloat(w)), 5842 (C = parseFloat(x)), 5843 (u += 5844 (m < 5 ? "calc" : "") + 5845 "(" + 5846 (T ? "{" + h.length + (g ? "!" : "") + "}" : "0") + 5847 E + 5848 " + " + 5849 (C ? "{" + (h.length + (T ? 1 : 0)) + (g ? "!" : "") + "}" : "0") + 5850 A + 5851 ")"), 5852 T && (h.push(T), p.push(0)), 5853 C && (h.push(0), p.push(C))); 5854 } else { 5855 if (v !== b) { 5856 m = 0; 5857 break; 5858 } 5859 (u += v), 5860 f++, 5861 d++, 5862 (0 === m && "c" === v) || (1 === m && "a" === v) || (2 === m && "l" === v) || (3 === m && "c" === v) || (4 <= m && "(" === v) 5863 ? m++ 5864 : ((m && m < 5) || (4 <= m && ")" === v && --m < 5)) && (m = 0), 5865 (0 === g && "r" === v) || (1 === g && "g" === v) || (2 === g && "b" === v) || (3 === g && "a" === v) || (3 <= g && "(" === v) 5866 ? (3 === g && "a" === v && (y = 1), g++) 5867 : y && "," === v 5868 ? 3 < ++y && (g = y = 0) 5869 : ((y && g < (y ? 5 : 4)) || ((y ? 4 : 3) <= g && ")" === v && --g < (y ? 5 : 4))) && (g = y = 0); 5870 } 5871 } 5872 (f === s.length && d === r.length) || (Q.debug, (u = $)), u && (h.length ? (Q.debug, (s = h), (r = p), (a = l = "")) : (u = $)); 5873 } 5874 u || 5875 ((s = (n = t(e, s))[0]), 5876 (l = n[1]), 5877 (r = (n = t(e, r))[0].replace(/^([+-\/*])=/, function (e, t) { 5878 return (c = t), ""; 5879 })), 5880 (a = n[1]), 5881 (s = parseFloat(s) || 0), 5882 (r = parseFloat(r) || 0), 5883 "%" === a && 5884 (/^(fontSize|lineHeight)$/.test(e) 5885 ? ((r /= 100), (a = "em")) 5886 : /^scale/.test(e) 5887 ? ((r /= 100), (a = "")) 5888 : /(Red|Green|Blue)$/i.test(e) && ((r = (r / 100) * 255), (a = "")))); 5889 if (/[\/*]/.test(c)) a = l; 5890 else if (l !== a && 0 !== s) 5891 if (0 === r) a = l; 5892 else { 5893 D = 5894 D || 5895 (function () { 5896 var e = { myParent: P.parentNode || R.body, position: Y.getPropertyValue(P, "position"), fontSize: Y.getPropertyValue(P, "fontSize") }, 5897 t = e.position === M.lastPosition && e.myParent === M.lastParent, 5898 n = e.fontSize === M.lastFontSize; 5899 (M.lastParent = e.myParent), (M.lastPosition = e.position), (M.lastFontSize = e.fontSize); 5900 var i, 5901 r = {}; 5902 return ( 5903 n && t 5904 ? ((r.emToPx = M.lastEmToPx), (r.percentToPxWidth = M.lastPercentToPxWidth), (r.percentToPxHeight = M.lastPercentToPxHeight)) 5905 : ((i = O && O.isSVG ? R.createElementNS("http://www.w3.org/2000/svg", "rect") : R.createElement("div")), 5906 Q.init(i), 5907 e.myParent.appendChild(i), 5908 z.each(["overflow", "overflowX", "overflowY"], function (e, t) { 5909 Q.CSS.setPropertyValue(i, t, "hidden"); 5910 }), 5911 Q.CSS.setPropertyValue(i, "position", e.position), 5912 Q.CSS.setPropertyValue(i, "fontSize", e.fontSize), 5913 Q.CSS.setPropertyValue(i, "boxSizing", "content-box"), 5914 z.each(["minWidth", "maxWidth", "width", "minHeight", "maxHeight", "height"], function (e, t) { 5915 Q.CSS.setPropertyValue(i, t, "100%"); 5916 }), 5917 Q.CSS.setPropertyValue(i, "paddingLeft", "100em"), 5918 (r.percentToPxWidth = M.lastPercentToPxWidth = (parseFloat(Y.getPropertyValue(i, "width", null, !0)) || 1) / 100), 5919 (r.percentToPxHeight = M.lastPercentToPxHeight = (parseFloat(Y.getPropertyValue(i, "height", null, !0)) || 1) / 100), 5920 (r.emToPx = M.lastEmToPx = (parseFloat(Y.getPropertyValue(i, "paddingLeft")) || 1) / 100), 5921 e.myParent.removeChild(i)), 5922 null === M.remToPx && (M.remToPx = parseFloat(Y.getPropertyValue(R.body, "fontSize")) || 16), 5923 null === M.vwToPx && ((M.vwToPx = parseFloat(H.innerWidth) / 100), (M.vhToPx = parseFloat(H.innerHeight) / 100)), 5924 (r.remToPx = M.remToPx), 5925 (r.vwToPx = M.vwToPx), 5926 (r.vhToPx = M.vhToPx), 5927 Q.debug, 5928 r 5929 ); 5930 })(); 5931 var k = /margin|padding|left|right|width|text|word|letter/i.test(e) || /X$/.test(e) || "x" === e ? "x" : "y"; 5932 switch (l) { 5933 case "%": 5934 s *= "x" == k ? D.percentToPxWidth : D.percentToPxHeight; 5935 break; 5936 case "px": 5937 break; 5938 default: 5939 s *= D[l + "ToPx"]; 5940 } 5941 switch (a) { 5942 case "%": 5943 s *= 1 / ("x" == k ? D.percentToPxWidth : D.percentToPxHeight); 5944 break; 5945 case "px": 5946 break; 5947 default: 5948 s *= 1 / D[a + "ToPx"]; 5949 } 5950 } 5951 switch (c) { 5952 case "+": 5953 r = s + r; 5954 break; 5955 case "-": 5956 r = s - r; 5957 break; 5958 case "*": 5959 r *= s; 5960 break; 5961 case "/": 5962 r = s / r; 5963 } 5964 (j[e] = { rootPropertyValue: i, startValue: s, currentValue: s, endValue: r, unitType: a, easing: o }), u && (j[e].pattern = u), Q.debug; 5965 } else Q.debug; 5966 }; 5967 for (h in A) 5968 if (A.hasOwnProperty(h)) { 5969 var m = Y.Names.camel
5969Case(h), 5970 g = 5971 ((n = A[h]), 5972 (s = o = r = i = void 0), 5973 U.isFunction(n) && (n = n.call(P, C, F)), 5974 U.isArray(n) 5975 ? ((r = n[0]), 5976 (s = 5977 (!U.isArray(n[1]) && /^[\d-]/.test(n[1])) || U.isFunction(n[1]) || Y.RegEx.isHex.test(n[1]) 5978 ? n[1] 5979 : (U.isString(n[1]) && !Y.RegEx.isHex.test(n[1]) && Q.Easings[n[1]]) || U.isArray(n[1]) 5980 ? ((o = i ? n[1] : X(n[1], N.duration)), n[2]) 5981 : n[1] || n[2])) 5982 : (r = n), 5983 i || (o = o || N.easing), 5984 [(r = U.isFunction(r) ? r.call(P, C, F) : r) || 0, o, (s = U.isFunction(s) ? s.call(P, C, F) : s)]); 5985 if (q(Y.Lists.colors)) { 5986 var y = g[0], 5987 v = g[1], 5988 b = g[2]; 5989 if (Y.RegEx.isHex.test(y)) { 5990 for (var w = ["Red", "Green", "Blue"], x = Y.Values.hexToRgb(y), _ = b ? Y.Values.hexToRgb(b) : $, S = 0; S < w.length; S++) { 5991 var T = [x[S]]; 5992 v && T.push(v), _ !== $ && T.push(_[S]), p(m + w[S], T); 5993 } 5994 continue; 5995 } 5996 } 5997 p(m, g); 5998 } 5999 j.element = P; 6000 } 6001 j.element && 6002 (Y.Values.addClass(P, "velocity-animating"), 6003 W.push(j), 6004 (O = K(P)) && ("" === N.queue && ((O.tweensContainer = j), (O.opts = N)), (O.isAnimating = !0)), 6005 L === F - 1 ? (Q.State.calls.push([W, E, N, null, k.resolver, null, 0]), !1 === Q.State.isTicking && ((Q.State.isTicking = !0), G())) : L++); 6006 } 6007 !1 !== Q.mock && (!0 === Q.mock ? (N.duration = N.delay = 1) : ((N.duration *= parseFloat(Q.mock) || 1), (N.delay *= parseFloat(Q.mock) || 1))), 6008 (N.easing = X(N.easing, N.duration)), 6009 N.begin && !U.isFunction(N.begin) && (N.begin = null), 6010 N.progress && !U.isFunction(N.progress) && (N.progress = null), 6011 N.complete && !U.isFunction(N.complete) && (N.complete = null), 6012 N.display !== $ && null !== N.display && ((N.display = N.display.toString().toLowerCase()), "auto" === N.display && (N.display = Q.CSS.Values.getDisplayType(P))), 6013 N.visibility !== $ && null !== N.visibility && (N.visibility = N.visibility.toString().toLowerCase()), 6014 (N.mobileHA = N.mobileHA && Q.State.isMobile && !Q.State.isGingerbread), 6015 !1 === N.queue 6016 ? N.delay 6017 ? ((e = Q.State.delayedElements.count++), 6018 (Q.State.delayedElements[e] = P), 6019 (t = e), 6020 (e = function () { 6021 (Q.State.delayedElements[t] = !1), n(); 6022 }), 6023 (K(P).delayBegin = new Date().getTime()), 6024 (K(P).delay = parseFloat(N.delay)), 6025 (K(P).delayTimer = { setTimeout: setTimeout(n, parseFloat(N.delay)), next: e })) 6026 : n() 6027 : z.queue(P, N.queue, function (e, t) { 6028 return !0 === t ? (k.promise && k.resolver(E), !0) : ((Q.velocityQueueEntryFlag = !0), void n()); 6029 }), 6030 ("" !== N.queue && "fx" !== N.queue) || "inprogress" === z.queue(P)[0] || z.dequeue(P); 6031 } 6032 k.promise && (A && V && !1 === V.promiseRe
6032jectEmpty ? k.resolver() : k.rejecter()); 6033 }; 6034 (Q = z.extend(y, Q)).animate = y; 6035 var E = H.requestAnimationFrame || n; 6036 return ( 6037 Q.State.isMobile || 6038 R.hidden === $ || 6039 ((o = function () { 6040 R.hidden 6041 ? ((E = function (e) { 6042 return setTimeout(function () { 6043 e(!0); 6044 }, 16); 6045 }), 6046 G()) 6047 : (E = H.requestAnimationFrame || n); 6048 })(), 6049 R.addEventListener("visibilitychange", o)), 6050 (e.Velocity = Q), 6051 e !== H && ((e.fn.velocity = y), (e.fn.velocity.defaults = Q.defaults)), 6052 z.each(["Down", "Up"], function (e, u) { 6053 Q.Redirects["slide" + u] = function (n, e, i, t, r, o) { 6054 var e = z.extend({}, e), 6055 s = e.begin, 6056 a = e.complete, 6057 l = {}, 6058 c = { height: "", marginTop: "", marginBottom: "", paddingTop: "", paddingBottom: "" }; 6059 e.display === $ && (e.dis
6059play = "Down" === u ? ("inline" === Q.CSS.Values.getDisplayType(n) ? "inline-block" : "block") : "none"), 6060 (e.begin = function () { 6061 for (var e in (0 === i && s && s.call(r, r), c)) { 6062 var t; 6063 c.hasOwnProperty(e) && ((l[e] = n.style[e]), (t = Y.getPropertyValue(n, e)), (c[e] = "Down" === u ? [t, 0] : [0, t])); 6064 } 6065 (l.overflow = n.style.overflow), (n.style.overflow = "hidden"); 6066 }), 6067 (e.complete = function () { 6068 for (var e in l) l.hasOwnProperty(e) && (n.style[e] = l[e]); 6069 i === t - 1 && (a && a.call(r, r), o && o.resolver(r)); 6070 }), 6071 Q(n, c, e); 6072 }; 6073 }), 6074 z.each(["In", "Out"], function (e, l) { 6075 Q.Redirects["fade" + l] = function (e, t, n, i, r, o) { 6076 var s = z.extend({}, t), 6077 a = s.complete, 6078 t = { opacity: "In" === l ? 1 : 0 }; 6079 0 !== n && (s.begin = null), 6080 (s.complete = 6081 n !== i - 1 6082 ? null 6083 : function () { 6084 a && a.call(r, r), o && o.resolver(r); 6085 }), 6086 s.display === $ && (s.display = "In" === l ? "auto" : "none"), 6087 Q(this, t, s); 6088 }; 6089 }), 6090 Q 6091 ); 6092 } 6093 function K(e) { 6094 e = z.data(e, "velocity"); 6095 return null === e ? $ : e; 6096 } 6097 function v(e, t) { 6098 e = K(e); 6099 e && e.delayTimer && !e.delayPaused && ((e.delayRemaining = e.delay - t + e.delayBegin), (e.delayPaused = !0), clearTimeout(e.delayTimer.setTimeout)); 6100 } 6101 function b(e) { 6102 e = K(e); 6103 e && e.delayTimer && e.delayPaused && ((e.delayPaused = !1), (e.delayTimer.setTimeout = setTimeout(e.delayTimer.next, e.delayRemaining))); 6104 } 6105 function l(s, t, a, n) { 6106 var l = 4, 6107 c = 1e-7, 6108 u = 10, 6109 f = 11, 6110 d = 1 / (f - 1), 6111 e = "Float32Array" in H; 6112 if (4 !== arguments.length) return !1; 6113 for (var i = 0; i < 4; ++i) if ("number" != typeof arguments[i] || isNaN(arguments[i]) || !isFinite(arguments[i])) return !1; 6114 (s = Math.min(s, 1)), (a = Math.min(a, 1)), (s = Math.max(s, 0)), (a = Math.max(a, 0)); 6115 var h = new (e ? Float32Array : Array)(f); 6116 function r(e, t) { 6117 return 1 - 3 * t + 3 * e; 6118 } 6119 function p(e, t, n) { 6120 return ((r(t, n) * e + (3 * n - 6 * t)) * e + 3 * t) * e; 6121 } 6122 function m(e, t, n) { 6123 return 3 * r(t, n) * e * e + 2 * (3 * n - 6 * t) * e + 3 * t; 6124 } 6125 function o(e) { 6126 for (var t = 0, n = 1, i = f - 1; n !== i && h[n] <= e; ++n) t += d; 6127 var r = t + ((e - h[--n]) / (h[n + 1] - h[n])) * d, 6128 o = m(r, s, a); 6129 return 0.001 <= o 6130 ? (function (e, t) { 6131 for (var n = 0; n < l; ++n) { 6132 var i = m(t, s, a); 6133 if (0 === i) return t; 6134 t -= (p(t, s, a) - e) / i; 6135 } 6136 return t; 6137 })(e, r) 6138 : 0 === o 6139 ? r 6140 : (function (e, t, n) { 6141 for (var i, r, o = 0; 0 < (i = p((r = t + (n - t) / 2), s, a) - e) ? (n = r) : (t = r), Math.abs(i) > c && ++o < u; ); 6142 return r; 6143 })(e, t, t + d); 6144 } 6145 var g = !1; 6146 function y() { 6147 (g = !0), 6148 (s === t && a === n) || 6149 (function () { 6150 for (var e = 0; e < f; ++e) h[e] = p(e * d, s, a); 6151 })(); 6152 } 6153 e = function (e) { 6154 return g || y(), s === t && a === n ? e : 0 === e ? 0 : 1 === e ? 1 : p(o(e), t, n); 6155 }; 6156 e.getControlPoints = function () { 6157 return [ 6158 { x: s, y: t }, 6159 { x: a, y: n }, 6160 ]; 6161 }; 6162 var v = "generateBezier(" + [s, t, a, n] + ")"; 6163 return ( 6164 (e.toString = function () { 6165 return v; 6166 }), 6167 e 6168 ); 6169 } 6170 function w(e) { 6171 return -e.tension * e.x - e.friction * e.v; 6172 } 6173 function x(e, t, n) { 6174 e = { x: e.x + n.dx * t, v: e.v + n.dv * t, tension: e.tension, friction: e.friction }; 6175 return { dx: e.v, dv: w(e) }; 6176 } 6177 function X(e, t) { 6178 var n = e; 6179 return ( 6180 U.isString(e) 6181 ? Q.Easings[e] || (n = !1) 6182 : (n = 6183 U.isArray(e) && 1 === e.length 6184 ? function (t) { 6185 return function (e) { 6186 return Math.round(e * t) * (1 / t); 6187 }; 6188 }.apply(null, e) 6189 : U.isArray(e) && 2 === e.length 6190 ? a.apply(null, e.concat([t])) 6191 : !(!U.isArray(e) || 4 !== e.length) && l.apply(null, e)), 6192 (n = !1 === n ? (Q.Easings[Q.defaults.easing] ? Q.defaults.easing : s) : n) 6193 ); 6194 } 6195 function G(e) { 6196 if (e) { 6197 var t = Q.timestamp && !0 !== e ? e : C.now(), 6198 n = Q.State.calls.length; 6199 1e4 < n && 6200 ((Q.State.calls = (function (e) { 6201 for (var t = -1, n = e ? e.length : 0, i = []; ++t < n; ) { 6202 var r = e[t]; 6203 r && i.push(r); 6204 } 6205 return i; 6206 })(Q.State.calls)), 6207 (n = Q.State.calls.length)); 6208 for (var i = 0; i < n; i++) 6209 if (Q.State.calls[i]) { 6210 var r = Q.State.calls[i], 6211 o = r[0], 6212 s = r[2], 6213 a = !!(f = r[3]), 6214 l = null, 6215 c = r[5], 6216 u = r[6], 6217 f = f || (Q.State.calls[i][3] = t - 16); 6218 if (c) { 6219 if (!0 !== c.resume) continue; 6220 (f = r[3] = Math.round(t - u - 16)), (r[5] = null); 6221 } 6222 for (var u = (r[6] = t - f), d = Math.min(u / s.duration, 1), h = 0, p = o.length; h < p; h++) { 6223 var m = o[h], 6224 g = m.element; 6225 if (K(g)) { 6226 var y, 6227 v, 6228 b, 6229 w, 6230 x, 6231 _, 6232 S = !1; 6233 for (y in (s.display !== $ && 6234 null !== s.display && 6235 "none" !== s.display && 6236 ("flex" === s.display && 6237 z.each(["-webkit-box", "-moz-box", "-ms-flexbox", "-webkit-flex"], function (e, t) { 6238 Y.setPropertyValue(g, "display", t); 6239 }), 6240 Y.setPropertyValue(g, "display", s.display)), 6241 s.visibility !== $ && "hidden" !== s.visibility && Y.
6241setPropertyValue(g, "visibility", s.visibility), 6242 m)) 6243 m.hasOwnProperty(y) && 6244 "element" !== y && 6245 ((v = m[y]), 6246 (b = U.isString(v.easing) ? Q.Easings[v.easing] : v.easing), 6247 (_ = U.isString(v.pattern) 6248 ? v.pattern.replace( 6249 /{(\d+)(!)?}/g, 6250 1 === d 6251 ? function (e, t, n) { 6252 t = v.endValue[t]; 6253 return n ? Math.round(t) : t; 6254 } 6255 : function (e, t, n) { 6256 var i = v.startValue[t], 6257 t = v.endValue[t] - i, 6258 t = i + t * b(d, s, t); 6259 return n ? Math.round(t) : t; 6260 } 6261 ) 6262 : 1 === d 6263 ? v.endValue 6264 : ((x = v.endValue - v.startValue), v.startValue + x * b(d, s, x))), 6265 (!a && _ === v.currentValue) || 6266 ((v.currentValue = _), 6267 "tween" === y 6268 ? (l = _) 6269 : (Y.Hooks.registered[y] && ((w = Y.Hooks.getRoot(y)), (x = K(g).rootPropertyValueCache[w]) && (v.rootPropertyValue = x)), 6270 (_ = Y.setPropertyValue(g, y, v.currentValue + (T < 9 && 0 === parseFloat(_) ? "" : v.unitType), v.rootPropertyValue, v.scrollData)), 6271 Y.Hooks.registered[y] && 6272 (Y.Normalizations.registered[w] ? (K(g).rootPropertyValueCache[w] = Y.Normalizations.registered[w]("extract", null, _[1])) : (K(g).rootPropertyValueCache[w] = _[1])), 6273 "transform" === _[0] && (S = !0)))); 6274 s.mobileHA && K(g).transformCache.translate3d === $ && ((K(g).transformCache.translate3d = "(0px, 0px, 0px)"), (S = !0)), S && Y.flushTransformCache(g); 6275 } 6276 } 6277 s.display !== $ && "none" !== s.display && (Q.State.calls[i][2].display = !1), 6278 s.visibility !== $ && "hidden" !== s.visibility && (Q.State.calls[i][2].visibility = !1), 6279 s.progress && s.progress.call(r[1], r[1], d, Math.max(0, f + s.duration - t), f, l), 6280 1 === d && O(i); 6281 } 6282 } 6283 Q.State.isTicking && E(G); 6284 } 6285 function O(e, t) { 6286 if (Q.State.calls[e]) { 6287 for (var n = Q.State.calls[e][0], i = Q.State.calls[e][1], r = Q.State.calls[e][2], o = Q.State.calls[e][4], s = !1, a = 0, l = n.length; a < l; a++) { 6288 var c = n[a].element; 6289 t || r.loop || ("none" === r.dis
6289play && Y.setPropertyValue(c, "display", r.display), "hidden" === r.visibility && Y.setPropertyValue(c, "visibility", r.visibility)); 6290 var u, 6291 f = K(c); 6292 if ( 6293 (!0 === r.loop || 6294 (z.queue(c)[1] !== $ && /\.velocityQueueEntryFlag/i.test(z.queue(c)[1])) || 6295 (f && 6296 ((f.isAnimating = !1), 6297 (u = !(f.rootPropertyValueCache = {})), 6298 z.each(Y.Lists.transforms3D, function (e, t) { 6299 var n = /^scale/.test(t) ? 1 : 0, 6300 i = f.transformCache[t]; 6301 f.transformCache[t] !== $ && new RegExp("^\\(" + n + "[^.]").test(i) && ((u = !0), delete f.transformCache[t]); 6302 }), 6303 r.mobileHA && ((u = !0), delete f.transformCache.translate3d), 6304 u && Y.flushTransformCache(c), 6305 Y.Values.removeClass(c, "velocity-animating"))), 6306 !t && r.complete && !r.loop && a === l - 1) 6307 ) 6308 try { 6309 r.complete.call(i, i); 6310 } catch (e) { 6311 setTimeout(function () { 6312 throw e; 6313 }, 1); 6314 } 6315 o && !0 !== r.loop && o(i), 6316 f && 6317 !0 === r.loop && 6318 !t && 6319 (z.each(f.tweensContainer, function (e, t) { 6320 var n; 6321 /^rotate/.test(e) && (parseFloat(t.startValue) - parseFloat(t.endValue)) % 360 == 0 && ((n = t.startValue), (t.startValue = t.endValue), (t.endValue = n)), 6322 /^backgroundPosition/.test(e) && 100 === parseFloat(t.endValue) && "%" === t.unitType && ((t.endValue = 0), (t.startValue = 100)); 6323 }), 6324 Q(c, "reverse", { loop: !0, delay: r.delay })), 6325 !1 !== r.queue && z.dequeue(c, r.queue); 6326 } 6327 Q.State.calls[e] = !1; 6328 for (var d = 0, h = Q.State.calls.length; d < h; d++) 6329 if (!1 !== Q.State.calls[d]) { 6330 s = !0; 6331 break; 6332 } 6333 !1 === s && ((Q.State.isTicking = !1), delete Q.State.calls, (Q.State.calls = [])); 6334 } 6335 } 6336 jQuery.fn.velocity = jQuery.fn.animate; 6337 })(window.jQuery || window.Zepto || window, window, window ? window.document : void 0); 6338 }); 6339 }, 6340 598: (e, t, n) => { 6341 e.exports = n.g.Tether = n(519); 6342 }, 6343 609: (e) => { 6344 "use strict"; 6345 e.exports = jQuery; 6346 }, 6347 }, 6348 i = {}; 6349 function v(e) { 6350 var t = i[e]; 6351 if (void 0 !== t) return t.exports; 6352 t = i[e] = { exports: {} };
6353 return n[e].call(t.exports, t, t.exports, v), t.exports; 6354 } 6355 (v.amdO = {}), 6356 (v.n = (e) => { 6357 var t = e && e.__esModule ? () => e.default : () => e; 6358 return v.d(t, { a: t }), t; 6359 }), 6360 (v.d = (e, t) => { 6361 for (var n in t) v.o(t, n) && !v.o(e, n) && Object.defineProperty(e, n, { enumerable: !0, get: t[n] }); 6362 }), 6363 (v.g = (function () { 6364 if ("object" == typeof globalThis) return globalThis; 6365 try { 6366 return this || new Function("return this")(); 6367 } catch (e) { 6368 if ("object" == typeof window) return window; 6369 } 6370 })()), 6371 (v.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)); 6372 (() => { 6373 "use strict"; 6374 v(598), v(948), v(635), v(877), v(990); 6375 var e = prestashop, 6376 l = v.n(e), 6377 e = v(609), 6378 c = v.n(e); 6379 function i(e, t) { 6380 var n = t.children().detach(); 6381 t.empty().append(e.children().detach()), e.append(n); 6382 } 6383 function r() { 6384 l().responsive.mobile 6385 ? c()("*[id^='_desktop_']").each((e, t) => { 6386 var n = c()(`#${t.id.replace("_desktop_", "_mobile_")}`); 6387 n.length && i(c()(t), n); 6388 }) 6389 : c()("*[id^='_mobile_']").each((e, t) => { 6390 var n = c()(`#${t.id.replace("_mobile_", "_desktop_")}`); 6391 n.length && i(c()(t), n); 6392 }), 6393 l().emit("responsive update", { mobile: l().responsive.mobile }); 6394 } 6395 (l().themeSelectors = { 6396 product: { 6397 tabs: ".tabs .nav-link", 6398 activeNavClass: "js-product-nav-active", 6399 activeTabClass: "js-product-tab-active", 6400 activeTabs: ".tabs .nav-link.active, .js-product-nav-active", 6401 imagesModal: ".js-product-images-modal", 6402 thumb: ".js-thumb", 6403 thumbContainer: ".thumb-container, .js-thumb-container", 6404 arrows: ".js-arrows", 6405 selected: ".selected, .js-thumb-selected", 6406 modalProductCover: ".js-modal-product-cover", 6407 cover: ".js-qv-product-cover", 6408 }, 6409 listing: { 6410 searchFilterToggler: "#search_filter_toggler, .js-search-toggler", 6411 searchFiltersWrapper: "#search_filters_wrapper", 6412 searchFilterControls: "#search_filter_controls", 6413 searchFilters: "#search_filters", 6414 activeSearchFilters: "#js-active-search-filters", 6415 listTop: "#js-product-list-top", 6416 list: "#js-product-list", 6417 listBottom: "#js-product-list-bottom", 6418 listHeader: "#js-product-list-header", 6419 searchFiltersClearAll: ".js-search-filters-clear-all", 6420 searchLink: ".js-search-link", 6421 }, 6422 order: { returnForm: "#order-return-form, .js-order-return-form" }, 6423 arrowDown: ".arrow-down, .js-arrow-down", 6424 arrowUp: ".arrow-up, .js-arrow-up", 6425 clear: ".clear", 6426 fileInput: ".js-file-input", 6427 contentWrapper: "#content-wrapper, .js-content-wrapper", 6428 footer: "#footer, .js-footer", 6429 modalContent: ".js-modal-content", 6430 modal: "#modal, .js-checkout-modal", 6431 touchspin: ".js-touchspin", 6432 checkout: { termsLink: ".js-terms a", giftCheckbox: ".js-gift-checkbox", imagesLink: ".card-block .cart-summary-products p a, .js-show-details", carrierExtraContent: ".carrier-extra-content, .js-carrier-extra-content" }, 6433 }), 6434 c()(document).ready(() => { 6435 l().emit("themeSelectorsInit"); 6436 }), 6437 (l().responsive = l().responsive || {}), 6438 (l().responsive.current_width = window.innerWidth), 6439 (l().responsive.min_width = 768), 6440 (l().responsive.mobile = l().responsive.current_width < l().responsive.min_width), 6441 c()(window).on("resize", () => { 6442 var e = l().responsive.current_width, 6443 t = l().responsive.min_width, 6444 n = window.innerWidth, 6445 t = (t <= e && n < t) || (e < t && t <= n); 6446 (l().responsive.current_width = n), (l().responsive.mobile = l().responsive.current_width < l().responsive.min_width), t && r(); 6447 }), 6448 c()(document).ready(() => { 6449 l().responsive.mobile && r(); 6450 }), 6451 c()(document).ready(() => { 6452 1 === c()("body#checkout").length && 6453 (c()(l().themeSelectors.checkout.termsLink).on("click", (e) => { 6454 e.preventDefault(); 6455 e = c()(e.target).attr("href"); 6456 e && 6457 ((e += "?content_only=1"), 6458 c() 6459 .get(e, (e) => { 6460 c()(l().themeSelectors.modal).find(l().themeSelectors.modalContent).html(c()(e).find(".page-cms").contents()); 6461 }) 6462 .fail((e) => { 6463 l().emit("handleError", { eventType: "clickTerms", resp: e }); 6464 })), 6465 c()(l().themeSelectors.modal).modal("show"); 6466 }), 6467 c()(l().themeSelectors.checkout.giftCheckbox).on("click", () => { 6468 c()("#gift").collapse("toggle"); 6469 }), 6470 c()(l().themeSelectors.checkout.imagesLink).on("click", function () { 6471 const e = c()(this).find("i.material-icons"); 6472 "expand_more" === e.text() ? e.text("exp
6472and_less") : e.text("expand_more"); 6473 })), 6474 l().on("updatedDeliveryForm", (e) => { 6475 void 0 !== e.deliveryOption && 0 !== e.deliveryOption.length && (c()(l().themeSelectors.checkout.carrierExtraContent).hide(), e.deliveryOption.next(l().themeSelectors.checkout.carrierExtraContent).slideDown()); 6476 }); 6477 }), 6478 c()(document).ready(function () { 6479 c()("body#order-detail") && 6480 c()(`${l().themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click", function () { 6481 const n = c()(this).prop("checked"); 6482 c()(`${l().themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each((e, t) => { 6483 c()(t).prop("checked", n); 6484 }); 6485 }); 6486 }); 6487 v(5); 6488 class a { 6489 init() { 6490 c()(".js-product-miniature").each((e, t) => { 6491 if (5 < c()(t).find(".color").length) { 6492 let n = 0; 6493 c()(t) 6494 .find(".color") 6495 .each((e, t) => { 6496 4 < e && (c()(t).hide(), (n += 1)); 6497 }), 6498 c()(t).find(".js-count").append(`+${n}`); 6499 } 6500 }); 6501 } 6502 } 6503 c()(document).ready(() => { 6504 const t = window.location.href; 6505 l().on("clickQuickView", (e) => { 6506 e = { action: "quickview", id_product: e.dataset.idProduct, id_product_attribute: e.dataset.idProductAttribute }; 6507 c() 6508 .post(l().urls.pages.product, e, null, "json") 6509 .then((e) => { 6510 c()("body").append(e.quickview_html); 6511 const t = c()(`#quickview-modal-${e.product.id}-${e.product.id_product_attribute}`); 6512 t.modal("show"), 6513 n(t), 6514 t.on("hidden.bs.modal", () => { 6515 t.remove(); 6516 }); 6517 }) 6518 .fail((e) => { 6519 l().emit("handleError", { eventType: "clickQuickView", resp: e }); 6520 }); 6521 }); 6522 const n = (e) => { 6523 const t = c()(l().themeSelectors.product.arrows), 6524 n = e.find(".js-qv-product-images"); 6525 c()(l().themeSelectors.product.thumb).on("click", (e) => { 6526 c()(l().themeSelectors.product.thumb).hasClass("selected") && c()(l().themeSelectors.product.thumb).removeClass("selected"), 6527 c()(e.currentTarget).addClass("selected"), 6528 c()(l().themeSelectors.product.cover).attr("src", c()(e.target).data("image-large-src")); 6529 }), 6530 n.find("li").length <= 4 6531 ? t.hide() 6532 : t.on("click", (e) => { 6533 c()(e.target).hasClass("arrow-up") && c()(".js-qv-product-images").position().top < 0 6534 ? (i("up"), c()(l().themeSelectors.arrowDown).css("opacity", "1")) 6535 : c()(e.target).hasClass("arrow-down") && n.position().top + n.height() > c()(".js-qv-mask").height() && (i("down"), c()(l().themeSelectors.arrowUp).css("opacity", "1")); 6536 }), 6537 e 6538 .find(l().selectors.quantityWanted) 6539 .TouchSpin({ 6540 verticalbuttons: !0, 6541 verticalupclass: "material-icons touchspin-up", 6542 verticaldownclass: "material-icons touchspin-down", 6543 buttondown_class: "btn btn-touchspin js-touchspin", 6544 buttonup_class: "btn btn-touchspin js-touchspin", 6545 min: 1, 6546 max: 1e6, 6547 }), 6548 c()(l().themeSelectors.touchspin).off("touchstart.touchspin"); 6549 }, 6550 i = (e) => { 6551 const t = c()(".js-qv-product-images"); 6552 var n = c()(".js-qv-product-images li img").height() + 20, 6553 i = t.position().top; 6554 t.velocity({ translateY: "up" === e ? i + n : i - n }, () => { 6555 0 <= t.position().top ? c()(".arrow-up").css("opacity", ".2") : t.position().top + t.height() <= c()(".js-qv-mask").height() && c()(".arrow-down").css("opacity", ".2"); 6556 }); 6557 }; 6558 c()("body").on("click", l().themeSelectors.listing.searchFilterToggler, () => { 6559 c()(l().themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"), c()(l().themeSelectors.contentWrapper).addClass("hidden-sm-down"), c()(l().themeSelectors.footer).addClass("hidden-sm-down"); 6560 }), 6561 c()(`${l().themeSelectors.listing.searchFilterControls} ${l().themeSelectors.clear}`).on("click", () => { 6562 c()(l().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"), c()(l().themeSelectors.contentWrapper).removeClass("hidden-sm-down"), c()(l().themeSelectors.footer).removeClass("hidden-sm-down"); 6563 }), 6564 c()(`${l().themeSelectors.listing.searchFilterControls} .ok`).on("click", () => { 6565 c()(l().themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"), c()(l().themeSelectors.contentWrapper).removeClass("hidden-sm-down"), c()(l().themeSelectors.footer).removeClass("hidden-sm-down"); 6566 }); 6567 const r = function (e) { 6568 if (void 0 !== e.target.dataset.searchUrl) return e.target.dataset.searchUrl; 6569 if (void 0 === c()(e.target).parent()[0].dataset.searchUrl) throw new Error("Can not parse search U
6569RL"); 6570 return c()(e.target).parent()[0].dataset.searchUrl; 6571 }; 6572 c()("body").on("change", `${l().themeSelectors.listing.searchFilters} input[data-search-url]`, (e) => { 6573 l().emit("updateFacets", r(e)); 6574 }), 6575 c()("body").on("click", l().themeSelectors.listing.searchFiltersClearAll, (e) => { 6576 l().emit("updateFacets", r(e)); 6577 }), 6578 c()("body").on("click", l().themeSelectors.listing.searchLink, (e) => { 6579 e.preventDefault(), l().emit("updateFacets", c()(e.target).closest("a").get(0).href); 6580 }), 6581 window.addEventListener("popstate", (e) => { 6582 var { state: e } = e; 6583 window.location.href = e && e.current_url ? e.current_url : t; 6584 }), 6585 c()("body").on("change", `${l().themeSelectors.listing.searchFilters} select`, (e) => { 6586 const t = c()(e.target).closest("form"); 6587 l().emit("updateFacets", `?${t.serialize()}`); 6588 }), 6589 l().on("updateProductList", (e) => { 6590 !(function (e) { 6591 c()(l().themeSelectors.listing.searchFilters).replaceWith(e.rendered_facets), 6592 c()(l().themeSelectors.listing.activeSearchFilters).replaceWith(e.rendered_active_filters), 6593 c()(l().themeSelectors.listing.listTop).replaceWith(e.rendered_products_top), 6594 c()(l().themeSelectors.listing.list).replaceWith(e.rendered_products), 6595 c()(l().themeSelectors.listing.listBottom).replaceWith(e.rendered_products_bottom), 6596 e.rendered_products_header && c()(l().themeSelectors.listing.listHeader).replaceWith(e.rendered_products_header); 6597 const t = new a(); 6598 6599 send_push_list(e.products1,e.cat_gtm1, e.cat_gtm2, e.cat_gtm3); 6600 t.init(); 6601 })(e), 6602 window.scrollTo(0, 0); 6603 }); 6604 }); 6605 class u { 6606 init() { 6607 const e = c()(".js-modal-arrows"), 6608 t = c()(".js-modal-product-images"); 6609 c()("body") 6610 .on("click", ".js-modal-thumb", (e) => { 6611 c()(".js-modal-thumb").hasClass("selected") && c()(".js-modal-thumb").removeClass("selected"), 6612 c()(e.currentTarget).addClass("selected"), 6613 c()(".js-modal-product-cover").attr("src", c()(e.target).data("image-large-src")), 6614 c()(".js-modal-product-cover").attr("title", c()(e.target).attr("title")), 6615 c()(".js-modal-product-cover").attr("alt", c()(e.target).attr("alt")); 6616 }) 6617 .on("click", "aside#thumbnails", (e) => { 6618 "thumbnails" === e.target.id && c()("#product-modal").modal("hide"); 6619 }), 6620 c()(".js-modal-product-images li").length <= 5 6621 ? e.css("opacity", ".2") 6622 : e.on("click", (e) => { 6623 c()(e.target).hasClass("arrow-up") && t.position().top < 0 6624 ? (this.move("up"), c()(".js-modal-arrow-down").css("opacity", "1")) 6625 : c()(e.target).hasClass("arrow-down") && t.position().top + t.height() > c()(".js-modal-mask").height() && (this.move("down"), c()(".js-modal-arrow-up").css("opacity", "1")); 6626 }); 6627 } 6628 move(e) { 6629 const t = c()(".js-modal-product-images"); 6630 var n = c()(".js-modal-product-images li img").height() + 10, 6631 i = t.position().top; 6632 t.velocity({ translateY: "up" === e ? i + n : i - n }, () => { 6633 0 <= t.position().top ? c()(".js-modal-arrow-up").css("opacity", ".2") : t.position().top + t.height() <= c()(".js-modal-mask").height() && c()(".js-modal-arrow-down").css("opacity", ".2"); 6634 }); 6635 } 6636 } 6637 c()(document).ready(() => { 6638 function o() { 6639 const i = c()(l().themeSelectors.product.cover); 6640 let r = c()(l().themeSelectors.product.selected); 6641 const o = (e, t) => { 6642 const n = t.find(l().themeSelectors.product.thumb); 6643 c()(l().themeSelectors.product.modalProductCover).attr("src", n.data("image-large-src")), e.removeClass("selected"), n.addClass("selected"), i.prop("src", n.data("image-medium-src")); 6644 }; 6645 c()(l().themeSelectors.product.thumb).on("click", (e) => { 6646 (r = c()(l().themeSelectors.product.selected)), o(r, c()(e.target).closest(l().themeSelectors.product.thumbContainer)); 6647 }), 6648 i.swipe({ 6649 swipe: (e, t) => { 6650 r = c()(l().themeSelectors.product.selected); 6651 const n = r.closest(l().themeSelectors.product.thumbContainer); 6652 "right" === t ? (0 < n.prev().length ? o(r, n.prev()) : 0 < n.next().length && o(r, n.next())) : "left" === t && (0 < n.next().length ? o(r, n.next()) : 0 < n.prev().length && o(r, n.prev())); 6653 }, 6654 }); 6655 } 6656 function s() { 6657 2 < c()("#main .js-qv-product-images li").length 6658 ? (c()("#main .js-qv-mask").addClass("scroll"), 6659 c()(".scroll-box-arrows").addClass("scroll"), 6660 c()("#main .js-qv-mask").scrollbox({ direction: "h", distance: 113, autoPlay: !1 }), 6661 c()(".scroll-box-arrows .left").click(() => { 6662 c()("#main .js-qv-mask").trigger("backward"); 6663 }), 6664 c()(".scroll-box-arrows .right").click(() => { 6665 c()("#main .js-qv-mask").trigger("forward"); 6666 })) 6667 : (c()("#main .js-qv-mask").removeClass("scroll"), c()(".scroll-box-arrows").removeClass("scroll")); 6668 } 6669 function a() { 6670 c()(l().themeSelectors.fileInput).on("change", (e) => { 6671 let t; 6672 (e = c()(e.currentTarget)[0]) && (t = e.files[0]) && c()(e).prev().text(t.name); 6673 }); 6674 } 6675 !(function () { 6676 const t = c()(l().selectors.quantityWanted); 6677 t.TouchSpin({ 6678 verticalbuttons: !0, 6679 verticalupclass: "material-icons touchspin-up", 6680 verticaldownclass: "material-icons touchspin-down", 6681 buttondown_class: "btn btn-touchspin js-touchspin", 6682 buttonup_class: "btn btn-touchspin js-touchspin", 6683 min: parseInt(t.attr("min"), 10), 6684 max: 1e6, 6685 }), 6686 c()(l().themeSelectors.touchspin).off("touchstart.touchspin"), 6687 t.focusout(() => { 6688 ("" === t.val() || t.val() < t.attr("min")) && (t.val(t.attr("min")), t.trigger("change")); 6689 }), 6690 c()("body").on("change keyup", l().selectors.quantityWanted, (e) => { 6691 "" !== t.val() && (c()(e.currentTarget).trigger("touchspin.stopspin"), l().emit("updateProduct", { eventType: "updatedProductQuantity", event: e })); 6692 }); 6693 })(), 6694 a(), 6695 o(), 6696 s(), 6697 (function () { 6698 const e = c()(l().themeSelectors.product.tabs); 6699 e.on("show.bs.tab", (e) => { 6700 const t = c()(e.target); 6701 t.addClass(l().themeSelectors.product.activeNavClass), c()(t.attr("href")).addClass(l().themeSelectors.product.activeTabClass); 6702 }), 6703 e.on("hide.bs.tab", (e) => { 6704 const t = c()(e.target); 6705 t.removeClass(l().themeSelectors.product.activeNavClass), c()(t.attr("href")).removeClass(l().themeSelectors.product.activeTabClass); 6706 }); 6707 })(), 6708 l().on("updatedProduct", (e) => { 6709 if ((a(), o(), e && e.product_minimal_quantity)) { 6710 var t = parseInt(e.product_minimal_quantity, 10), 6711 n = l().selectors.quantityWanted; 6712 const r = c()(n); 6713 r.trigger("touchspin.updatesettings", { min: t }); 6714 } 6715 s(), c()(c()(l().themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"), c()(l().themeSelectors.product.imagesModal).replaceWith(e.product_images_modal); 6716 const i = new u(); 6717 i.init(); 6718 }); 6719 }),
6720 (l().cart = l().cart || {}), 6721 (l().cart.active_inputs = null); 6722 const f = 'input[name="product-quantity-spin"]'; 6723 let n = !1, 6724 o = !1, 6725 s = ""; 6726 function d() { 6727 c().each(c()(f), (e, t) => { 6728 c()(t).TouchSpin({ 6729 verticalbuttons: !0, 6730 verticalupclass: "material-icons touchspin-up", 6731 verticaldownclass: "material-icons touchspin-down", 6732 buttondown_class: "btn btn-touchspin js-touchspin js-increase-product-quantity", 6733 buttonup_class: "btn btn-touchspin js-touchspin js-decrease-product-quantity", 6734 min: parseInt(c()(t).attr("min"), 10), 6735 max: 1e6, 6736 }); 6737 }), 6738 c()(l().themeSelectors.touchspin).off("touchstart.touchspin"), 6739 h.switchErrorStat(); 6740 } 6741 c()(document).ready(() => { 6742 6743 const o = ".js-cart-line-product-quantity", 6744 s = []; 6745 l().on("updateCart", () => { 6746 c()(".quickview").modal("hide"); 6747 }), 6748 l().on("updatedCart", () => { 6749 d(); 6750 }), 6751 d(); 6752 const e = c()("body"); 6753 function n(e, t) { 6754 console.log("inicio"); 6755 $(".cart-detailed-totals").css("filter", "blur(3px)"); 6756 if ("on.startupspin" !== (n = t) && "on.startdownspin" !== n) 6757 return { 6758 url: e.attr("href"), 6759 type: (function (e) { 6760 var t = e.split("-"); 6761 let n, 6762 i, 6763 r = ""; 6764 for (n = 0; n < t.length; n += 1) (i = t[n]), 0 !== n && (i = i.substring(0, 1).toUpperCase() + i.substring(1)), (r += i); 6765 return r; 6766 })(e.data("link-action")), 6767 }; 6768 var n; 6769 const i = (function (e) { 6770 const t = e.parents(".bootstrap-touchspin").find(o); 6771 return t.is(":focus") ? null : t; 6772 })(e); 6773 if (!i) return !1; 6774 let r = {}; 6775 return (r = "on.startupspin" === t ? { url: i.data("up-url"), type: "increaseProductQuantity" } : { url: i.data("down-url"), type: "decreaseProductQuantity" }), r; 6776 } 6777 const a = () => { 6778 let e; 6779 for (; 0 < s.length; ) (e = s.pop()), e.abort(); 6780 }; 6781 var t = (e) => { 6782 e.preventDefault(); 6783 const i = c()(e.currentTarget), 6784 { dataset: r } = e.currentTarget, 6785 t = n(i, e.namespace); 6786 t && 6787 (a(), 6788 c() 6789 .ajax({ 6790 url: t.url, 6791 method: "POST", 6792 data: { ajax: "1", action: "update" }, 6793 dataType: "json", 6794 beforeSend(e) { 6795 s.push(e); 6796 }, 6797 }) 6798 .then((e) => { 6799 console.log("fin"); 6800 h.checkUpdateOpertation(e); 6801 const t = ((n = i), c()(n.parents(".bootstrap-touchspin").find("input"))); 6802 var n; 6803 t.val(e.quantity), l().emit("updateCart", { reason: r, resp: e }); 6804 }) 6805 .fail((e) => { 6806 l().emit("handleError", { eventType: "updateProductInCart", resp: e, cartAction: t.type }); 6807 })); 6808 }; 6809 function i(e) { 6810 const t = c()(e.currentTarget); 6811 var n, 6812 i = t.data("update-url"), 6813 r = t.attr("value"), 6814 e = t.val(); 6815 e != parseInt(e, 10) || e < 0 || isNaN(e) 6816 ? t.val(r) 6817 : 0 != (r = e - r) && 6818 (t.attr("value", e), 6819 (i = i), 6820 (r = r), 6821 (r = { ajax: "1", qty: Math.abs(r), action: "update", op: 0 < r ? "up" : "down" }), 6822 (n = t), 6823 a(), 6824 c() 6825 .ajax({ 6826 url: i, 6827 method: "POST", 6828 data: r, 6829 dataType: "json", 6830 beforeSend(e) { 6831 s.push(e); 6832 }, 6833 }) 6834 .then((e) => { 6835 h.checkUpdateOpertation(e), n.val(e.quantity); 6836 let t; 6837 (t = n && n.dataset ? n.dataset : e), l().emit("updateCart", { reason: t, resp: e }); 6838 }) 6839 .fail((e) => { 6840 l().emit("handleError", { eventType: "updateProductQuantityInCart", resp: e }); 6841 })); 6842 } 6843 e.on("click", '[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]', t), 6844 e.on("touchspin.on.startdownspin", f, t), 6845 e.on("touchspin.on.startupspin", f, t), 6846 e.on("focusout keyup", o, (e) => ("keyup" === e.type ? 13 === e.keyCode && i(e) : i(e), !1)); 6847 e.on("hidden.bs.collapse", "#promo-code", () => { 6848 c()(".display-promo").show(400); 6849 }), 6850 e.on("click", ".promo-code-button", (e) => { 6851 e.preventDefault(), c()("#promo-code").collapse("toggle"); 6852 }), 6853 e.on("click", ".display-promo", (e) => { 6854 c()(e.currentTarget).hide(400); 6855 }), 6856 e.on("click", ".js-discount .code", (e) => { 6857 e.stopPropagation(); 6858 const t = c()(e.currentTarget), 6859 n = c()("[name=discount_name]"); 6860 return n.val(t.text()), c()("#promo-code").collapse("show"), c()(".display-promo").hide(400), !1; 6861 }); 6862 }); 6863 const h = { 6864 switchErrorStat: () => { 6865 const e = c()(".checkout a"); 6866 var t; 6867 (c()("#notifications article.alert-danger").length || ("" !== s && !n)) && e.addClass("disabled"), 6868 "" !== s 6869 ? ((t = ` <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>${s}</li></ul></article>`), c()("#notifications .container").html(t), (s = ""), (o = !1), n && e.removeClass("disabled")) 6870 : !n && o && ((n = !1), (o = !1), c()("#notifications .container").html(""), e.removeClass("disabled")); 6871 }, 6872 checkUpdateOpertation: (e) => { 6873 n = e.hasOwnProperty("hasError"); 6874 const t = e.errors || ""; 6875 (s = t instanceof Array ? t.join(" ") : t), (o = !0); 6876 }, 6877 }; 6878 var e = v(590), 6879 t = v.n(e); 6880 class p { 6881 constructor(e) { 6882 this.el = e; 6883 } 6884 init() { 6885 this.el.on("show.bs.dropdown", (e, t) => { 6886 (t ? c()(`#${t}`) : c()(e.target)).find(".dropdown-menu").first().stop(!0, !0).slideDown(); 6887 }), 6888 this.el.on("hide.bs.dropdown", (e, t) => { 6889 (t ? c()(`#${t}`) : c()(e.target)).find(".dropdown-menu").first().stop(!0, !0).slideUp(); 6890 }), 6891 this.el.find("select.link").each((e, t) => { 6892 c()(t).on("change", function () { 6893 window.location = c()(this).val(); 6894 }); 6895 }); 6896 } 6897 } 6898 class m { 6899 init() { 6900 this.parentFocus(), this.togglePasswordVisibility(); 6901 } 6902 parentFocus() { 6903 c()(".js-child-focus").focus(function () {
6904 c()(this).closest(".js-parent-focus").addClass("focus"); 6905 }), 6906 c()(".js-child-focus").focusout(function () { 6907 c()(this).closest(".js-parent-focus").removeClass("focus"); 6908 }); 6909 } 6910 togglePasswordVisibility() { 6911 c()('button[data-action="show-password"]').on("click", function () { 6912 const e = c()(this).closest(".input-group").children("input.js-visible-password"); 6913 "password" === e.attr("type") ? (e.attr("type", "text"), c()(this).text(c()(this).data("textHide"))) : (e.attr("type", "password"), c()(this).text(c()(this).data("textShow"))); 6914 }); 6915 } 6916 } 6917 class g extends p { 6918 init() { 6919 let i; 6920 const e = this; 6921 this.el.find("li").hover((e) => { 6922 if (!this.el.parent().hasClass("mobile")) { 6923 var t = c()(e.currentTarget).attr("class"); 6924 if (i !== t) { 6925 const n = Array.prototype.slice.call(e.currentTarget.classList).map((e) => "string" == typeof e && `.${e}`); 6926 (i = n.join("")), i && 0 === c()(e.target).data("depth") && c()(`${i} .js-sub-menu`).css({ top: c()(`${i}`).height() + c()(`${i}`).position().top }); 6927 } 6928 } 6929 }), 6930 c()("#menu-icon").on("click", () => { 6931 c()("#mobile_top_menu_wrapper").toggle(), e.toggleMobileMenu(); 6932 }), 6933 this.el.on("click", (e) => { 6934 this.el.parent().hasClass("mobile") || e.stopPropagation(); 6935 }), 6936 l().on("responsive update", () => { 6937 c()(".js-sub-menu").removeAttr("style"), e.toggleMobileMenu(); 6938 }), 6939 super.init(); 6940 } 6941 toggleMobileMenu() { 6942 c()("#header").toggleClass("is-open"), c()("#mobile_top_menu_wrapper").is(":visible") ? c()("#notifications, #wrapper, #footer").hide() : c()("#notifications, #wrapper, #footer").show(); 6943 } 6944 } 6945 v(105), v(285); 6946 (l().blockcart = l().blockcart || {}), 6947 (l().blockcart.showModal = (e) => { 6948 function t() { 6949 return c()("#blockcart-modal"); 6950 } 6951 let n = t(); 6952 n.length && n.remove(), 6953 c()("body").append(e), 6954 (n = t()), 6955 n.modal("show").on("hidden.bs.modal", (e) => { 6956 l().emit("updateProduct", { reason: e.currentTarget.dataset, event: e }); 6957 }); 6958 }); 6959 for (const y in t().prototype) l()[y] = t().prototype[y]; 6960 c()(document).ready(() => { 6961 var e = c()(".js-dropdown"); 6962 const t = new m(); 6963 var n = c()('.js-top-menu ul[data-depth="0"]'); 6964 const i = new p(e), 6965 r = new g(n), 6966 o = new a(), 6967 s = new u(); 6968 i.init(), 6969 t.init(), 6970 r.init(), 6971 o.init(), 6972 s.init(), 6973 c()('.carousel[data-touch="true"]').swipe({ 6974 swipe(e, t) { 6975 "left" === t && c()(this).carousel("next"), "right" === t && c()(this).carousel("prev"); 6976 }, 6977 allowPageScroll: "vertical", 6978 }); 6979 }); 6980 })(); 6981})(); 6982 6983 6984function send_push_list(products, cat1, cat2, cat3){ 6985 6986 console.log(products); 6987 var gtm =" items: [{"; 6988 6989 products.forEach( function(valor, indice, array) { 6990 console.log(valor); 6991 var colc=""; 6992 if (typeof valor.grouped_features.Colección !== 'undefined') { 6993 var colc = valor.grouped_features.Colección.value; 6994 } 6995 var mcer=""; 6996 if (typeof valor.grouped_features.MCER !== 'undefined') { 6997 var mcer = valor.grouped_features.MCER.value; 6998 } 6999 7000 var materia=""; 7001 if (typeof valor.grouped_features.Materia !== 'undefined') { 7002 var materia = valor.grouped_features.Materia.value; 7003 } 7004 gtm+= "item_name:'"+valor.name+"',"; 7005 gtm+= "item_id:'"+valor.id_product+"',"; 7006 gtm+= "item_brand:'vicens_vives',"; 7007 gtm+= "item_category1:'"+cat1+"',"; 7008 gtm+= "item_category2:'"+cat2+"',"; 7009 gtm+= "item_category3:'"+cat3+"',"; 7010 gtm+= "item_course:'"+valor.grouped_features.Curso.value+"',"; 7011 if (!materia){ 7012 gtm+= "item_matter:'(not set)',"; 7013 }else{ 7014 gtm+= "item_matter:'"+valor.grouped_features.Materia.value+"',"; 7015 7016 } 7017 gtm+= "item_variant:'"+valor.grouped_features.Idioma.value+"',"; 7018 if (!colc){ 7019 gtm+= "item_collection:'(not set)',"; 7020 }else{ 7021 gtm+= "item_collection:'"+valor.grouped_features.Colección.value+"',"; 7022 7023 } 7024 7025 gtm+= "location_id:'"+valor.grouped_features.CCAA.value+"',"; 7026 if (!mcer){ 7027 gtm+= "affiliation:'(not set)',"; 7028 }else{ 7029 gtm+= "affiliation:'"+valor.grouped_features.MCER.value+"',"; 7030 7031 } 7032 7033 7034 gtm+= "item_list_name:'category',"; 7035 gtm+= "index:'"+indice+"',"; 7036 gtm+= "discount:'(not set)',"; 7037 gtm+= "price:"+valor.price_amount+","; 7038 gtm+= "quantity:1,"; 7039 }); 7040 gtm +=" }]"; 7041 console.log(gtm); 7042 dataLayer.push({ ecommerce: null }); // hack: clean previous data 7043 dataLayer.push({ 7044 event : 'view_item_list', 7045 ecommerce: { 7046 currency: 'EUR', 7047 gtm 7048 } 7049 }); 7050 7051}
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.