1/*! MODEDEMPLOI_JS - v0.1.0 - 2022-02-09 */ 2 3 4 5/*----------------------------------------------*/ 6/*DONT TOUCH THIS FILE, ITS COMPILED WITH GRUNT*/ 7/*IF YOU HAVE TO DO JS, DO IT IN r9 REPO*/ 8/*----------------------------------------------*/ 9 10 11 12var $ = jQuery.noConflict(); 13 14/*! 15 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript 16 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js 17 * License: MIT (http://www.opensource.org/licenses/mit-license.php) 18 */ 19 20!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}
20function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g}); 21/*jslint browser:true, node:true*/ 22/*global define, Event, Node*/ 23 24 25/** 26 * Instantiate fast-clicking listeners on the specified layer. 27 * 28 * @constructor 29 * @param {Element} layer The layer to listen on 30 * @param {Object} options The options to override the defaults 31 */ 32function FastClick(layer, options) { 33 'use strict'; 34 var oldOnClick; 35 36 options = options || {}; 37 38 /** 39 * Whether a click is currently being tracked. 40 * 41 * @type boolean 42 */ 43 this.trackingClick = false; 44 45 46 /** 47 * Timestamp for when click tracking started. 48 * 49 * @type number 50 */ 51 this.trackingClickStart = 0; 52 53 54 /** 55 * The element being tracked for a click. 56 * 57 * @type EventTarget 58 */ 59 this.targetElement = null; 60 61 62 /** 63 * X-coordinate of touch start event. 64 * 65 * @type number 66 */ 67 this.touchStartX = 0; 68 69 70 /** 71 * Y-coordinate of touch start event. 72 * 73 * @type number 74 */ 75 this.touchStartY = 0; 76 77 78 /** 79 * ID of the last touch, retrieved from Touch.identifier. 80 * 81 * @type number 82 */ 83 this.lastTouchIdentifier = 0; 84 85 86 /** 87 * Touchmove boundary, beyond which a click will be cancelled. 88 * 89 * @type number 90 */ 91 this.touchBoundary = options.touchBoundary || 10; 92 93 94 /** 95 * The FastClick layer. 96 * 97 * @type Element 98 */ 99 this.layer = layer; 100 101 /** 102 * The minimum time between tap(touchstart and touchend) events 103 * 104 * @type number 105 */ 106 this.tapDelay = options.tapDelay || 200; 107 108 if (FastClick.notNeeded(layer)) { 109 return; 110 } 111 112 // Some old versions of Android don't have Function.prototype.bind 113 function bind(method, context) { 114 return function() { return method.apply(context, arguments); }; 115 } 116 117 118 var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel']; 119 var context = this; 120 for (var i = 0, l = methods.length; i < l; i++) { 121 context[methods[i]] = bind(context[methods[i]], context); 122 } 123 124 // Set up event handlers as required 125 if (deviceIsAndroid) { 126 layer.addEventListener('mouseover', this.onMouse, true); 127 layer.addEventListener('mousedown', this.onMouse, true); 128 layer.addEventListener('mouseup', this.onMouse, true); 129 } 130 131 layer.addEventListener('click', this.onClick, true); 132 layer.addEventListener('touchstart', this.onTouchStart, false); 133 layer.addEventListener('touchmove', this.onTouchMove, false); 134 layer.addEventListener('touchend', this.onTouchEnd, false); 135 layer.addEventListener('touchcancel', this.onTouchCancel, false); 136 137 // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) 138 // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick 139 // layer when they are cancelled. 140 if (!Event.prototype.stopImmediatePropagation) { 141 layer.removeEventListener = function(type, callback, capture) { 142 var rmv = Node.prototype.removeEventListener; 143 if (type === 'click') { 144 rmv.call(layer, type, callback.hijacked || callback, capture); 145 } else { 146 rmv.call(layer, type, callback, capture); 147 } 148 }; 149 150 layer.addEventListener = function(type, callback, capture) { 151 var adv = Node.prototype.addEventListener; 152 if (type === 'click') { 153 adv.call(layer, type, callback.hijacked || (callback.hijacked
vendor: 17,205 bytes, lines 153-700
153= function(event) { 154 if (!event.propagationStopped) { 155 callback(event); 156 } 157 }), capture); 158 } else { 159 adv.call(layer, type, callback, capture); 160 } 161 }; 162 } 163 164 // If a handler is already declared in the element's onclick attribute, it will be fired before 165 // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and 166 // adding it as listener. 167 if (typeof layer.onclick === 'function') { 168 169 // Android browser on at least 3.2 requires a new reference to the function in layer.onclick 170 // - the old one won't work if passed to addEventListener directly. 171 oldOnClick = layer.onclick; 172 layer.addEventListener('click', function(event) { 173 oldOnClick(event); 174 }, false); 175 layer.onclick = null; 176 } 177} 178 179 180/** 181 * Android requires exceptions. 182 * 183 * @type boolean 184 */ 185var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0; 186 187 188/** 189 * iOS requires exceptions. 190 * 191 * @type boolean 192 */ 193var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); 194 195 196/** 197 * iOS 4 requires an exception for select elements. 198 * 199 * @type boolean 200 */ 201var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); 202 203 204/** 205 * iOS 6.0(+?) requires the target element to be manually derived 206 * 207 * @type boolean 208 */ 209var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); 210 211/** 212 * BlackBerry requires exceptions. 213 * 214 * @type boolean 215 */ 216var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0; 217 218/** 219 * Determine whether a given element requires a native click. 220 * 221 * @param {EventTarget|Element} target Target DOM element 222 * @returns {boolean} Returns true if the element needs a native click 223 */ 224FastClick.prototype.needsClick = function(target) { 225 'use strict'; 226 switch (target.nodeName.toLowerCase()) { 227 228 // Don't send a synthetic click to disabled inputs (issue #62) 229 case 'button': 230 case 'select': 231 case 'textarea': 232 if (target.disabled) { 233 return true; 234 } 235 236 break; 237 case 'input': 238 239 // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) 240 if ((deviceIsIOS && target.type === 'file') || target.disabled) { 241 return true; 242 } 243 244 break; 245 case 'label': 246 case 'video': 247 return true; 248 } 249 250 return (/\bneedsclick\b/).test(target.className); 251}; 252 253 254/** 255 * Determine whether a given element requires a call to focus to simulate click into element. 256 * 257 * @param {EventTarget|Element} target Target DOM element 258 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. 259 */ 260FastClick.prototype.needsFocus = function(target) { 261 'use strict'; 262 switch (target.nodeName.toLowerCase()) { 263 case 'textarea': 264 return true; 265 case 'select': 266 return !deviceIsAndroid; 267 case 'input': 268 switch (target.type) { 269 case 'button': 270 case 'checkbox': 271 case 'file': 272 case 'image': 273 case 'radio': 274 case 'submit': 275 return false; 276 } 277 278 // No point in attempting to focus disabled inputs 279 return !target.disabled && !target.readOnly; 280 default: 281 return (/\bneedsfocus\b/).test(target.className); 282 } 283}; 284 285 286/** 287 * Send a click event to the specified element. 288 * 289 * @param {EventTarget|Element} targetElement 290 * @param {Event} event 291 */ 292FastClick.prototype.sendClick = function(targetElement, event) { 293 'use strict'; 294 var clickEvent, mouseUpEvent, mouseDownEvent, touch; 295 296 // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) 297 if (document.activeElement && document.activeElement !== targetElement) { 298 document.activeElement.blur(); 299 } 300 301 touch = event.changedTouches[0]; 302 303 mouseDownEvent = document.createEvent('MouseEvents'); 304 mouseDownEvent.initMouseEvent('mousedown', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); 305 mouseDownEvent.forwardedTouchEvent = true; 306 targetElement.dispatchEvent(mouseDownEvent); 307 308 mouseUpEvent = document.createEvent('MouseEvents'); 309 mouseUpEvent.initMouseEvent('mouseup', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); 310 mouseUpEvent.forwardedTouchEvent = true; 311 targetElement.dispatchEvent(mouseUpEvent); 312 313 // Synthesise a click event, with an extra attribute so it can be tracked 314 clickEvent = document.createEvent('MouseEvents'); 315 clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); 316 clickEvent.forwardedTouchEvent = true; 317 targetElement.dispatchEvent(clickEvent); 318}; 319 320FastClick.prototype.determineEventType = function(targetElement) { 321 'use strict'; 322 323 //Issue #159: Android Chrome Select Box does not open with a synthetic click event 324 if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') { 325 return 'mousedown'; 326 } 327 328 return 'click'; 329}; 330 331 332/** 333 * @param {EventTarget|Element} targetElement 334 */ 335FastClick.prototype.focus = function(targetElement) { 336 'use strict'; 337 var length; 338 339 // Issue #160: on iOS 7, some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724. 340 if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time') { 341 length = targetElement.value.length; 342 targetElement.setSelectionRange(length, length); 343 } else { 344 targetElement.focus(); 345 } 346}; 347 348 349/** 350 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. 351 * 352 * @param {EventTarget|Element} targetElement 353 */ 354FastClick.prototype.updateScrollParent = function(targetElement) { 355 'use strict'; 356 var scrollParent, parentElement; 357 358 scrollParent = targetElement.fastClickScrollParent; 359 360 // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the 361 // target element was moved to another parent. 362 if (!scrollParent || !scrollParent.contains(targetElement)) { 363 parentElement = targetElement; 364 do { 365 if (parentElement.scrollHeight > parentElement.offsetHeight) { 366 scrollParent = parentElement; 367 targetElement.fastClickScrollParent = parentElement; 368 break; 369 } 370 371 parentElement = parentElement.parentElement; 372 } while (parentElement); 373 } 374 375 // Always update the scroll top tracker if possible. 376 if (scrollParent) { 377 scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; 378 } 379}; 380 381 382/** 383 * @param {EventTarget} targetElement 384 * @returns {Element|EventTarget} 385 */ 386FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { 387 'use strict'; 388 389 // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. 390 if (eventTarget.nodeType === Node.TEXT_NODE) { 391 return eventTarget.parentNode; 392 } 393 394 return eventTarget; 395}; 396 397 398/** 399 * On touch start, record the position and scroll offset. 400 * 401 * @param {Event} event 402 * @returns {boolean} 403 */ 404FastClick.prototype.onTouchStart = function(event) { 405 'use strict'; 406 var targetElement, touch, selection; 407 408 // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). 409 if (event.targetTouches.length > 1) { 410 return true; 411 } 412 413 targetElement = this.getTargetElementFromEventTarget(event.target); 414 touch = event.targetTouches[0]; 415 416 if (deviceIsIOS) { 417 418 // Only trusted events will deselect text on iOS (issue #49) 419 selection = window.getSelection(); 420 if (selection.rangeCount && !selection.isCollapsed) { 421 return true; 422 } 423 424 if (!deviceIsIOS4) { 425 426 // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): 427 // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched 428 // with the same identifier as the touch event that previously triggered the click that triggered the alert. 429 // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an 430 // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. 431 // Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string, 432 // which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long, 433 // random integers, it's safe to to continue if the identifier is 0 here. 434 if (touch.identifier && touch.identifier === this.lastTouchIdentifier) { 435 event.preventDefault(); 436 return false; 437 } 438 439 this.lastTouchIdentifier = touch.identifier; 440 441 // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: 442 // 1) the user does a fling scroll on the scrollable layer 443 // 2) the user stops the fling scroll with another tap 444 // then the event.target of the last 'touchend' event will be the element that was under the user's finger 445 // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check 446 // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). 447 this.updateScrollParent(targetElement); 448 } 449 } 450 451 this.trackingClick = true; 452 this.trackingClickStart = event.timeStamp; 453 this.targetElement = targetElement; 454 455 this.touchStartX = touch.pageX; 456 this.touchStartY = touch.pageY; 457 458 // Prevent phantom clicks on fast double-tap (issue #36) 459 if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { 460 event.preventDefault(); 461 } 462 463 return true; 464}; 465 466 467/** 468 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. 469 * 470 * @param {Event} event 471 * @returns {boolean} 472 */ 473FastClick.prototype.touchHasMoved = function(event) { 474 'use strict'; 475 var touch = event.changedTouches[0], boundary = this.touchBoundary; 476 477 if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { 478 return true; 479 } 480 481 return false; 482}; 483 484 485/** 486 * Update the last position. 487 * 488 * @param {Event} event 489 * @returns {boolean} 490 */ 491FastClick.prototype.onTouchMove = function(event) { 492 'use strict'; 493 if (!this.trackingClick) { 494 return true; 495 } 496 497 // If the touch has moved, cancel the click tracking 498 if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { 499 this.trackingClick = false; 500 this.targetElement = null; 501 } 502 503 return true; 504}; 505 506 507/** 508 * Attempt to find the labelled control for the given label element. 509 * 510 * @param {EventTarget|HTMLLabelElement} labelElement 511 * @returns {Element|null} 512 */ 513FastClick.prototype.findControl = function(labelElement) { 514 'use strict'; 515 516 // Fast path for newer browsers supporting the HTML5 control attribute 517 if (labelElement.control !== undefined) { 518 return labelElement.control; 519 } 520 521 // All browsers under test that support touch events also support the HTML5 htmlFor attribute 522 if (labelElement.htmlFor) { 523 return document.getElementById(labelElement.htmlFor); 524 } 525 526 // If no for attribute exists, attempt to retrieve the first labellable descendant element 527 // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label 528 return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); 529}; 530 531 532/** 533 * On touch end, determine whether to send a click event at once. 534 * 535 * @param {Event} event 536 * @returns {boolean} 537 */ 538FastClick.prototype.onTouchEnd = function(event) { 539 'use strict'; 540 var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; 541 542 if (!this.trackingClick) { 543 return true; 544 } 545 546 // Prevent phantom clicks on fast double-tap (issue #36) 547 if ((event.timeStamp - this.lastClickTime) < this.tapDelay) { 548 this.cancelNextClick = true; 549 return true; 550 } 551 552 // Reset to prevent wrong click cancel on input (issue #156). 553 this.cancelNextClick = false; 554 555 this.lastClickTime = event.timeStamp; 556 557 trackingClickStart = this.trackingClickStart; 558 this.trackingClick = false; 559 this.trackingClickStart = 0; 560 561 // On some iOS devices, the targetElement supplied with the event is invalid if the layer 562 // is performing a transition or scroll, and has to be re-detected manually. Note that 563 // for this to function correctly, it must be called *after* the event target is checked! 564 // See issue #57; also filed as rdar://13048589 . 565 if (deviceIsIOSWithBadTarget) { 566 touch = event.changedTouches[0]; 567 568 // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null 569 targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; 570 targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; 571 } 572 573 targetTagName = targetElement.tagName.toLowerCase(); 574 if (targetTagName === 'label') { 575 forElement = this.findControl(targetElement); 576 if (forElement) { 577 this.focus(targetElement); 578 if (deviceIsAndroid) { 579 return false; 580 } 581 582 targetElement = forElement; 583 } 584 } else if (this.needsFocus(targetElement)) { 585 586 // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. 587 // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). 588 if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) { 589 this.targetElement = null; 590 return false; 591 } 592 593 this.focus(targetElement); 594 this.sendClick(targetElement, event); 595 596 // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. 597 // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others) 598 if (!deviceIsIOS || targetTagName !== 'select') { 599 this.targetElement = null; 600 event.preventDefault(); 601 } 602 603 return false; 604 } 605 606 if (deviceIsIOS && !deviceIsIOS4) { 607 608 // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled 609 // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). 610 scrollParent = targetElement.fastClickScrollParent; 611 if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { 612 return true; 613 } 614 } 615 616 // Prevent the actual click from going though - unless the target node is marked as requiring 617 // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. 618 if (!this.needsClick(targetElement)) { 619 event.preventDefault(); 620 this.sendClick(targetElement, event); 621 } 622 623 return false; 624}; 625 626 627/** 628 * On touch cancel, stop tracking the click. 629 * 630 * @returns {void} 631 */ 632FastClick.prototype.onTouchCancel = function() { 633 'use strict'; 634 this.trackingClick = false; 635 this.targetElement = null; 636}; 637 638 639/** 640 * Determine mouse events which should be permitted. 641 * 642 * @param {Event} event 643 * @returns {boolean} 644 */ 645FastClick.prototype.onMouse = function(event) { 646 'use strict'; 647 648 // If a target element was never set (because a touch event was never fired) allow the event 649 if (!this.targetElement) { 650 return true; 651 } 652 653 if (event.forwardedTouchEvent) { 654 return true; 655 } 656 657 // Programmatically generated events targeting a specific element should be permitted 658 if (!event.cancelable) { 659 return true; 660 } 661 662 // Derive and check the target element to see whether the mouse event needs to be permitted; 663 // unless explicitly enabled, prevent non-touch click events from triggering actions, 664 // to prevent ghost/doubleclicks. 665 if (!this.needsClick(this.targetElement) || this.cancelNextClick) { 666 667 // Prevent any user-added listeners declared on FastClick element from being fired. 668 if (event.stopImmediatePropagation) { 669 event.stopImmediatePropagation(); 670 } else { 671 672 // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) 673 event.propagationStopped = true; 674 } 675 676 // Cancel the event 677 event.stopPropagation(); 678 event.preventDefault(); 679 680 return false; 681 } 682 683 // If the mouse event is permitted, return true for the action to go through. 684 return true; 685}; 686 687 688/** 689 * On actual clicks, determine whether this is a touch-generated click, a click action occurring 690 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or 691 * an actual click which should be permitted. 692 * 693 * @param {Event} event 694 * @returns {boolean} 695 */ 696FastClick.prototype.onClick = function(event) { 697 'use strict'; 698 var permitted; 699 700 // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to fal
700se and return early. This will cause onTouchEnd to return early. 701 if (this.trackingClick) { 702 this.targetElement = null; 703 this.trackingClick = false; 704 return true; 705 } 706 707 // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. 708 if (event.target.type === 'submit' && event.detail === 0) { 709 return true; 710 } 711 712 permitted = this.onMouse(event); 713 714 // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. 715 if (!permitted) { 716 this.targetElement = null; 717 } 718 719 // If clicks are permitted, return true for the action to go through. 720 return permitted; 721}; 722 723 724/** 725 * Remove all FastClick's event listeners. 726 * 727 * @returns {void} 728 */ 729FastClick.prototype.destroy = function() { 730 'use strict'; 731 var layer = this.layer; 732 733 if (deviceIsAndroid) { 734 layer.removeEventListener('mouseover', this.onMouse, true); 735 layer.removeEventListener('mousedown', this.onMouse, true); 736 layer.removeEventListener('mouseup', this.onMouse, true); 737 } 738 739 layer.removeEventListener('click', this.onClick, true); 740 layer.removeEventListener('touchstart', this.onTouchStart, false); 741 layer.removeEventListener('touchmove', this.onTouchMove, false); 742 layer.removeEventListener('touchend', this.onTouchEnd, false); 743 layer.removeEventListener('touchcancel', this.onTouchCancel, false); 744}; 745 746 747/** 748 * Check whether FastClick is needed. 749 * 750 * @param {Element} layer The layer to listen on 751 */ 752FastClick.notNeeded = function(layer) { 753 'use strict'; 754 var metaViewport; 755 var chromeVersion; 756 var blackberryVersion; 757 758 // Devices that don't support touch don't need FastClick 759 if (typeof window.ontouchstart === 'undefined') { 760 return true; 761 } 762 763 // Chrome version - zero for other browsers 764 chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1]; 765 766 if (chromeVersion) { 767 768 if (deviceIsAndroid) { 769 metaViewport = document.querySelector('meta[name=viewport]'); 770 771 if (metaViewport) { 772 // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) 773 if (metaViewport.content.indexOf('user-scalable=no') !== -1) { 774 return true; 775 } 776 // Chrome 32 and above with width=device-width or less don't need FastClick 777 if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) { 778 return true; 779 } 780 } 781 782 // Chrome desktop doesn't need FastClick (issue #15) 783 } else { 784 return true; 785 } 786 } 787 788 if (deviceIsBlackBerry10) { 789 blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/); 790 791 // BlackBerry 10.3+ does not require Fastclick library. 792 // https://github.com/ftlabs/fastclick/issues/251 793 if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) { 794 metaViewport = document.querySelector('meta[name=viewport]'); 795 796 if (metaViewport) { 797 // user-scalable=no eliminates click delay. 798 if (metaViewport.content.indexOf('user-scalable=no') !== -1) { 799 return true; 800 } 801 // width=device-width (or less than device-width) eliminates click delay. 802 if (document.documentElement.scrollWidth <= window.outerWidth) { 803 return true; 804 } 805 } 806 } 807 } 808 809 // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) 810 if (layer.style.msTouchAction === 'none') { 811 return true; 812 } 813 814 return false; 815}; 816 817 818/** 819 * Factory method for creating a FastClick object 820 * 821 * @param {Element} layer The layer to listen on 822 * @param {Object} options The options to override the defaults 823 */ 824FastClick.attach = function(layer, options) { 825 'use strict'; 826 return new FastClick(layer, options); 827}; 828 829 830if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { 831 832 // AMD. Register as an anonymous module. 833 define(function() { 834 'use strict'; 835 return FastClick; 836 }); 837} else if (typeof module !== 'undefined' && module.exports) { 838 module.exports = FastClick.attach; 839 module.exports.FastClick = FastClick; 840} else { 841 window.FastClick = FastClick; 842} 843/*! IMANOK */ 844/*---------*/ 845 846 847var action = function () { 848 TweenMax.to($('.page-content-wrapper'), 2.5, {css:{rotationY: '180deg'}, ease:Bounce.easeOut}); 849 $('body').append('<a href="http://www.revolution9.fr/" target="_blank" title="Crédits : Révolution 9" id="r9" style="width: 30px; position:fixed;
849 right: 15px; bottom : 50px; z-index: 10000"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABaCAYAAAAilKGMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpBMDk5RTlGMEJERDcxMUUzQkQ4M0ZEODJDRTdGN0NGNCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpBMDk5RTlGMUJERDcxMUUzQkQ4M0ZEODJDRTdGN0NGNCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkEwOTlFOUVFQkRENzExRTNCRDgzRkQ4MkNFN0Y3Q0Y0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkEwOTlFOUVGQkRENzExRTNCRDgzRkQ4MkNFN0Y3Q0Y0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Q0i/3wAACN5JREFUeNrsnXuQjlUcxx9rEeWSCF0kNJEKEdUfBo3UUDG1myRdSJkUM9VUpDRJKjMpohopl3TB5FK0imooCiPXZeS2Mi65X9Yl2b7feY+Z7fWeZ5/nPOf3PM+7u2fmO2d23/d5zjmf9zzn8ju/c54yBQUFTmmwH8qUgi0FWwqW4XTjjuURNYGuh66B6kF1oVpQVagyVC7psjPQEeg4tA/6G9oDbYPyoC3QWv6dmZtTUGLAAubViLpAHaBboIpC+c6HVkO/Ky0C6K3FCixgVkHUA3pc1c6owmZoPvQN9D1AH09LsABaDdEApaoxexJPKMCfQXMB+WTswQJoGUSPQMOhmmnQj+yHPoXGAvCfsQQLqLURfQLdnoYdNQs6G3oDgJfEBiygtkQ0C6pTDEZDC6DnAXhZpGABtb1qsyo6xSt8CT0HwNtDBwuo7RDNgc4rpmP5o9AQaCQA/xsKWEBtjIjtUZUSMFlaDD0EuBtFwQLqBYh+U7OmkhKOQX0Ad4ok2FGI+pXQqf5ojs+DNA0pwQJqK9UElEkzIPmqg7WR7++gLMA9ahPsL2quH8dwAPoBWqoMMpugnQBwWOU9ExFtFt2h/tD5AdKiHeI23PtQYLBqaDU/ZjAPqtnTdHYyXh9RlKUBom8VaNOwCroVae4NCnYGortjAnQHNBSahIIdM7RpXIFoOXRRgHwsUXDzjcAiE5xVcbBcNmKgpzj1hN7yUxgXuGwSRga8DSdIXbw+LRlJfz8YA6jrodYowBAbUFWYQL4B79EZetXrlzNSXBxlYE/cEkD/sHlT3I9ttA3L1iDU/s6+wCqD9c0RQuWg/E7TttRDOGzpPuPAqqafGsvhVWZEUNlz9wTU04Jp1LV0n1pqAuEZ7A0RQc2Futk0gKTovJohqm3xltlqWOoJbBTrVVyXutd0duOnbRS453uAm+EF7JURgGXPv04yART+Cf54Arfm0n52keNYZGCXaj/CCmug5lLtKspTCdFg6AXhZqxJKh+Hwp1VtZBr62AbUAGQK8S0G18G0dRZXf1N/4YawmVgOvShmOcGtkKIUFdCMwPAJLw+0H1QUydaK9yTqcAWbgrCdNnphdo63hBqb0RvR/CEabPEJhTl2a+rsWEFDtS/MADKWjlK1ZA4BTLsCn2sGxUcCikjswxtAM/GEKrWFFAY7D8hZWKqQW3lutswJ76hHfJYVgf2WAgZ4OxqgcF1wyKcbnsJVVUnmhLsiRAysMzvLAs1oaHjzfDOJRqufCy0aHDxE5rrOq/8EBJfbHBNDw9Ny/9mcPgxKqih2JuWbQRuoakObBid1wqDa+5w+YzuQSPO6aYTbpsTATjHSSw8XhtC2errmoKDISSe67MZ4Fj1Rs3H41NBTQK8WzUjR0IoW70owfq14jfTzKo4KB/oaZCZm0NP77EhlO1iHdj9wgmfRCEP+LzmOs3/F6jaKDbEMxwZpAS7Vzhhkx/ucs3/N/i8D9fQzgiXr7wO7J4Ygr1U839fkJQVbbcTYigMdlcMwercg0ycLw5EBVa6xpo8ijoLlom/rnTnfFwHNs9Jn2Cy/UnaFrIvJVjVy0ruhypncM2hNPqx9+hqrHStNTFMH7b4WGcIg93qltgWwYQvDPp4FQomlrjqwmA3u4HdIJhwLeUUbKOW7Ygh2HVuGd8omDDT8usUonMY3h5DsMvdwOYKJ57t9Yuo3fRx0LnxrPaTKO7FZkhyFfpEUTV2rTDYfiikV48b3apBgZqi+gkNhcu1MNlHIiNp6rdTeKLAmdQsVRvdahgXDh/VfLxU+bv6CY2Fwc720jmsFM4Ejc4rAK8HVC4JaCPoKyfhN6ALcw3SbC5YHj5B5zifZGoa4Q7CcLnXYRI0BiC5qnBUdVQNPFw72SA9SYfqOXiC8ryAXeyEF3jgThsf35/p9zAHtXW1pWAZRnsdJy5x4hk8rxokBY4spDassNnM8QQWNWKP8ETBNAwy9KXNEszTQN0xVbqZzYKYQX2/iA5N1wzQR/YuoTz9DKhzdB/qpph0fOgbA6AcVnGJe5zh9d0cmbMW2Cy57ozPdKmxp51o3Hr4aHH/Kj0SP0p2j/RRW7m6+7RQHocjX2vcvuB2XgHhthMEyMXLGWoaTXi0WP3FqaHJbusU+adH99cC+ebOyWZFneXlViNnCoLlmV1DpTbLKSvaawK3JsxsLwekuYGdBr3j2HdD74uMfSDcnDzjyLgV8dQNTwagog7b+RFRW4sZm4aMSQ5/zvrS8jwt20dZTUHeH/D65aKWKyZbztzrwlA5y5ouAJWTpl5+LiiqxtIatVNNPYOGXfjF6whCLav6hU6Wb82za1v7dGlyr7Gqc5lgKYN5glDZV0wUgMqRSye/UL00BQyj1NgyaKgiBJVPFe2h3S3fmivEHQHVyPjv9WxDeusF3Y/KCUdNAyO1W77o5vk51MgyVHq18AwYY0uf17V2GztW+Lj2tAS0EjTESZxk10igprYPAtVzjVWF4QkY9wfMNP0EWiDT2wI89jy35iVH74kYtE1lTV0V9EZ+wNLHnma7oKud61WHsNlHb88VgHughx25rZ5bVJsqe2ikppCvOIkjQYMGjjbedRLnwGw4u8KpzqXhkKy+mjlx/8GtjrxPwCKoq99Dy2yC5RmyKyy3awWqs6jkRBM4nOQJnKds3tTk8PMWaiYS552CXg0qA6TsFkbH9QMujRwj0hgqFySzbJ/vFRisgsvxY7c0hMpH/ylAFd37FQQsRwc8WaJNmgClI11vAJ0XRmKBXomizmNhRlvFGCh3nH8IvXj2jNnYgy0Ed7oaFsUt/AT1tzHgDx2sgsvNY/QIeSwmQNkpcelnelQZsP3aKVqYOHypHCFQHkU6M+r3fVl/URrgXuIk1sqyQyoD94/RbDjGSbxuKhYvUJ
vendor: 5,308 bytes, lines 849-879
849N8A91NiF52Ei/8kTgXi8vmNGeOk3ilSWzBFgJ8lZNYL8pykg5LMJgpLVWjkKmAuT7OY7tQX0apILeFWih7A93mayTZCegry6UQWr82qVnSr9By2/P5YgO2JIVSsELhPwEGAMT0KTlma6maAAAAAElFTkSuQmCC" alt=""/></a>'); 850 TweenMax.from($('#r9'), 3, {css:{bottom: '150%'}, delay: 3, ease:Bounce.easeOut}); 851}; 852 853jQuery(function(){ 854 if (! window.TweenMax) { 855 var s = document.createElement("script"); 856 s.type = "text/javascript"; 857 s.src = "https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js"; 858 $("head").append(s); 859 } 860 861 862 var k = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65], 863 n = 0; 864 $(document).keydown(function (e) { 865 if (e.keyCode === k[n++]) { 866 if (n === k.length) { 867 action(); 868 return !1 869 } 870 } else k = 0 871 }); 872}); 873 874/*! jQuery UI - v1.11.4 - 2016-06-09 875* http://jqueryui.com 876* Includes: core.js, widget.js, accordion.js, datepicker.js 877* Copyright jQuery Foundation and other contributors; Licensed MIT */ 878 879(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|object)$/.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}function s(e){for(var t,i;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=a(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",o)}function o(){e.datepicker._isDisabledDatepicker(u.inline?u.dpDiv.parent()[0]:u.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){e.extend(t,i);for(var s in i)null==i[s]&&(t[s]=i[s]);return t}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({scrollParent:function(t){var i=this.css("position"),s="absolute"===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return s&&"static"===t.css("position")?!1:n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 4,237 bytes, line 879
879)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(i){return t(i,!isNaN(e.attr(i,"tabindex")))},tabbable:function(i){var s=e.attr(i,"tabindex"),n=isNaN(s);return(n||s>=0)&&t(i,!n)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(t,i){function s(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){e(this).css(a,s(this,t)+"px")})},e.fn["outer"+i]=function(t,n){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){e(this).css(a,s(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var i,s,n=e(this[0]);n.length&&n[0]!==document;){if(i=n.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0}}),e.ui.plugin={add:function(t,i,s){var n,a=e.ui[t].prototype;for(n in s)a.plugins[n]=a.plugins[n]||[],a.plugins[n].push([i,s[n]])},call:function(e,t,i,s){var n,a=e.plugins[t];if(a&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(n=0;a.length>n;n++)e.options[a[n][0]]&&a[n][1].apply(e.element,i)}};var h=0,l=Array.prototype.slice;e.cleanData=function(t){return function(i){var s,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.remove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=function(t,i,s){var n,a,o,r,h={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new o(e,t)},e.extend(o,a,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=s.apply(this,arguments),this._super=i,this._superApply=a,t}}(),void 0):(h[t]=s,void 0)}),o.prototype=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete a._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,s,n=l.call(arguments,1),a=0,o=n.length;o>a;a++)for(i in n[a])s=n[a][i],n[a].hasOwnProperty(i)&&void 0!==s&&(t[i]=e.isPlainObject(s)?e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(n){var a="string"==typeof n,o=l.call(arguments,1
vendor: 24,305 bytes, lines 879-880
879),r=this;return a?this.each(function(){var i,a=e.data(this,s);return"instance"===n?(r=a,!1):a?e.isFunction(a[n])&&"_"!==n.charAt(0)?(i=a[n].apply(a,o),i!==a&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+n+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+n+"'")}):(o.length&&(n=e.widget.extend.apply(null,[n].concat(o))),this.each(function(){var t=e.data(this,s);t?(t.option(n||{}),t._init&&t._init()):e.data(this,s,new i(n,this))})),r}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a,o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.extend({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=i}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var n,a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,o){function r(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(r.guid=o.guid=o.guid||r.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+a.eventNamespace,u=h[2];u?n.delegate(u,l,r):i.bind(l,r)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).undelegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,o=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(o)&&o.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var o,r=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),o=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),o&&e.effects&&e.effects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget,e.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||t.active!==!1&&null!=t.active||(t.active=0),this._processPanels(),0>t.active&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?(this._activate(t),void 0):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,s=this.headers.length,n=this.headers.index(t.target),a=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:a=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[s-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),a.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var t=e(this),i=t.uniqueId().attr("id"),s=t.next(),n=s.uniqueId().attr("id");t.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(t=n.height(),this.element.siblings(":visible").each(function(){var i=e(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===s&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,s=this.active,n=e(t.currentTarget),a=n[0]===s[0],o=a&&i.collapsible,r=o?e():n.next(),h=s.next(),l={oldHeader:s,oldPanel:h,newHeader:o?e():n,newPanel:r};t.preventDefault(),a&&!i.collapsible||this._trigger("beforeActivate",t,l)===!1||(i.active=o?!1:this.headers.index(n),this.active=a?e():n,this._toggle(l),s.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),a||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,s=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,t):(s.hide(),i.show(),this._toggleComplete(t)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(e(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,i){var s,n,a,o=this,r=0,h=e.css("box-sizing"),l=e.length&&(!t.length||e.index()<t.index()),u=this.options.animate||{},d=l&&u.down||u,c=function(){o._toggleComplete(i)};return"number"==typeof d&&(a=d),"string"==typeof d&&(n=d),n=n||d.easing||u.easing,a=a||d.duration||u.duration,t.length?e.length?(s=e.show().outerHeight(),t.animate(this.hideProps,{duration:a,easing:n,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(this.showProps,{duration:a,easing:n,complete:c,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?"content-box"===h&&(r+=i.now):"content"!==o.options.heightStyle&&(i.now=Math.round(s-t.outerHeight()-r),r=0)}}),void 0):t.animate(this.hideProps,a,n,c):e.animate(this.showProps,a,n,c)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.extend(e.ui,{datepicker:{version:"1.11.4"}});var u;e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var s,n,a;s=t.nodeName.toLowerCase(),n="div"===s||"span"===s,t.id||(this.uuid+=1,t.id="dp"+this.uuid),a=this._newInst(e(t),n),a.settings=e.extend({},i||{}),"input"===s?this._connectDatepicker(t,a):n&&this._inlineDatepicker(t,a)},_newInst:function(t,i){var s=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?a(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var s=e(t);i.append=e([]),i.trigger=e([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var s,n,a,o=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=e("<span class='"+this._appendClass+"'>"+o+"</span>"),t[r?"before":"after"](i.append)),t.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&t.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=e(this._get(i,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:a,alt:n,title:n}):e("<button type='button'></button>").addClass(this._triggerClass).html(a?e("<img/>").attr({src:a,alt:n,title:n}):n)),t[r?"before":"after"](i.trigger),i.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,s,n,a=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(i=0,s=0,n=0;e.length>n;n++)e[n].length>i&&(i=e[n].length,s=n);return s},a.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var s=e(t);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,s,n,a){var o,h,l,u,d,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),c=this._dialogInst=this._newInst(this._dialogInput,!1),c.settings={},e.data(this._dialogInput[0],"datepicker",c)),r(c.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(c,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+u,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(t){var i,s=e(t),n=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),u===n&&(u=null))},_enableDatepicker:function(t){var i,s,n=e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,s,n=e(t),a=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,s){var n,a,o,h,l=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),r(l.settings,n),null!==o&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,o)),null!==h&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,a),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,s,n,a=e.datepicker._getInst(t.target),o=!0,r=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return n=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv),n[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,n[0]),i=e.datepicker._get(a,"onSelect"),i?(s=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[s,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,s,n=e.datepicker._getInst(t.target);return e.datepicker._get(n,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(t){var i,s=e.datepicker._getInst(t.target);if(s.input.val()!==s.lastVal)try{i=e.datepicker.parseDate(e.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,e.datepicker._getFormatConfig(s)),i&&(e.datepicker._setDateFromField(s),e.datepicker._updateAlternate(s),e.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledDatepicker(t)&&e.datepicker._lastInput!==t){var i,n,a,o,h,l,u;i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),n=e.datepicker._get(i,"beforeShow"),a=n?n.apply(t,[t,i]):{},a!==!1&&(r(i.settings,a),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each(function(){return o|="fixed"===e(this).css("position"),!o 880}),h={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),h=e.datepicker._checkOffset(i,h,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),u=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",s(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),u):i.dpDiv[l||"show"](l?u:null),e.datepicker._shouldFocusInput(i)&&i.input.focus(),e.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,u
vendor: 12,003 bytes, line 880
880=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),n=s[1],a=17,r=t.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,s){var n=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?n-o:0,i.left-=s&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=s&&i.top===t.input.offset().top+r?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+a>l&&l>a?Math.abs(a+r):0),i},_findPos:function(t){for(var i,s=this._getInst(t),n=this._get(s,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[n?"previousSibling":"nextSibling"];return i=e(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var i,s,n,a,o=this._curInst;!o||t&&o!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(o,"showAnim"),s=this._get(o,"duration"),n=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[i]||e.effects[i])?o.dpDiv.hide(i,e.datepicker._get(o,"showOptions"),s,n):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),s=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==s)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,s){var n=e(t),a=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(a,i+("M"===s?this._get(a,"showCurrentAtPos"):0),s),this._updateDatepicker(a))},_gotoToday:function(t){var i,s=e(t),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(t,i,s){var n=e(t),a=this._getInst(n[0]);a["selected"+("M"===s?"Month":"Year")]=a["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(n)},_selectDay:function(t,i,s,n){var a,o=e(t);e(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=e("a",n).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var s,n=e(t),a=this._getInst(n[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),s=this._get(a,"onSelect"),s?s.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,s,n,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConfig(t)),e(a).each(function(){e(this).val(n)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,s){if(null==t||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,a,o,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),d=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,c=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,b=!1,_=function(e){var i=t.length>n+1&&t.charAt(n+1)===e;return i&&n++,i},x=function(e){var t=_(e),s="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n="y"===e?s:1,a=RegExp("^\\d{"+n+","+s+"}"),o=i.substring(h).match(a);if(!o)throw"Missing number at position "+h;return h+=o[0].length,parseInt(o[0],10)},w=function(t,s,n){var a=-1,o=e.map(_(t)?n:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(o,function(e,t){var s=t[1];return i.substr(h,s.length).toLowerCase()===s.toLowerCase()?(a=t[0],h+=s.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+h},k=function(){if(i.charAt(h)!==t.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;t.length>n;n++)if(b)"'"!==t.charAt(n)||_("'")?k():b=!1;else switch(t.charAt(n)){case"d":v=x("d");break;case"D":w("D",d,c);break;case"o":y=x("o");break;case"m":g=x("m");break;case"M":g=w("M",p,f);break;case"y":m=x("y");break;case"@":r=new Date(x("@")),m=r.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"!":r=new Date((x("!")-this._ticksTo1970)/1e4),m=r.getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"'":_("'")?k():b=!0;break;default:k()}if(i.length>h&&(o=i.substr(h),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=m?0:-100)),y>-1)for(g=1,v=y;;){if(a=this._getDaysInMonth(m,g-1),a>=v)break;g++,v-=a}if(r=this._daylightSavingAdjust(new Date(m,g-1,v)),r.getFullYear()!==m||r.getMonth()+1!==g||r.getDate()!==v)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(t){var i=e.length>s+1&&e.charAt(s+1)===t;return i&&s++,i},l=function(e,t,i){var s=""+t;if(h(e))for(;i>s.length;)s="0"+s;return s},u=function(e,t,i,s){return h(e)?s[t]:i[t]},d="",c=!1;if(t)for(s=0;e.length>s;s++)if(c)"'"!==e.charAt(s)||h("'")?d+=e.charAt(s):c=!1;else switch(e.charAt(s)){case"d":d+=l("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),n,a);break;case"o":d+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=l("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),o,r);break;case"y":d+=h("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":h("'")?d+="'":c=!0;break;default:d+=e.charAt(s)}return d},_possibleChars:function(e){var t,i="",s=!1,n=function(i){var s=e.length>t+1&&e.charAt(t+1)===i;return s&&t++,s};for(t=0;e.length>t;t++)if(s)"'"!==e.charAt(t)||n("'")?i+=e.charAt(t):s=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,n=this._getDefaultDate(e),a=n,o=this._getFormatConfig(e);try{a=this.parseDate(i,s,o)||n}catch(r){s=t?"":s}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=s?a.getDate():0,e.currentMonth=s?a.getMonth():0,e.currentYear=s?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,s){var n=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=n.getFullYear(),o=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,o))}l=h.exec(i)}return new Date(a,o,r)},o=null==i||""===i?s:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return o=o&&"Invalid Date"==""+o?s:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,n=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),n===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(s,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,s,n,a,o,r,h,l,u,d,c,p,f,m,g,v,y,b,_,x,w,k,
vendor: 6,336 bytes, line 880
880D,T,S,N,M,C,P,A,I,H,z,F,E,W,O,L,j=new Date,R=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),Y=this._get(e,"isRTL"),J=this._get(e,"showButtonPanel"),B=this._get(e,"hideIfNoPrevNext"),K=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),U=this._get(e,"showCurrentAtPos"),q=this._get(e,"stepMonths"),G=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(e,"min"),$=this._getMinMaxDate(e,"max"),Z=e.drawMonth-U,et=e.drawYear;if(0>Z&&(Z+=12,et--),$)for(t=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-V[0]*V[1]+1,$.getDate())),t=Q&&Q>t?Q:t;this._daylightSavingAdjust(new Date(et,Z,1))>t;)Z--,0>Z&&(Z=11,et--);for(e.drawMonth=Z,e.drawYear=et,i=this._get(e,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z-q,1)),this._getFormatConfig(e)):i,s=this._canAdjustMonth(e,-1,et,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":B?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(e,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(et,Z+q,1)),this._getFormatConfig(e)):n,a=this._canAdjustMonth(e,1,et,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":B?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",o=this._get(e,"currentText"),r=this._get(e,"gotoCurrent")&&e.currentDay?X:R,o=K?this.formatDate(o,r,this._getFormatConfig(e)):o,h=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",l=J?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(e,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(Y?"":h)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),c=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",w=0;V[0]>w;w++){for(k="",this.maxRows=4,D=0;V[1]>D;D++){if(T=this._daylightSavingAdjust(new Date(et,Z,e.selectedDay)),S=" ui-corner-all",N="",G){if(N+="<div class='ui-datepicker-group",V[1]>1)switch(D){case 0:N+=" ui-datepicker-group-first",S=" ui-corner-"+(Y?"right":"left");break;case V[1]-1:N+=" ui-datepicker-group-last",S=" ui-corner-"+(Y?"left":"right");break;default:N+=" ui-datepicker-group-middle",S=""}N+="'>"}for(N+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===w?Y?a:s:"")+(/all|right/.test(S)&&0===w?Y?s:a:"")+this._generateMonthYearHeader(e,Z,et,Q,$,w>0||D>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",M=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;7>x;x++)C=(x+u)%7,M+="<th scope='col'"+((x+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+c[C]+"'>"+p[C]+"</span></th>";for(N+=M+"</tr></thead><tbody>",P=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,P)),A=(this._getFirstDayOfMonth(et,Z)-u+7)%7,I=Math.ceil((A+P)/7),H=G?this.maxRows>I?this.maxRows:I:I,this.maxRows=H,z=this._daylightSavingAdjust(new Date(et,Z,1-A)),F=0;H>F;F++){for(N+="<tr>",E=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(z)+"</td>":"",x=0;7>x;x++)W=g?g.apply(e.input?e.input[0]:null,[z]):[!0,""],O=z.getMonth()!==Z,L=O&&!y||!W[0]||Q&&Q>z||$&&z>$,E+="<td class='"+((x+u+6)%7>=5?" ui-datepicker-week-end":"")+(O?" ui-datepicker-other-month":"")+(z.getTime()===T.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===z.getTime()&&b.getTime()===T.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(O&&!v?"":" "+W[1]+(z.getTime()===X.getTime()?" "+this._currentClass:"")+(z.getTime()===R.getTime()?" ui-datepicker-today":""))+"'"+(O&&!v||!W[2]?"":" title='"+W[2].replace(/'/g,"'")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+z.getMonth()+"' data-year='"+z.getFullYear()+"'")+">"+(O&&!v?" ":L?"<span class='ui-state-default'>"+z.getDate()+"</span>":"<a class='ui-state-default"+(z.getTime()===R.getTime()?" ui-state-highlight":"")+(z.getTime()===X.getTime()?" ui-state-active":"")+(O?" ui-priority-secondary":"")+"' href='#'>"+z.getDate()+"</a>")+"</td>",z.setDate(z.getDate()+1),z=this._daylightSavingAdjust(z);N+=E+"</tr>"}Z++,Z>11&&(Z=0,et++),N+="</tbody></table>"+(G?"</div>"+(V[0]>0&&D===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=N}_+=k}return _+=l,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,s,n,a,o,r){var h,l,u,d,c,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",_="";if(a||!g)_+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;12>u;u++)(!h||u>=s.getMonth())&&(!l||n.getMonth()>=u)&&(_+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+r[u]+"</option>");_+="</select>"}if(y||(b+=_+(!a&&g&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),c=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?c+parseInt(e,10):parseInt(e,10);return isNaN(t)?c:t},f=p(d[0]),m=Math.max(f,p(d[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,e.yearshtml
vendor: 4,275 bytes, lines 880-886
880+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!a&&g&&v?"":" ")+_),b+="</div>"},_adjustInstDate:function(e,t,i){var s=e.drawYear+("Y"===i?t:0),n=e.drawMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(s,n))+("D"===i?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(s,n,a)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),n=i&&i>t?i:t;return s&&n>s?s:n},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var n=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,s+(0>t?t:n[0]*n[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,s,n=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,r=null,h=this._get(e,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),o=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||t.getTime()>=n.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYear()>=o)&&(!r||r>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var n=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),n,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.11.4",e.datepicker}); 881(function($,c,b){$.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),function(d){a(d)});a("focusin","focus"+b);a("focusout","blur"+b);$.addOutsideEvent=a;function a(g,e){e=e||g+b;var d=$(),h=g+"."+e+"-special-event";$.event.special[e]={setup:function(){d=d.add(this);if(d.length===1){$(c).bind(h,f)}},teardown:function(){d=d.not(this);if(d.length===0){$(c).unbind(h)}},add:function(i){var j=i.handler;i.handler=function(l,k){l.target=k;j.apply(this,arguments)}}};function f(i){$(d).each(function(){var j=$(this);if(this!==i.target&&!j.has(i.target).length){j.triggerHandler(e,[i.target])}})}}})(jQuery,document,"outside"); 882/*! 883 Colorbox 1.6.3 884 license: MIT 885 http://www.jacklmoore.com/colorbox 886*/
vendor: 4,671 bytes, line 887
887(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=n("button","Slideshow"),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=_.get("
887createImg"),t(U).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(U.style.cursor="pointer",t(U).bind("click."+Z,function(){J.next()})),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left
887:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window); 888/*! 889 * jQuery Cookie Plugin v1.4.1 890 * https://github.com/carhartl/jquery-cookie 891 * 892 * Copyright 2006, 2014 Klaus Hartl 893 * Released under the MIT license 894 */ 895(function (factory) { 896 if (typeof define === 'function' && define.amd) { 897 // AMD (Register as an anonymous module) 898 define(['jquery'], factory); 899 } else if (typeof exports === 'object') { 900 // Node/CommonJS 901 module.exports = factory(require('jquery')); 902 } else { 903 // Browser globals 904 factory(jQuery); 905 } 906}(function ($) { 907 908 var pluses = /\+/g; 909 910 function encode(s) { 911 return config.raw ? s : encodeURIComponent(s); 912 } 913 914 function decode(s) { 915 return config.raw ? s : decodeURIComponent(s); 916 } 917 918 function stringifyCookieValue(value) { 919 return encode(config.json ? JSON.stringify(value) : String(value)); 920 } 921 922 function parseCookieValue(s) { 923 if (s.indexOf('"') === 0) { 924 // This is a quoted cookie as according to RFC2068, unescape... 925 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); 926 } 927 928 try { 929 // Replace server-side written pluses with spaces. 930 // If we can't decode the cookie, ignore it, it's unusable. 931 // If we can't parse the cookie, ignore it, it's unusable. 932 s = decodeURIComponent(s.replace(pluses, ' ')); 933 return config.json ? JSON.parse(s) : s; 934 } catch(e) {} 935 } 936 937 function read(s, converter) { 938 var value = config.raw ? s : parseCookieValue(s); 939 return $.isFunction(converter) ? converter(value) : value; 940 } 941 942 var config = $.cookie = function (key, value, options) { 943 944 // Write 945 946 if (arguments.length > 1 && !$.isFunction(value)) { 947 options = $.extend({}, config.defaults, options); 948 949 if (typeof options.expires === 'number') { 950 var days = options.expires, t = options.expires = new Date(); 951 t.setMilliseconds(t.getMilliseconds() + days * 864e+5); 952 } 953 954 return (document.cookie = [ 955 encode(key), '=', stringifyCookieValue(value), 956 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 957 options.path ? '; path=' + options.path : '', 958 options.domain ? '; domain=' + options.domain : '', 959 options.secure ? '; secure' : '' 960 ].join('')); 961 } 962 963 // Read 964 965 var result = key ? undefined : {}, 966 // To prevent the for loop in the first place assign an empty array 967 // in case there are no cookies at all. Also prevents odd result when 968 // calling $.cookie(). 969 cookies = document.cookie ? document.cookie.split('; ') : [], 970 i = 0, 971 l = cookies.length; 972 973 for (; i < l; i++) { 974 var parts = cookies[i].split('='), 975 name = decode(parts.shift()), 976 cookie = parts.join('='); 977 978 if (key === name) { 979 // If second argument (value) is a function it's a converter... 980 result = read(cookie, value); 981 break; 982 } 983 984 // Prevent storing a cookie that we couldn't decode. 985 if (!key && (cookie = read(cookie)) !== undefined) { 986 result[name] = cookie; 987 } 988 } 989 990 return result; 991 }; 992 993 config.defaults = {}; 994 995 $.removeCookie = function (key, options) {
996 // Must not alter options, thus extending a fresh object... 997 $.cookie(key, '', $.extend({}, options, { expires: -1 })); 998 return !$.cookie(key); 999 }; 1000 1001})); 1002 1003/*! jQuery Placeholder Enhanced 1.6.9 | @tdecs | under the MIT license */ 1004(function(e,q){var g="placeholder"in q.createElement("input")&&"placeholder"in q.createElement("textarea"),k={cssClass:"placeholder",normalize:!0},h=e.fn.val,l=function(c){return e.nodeName(c,"input")||e.nodeName(c,"textarea")},t=function(c){for(var d=["placeholder","name","id"],f={},b,a=0,s=c.attributes.length;a<s;a++)b=c.attributes[a],b.specified&&0>e.inArray(b.name,d)&&(f[b.name]=b.value);return f},p=function(c){c.css({position:"",left:""})},r=function(c){c.css({position:"absolute",left:"-9999em"})};if(!g||k.normalize)g?g&&k.normalize&&(e.fn.val=function(){var c=arguments;if(this[0])return c.length?this.each(function(d,f){var b=e(f),a=e.data(f,"placeholderEnhanced"),g=f._placeholder;a&&g&&l(f)&&(c[0]||f.value===g?c[0]&&b.hasClass(a.cssClass)&&b.removeClass(a.cssClass):b.addClass(a.cssClass).attr("placeholder",g));h.apply(b,c)}):h.apply(this,c)}):e.fn.val=function(){var c=arguments,d=this[0],f;if(d)return c.length?this.each(function(b,a){var d=e(a),f=e.data(a,"placeholderEnhanced"),g;g=d.attr("placeholder");f&&g&&l(a)?c[0]||a.value===g?c[0]&&(d.hasClass(f.cssClass)&&d.removeClass(f.cssClass),h.apply(d,c)):a.value=d.addClass(f.cssClass).attr("placeholder"):h.apply(d,c)}):(f=e(d).attr("placeholder"))&&l(d)?d.value===f?"":d.value:h.apply(this,c)},e.fn.placeholderEnhanced=function(c){var d=e.extend(k,c);if(this.length&&(!g||d.normalize))return"destroy"===c?this.filter(function(d,b){return e.data(b,"placeholderEnhanced")}).removeClass(d.cssClass).each(function(d,b){var a=e(b).unbind(".placeholder"),c="password"===b.type,m=a.attr("placeholder");g?delete b._placeholder:(b.value===m&&(b.value=""),c&&(p(a),a.prev().unbind(".placeholder").remove()));e.fn.val=h;e.removeData(b,"placeholderEnhanced")}):this.each(function(c,b){if(!e.data(b,"placeholderEnhanced")){e.data(b,"placeholderEnhanced",d);var a=e(b),h="password"===b.type,m=a.attr("placeholder"),k=null,l=null,n=null;g?g&&d.normalize&&(b._placeholder=a.attr("placeholder"),l=function(){b.value||a.addClass(d.cssClass).attr("placeholder",m)},n=function(){a.removeAttr("placeholder").removeClass(d.cssClass)}):(l=function(){a.val()?a.val()&&h&&n():h?(p(k),r(a)):a.val(m).addClass(d.cssClass)},h?(n=function(){p(a);r(k)},k=e("<input>",e.extend(t(b),{type:"text",value:m,tabindex:-1})).addClass(d.cssClass).bind("focus.placeholder",function(){a.trigger("focus.placeholder")}).insertBefore(a)):n=function(){a.hasClass(d.cssClass)&&(b.value="",a.removeClass(d.cssClass))});a.bind("blur.placeholder",l).bind("focus.placeholder",n).trigger("blur.placeholder")}})},e(function(){e("input[placeholder], textarea[placeholder]").placeholderEnhanced()})})(jQuery,document); 1005 1006(function($) { 1007 $.fn.cnilCookies = function(options) { 1008 1009 //On définit nos paramètres par défaut 1010 var defauts = { 1011 "expireCookie": 30, 1012 "nameCookie": 'cnilCookie' 1013 }; 1014 1015 //On fusionne nos deux objets 1016 var parameters = $.extend(defauts, options); 1017 1018 1019 ///Nos fonctions de gestion des cookies 1020 var createCookie = function(name, value, days) { 1021 if (days) { 1022 var date = new Date(); 1023 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 1024 var expires = "; expires=" + date.toGMTString(); 1025 } else { 1026 var expires = ""; 1027 } 1028 1029 document.cookie = name + "=" + value + expires + "; path=/"; 1030 } 1031 1032 var readCookie = function(name) { 1033 var nameEQ = name + "="; 1034 var ca = document.cookie.split(';'); 1035 for (var i = 0; i < ca.length; i++) { 1036 var c = ca[i]; 1037 while (c.charAt(0) == ' ') c = c.substring(1, c.length); 1038 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); 1039 } 1040 return null; 1041 } 1042 1043 var eraseCookie = function(name) { 1044 createCookie(name, "", -1); 1045 } 1046 1047 var $this = $(this); 1048 1049 return this.each(function() { 1050 if (readCookie(parameters.nameCookie) == null) { 1051 createCookie(parameters.nameCookie, '1', parameters.expireCookie); 1052 $this.show(); 1053 } 1054 1055 1056 }); 1057 }; 1058 $(document).ready(function() { 1059 $('#infocookie').cnilCookies({ 1060 'expireCookie': 30 1061 }); 1062 1063 var htmlPopinCookies = $('#infocookie').clone(); 1064 $('#infocookie').remove(); 1065 $('body').prepend(htmlPopinCookies); 1066 $('body').on('click', '#infocookie .close', function() { 1067 $(this).closest('#infocookie').slideUp('fast'); 1068 return false;
1069 }); 1070 1071 }); 1072})(jQuery); 1073;(function($) { 1074 'use strict'; 1075 1076 var pluginName = 'selectric', 1077 classList = 'Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive Above Scroll Group GroupLabel', 1078 bindSufix = '.sl', 1079 defaults = { 1080 onChange: function(elm) { $(elm).change(); }, 1081 maxHeight: 300, 1082 keySearchTimeout: 500, 1083 arrowButtonMarkup: '<b class="button">▾</b>', 1084 disableOnMobile: true, 1085 openOnHover: false, 1086 hoverIntentTimeout: 500, 1087 expandToItemText: false, 1088 responsive: false, 1089 preventWindowScroll: true, 1090 inheritOriginalWidth: false, 1091 allowWrap: true, 1092 customClass: { 1093 prefix: pluginName, 1094 camelCase: false, 1095 overwrite: true 1096 }, 1097 optionsItemBuilder: '{text}', // function(itemData, element, index) 1098 labelBuilder: '{text}' // function(currItem) 1099 }, 1100 hooks = { 1101 add: function(callbackName, hookName, fn) { 1102 if ( !this[callbackName] ) 1103 this[callbackName] = {}; 1104 1105 this[callbackName][hookName] = fn; 1106 }, 1107 remove: function(callbackName, hookName) { 1108 delete this[callbackName][hookName]; 1109 } 1110 }, 1111 _utils = { 1112 // Replace diacritics 1113 replaceDiacritics: function(s) { 1114 // /[\340-\346]/g, // a 1115 // /[\350-\353]/g, // e 1116 // /[\354-\357]/g, // i 1117 // /[\362-\370]/g, // o 1118 // /[\371-\374]/g, // u 1119 // /[\361]/g, // n 1120 // /[\347]/g, // c 1121 // /[\377]/g // y 1122 var d = '40-46 50-53 54-57 62-70 71-74 61 47 77'.replace(/\d+/g, '\\3$&').split(' '), 1123 k = d.length; 1124 1125 while (k--) 1126 s = s.toLowerCase().replace(RegExp('[' + d[k] + ']', 'g'), 'aeiouncy'.charAt(k)); 1127 1128 return s; 1129 }, 1130 // https://gist.github.com/atesgoral/984375 1131 format: function(f) {var a=arguments;return(""+f).replace(/{(\d+|(\w+))}/g,function(s,i,p) {return p&&a[1]?a[1][p]:a[i]})}, 1132 nextEnabledItem: function(selectItems, selected) { 1133 while ( selectItems[ selected = (selected + 1) % selectItems.length ].disabled ) {} 1134 return selected; 1135 }, 1136 previousEnabledItem: function(selectItems, selected) { 1137 while ( selectItems[ selected = (selected > 0 ? selected : selectItems.length) - 1 ].disabled ) {} 1138 return selected; 1139 }, 1140 toDash: function(str) { 1141 return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); 1142 }, 1143 triggerCallback: function(fn, scope) { 1144 var elm = scope.element, 1145 func = scope.options['on' + fn]; 1146 1147 if ( $.isFunction(func) ) 1148 func.call(elm, elm, scope); 1149 1150 if ( hooks[fn] ) { 1151 $.each(hooks[fn], function() { 1152 this.call(elm, elm, scope); 1153 }); 1154 } 1155 1156 $(elm).trigger(pluginName + '-' + _utils.toDash(fn), scope); 1157 } 1158 }, 1159 $doc = $(document), 1160 $win = $(window), 1161 Selectric = function(element, opts) { 1162 var _this = this, 1163 $original = $(element), 1164 $input, $items, $itemsScroll, $wrapper, $label, $outerWrapper, $li, 1165 isOpen = false, 1166 isEnabled = false, 1167 selected, 1168 currValue, 1169 itemsHeight, 1170 itemsInnerHeight, 1171 finalWidth, 1172 optionsLength, 1173 eventTriggers, 1174 isMobile = /android|ip(hone|od|ad)/i.test(navigator.userAgent), 1175 tabindex = $original.prop('tabindex'), 1176 labelBuilder; 1177 1178 function _init(opts) { 1179 _this.options = $.extend(true, {}, defaults, _this.options, opts); 1180 _this.classes = {}; 1181 _this.element = element; 1182 1183 _utils.triggerCallback('BeforeInit', _this); 1184 1185 // Disable on mobile browsers 1186 if ( _this.options.disableOnMobile && isMobile ) { 1187 _this.disableOnMobile = true; 1188 return; 1189 } 1190 1191 // Preserve data 1192 _destroy(true); 1193 1194 // Generate classNames for elements 1195 var customClass = _this.options.customClass, 1196 postfixes = classList.split(' '), 1197 originalWidth = $original.width(); 1198 1199 $.each(postfixes, function(i, currClass) { 1200 var c = customClass.prefix + currClass; 1201 _this.classes[currClass.toLowerCase()] = customClass.camelCase ? c : _utils.toDash(c); 1202 }); 1203 1204 $input = $('<input/>', { 'class': _this.classes.input, 'readonly': isMobile }); 1205 $items = $('<div/>', { 'class': _this.classes.items, 'tabindex': -1 }); 1206 $itemsScroll = $('<div/>', { 'class': _this.classes.scroll }); 1207 $wrapper = $('<div/>', { 'class': customClass.prefix, 'html': _this.options.arrowButtonMarkup }); 1208 $label = $('<p class="label"/>'); 1209 $outerWrapper = $original.wrap('<div>').parent().append($wrapper.prepend($label), $items, $input); 1210 1211 eventTriggers = { 1212 open : _open, 1213 close : _close, 1214 destroy : _destroy, 1215 refresh : _refresh, 1216 init : _init 1217 }; 1218 1219 $original.on(eventTriggers).wrap('<div class="' + _this.classes.hideselect + '">'); 1220 $.extend(_this, eventTriggers); 1221 1222 labelBuilder = _this.options.labelBuilder; 1223 1224 if ( _this.options.inheritOriginalWidth && originalWidth > 0 ) 1225 $outerWrapper.width(originalWidth); 1226 1227 _populate(); 1228 } 1229 1230 // Generate options markup and event binds 1231 function _populate() { 1232 _this.items = []; 1233 1234 var $options = $original.children(), 1235 _$li = '<ul>', 1236 selectedIndex = $options.filter(':selected').index(), 1237 currIndex = 0; 1238 1239 currValue = (selected = ~selectedIndex ? selectedIndex : 0); 1240 1241 if ( optionsLength = $options.length ) { 1242 // Build options markup 1243 $options.each(function() { 1244 var $elm = $(this); 1245 1246 if ( $elm.is('optgroup') ) { 1247 var groupDisabled = $elm.prop('disabled'), 1248 $children = $elm.children(); 1249 1250 _$li += _utils.format('<ul class="{1}"><li class="{2}">{3}</li>', 1251 $.trim([_this.classes.group, groupDisabled ? 'disabled' : '', $elm.prop('class')].join(' ')), 1252 _this.classes.grouplabel, 1253 $elm.prop('label') 1254 ); 1255 1256 if ( groupDisabled ) { 1257 $children.prop('disabled', true); 1258 } 1259 1260 $children.each(buildOption); 1261 1262 _$li += '</ul>'; 1263 } else { 1264 buildOption.call($elm); 1265 } 1266 1267 function buildOption() { 1268 var $elm = $(this), 1269 optionText = $elm.html(), 1270 selectDisabled = $elm.prop('disabled'), 1271 itemBuilder = _this.options.optionsItemBuilder; 1272 1273 _this.items[currIndex] = { 1274 element : $elm, 1275 value : $elm.val(), 1276 text : optionText, 1277 slug : _utils.replaceDiacritics(optionText), 1278 disabled : selectDisabled 1279 }; 1280 1281 _$li += _utils.format('<li data-index="{1}" class="{2}">{3}</li>', 1282 currIndex, 1283 $.trim([currIndex == currValue ? 'selected' : '', currIndex == optionsLength - 1 ? 'last' : '', selectDisabled ? 'disabled' : ''].join(' ')), 1284 $.isFunction(itemBuilder) ? itemBuilder(_this.items[currIndex], $elm, currIndex) : _utils.format(itemBuilder, _this.items[currIndex]) 1285 ); 1286 1287 currIndex++; 1288 } 1289 }); 1290 1291 $items.append( $itemsScroll.html(_$li + '</ul>') ); 1292 1293 $label.html( 1294 $.isFunction(labelBuilder) ? labelBuilder(_this.items[currValue]) : _utils.format(labelBuilder, _this.items[currValue]) 1295 ) 1296 } 1297 1298 $wrapper.add($original).add($outerWrapper).add($input).off(bindSufix); 1299 1300 $outerWrapper.prop('class', [ 1301 _this.classes.wrapper, 1302 _this.options.customClass.overwrite ? 1303 $original.prop('class').replace(/\S+/g, _this.options.customClass.prefix + '-$&') : 1304 $original.prop('class'), 1305 _this.options.responsive ? _this.classes.responsive : '' 1306 ].join(' ')); 1307 1308 if ( !$original.prop('disabled') ) { 1309 isEnabled = true; 1310 1311 // Not disabled, so... Removing disabled class and bind hover 1312 $outerWrapper.removeClass(_this.classes.disabled).on('mouseenter' + bindSufix + ' mouseleave' + bindSufix, function(e) { 1313 $(this).toggleClass(_this.classes.hover); 1314 1315 // Delay close effect when openOnHover is true 1316 if ( _this.options.openOnHover ) { 1317 clearTimeout(_this.closeTimer); 1318 e.type == 'mouseleave' ? _this.closeTimer = setTimeout(_close, _this.options.hoverIntentTimeout) : _open(); 1319 } 1320 }); 1321 1322 // Toggle open/close
1323 $wrapper.on('click' + bindSufix, function(e) { 1324 isOpen ? _close() : _open(e); 1325 }); 1326 1327 $input 1328 .prop({ 1329 tabindex: tabindex, 1330 disabled: false 1331 }) 1332 .on('keypress' + bindSufix, _handleSystemKeys) 1333 .on('keydown' + bindSufix, function(e) { 1334 _handleSystemKeys(e); 1335 1336 // Clear search 1337 clearTimeout(_this.resetStr); 1338 _this.resetStr = setTimeout(function() { 1339 $input.val(''); 1340 }, _this.options.keySearchTimeout); 1341 1342 var key = e.keyCode || e.which; 1343 1344 // If it's a directional key 1345 // 37 => Left 1346 // 38 => Up 1347 // 39 => Right 1348 // 40 => Down 1349 if ( key > 36 && key < 41 ) { 1350 if ( !_this.options.allowWrap ) { 1351 if ( (key < 39 && selected == 0) || (key > 38 && (selected + 1) == _this.items.length) ) { 1352 return; 1353 } 1354 } 1355 1356 _select(_utils[(key < 39 ? 'previous' : 'next') + 'EnabledItem'](_this.items, selected)); 1357 } 1358 }) 1359 .on('focusin' + bindSufix, function(e) { 1360 // Stupid, but necessary... Prevent the flicker when 1361 // focusing out and back again in the browser window 1362 $input.one('blur', function() { 1363 $input.blur(); 1364 }); 1365 1366 isOpen || _open(e); 1367 }) 1368 .on('oninput' in $input[0] ? 'input' : 'keyup', function() { 1369 if ( $input.val().length ) { 1370 // Search in select options 1371 $.each(_this.items, function(i, elm) { 1372 if ( RegExp('^' + $input.val(), 'i').test(elm.slug) && !elm.disabled ) { 1373 _select(i); 1374 return false; 1375 } 1376 }); 1377 } 1378 }); 1379 1380 $original.prop('tabindex', false); 1381 1382 // Remove styles from items box 1383 // Fix incorrect height when refreshed is triggered with fewer options 1384 $li = $('li', $items.removeAttr('style')).on({ 1385 // Prevent <input> blur on Chrome 1386 mousedown: function(e) { 1387 e.preventDefault(); 1388 e.stopPropagation(); 1389 }, 1390 click: function() { 1391 // The second parameter is to close the box after click 1392 _select($(this).data('index'), true); 1393 1394 // Chrome doesn't close options box if select is wrapped with a label 1395 // We need to 'return false' to avoid that 1396 return false; 1397 } 1398 }).filter('[data-index]'); 1399 } else { 1400 $outerWrapper.addClass(_this.classes.disabled); 1401 $input.prop('disabled', true); 1402 } 1403 1404 _utils.triggerCallback('Init', _this); 1405 } 1406 1407 function _refresh() { 1408 _utils.triggerCallback('Refresh', _this); 1409 _populate(); 1410 } 1411 1412 // Behavior when system keys is pressed 1413 function _handleSystemKeys(e) { 1414 var key = e.keyCode || e.which; 1415 1416 if ( key == 13 ) { 1417 e.preventDefault(); 1418 } 1419 1420 // Tab / Enter / ESC 1421 if ( /^(9|13|27)$/.test(key) ) { 1422 e.stopPropagation(); 1423 _select(selected, true); 1424 } 1425 } 1426 1427 // Set options box width/height 1428 function _calculateOptionsDimensions() { 1429 // Calculate options box height 1430 // Set a temporary class on the hidden parent of the element 1431 var hiddenChildren = $items.closest(':visible').children(':hidden').addClass(_this.classes.tempshow), 1432 maxHeight = _this.options.maxHeight, 1433 itemsWidth = $items.outerWidth(), 1434 wrapperWidth = $wrapper.outerWidth() - (itemsWidth - $items.width()); 1435 1436 // Set the dimensions, minimum is wrapper width, expand for long items if option is true
1437 if ( !_this.options.expandToItemText || wrapperWidth > itemsWidth ) 1438 finalWidth = wrapperWidth; 1439 else { 1440 // Make sure the scrollbar width is included 1441 $items.css('overflow', 'scroll'); 1442 1443 // Set a really long width for $outerWrapper 1444 $outerWrapper.width(9e4); 1445 finalWidth = $items.width(); 1446 // Set scroll bar to auto 1447 $items.css('overflow', ''); 1448 $outerWrapper.width(''); 1449 } 1450 1451 $items.width(finalWidth).height() > maxHeight && $items.height(maxHeight); 1452 1453 // Remove the temporary class 1454 hiddenChildren.removeClass(_this.classes.tempshow); 1455 } 1456 1457 // Open the select options box 1458 function _open(e) { 1459 _utils.triggerCallback('BeforeOpen', _this); 1460 1461 if ( e ) { 1462 e.preventDefault(); 1463 e.stopPropagation(); 1464 } 1465 1466 if ( isEnabled ) { 1467 _calculateOptionsDimensions(); 1468 1469 // Find any other opened instances of select and close it 1470 $('.' + _this.classes.hideselect, '.' + _this.classes.open).children()[pluginName]('close'); 1471 1472 isOpen = true; 1473 itemsHeight = $items.outerHeight(); 1474 itemsInnerHeight = $items.height(); 1475 1476 // Toggle options box visibility 1477 $outerWrapper.addClass(_this.classes.open); 1478 1479 // Give dummy input focus 1480 $input.val('').is(':focus') || $input.focus(); 1481 1482 $doc.on('click' + bindSufix, _close).on('scroll' + bindSufix, _isInViewport); 1483 _isInViewport(); 1484 1485 // Prevent window scroll when using mouse wheel inside items box 1486 if ( _this.options.preventWindowScroll ) { 1487 $doc.on('mousewheel' + bindSufix + ' DOMMouseScroll' + bindSufix, '.' + _this.classes.scroll, function(e) { 1488 var orgEvent = e.originalEvent, 1489 scrollTop = $(this).scrollTop(), 1490 deltaY = 0; 1491 1492 if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; } 1493 if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; } 1494 if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; } 1495 if ( 'deltaY' in orgEvent ) { deltaY = orgEvent.deltaY * -1; } 1496 1497 if ( scrollTop == (this.scrollHeight - itemsInnerHeight) && deltaY < 0 || scrollTop == 0 && deltaY > 0 ) { 1498 e.preventDefault(); 1499 } 1500 }); 1501 } 1502 1503 _detectItemVisibility(selected); 1504 1505 _utils.triggerCallback('Open', _this); 1506 } 1507 } 1508 1509 // Detect is the options box is inside the window 1510 function _isInViewport() { 1511 $outerWrapper.toggleClass(_this.classes.above, $outerWrapper.offset().top + $outerWrapper.outerHeight() + itemsHeight > $win.scrollTop() + $win.height()); 1512 } 1513 1514 // Close the select options box 1515 function _close() { 1516 _utils.triggerCallback('BeforeClose', _this); 1517 1518 if ( currValue != selected ) { 1519 _utils.triggerCallback('BeforeChange', _this); 1520 1521 var text = _this.items[selected].text; 1522 1523 // Apply changed value to original select 1524 $original 1525 .prop('selectedIndex', currValue = selected) 1526 .data('value', text); 1527 1528 // Change label text 1529 $label.html( 1530 $.isFunction(labelBuilder) ? labelBuilder(_this.items[selected]) : _utils.format(labelBuilder, _this.items[selected]) 1531 ) 1532 1533 _utils.triggerCallback('Change', _this); 1534 } 1535 1536 // Remove custom events on document 1537 $doc.off(bindSufix); 1538 1539 // Remove visible class to hide options box 1540 $outerWrapper.removeClass(_this.classes.open); 1541 1542 isOpen = false; 1543 1544 _utils.triggerCallback('Close', _this); 1545 } 1546 1547 // Select option 1548 function _select(index, close) { 1549 // Parameter index is required 1550 if ( index == undefined ) { 1551 return; 1552 } 1553 1554 // If element is disabled, can't select it 1555 if ( !_this.items[index].disabled ) {
1556 // If 'close' is false (default), the options box won't close after 1557 // each selected item, this is necessary for keyboard navigation 1558 $li 1559 .removeClass('selected') 1560 .eq(selected = index) 1561 .addClass('selected'); 1562 1563 _detectItemVisibility(index); 1564 close && _close(); 1565 } 1566 } 1567 1568 // Detect if currently selected option is visible and scroll the options box to show it 1569 function _detectItemVisibility(index) { 1570 var liHeight = $li.eq(index).outerHeight(), 1571 liTop = $li[index].offsetTop, 1572 itemsScrollTop = $itemsScroll.scrollTop(), 1573 scrollT = liTop + liHeight * 2; 1574 1575 $itemsScroll.scrollTop( 1576 scrollT > itemsScrollTop + itemsHeight ? scrollT - itemsHeight : 1577 liTop - liHeight < itemsScrollTop ? liTop - liHeight : 1578 itemsScrollTop 1579 ); 1580 } 1581 1582 // Unbind and remove 1583 function _destroy(preserveData) { 1584 if ( isEnabled ) { 1585 $items.add($wrapper).add($input).remove(); 1586 !preserveData && $original.removeData(pluginName).removeData('value'); 1587 $original.prop('tabindex', tabindex).off(bindSufix).off(eventTriggers).unwrap().unwrap(); 1588 isEnabled = false; 1589 } 1590 } 1591 1592 _init(opts); 1593 }; 1594 1595 // A really lightweight plugin wrapper around the constructor, 1596 // preventing against multiple instantiations 1597 $.fn[pluginName] = function(args) { 1598 return this.each(function() { 1599 var data = $.data(this, pluginName); 1600 1601 if ( data && !data.disableOnMobile ) 1602 (''+args === args && data[args]) ? data[args]() : data.init(args); 1603 else 1604 $.data(this, pluginName, new Selectric(this, args)); 1605 }); 1606 }; 1607 1608 $.fn[pluginName].hooks = hooks; 1609}(jQuery)); 1610// Generated by CoffeeScript 1.9.2 1611 1612/** 1613@license Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net 1614 */ 1615 1616(function() { 1617 var $, win; 1618 1619 $ = this.jQuery || window.jQuery; 1620 1621 win = $(window); 1622 1623 $.fn.stick_in_parent = function(opts) { 1624 var doc, elm, enable_bottoming, fn, i, inner_scrolling, len, manual_spacer, offset_top, parent_selector, recalc_every, sticky_class; 1625 if (opts == null) { 1626 opts = {}; 1627 } 1628 sticky_class = opts.sticky_class, inner_scrolling = opts.inner_scrolling, recalc_every = opts.recalc_every, parent_selector = opts.parent, offset_top = opts.offset_top, manual_spacer = opts.spacer, enable_bottoming = opts.bottoming; 1629 if (offset_top == null) { 1630 offset_top = 0; 1631 } 1632 if (parent_selector == null) { 1633 parent_selector = void 0; 1634 } 1635 if (inner_scrolling == null) { 1636 inner_scrolling = true; 1637 } 1638 if (sticky_class == null) { 1639 sticky_class = "is_stuck"; 1640 } 1641 doc = $(document); 1642 if (enable_bottoming == null) { 1643 enable_bottoming = true; 1644 } 1645 fn = function(elm, padding_bottom, parent_top, parent_height, top, height, el_float, detached) { 1646 var bottomed, detach, fixed, last_pos, last_scroll_height, offset, parent, recalc, recalc_and_tick, recalc_counter, spacer, tick; 1647 if (elm.data("sticky_kit")) { 1648 return; 1649 } 1650 elm.data("sticky_kit", true); 1651 last_scroll_height = doc.height(); 1652 parent = elm.parent(); 1653 if (parent_selector != null) { 1654 parent = parent.closest(parent_selector); 1655 } 1656 if (!parent.length) { 1657 throw "failed to find stick parent"; 1658 } 1659 fixed = false; 1660 bottomed = false; 1661 spacer = manual_spacer != null ? manual_spacer && elm.closest(manual_spacer) : $("<div />"); 1662 if (spacer) { 1663 spacer.css('position', elm.css('position')); 1664 } 1665 recalc = function() { 1666 var border_top, padding_top, restore; 1667 if (detached) { 1668 return; 1669 } 1670 last_scroll_height = doc.height(); 1671 border_top = parseInt(parent.css("border-top-width"), 10); 1672 padding_top = parseInt(parent.css("padding-top"), 10); 1673 padding_bottom = parseInt(parent.css("padding-bottom"), 10); 1674 parent_top = parent.offset().top + border_top + padding_top; 1675 parent_height = parent.height(); 1676 if (fixed) { 1677 fixed = false;
vendor: 6,108 bytes, lines 1678-1869
1678 bottomed = false; 1679 if (manual_spacer == null) { 1680 elm.insertAfter(spacer); 1681 spacer.detach(); 1682 } 1683 elm.css({ 1684 position: "", 1685 top: "", 1686 width: "", 1687 bottom: "" 1688 }).removeClass(sticky_class); 1689 restore = true; 1690 } 1691 top = elm.offset().top - (parseInt(elm.css("margin-top"), 10) || 0) - offset_top; 1692 height = elm.outerHeight(true); 1693 el_float = elm.css("float"); 1694 if (spacer) { 1695 spacer.addClass('site-content').css({ 1696 width: elm.outerWidth(true), 1697 height: height, 1698 display: elm.css("display"), 1699 "vertical-align": elm.css("vertical-align"), 1700 "float": el_float 1701 }); 1702 } 1703 if (restore) { 1704 return tick(); 1705 } 1706 }; 1707 recalc(); 1708 if (height === parent_height) { 1709 return; 1710 } 1711 last_pos = void 0; 1712 offset = offset_top; 1713 recalc_counter = recalc_every; 1714 tick = function() { 1715 var css, delta, recalced, scroll, will_bottom, win_height; 1716 if (detached) { 1717 return; 1718 } 1719 recalced = false; 1720 if (recalc_counter != null) { 1721 recalc_counter -= 1; 1722 if (recalc_counter <= 0) { 1723 recalc_counter = recalc_every; 1724 recalc(); 1725 recalced = true; 1726 } 1727 } 1728 if (!recalced && doc.height() !== last_scroll_height) { 1729 recalc(); 1730 recalced = true; 1731 } 1732 scroll = win.scrollTop(); 1733 if (last_pos != null) { 1734 delta = scroll - last_pos; 1735 } 1736 last_pos = scroll; 1737 if (fixed) { 1738 if (enable_bottoming) { 1739 will_bottom = scroll + height + offset > parent_height + parent_top; 1740 if (bottomed && !will_bottom) { 1741 bottomed = false; 1742 elm.css({ 1743 position: "fixed", 1744 bottom: "", 1745 top: offset 1746 }).trigger("sticky_kit:unbottom"); 1747 } 1748 } 1749 if (scroll < top) { 1750 fixed = false; 1751 offset = offset_top; 1752 if (manual_spacer == null) { 1753 if (el_float === "left" || el_float === "right") { 1754 elm.insertAfter(spacer); 1755 } 1756 spacer.detach(); 1757 } 1758 css = { 1759 position: "", 1760 width: "", 1761 top: "" 1762 }; 1763 elm.css(css).removeClass(sticky_class).trigger("sticky_kit:unstick"); 1764 } 1765 if (inner_scrolling) { 1766 win_height = win.height(); 1767 if (height + offset_top > win_height) { 1768 if (!bottomed) { 1769 offset -= delta; 1770 offset = Math.max(win_height - height, offset); 1771 offset = Math.min(offset_top, offset); 1772 if (fixed) { 1773 elm.css({ 1774 top: offset + "px" 1775 }); 1776 } 1777 } 1778 } 1779 } 1780 } else { 1781 if (scroll > top) { 1782 fixed = true; 1783 css = { 1784 position: "fixed", 1785 top: offset 1786 }; 1787 css.width = elm.css("box-sizing") === "border-box" ? elm.outerWidth() + "px" : elm.width() + "px"; 1788 elm.css(css).addClass(sticky_class); 1789 if (manual_spacer == null) { 1790 elm.after(spacer); 1791 if (el_float === "left" || el_float === "right") { 1792 spacer.append(elm); 1793 } 1794 } 1795 elm.trigger("sticky_kit:stick"); 1796 } 1797 } 1798 if (fixed && enable_bottoming) { 1799 if (will_bottom == null) { 1800 will_bottom = scroll + height + offset > parent_height + parent_top; 1801 } 1802 if (!bottomed && will_bottom) { 1803 bottomed = true; 1804 if (parent.css("position") === "static") { 1805 parent.css({ 1806 position: "relative" 1807 }); 1808 } 1809 return elm.css({ 1810 position: "absolute", 1811 bottom: padding_bottom, 1812 top: "auto" 1813 }).trigger("sticky_kit:bottom"); 1814 } 1815 } 1816 }; 1817 recalc_and_tick = function() { 1818 recalc(); 1819 return tick(); 1820 }; 1821 detach = function() { 1822 detached = true; 1823 win.off("touchmove", tick); 1824 win.off("scroll", tick); 1825 win.off("resize", recalc_and_tick); 1826 $(document.body).off("sticky_kit:recalc", recalc_and_tick); 1827 elm.off("sticky_kit:detach", detach); 1828 elm.removeData("sticky_kit"); 1829 elm.css({ 1830 position: "", 1831 bottom: "", 1832 top: "", 1833 width: "" 1834 }); 1835 parent.position("position", ""); 1836 if (fixed) { 1837 if (manual_spacer == null) { 1838 if (el_float === "left" || el_float === "right") { 1839 elm.insertAfter(spacer); 1840 } 1841 spacer.remove(); 1842 } 1843 return elm.removeClass(sticky_class); 1844 } 1845 }; 1846 win.on("touchmove", tick); 1847 win.on("scroll", tick); 1848 win.on("resize", recalc_and_tick); 1849 $(document.body).on("sticky_kit:recalc", recalc_and_tick); 1850 elm.on("sticky_kit:detach", detach); 1851 return setTimeout(tick, 0); 1852 }; 1853 for (i = 0, len = this.length; i < len; i++) { 1854 elm = this[i]; 1855 fn($(elm)); 1856 } 1857 return this; 1858 }; 1859 1860}).call(this); 1861/*! 1862 * Masonry PACKAGED v4.0.0 1863 * Cascading grid layout library 1864 * http://masonry.desandro.com 1865 * MIT License 1866 * by David DeSandro 1867 */ 1868 1869!function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];
vendor: 4,419 bytes, line 1869
1869if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var c=d.apply(u,n);o=void 0===o?c:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||[];return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,c=0;u>c;c++){var l=h[c],f=r[l],m=parseFloat(f);a[l]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,E=a.borderTopWidth+a.borderBottomWidth,z=d&&s,b=t(r.width);b!==!1&&(a.width=b+(z?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(z?0:g+E)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+E),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];
vendor: 8,033 bytes, line 1869
1869if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},i.docReady=function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var r=i.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",c=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(n&&n.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);c&&c.data(t,o,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EvEmitter,t.getSize))}(window,function(t,e,i){"use strict";function n(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function r(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,a="string"==typeof s.transition?"transition":"WebkitTransition",h="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],d=[h,a,a+"Duration",a+"Property"],c=o.prototype=Object.create(e.prototype);c.constructor=o,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.getSize=function(){this.size=i(this.element)},c.css=function(t){var e=this.element.style;for(var i in t){var n=d[i]||i;e[n]=t[i]}},c.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*r.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=e?r.paddingLeft:r.paddingRight,a-=i?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},c.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",c=this.position.y+t[h];e[u]=this.getYValue(c),e[d]="",this.css(e),this.emitEvent("layout",[this])},c.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},c.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},c._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},c.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},c.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},c._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},c._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+r(d.transform||"transform");c.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(u,this,!1))},c.transition=o.prototype[a?"_transition":"_nonTransition"],c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},c.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],n(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd){var o=e.onEnd[i];o.call(this),delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},c._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var m={transitionProperty:"",transitionDuration:""};return c.removeTransitionStyles=function(){this.css(m)},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return a&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},c.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.f
vendor: 4,232 bytes, line 1869
1869izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++d;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var a=t.console,h=t.jQuery,u=function(){},d=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var l=r.prototype;return n.extend(l,e.prototype),l.option=function(t){n.extend(this.options,t)},l._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},l._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},l.reloadItems=function(){this.items=this._itemize(this.element.children)},l._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},l._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},l.getItemElements=function(){return this.items.map(function(t){return t.element})},l.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},l._init=l.layout,l._resetLayout=function(){this.getSize()},l.getSize=function(){this.size=i(this.element)},l._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},l.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},l._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},l._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},l._getItemLayoutPosition=function(){return{x:0,y:0}},l._processLayoutQueue=function(t){t.forEach(function(t){this._positionItem(t.item,t.x,t.y,t.isInstant)},this)},l._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},l._postLayout=function(){this.resizeContainer()},l.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},l._getContainerSize=u,l._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},l._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},l.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),h)if(this.$element=this.$element||h(this.element),e){var o=h.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},l.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},l.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},l.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.
1869concat(t),t.forEach(this.ignore,this))},l.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},l._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},l._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},l._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},l._manageStamp=u,l._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},l.handleEvent=n.handleEvent,l.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},l.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},l.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),l.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},l.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},l.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},l.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},l.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},l.reveal=function(t){this._emitCompleteOnItems("reveal",t),t&&t.length&&t.forEach(function(t){t.reveal()})},l.hide=function(t){this._emitCompleteOnItems("hide",t),t&&t.length&&t.forEach(function(t){t.hide()})},l.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},l.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},l.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},l.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},l.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},l.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i},r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),r=Math.min.apply(Math,o),s=o.indexOf(r),a={x:this.columnWidth*s,y:r},h=r+t.size.outerHeight,u=this.cols+1-o.length,d=0;u>d;d++)this.colYs[s+d]=h;return a},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,c=a;h>=c;c++)this.colYs[c]=Math.max(d,this.colYs[c])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}); 1870/*! modernizr 3.0.0 (Custom Build) | MIT * 1871 * http://modernizr.com/download/?-audio-csstransforms-csstransforms3d-csstransitions-svg-touchevents-video !*/ 1872!function(e,n,t){function o(e,n){return typeof e===n}function r(){var e,n,t,r,s,a,i;for(var c in w){if(e=[],n=w[c],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(r=o(n.fn,"function")?n.fn():n.fn,s=0;s<e.length;s++)a=e[s],i=a.split("."),1===i.length?Modernizr[i[0]]=r:(!Modernizr[i[0]]||Modernizr[i[0]]instanceof Boolean||(Modernizr[i[0]]=new Boolean(Modernizr[i[0]])),Modernizr[i[0]][i[1]]=r),h.push((r?"":"no-")+i.join("-"))}}function s(e){var n=S.className,t=Modernizr._config.classPrefix||"";if(b&&(n=n.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(o,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(n+=" "+t+e.join(" "+t),b?S.className.baseVal=n:S.className=n)}function a(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):b?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function i(){var e=n.body;
1872return e||(e=a(b?"svg":"body"),e.fake=!0),e}function c(e,t,o,r){var s,c,l,p,u="modernizr",f=a("div"),d=i();if(parseInt(o,10))for(;o--;)l=a("div"),l.id=r?r[o]:u+(o+1),f.appendChild(l);return s=a("style"),s.type="text/css",s.id="s"+u,(d.fake?d:f).appendChild(s),d.appendChild(f),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(n.createTextNode(e)),f.id=u,d.fake&&(d.style.background="",d.style.overflow="hidden",p=S.style.overflow,S.style.overflow="hidden",S.appendChild(d)),c=t(f,e),d.fake?(d.parentNode.removeChild(d),S.style.overflow=p,S.offsetHeight):f.parentNode.removeChild(f),!!c}function l(e,n){return function(){return e.apply(n,arguments)}}function p(e,n,t){var r;for(var s in e)if(e[s]in n)return t===!1?e[s]:(r=n[e[s]],o(r,"function")?l(r,t||n):r);return!1}function u(e,n){return!!~(""+e).indexOf(n)}function f(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function d(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function m(n,o){var r=n.length;if("CSS"in e&&"supports"in e.CSS){for(;r--;)if(e.CSS.supports(d(n[r]),o))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];r--;)s.push("("+d(n[r])+":"+o+")");return s=s.join(" or "),c("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return t}function v(e,n,r,s){function i(){l&&(delete j.style,delete j.modElem)}if(s=o(s,"undefined")?!1:s,!o(r,"undefined")){var c=m(e,r);if(!o(c,"undefined"))return c}for(var l,p,d,v,y,g=["modernizr","tspan"];!j.style;)l=!0,j.modElem=a(g.shift()),j.style=j.modElem.style;for(d=e.length,p=0;d>p;p++)if(v=e[p],y=j.style[v],u(v,"-")&&(v=f(v)),j.style[v]!==t){if(s||o(r,"undefined"))return i(),"pfx"==n?v:!0;try{j.style[v]=r}catch(h){}if(j.style[v]!=y)return i(),"pfx"==n?v:!0}return i(),!1}function y(e,n,t,r,s){var a=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+$.join(a+" ")+a).split(" ");return o(n,"string")||o(n,"undefined")?v(i,n,r,s):(i=(e+" "+z.join(a+" ")+a).split(" "),p(i,n,t))}function g(e,n,o){return y(e,t,t,n,o)}var h=[],w=[],T={_version:"3.0.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){w.push({name:e,fn:n,options:t})},addAsyncTest:function(e){w.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=T,Modernizr=new Modernizr,Modernizr.addTest("svg",!!n.createElementNS&&!!n.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var C=T._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];T._prefixes=C;var S=n.documentElement,x="CSS"in e&&"supports"in e.CSS,P="supportsCSS"in e;Modernizr.addTest("supports",x||P);var b="svg"===S.nodeName.toLowerCase();Modernizr.addTest("video",function(){var e=a("video"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),n.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),n.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}return n}),Modernizr.addTest("audio",function(){var e=a("audio"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.opus=e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return n});var _=T.testStyles=c;Modernizr.addTest("touchevents",function(){var t;if("ontouchstart"in e||e.DocumentTouch&&n instanceof DocumentTouch)t=!0;else{var o=["@media (",C.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");_(o,function(e){t=9===e.offsetTop})}return t});var E="Moz O ms Webkit",z=T._config.usePrefixes?E.toLowerCase().split(" "):[];T._domPrefixes=z;var $=T._config.usePrefixes?E.split(" "):[];T._cssomPrefixes=$;var N={elem:a("modernizr")};Modernizr._q.push(function(){delete N.elem});var j={style:N.elem.style};Modernizr._q.unshift(function(){delete j.style}),T.testAllProps=y,T.testAllProps=g,Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&g("transform","scale(1)",!0)}),Modernizr.addTest("csstransforms3d",function(){var e=!!g("perspective","1px",!0),n=Modernizr._config.usePrefixes;if(e&&(!n||"webkitPerspective"in S.style)){var t;Modernizr.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",n&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}",_(t,function(n){e=9===n.offsetLeft&&5===n.offsetHeight})}return e}),Modernizr.addTest("csstransitions",g("transition","all",!0)),r(),s(h),delete T.addTest,delete T.addAsyncTest;for(var k=0;k<Modernizr._q.length;k++)Modernizr._q[k]();e.Modernizr=Modernizr}(window,document); 1873/*! Picturefill - v3.0.1 - 2015-09-30 1874 * http://scottjehl.github.io/picturefill 1875 * Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT 1876 */ 1877!function(a){var b=navigator.userAgent;a.HTMLPictureElement&&/ecko/.test(b)&&b.match(/rv\:(\d+)/)&&RegExp.$1<41&&addEventListener("resize",function(){var b,c=document.createElement("source"),d=function(a){var b,d,e=a.parentNode;
vendor: 4,515 bytes, line 1877
1877"PICTURE"===e.nodeName.toUpperCase()?(b=c.cloneNode(),e.insertBefore(b,e.firstElementChild),setTimeout(function(){e.removeChild(b)})):(!a._pfLastSize||a.offsetWidth>a._pfLastSize)&&(a._pfLastSize=a.offsetWidth,d=a.sizes,a.sizes+=",100vw",setTimeout(function(){a.sizes=d}))},e=function(){var a,b=document.querySelectorAll("picture > img, img[srcset][sizes]");for(a=0;a<b.length;a++)d(b[a])},f=function(){clearTimeout(b),b=setTimeout(e,99)},g=a.matchMedia&&matchMedia("(orientation: landscape)"),h=function(){f(),g&&g.addListener&&g.addListener(f)};return c.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?h():document.addEventListener("DOMContentLoaded",h),f}())}(window),function(a,b,c){"use strict";function d(a){return" "===a||" "===a||"\n"===a||"\f"===a||"\r"===a}function e(b,c){var d=new a.Image;return d.onerror=function(){z[b]=!1,aa()},d.onload=function(){z[b]=1===d.width,aa()},d.src=c,"pending"}function f(){L=!1,O=a.devicePixelRatio,M={},N={},s.DPR=O||1,P.width=Math.max(a.innerWidth||0,y.clientWidth),P.height=Math.max(a.innerHeight||0,y.clientHeight),P.vw=P.width/100,P.vh=P.height/100,r=[P.height,P.width,O].join("-"),P.em=s.getEmValue(),P.rem=P.em}function g(a,b,c,d){var e,f,g,h;return"saveData"===A.algorithm?a>2.7?h=c+1:(f=b-c,e=Math.pow(a-.6,1.5),g=f*e,d&&(g+=.1*e),h=a+g):h=c>1?Math.sqrt(a*b):a,h>c}function h(a){var b,c=s.getSet(a),d=!1;"pending"!==c&&(d=r,c&&(b=s.setRes(c),s.applySetCandidate(b,a))),a[s.ns].evaled=d}function i(a,b){return a.res-b.res}function j(a,b,c){var d;return!c&&b&&(c=a[s.ns].sets,c=c&&c[c.length-1]),d=k(b,c),d&&(b=s.makeUrl(b),a[s.ns].curSrc=b,a[s.ns].curCan=d,d.res||_(d,d.set.sizes)),d}function k(a,b){var c,d,e;if(a&&b)for(e=s.parseSet(b),a=s.makeUrl(a),c=0;c<e.length;c++)if(a===s.makeUrl(e[c].url)){d=e[c];break}return d}function l(a,b){var c,d,e,f,g=a.getElementsByTagName("source");for(c=0,d=g.length;d>c;c++)e=g[c],e[s.ns]=!0,f=e.getAttribute("srcset"),f&&b.push({srcset:f,media:e.getAttribute("media"),type:e.getAttribute("type"),sizes:e.getAttribute("sizes")})}function m(a,b){function c(b){var c,d=b.exec(a.substring(m));return d?(c=d[0],m+=c.length,c):void 0}function e(){var a,c,d,e,f,i,j,k,l,m=!1,o={};for(e=0;e<h.length;e++)f=h[e],i=f[f.length-1],j=f.substring(0,f.length-1),k=parseInt(j,10),l=parseFloat(j),W.test(j)&&"w"===i?((a||c)&&(m=!0),0===k?m=!0:a=k):X.test(j)&&"x"===i?((a||c||d)&&(m=!0),0>l?m=!0:c=l):W.test(j)&&"h"===i?((d||c)&&(m=!0),0===k?m=!0:d=k):m=!0;m||(o.url=g,a&&(o.w=a),c&&(o.d=c),d&&(o.h=d),d||c||a||(o.d=1),1===o.d&&(b.has1x=!0),o.set=b,n.push(o))}function f(){for(c(S),i="",j="in descriptor";;){if(k=a.charAt(m),"in descriptor"===j)if(d(k))i&&(h.push(i),i="",j="after descriptor");else{if(","===k)return m+=1,i&&h.push(i),void e();if("("===k)i+=k,j="in parens";else{if(""===k)return i&&h.push(i),void e();i+=k}}else if("in parens"===j)if(")"===k)i+=k,j="in descriptor";else{if(""===k)return h.push(i),void e();i+=k}else if("after descriptor"===j)if(d(k));else{if(""===k)return void e();j="in descriptor",m-=1}m+=1}}for(var g,h,i,j,k,l=a.length,m=0,n=[];;){if(c(T),m>=l)return n;g=c(U),h=[],","===g.slice(-1)?(g=g.replace(V,""),e()):f()}}function n(a){function b(a){function b(){f&&(g.push(f),f="")}function c(){g[0]&&(h.push(g),g=[])}for(var e,f="",g=[],h=[],i=0,j=0,k=!1;;){if(e=a.charAt(j),""===e)return b(),c(),h;if(k){if("*"===e&&"/"===a[j+1]){k=!1,j+=2,b();continue}j+=1}else{if(d(e)){if(a.charAt(j-1)&&d(a.charAt(j-1))||!f){j+=1;continue}if(0===i){b(),j+=1;continue}e=" "}else if("("===e)i+=1;else if(")"===e)i-=1;else{if(","===e){b(),c(),j+=1;continue}if("/"===e&&"*"===a.charAt(j+1)){k=!0,j+=2;continue}}f+=e,j+=1}}}function c(a){return k.test(a)&&parseFloat(a)>=0?!0:l.test(a)?!0:"0"===a||"-0"===a||"+0"===a?!0:!1}var e,f,g,h,i,j,k=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(f=b(a),g=f.length,e=0;g>e;e++)if(h=f[e],i=h[h.length-1],c(i)){if(j=i,h.pop(),0===h.length)return j;if(h=h.join(" "),s.matchesMedia(h))return j}return"100vw"}b.createElement("picture");var o,p,q,r,s={},t=function(){},u=b.createElement("img"),v=u.getAttribute,w=u.setAttribute,x=u.removeAttribute,y=b.documentElement,z={},A={algorithm:""},B="data-pfsrc",C=B+"set",D=navigator.userAgent,E=/rident/.test(D)||/ecko/.test(D)&&D.match(/rv\:(\d+)/)&&RegExp.$1>35,F="currentSrc",G=/\s+\+?\d+(e\d+)?w/,H=/(\([^)]+\))?\s*(.+)/,I=a.picturefillCFG,J="position:absolute;
1877left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",K="font-size:100%!important;",L=!0,M={},N={},O=a.devicePixelRatio,P={px:1,"in":96},Q=b.createElement("a"),R=!1,S=/^[ \t\n\r\u000c]+/,T=/^[, \t\n\r\u000c]+/,U=/^[^ \t\n\r\u000c]+/,V=/[,]+$/,W=/^\d+$/,X=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,Y=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},Z=function(a){var b={};return function(c){return c in b||(b[c]=a(c)),b[c]}},$=function(){var a=/^([\d\.]+)(em|vw|px)$/,b=function(){for(var a=arguments,b=0,c=a[0];++b in a;)c=c.replace(a[b],a[++b]);return c},c=Z(function(a){return"return "+b((a||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(b,d){var e;if(!(b in M))if(M[b]=!1,d&&(e=b.match(a)))M[b]=e[1]*P[e[2]];else try{M[b]=new Function("e",c(b))(P)}catch(f){}return M[b]}}(),_=function(a,b){return a.w?(a.cWidth=s.calcListLength(b||"100vw"),a.res=a.w/a.cWidth):a.res=a.d,a},aa=function(a){var c,d,e,f=a||{};if(f.elements&&1===f.elements.nodeType&&("IMG"===f.elements.nodeName.toUpperCase()?f.elements=[f.elements]:(f.context=f.elements,f.elements=null)),c=f.elements||s.qsa(f.context||b,f.reevaluate||f.reselect?s.sel:s.selShort),e=c.length){for(s.setupRun(f),R=!0,d=0;e>d;d++)s.fillImg(c[d],f);s.teardownRun(f)}};o=a.console&&console.warn?function(a){console.warn(a)}:t,F in u||(F="src"),z["image/jpeg"]=!0,z["image/gif"]=!0,z["image/png"]=!0,z["image/svg+xml"]=b.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1"),s.ns=("pf"+(new Date).getTime()).substr(0,9),s.supSrcset="srcset"in u,s.supSizes="sizes"in u,s.supPicture=!!a.HTMLPictureElement,s.supSrcset&&s.supPicture&&!s.supSizes&&!function(a){u.srcset="data:,a",a.src="data:,a",s.supSrcset=u.complete===a.complete,s.supPicture=s.supSrcset&&s.supPicture}(b.createElement("img")),s.selShort="picture>img,img[srcset]",s.sel=s.selShort,s.cfg=A,s.supSrcset&&(s.sel+=",img["+C+"]"),s.DPR=O||1,s.u=P,s.types=z,q=s.supSrcset&&!s.supSizes,s.setSize=t,s.makeUrl=Z(function(a){return Q.href=a,Q.href}),s.qsa=function(a,b){return a.querySelectorAll(b)},s.matchesMedia=function(){return a.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?s.matchesMedia=function(a){return!a||matchMedia(a).matches}:s.matchesMedia=s.mMQ,s.matchesMedia.apply(this,arguments)},s.mMQ=function(a){return a?$(a):!0},s.calcLength=function(a){var b=$(a,!0)||!1;return 0>b&&(b=!1),b},s.supportsType=function(a){return a?z[a]:!0},s.parseSize=Z(function(a){var b=(a||"").match(H);return{media:b&&b[1],length:b&&b[2]}}),s.parseSet=function(a){return a.cands||(a.cands=m(a.srcset,a)),a.cands},s.getEmValue=function(){var a;if(!p&&(a=b.body)){var c=b.createElement("div"),d=y.style.cssText,e=a.style.cssText;c.style.cssText=J,y.style.cssText=K,a.style.cssText=K,a.appendChild(c),p=c.offsetWidth,a.removeChild(c),p=parseFloat(p,10),y.style.cssText=d,a.style.cssText=e}return p||16},s.calcListLength=function(a){if(!(a in N)||A.uT){var b=s.calcLength(n(a));N[a]=b?b:P.width}return N[a]},s.setRes=function(a){var b;if(a){b=s.parseSet(a);for(var c=0,d=b.length;d>c;c++)_(b[c],a.sizes)}return b},s.setRes.res=_,s.applySetCandidate=function(a,b){if(a.length){var c,d,e,f,h,k,l,m,n,o=b[s.ns],p=s.DPR;if(k=o.curSrc||b[F],l=o.curCan||j(b,k,a[0].set),l&&l.set===a[0].set&&(n=E&&!b.complete&&l.res-.1>p,n||(l.cached=!0,l.res>=p&&(h=l))),!h)for(a.sort(i),f=a.length,h=a[f-1],d=0;f>d;d++)if(c=a[d],c.res>=p){e=d-1,h=a[e]&&(n||k!==s.makeUrl(c.url))&&g(a[e].res,c.res,p,a[e].cached)?a[e]:c;break}h&&(m=s.makeUrl(h.url),o.curSrc=m,o.curCan=h,m!==k&&s.setSrc(b,h),s.setSize(b))}},s.setSrc=function(a,b){var c;a.src=b.url,"image/svg+xml"===b.set.type&&(c=a.style.width,a.style.width=a.offsetWidth+1+"px",a.offsetWidth+1&&(a.style.width=c))},s.getSet=function(a){var b,c,d,e=!1,f=a[s.ns].sets;for(b=0;b<f.length&&!e;b++)if(c=f[b],c.srcset&&s.matchesMedia(c.media)&&(d=s.supportsType(c.type))){"pending"===d&&(c=d),e=c;break}return e},s.parseSets=function(a,b,d){var e,f,g,h,i=b&&"PICTURE"===b.nodeName.toUpperCase(),j=a[s.ns];(j.src===c||d.src)&&(j.src=v.call(a,"src"),j.src?w.call(a,B,j.src):x.call(a,B)),(j.srcset===c||d.srcset||!s.supSrcset||a.srcset)&&(e=v.call(a,"srcset"),j.srcset=e,h=!0),j.sets=[],i&&(j.pic=!0,l(b,j.set
1877s)),j.srcset?(f={srcset:j.srcset,sizes:v.call(a,"sizes")},j.sets.push(f),g=(q||j.src)&&G.test(j.srcset||""),g||!j.src||k(j.src,f)||f.has1x||(f.srcset+=", "+j.src,f.cands.push({url:j.src,d:1,set:f}))):j.src&&j.sets.push({srcset:j.src,sizes:null}),j.curCan=null,j.curSrc=c,j.supported=!(i||f&&!s.supSrcset||g),h&&s.supSrcset&&!j.supported&&(e?(w.call(a,C,e),a.srcset=""):x.call(a,C)),j.supported&&!j.srcset&&(!j.src&&a.src||a.src!==s.makeUrl(j.src))&&(null===j.src?a.removeAttribute("src"):a.src=j.src),j.parsed=!0},s.fillImg=function(a,b){var c,d=b.reselect||b.reevaluate;a[s.ns]||(a[s.ns]={}),c=a[s.ns],(d||c.evaled!==r)&&((!c.parsed||b.reevaluate)&&s.parseSets(a,a.parentNode,b),c.supported?c.evaled=r:h(a))},s.setupRun=function(){(!R||L||O!==a.devicePixelRatio)&&f()},s.supPicture?(aa=t,s.fillImg=t):!function(){var c,d=a.attachEvent?/d$|^c/:/d$|^c|^i/,e=function(){var a=b.readyState||"";f=setTimeout(e,"loading"===a?200:999),b.body&&(s.fillImgs(),c=c||d.test(a),c&&clearTimeout(f))},f=setTimeout(e,b.body?9:99),g=function(a,b){var c,d,e=function(){var f=new Date-d;b>f?c=setTimeout(e,b-f):(c=null,a())};return function(){d=new Date,c||(c=setTimeout(e,b))}},h=y.clientHeight,i=function(){L=Math.max(a.innerWidth||0,y.clientWidth)!==P.width||y.clientHeight!==h,h=y.clientHeight,L&&s.fillImgs()};Y(a,"resize",g(i,99)),Y(b,"readystatechange",e)}(),s.picturefill=aa,s.fillImgs=aa,s.teardownRun=t,aa._=s,a.picturefillCFG={pf:s,push:function(a){var b=a.shift();"function"==typeof s[b]?s[b].apply(s,a):(A[b]=a[0],R&&s.fillImgs({reselect:!0}))}};for(;I&&I.length;)a.picturefillCFG.push(I.shift());a.picturefill=aa,"object"==typeof module&&"object"==typeof module.exports?module.exports=aa:"function"==typeof define&&define.amd&&define("picturefill",function(){return aa}),s.supPicture||(z["image/webp"]=e("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document); 1878/*! Select2 4.0.5 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];
vendor: 12,284 bytes, line 1878
1878return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;c<d;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;c<a;c++){b+=Math.floor(36*Math.random()).toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return(e!==f||"hidden"!==f&&"visible"!==f)&&("scroll"===e||"scroll"===f||(d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth))},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){b.find(".select2-results").append(a)},c.prototype.sort=function(a){return this.options.get("sorter")(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[aria-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("aria-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","fal
1878se"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id;if(b.length>1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}
vendor: 5,033 bytes, line 1878
1878),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var f=document.documentMode,g=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(g)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({}
1878,b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"
1878c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½
":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á»
":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È
":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê
":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹
":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê
":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","áº
":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï
","Ï":"Ï
","ΰ":"Ï
","Ï":"Ï","Ï":"Ï"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple")){if(a.selected=!1,c(a.element).is("option"))return a.element.selected=!1,void this.$element.trigger("change");this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})}},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this;this.$element.children().each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),void 0!==a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);
vendor: 10,312 bytes, line 1878
1878var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(null!=(b=c.data(a[0],"data")))return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(a.data=g,void c(a))}if(f)return!0;var k=e.createTag(b);if(null!=k){var l=e.option(k);l.attr("data-select2-tag",!0),e.addOptions([l]),e.insertTag(g,k)}a.results=g,c(a)}var e=this;if(this._removeOldTags(),null==b.term||null!=b.page)return void a.call(this,b,c);a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b);if(!g.$element.find("option").filter(function(){return a(this).val()===c.id}).length){var d=g.option(c);d.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([d])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",b.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem
vendor: 15,593 bytes, line 1878
1878" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return!(a(c.data.results)<this.minimumResultsForSearch)&&b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){return"Please enter "+(a.minimum-a.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}return D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(a){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(a){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var O=k.loadPath(this.defaults.amdLanguageBase+"en"),P=new k(l.language);P.extend(O),l.translations=P}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h<i;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var
vendor: 2,491 bytes, line 1878
1878a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
vendor: 4,163 bytes, line 1878
1878,e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(f=d(this))&&g.push(f)})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated
1878in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;if(this._isInitialized)return void b.call(this,c);this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),a.call(this,b,c)}return b.prototype.current=function(b,c){function d(b,c){var e=[];return b.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(var e=[],f=0;f<this._currentData.length;f++){var g=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){var d=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){var c=this;b.selected=!1,this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(var d=[],e=0;e<this._currentData.length;e++){var f=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){var d=a.map(c,function(b){return a.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){function b(b){function c(c,d){var e=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))return e;if(d.children){for(var f=d.children.length-1;f>=0;f--){var g=d.children[f];b(c.term,g.text,g)||e.children.splice(f,1)}if(e.children.length>0)return e}return b(c.term,d.text,d)?e:null}return c}return b}),b.define("select2/compat/query",[],function(){function a(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}return a.prototype.query=function(a,b,c){b.callback=c,this.options.get("query").call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.position=function(a,b,c){c.find(".dropdown-wrapper").append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),function(c){"function"==typeof b.define&&b.define.amd?b.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(a)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1
vendor: 4,515 bytes, lines 1878-1881
1878),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||n<f)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120==0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});� 1879 1880/*! WOW - v1.1.2 - 2015-04-07 1881* Copyright (c) 2015 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}
vendor: 5,135 bytes, line 1881
1881,a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}
1881,e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); 1882 1883Revolution.Module.extend({ 1884 NAME : "r9.form", // OBLIGATOIRE (reflète l'arborescence répertoire : /r9/main.js) 1885 1886 initialize : function ($) { 1887 // appelé aussitôt la page chargée 1888 //console.log("module " + this.NAME); 1889 1890 _.bindAll(this, "checkInputs", "inputText", "selectrik", "openFormNewsletter", "closeFormNewsletter","checkSelectValue"); 1891 1892 //Example to call an external function 1893 //var UTILS = Revolution.get("r9._utils"); 1894 //UTILS.equalheight($('.bk-mosaique .js-equal-height')); 1895 1896 1897 //FORM 1898 this.selectrik(); 1899 this.checkInputs(); 1900 this.checkSelectValueOnload(); 1901 1902 $('.footer-top .open-newsletter').on('click', this.openFormNewsletter); 1903 $('.footer-top .close-form').on('click', this.closeFormNewsletter); 1904 $('input[type="text"], input[type="tel"], input[type="email"], input[type="password"], .wrapper-textarea textarea, textarea').change(this.inputText); 1905 $('select[data-reqmsg]').change(this.checkSelectValue); 1906 1907 }, 1908 1909 onWindowLoad : function (e) { 1910 // 1911 }, 1912 onWindowScroll : function (e) { 1913 // 1914 }, 1915 onWindowResize : function (e) { 1916 // 1917 }, 1918 1919 checkInputs: function () { 1920 $('input[type="text"], input[type="tel"], input[type="email"], input[type="password"], .wrapper-textarea textarea, textarea').each(function() { 1921 if (!$(this).val() == "") { 1922 $(this).next("label").addClass("active"); 1923 } else { 1924 $(this).next("label").removeClass("active"); 1925 } 1926 }); 1927 }, 1928 1929 inputText : function(e) { 1930 var $obj = $(e.currentTarget); 1931 if (!$obj.val() == "") { 1932 $obj.next("label").addClass("active"); 1933 } else { 1934 $obj.next("label").removeClass("active"); 1935 } 1936 }, 1937 1938 selectrik : function(e) { 1939 var $ = this.$; 1940 var $obj = $(e); 1941 $('.frm-form-wrapper-select select').selectric(); 1942 }, 1943 1944 openFormNewsletter : function(e) { 1945 var $target = $(e.currentTarget); 1946 if($target.hasClass('active')) { 1947 $target.removeClass('active'); 1948 $('.footer-top-bottom').slideUp(); 1949 } else { 1950 $target.addClass('active'); 1951 $('.footer-top-bottom').slideDown(); 1952 } 1953 }, 1954 closeFormNewsletter : function(e) { 1955 var $target = $(e.currentTarget); 1956 $('.footer-top-bottom').slideUp(); 1957 $('.footer-top .open-newsletter').removeClass('active'); 1958 }, 1959 1960 checkSelectValue : function(e) { 1961 var $obj = $(e.currentTarget); 1962 var $val = $obj.val(); 1963 var $id = $obj.attr('id'); 1964 //console.log($id); 1965 var $label = $('label[for="'+$id+'"]'); 1966 //console.log($label); 1967
1968 if ($val != '') { 1969 $label.hide(); 1970 } else { 1971 $label.show(); 1972 } 1973 1974 }, 1975 checkSelectValueOnload : function() { 1976 1977 $('select[data-reqmsg]').each(function(index, elem) { 1978 1979 var $obj = $(elem); 1980 var $val = $obj.val(); 1981 var $id = $obj.attr('id'); 1982 //console.log($id); 1983 var $label = $('label[for="'+$id+'"]'); 1984 //console.log($label); 1985 1986 if ($val != '') { 1987 $label.hide(); 1988 } else { 1989 $label.show(); 1990 } 1991 }); 1992 1993 } 1994 1995}); 1996Revolution.Module.extend({ 1997 NAME : "r9.main", // OBLIGATOIRE (reflète l'arborescence répertoire : /r9/main.js) 1998 1999 initialize : function ($) { 2000 // appelé aussitôt la page chargée 2001 _.bindAll(this, "initWowJs", "accordion", "bkImgandText", "bk3Remontees", "bkActu", "backToTop", "strateImgTop", "startDatePicker", "endDatePicker"); 2002 2003 //Example to call an external function 2004 //var UTILS = Revolution.get("r9._utils"); 2005 //UTILS.equalheight($('.bk-mosaique .js-equal-height')); 2006 2007 window.heightWIndow = $(window).height(); 2008 this.initWowJs(); 2009 this.accordion(); 2010 this.bkImgandText(); 2011 this.bk3Remontees(); 2012 $("#back-to-top").on('click', this.backToTop); 2013 this.strateImgTop(); 2014 this.startDatePicker(); 2015 this.endDatePicker(); 2016 2017 this.setSliderHeight(); 2018 2019 2020 $('.frm_checkbox input[type="checkbox"], .frm_radio input[type="radio"]').on('change', this.toogleInputChecked); 2021 }, 2022 2023 onWindowLoad : function (e) { 2024 // 2025 this.bkActu(); 2026 2027 this.setSliderHeight(); 2028 }, 2029 onWindowScroll : function (e) { 2030 // 2031 var scroll = $(window).scrollTop(); 2032 if(scroll > 400) { 2033 $("#back-to-top").addClass('is-visible'); 2034 } else { 2035 $("#back-to-top").removeClass('is-visible'); 2036 } 2037 }, 2038 onWindowResize : function (e) { 2039 // 2040 window.heightWIndow = $(window).height(); 2041 2042 this.bkImgandText(); 2043 2044 this.bkActu(); 2045 2046 this.strateImgTop(); 2047 2048 this.setSliderHeight(); 2049 }, 2050 2051 initWowJs : function () { 2052 // var wow = new WOW({ 2053 // offset: window.heightWIndow/3 2054 // }); 2055 // wow.init(); 2056 }, 2057 accordion : function () { 2058 $('.bk-accordion').accordion({ 2059 heightStyle: "content", 2060 collapsible: true, 2061 active: false, 2062 activate: function( event, ui ) { 2063 if ($(".bk-accordion .slick-slider").length) { 2064 $(".bk-accordion .slick-slider").slick("setPosition"); 2065 } 2066 } 2067 }); 2068 }, 2069 bkImgandText : function () { 2070 enquire.register("screen and (max-width:1024px)", { 2071 match : function() { 2072 $('.bk-img-and-text.img-right').each(function() { 2073 $($(this).find('img')).prependTo($(this)); 2074 }); 2075 }, 2076 2077 unmatch : function() { 2078 $('.bk-img-and-text.img-right').each(function() { 2079 $($(this).find('img')).appendTo($(this)); 2080 }); 2081 } 2082 }); 2083 }, 2084 bk3Remontees : function () { 2085 enquire.register("screen and (max-width: 860px)", { 2086 match : function() { 2087 if(!$('.bk-3-remontees ul.slick-initialized').length) { 2088 $('.bk-3-remontees ul').slick({ 2089 arrows: false, 2090 dots: false, 2091 slidesToShow: 1, 2092 slidesToScroll: 1, 2093 centerMode: true, 2094 adaptiveHeight: true 2095 }); 2096 } 2097 }, 2098 2099 unmatch : function() { 2100 if($('.bk-3-remontees ul.slick-initialized').length) { 2101 $('.bk-3-remontees ul').slick('unslick'); 2102 } 2103 } 2104 }); 2105 }, 2106 bkActu : function () { 2107 enquire.register("screen and (min-width:1024px)", { 2108 match : function() { 2109 $('.bk-big-wrapper-actu .wrapper-bk').each(function(index, el) { 2110 var heightWrapper = $(el).outerHeight(); 2111 var heightLittleBk = heightWrapper / 2 - 16; 2112 $(el).find('.with-text, .mini-actu, .long-actu').css('height', heightLittleBk); 2113 }); 2114 }, 2115 2116 unmatch : function() { 2117 $('.bk-big-wrapper-actu .wrapper-bk .bk-actu').css('height', 'auto'); 2118 } 2119 }); 2120 }, 2121 backToTop : function (e) { 2122 $('html,body').animate({ 2123 scrollTop: $('body').offset().top 2124 }, 600); 2125 }, 2126 strateImgTop : function () { 2127 var heightWindow = $(window).height(); 2128 //var height = $('.').height(); 2129 $('.strate-img-top').height(heightWindow - $('.bk-book-home').height()); 2130 }, 2131 startDatePicker : function (e) { 2132 $(".date_debut_demande input").datepicker({ 2133 onSelect: function(selectedDate, inst) { 2134 2135 setTimeout(function(){ 2136 $('.date_fin_demande input').trigger('click'); 2137 var fullmonth_array = $.datepicker.regional['fr'].monthNames; 2138 $(".date_fin_demande input").datepicker({ 2139 minDate : selectedDate 2140 }); 2141 }, 200); 2142 $(".date_debut_demande input").next('label').addClass('active'); 2143 }, 2144 onClose: function(selectedDate) { 2145 $(".date_fin_demande input").datepicker({ 2146 minDate : selectedDate 2147 }); 2148 } 2149 }, 'show', "d M, y", "firstDay", 0); 2150 }, 2151 endDatePicker : function (e) { 2152 2153 $(".date_fin_demande input").datepicker({ 2154 onSelect: function(selectedDate, inst) { 2155 $(".date_debut_demande input").datepicker('option','maxDate', selectedDate); 2156 $(".date_fin_demande input").next('label').addClass('active'); 2157 }, 2158 onClose: function(selectedDate) { 2159 $(".date_debut_demande input").datepicker('option','maxDate', selectedDate); 2160 } 2161 }, 'show', "d M, y", "firstDay", 0); 2162 }, 2163 2164 setSliderHeight : function(e) { 2165 var $slideArticle = $('.slider-article .visuel.cover-parent'); 2166 var windowH = $(window).width() < 767 ? 400 : $(window).outerHeight(); 2167 var homeHeaderH = $('.header-bar').outerHeight(); // bloc header pour la home 2168 var headerH = $('.wrapper-header-top').outerHeight(); // bloc header pour toutes les autres pages 2169 var arrowSliderHeight = $('.slider-article .slick-arrow').outerHeight(); 2170 var availableH = windowH - homeHeaderH - headerH - arrowSliderHeight/2; 2171 2172 $slideArticle.height(availableH); 2173 }, 2174 toogleInputChecked : function(e) { 2175 var $obj = $(e.currentTarget); 2176 if($obj.is('input:radio')) { 2177 $obj.closest('.frm-form-wrapper-checkbox').toggleClass('is-checked').siblings('.frm-form-wrapper-checkbox').removeClass('is-checked'); 2178 } else { 2179 $obj.closest('.frm-form-wrapper-checkbox').toggleClass('is-checked'); 2180 } 2181 } 2182 2183}); 2184Revolution.Module.extend({ 2185 NAME : "r9.menu", // OBLIGATOIRE (reflète l'arborescence répertoire : /r9/main.js) 2186 2187 initialize : function ($) { 2188 // appelé aussitôt la page chargée
2189 _.bindAll(this, "toggleMenu", "openMenu", "closeMenu", "stickyMenu" ,"startDatePicker", "endDatePicker", "showNbPerson", "choiceNbPerson", "clickOutsideNbPerson", "openMobileParameter", "moveBkParameter", "getTodayDate", "homeColorMenu", "clickLayer", "getLinkBookNow", "bookNow", "choiceLanguage", "hideMenuScroll"); 2190 2191 //Example to call an external function 2192 //var UTILS = Revolution.get("r9._utils"); 2193 //UTILS.equalheight($('.bk-mosaique .js-equal-height')); 2194 2195 $('header .open-menu').on('click', this.toggleMenu); 2196 2197 $('.open-parameter-mobile').on('click', this.openMobileParameter); 2198 $('.left-side .choiceNum').on('click', this.showNbPerson); 2199 $('.list-select').bind( 'clickoutside', this.clickOutsideNbPerson); 2200 $('.list-select a').on('click', this.choiceNbPerson); 2201 $('#layer-transparent').on('click', this.clickLayer); 2202 $('body').on('click', '.get-link-book-infos', this.bookNow); 2203 2204 this.stickyMenu(); 2205 this.startDatePicker(); 2206 this.endDatePicker(); 2207 this.moveBkParameter(); 2208 this.getTodayDate(); 2209 this.HilightMenu(); 2210 this.getLinkBookNow(); 2211 2212 this.choiceLanguage(); 2213 2214 }, 2215 2216 onWindowLoad : function (e) { 2217 // 2218 }, 2219 onWindowScroll : function (e) { 2220 // 2221 $('.list-select').removeClass('visible').css({'top': 'auto', 'left': 'auto'}); 2222 2223 if($('.home').length) { 2224 this.homeColorMenu(); 2225 2226 //debug sticky menu mobile homepage qui ajoute un site-content autour du menu 2227 $('.site-content').each(function(index, el) { 2228 if($(el).css('float') == 'left') { 2229 $(el).css('padding', '0'); 2230 } 2231 }); 2232 } 2233 2234 enquire.register("screen and (max-width:1400px)", { 2235 match : _.bind(function() { 2236 this.hideMenuScroll(); 2237 }, this) 2238 }); 2239 }, 2240 onWindowResize : function (e) { 2241 // 2242 $(".bk-book-home").trigger("sticky_kit:detach"); 2243 this.stickyMenu(); 2244 }, 2245 toggleMenu : function (e) { 2246 var $target = $(e.currentTarget); 2247 2248 if($('header nav').is(':visible')) { 2249 this.closeMenu(); 2250 } else { 2251 this.openMenu(); 2252 } 2253 }, 2254 openMenu: function (e) { 2255 $('header').addClass('is-open'); 2256 $('header nav').fadeIn(400, function() { 2257 $('body').css({'position': 'fixed', 'overflow': 'hidden'}); 2258 }); 2259 $('.parameter-mobile').hide(); 2260 }, 2261 closeMenu: function (e) { 2262 $('header').removeClass('is-open'); 2263 $('header nav').fadeOut(400, function() { 2264 $('body').css({'position': 'relative', 'overflow': 'auto'}); 2265 }); 2266 2267 }, 2268 HilightMenu : function() { 2269 $current = $("nav li.active"); 2270 $("nav") 2271 .on("mouseenter","li",function(e) { 2272 $("nav li").removeClass("active"); 2273 }) 2274 .on("mouseleave","li",function(e) { 2275 $current.addClass("active") 2276 }); 2277 }, 2278 2279 stickyMenu : function (e) { 2280 //$("header").stick_in_parent(); 2281 $(".bk-book-home").stick_in_parent({ 2282 parent : $('.global-wrapper'), 2283 //offset_top : $(window).height() - $('.bk-book-home').height() 2284 }).on("sticky_kit:bottom", function(e) { 2285 $('#ui-datepicker-div').hide(); 2286 }); 2287 }, 2288 getTodayDate : function () { 2289 // Nom des mois 2290 if($('html').attr('lang') == 'fr-FR') { 2291 var monthNames = ['Janvier','Fevrier','Mars','Avril','Mai','Juin', 2292 'Juillet','Aout','Septembre','Octobre','Novembre','Decembre']; 2293 } else { 2294 var monthNames= [ "January","February","March","April","May","June", 2295 "July","August","September","October","November","December" ]; 2296 } 2297 2298 // Date d'aujourd'hui 2299 var d = new Date(); 2300 // var d = new Date(); 2301 var month = d.getMonth(); 2302 var day = d.getDate(); 2303 var year = d.getFullYear(); 2304 $('#start-day').html(((''+day).length<2 ? '0' : '') + day); 2305 $('#start-month').html(monthNames[month]); 2306 2307 // Date d'aujourd'hui + 1 2308 var tmr = new Date(d.getTime() + 24 * 60 * 60 * 1000); 2309 var tmrMonth = tmr.getMonth(); 2310 var tmrDay = tmr.getDate(); 2311 $('#end-day').html(((''+tmrDay).length<2 ? '0' : '') + tmrDay); 2312 $('#end-month').html(monthNames[tmrMonth]); 2313 }, 2314 startDatePicker : function (e) { 2315 var d = new Date(); 2316 if($('html').attr('lang') == 'fr-FR') { 2317 $.datepicker.regional['fr'] = { 2318 prevText: '<Préc', 2319 nextText: 'Suiv>', 2320 monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 2321 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], 2322 monthNamesShort: ['Janvier','Février','Mars','Avril','Mai','Juin',
2323 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], 2324 dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], 2325 dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], 2326 dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], 2327 weekHeader: 'Sm', 2328 firstDay: 1, 2329 isRTL: false, 2330 showMonthAfterYear: false, 2331 yearSuffix: '', 2332 minDate: d, 2333 maxDate: '+12M +0D', 2334 numberOfMonths: 1, 2335 //dateFormat: 'MM/dd/yy', 2336 }; 2337 $.datepicker.setDefaults( $.datepicker.regional[ "fr" ] ); 2338 } else { 2339 $.datepicker.regional['en-GB'] = { 2340 closeText: "Done", 2341 prevText: "Prev", 2342 nextText: "Next", 2343 currentText: "Today", 2344 monthNames: [ "January","February","March","April","May","June", 2345 "July","August","September","October","November","December" ], 2346 monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", 2347 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], 2348 dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], 2349 dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], 2350 dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], 2351 weekHeader: "Wk", 2352 firstDay: 1, 2353 isRTL: false, 2354 showMonthAfterYear: false, 2355 yearSuffix: "", 2356 minDate: d, 2357 maxDate: '+12M +0D', 2358 numberOfMonths: 1, 2359 dateFormat: "mm/dd/yy" 2360 }; 2361 $.datepicker.setDefaults( $.datepicker.regional[ "en-GB" ] ); 2362 } 2363 $("#datePickerStart").datepicker({ 2364 beforeShow: function() { 2365 $('.ui-datepicker').css('margin-left', '0'); 2366 }, 2367 onSelect: function(selectedDate, inst) { 2368 var date = selectedDate.split('/'); 2369 $('#startDate .day').html(date[1]); 2370 2371 if($('html').attr('lang') == 'fr-FR') { 2372 $('#startDate .month').html($.datepicker.regional['fr'].monthNames[date[0] - 1]); 2373 } else { 2374 $('#startDate .month').html($.datepicker.regional['en-GB'].monthNames[date[0] - 1]); 2375 } 2376 setTimeout(function(){ 2377 $('#endDate').trigger('click'); 2378 $("#endDate").datepicker('option','minDate', selectedDate); 2379 }, 200); 2380 }, 2381 onClose: function(selectedDate) { 2382 $("#datePickerEnd").datepicker('option','minDate', selectedDate); 2383 } 2384 }, "firstDay"); 2385 2386 $("#startDate").on('click', function() { 2387 if($('html').attr('lang') == 'fr-FR') { 2388 $.datepicker.setDefaults($.datepicker.regional['fr']); 2389 } else { 2390 $.datepicker.setDefaults($.datepicker.regional['en-GB']); 2391 } 2392 $("#datePickerStart").datepicker('show', "d M, y", "firstDay", 0); 2393 2394 if(!$('#page-home').length) { 2395 //Si version mobile 2396 if($('.parameter-mobile').length) { 2397 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2398 $('#ui-datepicker-div').css({ 2399 top: $(window).height() - ($(window).height()/2) - ($('#ui-datepicker-div').height()/2), 2400 left: centerLeft 2401 }); 2402 } else { 2403 $('#ui-datepicker-div').css({ 2404 top: '107px', 2405 left: $('#startDate').offset().left 2406 }); 2407 } 2408 } else { 2409 //Si version mobile 2410 if($('.parameter-mobile').length) { 2411 if($('.bk-book-home.is_stuck').length) { 2412 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2413 $('#ui-datepicker-div').css({ 2414 top: $('.right-side').height(), 2415 left: centerLeft 2416 }); 2417 } else { 2418 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2419 $('#ui-datepicker-div').css({ 2420 top: $(window).height() - $('.parameter-mobile').height() - 100, 2421 left: centerLeft 2422 }); 2423 } 2424 } else { 2425 if($('.bk-book-home.is_stuck').length) { 2426 $('#ui-datepicker-div').css({ 2427 top: '107px', 2428 left: $('#startDate').offset().left 2429 }); 2430 } else { 2431 $('#ui-datepicker-div').css({ 2432 top: $(window).height() - $('.bk-book-home').height() - 320, 2433 left: $('#startDate').offset().left 2434 }); 2435 } 2436 } 2437 } 2438 }); 2439 2440 $('#datePickerStart').datepicker("setDate", new Date()); 2441 2442 // console.log("datePickerStart : ", $("#datePickerStart").datepicker('getDate')); 2443 }, 2444 endDatePicker : function (e) { 2445 2446 $("#datePickerEnd").datepicker({ 2447 beforeShow: function() { 2448 $('.ui-datepicker').css('margin-left', '150px'); 2449 }, 2450 onSelect: function(selectedDate, inst) { 2451 var date = selectedDate.split('/'); 2452 $('#endDate .day').html(date[1]); 2453 2454 if($('html').attr('lang') == 'fr-FR') { 2455 $('#endDate .month').html($.datepicker.regional['fr'].monthNames[date[0] - 1]); 2456 } else { 2457 $('#endDate .month').html($.datepicker.regional['en-GB'].monthNames[date[0] - 1]); 2458 } 2459 $("#startDate").datepicker('option','maxDate', selectedDate); 2460 }, 2461 onClose: function(selectedDate) { 2462 $("#datePickerStart").datepicker('option','maxDate', selectedDate); 2463 } 2464 }, "firstDay"); 2465 2466 $("#endDate").on('click', function() { 2467 $("#datePickerEnd").datepicker('show', "d M, y", "firstDay", 0); 2468 2469 if(!$('#page-home').length) { 2470 //Si version mobile 2471 if($('.parameter-mobile').length) { 2472 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2473 $('#ui-datepicker-div').css({ 2474 top: $(window).height() - ($(window).height()/2) - ($('#ui-datepicker-div').height()/2), 2475 left: centerLeft 2476 }); 2477 } else { 2478 $('#ui-datepicker-div').css({ 2479 top: '107px', 2480 left: $('#startDate').offset().left 2481 }); 2482 } 2483 } else { 2484 //Si version mobile 2485 if($('.parameter-mobile').length) { 2486 if($('.bk-book-home.is_stuck').length) { 2487 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2488 $('#ui-datepicker-div').css({ 2489 top: $('.right-side').height(), 2490 left: centerLeft 2491 }); 2492 } else { 2493 var centerLeft = $('.parameter-mobile').offset().left + ($('.parameter-mobile').width() / 2) 2494 $('#ui-datepicker-div').css({ 2495 top: $(window).height() - $('.parameter-mobile').height() - 100, 2496 left: centerLeft 2497 }); 2498 } 2499 } else { 2500 if($('.bk-book-home.is_stuck').length) { 2501 $('#ui-datepicker-div').css({ 2502 top: '107px', 2503 left: $('#startDate').offset().left 2504 }); 2505 } else { 2506 $('#ui-datepicker-div').css({ 2507 top: $(window).height() - $('.bk-book-home').height() - 320, 2508 left: $('#startDate').offset().left 2509 }); 2510 } 2511 } 2512 } 2513 }); 2514 var date = new Date(); 2515 date.setDate(date.getDate() + 1); 2516 // console.log("datePickerEnd 1: ", date); 2517 $('#datePickerEnd').datepicker("setDate", date); 2518 // console.log("datePickerEnd 2: ", $("#datePickerStart").datepicker('getDate')); 2519 }, 2520 showNbPerson : function (e) { 2521 var $target = $(e.currentTarget); 2522 e.preventDefault(); 2523 var href = $target.data('id'); 2524 2525 if(!$('#page-home').length) { 2526 $(href).addClass('visible').css({ 2527 top: $('header').height(), 2528 left: $target.offset().left 2529 }); 2530 } else { 2531 if($('.bk-book-home.is_stuck').length) { 2532 $(href).addClass('visible').css({ 2533 top: $('header').height(), 2534 left: $target.offset().left 2535 }); 2536 } else { 2537 $(href).addClass('visible').css({ 2538 top: $('.header-bar').offset().top - ($(window).scrollTop() + $('.list-select'+href).height()), 2539 left: $target.offset().left 2540 }); 2541 } 2542 } 2543 2544 e.stopPropagation(); 2545 }, 2546 choiceNbPerson : function (e) { 2547 var $target = $(e.currentTarget); 2548 e.preventDefault(); 2549 $('.list-select.visible a').removeClass('active'); 2550 $target.addClass('active'); 2551 var num = $target.html(); 2552 var choiceList = $target.closest('.list-select').attr('id'); 2553 // console.log(choiceList); 2554 // console.log(num); 2555 $(".choiceNum[data-id='#"+choiceList+"']").find('.big-num').html(num).closest('.choiceNum').next('select').val(num); 2556 $('.list-select.visible').removeClass('visible'); 2557 }, 2558 clickOutsideNbPerson : function (e) { 2559 var $target = $(e.currentTarget); 2560 2561 if($target.hasClass('visible')) { 2562 $target.removeClass('visible'); 2563 } 2564 }, 2565 moveBkParameter : function() { 2566 if(!$('#page-home').length) { 2567 enquire.register("screen and (max-width:1400px)", { 2568 match : function() { 2569 $('.left-side').insertAfter($('header')); 2570 $('.left-side').addClass('parameter-mobile'); 2571 }, 2572 2573 unmatch : function() { 2574 $('.left-side').insertBefore($('header .right-side')); 2575 $('.left-side').removeClass('parameter-mobile').css({'top': '', 'display': ''}); 2576 } 2577 }); 2578 } else { 2579 enquire.register("screen and (max-width:1400px)", { 2580 match : function() { 2581 $('.left-side').addClass('parameter-mobile'); 2582 }, 2583 2584 unmatch : function() { 2585 $('.left-side').removeClass('parameter-mobile').css({'top': 'auto', 'display': 'inline-block'}); 2586 } 2587 }); 2588 } 2589 }, 2590 openMobileParameter : function(e) { 2591 if(!$('#page-home').length) { 2592 if($('.parameter-mobile').is(':visible')) { 2593 $('.parameter-mobile').slideUp(); 2594 } else { 2595 $('.parameter-mobile').slideDown(); 2596 } 2597 } else { 2598 if($('.bk-book-home.is_stuck').length) { 2599 $('.parameter-mobile').css('top', $('.right-side').height()); 2600 } else { 2601 $('.parameter-mobile').css('top', - ($('.parameter-mobile').height()) + ($('.right-side').height())); 2602 } 2603 if($('.parameter-mobile').is(':visible')) { 2604 $('.parameter-mobile').fadeOut(400, function() { 2605 $('#layer-transparent').hide(); 2606 }); 2607 } else { 2608 $('.parameter-mobile').fadeIn(400, function() { 2609 $('#layer-transparent').show(); 2610 }); 2611 } 2612 } 2613 }, 2614 homeColorMenu : function() { 2615 var menu = $('header').offset().top; 2616 var offsetContent = []; 2617 var heightContent = []; 2618 2619 for (var i = 0; i < $('.page-content-wrapper .site-content').length; i++) { 2620 offsetContent[i] = $('.page-content-wrapper .site-content').eq(i).offset().top; 2621 heightContent[i] = $('.page-content-wrapper .site-content').eq(i).height(); 2622 2623 // if((menu >
2623 offsetContent[i]) && (menu < offsetContent[i] + heightContent[i])) { 2624 if((menu >= $('.page-content-wrapper .site-content').eq(0).offset().top)) { 2625 $('header').addClass('change-color'); 2626 return false; 2627 } else { 2628 $('header').removeClass('change-color'); 2629 } 2630 } 2631 }, 2632 clickLayer : function(e) { 2633 var $target = $(e.currentTarget); 2634 $target.hide(); 2635 $('.parameter-mobile').fadeOut(); 2636 }, 2637 getLinkBookNow : function() { 2638 2639 enquire.register("screen and (max-width:1400px)", { 2640 match : function() { 2641 $('.parameter-mobile .book-now-link.get-parameter').addClass('get-link-book-infos'); 2642 $('.header-bar .book-now-link.open-parameter-mobile').removeClass('get-link-book-infos'); 2643 2644 //homepage 2645 $('.home .header-bar .right-side .book-now-link').removeClass('get-link-book-infos'); 2646 $('.home .bk-book-home .book-now-link.get-parameter').addClass('get-link-book-infos'); 2647 }, 2648 unmatch : function() { 2649 $('.header-bar .book-now-link.open-parameter-mobile').addClass('get-link-book-infos'); 2650 $('.header-bar .book-now-link.get-parameter').removeClass('get-link-book-infos'); 2651 2652 //homepage 2653 $('.home .header-bar .right-side .book-now-link').addClass('get-link-book-infos'); 2654 $('.home .bk-book-home .book-now-link.get-parameter').removeClass('get-link-book-infos'); 2655 }, 2656 setup : function() { 2657 $('.header-bar .book-now-link.open-parameter-mobile').addClass('get-link-book-infos'); 2658 2659 //homepage 2660 $('.home .header-bar .right-side .book-now-link').addClass('get-link-book-infos'); 2661 } 2662 }); 2663 }, 2664 bookNow : function(e) { 2665 2666 var date_format = "yy-mm-dd"; 2667 2668 /** 2669 * Calcul du nombre de nuits 2670 */ 2671 var date_picker_start_date = $("#datePickerStart").datepicker('getDate'); 2672 var date_picker_end_date = $("#datePickerEnd").datepicker('getDate'); 2673 const nights = Math.floor((date_picker_end_date.getTime() - date_picker_start_date.getTime()) / 86400000); 2674 $('#AVP_nights').val(nights); 2675 2676 var date_start = $.datepicker.formatDate(date_format, $("#datePickerStart").datepicker('getDate')); 2677 $('#AVP_arrivalDate').val(date_start); 2678 2679 $('form#AVP').submit(); 2680 2681 }, 2682 choiceLanguage : function() { 2683 $('.choice-language select').select2({ 2684 minimumResultsForSearch: -1, 2685 dropdownParent: $('.choice-language'), 2686 dropdownCssClass: 'select-dropdown-language' 2687 }); 2688 $(".choice-language select").change(function () { 2689 location.href = $(this).val(); 2690 }); 2691 }, 2692 hideMenuScroll : function() { 2693 $('.bk-book-home .left-side').hide(); 2694 $('#layer-transparent').hide(); 2695 $('.ui-datepicker').hide(); 2696 } 2697 2698}); 2699Revolution.Module.extend({ 2700 NAME: "r9.roomNavigation", // OBLIGATOIRE (reflète l'arborescence répertoire : /r9/main.js) 2701 2702 initialize: function ($) { 2703 // appelé aussitôt la page chargée 2704 //console.log("module " + this.NAME); 2705 2706 _.bindAll(this, "showRoomMenu"); 2707 2708 $('.room-navigation-title').on('click', this.showRoomMenu); 2709 }, 2710 2711 onWindowLoad: function (e) { 2712 2713 }, 2714 2715 onWindowScroll: function (e) { 2716 2717 }, 2718 onWindowResize: function (e) { 2719 2720 }, 2721 2722 showRoomMenu : function (e) { 2723 var roomNavigation = $(e.currentTarget).parent(); 2724 2725 enquire.register("screen and (max-width: 63.9375em)", { 2726 match : function() { 2727 if (roomNavigation.hasClass('opened')) { 2728 roomNavigation.removeClass('opened'); 2729 roomNavigation.find('.room-navigation-list').stop().slideUp(); 2730 } else { 2731 roomNavigation.addClass('opened'); 2732 roomNavigation.find('.room-navigation-list').stop().slideDown(); 2733 } 2734 }, 2735 2736 unmatch : function() { 2737 roomNavigation.find('.room-navigation-list').removeAttr("style"); 2738 } 2739 }) 2740 } 2741 2742}); 2743 2744Revolution.Module.extend({ 2745 NAME: "r9.sliders", // OBLIGATOIRE (reflète l'arborescence répertoire : /r9/main.js) 2746 2747 initialize: function ($) { 2748 // appelé aussitôt la page chargée 2749 //console.log("module " + this.NAME); 2750 2751 _.bindAll(this, "sliderArticle", "sliderHome", "sliderLike", "showMore", "sliderRoomAccordion"); 2752 2753 //events 2754 this.sliderArticle(); 2755 this.sliderHome(); 2756 this.sliderLike(); 2757 this.sliderChambre(); 2758 this.sliderRoomAccordion(); 2759 2760 $('.slider-like .show-more').on('click', this.showMore); 2761 2762 }, 2763 2764 onWindowLoad: function (e) { 2765 // $('.slider-home').slick('slickSetOption', 'autoplay', true, true); 2766 }, 2767 2768 onWindowScroll: function (e) { 2769 2770 }, 2771 onWindowResize: function (e) { 2772 2773 }, 2774 2775 sliderArticle : function () { 2776 $('.slider-article').on('setPosition', function(slick){ 2777 var UTILS = Revolution.get("r9._utils"); 2778 UTILS.coverLike(); 2779 }); 2780 $('.slider-article').slick(); 2781 }, 2782 sliderHome : function () { 2783 $('.slider-home').slick( { 2784 autoplay: true, 2785 autoplaySpeed : 4000, 2786 speed:1000, 2787 infinty:true, 2788 fade:true, 2789 pauseOnHover: false, 2790 pauseOnFocus: false, 2791 lazyLoaded: true 2792 }); 2793 }, 2794 sliderLike : function () { 2795 $('.slider-like').slick({ 2796 fade: true 2797 }); 2798 }, 2799 2800 sliderChambre : function() { 2801 $('.mini-slider ul').slick({ 2802 infinite: true, 2803 slidesToShow: 1, 2804 slidesToScroll: 1, 2805 autoplay: true, 2806 autoplaySpeed: 4000, 2807 speed: 1000 2808 }); 2809 }, 2810 2811 sliderRoomAccordion : function() { 2812 $(".slider-room-accordion").on("setPosition", function(slick) { 2813 var UTILS = Revolution.get("r9._utils"); 2814 UTILS.coverLike(); 2815 }); 2816 $(".slider-room-accordion").slick({ 2817 infinite: true, 2818 slidesToShow: 1, 2819 slidesToScroll: 1, 2820 autoplay: true, 2821 autoplaySpeed: 4000, 2822 speed: 1000 2823 }); 2824 }, 2825 showMore : function (e) { 2826 //desktop 2827 if($('#back-to-top').is(':visible')) { 2828 var $target = $(e.currentTarget); 2829 var totalHeight = $target.closest('.wrapper-text').find('.content-text').outerHeight(); 2830 var data_text = $target.data('text'); 2831 var text = $target.html(); 2832 2833 if($target.hasClass('active')) { 2834 $target.prev('.text').animate({ 2835 "height": "305px" 2836 }); 2837 $target.removeClass('active').html(data_text).data('text', text); 2838 } else { 2839 $target.prev('.text').animate({ 2840 "height": totalHeight 2841 }); 2842 $target.addClass('active').html(data_text).data('text', text); 2843 } 2844 } else { 2845 var $target = $(e.currentTarget); 2846 var totalHeight = $target.closest('.wrapper-text').find('.content-text').outerHeight(); 2847 var data_text = $target.data('text'); 2848 var text = $target.html(); 2849 2850 if($target.hasClass('active')) { 2851 $target.prev('.text').animate({ 2852 "height": "108px" 2853 }); 2854 $target.removeClass('active').html(data_text).data('text', text); 2855 } else { 2856 $target.prev('.text').animate({ 2857 "height": totalHeight 2858 }); 2859 $target.addClass('active').html(data_text).data('text', text); 2860 } 2861 } 2862 } 2863 2864});
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.