· 5 years ago · May 19, 2020, 01:46 PM
1window.Modernizr = function(a, b, c) {
2 function d(a) {
3 t.cssText = a
4 }
5
6 function e(a, b) {
7 return d(x.join(a + ";") + (b || ""))
8 }
9
10 function f(a, b) {
11 return typeof a === b
12 }
13
14 function g(a, b) {
15 return !!~("" + a).indexOf(b)
16 }
17
18 function h(a, b) {
19 for (var d in a) {
20 var e = a[d];
21 if (!g(e, "-") && t[e] !== c) return "pfx" == b ? e : !0
22 }
23 return !1
24 }
25
26 function i(a, b, d) {
27 for (var e in a) {
28 var g = b[a[e]];
29 if (g !== c) return d === !1 ? a[e] : f(g, "function") ? g.bind(d || b) : g
30 }
31 return !1
32 }
33
34 function j(a, b, c) {
35 var d = a.charAt(0).toUpperCase() + a.slice(1),
36 e = (a + " " + z.join(d + " ") + d).split(" ");
37 return f(b, "string") || f(b, "undefined") ? h(e, b) : (e = (a + " " + A.join(d + " ") + d).split(" "), i(e, b, c))
38 }
39
40 function k() {
41 o.input = function(c) {
42 for (var d = 0, e = c.length; e > d; d++) E[c[d]] = !!(c[d] in u);
43 return E.list && (E.list = !(!b.createElement("datalist") || !a.HTMLDataListElement)), E
44 }("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")), o.inputtypes = function(a) {
45 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;
46 return D
47 }("search tel url email datetime date month week time datetime-local number range color".split(" "))
48 }
49 var l, m, n = "2.8.3",
50 o = {},
51 p = !0,
52 q = b.documentElement,
53 r = "modernizr",
54 s = b.createElement(r),
55 t = s.style,
56 u = b.createElement("input"),
57 v = ":)",
58 w = {}.toString,
59 x = " -webkit- -moz- -o- -ms- ".split(" "),
60 y = "Webkit Moz O ms",
61 z = y.split(" "),
62 A = y.toLowerCase().split(" "),
63 B = {
64 svg: "http://www.w3.org/2000/svg"
65 },
66 C = {},
67 D = {},
68 E = {},
69 F = [],
70 G = F.slice,
71 H = function(a, c, d, e) {
72 var f, g, h, i, j = b.createElement("div"),
73 k = b.body,
74 l = k || b.createElement("body");
75 if (parseInt(d, 10))
76 for (; d--;) h = b.createElement("div"), h.id = e ? e[d] : r + (d + 1), j.appendChild(h);
77 return f = ["­", '<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
78 },
79 I = function(b) {
80 var c = a.matchMedia || a.msMatchMedia;
81 if (c) return c(b) && c(b).matches || !1;
82 var d;
83 return H("@media " + b + " { #" + r + " { position: absolute; } }", function(b) {
84 d = "absolute" == (a.getComputedStyle ? getComputedStyle(b, null) : b.currentStyle).position
85 }), d
86 },
87 J = function() {
88 function a(a, e) {
89 e = e || b.createElement(d[a] || "div"), a = "on" + a;
90 var g = a in e;
91 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
92 }
93 var d = {
94 select: "input",
95 change: "input",
96 submit: "form",
97 reset: "form",
98 error: "img",
99 load: "img",
100 abort: "img"
101 };
102 return a
103 }(),
104 K = {}.hasOwnProperty;
105 m = f(K, "undefined") || f(K.call, "undefined") ? function(a, b) {
106 return b in a && f(a.constructor.prototype[b], "undefined")
107 } : function(a, b) {
108 return K.call(a, b)
109 }, Function.prototype.bind || (Function.prototype.bind = function(a) {
110 var b = this;
111 if ("function" != typeof b) throw new TypeError;
112 var c = G.call(arguments, 1),
113 d = function() {
114 if (this instanceof d) {
115 var e = function() {};
116 e.prototype = b.prototype;
117 var f = new e,
118 g = b.apply(f, c.concat(G.call(arguments)));
119 return Object(g) === g ? g : f
120 }
121 return b.apply(a, c.concat(G.call(arguments)))
122 };
123 return d
124 }), C.flexbox = function() {
125 return j("flexWrap")
126 }, C.flexboxlegacy = function() {
127 return j("boxDirection")
128 }, C.canvas = function() {
129 var a = b.createElement("canvas");
130 return !(!a.getContext || !a.getContext("2d"))
131 }, C.canvastext = function() {
132 return !(!o.canvas || !f(b.createElement("canvas").getContext("2d").fillText, "function"))
133 }, C.webgl = function() {
134 return !!a.WebGLRenderingContext
135 }, C.touch = function() {
136 var c;
137 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) {
138 c = 9 === a.offsetTop
139 }), c
140 }, C.geolocation = function() {
141 return "geolocation" in navigator
142 }, C.postmessage = function() {
143 return !!a.postMessage
144 }, C.websqldatabase = function() {
145 return !!a.openDatabase
146 }, C.indexedDB = function() {
147 return !!j("indexedDB", a)
148 }, C.hashchange = function() {
149 return J("hashchange", a) && (b.documentMode === c || b.documentMode > 7)
150 }, C.history = function() {
151 return !(!a.history || !history.pushState)
152 }, C.draganddrop = function() {
153 var a = b.createElement("div");
154 return "draggable" in a || "ondragstart" in a && "ondrop" in a
155 }, C.websockets = function() {
156 return "WebSocket" in a || "MozWebSocket" in a
157 }, C.rgba = function() {
158 return d("background-color:rgba(150,255,150,.5)"), g(t.backgroundColor, "rgba")
159 }, C.hsla = function() {
160 return d("background-color:hsla(120,40%,100%,.5)"), g(t.backgroundColor, "rgba") || g(t.backgroundColor, "hsla")
161 }, C.multiplebgs = function() {
162 return d("background:url(https://),url(https://),red url(https://)"), /(url\s*\(.*?){3}/.test(t.background)
163 }, C.backgroundsize = function() {
164 return j("backgroundSize")
165 }, C.borderimage = function() {
166 return j("borderImage")
167 }, C.borderradius = function() {
168 return j("borderRadius")
169 }, C.boxshadow = function() {
170 return j("boxShadow")
171 }, C.textshadow = function() {
172 return "" === b.createElement("div").style.textShadow
173 }, C.opacity = function() {
174 return e("opacity:.55"), /^0.55$/.test(t.opacity)
175 }, C.cssanimations = function() {
176 return j("animationName")
177 }, C.csscolumns = function() {
178 return j("columnCount")
179 }, C.cssgradients = function() {
180 var a = "background-image:",
181 b = "gradient(linear,left top,right bottom,from(#9f9),to(white));",
182 c = "linear-gradient(left top,#9f9, white);";
183 return d((a + "-webkit- ".split(" ").join(b + a) + x.join(c + a)).slice(0, -a.length)), g(t.backgroundImage, "gradient")
184 }, C.cssreflections = function() {
185 return j("boxReflect")
186 }, C.csstransforms = function() {
187 return !!j("transform")
188 }, C.csstransforms3d = function() {
189 var a = !!j("perspective");
190 return a && "webkitPerspective" in q.style && H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", function(b, c) {
191 a = 9 === b.offsetLeft && 3 === b.offsetHeight
192 }), a
193 }, C.csstransitions = function() {
194 return j("transition")
195 }, C.fontface = function() {
196 var a;
197 return H('@font-face {font-family:"font";src:url("https://")}', function(c, d) {
198 var e = b.getElementById("smodernizr"),
199 f = e.sheet || e.styleSheet,
200 g = f ? f.cssRules && f.cssRules[0] ? f.cssRules[0].cssText : f.cssText || "" : "";
201 a = /src/i.test(g) && 0 === g.indexOf(d.split(" ")[0])
202 }), a
203 }, C.generatedcontent = function() {
204 var a;
205 return H(["#", r, "{font:0/0 a}#", r, ':after{content:"', v, '";visibility:hidden;font:3px/1 a}'].join(""), function(b) {
206 a = b.offsetHeight >= 3
207 }), a
208 }, C.video = function() {
209 var a = b.createElement("video"),
210 c = !1;
211 try {
212 (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$/, ""))
213 } catch (d) {}
214 return c
215 }, C.audio = function() {
216 var a = b.createElement("audio"),
217 c = !1;
218 try {
219 (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$/, ""))
220 } catch (d) {}
221 return c
222 }, C.localstorage = function() {
223 try {
224 return localStorage.setItem(r, r), localStorage.removeItem(r), !0
225 } catch (a) {
226 return !1
227 }
228 }, C.sessionstorage = function() {
229 try {
230 return sessionStorage.setItem(r, r), sessionStorage.removeItem(r), !0
231 } catch (a) {
232 return !1
233 }
234 }, C.webworkers = function() {
235 return !!a.Worker
236 }, C.applicationcache = function() {
237 return !!a.applicationCache
238 }, C.svg = function() {
239 return !!b.createElementNS && !!b.createElementNS(B.svg, "svg").createSVGRect
240 }, C.inlinesvg = function() {
241 var a = b.createElement("div");
242 return a.innerHTML = "<svg/>", (a.firstChild && a.firstChild.namespaceURI) == B.svg
243 }, C.smil = function() {
244 return !!b.createElementNS && /SVGAnimate/.test(w.call(b.createElementNS(B.svg, "animate")))
245 }, C.svgclippaths = function() {
246 return !!b.createElementNS && /SVGClipPath/.test(w.call(b.createElementNS(B.svg, "clipPath")))
247 };
248 for (var L in C) m(C, L) && (l = L.toLowerCase(), o[l] = C[L](), F.push((o[l] ? "" : "no-") + l));
249 return o.input || k(), o.addTest = function(a, b) {
250 if ("object" == typeof a)
251 for (var d in a) m(a, d) && o.addTest(d, a[d]);
252 else {
253 if (a = a.toLowerCase(), o[a] !== c) return o;
254 b = "function" == typeof b ? b() : b, "undefined" != typeof p && p && (q.className += " " + (b ? "" : "no-") + a), o[a] = b
255 }
256 return o
257 }, d(""), s = u = null,
258 function(a, b) {
259 function c(a, b) {
260 var c = a.createElement("p"),
261 d = a.getElementsByTagName("head")[0] || a.documentElement;
262 return c.innerHTML = "x<style>" + b + "</style>", d.insertBefore(c.lastChild, d.firstChild)
263 }
264
265 function d() {
266 var a = s.elements;
267 return "string" == typeof a ? a.split(" ") : a
268 }
269
270 function e(a) {
271 var b = r[a[p]];
272 return b || (b = {}, q++, a[p] = q, r[q] = b), b
273 }
274
275 function f(a, c, d) {
276 if (c || (c = b), k) return c.createElement(a);
277 d || (d = e(c));
278 var f;
279 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)
280 }
281
282 function g(a, c) {
283 if (a || (a = b), k) return a.createDocumentFragment();
284 c = c || e(a);
285 for (var f = c.frag.cloneNode(), g = 0, h = d(), i = h.length; i > g; g++) f.createElement(h[g]);
286 return f
287 }
288
289 function h(a, b) {
290 b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function(c) {
291 return s.shivMethods ? f(c, a, b) : b.createElem(c)
292 }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + d().join().replace(/[\w\-]+/g, function(a) {
293 return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")'
294 }) + ");return n}")(s, b.frag)
295 }
296
297 function i(a) {
298 a || (a = b);
299 var d = e(a);
300 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
301 }
302 var j, k, l = "3.7.0",
303 m = a.html5 || {},
304 n = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,
305 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,
306 p = "_html5shiv",
307 q = 0,
308 r = {};
309 ! function() {
310 try {
311 var a = b.createElement("a");
312 a.innerHTML = "<xyz></xyz>", j = "hidden" in a, k = 1 == a.childNodes.length || function() {
313 b.createElement("a");
314 var a = b.createDocumentFragment();
315 return "undefined" == typeof a.cloneNode || "undefined" == typeof a.createDocumentFragment || "undefined" == typeof a.createElement
316 }()
317 } catch (c) {
318 j = !0, k = !0
319 }
320 }();
321 var s = {
322 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",
323 version: l,
324 shivCSS: m.shivCSS !== !1,
325 supportsUnknownElements: k,
326 shivMethods: m.shivMethods !== !1,
327 type: "default",
328 shivDocument: i,
329 createElement: f,
330 createDocumentFragment: g
331 };
332 a.html5 = s, i(b)
333 }(this, b), o._version = n, o._prefixes = x, o._domPrefixes = A, o._cssomPrefixes = z, o.mq = I, o.hasEvent = J, o.testProp = function(a) {
334 return h([a])
335 }, o.testAllProps = j, o.testStyles = H, o.prefixed = function(a, b, c) {
336 return b ? j(a, b, c) : j(a, "pfx")
337 }, q.className = q.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (p ? " js " + F.join(" ") : ""), o
338}(this, this.document);
339! function(a, b) {
340 "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) {
341 if (!a.document) throw new Error("jQuery requires a window with a document");
342 return b(a)
343 } : b(a)
344}("undefined" != typeof window ? window : this, function(a, b) {
345 var c = [],
346 d = c.slice,
347 e = c.concat,
348 f = c.push,
349 g = c.indexOf,
350 h = {},
351 i = h.toString,
352 j = h.hasOwnProperty,
353 k = {},
354 l = a.document,
355 m = "2.1.4",
356 n = function(a, b) {
357 return new n.fn.init(a, b)
358 },
359 o = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
360 p = /^-ms-/,
361 q = /-([\da-z])/gi,
362 r = function(a, b) {
363 return b.toUpperCase()
364 };
365 n.fn = n.prototype = {
366 jquery: m,
367 constructor: n,
368 selector: "",
369 length: 0,
370 toArray: function() {
371 return d.call(this)
372 },
373 get: function(a) {
374 return null != a ? 0 > a ? this[a + this.length] : this[a] : d.call(this)
375 },
376 pushStack: function(a) {
377 var b = n.merge(this.constructor(), a);
378 return b.prevObject = this, b.context = this.context, b
379 },
380 each: function(a, b) {
381 return n.each(this, a, b)
382 },
383 map: function(a) {
384 return this.pushStack(n.map(this, function(b, c) {
385 return a.call(b, c, b)
386 }))
387 },
388 slice: function() {
389 return this.pushStack(d.apply(this, arguments))
390 },
391 first: function() {
392 return this.eq(0)
393 },
394 last: function() {
395 return this.eq(-1)
396 },
397 eq: function(a) {
398 var b = this.length,
399 c = +a + (0 > a ? b : 0);
400 return this.pushStack(c >= 0 && b > c ? [this[c]] : [])
401 },
402 end: function() {
403 return this.prevObject || this.constructor(null)
404 },
405 push: f,
406 sort: c.sort,
407 splice: c.splice
408 }, n.extend = n.fn.extend = function() {
409 var a, b, c, d, e, f, g = arguments[0] || {},
410 h = 1,
411 i = arguments.length,
412 j = !1;
413 for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || n.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++)
414 if (null != (a = arguments[h]))
415 for (b in a) c = g[b], d = a[b], g !== d && (j && d && (n.isPlainObject(d) || (e = n.isArray(d))) ? (e ? (e = !1, f = c && n.isArray(c) ? c : []) : f = c && n.isPlainObject(c) ? c : {}, g[b] = n.extend(j, f, d)) : void 0 !== d && (g[b] = d));
416 return g
417 }, n.extend({
418 expando: "jQuery" + (m + Math.random()).replace(/\D/g, ""),
419 isReady: !0,
420 error: function(a) {
421 throw new Error(a)
422 },
423 noop: function() {},
424 isFunction: function(a) {
425 return "function" === n.type(a)
426 },
427 isArray: Array.isArray,
428 isWindow: function(a) {
429 return null != a && a === a.window
430 },
431 isNumeric: function(a) {
432 return !n.isArray(a) && a - parseFloat(a) + 1 >= 0
433 },
434 isPlainObject: function(a) {
435 return "object" !== n.type(a) || a.nodeType || n.isWindow(a) ? !1 : a.constructor && !j.call(a.constructor.prototype, "isPrototypeOf") ? !1 : !0
436 },
437 isEmptyObject: function(a) {
438 var b;
439 for (b in a) return !1;
440 return !0
441 },
442 type: function(a) {
443 return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? h[i.call(a)] || "object" : typeof a
444 },
445 globalEval: function(a) {
446 var b, c = eval;
447 a = n.trim(a), a && (1 === a.indexOf("use strict") ? (b = l.createElement("script"), b.text = a, l.head.appendChild(b).parentNode.removeChild(b)) : c(a))
448 },
449 camelCase: function(a) {
450 return a.replace(p, "ms-").replace(q, r)
451 },
452 nodeName: function(a, b) {
453 return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase()
454 },
455 each: function(a, b, c) {
456 var d, e = 0,
457 f = a.length,
458 g = s(a);
459 if (c) {
460 if (g) {
461 for (; f > e; e++)
462 if (d = b.apply(a[e], c), d === !1) break
463 } else
464 for (e in a)
465 if (d = b.apply(a[e], c), d === !1) break
466 } else if (g) {
467 for (; f > e; e++)
468 if (d = b.call(a[e], e, a[e]), d === !1) break
469 } else
470 for (e in a)
471 if (d = b.call(a[e], e, a[e]), d === !1) break;
472 return a
473 },
474 trim: function(a) {
475 return null == a ? "" : (a + "").replace(o, "")
476 },
477 makeArray: function(a, b) {
478 var c = b || [];
479 return null != a && (s(Object(a)) ? n.merge(c, "string" == typeof a ? [a] : a) : f.call(c, a)), c
480 },
481 inArray: function(a, b, c) {
482 return null == b ? -1 : g.call(b, a, c)
483 },
484 merge: function(a, b) {
485 for (var c = +b.length, d = 0, e = a.length; c > d; d++) a[e++] = b[d];
486 return a.length = e, a
487 },
488 grep: function(a, b, c) {
489 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]);
490 return e
491 },
492 map: function(a, b, c) {
493 var d, f = 0,
494 g = a.length,
495 h = s(a),
496 i = [];
497 if (h)
498 for (; g > f; f++) d = b(a[f], f, c), null != d && i.push(d);
499 else
500 for (f in a) d = b(a[f], f, c), null != d && i.push(d);
501 return e.apply([], i)
502 },
503 guid: 1,
504 proxy: function(a, b) {
505 var c, e, f;
506 return "string" == typeof b && (c = a[b], b = a, a = c), n.isFunction(a) ? (e = d.call(arguments, 2), f = function() {
507 return a.apply(b || this, e.concat(d.call(arguments)))
508 }, f.guid = a.guid = a.guid || n.guid++, f) : void 0
509 },
510 now: Date.now,
511 support: k
512 }), n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(a, b) {
513 h["[object " + b + "]"] = b.toLowerCase()
514 });
515
516 function s(a) {
517 var b = "length" in a && a.length,
518 c = n.type(a);
519 return "function" === c || n.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
520 }
521 var t = function(a) {
522 var b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u = "sizzle" + 1 * new Date,
523 v = a.document,
524 w = 0,
525 x = 0,
526 y = ha(),
527 z = ha(),
528 A = ha(),
529 B = function(a, b) {
530 return a === b && (l = !0), 0
531 },
532 C = 1 << 31,
533 D = {}.hasOwnProperty,
534 E = [],
535 F = E.pop,
536 G = E.push,
537 H = E.push,
538 I = E.slice,
539 J = function(a, b) {
540 for (var c = 0, d = a.length; d > c; c++)
541 if (a[c] === b) return c;
542 return -1
543 },
544 K = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
545 L = "[\\x20\\t\\r\\n\\f]",
546 M = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
547 N = M.replace("w", "w#"),
548 O = "\\[" + L + "*(" + M + ")(?:" + L + "*([*^$|!~]?=)" + L + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + N + "))|)" + L + "*\\]",
549 P = ":(" + M + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + O + ")*)|.*)\\)|)",
550 Q = new RegExp(L + "+", "g"),
551 R = new RegExp("^" + L + "+|((?:^|[^\\\\])(?:\\\\.)*)" + L + "+$", "g"),
552 S = new RegExp("^" + L + "*," + L + "*"),
553 T = new RegExp("^" + L + "*([>+~]|" + L + ")" + L + "*"),
554 U = new RegExp("=" + L + "*([^\\]'\"]*?)" + L + "*\\]", "g"),
555 V = new RegExp(P),
556 W = new RegExp("^" + N + "$"),
557 X = {
558 ID: new RegExp("^#(" + M + ")"),
559 CLASS: new RegExp("^\\.(" + M + ")"),
560 TAG: new RegExp("^(" + M.replace("w", "w*") + ")"),
561 ATTR: new RegExp("^" + O),
562 PSEUDO: new RegExp("^" + P),
563 CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + L + "*(even|odd|(([+-]|)(\\d*)n|)" + L + "*(?:([+-]|)" + L + "*(\\d+)|))" + L + "*\\)|)", "i"),
564 bool: new RegExp("^(?:" + K + ")$", "i"),
565 needsContext: new RegExp("^" + L + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + L + "*((?:-\\d)?\\d*)" + L + "*\\)|)(?=[^-]|$)", "i")
566 },
567 Y = /^(?:input|select|textarea|button)$/i,
568 Z = /^h\d$/i,
569 $ = /^[^{]+\{\s*\[native \w/,
570 _ = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
571 aa = /[+~]/,
572 ba = /'|\\/g,
573 ca = new RegExp("\\\\([\\da-f]{1,6}" + L + "?|(" + L + ")|.)", "ig"),
574 da = function(a, b, c) {
575 var d = "0x" + b - 65536;
576 return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320)
577 },
578 ea = function() {
579 m()
580 };
581 try {
582 H.apply(E = I.call(v.childNodes), v.childNodes), E[v.childNodes.length].nodeType
583 } catch (fa) {
584 H = {
585 apply: E.length ? function(a, b) {
586 G.apply(a, I.call(b))
587 } : function(a, b) {
588 var c = a.length,
589 d = 0;
590 while (a[c++] = b[d++]);
591 a.length = c - 1
592 }
593 }
594 }
595
596 function ga(a, b, d, e) {
597 var f, h, j, k, l, o, r, s, w, x;
598 if ((b ? b.ownerDocument || b : v) !== n && m(b), b = b || n, d = d || [], k = b.nodeType, "string" != typeof a || !a || 1 !== k && 9 !== k && 11 !== k) return d;
599 if (!e && p) {
600 if (11 !== k && (f = _.exec(a)))
601 if (j = f[1]) {
602 if (9 === k) {
603 if (h = b.getElementById(j), !h || !h.parentNode) return d;
604 if (h.id === j) return d.push(h), d
605 } else if (b.ownerDocument && (h = b.ownerDocument.getElementById(j)) && t(b, h) && h.id === j) return d.push(h), d
606 } else {
607 if (f[2]) return H.apply(d, b.getElementsByTagName(a)), d;
608 if ((j = f[3]) && c.getElementsByClassName) return H.apply(d, b.getElementsByClassName(j)), d
609 }
610 if (c.qsa && (!q || !q.test(a))) {
611 if (s = r = u, w = b, x = 1 !== k && a, 1 === k && "object" !== b.nodeName.toLowerCase()) {
612 o = g(a), (r = b.getAttribute("id")) ? s = r.replace(ba, "\\$&") : b.setAttribute("id", s), s = "[id='" + s + "'] ", l = o.length;
613 while (l--) o[l] = s + ra(o[l]);
614 w = aa.test(a) && pa(b.parentNode) || b, x = o.join(",")
615 }
616 if (x) try {
617 return H.apply(d, w.querySelectorAll(x)), d
618 } catch (y) {} finally {
619 r || b.removeAttribute("id")
620 }
621 }
622 }
623 return i(a.replace(R, "$1"), b, d, e)
624 }
625
626 function ha() {
627 var a = [];
628
629 function b(c, e) {
630 return a.push(c + " ") > d.cacheLength && delete b[a.shift()], b[c + " "] = e
631 }
632 return b
633 }
634
635 function ia(a) {
636 return a[u] = !0, a
637 }
638
639 function ja(a) {
640 var b = n.createElement("div");
641 try {
642 return !!a(b)
643 } catch (c) {
644 return !1
645 } finally {
646 b.parentNode && b.parentNode.removeChild(b), b = null
647 }
648 }
649
650 function ka(a, b) {
651 var c = a.split("|"),
652 e = a.length;
653 while (e--) d.attrHandle[c[e]] = b
654 }
655
656 function la(a, b) {
657 var c = b && a,
658 d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || C) - (~a.sourceIndex || C);
659 if (d) return d;
660 if (c)
661 while (c = c.nextSibling)
662 if (c === b) return -1;
663 return a ? 1 : -1
664 }
665
666 function ma(a) {
667 return function(b) {
668 var c = b.nodeName.toLowerCase();
669 return "input" === c && b.type === a
670 }
671 }
672
673 function na(a) {
674 return function(b) {
675 var c = b.nodeName.toLowerCase();
676 return ("input" === c || "button" === c) && b.type === a
677 }
678 }
679
680 function oa(a) {
681 return ia(function(b) {
682 return b = +b, ia(function(c, d) {
683 var e, f = a([], c.length, b),
684 g = f.length;
685 while (g--) c[e = f[g]] && (c[e] = !(d[e] = c[e]))
686 })
687 })
688 }
689
690 function pa(a) {
691 return a && "undefined" != typeof a.getElementsByTagName && a
692 }
693 c = ga.support = {}, f = ga.isXML = function(a) {
694 var b = a && (a.ownerDocument || a).documentElement;
695 return b ? "HTML" !== b.nodeName : !1
696 }, m = ga.setDocument = function(a) {
697 var b, e, g = a ? a.ownerDocument || a : v;
698 return g !== n && 9 === g.nodeType && g.documentElement ? (n = g, o = g.documentElement, e = g.defaultView, e && e !== e.top && (e.addEventListener ? e.addEventListener("unload", ea, !1) : e.attachEvent && e.attachEvent("onunload", ea)), p = !f(g), c.attributes = ja(function(a) {
699 return a.className = "i", !a.getAttribute("className")
700 }), c.getElementsByTagName = ja(function(a) {
701 return a.appendChild(g.createComment("")), !a.getElementsByTagName("*").length
702 }), c.getElementsByClassName = $.test(g.getElementsByClassName), c.getById = ja(function(a) {
703 return o.appendChild(a).id = u, !g.getElementsByName || !g.getElementsByName(u).length
704 }), c.getById ? (d.find.ID = function(a, b) {
705 if ("undefined" != typeof b.getElementById && p) {
706 var c = b.getElementById(a);
707 return c && c.parentNode ? [c] : []
708 }
709 }, d.filter.ID = function(a) {
710 var b = a.replace(ca, da);
711 return function(a) {
712 return a.getAttribute("id") === b
713 }
714 }) : (delete d.find.ID, d.filter.ID = function(a) {
715 var b = a.replace(ca, da);
716 return function(a) {
717 var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id");
718 return c && c.value === b
719 }
720 }), d.find.TAG = c.getElementsByTagName ? function(a, b) {
721 return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a) : c.qsa ? b.querySelectorAll(a) : void 0
722 } : function(a, b) {
723 var c, d = [],
724 e = 0,
725 f = b.getElementsByTagName(a);
726 if ("*" === a) {
727 while (c = f[e++]) 1 === c.nodeType && d.push(c);
728 return d
729 }
730 return f
731 }, d.find.CLASS = c.getElementsByClassName && function(a, b) {
732 return p ? b.getElementsByClassName(a) : void 0
733 }, r = [], q = [], (c.qsa = $.test(g.querySelectorAll)) && (ja(function(a) {
734 o.appendChild(a).innerHTML = "<a id='" + u + "'></a><select id='" + u + "-\f]' msallowcapture=''><option selected=''></option></select>", a.querySelectorAll("[msallowcapture^='']").length && q.push("[*^$]=" + L + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || q.push("\\[" + L + "*(?:value|" + K + ")"), a.querySelectorAll("[id~=" + u + "-]").length || q.push("~="), a.querySelectorAll(":checked").length || q.push(":checked"), a.querySelectorAll("a#" + u + "+*").length || q.push(".#.+[+~]")
735 }), ja(function(a) {
736 var b = g.createElement("input");
737 b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && q.push("name" + L + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || q.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), q.push(",.*:")
738 })), (c.matchesSelector = $.test(s = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.oMatchesSelector || o.msMatchesSelector)) && ja(function(a) {
739 c.disconnectedMatch = s.call(a, "div"), s.call(a, "[s!='']:x"), r.push("!=", P)
740 }), q = q.length && new RegExp(q.join("|")), r = r.length && new RegExp(r.join("|")), b = $.test(o.compareDocumentPosition), t = b || $.test(o.contains) ? function(a, b) {
741 var c = 9 === a.nodeType ? a.documentElement : a,
742 d = b && b.parentNode;
743 return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)))
744 } : function(a, b) {
745 if (b)
746 while (b = b.parentNode)
747 if (b === a) return !0;
748 return !1
749 }, B = b ? function(a, b) {
750 if (a === b) return l = !0, 0;
751 var d = !a.compareDocumentPosition - !b.compareDocumentPosition;
752 return d ? d : (d = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & d || !c.sortDetached && b.compareDocumentPosition(a) === d ? a === g || a.ownerDocument === v && t(v, a) ? -1 : b === g || b.ownerDocument === v && t(v, b) ? 1 : k ? J(k, a) - J(k, b) : 0 : 4 & d ? -1 : 1)
753 } : function(a, b) {
754 if (a === b) return l = !0, 0;
755 var c, d = 0,
756 e = a.parentNode,
757 f = b.parentNode,
758 h = [a],
759 i = [b];
760 if (!e || !f) return a === g ? -1 : b === g ? 1 : e ? -1 : f ? 1 : k ? J(k, a) - J(k, b) : 0;
761 if (e === f) return la(a, b);
762 c = a;
763 while (c = c.parentNode) h.unshift(c);
764 c = b;
765 while (c = c.parentNode) i.unshift(c);
766 while (h[d] === i[d]) d++;
767 return d ? la(h[d], i[d]) : h[d] === v ? -1 : i[d] === v ? 1 : 0
768 }, g) : n
769 }, ga.matches = function(a, b) {
770 return ga(a, null, null, b)
771 }, ga.matchesSelector = function(a, b) {
772 if ((a.ownerDocument || a) !== n && m(a), b = b.replace(U, "='$1']"), !(!c.matchesSelector || !p || r && r.test(b) || q && q.test(b))) try {
773 var d = s.call(a, b);
774 if (d || c.disconnectedMatch || a.document && 11 !== a.document.nodeType) return d
775 } catch (e) {}
776 return ga(b, n, null, [a]).length > 0
777 }, ga.contains = function(a, b) {
778 return (a.ownerDocument || a) !== n && m(a), t(a, b)
779 }, ga.attr = function(a, b) {
780 (a.ownerDocument || a) !== n && m(a);
781 var e = d.attrHandle[b.toLowerCase()],
782 f = e && D.call(d.attrHandle, b.toLowerCase()) ? e(a, b, !p) : void 0;
783 return void 0 !== f ? f : c.attributes || !p ? a.getAttribute(b) : (f = a.getAttributeNode(b)) && f.specified ? f.value : null
784 }, ga.error = function(a) {
785 throw new Error("Syntax error, unrecognized expression: " + a)
786 }, ga.uniqueSort = function(a) {
787 var b, d = [],
788 e = 0,
789 f = 0;
790 if (l = !c.detectDuplicates, k = !c.sortStable && a.slice(0), a.sort(B), l) {
791 while (b = a[f++]) b === a[f] && (e = d.push(f));
792 while (e--) a.splice(d[e], 1)
793 }
794 return k = null, a
795 }, e = ga.getText = function(a) {
796 var b, c = "",
797 d = 0,
798 f = a.nodeType;
799 if (f) {
800 if (1 === f || 9 === f || 11 === f) {
801 if ("string" == typeof a.textContent) return a.textContent;
802 for (a = a.firstChild; a; a = a.nextSibling) c += e(a)
803 } else if (3 === f || 4 === f) return a.nodeValue
804 } else
805 while (b = a[d++]) c += e(b);
806 return c
807 }, d = ga.selectors = {
808 cacheLength: 50,
809 createPseudo: ia,
810 match: X,
811 attrHandle: {},
812 find: {},
813 relative: {
814 ">": {
815 dir: "parentNode",
816 first: !0
817 },
818 " ": {
819 dir: "parentNode"
820 },
821 "+": {
822 dir: "previousSibling",
823 first: !0
824 },
825 "~": {
826 dir: "previousSibling"
827 }
828 },
829 preFilter: {
830 ATTR: function(a) {
831 return a[1] = a[1].replace(ca, da), a[3] = (a[3] || a[4] || a[5] || "").replace(ca, da), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4)
832 },
833 CHILD: function(a) {
834 return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || ga.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] && ga.error(a[0]), a
835 },
836 PSEUDO: function(a) {
837 var b, c = !a[6] && a[2];
838 return X.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && V.test(c) && (b = g(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))
839 }
840 },
841 filter: {
842 TAG: function(a) {
843 var b = a.replace(ca, da).toLowerCase();
844 return "*" === a ? function() {
845 return !0
846 } : function(a) {
847 return a.nodeName && a.nodeName.toLowerCase() === b
848 }
849 },
850 CLASS: function(a) {
851 var b = y[a + " "];
852 return b || (b = new RegExp("(^|" + L + ")" + a + "(" + L + "|$)")) && y(a, function(a) {
853 return b.test("string" == typeof a.className && a.className || "undefined" != typeof a.getAttribute && a.getAttribute("class") || "")
854 })
855 },
856 ATTR: function(a, b, c) {
857 return function(d) {
858 var e = ga.attr(d, a);
859 return null == e ? "!=" === b : b ? (e += "", "=" === b ? e === c : "!=" === b ? e !== c : "^=" === b ? c && 0 === e.indexOf(c) : "*=" === b ? c && e.indexOf(c) > -1 : "$=" === b ? c && e.slice(-c.length) === c : "~=" === b ? (" " + e.replace(Q, " ") + " ").indexOf(c) > -1 : "|=" === b ? e === c || e.slice(0, c.length + 1) === c + "-" : !1) : !0
860 }
861 },
862 CHILD: function(a, b, c, d, e) {
863 var f = "nth" !== a.slice(0, 3),
864 g = "last" !== a.slice(-4),
865 h = "of-type" === b;
866 return 1 === d && 0 === e ? function(a) {
867 return !!a.parentNode
868 } : function(b, c, i) {
869 var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling",
870 q = b.parentNode,
871 r = h && b.nodeName.toLowerCase(),
872 s = !i && !h;
873 if (q) {
874 if (f) {
875 while (p) {
876 l = b;
877 while (l = l[p])
878 if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) return !1;
879 o = p = "only" === a && !o && "nextSibling"
880 }
881 return !0
882 }
883 if (o = [g ? q.firstChild : q.lastChild], g && s) {
884 k = q[u] || (q[u] = {}), j = k[a] || [], n = j[0] === w && j[1], m = j[0] === w && j[2], l = n && q.childNodes[n];
885 while (l = ++n && l && l[p] || (m = n = 0) || o.pop())
886 if (1 === l.nodeType && ++m && l === b) {
887 k[a] = [w, n, m];
888 break
889 }
890 } else if (s && (j = (b[u] || (b[u] = {}))[a]) && j[0] === w) m = j[1];
891 else
892 while (l = ++n && l && l[p] || (m = n = 0) || o.pop())
893 if ((h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) && ++m && (s && ((l[u] || (l[u] = {}))[a] = [w, m]), l === b)) break;
894 return m -= e, m === d || m % d === 0 && m / d >= 0
895 }
896 }
897 },
898 PSEUDO: function(a, b) {
899 var c, e = d.pseudos[a] || d.setFilters[a.toLowerCase()] || ga.error("unsupported pseudo: " + a);
900 return e[u] ? e(b) : e.length > 1 ? (c = [a, a, "", b], d.setFilters.hasOwnProperty(a.toLowerCase()) ? ia(function(a, c) {
901 var d, f = e(a, b),
902 g = f.length;
903 while (g--) d = J(a, f[g]), a[d] = !(c[d] = f[g])
904 }) : function(a) {
905 return e(a, 0, c)
906 }) : e
907 }
908 },
909 pseudos: {
910 not: ia(function(a) {
911 var b = [],
912 c = [],
913 d = h(a.replace(R, "$1"));
914 return d[u] ? ia(function(a, b, c, e) {
915 var f, g = d(a, null, e, []),
916 h = a.length;
917 while (h--)(f = g[h]) && (a[h] = !(b[h] = f))
918 }) : function(a, e, f) {
919 return b[0] = a, d(b, null, f, c), b[0] = null, !c.pop()
920 }
921 }),
922 has: ia(function(a) {
923 return function(b) {
924 return ga(a, b).length > 0
925 }
926 }),
927 contains: ia(function(a) {
928 return a = a.replace(ca, da),
929 function(b) {
930 return (b.textContent || b.innerText || e(b)).indexOf(a) > -1
931 }
932 }),
933 lang: ia(function(a) {
934 return W.test(a || "") || ga.error("unsupported lang: " + a), a = a.replace(ca, da).toLowerCase(),
935 function(b) {
936 var c;
937 do {
938 if (c = p ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-")
939 } while ((b = b.parentNode) && 1 === b.nodeType);
940 return !1
941 }
942 }),
943 target: function(b) {
944 var c = a.location && a.location.hash;
945 return c && c.slice(1) === b.id
946 },
947 root: function(a) {
948 return a === o
949 },
950 focus: function(a) {
951 return a === n.activeElement && (!n.hasFocus || n.hasFocus()) && !!(a.type || a.href || ~a.tabIndex)
952 },
953 enabled: function(a) {
954 return a.disabled === !1
955 },
956 disabled: function(a) {
957 return a.disabled === !0
958 },
959 checked: function(a) {
960 var b = a.nodeName.toLowerCase();
961 return "input" === b && !!a.checked || "option" === b && !!a.selected
962 },
963 selected: function(a) {
964 return a.parentNode && a.parentNode.selectedIndex, a.selected === !0
965 },
966 empty: function(a) {
967 for (a = a.firstChild; a; a = a.nextSibling)
968 if (a.nodeType < 6) return !1;
969 return !0
970 },
971 parent: function(a) {
972 return !d.pseudos.empty(a)
973 },
974 header: function(a) {
975 return Z.test(a.nodeName)
976 },
977 input: function(a) {
978 return Y.test(a.nodeName)
979 },
980 button: function(a) {
981 var b = a.nodeName.toLowerCase();
982 return "input" === b && "button" === a.type || "button" === b
983 },
984 text: function(a) {
985 var b;
986 return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase())
987 },
988 first: oa(function() {
989 return [0]
990 }),
991 last: oa(function(a, b) {
992 return [b - 1]
993 }),
994 eq: oa(function(a, b, c) {
995 return [0 > c ? c + b : c]
996 }),
997 even: oa(function(a, b) {
998 for (var c = 0; b > c; c += 2) a.push(c);
999 return a
1000 }),
1001 odd: oa(function(a, b) {
1002 for (var c = 1; b > c; c += 2) a.push(c);
1003 return a
1004 }),
1005 lt: oa(function(a, b, c) {
1006 for (var d = 0 > c ? c + b : c; --d >= 0;) a.push(d);
1007 return a
1008 }),
1009 gt: oa(function(a, b, c) {
1010 for (var d = 0 > c ? c + b : c; ++d < b;) a.push(d);
1011 return a
1012 })
1013 }
1014 }, d.pseudos.nth = d.pseudos.eq;
1015 for (b in {
1016 radio: !0,
1017 checkbox: !0,
1018 file: !0,
1019 password: !0,
1020 image: !0
1021 }) d.pseudos[b] = ma(b);
1022 for (b in {
1023 submit: !0,
1024 reset: !0
1025 }) d.pseudos[b] = na(b);
1026
1027 function qa() {}
1028 qa.prototype = d.filters = d.pseudos, d.setFilters = new qa, g = ga.tokenize = function(a, b) {
1029 var c, e, f, g, h, i, j, k = z[a + " "];
1030 if (k) return b ? 0 : k.slice(0);
1031 h = a, i = [], j = d.preFilter;
1032 while (h) {
1033 (!c || (e = S.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), c = !1, (e = T.exec(h)) && (c = e.shift(), f.push({
1034 value: c,
1035 type: e[0].replace(R, " ")
1036 }), h = h.slice(c.length));
1037 for (g in d.filter) !(e = X[g].exec(h)) || j[g] && !(e = j[g](e)) || (c = e.shift(), f.push({
1038 value: c,
1039 type: g,
1040 matches: e
1041 }), h = h.slice(c.length));
1042 if (!c) break
1043 }
1044 return b ? h.length : h ? ga.error(a) : z(a, i).slice(0)
1045 };
1046
1047 function ra(a) {
1048 for (var b = 0, c = a.length, d = ""; c > b; b++) d += a[b].value;
1049 return d
1050 }
1051
1052 function sa(a, b, c) {
1053 var d = b.dir,
1054 e = c && "parentNode" === d,
1055 f = x++;
1056 return b.first ? function(b, c, f) {
1057 while (b = b[d])
1058 if (1 === b.nodeType || e) return a(b, c, f)
1059 } : function(b, c, g) {
1060 var h, i, j = [w, f];
1061 if (g) {
1062 while (b = b[d])
1063 if ((1 === b.nodeType || e) && a(b, c, g)) return !0
1064 } else
1065 while (b = b[d])
1066 if (1 === b.nodeType || e) {
1067 if (i = b[u] || (b[u] = {}), (h = i[d]) && h[0] === w && h[1] === f) return j[2] = h[2];
1068 if (i[d] = j, j[2] = a(b, c, g)) return !0
1069 }
1070 }
1071 }
1072
1073 function ta(a) {
1074 return a.length > 1 ? function(b, c, d) {
1075 var e = a.length;
1076 while (e--)
1077 if (!a[e](b, c, d)) return !1;
1078 return !0
1079 } : a[0]
1080 }
1081
1082 function ua(a, b, c) {
1083 for (var d = 0, e = b.length; e > d; d++) ga(a, b[d], c);
1084 return c
1085 }
1086
1087 function va(a, b, c, d, e) {
1088 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));
1089 return g
1090 }
1091
1092 function wa(a, b, c, d, e, f) {
1093 return d && !d[u] && (d = wa(d)), e && !e[u] && (e = wa(e, f)), ia(function(f, g, h, i) {
1094 var j, k, l, m = [],
1095 n = [],
1096 o = g.length,
1097 p = f || ua(b || "*", h.nodeType ? [h] : h, []),
1098 q = !a || !f && b ? p : va(p, m, a, h, i),
1099 r = c ? e || (f ? a : o || d) ? [] : g : q;
1100 if (c && c(q, r, h, i), d) {
1101 j = va(r, n), d(j, [], h, i), k = j.length;
1102 while (k--)(l = j[k]) && (r[n[k]] = !(q[n[k]] = l))
1103 }
1104 if (f) {
1105 if (e || a) {
1106 if (e) {
1107 j = [], k = r.length;
1108 while (k--)(l = r[k]) && j.push(q[k] = l);
1109 e(null, r = [], j, i)
1110 }
1111 k = r.length;
1112 while (k--)(l = r[k]) && (j = e ? J(f, l) : m[k]) > -1 && (f[j] = !(g[j] = l))
1113 }
1114 } else r = va(r === g ? r.splice(o, r.length) : r), e ? e(null, g, r, i) : H.apply(g, r)
1115 })
1116 }
1117
1118 function xa(a) {
1119 for (var b, c, e, f = a.length, g = d.relative[a[0].type], h = g || d.relative[" "], i = g ? 1 : 0, k = sa(function(a) {
1120 return a === b
1121 }, h, !0), l = sa(function(a) {
1122 return J(b, a) > -1
1123 }, h, !0), m = [function(a, c, d) {
1124 var e = !g && (d || c !== j) || ((b = c).nodeType ? k(a, c, d) : l(a, c, d));
1125 return b = null, e
1126 }]; f > i; i++)
1127 if (c = d.relative[a[i].type]) m = [sa(ta(m), c)];
1128 else {
1129 if (c = d.filter[a[i].type].apply(null, a[i].matches), c[u]) {
1130 for (e = ++i; f > e; e++)
1131 if (d.relative[a[e].type]) break;
1132 return wa(i > 1 && ta(m), i > 1 && ra(a.slice(0, i - 1).concat({
1133 value: " " === a[i - 2].type ? "*" : ""
1134 })).replace(R, "$1"), c, e > i && xa(a.slice(i, e)), f > e && xa(a = a.slice(e)), f > e && ra(a))
1135 }
1136 m.push(c)
1137 }
1138 return ta(m)
1139 }
1140
1141 function ya(a, b) {
1142 var c = b.length > 0,
1143 e = a.length > 0,
1144 f = function(f, g, h, i, k) {
1145 var l, m, o, p = 0,
1146 q = "0",
1147 r = f && [],
1148 s = [],
1149 t = j,
1150 u = f || e && d.find.TAG("*", k),
1151 v = w += null == t ? 1 : Math.random() || .1,
1152 x = u.length;
1153 for (k && (j = g !== n && g); q !== x && null != (l = u[q]); q++) {
1154 if (e && l) {
1155 m = 0;
1156 while (o = a[m++])
1157 if (o(l, g, h)) {
1158 i.push(l);
1159 break
1160 }
1161 k && (w = v)
1162 }
1163 c && ((l = !o && l) && p--, f && r.push(l))
1164 }
1165 if (p += q, c && q !== p) {
1166 m = 0;
1167 while (o = b[m++]) o(r, s, g, h);
1168 if (f) {
1169 if (p > 0)
1170 while (q--) r[q] || s[q] || (s[q] = F.call(i));
1171 s = va(s)
1172 }
1173 H.apply(i, s), k && !f && s.length > 0 && p + b.length > 1 && ga.uniqueSort(i)
1174 }
1175 return k && (w = v, j = t), r
1176 };
1177 return c ? ia(f) : f
1178 }
1179 return h = ga.compile = function(a, b) {
1180 var c, d = [],
1181 e = [],
1182 f = A[a + " "];
1183 if (!f) {
1184 b || (b = g(a)), c = b.length;
1185 while (c--) f = xa(b[c]), f[u] ? d.push(f) : e.push(f);
1186 f = A(a, ya(e, d)), f.selector = a
1187 }
1188 return f
1189 }, i = ga.select = function(a, b, e, f) {
1190 var i, j, k, l, m, n = "function" == typeof a && a,
1191 o = !f && g(a = n.selector || a);
1192 if (e = e || [], 1 === o.length) {
1193 if (j = o[0] = o[0].slice(0), j.length > 2 && "ID" === (k = j[0]).type && c.getById && 9 === b.nodeType && p && d.relative[j[1].type]) {
1194 if (b = (d.find.ID(k.matches[0].replace(ca, da), b) || [])[0], !b) return e;
1195 n && (b = b.parentNode), a = a.slice(j.shift().value.length)
1196 }
1197 i = X.needsContext.test(a) ? 0 : j.length;
1198 while (i--) {
1199 if (k = j[i], d.relative[l = k.type]) break;
1200 if ((m = d.find[l]) && (f = m(k.matches[0].replace(ca, da), aa.test(j[0].type) && pa(b.parentNode) || b))) {
1201 if (j.splice(i, 1), a = f.length && ra(j), !a) return H.apply(e, f), e;
1202 break
1203 }
1204 }
1205 }
1206 return (n || h(a, o))(f, b, !p, e, aa.test(a) && pa(b.parentNode) || b), e
1207 }, c.sortStable = u.split("").sort(B).join("") === u, c.detectDuplicates = !!l, m(), c.sortDetached = ja(function(a) {
1208 return 1 & a.compareDocumentPosition(n.createElement("div"))
1209 }), ja(function(a) {
1210 return a.innerHTML = "<a href='#'></a>", "#" === a.firstChild.getAttribute("href")
1211 }) || ka("type|href|height|width", function(a, b, c) {
1212 return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2)
1213 }), c.attributes && ja(function(a) {
1214 return a.innerHTML = "<input/>", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value")
1215 }) || ka("value", function(a, b, c) {
1216 return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue
1217 }), ja(function(a) {
1218 return null == a.getAttribute("disabled")
1219 }) || ka(K, function(a, b, c) {
1220 var d;
1221 return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
1222 }), ga
1223 }(a);
1224 n.find = t, n.expr = t.selectors, n.expr[":"] = n.expr.pseudos, n.unique = t.uniqueSort, n.text = t.getText, n.isXMLDoc = t.isXML, n.contains = t.contains;
1225 var u = n.expr.match.needsContext,
1226 v = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
1227 w = /^.[^:#\[\.,]*$/;
1228
1229 function x(a, b, c) {
1230 if (n.isFunction(b)) return n.grep(a, function(a, d) {
1231 return !!b.call(a, d, a) !== c
1232 });
1233 if (b.nodeType) return n.grep(a, function(a) {
1234 return a === b !== c
1235 });
1236 if ("string" == typeof b) {
1237 if (w.test(b)) return n.filter(b, a, c);
1238 b = n.filter(b, a)
1239 }
1240 return n.grep(a, function(a) {
1241 return g.call(b, a) >= 0 !== c
1242 })
1243 }
1244 n.filter = function(a, b, c) {
1245 var d = b[0];
1246 return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? n.find.matchesSelector(d, a) ? [d] : [] : n.find.matches(a, n.grep(b, function(a) {
1247 return 1 === a.nodeType
1248 }))
1249 }, n.fn.extend({
1250 find: function(a) {
1251 var b, c = this.length,
1252 d = [],
1253 e = this;
1254 if ("string" != typeof a) return this.pushStack(n(a).filter(function() {
1255 for (b = 0; c > b; b++)
1256 if (n.contains(e[b], this)) return !0
1257 }));
1258 for (b = 0; c > b; b++) n.find(a, e[b], d);
1259 return d = this.pushStack(c > 1 ? n.unique(d) : d), d.selector = this.selector ? this.selector + " " + a : a, d
1260 },
1261 filter: function(a) {
1262 return this.pushStack(x(this, a || [], !1))
1263 },
1264 not: function(a) {
1265 return this.pushStack(x(this, a || [], !0))
1266 },
1267 is: function(a) {
1268 return !!x(this, "string" == typeof a && u.test(a) ? n(a) : a || [], !1).length
1269 }
1270 });
1271 var y, z = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
1272 A = n.fn.init = function(a, b) {
1273 var c, d;
1274 if (!a) return this;
1275 if ("string" == typeof a) {
1276 if (c = "<" === a[0] && ">" === a[a.length - 1] && a.length >= 3 ? [null, a, null] : z.exec(a), !c || !c[1] && b) return !b || b.jquery ? (b || y).find(a) : this.constructor(b).find(a);
1277 if (c[1]) {
1278 if (b = b instanceof n ? b[0] : b, n.merge(this, n.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : l, !0)), v.test(c[1]) && n.isPlainObject(b))
1279 for (c in b) n.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]);
1280 return this
1281 }
1282 return d = l.getElementById(c[2]), d && d.parentNode && (this.length = 1, this[0] = d), this.context = l, this.selector = a, this
1283 }
1284 return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : n.isFunction(a) ? "undefined" != typeof y.ready ? y.ready(a) : a(n) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), n.makeArray(a, this))
1285 };
1286 A.prototype = n.fn, y = n(l);
1287 var B = /^(?:parents|prev(?:Until|All))/,
1288 C = {
1289 children: !0,
1290 contents: !0,
1291 next: !0,
1292 prev: !0
1293 };
1294 n.extend({
1295 dir: function(a, b, c) {
1296 var d = [],
1297 e = void 0 !== c;
1298 while ((a = a[b]) && 9 !== a.nodeType)
1299 if (1 === a.nodeType) {
1300 if (e && n(a).is(c)) break;
1301 d.push(a)
1302 }
1303 return d
1304 },
1305 sibling: function(a, b) {
1306 for (var c = []; a; a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a);
1307 return c
1308 }
1309 }), n.fn.extend({
1310 has: function(a) {
1311 var b = n(a, this),
1312 c = b.length;
1313 return this.filter(function() {
1314 for (var a = 0; c > a; a++)
1315 if (n.contains(this, b[a])) return !0
1316 })
1317 },
1318 closest: function(a, b) {
1319 for (var c, d = 0, e = this.length, f = [], g = u.test(a) || "string" != typeof a ? n(a, b || this.context) : 0; e > d; d++)
1320 for (c = this[d]; c && c !== b; c = c.parentNode)
1321 if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && n.find.matchesSelector(c, a))) {
1322 f.push(c);
1323 break
1324 }
1325 return this.pushStack(f.length > 1 ? n.unique(f) : f)
1326 },
1327 index: function(a) {
1328 return a ? "string" == typeof a ? g.call(n(a), this[0]) : g.call(this, a.jquery ? a[0] : a) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
1329 },
1330 add: function(a, b) {
1331 return this.pushStack(n.unique(n.merge(this.get(), n(a, b))))
1332 },
1333 addBack: function(a) {
1334 return this.add(null == a ? this.prevObject : this.prevObject.filter(a))
1335 }
1336 });
1337
1338 function D(a, b) {
1339 while ((a = a[b]) && 1 !== a.nodeType);
1340 return a
1341 }
1342 n.each({
1343 parent: function(a) {
1344 var b = a.parentNode;
1345 return b && 11 !== b.nodeType ? b : null
1346 },
1347 parents: function(a) {
1348 return n.dir(a, "parentNode")
1349 },
1350 parentsUntil: function(a, b, c) {
1351 return n.dir(a, "parentNode", c)
1352 },
1353 next: function(a) {
1354 return D(a, "nextSibling")
1355 },
1356 prev: function(a) {
1357 return D(a, "previousSibling")
1358 },
1359 nextAll: function(a) {
1360 return n.dir(a, "nextSibling")
1361 },
1362 prevAll: function(a) {
1363 return n.dir(a, "previousSibling")
1364 },
1365 nextUntil: function(a, b, c) {
1366 return n.dir(a, "nextSibling", c)
1367 },
1368 prevUntil: function(a, b, c) {
1369 return n.dir(a, "previousSibling", c)
1370 },
1371 siblings: function(a) {
1372 return n.sibling((a.parentNode || {}).firstChild, a)
1373 },
1374 children: function(a) {
1375 return n.sibling(a.firstChild)
1376 },
1377 contents: function(a) {
1378 return a.contentDocument || n.merge([], a.childNodes)
1379 }
1380 }, function(a, b) {
1381 n.fn[a] = function(c, d) {
1382 var e = n.map(this, b, c);
1383 return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = n.filter(d, e)), this.length > 1 && (C[a] || n.unique(e), B.test(a) && e.reverse()), this.pushStack(e)
1384 }
1385 });
1386 var E = /\S+/g,
1387 F = {};
1388
1389 function G(a) {
1390 var b = F[a] = {};
1391 return n.each(a.match(E) || [], function(a, c) {
1392 b[c] = !0
1393 }), b
1394 }
1395 n.Callbacks = function(a) {
1396 a = "string" == typeof a ? F[a] || G(a) : n.extend({}, a);
1397 var b, c, d, e, f, g, h = [],
1398 i = !a.once && [],
1399 j = function(l) {
1400 for (b = a.memory && l, c = !0, g = e || 0, e = 0, f = h.length, d = !0; h && f > g; g++)
1401 if (h[g].apply(l[0], l[1]) === !1 && a.stopOnFalse) {
1402 b = !1;
1403 break
1404 }
1405 d = !1, h && (i ? i.length && j(i.shift()) : b ? h = [] : k.disable())
1406 },
1407 k = {
1408 add: function() {
1409 if (h) {
1410 var c = h.length;
1411 ! function g(b) {
1412 n.each(b, function(b, c) {
1413 var d = n.type(c);
1414 "function" === d ? a.unique && k.has(c) || h.push(c) : c && c.length && "string" !== d && g(c)
1415 })
1416 }(arguments), d ? f = h.length : b && (e = c, j(b))
1417 }
1418 return this
1419 },
1420 remove: function() {
1421 return h && n.each(arguments, function(a, b) {
1422 var c;
1423 while ((c = n.inArray(b, h, c)) > -1) h.splice(c, 1), d && (f >= c && f--, g >= c && g--)
1424 }), this
1425 },
1426 has: function(a) {
1427 return a ? n.inArray(a, h) > -1 : !(!h || !h.length)
1428 },
1429 empty: function() {
1430 return h = [], f = 0, this
1431 },
1432 disable: function() {
1433 return h = i = b = void 0, this
1434 },
1435 disabled: function() {
1436 return !h
1437 },
1438 lock: function() {
1439 return i = void 0, b || k.disable(), this
1440 },
1441 locked: function() {
1442 return !i
1443 },
1444 fireWith: function(a, b) {
1445 return !h || c && !i || (b = b || [], b = [a, b.slice ? b.slice() : b], d ? i.push(b) : j(b)), this
1446 },
1447 fire: function() {
1448 return k.fireWith(this, arguments), this
1449 },
1450 fired: function() {
1451 return !!c
1452 }
1453 };
1454 return k
1455 }, n.extend({
1456 Deferred: function(a) {
1457 var b = [
1458 ["resolve", "done", n.Callbacks("once memory"), "resolved"],
1459 ["reject", "fail", n.Callbacks("once memory"), "rejected"],
1460 ["notify", "progress", n.Callbacks("memory")]
1461 ],
1462 c = "pending",
1463 d = {
1464 state: function() {
1465 return c
1466 },
1467 always: function() {
1468 return e.done(arguments).fail(arguments), this
1469 },
1470 then: function() {
1471 var a = arguments;
1472 return n.Deferred(function(c) {
1473 n.each(b, function(b, f) {
1474 var g = n.isFunction(a[b]) && a[b];
1475 e[f[1]](function() {
1476 var a = g && g.apply(this, arguments);
1477 a && n.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)
1478 })
1479 }), a = null
1480 }).promise()
1481 },
1482 promise: function(a) {
1483 return null != a ? n.extend(a, d) : d
1484 }
1485 },
1486 e = {};
1487 return d.pipe = d.then, n.each(b, function(a, f) {
1488 var g = f[2],
1489 h = f[3];
1490 d[f[1]] = g.add, h && g.add(function() {
1491 c = h
1492 }, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function() {
1493 return e[f[0] + "With"](this === e ? d : this, arguments), this
1494 }, e[f[0] + "With"] = g.fireWith
1495 }), d.promise(e), a && a.call(e, e), e
1496 },
1497 when: function(a) {
1498 var b = 0,
1499 c = d.call(arguments),
1500 e = c.length,
1501 f = 1 !== e || a && n.isFunction(a.promise) ? e : 0,
1502 g = 1 === f ? a : n.Deferred(),
1503 h = function(a, b, c) {
1504 return function(e) {
1505 b[a] = this, c[a] = arguments.length > 1 ? d.call(arguments) : e, c === i ? g.notifyWith(b, c) : --f || g.resolveWith(b, c)
1506 }
1507 },
1508 i, j, k;
1509 if (e > 1)
1510 for (i = new Array(e), j = new Array(e), k = new Array(e); e > b; b++) c[b] && n.isFunction(c[b].promise) ? c[b].promise().done(h(b, k, c)).fail(g.reject).progress(h(b, j, i)) : --f;
1511 return f || g.resolveWith(k, c), g.promise()
1512 }
1513 });
1514 var H;
1515 n.fn.ready = function(a) {
1516 return n.ready.promise().done(a), this
1517 }, n.extend({
1518 isReady: !1,
1519 readyWait: 1,
1520 holdReady: function(a) {
1521 a ? n.readyWait++ : n.ready(!0)
1522 },
1523 ready: function(a) {
1524 (a === !0 ? --n.readyWait : n.isReady) || (n.isReady = !0, a !== !0 && --n.readyWait > 0 || (H.resolveWith(l, [n]), n.fn.triggerHandler && (n(l).triggerHandler("ready"), n(l).off("ready"))))
1525 }
1526 });
1527
1528 function I() {
1529 l.removeEventListener("DOMContentLoaded", I, !1), a.removeEventListener("load", I, !1), n.ready()
1530 }
1531 n.ready.promise = function(b) {
1532 return H || (H = n.Deferred(), "complete" === l.readyState ? setTimeout(n.ready) : (l.addEventListener("DOMContentLoaded", I, !1), a.addEventListener("load", I, !1))), H.promise(b)
1533 }, n.ready.promise();
1534 var J = n.access = function(a, b, c, d, e, f, g) {
1535 var h = 0,
1536 i = a.length,
1537 j = null == c;
1538 if ("object" === n.type(c)) {
1539 e = !0;
1540 for (h in c) n.access(a, b, h, c[h], !0, f, g)
1541 } else if (void 0 !== d && (e = !0, n.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function(a, b, c) {
1542 return j.call(n(a), c)
1543 })), b))
1544 for (; i > h; h++) b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c)));
1545 return e ? a : j ? b.call(a) : i ? b(a[0], c) : f
1546 };
1547 n.acceptData = function(a) {
1548 return 1 === a.nodeType || 9 === a.nodeType || !+a.nodeType
1549 };
1550
1551 function K() {
1552 Object.defineProperty(this.cache = {}, 0, {
1553 get: function() {
1554 return {}
1555 }
1556 }), this.expando = n.expando + K.uid++
1557 }
1558 K.uid = 1, K.accepts = n.acceptData, K.prototype = {
1559 key: function(a) {
1560 if (!K.accepts(a)) return 0;
1561 var b = {},
1562 c = a[this.expando];
1563 if (!c) {
1564 c = K.uid++;
1565 try {
1566 b[this.expando] = {
1567 value: c
1568 }, Object.defineProperties(a, b)
1569 } catch (d) {
1570 b[this.expando] = c, n.extend(a, b)
1571 }
1572 }
1573 return this.cache[c] || (this.cache[c] = {}), c
1574 },
1575 set: function(a, b, c) {
1576 var d, e = this.key(a),
1577 f = this.cache[e];
1578 if ("string" == typeof b) f[b] = c;
1579 else if (n.isEmptyObject(f)) n.extend(this.cache[e], b);
1580 else
1581 for (d in b) f[d] = b[d];
1582 return f
1583 },
1584 get: function(a, b) {
1585 var c = this.cache[this.key(a)];
1586 return void 0 === b ? c : c[b]
1587 },
1588 access: function(a, b, c) {
1589 var d;
1590 return void 0 === b || b && "string" == typeof b && void 0 === c ? (d = this.get(a, b), void 0 !== d ? d : this.get(a, n.camelCase(b))) : (this.set(a, b, c), void 0 !== c ? c : b)
1591 },
1592 remove: function(a, b) {
1593 var c, d, e, f = this.key(a),
1594 g = this.cache[f];
1595 if (void 0 === b) this.cache[f] = {};
1596 else {
1597 n.isArray(b) ? d = b.concat(b.map(n.camelCase)) : (e = n.camelCase(b), b in g ? d = [b, e] : (d = e, d = d in g ? [d] : d.match(E) || [])), c = d.length;
1598 while (c--) delete g[d[c]]
1599 }
1600 },
1601 hasData: function(a) {
1602 return !n.isEmptyObject(this.cache[a[this.expando]] || {})
1603 },
1604 discard: function(a) {
1605 a[this.expando] && delete this.cache[a[this.expando]]
1606 }
1607 };
1608 var L = new K,
1609 M = new K,
1610 N = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
1611 O = /([A-Z])/g;
1612
1613 function P(a, b, c) {
1614 var d;
1615 if (void 0 === c && 1 === a.nodeType)
1616 if (d = "data-" + b.replace(O, "-$1").toLowerCase(), c = a.getAttribute(d), "string" == typeof c) {
1617 try {
1618 c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : N.test(c) ? n.parseJSON(c) : c
1619 } catch (e) {}
1620 M.set(a, b, c)
1621 } else c = void 0;
1622 return c
1623 }
1624 n.extend({
1625 hasData: function(a) {
1626 return M.hasData(a) || L.hasData(a)
1627 },
1628 data: function(a, b, c) {
1629 return M.access(a, b, c)
1630 },
1631 removeData: function(a, b) {
1632 M.remove(a, b)
1633 },
1634 _data: function(a, b, c) {
1635 return L.access(a, b, c)
1636 },
1637 _removeData: function(a, b) {
1638 L.remove(a, b)
1639 }
1640 }), n.fn.extend({
1641 data: function(a, b) {
1642 var c, d, e, f = this[0],
1643 g = f && f.attributes;
1644 if (void 0 === a) {
1645 if (this.length && (e = M.get(f), 1 === f.nodeType && !L.get(f, "hasDataAttrs"))) {
1646 c = g.length;
1647 while (c--) g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = n.camelCase(d.slice(5)), P(f, d, e[d])));
1648 L.set(f, "hasDataAttrs", !0)
1649 }
1650 return e
1651 }
1652 return "object" == typeof a ? this.each(function() {
1653 M.set(this, a)
1654 }) : J(this, function(b) {
1655 var c, d = n.camelCase(a);
1656 if (f && void 0 === b) {
1657 if (c = M.get(f, a), void 0 !== c) return c;
1658 if (c = M.get(f, d), void 0 !== c) return c;
1659 if (c = P(f, d, void 0), void 0 !== c) return c
1660 } else this.each(function() {
1661 var c = M.get(this, d);
1662 M.set(this, d, b), -1 !== a.indexOf("-") && void 0 !== c && M.set(this, a, b)
1663 })
1664 }, null, b, arguments.length > 1, null, !0)
1665 },
1666 removeData: function(a) {
1667 return this.each(function() {
1668 M.remove(this, a)
1669 })
1670 }
1671 }), n.extend({
1672 queue: function(a, b, c) {
1673 var d;
1674 return a ? (b = (b || "fx") + "queue", d = L.get(a, b), c && (!d || n.isArray(c) ? d = L.access(a, b, n.makeArray(c)) : d.push(c)), d || []) : void 0
1675 },
1676 dequeue: function(a, b) {
1677 b = b || "fx";
1678 var c = n.queue(a, b),
1679 d = c.length,
1680 e = c.shift(),
1681 f = n._queueHooks(a, b),
1682 g = function() {
1683 n.dequeue(a, b)
1684 };
1685 "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()
1686 },
1687 _queueHooks: function(a, b) {
1688 var c = b + "queueHooks";
1689 return L.get(a, c) || L.access(a, c, {
1690 empty: n.Callbacks("once memory").add(function() {
1691 L.remove(a, [b + "queue", c])
1692 })
1693 })
1694 }
1695 }), n.fn.extend({
1696 queue: function(a, b) {
1697 var c = 2;
1698 return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? n.queue(this[0], a) : void 0 === b ? this : this.each(function() {
1699 var c = n.queue(this, a, b);
1700 n._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && n.dequeue(this, a)
1701 })
1702 },
1703 dequeue: function(a) {
1704 return this.each(function() {
1705 n.dequeue(this, a)
1706 })
1707 },
1708 clearQueue: function(a) {
1709 return this.queue(a || "fx", [])
1710 },
1711 promise: function(a, b) {
1712 var c, d = 1,
1713 e = n.Deferred(),
1714 f = this,
1715 g = this.length,
1716 h = function() {
1717 --d || e.resolveWith(f, [f])
1718 };
1719 "string" != typeof a && (b = a, a = void 0), a = a || "fx";
1720 while (g--) c = L.get(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h));
1721 return h(), e.promise(b)
1722 }
1723 });
1724 var Q = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
1725 R = ["Top", "Right", "Bottom", "Left"],
1726 S = function(a, b) {
1727 return a = b || a, "none" === n.css(a, "display") || !n.contains(a.ownerDocument, a)
1728 },
1729 T = /^(?:checkbox|radio)$/i;
1730 ! function() {
1731 var a = l.createDocumentFragment(),
1732 b = a.appendChild(l.createElement("div")),
1733 c = l.createElement("input");
1734 c.setAttribute("type", "radio"), c.setAttribute("checked", "checked"), c.setAttribute("name", "t"), b.appendChild(c), k.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, b.innerHTML = "<textarea>x</textarea>", k.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue
1735 }();
1736 var U = "undefined";
1737 k.focusinBubbles = "onfocusin" in a;
1738 var V = /^key/,
1739 W = /^(?:mouse|pointer|contextmenu)|click/,
1740 X = /^(?:focusinfocus|focusoutblur)$/,
1741 Y = /^([^.]*)(?:\.(.+)|)$/;
1742
1743 function Z() {
1744 return !0
1745 }
1746
1747 function $() {
1748 return !1
1749 }
1750
1751 function _() {
1752 try {
1753 return l.activeElement
1754 } catch (a) {}
1755 }
1756 n.event = {
1757 global: {},
1758 add: function(a, b, c, d, e) {
1759 var f, g, h, i, j, k, l, m, o, p, q, r = L.get(a);
1760 if (r) {
1761 c.handler && (f = c, c = f.handler, e = f.selector), c.guid || (c.guid = n.guid++), (i = r.events) || (i = r.events = {}), (g = r.handle) || (g = r.handle = function(b) {
1762 return typeof n !== U && n.event.triggered !== b.type ? n.event.dispatch.apply(a, arguments) : void 0
1763 }), b = (b || "").match(E) || [""], j = b.length;
1764 while (j--) h = Y.exec(b[j]) || [], o = q = h[1], p = (h[2] || "").split(".").sort(), o && (l = n.event.special[o] || {}, o = (e ? l.delegateType : l.bindType) || o, l = n.event.special[o] || {}, k = n.extend({
1765 type: o,
1766 origType: q,
1767 data: d,
1768 handler: c,
1769 guid: c.guid,
1770 selector: e,
1771 needsContext: e && n.expr.match.needsContext.test(e),
1772 namespace: p.join(".")
1773 }, f), (m = i[o]) || (m = i[o] = [], m.delegateCount = 0, l.setup && l.setup.call(a, d, p, g) !== !1 || a.addEventListener && a.addEventListener(o, 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), n.event.global[o] = !0)
1774 }
1775 },
1776 remove: function(a, b, c, d, e) {
1777 var f, g, h, i, j, k, l, m, o, p, q, r = L.hasData(a) && L.get(a);
1778 if (r && (i = r.events)) {
1779 b = (b || "").match(E) || [""], j = b.length;
1780 while (j--)
1781 if (h = Y.exec(b[j]) || [], o = q = h[1], p = (h[2] || "").split(".").sort(), o) {
1782 l = n.event.special[o] || {}, o = (d ? l.delegateType : l.bindType) || o, m = i[o] || [], h = h[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)"), g = f = m.length;
1783 while (f--) k = m[f], !e && q !== 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));
1784 g && !m.length && (l.teardown && l.teardown.call(a, p, r.handle) !== !1 || n.removeEvent(a, o, r.handle), delete i[o])
1785 } else
1786 for (o in i) n.event.remove(a, o + b[j], c, d, !0);
1787 n.isEmptyObject(i) && (delete r.handle, L.remove(a, "events"))
1788 }
1789 },
1790 trigger: function(b, c, d, e) {
1791 var f, g, h, i, k, m, o, p = [d || l],
1792 q = j.call(b, "type") ? b.type : b,
1793 r = j.call(b, "namespace") ? b.namespace.split(".") : [];
1794 if (g = h = d = d || l, 3 !== d.nodeType && 8 !== d.nodeType && !X.test(q + n.event.triggered) && (q.indexOf(".") >= 0 && (r = q.split("."), q = r.shift(), r.sort()), k = q.indexOf(":") < 0 && "on" + q, b = b[n.expando] ? b : new n.Event(q, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = r.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + r.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d), c = null == c ? [b] : n.makeArray(c, [b]), o = n.event.special[q] || {}, e || !o.trigger || o.trigger.apply(d, c) !== !1)) {
1795 if (!e && !o.noBubble && !n.isWindow(d)) {
1796 for (i = o.delegateType || q, X.test(i + q) || (g = g.parentNode); g; g = g.parentNode) p.push(g), h = g;
1797 h === (d.ownerDocument || l) && p.push(h.defaultView || h.parentWindow || a)
1798 }
1799 f = 0;
1800 while ((g = p[f++]) && !b.isPropagationStopped()) b.type = f > 1 ? i : o.bindType || q, m = (L.get(g, "events") || {})[b.type] && L.get(g, "handle"), m && m.apply(g, c), m = k && g[k], m && m.apply && n.acceptData(g) && (b.result = m.apply(g, c), b.result === !1 && b.preventDefault());
1801 return b.type = q, e || b.isDefaultPrevented() || o._default && o._default.apply(p.pop(), c) !== !1 || !n.acceptData(d) || k && n.isFunction(d[q]) && !n.isWindow(d) && (h = d[k], h && (d[k] = null), n.event.triggered = q, d[q](), n.event.triggered = void 0, h && (d[k] = h)), b.result
1802 }
1803 },
1804 dispatch: function(a) {
1805 a = n.event.fix(a);
1806 var b, c, e, f, g, h = [],
1807 i = d.call(arguments),
1808 j = (L.get(this, "events") || {})[a.type] || [],
1809 k = n.event.special[a.type] || {};
1810 if (i[0] = a, a.delegateTarget = this, !k.preDispatch || k.preDispatch.call(this, a) !== !1) {
1811 h = n.event.handlers.call(this, a, j), b = 0;
1812 while ((f = h[b++]) && !a.isPropagationStopped()) {
1813 a.currentTarget = f.elem, c = 0;
1814 while ((g = f.handlers[c++]) && !a.isImmediatePropagationStopped())(!a.namespace_re || a.namespace_re.test(g.namespace)) && (a.handleObj = g, a.data = g.data, e = ((n.event.special[g.origType] || {}).handle || g.handler).apply(f.elem, i), void 0 !== e && (a.result = e) === !1 && (a.preventDefault(), a.stopPropagation()))
1815 }
1816 return k.postDispatch && k.postDispatch.call(this, a), a.result
1817 }
1818 },
1819 handlers: function(a, b) {
1820 var c, d, e, f, g = [],
1821 h = b.delegateCount,
1822 i = a.target;
1823 if (h && i.nodeType && (!a.button || "click" !== a.type))
1824 for (; i !== this; i = i.parentNode || this)
1825 if (i.disabled !== !0 || "click" !== a.type) {
1826 for (d = [], c = 0; h > c; c++) f = b[c], e = f.selector + " ", void 0 === d[e] && (d[e] = f.needsContext ? n(e, this).index(i) >= 0 : n.find(e, this, null, [i]).length), d[e] && d.push(f);
1827 d.length && g.push({
1828 elem: i,
1829 handlers: d
1830 })
1831 }
1832 return h < b.length && g.push({
1833 elem: this,
1834 handlers: b.slice(h)
1835 }), g
1836 },
1837 props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
1838 fixHooks: {},
1839 keyHooks: {
1840 props: "char charCode key keyCode".split(" "),
1841 filter: function(a, b) {
1842 return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a
1843 }
1844 },
1845 mouseHooks: {
1846 props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
1847 filter: function(a, b) {
1848 var c, d, e, f = b.button;
1849 return null == a.pageX && null != b.clientX && (c = a.target.ownerDocument || l, 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
1850 }
1851 },
1852 fix: function(a) {
1853 if (a[n.expando]) return a;
1854 var b, c, d, e = a.type,
1855 f = a,
1856 g = this.fixHooks[e];
1857 g || (this.fixHooks[e] = g = W.test(e) ? this.mouseHooks : V.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new n.Event(f), b = d.length;
1858 while (b--) c = d[b], a[c] = f[c];
1859 return a.target || (a.target = l), 3 === a.target.nodeType && (a.target = a.target.parentNode), g.filter ? g.filter(a, f) : a
1860 },
1861 special: {
1862 load: {
1863 noBubble: !0
1864 },
1865 focus: {
1866 trigger: function() {
1867 return this !== _() && this.focus ? (this.focus(), !1) : void 0
1868 },
1869 delegateType: "focusin"
1870 },
1871 blur: {
1872 trigger: function() {
1873 return this === _() && this.blur ? (this.blur(), !1) : void 0
1874 },
1875 delegateType: "focusout"
1876 },
1877 click: {
1878 trigger: function() {
1879 return "checkbox" === this.type && this.click && n.nodeName(this, "input") ? (this.click(), !1) : void 0
1880 },
1881 _default: function(a) {
1882 return n.nodeName(a.target, "a")
1883 }
1884 },
1885 beforeunload: {
1886 postDispatch: function(a) {
1887 void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result)
1888 }
1889 }
1890 },
1891 simulate: function(a, b, c, d) {
1892 var e = n.extend(new n.Event, c, {
1893 type: a,
1894 isSimulated: !0,
1895 originalEvent: {}
1896 });
1897 d ? n.event.trigger(e, null, b) : n.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault()
1898 }
1899 }, n.removeEvent = function(a, b, c) {
1900 a.removeEventListener && a.removeEventListener(b, c, !1)
1901 }, n.Event = function(a, b) {
1902 return this instanceof n.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? Z : $) : this.type = a, b && n.extend(this, b), this.timeStamp = a && a.timeStamp || n.now(), void(this[n.expando] = !0)) : new n.Event(a, b)
1903 }, n.Event.prototype = {
1904 isDefaultPrevented: $,
1905 isPropagationStopped: $,
1906 isImmediatePropagationStopped: $,
1907 preventDefault: function() {
1908 var a = this.originalEvent;
1909 this.isDefaultPrevented = Z, a && a.preventDefault && a.preventDefault()
1910 },
1911 stopPropagation: function() {
1912 var a = this.originalEvent;
1913 this.isPropagationStopped = Z, a && a.stopPropagation && a.stopPropagation()
1914 },
1915 stopImmediatePropagation: function() {
1916 var a = this.originalEvent;
1917 this.isImmediatePropagationStopped = Z, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation()
1918 }
1919 }, n.each({
1920 mouseenter: "mouseover",
1921 mouseleave: "mouseout",
1922 pointerenter: "pointerover",
1923 pointerleave: "pointerout"
1924 }, function(a, b) {
1925 n.event.special[a] = {
1926 delegateType: b,
1927 bindType: b,
1928 handle: function(a) {
1929 var c, d = this,
1930 e = a.relatedTarget,
1931 f = a.handleObj;
1932 return (!e || e !== d && !n.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c
1933 }
1934 }
1935 }), k.focusinBubbles || n.each({
1936 focus: "focusin",
1937 blur: "focusout"
1938 }, function(a, b) {
1939 var c = function(a) {
1940 n.event.simulate(b, a.target, n.event.fix(a), !0)
1941 };
1942 n.event.special[b] = {
1943 setup: function() {
1944 var d = this.ownerDocument || this,
1945 e = L.access(d, b);
1946 e || d.addEventListener(a, c, !0), L.access(d, b, (e || 0) + 1)
1947 },
1948 teardown: function() {
1949 var d = this.ownerDocument || this,
1950 e = L.access(d, b) - 1;
1951 e ? L.access(d, b, e) : (d.removeEventListener(a, c, !0), L.remove(d, b))
1952 }
1953 }
1954 }), n.fn.extend({
1955 on: function(a, b, c, d, e) {
1956 var f, g;
1957 if ("object" == typeof a) {
1958 "string" != typeof b && (c = c || b, b = void 0);
1959 for (g in a) this.on(g, b, c, a[g], e);
1960 return this
1961 }
1962 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 = $;
1963 else if (!d) return this;
1964 return 1 === e && (f = d, d = function(a) {
1965 return n().off(a), f.apply(this, arguments)
1966 }, d.guid = f.guid || (f.guid = n.guid++)), this.each(function() {
1967 n.event.add(this, a, d, c, b)
1968 })
1969 },
1970 one: function(a, b, c, d) {
1971 return this.on(a, b, c, d, 1)
1972 },
1973 off: function(a, b, c) {
1974 var d, e;
1975 if (a && a.preventDefault && a.handleObj) return d = a.handleObj, n(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this;
1976 if ("object" == typeof a) {
1977 for (e in a) this.off(e, b, a[e]);
1978 return this
1979 }
1980 return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = $), this.each(function() {
1981 n.event.remove(this, a, c, b)
1982 })
1983 },
1984 trigger: function(a, b) {
1985 return this.each(function() {
1986 n.event.trigger(a, b, this)
1987 })
1988 },
1989 triggerHandler: function(a, b) {
1990 var c = this[0];
1991 return c ? n.event.trigger(a, b, c, !0) : void 0
1992 }
1993 });
1994 var aa = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
1995 ba = /<([\w:]+)/,
1996 ca = /<|&#?\w+;/,
1997 da = /<(?:script|style|link)/i,
1998 ea = /checked\s*(?:[^=]|=\s*.checked.)/i,
1999 fa = /^$|\/(?:java|ecma)script/i,
2000 ga = /^true\/(.*)/,
2001 ha = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
2002 ia = {
2003 option: [1, "<select multiple='multiple'>", "</select>"],
2004 thead: [1, "<table>", "</table>"],
2005 col: [2, "<table><colgroup>", "</colgroup></table>"],
2006 tr: [2, "<table><tbody>", "</tbody></table>"],
2007 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
2008 _default: [0, "", ""]
2009 };
2010 ia.optgroup = ia.option, ia.tbody = ia.tfoot = ia.colgroup = ia.caption = ia.thead, ia.th = ia.td;
2011
2012 function ja(a, b) {
2013 return n.nodeName(a, "table") && n.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
2014 }
2015
2016 function ka(a) {
2017 return a.type = (null !== a.getAttribute("type")) + "/" + a.type, a
2018 }
2019
2020 function la(a) {
2021 var b = ga.exec(a.type);
2022 return b ? a.type = b[1] : a.removeAttribute("type"), a
2023 }
2024
2025 function ma(a, b) {
2026 for (var c = 0, d = a.length; d > c; c++) L.set(a[c], "globalEval", !b || L.get(b[c], "globalEval"))
2027 }
2028
2029 function na(a, b) {
2030 var c, d, e, f, g, h, i, j;
2031 if (1 === b.nodeType) {
2032 if (L.hasData(a) && (f = L.access(a), g = L.set(b, f), j = f.events)) {
2033 delete g.handle, g.events = {};
2034 for (e in j)
2035 for (c = 0, d = j[e].length; d > c; c++) n.event.add(b, e, j[e][c])
2036 }
2037 M.hasData(a) && (h = M.access(a), i = n.extend({}, h), M.set(b, i))
2038 }
2039 }
2040
2041 function oa(a, b) {
2042 var c = a.getElementsByTagName ? a.getElementsByTagName(b || "*") : a.querySelectorAll ? a.querySelectorAll(b || "*") : [];
2043 return void 0 === b || b && n.nodeName(a, b) ? n.merge([a], c) : c
2044 }
2045
2046 function pa(a, b) {
2047 var c = b.nodeName.toLowerCase();
2048 "input" === c && T.test(a.type) ? b.checked = a.checked : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue)
2049 }
2050 n.extend({
2051 clone: function(a, b, c) {
2052 var d, e, f, g, h = a.cloneNode(!0),
2053 i = n.contains(a.ownerDocument, a);
2054 if (!(k.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || n.isXMLDoc(a)))
2055 for (g = oa(h), f = oa(a), d = 0, e = f.length; e > d; d++) pa(f[d], g[d]);
2056 if (b)
2057 if (c)
2058 for (f = f || oa(a), g = g || oa(h), d = 0, e = f.length; e > d; d++) na(f[d], g[d]);
2059 else na(a, h);
2060 return g = oa(h, "script"), g.length > 0 && ma(g, !i && oa(a, "script")), h
2061 },
2062 buildFragment: function(a, b, c, d) {
2063 for (var e, f, g, h, i, j, k = b.createDocumentFragment(), l = [], m = 0, o = a.length; o > m; m++)
2064 if (e = a[m], e || 0 === e)
2065 if ("object" === n.type(e)) n.merge(l, e.nodeType ? [e] : e);
2066 else if (ca.test(e)) {
2067 f = f || k.appendChild(b.createElement("div")), g = (ba.exec(e) || ["", ""])[1].toLowerCase(), h = ia[g] || ia._default, f.innerHTML = h[1] + e.replace(aa, "<$1></$2>") + h[2], j = h[0];
2068 while (j--) f = f.lastChild;
2069 n.merge(l, f.childNodes), f = k.firstChild, f.textContent = ""
2070 } else l.push(b.createTextNode(e));
2071 k.textContent = "", m = 0;
2072 while (e = l[m++])
2073 if ((!d || -1 === n.inArray(e, d)) && (i = n.contains(e.ownerDocument, e), f = oa(k.appendChild(e), "script"), i && ma(f), c)) {
2074 j = 0;
2075 while (e = f[j++]) fa.test(e.type || "") && c.push(e)
2076 }
2077 return k
2078 },
2079 cleanData: function(a) {
2080 for (var b, c, d, e, f = n.event.special, g = 0; void 0 !== (c = a[g]); g++) {
2081 if (n.acceptData(c) && (e = c[L.expando], e && (b = L.cache[e]))) {
2082 if (b.events)
2083 for (d in b.events) f[d] ? n.event.remove(c, d) : n.removeEvent(c, d, b.handle);
2084 L.cache[e] && delete L.cache[e]
2085 }
2086 delete M.cache[c[M.expando]]
2087 }
2088 }
2089 }), n.fn.extend({
2090 text: function(a) {
2091 return J(this, function(a) {
2092 return void 0 === a ? n.text(this) : this.empty().each(function() {
2093 (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) && (this.textContent = a)
2094 })
2095 }, null, a, arguments.length)
2096 },
2097 append: function() {
2098 return this.domManip(arguments, function(a) {
2099 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
2100 var b = ja(this, a);
2101 b.appendChild(a)
2102 }
2103 })
2104 },
2105 prepend: function() {
2106 return this.domManip(arguments, function(a) {
2107 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
2108 var b = ja(this, a);
2109 b.insertBefore(a, b.firstChild)
2110 }
2111 })
2112 },
2113 before: function() {
2114 return this.domManip(arguments, function(a) {
2115 this.parentNode && this.parentNode.insertBefore(a, this)
2116 })
2117 },
2118 after: function() {
2119 return this.domManip(arguments, function(a) {
2120 this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)
2121 })
2122 },
2123 remove: function(a, b) {
2124 for (var c, d = a ? n.filter(a, this) : this, e = 0; null != (c = d[e]); e++) b || 1 !== c.nodeType || n.cleanData(oa(c)), c.parentNode && (b && n.contains(c.ownerDocument, c) && ma(oa(c, "script")), c.parentNode.removeChild(c));
2125 return this
2126 },
2127 empty: function() {
2128 for (var a, b = 0; null != (a = this[b]); b++) 1 === a.nodeType && (n.cleanData(oa(a, !1)), a.textContent = "");
2129 return this
2130 },
2131 clone: function(a, b) {
2132 return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function() {
2133 return n.clone(this, a, b)
2134 })
2135 },
2136 html: function(a) {
2137 return J(this, function(a) {
2138 var b = this[0] || {},
2139 c = 0,
2140 d = this.length;
2141 if (void 0 === a && 1 === b.nodeType) return b.innerHTML;
2142 if ("string" == typeof a && !da.test(a) && !ia[(ba.exec(a) || ["", ""])[1].toLowerCase()]) {
2143 a = a.replace(aa, "<$1></$2>");
2144 try {
2145 for (; d > c; c++) b = this[c] || {}, 1 === b.nodeType && (n.cleanData(oa(b, !1)), b.innerHTML = a);
2146 b = 0
2147 } catch (e) {}
2148 }
2149 b && this.empty().append(a)
2150 }, null, a, arguments.length)
2151 },
2152 replaceWith: function() {
2153 var a = arguments[0];
2154 return this.domManip(arguments, function(b) {
2155 a = this.parentNode, n.cleanData(oa(this)), a && a.replaceChild(b, this)
2156 }), a && (a.length || a.nodeType) ? this : this.remove()
2157 },
2158 detach: function(a) {
2159 return this.remove(a, !0)
2160 },
2161 domManip: function(a, b) {
2162 a = e.apply([], a);
2163 var c, d, f, g, h, i, j = 0,
2164 l = this.length,
2165 m = this,
2166 o = l - 1,
2167 p = a[0],
2168 q = n.isFunction(p);
2169 if (q || l > 1 && "string" == typeof p && !k.checkClone && ea.test(p)) return this.each(function(c) {
2170 var d = m.eq(c);
2171 q && (a[0] = p.call(this, c, d.html())), d.domManip(a, b)
2172 });
2173 if (l && (c = n.buildFragment(a, this[0].ownerDocument, !1, this), d = c.firstChild, 1 === c.childNodes.length && (c = d), d)) {
2174 for (f = n.map(oa(c, "script"), ka), g = f.length; l > j; j++) h = c, j !== o && (h = n.clone(h, !0, !0), g && n.merge(f, oa(h, "script"))), b.call(this[j], h, j);
2175 if (g)
2176 for (i = f[f.length - 1].ownerDocument, n.map(f, la), j = 0; g > j; j++) h = f[j], fa.test(h.type || "") && !L.access(h, "globalEval") && n.contains(i, h) && (h.src ? n._evalUrl && n._evalUrl(h.src) : n.globalEval(h.textContent.replace(ha, "")))
2177 }
2178 return this
2179 }
2180 }), n.each({
2181 appendTo: "append",
2182 prependTo: "prepend",
2183 insertBefore: "before",
2184 insertAfter: "after",
2185 replaceAll: "replaceWith"
2186 }, function(a, b) {
2187 n.fn[a] = function(a) {
2188 for (var c, d = [], e = n(a), g = e.length - 1, h = 0; g >= h; h++) c = h === g ? this : this.clone(!0), n(e[h])[b](c), f.apply(d, c.get());
2189 return this.pushStack(d)
2190 }
2191 });
2192 var qa, ra = {};
2193
2194 function sa(b, c) {
2195 var d, e = n(c.createElement(b)).appendTo(c.body),
2196 f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : n.css(e[0], "display");
2197 return e.detach(), f
2198 }
2199
2200 function ta(a) {
2201 var b = l,
2202 c = ra[a];
2203 return c || (c = sa(a, b), "none" !== c && c || (qa = (qa || n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement), b = qa[0].contentDocument, b.write(), b.close(), c = sa(a, b), qa.detach()), ra[a] = c), c
2204 }
2205 var ua = /^margin/,
2206 va = new RegExp("^(" + Q + ")(?!px)[a-z%]+$", "i"),
2207 wa = function(b) {
2208 return b.ownerDocument.defaultView.opener ? b.ownerDocument.defaultView.getComputedStyle(b, null) : a.getComputedStyle(b, null)
2209 };
2210
2211 function xa(a, b, c) {
2212 var d, e, f, g, h = a.style;
2213 return c = c || wa(a), c && (g = c.getPropertyValue(b) || c[b]), c && ("" !== g || n.contains(a.ownerDocument, a) || (g = n.style(a, b)), va.test(g) && ua.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
2214 }
2215
2216 function ya(a, b) {
2217 return {
2218 get: function() {
2219 return a() ? void delete this.get : (this.get = b).apply(this, arguments)
2220 }
2221 }
2222 }! function() {
2223 var b, c, d = l.documentElement,
2224 e = l.createElement("div"),
2225 f = l.createElement("div");
2226 if (f.style) {
2227 f.style.backgroundClip = "content-box", f.cloneNode(!0).style.backgroundClip = "", k.clearCloneStyle = "content-box" === f.style.backgroundClip, e.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", e.appendChild(f);
2228
2229 function g() {
2230 f.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", f.innerHTML = "", d.appendChild(e);
2231 var g = a.getComputedStyle(f, null);
2232 b = "1%" !== g.top, c = "4px" === g.width, d.removeChild(e)
2233 }
2234 a.getComputedStyle && n.extend(k, {
2235 pixelPosition: function() {
2236 return g(), b
2237 },
2238 boxSizingReliable: function() {
2239 return null == c && g(), c
2240 },
2241 reliableMarginRight: function() {
2242 var b, c = f.appendChild(l.createElement("div"));
2243 return c.style.cssText = f.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", f.style.width = "1px", d.appendChild(e), b = !parseFloat(a.getComputedStyle(c, null).marginRight), d.removeChild(e), f.removeChild(c), b
2244 }
2245 })
2246 }
2247 }(), n.swap = function(a, b, c, d) {
2248 var e, f, g = {};
2249 for (f in b) g[f] = a.style[f], a.style[f] = b[f];
2250 e = c.apply(a, d || []);
2251 for (f in b) a.style[f] = g[f];
2252 return e
2253 };
2254 var za = /^(none|table(?!-c[ea]).+)/,
2255 Aa = new RegExp("^(" + Q + ")(.*)$", "i"),
2256 Ba = new RegExp("^([+-])=(" + Q + ")", "i"),
2257 Ca = {
2258 position: "absolute",
2259 visibility: "hidden",
2260 display: "block"
2261 },
2262 Da = {
2263 letterSpacing: "0",
2264 fontWeight: "400"
2265 },
2266 Ea = ["Webkit", "O", "Moz", "ms"];
2267
2268 function Fa(a, b) {
2269 if (b in a) return b;
2270 var c = b[0].toUpperCase() + b.slice(1),
2271 d = b,
2272 e = Ea.length;
2273 while (e--)
2274 if (b = Ea[e] + c, b in a) return b;
2275 return d
2276 }
2277
2278 function Ga(a, b, c) {
2279 var d = Aa.exec(b);
2280 return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
2281 }
2282
2283 function Ha(a, b, c, d, e) {
2284 for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2) "margin" === c && (g += n.css(a, c + R[f], !0, e)), d ? ("content" === c && (g -= n.css(a, "padding" + R[f], !0, e)), "margin" !== c && (g -= n.css(a, "border" + R[f] + "Width", !0, e))) : (g += n.css(a, "padding" + R[f], !0, e), "padding" !== c && (g += n.css(a, "border" + R[f] + "Width", !0, e)));
2285 return g
2286 }
2287
2288 function Ia(a, b, c) {
2289 var d = !0,
2290 e = "width" === b ? a.offsetWidth : a.offsetHeight,
2291 f = wa(a),
2292 g = "border-box" === n.css(a, "boxSizing", !1, f);
2293 if (0 >= e || null == e) {
2294 if (e = xa(a, b, f), (0 > e || null == e) && (e = a.style[b]), va.test(e)) return e;
2295 d = g && (k.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0
2296 }
2297 return e + Ha(a, b, c || (g ? "border" : "content"), d, f) + "px"
2298 }
2299
2300 function Ja(a, b) {
2301 for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++) d = a[g], d.style && (f[g] = L.get(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && S(d) && (f[g] = L.access(d, "olddisplay", ta(d.nodeName)))) : (e = S(d), "none" === c && e || L.set(d, "olddisplay", e ? c : n.css(d, "display"))));
2302 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"));
2303 return a
2304 }
2305 n.extend({
2306 cssHooks: {
2307 opacity: {
2308 get: function(a, b) {
2309 if (b) {
2310 var c = xa(a, "opacity");
2311 return "" === c ? "1" : c
2312 }
2313 }
2314 }
2315 },
2316 cssNumber: {
2317 columnCount: !0,
2318 fillOpacity: !0,
2319 flexGrow: !0,
2320 flexShrink: !0,
2321 fontWeight: !0,
2322 lineHeight: !0,
2323 opacity: !0,
2324 order: !0,
2325 orphans: !0,
2326 widows: !0,
2327 zIndex: !0,
2328 zoom: !0
2329 },
2330 cssProps: {
2331 float: "cssFloat"
2332 },
2333 style: function(a, b, c, d) {
2334 if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) {
2335 var e, f, g, h = n.camelCase(b),
2336 i = a.style;
2337 return b = n.cssProps[h] || (n.cssProps[h] = Fa(i, h)), g = n.cssHooks[b] || n.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 = Ba.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(n.css(a, b)), f = "number"), null != c && c === c && ("number" !== f || n.cssNumber[h] || (c += "px"), k.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)
2338 }
2339 },
2340 css: function(a, b, c, d) {
2341 var e, f, g, h = n.camelCase(b);
2342 return b = n.cssProps[h] || (n.cssProps[h] = Fa(a.style, h)), g = n.cssHooks[b] || n.cssHooks[h], g && "get" in g && (e = g.get(a, !0, c)), void 0 === e && (e = xa(a, b, d)), "normal" === e && b in Da && (e = Da[b]), "" === c || c ? (f = parseFloat(e), c === !0 || n.isNumeric(f) ? f || 0 : e) : e
2343 }
2344 }), n.each(["height", "width"], function(a, b) {
2345 n.cssHooks[b] = {
2346 get: function(a, c, d) {
2347 return c ? za.test(n.css(a, "display")) && 0 === a.offsetWidth ? n.swap(a, Ca, function() {
2348 return Ia(a, b, d)
2349 }) : Ia(a, b, d) : void 0
2350 },
2351 set: function(a, c, d) {
2352 var e = d && wa(a);
2353 return Ga(a, c, d ? Ha(a, b, d, "border-box" === n.css(a, "boxSizing", !1, e), e) : 0)
2354 }
2355 }
2356 }), n.cssHooks.marginRight = ya(k.reliableMarginRight, function(a, b) {
2357 return b ? n.swap(a, {
2358 display: "inline-block"
2359 }, xa, [a, "marginRight"]) : void 0
2360 }), n.each({
2361 margin: "",
2362 padding: "",
2363 border: "Width"
2364 }, function(a, b) {
2365 n.cssHooks[a + b] = {
2366 expand: function(c) {
2367 for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++) e[a + R[d] + b] = f[d] || f[d - 2] || f[0];
2368 return e
2369 }
2370 }, ua.test(a) || (n.cssHooks[a + b].set = Ga)
2371 }), n.fn.extend({
2372 css: function(a, b) {
2373 return J(this, function(a, b, c) {
2374 var d, e, f = {},
2375 g = 0;
2376 if (n.isArray(b)) {
2377 for (d = wa(a), e = b.length; e > g; g++) f[b[g]] = n.css(a, b[g], !1, d);
2378 return f
2379 }
2380 return void 0 !== c ? n.style(a, b, c) : n.css(a, b)
2381 }, a, b, arguments.length > 1)
2382 },
2383 show: function() {
2384 return Ja(this, !0)
2385 },
2386 hide: function() {
2387 return Ja(this)
2388 },
2389 toggle: function(a) {
2390 return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function() {
2391 S(this) ? n(this).show() : n(this).hide()
2392 })
2393 }
2394 });
2395
2396 function Ka(a, b, c, d, e) {
2397 return new Ka.prototype.init(a, b, c, d, e)
2398 }
2399 n.Tween = Ka, Ka.prototype = {
2400 constructor: Ka,
2401 init: function(a, b, c, d, e, f) {
2402 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 || (n.cssNumber[c] ? "" : "px")
2403 },
2404 cur: function() {
2405 var a = Ka.propHooks[this.prop];
2406 return a && a.get ? a.get(this) : Ka.propHooks._default.get(this)
2407 },
2408 run: function(a) {
2409 var b, c = Ka.propHooks[this.prop];
2410 return this.options.duration ? this.pos = b = n.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) : Ka.propHooks._default.set(this), this
2411 }
2412 }, Ka.prototype.init.prototype = Ka.prototype, Ka.propHooks = {
2413 _default: {
2414 get: function(a) {
2415 var b;
2416 return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = n.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]
2417 },
2418 set: function(a) {
2419 n.fx.step[a.prop] ? n.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[n.cssProps[a.prop]] || n.cssHooks[a.prop]) ? n.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now
2420 }
2421 }
2422 }, Ka.propHooks.scrollTop = Ka.propHooks.scrollLeft = {
2423 set: function(a) {
2424 a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now)
2425 }
2426 }, n.easing = {
2427 linear: function(a) {
2428 return a
2429 },
2430 swing: function(a) {
2431 return .5 - Math.cos(a * Math.PI) / 2
2432 }
2433 }, n.fx = Ka.prototype.init, n.fx.step = {};
2434 var La, Ma, Na = /^(?:toggle|show|hide)$/,
2435 Oa = new RegExp("^(?:([+-])=|)(" + Q + ")([a-z%]*)$", "i"),
2436 Pa = /queueHooks$/,
2437 Qa = [Va],
2438 Ra = {
2439 "*": [function(a, b) {
2440 var c = this.createTween(a, b),
2441 d = c.cur(),
2442 e = Oa.exec(b),
2443 f = e && e[3] || (n.cssNumber[a] ? "" : "px"),
2444 g = (n.cssNumber[a] || "px" !== f && +d) && Oa.exec(n.css(c.elem, a)),
2445 h = 1,
2446 i = 20;
2447 if (g && g[3] !== f) {
2448 f = f || g[3], e = e || [], g = +d || 1;
2449 do {
2450 h = h || ".5", g /= h, n.style(c.elem, a, g + f)
2451 } while (h !== (h = c.cur() / d) && 1 !== h && --i)
2452 }
2453 return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c
2454 }]
2455 };
2456
2457 function Sa() {
2458 return setTimeout(function() {
2459 La = void 0
2460 }), La = n.now()
2461 }
2462
2463 function Ta(a, b) {
2464 var c, d = 0,
2465 e = {
2466 height: a
2467 };
2468 for (b = b ? 1 : 0; 4 > d; d += 2 - b) c = R[d], e["margin" + c] = e["padding" + c] = a;
2469 return b && (e.opacity = e.width = a), e
2470 }
2471
2472 function Ua(a, b, c) {
2473 for (var d, e = (Ra[b] || []).concat(Ra["*"]), f = 0, g = e.length; g > f; f++)
2474 if (d = e[f].call(c, b, a)) return d
2475 }
2476
2477 function Va(a, b, c) {
2478 var d, e, f, g, h, i, j, k, l = this,
2479 m = {},
2480 o = a.style,
2481 p = a.nodeType && S(a),
2482 q = L.get(a, "fxshow");
2483 c.queue || (h = n._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function() {
2484 h.unqueued || i()
2485 }), h.unqueued++, l.always(function() {
2486 l.always(function() {
2487 h.unqueued--, n.queue(a, "fx").length || h.empty.fire()
2488 })
2489 })), 1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [o.overflow, o.overflowX, o.overflowY], j = n.css(a, "display"), k = "none" === j ? L.get(a, "olddisplay") || ta(a.nodeName) : j, "inline" === k && "none" === n.css(a, "float") && (o.display = "inline-block")), c.overflow && (o.overflow = "hidden", l.always(function() {
2490 o.overflow = c.overflow[0], o.overflowX = c.overflow[1], o.overflowY = c.overflow[2]
2491 }));
2492 for (d in b)
2493 if (e = b[d], Na.exec(e)) {
2494 if (delete b[d], f = f || "toggle" === e, e === (p ? "hide" : "show")) {
2495 if ("show" !== e || !q || void 0 === q[d]) continue;
2496 p = !0
2497 }
2498 m[d] = q && q[d] || n.style(a, d)
2499 } else j = void 0;
2500 if (n.isEmptyObject(m)) "inline" === ("none" === j ? ta(a.nodeName) : j) && (o.display = j);
2501 else {
2502 q ? "hidden" in q && (p = q.hidden) : q = L.access(a, "fxshow", {}), f && (q.hidden = !p), p ? n(a).show() : l.done(function() {
2503 n(a).hide()
2504 }), l.done(function() {
2505 var b;
2506 L.remove(a, "fxshow");
2507 for (b in m) n.style(a, b, m[b])
2508 });
2509 for (d in m) g = Ua(p ? q[d] : 0, d, l), d in q || (q[d] = g.start, p && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0))
2510 }
2511 }
2512
2513 function Wa(a, b) {
2514 var c, d, e, f, g;
2515 for (c in a)
2516 if (d = n.camelCase(c), e = b[d], f = a[c], n.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = n.cssHooks[d], g && "expand" in g) {
2517 f = g.expand(f), delete a[d];
2518 for (c in f) c in a || (a[c] = f[c], b[c] = e)
2519 } else b[d] = e
2520 }
2521
2522 function Xa(a, b, c) {
2523 var d, e, f = 0,
2524 g = Qa.length,
2525 h = n.Deferred().always(function() {
2526 delete i.elem
2527 }),
2528 i = function() {
2529 if (e) return !1;
2530 for (var b = La || Sa(), 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);
2531 return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1)
2532 },
2533 j = h.promise({
2534 elem: a,
2535 props: n.extend({}, b),
2536 opts: n.extend(!0, {
2537 specialEasing: {}
2538 }, c),
2539 originalProperties: b,
2540 originalOptions: c,
2541 startTime: La || Sa(),
2542 duration: c.duration,
2543 tweens: [],
2544 createTween: function(b, c) {
2545 var d = n.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing);
2546 return j.tweens.push(d), d
2547 },
2548 stop: function(b) {
2549 var c = 0,
2550 d = b ? j.tweens.length : 0;
2551 if (e) return this;
2552 for (e = !0; d > c; c++) j.tweens[c].run(1);
2553 return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this
2554 }
2555 }),
2556 k = j.props;
2557 for (Wa(k, j.opts.specialEasing); g > f; f++)
2558 if (d = Qa[f].call(j, a, k, j.opts)) return d;
2559 return n.map(k, Ua, j), n.isFunction(j.opts.start) && j.opts.start.call(a, j), n.fx.timer(n.extend(i, {
2560 elem: a,
2561 anim: j,
2562 queue: j.opts.queue
2563 })), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always)
2564 }
2565 n.Animation = n.extend(Xa, {
2566 tweener: function(a, b) {
2567 n.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" ");
2568 for (var c, d = 0, e = a.length; e > d; d++) c = a[d], Ra[c] = Ra[c] || [], Ra[c].unshift(b)
2569 },
2570 prefilter: function(a, b) {
2571 b ? Qa.unshift(a) : Qa.push(a)
2572 }
2573 }), n.speed = function(a, b, c) {
2574 var d = a && "object" == typeof a ? n.extend({}, a) : {
2575 complete: c || !c && b || n.isFunction(a) && a,
2576 duration: a,
2577 easing: c && b || b && !n.isFunction(b) && b
2578 };
2579 return d.duration = n.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in n.fx.speeds ? n.fx.speeds[d.duration] : n.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function() {
2580 n.isFunction(d.old) && d.old.call(this), d.queue && n.dequeue(this, d.queue)
2581 }, d
2582 }, n.fn.extend({
2583 fadeTo: function(a, b, c, d) {
2584 return this.filter(S).css("opacity", 0).show().end().animate({
2585 opacity: b
2586 }, a, c, d)
2587 },
2588 animate: function(a, b, c, d) {
2589 var e = n.isEmptyObject(a),
2590 f = n.speed(b, c, d),
2591 g = function() {
2592 var b = Xa(this, n.extend({}, a), f);
2593 (e || L.get(this, "finish")) && b.stop(!0)
2594 };
2595 return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g)
2596 },
2597 stop: function(a, b, c) {
2598 var d = function(a) {
2599 var b = a.stop;
2600 delete a.stop, b(c)
2601 };
2602 return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function() {
2603 var b = !0,
2604 e = null != a && a + "queueHooks",
2605 f = n.timers,
2606 g = L.get(this);
2607 if (e) g[e] && g[e].stop && d(g[e]);
2608 else
2609 for (e in g) g[e] && g[e].stop && Pa.test(e) && d(g[e]);
2610 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));
2611 (b || !c) && n.dequeue(this, a)
2612 })
2613 },
2614 finish: function(a) {
2615 return a !== !1 && (a = a || "fx"), this.each(function() {
2616 var b, c = L.get(this),
2617 d = c[a + "queue"],
2618 e = c[a + "queueHooks"],
2619 f = n.timers,
2620 g = d ? d.length : 0;
2621 for (c.finish = !0, n.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));
2622 for (b = 0; g > b; b++) d[b] && d[b].finish && d[b].finish.call(this);
2623 delete c.finish
2624 })
2625 }
2626 }), n.each(["toggle", "show", "hide"], function(a, b) {
2627 var c = n.fn[b];
2628 n.fn[b] = function(a, d, e) {
2629 return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(Ta(b, !0), a, d, e)
2630 }
2631 }), n.each({
2632 slideDown: Ta("show"),
2633 slideUp: Ta("hide"),
2634 slideToggle: Ta("toggle"),
2635 fadeIn: {
2636 opacity: "show"
2637 },
2638 fadeOut: {
2639 opacity: "hide"
2640 },
2641 fadeToggle: {
2642 opacity: "toggle"
2643 }
2644 }, function(a, b) {
2645 n.fn[a] = function(a, c, d) {
2646 return this.animate(b, a, c, d)
2647 }
2648 }), n.timers = [], n.fx.tick = function() {
2649 var a, b = 0,
2650 c = n.timers;
2651 for (La = n.now(); b < c.length; b++) a = c[b], a() || c[b] !== a || c.splice(b--, 1);
2652 c.length || n.fx.stop(), La = void 0
2653 }, n.fx.timer = function(a) {
2654 n.timers.push(a), a() ? n.fx.start() : n.timers.pop()
2655 }, n.fx.interval = 13, n.fx.start = function() {
2656 Ma || (Ma = setInterval(n.fx.tick, n.fx.interval))
2657 }, n.fx.stop = function() {
2658 clearInterval(Ma), Ma = null
2659 }, n.fx.speeds = {
2660 slow: 600,
2661 fast: 200,
2662 _default: 400
2663 }, n.fn.delay = function(a, b) {
2664 return a = n.fx ? n.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function(b, c) {
2665 var d = setTimeout(b, a);
2666 c.stop = function() {
2667 clearTimeout(d)
2668 }
2669 })
2670 },
2671 function() {
2672 var a = l.createElement("input"),
2673 b = l.createElement("select"),
2674 c = b.appendChild(l.createElement("option"));
2675 a.type = "checkbox", k.checkOn = "" !== a.value, k.optSelected = c.selected, b.disabled = !0, k.optDisabled = !c.disabled, a = l.createElement("input"), a.value = "t", a.type = "radio", k.radioValue = "t" === a.value
2676 }();
2677 var Ya, Za, $a = n.expr.attrHandle;
2678 n.fn.extend({
2679 attr: function(a, b) {
2680 return J(this, n.attr, a, b, arguments.length > 1)
2681 },
2682 removeAttr: function(a) {
2683 return this.each(function() {
2684 n.removeAttr(this, a)
2685 })
2686 }
2687 }), n.extend({
2688 attr: function(a, b, c) {
2689 var d, e, f = a.nodeType;
2690 if (a && 3 !== f && 8 !== f && 2 !== f) return typeof a.getAttribute === U ? n.prop(a, b, c) : (1 === f && n.isXMLDoc(a) || (b = b.toLowerCase(), d = n.attrHooks[b] || (n.expr.match.bool.test(b) ? Za : Ya)), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : (e = n.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 n.removeAttr(a, b))
2691 },
2692 removeAttr: function(a, b) {
2693 var c, d, e = 0,
2694 f = b && b.match(E);
2695 if (f && 1 === a.nodeType)
2696 while (c = f[e++]) d = n.propFix[c] || c, n.expr.match.bool.test(c) && (a[d] = !1), a.removeAttribute(c)
2697 },
2698 attrHooks: {
2699 type: {
2700 set: function(a, b) {
2701 if (!k.radioValue && "radio" === b && n.nodeName(a, "input")) {
2702 var c = a.value;
2703 return a.setAttribute("type", b), c && (a.value = c), b
2704 }
2705 }
2706 }
2707 }
2708 }), Za = {
2709 set: function(a, b, c) {
2710 return b === !1 ? n.removeAttr(a, c) : a.setAttribute(c, c), c
2711 }
2712 }, n.each(n.expr.match.bool.source.match(/\w+/g), function(a, b) {
2713 var c = $a[b] || n.find.attr;
2714 $a[b] = function(a, b, d) {
2715 var e, f;
2716 return d || (f = $a[b], $a[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, $a[b] = f), e
2717 }
2718 });
2719 var _a = /^(?:input|select|textarea|button)$/i;
2720 n.fn.extend({
2721 prop: function(a, b) {
2722 return J(this, n.prop, a, b, arguments.length > 1)
2723 },
2724 removeProp: function(a) {
2725 return this.each(function() {
2726 delete this[n.propFix[a] || a]
2727 })
2728 }
2729 }), n.extend({
2730 propFix: {
2731 for: "htmlFor",
2732 class: "className"
2733 },
2734 prop: function(a, b, c) {
2735 var d, e, f, g = a.nodeType;
2736 if (a && 3 !== g && 8 !== g && 2 !== g) return f = 1 !== g || !n.isXMLDoc(a), f && (b = n.propFix[b] || b, e = n.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]
2737 },
2738 propHooks: {
2739 tabIndex: {
2740 get: function(a) {
2741 return a.hasAttribute("tabindex") || _a.test(a.nodeName) || a.href ? a.tabIndex : -1
2742 }
2743 }
2744 }
2745 }), k.optSelected || (n.propHooks.selected = {
2746 get: function(a) {
2747 var b = a.parentNode;
2748 return b && b.parentNode && b.parentNode.selectedIndex, null
2749 }
2750 }), n.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
2751 n.propFix[this.toLowerCase()] = this
2752 });
2753 var ab = /[\t\r\n\f]/g;
2754 n.fn.extend({
2755 addClass: function(a) {
2756 var b, c, d, e, f, g, h = "string" == typeof a && a,
2757 i = 0,
2758 j = this.length;
2759 if (n.isFunction(a)) return this.each(function(b) {
2760 n(this).addClass(a.call(this, b, this.className))
2761 });
2762 if (h)
2763 for (b = (a || "").match(E) || []; j > i; i++)
2764 if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(ab, " ") : " ")) {
2765 f = 0;
2766 while (e = b[f++]) d.indexOf(" " + e + " ") < 0 && (d += e + " ");
2767 g = n.trim(d), c.className !== g && (c.className = g)
2768 }
2769 return this
2770 },
2771 removeClass: function(a) {
2772 var b, c, d, e, f, g, h = 0 === arguments.length || "string" == typeof a && a,
2773 i = 0,
2774 j = this.length;
2775 if (n.isFunction(a)) return this.each(function(b) {
2776 n(this).removeClass(a.call(this, b, this.className))
2777 });
2778 if (h)
2779 for (b = (a || "").match(E) || []; j > i; i++)
2780 if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(ab, " ") : "")) {
2781 f = 0;
2782 while (e = b[f++])
2783 while (d.indexOf(" " + e + " ") >= 0) d = d.replace(" " + e + " ", " ");
2784 g = a ? n.trim(d) : "", c.className !== g && (c.className = g)
2785 }
2786 return this
2787 },
2788 toggleClass: function(a, b) {
2789 var c = typeof a;
2790 return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : this.each(n.isFunction(a) ? function(c) {
2791 n(this).toggleClass(a.call(this, c, this.className, b), b)
2792 } : function() {
2793 if ("string" === c) {
2794 var b, d = 0,
2795 e = n(this),
2796 f = a.match(E) || [];
2797 while (b = f[d++]) e.hasClass(b) ? e.removeClass(b) : e.addClass(b)
2798 } else(c === U || "boolean" === c) && (this.className && L.set(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : L.get(this, "__className__") || "")
2799 })
2800 },
2801 hasClass: function(a) {
2802 for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)
2803 if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(ab, " ").indexOf(b) >= 0) return !0;
2804 return !1
2805 }
2806 });
2807 var bb = /\r/g;
2808 n.fn.extend({
2809 val: function(a) {
2810 var b, c, d, e = this[0]; {
2811 if (arguments.length) return d = n.isFunction(a), this.each(function(c) {
2812 var e;
2813 1 === this.nodeType && (e = d ? a.call(this, c, n(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : n.isArray(e) && (e = n.map(e, function(a) {
2814 return null == a ? "" : a + ""
2815 })), b = n.valHooks[this.type] || n.valHooks[this.nodeName.toLowerCase()], b && "set" in b && void 0 !== b.set(this, e, "value") || (this.value = e))
2816 });
2817 if (e) return b = n.valHooks[e.type] || n.valHooks[e.nodeName.toLowerCase()], b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(bb, "") : null == c ? "" : c)
2818 }
2819 }
2820 }), n.extend({
2821 valHooks: {
2822 option: {
2823 get: function(a) {
2824 var b = n.find.attr(a, "value");
2825 return null != b ? b : n.trim(n.text(a))
2826 }
2827 },
2828 select: {
2829 get: function(a) {
2830 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++)
2831 if (c = d[i], !(!c.selected && i !== e || (k.optDisabled ? c.disabled : null !== c.getAttribute("disabled")) || c.parentNode.disabled && n.nodeName(c.parentNode, "optgroup"))) {
2832 if (b = n(c).val(), f) return b;
2833 g.push(b)
2834 }
2835 return g
2836 },
2837 set: function(a, b) {
2838 var c, d, e = a.options,
2839 f = n.makeArray(b),
2840 g = e.length;
2841 while (g--) d = e[g], (d.selected = n.inArray(d.value, f) >= 0) && (c = !0);
2842 return c || (a.selectedIndex = -1), f
2843 }
2844 }
2845 }
2846 }), n.each(["radio", "checkbox"], function() {
2847 n.valHooks[this] = {
2848 set: function(a, b) {
2849 return n.isArray(b) ? a.checked = n.inArray(n(a).val(), b) >= 0 : void 0
2850 }
2851 }, k.checkOn || (n.valHooks[this].get = function(a) {
2852 return null === a.getAttribute("value") ? "on" : a.value
2853 })
2854 }), n.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) {
2855 n.fn[b] = function(a, c) {
2856 return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
2857 }
2858 }), n.fn.extend({
2859 hover: function(a, b) {
2860 return this.mouseenter(a).mouseleave(b || a)
2861 },
2862 bind: function(a, b, c) {
2863 return this.on(a, null, b, c)
2864 },
2865 unbind: function(a, b) {
2866 return this.off(a, null, b)
2867 },
2868 delegate: function(a, b, c, d) {
2869 return this.on(b, a, c, d)
2870 },
2871 undelegate: function(a, b, c) {
2872 return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c)
2873 }
2874 });
2875 var cb = n.now(),
2876 db = /\?/;
2877 n.parseJSON = function(a) {
2878 return JSON.parse(a + "")
2879 }, n.parseXML = function(a) {
2880 var b, c;
2881 if (!a || "string" != typeof a) return null;
2882 try {
2883 c = new DOMParser, b = c.parseFromString(a, "text/xml")
2884 } catch (d) {
2885 b = void 0
2886 }
2887 return (!b || b.getElementsByTagName("parsererror").length) && n.error("Invalid XML: " + a), b
2888 };
2889 var eb = /#.*$/,
2890 fb = /([?&])_=[^&]*/,
2891 gb = /^(.*?):[ \t]*([^\r\n]*)$/gm,
2892 hb = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
2893 ib = /^(?:GET|HEAD)$/,
2894 jb = /^\/\//,
2895 kb = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
2896 lb = {},
2897 mb = {},
2898 nb = "*/".concat("*"),
2899 ob = a.location.href,
2900 pb = kb.exec(ob.toLowerCase()) || [];
2901
2902 function qb(a) {
2903 return function(b, c) {
2904 "string" != typeof b && (c = b, b = "*");
2905 var d, e = 0,
2906 f = b.toLowerCase().match(E) || [];
2907 if (n.isFunction(c))
2908 while (d = f[e++]) "+" === d[0] ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c)
2909 }
2910 }
2911
2912 function rb(a, b, c, d) {
2913 var e = {},
2914 f = a === mb;
2915
2916 function g(h) {
2917 var i;
2918 return e[h] = !0, n.each(a[h] || [], function(a, h) {
2919 var j = h(b, c, d);
2920 return "string" != typeof j || f || e[j] ? f ? !(i = j) : void 0 : (b.dataTypes.unshift(j), g(j), !1)
2921 }), i
2922 }
2923 return g(b.dataTypes[0]) || !e["*"] && g("*")
2924 }
2925
2926 function sb(a, b) {
2927 var c, d, e = n.ajaxSettings.flatOptions || {};
2928 for (c in b) void 0 !== b[c] && ((e[c] ? a : d || (d = {}))[c] = b[c]);
2929 return d && n.extend(!0, a, d), a
2930 }
2931
2932 function tb(a, b, c) {
2933 var d, e, f, g, h = a.contents,
2934 i = a.dataTypes;
2935 while ("*" === i[0]) i.shift(), void 0 === d && (d = a.mimeType || b.getResponseHeader("Content-Type"));
2936 if (d)
2937 for (e in h)
2938 if (h[e] && h[e].test(d)) {
2939 i.unshift(e);
2940 break
2941 }
2942 if (i[0] in c) f = i[0];
2943 else {
2944 for (e in c) {
2945 if (!i[0] || a.converters[e + " " + i[0]]) {
2946 f = e;
2947 break
2948 }
2949 g || (g = e)
2950 }
2951 f = f || g
2952 }
2953 return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0
2954 }
2955
2956 function ub(a, b, c, d) {
2957 var e, f, g, h, i, j = {},
2958 k = a.dataTypes.slice();
2959 if (k[1])
2960 for (g in a.converters) j[g.toLowerCase()] = a.converters[g];
2961 f = k.shift();
2962 while (f)
2963 if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift())
2964 if ("*" === f) f = i;
2965 else if ("*" !== i && i !== f) {
2966 if (g = j[i + " " + f] || j["* " + f], !g)
2967 for (e in j)
2968 if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) {
2969 g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1]));
2970 break
2971 }
2972 if (g !== !0)
2973 if (g && a["throws"]) b = g(b);
2974 else try {
2975 b = g(b)
2976 } catch (l) {
2977 return {
2978 state: "parsererror",
2979 error: g ? l : "No conversion from " + i + " to " + f
2980 }
2981 }
2982 }
2983 return {
2984 state: "success",
2985 data: b
2986 }
2987 }
2988 n.extend({
2989 active: 0,
2990 lastModified: {},
2991 etag: {},
2992 ajaxSettings: {
2993 url: ob,
2994 type: "GET",
2995 isLocal: hb.test(pb[1]),
2996 global: !0,
2997 processData: !0,
2998 async: !0,
2999 contentType: "application/x-www-form-urlencoded; charset=UTF-8",
3000 accepts: {
3001 "*": nb,
3002 text: "text/plain",
3003 html: "text/html",
3004 xml: "application/xml, text/xml",
3005 json: "application/json, text/javascript"
3006 },
3007 contents: {
3008 xml: /xml/,
3009 html: /html/,
3010 json: /json/
3011 },
3012 responseFields: {
3013 xml: "responseXML",
3014 text: "responseText",
3015 json: "responseJSON"
3016 },
3017 converters: {
3018 "* text": String,
3019 "text html": !0,
3020 "text json": n.parseJSON,
3021 "text xml": n.parseXML
3022 },
3023 flatOptions: {
3024 url: !0,
3025 context: !0
3026 }
3027 },
3028 ajaxSetup: function(a, b) {
3029 return b ? sb(sb(a, n.ajaxSettings), b) : sb(n.ajaxSettings, a)
3030 },
3031 ajaxPrefilter: qb(lb),
3032 ajaxTransport: qb(mb),
3033 ajax: function(a, b) {
3034 "object" == typeof a && (b = a, a = void 0), b = b || {};
3035 var c, d, e, f, g, h, i, j, k = n.ajaxSetup({}, b),
3036 l = k.context || k,
3037 m = k.context && (l.nodeType || l.jquery) ? n(l) : n.event,
3038 o = n.Deferred(),
3039 p = n.Callbacks("once memory"),
3040 q = k.statusCode || {},
3041 r = {},
3042 s = {},
3043 t = 0,
3044 u = "canceled",
3045 v = {
3046 readyState: 0,
3047 getResponseHeader: function(a) {
3048 var b;
3049 if (2 === t) {
3050 if (!f) {
3051 f = {};
3052 while (b = gb.exec(e)) f[b[1].toLowerCase()] = b[2]
3053 }
3054 b = f[a.toLowerCase()]
3055 }
3056 return null == b ? null : b
3057 },
3058 getAllResponseHeaders: function() {
3059 return 2 === t ? e : null
3060 },
3061 setRequestHeader: function(a, b) {
3062 var c = a.toLowerCase();
3063 return t || (a = s[c] = s[c] || a, r[a] = b), this
3064 },
3065 overrideMimeType: function(a) {
3066 return t || (k.mimeType = a), this
3067 },
3068 statusCode: function(a) {
3069 var b;
3070 if (a)
3071 if (2 > t)
3072 for (b in a) q[b] = [q[b], a[b]];
3073 else v.always(a[v.status]);
3074 return this
3075 },
3076 abort: function(a) {
3077 var b = a || u;
3078 return c && c.abort(b), x(0, b), this
3079 }
3080 };
3081 if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, k.url = ((a || k.url || ob) + "").replace(eb, "").replace(jb, pb[1] + "//"), k.type = b.method || b.type || k.method || k.type, k.dataTypes = n.trim(k.dataType || "*").toLowerCase().match(E) || [""], null == k.crossDomain && (h = kb.exec(k.url.toLowerCase()), k.crossDomain = !(!h || h[1] === pb[1] && h[2] === pb[2] && (h[3] || ("http:" === h[1] ? "80" : "443")) === (pb[3] || ("http:" === pb[1] ? "80" : "443")))), k.data && k.processData && "string" != typeof k.data && (k.data = n.param(k.data, k.traditional)), rb(lb, k, b, v), 2 === t) return v;
3082 i = n.event && k.global, i && 0 === n.active++ && n.event.trigger("ajaxStart"), k.type = k.type.toUpperCase(), k.hasContent = !ib.test(k.type), d = k.url, k.hasContent || (k.data && (d = k.url += (db.test(d) ? "&" : "?") + k.data, delete k.data), k.cache === !1 && (k.url = fb.test(d) ? d.replace(fb, "$1_=" + cb++) : d + (db.test(d) ? "&" : "?") + "_=" + cb++)), k.ifModified && (n.lastModified[d] && v.setRequestHeader("If-Modified-Since", n.lastModified[d]), n.etag[d] && v.setRequestHeader("If-None-Match", n.etag[d])), (k.data && k.hasContent && k.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", k.contentType), v.setRequestHeader("Accept", k.dataTypes[0] && k.accepts[k.dataTypes[0]] ? k.accepts[k.dataTypes[0]] + ("*" !== k.dataTypes[0] ? ", " + nb + "; q=0.01" : "") : k.accepts["*"]);
3083 for (j in k.headers) v.setRequestHeader(j, k.headers[j]);
3084 if (k.beforeSend && (k.beforeSend.call(l, v, k) === !1 || 2 === t)) return v.abort();
3085 u = "abort";
3086 for (j in {
3087 success: 1,
3088 error: 1,
3089 complete: 1
3090 }) v[j](k[j]);
3091 if (c = rb(mb, k, b, v)) {
3092 v.readyState = 1, i && m.trigger("ajaxSend", [v, k]), k.async && k.timeout > 0 && (g = setTimeout(function() {
3093 v.abort("timeout")
3094 }, k.timeout));
3095 try {
3096 t = 1, c.send(r, x)
3097 } catch (w) {
3098 if (!(2 > t)) throw w;
3099 x(-1, w)
3100 }
3101 } else x(-1, "No Transport");
3102
3103 function x(a, b, f, h) {
3104 var j, r, s, u, w, x = b;
3105 2 !== t && (t = 2, g && clearTimeout(g), c = void 0, e = h || "", v.readyState = a > 0 ? 4 : 0, j = a >= 200 && 300 > a || 304 === a, f && (u = tb(k, v, f)), u = ub(k, u, v, j), j ? (k.ifModified && (w = v.getResponseHeader("Last-Modified"), w && (n.lastModified[d] = w), w = v.getResponseHeader("etag"), w && (n.etag[d] = w)), 204 === a || "HEAD" === k.type ? x = "nocontent" : 304 === a ? x = "notmodified" : (x = u.state, r = u.data, s = u.error, j = !s)) : (s = x, (a || !x) && (x = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || x) + "", j ? o.resolveWith(l, [r, x, v]) : o.rejectWith(l, [v, x, s]), v.statusCode(q), q = void 0, i && m.trigger(j ? "ajaxSuccess" : "ajaxError", [v, k, j ? r : s]), p.fireWith(l, [v, x]), i && (m.trigger("ajaxComplete", [v, k]), --n.active || n.event.trigger("ajaxStop")))
3106 }
3107 return v
3108 },
3109 getJSON: function(a, b, c) {
3110 return n.get(a, b, c, "json")
3111 },
3112 getScript: function(a, b) {
3113 return n.get(a, void 0, b, "script")
3114 }
3115 }), n.each(["get", "post"], function(a, b) {
3116 n[b] = function(a, c, d, e) {
3117 return n.isFunction(c) && (e = e || d, d = c, c = void 0), n.ajax({
3118 url: a,
3119 type: b,
3120 dataType: e,
3121 data: c,
3122 success: d
3123 })
3124 }
3125 }), n._evalUrl = function(a) {
3126 return n.ajax({
3127 url: a,
3128 type: "GET",
3129 dataType: "script",
3130 async: !1,
3131 global: !1,
3132 throws: !0
3133 })
3134 }, n.fn.extend({
3135 wrapAll: function(a) {
3136 var b;
3137 return n.isFunction(a) ? this.each(function(b) {
3138 n(this).wrapAll(a.call(this, b))
3139 }) : (this[0] && (b = n(a, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && b.insertBefore(this[0]), b.map(function() {
3140 var a = this;
3141 while (a.firstElementChild) a = a.firstElementChild;
3142 return a
3143 }).append(this)), this)
3144 },
3145 wrapInner: function(a) {
3146 return this.each(n.isFunction(a) ? function(b) {
3147 n(this).wrapInner(a.call(this, b))
3148 } : function() {
3149 var b = n(this),
3150 c = b.contents();
3151 c.length ? c.wrapAll(a) : b.append(a)
3152 })
3153 },
3154 wrap: function(a) {
3155 var b = n.isFunction(a);
3156 return this.each(function(c) {
3157 n(this).wrapAll(b ? a.call(this, c) : a)
3158 })
3159 },
3160 unwrap: function() {
3161 return this.parent().each(function() {
3162 n.nodeName(this, "body") || n(this).replaceWith(this.childNodes)
3163 }).end()
3164 }
3165 }), n.expr.filters.hidden = function(a) {
3166 return a.offsetWidth <= 0 && a.offsetHeight <= 0
3167 }, n.expr.filters.visible = function(a) {
3168 return !n.expr.filters.hidden(a)
3169 };
3170 var vb = /%20/g,
3171 wb = /\[\]$/,
3172 xb = /\r?\n/g,
3173 yb = /^(?:submit|button|image|reset|file)$/i,
3174 zb = /^(?:input|select|textarea|keygen)/i;
3175
3176 function Ab(a, b, c, d) {
3177 var e;
3178 if (n.isArray(b)) n.each(b, function(b, e) {
3179 c || wb.test(a) ? d(a, e) : Ab(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d)
3180 });
3181 else if (c || "object" !== n.type(b)) d(a, b);
3182 else
3183 for (e in b) Ab(a + "[" + e + "]", b[e], c, d)
3184 }
3185 n.param = function(a, b) {
3186 var c, d = [],
3187 e = function(a, b) {
3188 b = n.isFunction(b) ? b() : null == b ? "" : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)
3189 };
3190 if (void 0 === b && (b = n.ajaxSettings && n.ajaxSettings.traditional), n.isArray(a) || a.jquery && !n.isPlainObject(a)) n.each(a, function() {
3191 e(this.name, this.value)
3192 });
3193 else
3194 for (c in a) Ab(c, a[c], b, e);
3195 return d.join("&").replace(vb, "+")
3196 }, n.fn.extend({
3197 serialize: function() {
3198 return n.param(this.serializeArray())
3199 },
3200 serializeArray: function() {
3201 return this.map(function() {
3202 var a = n.prop(this, "elements");
3203 return a ? n.makeArray(a) : this
3204 }).filter(function() {
3205 var a = this.type;
3206 return this.name && !n(this).is(":disabled") && zb.test(this.nodeName) && !yb.test(a) && (this.checked || !T.test(a))
3207 }).map(function(a, b) {
3208 var c = n(this).val();
3209 return null == c ? null : n.isArray(c) ? n.map(c, function(a) {
3210 return {
3211 name: b.name,
3212 value: a.replace(xb, "\r\n")
3213 }
3214 }) : {
3215 name: b.name,
3216 value: c.replace(xb, "\r\n")
3217 }
3218 }).get()
3219 }
3220 }), n.ajaxSettings.xhr = function() {
3221 try {
3222 return new XMLHttpRequest
3223 } catch (a) {}
3224 };
3225 var Bb = 0,
3226 Cb = {},
3227 Db = {
3228 0: 200,
3229 1223: 204
3230 },
3231 Eb = n.ajaxSettings.xhr();
3232 a.attachEvent && a.attachEvent("onunload", function() {
3233 for (var a in Cb) Cb[a]()
3234 }), k.cors = !!Eb && "withCredentials" in Eb, k.ajax = Eb = !!Eb, n.ajaxTransport(function(a) {
3235 var b;
3236 return k.cors || Eb && !a.crossDomain ? {
3237 send: function(c, d) {
3238 var e, f = a.xhr(),
3239 g = ++Bb;
3240 if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields)
3241 for (e in a.xhrFields) f[e] = a.xhrFields[e];
3242 a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");
3243 for (e in c) f.setRequestHeader(e, c[e]);
3244 b = function(a) {
3245 return function() {
3246 b && (delete Cb[g], b = f.onload = f.onerror = null, "abort" === a ? f.abort() : "error" === a ? d(f.status, f.statusText) : d(Db[f.status] || f.status, f.statusText, "string" == typeof f.responseText ? {
3247 text: f.responseText
3248 } : void 0, f.getAllResponseHeaders()))
3249 }
3250 }, f.onload = b(), f.onerror = b("error"), b = Cb[g] = b("abort");
3251 try {
3252 f.send(a.hasContent && a.data || null)
3253 } catch (h) {
3254 if (b) throw h
3255 }
3256 },
3257 abort: function() {
3258 b && b()
3259 }
3260 } : void 0
3261 }), n.ajaxSetup({
3262 accepts: {
3263 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
3264 },
3265 contents: {
3266 script: /(?:java|ecma)script/
3267 },
3268 converters: {
3269 "text script": function(a) {
3270 return n.globalEval(a), a
3271 }
3272 }
3273 }), n.ajaxPrefilter("script", function(a) {
3274 void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET")
3275 }), n.ajaxTransport("script", function(a) {
3276 if (a.crossDomain) {
3277 var b, c;
3278 return {
3279 send: function(d, e) {
3280 b = n("<script>").prop({
3281 async: !0,
3282 charset: a.scriptCharset,
3283 src: a.url
3284 }).on("load error", c = function(a) {
3285 b.remove(), c = null, a && e("error" === a.type ? 404 : 200, a.type)
3286 }), l.head.appendChild(b[0])
3287 },
3288 abort: function() {
3289 c && c()
3290 }
3291 }
3292 }
3293 });
3294 var Fb = [],
3295 Gb = /(=)\?(?=&|$)|\?\?/;
3296 n.ajaxSetup({
3297 jsonp: "callback",
3298 jsonpCallback: function() {
3299 var a = Fb.pop() || n.expando + "_" + cb++;
3300 return this[a] = !0, a
3301 }
3302 }), n.ajaxPrefilter("json jsonp", function(b, c, d) {
3303 var e, f, g, h = b.jsonp !== !1 && (Gb.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && Gb.test(b.data) && "data");
3304 return h || "jsonp" === b.dataTypes[0] ? (e = b.jsonpCallback = n.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, h ? b[h] = b[h].replace(Gb, "$1" + e) : b.jsonp !== !1 && (b.url += (db.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), b.converters["script json"] = function() {
3305 return g || n.error(e + " was not called"), g[0]
3306 }, b.dataTypes[0] = "json", f = a[e], a[e] = function() {
3307 g = arguments
3308 }, d.always(function() {
3309 a[e] = f, b[e] && (b.jsonpCallback = c.jsonpCallback, Fb.push(e)), g && n.isFunction(f) && f(g[0]), g = f = void 0
3310 }), "script") : void 0
3311 }), n.parseHTML = function(a, b, c) {
3312 if (!a || "string" != typeof a) return null;
3313 "boolean" == typeof b && (c = b, b = !1), b = b || l;
3314 var d = v.exec(a),
3315 e = !c && [];
3316 return d ? [b.createElement(d[1])] : (d = n.buildFragment([a], b, e), e && e.length && n(e).remove(), n.merge([], d.childNodes))
3317 };
3318 var Hb = n.fn.load;
3319 n.fn.load = function(a, b, c) {
3320 if ("string" != typeof a && Hb) return Hb.apply(this, arguments);
3321 var d, e, f, g = this,
3322 h = a.indexOf(" ");
3323 return h >= 0 && (d = n.trim(a.slice(h)), a = a.slice(0, h)), n.isFunction(b) ? (c = b, b = void 0) : b && "object" == typeof b && (e = "POST"), g.length > 0 && n.ajax({
3324 url: a,
3325 type: e,
3326 dataType: "html",
3327 data: b
3328 }).done(function(a) {
3329 f = arguments, g.html(d ? n("<div>").append(n.parseHTML(a)).find(d) : a)
3330 }).complete(c && function(a, b) {
3331 g.each(c, f || [a.responseText, b, a])
3332 }), this
3333 }, n.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(a, b) {
3334 n.fn[b] = function(a) {
3335 return this.on(b, a)
3336 }
3337 }), n.expr.filters.animated = function(a) {
3338 return n.grep(n.timers, function(b) {
3339 return a === b.elem
3340 }).length
3341 };
3342 var Ib = a.document.documentElement;
3343
3344 function Jb(a) {
3345 return n.isWindow(a) ? a : 9 === a.nodeType && a.defaultView
3346 }
3347 n.offset = {
3348 setOffset: function(a, b, c) {
3349 var d, e, f, g, h, i, j, k = n.css(a, "position"),
3350 l = n(a),
3351 m = {};
3352 "static" === k && (a.style.position = "relative"), h = l.offset(), f = n.css(a, "top"), i = n.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), n.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)
3353 }
3354 }, n.fn.extend({
3355 offset: function(a) {
3356 if (arguments.length) return void 0 === a ? this : this.each(function(b) {
3357 n.offset.setOffset(this, a, b)
3358 });
3359 var b, c, d = this[0],
3360 e = {
3361 top: 0,
3362 left: 0
3363 },
3364 f = d && d.ownerDocument;
3365 if (f) return b = f.documentElement, n.contains(b, d) ? (typeof d.getBoundingClientRect !== U && (e = d.getBoundingClientRect()), c = Jb(f), {
3366 top: e.top + c.pageYOffset - b.clientTop,
3367 left: e.left + c.pageXOffset - b.clientLeft
3368 }) : e
3369 },
3370 position: function() {
3371 if (this[0]) {
3372 var a, b, c = this[0],
3373 d = {
3374 top: 0,
3375 left: 0
3376 };
3377 return "fixed" === n.css(c, "position") ? b = c.getBoundingClientRect() : (a = this.offsetParent(), b = this.offset(), n.nodeName(a[0], "html") || (d = a.offset()), d.top += n.css(a[0], "borderTopWidth", !0), d.left += n.css(a[0], "borderLeftWidth", !0)), {
3378 top: b.top - d.top - n.css(c, "marginTop", !0),
3379 left: b.left - d.left - n.css(c, "marginLeft", !0)
3380 }
3381 }
3382 },
3383 offsetParent: function() {
3384 return this.map(function() {
3385 var a = this.offsetParent || Ib;
3386 while (a && !n.nodeName(a, "html") && "static" === n.css(a, "position")) a = a.offsetParent;
3387 return a || Ib
3388 })
3389 }
3390 }), n.each({
3391 scrollLeft: "pageXOffset",
3392 scrollTop: "pageYOffset"
3393 }, function(b, c) {
3394 var d = "pageYOffset" === c;
3395 n.fn[b] = function(e) {
3396 return J(this, function(b, e, f) {
3397 var g = Jb(b);
3398 return void 0 === f ? g ? g[c] : b[e] : void(g ? g.scrollTo(d ? a.pageXOffset : f, d ? f : a.pageYOffset) : b[e] = f)
3399 }, b, e, arguments.length, null)
3400 }
3401 }), n.each(["top", "left"], function(a, b) {
3402 n.cssHooks[b] = ya(k.pixelPosition, function(a, c) {
3403 return c ? (c = xa(a, b), va.test(c) ? n(a).position()[b] + "px" : c) : void 0
3404 })
3405 }), n.each({
3406 Height: "height",
3407 Width: "width"
3408 }, function(a, b) {
3409 n.each({
3410 padding: "inner" + a,
3411 content: b,
3412 "": "outer" + a
3413 }, function(c, d) {
3414 n.fn[d] = function(d, e) {
3415 var f = arguments.length && (c || "boolean" != typeof d),
3416 g = c || (d === !0 || e === !0 ? "margin" : "border");
3417 return J(this, function(b, c, d) {
3418 var e;
3419 return n.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 ? n.css(b, c, g) : n.style(b, c, d, g)
3420 }, b, f ? d : void 0, f, null)
3421 }
3422 })
3423 }), n.fn.size = function() {
3424 return this.length
3425 }, n.fn.andSelf = n.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function() {
3426 return n
3427 });
3428 var Kb = a.jQuery,
3429 Lb = a.$;
3430 return n.noConflict = function(b) {
3431 return a.$ === n && (a.$ = Lb), b && a.jQuery === n && (a.jQuery = Kb), n
3432 }, typeof b === U && (a.jQuery = a.$ = n), n
3433});
3434! function($) {
3435 "use strict";
3436 var FOUNDATION_VERSION = "6.0.6";
3437 var Foundation = {
3438 version: FOUNDATION_VERSION,
3439 _plugins: {},
3440 _uuids: [],
3441 _activePlugins: {},
3442 rtl: function() {
3443 return $("html").attr("dir") === "rtl"
3444 },
3445 plugin: function(plugin, name) {
3446 var className = name || functionName(plugin);
3447 var attrName = hyphenate(className);
3448 this._plugins[attrName] = this[className] = plugin
3449 },
3450 registerPlugin: function(plugin) {
3451 var pluginName = functionName(plugin.constructor).toLowerCase();
3452 plugin.uuid = this.GetYoDigits(6, pluginName);
3453 if (!plugin.$element.attr("data-" + pluginName)) {
3454 plugin.$element.attr("data-" + pluginName, plugin.uuid)
3455 }
3456 plugin.$element.trigger("init.zf." + pluginName);
3457 this._activePlugins[plugin.uuid] = plugin;
3458 return
3459 },
3460 unregisterPlugin: function(plugin) {
3461 var pluginName = functionName(plugin.constructor).toLowerCase();
3462 delete this._activePlugins[plugin.uuid];
3463 plugin.$element.removeAttr("data-" + pluginName).trigger("destroyed.zf." + pluginName);
3464 return
3465 },
3466 _reflow: function(plugins) {
3467 var actvPlugins = Object.keys(this._activePlugins);
3468 var _this = this;
3469 if (!plugins) {
3470 actvPlugins.forEach(function(p) {
3471 _this._activePlugins[p]._init()
3472 })
3473 } else if (typeof plugins === "string") {
3474 var namespace = plugins.split("-")[1];
3475 if (namespace) {
3476 this._activePlugins[plugins]._init()
3477 } else {
3478 namespace = new RegExp(plugins, "i");
3479 actvPlugins.filter(function(p) {
3480 return namespace.test(p)
3481 }).forEach(function(p) {
3482 _this._activePlugins[p]._init()
3483 })
3484 }
3485 }
3486 },
3487 GetYoDigits: function(length, namespace) {
3488 length = length || 6;
3489 return Math.round(Math.pow(36, length + 1) - Math.random() * Math.pow(36, length)).toString(36).slice(1) + (namespace ? "-" + namespace : "")
3490 },
3491 reflow: function(elem, plugins) {
3492 if (typeof plugins === "undefined") {
3493 plugins = Object.keys(this._plugins)
3494 } else if (typeof plugins === "string") {
3495 plugins = [plugins]
3496 }
3497 var _this = this;
3498 $.each(plugins, function(i, name) {
3499 var plugin = _this._plugins[name];
3500 var $elem = $(elem).find("[data-" + name + "]").addBack("[data-" + name + "]");
3501 $elem.each(function() {
3502 var $el = $(this),
3503 opts = {};
3504 if ($el.data("zf-plugin")) {
3505 console.warn("Tried to initialize " + name + " on an element that already has a Foundation plugin.");
3506 return
3507 }
3508 if ($el.attr("data-options")) {
3509 var thing = $el.attr("data-options").split(";").forEach(function(e, i) {
3510 var opt = e.split(":").map(function(el) {
3511 return el.trim()
3512 });
3513 if (opt[0]) opts[opt[0]] = parseValue(opt[1])
3514 })
3515 }
3516 try {
3517 $el.data("zf-plugin", new plugin($(this), opts))
3518 } catch (er) {
3519 console.error(er)
3520 } finally {
3521 return
3522 }
3523 })
3524 })
3525 },
3526 getFnName: functionName,
3527 transitionend: function($elem) {
3528 var transitions = {
3529 transition: "transitionend",
3530 WebkitTransition: "webkitTransitionEnd",
3531 MozTransition: "transitionend",
3532 OTransition: "otransitionend"
3533 };
3534 var elem = document.createElement("div"),
3535 end;
3536 for (var t in transitions) {
3537 if (typeof elem.style[t] !== "undefined") {
3538 end = transitions[t]
3539 }
3540 }
3541 if (end) {
3542 return end
3543 } else {
3544 end = setTimeout(function() {
3545 $elem.triggerHandler("transitionend", [$elem])
3546 }, 1);
3547 return "transitionend"
3548 }
3549 }
3550 };
3551 Foundation.util = {
3552 throttle: function(func, delay) {
3553 var timer = null;
3554 return function() {
3555 var context = this,
3556 args = arguments;
3557 if (timer === null) {
3558 timer = setTimeout(function() {
3559 func.apply(context, args);
3560 timer = null
3561 }, delay)
3562 }
3563 }
3564 }
3565 };
3566 var foundation = function(method) {
3567 var type = typeof method,
3568 $meta = $("meta.foundation-mq"),
3569 $noJS = $(".no-js");
3570 if (!$meta.length) {
3571 $('<meta class="foundation-mq">').appendTo(document.head)
3572 }
3573 if ($noJS.length) {
3574 $noJS.removeClass("no-js")
3575 }
3576 if (type === "undefined") {
3577 Foundation.MediaQuery._init();
3578 Foundation.reflow(this)
3579 } else if (type === "string") {
3580 var args = Array.prototype.slice.call(arguments, 1);
3581 var plugClass = this.data("zfPlugin");
3582 if (plugClass !== undefined && plugClass[method] !== undefined) {
3583 if (this.length === 1) {
3584 plugClass[method].apply(plugClass, args)
3585 } else {
3586 this.each(function(i, el) {
3587 plugClass[method].apply($(el).data("zfPlugin"), args)
3588 })
3589 }
3590 } else {
3591 throw new ReferenceError("We're sorry, '" + method + "' is not an available method for " + (plugClass ? functionName(plugClass) : "this element") + ".")
3592 }
3593 } else {
3594 throw new TypeError("We're sorry, '" + type + "' is not a valid parameter. You must use a string representing the method you wish to invoke.")
3595 }
3596 return this
3597 };
3598 window.Foundation = Foundation;
3599 $.fn.foundation = foundation;
3600 (function() {
3601 if (!Date.now || !window.Date.now) window.Date.now = Date.now = function() {
3602 return (new Date).getTime()
3603 };
3604 var vendors = ["webkit", "moz"];
3605 for (var i = 0; i < vendors.length && !window.requestAnimationFrame; ++i) {
3606 var vp = vendors[i];
3607 window.requestAnimationFrame = window[vp + "RequestAnimationFrame"];
3608 window.cancelAnimationFrame = window[vp + "CancelAnimationFrame"] || window[vp + "CancelRequestAnimationFrame"]
3609 }
3610 if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) || !window.requestAnimationFrame || !window.cancelAnimationFrame) {
3611 var lastTime = 0;
3612 window.requestAnimationFrame = function(callback) {
3613 var now = Date.now();
3614 var nextTime = Math.max(lastTime + 16, now);
3615 return setTimeout(function() {
3616 callback(lastTime = nextTime)
3617 }, nextTime - now)
3618 };
3619 window.cancelAnimationFrame = clearTimeout
3620 }
3621 if (!window.performance || !window.performance.now) {
3622 window.performance = {
3623 start: Date.now(),
3624 now: function() {
3625 return Date.now() - this.start
3626 }
3627 }
3628 }
3629 })();
3630 if (!Function.prototype.bind) {
3631 Function.prototype.bind = function(oThis) {
3632 if (typeof this !== "function") {
3633 throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")
3634 }
3635 var aArgs = Array.prototype.slice.call(arguments, 1),
3636 fToBind = this,
3637 fNOP = function() {},
3638 fBound = function() {
3639 return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)))
3640 };
3641 if (this.prototype) {
3642 fNOP.prototype = this.prototype
3643 }
3644 fBound.prototype = new fNOP;
3645 return fBound
3646 }
3647 }
3648
3649 function functionName(fn) {
3650 if (Function.prototype.name === undefined) {
3651 var funcNameRegex = /function\s([^(]{1,})\(/;
3652 var results = funcNameRegex.exec(fn.toString());
3653 return results && results.length > 1 ? results[1].trim() : ""
3654 } else if (fn.prototype === undefined) {
3655 return fn.constructor.name
3656 } else {
3657 return fn.prototype.constructor.name
3658 }
3659 }
3660
3661 function parseValue(str) {
3662 if (/true/.test(str)) return true;
3663 else if (/false/.test(str)) return false;
3664 else if (!isNaN(str * 1)) return parseFloat(str);
3665 return str
3666 }
3667
3668 function hyphenate(str) {
3669 return str.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()
3670 }
3671}(jQuery);
3672! function(Foundation, window) {
3673 var ImNotTouchingYou = function(element, parent, lrOnly, tbOnly) {
3674 var eleDims = GetDimensions(element),
3675 top, bottom, left, right;
3676 if (parent) {
3677 var parDims = GetDimensions(parent);
3678 bottom = eleDims.offset.top + eleDims.height <= parDims.height + parDims.offset.top;
3679 top = eleDims.offset.top >= parDims.offset.top;
3680 left = eleDims.offset.left >= parDims.offset.left;
3681 right = eleDims.offset.left + eleDims.width <= parDims.width
3682 } else {
3683 bottom = eleDims.offset.top + eleDims.height <= eleDims.windowDims.height + eleDims.windowDims.offset.top;
3684 top = eleDims.offset.top >= eleDims.windowDims.offset.top;
3685 left = eleDims.offset.left >= eleDims.windowDims.offset.left;
3686 right = eleDims.offset.left + eleDims.width <= eleDims.windowDims.width
3687 }
3688 var allDirs = [bottom, top, left, right];
3689 if (lrOnly) {
3690 return left === right === true
3691 }
3692 if (tbOnly) {
3693 return top === bottom === true
3694 }
3695 return allDirs.indexOf(false) === -1
3696 };
3697 var GetDimensions = function(elem, test) {
3698 elem = elem.length ? elem[0] : elem;
3699 if (elem === window || elem === document) {
3700 throw new Error("I'm sorry, Dave. I'm afraid I can't do that.")
3701 }
3702 var rect = elem.getBoundingClientRect(),
3703 parRect = elem.parentNode.getBoundingClientRect(),
3704 winRect = document.body.getBoundingClientRect(),
3705 winY = window.pageYOffset,
3706 winX = window.pageXOffset;
3707 return {
3708 width: rect.width,
3709 height: rect.height,
3710 offset: {
3711 top: rect.top + winY,
3712 left: rect.left + winX
3713 },
3714 parentDims: {
3715 width: parRect.width,
3716 height: parRect.height,
3717 offset: {
3718 top: parRect.top + winY,
3719 left: parRect.left + winX
3720 }
3721 },
3722 windowDims: {
3723 width: winRect.width,
3724 height: winRect.height,
3725 offset: {
3726 top: winY,
3727 left: winX
3728 }
3729 }
3730 }
3731 };
3732 var GetOffsets = function(element, anchor, position, vOffset, hOffset, isOverflow) {
3733 var $eleDims = GetDimensions(element),
3734 $anchorDims = anchor ? GetDimensions(anchor) : null;
3735 switch (position) {
3736 case "top":
3737 return {
3738 left: $anchorDims.offset.left,
3739 top: $anchorDims.offset.top - ($eleDims.height + vOffset)
3740 };
3741 break;
3742 case "left":
3743 return {
3744 left: $anchorDims.offset.left - ($eleDims.width + hOffset),
3745 top: $anchorDims.offset.top
3746 };
3747 break;
3748 case "right":
3749 return {
3750 left: $anchorDims.offset.left + $anchorDims.width + hOffset,
3751 top: $anchorDims.offset.top
3752 };
3753 break;
3754 case "center top":
3755 return {
3756 left: $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2,
3757 top: $anchorDims.offset.top - ($eleDims.height + vOffset)
3758 };
3759 break;
3760 case "center bottom":
3761 return {
3762 left: isOverflow ? hOffset : $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2,
3763 top: $anchorDims.offset.top + $anchorDims.height + vOffset
3764 };
3765 break;
3766 case "center left":
3767 return {
3768 left: $anchorDims.offset.left - ($eleDims.width + hOffset),
3769 top: $anchorDims.offset.top + $anchorDims.height / 2 - $eleDims.height / 2
3770 };
3771 break;
3772 case "center right":
3773 return {
3774 left: $anchorDims.offset.left + $anchorDims.width + hOffset + 1,
3775 top: $anchorDims.offset.top + $anchorDims.height / 2 - $eleDims.height / 2
3776 };
3777 break;
3778 case "center":
3779 return {
3780 left: $eleDims.windowDims.offset.left + $eleDims.windowDims.width / 2 - $eleDims.width / 2,
3781 top: $eleDims.windowDims.offset.top + $eleDims.windowDims.height / 2 - $eleDims.height / 2
3782 };
3783 break;
3784 case "reveal":
3785 return {
3786 left: ($eleDims.windowDims.width - $eleDims.width) / 2,
3787 top: $eleDims.windowDims.offset.top + vOffset
3788 };
3789 case "reveal full":
3790 return {
3791 left: $eleDims.windowDims.offset.left,
3792 top: $eleDims.windowDims.offset.top
3793 };
3794 break;
3795 default:
3796 return {
3797 left: $anchorDims.offset.left,
3798 top: $anchorDims.offset.top + $anchorDims.height + vOffset
3799 }
3800 }
3801 };
3802 Foundation.Box = {
3803 ImNotTouchingYou: ImNotTouchingYou,
3804 GetDimensions: GetDimensions,
3805 GetOffsets: GetOffsets
3806 }
3807}(window.Foundation, window);
3808! function($, Foundation) {
3809 "use strict";
3810 Foundation.Keyboard = {};
3811 var keyCodes = {
3812 9: "TAB",
3813 13: "ENTER",
3814 27: "ESCAPE",
3815 32: "SPACE",
3816 37: "ARROW_LEFT",
3817 38: "ARROW_UP",
3818 39: "ARROW_RIGHT",
3819 40: "ARROW_DOWN"
3820 };
3821 var keys = function(kcs) {
3822 var k = {};
3823 for (var kc in kcs) k[kcs[kc]] = kcs[kc];
3824 return k
3825 }(keyCodes);
3826 Foundation.Keyboard.keys = keys;
3827 var parseKey = function(event) {
3828 var key = keyCodes[event.which || event.keyCode] || String.fromCharCode(event.which).toUpperCase();
3829 if (event.shiftKey) key = "SHIFT_" + key;
3830 if (event.ctrlKey) key = "CTRL_" + key;
3831 if (event.altKey) key = "ALT_" + key;
3832 return key
3833 };
3834 Foundation.Keyboard.parseKey = parseKey;
3835 var commands = {};
3836 var handleKey = function(event, component, functions) {
3837 var commandList = commands[Foundation.getFnName(component)],
3838 keyCode = parseKey(event),
3839 cmds, command, fn;
3840 if (!commandList) return console.warn("Component not defined!");
3841 if (typeof commandList.ltr === "undefined") {
3842 cmds = commandList
3843 } else {
3844 if (Foundation.rtl()) cmds = $.extend({}, commandList.ltr, commandList.rtl);
3845 else cmds = $.extend({}, commandList.rtl, commandList.ltr)
3846 }
3847 command = cmds[keyCode];
3848 fn = functions[command];
3849 if (fn && typeof fn === "function") {
3850 fn.apply(component);
3851 if (functions.handled || typeof functions.handled === "function") {
3852 functions.handled.apply(component)
3853 }
3854 } else {
3855 if (functions.unhandled || typeof functions.unhandled === "function") {
3856 functions.unhandled.apply(component)
3857 }
3858 }
3859 };
3860 Foundation.Keyboard.handleKey = handleKey;
3861 var findFocusable = function($element) {
3862 return $element.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function() {
3863 if (!$(this).is(":visible") || $(this).attr("tabindex") < 0) {
3864 return false
3865 }
3866 return true
3867 })
3868 };
3869 Foundation.Keyboard.findFocusable = findFocusable;
3870 var register = function(componentName, cmds) {
3871 commands[componentName] = cmds
3872 };
3873 Foundation.Keyboard.register = register
3874}(jQuery, window.Foundation);
3875! function($, Foundation) {
3876 var defaultQueries = {
3877 default: "only screen",
3878 landscape: "only screen and (orientation: landscape)",
3879 portrait: "only screen and (orientation: portrait)",
3880 retina: "only screen and (-webkit-min-device-pixel-ratio: 2)," + "only screen and (min--moz-device-pixel-ratio: 2)," + "only screen and (-o-min-device-pixel-ratio: 2/1)," + "only screen and (min-device-pixel-ratio: 2)," + "only screen and (min-resolution: 192dpi)," + "only screen and (min-resolution: 2dppx)"
3881 };
3882 var MediaQuery = {
3883 queries: [],
3884 current: "",
3885 atLeast: function(size) {
3886 var query = this.get(size);
3887 if (query) {
3888 return window.matchMedia(query).matches
3889 }
3890 return false
3891 },
3892 get: function(size) {
3893 for (var i in this.queries) {
3894 var query = this.queries[i];
3895 if (size === query.name) return query.value
3896 }
3897 return null
3898 },
3899 _init: function() {
3900 var self = this;
3901 var extractedStyles = $(".foundation-mq").css("font-family");
3902 var namedQueries;
3903 namedQueries = parseStyleToObject(extractedStyles);
3904 for (var key in namedQueries) {
3905 self.queries.push({
3906 name: key,
3907 value: "only screen and (min-width: " + namedQueries[key] + ")"
3908 })
3909 }
3910 this.current = this._getCurrentSize();
3911 this._watcher()
3912 },
3913 _getCurrentSize: function() {
3914 var matched;
3915 for (var i in this.queries) {
3916 var query = this.queries[i];
3917 if (window.matchMedia(query.value).matches) {
3918 matched = query
3919 }
3920 }
3921 if (typeof matched === "object") {
3922 return matched.name
3923 } else {
3924 return matched
3925 }
3926 },
3927 _watcher: function() {
3928 var _this = this;
3929 $(window).on("resize.zf.mediaquery", function() {
3930 var newSize = _this._getCurrentSize();
3931 if (newSize !== _this.current) {
3932 $(window).trigger("changed.zf.mediaquery", [newSize, _this.current]);
3933 _this.current = newSize
3934 }
3935 })
3936 }
3937 };
3938 Foundation.MediaQuery = MediaQuery;
3939 window.matchMedia || (window.matchMedia = function() {
3940 "use strict";
3941 var styleMedia = window.styleMedia || window.media;
3942 if (!styleMedia) {
3943 var style = document.createElement("style"),
3944 script = document.getElementsByTagName("script")[0],
3945 info = null;
3946 style.type = "text/css";
3947 style.id = "matchmediajs-test";
3948 script.parentNode.insertBefore(style, script);
3949 info = "getComputedStyle" in window && window.getComputedStyle(style, null) || style.currentStyle;
3950 styleMedia = {
3951 matchMedium: function(media) {
3952 var text = "@media " + media + "{ #matchmediajs-test { width: 1px; } }";
3953 if (style.styleSheet) {
3954 style.styleSheet.cssText = text
3955 } else {
3956 style.textContent = text
3957 }
3958 return info.width === "1px"
3959 }
3960 }
3961 }
3962 return function(media) {
3963 return {
3964 matches: styleMedia.matchMedium(media || "all"),
3965 media: media || "all"
3966 }
3967 }
3968 }());
3969
3970 function parseStyleToObject(str) {
3971 var styleObject = {};
3972 if (typeof str !== "string") {
3973 return styleObject
3974 }
3975 str = str.trim().slice(1, -1);
3976 if (!str) {
3977 return styleObject
3978 }
3979 styleObject = str.split("&").reduce(function(ret, param) {
3980 var parts = param.replace(/\+/g, " ").split("=");
3981 var key = parts[0];
3982 var val = parts[1];
3983 key = decodeURIComponent(key);
3984 val = val === undefined ? null : decodeURIComponent(val);
3985 if (!ret.hasOwnProperty(key)) {
3986 ret[key] = val
3987 } else if (Array.isArray(ret[key])) {
3988 ret[key].push(val)
3989 } else {
3990 ret[key] = [ret[key], val]
3991 }
3992 return ret
3993 }, {});
3994 return styleObject
3995 }
3996}(jQuery, Foundation);
3997! function($, Foundation) {
3998 var initClasses = ["mui-enter", "mui-leave"];
3999 var activeClasses = ["mui-enter-active", "mui-leave-active"];
4000
4001 function animate(isIn, element, animation, cb) {
4002 element = $(element).eq(0);
4003 if (!element.length) return;
4004 var initClass = isIn ? initClasses[0] : initClasses[1];
4005 var activeClass = isIn ? activeClasses[0] : activeClasses[1];
4006 reset();
4007 element.addClass(animation).css("transition", "none");
4008 requestAnimationFrame(function() {
4009 element.addClass(initClass);
4010 if (isIn) element.show()
4011 });
4012 requestAnimationFrame(function() {
4013 element[0].offsetWidth;
4014 element.css("transition", "");
4015 element.addClass(activeClass)
4016 });
4017 element.one(Foundation.transitionend(element), finish);
4018
4019 function finish() {
4020 if (!isIn) element.hide();
4021 reset();
4022 if (cb) cb.apply(element)
4023 }
4024
4025 function reset() {
4026 element[0].style.transitionDuration = 0;
4027 element.removeClass(initClass + " " + activeClass + " " + animation)
4028 }
4029 }
4030 var Motion = {
4031 animateIn: function(element, animation, cb) {
4032 animate(true, element, animation, cb)
4033 },
4034 animateOut: function(element, animation, cb) {
4035 animate(false, element, animation, cb)
4036 }
4037 };
4038 var Move = function(duration, elem, fn) {
4039 var anim, prog, start = null;
4040
4041 function move(ts) {
4042 if (!start) start = window.performance.now();
4043 prog = ts - start;
4044 fn.apply(elem);
4045 if (prog < duration) {
4046 anim = window.requestAnimationFrame(move, elem)
4047 } else {
4048 window.cancelAnimationFrame(anim);
4049 elem.trigger("finished.zf.animate", [elem]).triggerHandler("finished.zf.animate", [elem])
4050 }
4051 }
4052 anim = window.requestAnimationFrame(move)
4053 };
4054 Foundation.Move = Move;
4055 Foundation.Motion = Motion
4056}(jQuery, Foundation);
4057! function($, Foundation) {
4058 "use strict";
4059 Foundation.Nest = {
4060 Feather: function(menu, type) {
4061 menu.attr("role", "menubar");
4062 type = type || "zf";
4063 var items = menu.find("li").attr({
4064 role: "menuitem"
4065 }),
4066 subMenuClass = "is-" + type + "-submenu",
4067 subItemClass = subMenuClass + "-item",
4068 hasSubClass = "is-" + type + "-submenu-parent";
4069 menu.find("a:first").attr("tabindex", 0);
4070 items.each(function() {
4071 var $item = $(this),
4072 $sub = $item.children("ul");
4073 if ($sub.length) {
4074 $item.addClass("has-submenu " + hasSubClass).attr({
4075 "aria-haspopup": true,
4076 "aria-selected": false,
4077 "aria-expanded": false,
4078 "aria-label": $item.children("a:first").text()
4079 });
4080 $sub.addClass("submenu " + subMenuClass).attr({
4081 "data-submenu": "",
4082 "aria-hidden": true,
4083 role: "menu"
4084 })
4085 }
4086 if ($item.parent("[data-submenu]").length) {
4087 $item.addClass("is-submenu-item " + subItemClass)
4088 }
4089 });
4090 return
4091 },
4092 Burn: function(menu, type) {
4093 var items = menu.find("li").removeAttr("tabindex"),
4094 subMenuClass = "is-" + type + "-submenu",
4095 subItemClass = subMenuClass + "-item",
4096 hasSubClass = "is-" + type + "-submenu-parent";
4097 menu.find("*").removeClass(subMenuClass + " " + subItemClass + " " + hasSubClass + " has-submenu is-submenu-item submenu is-active").removeAttr("data-submenu").css("display", "")
4098 }
4099 }
4100}(jQuery, window.Foundation);
4101! function($, Foundation) {
4102 "use strict";
4103 var Timer = function(elem, options, cb) {
4104 var _this = this,
4105 duration = options.duration,
4106 nameSpace = Object.keys(elem.data())[0] || "timer",
4107 remain = -1,
4108 start, timer;
4109 this.restart = function() {
4110 remain = -1;
4111 clearTimeout(timer);
4112 this.start()
4113 };
4114 this.start = function() {
4115 clearTimeout(timer);
4116 remain = remain <= 0 ? duration : remain;
4117 elem.data("paused", false);
4118 start = Date.now();
4119 timer = setTimeout(function() {
4120 if (options.infinite) {
4121 _this.restart()
4122 }
4123 cb()
4124 }, remain);
4125 elem.trigger("timerstart.zf." + nameSpace)
4126 };
4127 this.pause = function() {
4128 clearTimeout(timer);
4129 elem.data("paused", true);
4130 var end = Date.now();
4131 remain = remain - (end - start);
4132 elem.trigger("timerpaused.zf." + nameSpace)
4133 }
4134 };
4135 var onImagesLoaded = function(images, callback) {
4136 var self = this,
4137 unloaded = images.length;
4138 if (unloaded === 0) {
4139 callback()
4140 }
4141 var singleImageLoaded = function() {
4142 unloaded--;
4143 if (unloaded === 0) {
4144 callback()
4145 }
4146 };
4147 images.each(function() {
4148 if (this.complete) {
4149 singleImageLoaded()
4150 } else if (typeof this.naturalWidth !== "undefined" && this.naturalWidth > 0) {
4151 singleImageLoaded()
4152 } else {
4153 $(this).one("load", function() {
4154 singleImageLoaded()
4155 })
4156 }
4157 })
4158 };
4159 Foundation.Timer = Timer;
4160 Foundation.onImagesLoaded = onImagesLoaded
4161}(jQuery, window.Foundation);
4162(function($) {
4163 $.spotSwipe = {
4164 version: "1.0.0",
4165 enabled: "ontouchstart" in document.documentElement,
4166 preventDefault: true,
4167 moveThreshold: 75,
4168 timeThreshold: 200
4169 };
4170 var startPosX, startPosY, startTime, elapsedTime, isMoving = false;
4171
4172 function onTouchEnd() {
4173 this.removeEventListener("touchmove", onTouchMove);
4174 this.removeEventListener("touchend", onTouchEnd);
4175 isMoving = false
4176 }
4177
4178 function onTouchMove(e) {
4179 if ($.spotSwipe.preventDefault) {
4180 e.preventDefault()
4181 }
4182 if (isMoving) {
4183 var x = e.touches[0].pageX;
4184 var y = e.touches[0].pageY;
4185 var dx = startPosX - x;
4186 var dy = startPosY - y;
4187 var dir;
4188 elapsedTime = (new Date).getTime() - startTime;
4189 if (Math.abs(dx) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) {
4190 dir = dx > 0 ? "left" : "right"
4191 } else if (Math.abs(dy) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) {
4192 dir = dy > 0 ? "down" : "up"
4193 }
4194 if (dir) {
4195 onTouchEnd.call(this);
4196 $(this).trigger("swipe", dir).trigger("swipe" + dir)
4197 }
4198 }
4199 }
4200
4201 function onTouchStart(e) {
4202 if (e.touches.length == 1) {
4203 startPosX = e.touches[0].pageX;
4204 startPosY = e.touches[0].pageY;
4205 isMoving = true;
4206 startTime = (new Date).getTime();
4207 this.addEventListener("touchmove", onTouchMove, false);
4208 this.addEventListener("touchend", onTouchEnd, false)
4209 }
4210 }
4211
4212 function init() {
4213 this.addEventListener && this.addEventListener("touchstart", onTouchStart, false)
4214 }
4215
4216 function teardown() {
4217 this.removeEventListener("touchstart", onTouchStart)
4218 }
4219 $.event.special.swipe = {
4220 setup: init
4221 };
4222 $.each(["left", "up", "down", "right"], function() {
4223 $.event.special["swipe" + this] = {
4224 setup: function() {
4225 $(this).on("swipe", $.noop)
4226 }
4227 }
4228 })
4229})(jQuery);
4230! function($) {
4231 $.fn.addTouch = function() {
4232 this.each(function(i, el) {
4233 $(el).bind("touchstart touchmove touchend touchcancel", function() {
4234 handleTouch(event)
4235 })
4236 });
4237 var handleTouch = function(event) {
4238 var touches = event.changedTouches,
4239 first = touches[0],
4240 eventTypes = {
4241 touchstart: "mousedown",
4242 touchmove: "mousemove",
4243 touchend: "mouseup"
4244 },
4245 type = eventTypes[event.type];
4246 var simulatedEvent = document.createEvent("MouseEvent");
4247 simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0, null);
4248 first.target.dispatchEvent(simulatedEvent)
4249 }
4250 }
4251}(jQuery);
4252! function(Foundation, $) {
4253 "use strict";
4254 $(document).on("click.zf.trigger", "[data-open]", function() {
4255 var id = $(this).data("open");
4256 $("#" + id).triggerHandler("open.zf.trigger", [$(this)])
4257 });
4258 $(document).on("click.zf.trigger", "[data-close]", function() {
4259 var id = $(this).data("close");
4260 if (id) {
4261 $("#" + id).triggerHandler("close.zf.trigger", [$(this)])
4262 } else {
4263 $(this).trigger("close.zf.trigger")
4264 }
4265 });
4266 $(document).on("click.zf.trigger", "[data-toggle]", function() {
4267 var id = $(this).data("toggle");
4268 $("#" + id).triggerHandler("toggle.zf.trigger", [$(this)])
4269 });
4270 $(document).on("close.zf.trigger", "[data-closable]", function() {
4271 var animation = $(this).data("closable") || "fade-out";
4272 if (Foundation.Motion) {
4273 Foundation.Motion.animateOut($(this), animation, function() {
4274 $(this).trigger("closed.zf")
4275 })
4276 } else {
4277 $(this).fadeOut().trigger("closed.zf")
4278 }
4279 });
4280 var MutationObserver = function() {
4281 var prefixes = ["WebKit", "Moz", "O", "Ms", ""];
4282 for (var i = 0; i < prefixes.length; i++) {
4283 if (prefixes[i] + "MutationObserver" in window) {
4284 return window[prefixes[i] + "MutationObserver"]
4285 }
4286 }
4287 return false
4288 }();
4289 var checkListeners = function() {
4290 eventsListener();
4291 resizeListener();
4292 scrollListener();
4293 closemeListener()
4294 };
4295 $(window).load(function() {
4296 checkListeners()
4297 });
4298 var closemeListener = function(pluginName) {
4299 var yetiBoxes = $("[data-yeti-box]"),
4300 plugNames = ["dropdown", "tooltip", "reveal"];
4301 if (pluginName) {
4302 if (typeof pluginName === "string") {
4303 plugNames.push(pluginName)
4304 } else if (typeof pluginName === "object" && typeof pluginName[0] === "string") {
4305 plugNames.concat(pluginName)
4306 } else {
4307 console.error("Plugin names must be strings")
4308 }
4309 }
4310 if (yetiBoxes.length) {
4311 var listeners = plugNames.map(function(name) {
4312 return "closeme.zf." + name
4313 }).join(" ");
4314 $(window).off(listeners).on(listeners, function(e, pluginId) {
4315 var plugin = e.namespace.split(".")[0];
4316 var plugins = $("[data-" + plugin + "]").not('[data-yeti-box="' + pluginId + '"]');
4317 plugins.each(function() {
4318 var _this = $(this);
4319 _this.triggerHandler("close.zf.trigger", [_this])
4320 })
4321 })
4322 }
4323 };
4324 var resizeListener = function(debounce) {
4325 var timer, $nodes = $("[data-resize]");
4326 if ($nodes.length) {
4327 $(window).off("resize.zf.trigger").on("resize.zf.trigger", function(e) {
4328 if (timer) {
4329 clearTimeout(timer)
4330 }
4331 timer = setTimeout(function() {
4332 if (!MutationObserver) {
4333 $nodes.each(function() {
4334 $(this).triggerHandler("resizeme.zf.trigger")
4335 })
4336 }
4337 $nodes.attr("data-events", "resize")
4338 }, debounce || 10)
4339 })
4340 }
4341 };
4342 var scrollListener = function(debounce) {
4343 var timer, $nodes = $("[data-scroll]");
4344 if ($nodes.length) {
4345 $(window).off("scroll.zf.trigger").on("scroll.zf.trigger", function(e) {
4346 if (timer) {
4347 clearTimeout(timer)
4348 }
4349 timer = setTimeout(function() {
4350 if (!MutationObserver) {
4351 $nodes.each(function() {
4352 $(this).triggerHandler("scrollme.zf.trigger")
4353 })
4354 }
4355 $nodes.attr("data-events", "scroll")
4356 }, debounce || 10)
4357 })
4358 }
4359 };
4360 var eventsListener = function() {
4361 if (!MutationObserver) {
4362 return false
4363 }
4364 var nodes = document.querySelectorAll("[data-resize], [data-scroll], [data-mutate]");
4365 var listeningElementsMutation = function(mutationRecordsList) {
4366 var $target = $(mutationRecordsList[0].target);
4367 switch ($target.attr("data-events")) {
4368 case "resize":
4369 $target.triggerHandler("resizeme.zf.trigger", [$target]);
4370 break;
4371 case "scroll":
4372 $target.triggerHandler("scrollme.zf.trigger", [$target, window.pageYOffset]);
4373 break;
4374 default:
4375 return false
4376 }
4377 };
4378 if (nodes.length) {
4379 for (var i = 0; i <= nodes.length - 1; i++) {
4380 var elementObserver = new MutationObserver(listeningElementsMutation);
4381 elementObserver.observe(nodes[i], {
4382 attributes: true,
4383 childList: false,
4384 characterData: false,
4385 subtree: false,
4386 attributeFilter: ["data-events"]
4387 })
4388 }
4389 }
4390 };
4391 Foundation.IHearYou = checkListeners
4392}(window.Foundation, window.jQuery);
4393! function(Foundation, $) {
4394 "use strict";
4395
4396 function Abide(element, options) {
4397 this.$element = element;
4398 this.options = $.extend({}, Abide.defaults, this.$element.data(), options);
4399 this.$window = $(window);
4400 this.name = "Abide";
4401 this.attr = "data-abide";
4402 this._init();
4403 this._events();
4404 Foundation.registerPlugin(this)
4405 }
4406 Abide.defaults = {
4407 validateOn: "fieldChange",
4408 labelErrorClass: "is-invalid-label",
4409 inputErrorClass: "is-invalid-input",
4410 formErrorSelector: ".form-error",
4411 formErrorClass: "is-visible",
4412 patterns: {
4413 alpha: /^[a-zA-Z]+$/,
4414 alpha_numeric: /^[a-zA-Z0-9]+$/,
4415 integer: /^[-+]?\d+$/,
4416 number: /^[-+]?\d*(?:[\.\,]\d+)?$/,
4417 card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,
4418 cvv: /^([0-9]){3,4}$/,
4419 email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,
4420 url: /^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,
4421 domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,
4422 datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,
4423 date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,
4424 time: /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,
4425 dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
4426 month_day_year: /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,
4427 day_month_year: /^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,
4428 color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/
4429 },
4430 validators: {
4431 equalTo: function(el, required, parent) {
4432 var from = document.getElementById(el.getAttribute(this.add_namespace("data-equalto"))).value,
4433 to = el.value,
4434 valid = from === to;
4435 return valid
4436 }
4437 }
4438 };
4439 Abide.prototype._init = function() {};
4440 Abide.prototype._events = function() {
4441 var self = this;
4442 this.$element.off(".abide").on("reset.fndtn.abide", function(e) {
4443 self.resetForm($(this))
4444 }).on("submit.fndtn.abide", function(e) {
4445 e.preventDefault();
4446 self.validateForm(self.$element)
4447 }).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide", function(e) {
4448 if (self.options.validateOn === "fieldChange") {
4449 self.validateInput($(e.target), self.$element)
4450 }
4451 }).on("keydown.fndtn.abide", function(e) {})
4452 }, Abide.prototype._reflow = function() {
4453 var self = this
4454 };
4455 Abide.prototype.requiredCheck = function($el) {
4456 switch ($el[0].type) {
4457 case "text":
4458 if ($el.attr("required") && !$el.val()) {
4459 return false
4460 } else {
4461 return true
4462 }
4463 break;
4464 case "password":
4465 if ($el.attr("required") && !$el.val()) {
4466 return false
4467 } else {
4468 return true
4469 }
4470 break;
4471 case "checkbox":
4472 if ($el.attr("required") && !$el.is(":checked")) {
4473 return false
4474 } else {
4475 return true
4476 }
4477 break;
4478 case "radio":
4479 if ($el.attr("required") && !$el.is(":checked")) {
4480 return false
4481 } else {
4482 return true
4483 }
4484 break;
4485 default:
4486 if ($el.attr("required") && (!$el.val() || !$el.val().length || $el.is(":empty"))) {
4487 return false
4488 } else {
4489 return true
4490 }
4491 }
4492 };
4493 Abide.prototype.findLabel = function($el) {
4494 if ($el.next("label").length) {
4495 return $el.next("label")
4496 } else {
4497 return $el.closest("label")
4498 }
4499 };
4500 Abide.prototype.addErrorClasses = function($el) {
4501 var self = this,
4502 $label = self.findLabel($el),
4503 $formError = $el.next(self.options.formErrorSelector) || $el.find(self.options.formErrorSelector);
4504 if ($label) {
4505 $label.addClass(self.options.labelErrorClass)
4506 }
4507 if ($formError) {
4508 $formError.addClass(self.options.formErrorClass)
4509 }
4510 $el.addClass(self.options.inputErrorClass)
4511 };
4512 Abide.prototype.removeErrorClasses = function($el) {
4513 var self = this,
4514 $label = self.findLabel($el),
4515 $formError = $el.next(self.options.formErrorSelector) || $el.find(self.options.formErrorSelector);
4516 if ($label && $label.hasClass(self.options.labelErrorClass)) {
4517 $label.removeClass(self.options.labelErrorClass)
4518 }
4519 if ($formError && $formError.hasClass(self.options.formErrorClass)) {
4520 $formError.removeClass(self.options.formErrorClass)
4521 }
4522 if ($el.hasClass(self.options.inputErrorClass)) {
4523 $el.removeClass(self.options.inputErrorClass)
4524 }
4525 };
4526 Abide.prototype.validateInput = function($el, $form) {
4527 var self = this,
4528 textInput = $form.find('input[type="text"]'),
4529 passwordInput = $form.find('input[type="password"]'),
4530 checkInput = $form.find('input[type="checkbox"]'),
4531 label, radioGroupName;
4532 if ($el[0].type === "text") {
4533 if (!self.requiredCheck($el) || !self.validateText($el)) {
4534 self.addErrorClasses($el);
4535 $el.trigger("invalid.fndtn.abide", $el[0])
4536 } else {
4537 self.removeErrorClasses($el);
4538 $el.trigger("valid.fndtn.abide", $el[0])
4539 }
4540 } else if ($el[0].type === "radio") {
4541 radioGroupName = $el.attr("name");
4542 label = $el.siblings("label");
4543 if (self.validateRadio(radioGroupName)) {
4544 $(label).each(function() {
4545 if ($(this).hasClass(self.options.labelErrorClass)) {
4546 $(this).removeClass(self.options.labelErrorClass)
4547 }
4548 });
4549 $el.trigger("valid.fndtn.abide", $el[0])
4550 } else {
4551 $(label).each(function() {
4552 $(this).addClass(self.options.labelErrorClass)
4553 });
4554 $el.trigger("invalid.fndtn.abide", $el[0])
4555 }
4556 } else if ($el[0].type === "checkbox") {
4557 if (!self.requiredCheck($el)) {
4558 self.addErrorClasses($el);
4559 $el.trigger("invalid.fndtn.abide", $el[0])
4560 } else {
4561 self.removeErrorClasses($el);
4562 $el.trigger("valid.fndtn.abide", $el[0])
4563 }
4564 } else {
4565 if (!self.requiredCheck($el) || !self.validateText($el)) {
4566 self.addErrorClasses($el);
4567 $el.trigger("invalid.fndtn.abide", $el[0])
4568 } else {
4569 self.removeErrorClasses($el);
4570 $el.trigger("valid.fndtn.abide", $el[0])
4571 }
4572 }
4573 };
4574 Abide.prototype.validateForm = function($form) {
4575 var self = this,
4576 inputs = $form.find("input"),
4577 inputCount = $form.find("input").length,
4578 counter = 0;
4579 while (counter < inputCount) {
4580 self.validateInput($(inputs[counter]), $form);
4581 counter++
4582 }
4583 if ($form.find(".form-error.is-visible").length || $form.find(".is-invalid-label").length) {
4584 $form.find("[data-abide-error]").css("display", "block")
4585 } else {
4586 $form.find("[data-abide-error]").css("display", "none")
4587 }
4588 };
4589 Abide.prototype.validateText = function($el) {
4590 var self = this,
4591 valid = false,
4592 patternLib = this.options.patterns,
4593 inputText = $($el).val(),
4594 pattern = $($el).attr("pattern");
4595 if (inputText.length === 0) {
4596 return true
4597 } else {
4598 if (inputText.match(patternLib[pattern])) {
4599 return true
4600 } else {
4601 return false
4602 }
4603 }
4604 };
4605 Abide.prototype.validateRadio = function(group) {
4606 var self = this,
4607 labels = $(':radio[name="' + group + '"]').siblings("label"),
4608 counter = 0;
4609 $(':radio[name="' + group + '"]').each(function() {
4610 if (!self.requiredCheck($(this))) {
4611 counter++
4612 }
4613 if ($(this).is(":checked")) {
4614 counter = 0
4615 }
4616 });
4617 if (counter > 0) {
4618 return false
4619 } else {
4620 return true
4621 }
4622 };
4623 Abide.prototype.matchValidation = function(val, validation) {};
4624 Abide.prototype.resetForm = function($form) {
4625 var self = this;
4626 var invalidAttr = "data-invalid";
4627 $("[" + self.invalidAttr + "]", $form).removeAttr(invalidAttr);
4628 $("." + self.options.labelErrorClass, $form).not("small").removeClass(self.options.labelErrorClass);
4629 $("." + self.options.inputErrorClass, $form).not("small").removeClass(self.options.inputErrorClass);
4630 $(".form-error.is-visible").removeClass("is-visible");
4631 $form.find("[data-abide-error]").css("display", "none");
4632 $(":input", $form).not(":button, :submit, :reset, :hidden, [data-abide-ignore]").val("").removeAttr(invalidAttr)
4633 };
4634 Abide.prototype.destroy = function() {};
4635 Foundation.plugin(Abide, "Abide");
4636 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Abide;
4637 if (typeof define === "function") define(["foundation"], function() {
4638 return Abide
4639 })
4640}(Foundation, jQuery);
4641! function($, Foundation) {
4642 "use strict";
4643
4644 function Accordion(element, options) {
4645 this.$element = element;
4646 this.options = $.extend({}, Accordion.defaults, this.$element.data(), options);
4647 this._init();
4648 Foundation.registerPlugin(this);
4649 Foundation.Keyboard.register("Accordion", {
4650 ENTER: "toggle",
4651 SPACE: "toggle",
4652 ARROW_DOWN: "next",
4653 ARROW_UP: "previous"
4654 })
4655 }
4656 Accordion.defaults = {
4657 slideSpeed: 250,
4658 multiExpand: false,
4659 allowAllClosed: false
4660 };
4661 Accordion.prototype._init = function() {
4662 this.$element.attr("role", "tablist");
4663 this.$tabs = this.$element.children("li");
4664 if (this.$tabs.length == 0) {
4665 this.$tabs = this.$element.children("[data-accordion-item]")
4666 }
4667 this.$tabs.each(function(idx, el) {
4668 var $el = $(el),
4669 $content = $el.find("[data-tab-content]"),
4670 id = $content[0].id || Foundation.GetYoDigits(6, "accordion"),
4671 linkId = el.id || id + "-label";
4672 $el.find("a:first").attr({
4673 "aria-controls": id,
4674 role: "tab",
4675 id: linkId,
4676 "aria-expanded": false,
4677 "aria-selected": false
4678 });
4679 $content.attr({
4680 role: "tabpanel",
4681 "aria-labelledby": linkId,
4682 "aria-hidden": true,
4683 id: id
4684 })
4685 });
4686 var $initActive = this.$element.find(".is-active").children("[data-tab-content]");
4687 if ($initActive.length) {
4688 this.down($initActive, true)
4689 }
4690 this._events()
4691 };
4692 Accordion.prototype._events = function() {
4693 var _this = this;
4694 this.$tabs.each(function() {
4695 var $elem = $(this);
4696 var $tabContent = $elem.children("[data-tab-content]");
4697 if ($tabContent.length) {
4698 $elem.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion", function(e) {
4699 e.preventDefault();
4700 if ($elem.hasClass("is-active")) {
4701 if (_this.options.allowAllClosed || $elem.siblings().hasClass("is-active")) {
4702 _this.up($tabContent)
4703 }
4704 } else {
4705 _this.down($tabContent)
4706 }
4707 }).on("keydown.zf.accordion", function(e) {
4708 Foundation.Keyboard.handleKey(e, _this, {
4709 toggle: function() {
4710 _this.toggle($tabContent)
4711 },
4712 next: function() {
4713 $elem.next().find("a").focus().trigger("click.zf.accordion")
4714 },
4715 previous: function() {
4716 $elem.prev().find("a").focus().trigger("click.zf.accordion")
4717 },
4718 handled: function() {
4719 e.preventDefault();
4720 e.stopPropagation()
4721 }
4722 })
4723 })
4724 }
4725 })
4726 };
4727 Accordion.prototype.toggle = function($target) {
4728 if ($target.parent().hasClass("is-active")) {
4729 if (this.options.allowAllClosed || $target.parent().siblings().hasClass("is-active")) {
4730 this.up($target)
4731 } else {
4732 return
4733 }
4734 } else {
4735 this.down($target)
4736 }
4737 };
4738 Accordion.prototype.down = function($target, firstTime) {
4739 var _this = this;
4740 if (!this.options.multiExpand && !firstTime) {
4741 var $currentActive = this.$element.find(".is-active").children("[data-tab-content]");
4742 if ($currentActive.length) {
4743 this.up($currentActive)
4744 }
4745 }
4746 $target.attr("aria-hidden", false).parent("[data-tab-content]").addBack().parent().addClass("is-active");
4747 $target.slideDown(_this.options.slideSpeed);
4748 $("#" + $target.attr("aria-labelledby")).attr({
4749 "aria-expanded": true,
4750 "aria-selected": true
4751 });
4752 this.$element.trigger("down.zf.accordion", [$target])
4753 };
4754 Accordion.prototype.up = function($target) {
4755 var $aunts = $target.parent().siblings(),
4756 _this = this;
4757 var canClose = this.options.multiExpand ? $aunts.hasClass("is-active") : $target.parent().hasClass("is-active");
4758 if (!this.options.allowAllClosed && !canClose) {
4759 return
4760 }
4761 $target.slideUp(_this.options.slideSpeed);
4762 $target.attr("aria-hidden", true).parent().removeClass("is-active");
4763 $("#" + $target.attr("aria-labelledby")).attr({
4764 "aria-expanded": false,
4765 "aria-selected": false
4766 });
4767 this.$element.trigger("up.zf.accordion", [$target])
4768 };
4769 Accordion.prototype.destroy = function() {
4770 this.$element.find("[data-tab-content]").slideUp(0).css("display", "");
4771 this.$element.find("a").off(".zf.accordion");
4772 Foundation.unregisterPlugin(this)
4773 };
4774 Foundation.plugin(Accordion, "Accordion")
4775}(jQuery, window.Foundation);
4776! function($) {
4777 "use strict";
4778
4779 function AccordionMenu(element, options) {
4780 this.$element = element;
4781 this.options = $.extend({}, AccordionMenu.defaults, this.$element.data(), options);
4782 Foundation.Nest.Feather(this.$element, "accordion");
4783 this._init();
4784 Foundation.registerPlugin(this);
4785 Foundation.Keyboard.register("AccordionMenu", {
4786 ENTER: "toggle",
4787 SPACE: "toggle",
4788 ARROW_RIGHT: "open",
4789 ARROW_UP: "up",
4790 ARROW_DOWN: "down",
4791 ARROW_LEFT: "close",
4792 ESCAPE: "closeAll",
4793 TAB: "down",
4794 SHIFT_TAB: "up"
4795 })
4796 }
4797 AccordionMenu.defaults = {
4798 slideSpeed: 250,
4799 multiOpen: true
4800 };
4801 AccordionMenu.prototype._init = function() {
4802 this.$element.find("[data-submenu]").not(".is-active").slideUp(0);
4803 this.$element.attr({
4804 role: "tablist",
4805 "aria-multiselectable": this.options.multiOpen
4806 });
4807 this.$menuLinks = this.$element.find(".has-submenu");
4808 this.$menuLinks.each(function() {
4809 var linkId = this.id || Foundation.GetYoDigits(6, "acc-menu-link"),
4810 $elem = $(this),
4811 $sub = $elem.children("[data-submenu]"),
4812 subId = $sub[0].id || Foundation.GetYoDigits(6, "acc-menu"),
4813 isActive = $sub.hasClass("is-active");
4814 $elem.attr({
4815 "aria-controls": subId,
4816 "aria-expanded": isActive,
4817 "aria-selected": false,
4818 role: "tab",
4819 id: linkId
4820 });
4821 $sub.attr({
4822 "aria-labelledby": linkId,
4823 "aria-hidden": !isActive,
4824 role: "tabpanel",
4825 id: subId
4826 })
4827 });
4828 var initPanes = this.$element.find(".is-active");
4829 if (initPanes.length) {
4830 var _this = this;
4831 initPanes.each(function() {
4832 _this.down($(this))
4833 })
4834 }
4835 this._events()
4836 };
4837 AccordionMenu.prototype._events = function() {
4838 var _this = this;
4839 this.$element.find("li").each(function() {
4840 var $submenu = $(this).children("[data-submenu]");
4841 if ($submenu.length) {
4842 $(this).children("a").off("click.zf.accordionmenu").on("click.zf.accordionmenu", function(e) {
4843 e.preventDefault();
4844 _this.toggle($submenu)
4845 })
4846 }
4847 }).on("keydown.zf.accordionmenu", function(e) {
4848 var $element = $(this),
4849 $elements = $element.parent("ul").children("li"),
4850 $prevElement, $nextElement, $target = $element.children("[data-submenu]");
4851 $elements.each(function(i) {
4852 if ($(this).is($element)) {
4853 $prevElement = $elements.eq(Math.max(0, i - 1));
4854 $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1));
4855 if ($(this).children("[data-submenu]:visible").length) {
4856 $nextElement = $element.find("li:first-child")
4857 }
4858 if ($(this).is(":first-child")) {
4859 $prevElement = $element.parents("li").first()
4860 } else if ($prevElement.children("[data-submenu]:visible").length) {
4861 $prevElement = $prevElement.find("li:last-child")
4862 }
4863 if ($(this).is(":last-child")) {
4864 $nextElement = $element.parents("li").first().next("li")
4865 }
4866 return
4867 }
4868 });
4869 Foundation.Keyboard.handleKey(e, _this, {
4870 open: function() {
4871 if ($target.is(":hidden")) {
4872 _this.down($target);
4873 $target.find("li").first().focus()
4874 }
4875 },
4876 close: function() {
4877 if ($target.length && !$target.is(":hidden")) {
4878 _this.up($target)
4879 } else if ($element.parent("[data-submenu]").length) {
4880 _this.up($element.parent("[data-submenu]"));
4881 $element.parents("li").first().focus()
4882 }
4883 },
4884 up: function() {
4885 $prevElement.focus()
4886 },
4887 down: function() {
4888 $nextElement.focus()
4889 },
4890 toggle: function() {
4891 if ($element.children("[data-submenu]").length) {
4892 _this.toggle($element.children("[data-submenu]"))
4893 }
4894 },
4895 closeAll: function() {
4896 _this.hideAll()
4897 },
4898 handled: function() {
4899 e.preventDefault();
4900 e.stopImmediatePropagation()
4901 }
4902 })
4903 })
4904 };
4905 AccordionMenu.prototype.hideAll = function() {
4906 this.$element.find("[data-submenu]").slideUp(this.options.slideSpeed)
4907 };
4908 AccordionMenu.prototype.toggle = function($target) {
4909 if (!$target.is(":animated")) {
4910 if (!$target.is(":hidden")) {
4911 this.up($target)
4912 } else {
4913 this.down($target)
4914 }
4915 }
4916 };
4917 AccordionMenu.prototype.down = function($target) {
4918 var _this = this;
4919 if (!this.options.multiOpen) {
4920 this.up(this.$element.find(".is-active").not($target.parentsUntil(this.$element).add($target)))
4921 }
4922 $target.addClass("is-active").attr({
4923 "aria-hidden": false
4924 }).parent(".has-submenu").attr({
4925 "aria-expanded": true,
4926 "aria-selected": true
4927 });
4928 Foundation.Move(this.options.slideSpeed, $target, function() {
4929 $target.slideDown(_this.options.slideSpeed)
4930 });
4931 this.$element.trigger("down.zf.accordionMenu", [$target])
4932 };
4933 AccordionMenu.prototype.up = function($target) {
4934 var _this = this;
4935 Foundation.Move(this.options.slideSpeed, $target, function() {
4936 $target.slideUp(_this.options.slideSpeed)
4937 });
4938 $target.attr("aria-hidden", true).find("[data-submenu]").slideUp(0).attr("aria-hidden", true).end().parent(".has-submenu").attr({
4939 "aria-expanded": false,
4940 "aria-selected": false
4941 });
4942 this.$element.trigger("up.zf.accordionMenu", [$target])
4943 };
4944 AccordionMenu.prototype.destroy = function() {
4945 this.$element.find("[data-submenu]").slideDown(0).css("display", "");
4946 this.$element.find("a").off("click.zf.accordionMenu");
4947 Foundation.Nest.Burn(this.$element, "accordion");
4948 Foundation.unregisterPlugin(this)
4949 };
4950 Foundation.plugin(AccordionMenu, "AccordionMenu")
4951}(jQuery, window.Foundation);
4952! function($, Foundation) {
4953 "use strict";
4954
4955 function Drilldown(element, options) {
4956 this.$element = element;
4957 this.options = $.extend({}, Drilldown.defaults, this.$element.data(), options);
4958 Foundation.Nest.Feather(this.$element, "drilldown");
4959 this._init();
4960 Foundation.registerPlugin(this);
4961 Foundation.Keyboard.register("Drilldown", {
4962 ENTER: "open",
4963 SPACE: "open",
4964 ARROW_RIGHT: "next",
4965 ARROW_UP: "up",
4966 ARROW_DOWN: "down",
4967 ARROW_LEFT: "previous",
4968 ESCAPE: "close",
4969 TAB: "down",
4970 SHIFT_TAB: "up"
4971 })
4972 }
4973 Drilldown.defaults = {
4974 backButton: '<li class="js-drilldown-back"><a>Back</a></li>',
4975 wrapper: "<div></div>",
4976 closeOnClick: false
4977 };
4978 Drilldown.prototype._init = function() {
4979 this.$submenuAnchors = this.$element.find("li.has-submenu");
4980 this.$submenus = this.$submenuAnchors.children("[data-submenu]");
4981 this.$menuItems = this.$element.find("li:visible").not(".js-drilldown-back").attr("role", "menuitem");
4982 this._prepareMenu();
4983 this._keyboardEvents()
4984 };
4985 Drilldown.prototype._prepareMenu = function() {
4986 var _this = this;
4987 this.$submenuAnchors.each(function() {
4988 var $sub = $(this);
4989 var $link = $sub.find("a:first");
4990 $link.data("savedHref", $link.attr("href")).removeAttr("href");
4991 $sub.children("[data-submenu]").attr({
4992 "aria-hidden": true,
4993 tabindex: 0,
4994 role: "menu"
4995 });
4996 _this._events($sub)
4997 });
4998 this.$submenus.each(function() {
4999 var $menu = $(this),
5000 $back = $menu.find(".js-drilldown-back");
5001 if (!$back.length) {
5002 $menu.prepend(_this.options.backButton)
5003 }
5004 _this._back($menu)
5005 });
5006 if (!this.$element.parent().hasClass("is-drilldown")) {
5007 this.$wrapper = $(this.options.wrapper).addClass("is-drilldown").css(this._getMaxDims());
5008 this.$element.wrap(this.$wrapper)
5009 }
5010 };
5011 Drilldown.prototype._events = function($elem) {
5012 var _this = this;
5013 $elem.off("click.zf.drilldown").on("click.zf.drilldown", function(e) {
5014 if ($(e.target).parentsUntil("ul", "li").hasClass("is-drilldown-submenu-parent")) {
5015 e.stopImmediatePropagation();
5016 e.preventDefault()
5017 }
5018 _this._show($elem);
5019 if (_this.options.closeOnClick) {
5020 var $body = $("body").not(_this.$wrapper);
5021 $body.off(".zf.drilldown").on("click.zf.drilldown", function(e) {
5022 e.preventDefault();
5023 _this._hideAll();
5024 $body.off(".zf.drilldown")
5025 })
5026 }
5027 })
5028 };
5029 Drilldown.prototype._keyboardEvents = function() {
5030 var _this = this;
5031 this.$menuItems.add(this.$element.find(".js-drilldown-back")).on("keydown.zf.drilldown", function(e) {
5032 var $element = $(this),
5033 $elements = $element.parent("ul").children("li"),
5034 $prevElement, $nextElement;
5035 $elements.each(function(i) {
5036 if ($(this).is($element)) {
5037 $prevElement = $elements.eq(Math.max(0, i - 1));
5038 $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1));
5039 return
5040 }
5041 });
5042 Foundation.Keyboard.handleKey(e, _this, {
5043 next: function() {
5044 if ($element.is(_this.$submenuAnchors)) {
5045 _this._show($element);
5046 $element.on(Foundation.transitionend($element), function() {
5047 $element.find("ul li").filter(_this.$menuItems).first().focus()
5048 })
5049 }
5050 },
5051 previous: function() {
5052 _this._hide($element.parent("ul"));
5053 $element.parent("ul").on(Foundation.transitionend($element), function() {
5054 setTimeout(function() {
5055 $element.parent("ul").parent("li").focus()
5056 }, 1)
5057 })
5058 },
5059 up: function() {
5060 $prevElement.focus()
5061 },
5062 down: function() {
5063 $nextElement.focus()
5064 },
5065 close: function() {
5066 _this._back()
5067 },
5068 open: function() {
5069 if (!$element.is(_this.$menuItems)) {
5070 _this._hide($element.parent("ul"));
5071 setTimeout(function() {
5072 $element.parent("ul").parent("li").focus()
5073 }, 1)
5074 } else if ($element.is(_this.$submenuAnchors)) {
5075 _this._show($element);
5076 setTimeout(function() {
5077 $element.find("ul li").filter(_this.$menuItems).first().focus()
5078 }, 1)
5079 }
5080 },
5081 handled: function() {
5082 e.preventDefault();
5083 e.stopImmediatePropagation()
5084 }
5085 })
5086 })
5087 };
5088 Drilldown.prototype._hideAll = function() {
5089 var $elem = this.$element.find(".is-drilldown-sub.is-active").addClass("is-closing");
5090 $elem.one(Foundation.transitionend($elem), function(e) {
5091 $elem.removeClass("is-active is-closing")
5092 });
5093 this.$element.trigger("closed.zf.drilldown")
5094 };
5095 Drilldown.prototype._back = function($elem) {
5096 var _this = this;
5097 $elem.off("click.zf.drilldown");
5098 $elem.children(".js-drilldown-back").on("click.zf.drilldown", function(e) {
5099 e.stopImmediatePropagation();
5100 _this._hide($elem)
5101 })
5102 };
5103 Drilldown.prototype._menuLinkEvents = function() {
5104 var _this = this;
5105 this.$menuItems.not(".has-submenu").off("click.zf.drilldown").on("click.zf.drilldown", function(e) {
5106 setTimeout(function() {
5107 _this._hideAll()
5108 }, 0)
5109 })
5110 };
5111 Drilldown.prototype._show = function($elem) {
5112 $elem.children("[data-submenu]").addClass("is-active");
5113 this.$element.trigger("open.zf.drilldown", [$elem])
5114 };
5115 Drilldown.prototype._hide = function($elem) {
5116 var _this = this;
5117 $elem.addClass("is-closing").one(Foundation.transitionend($elem), function() {
5118 $elem.removeClass("is-active is-closing")
5119 });
5120 $elem.trigger("hide.zf.drilldown", [$elem])
5121 };
5122 Drilldown.prototype._getMaxDims = function() {
5123 var max = 0,
5124 result = {};
5125 this.$submenus.add(this.$element).each(function() {
5126 var numOfElems = $(this).children("li").length;
5127 max = numOfElems > max ? numOfElems : max
5128 });
5129 result.height = max * this.$menuItems[0].getBoundingClientRect().height + "px";
5130 result.width = this.$element[0].getBoundingClientRect().width + "px";
5131 return result
5132 };
5133 Drilldown.prototype.destroy = function() {
5134 this._hideAll();
5135 Foundation.Nest.Burn(this.$element, "drilldown");
5136 this.$element.unwrap().find(".js-drilldown-back").remove().end().find(".is-active, .is-closing, .is-drilldown-sub").removeClass("is-active is-closing is-drilldown-sub").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role").off(".zf.drilldown").end().off("zf.drilldown");
5137 this.$element.find("a").each(function() {
5138 var $link = $(this);
5139 if ($link.data("savedHref")) {
5140 $link.attr("href", $link.data("savedHref")).removeData("savedHref")
5141 } else {
5142 return
5143 }
5144 });
5145 Foundation.unregisterPlugin(this)
5146 };
5147 Foundation.plugin(Drilldown, "Drilldown")
5148}(jQuery, window.Foundation);
5149! function($, Foundation) {
5150 "use strict";
5151
5152 function Dropdown(element, options) {
5153 this.$element = element;
5154 this.options = $.extend({}, Dropdown.defaults, this.$element.data(), options);
5155 this._init();
5156 Foundation.registerPlugin(this);
5157 Foundation.Keyboard.register("Dropdown", {
5158 ENTER: "open",
5159 SPACE: "open",
5160 ESCAPE: "close",
5161 TAB: "tab_forward",
5162 SHIFT_TAB: "tab_backward"
5163 })
5164 }
5165 Dropdown.defaults = {
5166 hoverDelay: 250,
5167 hover: false,
5168 hoverPane: false,
5169 vOffset: 1,
5170 hOffset: 1,
5171 positionClass: "",
5172 trapFocus: false,
5173 autoFocus: false
5174 };
5175 Dropdown.prototype._init = function() {
5176 var $id = this.$element.attr("id");
5177 this.$anchor = $('[data-toggle="' + $id + '"]') || $('[data-open="' + $id + '"]');
5178 this.$anchor.attr({
5179 "aria-controls": $id,
5180 "data-is-focus": false,
5181 "data-yeti-box": $id,
5182 "aria-haspopup": true,
5183 "aria-expanded": false
5184 });
5185 this.options.positionClass = this.getPositionClass();
5186 this.counter = 4;
5187 this.usedPositions = [];
5188 this.$element.attr({
5189 "aria-hidden": "true",
5190 "data-yeti-box": $id,
5191 "data-resize": $id,
5192 "aria-labelledby": this.$anchor[0].id || Foundation.GetYoDigits(6, "dd-anchor")
5193 });
5194 this._events()
5195 };
5196 Dropdown.prototype.getPositionClass = function() {
5197 var position = this.$element[0].className.match(/(top|left|right)/g);
5198 position = position ? position[0] : "";
5199 return position
5200 };
5201 Dropdown.prototype._reposition = function(position) {
5202 this.usedPositions.push(position ? position : "bottom");
5203 if (!position && this.usedPositions.indexOf("top") < 0) {
5204 this.$element.addClass("top")
5205 } else if (position === "top" && this.usedPositions.indexOf("bottom") < 0) {
5206 this.$element.removeClass(position)
5207 } else if (position === "left" && this.usedPositions.indexOf("right") < 0) {
5208 this.$element.removeClass(position).addClass("right")
5209 } else if (position === "right" && this.usedPositions.indexOf("left") < 0) {
5210 this.$element.removeClass(position).addClass("left")
5211 } else if (!position && this.usedPositions.indexOf("top") > -1 && this.usedPositions.indexOf("left") < 0) {
5212 this.$element.addClass("left")
5213 } else if (position === "top" && this.usedPositions.indexOf("bottom") > -1 && this.usedPositions.indexOf("left") < 0) {
5214 this.$element.removeClass(position).addClass("left")
5215 } else if (position === "left" && this.usedPositions.indexOf("right") > -1 && this.usedPositions.indexOf("bottom") < 0) {
5216 this.$element.removeClass(position)
5217 } else if (position === "right" && this.usedPositions.indexOf("left") > -1 && this.usedPositions.indexOf("bottom") < 0) {
5218 this.$element.removeClass(position)
5219 } else {
5220 this.$element.removeClass(position)
5221 }
5222 this.classChanged = true;
5223 this.counter--
5224 };
5225 Dropdown.prototype._setPosition = function() {
5226 if (this.$anchor.attr("aria-expanded") === "false") {
5227 return false
5228 }
5229 var position = this.getPositionClass(),
5230 $eleDims = Foundation.Box.GetDimensions(this.$element),
5231 $anchorDims = Foundation.Box.GetDimensions(this.$anchor),
5232 _this = this,
5233 direction = position === "left" ? "left" : position === "right" ? "left" : "top",
5234 param = direction === "top" ? "height" : "width",
5235 offset = param === "height" ? this.options.vOffset : this.options.hOffset;
5236 if ($eleDims.width >= $eleDims.windowDims.width || !this.counter && !Foundation.Box.ImNotTouchingYou(this.$element)) {
5237 this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, "center bottom", this.options.vOffset, this.options.hOffset, true)).css({
5238 width: $eleDims.windowDims.width - this.options.hOffset * 2,
5239 height: "auto"
5240 });
5241 this.classChanged = true;
5242 return false
5243 }
5244 this.$element.offset(Foundation.Box.GetOffsets(this.$element, this.$anchor, position, this.options.vOffset, this.options.hOffset));
5245 while (!Foundation.Box.ImNotTouchingYou(this.$element) && this.counter) {
5246 this._reposition(position);
5247 this._setPosition()
5248 }
5249 };
5250 Dropdown.prototype._events = function() {
5251 var _this = this;
5252 this.$element.on({
5253 "open.zf.trigger": this.open.bind(this),
5254 "close.zf.trigger": this.close.bind(this),
5255 "toggle.zf.trigger": this.toggle.bind(this),
5256 "resizeme.zf.trigger": this._setPosition.bind(this)
5257 });
5258 if (this.options.hover) {
5259 this.$anchor.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown", function() {
5260 clearTimeout(_this.timeout);
5261 _this.timeout = setTimeout(function() {
5262 _this.open();
5263 _this.$anchor.data("hover", true)
5264 }, _this.options.hoverDelay)
5265 }).on("mouseleave.zf.dropdown", function() {
5266 clearTimeout(_this.timeout);
5267 _this.timeout = setTimeout(function() {
5268 _this.close();
5269 _this.$anchor.data("hover", false)
5270 }, _this.options.hoverDelay)
5271 });
5272 if (this.options.hoverPane) {
5273 this.$element.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown", function() {
5274 clearTimeout(_this.timeout)
5275 }).on("mouseleave.zf.dropdown", function() {
5276 clearTimeout(_this.timeout);
5277 _this.timeout = setTimeout(function() {
5278 _this.close();
5279 _this.$anchor.data("hover", false)
5280 }, _this.options.hoverDelay)
5281 })
5282 }
5283 }
5284 this.$anchor.add(this.$element).on("keydown.zf.dropdown", function(e) {
5285 var $target = $(this),
5286 visibleFocusableElements = Foundation.Keyboard.findFocusable(_this.$element);
5287 Foundation.Keyboard.handleKey(e, _this, {
5288 tab_forward: function() {
5289 if (this.$element.find(":focus").is(visibleFocusableElements.eq(-1))) {
5290 if (this.options.trapFocus) {
5291 visibleFocusableElements.eq(0).focus();
5292 e.preventDefault()
5293 } else {
5294 this.close()
5295 }
5296 }
5297 },
5298 tab_backward: function() {
5299 if (this.$element.find(":focus").is(visibleFocusableElements.eq(0)) || this.$element.is(":focus")) {
5300 if (this.options.trapFocus) {
5301 visibleFocusableElements.eq(-1).focus();
5302 e.preventDefault()
5303 } else {
5304 this.close()
5305 }
5306 }
5307 },
5308 open: function() {
5309 if ($target.is(_this.$anchor)) {
5310 _this.open();
5311 _this.$element.attr("tabindex", -1).focus();
5312 e.preventDefault()
5313 }
5314 },
5315 close: function() {
5316 _this.close();
5317 _this.$anchor.focus()
5318 }
5319 })
5320 })
5321 };
5322 Dropdown.prototype.open = function() {
5323 this.$element.trigger("closeme.zf.dropdown", this.$element.attr("id"));
5324 this.$anchor.addClass("hover").attr({
5325 "aria-expanded": true
5326 });
5327 this._setPosition();
5328 this.$element.addClass("is-open").attr({
5329 "aria-hidden": false
5330 });
5331 if (this.options.autoFocus) {
5332 var $focusable = Foundation.Keyboard.findFocusable(this.$element);
5333 if ($focusable.length) {
5334 $focusable.eq(0).focus()
5335 }
5336 }
5337 this.$element.trigger("show.zf.dropdown", [this.$element])
5338 };
5339 Dropdown.prototype.close = function() {
5340 if (!this.$element.hasClass("is-open")) {
5341 return false
5342 }
5343 this.$element.removeClass("is-open").attr({
5344 "aria-hidden": true
5345 });
5346 this.$anchor.removeClass("hover").attr("aria-expanded", false);
5347 if (this.classChanged) {
5348 var curPositionClass = this.getPositionClass();
5349 if (curPositionClass) {
5350 this.$element.removeClass(curPositionClass)
5351 }
5352 this.$element.addClass(this.options.positionClass).css({
5353 height: "",
5354 width: ""
5355 });
5356 this.classChanged = false;
5357 this.counter = 4;
5358 this.usedPositions.length = 0
5359 }
5360 this.$element.trigger("hide.zf.dropdown", [this.$element])
5361 };
5362 Dropdown.prototype.toggle = function() {
5363 if (this.$element.hasClass("is-open")) {
5364 if (this.$anchor.data("hover")) return;
5365 this.close()
5366 } else {
5367 this.open()
5368 }
5369 };
5370 Dropdown.prototype.destroy = function() {
5371 this.$element.off(".zf.trigger").hide();
5372 this.$anchor.off(".zf.dropdown");
5373 Foundation.unregisterPlugin(this)
5374 };
5375 Foundation.plugin(Dropdown, "Dropdown")
5376}(jQuery, window.Foundation);
5377! function($, Foundation) {
5378 "use strict";
5379
5380 function DropdownMenu(element, options) {
5381 this.$element = element;
5382 this.options = $.extend({}, DropdownMenu.defaults, this.$element.data(), options);
5383 Foundation.Nest.Feather(this.$element, "dropdown");
5384 this._init();
5385 Foundation.registerPlugin(this);
5386 Foundation.Keyboard.register("DropdownMenu", {
5387 ENTER: "open",
5388 SPACE: "open",
5389 ARROW_RIGHT: "next",
5390 ARROW_UP: "up",
5391 ARROW_DOWN: "down",
5392 ARROW_LEFT: "previous",
5393 ESCAPE: "close"
5394 })
5395 }
5396 DropdownMenu.defaults = {
5397 disableHover: false,
5398 autoclose: true,
5399 hoverDelay: 50,
5400 clickOpen: false,
5401 closingTime: 500,
5402 alignment: "left",
5403 closeOnClick: true,
5404 verticalClass: "vertical",
5405 rightClass: "align-right",
5406 forceFollow: true
5407 };
5408 DropdownMenu.prototype._init = function() {
5409 var subs = this.$element.find("li.is-dropdown-submenu-parent");
5410 this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub");
5411 this.$menuItems = this.$element.find('[role="menuitem"]');
5412 this.$tabs = this.$element.children('[role="menuitem"]');
5413 this.isVert = this.$element.hasClass(this.options.verticalClass);
5414 this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass);
5415 if (this.$element.hasClass(this.options.rightClass) || this.options.alignment === "right") {
5416 this.options.alignment = "right";
5417 subs.addClass("is-left-arrow opens-left")
5418 } else {
5419 subs.addClass("is-right-arrow opens-right")
5420 }
5421 if (!this.isVert) {
5422 this.$tabs.filter(".is-dropdown-submenu-parent").removeClass("is-right-arrow is-left-arrow opens-right opens-left").addClass("is-down-arrow")
5423 }
5424 this.changed = false;
5425 this._events()
5426 };
5427 DropdownMenu.prototype._events = function() {
5428 var _this = this,
5429 hasTouch = "ontouchstart" in window || typeof window.ontouchstart !== "undefined",
5430 parClass = "is-dropdown-submenu-parent",
5431 delay;
5432 if (this.options.clickOpen || hasTouch) {
5433 this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu", function(e) {
5434 var $elem = $(e.target).parentsUntil("ul", "." + parClass),
5435 hasSub = $elem.hasClass(parClass),
5436 hasClicked = $elem.attr("data-is-click") === "true",
5437 $sub = $elem.children(".is-dropdown-submenu");
5438 if (hasSub) {
5439 if (hasClicked) {
5440 if (!_this.options.closeOnClick || !_this.options.clickOpen && !hasTouch || _this.options.forceFollow && hasTouch) {
5441 return
5442 } else {
5443 e.stopImmediatePropagation();
5444 e.preventDefault();
5445 _this._hide($elem)
5446 }
5447 } else {
5448 e.preventDefault();
5449 e.stopImmediatePropagation();
5450 _this._show($elem.children(".is-dropdown-submenu"));
5451 $elem.add($elem.parentsUntil(_this.$element, "." + parClass)).attr("data-is-click", true)
5452 }
5453 } else {
5454 return
5455 }
5456 })
5457 }
5458 if (!this.options.disableHover) {
5459 this.$menuItems.on("mouseenter.zf.dropdownmenu", function(e) {
5460 e.stopImmediatePropagation();
5461 var $elem = $(this),
5462 hasSub = $elem.hasClass(parClass);
5463 if (hasSub) {
5464 clearTimeout(delay);
5465 delay = setTimeout(function() {
5466 _this._show($elem.children(".is-dropdown-submenu"))
5467 }, _this.options.hoverDelay)
5468 }
5469 }).on("mouseleave.zf.dropdownmenu", function(e) {
5470 var $elem = $(this),
5471 hasSub = $elem.hasClass(parClass);
5472 if (hasSub && _this.options.autoclose) {
5473 if ($elem.attr("data-is-click") === "true" && _this.options.clickOpen) {
5474 return false
5475 }
5476 delay = setTimeout(function() {
5477 _this._hide($elem)
5478 }, _this.options.closingTime)
5479 }
5480 })
5481 }
5482 this.$menuItems.on("keydown.zf.dropdownmenu", function(e) {
5483 var $element = $(e.target).parentsUntil("ul", '[role="menuitem"]'),
5484 isTab = _this.$tabs.index($element) > -1,
5485 $elements = isTab ? _this.$tabs : $element.siblings("li").add($element),
5486 $prevElement, $nextElement;
5487 $elements.each(function(i) {
5488 if ($(this).is($element)) {
5489 $prevElement = $elements.eq(i - 1);
5490 $nextElement = $elements.eq(i + 1);
5491 return
5492 }
5493 });
5494 var nextSibling = function() {
5495 if (!$element.is(":last-child")) $nextElement.children("a:first").focus()
5496 },
5497 prevSibling = function() {
5498 $prevElement.children("a:first").focus()
5499 },
5500 openSub = function() {
5501 var $sub = $element.children("ul.is-dropdown-submenu");
5502 if ($sub.length) {
5503 _this._show($sub);
5504 $element.find("li > a:first").focus()
5505 } else {
5506 return
5507 }
5508 },
5509 closeSub = function() {
5510 var close = $element.parent("ul").parent("li");
5511 close.children("a:first").focus();
5512 _this._hide(close)
5513 };
5514 var functions = {
5515 open: openSub,
5516 close: function() {
5517 _this._hide(_this.$element);
5518 _this.$menuItems.find("a:first").focus()
5519 },
5520 handled: function() {
5521 e.preventDefault();
5522 e.stopImmediatePropagation()
5523 }
5524 };
5525 if (isTab) {
5526 if (_this.vertical) {
5527 if (_this.options.alignment === "left") {
5528 $.extend(functions, {
5529 down: nextSibling,
5530 up: prevSibling,
5531 next: openSub,
5532 previous: closeSub
5533 })
5534 } else {
5535 $.extend(functions, {
5536 down: nextSibling,
5537 up: prevSibling,
5538 next: closeSub,
5539 previous: openSub
5540 })
5541 }
5542 } else {
5543 $.extend(functions, {
5544 next: nextSibling,
5545 previous: prevSibling,
5546 down: openSub,
5547 up: closeSub
5548 })
5549 }
5550 } else {
5551 if (_this.options.alignment === "left") {
5552 $.extend(functions, {
5553 next: openSub,
5554 previous: closeSub,
5555 down: nextSibling,
5556 up: prevSibling
5557 })
5558 } else {
5559 $.extend(functions, {
5560 next: closeSub,
5561 previous: openSub,
5562 down: nextSibling,
5563 up: prevSibling
5564 })
5565 }
5566 }
5567 Foundation.Keyboard.handleKey(e, _this, functions)
5568 })
5569 };
5570 DropdownMenu.prototype._addBodyHandler = function() {
5571 var $body = $(document.body),
5572 _this = this;
5573 $body.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu", function(e) {
5574 var $link = _this.$element.find(e.target);
5575 if ($link.length) {
5576 return
5577 }
5578 _this._hide();
5579 $body.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu")
5580 })
5581 };
5582 DropdownMenu.prototype._show = function($sub) {
5583 var idx = this.$tabs.index(this.$tabs.filter(function(i, el) {
5584 return $(el).find($sub).length > 0
5585 }));
5586 var $sibs = $sub.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");
5587 this._hide($sibs, idx);
5588 $sub.css("visibility", "hidden").addClass("js-dropdown-active").attr({
5589 "aria-hidden": false
5590 }).parent("li.is-dropdown-submenu-parent").addClass("is-active").attr({
5591 "aria-selected": true,
5592 "aria-expanded": true
5593 });
5594 var clear = Foundation.Box.ImNotTouchingYou($sub, null, true);
5595 if (!clear) {
5596 var oldClass = this.options.alignment === "left" ? "-right" : "-left",
5597 $parentLi = $sub.parent(".is-dropdown-submenu-parent");
5598 $parentLi.removeClass("opens" + oldClass).addClass("opens-" + this.options.alignment);
5599 clear = Foundation.Box.ImNotTouchingYou($sub, null, true);
5600 if (!clear) {
5601 $parentLi.removeClass("opens-" + this.options.alignment).addClass("opens-inner")
5602 }
5603 this.changed = true
5604 }
5605 $sub.css("visibility", "");
5606 if (this.options.closeOnClick) {
5607 this._addBodyHandler()
5608 }
5609 this.$element.trigger("show.zf.dropdownmenu", [$sub])
5610 };
5611 DropdownMenu.prototype._hide = function($elem, idx) {
5612 var $toClose;
5613 if ($elem && $elem.length) {
5614 $toClose = $elem
5615 } else if (idx !== undefined) {
5616 $toClose = this.$tabs.not(function(i, el) {
5617 return i === idx
5618 })
5619 } else {
5620 $toClose = this.$element
5621 }
5622 var somethingToClose = $toClose.hasClass("is-active") || $toClose.find(".is-active").length > 0;
5623 if (somethingToClose) {
5624 $toClose.find("li.is-active").add($toClose).attr({
5625 "aria-selected": false,
5626 "aria-expanded": false,
5627 "data-is-click": false
5628 }).removeClass("is-active");
5629 $toClose.find("ul.js-dropdown-active").attr({
5630 "aria-hidden": true
5631 }).removeClass("js-dropdown-active");
5632 if (this.changed || $toClose.find("opens-inner").length) {
5633 var oldClass = this.options.alignment === "left" ? "right" : "left";
5634 $toClose.find("li.is-dropdown-submenu-parent").add($toClose).removeClass("opens-inner opens-" + this.options.alignment).addClass("opens-" + oldClass);
5635 this.changed = false
5636 }
5637 this.$element.trigger("hide.zf.dropdownmenu", [$toClose])
5638 }
5639 };
5640 DropdownMenu.prototype.destroy = function() {
5641 this.$menuItems.off(".zf.dropdownmenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner");
5642 Foundation.Nest.Burn(this.$element, "dropdown");
5643 Foundation.unregisterPlugin(this)
5644 };
5645 Foundation.plugin(DropdownMenu, "DropdownMenu")
5646}(jQuery, window.Foundation);
5647! function(Foundation, $) {
5648 "use strict";
5649
5650 function Equalizer(element, options) {
5651 this.$element = element;
5652 this.options = $.extend({}, Equalizer.defaults, this.$element.data(), options);
5653 this.$window = $(window);
5654 this.name = "equalizer";
5655 this.attr = "data-equalizer";
5656 this._init();
5657 this._events();
5658 Foundation.registerPlugin(this)
5659 }
5660 Equalizer.defaults = {
5661 equalizeOnStack: true,
5662 throttleInterval: 50
5663 };
5664 Equalizer.prototype._init = function() {
5665 this._reflow()
5666 };
5667 Equalizer.prototype._events = function() {
5668 var self = this;
5669 this.$window.off(".equalizer").on("resize.fndtn.equalizer", Foundation.util.throttle(function() {
5670 self._reflow()
5671 }, self.options.throttleInterval))
5672 };
5673 Equalizer.prototype._killswitch = function() {
5674 return
5675 };
5676 Equalizer.prototype._reflow = function() {
5677 var self = this;
5678 $("[" + this.attr + "]").each(function() {
5679 var $eqParent = $(this),
5680 adjustedHeights = [],
5681 $images = $eqParent.find("img");
5682 if ($images.length) {
5683 Foundation.onImagesLoaded($images, function() {
5684 adjustedHeights = self.getHeights($eqParent);
5685 self.applyHeight($eqParent, adjustedHeights)
5686 })
5687 } else {
5688 adjustedHeights = self.getHeights($eqParent);
5689 self.applyHeight($eqParent, adjustedHeights)
5690 }
5691 })
5692 };
5693 Equalizer.prototype.getHeights = function($eqParent) {
5694 var eqGroupName = $eqParent.data("equalizer"),
5695 eqGroup = eqGroupName ? $eqParent.find("[" + this.attr + '-watch="' + eqGroupName + '"]:visible') : $eqParent.find("[" + this.attr + "-watch]:visible"),
5696 heights;
5697 eqGroup.height("inherit");
5698 heights = eqGroup.map(function() {
5699 return $(this).outerHeight(false)
5700 }).get();
5701 return heights
5702 };
5703 Equalizer.prototype.applyHeight = function($eqParent, heights) {
5704 var eqGroupName = $eqParent.data("equalizer"),
5705 eqGroup = eqGroupName ? $eqParent.find("[" + this.attr + '-watch="' + eqGroupName + '"]:visible') : $eqParent.find("[" + this.attr + "-watch]:visible"),
5706 max = Math.max.apply(null, heights);
5707 $eqParent.trigger("preEqualized.zf.Equalizer");
5708 for (var i = 0; i < eqGroup.length; i++) {
5709 $(eqGroup[i]).css("height", max)
5710 }
5711 $eqParent.trigger("postEqualized.zf.Equalizer")
5712 };
5713 Equalizer.prototype.destroy = function() {};
5714 Foundation.plugin(Equalizer, "Equalizer");
5715 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Equalizer;
5716 if (typeof define === "function") define(["foundation"], function() {
5717 return Equalizer
5718 })
5719}(Foundation, jQuery);
5720! function(Foundation, $) {
5721 "use strict";
5722
5723 function Interchange(element, options) {
5724 this.$element = element;
5725 this.options = $.extend({}, Interchange.defaults, options);
5726 this.rules = [];
5727 this.currentPath = "";
5728 this._init();
5729 this._events();
5730 Foundation.registerPlugin(this)
5731 }
5732 Interchange.defaults = {
5733 rules: null
5734 };
5735 Interchange.SPECIAL_QUERIES = {
5736 landscape: "screen and (orientation: landscape)",
5737 portrait: "screen and (orientation: portrait)",
5738 retina: "only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"
5739 };
5740 Interchange.prototype._init = function() {
5741 this._addBreakpoints();
5742 this._generateRules();
5743 this._reflow()
5744 };
5745 Interchange.prototype._events = function() {
5746 $(window).on("resize.fndtn.interchange", Foundation.util.throttle(this._reflow.bind(this), 50))
5747 };
5748 Interchange.prototype._reflow = function() {
5749 var match;
5750 for (var i in this.rules) {
5751 var rule = this.rules[i];
5752 if (window.matchMedia(rule.query).matches) {
5753 match = rule
5754 }
5755 }
5756 if (match) {
5757 this.replace(match.path)
5758 }
5759 };
5760 Interchange.prototype._addBreakpoints = function() {
5761 for (var i in Foundation.MediaQuery.queries) {
5762 var query = Foundation.MediaQuery.queries[i];
5763 Interchange.SPECIAL_QUERIES[query.name] = query.value
5764 }
5765 };
5766 Interchange.prototype._generateRules = function() {
5767 var rulesList = [];
5768 var rules;
5769 if (this.options.rules) {
5770 rules = this.options.rules
5771 } else {
5772 rules = this.$element.data("interchange").match(/\[.*?\]/g)
5773 }
5774 for (var i in rules) {
5775 var rule = rules[i].slice(1, -1).split(", ");
5776 var path = rule.slice(0, -1).join("");
5777 var query = rule[rule.length - 1];
5778 if (Interchange.SPECIAL_QUERIES[query]) {
5779 query = Interchange.SPECIAL_QUERIES[query]
5780 }
5781 rulesList.push({
5782 path: path,
5783 query: query
5784 })
5785 }
5786 this.rules = rulesList
5787 };
5788 Interchange.prototype.replace = function(path) {
5789 if (this.currentPath === path) return;
5790 var _this = this;
5791 if (this.$element[0].nodeName === "IMG") {
5792 this.$element.attr("src", path).load(function() {
5793 _this.$element.trigger("replaced.zf.interchange");
5794 _this.currentPath = path
5795 })
5796 } else if (path.match(/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i)) {
5797 this.$element.css({
5798 "background-image": "url(" + path + ")"
5799 })
5800 } else {
5801 $.get(path, function(response) {
5802 _this.$element.html(response);
5803 _this.$element.trigger("replaced.zf.interchange");
5804 _this.currentPath = path
5805 })
5806 }
5807 };
5808 Interchange.prototype.destroy = function() {};
5809 Foundation.plugin(Interchange, "Interchange");
5810 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Interchange;
5811 if (typeof define === "function") define(["foundation"], function() {
5812 return Interchange
5813 })
5814}(Foundation, jQuery);
5815! function(Foundation, $) {
5816 "use strict";
5817
5818 function Magellan(element, options) {
5819 this.$element = element;
5820 this.options = $.extend({}, Magellan.defaults, this.$element.data(), options);
5821 this._init();
5822 Foundation.registerPlugin(this)
5823 }
5824 Magellan.defaults = {
5825 animationDuration: 500,
5826 animationEasing: "linear",
5827 threshold: 50,
5828 activeClass: "active",
5829 deepLinking: false,
5830 barOffset: 0
5831 };
5832 Magellan.prototype._init = function() {
5833 var id = this.$element[0].id || Foundation.GetYoDigits(6, "magellan"),
5834 _this = this;
5835 this.$targets = $("[data-magellan-target]");
5836 this.$links = this.$element.find("a");
5837 this.$element.attr({
5838 "data-resize": id,
5839 "data-scroll": id,
5840 id: id
5841 });
5842 this.$active = $();
5843 this.scrollPos = parseInt(window.pageYOffset, 10);
5844 this._events()
5845 };
5846 Magellan.prototype.calcPoints = function() {
5847 var _this = this,
5848 body = document.body,
5849 html = document.documentElement;
5850 this.points = [];
5851 this.winHeight = Math.round(Math.max(window.innerHeight, html.clientHeight));
5852 this.docHeight = Math.round(Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight));
5853 this.$targets.each(function() {
5854 var $tar = $(this),
5855 pt = Math.round($tar.offset().top - _this.options.threshold);
5856 $tar.targetPoint = pt;
5857 _this.points.push(pt)
5858 })
5859 };
5860 Magellan.prototype._events = function() {
5861 var _this = this,
5862 $body = $("html, body"),
5863 opts = {
5864 duration: _this.options.animationDuration,
5865 easing: _this.options.animationEasing
5866 };
5867 $(window).one("load", function() {
5868 _this.calcPoints();
5869 _this._updateActive()
5870 });
5871 this.$element.on({
5872 "resizeme.zf.trigger": this.reflow.bind(this),
5873 "scrollme.zf.trigger": this._updateActive.bind(this)
5874 }).on("click.zf.magellan", 'a[href^="#"]', function(e) {
5875 e.preventDefault();
5876 var arrival = this.getAttribute("href"),
5877 scrollPos = $(arrival).offset().top - _this.options.threshold / 2 - _this.options.barOffset;
5878 $body.stop(true).animate({
5879 scrollTop: scrollPos
5880 }, opts)
5881 })
5882 };
5883 Magellan.prototype.reflow = function() {
5884 this.calcPoints();
5885 this._updateActive()
5886 };
5887 Magellan.prototype._updateActive = function() {
5888 var winPos = parseInt(window.pageYOffset, 10),
5889 curIdx;
5890 if (winPos + this.winHeight === this.docHeight) {
5891 curIdx = this.points.length - 1
5892 } else if (winPos < this.points[0]) {
5893 curIdx = 0
5894 } else {
5895 var isDown = this.scrollPos < winPos,
5896 _this = this,
5897 curVisible = this.points.filter(function(p, i) {
5898 return isDown ? p <= winPos : p - _this.options.threshold <= winPos
5899 });
5900 curIdx = curVisible.length ? curVisible.length - 1 : 0
5901 }
5902 this.$active.removeClass(this.options.activeClass);
5903 this.$active = this.$links.eq(curIdx).addClass(this.options.activeClass);
5904 if (this.options.deepLinking) {
5905 var hash = this.$active[0].getAttribute("href");
5906 if (window.history.pushState) {
5907 window.history.pushState(null, null, hash)
5908 } else {
5909 window.location.hash = hash
5910 }
5911 }
5912 this.scrollPos = winPos;
5913 this.$element.trigger("update.zf.magellan", [this.$active])
5914 };
5915 Magellan.prototype.destroy = function() {
5916 this.$element.off(".zf.trigger .zf.magellan").find("." + this.options.activeClass).removeClass(this.options.activeClass);
5917 if (this.options.deepLinking) {
5918 var hash = this.$active[0].getAttribute("href");
5919 window.location.hash.replace(hash, "")
5920 }
5921 Foundation.unregisterPlugin(this)
5922 };
5923 Foundation.plugin(Magellan, "Magellan");
5924 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Magellan;
5925 if (typeof define === "function") define(["foundation"], function() {
5926 return Magellan
5927 })
5928}(Foundation, jQuery);
5929! function($, Foundation) {
5930 "use strict";
5931
5932 function OffCanvas(element, options) {
5933 this.$element = element;
5934 this.options = $.extend({}, OffCanvas.defaults, this.$element.data(), options);
5935 this.$lastTrigger = $();
5936 this._init();
5937 this._events();
5938 Foundation.registerPlugin(this)
5939 }
5940 OffCanvas.defaults = {
5941 closeOnClick: true,
5942 transitionTime: 0,
5943 position: "left",
5944 forceTop: true,
5945 isRevealed: false,
5946 revealOn: null,
5947 autoFocus: true,
5948 revealClass: "reveal-for-"
5949 };
5950 OffCanvas.prototype._init = function() {
5951 var id = this.$element.attr("id");
5952 this.$element.attr("aria-hidden", "true");
5953 $(document).find('[data-open="' + id + '"], [data-close="' + id + '"], [data-toggle="' + id + '"]').attr("aria-expanded", "false").attr("aria-controls", id);
5954 if (this.options.closeOnClick) {
5955 if ($(".js-off-canvas-exit").length) {
5956 this.$exiter = $(".js-off-canvas-exit")
5957 } else {
5958 var exiter = document.createElement("div");
5959 exiter.setAttribute("class", "js-off-canvas-exit");
5960 $("[data-off-canvas-content]").append(exiter);
5961 this.$exiter = $(exiter)
5962 }
5963 }
5964 this.options.isRevealed = this.options.isRevealed || new RegExp(this.options.revealClass, "g").test(this.$element[0].className);
5965 if (this.options.isRevealed) {
5966 this.options.revealOn = this.options.revealOn || this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split("-")[2];
5967 this._setMQChecker()
5968 }
5969 if (!this.options.transitionTime) {
5970 this.options.transitionTime = parseFloat(window.getComputedStyle($("[data-off-canvas-wrapper]")[0]).transitionDuration) * 1e3
5971 }
5972 };
5973 OffCanvas.prototype._events = function() {
5974 this.$element.on({
5975 "open.zf.trigger": this.open.bind(this),
5976 "close.zf.trigger": this.close.bind(this),
5977 "toggle.zf.trigger": this.toggle.bind(this),
5978 "keydown.zf.offcanvas": this._handleKeyboard.bind(this)
5979 });
5980 if (this.$exiter.length) {
5981 var _this = this;
5982 this.$exiter.on({
5983 "click.zf.offcanvas": this.close.bind(this)
5984 })
5985 }
5986 };
5987 OffCanvas.prototype._setMQChecker = function() {
5988 var _this = this;
5989 $(window).on("changed.zf.mediaquery", function() {
5990 if (Foundation.MediaQuery.atLeast(_this.options.revealOn)) {
5991 _this.reveal(true)
5992 } else {
5993 _this.reveal(false)
5994 }
5995 }).one("load.zf.offcanvas", function() {
5996 if (Foundation.MediaQuery.atLeast(_this.options.revealOn)) {
5997 _this.reveal(true)
5998 }
5999 })
6000 };
6001 OffCanvas.prototype.reveal = function(isRevealed) {
6002 var $closer = this.$element.find("[data-close]");
6003 if (isRevealed) {
6004 if ($closer.length) {
6005 $closer.hide()
6006 }
6007 } else {
6008 if ($closer.length) {
6009 $closer.show()
6010 }
6011 }
6012 };
6013 OffCanvas.prototype.open = function(event, trigger) {
6014 if (this.$element.hasClass("is-open")) {
6015 return
6016 }
6017 var _this = this,
6018 $body = $(document.body);
6019 $("body").scrollTop(0);
6020 Foundation.Move(this.options.transitionTime, this.$element, function() {
6021 $("[data-off-canvas-wrapper]").addClass("is-off-canvas-open is-open-" + _this.options.position);
6022 _this.$element.addClass("is-open").attr("aria-hidden", "false").trigger("opened.zf.offcanvas")
6023 });
6024 if (trigger) {
6025 this.$lastTrigger = trigger.attr("aria-expanded", "true")
6026 }
6027 if (this.options.autoFocus) {
6028 this.$element.one("finished.zf.animate", function() {
6029 _this.$element.find("a, button").eq(0).focus()
6030 })
6031 }
6032 };
6033 OffCanvas.prototype.close = function() {
6034 if (!this.$element.hasClass("is-open")) {
6035 return
6036 }
6037 var _this = this;
6038 Foundation.Move(this.options.transitionTime, this.$element, function() {
6039 $("[data-off-canvas-wrapper]").removeClass("is-off-canvas-open is-open-" + _this.options.position);
6040 _this.$element.removeClass("is-open")
6041 });
6042 this.$element.attr("aria-hidden", "true").trigger("closed.zf.offcanvas");
6043 this.$lastTrigger.attr("aria-expanded", "false")
6044 };
6045 OffCanvas.prototype.toggle = function(event, trigger) {
6046 if (this.$element.hasClass("is-open")) {
6047 this.close(event, trigger)
6048 } else {
6049 this.open(event, trigger)
6050 }
6051 };
6052 OffCanvas.prototype._handleKeyboard = function(event) {
6053 if (event.which !== 27) return;
6054 event.stopPropagation();
6055 event.preventDefault();
6056 this.close();
6057 this.$lastTrigger.focus()
6058 };
6059 OffCanvas.prototype.destroy = function() {};
6060 Foundation.plugin(OffCanvas, "OffCanvas")
6061}(jQuery, Foundation);
6062! function($, Foundation) {
6063 "use strict";
6064
6065 function Orbit(element, options) {
6066 this.$element = element;
6067 this.options = $.extend({}, Orbit.defaults, this.$element.data(), options);
6068 this._init();
6069 Foundation.registerPlugin(this);
6070 Foundation.Keyboard.register("Orbit", {
6071 ltr: {
6072 ARROW_RIGHT: "next",
6073 ARROW_LEFT: "previous"
6074 },
6075 rtl: {
6076 ARROW_LEFT: "next",
6077 ARROW_RIGHT: "previous"
6078 }
6079 })
6080 }
6081 Orbit.defaults = {
6082 bullets: true,
6083 navButtons: true,
6084 animInFromRight: "slide-in-right",
6085 animOutToRight: "slide-out-right",
6086 animInFromLeft: "slide-in-left",
6087 animOutToLeft: "slide-out-left",
6088 autoPlay: true,
6089 timerDelay: 5e3,
6090 infiniteWrap: true,
6091 swipe: true,
6092 pauseOnHover: true,
6093 accessible: true,
6094 containerClass: "orbit-container",
6095 slideClass: "orbit-slide",
6096 boxOfBullets: "orbit-bullets",
6097 nextClass: "orbit-next",
6098 prevClass: "orbit-previous",
6099 useMUI: true
6100 };
6101 Orbit.prototype._init = function() {
6102 this.$wrapper = this.$element.find("." + this.options.containerClass);
6103 this.$slides = this.$element.find("." + this.options.slideClass);
6104 var $images = this.$element.find("img"),
6105 initActive = this.$slides.filter(".is-active");
6106 if (!initActive.length) {
6107 this.$slides.eq(0).addClass("is-active")
6108 }
6109 if (!this.options.useMUI) {
6110 this.$slides.addClass("no-motionui")
6111 }
6112 if ($images.length) {
6113 Foundation.onImagesLoaded($images, this._prepareForOrbit.bind(this))
6114 } else {
6115 this._prepareForOrbit()
6116 }
6117 if (this.options.bullets) {
6118 this._loadBullets()
6119 }
6120 this._events();
6121 if (this.options.autoPlay) {
6122 this.geoSync()
6123 }
6124 if (this.options.accessible) {
6125 this.$wrapper.attr("tabindex", 0)
6126 }
6127 };
6128 Orbit.prototype._loadBullets = function() {
6129 this.$bullets = this.$element.find("." + this.options.boxOfBullets).find("button")
6130 };
6131 Orbit.prototype.geoSync = function() {
6132 var _this = this;
6133 this.timer = new Foundation.Timer(this.$element, {
6134 duration: this.options.timerDelay,
6135 infinite: false
6136 }, function() {
6137 _this.changeSlide(true)
6138 });
6139 this.timer.start()
6140 };
6141 Orbit.prototype._prepareForOrbit = function() {
6142 var _this = this;
6143 this._setWrapperHeight(function(max) {
6144 _this._setSlideHeight(max)
6145 })
6146 };
6147 Orbit.prototype._setWrapperHeight = function(cb) {
6148 var max = 0,
6149 temp, counter = 0;
6150 this.$slides.each(function() {
6151 temp = this.getBoundingClientRect().height;
6152 $(this).attr("data-slide", counter);
6153 if (counter) {
6154 $(this).css({
6155 position: "relative",
6156 display: "none"
6157 })
6158 }
6159 max = temp > max ? temp : max;
6160 counter++
6161 });
6162 if (counter === this.$slides.length) {
6163 this.$wrapper.css({
6164 height: max
6165 });
6166 cb(max)
6167 }
6168 };
6169 Orbit.prototype._setSlideHeight = function(height) {
6170 this.$slides.each(function() {
6171 $(this).css("max-height", height)
6172 })
6173 };
6174 Orbit.prototype._events = function() {
6175 var _this = this;
6176 if (this.options.swipe) {
6177 this.$slides.off("swipeleft.zf.orbit swiperight.zf.orbit").on("swipeleft.zf.orbit", function(e) {
6178 e.preventDefault();
6179 _this.changeSlide(true)
6180 }).on("swiperight.zf.orbit", function(e) {
6181 e.preventDefault();
6182 _this.changeSlide(false)
6183 })
6184 }
6185 if (this.options.autoPlay) {
6186 this.$slides.on("click.zf.orbit", function() {
6187 _this.$element.data("clickedOn", _this.$element.data("clickedOn") ? false : true);
6188 _this.timer[_this.$element.data("clickedOn") ? "pause" : "start"]()
6189 });
6190 if (this.options.pauseOnHover) {
6191 this.$element.on("mouseenter.zf.orbit", function() {
6192 _this.timer.pause()
6193 }).on("mouseleave.zf.orbit", function() {
6194 if (!_this.$element.data("clickedOn")) {
6195 _this.timer.start()
6196 }
6197 })
6198 }
6199 }
6200 if (this.options.navButtons) {
6201 var $controls = this.$element.find("." + this.options.nextClass + ", ." + this.options.prevClass);
6202 $controls.attr("tabindex", 0).on("click.zf.orbit touchend.zf.orbit", function() {
6203 _this.changeSlide($(this).hasClass(_this.options.nextClass))
6204 })
6205 }
6206 if (this.options.bullets) {
6207 this.$bullets.on("click.zf.orbit touchend.zf.orbit", function() {
6208 if (/is-active/g.test(this.className)) {
6209 return false
6210 }
6211 var idx = $(this).data("slide"),
6212 ltr = idx > _this.$slides.filter(".is-active").data("slide"),
6213 $slide = _this.$slides.eq(idx);
6214 _this.changeSlide(ltr, $slide, idx)
6215 })
6216 }
6217 this.$wrapper.add(this.$bullets).on("keydown.zf.orbit", function(e) {
6218 Foundation.Keyboard.handleKey(e, _this, {
6219 next: function() {
6220 _this.changeSlide(true)
6221 },
6222 previous: function() {
6223 _this.changeSlide(false)
6224 },
6225 handled: function() {
6226 if ($(e.target).is(_this.$bullets)) {
6227 _this.$bullets.filter(".is-active").focus()
6228 }
6229 }
6230 })
6231 })
6232 };
6233 Orbit.prototype.changeSlide = function(isLTR, chosenSlide, idx) {
6234 if (Foundation.MediaQuery.atLeast("small")) {
6235 var $curSlide = this.$slides.filter(".is-active").eq(0);
6236 if (/mui/g.test($curSlide[0].className)) {
6237 return false
6238 }
6239 var $firstSlide = this.$slides.first(),
6240 $lastSlide = this.$slides.last(),
6241 dirIn = isLTR ? "Right" : "Left",
6242 dirOut = isLTR ? "Left" : "Right",
6243 _this = this,
6244 $newSlide;
6245 if (!chosenSlide) {
6246 $newSlide = isLTR ? this.options.infiniteWrap ? $curSlide.next("." + this.options.slideClass).length ? $curSlide.next("." + this.options.slideClass) : $firstSlide : $curSlide.next("." + this.options.slideClass) : this.options.infiniteWrap ? $curSlide.prev("." + this.options.slideClass).length ? $curSlide.prev("." + this.options.slideClass) : $lastSlide : $curSlide.prev("." + this.options.slideClass)
6247 } else {
6248 $newSlide = chosenSlide
6249 }
6250 if ($newSlide.length) {
6251 if (this.options.bullets) {
6252 idx = idx || this.$slides.index($newSlide);
6253 this._updateBullets(idx)
6254 }
6255 if (this.options.useMUI) {
6256 Foundation.Motion.animateIn($newSlide.addClass("is-active").css({
6257 position: "absolute",
6258 top: 0
6259 }), this.options["animInFrom" + dirIn], function() {
6260 $newSlide.css({
6261 position: "relative",
6262 display: "table"
6263 }).attr("aria-live", "polite")
6264 });
6265 Foundation.Motion.animateOut($curSlide.removeClass("is-active"), this.options["animOutTo" + dirOut], function() {
6266 $curSlide.removeAttr("aria-live");
6267 if (_this.options.autoPlay) {
6268 _this.timer.restart()
6269 }
6270 })
6271 } else {
6272 $curSlide.removeClass("is-active is-in").removeAttr("aria-live").hide();
6273 $newSlide.addClass("is-active is-in").attr("aria-live", "polite").show();
6274 if (this.options.autoPlay) {
6275 this.timer.restart()
6276 }
6277 }
6278 this.$element.trigger("slidechange.zf.orbit", [$newSlide])
6279 }
6280 }
6281 };
6282 Orbit.prototype._updateBullets = function(idx) {
6283 var $oldBullet = this.$element.find("." + this.options.boxOfBullets).find(".is-active").removeClass("is-active").blur(),
6284 span = $oldBullet.find("span:last").detach(),
6285 $newBullet = this.$bullets.eq(idx).addClass("is-active").append(span)
6286 };
6287 Orbit.prototype.destroy = function() {
6288 delete this.timer;
6289 this.$element.off(".zf.orbit").find("*").off(".zf.orbit").end().hide();
6290 Foundation.unregisterPlugin(this)
6291 };
6292 Foundation.plugin(Orbit, "Orbit")
6293}(jQuery, window.Foundation);
6294! function(Foundation, $) {
6295 "use strict";
6296 var MenuPlugins = {
6297 dropdown: {
6298 cssClass: "dropdown",
6299 plugin: Foundation._plugins["dropdown-menu"] || null
6300 },
6301 drilldown: {
6302 cssClass: "drilldown",
6303 plugin: Foundation._plugins["drilldown"] || null
6304 },
6305 accordion: {
6306 cssClass: "accordion-menu",
6307 plugin: Foundation._plugins["accordion-menu"] || null
6308 }
6309 };
6310 var phMedia = {
6311 small: "(min-width: 0px)",
6312 medium: "(min-width: 640px)"
6313 };
6314
6315 function ResponsiveMenu(element) {
6316 this.$element = $(element);
6317 this.rules = this.$element.data("responsive-menu");
6318 this.currentMq = null;
6319 this.currentPlugin = null;
6320 this._init();
6321 this._events();
6322 Foundation.registerPlugin(this)
6323 }
6324 ResponsiveMenu.defaults = {};
6325 ResponsiveMenu.prototype._init = function() {
6326 var rulesTree = {};
6327 var rules = this.rules.split(" ");
6328 for (var i = 0; i < rules.length; i++) {
6329 var rule = rules[i].split("-");
6330 var ruleSize = rule.length > 1 ? rule[0] : "small";
6331 var rulePlugin = rule.length > 1 ? rule[1] : rule[0];
6332 if (MenuPlugins[rulePlugin] !== null) {
6333 rulesTree[ruleSize] = MenuPlugins[rulePlugin]
6334 }
6335 }
6336 this.rules = rulesTree;
6337 if (!$.isEmptyObject(rulesTree)) {
6338 this._checkMediaQueries()
6339 }
6340 };
6341 ResponsiveMenu.prototype._events = function() {
6342 var _this = this;
6343 $(window).on("changed.zf.mediaquery", function() {
6344 _this._checkMediaQueries()
6345 })
6346 };
6347 ResponsiveMenu.prototype._checkMediaQueries = function() {
6348 var matchedMq, _this = this;
6349 $.each(this.rules, function(key) {
6350 if (Foundation.MediaQuery.atLeast(key)) {
6351 matchedMq = key
6352 }
6353 });
6354 if (!matchedMq) return;
6355 if (this.currentPlugin instanceof this.rules[matchedMq].plugin) return;
6356 $.each(MenuPlugins, function(key, value) {
6357 _this.$element.removeClass(value.cssClass)
6358 });
6359 this.$element.addClass(this.rules[matchedMq].cssClass);
6360 if (this.currentPlugin) this.currentPlugin.destroy();
6361 this.currentPlugin = new this.rules[matchedMq].plugin(this.$element, {})
6362 };
6363 ResponsiveMenu.prototype.destroy = function() {
6364 this.currentPlugin.destroy();
6365 $(window).off(".zf.ResponsiveMenu");
6366 Foundation.unregisterPlugin(this)
6367 };
6368 Foundation.plugin(ResponsiveMenu, "ResponsiveMenu")
6369}(Foundation, jQuery);
6370! function($, Foundation) {
6371 "use strict";
6372
6373 function ResponsiveToggle(element, options) {
6374 this.$element = $(element);
6375 this.options = $.extend({}, ResponsiveToggle.defaults, this.$element.data(), options);
6376 this._init();
6377 this._events();
6378 Foundation.registerPlugin(this)
6379 }
6380 ResponsiveToggle.defaults = {
6381 hideFor: "medium"
6382 };
6383 ResponsiveToggle.prototype._init = function() {
6384 var targetID = this.$element.data("responsive-toggle");
6385 if (!targetID) {
6386 console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar.")
6387 }
6388 this.$targetMenu = $("#" + targetID);
6389 this.$toggler = this.$element.find("[data-toggle]");
6390 this._update()
6391 };
6392 ResponsiveToggle.prototype._events = function() {
6393 var _this = this;
6394 $(window).on("changed.zf.mediaquery", this._update.bind(this));
6395 this.$toggler.on("click.zf.responsiveToggle", this.toggleMenu.bind(this))
6396 };
6397 ResponsiveToggle.prototype._update = function() {
6398 if (!Foundation.MediaQuery.atLeast(this.options.hideFor)) {
6399 this.$element.show();
6400 this.$targetMenu.hide()
6401 } else {
6402 this.$element.hide();
6403 this.$targetMenu.show()
6404 }
6405 };
6406 ResponsiveToggle.prototype.toggleMenu = function() {
6407 if (!Foundation.MediaQuery.atLeast(this.options.hideFor)) {
6408 this.$targetMenu.toggle(0);
6409 this.$element.trigger("toggled.zf.responsiveToggle")
6410 }
6411 };
6412 ResponsiveToggle.prototype.destroy = function() {};
6413 Foundation.plugin(ResponsiveToggle, "ResponsiveToggle")
6414}(jQuery, Foundation);
6415! function(Foundation, $) {
6416 "use strict";
6417
6418 function Reveal(element, options) {
6419 this.$element = element;
6420 this.options = $.extend({}, Reveal.defaults, this.$element.data(), options);
6421 this._init();
6422 Foundation.registerPlugin(this);
6423 Foundation.Keyboard.register("Reveal", {
6424 ENTER: "open",
6425 SPACE: "open",
6426 ESCAPE: "close",
6427 TAB: "tab_forward",
6428 SHIFT_TAB: "tab_backward"
6429 })
6430 }
6431 Reveal.defaults = {
6432 animationIn: "",
6433 animationOut: "",
6434 showDelay: 0,
6435 hideDelay: 0,
6436 closeOnClick: true,
6437 closeOnEsc: true,
6438 multipleOpened: false,
6439 vOffset: 100,
6440 hOffset: 0,
6441 fullScreen: false,
6442 btmOffsetPct: 10,
6443 overlay: true,
6444 resetOnClose: false
6445 };
6446 Reveal.prototype._init = function() {
6447 this.id = this.$element.attr("id");
6448 this.isActive = false;
6449 this.$anchor = $('[data-open="' + this.id + '"]').length ? $('[data-open="' + this.id + '"]') : $('[data-toggle="' + this.id + '"]');
6450 if (this.$anchor.length) {
6451 var anchorId = this.$anchor[0].id || Foundation.GetYoDigits(6, "reveal");
6452 this.$anchor.attr({
6453 "aria-controls": this.id,
6454 id: anchorId,
6455 "aria-haspopup": true,
6456 tabindex: 0
6457 });
6458 this.$element.attr({
6459 "aria-labelledby": anchorId
6460 })
6461 }
6462 if (this.options.fullScreen || this.$element.hasClass("full")) {
6463 this.options.fullScreen = true;
6464 this.options.overlay = false
6465 }
6466 if (this.options.overlay && !this.$overlay) {
6467 this.$overlay = this._makeOverlay(this.id)
6468 }
6469 this.$element.attr({
6470 role: "dialog",
6471 "aria-hidden": true,
6472 "data-yeti-box": this.id,
6473 "data-resize": this.id
6474 });
6475 this._events()
6476 };
6477 Reveal.prototype._makeOverlay = function(id) {
6478 var $overlay = $("<div></div>").addClass("reveal-overlay").attr({
6479 tabindex: -1,
6480 "aria-hidden": true
6481 }).appendTo("body");
6482 if (this.options.closeOnClick) {
6483 $overlay.attr({
6484 "data-close": id
6485 })
6486 }
6487 return $overlay
6488 };
6489 Reveal.prototype._events = function() {
6490 var _this = this;
6491 this.$element.on({
6492 "open.zf.trigger": this.open.bind(this),
6493 "close.zf.trigger": this.close.bind(this),
6494 "toggle.zf.trigger": this.toggle.bind(this),
6495 "resizeme.zf.trigger": function() {
6496 if (_this.$element.is(":visible")) {
6497 _this._setPosition(function() {})
6498 }
6499 }
6500 });
6501 if (this.$anchor.length) {
6502 this.$anchor.on("keydown.zf.reveal", function(e) {
6503 if (e.which === 13 || e.which === 32) {
6504 e.stopPropagation();
6505 e.preventDefault();
6506 _this.open()
6507 }
6508 })
6509 }
6510 if (this.options.closeOnClick && this.options.overlay) {
6511 this.$overlay.off(".zf.reveal").on("click.zf.reveal", this.close.bind(this))
6512 }
6513 };
6514 Reveal.prototype._setPosition = function(cb) {
6515 var eleDims = Foundation.Box.GetDimensions(this.$element);
6516 var elePos = this.options.fullScreen ? "reveal full" : eleDims.height >= .5 * eleDims.windowDims.height ? "reveal" : "center";
6517 if (elePos === "reveal full") {
6518 this.$element.offset(Foundation.Box.GetOffsets(this.$element, null, elePos, this.options.vOffset)).css({
6519 height: eleDims.windowDims.height,
6520 width: eleDims.windowDims.width
6521 })
6522 } else if (!Foundation.MediaQuery.atLeast("medium") || !Foundation.Box.ImNotTouchingYou(this.$element, null, true, false)) {
6523 this.$element.css({
6524 width: eleDims.windowDims.width - this.options.hOffset * 2
6525 }).offset(Foundation.Box.GetOffsets(this.$element, null, "center", this.options.vOffset, this.options.hOffset));
6526 this.changedSize = true
6527 } else {
6528 this.$element.css({
6529 "max-height": eleDims.windowDims.height - this.options.vOffset * (this.options.btmOffsetPct / 100 + 1),
6530 width: ""
6531 }).offset(Foundation.Box.GetOffsets(this.$element, null, elePos, this.options.vOffset))
6532 }
6533 cb()
6534 };
6535 Reveal.prototype.open = function() {
6536 var _this = this;
6537 this.isActive = true;
6538 this.$element.css({
6539 visibility: "hidden"
6540 }).show().scrollTop(0);
6541 this._setPosition(function() {
6542 _this.$element.hide().css({
6543 visibility: ""
6544 });
6545 if (!_this.options.multipleOpened) {
6546 _this.$element.trigger("closeme.zf.reveal", _this.id)
6547 }
6548 if (_this.options.animationIn) {
6549 if (_this.options.overlay) {
6550 Foundation.Motion.animateIn(_this.$overlay, "fade-in", function() {
6551 Foundation.Motion.animateIn(_this.$element, _this.options.animationIn, function() {
6552 _this.focusableElements = Foundation.Keyboard.findFocusable(_this.$element)
6553 })
6554 })
6555 } else {
6556 Foundation.Motion.animateIn(_this.$element, _this.options.animationIn, function() {
6557 _this.focusableElements = Foundation.Keyboard.findFocusable(_this.$element)
6558 })
6559 }
6560 } else {
6561 if (_this.options.overlay) {
6562 _this.$overlay.show(0, function() {
6563 _this.$element.show(_this.options.showDelay, function() {})
6564 })
6565 } else {
6566 _this.$element.show(_this.options.showDelay, function() {})
6567 }
6568 }
6569 });
6570 this.$element.attr({
6571 "aria-hidden": false
6572 }).attr("tabindex", -1).focus().trigger("open.zf.reveal");
6573 $("body").addClass("is-reveal-open").attr({
6574 "aria-hidden": this.options.overlay || this.options.fullScreen ? true : false
6575 });
6576 setTimeout(function() {
6577 _this._extraHandlers()
6578 }, 0)
6579 };
6580 Reveal.prototype._extraHandlers = function() {
6581 var _this = this;
6582 this.focusableElements = Foundation.Keyboard.findFocusable(this.$element);
6583 if (!this.options.overlay && this.options.closeOnClick && !this.options.fullScreen) {
6584 $("body").on("click.zf.reveal", function(e) {
6585 _this.close()
6586 })
6587 }
6588 if (this.options.closeOnEsc) {
6589 $(window).on("keydown.zf.reveal", function(e) {
6590 Foundation.Keyboard.handleKey(e, _this, {
6591 close: function() {
6592 if (this.options.closeOnEsc) {
6593 this.close();
6594 this.$anchor.focus()
6595 }
6596 }
6597 });
6598 if (_this.focusableElements.length === 0) {
6599 e.preventDefault()
6600 }
6601 })
6602 }
6603 this.$element.on("keydown.zf.reveal", function(e) {
6604 var $target = $(this);
6605 Foundation.Keyboard.handleKey(e, _this, {
6606 tab_forward: function() {
6607 if (this.$element.find(":focus").is(_this.focusableElements.eq(-1))) {
6608 _this.focusableElements.eq(0).focus();
6609 e.preventDefault()
6610 }
6611 },
6612 tab_backward: function() {
6613 if (this.$element.find(":focus").is(_this.focusableElements.eq(0)) || this.$element.is(":focus")) {
6614 _this.focusableElements.eq(-1).focus();
6615 e.preventDefault()
6616 }
6617 },
6618 open: function() {
6619 if (_this.$element.find(":focus").is(_this.$element.find("[data-close]"))) {
6620 setTimeout(function() {
6621 _this.$anchor.focus()
6622 }, 1)
6623 } else if ($target.is(_this.focusableElements)) {
6624 this.open()
6625 }
6626 },
6627 close: function() {
6628 if (this.options.closeOnEsc) {
6629 this.close();
6630 this.$anchor.focus()
6631 }
6632 }
6633 })
6634 })
6635 };
6636 Reveal.prototype.close = function() {
6637 if (!this.isActive || !this.$element.is(":visible")) {
6638 return false
6639 }
6640 var _this = this;
6641 if (this.options.animationOut) {
6642 Foundation.Motion.animateOut(this.$element, this.options.animationOut, function() {
6643 if (_this.options.overlay) {
6644 Foundation.Motion.animateOut(_this.$overlay, "fade-out", function() {})
6645 }
6646 })
6647 } else {
6648 this.$element.hide(_this.options.hideDelay, function() {
6649 if (_this.options.overlay) {
6650 _this.$overlay.hide(0, function() {})
6651 }
6652 })
6653 }
6654 if (this.options.closeOnEsc) {
6655 $(window).off("keydown.zf.reveal")
6656 }
6657 if (!this.options.overlay && this.options.closeOnClick) {
6658 $("body").off("click.zf.reveal")
6659 }
6660 this.$element.off("keydown.zf.reveal");
6661 if (this.changedSize) {
6662 this.$element.css({
6663 height: "",
6664 width: ""
6665 })
6666 }
6667 $("body").removeClass("is-reveal-open").attr({
6668 "aria-hidden": false,
6669 tabindex: ""
6670 });
6671 if (this.options.resetOnClose) {
6672 this.$element.html(this.$element.html())
6673 }
6674 this.isActive = false;
6675 this.$element.attr({
6676 "aria-hidden": true
6677 }).trigger("closed.zf.reveal")
6678 };
6679 Reveal.prototype.toggle = function() {
6680 if (this.isActive) {
6681 this.close()
6682 } else {
6683 this.open()
6684 }
6685 };
6686 Reveal.prototype.destroy = function() {
6687 if (this.options.overlay) {
6688 this.$overlay.hide().off().remove()
6689 }
6690 this.$element.hide();
6691 this.$anchor.off();
6692 Foundation.unregisterPlugin(this)
6693 };
6694 Foundation.plugin(Reveal, "Reveal");
6695 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Reveal;
6696 if (typeof define === "function") define(["foundation"], function() {
6697 return Reveal
6698 })
6699}(Foundation, jQuery);
6700! function($, Foundation) {
6701 "use strict";
6702
6703 function Slider(element, options) {
6704 this.$element = element;
6705 this.options = $.extend({}, Slider.defaults, this.$element.data(), options);
6706 this._init();
6707 Foundation.registerPlugin(this);
6708 Foundation.Keyboard.register("Slider", {
6709 ltr: {
6710 ARROW_RIGHT: "increase",
6711 ARROW_UP: "increase",
6712 ARROW_DOWN: "decrease",
6713 ARROW_LEFT: "decrease",
6714 SHIFT_ARROW_RIGHT: "increase_fast",
6715 SHIFT_ARROW_UP: "increase_fast",
6716 SHIFT_ARROW_DOWN: "decrease_fast",
6717 SHIFT_ARROW_LEFT: "decrease_fast"
6718 },
6719 rtl: {
6720 ARROW_LEFT: "increase",
6721 ARROW_RIGHT: "decrease",
6722 SHIFT_ARROW_LEFT: "increase_fast",
6723 SHIFT_ARROW_RIGHT: "decrease_fast"
6724 }
6725 })
6726 }
6727 Slider.defaults = {
6728 start: 0,
6729 end: 100,
6730 step: 1,
6731 initialStart: 0,
6732 initialEnd: 100,
6733 binding: false,
6734 clickSelect: true,
6735 vertical: false,
6736 draggable: true,
6737 disabled: false,
6738 doubleSided: false,
6739 decimal: 2,
6740 moveTime: 200,
6741 disabledClass: "disabled"
6742 };
6743 Slider.prototype._init = function() {
6744 this.inputs = this.$element.find("input");
6745 this.handles = this.$element.find("[data-slider-handle]");
6746 this.$handle = this.handles.eq(0);
6747 this.$input = this.inputs.length ? this.inputs.eq(0) : $("#" + this.$handle.attr("aria-controls"));
6748 this.$fill = this.$element.find("[data-slider-fill]").css(this.options.vertical ? "height" : "width", 0);
6749 var isDbl = false,
6750 _this = this;
6751 if (this.options.disabled || this.$element.hasClass(this.options.disabledClass)) {
6752 this.options.disabled = true;
6753 this.$element.addClass(this.options.disabledClass)
6754 }
6755 if (!this.inputs.length) {
6756 this.inputs = $().add(this.$input);
6757 this.options.binding = true
6758 }
6759 this._setInitAttr(0);
6760 this._events(this.$handle);
6761 if (this.handles[1]) {
6762 this.options.doubleSided = true;
6763 this.$handle2 = this.handles.eq(1);
6764 this.$input2 = this.inputs.length ? this.inputs.eq(1) : $("#" + this.$handle2.attr("aria-controls"));
6765 if (!this.inputs[1]) {
6766 this.inputs = this.inputs.add(this.$input2)
6767 }
6768 isDbl = true;
6769 this._setHandlePos(this.$handle, this.options.initialStart, true, function() {
6770 _this._setHandlePos(_this.$handle2, _this.options.initialEnd)
6771 });
6772 this._setInitAttr(1);
6773 this._events(this.$handle2)
6774 }
6775 if (!isDbl) {
6776 this._setHandlePos(this.$handle, this.options.initialStart, true)
6777 }
6778 };
6779 Slider.prototype._setHandlePos = function($hndl, location, noInvert, cb) {
6780 location = parseFloat(location);
6781 if (location < this.options.start) {
6782 location = this.options.start
6783 } else if (location > this.options.end) {
6784 location = this.options.end
6785 }
6786 var isDbl = this.options.doubleSided,
6787 callback = cb || null;
6788 if (isDbl) {
6789 if (this.handles.index($hndl) === 0) {
6790 var h2Val = parseFloat(this.$handle2.attr("aria-valuenow"));
6791 location = location >= h2Val ? h2Val - this.options.step : location
6792 } else {
6793 var h1Val = parseFloat(this.$handle.attr("aria-valuenow"));
6794 location = location <= h1Val ? h1Val + this.options.step : location
6795 }
6796 }
6797 if (this.options.vertical && !noInvert) {
6798 location = this.options.end - location
6799 }
6800 var _this = this,
6801 vert = this.options.vertical,
6802 hOrW = vert ? "height" : "width",
6803 lOrT = vert ? "top" : "left",
6804 halfOfHandle = $hndl[0].getBoundingClientRect()[hOrW] / 2,
6805 elemDim = this.$element[0].getBoundingClientRect()[hOrW],
6806 pctOfBar = percent(location, this.options.end).toFixed(2),
6807 pxToMove = (elemDim - halfOfHandle) * pctOfBar,
6808 movement = (percent(pxToMove, elemDim) * 100).toFixed(this.options.decimal),
6809 location = location > 0 ? parseFloat(location.toFixed(this.options.decimal)) : 0,
6810 anim, prog, start = null,
6811 css = {};
6812 this._setValues($hndl, location);
6813 if (this.options.doubleSided) {
6814 var isLeftHndl = this.handles.index($hndl) === 0,
6815 dim, idx = this.handles.index($hndl);
6816 if (isLeftHndl) {
6817 css[lOrT] = (pctOfBar > 0 ? pctOfBar * 100 : 0) + "%";
6818 dim = ((percent(this.$handle2.position()[lOrT] + halfOfHandle, elemDim) - parseFloat(pctOfBar)) * 100).toFixed(this.options.decimal) + "%";
6819 css["min-" + hOrW] = dim;
6820 if (cb && typeof cb === "function") {
6821 cb()
6822 }
6823 } else {
6824 var handleLeft = parseFloat(this.$handle[0].style.left);
6825 location = (location < 100 ? location : 100) - (!isNaN(handleLeft) ? handleLeft : this.options.end - location);
6826 css["min-" + hOrW] = location + "%"
6827 }
6828 }
6829 this.$element.one("finished.zf.animate", function() {
6830 _this.animComplete = true;
6831 _this.$element.trigger("moved.zf.slider", [$hndl])
6832 });
6833 var moveTime = _this.$element.data("dragging") ? 1e3 / 60 : _this.options.moveTime;
6834 Foundation.Move(moveTime, $hndl, function() {
6835 $hndl.css(lOrT, movement + "%");
6836 if (!_this.options.doubleSided) {
6837 _this.$fill.css(hOrW, pctOfBar * 100 + "%")
6838 } else {
6839 _this.$fill.css(css)
6840 }
6841 })
6842 };
6843 Slider.prototype._setInitAttr = function(idx) {
6844 var id = this.inputs.eq(idx).attr("id") || Foundation.GetYoDigits(6, "slider");
6845 this.inputs.eq(idx).attr({
6846 id: id,
6847 max: this.options.end,
6848 min: this.options.start
6849 });
6850 this.handles.eq(idx).attr({
6851 role: "slider",
6852 "aria-controls": id,
6853 "aria-valuemax": this.options.end,
6854 "aria-valuemin": this.options.start,
6855 "aria-valuenow": idx === 0 ? this.options.initialStart : this.options.initialEnd,
6856 "aria-orientation": this.options.vertical ? "vertical" : "horizontal",
6857 tabindex: 0
6858 })
6859 };
6860 Slider.prototype._setValues = function($handle, val) {
6861 var idx = this.options.doubleSided ? this.handles.index($handle) : 0;
6862 this.inputs.eq(idx).val(val);
6863 $handle.attr("aria-valuenow", val)
6864 };
6865 Slider.prototype._handleEvent = function(e, $handle, val) {
6866 var value, hasVal;
6867 if (!val) {
6868 e.preventDefault();
6869 var _this = this,
6870 vertical = this.options.vertical,
6871 param = vertical ? "height" : "width",
6872 direction = vertical ? "top" : "left",
6873 pageXY = vertical ? e.pageY : e.pageX,
6874 halfOfHandle = this.$handle[0].getBoundingClientRect()[param] / 2,
6875 barDim = this.$element[0].getBoundingClientRect()[param],
6876 barOffset = this.$element.offset()[direction] - pageXY,
6877 barXY = barOffset > 0 ? -halfOfHandle : barOffset - halfOfHandle < -barDim ? barDim : Math.abs(barOffset),
6878 offsetPct = percent(barXY, barDim);
6879 value = (this.options.end - this.options.start) * offsetPct;
6880 hasVal = false;
6881 if (!$handle) {
6882 var firstHndlPos = absPosition(this.$handle, direction, barXY, param),
6883 secndHndlPos = absPosition(this.$handle2, direction, barXY, param);
6884 $handle = firstHndlPos <= secndHndlPos ? this.$handle : this.$handle2
6885 }
6886 } else {
6887 value = val;
6888 hasVal = true
6889 }
6890 this._setHandlePos($handle, value, hasVal)
6891 };
6892 Slider.prototype._events = function($handle) {
6893 if (this.options.disabled) {
6894 return false
6895 }
6896 var _this = this,
6897 curHandle, timer;
6898 this.inputs.off("change.zf.slider").on("change.zf.slider", function(e) {
6899 var idx = _this.inputs.index($(this));
6900 _this._handleEvent(e, _this.handles.eq(idx), $(this).val())
6901 });
6902 if (this.options.clickSelect) {
6903 this.$element.off("click.zf.slider").on("click.zf.slider", function(e) {
6904 if (_this.$element.data("dragging")) {
6905 return false
6906 }
6907 _this.animComplete = false;
6908 if (_this.options.doubleSided) {
6909 _this._handleEvent(e)
6910 } else {
6911 _this._handleEvent(e, _this.$handle)
6912 }
6913 })
6914 }
6915 if (this.options.draggable) {
6916 this.handles.addTouch();
6917 var $body = $("body");
6918 $handle.off("mousedown.zf.slider").on("mousedown.zf.slider", function(e) {
6919 $handle.addClass("is-dragging");
6920 _this.$fill.addClass("is-dragging");
6921 _this.$element.data("dragging", true);
6922 _this.animComplete = false;
6923 curHandle = $(e.currentTarget);
6924 $body.on("mousemove.zf.slider", function(e) {
6925 e.preventDefault();
6926 _this._handleEvent(e, curHandle)
6927 }).on("mouseup.zf.slider", function(e) {
6928 _this.animComplete = true;
6929 _this._handleEvent(e, curHandle);
6930 $handle.removeClass("is-dragging");
6931 _this.$fill.removeClass("is-dragging");
6932 _this.$element.data("dragging", false);
6933 $body.off("mousemove.zf.slider mouseup.zf.slider")
6934 })
6935 })
6936 }
6937 $handle.off("keydown.zf.slider").on("keydown.zf.slider", function(e) {
6938 var idx = _this.options.doubleSided ? _this.handles.index($(this)) : 0,
6939 oldValue = parseFloat(_this.inputs.eq(idx).val()),
6940 newValue;
6941 var _$handle = $(this);
6942 Foundation.Keyboard.handleKey(e, _this, {
6943 decrease: function() {
6944 newValue = oldValue - _this.options.step
6945 },
6946 increase: function() {
6947 newValue = oldValue + _this.options.step
6948 },
6949 decrease_fast: function() {
6950 newValue = oldValue - _this.options.step * 10
6951 },
6952 increase_fast: function() {
6953 newValue = oldValue + _this.options.step * 10
6954 },
6955 handled: function() {
6956 e.preventDefault();
6957 _this._setHandlePos(_$handle, newValue, true)
6958 }
6959 })
6960 })
6961 };
6962 Slider.prototype.destroy = function() {
6963 this.handles.off(".zf.slider");
6964 this.inputs.off(".zf.slider");
6965 this.$element.off(".zf.slider");
6966 Foundation.unregisterPlugin(this)
6967 };
6968 Foundation.plugin(Slider, "Slider");
6969
6970 function percent(frac, num) {
6971 return frac / num
6972 }
6973
6974 function absPosition($handle, dir, clickPos, param) {
6975 return Math.abs($handle.position()[dir] + $handle[param]() / 2 - clickPos)
6976 }
6977}(jQuery, window.Foundation);
6978! function($, Foundation) {
6979 "use strict";
6980
6981 function Sticky(element, options) {
6982 this.$element = element;
6983 this.options = $.extend({}, Sticky.defaults, this.$element.data(), options);
6984 this._init();
6985 Foundation.registerPlugin(this)
6986 }
6987 Sticky.defaults = {
6988 container: "<div data-sticky-container></div>",
6989 stickTo: "top",
6990 anchor: "",
6991 topAnchor: "",
6992 btmAnchor: "",
6993 marginTop: 1,
6994 marginBottom: 1,
6995 stickyOn: "medium",
6996 stickyClass: "sticky",
6997 containerClass: "sticky-container",
6998 checkEvery: -1
6999 };
7000 Sticky.prototype._init = function() {
7001 var $parent = this.$element.parent("[data-sticky-container]"),
7002 id = this.$element[0].id || Foundation.GetYoDigits(6, "sticky"),
7003 _this = this;
7004 if (!$parent.length) {
7005 this.wasWrapped = true
7006 }
7007 this.$container = $parent.length ? $parent : $(this.options.container).wrapInner(this.$element);
7008 this.$container.addClass(this.options.containerClass);
7009 this.$element.addClass(this.options.stickyClass).attr({
7010 "data-resize": id
7011 });
7012 this.scrollCount = this.options.checkEvery;
7013 this.isStuck = false;
7014 if (this.options.topAnchor !== "") {
7015 this._parsePoints()
7016 } else {
7017 this.$anchor = this.options.anchor ? $("#" + this.options.anchor) : $(document.body)
7018 }
7019 this._setSizes(function() {
7020 _this._calc(false)
7021 });
7022 this._events(id.split("-").reverse().join("-"))
7023 };
7024 Sticky.prototype._parsePoints = function() {
7025 var top = this.options.topAnchor,
7026 btm = this.options.btmAnchor,
7027 pts = [top, btm],
7028 breaks = {};
7029 for (var i = 0, len = pts.length; i < len && pts[i]; i++) {
7030 var pt;
7031 if (typeof pts[i] === "number") {
7032 pt = pts[i]
7033 } else {
7034 var place = pts[i].split(":"),
7035 anchor = $("#" + place[0]);
7036 pt = anchor.offset().top;
7037 if (place[1] && place[1].toLowerCase() === "bottom") {
7038 pt += anchor[0].getBoundingClientRect().height
7039 }
7040 }
7041 breaks[i] = pt
7042 }
7043 this.points = breaks;
7044 return
7045 };
7046 Sticky.prototype._events = function(id) {
7047 var _this = this,
7048 scrollListener = "scroll.zf." + id;
7049 if (this.isOn) {
7050 return
7051 }
7052 if (this.canStick) {
7053 this.isOn = true;
7054 $(window).off(scrollListener).on(scrollListener, function(e) {
7055 if (_this.scrollCount === 0) {
7056 _this.scrollCount = _this.options.checkEvery;
7057 _this._setSizes(function() {
7058 _this._calc(false, window.pageYOffset)
7059 })
7060 } else {
7061 _this.scrollCount--;
7062 _this._calc(false, window.pageYOffset)
7063 }
7064 })
7065 }
7066 this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger", function(e, el) {
7067 _this._setSizes(function() {
7068 _this._calc(false);
7069 if (_this.canStick) {
7070 if (!_this.isOn) {
7071 _this._events(id)
7072 }
7073 } else if (_this.isOn) {
7074 _this._pauseListeners(scrollListener)
7075 }
7076 })
7077 })
7078 };
7079 Sticky.prototype._pauseListeners = function(scrollListener) {
7080 this.isOn = false;
7081 $(window).off(scrollListener);
7082 this.$element.trigger("pause.zf.sticky")
7083 };
7084 Sticky.prototype._calc = function(checkSizes, scroll) {
7085 if (checkSizes) {
7086 this._setSizes()
7087 }
7088 if (!this.canStick) {
7089 if (this.isStuck) {
7090 this._removeSticky(true)
7091 }
7092 return false
7093 }
7094 if (!scroll) {
7095 scroll = window.pageYOffset
7096 }
7097 if (scroll >= this.topPoint) {
7098 if (scroll <= this.bottomPoint) {
7099 if (!this.isStuck) {
7100 this._setSticky()
7101 }
7102 } else {
7103 if (this.isStuck) {
7104 this._removeSticky(false)
7105 }
7106 }
7107 } else {
7108 if (this.isStuck) {
7109 this._removeSticky(true)
7110 }
7111 }
7112 };
7113 Sticky.prototype._setSticky = function() {
7114 var stickTo = this.options.stickTo,
7115 mrgn = stickTo === "top" ? "marginTop" : "marginBottom",
7116 notStuckTo = stickTo === "top" ? "bottom" : "top",
7117 css = {};
7118 css[mrgn] = this.options[mrgn] + "em";
7119 css[stickTo] = 0;
7120 css[notStuckTo] = "auto";
7121 css["left"] = this.$container.offset().left + parseInt(window.getComputedStyle(this.$container[0])["padding-left"], 10);
7122 this.isStuck = true;
7123 this.$element.removeClass("is-anchored is-at-" + notStuckTo).addClass("is-stuck is-at-" + stickTo).css(css).trigger("sticky.zf.stuckto:" + stickTo)
7124 };
7125 Sticky.prototype._removeSticky = function(isTop) {
7126 var stickTo = this.options.stickTo,
7127 stickToTop = stickTo === "top",
7128 css = {},
7129 anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight,
7130 mrgn = stickToTop ? "marginTop" : "marginBottom",
7131 notStuckTo = stickToTop ? "bottom" : "top",
7132 topOrBottom = isTop ? "top" : "bottom";
7133 css[mrgn] = 0;
7134 if (isTop && !stickToTop || stickToTop && !isTop) {
7135 css[stickTo] = anchorPt;
7136 css[notStuckTo] = 0
7137 } else {
7138 css[stickTo] = 0;
7139 css[notStuckTo] = anchorPt
7140 }
7141 css["left"] = "";
7142 this.isStuck = false;
7143 this.$element.removeClass("is-stuck is-at-" + stickTo).addClass("is-anchored is-at-" + topOrBottom).css(css).trigger("sticky.zf.unstuckfrom:" + topOrBottom)
7144 };
7145 Sticky.prototype._setSizes = function(cb) {
7146 this.canStick = Foundation.MediaQuery.atLeast(this.options.stickyOn);
7147 if (!this.canStick) {
7148 cb()
7149 }
7150 var _this = this,
7151 newElemWidth = this.$container[0].getBoundingClientRect().width,
7152 comp = window.getComputedStyle(this.$container[0]),
7153 pdng = parseInt(comp["padding-right"], 10);
7154 if (this.$anchor && this.$anchor.length) {
7155 this.anchorHeight = this.$anchor[0].getBoundingClientRect().height
7156 } else {
7157 this._parsePoints()
7158 }
7159 this.$element.css({
7160 "max-width": newElemWidth - pdng + "px"
7161 });
7162 var newContainerHeight = this.$element[0].getBoundingClientRect().height || this.containerHeight;
7163 this.containerHeight = newContainerHeight;
7164 this.$container.css({
7165 height: newContainerHeight
7166 });
7167 this.elemHeight = newContainerHeight;
7168 if (this.isStuck) {
7169 this.$element.css({
7170 left: this.$container.offset().left + parseInt(comp["padding-left"], 10)
7171 })
7172 }
7173 this._setBreakPoints(newContainerHeight, function() {
7174 if (cb) {
7175 cb()
7176 }
7177 })
7178 };
7179 Sticky.prototype._setBreakPoints = function(elemHeight, cb) {
7180 if (!this.canStick) {
7181 if (cb) {
7182 cb()
7183 } else {
7184 return false
7185 }
7186 }
7187 var mTop = emCalc(this.options.marginTop),
7188 mBtm = emCalc(this.options.marginBottom),
7189 topPoint = this.points ? this.points[0] : this.$anchor.offset().top,
7190 bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight,
7191 winHeight = window.innerHeight;
7192 if (this.options.stickTo === "top") {
7193 topPoint -= mTop;
7194 bottomPoint -= elemHeight + mTop
7195 } else if (this.options.stickTo === "bottom") {
7196 topPoint -= winHeight - (elemHeight + mBtm);
7197 bottomPoint -= winHeight - mBtm
7198 } else {}
7199 this.topPoint = topPoint;
7200 this.bottomPoint = bottomPoint;
7201 if (cb) {
7202 cb()
7203 }
7204 };
7205 Sticky.prototype.destroy = function() {
7206 this._removeSticky(true);
7207 this.$element.removeClass(this.options.stickyClass + " is-anchored is-at-top").css({
7208 height: "",
7209 top: "",
7210 bottom: "",
7211 "max-width": ""
7212 }).off("resizeme.zf.trigger");
7213 this.$anchor.off("change.zf.sticky");
7214 $(window).off("scroll.zf.sticky");
7215 if (this.wasWrapped) {
7216 this.$element.unwrap()
7217 } else {
7218 this.$container.removeClass(this.options.containerClass).css({
7219 height: ""
7220 })
7221 }
7222 Foundation.unregisterPlugin(this)
7223 };
7224
7225 function emCalc(em) {
7226 return parseInt(window.getComputedStyle(document.body, null).fontSize, 10) * em
7227 }
7228 Foundation.plugin(Sticky, "Sticky")
7229}(jQuery, window.Foundation);
7230! function($, Foundation) {
7231 "use strict";
7232
7233 function Tabs(element, options) {
7234 this.$element = element;
7235 this.options = $.extend({}, Tabs.defaults, this.$element.data(), options);
7236 this._init();
7237 Foundation.registerPlugin(this);
7238 Foundation.Keyboard.register("Tabs", {
7239 ENTER: "open",
7240 SPACE: "open",
7241 ARROW_RIGHT: "next",
7242 ARROW_UP: "previous",
7243 ARROW_DOWN: "next",
7244 ARROW_LEFT: "previous"
7245 })
7246 }
7247 Tabs.defaults = {
7248 autoFocus: false,
7249 wrapOnKeys: true,
7250 matchHeight: false,
7251 linkClass: "tabs-title",
7252 panelClass: "tabs-panel"
7253 };
7254 Tabs.prototype._init = function() {
7255 var _this = this;
7256 this.$tabTitles = this.$element.find("." + this.options.linkClass);
7257 this.$tabContent = $('[data-tabs-content="' + this.$element[0].id + '"]');
7258 this.$tabTitles.each(function() {
7259 var $elem = $(this),
7260 $link = $elem.find("a"),
7261 isActive = $elem.hasClass("is-active"),
7262 hash = $link.attr("href").slice(1),
7263 linkId = hash + "-label",
7264 $tabContent = $(hash);
7265 $elem.attr({
7266 role: "presentation"
7267 });
7268 $link.attr({
7269 role: "tab",
7270 "aria-controls": hash,
7271 "aria-selected": isActive,
7272 id: linkId
7273 });
7274 $tabContent.attr({
7275 role: "tabpanel",
7276 "aria-hidden": !isActive,
7277 "aria-labelledby": linkId
7278 });
7279 if (isActive && _this.options.autoFocus) {
7280 $link.focus()
7281 }
7282 });
7283 if (this.options.matchHeight) {
7284 var $images = this.$tabContent.find("img");
7285 if ($images.length) {
7286 Foundation.onImagesLoaded($images, this._setHeight.bind(this))
7287 } else {
7288 this._setHeight()
7289 }
7290 }
7291 this._events()
7292 };
7293 Tabs.prototype._events = function() {
7294 this._addKeyHandler();
7295 this._addClickHandler();
7296 if (this.options.matchHeight) {
7297 $(window).on("changed.zf.mediaquery", this._setHeight.bind(this))
7298 }
7299 };
7300 Tabs.prototype._addClickHandler = function() {
7301 var _this = this;
7302 this.$element.off("click.zf.tabs").on("click.zf.tabs", "." + this.options.linkClass, function(e) {
7303 e.preventDefault();
7304 e.stopPropagation();
7305 if ($(this).hasClass("is-active")) {
7306 return
7307 }
7308 _this._handleTabChange($(this))
7309 })
7310 };
7311 Tabs.prototype._addKeyHandler = function() {
7312 var _this = this;
7313 var $firstTab = _this.$element.find("li:first-of-type");
7314 var $lastTab = _this.$element.find("li:last-of-type");
7315 this.$tabTitles.off("keydown.zf.tabs").on("keydown.zf.tabs", function(e) {
7316 if (e.which === 9) return;
7317 e.stopPropagation();
7318 e.preventDefault();
7319 var $element = $(this),
7320 $elements = $element.parent("ul").children("li"),
7321 $prevElement, $nextElement;
7322 $elements.each(function(i) {
7323 if ($(this).is($element)) {
7324 if (_this.options.wrapOnKeys) {
7325 $prevElement = i === 0 ? $elements.last() : $elements.eq(i - 1);
7326 $nextElement = i === $elements.length - 1 ? $elements.first() : $elements.eq(i + 1)
7327 } else {
7328 $prevElement = $elements.eq(Math.max(0, i - 1));
7329 $nextElement = $elements.eq(Math.min(i + 1, $elements.length - 1))
7330 }
7331 return
7332 }
7333 });
7334 Foundation.Keyboard.handleKey(e, _this, {
7335 open: function() {
7336 $element.find('[role="tab"]').focus();
7337 _this._handleTabChange($element)
7338 },
7339 previous: function() {
7340 $prevElement.find('[role="tab"]').focus();
7341 _this._handleTabChange($prevElement)
7342 },
7343 next: function() {
7344 $nextElement.find('[role="tab"]').focus();
7345 _this._handleTabChange($nextElement)
7346 }
7347 })
7348 })
7349 };
7350 Tabs.prototype._handleTabChange = function($target) {
7351 var $tabLink = $target.find('[role="tab"]'),
7352 hash = $tabLink.attr("href"),
7353 $targetContent = $(hash),
7354 $oldTab = this.$element.find("." + this.options.linkClass + ".is-active").removeClass("is-active").find('[role="tab"]').attr({
7355 "aria-selected": "false"
7356 }).attr("href");
7357 $($oldTab).removeClass("is-active").attr({
7358 "aria-hidden": "true"
7359 });
7360 $target.addClass("is-active");
7361 $tabLink.attr({
7362 "aria-selected": "true"
7363 });
7364 $targetContent.addClass("is-active").attr({
7365 "aria-hidden": "false"
7366 });
7367 this.$element.trigger("change.zf.tabs", [$target])
7368 };
7369 Tabs.prototype.selectTab = function(elem) {
7370 var idStr;
7371 if (typeof elem === "object") {
7372 idStr = elem[0].id
7373 } else {
7374 idStr = elem
7375 }
7376 if (idStr.indexOf("#") < 0) {
7377 idStr = "#" + idStr
7378 }
7379 var $target = this.$tabTitles.find('[href="' + idStr + '"]').parent("." + this.options.linkClass);
7380 this._handleTabChange($target)
7381 };
7382 Tabs.prototype._setHeight = function() {
7383 var max = 0;
7384 this.$tabContent.find("." + this.options.panelClass).css("height", "").each(function() {
7385 var panel = $(this),
7386 isActive = panel.hasClass("is-active");
7387 if (!isActive) {
7388 panel.css({
7389 visibility: "hidden",
7390 display: "block"
7391 })
7392 }
7393 var temp = this.getBoundingClientRect().height;
7394 if (!isActive) {
7395 panel.css({
7396 visibility: "",
7397 display: ""
7398 })
7399 }
7400 max = temp > max ? temp : max
7401 }).css("height", max + "px")
7402 };
7403 Tabs.prototype.destroy = function() {
7404 this.$element.find("." + this.options.linkClass).off(".zf.tabs").hide().end().find("." + this.options.panelClass).hide();
7405 if (this.options.matchHeight) {
7406 $(window).off("changed.zf.mediaquery")
7407 }
7408 Foundation.unregisterPlugin(this)
7409 };
7410 Foundation.plugin(Tabs, "Tabs");
7411
7412 function checkClass($elem) {
7413 return $elem.hasClass("is-active")
7414 }
7415}(jQuery, window.Foundation);
7416! function(Foundation, $) {
7417 "use strict";
7418
7419 function Toggler(element, options) {
7420 this.$element = element;
7421 this.options = $.extend({}, Toggler.defaults, element.data(), options);
7422 this.className = "";
7423 this._init();
7424 this._events();
7425 Foundation.registerPlugin(this)
7426 }
7427 Toggler.defaults = {
7428 animate: false
7429 };
7430 Toggler.prototype._init = function() {
7431 var input;
7432 if (this.options.animate) {
7433 input = this.options.animate.split(" ");
7434 this.animationIn = input[0];
7435 this.animationOut = input[1] || null
7436 } else {
7437 input = this.$element.data("toggler");
7438 this.className = input[0] === "." ? input.slice(1) : input
7439 }
7440 var id = this.$element[0].id;
7441 $('[data-open="' + id + '"], [data-close="' + id + '"], [data-toggle="' + id + '"]').attr("aria-controls", id);
7442 this.$element.attr("aria-expanded", this.$element.is(":hidden") ? false : true)
7443 };
7444 Toggler.prototype._events = function() {
7445 this.$element.off("toggle.zf.trigger").on("toggle.zf.trigger", this.toggle.bind(this))
7446 };
7447 Toggler.prototype.toggle = function() {
7448 this[this.options.animate ? "_toggleAnimate" : "_toggleClass"]()
7449 };
7450 Toggler.prototype._toggleClass = function() {
7451 this.$element.toggleClass(this.className);
7452 var isOn = this.$element.hasClass(this.className);
7453 if (isOn) {
7454 this.$element.trigger("on.zf.toggler")
7455 } else {
7456 this.$element.trigger("off.zf.toggler")
7457 }
7458 this._updateARIA(isOn)
7459 };
7460 Toggler.prototype._toggleAnimate = function() {
7461 var _this = this;
7462 if (this.$element.is(":hidden")) {
7463 Foundation.Motion.animateIn(this.$element, this.animationIn, function() {
7464 this.trigger("on.zf.toggler");
7465 _this._updateARIA(true)
7466 })
7467 } else {
7468 Foundation.Motion.animateOut(this.$element, this.animationOut, function() {
7469 this.trigger("off.zf.toggler");
7470 _this._updateARIA(false)
7471 })
7472 }
7473 };
7474 Toggler.prototype._updateARIA = function(isOn) {
7475 this.$element.attr("aria-expanded", isOn ? true : false)
7476 };
7477 Toggler.prototype.destroy = function() {
7478 this.$element.off(".zf.toggler");
7479 Foundation.unregisterPlugin(this)
7480 };
7481 Foundation.plugin(Toggler, "Toggler");
7482 if (typeof module !== "undefined" && typeof module.exports !== "undefined") module.exports = Toggler;
7483 if (typeof define === "function") define(["foundation"], function() {
7484 return Toggler
7485 })
7486}(Foundation, jQuery);
7487! function($, document, Foundation) {
7488 "use strict";
7489
7490 function Tooltip(element, options) {
7491 this.$element = element;
7492 this.options = $.extend({}, Tooltip.defaults, this.$element.data(), options);
7493 this.isActive = false;
7494 this.isClick = false;
7495 this._init();
7496 Foundation.registerPlugin(this)
7497 }
7498 Tooltip.defaults = {
7499 disableForTouch: false,
7500 hoverDelay: 200,
7501 fadeInDuration: 150,
7502 fadeOutDuration: 150,
7503 disableHover: false,
7504 templateClasses: "",
7505 tooltipClass: "tooltip",
7506 triggerClass: "has-tip",
7507 showOn: "small",
7508 template: "",
7509 tipText: "",
7510 touchCloseText: "Tap to close.",
7511 clickOpen: true,
7512 positionClass: "",
7513 vOffset: 10,
7514 hOffset: 12
7515 };
7516 Tooltip.prototype._init = function() {
7517 var elemId = this.$element.attr("aria-describedby") || Foundation.GetYoDigits(6, "tooltip");
7518 this.options.positionClass = this._getPositionClass(this.$element);
7519 this.options.tipText = this.options.tipText || this.$element.attr("title");
7520 this.template = this.options.template ? $(this.options.template) : this._buildTemplate(elemId);
7521 this.template.appendTo(document.body).text(this.options.tipText).hide();
7522 this.$element.attr({
7523 title: "",
7524 "aria-describedby": elemId,
7525 "data-yeti-box": elemId,
7526 "data-toggle": elemId,
7527 "data-resize": elemId
7528 }).addClass(this.triggerClass);
7529 this.usedPositions = [];
7530 this.counter = 4;
7531 this.classChanged = false;
7532 this._events()
7533 };
7534 Tooltip.prototype._getPositionClass = function(element) {
7535 if (!element) {
7536 return ""
7537 }
7538 var position = element[0].className.match(/(top|left|right)/g);
7539 position = position ? position[0] : "";
7540 return position
7541 };
7542 Tooltip.prototype._buildTemplate = function(id) {
7543 var templateClasses = (this.options.tooltipClass + " " + this.options.positionClass).trim();
7544 var $template = $("<div></div>").addClass(templateClasses).attr({
7545 role: "tooltip",
7546 "aria-hidden": true,
7547 "data-is-active": false,
7548 "data-is-focus": false,
7549 id: id
7550 });
7551 return $template
7552 };
7553 Tooltip.prototype._reposition = function(position) {
7554 this.usedPositions.push(position ? position : "bottom");
7555 if (!position && this.usedPositions.indexOf("top") < 0) {
7556 this.template.addClass("top")
7557 } else if (position === "top" && this.usedPositions.indexOf("bottom") < 0) {
7558 this.template.removeClass(position)
7559 } else if (position === "left" && this.usedPositions.indexOf("right") < 0) {
7560 this.template.removeClass(position).addClass("right")
7561 } else if (position === "right" && this.usedPositions.indexOf("left") < 0) {
7562 this.template.removeClass(position).addClass("left")
7563 } else if (!position && this.usedPositions.indexOf("top") > -1 && this.usedPositions.indexOf("left") < 0) {
7564 this.template.addClass("left")
7565 } else if (position === "top" && this.usedPositions.indexOf("bottom") > -1 && this.usedPositions.indexOf("left") < 0) {
7566 this.template.removeClass(position).addClass("left")
7567 } else if (position === "left" && this.usedPositions.indexOf("right") > -1 && this.usedPositions.indexOf("bottom") < 0) {
7568 this.template.removeClass(position)
7569 } else if (position === "right" && this.usedPositions.indexOf("left") > -1 && this.usedPositions.indexOf("bottom") < 0) {
7570 this.template.removeClass(position)
7571 } else {
7572 this.template.removeClass(position)
7573 }
7574 this.classChanged = true;
7575 this.counter--
7576 };
7577 Tooltip.prototype._setPosition = function() {
7578 var position = this._getPositionClass(this.template),
7579 $tipDims = Foundation.Box.GetDimensions(this.template),
7580 $anchorDims = Foundation.Box.GetDimensions(this.$element),
7581 direction = position === "left" ? "left" : position === "right" ? "left" : "top",
7582 param = direction === "top" ? "height" : "width",
7583 offset = param === "height" ? this.options.vOffset : this.options.hOffset,
7584 _this = this;
7585 if ($tipDims.width >= $tipDims.windowDims.width || !this.counter && !Foundation.Box.ImNotTouchingYou(this.template)) {
7586 this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element, "center bottom", this.options.vOffset, this.options.hOffset, true)).css({
7587 width: $anchorDims.windowDims.width - this.options.hOffset * 2,
7588 height: "auto"
7589 });
7590 return false
7591 }
7592 this.template.offset(Foundation.Box.GetOffsets(this.template, this.$element, "center " + (position || "bottom"), this.options.vOffset, this.options.hOffset));
7593 while (!Foundation.Box.ImNotTouchingYou(this.template) && this.counter) {
7594 this._reposition(position);
7595 this._setPosition()
7596 }
7597 };
7598 Tooltip.prototype.show = function() {
7599 if (this.options.showOn !== "all" && !Foundation.MediaQuery.atLeast(this.options.showOn)) {
7600 return false
7601 }
7602 var _this = this;
7603 this.template.css("visibility", "hidden").show();
7604 this._setPosition();
7605 this.$element.trigger("closeme.zf.tooltip", this.template.attr("id"));
7606 this.template.attr({
7607 "data-is-active": true,
7608 "aria-hidden": false
7609 });
7610 _this.isActive = true;
7611 this.template.stop().hide().css("visibility", "").fadeIn(this.options.fadeInDuration, function() {});
7612 this.$element.trigger("show.zf.tooltip")
7613 };
7614 Tooltip.prototype.hide = function() {
7615 var _this = this;
7616 this.template.stop().attr({
7617 "aria-hidden": true,
7618 "data-is-active": false
7619 }).fadeOut(this.options.fadeOutDuration, function() {
7620 _this.isActive = false;
7621 _this.isClick = false;
7622 if (_this.classChanged) {
7623 _this.template.removeClass(_this._getPositionClass(_this.template)).addClass(_this.options.positionClass);
7624 _this.usedPositions = [];
7625 _this.counter = 4;
7626 _this.classChanged = false
7627 }
7628 });
7629 this.$element.trigger("hide.zf.tooltip")
7630 };
7631 Tooltip.prototype._events = function() {
7632 var _this = this;
7633 var $template = this.template;
7634 var isFocus = false;
7635 if (!this.options.disableHover) {
7636 this.$element.on("mouseenter.zf.tooltip", function(e) {
7637 if (!_this.isActive) {
7638 _this.timeout = setTimeout(function() {
7639 _this.show()
7640 }, _this.options.hoverDelay)
7641 }
7642 }).on("mouseleave.zf.tooltip", function(e) {
7643 clearTimeout(_this.timeout);
7644 if (!isFocus || !_this.isClick && _this.options.clickOpen) {
7645 _this.hide()
7646 }
7647 })
7648 }
7649 if (this.options.clickOpen) {
7650 this.$element.on("mousedown.zf.tooltip", function(e) {
7651 e.stopImmediatePropagation();
7652 if (_this.isClick) {
7653 _this.hide()
7654 } else {
7655 _this.isClick = true;
7656 if ((_this.options.disableHover || !_this.$element.attr("tabindex")) && !_this.isActive) {
7657 _this.show()
7658 }
7659 }
7660 })
7661 }
7662 if (!this.options.disableForTouch) {
7663 this.$element.on("tap.zf.tooltip touchend.zf.tooltip", function(e) {
7664 _this.isActive ? _this.hide() : _this.show()
7665 })
7666 }
7667 this.$element.on({
7668 "close.zf.trigger": this.hide.bind(this)
7669 });
7670 this.$element.on("focus.zf.tooltip", function(e) {
7671 isFocus = true;
7672 console.log(_this.isClick);
7673 if (_this.isClick) {
7674 return false
7675 } else {
7676 _this.show()
7677 }
7678 }).on("focusout.zf.tooltip", function(e) {
7679 isFocus = false;
7680 _this.isClick = false;
7681 _this.hide()
7682 }).on("resizeme.zf.trigger", function() {
7683 if (_this.isActive) {
7684 _this._setPosition()
7685 }
7686 })
7687 };
7688 Tooltip.prototype.toggle = function() {
7689 if (this.isActive) {
7690 this.hide()
7691 } else {
7692 this.show()
7693 }
7694 };
7695 Tooltip.prototype.destroy = function() {
7696 this.$element.attr("title", this.template.text()).off(".zf.trigger .zf.tootip").removeAttr("aria-describedby").removeAttr("data-yeti-box").removeAttr("data-toggle").removeAttr("data-resize");
7697 this.template.remove();
7698 Foundation.unregisterPlugin(this)
7699 };
7700 Foundation.plugin(Tooltip, "Tooltip")
7701}(jQuery, window.document, window.Foundation);
7702! function($, Foundation) {
7703 var initClasses = ["mui-enter", "mui-leave"];
7704 var activeClasses = ["mui-enter-active", "mui-leave-active"];
7705
7706 function animate(isIn, element, animation, cb) {
7707 element = $(element).eq(0);
7708 if (!element.length) return;
7709 var initClass = isIn ? initClasses[0] : initClasses[1];
7710 var activeClass = isIn ? activeClasses[0] : activeClasses[1];
7711 reset();
7712 element.addClass(animation).css("transition", "none");
7713 requestAnimationFrame(function() {
7714 element.addClass(initClass);
7715 if (isIn) element.show()
7716 });
7717 requestAnimationFrame(function() {
7718 element[0].offsetWidth;
7719 element.css("transition", "");
7720 element.addClass(activeClass)
7721 });
7722 element.one(Foundation.transitionend(element), finish);
7723
7724 function finish() {
7725 if (!isIn) element.hide();
7726 reset();
7727 if (cb) cb.apply(element)
7728 }
7729
7730 function reset() {
7731 element[0].style.transitionDuration = 0;
7732 element.removeClass(initClass + " " + activeClass + " " + animation)
7733 }
7734 }
7735 var Motion = {
7736 animateIn: function(element, animation, cb) {
7737 animate(true, element, animation, cb)
7738 },
7739 animateOut: function(element, animation, cb) {
7740 animate(false, element, animation, cb)
7741 }
7742 };
7743 var Move = function(duration, elem, fn) {
7744 var anim, prog, start = null;
7745
7746 function move(ts) {
7747 if (!start) start = window.performance.now();
7748 prog = ts - start;
7749 fn.apply(elem);
7750 if (prog < duration) {
7751 anim = window.requestAnimationFrame(move, elem)
7752 } else {
7753 window.cancelAnimationFrame(anim);
7754 elem.trigger("finished.zf.animate", [elem]).triggerHandler("finished.zf.animate", [elem])
7755 }
7756 }
7757 anim = window.requestAnimationFrame(move)
7758 };
7759 Foundation.Move = Move;
7760 Foundation.Motion = Motion
7761}(jQuery, Foundation);
7762! function($, Foundation) {
7763 "use strict";
7764 var Timer = function(elem, options, cb) {
7765 var _this = this,
7766 duration = options.duration,
7767 nameSpace = Object.keys(elem.data())[0] || "timer",
7768 remain = -1,
7769 start, timer;
7770 this.restart = function() {
7771 remain = -1;
7772 clearTimeout(timer);
7773 this.start()
7774 };
7775 this.start = function() {
7776 clearTimeout(timer);
7777 remain = remain <= 0 ? duration : remain;
7778 elem.data("paused", false);
7779 start = Date.now();
7780 timer = setTimeout(function() {
7781 if (options.infinite) {
7782 _this.restart()
7783 }
7784 cb()
7785 }, remain);
7786 elem.trigger("timerstart.zf." + nameSpace)
7787 };
7788 this.pause = function() {
7789 clearTimeout(timer);
7790 elem.data("paused", true);
7791 var end = Date.now();
7792 remain = remain - (end - start);
7793 elem.trigger("timerpaused.zf." + nameSpace)
7794 }
7795 };
7796 var onImagesLoaded = function(images, callback) {
7797 var self = this,
7798 unloaded = images.length;
7799 if (unloaded === 0) {
7800 callback()
7801 }
7802 var singleImageLoaded = function() {
7803 unloaded--;
7804 if (unloaded === 0) {
7805 callback()
7806 }
7807 };
7808 images.each(function() {
7809 if (this.complete) {
7810 singleImageLoaded()
7811 } else if (typeof this.naturalWidth !== "undefined" && this.naturalWidth > 0) {
7812 singleImageLoaded()
7813 } else {
7814 $(this).one("load", function() {
7815 singleImageLoaded()
7816 })
7817 }
7818 })
7819 };
7820 Foundation.Timer = Timer;
7821 Foundation.onImagesLoaded = onImagesLoaded
7822}(jQuery, window.Foundation);
7823(function($) {
7824 $.spotSwipe = {
7825 version: "1.0.0",
7826 enabled: "ontouchstart" in document.documentElement,
7827 preventDefault: true,
7828 moveThreshold: 75,
7829 timeThreshold: 200
7830 };
7831 var startPosX, startPosY, startTime, elapsedTime, isMoving = false;
7832
7833 function onTouchEnd() {
7834 this.removeEventListener("touchmove", onTouchMove);
7835 this.removeEventListener("touchend", onTouchEnd);
7836 isMoving = false
7837 }
7838
7839 function onTouchMove(e) {
7840 if ($.spotSwipe.preventDefault) {
7841 e.preventDefault()
7842 }
7843 if (isMoving) {
7844 var x = e.touches[0].pageX;
7845 var y = e.touches[0].pageY;
7846 var dx = startPosX - x;
7847 var dy = startPosY - y;
7848 var dir;
7849 elapsedTime = (new Date).getTime() - startTime;
7850 if (Math.abs(dx) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) {
7851 dir = dx > 0 ? "left" : "right"
7852 } else if (Math.abs(dy) >= $.spotSwipe.moveThreshold && elapsedTime <= $.spotSwipe.timeThreshold) {
7853 dir = dy > 0 ? "down" : "up"
7854 }
7855 if (dir) {
7856 onTouchEnd.call(this);
7857 $(this).trigger("swipe", dir).trigger("swipe" + dir)
7858 }
7859 }
7860 }
7861
7862 function onTouchStart(e) {
7863 if (e.touches.length == 1) {
7864 startPosX = e.touches[0].pageX;
7865 startPosY = e.touches[0].pageY;
7866 isMoving = true;
7867 startTime = (new Date).getTime();
7868 this.addEventListener("touchmove", onTouchMove, false);
7869 this.addEventListener("touchend", onTouchEnd, false)
7870 }
7871 }
7872
7873 function init() {
7874 this.addEventListener && this.addEventListener("touchstart", onTouchStart, false)
7875 }
7876
7877 function teardown() {
7878 this.removeEventListener("touchstart", onTouchStart)
7879 }
7880 $.event.special.swipe = {
7881 setup: init
7882 };
7883 $.each(["left", "up", "down", "right"], function() {
7884 $.event.special["swipe" + this] = {
7885 setup: function() {
7886 $(this).on("swipe", $.noop)
7887 }
7888 }
7889 })
7890})(jQuery);
7891! function($) {
7892 $.fn.addTouch = function() {
7893 this.each(function(i, el) {
7894 $(el).bind("touchstart touchmove touchend touchcancel", function() {
7895 handleTouch(event)
7896 })
7897 });
7898 var handleTouch = function(event) {
7899 var touches = event.changedTouches,
7900 first = touches[0],
7901 eventTypes = {
7902 touchstart: "mousedown",
7903 touchmove: "mousemove",
7904 touchend: "mouseup"
7905 },
7906 type = eventTypes[event.type];
7907 var simulatedEvent = document.createEvent("MouseEvent");
7908 simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0, null);
7909 first.target.dispatchEvent(simulatedEvent)
7910 }
7911 }
7912}(jQuery);
7913var hashes = splitHash();
7914var a2a_config = a2a_config || {};
7915a2a_config.locale = "cs";
7916a2a_config.num_services = 4;
7917var global_delay = 50;
7918var fade_delay = 300;
7919var priorityWorking = false;
7920var windowWidth;
7921$(document).ready(function() {
7922 $(document).foundation();
7923 setWindowSize();
7924 setTimeout(function() {
7925 bannerResize(true);
7926 $(".orbit-style-hide").remove();
7927 $(".orbit .is-active").focus();
7928 if ($(window).outerWidth(true) <= 768) {
7929 changeTimerOrbits("pause")
7930 }
7931 }, global_delay);
7932 $(window).resize(function() {
7933 if ($(window).width() != windowWidth) {
7934 if ($(".orbit").attr("data-auto-play") === "true") {
7935 if ($(window).outerWidth(true) <= 768) {
7936 changeTimerOrbits("pause")
7937 } else {
7938 changeTimerOrbits("start");
7939 setTimeout(function() {
7940 bannerResize(true)
7941 }, global_delay)
7942 }
7943 } else {
7944 if ($(window).outerWidth(true) > 768) {
7945 setTimeout(function() {
7946 bannerResize(true)
7947 }, global_delay)
7948 }
7949 }
7950 clearTimeout(window.resizedFinished);
7951 window.resizedFinished = setTimeout(function() {
7952 setTimeout(updatePriority, global_delay)
7953 }, 250)
7954 }
7955 setWindowSize()
7956 });
7957 $(".orbit.max-height").on("slidechange.zf.orbit", function() {
7958 if ($(window).outerWidth(true) > 768) {
7959 setTimeout(bannerResize, global_delay)
7960 }
7961 });
7962 $(window).scroll(function() {
7963 if ($("#top-menu").is(":visible")) {
7964 $('[data-toggle="top-menu"]').first().click()
7965 }
7966 });
7967 $(".filter-buttons.simple a").on("click", function() {
7968 hashes = removeHash(hashes, true, "");
7969 hashes = addHash(hashes, $(this).attr("href").substr(1, $(this).attr("href").length));
7970 return false
7971 });
7972 $(".filter-buttons.checkbox a").on("click", function() {
7973 if ($(this).attr("href") == "#all") {
7974 hashes = removeHash(hashes, true, "");
7975 hashes = addHash(hashes, "all")
7976 } else {
7977 hashes = addHash(hashes, $(this).attr("href").substr(1, $(this).attr("href").length))
7978 }
7979 updateHash(hashes);
7980 return false
7981 });
7982 if ($(".filter-buttons").length == 1) {
7983 if (hashes[0] == "") {
7984 hashes = [];
7985 hashes = addHash(hashes, "all")
7986 }
7987 updateHash(hashes)
7988 }
7989});
7990
7991function setWindowSize() {
7992 windowWidth = $(window).width()
7993}
7994
7995function changeTimerOrbits(action) {
7996 $(".orbit").each(function() {
7997 var orbit = Foundation._activePlugins[$(this).attr("data-orbit")];
7998 orbit.timer[action]()
7999 })
8000}
8001
8002function bannerResize(all) {
8003 if (all == undefined) {
8004 var select = $(".max-height .is-active .orbit-image")
8005 } else {
8006 var select = $(".max-height .orbit-image")
8007 }
8008 var keepRatio = false;
8009 if ($(".orbit").hasClass("keepRatio")) {
8010 keepRatio = true
8011 }
8012 var maxHeightFlag = false;
8013 if ($(".orbit").hasClass("max-height")) {
8014 maxHeightFlag = true
8015 }
8016 var restPageHeight = $(window).innerHeight() - ($("#content").outerHeight(true) - $(".orbit").outerHeight(true));
8017 select.each(function() {
8018 var sibling = $($(this).next(".orbit-caption"));
8019 var parent = $($(this).parents(".orbit-slide"));
8020 var siblingHeight = sibling.outerHeight(true);
8021 var maxWidth = $(this).parents(".orbit").outerWidth(true);
8022 var maxHeight = restPageHeight - $(".orbit-bullets").outerHeight(true) - siblingHeight;
8023 if ($(this).attr("data-height") != undefined && $(this).attr("data-width") != undefined) {
8024 var height = parseInt($(this).attr("data-height"));
8025 var width = parseInt($(this).attr("data-width"))
8026 } else {
8027 if ($(this).is("img")) {
8028 var width = this.naturalWidth;
8029 var height = this.naturalHeight
8030 } else {
8031 var width = $(this).width();
8032 var height = $(this).height()
8033 }
8034 $(this).attr("data-height", height);
8035 $(this).attr("data-width", width)
8036 }
8037 var spaceRatio = maxWidth / maxHeight;
8038 var imageRatio = width / height;
8039 var ratio;
8040 if (imageRatio > spaceRatio) {
8041 ratio = maxWidth / width;
8042 width = maxWidth;
8043 height = height * ratio
8044 } else {
8045 ratio = maxHeight / height;
8046 height = maxHeight;
8047 width = width * ratio
8048 }
8049 if (keepRatio && Foundation.MediaQuery.atLeast("semi-small")) {
8050 parent.children(".orbit-image-wrapper").css({
8051 height: maxHeight + siblingHeight
8052 })
8053 }
8054 $(this).css("height", height);
8055 $(this).css("width", width);
8056 if (height <= maxHeight) {
8057 parent.css("max-height", maxHeight + siblingHeight);
8058 parent.height(maxHeight + siblingHeight);
8059 $(".max-height .orbit-container").height(maxHeight + siblingHeight)
8060 }
8061 });
8062 if ($(document).innerHeight() > $(window).innerHeight() + 30) {
8063 setTimeout(function() {
8064 bannerResize(true)
8065 }, 2 * global_delay)
8066 }
8067}
8068
8069function splitHash() {
8070 return window.location.hash.substr(1, window.location.hash.length).split("&")
8071}
8072
8073function addHash(hashes, toAdd) {
8074 flag = true;
8075 $(hashes).each(function(i, s) {
8076 if (s == toAdd) {
8077 flag = false;
8078 hashes = removeHash(hashes, false, toAdd)
8079 }
8080 });
8081 if (flag) {
8082 if (toAdd != "all") {
8083 hashes = removeHash(hashes, false, "all")
8084 } else {
8085 hashes = removeHash(hashes, true, "")
8086 }
8087 hashes.push(toAdd)
8088 }
8089 return hashes
8090}
8091
8092function removeHash(hashes, all, toRemove) {
8093 if (all) {
8094 return []
8095 } else {
8096 $(hashes).each(function(i, s) {
8097 if (s == toRemove) {
8098 hashes.splice(i, 1)
8099 }
8100 });
8101 return hashes
8102 }
8103}
8104
8105function updateHash(hashes) {
8106 hash = "#";
8107 $(".filter-buttons a.is-active").removeClass("is-active");
8108 if (hashes[0] == "all") {
8109 $(".filter-buttons a[href='#all']").addClass("is-active");
8110 $(".filter-container .filter-item").fadeIn(global_delay);
8111 hash = "#all&"
8112 } else {
8113 var c = "";
8114 $(hashes).each(function(i, s) {
8115 $(".filter-buttons a[href='#" + s + "']").addClass("is-active");
8116 c += ".filter-item." + s + ",";
8117 hash += s + "&"
8118 });
8119 c = c.slice(0, -1);
8120 $(".filter-container .filter-item:not(" + c + ")").fadeOut(global_delay);
8121 $(c).fadeIn(global_delay)
8122 }
8123 window.location.hash = hash.substr(0, hash.length - 1);
8124 updatePriority()
8125}
8126$(window).load(function() {
8127 $("[data-priority]").parent().each(function() {
8128 updatePriority(this)
8129 })
8130});
8131
8132function updatePriority() {
8133 if (!priorityWorking) {
8134 if (Foundation.MediaQuery.atLeast("semi-small")) {
8135 priorityWorking = true;
8136 $(".marked-priority").each(function() {
8137 var _this = this;
8138 clearPriority(_this);
8139 setTimeout(function() {
8140 generatePriority(_this);
8141 priorityWorking = false
8142 }, 1.5 * fade_delay)
8143 })
8144 } else {
8145 $(".marked-priority").each(function() {
8146 var _this = this;
8147 clearPriority(_this)
8148 })
8149 }
8150 }
8151}
8152
8153function clearPriority(p) {
8154 $(p).addClass("immidiately");
8155 $(p).children().css({
8156 position: "",
8157 width: "",
8158 height: "",
8159 left: "",
8160 top: ""
8161 });
8162 $(p).css("height", "");
8163 $(p).removeClass("immidiately")
8164}
8165
8166function generatePriority(p) {
8167 var parent = $(p);
8168 var children = parent.children(":visible");
8169 var columns = Math.round(parent.innerWidth() / children.first().innerWidth());
8170 var rows = Math.ceil(children.length / columns);
8171 var rowHeight = parent.innerHeight() / rows;
8172 var margin = 0;
8173 var matrix = Array();
8174 for (var r = 0; r < rows; r++) {
8175 matrix.push(Array())
8176 }
8177 children.filter("[data-priority]").each(function() {
8178 var priority = parseInt($(this).attr("data-priority"));
8179 if (priority > columns) {
8180 priority = columns;
8181 $(this).attr("data-priority", priority)
8182 }
8183 var position = generatePosition(columns, rows, priority);
8184 var flag = 50;
8185 var added = checkRows(matrix, position.row + priority - 1);
8186 while (flag != 0 && !checkEmptyCells(matrix, columns, position, priority)) {
8187 position = generatePosition(columns, rows, priority);
8188 added += checkRows(matrix, position.row + priority - 1);
8189 flag--;
8190 if (flag == 0 && priority > 1) {
8191 priority--;
8192 flag = 5;
8193 $(this).attr("data-priority", priority);
8194 if (priority == 1) {
8195 $(this).removeAttr("data-priority");
8196 matrix.splice(-1, added)
8197 }
8198 }
8199 }
8200 if (flag != 0 && priority != 1) {
8201 for (var r = position.row; r < position.row + priority; r++) {
8202 for (var c = position.column; c < position.column + priority; c++) {
8203 if (matrix[r][c] == undefined) {
8204 matrix[r][c] = $(this).index()
8205 }
8206 }
8207 }
8208 }
8209 });
8210 children.filter(":not([data-priority])").each(function() {
8211 for (var r = 0; r < matrix.length; r++) {
8212 for (var c = 0; c < columns; c++) {
8213 if (matrix[r][c] == undefined) {
8214 matrix[r][c] = $(this).index();
8215 return
8216 }
8217 }
8218 }
8219 matrix.push(Array());
8220 matrix[matrix.length - 1][0] = $(this).index()
8221 });
8222 var height = 100 / matrix.length;
8223 var width = 100 / columns;
8224 for (var r = 0; r < matrix.length; r++) {
8225 for (var c = 0; c < matrix[r].length; c++) {
8226 if (matrix[r][c] != undefined && matrix[r][c] != null) {
8227 addPosition(parent.children().get(matrix[r][c]), {
8228 column: c,
8229 row: r
8230 }, width, height, margin);
8231 removeFromMatrix(matrix, matrix[r][c])
8232 }
8233 }
8234 }
8235 parent.css("height", rowHeight * matrix.length)
8236}
8237
8238function generatePosition(columns, rows, priority) {
8239 return {
8240 column: Math.floor(Math.random() * (columns + 1 - priority)),
8241 row: Math.floor(Math.random() * (rows - (priority - 1)))
8242 }
8243}
8244
8245function checkRows(matrix, row) {
8246 var added = 0;
8247 while (matrix[row] == undefined) {
8248 matrix.push(Array());
8249 added++
8250 }
8251 return added
8252}
8253
8254function checkEmptyCells(matrix, columns, position, priority) {
8255 if (position.column + priority > columns) {
8256 return false
8257 }
8258 for (var r = position.row; r < position.row + priority; r++) {
8259 for (var c = position.column; c < position.column + priority; c++) {
8260 if (matrix[r][c] != undefined) {
8261 return false
8262 }
8263 }
8264 }
8265 return true
8266}
8267
8268function removeFromMatrix(matrix, id) {
8269 for (var r = 0; r < matrix.length; r++) {
8270 for (var c = 0; c < matrix[0].length; c++) {
8271 if (matrix[r][c] == id) {
8272 matrix[r][c] = null
8273 }
8274 }
8275 }
8276}
8277
8278function addPosition(el, position, width, height, margin) {
8279 var priority = parseInt($(el).attr("data-priority")) || 1;
8280 $(el).css({
8281 position: "absolute",
8282 left: position.column * width + margin + "%",
8283 top: position.row * height + margin + "%",
8284 width: width * priority - margin + "%",
8285 height: height * priority - margin + "%"
8286 })
8287}
8288var a2a_config = a2a_config || {};
8289a2a_config.vars = {
8290 vars: ["menu_type", "static_server", "linkmedia", "linkname", "linkurl", "linkname_escape", ["ssl", "http:" != document.location.protocol && "https://static.addtoany.com/menu"], "show_title", "onclick", "num_services", "hide_embeds", "prioritize", "exclude_services", "custom_services", ["templates", {}], "orientation", ["track_links", !1],
8291 ["track_links_key", ""], "awesm", "tracking_callback", "track_pub", "color_main", "color_bg", "color_border", "color_link_text", "color_link_text_hover", "color_arrow", "color_arrow_hover", ["localize", "", 1],
8292 ["add_services", !1, 1], "locale", "delay", "icon_color", "no_3p", "show_menu", "target"
8293 ],
8294 process: function() {
8295 for (var a, b, c, d, e, f = a2a_config.vars.vars, g = 0, h = "a2a_", i = f.length; g < i; g++)
8296 if ("string" == typeof f[g] ? (a = f[g], b = window[h + a], d = !1) : (a = f[g][0], b = window[h + a], c = f[g][1], d = !0, e = f[g][2]), "undefined" != typeof b && null != b) {
8297 if (a2a_config[a] = b, !e) try {
8298 delete window[h + a]
8299 } catch (j) {
8300 window[h + a] = null
8301 }
8302 } else d && !a2a_config[a] && (a2a_config[a] = c)
8303 }
8304}, a2a_config.vars.process(), a2a_config.static_server = a2a_config.static_server || "https://static.addtoany.com/menu";
8305var a2a = a2a || {
8306 total: 0,
8307 kit_services: [],
8308 icons_img_url: a2a_config.static_server + "/icons.36.png",
8309 head_tag: document.getElementsByTagName("head")[0],
8310 canonical_url: function() {
8311 if (!document.querySelector) return !1;
8312 var a, b, c = document.querySelector('meta[property="og:url"]');
8313 return c ? a = c.content : (b = document.querySelector('link[rel="canonical"]'), a = !!b && b.href), a
8314 }(),
8315 ieo: function() {
8316 for (var a = -1, b = document.createElement("b"); b.innerHTML = "\x3c!--[if gt IE " + ++a + "]>1<![endif]--\x3e", +b.innerHTML;);
8317 return a2a.ieo = function() {
8318 return a
8319 }, a
8320 },
8321 quirks: document.compatMode && "BackCompat" == document.compatMode ? 1 : null,
8322 has_touch: "ontouchend" in window,
8323 has_pointer: navigator.msPointerEnabled,
8324 fn_queue: [],
8325 dom: {
8326 isReady: !1,
8327 ready: function(a) {
8328 var b = function() {
8329 return document.body ? (a(), void(a2a.dom.isReady = !0)) : setTimeout(a2a.dom.ready(a))
8330 },
8331 c = function(a) {
8332 (document.addEventListener || "load" === a.type || "complete" === document.readyState) && (d(), b())
8333 },
8334 d = function() {
8335 document.addEventListener ? (document.removeEventListener("DOMContentLoaded", c, !1), window.removeEventListener("load", c, !1)) : (document.detachEvent("onreadystatechange", c), window.detachEvent("onload", c))
8336 };
8337 if ("complete" === document.readyState) b();
8338 else if (document.addEventListener) document.addEventListener("DOMContentLoaded", c, !1), window.addEventListener("load", c, !1);
8339 else {
8340 document.attachEvent("onreadystatechange", c), window.attachEvent("onload", c);
8341 var e = !1;
8342 try {
8343 e = null == window.frameElement && document.documentElement
8344 } catch (f) {}
8345 e && e.doScroll && ! function g() {
8346 if (!a2a.dom.isReady) {
8347 try {
8348 e.doScroll("left")
8349 } catch (a) {
8350 return setTimeout(g, 50)
8351 }
8352 d(), b()
8353 }
8354 }()
8355 }
8356 }
8357 },
8358 ready: function() {
8359 a2a.locale || (a2a.type = "page", a2a.cbs("ready"), a2a.ready = function() {})
8360 },
8361 init: function(a, b, c) {
8362 var d, e, f, g, h = a2a.c,
8363 b = b || {},
8364 i = {},
8365 j = null,
8366 k = {},
8367 l = location.href,
8368 m = function(a, b) {
8369 a2a.total++, a2a.n = a2a.total, a2a["n" + a2a.n] = a;
8370 var c, d, e = a.node = a2a.set_this_index(a.node),
8371 f = document.createElement("div"),
8372 g = a2a.getData(e)["a2a-media"],
8373 h = a2a.getData(e)["a2a-title"],
8374 i = a2a.getData(e)["a2a-url"];
8375 return e ? (a.linkname_escape && (d = a2a.getByClass("a2a_linkname_escape", e.parentNode)[0] || a2a.getByClass("a2a_linkname_escape", e.parentNode.parentNode)[0], d && (a.linkname = d.textContent || d.innerText)), a.linkmedia = b.linkmedia = g || a.linkmedia, a.linkname = b.linkname = h || a.linkname, a.linkurl = b.linkurl = i || a.linkurl, h && (a.linkname_implicit = !1), i && (a.linkurl_implicit = !1), "textContent" in document ? f.textContent = a.linkname : f.innerText = a.linkname, c = f.childNodes[0], c && (a.linkname = c.nodeValue), delete f, void(e.a2a_kit ? a2a.kit(a, b) : a2a.button(a))) : void(a2a.c.show_menu || a2a.total--)
8376 };
8377 a2a.make_once(a);
8378 for (var n in b) h[n] = b[n];
8379 for (var n in h) i[n] = h[n];
8380 if (e = h.target)
8381 if ("string" == typeof e) {
8382 if (f = e.substr(0, 1), g = e.substr(1), "." == f) return a2a.multi_init(a2a.HTMLcollToArray(a2a.getByClass(g, document)), a, b), void(h.target = !1);
8383 j = a2a.gEl(g), d = j.className, d.indexOf("a2a_kit") >= 0 && d.indexOf("a2a_target") < 0 && (j = null)
8384 } else j = h.target;
8385 a = h.menu_type ? "mail" : a, a && (a2a.type = a, h.vars.process()), k.type = a2a.type, k.node = j, k.linkmedia = h.linkmedia, k.linkname = h.linkname || document.title || location.href, k.linkurl = h.linkurl || location.href, k.linkname_escape = h.linkname_escape, k.linkname_implicit = !h.linkname_escape && (document.title || l) == k.linkname, k.linkurl_implicit = l == k.linkurl, k.orientation = h.orientation || !1, k.track_links = h.track_links || !1, k.track_links_key = h.track_links_key || "", k.track_pub = h.track_pub || !1, h.linkmedia = h.linkname = h.linkurl = h.onclick = h.linkname_escape = h.show_title = h.custom_services = h.exclude_services = h.orientation = h.num_services = h.track_pub = h.target = !1, "custom" == h.track_links && (h.track_links = !1, h.track_links_key = ""), a2a.last_type = a2a.type, window["a2a" + a2a.type + "_init"] = 1, a2a.locale && !c ? a2a.fn_queue.push(function(a, b) {
8386 return function() {
8387 m(a, b)
8388 }
8389 }(k, i)) : (m(k, i), h.menu_type = !1, a2a.init_show())
8390 },
8391 init_all: function(a) {
8392 var b = a2a.unindexed(function(b) {
8393 b.className.indexOf("a2a_follow") >= 0 ? a2a.init("feed") : a2a.init(a)
8394 }, !0);
8395 !b && a2a.gEl("a2a_menu_container") && a2a.init(a)
8396 },
8397 multi_init: function(a, b, c) {
8398 for (var d = 0, e = a.length; d < e; d++) c.target = a[d], a2a.init(b, c)
8399 },
8400 button: function(a) {
8401 var b = a.node,
8402 c = a.type,
8403 d = a2a.gEl("a2a" + c + "_dropdown"),
8404 e = "mousedown",
8405 f = "mouseup";
8406 b.getAttribute("onclick") && (b.getAttribute("onclick") + "").indexOf("a2a_") != -1 || b.getAttribute("onmouseover") && (b.getAttribute("onmouseover") + "").indexOf("a2a_") != -1 || (a2a.fast_click.make(b, function(a) {
8407 if (a2a.preventDefault(a), a2a.stopPropagation(a), "block" == d.style.display) {
8408 var e = a2a[c].time_open;
8409 a2a[c].onclick || e && "OK" == e ? a2a.toggle_dropdown("none", c) : (a2a[c].last_focus = document.activeElement, d.focus())
8410 } else a2a.show_menu(b), a2a[c].last_focus = document.activeElement, d.focus()
8411 }), a2a.has_touch ? (e = "touchstart", f = "touchend") : a2a.has_pointer && (e = "MSPointerDown", f = "MSPointerUp"), a2a.add_event(b, e, a2a.stopPropagation), a2a.add_event(b, f, function(a) {
8412 a2a.stopPropagation(a), a2a.touch_used = 1
8413 }), a2a[a2a.type].onclick || (a2a.c.delay ? b.onmouseover = function() {
8414 a2a[a2a.type].over_delay = setTimeout(function() {
8415 a2a.show_menu(b)
8416 }, a2a.c.delay)
8417 } : b.onmouseover = function() {
8418 a2a.show_menu(b)
8419 }, b.onmouseout = function() {
8420 a2a.onMouseOut_delay(), a2a[a2a.type].over_delay && clearTimeout(a2a[a2a.type].over_delay)
8421 })), "a" == b.tagName.toLowerCase() && "page" == a2a.type && (b.href = "https://www.addtoany.com/share#url=" + encodeURIComponent(a.linkurl) + "&title=" + encodeURIComponent(a.linkname).replace(/'/g, "%27"))
8422 },
8423 kit: function(a, b) {
8424 var c = a2a.type,
8425 d = {
8426 behance: {
8427 name: "Behance",
8428 icon: "behance",
8429 color: "007EFF",
8430 url: "https://www.behance.net/${id}"
8431 },
8432 facebook: {
8433 name: "Facebook",
8434 icon: "facebook",
8435 color: "3B5998",
8436 url: "https://www.facebook.com/${id}"
8437 },
8438 flickr: {
8439 name: "Flickr",
8440 icon: "flickr",
8441 color: "FF0084",
8442 url: "https://www.flickr.com/photos/${id}"
8443 },
8444 foursquare: {
8445 name: "Foursquare",
8446 icon: "foursquare",
8447 color: "F94877",
8448 url: "https://foursquare.com/${id}"
8449 },
8450 github: {
8451 name: "GitHub",
8452 icon: "github",
8453 color: "2A2A2A",
8454 url: "https://github.com/${id}"
8455 },
8456 google_plus: {
8457 name: "Google+",
8458 icon: "google_plus",
8459 color: "DD4B39",
8460 url: "https://plus.google.com/${id}"
8461 },
8462 instagram: {
8463 name: "Instagram",
8464 icon: "instagram",
8465 color: "E4405F",
8466 url: "https://www.instagram.com/${id}"
8467 },
8468 linkedin: {
8469 name: "LinkedIn",
8470 icon: "linkedin",
8471 color: "007BB5",
8472 url: "https://www.linkedin.com/in/${id}"
8473 },
8474 linkedin_company: {
8475 name: "LinkedIn",
8476 icon: "linkedin",
8477 color: "007BB5",
8478 url: "https://www.linkedin.com/company/${id}"
8479 },
8480 pinterest: {
8481 name: "Pinterest",
8482 icon: "pinterest",
8483 color: "BD081C",
8484 url: "https://www.pinterest.com/${id}"
8485 },
8486 snapchat: {
8487 name: "Snapchat",
8488 icon: "snapchat",
8489 color: "2A2A2A",
8490 url: "https://www.snapchat.com/add/${id}"
8491 },
8492 tumblr: {
8493 name: "Tumblr",
8494 icon: "tumblr",
8495 color: "35465C",
8496 url: "http://${id}.tumblr.com"
8497 },
8498 twitter: {
8499 name: "Twitter",
8500 icon: "twitter",
8501 color: "55ACEE",
8502 url: "https://twitter.com/${id}"
8503 },
8504 vimeo: {
8505 name: "Vimeo",
8506 icon: "vimeo",
8507 color: "1AB7EA",
8508 url: "https://vimeo.com/${id}"
8509 },
8510 youtube: {
8511 name: "YouTube",
8512 icon: "youtube",
8513 color: "CD201F",
8514 url: "https://www.youtube.com/user/${id}"
8515 },
8516 youtube_channel: {
8517 name: "YouTube Channel",
8518 icon: "youtube",
8519 color: "CD201F",
8520 url: "https://www.youtube.com/channel/${id}"
8521 }
8522 },
8523 e = function(a, b) {
8524 var c, e = i(a, {}),
8525 f = e["a2a-follow"],
8526 g = d[b];
8527 return f && g && (c = g.url.replace("${id}", f)), c || a.href
8528 },
8529 f = ["facebook_like", "twitter_tweet", "google_plusone", "google_plus_share", "pinterest_pin", "linkedin_share"],
8530 g = a2a.counters.avail,
8531 h = function(a, b) {
8532 if (a && !a2a.in_array(a, f))
8533 for (var d = 0, e = b ? a2a[c].services : a2a.services, g = e.length; d < g; d++)
8534 if (a == e[d][1]) return [e[d][0], e[d][2], e[d][3], e[d][4], e[d][5]];
8535 return !b && [a, a]
8536 },
8537 i = function(a, b) {
8538 for (var c, d = 0, e = a.attributes.length, f = b; d < e; d++) c = a.attributes[d], c.name && "data-" == c.name.substr(0, 5) && (f[c.name.substr(5)] = c.value);
8539 return f
8540 },
8541 j = function() {
8542 t = a.linkurl = a2a.getData(m)["a2a-url"] || t, v = a.linkname = a2a.getData(m)["a2a-title"] || v, w = a.linkmedia = a2a.getData(m)["a2a-media"] || w, a2a.linker(this)
8543 },
8544 k = function(b, c, d) {
8545 var e = {
8546 node: c,
8547 service: b,
8548 title: v,
8549 url: t
8550 },
8551 f = a2a.cbs("share", e);
8552 "undefined" != typeof f && (f.url && (a.linkurl = f.url, a.linkurl_implicit = !1), f.title && (a.linkname = f.title, a.linkname_implicit = !1), a2a.linker(c), f.stop && d && a2a.preventDefault(d))
8553 },
8554 l = a2a.c.templates,
8555 m = a.node,
8556 n = a2a.getData(m),
8557 o = m.a2a_follow,
8558 p = a2a.HTMLcollToArray(m.getElementsByTagName("a")),
8559 q = p.length,
8560 r = document.createElement("div"),
8561 s = encodeURIComponent,
8562 t = a.linkurl,
8563 u = s(a.linkurl).replace(/'/g, "%27"),
8564 v = a.linkname,
8565 w = (s(a.linkname).replace(/'/g, "%27"), a.linkmedia),
8566 x = (w ? s(a.linkmedia).replace(/'/g, "%27") : "", n["a2a-icon-color"] || a2a.c.icon_color),
8567 y = x ? x.split(",", 2) : x,
8568 z = y ? y[0] : y,
8569 A = y ? y[1] : y,
8570 B = m.className.match(/a2a_kit_size_([\w\.]+)(?:\s|$)/),
8571 C = B ? B[1] : "16",
8572 D = C + "px",
8573 E = "a2a_svg a2a_s__default a2a_s_",
8574 F = {},
8575 G = {},
8576 H = a.linkurl_implicit && a2a.canonical_url ? encodeURIComponent(a2a.canonical_url).replace(/'/g, "%27") : u,
8577 I = m.className.indexOf("a2a_vertical_style") >= 0;
8578 C && !isNaN(C) && (a2a.svg.load(), x && "unset" != x && a2a.svg.works() && (z && "unset" != z && (F.backgroundColor = z), A && "unset" != A.trim() && (A = A.trim())), m.style.lineHeight = G.height = G.lineHeight = D, G.width = 2 * C + "px", G.fontSize = "16px", I && (G.height = G.lineHeight = C / 2 + "px", G.fontSize = "10px", G.width = C + "px"), 32 != C && (F.backgroundSize = F.height = F.lineHeight = F.width = D, G.borderRadius = F.borderRadius = (.14 * C).toFixed() + "px", G.fontSize = (parseInt(G.height, 10) + (I ? 4 : 0)) / 2 + "px")), a2a.kit.facebook_like = function() {
8579 ea.href = t, ea.width = "90", ea.layout = "button_count", ea.ref = "addtoany", ea = i(O, ea), O.style.width = ea.width + "px";
8580 var a = function() {
8581 FB.init({
8582 appId: "0",
8583 status: !1,
8584 xfbml: !0,
8585 version: "v2.3"
8586 }), FB.Event.subscribe("edge.create", function(a, b) {
8587 a2a.GA.track("Facebook Like", "facebook_like", a, "pages", "AddToAny Share/Save Button"), k("Facebook Like", O)
8588 })
8589 },
8590 b = a2a.i18n();
8591 b = b ? b.replace(/-/g, "_") : "en_US", 2 == b.length && (b += "_" + b.toUpperCase());
8592 for (var c in ea) da += " data-" + c + '="' + ea[c] + '"';
8593 window.fbAsyncInit || (window.fbAsyncInit = a, K = document.createElement("span"), K.id = "fb-root", document.body.insertBefore(K, document.body.firstChild)), a2a.kit.facebook_like_script || ! function(a, c, d) {
8594 var e, f = a.getElementsByTagName(c)[0];
8595 a.getElementById(d) || (e = a.createElement(c), e.id = d, e.src = "//connect.facebook.net/" + b + "/sdk.js", f.parentNode.insertBefore(e, f))
8596 }(document, "script", "facebook-jssdk"), a2a.kit.facebook_like_script = 1, O.innerHTML = '<div class="fb-like"' + da + "></div>";
8597 try {
8598 FB.XFBML.parse(O)
8599 } catch (d) {}
8600 }, a2a.kit.twitter_tweet = function() {
8601 ea.url = t, ea.lang = a2a.i18n() || "en", ea.related = "AddToAny,micropat";
8602 var a = l.twitter,
8603 b = a ? a.lastIndexOf("@") : null;
8604 b && b !== -1 && (b++, b = a.substr(b).split(" ", 1), b = b[0].replace(/:/g, "").replace(/\//g, "").replace(/-/g, "").replace(/\./g, "").replace(/,/g, "").replace(/;/g, "").replace(/!/g, ""), ea.related = b + ",AddToAny"), ea = i(O, ea);
8605 var c = document.createElement("a");
8606 c.className = "twitter-share-button";
8607 for (var d in ea) c.setAttribute("data-" + d, ea[d]);
8608 O.appendChild(c), a2a.kit.twitter_tweet_script || ! function(a, b, c) {
8609 var d, e, f = a.getElementsByTagName(b)[0];
8610 a.getElementById(c) || (e = a.createElement(b), e.id = c, e.src = "//platform.twitter.com/widgets.js", f.parentNode.insertBefore(e, f), window.twttr = window.twttr || (d = {
8611 _e: [],
8612 ready: function(a) {
8613 d._e.push(a)
8614 }
8615 }))
8616 }(document, "script", "twitter-wjs"), a2a.kit.twitter_tweet_script = 1;
8617 try {
8618 twttr.ready(function(a) {
8619 a2a.twitter_bind || (a.events.bind("click", function(a) {
8620 if (a && "tweet" == a.region) {
8621 var b = function() {
8622 var b = a.target.src.split("#")[1] || "";
8623 if (b && b.indexOf("url=") > -1) {
8624 for (var c = {}, d = b.split("&"), e = d.length, f = 0; f < e; f++) {
8625 var g = d[f].split("=");
8626 c[g[0]] = g[1]
8627 }
8628 return c
8629 }
8630 return !1
8631 }();
8632 b && b.url && (a2a.GA.track("Twitter Tweet", "twitter_tweet", unescape(b.url), "pages", "AddToAny Share/Save Button"), k("Twitter Tweet", O))
8633 }
8634 }), a2a.twitter_bind = 1), a.widgets && a.widgets.load()
8635 })
8636 } catch (e) {}
8637 }, a2a.kit.pinterest_pin = function() {
8638 ea["pin-config"] = "beside", ea["pin-do"] = "buttonPin", ea.media = w, ea.url = t, ea = i(O, ea);
8639 var a = document.createElement("a");
8640 for (var b in ea) a.setAttribute("data-" + b, ea[b]);
8641 "beside" == ea["pin-config"] && "buttonPin" == ea["pin-do"] && (O.style.width = "76px"), a.href = "//www.pinterest.com/pin/create/button/?url=" + ea.url + (ea.media ? "&media=" + ea.media : "") + (ea.description ? "&description=" + encodeURIComponent(ea.description).replace(/'/g, "%27") : ""), a2a.add_event(O, "click", function() {
8642 a2a.GA.track("Pinterest Pin", "pinterest_pin", t, "pages", "AddToAny Share/Save Button"), k("Pinterest Pin", O)
8643 }), O.appendChild(a), a2a.kit.pinterest_pin_script || ! function(a) {
8644 var b = a.createElement("script"),
8645 c = a.getElementsByTagName("script")[0];
8646 b.type = "text/javascript", b.async = !0, b.src = "//assets.pinterest.com/js/pinit.js", c.parentNode.insertBefore(b, c)
8647 }(document), a2a.kit.pinterest_pin_script = 1
8648 }, a2a.kit.linkedin_share = function() {
8649 ea.counter = "right", ea.onsuccess = "a2a.kit.linkedin_share_event", ea.url = t, ea = i(O, ea);
8650 for (var a in ea) da += " data-" + a + '="' + ea[a] + '"';
8651 a2a.kit.linkedin_share_event = function() {
8652 a2a.GA.track("LinkedIn Share", "linkedin_share", t, "pages", "AddToAny Share/Save Button"), k("LinkedIn Share", O)
8653 }, a2a.kit.linkedin_share_script || ! function(a) {
8654 var b = a.createElement("script"),
8655 c = a.getElementsByTagName("script")[0];
8656 b.type = "text/javascript", b.async = !0, b.src = "//platform.linkedin.com/in.js", c.parentNode.insertBefore(b, c)
8657 }(document), a2a.kit.linkedin_share_script = 1, O.innerHTML = '<script type="IN/Share"' + da + "><\/script>"
8658 }, a2a.kit.google_plus = function() {
8659 window.google_plus_cb_a2a = function(a) {
8660 a.state && "off" == a.state || (a2a.GA.track("Google +1", "google_plusone", a.href, "pages", "AddToAny Share/Save Button"), k("Google +1", O))
8661 }, ea.href = t, ea.size = "medium", ea.annotation = "bubble", "google_plus_share" == T && (ea.action = "share"), ea = i(O, ea);
8662 var a = a2a.i18n() || "en-US";
8663 window.___gcfg = window.___gcfg || {
8664 lang: a
8665 };
8666 for (var b in ea) da += " data-" + b + '="' + ea[b] + '"';
8667 O.innerHTML = '<div class="g-plus' + ("share" == ea.action ? "" : "one") + '" data-callback="google_plus_cb_a2a"' + da + "></div>", a2a.kit.google_plus_script || (! function(a) {
8668 var b = a.createElement("script"),
8669 c = a.getElementsByTagName("script")[0];
8670 b.type = "text/javascript", b.async = !0, b.src = "https://apis.google.com/js/platform.js", c.parentNode.insertBefore(b, c)
8671 }(document), a2a.kit.google_plus_script = 1)
8672 }, a2a.kit.google_plusone = a2a.kit.google_plus_share = a2a.kit.google_plus;
8673 for (var J = 0; J < q; J++) {
8674 var K, L, M, N, O = p[J],
8675 P = O.className,
8676 Q = P.match(/a2a_button_([\w\.]+)(?:\s|$)/),
8677 R = P.indexOf("a2a_dd") >= 0,
8678 S = P.indexOf("a2a_counter") >= 0,
8679 T = !!Q && Q[1],
8680 U = O.childNodes,
8681 V = h(T),
8682 W = o && d[T] ? d[T].name : V[0],
8683 X = "_blank",
8684 Y = o && d[T] ? d[T].icon : V[1],
8685 Z = o && d[T] ? d[T].color : V[2] || "CAE0FF",
8686 $ = V[3] || {},
8687 _ = $.type,
8688 aa = V[4],
8689 ba = !1,
8690 ca = !1,
8691 da = "",
8692 ea = {};
8693 if (R ? (b.target = O, a2a.init(c, b, 1), T = "a2a", Z = "0166FF", Y = "a2a", ca = !!S && 1) : "feed" == T || "print" == T ? X = "" : S && T && a2a.in_array(T, g) ? ca = 1 : T && a2a.in_array(T, f) && (a2a.kit[T](), ba = 1), T && !ba) {
8694 if (R || (O.target = X, !o || !d[T] && h(T, !0) ? "feed" == T ? O.href = O.href || a.linkurl : (O.href = "/#" + T, a2a.add_event(O, "mousedown", j), a2a.add_event(O, "keydown", j), O.rel = "nofollow") : O.href = e(O, T), O.a2a = {}, O.a2a.customserviceuri = aa, O.a2a.stype = _, O.a2a.linkurl = a.linkurl, O.a2a.servicename = W, O.a2a.safename = T, $.src && (O.a2a.js_src = $.src), $.url && (O.a2a.url = $.url), $.pu && (O.a2a.popup = 1), $.media && (O.a2a.media = 1), o || a2a.add_event(O, "click", function(a, b, d, e, f) {
8695 return function(g) {
8696 var h = screen.height,
8697 i = 550,
8698 j = 450,
8699 l = "event=service_click&url=" + s(location.href) + "&title=" + s(document.title || "") + "&ev_service=" + s(a) + "&ev_service_type=kit&ev_menu_type=" + c + "&ev_url=" + s(d) + "&ev_title=" + s(e).replace(/'/g, "%27");
8700 k(b, f, g), f.a2a.popup && !a2a.defaultPrevented(g) && "javascript:" != f.href.substr(0, 11) && (a2a.preventDefault(g), window.open(f.href, "_blank", "toolbar=0,personalbar=0,resizable,scrollbars,status,width=550,height=450,top=" + (h > j ? Math.round(h / 2 - j / 2) : 40) + ",left=" + Math.round(screen.width / 2 - i / 2))), a2a.util_frame_post(c, l), a2a.GA.track(b, a, d, "pages", "AddToAny Share/Save Button")
8701 }
8702 }(T, W, t, v, O))), U.length) {
8703 for (var fa, ga = 0, ha = U.length; ga < ha; ga++)
8704 if (fa = U[ga].className, 1 == U[ga].nodeType && "a2a_label" != fa && (N = !0, "string" == typeof fa && fa.indexOf("a2a_count") >= 0)) {
8705 M = !0;
8706 break
8707 }
8708 if (!N) {
8709 K = document.createElement("span"), K.className = E + Y + " a2a_img_text", Z && (K.style.backgroundColor = "#" + Z), L = a2a.svg.get(Y, K, A), "pending" !== L && (K.innerHTML = L);
8710 for (var ia in F) K.style[ia] = F[ia];
8711 O.insertBefore(K, U[0])
8712 }
8713 } else {
8714 K = document.createElement("span"), K.className = E + Y, Z && (K.style.backgroundColor = "#" + Z), L = a2a.svg.get(Y, K, A), "pending" !== L && (K.innerHTML = L);
8715 for (var ia in F) K.style[ia] = F[ia];
8716 O.appendChild(K), K = document.createElement("span"), K.className = "a2a_label", K.innerHTML = W || ("feed" == c ? a2a.c.localize.Subscribe : a2a.c.localize.Share), O.appendChild(K)
8717 }
8718 if (I && C && C < 20 && (ca = !1), ca && !M) {
8719 K = document.createElement("span"), K.className = "a2a_count", K.a2a = {}, K.a2a.kit = m;
8720 for (var ia in G) K.style[ia] = G[ia];
8721 O.appendChild(K), R ? (a2a.counters.get("facebook", K, H), K.a2a.is_a2a_dd_counter = 1, m.a2a_dd_counter = K) : a2a.counters.get(T, K, H)
8722 }
8723 "a2a_dd" != P && a2a.kit_services.push(O)
8724 }
8725 }
8726 m.className.indexOf("a2a_default_style") >= 0 && (r.style.clear = "both", m.appendChild(r))
8727 },
8728 counters: {
8729 get: function(a, b, c) {
8730 var d, e, f = decodeURIComponent(c),
8731 g = a2a.counters[a],
8732 h = g.api,
8733 i = (g.cb, b.a2a.is_a2a_dd_counter);
8734 if (d = g[f] = g[f] || {}, "undefined" != typeof d.num) return void(i ? a2a.counters.sum(b, d.num, a) : a2a.counters.set(b, d.num, a));
8735 if (d.queued = d.queued || [], d.queued.push(b), g.n = g.n || 0, g.n++, g["cb" + g.n] = function(c) {
8736 var e = a2a.counters[a].cb(c, b);
8737 if ("undefined" != typeof e)
8738 for (var f = 0; f < d.queued.length; f++) queued_count_element = d.queued[f], d.num = e, queued_count_element.a2a.is_a2a_dd_counter ? a2a.counters.sum(queued_count_element, e, a) : a2a.counters.set(queued_count_element, e, a)
8739 }, "linkedin" == a) {
8740 var j = "abcdefghijklmnopqrstuvwxyz".charAt(g.n - 1),
8741 k = "=linkedinTempCounterCallbacks.cb" + j;
8742 window.linkedinTempCounterCallbacks = window.linkedinTempCounterCallbacks || {}, window.linkedinTempCounterCallbacks["cb" + j] = g["cb" + g.n]
8743 } else var k = "=a2a.counters." + a + ".cb" + g.n;
8744 1 == d.queued.length && (e = h[0] + c + (h[1] || "&callback") + k, a2a.dom.ready(function() {
8745 a2a.loadExtScript(e)
8746 }))
8747 },
8748 set: function(a, b, c) {
8749 a.innerHTML = "<span>" + a2a.counters.format(b) + "</span>", "a2a" != c && a2a.counters.sum(a, b, c)
8750 },
8751 sum: function(a, b, c) {
8752 var d = a.a2a.kit,
8753 e = d.a2a_counts_sum || 0,
8754 f = d.a2a_counts_summed;
8755 "a2a" == c || f && f.indexOf(c) != -1 || (e = d.a2a_counts_sum = e + b, f = d.a2a_counts_summed = f || [], f.push(c)), d.a2a_dd_counter && a2a.counters.set(d.a2a_dd_counter, e, "a2a")
8756 },
8757 format: function(a) {
8758 var b = 1e6,
8759 c = 1e3;
8760 return a > 999 && (a < b ? a > 1e4 ? a = (a / c).toFixed() + "k" : (a += "", a = a.charAt(0) + "," + a.substring(1)) : a = a < 1e9 ? (a / b).toFixed(a % b > 94999) + "M" : "1B+"), a
8761 },
8762 avail: ["facebook", "linkedin", "pinterest", "reddit", "tumblr"],
8763 facebook: {
8764 api: ["https://graph.facebook.com/?id=", "&callback"],
8765 cb: function(a, b) {
8766 return a && a.share && !isNaN(a.share.share_count) ? a.share.share_count : 0
8767 }
8768 },
8769 linkedin: {
8770 api: ["https://www.linkedin.com/countserv/count/share?url="],
8771 cb: function(a, b) {
8772 if (a && !isNaN(a.count)) return a.count
8773 }
8774 },
8775 pinterest: {
8776 api: ["https://widgets.pinterest.com/v1/urls/count.json?url="],
8777 cb: function(a, b) {
8778 if (a && !isNaN(a.count)) return a.count
8779 }
8780 },
8781 reddit: {
8782 api: ["https://www.reddit.com/api/info.json?url=", "&jsonp"],
8783 cb: function(a, b) {
8784 var c = a.data;
8785 if (a && c && c.children) {
8786 for (var d, e = 0, f = [], g = c.children; e < g.length; e++) d = g[e].data, d && !isNaN(d.ups) && f.push(d.ups);
8787 if (f.length > 0) return Math.max.apply(null, f)
8788 }
8789 }
8790 },
8791 tumblr: {
8792 api: ["https://api.tumblr.com/v2/share/stats?url="],
8793 cb: function(a, b) {
8794 if (a && a.response && !isNaN(a.response.note_count)) return a.response.note_count
8795 }
8796 },
8797 twitter: {
8798 api: ["https://cdn.api.twitter.com/1/urls/count.json?url="],
8799 cb: function(a, b) {
8800 if (a && !isNaN(a.count)) return a.count
8801 }
8802 }
8803 },
8804 init_show: function() {
8805 var a = a2a_config,
8806 b = a2a[a2a.type],
8807 c = a2a.show_menu;
8808 a.bookmarklet && (b.no_hide = 1, c()), a.show_menu && (b.no_hide = 1, c(!1, a.show_menu))
8809 },
8810 unindexed: function(a, b) {
8811 function c(b) {
8812 for (var c, d, e = 0, f = b.length; e < f; e++)
8813 if (c = b[e], ("undefined" == typeof c.a2a_index || "" === c.a2a_index) && c.className.indexOf("a2a_target") < 0 && c.parentNode.className.indexOf("a2a_kit") < 0 && (d = a(c)), d) return d;
8814 return null
8815 }
8816 return b ? c(a2a.getByClass("a2a_kit", document)) || c(a2a.HTMLcollToArray(document.getElementsByName("a2a_dd")).concat(a2a.getByClass("a2a_dd", document))) : void c(a2a.getByClass("a2a_kit", document).concat(a2a.getByClass("a2a_dd", document), a2a.HTMLcollToArray(document.getElementsByName("a2a_dd"))))
8817 },
8818 set_this_index: function(a) {
8819 function b(a) {
8820 return a.className.indexOf("a2a_kit") >= 0 && (a.a2a_kit = 1, void(a.className.indexOf("a2a_follow") >= 0 && (a.a2a_follow = 1)))
8821 }
8822 var c = a2a.n;
8823 return a ? (a.a2a_index = c, b(a), a) : a2a.unindexed(function(a) {
8824 return a.a2a_index = c, b(a), a
8825 }, !0)
8826 },
8827 gEl: function(a) {
8828 return document.getElementById(a)
8829 },
8830 getByClass: function(a, b, c) {
8831 return document.getElementsByClassName && /\{\s*\[native code\]\s*\}/.test("" + document.getElementsByClassName) ? a2a.getByClass = function(a, b, c) {
8832 b = b || a2a.gEl("a2a" + a2a.type + "_dropdown");
8833 for (var d, e = b.getElementsByClassName(a), f = c ? new RegExp("\\b" + c + "\\b", "i") : null, g = [], h = 0, i = e.length; h < i; h += 1) d = e[h], f && !f.test(d.nodeName) || g.push(d);
8834 return g
8835 } : document.evaluate ? a2a.getByClass = function(a, b, c) {
8836 c = c || "*", b = b || a2a.gEl("a2a" + a2a.type + "_dropdown");
8837 for (var d, e, f = a.split(" "), g = "", h = "http://www.w3.org/1999/xhtml", i = document.documentElement.namespaceURI === h ? h : null, j = [], k = 0, l = f.length; k < l; k += 1) g += "[contains(concat(' ',@class,' '), ' " + f[k] + " ')]";
8838 try {
8839 d = document.evaluate(".//" + c + g, b, i, 0, null)
8840 } catch (m) {
8841 d = document.evaluate(".//" + c + g, b, null, 0, null)
8842 }
8843 for (; e = d.iterateNext();) j.push(e);
8844 return j
8845 } : a2a.getByClass = function(a, b, c) {
8846 c = c || "*", b = b || a2a.gEl("a2a" + a2a.type + "_dropdown");
8847 for (var d, e, f = a.split(" "), g = [], h = "*" === c && b.all ? b.all : b.getElementsByTagName(c), i = [], j = 0, k = f.length; j < k; j += 1) g.push(new RegExp("(^|\\s)" + f[j] + "(\\s|$)"));
8848 for (var l = 0, m = h.length; l < m; l += 1) {
8849 d = h[l], e = !1;
8850 for (var n = 0, o = g.length; n < o && (e = g[n].test(d.className), e); n += 1);
8851 e && i.push(d)
8852 }
8853 return i
8854 }, a2a.getByClass(a, b, c)
8855 },
8856 HTMLcollToArray: function(a) {
8857 for (var b = [], c = a.length, d = 0; d < c; d++) b[b.length] = a[d];
8858 return b
8859 },
8860 add_event: function(a, b, c, d) {
8861 if (a.addEventListener) return a.addEventListener(b, c, d), {
8862 destroy: function() {
8863 a.removeEventListener(b, c, d)
8864 }
8865 };
8866 var e = function() {
8867 c.call(a, window.event)
8868 };
8869 return a.attachEvent("on" + b, e), {
8870 destroy: function() {
8871 a.detachEvent("on" + b, e)
8872 }
8873 }
8874 },
8875 fast_click: {
8876 make: function(a, b, c) {
8877 this.init(), this.make = function(a, b, c) {
8878 new this.FastButton(a, b, c)
8879 }, this.make(a, b, c)
8880 },
8881 init: function() {
8882 function a(a, b, c, d) {
8883 var e = a.attachEvent ? function(a) {
8884 c.handleEvent(window.event, c)
8885 } : c;
8886 return a2a.add_event(a, b, e, d)
8887 }
8888 this.FastButton = function(b, c, d) {
8889 this.events = [], this.touchEvents = [], this.element = b, this.handler = c, this.useCapture = d, a2a.has_touch ? this.events.push(a(b, "touchstart", this, this.useCapture)) : a2a.has_pointer && (b.style.msTouchAction = "manipulation"), this.events.push(a(b, "click", this, this.useCapture))
8890 }, this.FastButton.prototype.destroy = function() {
8891 for (var a = this.events.length - 1; a >= 0; a -= 1) this.events[a].destroy();
8892 this.events = this.touchEvents = this.element = this.handler = this.fast_click = null
8893 }, this.FastButton.prototype.handleEvent = function(a) {
8894 switch (a.type) {
8895 case "touchstart":
8896 this.onTouchStart(a);
8897 break;
8898 case "touchmove":
8899 this.onTouchMove(a);
8900 break;
8901 case "touchend":
8902 this.onClick(a);
8903 break;
8904 case "click":
8905 this.onClick(a)
8906 }
8907 }, this.FastButton.prototype.onTouchStart = function(b) {
8908 a2a.stopPropagation(b), this.touchEvents.push(a(this.element, "touchend", this, this.useCapture)), this.touchEvents.push(a(document.body, "touchmove", this, this.useCapture)), this.startX = b.touches[0].clientX, this.startY = b.touches[0].clientY
8909 }, this.FastButton.prototype.onTouchMove = function(a) {
8910 (Math.abs(a.touches[0].clientX - this.startX) > 10 || Math.abs(a.touches[0].clientY - this.startY) > 10) && this.reset()
8911 }, this.FastButton.prototype.onClick = function(a) {
8912 a2a.stopPropagation(a), this.reset();
8913 var b = this.handler.call(this.element, a);
8914 return "touchend" == a.type && a2a.fast_click.clickbuster.preventGhostClick(this.startX, this.startY), b
8915 }, this.FastButton.prototype.reset = function() {
8916 for (var a = this.touchEvents.length - 1; a >= 0; a -= 1) this.touchEvents[a].destroy();
8917 this.touchEvents = []
8918 }, this.clickbuster = {
8919 coordinates: [],
8920 preventGhostClick: function(a, b) {
8921 this.coordinates.push(a, b), window.setTimeout(this.pop2, 2500)
8922 },
8923 pop2: function() {
8924 a2a.fast_click.clickbuster.coordinates.splice(0, 2)
8925 },
8926 onClick: function(a) {
8927 for (var b, c, d = 0, e = a2a.fast_click.clickbuster; d < e.coordinates.length; d += 2) b = e.coordinates[d], c = e.coordinates[d + 1], Math.abs(a.clientX - b) < 25 && Math.abs(a.clientY - c) < 25 && (a2a.stopPropagation(a), a2a.preventDefault(a))
8928 }
8929 }, a2a.has_touch && a2a.add_event(document, "click", this.clickbuster.onClick, !0)
8930 }
8931 },
8932 stopPropagation: function(a) {
8933 a || (a = window.event), a.cancelBubble = !0, a.stopPropagation && a.stopPropagation()
8934 },
8935 preventDefault: function(a) {
8936 a.preventDefault ? a.preventDefault() : a.returnValue = !1
8937 },
8938 defaultPrevented: function(a) {
8939 return !!(a.defaultPrevented || a.returnValue === !1 || "undefined" == typeof a.defaultPrevented && a.getPreventDefault && a.getPreventDefault())
8940 },
8941 onLoad: function(a) {
8942 var b = window.onload;
8943 "function" != typeof window.onload ? window.onload = a : window.onload = function() {
8944 b && b(), a()
8945 }
8946 },
8947 in_array: function(a, b, c, d, e) {
8948 if ("object" == typeof b) {
8949 a = a.toLowerCase();
8950 for (var f, g = b.length, h = 0; h < g; h++)
8951 if (f = d ? b[h][d] : b[h], f = e ? f[e] : f, c) {
8952 if (a == f.toLowerCase()) return b[h]
8953 } else if (a.indexOf(f.toLowerCase()) != -1 && "" !== f) return b[h]
8954 }
8955 return !1
8956 },
8957 serialize: function(a, b) {
8958 var c = [];
8959 for (var d in a)
8960 if (a.hasOwnProperty(d)) {
8961 var e = b ? b + "[" + d + "]" : d,
8962 f = a[d];
8963 c.push("object" == typeof f ? a2a.serialize(f, e) : encodeURIComponent(e) + "=" + encodeURIComponent(f))
8964 }
8965 return c.join("&")
8966 },
8967 onMouseOut_delay: function() {
8968 var a = a2a.type,
8969 b = a2a.gEl("a2a" + a + "_dropdown").style.display;
8970 "none" == b || "" == b || a2a[a].find_focused || a2a[a].service_focused || a2a.touch_used || (a2a[a].out_delay = setTimeout(function() {
8971 a2a.toggle_dropdown("none", a), a2a[a].out_delay = null
8972 }, 501))
8973 },
8974 onMouseOver_stay: function() {
8975 a2a[a2a.type].out_delay && clearTimeout(a2a[a2a.type].out_delay)
8976 },
8977 toggle_dropdown: function(a, b) {
8978 if ("none" != a || !a2a[b].no_hide) {
8979 var c, d = a2a.gEl,
8980 e = d("a2a" + b + "_dropdown"),
8981 f = d("a2a" + b + "_shim"),
8982 g = "mousedown",
8983 h = "mouseup",
8984 i = (document.activeElement, a2a.show_menu.key_listener);
8985 e.style.display = a, f && "none" == a2a.getStyle(d("a2a" + b + "_full"), "display") && (f.style.display = a), a2a.onMouseOver_stay(), "none" == a ? (window.addEventListener ? (a2a.has_touch ? (g = "touchstart", h = "touchend") : a2a.has_pointer && (g = "MSPointerDown", h = "MSPointerUp"), document.removeEventListener(g, a2a.doc_mousedown_check_scroll, !1), document.removeEventListener(h, a2a[b].doc_mouseup_toggle_dropdown, !1), a2a.touch_used = null) : (c = document.detachEvent, c("on" + g, a2a.doc_mousedown_check_scroll), c("on" + h, a2a[b].doc_mouseup_toggle_dropdown)), delete a2a[b].doc_mouseup_toggle_dropdown, i && i[b] && i[b].destroy()) : a2a[b].onclick || (a2a[b].time_open = setTimeout(function() {
8986 a2a[b].time_open = "OK"
8987 }, 501))
8988 }
8989 },
8990 getData: function(a) {
8991 if (!a) return {};
8992 for (var b, c = 0, d = a.attributes.length, e = {}; c < d; c++) b = a.attributes[c], b.name && "data-" == b.name.substr(0, 5) && (e[b.name.substr(5)] = b.value);
8993 return e
8994 },
8995 getStyle: function(a, b) {
8996 return a.currentStyle ? a.currentStyle[b.replace(/-(\w)/gi, function(a, b) {
8997 return b.toUpperCase()
8998 })] : window.getComputedStyle(a, null).getPropertyValue(b)
8999 },
9000 getPos: function(a) {
9001 var b, c = Math.round;
9002 return "undefined" == typeof a.getBoundingClientRect ? a2a.getPosOld(a) : (b = a.getBoundingClientRect(), {
9003 left: c(b.left + a2a.getScrollDocDims("w")),
9004 top: c(b.top + a2a.getScrollDocDims("h"))
9005 })
9006 },
9007 getPosOld: function(a) {
9008 var b = 0,
9009 c = 0;
9010 do {
9011 b += a.offsetLeft || 0, c += a.offsetTop || 0, a = a.offsetParent
9012 } while (a);
9013 return {
9014 left: b,
9015 top: c
9016 }
9017 },
9018 getDocDims: function(a) {
9019 var b = 0,
9020 c = 0;
9021 return "number" == typeof window.innerWidth ? (b = window.innerWidth, c = window.innerHeight) : document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight) ? (b = document.documentElement.clientWidth, c = document.documentElement.clientHeight) : document.body && (document.body.clientWidth || document.body.clientHeight) && (b = document.body.clientWidth, c = document.body.clientHeight), "w" == a ? b : c
9022 },
9023 getScrollDocDims: function(a) {
9024 var b = 0,
9025 c = 0;
9026 return "number" == typeof window.pageYOffset ? (b = window.pageXOffset, c = window.pageYOffset) : document.body && (document.body.scrollLeft || document.body.scrollTop) ? (b = document.body.scrollLeft, c = document.body.scrollTop) : document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop) && (b = document.documentElement.scrollLeft, c = document.documentElement.scrollTop), "w" == a ? b : c
9027 },
9028 show_more_less: function(a) {
9029 a2a.onMouseOver_stay();
9030 var b = a2a.type,
9031 c = "a2a" + b,
9032 d = a2a.gEl;
9033 d(c + "_show_more_less");
9034 if (a2a.show_full(), a2a.embeds_fix(!0), 0 == a) return !1
9035 },
9036 focus_find: function() {
9037 var a = a2a.gEl("a2a" + a2a.type + "_find");
9038 "none" != a.parentNode.style.display && a.focus()
9039 },
9040 default_services: function(a) {
9041 for (var b = a || a2a.type, c = a2a[b].main_services_col_1, d = c.length, e = 0; e < d; e++) c[e].style.display = ""
9042 },
9043 do_find: function() {
9044 var a, b = a2a.type,
9045 c = a2a[b].main_services,
9046 d = c.length,
9047 e = a2a.gEl("a2a" + b + "_find").value,
9048 f = a2a.in_array;
9049 if ("" !== e) {
9050 a = e.split(" ");
9051 for (var g, h = 0; h < d; h++) g = c[h].a2a.serviceNameLowerCase, f(g, a, !1) ? c[h].style.display = "" : c[h].style.display = "none"
9052 } else a2a.default_services()
9053 },
9054 selection: function() {
9055 var a, b = document.getElementsByTagName("meta"),
9056 c = b.length;
9057 if (window.getSelection) a = window.getSelection();
9058 else if (document.selection) {
9059 try {
9060 a = document.selection.createRange()
9061 } catch (d) {
9062 a = ""
9063 }
9064 a = a.text ? a.text : ""
9065 }
9066 if (a && "" != a) return a;
9067 if (a2a["n" + a2a.n].linkurl == location.href)
9068 for (var e, f, g = 0; g < c; g++)
9069 if (e = b[g].getAttribute("name"), e && "description" == e.toLowerCase()) {
9070 f = b[g].getAttribute("content");
9071 break
9072 }
9073 return f ? f.substring(0, 1200) : ""
9074 },
9075 collections: function(a) {
9076 var b = a2a.gEl,
9077 c = a2a[a],
9078 d = "a2a" + a;
9079 c.main_services_col_1 = a2a.getByClass("a2a_i", b(d + "_full_services"), "a"), c.main_services = c.main_services_col_1, c.email_services = a2a.getByClass("a2a_i", b(d + "_2_col1", "a")), c.all_services = c.main_services.concat(c.email_services)
9080 },
9081 cbs: function(a, b) {
9082 var c = a2a.c.callbacks || [],
9083 d = a2a.c.tracking_callback,
9084 e = {};
9085 d && (d[a] ? c.push(d) : d[0] == a ? (e[a] = d[1], c.push(e)) : "function" == typeof d && (e[a] = d, c.push(e)), a2a.c.tracking_callback = null);
9086 for (var f, g = 0, h = c.length; g < h; g++)
9087 if (f = c[g][a], "function" == typeof f && (returned = f(b), "ready" == a && (f = null), "undefined" != typeof returned)) return returned
9088 },
9089 linker: function(a) {
9090 var b, c = location.href,
9091 d = document.title || c,
9092 e = a2a["n" + (a.parentNode.a2a_index || a2a.n)],
9093 f = e.type,
9094 g = e.linkurl_implicit && c != e.linkurl ? c : e.linkurl,
9095 h = encodeURIComponent(g).replace(/'/g, "%27"),
9096 i = e.linkname_implicit && d != e.linkname ? d : e.linkname,
9097 j = encodeURIComponent(i).replace(/'/g, "%27"),
9098 k = e.linkmedia,
9099 l = !!k && encodeURIComponent(k).replace(/'/g, "%27"),
9100 m = encodeURIComponent(a2a.selection()).replace(/'/g, "%27"),
9101 n = !e.track_links || "page" != f && "mail" != f ? "" : "&linktrack=" + e.track_links + "&linktrackkey=" + encodeURIComponent(e.track_links_key),
9102 o = a.a2a.customserviceuri || !1,
9103 p = a.a2a.safename,
9104 q = a.a2a.stype,
9105 r = a.a2a.js_src,
9106 s = a.a2a.url,
9107 t = a.a2a.media,
9108 u = a2a.c.templates,
9109 v = a2a.c.ssl ? "s" : "";
9110 return t && l || (q && "js" == q && r ? (a.target = "", b = "javascript:" == r.substr(0, 11) ? r.replace("${link}", g) : 'javascript:a2a.loadExtScript("' + r + '")') : s && ("email" != p || "email" == p && a2a.has_touch) && !u[p] && !n ? (a.target = "", b = s.replace("${link}", h).replace("${link_noenc}", g).replace("${link_nohttp}", g.replace(/^https?:\/\//, "")).replace("${title}", j)) : o && "undefined" != o && (b = o.replace(/A2A_LINKNAME_ENC/, j).replace(/A2A_LINKURL_ENC/, h).replace(/A2A_LINKNOTE_ENC/, m))), a.href = b || "http" + v + "://www.addtoany.com/add_to/" + p + "?linkurl=" + h + "&linkname=" + j + (l ? "&linkmedia=" + l : "") + n + (a2a.c.awesm ? "&linktrack_parent=" + a2a.c.awesm : "") + ("twitter" == p && u[p] ? "&template=" + encodeURIComponent(u[p]) : "") + (("email" == p || q && "email" == q) && u.email ? "&" + a2a.serialize({
9111 template: u.email
9112 }) : "") + ("feed" == f ? "&type=feed" : "") + "&linknote=" + m, !0
9113 },
9114 show_full: function() {
9115 var a = a2a.type,
9116 b = "a2a" + a,
9117 c = a2a.gEl,
9118 d = a2a.getByClass,
9119 e = c(b + "_find"),
9120 f = c(b + "_overlay"),
9121 g = c(b + "_shim"),
9122 h = c(b + "_full"),
9123 i = d("a2a_full_header", h)[0],
9124 j = c(b + "_full_services"),
9125 k = d("a2a_full_footer", h)[0];
9126 h.classList && a2a.getStyle(f, "transition-duration") && (h.classList.add("a2a_starting"), f.classList.add("a2a_starting")), h.style.display = f.style.display = "block", g && (g.style.display = "block"), h.classList && setTimeout(function() {
9127 h.classList.remove("a2a_starting"), f.classList.remove("a2a_starting")
9128 }, 1), j.style.cssText = "height:calc(10px)", j.style.height.length && (j.style.height = "calc(100% - " + (i.offsetHeight + k.offsetHeight) + "px)"), h.focus(), a2a.show_full.key_listener = a2a.add_event(document, "keydown", function(b) {
9129 var b = b || window.event,
9130 c = b.which || b.keyCode,
9131 d = document.activeElement;
9132 27 == c && e != d ? a2a.hide_full(a) : c > 40 && c < 91 && e != d && e.focus()
9133 })
9134 },
9135 hide_full: function(a) {
9136 function b() {
9137 f.style.display = e.style.display = c(d + "_modal").style.display = "none", shim = c(d + "_shim"), shim && ("none" == a2a.getStyle(c(d + "_dropdown"), "display") ? shim.style.display = "none" : (a2a.embeds_fix(), c(d + "_show_more_less").focus())), a2a.show_full.key_listener.destroy(), setTimeout(function() {
9138 delete a2a.show_full.key_listener
9139 }, 1), f.addEventListener && f.removeEventListener("transitionend", b, !1)
9140 }
9141 var c = a2a.gEl,
9142 d = "a2a" + a,
9143 e = c(d + "_full"),
9144 f = c(d + "_overlay");
9145 e.classList && a2a.getStyle(f, "transition-duration") ? (f.addEventListener("transitionend", b, !1), e.classList.add("a2a_starting"), f.classList.add("a2a_starting")) : b()
9146 },
9147 show_menu: function(a, b) {
9148 a ? a2a.n = a.a2a_index : (a2a.n = a2a.total, a2a[a2a.type].no_hide = 1);
9149 var c = a2a["n" + a2a.n],
9150 d = a2a.type = c.type,
9151 e = "a2a" + d,
9152 f = a2a.gEl(e + "_dropdown"),
9153 g = "mousedown",
9154 h = "mouseup";
9155 a2a.gEl(e + "_title").value = c.linkname, a2a.toggle_dropdown("block", d);
9156 var i, j, k, l, m = [f.clientWidth, f.clientHeight],
9157 n = a2a.getDocDims("w"),
9158 o = a2a.getDocDims("h"),
9159 p = a2a.getScrollDocDims("w"),
9160 q = a2a.getScrollDocDims("h");
9161 a ? (i = a.getElementsByTagName("img")[0], i ? (j = a2a.getPos(i), k = i.clientWidth, l = i.clientHeight) : (j = a2a.getPos(a), k = a.offsetWidth, l = a.offsetHeight), j.left - p + m[0] + k > n && (j.left = j.left - m[0] + k - 8), ("up" == c.orientation || "down" != c.orientation && j.top - q + m[1] + l > o && j.top > m[1]) && (j.top = j.top - m[1] - l), f.style.left = (j.left < 0 ? 0 : j.left) + 2 + "px", f.style.top = j.top + l + "px", a2a.embeds_fix()) : (b || (b = {}), f.style.position = b.position || "absolute", f.style.left = b.left || n / 2 - m[0] / 2 + "px", f.style.top = b.top || o / 2 - m[1] / 2 + "px"), a2a[d].doc_mouseup_toggle_dropdown || a2a[d].no_hide || (a2a.doc_mousedown_check_scroll = function() {
9162 a2a.last_scroll_pos = a2a.getScrollDocDims("h")
9163 }, a2a[d].doc_mouseup_toggle_dropdown = function(a) {
9164 return function() {
9165 a2a.last_scroll_pos == a2a.getScrollDocDims("h") && (a2a[d].last_focus && a2a[d].last_focus.focus(), a2a.toggle_dropdown("none", a))
9166 }
9167 }(d), window.addEventListener ? (a2a.has_touch ? (g = "touchstart", h = "touchend") : a2a.has_pointer && (g = "MSPointerDown", h = "MSPointerUp"), document.addEventListener(g, a2a.doc_mousedown_check_scroll, !1), document.addEventListener(h, a2a[d].doc_mouseup_toggle_dropdown, !1)) : (document.attachEvent("on" + g, a2a.doc_mousedown_check_scroll), document.attachEvent("on" + h, a2a[d].doc_mouseup_toggle_dropdown))), a2a.show_menu.key_listener = a2a.show_menu.key_listener || {}, a2a.show_menu.key_listener[d] = a2a.add_event(document, "keydown", function(a) {
9168 var a = a || window.event,
9169 b = a.which || a.keyCode;
9170 27 != b || a2a.show_full.key_listener || a2a.toggle_dropdown("none", d)
9171 }), a2a.svg.load();
9172 var r = encodeURIComponent,
9173 s = "event=menu_show&url=" + r(location.href) + "&title=" + r(document.title || "") + "&ev_menu_type=" + d;
9174 a2a.util_frame_post(d, s)
9175 },
9176 embeds_fix: function(a) {
9177 var b, c, d, e, f, g = a2a.gEl,
9178 h = a2a.type,
9179 i = "a2a" + h,
9180 j = g(i + "_shim");
9181 j || (j = document.createElement("iframe"), j.className = "a2a_shim", j.id = i + "_shim", j.title = "AddToAny Shim", j.setAttribute("frameBorder", "0"), j.setAttribute("src", 'javascript:"";'), j.tabIndex = -1, document.body.appendChild(j)), a ? (j.style.left = j.style.top = "0", j.style.width = "", j.style.height = "") : (b = g(i + "_dropdown"), c = parseInt(b.style.left), d = parseInt(b.style.top), e = b.clientWidth || b.offsetWidth, f = b.clientHeight || b.offsetHeight, j.style.left = c + "px", j.style.top = d + "px", j.style.width = e + "px", j.style.height = f + "px")
9182 },
9183 bmBrowser: function(a) {
9184 var b = a2a.c.localize.Bookmark,
9185 c = a2a["n" + a2a.n];
9186 if (document.all ? 1 == a ? b = a2a.c.localize.AddToYourFavorites : window.external.AddFavorite(c.linkurl, c.linkname) : 1 != a && (a2a.gEl("a2apage_note_BROWSER").innerHTML = '<div class="a2a_note_note">' + a2a.c.localize.BookmarkInstructions + "</div>"), 1 == a) return b
9187 },
9188 copyLink: function(a) {
9189 var b = "page",
9190 c = "a2a" + b,
9191 d = a2a.gEl,
9192 e = (a2a.getByClass, d(c + "_overlay")),
9193 f = (d(c + "_shim"), d(c + "_full")),
9194 g = d(c + "_modal"),
9195 h = d("a2a_copy_link_copied"),
9196 i = d("a2a_copy_link_text");
9197 a2a.copyLink.full_shown = "none" != a2a.getStyle(f, "display"), a2a.copyLink.clickListen || (a2a.add_event(i, "click", function(a) {
9198 i.setSelectionRange ? i.setSelectionRange(0, i.value.length) : i.select(), document.execCommand && document.execCommand("copy") && (h.style.display = "block", setTimeout(function() {
9199 g.style.display = h.style.display = "none", a2a.copyLink.full_shown ? f.style.display = "block" : a2a.hide_full(b)
9200 }, 700))
9201 }), a2a.copyLink.clickListen = 1), a2a.type = b, "none" == a2a.getStyle(e, "display") && a2a.show_full(), f.style.display = "none", i.value = a, e.style.display = g.style.display = "block", g.focus()
9202 },
9203 loadExtScript: function(a, b, c) {
9204 var d = document.createElement("script");
9205 if (d.charset = "UTF-8", d.src = a, document.body.appendChild(d), "function" == typeof b) var e = setInterval(function() {
9206 var a = !1;
9207 try {
9208 a = b.call()
9209 } catch (d) {}
9210 a && (clearInterval(e), c.call())
9211 }, 100)
9212 },
9213 track: function(a) {
9214 var b = new Image(1, 1);
9215 b.src = a, b.width = 1, b.height = 1
9216 },
9217 GA: function(a) {
9218 var b = window,
9219 c = a2a.type,
9220 d = function() {
9221 if ("function" == typeof urchinTracker) a2a.GA.track = function(a, b, c, d, e) {
9222 urchinTracker("/addtoany.com/" + d), urchinTracker("/addtoany.com/" + d + "/" + (c || a2a["n" + a2a.n].linkurl)), urchinTracker("/addtoany.com/services/" + b)
9223 };
9224 else if ("object" == typeof pageTracker) a2a.GA.track = function(a, b, d, e, f) {
9225 "feed" != c && pageTracker._trackSocial("AddToAny", a, d || a2a["n" + a2a.n].linkurl), pageTracker._trackEvent(f, a, d || a2a["n" + a2a.n].linkurl)
9226 };
9227 else if ("object" == typeof _gaq) a2a.GA.track = function(a, b, d, e, f) {
9228 "feed" != c && _gaq.push(["_trackSocial", "AddToAny", a, d || a2a["n" + a2a.n].linkurl]), _gaq.push(["_trackEvent", f, a, d || a2a["n" + a2a.n].linkurl])
9229 };
9230 else {
9231 if ("string" != typeof GoogleAnalyticsObject) return;
9232 a2a.GA.track = function(a, d, e, f, g) {
9233 "feed" != c && b[GoogleAnalyticsObject]("send", "social", "AddToAny", a, {
9234 page: e || a2a["n" + a2a.n].linkurl
9235 }), b[GoogleAnalyticsObject]("send", "event", g, a, e || a2a["n" + a2a.n].linkurl)
9236 }
9237 }
9238 };
9239 a2a.GA.track = function() {}, a || /loaded|complete/.test(document.readyState) ? d() : a2a.onLoad(d)
9240 },
9241 add_services: function() {
9242 var a, b = a2a.type,
9243 c = a2a.gEl,
9244 d = parseInt(a2a[b].num_services),
9245 e = c("a2a" + b + "_full_services"),
9246 f = c("a2a" + b + "_mini_services");
9247 if (a2a[b].custom_services) {
9248 var g = a2a[b].custom_services,
9249 h = g.length,
9250 i = a2a.make_service,
9251 j = 0;
9252 g.reverse();
9253 for (var k, l = 0; l < h; l++) g[l] && (j += 1, k = i(g[l][0], g[l][0].replace(" ", "_"), !1, null, {}, g[l][1], g[l][2]), e.insertBefore(k, e.firstChild), k = i(g[l][0], g[l][0].replace(" ", "_"), !1, null, {}, g[l][1], g[l][2]), f.insertBefore(k, f.firstChild))
9254 }
9255 if ("page" == b && a2a.c.add_services)
9256 for (var g = a2a.c.add_services, h = g.length, i = a2a.make_service, j = 0, m = a2a.c.ssl, l = 0; l < h; l++) g[l] && (j += 1, m && (g[l].icon = !1), k = i(g[l].name, g[l].safe_name, !1, null, {}, !1, g[l].icon), e.insertBefore(k, e.firstChild), k = i(g[l].name, g[l].safe_name, !1, null, {}, !1, g[l].icon), f.insertBefore(k, f.firstChild));
9257 if (a = a2a.getByClass("a2a_i", f, "a"), a.length > d)
9258 for (var l = 0, n = a.length; l < n - d; l++) f.removeChild(f.lastChild)
9259 },
9260 util_frame_make: function(a) {
9261 var b = document.createElement("iframe"),
9262 c = document.createElement("div"),
9263 d = encodeURIComponent,
9264 e = document.referrer ? d(document.referrer) : "",
9265 f = d(location.href),
9266 g = (d(document.title || ""), navigator.browserLanguage || navigator.language, a2a.c.no_3p ? "&no_3p=1" : "");
9267 b.id = "a2a" + a + "_sm_ifr", b.width = b.height = 1, b.style.width = b.style.height = c.style.width = c.style.height = "1px", b.style.top = b.style.left = b.frameborder = b.style.border = 0, b.style.position = c.style.position = "absolute", b.style.zIndex = c.style.zIndex = 1e5, b.title = "AddToAny Utility Frame", b.setAttribute("transparency", "true"), b.setAttribute("allowTransparency", "true"), b.setAttribute("frameBorder", "0"), b.src = "https://static.addtoany.com/menu/sm.16.html#type=" + a + "&event=load&url=" + f + "&referrer=" + e + g, c.style.top = "0", c.style.visibility = "hidden", a2a.gEl("a2a" + a + "_dropdown").parentNode.insertBefore(c, null), c.insertBefore(b, null)
9268 },
9269 util_frame_listen: function(a) {
9270 a2a.util_frame_make(a), window.postMessage && !a2a[a].message_event && (a2a.add_event(window, "message", function(a) {
9271 if (".addtoany.com" === a.origin.substr(-13)) {
9272 var b = "string" == typeof a.data ? a.data.split("=") : [""],
9273 c = b[0].substr(4),
9274 d = b[1],
9275 e = c.substr(0, 4);
9276 c == e + "_services" && (d = "" != d && d.split(","), a2a.top_services(d, e, " a2a_sss"), a2a.collections(e), a2a.default_services(e)), e && (a2a.gEl("a2a" + e + "_sm_ifr").style.display = "none")
9277 }
9278 }), a2a[a].message_event = 1)
9279 },
9280 util_frame_post: function(a, b) {
9281 window.postMessage && a2a.gEl("a2a" + a + "_sm_ifr").contentWindow.postMessage(b, "*")
9282 },
9283 fix_icons: function() {
9284 var a = a2a.ieo();
9285 if (a && a < 9) {
9286 var b = a2a.getByClass("a2a_s_a2a", document),
9287 b = b[0],
9288 c = a2a.fix_icons.tryNum || 0;
9289 if (b && !b.a2aFixed && !b.currentStyle.backgroundImage.split('"')[1] && c < 999) return a2a.fix_icons.tryNum = c + 1, setTimeout(a2a.fix_icons, 99);
9290 for (var d, e, f, g, h = 0, i = a2a.getByClass("a2a_svg", document), j = i.length; h < j; h++) g = i[h], d = g.currentStyle, e = d.backgroundImage.split('"')[1], !g.a2aFixed && e && (f = new Image, f.style.backgroundColor = d.backgroundColor, f.style.border = 0, f.style.height = d.height, f.style.width = d.width, f.src = e, g.style.background = "none", g.insertBefore(f, g.firstChild)), g.a2aFixed = 1
9291 } else fix_icons = function() {}
9292 },
9293 arrange_services: function() {
9294 var a = a2a.type,
9295 b = a2a.c.prioritize;
9296 b && a2a.top_services(b, a), a2a.add_services()
9297 },
9298 top_services: function(a, b, c) {
9299 var d = b || a2a.type,
9300 e = a2a.in_array,
9301 f = a2a.make_service,
9302 g = parseInt(a2a[d].num_services),
9303 h = a2a.gEl("a2a" + d + "_full_services"),
9304 i = a2a.gEl("a2a" + d + "_mini_services"),
9305 j = a2a.getByClass("a2a_i", h, "a"),
9306 k = a2a.getByClass("a2a_i", i, "a"),
9307 l = [];
9308 if (a) {
9309 for (var m = a.length - 1, c = c; m > -1; m--) {
9310 var n = a[m],
9311 o = e(n, j, !0, "a2a", "safename");
9312 o && (c && (o.className = o.className + c), h.insertBefore(o, h.firstChild), l.push(o))
9313 }
9314 if (l.length > 0) {
9315 for (var p, q, r, m = 0, c = c; m < l.length; m++)(p = e(l[m].a2a.safename, k, !0, "a2a", "safename")) ? r = p : (q = l[m].a2a, r = f(q.servicename, q.safename, q.serviceIcon, q.serviceColor, {
9316 src: q.js_src,
9317 url: q.url,
9318 type: q.serviceType,
9319 pu: q.popup,
9320 media: q.media
9321 })), c && (r.className = r.className + c), i.insertBefore(r, i.firstChild);
9322 if (k = a2a.getByClass("a2a_i", i, "a"), k.length > g)
9323 for (var m = 0, s = k.length; m < s - g; m++) i.removeChild(i.lastChild)
9324 }
9325 }
9326 },
9327 css: function() {
9328 var a, b, c = a2a.c,
9329 d = c.css = document.createElement("style"),
9330 e = c.color_main || "EEE",
9331 f = c.color_bg || "FFF",
9332 g = c.color_border || "CCC",
9333 h = c.color_link_text || "0166FF",
9334 i = c.color_link_text_hover || "2A2A2A",
9335 j = (c.color_link_text_hover || "2A2A2A", c.color_link_text || "2A2A2A"),
9336 k = ("ffffff" == e.toLowerCase() ? "EEE" : e, c.color_link_text || "2A2A2A"),
9337 l = c.color_border || g,
9338 m = ".a2a_",
9339 n = "{background-position:0 ",
9340 o = "px!important}",
9341 p = m + "i_",
9342 q = o + p,
9343 r = m + "menu",
9344 s = "border",
9345 t = "background-color:",
9346 u = "color:",
9347 v = "margin:",
9348 w = "padding:";
9349 a = "" + r + "," + r + " * {-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;float:none;" + v + "0;" + w + "0;position: static;height:auto;width:auto;}" + r + " {" + s + "-radius: 6px;display:none;direction:ltr;background:#" + f + ';font: 16px sans-serif-light, "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Arial, Helvetica, "Liberation Sans", sans-serif;' + u + "#000;line-height:12px;" + s + ": 1px solid #" + g + ";vertical-align:baseline;outline: 0; overflow:hidden;}" + m + "mini {min-width:200px;position:absolute;width: 300px;z-index:9999997;}" + m + "overlay {display: none;background: #" + g + '; _height: expression( ((e=document.documentElement.clientHeight)?e:document.body.clientHeight)+"px" ); _width: expression( ((e=document.documentElement.clientWidth)?e:document.body.clientWidth)+"px" ); filter: alpha(opacity=50); opacity: .7;position: fixed;_position: absolute; top: 0;right: 0;left: 0;bottom: 0;z-index: 9999998;-webkit-tap-highlight-' + u + " rgba(0,0,0,0);transition: opacity .14s;}" + m + "full {background: #" + f + ';height: auto;height: calc(320px);top: 15%;_top: expression(40+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+"px"); left: 50%;margin-left: -320px; position: fixed;_position: absolute; text-align: center;width: 640px;z-index: 9999999; transition: transform .14s, opacity .14s;}' + m + "full_header," + m + "full_services," + m + "full_footer {" + s + ": 0;" + v + " 0;" + w + " 12px;box-sizing: " + s + "-box;}" + m + "full_header {padding-bottom: 8px;}" + m + "full_services {height: 280px; overflow-y: scroll;" + w + " 0 12px;-webkit-overflow-scrolling: touch;}" + m + "full_services " + m + "i {display: inline-block;float: none;width: 181px;width: calc(33.334% - 18px);}div" + m + "full_footer {font-size: 12px;text-align: center;" + w + " 8px 14px;}div" + m + "full_footer a,div" + m + "full_footer a:visited {display: inline;font-size: 12px;line-height:14px;" + w + " 8px 14px; }div" + m + "full_footer a:hover,div" + m + "full_footer a:focus {background: none;" + s + ": 0;" + u + " #" + h + ";}div" + m + "full_footer a span" + m + "s_a2a,div" + m + "full_footer a span" + m + "w_a2a {background-size: 14px;" + s + "-radius: 3px;display: inline-block;height:14px;line-height:14px;" + v + " 0 3px 0 0;vertical-align: top;*vertical-align: middle; width:14px;}" + m + "modal {background: #" + f + ';font: 24px sans-serif-light, "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Arial, Helvetica, "Liberation Sans", sans-serif;height: auto;top: 50%;_top: expression(40+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+"px"); left: 50%;margin-left: -320px; margin-top: -36px; position: fixed;_position: absolute; text-align: center;width: 640px;z-index: 9999999; transition: transform .14s, opacity .14s;-webkit-tap-highlight-' + u + " rgba(0,0,0,0);}" + m + "copy_link_container {position: relative;}span" + m + "s_link#a2a_copy_link_icon,span" + m + "w_link#a2a_copy_link_icon {background-size: 48px;" + s + "-radius: 0;display: inline-block;height:48px;left: 0;line-height:48px;" + v + " 0 3px 0 0;position: absolute;vertical-align: top;*vertical-align: middle; width:48px;}#a2a_copy_link_text {" + t + " transparent;_" + t + " #" + f + ";" + s + ": 0;" + u + " #" + k + ";font: inherit;height: 48px;left: 62px;" + w + " 0;position: relative;width: 564px;width: calc(100% - 76px);}#a2a_copy_link_copied {" + t + " #0166ff;background: linear-gradient(90deg, #0166ff 80%, #9cbfff);" + u + " #fff;display: none;font: inherit;font-size: 16px;" + w + " 6px 8px;}@media print {" + r + "," + m + "overlay {visibility: hidden;}}@keyframes a2aFadeIn {from { opacity: 0; } to { opacity: 1; }}" + m + "starting {opacity: 0;}" + m + "starting" + m + "full {transform: scale(.8);}@media (max-width: 639px) {" + m + "full {" + s + "-radius: 0;top: 15%;left: 0;margin-left: auto;width: 100%;}" + m + "modal {left: 0;margin-left: 10px;width: calc(100% - 20px);}}@media (min-width: 318px) and (max-width: 437px) {" + m + "full " + m + "full_services " + m + "i {width: calc(50% - 18px);}}@media (max-width: 317px) {" + m + "full " + m + "full_services " + m + "i {width: calc(100% - 18px);}}@media (max-height: 436px) {" + m + "full {bottom: 40px;height: auto;top: 40px;}}" + r + " a {" + u + "#" + h + ';text-decoration:none;font: 16px sans-serif-light, "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Arial, Helvetica, "Liberation Sans", sans-serif;line-height:14px;height:auto;width:auto;outline:none;-moz-outline:none;}' + r + " a:visited{" + u + "#" + h + "}" + r + " a:hover," + r + " a:active," + r + " a:focus{" + u + " #" + i + ";" + s + "-" + u + " #" + e + ";" + s + "-style: solid;" + t + " #" + e + ";text-decoration: none;}" + r + " span" + m + "s_find {background-size: 24px;height:24px;left: 8px;position:absolute;top: 7px;width:24px;}" + r + " span" + m + "s_find svg {" + t + " #" + f + ";}" + r + " span" + m + "s_find svg path {fill: #" + l + ";}#a2a_menu_container{display:inline-block} #a2a_menu_container{_display:inline} " + r + "_find_container {" + s + ": 1px solid #" + l + ";" + s + "-radius: 6px;" + w + " 2px 24px 2px 0;position: relative;text-align: left;}" + m + "cols_container " + m + "col1{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}" + r + " input," + r + ' input[type="text"],input' + m + "copy_link_text,input" + m + 'copy_link_text[type="text"] { display:block;background-image:none;box-shadow:none;line-height:100%;' + v + "0;outline:0;overflow:hidden;" + w + "0;-moz-box-shadow:none;-webkit-box-shadow:none;-webkit-appearance:none} " + r + "_find_container input" + r + "_find {" + t + " transparent;_" + t + " #" + f + ";" + s + ": 0;" + u + " #" + k + ";font: inherit;font-size: 16px;height: 28px;line-height: 20px;left: 38px;outline: 0;" + w + " 2px 0;position: relative;width: 99%;}" + ("undefined" != typeof document.body.style.maxHeight ? "" + m + "clear{clear:both}" : "" + m + "clear{clear:both;height:0;width:0;line-height:0;font-size:0}") + " " + m + "img {background:url(" + a2a.icons_img_url + ");" + s + ":0;line-height:16px}" + m + "img," + m + "svg {background-repeat:no-repeat;display:block;overflow:hidden;}" + m + "img{height:16px;line-height:16px;width:16px;}" + m + "svg{height:32px;line-height:32px;width:32px;}" + m + "svg svg{background-repeat: no-repeat;background-position: 50% 50%;" + s + ": none;display: block;left: 0;" + v + " 0 auto;overflow: hidden;" + w + " 0;position: relative;top: 0;}a" + m + "i,i" + m + "i{display:block;float:left;" + s + ":1px solid #" + f + ";line-height:24px;" + w + "6px 8px;text-align:left;white-space:nowrap;overflow: hidden;text-overflow: ellipsis;width:132px;}a" + m + "i span,a" + m + "more span {display: inline-block;overflow: hidden;vertical-align: top;*vertical-align: middle; }a" + m + "i " + m + "img,a" + m + "i " + m + "svg {" + v + " 0 6px 0 0;}a" + m + "i " + m + "svg,a" + m + "more " + m + "svg {background-size: 24px;height:24px;line-height:24px;width:24px;}a" + m + "sss:hover {" + s + "-left: 1px solid #" + g + ";}a" + r + "_show_more_less{" + s + "-bottom:1px solid #" + f + ";" + s + "-left:0;" + s + "-right:0;line-height:24px;" + v + "6px 0 0;" + w + "6px}a" + r + "_show_more_less span{display:inline-block;height:24px;" + v + "0 6px 0 0;} " + m + "kit " + m + "svg { background-repeat: repeat; }" + m + "default_style a{float:left;line-height:16px;" + w + "0 2px}" + m + "default_style a:hover " + m + "img," + m + "default_style a:hover " + m + "svg," + m + "floating_style a:hover " + m + "img," + m + "floating_style a:hover " + m + "svg {opacity: .7;}" + m + "default_style " + m + "count," + m + "default_style " + m + "svg," + m + "floating_style " + m + "svg," + m + "vertical_style " + m + "count," + r + " " + m + "svg {" + s + "-radius:4px ;}" + m + "default_style " + m + "img, " + m + "default_style " + m + "dd, " + m + "default_style " + m + "svg," + m + "default_style " + m + "counter img { float: left;}" + m + "default_style " + m + "img_text{margin-right:4px}" + m + "default_style " + m + "divider{" + s + "-left:1px solid #000;display:inline;float:left;height:16px;line-height:16px;" + v + "0 5px}" + m + "kit a{cursor:pointer}" + m + "floating_style { " + t + " #fff; " + s + "-radius: 6px; " + w + " 4px; position: fixed; z-index: 9999995; animation: a2aFadeIn .2s ease-in;}" + m + "vertical_style a { clear: left;display: block;overflow: hidden;" + w + " 4px;text-decoration: none; }" + m + "floating_style" + m + "default_style { bottom: 0; }" + m + "floating_style" + m + "default_style a { " + w + " 4px; }" + m + "count {" + t + " #fff;" + s + ": 1px solid #ccc;box-sizing: " + s + "-box;" + u + " #2a2a2a;display: block;float: left;font: 12px Arial,Helvetica,sans-serif;height: 16px;margin-left: 4px;position: relative;text-align: center;width: 50px;}" + m + "count:before," + m + "count:after {" + s + ": solid transparent;" + s + '-width: 4px 4px 4px 0;content: "";height: 0;left: 0;line-height: 0;' + v + " -4px 0 0 -4px;position: absolute;top: 50%;width: 0;}" + m + "count:before {" + s + "-right-" + u + " #ccc;}" + m + "count:after {" + s + "-right-" + u + " #fff;margin-left: -3px;}" + m + "count span { animation: a2aFadeIn .14s ease-in;}" + m + "vertical_style " + m + "counter img {display: block;}" + m + "vertical_style " + m + "count {float: none;margin-left: 0;margin-top: 6px; }" + m + "vertical_style " + m + "count:before," + m + "vertical_style " + m + "count:after {" + s + ": solid transparent;" + s + '-width: 0 4px 4px 4px;content: "";height: 0;left: 50%;line-height: 0;' + v + " -4px 0 0 -4px;position: absolute;top: 0;width: 0;}" + m + "vertical_style " + m + "count:before {" + s + "-bottom-" + u + " #ccc;}" + m + "vertical_style " + m + "count:after {" + s + "-bottom-" + u + " #fff;margin-top: -3px;}" + m + "nowrap{white-space:nowrap}" + m + "note{" + v + "0 auto;" + w + "9px;font-size:12px;text-align:center}" + m + "note " + m + "note_note{" + v + "0;" + u + "#" + j + "}" + m + "wide a{display:block;margin-top:3px;" + s + "-top:1px solid #" + e + ";text-align:center}" + m + "label {position: absolute !important;clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);overflow: hidden; }iframe" + m + "shim {" + t + " transparent;" + s + ': 0;bottom: 0;filter: alpha(opacity=0); height: 100%;left: 0;right: 0;top: 0;position: absolute;width: 100%;z-index: 9999996;_height: expression( ((e=document.documentElement.clientHeight)?e:document.body.clientHeight)+"px" ); _width: expression( ((e=document.documentElement.clientWidth)?e:document.body.clientWidth)+"px" ); }' + m + "dd img {" + s + ":0;-ms-touch-action:manipulation;}" + m + 'button_facebook_like iframe {max-width: none;}iframe[id^="PIN_"][id$="_nag"] {display: none !important;}' + p + "a2a" + n + "0!important}" + p + "a2a_sm" + n + "-17" + q + "agregator" + n + "-34" + q + "amazon" + n + "-51" + q + "aol" + n + "-68" + q + "app_net" + n + "-85" + q + "baidu" + n + "-102" + q + "balatarin" + n + "-119" + q + "behance" + n + "-136" + q + "bibsonomy" + n + "-153" + q + "bitty" + n + "-170" + q + "blinklist" + n + "-187" + q + "blogger" + n + "-204" + q + "blogmarks" + n + "-221" + q + "bookmark" + n + "-238" + q + "bookmarks_fr" + n + "-255" + q + "box" + n + "-272" + q + "buddymarks" + n + "-289" + q + "buffer" + n + "-306" + q + "care2" + n + "-323" + q + "chrome" + n + "-340" + q + "citeulike" + n + "-357" + q + "dailyrotation" + n + "-374" + q + "default" + n + "-391" + q + "delicious" + n + "-408" + q + "designfloat" + n + "-425" + q + "diary_ru" + n + "-442" + q + "diaspora" + n + "-459" + q + "digg" + n + "-476" + q + "dihitt" + n + "-493" + q + "diigo" + n + "-510" + q + "dzone" + n + "-527" + q + "email" + n + "-544" + q + "evernote" + n + "-561" + q + "facebook" + n + "-578" + q + "fark" + n + "-595" + q + "feed" + n + "-612" + q + "feedblitz" + n + "-629" + q + "feedbucket" + n + "-646" + q + "feedly" + n + "-663" + q + "feedmailer" + n + "-680" + q + "find" + n + "-697" + q + "firefox" + n + "-714" + q + "flickr" + n + "-731" + q + "flipboard" + n + "-748" + q + "folkd" + n + "-765" + q + "foursquare" + n + "-782" + q + "github" + n + "-799" + q + "gmail" + n + "-816" + q + "google" + n + "-833" + q + "google_classroom" + n + "-850" + q + "google_plus" + n + "-867" + q + "hatena" + n + "-884" + q + "instapaper" + n + "-901" + q + "itunes" + n + "-918" + q + "jamespot" + n + "-935" + q + "kakao" + n + "-952" + q + "kik" + n + "-969" + q + "kindle" + n + "-986" + q + "klipfolio" + n + "-1003" + q + "known" + n + "-1020" + q + "line" + n + "-1037" + q + "link" + n + "-1054" + q + "linkedin" + n + "-1071" + q + "livejournal" + n + "-1088" + q + "mail_ru" + n + "-1105" + q + "mendeley" + n + "-1122" + q + "meneame" + n + "-1139" + q + "miro" + n + "-1156" + q + "mixi" + n + "-1173" + q + "myspace" + n + "-1190" + q + "netlog" + n + "-1207" + q + "netvibes" + n + "-1224" + q + "netvouz" + n + "-1241" + q + "newsalloy" + n + "-1258" + q + "newsisfree" + n + "-1275" + q + "newsvine" + n + "-1292" + q + "nujij" + n + "-1309" + q + "odnoklassniki" + n + "-1326" + q + "oknotizie" + n + "-1343" + q + "oldreader" + n + "-1360" + q + "outlook_com" + n + "-1377" + q + "pinboard" + n + "-1394" + q + "pinterest" + n + "-1411" + q + "plurk" + n + "-1428" + q + "pocket" + n + "-1445" + q + "podnova" + n + "-1462" + q + "print" + n + "-1479" + q + "printfriendly" + n + "-1496" + q + "protopage" + n + "-1513" + q + "pusha" + n + "-1530" + q + "qzone" + n + "-1547" + q + "reddit" + n + "-1564" + q + "rediff" + n + "-1581" + q + "renren" + n + "-1598" + q + "segnalo" + n + "-1615" + q + "share" + n + "-1632" + q + "sina_weibo" + n + "-1649" + q + "sitejot" + n + "-1666" + q + "skype" + n + "-1683" + q + "slashdot" + n + "-1700" + q + "sms" + n + "-1717" + q + "snapchat" + n + "-1734" + q + "stumbleupon" + n + "-1751" + q + "stumpedia" + n + "-1768" + q + "svejo" + n + "-1785" + q + "symbaloo" + n + "-1802" + q + "telegram" + n + "-1819" + q + "thefreedictionary" + n + "-1836" + q + "thefreelibrary" + n + "-1853" + q + "tumblr" + n + "-1870" + q + "twiddla" + n + "-1887" + q + "twitter" + n + "-1904" + q + "typepad" + n + "-1921" + q + "viadeo" + n, a += "-1938" + q + "viber" + n + "-1955" + q + "vimeo" + n + "-1972" + q + "vk" + n + "-1989" + q + "wanelo" + n + "-2006" + q + "webnews" + n + "-2023" + q + "wechat" + n + "-2040" + q + "whatsapp" + n + "-2057" + q + "winksite" + n + "-2074" + q + "wordpress" + n + "-2091" + q + "wykop" + n + "-2108" + q + "xing" + n + "-2125" + q + "y18" + n + "-2142" + q + "yahoo" + n + "-2159" + q + "yim" + n + "-2176" + q + "yoolink" + n + "-2193" + q + "youmob" + n + "-2210" + q + "youtube" + n + "-2227" + q + "yummly" + n + "-2244" + o, d.setAttribute("type", "text/css"), a2a.head_tag.appendChild(d), d.styleSheet ? d.styleSheet.cssText = a : (b = document.createTextNode(a), d.appendChild(b))
9350 },
9351 svg_css: function() {
9352 a2a.init("page");
9353 var a = a2a.c.css.sheet || a2a.c.css.styleSheet || {},
9354 b = "insertRule" in a,
9355 c = "addRule" in a;
9356 all_services = a2a.services.concat([
9357 [0, 0, "a2a", "0166FF"]
9358 ]);
9359 for (var d, e, f = 0, g = all_services.length; f < g; f++) d = ".a2a_s_" + all_services[f][2], e = "background-color:#" + all_services[f][3] + ";", b ? a.insertRule(d + "{" + e + "}", 0) : c && a.addRule(d, e, 0);
9360 a2a.svg.load(!0), a2a.svg_css = function() {}
9361 },
9362 svg: {
9363 icons: {},
9364 queue: [],
9365 tagO: '<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">',
9366 tagC: "</svg>",
9367 fill: function(a, b) {
9368 return a.replace(/#FFF/gi, b)
9369 },
9370 get: function(a, b, c) {
9371 var d = a2a.svg,
9372 e = d.fill;
9373 return icons = d.icons, svg_tag_open = d.tagO, svg_tag_close = d.tagC, svg_src = icons[a], svg_src_default = icons.a2a, svg_src ? (svg_src = c ? e(svg_src, c) : svg_src, svg_tag_open + svg_src + svg_tag_close) : svg_src_default ? (svg_src_default = c ? e(svg_src_default, c) : svg_src_default, svg_tag_open + svg_src_default + svg_tag_close) : (a2a.svg.queue.push({
9374 name: a,
9375 node: b,
9376 color: c
9377 }), "pending")
9378 },
9379 set: function(a) {
9380 var b = a2a.svg,
9381 c = b.queue;
9382 if (icons = b.icons = a, svg_tag_open = b.tagO, svg_tag_close = b.tagC, icons.a2a)
9383 for (var d, e, f, g = 0, h = c.length; g < h; g++) d = c[g], e = d.name, color = d.color, f = icons[e] ? icons[e] : icons.a2a, f = color ? b.fill(f, color) : f, d.node.innerHTML = svg_tag_open + f + svg_tag_close
9384 },
9385 load: function(a) {
9386 var b = a2a.svg.works(),
9387 c = new window.Image;
9388 c.onerror = function() {
9389 loadCSS(!1)
9390 }, c.onload = function() {
9391 var d = 1 === c.width && 1 === c.height;
9392 b && !a ? a2a.svg.loadJS(document) : a2a.svg.loadCSS(d), a2a.svg.load = function(a) {
9393 return function(b) {
9394 b && a2a.svg.loadCSS(a)
9395 }
9396 }(d)
9397 }, a2a.svg.load = function() {}, c.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="
9398 },
9399 loadCSS: function(a) {
9400 var b = a2a.c.static_server,
9401 c = a2a.fix_icons,
9402 d = ["icons.22.svg.css", "icons.22.png.css", "icons.22.old.css"],
9403 e = a2a.svg.works(),
9404 f = window.document.createElement("link"),
9405 g = a && e && "https://static.addtoany.com/menu" != b ? b + "/" : b + "/svg/";
9406 f.rel = "stylesheet", f.href = g + d[a && e ? 0 : a ? 1 : 2], a2a.head_tag.appendChild(f), c(), a2a.svg.loadCSS = c
9407 },
9408 loadJS: function() {
9409 var a = document,
9410 b = a2a.c.static_server,
9411 c = a.createElement("script"),
9412 d = a.getElementsByTagName("script")[0],
9413 e = "https://static.addtoany.com/menu" != b ? b + "/" : b + "/svg/";
9414 c.async = !0, c.src = e + "icons.22.svg.js", d.parentNode.insertBefore(c, d), a2a.svg.loadJS = function() {}
9415 },
9416 works: function() {
9417 var a = window,
9418 b = !(!a.document.createElementNS || !a.document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect || !document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1") || a.opera && navigator.userAgent.indexOf("Chrome") === -1);
9419 return a2a.svg.works = function() {
9420 return b
9421 }, b
9422 }
9423 },
9424 make_service: function(a, b, c, d, e, f, g) {
9425 var h, i, j = document.createElement("a"),
9426 k = a2a.c,
9427 l = function() {
9428 a2a.linker(this)
9429 },
9430 m = a2a.type,
9431 e = e || {},
9432 n = "a2a_svg a2a_s__default",
9433 o = k.icon_color,
9434 p = o ? o.split(",", 2) : o,
9435 q = p ? p[0] : p,
9436 r = p ? p[1] : p;
9437 return j.rel = "nofollow", j.className = "a2a_i", j.href = "/#" + b, j.target = "_blank", j.a2a = {}, j.a2a.safename = b, j.a2a.servicename = a, j.a2a.serviceNameLowerCase = a.toLowerCase(), j.a2a.serviceIcon = c, j.a2a.serviceColor = d, j.a2a.serviceType = e.type, j.innerHTML = "<span></span>" + a + " ", h = j.firstChild, e.type && (j.a2a.stype = e.type), e.src && (j.a2a.js_src = e.src), e.url && (j.a2a.url = e.url), e.pu && (j.a2a.popup = 1), e.media && (j.a2a.media = 1), f && (j.a2a.customserviceuri = f), g ? (h.style.backgroundImage = "url(" + g + ")", h.className = n) : o && a2a.svg.works() ? (h.className = n + " a2a_s_" + c, q && "unset" != q ? h.style.backgroundColor = q : d && (h.style.backgroundColor = "#" + d), r && (r = r.trim())) : c ? (h.className = n + " a2a_s_" + c, d && (h.style.backgroundColor = "#" + d)) : h.className = n, i = a2a.svg.get(c, h, r), "pending" !== i && (h.innerHTML = i), a2a.add_event(j, "mousedown", l), a2a.add_event(j, "keydown", l), a2a.add_event(j, "click", function(b) {
9438 var c = a2a["n" + a2a.n],
9439 d = {
9440 node: j,
9441 service: a,
9442 title: c.linkname,
9443 url: c.linkurl
9444 },
9445 e = a2a.cbs("share", d);
9446 "undefined" != typeof e && (e.url && (c.linkurl = e.url, c.linkurl_implicit = !1), e.title && (c.linkname = e.title, c.linkname_implicit = !1), a2a.linker(j), e.stop && a2a.preventDefault(b))
9447 }), a2a.add_event(j, "click", function(c) {
9448 var d = encodeURIComponent,
9449 e = a2a["n" + a2a.n],
9450 f = "page" == m ? "pages" : "subscriptions",
9451 g = "page" == m ? "AddToAny Share/Save Button" : "AddToAny Subscribe Button",
9452 h = screen.height,
9453 i = 550,
9454 k = 450,
9455 l = "event=service_click&url=" + d(location.href) + "&title=" + d(document.title || "") + "&ev_service=" + d(b) + "&ev_service_type=menu&ev_menu_type=" + m + "&ev_url=" + d(e.linkurl) + "&ev_title=" + d(e.linkname).replace(/'/g, "%27");
9456 j.a2a.popup && !a2a.defaultPrevented(c) && "javascript:" != j.href.substr(0, 11) && (a2a.preventDefault(c), window.open(j.href, "_blank", "toolbar=0,personalbar=0,resizable,scrollbars,status,width=550,height=450,top=" + (h > k ? Math.round(h / 2 - k / 2) : 40) + ",left=" + Math.round(screen.width / 2 - i / 2))), a2a.util_frame_post(m, l), a2a.GA.track(a, b, e.linkurl, f, g)
9457 }), j
9458 },
9459 i18n: function() {
9460 if ("https://static.addtoany.com/menu" != a2a.c.static_server) return !1;
9461 var a = ["ar", "id", "ms", "bn", "bs", "bg", "ca", "ca-AD", "ca-ES", "cs", "cy", "da", "de", "dv", "el", "et", "es", "es-AR", "es-VE", "eo", "en-US", "eu", "fa", "fr", "fr-CA", "gd", "he", "hi", "hr", "is", "it", "ja", "ko", "ku", "lv", "lt", "li", "hu", "mk", "nl", "no", "pl", "pt", "pt-BR", "pt-PT", "ro", "ru", "sr", "fi", "sk", "sl", "sv", "ta", "te", "tr", "uk", "vi", "zh-CN", "zh-TW"],
9462 b = a2a.c.locale || (navigator.browserLanguage || navigator.language).toLowerCase(),
9463 c = a2a.in_array(b, a, !0);
9464 if (!c) {
9465 var d = b.indexOf("-");
9466 d != -1 && (c = a2a.in_array(b.substr(0, d), a, !0))
9467 }
9468 return !("en-us" == b || !c) && c
9469 }
9470};
9471a2a.c = a2a_config, a2a.make_once = function(a) {
9472 if (a2a.type = a2a.c.menu_type || a, !a2a[a2a.type] && !window["a2a" + a2a.type + "_init"]) {
9473 a2a[a2a.type] = {}, window.a2a_show_dropdown = a2a.show_menu, window.a2a_onMouseOut_delay = a2a.onMouseOut_delay, window.a2a_init = a2a.init, a2a["create_" + a2a.type + "_dropdown"] = function(a, b) {
9474 var c, d, e, f = a2a.gEl,
9475 g = a2a.type = a,
9476 h = "a2a" + g,
9477 i = a2a.c,
9478 j = a2a.ieo(),
9479 k = document.createElement("i"),
9480 l = document.createDocumentFragment(),
9481 m = document.createDocumentFragment(),
9482 n = (document.createElement("a"), i.icon_color),
9483 o = n ? n.split(",", 2) : n,
9484 p = o ? o[0] : o,
9485 q = o ? o[1] : o,
9486 r = "a2a_svg a2a_s__default a2a_s_",
9487 s = q ? q : "#FFF",
9488 t = ' style="background-color:' + (p && "unset" != p ? p : "#0166ff") + '"',
9489 u = '<svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="' + s + '"><path d="M14 7h4v18h-4z"/><path d="M7 14h18v4H7z"/></g></svg>',
9490 v = i.localize;
9491 a2a.css(), v = i.localize = {
9492 Share: v.Share || "Share",
9493 Save: v.Save || "Save",
9494 Subscribe: v.Subscribe || "Subscribe",
9495 Email: v.Email || "Email",
9496 Bookmark: v.Bookmark || "Bookmark",
9497 ShowAll: v.ShowAll || "Show all",
9498 ShowLess: v.ShowLess || "Show less",
9499 FindAnyServiceToAddTo: v.FindAnyServiceToAddTo || "Find any service",
9500 PoweredBy: v.PoweredBy || "By",
9501 AnyEmail: "Any email",
9502 ShareViaEmail: v.ShareViaEmail || "Share via email",
9503 SubscribeViaEmail: v.SubscribeViaEmail || "Subscribe via email",
9504 BookmarkInYourBrowser: v.BookmarkInYourBrowser || "Bookmark in your browser",
9505 BookmarkInstructions: v.BookmarkInstructions || "Press Ctrl+D or ⌘+D to bookmark this page",
9506 AddToYourFavorites: v.AddToYourFavorites || "Add to Favorites",
9507 SendFromWebOrProgram: v.SendFromWebOrProgram || "Send from any other email service",
9508 EmailProgram: v.EmailProgram || "Email application",
9509 More: v.More || "More…"
9510 };
9511 var w = '<div class="a2a_overlay" id="a2a' + g + '_overlay"></div>';
9512 w += '<div id="a2a' + g + '_modal" class="a2a_menu a2a_modal" role="dialog" tabindex="-1" aria-label="Copy link" style="display:none">', "page" == g && (w += '<div class="a2a_copy_link_container"><span id="a2a_copy_link_icon" class="a2a_svg a2a_s_link"' + t + ' onclick="a2a.gEl(\'a2a_copy_link_text\').click()"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="' + s + '" d="M24.4 21.18c0-.36-.1-.67-.36-.92l-2.8-2.8a1.24 1.24 0 0 0-.92-.38c-.38 0-.7.14-.97.43.02.04.1.12.25.26l.3.3.2.24c.08.12.14.24.17.35.03.1.05.23.05.37 0 .36-.13.66-.38.92a1.25 1.25 0 0 1-.92.37 1.4 1.4 0 0 1-.37-.03 1.06 1.06 0 0 1-.35-.18 2.27 2.27 0 0 1-.25-.2 6.82 6.82 0 0 1-.3-.3l-.24-.25c-.3.28-.44.6-.44.98 0 .36.13.66.38.92l2.78 2.8c.24.23.54.35.9.35.37 0 .68-.12.93-.35l1.98-1.97c.26-.25.38-.55.38-.9zm-9.46-9.5c0-.37-.13-.67-.38-.92l-2.78-2.8a1.24 1.24 0 0 0-.9-.37c-.36 0-.67.1-.93.35L7.97 9.92c-.26.25-.38.55-.38.9 0 .36.1.67.37.92l2.8 2.8c.24.25.55.37.92.37.36 0 .7-.13.96-.4-.03-.04-.1-.12-.26-.26s-.24-.23-.3-.3a2.67 2.67 0 0 1-.2-.24 1.05 1.05 0 0 1-.17-.35 1.4 1.4 0 0 1-.04-.37c0-.36.1-.66.36-.9.26-.26.56-.4.92-.4.14 0 .26.03.37.06.12.03.23.1.35.17.1.1.2.16.25.2l.3.3.24.26c.3-.28.44-.6.44-.98zM27 21.17c0 1.07-.38 2-1.15 2.73l-1.98 1.98c-.74.75-1.66 1.12-2.73 1.12-1.1 0-2-.38-2.75-1.14l-2.8-2.8c-.74-.74-1.1-1.65-1.1-2.73 0-1.1.38-2.04 1.17-2.82l-1.18-1.17c-.8.8-1.72 1.18-2.82 1.18-1.08 0-2-.36-2.75-1.12l-2.8-2.8C5.38 12.8 5 11.9 5 10.82c0-1.08.38-2 1.15-2.74L8.13 6.1C8.87 5.37 9.78 5 10.86 5c1.1 0 2 .38 2.75 1.15l2.8 2.8c.74.73 1.1 1.65 1.1 2.72 0 1.1-.38 2.05-1.17 2.82l1.18 1.18c.8-.8 1.72-1.2 2.82-1.2 1.08 0 2 .4 2.75 1.14l2.8 2.8c.76.76 1.13 1.68 1.13 2.76z"/></svg></span><input id="a2a_copy_link_text" type="text" title="Copy link"/><div id="a2a_copy_link_copied">Copied!</div></div>'), w += "</div>", w += '<div class="a2a_menu a2a_full" id="a2a' + g + '_full" role="dialog" tabindex="-1" aria-label="' + ("feed" == g ? v.Subscribe : v.Share) + '"><div class="a2a_full_header"><div id="a2a' + g + '_find_container" class="a2a_menu_find_container"><input id="a2a' + g + '_find" class="a2a_menu_find" type="text" onclick="a2a.focus_find()" onkeyup="a2a.do_find()" autocomplete="off" title="' + v.FindAnyServiceToAddTo + '"/><span id="a2a' + g + '_find_icon" class="a2a_svg a2a_s_find" onclick="a2a.focus_find()"><svg focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#CCC" d="M19.7 18.2l-4.5-4.5c.7-1.1 1.2-2.3 1.2-3.6 0-3.5-2.8-6.3-6.3-6.3s-6.3 2.8-6.3 6.3 2.8 6.3 6.3 6.3c1.4 0 2.6-.4 3.6-1.2l4.5 4.5c.6.6 1.3.7 1.7.2.5-.4.4-1.1-.2-1.7zm-9.6-3.6c-2.5 0-4.5-2.1-4.5-4.5 0-2.5 2.1-4.5 4.5-4.5 2.5 0 4.5 2.1 4.5 4.5s-2 4.5-4.5 4.5z"/></svg></span></div></div><div class="a2a_full_services" id="a2a' + g + '_full_services" role="presentation"></div><div class="a2a_full_footer"><a href="https://www.addtoany.com" title="Share Buttons" target="_blank"><span class="' + r + 'a2a"' + t + ">" + u + '</span>AddToAny</a></div></div><div id="a2a' + g + '_dropdown" class="a2a_menu a2a_mini" onmouseover="a2a.onMouseOver_stay()"' + (a2a[g].onclick ? "" : ' onmouseout="a2a.onMouseOut_delay()"') + ' tabindex="-1" aria-label="' + ("feed" == g ? v.Subscribe : v.Share) + '" style="display:none"><div id="a2a' + g + '_title_container" class="a2a_menu_title_container" style="display:none"><div id="a2a' + g + '_title" class="a2a_menu_title"></div></div><div class="a2a_mini_services" id="a2a' + g + '_mini_services"></div>', w += '<div id="a2a' + g + '_cols_container" class="a2a_cols_container"><div class="a2a_col1" id="a2a' + g + '_col1"' + ("mail" == g ? ' style="display:none"' : "") + '></div><div id="a2a' + g + '_2_col1"' + ("mail" != g ? ' style="display:none"' : "") + '></div><div class="a2a_clear"></div></div>', "mail" != g && (w += '<div class="a2a' + g + '_wide a2a_wide"><a href="" id="a2a' + g + '_show_more_less" class="a2a_menu_show_more_less a2a_more" title="' + v.ShowAll + '"><span class="' + r + 'a2a"' + t + ">" + u + "</span>" + v.More + "</a></div>"), w += "</div>";
9513 var x = "a2a_menu_container",
9514 y = f(x) || document.createElement("div");
9515 a2a.add_event(y, "mouseup", a2a.stopPropagation), a2a.add_event(y, "mousedown", a2a.stopPropagation), a2a.add_event(y, "touchstart", a2a.stopPropagation), a2a.add_event(y, "touchend", a2a.stopPropagation), a2a.add_event(y, "MSPointerDown", a2a.stopPropagation), a2a.add_event(y, "MSPointerUp", a2a.stopPropagation), y.innerHTML = w, y.id != x && (y.style.position = "static", j && j < 9 ? document.body.insertBefore(y, document.body.firstChild) : document.body.insertBefore(y, null));
9516 var z = new RegExp("[\\?&]awesm=([^&#]*)"),
9517 A = z.exec(window.location.href);
9518 null != A ? i.awesm = A[1] : i.awesm = !1;
9519 var B = a2a.make_service;
9520 if ("mail" != g) {
9521 for (var C = 0, D = b.most, E = D.length, F = parseInt(a2a[g].num_services), G = 0, H = a2a[g].exclude_services; C < E; C++) {
9522 var I = D[C];
9523 H && a2a.in_array(I[1], H, !0) || l.appendChild(B(I[0], I[1], I[2], I[3], I[4])), !(G < F) || H && a2a.in_array(I[1], H, !0) || (m.appendChild(B(I[0], I[1], I[2], I[3], I[4])), G++)
9524 }
9525 f(h + "_full_services").appendChild(l), f(h + "_mini_services").appendChild(m)
9526 }
9527 c = f(h + "_full_services"), k.className = "a2a_i", d = k.cloneNode(), c.appendChild(k), c.appendChild(d);
9528 for (var C = 0, J = b.email, K = J.length; C < K; C++) {
9529 var I = J[C];
9530 H && a2a.in_array(I[1], H, !0) || f(h + "_2_col1").appendChild(B(I[0], I[1], I[2], I[3], I[4]))
9531 }
9532 if ("feed" != g) {
9533 var L = B("Email app", "email_app", "email", null, null, "mailto:?subject=A2A_LINKNAME_ENC&body=A2A_LINKURL_ENC");
9534 L.className = "a2a_i a2a_emailer a2a_email_client", L.id = "a2a" + g + "_email_client", L.target = "", f(h + "_2_col1").appendChild(L)
9535 }
9536 a2a[g].services = b.most.concat(b.email), "mail" != g && (a2a.fast_click.make(f(h + "_overlay"), function(a) {
9537 a2a.hide_full(g)
9538 }), a2a.fast_click.make(f(h + "_show_more_less"), function(a) {
9539 a2a.preventDefault(a), a2a.show_more_less(0)
9540 })), a2a.arrange_services(), a2a.util_frame_listen(g), a2a.collections(g), a2a.default_services(), "mail" != g && (e = f(h + "_find"), e.onkeydown = function(a) {
9541 var a = a || window.event,
9542 b = a.which || a.keyCode,
9543 c = a2a.type;
9544 if (13 == b) {
9545 for (var d, f = 0, g = a2a[c].main_services, h = g.length; f < h; f++)
9546 if (d = g[f], "none" != d.style.display) return d.focus(), !1
9547 } else 27 == b && ("" == e.value && e.blur(), e.value = "", a2a.do_find())
9548 })
9549 };
9550 var b = {};
9551 b.page = {
9552 most: [
9553 ["Facebook", "facebook", "facebook", "3B5998", {
9554 pu: 1
9555 }],
9556 ["Twitter", "twitter", "twitter", "55ACEE", {
9557 pu: 1
9558 }],
9559 ["Google+", "google_plus", "google_plus", "DD4B39", {
9560 pu: 1
9561 }],
9562 ["Pinterest", "pinterest", "pinterest", "BD081C", {
9563 type: "js",
9564 src: "https://static.addtoany.com/menu/pinmarklet.js",
9565 media: 1,
9566 pu: 1
9567 }],
9568 ["Email", "email", "email", "0166FF", {
9569 url: "mailto:?subject=${title}&body=${link}"
9570 }],
9571 ["LinkedIn", "linkedin", "linkedin", "007BB5", {
9572 pu: 1
9573 }],
9574 ["Reddit", "reddit", "reddit", "ff4500"],
9575 ["Tumblr", "tumblr", "tumblr", "35465C", {
9576 pu: 1
9577 }],
9578 ["WordPress", "wordpress", "wordpress", "464646"],
9579 ["Google Gmail", "google_gmail", "gmail", "DD5347", {
9580 type: "email",
9581 pu: 1
9582 }],
9583 ["WhatsApp", "whatsapp", "whatsapp", "12AF0A", {
9584 url: "whatsapp://send?text=${title}%20${link}"
9585 }],
9586 ["StumbleUpon", "stumbleupon", "stumbleupon", "EF4E23"],
9587 ["AIM", "aim", "aim", "00C2FF"],
9588 ["Amazon Wish List", "amazon_wish_list", "amazon", "F90"],
9589 ["AOL Mail", "aol_mail", "aol", "2A2A2A", {
9590 type: "email",
9591 pu: 1
9592 }],
9593 ["App.net", "app_net", "app_net", "5D5D5D"],
9594 ["Baidu", "baidu", "baidu", "2319DC"],
9595 ["Balatarin", "balatarin", "balatarin", "079948"],
9596 ["BibSonomy", "bibsonomy", "bibsonomy", "2A2A2A"],
9597 ["Bitty Browser", "bitty_browser", "bitty", "999"],
9598 ["Blinklist", "blinklist", "blinklist", "3D3C3B"],
9599 ["Blogger Post", "blogger_post", "blogger", "FDA352"],
9600 ["BlogMarks", "blogmarks", "blogmarks", "535353"],
9601 ["Bookmarks.fr", "bookmarks_fr", "bookmarks_fr", "96C044"],
9602 ["Box.net", "box_net", "box", "1A74B0"],
9603 ["BuddyMarks", "buddymarks", "buddymarks", "96C044"],
9604 ["Buffer", "buffer", "buffer", "2A2A2A"],
9605 ["Care2 News", "care2_news", "care2", "6EB43F"],
9606 ["CiteULike", "citeulike", "citeulike", "2781CD"],
9607 ["Copy Link", "copy_link", "link", "0166FF", {
9608 type: "js",
9609 src: "javascript:a2a.copyLink('${link}')"
9610 }],
9611 ["Delicious", "delicious", "delicious", "39F"],
9612 ["Design Float", "design_float", "designfloat", "8AC8FF"],
9613 ["Diary.Ru", "diary_ru", "diary_ru", "912D31"],
9614 ["Diaspora", "diaspora", "diaspora", "2E3436"],
9615 ["Digg", "digg", "digg", "2A2A2A"],
9616 ["diHITT", "dihitt", "dihitt", "FF6300"],
9617 ["Diigo", "diigo", "diigo", "4A8BCA"],
9618 ["Douban", "douban", "douban", "071", {
9619 pu: 1
9620 }],
9621 ["Draugiem", "draugiem", "draugiem", "F60", {
9622 pu: 1
9623 }],
9624 ["DZone", "dzone", "dzone", "82C251"],
9625 ["Evernote", "evernote", "evernote", "8BE056"],
9626 ["Facebook Messenger", "facebook_messenger", "facebook_messenger", "0084FF", {
9627 pu: 1
9628 }],
9629 ["Fark", "fark", "fark", "555"],
9630 ["Flipboard", "flipboard", "flipboard", "C00", {
9631 pu: 1
9632 }],
9633 ["Folkd", "folkd", "folkd", "0F70B2"],
9634 ["Google Bookmarks", "google_bookmarks", "google", "4285F4"],
9635 ["Google Classroom", "google_classroom", "google_classroom", "FFC112"],
9636 ["Hacker News", "hacker_news", "y18", "F60"],
9637 ["Hatena", "hatena", "hatena", "00A6DB"],
9638 ["Instapaper", "instapaper", "instapaper", "2A2A2A"],
9639 ["Jamespot", "jamespot", "jamespot", "FF9E2C"],
9640 ["Kakao", "kakao", "kakao", "FCB700", {
9641 pu: 1
9642 }],
9643 ["Kik", "kik", "kik", "2A2A2A"],
9644 ["Kindle It", "kindle_it", "kindle", "2A2A2A"],
9645 ["Known", "known", "known", "2A2A2A"],
9646 ["Line", "line", "line", "00C300"],
9647 ["LiveJournal", "livejournal", "livejournal", "113140"],
9648 ["Mail.Ru", "mail_ru", "mail_ru", "356FAC"],
9649 ["Mendeley", "mendeley", "mendeley", "A70805"],
9650 ["Meneame", "meneame", "meneame", "FF7D12"],
9651 ["Mixi", "mixi", "mixi", "D1AD5A"],
9652 ["MySpace", "myspace", "myspace", "2A2A2A"],
9653 ["Netlog", "netlog", "netlog", "2A2A2A"],
9654 ["Netvouz", "netvouz", "netvouz", "6C3"],
9655 ["NewsVine", "newsvine", "newsvine", "055D00"],
9656 ["NUjij", "nujij", "nujij", "D40000"],
9657 ["Odnoklassniki", "odnoklassniki", "odnoklassniki", "F2720C"],
9658 ["Oknotizie", "oknotizie", "oknotizie", "88D32D"],
9659 ["Outlook.com", "outlook_com", "outlook_com", "0072C6", {
9660 type: "email"
9661 }],
9662 ["Papaly", "papaly", "papaly", "3AC0F6", {
9663 pu: 1
9664 }],
9665 ["Pinboard", "pinboard", "pinboard", "1341DE", {
9666 pu: 1
9667 }],
9668 ["Plurk", "plurk", "plurk", "CF682F"],
9669 ["Pocket", "pocket", "pocket", "EE4056"],
9670 ["Polyvore", "polyvore", "polyvore", "2A2A2A", {
9671 type: "js",
9672 src: "https://static.addtoany.com/menu/polyvore.js",
9673 media: 1,
9674 pu: 1
9675 }],
9676 ["Print", "print", "print", "0166FF", {
9677 type: "js",
9678 src: "javascript:print()"
9679 }],
9680 ["PrintFriendly", "printfriendly", "printfriendly", "6D9F00"],
9681 ["Protopage Bookmarks", "protopage_bookmarks", "protopage", "413FFF"],
9682 ["Pusha", "pusha", "pusha", "0072B8"],
9683 ["Qzone", "qzone", "qzone", "2B82D9"],
9684 ["Rediff MyPage", "rediff", "rediff", "D20000"],
9685 ["Refind", "refind", "refind", "1492ef"],
9686 ["Renren", "renren", "renren", "005EAC", {
9687 pu: 1
9688 }],
9689 ["Segnalo", "segnalo", "segnalo", "FF6500"],
9690 ["Sina Weibo", "sina_weibo", "sina_weibo", "E6162D"],
9691 ["SiteJot", "sitejot", "sitejot", "FFC808"],
9692 ["Skype", "skype", "skype", "00AFF0"],
9693 ["Slashdot", "slashdot", "slashdot", "004242"],
9694 ["SMS", "sms", "sms", "6CBE45", {
9695 url: "sms://&body=${title}%20${link}"
9696 }],
9697 ["Stumpedia", "stumpedia", "stumpedia", "FFC808"],
9698 ["Svejo", "svejo", "svejo", "5BD428"],
9699 ["Symbaloo Feeds", "symbaloo_feeds", "symbaloo", "6DA8F7"],
9700 ["Telegram", "telegram", "telegram", "2CA5E0"],
9701 ["Trello", "trello", "trello", "0079BF", {
9702 pu: 1
9703 }],
9704 ["Tuenti", "tuenti", "tuenti", "0075C9"],
9705 ["Twiddla", "twiddla", "twiddla", "2A2A2A"],
9706 ["TypePad Post", "typepad_post", "typepad", "D2DE61"],
9707 ["Viadeo", "viadeo", "viadeo", "2A2A2A", {
9708 pu: 1
9709 }],
9710 ["Viber", "viber", "viber", "7C529E", {
9711 url: "viber://forward?text=${title}%20${link}"
9712 }],
9713 ["VK", "vk", "vk", "587EA3", {
9714 pu: 1
9715 }],
9716 ["Wanelo", "wanelo", "wanelo", "9cb092"],
9717 ["Webnews", "webnews", "webnews", "CC2512"],
9718 ["WeChat", "wechat", "wechat", "7BB32E"],
9719 ["Wykop", "wykop", "wykop", "367DA9"],
9720 ["XING", "xing", "xing", "165B66", {
9721 pu: 1
9722 }],
9723 ["Yahoo Bookmarks", "yahoo_bookmarks", "yahoo", "400090"],
9724 ["Yahoo Mail", "yahoo_mail", "yahoo", "400090", {
9725 type: "email"
9726 }],
9727 ["Yahoo Messenger", "yahoo_messenger", "yim", "400090", {
9728 url: "ymsgr:sendim?+&m=${link}"
9729 }],
9730 ["Yoolink", "yoolink", "yoolink", "A2C538"],
9731 ["YouMob", "youmob", "youmob", "3B599D"],
9732 ["Yummly", "yummly", "yummly", "E16120", {
9733 type: "js",
9734 src: "https://www.yummly.com/js/yumlet.js",
9735 media: 1,
9736 pu: 1
9737 }]
9738 ],
9739 email: [
9740 ["Google Gmail", "google_gmail", "gmail", "DD5347", {
9741 type: "email",
9742 pu: 1
9743 }],
9744 ["AOL Mail", "aol_mail", "aol", "2A2A2A", {
9745 type: "email",
9746 pu: 1
9747 }],
9748 ["Outlook.com", "outlook_com", "outlook_com", "0072C6", {
9749 type: "email"
9750 }],
9751 ["Yahoo Mail", "yahoo_mail", "yahoo", "400090", {
9752 type: "email"
9753 }]
9754 ]
9755 }, b.feed = {
9756 most: [
9757 ["Feed", "feed", "feed", "E3702D", {
9758 url: "${link_noenc}"
9759 }],
9760 ["Feedly", "feedly", "feedly", "2BB24C"],
9761 ["My Yahoo", "my_yahoo", "yahoo", "400090"],
9762 ["FeedBlitz", "feedblitz", "feedblitz", "FF8B23", {
9763 type: "email"
9764 }],
9765 ["AOL Reader", "my_aol", "aol", "2A2A2A"],
9766 ["The Old Reader", "oldreader", "oldreader", "D73F31"],
9767 ["Agregator", "agregator", "agregator", "359440"],
9768 ["Bitty Browser Preview", "bitty_browser_preview", "bitty", "999"],
9769 ["Daily Rotation", "daily_rotation", "dailyrotation", "2A2A2A"],
9770 ["Feed Mailer", "feed_mailer", "feedmailer", "78A8D1"],
9771 ["FeedBucket", "feedbucket", "feedbucket", "E3702D"],
9772 ["iTunes", "itunes", "itunes", "FB233A", {
9773 url: "itpc://${link_nohttp}"
9774 }],
9775 ["KlipFolio", "klipfolio", "klipfolio", "E82329"],
9776 ["Miro", "miro", "miro", "D41700"],
9777 ["Netvibes", "netvibes", "netvibes", "7CA900"],
9778 ["NewsAlloy", "newsalloy", "newsalloy", "8E2B3D"],
9779 ["NewsIsFree", "newsisfree", "newsisfree", "316CA9"],
9780 ["Outlook", "outlook", "outlook_com", "0072C6", {
9781 url: "feed://${link_nohttp}"
9782 }],
9783 ["PodNova", "podnova", "podnova", "B50419"],
9784 ["Protopage News Feeds", "protopage_news_feeds", "protopage", "413FFF"],
9785 ["Symbaloo Bookmarks", "symbaloo_bookmarks", "symbaloo", "6DA8F7"],
9786 ["The Free Dictionary", "the_free_dictionary", "thefreedictionary", "004B85"],
9787 ["The Free Library", "the_free_library", "thefreelibrary", "004B85"],
9788 ["WINKsite", "winksite", "winksite", "6FE738"]
9789 ],
9790 email: [
9791 ["FeedBlitz", "feedblitz", "feedblitz", "FF8B23", {
9792 type: "email"
9793 }]
9794 ]
9795 }, a2a.services = b.page.most.concat(b.feed.most);
9796 var c = a2a.type,
9797 d = a2a[c],
9798 e = "feed" == c ? "feed" : "page",
9799 f = a2a.c;
9800 location.host.split(".").slice(-1);
9801 d.find_focused = !1, d.show_all = !1, d.onclick = f.onclick || !1, d.show_title = f.show_title || !1, d.num_services = f.num_services || 8, d.exclude_services = f.exclude_services || !1, d.custom_services = f.custom_services || !1, a2a.locale = a2a.i18n(), a2a.locale && "custom" != a2a.locale ? (a2a.loadExtScript(f.static_server + "/locale/" + a2a.locale + ".js", function() {
9802 return "" != a2a_localize
9803 }, function() {
9804 for (f.localize = a2a_localize, a2a["create_" + a2a.type + "_dropdown"](c, b[e]); a2a.fn_queue.length > 0;) a2a.fn_queue.shift()();
9805 a2a.locale = null, a2a.GA(1), a2a.init_show(), a2a.ready()
9806 }), f.menu_type = !1) : (a2a["create_" + a2a.type + "_dropdown"](c, b[e]), a2a.GA())
9807 }
9808 },
9809 function() {
9810 document.body && (a2a.init_all("page"), a2a.ready()), a2a.dom.ready(function() {
9811 a2a.init_all("page"), a2a.ready()
9812 })
9813 }();