PageSourceSearch

https://ictp2023.org/_2/lib/tarteaucitron,modernizr,jquery,czbox2,…tion,foundation.topbar,foundation.reveal.js

js ictp2023.org collected 2026-10-08 03:26:50 UTC 236,211 bytes, 2,249 lines download raw bytes

vendor: 2,611 bytes, lines 1-64
1
2/*jslint browser: true, evil: true */
3
4var scripts = document.getElementsByTagName('script'),
5    path = scripts[scripts.length - 1].src.split('?')[0],
6    tarteaucitronForceCDN = (tarteaucitronForceCDN === undefined) ? '' : tarteaucitronForceCDN,
7    cdn = (tarteaucitronForceCDN === '') ? path.split('/').slice(0, -1).join('/') + '/' : tarteaucitronForceCDN,
8    alreadyLaunch = (alreadyLaunch === undefined) ? 0 : alreadyLaunch,
9    tarteaucitronForceLanguage = (tarteaucitronForceLanguage === undefined) ? '' : tarteaucitronForceLanguage,
10    tarteaucitronForceExpire = (tarteaucitronForceExpire === undefined) ? '' : tarteaucitronForceExpire,
11    tarteaucitronCustomText = (tarteaucitronCustomText === undefined) ? '' : tarteaucitronCustomText,
12    // tarteaucitronExpireInDay: true for day(s) value - false for hour(s) value
13    tarteaucitronExpireInDay = (tarteaucitronExpireInDay === undefined || typeof tarteaucitronExpireInDay !== "boolean") ? true : tarteaucitronExpireInDay,
14    timeExpire = 31536000000,
15    tarteaucitronProLoadServices,
16    tarteaucitronNoAdBlocker = false;
17
18
19
20var tarteaucitron = {
21    "version": 20210509,
22    "cdn": cdn,
23    "user": {},
24    "lang": {},
25    "services": {},
26    "added": [],
27    "idprocessed": [],
28    "state": [],
29    "launch": [],
30    "parameters": {},
31    "isAjax": false,
32    "reloadThePage": false,
33    "events": {
34        "init": function () {},
35        "load": function () {},
36    },
37    "init": function (params) {
38        "use strict";
39        var origOpen;
40
41        tarteaucitron.parameters = params;
42        if (alreadyLaunch === 0) {
43            alreadyLaunch = 1;
44            if (window.addEventListener) {
45                window.addEventListener("load", function () {
46                    tarteaucitron.initEvents.loadEvent(false);
47                }, false);
48                window.addEventListener("scroll", function () {
49                    tarteaucitron.initEvents.scrollEvent();
50                }, false);
51
52                window.addEventListener("keydown", function (evt) {
53                    tarteaucitron.initEvents.keydownEvent(false, evt);
54                }, false);
55                window.addEventListener("hashchange", function () {
56                    tarteaucitron.initEvents.hashchangeEvent();
57                }, false);
58                window.addEventListener("resize", function () {
59                    tarteaucitron.initEvents.resizeEvent();
60                }, false);
61            } else {
62                window.attachEvent("onload", function () {
63                    tarteaucitron.initEvents.loadEvent(true);
64                });
vendor: 5,716 bytes, lines 64-197
64
65                window.attachEvent("onscroll", function () {
66                    tarteaucitron.initEvents.scrollEvent();
67                });
68                window.attachEvent("onkeydown", function (evt) {
69                    tarteaucitron.initEvents.keydownEvent(true, evt);
70
71                });
72                window.attachEvent("onhashchange", function () {
73                    tarteaucitron.initEvents.hashchangeEvent();
74                });
75                window.attachEvent("onresize", function () {
76                    tarteaucitron.initEvents.resizeEvent();
77                });
78            }
79
80            if (typeof XMLHttpRequest !== 'undefined') {
81                origOpen = XMLHttpRequest.prototype.open;
82                XMLHttpRequest.prototype.open = function () {
83
84                    if (window.addEventListener) {
85                        this.addEventListener("load", function () {
86                            if (typeof tarteaucitronProLoadServices === 'function') {
87                                tarteaucitronProLoadServices();
88                            }
89                        }, false);
90                    } else if (typeof this.attachEvent !== 'undefined') {
91                        this.attachEvent("onload", function () {
92                            if (typeof tarteaucitronProLoadServices === 'function') {
93                                tarteaucitronProLoadServices();
94                            }
95                        });
96                    } else {
97                        if (typeof tarteaucitronProLoadServices === 'function') {
98                            setTimeout(tarteaucitronProLoadServices, 1000);
99                        }
100                    }
101
102                    try {
103                        origOpen.apply(this, arguments);
104                    } catch (err) {}
105                };
106            }
107        }
108
109        if(tarteaucitron.events.init) {
110            tarteaucitron.events.init();
111        }
112    },
113    "initEvents": {
114        "loadEvent": function (isOldBrowser) {
115            tarteaucitron.load();
116            tarteaucitron.fallback(['tarteaucitronOpenPanel'], function (elem) {
117                if (isOldBrowser) {
118                    elem.attachEvent("onclick", function (event) {
119                        tarteaucitron.userInterface.openPanel();
120                        event.preventDefault();
121                    });
122                } else {
123                    elem.addEventListener("click", function (event) {
124                        tarteaucitron.userInterface.openPanel();
125                        event.preventDefault();
126                    }, false);
127                }
128            }, true);
129        },
130        "keydownEvent": function (isOldBrowser, evt) {
131            if (evt.keyCode === 27) {
132                tarteaucitron.userInterface.closePanel();
133            }
134
135            if (isOldBrowser) {
136                if ( evt.keyCode === 9 && focusableEls.indexOf(evt.target) >= 0) {
137                    if ( evt.shiftKey ) /* shift + tab */ {
138                        if (document.activeElement === firstFocusableEl) {
139                            lastFocusableEl.focus();
140                            evt.preventDefault();
141                        }
142                    } else /* tab */ {
143                        if (document.activeElement === lastFocusableEl) {
144                            firstFocusableEl.focus();
145                            evt.preventDefault();
146                        }
147                    }
148                }
149            }
150        },
151        "hashchangeEvent": function () {
152            if (document.location.hash === tarteaucitron.hashtag && tarteaucitron.hashtag !== '') {
153                tarteaucitron.userInterface.openPanel();
154            }
155        },
156        "resizeEvent": function () {
157            var tacElem = document.getElementById('tarteaucitron');
158            var tacCookieContainer = document.getElementById('tarteaucitronCookiesListContainer');
159
160            if (tacElem && tacElem.style.display === 'block') {
161                tarteaucitron.userInterface.jsSizing('main');
162            }
163
164            if (tacCookieContainer && tacCookieContainer.style.display === 'block') {
165                tarteaucitron.userInterface.jsSizing('cookie');
166            }
167        },
168        "scrollEvent": function () {
169            var scrollPos = window.pageYOffset || document.documentElement.scrollTop;
170            var heightPosition;
171            var tacPercentage = document.getElementById('tarteaucitronPercentage');
172            var tacAlertBig = document.getElementById('tarteaucitronAlertBig');
173
174            if (tacAlertBig && !tarteaucitron.highPrivacy) {
175                if (tacAlertBig.style.display === 'block') {
176                    heightPosition = tacAlertBig.offsetHeight + 'px';
177
178                    if (scrollPos > (screen.height * 2)) {
179                        tarteaucitron.userInterface.respondAll(true);
180                    } else if (scrollPos > (screen.height / 2)) {
181                        document.getElementById('tarteaucitronDisclaimerAlert').innerHTML = '<strong>' + tarteaucitron.lang.alertBigScroll + '</strong> ' + tarteaucitron.lang.alertBig;
182                    }
183
184                    if (tacPercentage) {
185                        if (tarteaucitron.orientation === 'top') {
186                            tacPercentage.style.top = heightPosition;
187                        } else {
188                            tacPercentage.style.bottom = heightPosition;
189                        }
190                        tacPercentage.style.width = ((100 / (screen.height * 2)) * scrollPos) + '%';
191                    }
192                }
193            }
194        },
195    },
196    "load": function () {
197        "use strict";
vendor: 4,081 bytes, lines 198-273
198        var cdn = tarteaucitron.cdn,
199            language = tarteaucitron.getLanguage(),
200            useJSDelivrMinifiedJS = (cdn.indexOf('cdn.jsdelivr.net') >= 0),
201            pathToLang = cdn + 'lang/tarteaucitron.' + language + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
202            pathToServices = cdn + 'tarteaucitron.services' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version,
203            linkElement = document.createElement('link'),
204            defaults = {
205                "adblocker": false,
206                "hashtag": '#tarteaucitron',
207                "cookieName": 'tarteaucitron',
208                "highPrivacy": true,
209                "orientation": "middle",
210                "bodyPosition": "bottom",
211                "removeCredit": false,
212                "showAlertSmall": false,
213                "showIcon": true,
214                "iconPosition": "BottomRight",
215                "cookieslist": false,
216                "handleBrowserDNTRequest": false,
217                "DenyAllCta": true,
218                "AcceptAllCta" : true,
219                "moreInfoLink": true,
220                "privacyUrl": "",
221                "useExternalCss": false,
222                "useExternalJs": false,
223                "mandatory": true,
224                "closePopup": false,
225                "groupServices": false
226            },
227            params = tarteaucitron.parameters;
228
229        // Don't show the middle bar if we are on the privacy policy or more page
230        if (((tarteaucitron.parameters.readmoreLink !== undefined && window.location.href == tarteaucitron.parameters.readmoreLink) || window.location.href == tarteaucitron.parameters.privacyUrl) && tarteaucitron.parameters.orientation == "middle") {
231            tarteaucitron.parameters.orientation = "bottom";
232        }
233
234        // Step -1
235        if (typeof tarteaucitronCustomPremium !== 'undefined') {
236            tarteaucitronCustomPremium();
237        }
238
239        // Step 0: get params
240        if (params !== undefined) {
241
242            for (var k in defaults) {
243                if(!tarteaucitron.parameters.hasOwnProperty(k)) {
244                    tarteaucitron.parameters[k] = defaults[k];
245                }
246            }
247        }
248
249        // global
250        tarteaucitron.orientation = tarteaucitron.parameters.orientation;
251        tarteaucitron.hashtag = tarteaucitron.parameters.hashtag;
252        tarteaucitron.highPrivacy = tarteaucitron.parameters.highPrivacy;
253        tarteaucitron.handleBrowserDNTRequest = tarteaucitron.parameters.handleBrowserDNTRequest;
254
255        // Step 1: load css
256        if ( !tarteaucitron.parameters.useExternalCss ) {
257            linkElement.rel = 'stylesheet';
258            linkElement.type = 'text/css';
259            linkElement.href = cdn + 'css/tarteaucitron' + (useJSDelivrMinifiedJS ? '.min' : '') + '.css?v=' + tarteaucitron.version;
260            document.getElementsByTagName('head')[0].appendChild(linkElement);
261        }
262        // Step 2: load language and services
263        tarteaucitron.addInternalScript(pathToLang, '', function () {
264
265          if(tarteaucitronCustomText !== ''){
266            tarteaucitron.lang = tarteaucitron.AddOrUpdate(tarteaucitron.lang, tarteaucitronCustomText);
267          }
268            tarteaucitron.addInternalScript(pathToServices, '', function () {
269
270                // css for the middle bar TODO: add it on the css file
271                if (tarteaucitron.orientation === 'middle') {
272                    var customThemeMiddle = document.createElement('style'),
273                        cssRuleMiddle = 'div#tarteaucitronRoot.tarteaucitronBeforeVisible:before {content: \'\';position: fixed;width: 100%;height: 100%;background: white;top: 0;left: 0;z-index: 999;opacity: 0.5;}div#tarteaucitronAlertBig:before {content: \'' + tarteaucitron.lang.middleBarHead + '\';font-size: 35px;}body #tarteaucitronRoot div#tarteaucitronAlertBig {width: 60%;min-width: 285px;height: auto;margin: auto;left: 50%;top: 50%;transform: translate(-50%, -50%);box-shadow: 0 0 9000px #000;border-radius: 20px;padding: 35px 25px;}
273span#tarteaucitronDisclaimerAlert {padding: 0 30px;}#tarteaucitronRoot span#tarteaucitronDisclaimerAlert {margin: 10px 0 30px;display: block;text-align: center;font-size: 21px;}@media screen and (max-width: 900px) {div#tarteaucitronAlertBig button {margin: 0 auto 10px!important;display: block!important;}}';
274
275                    customThemeMiddle.type = 'text/css';
276                    if (customThemeMiddle.styleSheet) {
277                        customThemeMiddle.styleSheet.cssText = cssRuleMiddle;
278                    } else {
279                        customThemeMiddle.appendChild(document.createTextNode(cssRuleMiddle));
280                    }
281                    document.getElementsByTagName('head')[0].appendChild(customThemeMiddle);
282                }
283
284                // css for the popup bar TODO: add it on the css file
285                if (tarteaucitron.orientation === 'popup') {
286                    var customThemePopup = document.createElement('style'),
287                        cssRulePopup = 'div#tarteaucitronAlertBig:before {content: \'' + tarteaucitron.lang.middleBarHead + '\';font-size: 22px;}body #tarteaucitronRoot div#tarteaucitronAlertBig {bottom: 0;top: auto!important;left: 8px!important;right: auto!important;transform: initial!important;border-radius: 5px 5px 0 0!important;max-width: 250px!important;width: Calc(100% - 16px)!important;min-width: 0!important;padding: 25px 0;}span#tarteaucitronDisclaimerAlert {padding: 0 30px;font-size: 15px!important;}#tarteaucitronRoot span#tarteaucitronDisclaimerAlert {margin: 10px 0 30px;display: block;text-align: center;font-size: 21px;}div#tarteaucitronAlertBig button {margin: 0 auto 10px!important;display: block!important;width: Calc(100% - 60px);box-sizing: border-box;}';
288
289                    customThemePopup.type = 'text/css';
290                    if (customThemePopup.styleSheet) {
291                        customThemePopup.styleSheet.cssText = cssRulePopup;
292                    } else {
293                        customThemePopup.appendChild(document.createTextNode(cssRulePopup));
294                    }
295                    document.getElementsByTagName('head')[0].appendChild(customThemePopup);
296                }
297
298                var body = document.body,
299                    div = document.createElement('div'),
300                    html = '',
301                    index,
302                    orientation = 'Top',
303                    cat = ['ads', 'analytic', 'api', 'comment', 'social', 'support', 'video', 'other'],
304                    i;
305
306                cat = cat.sort(function (a, b) {
307                    if (tarteaucitron.lang[a].title > tarteaucitron.lang[b].title) { return 1; }
308                    if (tarteaucitron.lang[a].title < tarteaucitron.lang[b].title) { return -1; }
309                    return 0;
310                });
311
312                // Step 3: prepare the html
313                html += '<div id="tarteaucitronPremium"></div>';
314                html += '<button type="button" id="tarteaucitronBack" aria-label="' + tarteaucitron.lang.close + '"></button>';
315                html += '<div id="tarteaucitron" role="dialog" aria-modal="true" aria-describedby="tarteaucitronInfo" aria-labelledby="dialogTitle" tabindex="-1">';
316                html += '   <button type="button" id="tarteaucitronClosePanel">';
317                html += '       ' + tarteaucitron.lang.close;
318                html += '   </button>';
319                html += '   <div id="tarteaucitronServices">';
320                html += '      <div class="tarteaucitronLine tarteaucitronMainLine" id="tarteaucitronMainLineOffset">';
321                html += '         <span class="tarteaucitronH1" role="heading" aria-level="1" id="dialogTitle">'+ tarteaucitron.lang.title + '</span>';
322                html += '         <div id="tarteaucitronInfo">';
323                html += '         ' + tarteaucitron.lang.disclaimer;
324                if (tarteaucitron.parameters.privacyUrl !== "") {
325                    html += '   <br/><br/>';
326                    html += '   <button type="button" id="tarteaucitronPrivacyUrlDialog">';
327                    html += '       ' + tarteaucitron.lang.privacyUrl;
328                    html += '   </button>';
329                }
330                html += '         </div>';
331                html += '         <div class="tarteaucitronName">';
vendor: 10,021 bytes, lines 332-458
332                html += '            <span class="tarteaucitronH2" role="heading" aria-level="2">' + tarteaucitron.lang.all + '</span>';
333                html += '         </div>';
334                html += '         <div class="tarteaucitronAsk" id="tarteaucitronScrollbarAdjust">';
335                html += '            <button type="button" id="tarteaucitronAllAllowed" class="tarteaucitronAllow">';
336                html += '               <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allowAll;
337                html += '            </button> ';
338                html += '            <button type="button" id="tarteaucitronAllDenied" class="tarteaucitronDeny">';
339                html += '               <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
340                html += '            </button>';
341                html += '         </div>';
342                html += '      </div>';
343                html += '      <div class="tarteaucitronBorder">';
344                html += '         <div class="clear"></div><ul>';
345
346
347                if (tarteaucitron.parameters.mandatory == true) {
348                   html += '<li id="tarteaucitronServicesTitle_mandatory">';
349                   html += '<div class="tarteaucitronTitle">';
350                   html += '   <button type="button" tabindex="-1"><span class="tarteaucitronPlus"></span> ' + tarteaucitron.lang.mandatoryTitle + '</button>';
351                   html += '</div>';
352                   html += '<ul id="tarteaucitronServices_mandatory">';
353                   html += '<li class="tarteaucitronLine">';
354                   html += '   <div class="tarteaucitronName">';
355                   html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + tarteaucitron.lang.mandatoryText + '</span>';
356                   html += '       <span class="tarteaucitronListCookies"></span><br/>';
357                   html += '   </div>';
358                   html += '   <div class="tarteaucitronAsk">';
359                   html += '       <button type="button" class="tarteaucitronAllow" tabindex="-1" disabled>';
360                   html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
361                   html += '       </button> ';
362                   html += '       <button type="button" class="tarteaucitronDeny" style="visibility:hidden" tabindex="-1">';
363                   html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
364                   html += '       </button> ';
365                   html += '   </div>';
366                   html += '</li>';
367                   html += '</ul></li>';
368                }
369
370                for (i = 0; i < cat.length; i += 1) {
371                    html += '         <li id="tarteaucitronServicesTitle_' + cat[i] + '" class="tarteaucitronHidden">';
372                    html += '            <div class="tarteaucitronTitle">';
373                    html += '               <button type="button" class="catToggleBtn" data-cat="tarteaucitronDetails' + cat[i] + '"><span class="tarteaucitronPlus"></span> ' + tarteaucitron.lang[cat[i]].title + '</button>';
374                    html += '            </div>';
375                    html += '            <div id="tarteaucitronDetails' + cat[i] + '" class="tarteaucitronDetails tarteaucitronInfoBox">';
376                    html += '               ' + tarteaucitron.lang[cat[i]].details;
377                    html += '            </div>';
378                    html += '         <ul id="tarteaucitronServices_' + cat[i] + '"></ul></li>';
379                }
380                html += '             <li id="tarteaucitronNoServicesTitle" class="tarteaucitronLine">' + tarteaucitron.lang.noServices + '</li>';
381                html += '         </ul>';
382                html += '         <div class="tarteaucitronHidden tarteaucitron-spacer-20" id="tarteaucitronScrollbarChild"></div>';
383                if (tarteaucitron.parameters.removeCredit === false) {
384                    html += '     <a class="tarteaucitronSelfLink" href="https://tarteaucitron.io/" rel="nofollow noreferrer noopener" target="_blank" title="tarteaucitron ' + tarteaucitron.lang.newWindow + '"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAAeCAYAAAAWwoEYAAADl0lEQVRoge1Y0W3bQAx9CjKARlC+9GVUmqDJBHEmiDyB6wkcTxBngtgTxJ0gzgQW4C/9aYOmE6g4lTQo+k6y3Rb94QOERNQd+cjj8XiGwWAwGAwGg8FgMBgMBoPB8F8RNRXe+whEKe7c36ZCAeCRxC9Rig2PUd8kPgAsoxSfQ3YAzAA8D/HwYYCb05kBKKO0teFkmbC1jlKsAnq/Abjn+QBqAIsoRS30ttwG/HNz1wH/XIxWTicLdvtW7xTAGEAMtP685CNsBTe2d/BLydfXAG57SEnMAST0zgYZSUCPk02bCvkJduIzuJzDLfPolbY+tLKmar+/8+IRePy4qdpE03qHuH8fipFb4N2+XdA3AJ/0vaQxt7s9FvkIS2XvtqnwM0rxpOQfbnE5G2LhTCmUO2fHIngOmcv+KG3HafDchB6ntwjYqenR2PqC7sOZ3E7FXHB0vqxoFyUyLh7OEH7LOGouvhhN3eIBeKXv0n5MsufdHqXcwYR5U2EbpV35lSspVPJmQj4TcgRK7jTg5IzmPUhhwM5a2WHUFCx+NgiDucmgh7idikLovHFlL0pxQ9xzX+IIP9Y6FrJsqhjlQpZRAkFVDCjZfcCHt6bqJDmuh5ylCWx0RVnk3oumaknqTH5sqrY0fBWyULaHUIgAgxb46MxV3DbieAhxOxUxjSuljig9lMQ/Bcfoi9BTEv9aLORSndVxYOH525sUDC6u2gWxcNzBNRxPanyh3ktKinOgy3WoxPbtUM0t6RkbQnzBnFPgi9GCOEubY9UffIryz9iKRe8s/FUfEWosJJGxagp85bpUO3VywQ46lOtAWfNxKwa4JXQ+628+bpxYGXXMzp5rXH401VEyXwIdowXFaKWSMFHvMTVmGnc+P3oXV2QOiBCfgex8QtcQCbcQE/H+eoHzrkFo1KM7zVO4jVVj5s6lRiWF7zyXyfRMc97J3tzj87mYqZ7E2YjzUct9GUi4tjHLR8dVkBLjQcuHFleWvQfRNEhFR7uX7pkctOwvZXsft7sAtyldEUIN2UTeLxnEfxKYswzdi88BdbZ8hifUoSMftQvP+muRwN6+Q3DeqqRExP9QmTtcheiHh0Ot1x2i2km1bP9pbufw5zZdyWsOrh7vQae5OZWbsMv30pi7cd/CKj3coPEVaCP4Zhx4eQWhOZ1Y9MTXGyP8/iGjEyfa1T4fO/4Lea9vBoPBYDAYDAaDwWAwGAwGwz8GgF8siXCCbrSRhgAAAABJRU5ErkJggg==" alt="tarteaucitron.io" /></a>';
385                }
386                html += '       </div>';
387                html += '   </div>';
388                html += '</div>';
389
390                if (tarteaucitron.parameters.orientation === 'bottom') {
391                    orientation = 'Bottom';
392                }
393
394                if (tarteaucitron.parameters.highPrivacy && !tarteaucitron.parameters.AcceptAllCta) {
395                    html += '<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
396                    //html += '<div class="tarteaucitronAlertBigWrapper">';
397                    html += '   <span id="tarteaucitronDisclaimerAlert">';
398                    html += '       ' + tarteaucitron.lang.alertBigPrivacy;
399                    html += '   </span>';
400                    //html += '   <span class="tarteaucitronAlertBigBtnWrapper">';
401                    html += '   <button type="button" id="tarteaucitronPersonalize">';
402                    html += '       ' + tarteaucitron.lang.personalize;
403                    html += '   </button>';
404
405                    if (tarteaucitron.parameters.privacyUrl !== "") {
406                        html += '   <button type="button" id="tarteaucitronPrivacyUrl">';
407                        html += '       ' + tarteaucitron.lang.privacyUrl;
408                        html += '   </button>';
409                    }
410
411                    //html += '   </span>';
412                    //html += '</div>';
413                    html += '</div>';
414                } else {
415                    html += '<div tabindex="-1" id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + '">';
416                    //html += '<div class="tarteaucitronAlertBigWrapper">';
417                    html += '   <span id="tarteaucitronDisclaimerAlert">';
418
419                    if (tarteaucitron.parameters.highPrivacy) {
420                        html += '       ' + tarteaucitron.lang.alertBigPrivacy;
421                    } else {
422                        html += '       ' + tarteaucitron.lang.alertBigClick + ' ' + tarteaucitron.lang.alertBig;
423                    }
424
425                    html += '   </span>';
426                    //html += '   <span class="tarteaucitronAlertBigBtnWrapper">';
427                    html += '   <button type="button" class="tarteaucitronCTAButton tarteaucitronAllow" id="tarteaucitronPersonalize2">';
428                    html += '       <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.acceptAll;
429                    html += '   </button>';
430
431
432                    if (tarteaucitron.parameters.DenyAllCta) {
433                                    html += '   <button type="button" class="tarteaucitronCTAButton tarteaucitronDeny" id="tarteaucitronAllDenied2">';
434                                    html += '       <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.denyAll;
435                                    html += '   </button>';
436                                    //html += '   <br/><br/>';
437                    }
438
439                    html += '   <button type="button" id="tarteaucitronCloseAlert">';
440                    html += '       ' + tarteaucitron.lang.personalize;
441                    html += '   </button>';
442
443                    if (tarteaucitron.parameters.privacyUrl !== "") {
444                        html += '   <button type="button" id="tarteaucitronPrivacyUrl">';
445                        html += '       ' + tarteaucitron.lang.privacyUrl;
446                        html += '   </button>';
447                    }
448
449                    //html += '   </span>';
450                    //html += '</div>';
451                    html += '</div>';
452                    html += '<div id="tarteaucitronPercentage"></div>';
453                }
454
455                if (tarteaucitron.parameters.showIcon === true) {
456                    html += '<div id="tarteaucitronIcon" class="tarteaucitronIcon' + tarteaucitron.parameters.iconPosition + '">';
457                    html += '   <button type="button" id="tarteaucitronManager">';
458                    html += '       <img src="' + (tarteaucitron.parameters.iconSrc ? tarteaucitron.parameters.iconSrc : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAGA0lEQVRoge1a207bWBRdBtJwLYZhKDMVmlSK1LxNkPo+ZH6g8B6p5AuALwC+APoFoVLeoT8whPeRSt+CZKmZVu3AiIsRlEtCktGyjy8xzuXYhvahS0JJHJ/4rLP3XnuffcAPfGdQ7mM6jRLSAF4BxqsbewB2lRS2o35mpEQaJcwCyANIdLi1DGBNSWEzqmdHRqRRwjqAJclhtExOSUEP+/xIiDRKhhUWfL7ShTtBuJnqcw+/z4Ql0xNmMEwSSz4ku
458NIzSgpjSsqYJP/GeE185wYJroedRyiLNEpGLLzzrHSuk+83SgbxvOcyyRaDziWsRVZkSRDinpzPbwVGWIucuohsKynMS47fAQyls/BMSRmKJo3AFhG5wm2N1wF+Zs3zebbFfR0RxrXcJHQlgH+LMW616pR/WiIMEXfW3mtzXyeEGWsjKot8c4TOI98L+iKaR5PS6IUk88RLAO9F8UjrbYoYMOosNavpfmODIiwRXRR/G3ohaWVo1RU/c30jV8ab2mV8qVGzHWBOLyTLZiWs5Rolg/C3ySOi0tXP/k4aEwOwSBKPJs7Rp16ABJTe+p1xVX0It/owqqdDEMRoqd3RFxqDPh20Ig6VEPVC0i5RSCD+6wl6HlW7GksSlUMV11/GrUs5NasFLusDE9ELSVphXemtJwaT/8JyIRvxNNCfBmIiNdR04LII3DSrbe0yjqvyJF/ppptqVlt+MCLCEh/oOkPPP6N38Mb5cnQBGFsEqmXg5j3QMwoMzwGnr4HYbybBq13gZAOom/FO63zdf2qQArCsZrUN2TlJy69eSDKYV+6Q4MpP75ivHzPA53ngaBW4eGuSOt0A/lsGPmXMz0+3TFJcTfFbPfFbfnwlhON+iQhlWmA82CQ4ocQ7c6KcfL3DHuls0yT6Sx4YnLXJDCQOIRRv5yGIJBgP8Sdisj2qubpc5UGJmo+W49ifVmzL8HcpGhQPvZCUKiCliIhEN0tr2OCqHuSA8gwQ/92MkU7gxEmeVqGrTTgpxPXbUrtGWYus0I9thRIraagRQUIDf7Qn4yZhKRiFQIyhfMfUr3yblokVWSJ6k8xSnc7eNN/RjowfCYiFoDUFer1S3gW6JiJ8Nt30EMbEhU+vzSIztuRYjRLsR8IHLjlf7HZ+MrWWEXxNmbvapt4jGSqZRYSkGUetSNTPzHsui5YMQ2ajJUNks6mw4wT54Ok2ShnzzIPCUGshzawCRKy5FqvrTZe0RWzQGvw79m67XZjKmxJrLsICjtZa55gxXy+6F4sYsEtxTqhXdRTLC8ulSDaWoCLsolfN+8YUhOsJV709H7Cudr0LlVEtzqBcN+shEyThdR941OnAbF8pirKJqXyupTRTtQSReiVmXW1j7oBErB0d9xM2WEd5J9ZKYtuR4WKwwBSoORbpGrJ5ZI9lt71irJmGX1px0JYE26uNErawr2zfIcP4OHEKXm66PA3wjpCNEfpJunI4muifPjKvsFCkGjExTq63yxMJsZNMYF/J4HmDC5A3Yq36jy0ClePHVhwuu/b1HSFlEfHD5ZtD1bEK44Qu1mWys6tbWmZyPWckzlPTGiRw/XHCuk+q4Rek+mVrVL/UppwrdDEGNV2kpyuhccgc5Oxm9vWnn+19vJrVpLor0kTUrGacMplb1CfOFyTD4o9uNrHqr2Z+ZMSp1c2XcVSORnh9Q81q3k599ETgkNnjg0nGzi10K7rX+bZpHbrblPcY5A4Zxk2xcjzCvTpd9027Aa0QtouyyrKFRR6D/04DwkFGvHPXM3Qda/Jb4nPgI7hQLVM1q5HIBt2MzQNa57Z1DiiLAGa5Mi+O4Sz3Mpp6laPHO6InII3ITnX1QtI+EOX+m9ZxleOZ/j9PiuKoLi3aqXPuEoSye/Vhkm+LalbLtHhMS0R6zu7aZ3vP2jOjL7QVv4McxhcDnZIelAQibGIbULOapf3PuE1Vs9qeaOTdkVKr00gCQiw4NlBzDvf1Lxx+uP5r3Dgv5KQZRzWn+GRwz8jmDS8itUg7iB6vLuJCF5Uty4A9mVKkFR6MiJDachST/oHvHgD+B4SoUIitpF05AAAAAElFTkSuQmCC') + '" alt="' + tarteaucitron.lang.icon + '" title="' + tarteaucitron.lang.icon + '">';
459                    html += '   </button>';
460                    html += '</div>';
461                }
462
463                if (tarteaucitron.parameters.showAlertSmall === true) {
464                    html += '<div id="tarteaucitronAlertSmall" class="tarteaucitronAlertSmall' + orientation + '">';
465                    html += '   <button type="button" id="tarteaucitronManager">';
466                    html += '       ' + tarteaucitron.lang.alertSmall;
467                    html += '       <span id="tarteaucitronDot">';
468                    html += '           <span id="tarteaucitronDotGreen"></span>';
469                    html += '           <span id="tarteaucitronDotYellow"></span>';
470                    html += '           <span id="tarteaucitronDotRed"></span>';
471                    html += '       </span>';
472                    if (tarteaucitron.parameters.cookieslist === true) {
473                        html += '   </button><!-- @whitespace';
474                        html += '   --><button type="button" id="tarteaucitronCookiesNumber">0</button>';
475                        html += '   <div id="tarteaucitronCookiesListContainer">';
476                        html += '       <button type="button" id="tarteaucitronClosePanelCookie">';
477                        html += '           ' + tarteaucitron.lang.close;
478                        html += '       </button>';
479                        html += '       <div class="tarteaucitronCookiesListMain" id="tarteaucitronCookiesTitle">';
480                        html += '            <span class="tarteaucitronH2" role="heading" aria-level="2" id="tarteaucitronCookiesNumberBis">0 cookie</span>';
481                        html += '       </div>';
482                        html += '       <div id="tarteaucitronCookiesList"></div>';
483                        html += '    </div>';
484                    } else {
485                        html += '   </div>';
486                    }
487                    html += '</div>';
488                }
489
490                tarteaucitron.addInternalScript(tarteaucitron.cdn + 'advertising' + (useJSDelivrMinifiedJS ? '.min' : '') + '.js?v=' + tarteaucitron.version, '', function () {
491                    if (tarteaucitronNoAdBlocker === true || tarteaucitron.parameters.adblocker === false) {
492
493                        // create a wrapper container at the same level than tarteaucitron so we can add an aria-hidden when tarteaucitron is opened
494                        /*var wrapper = document.createElement('div');
495                        wrapper.id = "tarteaucitronContentWrapper";
496
497                        while (document.body.firstChild)
498                        {
499                            wrapper.appendChild(document.body.firstChild);
500                        }
501
502                        // Append the wrapper to the body
503                        document.body.appendChild(wrapper);*/
504
505                        div.id = 'tarteaucitronRoot';
506                        if (tarteaucitron.parameters.bodyPosition === 'top') {
507                            // Prepend tarteaucitron: #tarteaucitronRoot first-child of the body for better accessibility
508                            var bodyFirstChild = body.firstChild;
509                            body.insertBefore(div, bodyFirstChild);
510                        }
511                        else {
512                            // Append tarteaucitron: #tarteaucitronRoot last-child of the body
513                            body.appendChild(div, body);
514                        }
515                        div.innerHTML = html;
516
517                        //ie compatibility
518                        var tacRootAvailableEvent;
519                        if(typeof(Event) === 'function') {
520                            tacRootAvailableEvent = new Event("tac.root_available");
521                        }else if (typeof(document.createEvent) === 'function'){
522                            tacRootAvailableEvent = document.createEvent('Event');
523                            tacRootAvailableEvent.initEvent("tac.root_available", true, true);
524                        }
525                        //end ie compatibility
526
527                        if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacRootAvailableEvent);}
528
529                        if (tarteaucitron.job !== undefined) {
530                            tarteaucitron.job = tarteaucitron.cleanArray(tarteaucitron.job);
531                            for (index = 0; index < tarteaucitron.job.length; index += 1) {
532                                tarteaucitron.addService(tarteaucitron.job[index]);
533                            }
534                        } else {
535                            tarteaucitron.job = [];
536                        }
537
538                        if (tarteaucitron.job.length === 0) {
539                            tarteaucitron.userInterface.closeAlert();
540                        }
541
542                        tarteaucitron.isAjax = true;
543
544                        tarteaucitron.job.push = function (id) {
545
546                            // ie <9 hack
547                            if (typeof tarteaucitron.job.indexOf === 'undefined') {
548                                tarteaucitron.job.indexOf = function (obj, start) {
549                                    var i,
550                                        j = this.length;
551                                    for (i = (start || 0); i < j; i += 1) {
552                                        if (this[i] === obj) { return i; }
553                                    }
554                                    return -1;
555                                };
556                            }
557
558                            if (tarteaucitron.job.indexOf(id) === -1) {
559                                Array.prototype.push.call(this, id);
560                            }
vendor: 7,729 bytes, lines 561-671
561                            tarteaucitron.launch[id] = false;
562                            tarteaucitron.addService(id);
563                        };
564
565                        if (document.location.hash === tarteaucitron.hashtag && tarteaucitron.hashtag !== '') {
566                            tarteaucitron.userInterface.openPanel();
567                        }
568
569                        tarteaucitron.cookie.number();
570                        setInterval(tarteaucitron.cookie.number, 60000);
571                    }
572                }, tarteaucitron.parameters.adblocker);
573
574                if (tarteaucitron.parameters.adblocker === true) {
575                    setTimeout(function () {
576                        if (tarteaucitronNoAdBlocker === false) {
577                            html = '<div id="tarteaucitronAlertBig" class="tarteaucitronAlertBig' + orientation + ' tarteaucitron-display-block" role="alert" aria-live="polite">';
578                            html += '   <p id="tarteaucitronDisclaimerAlert">';
579                            html += '       ' + tarteaucitron.lang.adblock + '<br/>';
580                            html += '       <strong>' + tarteaucitron.lang.adblock_call + '</strong>';
581                            html += '   </p>';
582                            html += '   <button type="button" class="tarteaucitronCTAButton" id="tarteaucitronCTAButton">';
583                            html += '       ' + tarteaucitron.lang.reload;
584                            html += '   </button>';
585                            html += '</div>';
586                            html += '<div id="tarteaucitronPremium"></div>';
587
588                            div.id = 'tarteaucitronRoot';
589                            if (tarteaucitron.parameters.bodyPosition === 'top') {
590                                // Prepend tarteaucitron: #tarteaucitronRoot first-child of the body for better accessibility
591                                var bodyFirstChild = body.firstChild;
592                                body.insertBefore(div, bodyFirstChild);
593                            }
594                            else {
595                                // Append tarteaucitron: #tarteaucitronRoot last-child of the body
596                                body.appendChild(div, body);
597                            }
598                            div.innerHTML = html;
599                        }
600                    }, 1500);
601                }
602                if(tarteaucitron.parameters.closePopup === true){
603                    setTimeout(function() {
604                        var closeElement = document.getElementById('tarteaucitronAlertBig'),
605                            closeSpan = document.createElement('span');
606                        if (closeElement) {
607                            closeSpan.textContent = 'X';
608                            closeSpan.setAttribute('id', "tarteaucitronCloseCross");
609                            closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
610                        }
611                    }, 100);
612                }
613
614
615                if(tarteaucitron.parameters.groupServices === true) {
616                    var tac_group_style = document.createElement('style');
617                    tac_group_style.innerHTML = '.tarteaucitronTitle{display:none}';
618                    document.head.appendChild(tac_group_style);
619                    var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
620                    Array.prototype.forEach.call(cats, function(item) {
621                        var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, "");
622                        if (cat !== "mandatory") {
623                            var html = '';
624                            html += '<li  class="tarteaucitronLine">';
625                            html += '   <div class="tarteaucitronName">';
626                            html += '       <span class="tarteaucitronH3" role="heading" aria-level="2">'+tarteaucitron.lang[cat].title+'</span>';
627                            html += '       <span>'+tarteaucitron.lang[cat].details+'</span>';
628                            html += '   <button type="button" aria-expanded="false" class="tarteaucitron-toggle-group" id="tarteaucitron-toggle-group-'+cat+'">'+tarteaucitron.lang.alertSmall+' ('+document.getElementById("tarteaucitronServices_"+cat).childElementCount+')</button>';
629                            html += '   </div>';
630                            html += '   <div class="tarteaucitronAsk" id="tarteaucitron-group-'+cat+'">';
631                            html += '       <button type="button" aria-label="' + tarteaucitron.lang.allow + ' ' + tarteaucitron.lang[cat].title + '" class="tarteaucitronAllow" id="tarteaucitron-accept-group-'+cat+'">';
632                            html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
633                            html += '       </button> ';
634                            html += '       <button type="button" aria-label="' + tarteaucitron.lang.deny + ' ' + tarteaucitron.lang[cat].title + '" class="tarteaucitronDeny" id="tarteaucitron-reject-group-'+cat+'">';
635                            html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
636                            html += '       </button>';
637                            html += '   </div>';
638                            html += '</li>';
639                            var ul = document.createElement('ul');
640                            ul.innerHTML = html;
641                            item.insertBefore(ul, item.querySelector('#tarteaucitronServices_'+cat+''));
642                            document.querySelector('#tarteaucitronServices_' + cat).style.display = 'none';
643                            tarteaucitron.addClickEventToId("tarteaucitron-toggle-group-" + cat, function () {
644                                tarteaucitron.userInterface.toggle('tarteaucitronServices_' + cat);
645                               if (document.getElementById('tarteaucitronServices_' + cat).style.display == 'block') {
646                                    tarteaucitron.userInterface.addClass('tarteaucitronServicesTitle_' + cat, 'tarteaucitronIsExpanded');
647                                    document.getElementById('tarteaucitron-toggle-group-'+cat).setAttribute('aria-expanded', 'true');
648                                } else {
649                                    tarteaucitron.userInterface.removeClass('tarteaucitronServicesTitle_' + cat, 'tarteaucitronIsExpanded');
650                                    document.getElementById('tarteaucitron-toggle-group-'+cat).setAttribute('aria-expanded', 'false');
651                                }
652                            });
653                            tarteaucitron.addClickEventToId("tarteaucitron-accept-group-" + cat, function () {
654                                tarteaucitron.userInterface.respondAll(true, cat);
655                            });
656                            tarteaucitron.addClickEventToId("tarteaucitron-reject-group-" + cat, function () {
657                                tarteaucitron.userInterface.respondAll(false, cat);
658                            });
659                        }
660                    });
661                }
662                tarteaucitron.userInterface.color("", true);
663
664                // add a little timeout to be sure everything is accessible
665                setTimeout(function () {
666
667                    // Setup events
668                    tarteaucitron.addClickEventToId("tarteaucitronCloseCross", function () {
669                        tarteaucitron.userInterface.closeAlert();
670                    });
671                    tarteaucitron.addClickEventToId("tarteaucitronPersonalize", function () {
672                        tarteaucitron.userInterface.openPanel();
673                    });
674                    tarteaucitron.addClickEventToId("tarteaucitronPersonalize2", function () {
675                        tarteaucitron.userInterface.respondAll(true);
676                    });
677                    tarteaucitron.addClickEventToId("tarteaucitronManager", function () {
678                        tarteaucitron.userInterface.openPanel();
679                    });
680                    tarteaucitron.addClickEventToId("tarteaucitronBack", function () {
681                        tarteaucitron.userInterface.closePanel();
682                    });
683                    tarteaucitron.addClickEventToId("tarteaucitronClosePanel", function () {
684                        tarteaucitron.userInterface.closePanel();
685                    });
686                    tarteaucitron.addClickEventToId("tarteaucitronClosePanelCookie", function () {
687                        tarteaucitron.userInterface.closePanel();
688                    });
689                    tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrl", function () {
690                        document.location = tarteaucitron.parameters.privacyUrl;
691                    });
692                    tarteaucitron.addClickEventToId("tarteaucitronPrivacyUrlDialog", function () {
693                        document.location = tarteaucitron.parameters.privacyUrl;
694                    });
695                    tarteaucitron.addClickEventToId("tarteaucitronCookiesNumber", function () {
696                        tarteaucitron.userInterface.toggleCookiesList();
697                    });
698                    tarteaucitron.addClickEventToId("tarteaucitronAllAllowed", function () {
699                        tarteaucitron.userInterface.respondAll(true);
700                    });
701                    tarteaucitron.addClickEventToId("tarteaucitronAllDenied", function () {
702                        tarteaucitron.userInterface.respondAll(false);
703                    });
704                    tarteaucitron.addClickEventToId("tarteaucitronAllDenied2", function () {
705                        tarteaucitron.userInterface.respondAll(false, '', true);
706                        if (tarteaucitron.reloadThePage === true) {
707                            window.location.reload();
708                        }
709                    });
710                    tarteaucitron.addClickEventToId("tarteaucitronCloseAlert", function () {
vendor: 33,389 bytes, lines 711-1392
711                        tarteaucitron.userInterface.openPanel();
712                    });
713                    tarteaucitron.addClickEventToId("tarteaucitronCTAButton", function () {
714                        location.reload();
715                    });
716                    var toggleBtns = document.getElementsByClassName("catToggleBtn"), i;
717                    for (i = 0; i < toggleBtns.length; i++) {
718                        toggleBtns[i].dataset.index = i;
719                        tarteaucitron.addClickEventToElement(toggleBtns[i], function () {
720                            tarteaucitron.userInterface.toggle('tarteaucitronDetails' + cat[this.dataset.index], 'tarteaucitronInfoBox');
721                            return false;
722                        });
723                    }
724
725                    var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
726                    for (i = 0; i < allowBtns.length; i++) {
727                        tarteaucitron.addClickEventToElement(allowBtns[i], function () {
728                            tarteaucitron.userInterface.respond(this, true);
729                        });
730                    }
731                    var denyBtns = document.getElementsByClassName("tarteaucitronDeny");
732                    for (i = 0; i < denyBtns.length; i++) {
733                        tarteaucitron.addClickEventToElement(denyBtns[i], function () {
734                            tarteaucitron.userInterface.respond(this, false);
735                        });
736                    }
737                    if(tarteaucitron.events.load) {
738                        tarteaucitron.events.load();
739                    }
740                }, 500);
741
742            });
743        });
744    },
745    "addService": function (serviceId) {
746        "use strict";
747        var html = '',
748            s = tarteaucitron.services,
749            service = s[serviceId],
750            cookie = tarteaucitron.cookie.read(),
751            hostname = document.location.hostname,
752            hostRef = document.referrer.split('/')[2],
753            isNavigating = (hostRef === hostname && window.location.href !== tarteaucitron.parameters.privacyUrl),
754            isAutostart = (!service.needConsent),
755            isWaiting = (cookie.indexOf(service.key + '=wait') >= 0),
756            isDenied = (cookie.indexOf(service.key + '=false') >= 0),
757            isAllowed = ((cookie.indexOf(service.key + '=true') >= 0) || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)),
758            isResponded = (cookie.indexOf(service.key + '=false') >= 0 || cookie.indexOf(service.key + '=true') >= 0),
759            isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1"),
760            currentStatus = (isAllowed) ? tarteaucitron.lang.allowed : tarteaucitron.lang.disallowed;
761
762        if (tarteaucitron.added[service.key] !== true) {
763            tarteaucitron.added[service.key] = true;
764
765            html += '<li id="' + service.key + 'Line" class="tarteaucitronLine">';
766            html += '   <div class="tarteaucitronName">';
767            html += '       <span class="tarteaucitronH3" role="heading" aria-level="3">' + service.name + '</span>';
768            html += '       <span class="tacCurrentStatus" id="tacCurrentStatus' + service.key + '">'+currentStatus+'</span>';
769            html += '       <span class="tarteaucitronReadmoreSeparator"> - </span>';
770            html += '       <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
771            if (tarteaucitron.parameters.moreInfoLink == true) {
772
773                var link = 'https://tarteaucitron.io/service/' + service.key + '/';
774                if (service.readmoreLink !== undefined && service.readmoreLink !== '') {
775                    link = service.readmoreLink;
776                }
777                if (tarteaucitron.parameters.readmoreLink !== undefined && tarteaucitron.parameters.readmoreLink !== '') {
778                    link = tarteaucitron.parameters.readmoreLink;
779                }
780                html += '       <a href="' + link + '" target="_blank" rel="noreferrer noopener nofollow" title="'+ tarteaucitron.lang.cookieDetail + ' ' + service.name + ' ' + tarteaucitron.lang.ourSite + ' ' + tarteaucitron.lang.newWindow +'" class="tarteaucitronReadmoreInfo">';
781                html += '           ' + tarteaucitron.lang.more;
782                html += '       </a>';
783                html += '       <span class="tarteaucitronReadmoreSeparator"> - </span>';
784                html += '       <a href="' + service.uri + '" target="_blank" rel="noreferrer noopener" title="' + tarteaucitron.lang.source + ' ' + service.name + ' ' + tarteaucitron.lang.newWindow + '" class="tarteaucitronReadmoreOfficial">';
785                html += '           ' + tarteaucitron.lang.source;
786                html += '       </a>';
787            }
788
789            html += '   </div>';
790            html += '   <div class="tarteaucitronAsk">';
791            html += '       <button type="button" aria-label="' + tarteaucitron.lang.allow + ' ' + service.name + '" id="' + service.key + 'Allowed" class="tarteaucitronAllow">';
792            html += '           <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
793            html += '       </button> ';
794            html += '       <button type="button" aria-label="' + tarteaucitron.lang.deny + ' ' + service.name + '" id="' + service.key + 'Denied" class="tarteaucitronDeny">';
795            html += '           <span class="tarteaucitronCross"></span> ' + tarteaucitron.lang.deny;
796            html += '       </button>';
797            html += '   </div>';
798            html += '</li>';
799
800            tarteaucitron.userInterface.css('tarteaucitronServicesTitle_' + service.type, 'display', 'block');
801
802            if (document.getElementById('tarteaucitronServices_' + service.type) !== null) {
803                document.getElementById('tarteaucitronServices_' + service.type).innerHTML += html;
804            }
805
806            tarteaucitron.userInterface.css('tarteaucitronNoServicesTitle', 'display', 'none');
807
808            tarteaucitron.userInterface.order(service.type);
809
810            tarteaucitron.addClickEventToId(service.key + 'Allowed', function () {
811                tarteaucitron.userInterface.respond(this, true);
812            });
813
814            tarteaucitron.addClickEventToId(service.key + 'Denied', function () {
815                tarteaucitron.userInterface.respond(this, false);
816            });
817        }
818
819        tarteaucitron.pro('!' + service.key + '=' + isAllowed);
820
821        // allow by default for non EU
822        if (isResponded === false && tarteaucitron.user.bypass === true) {
823            isAllowed = true;
824            tarteaucitron.cookie.create(service.key, true);
825        }
826
827        if ((!isResponded && (isAutostart || (isNavigating && isWaiting)) && !tarteaucitron.highPrivacy) || isAllowed) {
828            if (!isAllowed || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)) {
829                tarteaucitron.cookie.create(service.key, true);
830            }
831            if (tarteaucitron.launch[service.key] !== true) {
832                tarteaucitron.launch[service.key] = true;
833                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.js(); }
834                tarteaucitron.sendEvent(service.key + '_loaded');
835            }
836            tarteaucitron.state[service.key] = true;
837            tarteaucitron.userInterface.color(service.key, true);
838        } else if (isDenied) {
839            if (typeof service.fallback === 'function') {
840                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
841            }
842            tarteaucitron.state[service.key] = false;
843            tarteaucitron.userInterface.color(service.key, false);
844        } else if (!isResponded && isDNTRequested && tarteaucitron.handleBrowserDNTRequest) {
845            tarteaucitron.cookie.create(service.key, 'false');
846            if (typeof service.fallback === 'function') {
847                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
848            }
849            tarteaucitron.state[service.key] = false;
850            tarteaucitron.userInterface.color(service.key, false);
851        } else if (!isResponded) {
852            tarteaucitron.cookie.create(service.key, 'wait');
853            if (typeof service.fallback === 'function') {
854                if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + service.key + "_") < 0) { service.fallback(); }
855            }
856            tarteaucitron.userInterface.color(service.key, 'wait');
857            tarteaucitron.userInterface.openAlert();
858        }
859
860        tarteaucitron.cookie.checkCount(service.key);
861        tarteaucitron.sendEvent(service.key + '_added')
862    },
863    "sendEvent" : function(event_key) {
864        if(event_key !== undefined) {
865            //ie compatibility
866            var send_event_item;
867            if(typeof(Event) === 'function') {
868                send_event_item = new Event(event_key);
869            }else if (typeof(document.createEvent) === 'function'){
870                send_event_item = document.createEvent('Event');
871                send_event_item.initEvent(event_key, true, true);
872            }
873            //end ie compatibility
874
875            document.dispatchEvent(send_event_item);
876        }
877    },
878    "cleanArray": function cleanArray(arr) {
879        "use strict";
880        var i,
881            len = arr.length,
882            out = [],
883            obj = {},
884            s = tarteaucitron.services;
885
886        for (i = 0; i < len; i += 1) {
887            if (!obj[arr[i]]) {
888                obj[arr[i]] = {};
889                if (tarteaucitron.services[arr[i]] !== undefined) {
890                    out.push(arr[i]);
891                }
892            }
893        }
894
895        out = out.sort(function (a, b) {
896            if (s[a].type + s[a].key > s[b].type + s[b].key) { return 1; }
897            if (s[a].type + s[a].key < s[b].type + s[b].key) { return -1; }
898            return 0;
899        });
900
901        return out;
902    },
903    "userInterface": {
904        "css": function (id, property, value) {
905            "use strict";
906            if (document.getElementById(id) !== null) {
907
908                if (property == "display" && value == "none" && (id == "tarteaucitron" || id == "tarteaucitronBack" || id == "tarteaucitronAlertBig")) {
909                    document.getElementById(id).style["opacity"] = "0";
910
911                    setTimeout(function() {document.getElementById(id).style[property] = value;}, 200);
912                } else {
913
914                    document.getElementById(id).style[property] = value;
915
916                    if (property == "display" && value == "block" && (id == "tarteaucitron" || id == "tarteaucitronAlertBig")) {
917                        document.getElementById(id).style["opacity"] = "0";
918                        setTimeout(function() {document.getElementById(id).style["opacity"] = "1";}, 1);
919                    }
920
921                    if (property == "display" && value == "block" && id == "tarteaucitronBack") {
922                        document.getElementById(id).style["opacity"] = "0";
923                        setTimeout(function() {document.getElementById(id).style["opacity"] = "0.7";}, 1);
924                    }
925                }
926            }
927        },
928        "addClass": function (id, className) {
929            "use strict";
930            if (document.getElementById(id) !== null && document.getElementById(id).classList !== undefined) {
931                document.getElementById(id).classList.add(className);
932            }
933        },
934        "removeClass": function (id, className) {
935            "use strict";
936            if (document.getElementById(id) !== null && document.getElementById(id).classList !== undefined) {
937                document.getElementById(id).classList.remove(className);
938            }
939        },
940        "respondAll": function (status, type, allowSafeAnalytics) {
941            "use strict";
942            var s = tarteaucitron.services,
943                service,
944                key,
945                index = 0;
946
947            for (index = 0; index < tarteaucitron.job.length; index += 1) {
948
949                if (typeof type !== 'undefined' && type !== '' && s[tarteaucitron.job[index]].type !== type) {
950                    continue;
951                }
952
953                if (allowSafeAnalytics && typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
954                    continue;
955                }
956
957                service = s[tarteaucitron.job[index]];
958                key = service.key;
959                if (tarteaucitron.state[key] !== status) {
960                    if (status === false && tarteaucitron.launch[key] === true) {
961                        tarteaucitron.reloadThePage = true;
962                    }
963                    if (tarteaucitron.launch[key] !== true && status === true) {
964
965                        tarteaucitron.pro('!' + key + '=engage');
966
967                        tarteaucitron.launch[key] = true;
968                        if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
969                        tarteaucitron.sendEvent(key + '_loaded');
970                    }
971                    var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
972                    if(status == true){
973                        itemStatusElem.innerHTML = tarteaucitron.lang.allowed;
974                    }else{
975                        itemStatusElem.innerHTML = tarteaucitron.lang.disallowed;
976                    }
977                    tarteaucitron.state[key] = status;
978                    tarteaucitron.cookie.create(key, status);
979                    tarteaucitron.userInterface.color(key, status);
980                }
981            }
982        },
983        "respond": function (el, status) {
984            "use strict";
985            if (el.id === '') {
986                return;
987            }
988            var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed", "g"), '');
989
990            if (key.substring(0, 13) === 'tarteaucitron' || key === '') {return;}
991
992            // return if same state
993            if (tarteaucitron.state[key] === status) {
994                return;
995            }
996
997            if (status === false && tarteaucitron.launch[key] === true) {
998                tarteaucitron.reloadThePage = true;
999            }
1000
1001            // if not already launched... launch the service
1002            if (status === true) {
1003                if (tarteaucitron.launch[key] !== true) {
1004
1005                    tarteaucitron.pro('!' + key + '=engage');
1006
1007                    tarteaucitron.launch[key] = true;
1008                    tarteaucitron.sendEvent(key + '_loaded');
1009                    if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
1010                }
1011            }
1012            var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
1013            if(status == true){
1014                itemStatusElem.innerHTML = tarteaucitron.lang.allowed;
1015            }else{
1016                itemStatusElem.innerHTML = tarteaucitron.lang.disallowed;
1017            }
1018            tarteaucitron.state[key] = status;
1019            tarteaucitron.cookie.create(key, status);
1020            tarteaucitron.userInterface.color(key, status);
1021        },
1022        "color": function (key, status) {
1023            "use strict";
1024            var c = 'tarteaucitron',
1025                nbDenied = 0,
1026                nbPending = 0,
1027                nbAllowed = 0,
1028                sum = tarteaucitron.job.length,
1029                index,
1030                s = tarteaucitron.services;
1031
1032            if (key !== "") {
1033
1034            if (status === true) {
1035                tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsAllowed');
1036                tarteaucitron.userInterface.removeClass(key + 'Line', 'tarteaucitronIsDenied');
1037                document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'true');
1038                document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
1039            } else if (status === false) {
1040                tarteaucitron.userInterface.removeClass(key + 'Line', 'tarteaucitronIsAllowed');
1041                tarteaucitron.userInterface.addClass(key + 'Line', 'tarteaucitronIsDenied');
1042                document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
1043                document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'true');
1044            } else {
1045                document.getElementById(key + 'Allowed').setAttribute('aria-pressed', 'false');
1046                document.getElementById(key + 'Denied').setAttribute('aria-pressed', 'false');
1047            }
1048
1049            // check if all services are allowed
1050            var sumToRemove = 0;
1051            for (index = 0; index < sum; index += 1) {
1052
1053                if (typeof s[tarteaucitron.job[index]].safeanalytic !== "undefined" && s[tarteaucitron.job[index]].safeanalytic === true) {
1054                    sumToRemove += 1;
1055                    continue;
1056                }
1057
1058                if (tarteaucitron.state[tarteaucitron.job[index]] === false) {
1059                    nbDenied += 1;
1060                } else if (tarteaucitron.state[tarteaucitron.job[index]] === undefined) {
1061                    nbPending += 1;
1062                } else if (tarteaucitron.state[tarteaucitron.job[index]] === true) {
1063                    nbAllowed += 1;
1064                }
1065            }
1066            sum -= sumToRemove;
1067
1068            tarteaucitron.userInterface.css(c + 'DotGreen', 'width', ((100 / sum) * nbAllowed) + '%');
1069            tarteaucitron.userInterface.css(c + 'DotYellow', 'width', ((100 / sum) * nbPending) + '%');
1070            tarteaucitron.userInterface.css(c + 'DotRed', 'width', ((100 / sum) * nbDenied) + '%');
1071
1072            if (nbDenied === 0 && nbPending === 0) {
1073                tarteaucitron.userInterface.removeClass(c + 'AllDenied', c + 'IsSelected');
1074                tarteaucitron.userInterface.addClass(c + 'AllAllowed', c + 'IsSelected');
1075
1076                tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsAllowed');
1077                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
1078
1079                document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'false');
1080                document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'true');
1081
1082            } else if (nbAllowed === 0 && nbPending === 0) {
1083                tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
1084                tarteaucitron.userInterface.addClass(c + 'AllDenied', c + 'IsSelected');
1085
1086                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
1087                tarteaucitron.userInterface.addClass(c + 'MainLineOffset', c + 'IsDenied');
1088
1089                document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'true');
1090                document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'false');
1091
1092            } else {
1093                tarteaucitron.userInterface.removeClass(c + 'AllAllowed', c + 'IsSelected');
1094                tarteaucitron.userInterface.removeClass(c + 'AllDenied', c + 'IsSelected');
1095
1096                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsAllowed');
1097                tarteaucitron.userInterface.removeClass(c + 'MainLineOffset', c + 'IsDenied');
1098
1099                document.getElementById(c + 'AllDenied').setAttribute('aria-pressed', 'false');
1100                document.getElementById(c + 'AllAllowed').setAttribute('aria-pressed', 'false');
1101            }
1102
1103            // close the alert if all service have been reviewed
1104            if (nbPending === 0) {
1105                tarteaucitron.userInterface.closeAlert();
1106            }
1107
1108            if (tarteaucitron.services[key].cookies.length > 0 && status === false) {
1109                tarteaucitron.cookie.purge(tarteaucitron.services[key].cookies);
1110            }
1111
1112            if (status === true) {
1113                if (document.getElementById('tacCL' + key) !== null) {
1114                    document.getElementById('tacCL' + key).innerHTML = '...';
1115                }
1116                setTimeout(function () {
1117                    tarteaucitron.cookie.checkCount(key);
1118                }, 2500);
1119            } else {
1120                tarteaucitron.cookie.checkCount(key);
1121            }
1122
1123            }
1124
1125	    // groups
1126            var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
1127            Array.prototype.forEach.call(cats, function(item) {
1128                var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, ""),
1129                    total = document.getElementById("tarteaucitronServices_"+cat).childElementCount;
1130                var doc = document.getElementById("tarteaucitronServices_"+cat),
1131                    groupdenied = 0,
1132                    groupallowed = 0;
1133                for (var ii = 0; ii < doc.children.length; ii++) {
1134                    if (doc.children[ii].className == "tarteaucitronLine tarteaucitronIsDenied") {
1135                        groupdenied++;
1136                    }
1137                    if (doc.children[ii].className == "tarteaucitronLine tarteaucitronIsAllowed") {
1138                        groupallowed++;
1139                    }
1140                }
1141                if (total === groupallowed) {
1142                    tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
1143                    tarteaucitron.userInterface.addClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
1144
1145                    if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
1146                        document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'false');
1147                        document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'true');
1148                    }
1149                }
1150                if (total === groupdenied) {
1151                    tarteaucitron.userInterface.addClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
1152                    tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
1153
1154                    if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
1155                        document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'true');
1156                        document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'false');
1157                    }
1158                }
1159                if (total !== groupdenied && total !== groupallowed) {
1160                    tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsDenied');
1161                    tarteaucitron.userInterface.removeClass('tarteaucitron-group-'+cat, 'tarteaucitronIsAllowed');
1162
1163                    if (document.getElementById('tarteaucitron-reject-group-'+cat)) {
1164                        document.getElementById('tarteaucitron-reject-group-'+cat).setAttribute('aria-pressed', 'false');
1165                        document.getElementById('tarteaucitron-accept-group-'+cat).setAttribute('aria-pressed', 'false');
1166                    }
1167                }
1168                groupdenied = 0;
1169                groupallowed = 0;
1170            });
1171
1172        },
1173        "openPanel": function () {
1174            "use strict";
1175
1176            tarteaucitron.userInterface.css('tarteaucitron', 'display', 'block');
1177            tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
1178            tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
1179
1180            document.getElementById('tarteaucitronClosePanel').focus();
1181            if (document.getElementsByTagName('body')[0].classList !== undefined) {
1182                document.getElementsByTagName('body')[0].classList.add('tarteaucitron-modal-open');
1183            }
1184            tarteaucitron.userInterface.focusTrap();
1185            tarteaucitron.userInterface.jsSizing('main');
1186
1187            //ie compatibility
1188            var tacOpenPanelEvent;
1189            if(typeof(Event) === 'function') {
1190                tacOpenPanelEvent = new Event("tac.open_panel");
1191            }else if (typeof(document.createEvent) === 'function'){
1192                tacOpenPanelEvent = document.createEvent('Event');
1193                tacOpenPanelEvent.initEvent("tac.open_panel", true, true);
1194            }
1195            //end ie compatibility
1196
1197            if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacOpenPanelEvent);}
1198        },
1199        "closePanel": function () {
1200            "use strict";
1201
1202            if (document.location.hash === tarteaucitron.hashtag) {
1203                if (window.history) {
1204                    window.history.replaceState('', document.title, window.location.pathname + window.location.search);
1205                } else {
1206                    document.location.hash = '';
1207                }
1208            }
1209            tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1210            tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'display', 'none');
1211
1212            tarteaucitron.fallback(['tarteaucitronInfoBox'], function (elem) {
1213                elem.style.display = 'none';
1214            }, true);
1215
1216            if (tarteaucitron.reloadThePage === true) {
1217                window.location.reload();
1218            } else {
1219                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
1220            }
1221            if (document.getElementById('tarteaucitronCloseAlert') !== null) {
1222                document.getElementById('tarteaucitronCloseAlert').focus();
1223            }
1224            if (document.getElementsByTagName('body')[0].classList !== undefined) {
1225                document.getElementsByTagName('body')[0].classList.remove('tarteaucitron-modal-open');
1226            }
1227
1228            //ie compatibility
1229            var tacClosePanelEvent;
1230            if(typeof(Event) === 'function') {
1231                tacClosePanelEvent = new Event("tac.close_panel");
1232            }else if (typeof(document.createEvent) === 'function'){
1233                tacClosePanelEvent = document.createEvent('Event');
1234                tacClosePanelEvent.initEvent("tac.close_panel", true, true);
1235            }
1236            //end ie compatibility
1237
1238            if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacClosePanelEvent);}
1239        },
1240        "focusTrap": function() {
1241            "use strict";
1242
1243            var focusableEls,
1244                firstFocusableEl,
1245                lastFocusableEl,
1246                filtered;
1247
1248            focusableEls = document.getElementById('tarteaucitron').querySelectorAll('a[href], button');
1249            filtered = [];
1250
1251            // get only visible items
1252            for (var i = 0, max = focusableEls.length; i < max; i++) {
1253                if (focusableEls[i].offsetHeight > 0) {
1254                   filtered.push(focusableEls[i]);
1255                }
1256            }
1257
1258            firstFocusableEl = filtered[0];
1259            lastFocusableEl = filtered[filtered.length - 1];
1260
1261            //loop focus inside tarteaucitron
1262            document.getElementById('tarteaucitron').addEventListener("keydown", function (evt) {
1263
1264                if ( evt.key === 'Tab' || evt.keyCode === 9 ) {
1265
1266                    if ( evt.shiftKey ) /* shift + tab */ {
1267                        if (document.activeElement === firstFocusableEl) {
1268                            lastFocusableEl.focus();
1269                            evt.preventDefault();
1270                        }
1271                    } else /* tab */ {
1272                        if (document.activeElement === lastFocusableEl) {
1273                            firstFocusableEl.focus();
1274                            evt.preventDefault();
1275                        }
1276                    }
1277                }
1278            })
1279        },
1280        "openAlert": function () {
1281            "use strict";
1282            var c = 'tarteaucitron';
1283            tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'block');
1284            tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'none');
1285            tarteaucitron.userInterface.css(c + 'Icon', 'display', 'none');
1286            tarteaucitron.userInterface.css(c + 'AlertBig',   'display', 'block');
1287            tarteaucitron.userInterface.addClass(c + 'Root',   'tarteaucitronBeforeVisible');
1288
1289            //ie compatibility
1290            var tacOpenAlertEvent;
1291            if(typeof(Event) === 'function') {
1292                tacOpenAlertEvent = new Event("tac.open_alert");
1293            }else if (typeof(document.createEvent) === 'function'){
1294                tacOpenAlertEvent = document.createEvent('Event');
1295                tacOpenAlertEvent.initEvent("tac.open_alert", true, true);
1296            }
1297            //end ie compatibility
1298
1299            if (document.getElementById('tarteaucitronAlertBig') !== null) {
1300                document.getElementById('tarteaucitronAlertBig').focus();
1301            }
1302
1303            if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacOpenAlertEvent);}
1304        },
1305        "closeAlert": function () {
1306            "use strict";
1307            var c = 'tarteaucitron';
1308            tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'none');
1309            tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'block');
1310            tarteaucitron.userInterface.css(c + 'Icon', 'display', 'block');
1311            tarteaucitron.userInterface.css(c + 'AlertBig',   'display', 'none');
1312            tarteaucitron.userInterface.removeClass(c + 'Root',   'tarteaucitronBeforeVisible');
1313            tarteaucitron.userInterface.jsSizing('box');
1314
1315            //ie compatibility
1316            var tacCloseAlertEvent;
1317            if(typeof(Event) === 'function') {
1318                tacCloseAlertEvent = new Event("tac.close_alert");
1319            }else if (typeof(document.createEvent) === 'function'){
1320                tacCloseAlertEvent = document.createEvent('Event');
1321                tacCloseAlertEvent.initEvent("tac.close_alert", true, true);
1322            }
1323            //end ie compatibility
1324
1325            if (typeof(window.dispatchEvent) === 'function') {window.dispatchEvent(tacCloseAlertEvent);}
1326        },
1327        "toggleCookiesList": function () {
1328            "use strict";
1329            var div = document.getElementById('tarteaucitronCookiesListContainer');
1330
1331            if (div === null) {
1332                return;
1333            }
1334
1335            if (div.style.display !== 'block') {
1336                tarteaucitron.cookie.number();
1337                div.style.display = 'block';
1338                tarteaucitron.userInterface.jsSizing('cookie');
1339                tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1340                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'block');
1341                tarteaucitron.fallback(['tarteaucitronInfoBox'], function (elem) {
1342                    elem.style.display = 'none';
1343                }, true);
1344            } else {
1345                div.style.display = 'none';
1346                tarteaucitron.userInterface.css('tarteaucitron', 'display', 'none');
1347                tarteaucitron.userInterface.css('tarteaucitronBack', 'display', 'none');
1348            }
1349        },
1350        "toggle": function (id, closeClass) {
1351            "use strict";
1352            var div = document.getElementById(id);
1353
1354            if (div === null) {
1355                return;
1356            }
1357
1358            if (closeClass !== undefined) {
1359                tarteaucitron.fallback([closeClass], function (elem) {
1360                    if (elem.id !== id) {
1361                        elem.style.display = 'none';
1362                    }
1363                }, true);
1364            }
1365
1366            if (div.style.display !== 'block') {
1367                div.style.display = 'block';
1368            } else {
1369                div.style.display = 'none';
1370            }
1371        },
1372        "order": function (id) {
1373            "use strict";
1374            var main = document.getElementById('tarteaucitronServices_' + id),
1375                allDivs,
1376                store = [],
1377                i;
1378
1379            if (main === null) {
1380                return;
1381            }
1382
1383            allDivs = main.childNodes;
1384
1385            if (typeof Array.prototype.map === 'function' && typeof Enumerable === 'undefined') {
1386                Array.prototype.map.call(main.children, Object).sort(function (a, b) {
1387                //var mainChildren = Array.from(main.children);
1388                //mainChildren.sort(function (a, b) {
1389                    if (tarteaucitron.services[a.id.replace(/Line/g, '')].name > tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return 1; }
1390                    if (tarteaucitron.services[a.id.replace(/Line/g, '')].name < tarteaucitron.services[b.id.replace(/Line/g, '')].name) { return -1; }
1391                    return 0;
1392                }
1392).forEach(function (element) {
1393                    main.appendChild(element);
1394                });
1395            }
1396        },
1397        "jsSizing": function (type) {
1398            "use strict";
1399            var scrollbarMarginRight = 10,
1400                scrollbarWidthParent,
1401                scrollbarWidthChild,
1402                servicesHeight,
1403                e = window,
1404                a = 'inner',
1405                windowInnerHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight,
1406                mainTop,
1407                mainHeight,
1408                closeButtonHeight,
1409                headerHeight,
1410                cookiesListHeight,
1411                cookiesCloseHeight,
1412                cookiesTitleHeight,
1413                paddingBox,
1414                alertSmallHeight,
1415                cookiesNumberHeight;
1416
1417            if (type === 'box') {
1418                if (document.getElementById('tarteaucitronAlertSmall') !== null && document.getElementById('tarteaucitronCookiesNumber') !== null) {
1419
1420                    // reset
1421                    tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', '0px 10px');
1422
1423                    // calculate
1424                    alertSmallHeight = document.getElementById('tarteaucitronAlertSmall').offsetHeight;
1425                    cookiesNumberHeight = document.getElementById('tarteaucitronCookiesNumber').offsetHeight;
1426                    paddingBox = (alertSmallHeight - cookiesNumberHeight) / 2;
1427
1428                    // apply
1429                    tarteaucitron.userInterface.css('tarteaucitronCookiesNumber', 'padding', paddingBox + 'px 10px');
1430                }
1431            } else if (type === 'main') {
1432
1433                // get the real window width for media query
1434                if (window.innerWidth === undefined) {
1435                    a = 'client';
1436                    e = document.documentElement || document.body;
1437                }
1438
1439                // height of the services list container
1440                if (document.getElementById('tarteaucitron') !== null && document.getElementById('tarteaucitronClosePanel') !== null && document.getElementById('tarteaucitronMainLineOffset') !== null) {
1441
1442                    // reset
1443                    tarteaucitron.userInterface.css('tarteaucitronServices', 'height', 'auto');
1444
1445                    // calculate
1446                    mainHeight = document.getElementById('tarteaucitron').offsetHeight;
1447                    closeButtonHeight = document.getElementById('tarteaucitronClosePanel').offsetHeight;
1448
1449                    // apply
1450                    servicesHeight = (mainHeight - closeButtonHeight + 2);
1451                    tarteaucitron.userInterface.css('tarteaucitronServices', 'height', servicesHeight + 'px');
1452                    tarteaucitron.userInterface.css('tarteaucitronServices', 'overflow-x', 'auto');
1453                }
1454
1455                // align the main allow/deny button depending on scrollbar width
1456                if (document.getElementById('tarteaucitronServices') !== null && document.getElementById('tarteaucitronScrollbarChild') !== null) {
1457
1458                    // media query
1459                    if (e[a + 'Width'] <= 479) {
1460                        //tarteaucitron.userInterface.css('tarteaucitronScrollbarAdjust', 'marginLeft', '11px');
1461                    } else if (e[a + 'Width'] <= 767) {
1462                        scrollbarMarginRight = 12;
1463                    }
1464
1465                    scrollbarWidthParent = document.getElementById('tarteaucitronServices').offsetWidth;
1466                    scrollbarWidthChild = document.getElementById('tarteaucitronScrollbarChild').offsetWidth;
1467                    //tarteaucitron.userInterface.css('tarteaucitronScrollbarAdjust', 'marginRight', ((scrollbarWidthParent - scrollbarWidthChild) + scrollbarMarginRight) + 'px');
1468                }
1469
1470                // center the main panel
1471                if (document.getElementById('tarteaucitron') !== null) {
1472
1473                    // media query
1474                    if (e[a + 'Width'] <= 767) {
1475                        mainTop = 0;
1476                    } else {
1477                        mainTop = ((windowInnerHeight - document.getElementById('tarteaucitron').offsetHeight) / 2) - 21;
1478                    }
1479
1480                    if (document.getElementById('tarteaucitronMainLineOffset') !== null) {
1481                        if (document.getElementById('tarteaucitron').offsetHeight < (windowInnerHeight / 2)) {
1482                            mainTop -= document.getElementById('tarteaucitronMainLineOffset').offsetHeight;
1483                        }
1484                    }
1485
1486                    // correct
1487                    if (mainTop < 0) {
1488                        mainTop = 0;
1489                    }
1490
1491                    // apply
1492                    tarteaucitron.userInterface.css('tarteaucitron', 'top', mainTop + 'px');
1493                }
1494
1495
1496            } else if (type === 'cookie') {
1497
1498                // put cookies list at bottom
1499                if (document.getElementById('tarteaucitronAlertSmall') !== null) {
1500                    tarteaucitron.userInterface.css('tarteaucitronCookiesListContainer', 'bottom', (document.getElementById('tarteaucitronAlertSmall').offsetHeight) + 'px');
1501                }
1502
1503                // height of cookies list
1504                if (document.getElementById('tarteaucitronCookiesListContainer') !== null) {
1505
1506                    // reset
1507                    tarteaucitron.userInterface.css('tarteaucitronCookiesList', 'height', 'auto');
1508
1509                    // calculate
1510                    cookiesListHeight = document.getElementById('tarteaucitronCookiesListContainer').offsetHeight;
1511                    cookiesCloseHeight = document.getElementById('tarteaucitronClosePanelCookie').offsetHeight;
1512                    cookiesTitleHeight = document.getElementById('tarteaucitronCookiesTitle').offsetHeight;
1513
1514                    // apply
1515                    tarteaucitron.userInterface.css('tarteaucitronCookiesList', 'height', (cookie
vendor: 14,133 bytes, lines 1515-1838
1515sListHeight - cookiesCloseHeight - cookiesTitleHeight - 2) + 'px');
1516                }
1517            }
1518        }
1519    },
1520    "cookie": {
1521        "owner": {},
1522        "create": function (key, status) {
1523            "use strict";
1524
1525            if (tarteaucitronForceExpire !== '') {
1526                // The number of day(s)/hour(s) can't be higher than 1 year
1527                if ((tarteaucitronExpireInDay && tarteaucitronForceExpire < 365) || (!tarteaucitronExpireInDay && tarteaucitronForceExpire < 8760)) {
1528                    if (tarteaucitronExpireInDay) {
1529                        // Multiplication to tranform the number of days to milliseconds
1530                        timeExpire = tarteaucitronForceExpire * 86400000;
1531                    } else {
1532                        // Multiplication to tranform the number of hours to milliseconds
1533                        timeExpire = tarteaucitronForceExpire * 3600000;
1534                    }
1535                }
1536            }
1537
1538            var d = new Date(),
1539                time = d.getTime(),
1540                expireTime = time + timeExpire, // 365 days
1541                regex = new RegExp("!" + key + "=(wait|true|false)", "g"),
1542                cookie = tarteaucitron.cookie.read().replace(regex, ""),
1543                value = tarteaucitron.parameters.cookieName + '=' + cookie + '!' + key + '=' + status,
1544                domain = (tarteaucitron.parameters.cookieDomain !== undefined && tarteaucitron.parameters.cookieDomain !== '') ? '; domain=' + tarteaucitron.parameters.cookieDomain : '',
1545                secure = location.protocol === 'https:' ? '; Secure' : '';
1546
1547            d.setTime(expireTime);
1548            document.cookie = value + '; expires=' + d.toGMTString() + '; path=/' + domain + secure + '; samesite=lax';
1549        },
1550        "read": function () {
1551            "use strict";
1552            var nameEQ = tarteaucitron.parameters.cookieName + "=",
1553                ca = document.cookie.split(';'),
1554                i,
1555                c;
1556
1557            for (i = 0; i < ca.length; i += 1) {
1558                c = ca[i];
1559                while (c.charAt(0) === ' ') {
1560                    c = c.substring(1, c.length);
1561                }
1562                if (c.indexOf(nameEQ) === 0) {
1563                    return c.substring(nameEQ.length, c.length);
1564                }
1565            }
1566            return '';
1567        },
1568        "purge": function (arr) {
1569            "use strict";
1570            var i;
1571
1572            for (i = 0; i < arr.length; i += 1) {
1573
1574                var rgxpCookie = new RegExp("^(.*;)?\\s*" + arr[i] + "\\s*=\\s*[^;]+(.*)?$");
1575                if (document.cookie.match(rgxpCookie)) {
1576                    document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
1577                    document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
1578                    document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
1579                }
1580            }
1581        },
1582        "checkCount": function (key) {
1583            "use strict";
1584            var arr = tarteaucitron.services[key].cookies,
1585                nb = arr.length,
1586                nbCurrent = 0,
1587                html = '',
1588                i,
1589                status = document.cookie.indexOf(key + '=true');
1590
1591            if (status >= 0 && nb === 0) {
1592                html += tarteaucitron.lang.useNoCookie;
1593            } else if (status >= 0) {
1594                for (i = 0; i < nb; i += 1) {
1595                    if (document.cookie.indexOf(arr[i] + '=') !== -1) {
1596                        nbCurrent += 1;
1597                        if (tarteaucitron.cookie.owner[arr[i]] === undefined) {
1598                            tarteaucitron.cookie.owner[arr[i]] = [];
1599                        }
1600                        if (tarteaucitron.cookie.crossIndexOf(tarteaucitron.cookie.owner[arr[i]], tarteaucitron.services[key].name) === false) {
1601                            tarteaucitron.cookie.owner[arr[i]].push(tarteaucitron.services[key].name);
1602                        }
1603                    }
1604                }
1605
1606                if (nbCurrent > 0) {
1607                    html += tarteaucitron.lang.useCookieCurrent + ' ' + nbCurrent + ' cookie';
1608                    if (nbCurrent > 1) {
1609                        html += 's';
1610                    }
1611                    html += '.';
1612                } else {
1613                    html += tarteaucitron.lang.useNoCookie;
1614                }
1615            } else if (nb === 0) {
1616                html = tarteaucitron.lang.noCookie;
1617            } else {
1618                html += tarteaucitron.lang.useCookie + ' ' + nb + ' cookie';
1619                if (nb > 1) {
1620                    html += 's';
1621                }
1622                html += '.';
1623            }
1624
1625            if (document.getElementById('tacCL' + key) !== null) {
1626                document.getElementById('tacCL' + key).innerHTML = html;
1627            }
1628        },
1629        "crossIndexOf": function (arr, match) {
1630            "use strict";
1631            var i;
1632            for (i = 0; i < arr.length; i += 1) {
1633                if (arr[i] === match) {
1634                    return true;
1635                }
1636            }
1637            return false;
1638        },
1639        "number": function () {
1640            "use strict";
1641            var cookies = document.cookie.split(';'),
1642                nb = (document.cookie !== '') ? cookies.length : 0,
1643                html = '',
1644                i,
1645                name,
1646                namea,
1647                nameb,
1648                c,
1649                d,
1650                s = (nb > 1) ? 's' : '',
1651                savedname,
1652                regex = /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i,
1653                regexedDomain = (tarteaucitron.cdn.match(regex) !== null) ? tarteaucitron.cdn.match(regex)[1] : tarteaucitron.cdn,
1654                host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : regexedDomain;
1655
1656            cookies = cookies.sort(function (a, b) {
1657                namea = a.split('=', 1).toString().replace(/ /g, '');
1658                nameb = b.split('=', 1).toString().replace(/ /g, '');
1659                c = (tarteaucitron.cookie.owner[namea] !== undefined) ? tarteaucitron.cookie.owner[namea] : '0';
1660                d = (tarteaucitron.cookie.owner[nameb] !== undefined) ? tarteaucitron.cookie.owner[nameb] : '0';
1661                if (c + a > d + b) { return 1; }
1662                if (c + a < d + b) { return -1; }
1663                return 0;
1664            });
1665
1666            if (document.cookie !== '') {
1667                for (i = 0; i < nb; i += 1) {
1668                    name = cookies[i].split('=', 1).toString().replace(/ /g, '');
1669                    if (tarteaucitron.cookie.owner[name] !== undefined && tarteaucitron.cookie.owner[name].join(' // ') !== savedname) {
1670                        savedname = tarteaucitron.cookie.owner[name].join(' // ');
1671                        html += '<div class="tarteaucitronHidden">';
1672                        html += '     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">';
1673                        html += '        ' + tarteaucitron.cookie.owner[name].join(' // ');
1674                        html += '    </span>';
1675                        html += '</div><ul class="cookie-list">';
1676                    } else if (tarteaucitron.cookie.owner[name] === undefined && host !== savedname) {
1677                        savedname = host;
1678                        html += '<div class="tarteaucitronHidden">';
1679                        html += '     <span class="tarteaucitronTitle tarteaucitronH3" role="heading" aria-level="3">';
1680                        html += '        ' + host;
1681                        html += '    </span>';
1682                        html += '</div><ul class="cookie-list">';
1683                    }
1684                    html += '<li class="tarteaucitronCookiesListMain">';
1685                    html += '    <div class="tarteaucitronCookiesListLeft"><button type="button" class="purgeBtn" data-cookie="' + tarteaucitron.fixSelfXSS(cookies[i].split('=', 1)) + '"><strong>&times;</strong></button> <strong>' + tarteaucitron.fixSelfXSS(name) + '</strong>';
1686                    html += '    </div>';
1687                    html += '    <div class="tarteaucitronCookiesListRight">' + tarteaucitron.fixSelfXSS(cookies[i].split('=').slice(1).join('=')) + '</div>';
1688                    html += '</li>';
1689                }
1690                html += '</ul>';
1691            } else {
1692                html += '<div class="tarteaucitronCookiesListMain">';
1693                html += '    <div class="tarteaucitronCookiesListLeft"><strong>-</strong></div>';
1694                html += '    <div class="tarteaucitronCookiesListRight"></div>';
1695                html += '</div>';
1696            }
1697
1698            html += '<div class="tarteaucitronHidden tarteaucitron-spacer-20"></div>';
1699
1700            if (document.getElementById('tarteaucitronCookiesList') !== null) {
1701                document.getElementById('tarteaucitronCookiesList').innerHTML = html;
1702            }
1703
1704            if (document.getElementById('tarteaucitronCookiesNumber') !== null) {
1705                document.getElementById('tarteaucitronCookiesNumber').innerHTML = nb;
1706            }
1707
1708            if (document.getElementById('tarteaucitronCookiesNumberBis') !== null) {
1709                document.getElementById('tarteaucitronCookiesNumberBis').innerHTML = nb + ' cookie' + s;
1710            }
1711
1712            var purgeBtns = document.getElementsByClassName("purgeBtn");
1713            for (i = 0; i < purgeBtns.length; i++) {
1714                tarteaucitron.addClickEventToElement(purgeBtns[i], function () {
1715                    tarteaucitron.cookie.purge([this.dataset.cookie]);
1716                    tarteaucitron.cookie.number();
1717                    tarteaucitron.userInterface.jsSizing('cookie');
1718                    return false;
1719                });
1720            }
1721
1722            for (i = 0; i < tarteaucitron.job.length; i += 1) {
1723                tarteaucitron.cookie.checkCount(tarteaucitron.job[i]);
1724            }
1725        }
1726    },
1727    "fixSelfXSS": function(html) {
1728        return html.toString().replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
1729    },
1730    "getLanguage": function () {
1731        "use strict";
1732
1733        var availableLanguages = 'bg,ca,cn,cs,da,de,el,en,es,fi,fr,hu,it,ja,lt,lv,nl,no,oc,pl,pt,ro,ru,se,sk,sv,tr,vi,zh',
1734            defaultLanguage = 'en';
1735
1736        if (tarteaucitronForceLanguage !== '') {
1737            if (availableLanguages.indexOf(tarteaucitronForceLanguage) !== -1) {
1738                return tarteaucitronForceLanguage;
1739            }
1740        }
1741
1742        if (!navigator) { return 'en'; }
1743
1744        var lang = navigator.language || navigator.browserLanguage ||
1745                navigator.systemLanguage || navigator.userLang || null,
1746            userLanguage = lang ? lang.substr(0, 2) : null;
1747
1748        if (availableLanguages.indexOf(userLanguage) === -1) {
1749            return defaultLanguage;
1750        }
1751        return userLanguage;
1752    },
1753    "getLocale": function () {
1754        "use strict";
1755        if (!navigator) { return 'en_US'; }
1756
1757        var lang = navigator.language || navigator.browserLanguage ||
1758                navigator.systemLanguage || navigator.userLang || null,
1759            userLanguage = lang ? lang.substr(0, 2) : null;
1760
1761        if (userLanguage === 'fr') {
1762            return 'fr_FR';
1763        } else if (userLanguage === 'en') {
1764            return 'en_US';
1765        } else if (userLanguage === 'de') {
1766            return 'de_DE';
1767        } else if (userLanguage === 'es') {
1768            return 'es_ES';
1769        } else if (userLanguage === 'it') {
1770            return 'it_IT';
1771        } else if (userLanguage === 'pt') {
1772            return 'pt_PT';
1773        } else if (userLanguage === 'nl') {
1774            return 'nl_NL';
1775        } else if (userLanguage === 'el') {
1776            return 'el_EL';
1777        } else {
1778            return 'en_US';
1779        }
1780    },
1781    "addScript": function (url, id, callback, execute, attrName, attrVal, internal) {
1782        "use strict";
1783        var script,
1784            done = false;
1785
1786        if (execute === false) {
1787            if (typeof callback === 'function') {
1788                callback();
1789            }
1790        } else {
1791            script = document.createElement('script');
1792            script.id = (id !== undefined) ? id : '';
1793            script.async = true;
1794            script.src = url;
1795
1796            if (attrName !== undefined && attrVal !== undefined) {
1797                script.setAttribute(attrName, attrVal);
1798            }
1799
1800            if (typeof callback === 'function') {
1801                if ( !tarteaucitron.parameters.useExternalJs || !internal ) {
1802                    script.onreadystatechange = script.onload = function () {
1803                        var state = script.readyState;
1804                        if (!done && (!state || /loaded|complete/.test(state))) {
1805                            done = true;
1806                            callback();
1807                        }
1808                    };
1809                } else {
1810                    callback();
1811                }
1812            }
1813
1814            if ( !tarteaucitron.parameters.useExternalJs || !internal ) {
1815                document.getElementsByTagName('head')[0].appendChild(script);
1816            }
1817        }
1818    },
1819    "addInternalScript": function (url, id, callback, execute, attrName, attrVal) {
1820        tarteaucitron.addScript(url, id, callback, execute, attrName, attrVal, true);
1821    },
1822    "makeAsync": {
1823        "antiGhost": 0,
1824        "buffer": '',
1825        "init": function (url, id) {
1826            "use strict";
1827            var savedWrite = document.write,
1828                savedWriteln = document.writeln;
1829
1830            document.write = function (content) {
1831                tarteaucitron.makeAsync.buffer += content;
1832            };
1833            document.writeln = function (content) {
1834                tarteaucitron.makeAsync.buffer += content.concat("\n");
1835            };
1836
1837            setTimeout(function () {
1838                document.write = savedWrite;
1839                document.writeln = savedWriteln;
1840            }, 20000);
1841
1842            tarteaucitron.makeAsync.getAndParse(url, id);
1843        },
1844        "getAndParse": function (url, id) {
1845            "use strict";
1846            if (tarteaucitron.makeAsync.antiGhost > 9) {
1847                tarteaucitron.makeAsync.antiGhost = 0;
1848                return;
1849            }
1850            tarteaucitron.makeAsync.antiGhost += 1;
1851            tarteaucitron.addInternalScript(url, '', function () {
1852                if (document.getElementById(id) !== null) {
1853                    document.getElementById(id).innerHTML += "<span class='tarteaucitron-display-none'>&nbsp;</span>" + tarteaucitron.makeAsync.buffer;
1854                    tarteaucitron.makeAsync.buffer = '';
1855                    tarteaucitron.makeAsync.execJS(id);
1856                }
1857            });
1858        },
1859        "execJS": function (id) {
1860            /* not strict because third party scripts may have errors */
1861            var i,
1862                scripts,
1863                childId,
1864                type;
1865
1866            if (document.getElementById(id) === null) {
1867                return;
1868            }
1869
1870            scripts = document.getElementById(id).getElementsByTagName('script');
1871            for (i = 0; i < scripts.length; i += 1) {
1872                type = (scripts[i].getAttribute('type') !== null) ? scripts[i].getAttribute('type') : '';
1873                if (type === '') {
1874                    type = (scripts[i].getAttribute('language') !== null) ? scripts[i].getAttribute('language') : '';
1875                }
1876                if (scripts[i].getAttribute('src') !== null && scripts[i].getAttribute('src') !== '') {
1877                    childId = id + Math.floor(Math.random() * 99999999999);
1878                    document.getElementById(id).innerHTML += '<div id="' + childId + '"></div>';
1879                    tarteaucitron.makeAsync.getAndParse(scripts[i].getAttribute('src'), childId);
1880                } else if (type.indexOf('javascript') !== -1 || type === '') {
1881                    eval(scripts[i].innerHTML);
1882                }
1883            }
1884        }
1885    },
1886    "fallback": function (matchClass, content, noInner) {
1887        "use strict";
1888        var elems = document.getElementsByTagName('*'),
1889            i,
1890            index = 0;
1891
1892        for (i in elems) {
1893            if (elems[i] !== undefined) {
1894                for (index = 0; index < matchClass.length; index += 1) {
1895                    if ((' ' + elems[i].className + ' ')
1896                            .indexOf(' ' + matchClass[index] + ' ') > -1) {
1897                        if (typeof content === 'function') {
1898                            if (noInner === true) {
1899                                content(elems[i]);
1900                            } else {
1901                                elems[i].innerHTML = content(elems[i]);
1902                            }
1903                        } else {
1904                            elems[i].innerHTML = content;
1905                        }
1906                    }
1907                }
1908            }
1909        }
1910    },
1911    "engage": function (id) {
1912        "use strict";
1913        var html = '',
1914            r = Math.floor(Math.random() * 100000),
1915            engage = tarteaucitron.services[id].name + ' ' + tarteaucitron.lang.fallback;
1916
1917        if (tarteaucitron.lang['engage-' + id] !== undefined) {
1918            engage = tarteaucitron.lang['engage-' + id];
1919        }
1920
1921        html += '<div class="tac_activate tac_activate_' + id + '">';
1922        html += '   <div class="tac_float">';
1923        html += '      ' + engage;
1924        html += '      <button type="button" class="tarteaucitronAllow" id="Eng' + r + 'ed' + id + '">';
1925        html += '          <span class="tarteaucitronCheck"></span> ' + tarteaucitron.lang.allow;
1926        html += '       </button>';
1927        html += '   </div>';
1928        html += '</div>';
1929
1930        return html;
1931    },
1932    "extend": function (a, b) {
1933        "use strict";
1934        var prop;
1935        for (prop in b) {
1936            if (b.hasOwnProperty(prop)) {
1937                a[prop] = b[prop];
1938            }
1939        }
1940    },
1941    "proTemp": '',
1942    "proTimer": function () {
1943        "use strict";
1944        setTimeout(tarteaucitron.proPing, 500);
1945    },
1946    "pro": function (list) {
1947        "use strict";
1948        tarteaucitron.proTemp += list;
1949        clearTimeout(tarteaucitron.proTimer);
1950        tarteaucitron.proTimer = setTimeout(tarteaucitron.proPing, 500);
1951    },
1952    "proPing": function () {
1953        "use strict";
1954        if (tarteaucitron.uuid !== '' && tarteaucitron.uuid !== undefined && tarteaucitron.proTemp !== '' && tarteaucitronStatsEnabled) {
1955            var div = document.getElementById('tarteaucitronPremium'),
1956                timestamp = new Date().getTime(),
1957                url = 'https://tarteaucitron.io/log/?';
1958
1959            if (div === null) {
1960                return;
1961            }
1962
1963            url += 'account=' + tarteaucitron.uuid + '&';
1964            url += 'domain=' + tarteaucitron.domain + '&';
1965            url += 'status=' + encodeURIComponent(tarteaucitron.proTemp) + '&';
1966            url += '_time=' + timestamp;
1967
1968            div.innerHTML = '<img src="' + url + '" class="tarteaucitron-display-none" alt="" />';
1969
1970            tarteaucitron.proTemp = '';
1971        }
1972
1973        tarteaucitron.cookie.number();
1974    },
1975    "AddOrUpdate" : function(source, custom){
1976        /**
1977         Utility function to Add or update the fields of obj1 with the ones in obj2
1978         */
1979        for(var key in custom){
1980            if(custom[key] instanceof Object){
1981                source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
1982            }else{
1983                source[key] = custom[key];
1984            }
1985        }
1986        return source;
1987    },
1988    "getElemWidth": function(elem) {
1989        return elem.getAttribute('width') || elem.clientWidth;
1990    },
1991    "getElemHeight": function(elem) {
1992        return elem.getAttribute('height') || elem.clientHeight;
1993    },
1994    "addClickEventToId": function (elemId, func) {
1995        tarteaucitron.addClickEventToElement(document.getElementById(elemId), func);
1996    },
1997    "addClickEventToElement": function (e, func) {
1998        if (e) {
1999            if (e.addEventListener) {
2000                e.addEventListener("click", func);
2001            } else {
2002                e.attachEvent("onclick", func);
2003            }
2004        }
2005    },
2006    "triggerJobsAfterAjaxCall": function() {
2007        tarteaucitron.job.forEach(function(e) { tarteaucitron.job.push(e) });
2008        var i;
2009        var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
2010        for (i = 0; i < allowBtns.length; i++) {
2011            tarteaucitron.addClickEventToElement(allowBtns[i], function () {
2012                tarteaucitron.userInterface.respond(this, true);
2013            });
2014        }
2015        var denyBtns = document.getElementsByClassName("tarteaucitronDeny");
2016        for (i = 0; i < denyBtns.length; i++) {
2017            tarteaucitron.addClickEventToElement(denyBtns[i], function () {
2018                tarteaucitron.userInterface.respond(this, false);
2019            });
2020        }
2021    }
2022};
2023
2024/*!
2025 * Modernizr v2.8.3
2026 * www.modernizr.com
2027 *
2028 * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
2029 * Available under the BSD and MIT licenses: www.modernizr.com/license/
2030 */
2031window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.8.3",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["&#173;",'<style id="s',r,'">',a,"</style>"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;
vendor: 9,170 bytes, lines 2031-2046
2031if(c)return c(b)&&c(b).matches||!1;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||h(a,d),a}var j,k,l="3.7.0",m=a.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p="_html5shiv",q=0,r={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document);
2032
2033/*!
2034 * jQuery JavaScript Library v2.1.4
2035 * http://jquery.com/
2036 *
2037 * Includes Sizzle.js
2038 * http://sizzlejs.com/
2039 *
2040 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
2041 * Released under the MIT license
2042 * http://jquery.org/license
2043 *
2044 * Date: 2015-04-28T16:01Z
2045 */
2046!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if
vendor: 15,390 bytes, lines 2046-2056
2046(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Na[0].contentDocument,b.write(),b.close(),c=t(a,b),Na.detach()),Oa[a]=c),c}function v(a,b,c){var d,e,f,g,h=a.style;return c=c||Ra(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||_.contains(a.ownerDocument,a)||(g=_.style(a,b)),Qa.test(g)&&Pa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function w(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function x(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=Xa.length;e--;)if(b=Xa[e]+c,b in a)return b;return d}function y(a,b,c){var d=Ta.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function z(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=_.css(a,c+wa[f],!0,e)),d?("content"===c&&(g-=_.css(a,"padding"+wa[f],!0,e)),"margin"!==c&&(g-=_.css(a,"border"+wa[f]+"Width",!0,e))):(g+=_.css(a,"padding"+wa[f],!0,e),"padding"!==c&&(g+=_.css(a,"border"+wa[f]+"Width",!0,e)));return g}function A(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ra(a),g="border-box"===_.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=v(a,b,f),(0>e||null==e)&&(e=a.style[b]),Qa.test(e))return e;d=g&&(Y.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+z(a,b,c||(g?"border":"content"),d,f)+"px"}function B(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=ra.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&xa(d)&&(f[g]=ra.access(d,"olddisplay",u(d.nodeName)))):(e=xa(d),"none"===c&&e||ra.set(d,"olddisplay",e?c:_.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function C(a,b,c,d,e){return new C.prototype.init(a,b,c,d,e)}function D(){return setTimeout(function(){Ya=void 0}),Ya=_.now()}function E(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=wa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function F(a,b,c){for(var d,e=(cb[b]||[]).concat(cb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function G(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&xa(a),p=ra.get(a,"fxshow");c.queue||(h=_._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,_.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=_.css(a,"display"),k="none"===j?ra.get(a,"olddisplay")||u(a.nodeName):j,"inline"===k&&"none"===_.css(a,"float")&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],$a.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||_.style(a,d)}else j=void 0;if(_.isEmptyObject(m))"inline"===("none"===j?u(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=ra.access(a,"fxshow",{}),f&&(p.hidden=!o),o?_(a).show():l.done(function(){_(a).hide()}),l.done(function(){var b;ra.remove(a,"fxshow");for(b in m)_.style(a,b,m[b])});for(d in m)g=F(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function H(a,b){var c,d,e,f,g;for(c in a)if(d=_.camelCase(c),e=b[d],f=a[c],_.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=_.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function I(a,b,c){var d,e,f=0,g=bb.length,h=_.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Ya||D(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:_.extend({},b),opts:_.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Ya||D(),duration:c.duration,tweens:[],createTween:function(b,c){var d=_.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(H(k,j.opts.specialEasing);g>f;f++)if(d=bb[f].call(j,a,k,j.opts))return d;return _.map(k,F,j),_.isFunction(j.opts.start)&&j.opts.start.call(a,j),_.fx.timer(_.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function J(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(na)||[];if(_.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function K(a,b,c,d){function e(h){var i;return f[h]=!0,_.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===tb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function L(a,b){var c,d,e=_.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&_.extend(!0,a,d),a}function M(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function N(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function O(a,b,c,d){var e;if(_.isArray(b))_.each(b,function(b,e){c||yb.test(a)?d(a,e):O(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==_.type(b))d(a,b);else for(e in b)O(a+"["+e+"]",b[e],c,d)}function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}var Q=[],R=Q.slice,S=Q.concat,T=Q.push,U=Q.indexOf,V={},W=V.toString,X=V.hasOwnProperty,Y={},Z=a.document,$="2.1.4",_=function(a,b){return new _.fn.init(a,b)},aa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ba=/^-ms-/,ca=/-([\da-z])/gi,da=function(a,b){return b.toUpperCase()};_.fn=_.prototype={jquery:$,constructor:_,selector:"",length:0,toArray:function(){return R.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:R.call(this)},pushStack:function(a){var b=_.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return _.each(this,a,b)},map:function(a){return this.pushStack(_.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(R.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:T,sort:Q.sort,splice:Q.splice},_.extend=_.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||_.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(_.isPlainObject(d)||(e=_.isArray(d)))?(e?(e=!1,f=c&&_.isArray(c)?c:[]):f=c&&_.isPlainObject(c)?c:{},g[b]=_.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},_.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===_.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!_.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==_.type(a)||a.nodeType||_.isWindow(a)?!1:a.constructor&&!X.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?V[W.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=_.trim(a),a&&(1===a.indexOf("use strict")?(b=Z.createElement("script"),b.text=a,Z.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(ba,"ms-").replace(ca,da)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e,f=0,g=a.length,h=c(a);if(d){if(h)for(;g>f&&(e=b.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=b.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=b.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=b.call(a[f],f,a[f]),e===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(aa,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?_.merge(d,"string"==typeof a?[a]:a):T.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:U.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return S.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),_.isFunction(a)?(d=R.call(arguments,2),e=function(){return a.apply(b||this,d.concat(R.call(arguments)))},e.guid=a.guid=a.guid||_.guid++,e):void 0},now:Date.now,support:Y}),_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){V["[object "+b+"]"]=b.toLowerCase()});var ea=/*!
2047 * Sizzle CSS Selector Engine v2.2.0-pre
2048 * http://sizzlejs.com/
2049 *
2050 * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
2051 * Released under the MIT license
2052 * http://jquery.org/license
2053 *
2054 * Date: 2014-12-16
2055 */
2056function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o,p;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],h=b.nodeType,"string"!=typeof a||!a||1!==h&&9!==h&&11!==h)return c;if(!d&&I){if(11!==h&&(e=sa.exec(a)))if(g=e[1]){if(9===h){if(f=b.getElementById(g),!f||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return $.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&v.getElementsByClassName)return $.apply(c,b.getElementsByClassName(g)),c}if(v.qsa&&(!J||!J.test(a))){if(n=l=N,o=b,p=1!==h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=z(a),(l=b.getAttribute("id"))?n=l.replace(ua,"\\$&"):b.setAttribute("id",n),n="[id='"+n+"'] ",i=j.length;i--;)j[i]=n+m(j[i]);o=ta.test(a)&&k(b.parentNode)||b,p=j.join(",")}if(p)try{return $.apply(c,o.querySelectorAll(p)),c}catch(q){}finally{l||b.removeAttribute("id")}}}return B(a.replace(ia,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||V)-(~a.sourceIndex||V);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;
vendor: 7,171 bytes, line 2056
2056return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ia,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Y.call(i));r=q(r)}$.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+1*new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V=1<<31,W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ea=da.replace("w","w#"),fa="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ea+"))|)"+ca+"*\\]",ga=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+fa+")*)|.*)\\)|)",ha=new RegExp(ca+"+","g"),ia=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ja=new RegExp("^"+ca+"*,"+ca+"*"),ka=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),la=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),ma=new RegExp(ga),na=new RegExp("^"+ea+"$"),oa={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da.replace("w","w*")+")"),ATTR:new RegExp("^"+fa),PSEUDO:new RegExp("^"+ga),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},pa=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,ra=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,ua=/'|\\/g,va=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),wa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},xa=function(){F()};try{$.apply(X=_.call(O.childNodes),O.childNodes),X[O.childNodes.length].nodeType}catch(ya){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:O;return d!==G&&9===d.nodeType&&d.documentElement?(G=d,H=d.documentElement,c=d.defaultView,c&&c!==c.top&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),I=!y(d),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(d.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=ra.test(d.getElementsByClassName),v.getById=e(function(a){return H.appendChild(a).id=N,!d.getElementsByName||!d.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(va,wa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):v.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=ra.test(d.querySelectorAll))&&(e(function(a){H.appendChild(a).innerHTML="<a id='"+N+"'></a><select id='"+N+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+N+"-]").length||J.push("~="),a.querySelectorAll(":checked").length||J.push(":checked"),a.querySelectorAll("a#"+N+"+*").length||J.push(".#.+[+~]")}),e(function(a){var b=d.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+ca+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=ra.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",ga)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=ra.test(H.compareDocumentPosition),M=b||ra.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;
vendor: 6,132 bytes, line 2056
2056return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!v.sortDetached&&b.compareDocumentPosition(a)===c?a===d||a.ownerDocument===O&&M(O,a)?-1:b===d||b.ownerDocument===O&&M(O,b)?1:D?aa(D,a)-aa(D,b):0:4&c?-1:1)}:function(a,b){if(a===b)return E=!0,0;var c,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===d?-1:b===d?1:f?-1:h?1:D?aa(D,a)-aa(D,b):0;if(f===h)return g(a,b);for(c=a;c=c.parentNode;)i.unshift(c);for(c=b;c=c.parentNode;)j.unshift(c);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},d):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(la,"='$1']"),!(!v.matchesSelector||!I||K&&K.test(c)||J&&J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&W.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(va,wa),a[3]=(a[3]||a[4]||a[5]||"").replace(va,wa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return oa.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&ma.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(va,wa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ha," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ia,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(va,wa),function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return na.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(va,wa).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return qa.test(a.nodeName)}
vendor: 7,397 bytes, line 2056
2056,input:function(a){return pa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){(!d||(e=ja.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ka.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ia," ")}),h=h.slice(d.length));for(g in w.filter)!(e=oa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(b=(w.find.ID(g.matches[0].replace(va,wa),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=oa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(va,wa),ta.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&m(f),!a)return $.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,ta.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);_.find=ea,_.expr=ea.selectors,_.expr[":"]=_.expr.pseudos,_.unique=ea.uniqueSort,_.text=ea.getText,_.isXMLDoc=ea.isXML,_.contains=ea.contains;var fa=_.expr.match.needsContext,ga=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ha=/^.[^:#\[\.,]*$/;_.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?_.find.matchesSelector(d,a)?[d]:[]:_.find.matches(a,_.grep(b,function(a){return 1===a.nodeType}))},_.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(_(a).filter(function(){for(b=0;c>b;b++)if(_.contains(e[b],this))return!0}));for(b=0;c>b;b++)_.find(a,e[b],d);return d=this.pushStack(c>1?_.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&fa.test(a)?_(a):a||[],!1).length}});var ia,ja=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ka=_.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:ja.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||ia).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof _?b[0]:b,_.merge(this,_.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:Z,!0)),ga.test(c[1])&&_.isPlainObject(b))for(c in b)_.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=Z.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=Z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):_.isFunction(a)?"undefined"!=typeof ia.ready?ia.ready(a):a(_):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),_.makeArray(a,this))};ka.prototype=_.fn,ia=_(Z);var la=/^(?:parents|prev(?:Until|All))/,ma={children:!0,contents:!0,next:!0,prev:!0};_.extend({dir:function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&_(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),_.fn.extend({has:function(a){var b=_(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(_.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=fa.test(a)||"string"!=typeof a?_(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&_.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?_.unique(f):f)},index:function(a){return a?"string"==typeof a?U.call(_(a),this[0]):U.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(_.unique(_.merge(this.get(),_(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),_.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return _.dir(a,"parentNode")},parentsUntil:function(a,b,c){return _.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return _.dir(a,"nextSibling")},prevAll:function(a){return _.dir(a,"previousSibling")},nextUntil:function(a,b,c){return _.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return _.dir(a,"previousSibling",c)},siblings:function(a){return _.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return _.sibling(a.firstChild)},contents:function(a){return a.contentDocument||_.merge([],a.childNodes)}},function(a,b){_.fn[a]=function(c,d){var e=_.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=_.filter(d,e)),this.length>1&&(ma[a]||_.unique(e),la.test(a)&&e.reverse()),this.pushStack(e)}});var na=/\S+/g,oa={};_.Callbacks=function(a){a="string"==typeof a?oa[a]||f(a):_.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(b=a.memory&&f,c=!0,h=e||0,e=0,g=i.length,d=!0;i&&g>h;h++)if(i[h].apply(f[0],f[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,i&&(j?j.length&&k(j.shift()):b?i=[]:l.disable())},l={add:function(){if(i){var c=i.length;!function f(b){_.each(b,function(b,c){var d=_.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),d?g=i.length:b&&(e=c,k(b))}return this},remove:function(){return i&&_.each(arguments,function(a,b){for(var c;(c=_.inArray(b,i,c))>-1;)i.splice(c,1),d&&(g>
vendor: 5,121 bytes, line 2056
2056=c&&g--,h>=c&&h--)}),this},has:function(a){return a?_.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],g=0,this},disable:function(){return i=j=b=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,b||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return!i||c&&!j||(b=b||[],b=[a,b.slice?b.slice():b],d?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},_.extend({Deferred:function(a){var b=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return _.Deferred(function(c){_.each(b,function(b,f){var g=_.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&_.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?_.extend(a,d):d}},e={};return d.pipe=d.then,_.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=R.call(arguments),g=f.length,h=1!==g||a&&_.isFunction(a.promise)?g:0,i=1===h?a:_.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?R.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&_.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}});var pa;_.fn.ready=function(a){return _.ready.promise().done(a),this},_.extend({isReady:!1,readyWait:1,holdReady:function(a){a?_.readyWait++:_.ready(!0)},ready:function(a){(a===!0?--_.readyWait:_.isReady)||(_.isReady=!0,a!==!0&&--_.readyWait>0||(pa.resolveWith(Z,[_]),_.fn.triggerHandler&&(_(Z).triggerHandler("ready"),_(Z).off("ready"))))}}),_.ready.promise=function(b){return pa||(pa=_.Deferred(),"complete"===Z.readyState?setTimeout(_.ready):(Z.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1))),pa.promise(b)},_.ready.promise();var qa=_.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===_.type(c)){e=!0;for(h in c)_.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,_.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(_(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};_.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},h.uid=1,h.accepts=_.acceptData,h.prototype={key:function(a){if(!h.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=h.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,_.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(_.isEmptyObject(f))_.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,_.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{_.isArray(b)?d=b.concat(b.map(_.camelCase)):(e=_.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(na)||[])),c=d.length;for(;c--;)delete g[d[c]]}},hasData:function(a){return!_.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var ra=new h,sa=new h,ta=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ua=/([A-Z])/g;_.extend({hasData:function(a){return sa.hasData(a)||ra.hasData(a)},data:function(a,b,c){return sa.access(a,b,c)},removeData:function(a,b){sa.remove(a,b)},_data:function(a,b,c){return ra.access(a,b,c)},_removeData:function(a,b){ra.remove(a,b)}}),_.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=sa.get(f),1===f.nodeType&&!ra.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=_.camelCase(d.slice(5)),i(f,d,e[d])));ra.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){sa.set(this,a)}):qa(this,function(b){var c,d=_.camelCase(a);if(f&&void 0===b){if(c=sa.get(f,a),void 0!==c)return c;if(c=sa.get(f,d),void 0!==c)return c;if(c=i(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=sa.get(this,d);sa.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&sa.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){sa.remove(this,a)})}}),_.extend({queue:function(a,b,c){var d;
vendor: 4,189 bytes, lines 2056-2057
2056return a?(b=(b||"fx")+"queue",d=ra.get(a,b),c&&(!d||_.isArray(c)?d=ra.access(a,b,_.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=_.queue(a,b),d=c.length,e=c.shift(),f=_._queueHooks(a,b),g=function(){_.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return ra.get(a,c)||ra.access(a,c,{empty:_.Callbacks("once memory").add(function(){ra.remove(a,[b+"queue",c])})})}}),_.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?_.queue(this[0],a):void 0===b?this:this.each(function(){var c=_.queue(this,a,b);_._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&_.dequeue(this,a)})},dequeue:function(a){return this.each(function(){_.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=_.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=ra.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var va=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wa=["Top","Right","Bottom","Left"],xa=function(a,b){return a=b||a,"none"===_.css(a,"display")||!_.contains(a.ownerDocument,a)},ya=/^(?:checkbox|radio)$/i;!function(){var a=Z.createDocumentFragment(),b=a.appendChild(Z.createElement("div")),c=Z.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),Y.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var za="undefined";Y.focusinBubbles="onfocusin"in a;var Aa=/^key/,Ba=/^(?:mouse|pointer|contextmenu)|click/,Ca=/^(?:focusinfocus|focusoutblur)$/,Da=/^([^.]*)(?:\.(.+)|)$/;_.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=_.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return typeof _!==za&&_.event.triggered!==b.type?_.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(na)||[""],j=b.length;j--;)h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=_.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=_.event.special[n]||{},k=_.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&_.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),_.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=ra.hasData(a)&&ra.get(a);if(q&&(i=q.events)){for(b=(b||"").match(na)||[""],j=b.length;j--;)if(h=Da.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=_.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||_.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)_.event.remove(a,n+b[j],c,d,!0);_.isEmptyObject(i)&&(delete q.handle,ra.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||Z],n=X.call(b,"type")?b.type:b,o=X.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||Z,3!==d.nodeType&&8!==d.nodeType&&!Ca.test(n+_.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[_.expando]?b:new _.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),
2057c=null==c?[b]:_.makeArray(c,[b]),l=_.event.special[n]||{}
vendor: 4,661 bytes, line 2057
2057,e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!_.isWindow(d)){for(i=l.delegateType||n,Ca.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||Z)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(ra.get(g,"events")||{})[b.type]&&ra.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&_.acceptData(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!_.acceptData(d)||j&&_.isFunction(d[n])&&!_.isWindow(d)&&(h=d[j],h&&(d[j]=null),_.event.triggered=n,d[n](),_.event.triggered=void 0,h&&(d[j]=h)),b.result}},dispatch:function(a){a=_.event.fix(a);var b,c,d,e,f,g=[],h=R.call(arguments),i=(ra.get(this,"events")||{})[a.type]||[],j=_.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=_.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)(!a.namespace_re||a.namespace_re.test(f.namespace))&&(a.handleObj=f,a.data=f.data,d=((_.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?_(e,this).index(i)>=0:_.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||Z,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[_.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ba.test(e)?this.mouseHooks:Aa.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new _.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=Z),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==l()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&_.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return _.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=_.extend(new _.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?_.event.trigger(e,null,b):_.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},_.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},_.Event=function(a,b){return this instanceof _.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?j:k):this.type=a,b&&_.extend(this,b),this.timeStamp=a&&a.timeStamp||_.now(),void(this[_.expando]=!0)):new _.Event(a,b)},_.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=j,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=j,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=j,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 4,172 bytes, line 2057
2057,_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){_.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!_.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),Y.focusinBubbles||_.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){_.event.simulate(b,a.target,_.event.fix(a),!0)};_.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=ra.access(d,b);e||d.addEventListener(a,c,!0),ra.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=ra.access(d,b)-1;e?ra.access(d,b,e):(d.removeEventListener(a,c,!0),ra.remove(d,b))}}}),_.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=k;else if(!d)return this;return 1===e&&(f=d,d=function(a){return _().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=_.guid++)),this.each(function(){_.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,_(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=k),this.each(function(){_.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){_.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?_.event.trigger(a,b,c,!0):void 0}});var Ea=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fa=/<([\w:]+)/,Ga=/<|&#?\w+;/,Ha=/<(?:script|style|link)/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Ja=/^$|\/(?:java|ecma)script/i,Ka=/^true\/(.*)/,La=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ma={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ma.optgroup=Ma.option,Ma.tbody=Ma.tfoot=Ma.colgroup=Ma.caption=Ma.thead,Ma.th=Ma.td,_.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=_.contains(a.ownerDocument,a);if(!(Y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||_.isXMLDoc(a)))for(g=r(h),f=r(a),d=0,e=f.length;e>d;d++)s(f[d],g[d]);if(b)if(c)for(f=f||r(a),g=g||r(h),d=0,e=f.length;e>d;d++)q(f[d],g[d]);else q(a,h);return g=r(h,"script"),g.length>0&&p(g,!i&&r(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===_.type(e))_.merge(l,e.nodeType?[e]:e);else if(Ga.test(e)){for(f=f||k.appendChild(b.createElement("div")),g=(Fa.exec(e)||["",""])[1].toLowerCase(),h=Ma[g]||Ma._default,f.innerHTML=h[1]+e.replace(Ea,"<$1></$2>")+h[2],j=h[0];j--;)f=f.lastChild;_.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));for(k.textContent="",m=0;e=l[m++];)if((!d||-1===_.inArray(e,d))&&(i=_.contains(e.ownerDocument,e),f=r(k.appendChild(e),"script"),i&&p(f),c))for(j=0;e=f[j++];)Ja.test(e.type||"")&&c.push(e);return k},cleanData:function(a){for(var b,c,d,e,f=_.event.special,g=0;void 0!==(c=a[g]);g++){if(_.acceptData(c)&&(e=c[ra.expando],e&&(b=ra.cache[e]))){if(b.events)for(d in b.events)f[d]?_.event.remove(c,d):_.removeEvent(c,d,b.handle);ra.cache[e]&&delete ra.cache[e]}delete sa.cache[c[sa.expando]]}}}),_.fn.extend({text:function(a){return qa(this,function(a){return void 0===a?_.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if
vendor: 10,143 bytes, line 2057
2057(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?_.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||_.cleanData(r(c)),c.parentNode&&(b&&_.contains(c.ownerDocument,c)&&p(r(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(_.cleanData(r(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return _.clone(this,a,b)})},html:function(a){return qa(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Ha.test(a)&&!Ma[(Fa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ea,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(_.cleanData(r(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,_.cleanData(r(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=S.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],p=_.isFunction(m);if(p||j>1&&"string"==typeof m&&!Y.checkClone&&Ia.test(m))return this.each(function(c){var d=k.eq(c);p&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(c=_.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(e=_.map(r(c,"script"),n),f=e.length;j>i;i++)g=c,i!==l&&(g=_.clone(g,!0,!0),f&&_.merge(e,r(g,"script"))),b.call(this[i],g,i);if(f)for(h=e[e.length-1].ownerDocument,_.map(e,o),i=0;f>i;i++)g=e[i],Ja.test(g.type||"")&&!ra.access(g,"globalEval")&&_.contains(h,g)&&(g.src?_._evalUrl&&_._evalUrl(g.src):_.globalEval(g.textContent.replace(La,"")))}return this}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){_.fn[a]=function(a){for(var c,d=[],e=_(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),_(e[g])[b](c),T.apply(d,c.get());return this.pushStack(d)}});var Na,Oa={},Pa=/^margin/,Qa=new RegExp("^("+va+")(?!px)[a-z%]+$","i"),Ra=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};!function(){function b(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",g.innerHTML="",e.appendChild(f);var b=a.getComputedStyle(g,null);c="1%"!==b.top,d="4px"===b.width,e.removeChild(f)}var c,d,e=Z.documentElement,f=Z.createElement("div"),g=Z.createElement("div");g.style&&(g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",f.appendChild(g),a.getComputedStyle&&_.extend(Y,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},reliableMarginRight:function(){var b,c=g.appendChild(Z.createElement("div"));return c.style.cssText=g.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),g.removeChild(c),b}}))}(),_.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Sa=/^(none|table(?!-c[ea]).+)/,Ta=new RegExp("^("+va+")(.*)$","i"),Ua=new RegExp("^([+-])=("+va+")","i"),Va={position:"absolute",visibility:"hidden",display:"block"},Wa={letterSpacing:"0",fontWeight:"400"},Xa=["Webkit","O","Moz","ms"];_.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=v(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=_.camelCase(b),i=a.style;return b=_.cssProps[h]||(_.cssProps[h]=x(i,h)),g=_.cssHooks[b]||_.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ua.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(_.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||_.cssNumber[h]||(c+="px"),Y.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=_.camelCase(b);return b=_.cssProps[h]||(_.cssProps[h]=x(a.style,h)),g=_.cssHooks[b]||_.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=v(a,b,d)),"normal"===e&&b in Wa&&(e=Wa[b]),""===c||c?(f=parseFloat(e),c===!0||_.isNumeric(f)?f||0:e):e}}),_.each(["height","width"],function(a,b){_.cssHooks[b]={get:function(a,c,d){return c?Sa.test(_.css(a,"display"))&&0===a.offsetWidth?_.swap(a,Va,function(){return A(a,b,d)}):A(a,b,d):void 0},set:function(a,c,d){var e=d&&Ra(a);return y(a,c,d?z(a,b,d,"border-box"===_.css(a,"boxSizing",!1,e),e):0)}}}),_.cssHooks.marginRight=w(Y.reliableMarginRight,function(a,b){return b?_.swap(a,{display:"inline-block"},v,[a,"marginRight"]):void 0}),_.each({margin:"",padding:"",border:"Width"},function(a,b){_.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+wa[d]+b]=f[d]||f[d-2]||f[0];return e}},Pa.test(a)||(_.cssHooks[a+b].set=y)}),_.fn.extend({css:function(a,b){return qa(this,function(a,b,c){var d,e,f={},g=0;if(_.isArray(b)){for(d=Ra(a),e=b.length;e>g;g++)f[b[g]]=_.css(a,b[g],!1,d);return f}return void 0!==c?_.style(a,b,c):_.css(a,b)},a,b,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){xa(this)?_(this).show():_(this).hide()})}}),_.Tween=C,C.prototype={constructor:C,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(_.cssNumber[c]?"":"px")},cur:function(){var a=C.propHooks[this.prop];return a&&a.get?a.get(this):C.propHooks._default.get(this)},run:function(a){var b,c=C.propHooks[this.prop];return this.options.duration?this.pos=b=_.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):C.propHooks._default.set(this),this}},C.prototype.init.prototype=C.prototype,C.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=_.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){_.fx.step[a.prop]?_.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[_.cssProps[a.prop]]||_.cssHooks[a.prop])?_.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},C.propHooks.scrollTop=C.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},_.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},_.fx=C.prototype.init,_.fx.step={};var Ya,Za,$a=/^(?:toggle|show|hide)$/,_a=new RegExp("^(?:([+-])=|)("+va+")([a-z%]*)$","i"),ab=/queueHooks$/,bb=[G],cb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=_a.exec(b),f=e&&e[3]||(_.cssNumber[a]?"":"px"),g=(_.cssNumber[a]||"px"!==f&&+d)&&_a.exec(_.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,_.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};_.Animation=_.extend(I,{tweener:function(a,b){_.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],cb[c]=cb[c]||[],cb[c].unshift(b)},prefilter:function(a,b){b?bb.unshift(a):bb.push(a)}}),_.speed=function(a,b,c){var d=a&&"object"==typeof a?_.extend({},a):{complete:c||!c&&b||_.isFunction(a)&&a,duration:a,easing:c&&b||b&&!_.isFunction(b)&&b};return d.duration=_.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in _.fx.speeds?_.fx.speeds[d.duration]:_.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){_.isFunction(d.old)&&d.old.call(this),d.queue&&_.dequeue(this,d.queue)},d},_.fn.extend({fadeTo:function(a,b,c,d){return this.filter(xa).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=_.isEmptyObject(a),f=_.speed(b,c,d),g=function(){var b=I(this,_.extend({},a),f);(e||ra.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=_.timers,g=ra.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&_.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=ra.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=_.timers,g=d?d.length:0;for(c.finish=!0,_.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),_.each(["toggle","show","hide"],function(a,b){var c=_.fn[b];
vendor: 6,723 bytes, line 2057
2057_.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(E(b,!0),a,d,e)}}),_.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){_.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),_.timers=[],_.fx.tick=function(){var a,b=0,c=_.timers;for(Ya=_.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||_.fx.stop(),Ya=void 0},_.fx.timer=function(a){_.timers.push(a),a()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Za||(Za=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Za),Za=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(a,b){return a=_.fx?_.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=Z.createElement("input"),b=Z.createElement("select"),c=b.appendChild(Z.createElement("option"));a.type="checkbox",Y.checkOn=""!==a.value,Y.optSelected=c.selected,b.disabled=!0,Y.optDisabled=!c.disabled,a=Z.createElement("input"),a.value="t",a.type="radio",Y.radioValue="t"===a.value}();var db,eb,fb=_.expr.attrHandle;_.fn.extend({attr:function(a,b){return qa(this,_.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){_.removeAttr(this,a)})}}),_.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===za?_.prop(a,b,c):(1===f&&_.isXMLDoc(a)||(b=b.toLowerCase(),d=_.attrHooks[b]||(_.expr.match.bool.test(b)?eb:db)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=_.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void _.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(na);if(f&&1===a.nodeType)for(;c=f[e++];)d=_.propFix[c]||c,_.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!Y.radioValue&&"radio"===b&&_.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),eb={set:function(a,b,c){return b===!1?_.removeAttr(a,c):a.setAttribute(c,c),c}},_.each(_.expr.match.bool.source.match(/\w+/g),function(a,b){var c=fb[b]||_.find.attr;fb[b]=function(a,b,d){var e,f;return d||(f=fb[b],fb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,fb[b]=f),e}});var gb=/^(?:input|select|textarea|button)$/i;_.fn.extend({prop:function(a,b){return qa(this,_.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[_.propFix[a]||a]})}}),_.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!_.isXMLDoc(a),f&&(b=_.propFix[b]||b,e=_.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||gb.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),Y.optSelected||(_.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});var hb=/[\t\r\n\f]/g;_.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=_.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(na)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hb," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?_.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(_.isFunction(a)?function(c){_(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c)for(var b,d=0,e=_(this),f=a.match(na)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(c===za||"boolean"===c)&&(this.className&&ra.set(this,"__className__",this.className),this.className=this.className||a===!1?"":ra.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(hb," ").indexOf(b)>=0)return!0;return!1}});var ib=/\r/g;_.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=_.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,_(this).val()):a,null==e?e="":"number"==typeof e?e+="":_.isArray(e)&&(e=_.map(e,function(a){return null==a?"":a+""})),b=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=_.valHooks[e.type]||_.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ib,""):null==c?"":c)}}}),_.extend({valHooks:{option:{get:function(a){var b=_.find.attr(a,"value");return null!=b?b:_.trim(_.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(Y.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&_.nodeName(c.parentNode,"optgroup"))){if(b=_(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=_.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=_.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(a,b){return _.isArray(b)?a.checked=_.inArray(_(a).val(),b)>=0:void 0}},Y.checkOn||(_.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),_.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){_.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}
vendor: 12,077 bytes, lines 2057-2059
2057}),_.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var jb=_.now(),kb=/\?/;_.parseJSON=function(a){return JSON.parse(a+"")},_.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&_.error("Invalid XML: "+a),b};var lb=/#.*$/,mb=/([?&])_=[^&]*/,nb=/^(.*?):[ \t]*([^\r\n]*)$/gm,ob=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,pb=/^(?:GET|HEAD)$/,qb=/^\/\//,rb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,sb={},tb={},ub="*/".concat("*"),vb=a.location.href,wb=rb.exec(vb.toLowerCase())||[];_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vb,type:"GET",isLocal:ob.test(wb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?L(L(a,_.ajaxSettings),b):L(_.ajaxSettings,a)},ajaxPrefilter:J(sb),ajaxTransport:J(tb),ajax:function(a,b){function c(a,b,c,g){var i,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),d=void 0,f=g||"",v.readyState=a>0?4:0,i=a>=200&&300>a||304===a,c&&(s=M(l,v,c)),s=N(l,s,v,i),i?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(_.lastModified[e]=u),u=v.getResponseHeader("etag"),u&&(_.etag[e]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,i=!r)):(r=w,(a||!w)&&(w="error",0>a&&(a=0))),v.status=a,v.statusText=(b||w)+"",i?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,j&&n.trigger(i?"ajaxSuccess":"ajaxError",[v,l,i?k:r]),p.fireWith(m,[v,w]),j&&(n.trigger("ajaxComplete",[v,l]),--_.active||_.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=_.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?_(m):_.event,o=_.Deferred(),p=_.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!g)for(g={};b=nb.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return d&&d.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||vb)+"").replace(lb,"").replace(qb,wb[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=_.trim(l.dataType||"*").toLowerCase().match(na)||[""],null==l.crossDomain&&(i=rb.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]===wb[1]&&i[2]===wb[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(wb[3]||("http:"===wb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=_.param(l.data,l.traditional)),K(sb,l,b,v),2===t)return v;j=_.event&&l.global,j&&0===_.active++&&_.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!pb.test(l.type),e=l.url,l.hasContent||(l.data&&(e=l.url+=(kb.test(e)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=mb.test(e)?e.replace(mb,"$1_="+jb++):e+(kb.test(e)?"&":"?")+"_="+jb++)),l.ifModified&&(_.lastModified[e]&&v.setRequestHeader("If-Modified-Since",_.lastModified[e]),_.etag[e]&&v.setRequestHeader("If-None-Match",_.etag[e])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+ub+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)v.setRequestHeader(k,l.headers[k]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(k in{success:1,error:1,complete:1})v[k](l[k]);if(d=K(tb,l,b,v)){v.readyState=1,j&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,d.send(r,c)}catch(w){if(!(2>t))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return _.get(a,b,c,"json")},getScript:function(a,b){return _.get(a,void 0,b,"script")}}),_.each(["get","post"],function(a,b){_[b]=function(a,c,d,e){return _.isFunction(c)&&(e=e||d,d=c,c=void 0),_.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),_._evalUrl=function(a){return _.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},_.fn.extend({wrapAll:function(a){var b;return _.isFunction(a)?this.each(function(b){_(this).wrapAll(a.call(this,b))}):(this[0]&&(b=_(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(_.isFunction(a)?function(b){_(this).wrapInner(a.call(this,b))}:function(){var b=_(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=_.isFunction(a);return this.each(function(c){_(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}}),_.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},_.expr.filters.visible=function(a){return!_.expr.filters.hidden(a)};var xb=/%20/g,yb=/\[\]$/,zb=/\r?\n/g,Ab=/^(?:submit|button|image|reset|file)$/i,Bb=/^(?:input|select|textarea|keygen)/i;_.param=function(a,b){var c,d=[],e=function(a,b){b=_.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b);
2058
2059};if(void 0===b&&(b=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(a)||a.jquery&&!_.isPlainObject(a))_.each(a,function(){e(this.name,this.value)});else for(c in a)O(c,a[c],b,e);return d.join("&").replace(xb,"+")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=_.prop(this,"elements");return a?_.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!_(this).is(":disabled")&&Bb.test(this.nodeName)&&!Ab.test(a)&&(this.checked||!ya.test(a))}).map(function(a,b){var c=_(this).val();return null==c?null:_.isArray(c)?_.map(c,function(a){return{name:b.name,value:a.replace(zb,"\r\n")}}):{name:b.name,value:c.replace(zb,"\r\n")}}).get()}}),_.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Cb=0,Db={},Eb={0:200,1223:204},Fb=_.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Db)Db[a]()}),Y.cors=!!Fb&&"withCredentials"in Fb,Y.ajax=Fb=!!Fb,_.ajaxTransport(function(a){var b;return Y.cors||Fb&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Db[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Eb[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Db[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return _.globalEval(a),a}}}),_.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),_.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=_("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),Z.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Gb=[],Hb=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gb.pop()||_.expando+"_"+jb++;return this[a]=!0,a}}),_.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hb.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=_.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hb,"$1"+e):b.jsonp!==!1&&(b.url+=(kb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||_.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gb.push(e)),g&&_.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),_.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||Z;var d=ga.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=_.buildFragment([a],b,e),e&&e.length&&_(e).remove(),_.merge([],d.childNodes))};var Ib=_.fn.load;_.fn.load=function(a,b,c){if("string"!=typeof a&&Ib)return Ib.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=_.trim(a.slice(h)),a=a.slice(0,h)),_.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&_.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?_("<div>").append(_.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){_.fn[b]=function(a){return this.on(b,a)}}),_.expr.filters.animated=function(a){return _.grep(_.timers,function(b){return a===b.elem}).length};var Jb=a.document.documentElement;_.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=_.css(a,"position"),l=_(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=_.css(a,"top"),i=_.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),_.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},_.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){_.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,_.contains(b,d)?(typeof d.getBoundingClientRect!==za&&(e=d.getBoundingClientRect()),c=P(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===_.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),_.nodeName(a[0],"html")||(d=a.offset()),d.top+=_.css(a[0],"borderTopWidth",!0),d.left+=_.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-_.css(c,"marginTop",!0),left:b.left-d.left-_.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Jb;a&&!_.nodeName(a,"html")&&"static"===_.css(a,"position");)a=a.offsetParent;return a||Jb})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;
2059_.fn[b]=function(e){return qa(this,function(b,e,f){var g=P(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),_.each(["top","left"],function(a,b){_.cssHooks[b]=w(Y.pixelPosition,function(a,c){return c?(c=v(a,b),Qa.test(c)?_(a).position()[b]+"px":c):void 0})}),_.each({Height:"height",Width:"width"},function(a,b){_.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){_.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return qa(this,function(b,c,d){var e;return _.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?_.css(b,c,g):_.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),_.fn.size=function(){return this.length},_.fn.andSelf=_.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Kb=a.jQuery,Lb=a.$;return _.noConflict=function(b){return a.$===_&&(a.$=Lb),b&&a.jQuery===_&&(a.jQuery=Kb),_},typeof b===za&&(a.jQuery=a.$=_),_});
2060
2061var CzBox=CzBox||{};CzBox.lang={textImage:"Image",textOf:"/",textPrev:"«",textNext:"»",textClose:"&times;",textLoading:"..."};CzBox.nodes={};CzBox._created=false;CzBox.enableRels=["czbox"];CzBox.currentRel="";CzBox.currentIndex=0;CzBox.create=function(){if(CzBox._created===false){CzBox._created=true;CzBox.modifyDom();CzBox.init();var b=CzBox.enableRels.join("|");b="("+b+")(\\[(.+)\\])?";var a=[];for(var c=0;c<CzBox.enableRels.length;c++){a.push("a[rel*="+CzBox.enableRels[c]+"]")}CzBox.scanDocument(a.join(", "),new RegExp(b))}};CzBox.modifyDom=function(){if(!($("#czbox-box").length)){$("body").first().append('<div id="czbox-box"><div id="czbox-background"></div><div id="czbox-image-box"><div id="czbox-description"></div><div id="czbox-info-bar"><span class="czbox-text">'+this.lang.textImage+'</span> <span id="czbox-image-number"></span> <span class="czbox-text">'+this.lang.textOf+'</span> <span id="czbox-images-count"></span> </div><div id="czbox-loading"><span class="czbox-text">'+this.lang.textLoading+'</span></div><div id="czbox-image-wrapper"><img id="czbox-image" alt=""></div><a id="czbox-btn-prev" href="#"><span class="czbox-text">'+this.lang.textPrev+'</span></a><a id="czbox-btn-next" href="#"><span class="czbox-text">'+this.lang.textNext+'</span></a><a id="czbox-btn-close" href="#"><span class="czbox-text">'+this.lang.textClose+"</span></a></div></div>")}};CzBox.init=function(){$("#czbox-btn-close, #czbox-background").on("click",function(){CzBox.close();return false});$("#czbox-btn-next").on("click",function(){CzBox.next();return false});$("#czbox-btn-prev").on("click",function(){CzBox.prev();return false});$("body").on("keydown",function(b){if($("#czbox-box").hasClass("czbox-open")){var a;if(!b){b=window.event}if(b.keyCode){a=b.keyCode}else{if(b.which){a=b.which}}switch(a){case 27:CzBox.close();return false;case 13:case 39:case 40:CzBox.next();return false;case 37:case 38:CzBox.prev();return false}}});if(window.addEventListener){window.addEventListener("DOMMouseScroll",CzBox.handlerWheel,false)}window.onmousewheel=document.onmousewheel=CzBox.handlerWheel;$("#czbox-image").on("load",function(){$("#czbox-loading").css("display","none");$(this).parent().css("visibility","visible").animate({opacity:1},600)})};CzBox.scanDocument=function(a,b){$(a).each(function(e){var d=$(this);var c=d.attr("rel");c=CzBox.parseRelAttr(c,b);if(c===""){c="i_"+e}else{c="c_"+c}if(typeof CzBox.nodes[c]==="undefined"){CzBox.nodes[c]=[]}CzBox.nodes[c].push(d);d.data("czbox-rel",c);d.data("czbox-index",CzBox.nodes[c].length-1);d.on("click",function(){CzBox.open(this);return false})})};CzBox.open=function(b){if(b.href!==$("#czbox-image").attr("src")){$("#czbox-box").addClass("czbox-open");$("#czbox-loading").css("display","block");$("#czbox-image-wrapper").css("opacity",0).css("visibility","hidden");var a=b.href;if(typeof(dataUrl=$(b).data("czbox-href"))==="string"){a=dataUrl}$("#czbox-image").attr("src",a);CzBox.update(b)}};CzBox.close=function(){$("#czbox-box").removeClass("czbox-open");$("#czbox-image").attr("src","");$("#czbox-description").hide()};CzBox.next=function(){if(CzBox.currentRel!==""){if(CzBox.currentIndex<(CzBox.nodes[CzBox.currentRel].length-1)){CzBox.open(CzBox.nodes[CzBox.currentRel][CzBox.currentIndex+1].get(0))}}};CzBox.prev=function(){if(CzBox.currentRel!==""){if(CzBox.currentIndex>0){CzBox.open(CzBox.nodes[CzBox.currentRel][CzBox.currentIndex-1].get(0))}}};CzBox.update=function(c){c=$(c);var a=c.data("czbox-rel");var b=parseInt(c.data("czbox-index"),10);if(CzBox.nodes[a].length<2){$("#czbox-info-bar").hide();$("#czbox-btn-next").hide();$("#czbox-btn-prev").hide()}else{$("#czbox-info-bar").show();$("#czbox-image-number").html(b+1);$("#czbox-images-count").html(CzBox.nodes[a].length);if(b===0){$("#czbox-btn-prev").hide()}else{$("#czbox-btn-prev").show()}if(b===(CzBox.nodes[a].length-1)){$("#czbox-btn-next").hide()}else{$("#czbox-btn-next").show()}}var d=CzBox.getDescription(c);if(d!==""){$("#czbox-description").html(d).show()}else{$("#czbox-description").hide()}CzBox.currentRel=a;CzBox.currentIndex=b};CzBox.parseRelAttr=function(b,c){var a=b.match(c);if(a===null){return""}a=a[3];if(typeof a==="undefined"){return""}return a};CzBox.getDescription=function(a){var c="";var b=a.children("img").first();c=b.attr("title");if(c){return c}c=a.attr("title");if(c){return c}c=b.attr("alt");if(c){return c}return""};
2061CzBox.handlerWheel=function(a){if($("#czbox-box").hasClass("czbox-open")){a=a?a:window.event;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.cancelBubble=true;a.cancel=true;a.returnValue=false;return false}};CzBox.langCs=function(){CzBox.lang.textImage="Obrázek";CzBox.lang.textOf="ze";CzBox.lang.textPrev="Předchozí";CzBox.lang.textNext="Další";CzBox.lang.textClose="Zavřít";CzBox.lang.textLoading="Načítám"};$(window).load(CzBox.create);
2062/*
2063 *
2064 * Fonctions globales au site
2065 *
2066 */
2067
2068/*
2069 *
2070 * Ajoute les différentes propriétés aux liens
2071 */
2072$(document).ready(function () {
2073	var base = $('base')[0].href;
2074	// Blank sur les liens externes
2075	$('a[href^=http]:not([href^="' + base + '"])').prop('target', '_blank').prop('rel', 'noopener');
2076	// Gérer les liens retour
2077	$(document).on('click', 'a.retour', function () {
2078		if (document.referrer.indexOf(location.protocol + '//' + location.hostname) == 0) {
2079			history.back();
2080			return false;
2081		}
2082	});
2083	// Popup foundation
2084	$('body').append('<div class="reveal-modal" data-reveal id="content-popup" style="display:none"></div>');
2085	$('a[target=popup]:not([href*=upload])').on('click', function() {
2086		$('#content-popup').foundation('reveal', 'open', addtpl(this.href,'contenu'));
2087		return false;
2088	});
2089	$(document).on('opened.fndtn.reveal', '[data-reveal]', function () {
2090		$(this).append('<a class="close-reveal-modal">&#215;</a>');
2091	});
2092	// Types et taille sur les fichiers
2093	/*
2094	var re = /\.(pdf|doc|xls|odt|ods|ppt|pps)/;
2095	$('#preview a[href*=upload]:not([class*=noauto])').each(function (i, a) {
2096		if (re.test(a.href)) {
2097			$.ajax({
2098				type: "HEAD",
2099				async: true,
2100				url: a.href,
2101				success: function (message, text, response) {
2102					if (response.status == 200) {
2103						var size = response.getResponseHeader('Content-Length');
2104						if (size > 0) {
2105                            var append = ' (';
2106							append += Math.round(size / 1024) + 'Ko';
2107                            append += ')';
2108						}
2109						$(a).append(append);
2110					}
2111				}
2112			});
2113		}
2114	});
2115	*/
2116});
2117
2118
2119/**
2120 * Permet d'ajouter un tpl à l'url passée en paramètre
2121 * @param  url Url à modifier
2122 * @param  tpl Nom du template à ajouter
2123 * @returns string url modifiée
2124 */
2125function addtpl(url, tpl) {
2126	url = url.replace(/#.*/, '');
2127	if (url.indexOf('tpl=') != -1)
2128		return url.replace(/tpl=[^&]+/, 'tpl=' + tpl);
2129	if (url.indexOf('?') == -1)
2130		return url + '?tpl=' + tpl;
2131	else
2132		return url + '&tpl=' + tpl;
2133}
2134
2135/*
2136 *
2137 * Ajout du plugin clearing
2138 *
2139 */
2140$(document).ready(function () {
2141	$('a[href$="jpg"], a[href$="jpeg"], a[href$="png"], a[href$="gif"]').each(function (i, item) {
2142		if ($(item).parents('.clearing-thumbs').length == 0) {
2143			$(item).attr('rel', 'czbox');
2144		}
2145	});
2146	$('a.print, .print a').click(function (e) {
2147		window.open(addtpl(this.href, 'print'));
2148		return false;
2149	});
2150	$('a.confirm').on('click', function (ev) {
2151		if (!confirm($(this).prop('title') + '\n\nVous confirmez ?')) {
2152			ev.preventDefault();
2153		}
2154	});
2155	Foundation.utils.image_loaded($('#preview img:not([class*=noauto])'), function (images) {
2156		images.each(function (index, img) {
2157			img = $(img);
2158			alignement = img.hasClass('gauche') ? 'gauche' : (img.hasClass('droite') ? 'droite' : (img.hasClass('centre') ? 'centre' : ''));
2159			if (!alignement) {
2160				switch (img.prop('align')) {
2161					case 'left':
2162						alignement = 'gauche';
2163						break;
2164					case 'right':
2165						alignement = 'droite';
2166						break;
2167					default:
2168						alignement = 'centre';
2169				}
2170			} else {
2171				img.removeClass(alignement);
2172			}
2173			var caption = '';
2174			if (img.prop('title')) {
2175				caption = $('<figcaption/>');
2176				caption.html(img.prop('title'));
2177			}
2178			var width = img.width();
2179
2180			var fig = img.parents('figure');
2181			if (fig.length == 0) {
2182				fig = $('<figure class="th ' + alignement + '">');
2183				fig.append(img.clone());
2184				fig.append(caption);
2185				fig.css('max-width', width);
2186				img.replaceWith(fig);
2187			} else {
2188				$(fig).addClass('th ' + alignement).append(caption).css('max-width', width);
2189			}
2190		});
2191	});
2192
2193});
2194
2195/**
2196 *
2197 * Gestion des formulaires
2198 *
2199 */
2200var validation = []
2201function setupForms() {
2202	jQuery('body').on('change', 'form input, form select, form textarea', function (ev) {
2203		var formId = this.form.id;
2204		var field = $(this);
2205		var fieldId = field.attr('id');
2206		var re = /^=.+$/; // Confirmation du password
2207		if (validation[formId] && validation[formId][fieldId]) {
2208			var fieldIsValid = true;
2209			$(validation[formId][fieldId]).each(function (index, pattern) {
2210				var value = field.val();
2211				if (value) {
2212					if (re.test(pattern)) { // Confirmation du password
2213						var fieldToMatch = $('#' + pattern.substr(1));
2214						if (field.val() != fieldToMatch.val()) {
2215							fieldIsValid = false;
2216							return false;
2217						}
2218					} else {
2219						pattern = new RegExp(pattern);
2220						if (field.val().match(pattern) === null) {
2221							fieldIsValid = false;
2222							return false;
2223						}
2224					}
2225				} else if (field.attr('required')) {
2226					fieldIsValid = false;
2227					return false;
2228				}
2229			});
2230			if (fieldIsValid) {
2231				field.parent('div').removeClass('error');
2232				field.removeClass('error');
2233			} else {
2234				field.parent('div').addClass('error');
2235				field.addClass('error');
2236			}
2237		}
2238	});
2239	$('body').on('submit', 'form', function (ev) {
2240		$(this.elements).trigger('change');
2241		return $('form fieldset > div.error').length > 0 ? false : true;
2242	});
2243}
2244
2245(function(f,h,j,b){var d=function(n){var m=n.length;var l=f("head");while(m--){if(l.has("."+n[m]).length===0){l.append('<meta class="'+n[m]+'" />')}}};d(["foundation-mq-small","foundation-mq-small-only","foundation-mq-medium","foundation-mq-medium-only","foundation-mq-large","foundation-mq-large-only","foundation-mq-xlarge","foundation-mq-xlarge-only","foundation-mq-xxlarge","foundation-data-attribute-namespace"]);f(function(){if(typeof FastClick!=="undefined"){if(typeof j.body!=="undefined"){FastClick.attach(j.body)}}});var e=function(m,n){if(typeof m==="string"){if(n){var l;if(n.jquery){l=n[0];if(!l){return n}}else{l=n}return f(l.querySelectorAll(m))}return f(j.querySelectorAll(m))}return f(m,n)};var k=function(m){var l=[];if(!m){l.push("data")}if(this.namespace.length>0){l.push(this.namespace)}l.push(this.name);return l.join("-")};var g=function(o){var n=o.split("-"),m=n.length,l=[];while(m--){if(m!==0){l.push(n[m])}else{if(this.namespace.length>0){l.push(this.namespace,n[m])}else{l.push(n[m])}}}return l.reverse().join("-")};var a=function(o,m){var l=this,n=function(){var q=e(this),p=!q.data(l.attr_name(true)+"-init");q.data(l.attr_name(true)+"-init",f.extend({},l.settings,(m||o),l.data_options(q)));if(p){l.events(this)}};
2245if(e(this.scope).is("["+this.attr_name()+"]")){n.call(this.scope)}else{e("["+this.attr_name()+"]",this.scope).each(n)}if(typeof o==="string"){return this[o].call(this,m)}};var c=function(n,o){function l(){o(n[0])}function m(){this.one("load",l);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var q=this.attr("src"),p=q.match(/\?/)?"&":"?";p+="random="+(new Date()).getTime();this.attr("src",q+p)}}if(!n.attr("src")){l();return}if(n[0].complete||n[0].readyState===4){l()}else{m.call(n)}};
2246/* matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
2247h.matchMedia||(h.matchMedia=function(){var m=(h.styleMedia||h.media);if(!m){var n=j.createElement("style"),l=j.getElementsByTagName("script")[0],o=null;n.type="text/css";n.id="matchmediajs-test";l.parentNode.insertBefore(n,l);o=("getComputedStyle" in h)&&h.getComputedStyle(n,null)||n.currentStyle;m={matchMedium:function(p){var q="@media "+p+"{ #matchmediajs-test { width: 1px; } }";if(n.styleSheet){n.styleSheet.cssText=q}else{n.textContent=q}return o.width==="1px"}}}return function(p){return{matches:m.matchMedium(p||"all"),media:p||"all"}}}());(function(o){var l,n=0,s=["webkit","moz"],r=h.requestAnimationFrame,q=h.cancelAnimationFrame,m="undefined"!==typeof o.fx;for(;n<s.length&&!r;n++){r=h[s[n]+"RequestAnimationFrame"];q=q||h[s[n]+"CancelAnimationFrame"]||h[s[n]+"CancelRequestAnimationFrame"]}function p(){if(l){r(p);if(m){o.fx.tick()}}}if(r){h.requestAnimationFrame=r;h.cancelAnimationFrame=q;if(m){o.fx.timer=function(t){if(t()&&o.timers.push(t)&&!l){l=true;p()}};o.fx.stop=function(){l=false}}}else{h.requestAnimationFrame=function(w){var t=new Date().getTime(),u=Math.max(0,16-(t-n)),v=h.setTimeout(function(){w(t+u)},u);n=t+u;return v};h.cancelAnimationFrame=function(t){clearTimeout(t)}}}(f));function i(l){if(typeof l==="string"||l instanceof String){l=l.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")}return l}h.Foundation={name:"Foundation",version:"5.5.2",media_queries:{small:e(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"small-only":e(".foundation-mq-small-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:e(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"medium-only":e(".foundation-mq-medium-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:e(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"large-only":e(".foundation-mq-large-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:e(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),"xlarge-only":e(".foundation-mq-xlarge-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:e(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:f("<style></style>").appendTo("head")[0].sheet,global:{namespace:b},init:function(p,m,s,o,l){var n=[p,s,o,l],q=[];this.rtl=/rtl/i.test(e("html").attr("dir"));this.scope=p||this.scope;this.set_namespace();if(m&&typeof m==="string"&&!/reflow/i.test(m)){if(this.libs.hasOwnProperty(m)){q.push(this.init_lib(m,n))}}else{for(var r in this.libs){q.push(this.init_lib(r,m))}}e(h).load(function(){e(h).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider")});return p},init_lib:function(m,l){if(this.libs.hasOwnProperty(m)){this.patch(this.libs[m]);if(l&&l.hasOwnProperty(m)){if(typeof this.libs[m].settings!=="undefined"){f.extend(true,this.libs[m].settings,l[m])}else{if(typeof this.libs[m].defaults!=="undefined"){f.extend(true,this.libs[m].defaults,l[m])}}return this.libs[m].init.apply(this.libs[m],[this.scope,l[m]])}l=l instanceof Array?l:new Array(l);return this.libs[m].init.apply(this.libs[m],l)}return function(){}},patch:function(l){l.scope=this.scope;l.namespace=this.global.namespace;l.rtl=this.rtl;l.data_options=this.utils.data_options;l.attr_name=k;l.add_namespace=g;l.bindings=a;l.S=this.utils.S},inherit:function(o,m){var l=m.split(" "),n=l.length;while(n--){if(this.utils.hasOwnProperty(l[n])){o[l[n]]=this.utils[l[n]]}}},set_namespace:function(){var l=(this.global.namespace===b)?f(".foun
2247dation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=(l===b||/false/i.test(l))?"":l},libs:{},utils:{S:e,throttle:function(m,l){var n=null;return function(){var p=this,o=arguments;if(n==null){n=setTimeout(function(){m.apply(p,o);n=null},l)}}},debounce:function(o,n,m){var p,l;return function(){var t=this,s=arguments;var r=function(){p=null;if(!m){l=o.apply(t,s)}};var q=m&&!p;clearTimeout(p);p=setTimeout(r,n);if(q){l=o.apply(t,s)}return l}},data_options:function(n,q){q=q||"options";var l={},t,m,v,s=function(w){var p=Foundation.global.namespace;if(p.length>0){return w.data(p+"-"+q)}return w.data(q)};var r=s(n);if(typeof r==="object"){return r}v=(r||":").split(";");t=v.length;function u(p){return !isNaN(p-0)&&p!==null&&p!==""&&p!==false&&p!==true}function o(p){if(typeof p==="string"){return f.trim(p)}return p}while(t--){m=v[t].split(":");m=[m[0],m.slice(1).join(":")];if(/true/i.test(m[1])){m[1]=true}if(/false/i.test(m[1])){m[1]=false}if(u(m[1])){if(m[1].indexOf(".")===-1){m[1]=parseInt(m[1],10)}else{m[1]=parseFloat(m[1])}}if(m.length===2&&m[0].length>0){l[o(m[0])]=o(m[1])}}return l},register_media:function(m,l){if(Foundation.media_queries[m]===b){f("head").append('<meta class="'+l+'"/>');Foundation.media_queries[m]=i(f("."+l).css("font-family"))}},add_custom_rule:function(n,m){if(m===b&&Foundation.stylesheet){Foundation.stylesheet.insertRule(n,Foundation.stylesheet.cssRules.length)}else{var l=Foundation.media_queries[m];if(l!==b){Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[m]+"{ "+n+" }",Foundation.stylesheet.cssRules.length)}}},image_loaded:function(l,p){var m=this,n=l.length;function o(q){var s=q.length;for(var r=s-1;r>=0;r--){if(q.attr("height")===b){return false}}return true}if(n===0||o(l)){p(l)}l.each(function(){c(m.S(this),function(){n-=1;if(n===0){p(l)}})})},random_str:function(){if(!this.fidx){this.fidx=0}this.prefix=this.prefix||[(this.name||"F"),(+new Date).toString(36)].join("-");return this.prefix+(this.fidx++).toString(36)},match:function(l){return h.matchMedia(l).matches},is_small_up:function(){return this.match(Foundation.media_queries.small)},is_medium_up:function(){return this.match(Foundation.media_queries.medium)},is_large_up:function(){return this.match(Foundation.media_queries.large)},is_xlarge_up:function(){return this.match(Foundation.media_queries.xlarge)},is_xxlarge_up:function(){return this.match(Foundation.media_queries.xxlarge)},is_small_only:function(){return !this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_medium_only:function(){return this.is_medium_up()&&!this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_large_only:function(){return this.is_medium_up()&&this.is_large_up()&&!this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&!this.is_xxlarge_up()},is_xxlarge_only:function(){return this.is_medium_up()&&this.is_large_up()&&this.is_xlarge_up()&&this.is_xxlarge_up()}}};f.fn.foundation=function(){var l=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(l));return this})}}(jQuery,window,window.document));
2248(function(c,b,a,d){Foundation.libs.topbar={name:"topbar",version:"5.5.2",settings:{index:0,start_offset:0,sticky_class:"sticky",custom_back_text:true,back_text:"Back",mobile_show_parent_link:true,is_hover:true,scrolltop:true,sticky_on:"all",dropdown_autoclose:true},init:function(g,h,f){Foundation.inherit(this,"add_custom_rule register_media throttle");var e=this;e.register_media("topbar","foundation-mq-topbar");this.bindings(h,f);e.S("["+this.attr_name()+"]",this.scope).each(function(){var i=c(this),j=i.data(e.attr_name(true)+"-init"),l=e.S("section, .top-bar-section",this);i.data("index",0);var k=i.parent();if(k.hasClass("fixed")||e.is_sticky(i,k,j)){e.settings.sticky_class=j.sticky_class;e.settings.sticky_topbar=i;i.data("height",k.outerHeight());i.data("stickyoffset",k.offset().top)}else{i.data("height",i.outerHeight())}if(!j.assembled){e.assemble(i)}if(j.is_hover){e.S(".has-dropdown",i).addClass("not-click")}else{e.S(".has-dropdown",i).removeClass("not-click")}e.add_custom_rule(".f-topbar-fixed { padding-top: "+i.data("height")+"px }");if(k.hasClass("fixed")){e.S("body").addClass("f-topbar-fixed")}})},is_sticky:function(f,j,i){var k=j.hasClass(i.sticky_class);var h=matchMedia(Foundation.media_queries.small).matches;var e=matchMedia(Foundation.media_queries.medium).matches;var g=matchMedia(Foundation.media_queries.large).matches;if(k&&i.sticky_on==="all"){return true}
2248if(k&&this.small()&&i.sticky_on.indexOf("small")!==-1){if(h&&!e&&!g){return true}}if(k&&this.medium()&&i.sticky_on.indexOf("medium")!==-1){if(h&&e&&!g){return true}}if(k&&this.large()&&i.sticky_on.indexOf("large")!==-1){if(h&&e&&g){return true}}return false},toggle:function(e){var g=this,f;if(e){f=g.S(e).closest("["+this.attr_name()+"]")}else{f=g.S("["+this.attr_name()+"]")}var h=f.data(this.attr_name(true)+"-init");var i=g.S("section, .top-bar-section",f);if(g.breakpoint()){if(!g.rtl){i.css({left:"0%"});c(">.name",i).css({left:"100%"})}else{i.css({right:"0%"});c(">.name",i).css({right:"100%"})}g.S("li.moved",i).removeClass("moved");f.data("index",0);f.toggleClass("expanded").css("height","")}if(h.scrolltop){if(!f.hasClass("expanded")){if(f.hasClass("fixed")){f.parent().addClass("fixed");f.removeClass("fixed");g.S("body").addClass("f-topbar-fixed")}}else{if(f.parent().hasClass("fixed")){if(h.scrolltop){f.parent().removeClass("fixed");f.addClass("fixed");g.S("body").removeClass("f-topbar-fixed");b.scrollTo(0,0)}else{f.parent().removeClass("expanded")}}}}else{if(g.is_sticky(f,f.parent(),h)){f.parent().addClass("fixed")}if(f.parent().hasClass("fixed")){if(!f.hasClass("expanded")){f.removeClass("fixed");f.parent().removeClass("expanded");g.update_sticky_positioning()}else{f.addClass("fixed");f.parent().addClass("expanded");g.S("body").addClass("f-topbar-fixed")}}}},timer:null,events:function(g){var e=this,f=this.S;f(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(h){h.preventDefault();e.toggle(this)}).on("click.fndtn.topbar contextmenu.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(l){var h=c(this).closest("li"),i=h.closest("["+e.attr_name()+"]"),k=i.data(e.attr_name(true)+"-init");if(k.dropdown_autoclose&&k.is_hover){var j=c(this).closest(".hover");j.removeClass("hover")}if(e.breakpoint()&&!h.hasClass("back")&&!h.hasClass("has-dropdown")){e.toggle()}}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(l){var h=f(this),k=f(l.target),i=h.closest("["+e.attr_name()+"]"),j=i.data(e.attr_name(true)+"-init");if(k.data("revealId")){e.toggle();return}if(e.breakpoint()){return}if(j.is_hover&&!Modernizr.touch){return}l.stopImmediatePropagation();if(h.hasClass("hover")){h.removeClass("hover").find("li").removeClass("hover");h.parents("li.hover").removeClass("hover")}else{h.addClass("hover");c(h).siblings().removeClass("hover");if(k[0].nodeName==="A"&&k.parent().hasClass("has-dropdown")){l.preventDefault()}}}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(m){if(e.breakpoint()){m.preventDefault();var l=f(this),i=l.closest("["+e.attr_name()+"]"),k=i.find("section, .top-bar-section"),j=l.next(".dropdown").outerHeight(),h=l.closest("li");i.data("index",i.data("index")+1);h.addClass("moved");if(!e.rtl){k.css({left:-(100*i.data("index"))+"%"});k.find(">.name").css({left:100*i.data("index")+"%"})}else{k.css({right:-(100*i.data("index"))+"%"});k.find(">.name").css({right:100*i.data("index")+"%"})}i.css("height",l.siblings("ul").outerHeight(true)+i.data("height"))}});f(b).off(".topbar").on("resize.fndtn.topbar",e.throttle(function(){e.resize.call(e)},50)).trigger("resize.fndtn.topbar").load(function(){f(this).trigger("resize.fndtn.topbar")});f("body").off(".topbar").on("click.fndtn.topbar",function(i){var h=f(i.target).closest("li").closest("li.hover");if(h.length>0){return}f("["+e.attr_name()+"] li.hover").removeClass("hover")});f(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(n){n.preventDefault();var m=f(this),i=m.closest("["+e.attr_name()+"]"),l=i.find("section, .top-bar-section"),k=i.data(e.attr_name(true)+"-init"),j=m.closest("li.moved"),h=j.parent();i.data("index",i.data("index")-1);if(!e.rtl){l.css({left:-(100*i.data("index"))+"%"});l.find(">.name").css({left:100*i.data("index")+"%"})}else{l.css({right:-(100*i.data("index"))+"%"});l.find(">.name").css({right:100*i.data("index")+"%"})}if(i.data("index")===0){i.css("height","")}else{i.css("height",h.outerHeight(true)+i.data("height"))}setTimeout(function(){j.removeClass("moved")},300)});f(this.scope).find(".dropdown a").focus(function(){c(this).parents(".has-dropdown").addClass("hover")}).blur(function(){c(this).parents(".has-dropdown").removeClass("hover")})},resize:function(){var e=this;e.S("["+this.attr_name()+"]").each(function(){var g=e.S(this),i=g.data(e.attr_name(true)+"-init");var h=g.parent("."+e.settings.sticky_class);var j;if(!e.breakpoint()){var f=g.hasClass("expanded");g.css("height","").removeClass("expanded").find("li").removeClass("hover");if(f){e.toggle(g)}}if(e.is_sticky(g,h,i)){if(h.hasClass("fixed")){h.removeClass("fixed");j=h.offset().top;if(e.S(a.body).hasClass("f-topbar-fixed")){j-=g.data("height")}g.data("stickyoffset",j);h.addClass("fixed")}else{j=h.offset().top;g.data("stickyoffset",j)}}})},breakpoint:function(){return !matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(f){var e=this,g=f.data(this.attr_name(true)+"-init"),h=e.
2248S("section, .top-bar-section",f);h.detach();e.S(".has-dropdown>a",h).each(function(){var i=e.S(this),l=i.siblings(".dropdown"),j=i.attr("href"),k;if(!l.find(".title.back").length){if(g.mobile_show_parent_link==true&&j){k=c('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-medium-up"><a class="parent-link js-generated" href="'+j+'">'+i.html()+"</a></li>")}else{k=c('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>')}if(g.custom_back_text==true){c("h5>a",k).html(g.back_text)}else{c("h5>a",k).html("&laquo; "+i.html())}l.prepend(k)}});h.appendTo(f);this.sticky();this.assembled(f)},assembled:function(e){e.data(this.attr_name(true),c.extend({},e.data(this.attr_name(true)),{assembled:true}))},height:function(f){var g=0,e=this;c("> li",f).each(function(){g+=e.S(this).outerHeight(true)});return g},sticky:function(){var e=this;this.S(b).on("scroll",function(){e.update_sticky_positioning()})},update_sticky_positioning:function(){var e="."+this.settings.sticky_class,g=this.S(b),f=this;if(f.settings.sticky_topbar&&f.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var h=this.settings.sticky_topbar.data("stickyoffset")+this.settings.start_offset;if(!f.S(e).hasClass("expanded")){if(g.scrollTop()>(h)){if(!f.S(e).hasClass("fixed")){f.S(e).addClass("fixed");f.S("body").addClass("f-topbar-fixed")}}else{if(g.scrollTop()<=h){if(f.S(e).hasClass("fixed")){f.S(e).removeClass("fixed");f.S("body").removeClass("f-topbar-fixed")}}}}}},off:function(){this.S(this.scope).off(".fndtn.topbar");this.S(b).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,window,window.document));
2249(function(d,c,a,e){Foundation.libs.reveal={name:"reveal",version:"5.5.2",locked:false,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:true,close_on_esc:true,dismiss_modal_class:"close-reveal-modal",multiple_opened:false,bg_class:"reveal-modal-bg",root_element:"body",open:function(){},opened:function(){},close:function(){},closed:function(){},on_ajax_error:d.noop,bg:d(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(g,h,f){d.extend(true,this.settings,h,f);this.bindings(h,f)},events:function(h){var f=this,g=f.S;g(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]:not([disabled])",function(l){l.preventDefault();if(!f.locked){var j=g(this),k=j.data(f.data_attr("reveal-ajax")),m=j.data(f.data_attr("reveal-replace-content"));f.locked=true;if(typeof k==="undefined"){f.open.call(f,j)}else{var i=k===true?j.attr("href"):k;f.open.call(f,j,{url:i},{replaceContentSel:m})}}});g(a).on("click.fndtn.reveal",this.close_targets(),function(j){j.preventDefault();if(!f.locked){var i=g("["+f.attr_name()+"].open").data(f.attr_name(true)+"-init")||f.settings,k=g(j.target)[0]===g("."+i.bg_class)[0];if(k){if(i.close_on_background_click){j.stopPropagation()}else{return}}f.locked=true;f.close.call(f,k?g("["+f.attr_name()+"].open:not(.toback)"):g(this).closest("["+f.attr_name()+"]"))}});if(g("["+f.attr_name()+"]",this.scope).length>0){g(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video)}else{g(this.scope).on("open.fndtn.reveal","["+f.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+f.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+f.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+f.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+f.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+f.attr_name()+"]",this.close_video)}return true},key_up_on:function(g){var f=this;f.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(j){var h=f.S("["+f.attr_name()+"].open"),i=h.data(f.attr_name(true)+"-init")||f.settings;if(i&&j.which===27&&i.close_on_esc&&!f.locked){f.close.call(f,h)}});return true},key_up_off:function(f){this.S("body").off("keyup.fndtn.reveal");return true},open:function(j,k){var g=this,i;if(j){if(typeof j.selector!=="undefined"){i=g.S("#"+j.data(g.data_attr("reveal-id"))).first()}else{i=g.S(this.scope);k=j}}else{i=g.S(this.scope)}var h=i.data(g.attr_name(true)+"-init");h=h||this.settings;if(i.hasClass("open")&&j.attr("data-reveal-id")==i.attr("id")){return g.close(i)}if(!i.hasClass("open")){var f=g.S("["+g.attr_name()+"].open");if(typeof i.data("css-top")==="undefined"){i.data("css-top",parseInt(i.css("top"),10)).data("offset",this.cache_offset(i))}i.attr("tabindex","0").attr("aria-hidden","false");this.key_up_on(i);i.on("open.fndtn.reveal",function(m){if(m.namespace!=="fndtn.reveal"){return}});i.on("open.fndtn.reveal").trigger("open.fndtn.reveal");if(f.length<1){this.toggle_bg(i,true)}
2249if(typeof k==="string"){k={url:k}}if(typeof k==="undefined"||!k.url){if(f.length>0){if(h.multiple_opened){g.to_back(f)}else{g.hide(f,h.css.close)}}this.show(i,h.css.open)}else{var l=typeof k.success!=="undefined"?k.success:null;d.extend(k,{success:function(o,p,n){if(d.isFunction(l)){var m=l(o,p,n);if(typeof m=="string"){o=m}}if(typeof options!=="undefined"&&typeof options.replaceContentSel!=="undefined"){i.find(options.replaceContentSel).html(o)}else{i.html(o)}g.S(i).foundation("section","reflow");g.S(i).children().foundation();if(f.length>0){if(h.multiple_opened){g.to_back(f)}else{g.hide(f,h.css.close)}}g.show(i,h.css.open)}});if(h.on_ajax_error!==d.noop){d.extend(k,{error:h.on_ajax_error})}d.ajax(k)}}g.S(c).trigger("resize")},close:function(i){var i=i&&i.length?i:this.S(this.scope),h=this.S("["+this.attr_name()+"].open"),g=i.data(this.attr_name(true)+"-init")||this.settings,f=this;if(h.length>0){i.removeAttr("tabindex","0").attr("aria-hidden","true");this.locked=true;this.key_up_off(i);i.trigger("close.fndtn.reveal");if((g.multiple_opened&&h.length===1)||!g.multiple_opened||i.length>1){f.toggle_bg(i,false);f.to_front(i)}if(g.multiple_opened){f.hide(i,g.css.close,g);f.to_front(d(d.makeArray(h).reverse()[1]))}else{f.hide(h,g.css.close,g)}}},close_targets:function(){var f="."+this.settings.dismiss_modal_class;if(this.settings.close_on_background_click){return f+", ."+this.settings.bg_class}return f},toggle_bg:function(f,g){if(this.S("."+this.settings.bg_class).length===0){this.settings.bg=d("<div />",{"class":this.settings.bg_class}).appendTo("body").hide()}var h=this.settings.bg.filter(":visible").length>0;if(g!=h){if(g==e?h:!g){this.hide(this.settings.bg)}else{this.show(this.settings.bg)}}},show:function(l,j){if(j){var k=l.data(this.attr_name(true)+"-init")||this.settings,i=k.root_element,h=this;if(l.parent(i).length===0){var m=l.wrap('<div style="display: none;" />').parent();l.on("closed.fndtn.reveal.wrapped",function(){l.detach().appendTo(m);l.unwrap().unbind("closed.fndtn.reveal.wrapped")});l.detach().appendTo(i)}var g=b(k.animation);if(!g.animate){this.locked=false}if(g.pop){j.top=d(c).scrollTop()-l.data("offset")+"px";var f={top:d(c).scrollTop()+l.data("css-top")+"px",opacity:1};return setTimeout(function(){return l.css(j).animate(f,k.animation_speed,"linear",function(){h.locked=false;l.trigger("opened.fndtn.reveal")}).addClass("open")},k.animation_speed/2)}if(g.fade){j.top=d(c).scrollTop()+l.data("css-top")+"px";var f={opacity:1};return setTimeout(function(){return l.css(j).animate(f,k.animation_speed,"linear",function(){h.locked=false;l.trigger("opened.fndtn.reveal")}).addClass("open")},k.animation_speed/2)}return l.css(j).show().css({opacity:1}).addClass("open").trigger("opened.fndtn.reveal")}var k=this.settings;if(b(k.animation).fade){return l.fadeIn(k.animation_speed/2)}this.locked=false;return l.show()},to_back:function(f){f.addClass("toback")},to_front:function(f){f.removeClass("toback")},hide:function(k,i){if(i){var j=k.data(this.attr_name(true)+"-init"),h=this;j=j||this.settings;var g=b(j.animation);if(!g.animate){this.locked=false}if(g.pop){var f={top:-d(c).scrollTop()-k.data("offset")+"px",opacity:0};return setTimeout(function(){return k.animate(f,j.animation_speed,"linear",function(){h.locked=false;k.css(i).trigger("closed.fndtn.reveal")}).removeClass("open")},j.animation_speed/2)}if(g.fade){var f={opacity:0}
2249;return setTimeout(function(){return k.animate(f,j.animation_speed,"linear",function(){h.locked=false;k.css(i).trigger("closed.fndtn.reveal")}).removeClass("open")},j.animation_speed/2)}return k.hide().css(i).removeClass("open").trigger("closed.fndtn.reveal")}var j=this.settings;if(b(j.animation).fade){return k.fadeOut(j.animation_speed/2)}return k.hide()},close_video:function(h){var g=d(".flex-video",h.target),f=d("iframe",g);if(f.length>0){f.attr("data-src",f[0].src);f.attr("src",f.attr("src"));g.hide()}},open_video:function(h){var g=d(".flex-video",h.target),f=g.find("iframe");if(f.length>0){var j=f.attr("data-src");if(typeof j==="string"){f[0].src=f.attr("data-src")}else{var i=f[0].src;f[0].src=e;f[0].src=i}g.show()}},data_attr:function(f){if(this.namespace.length>0){return this.namespace+"-"+f}return f},cache_offset:function(f){var g=f.show().height()+parseInt(f.css("top"),10)+f.scrollY;f.hide();return g},off:function(){d(this.scope).off(".fndtn.reveal")},reflow:function(){}};function b(h){var g=/fade/i.test(h);var f=/pop/i.test(h);return{animate:g||f,pop:f,fade:g}}}(jQuery,window,window.document));

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.