Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (c, b) {
- if (typeof module === 'object' && typeof module.exports === 'object') {
- module.exports = c.document ? b(c, true) : function (d) {
- if (!d.document) {
- throw new Error('jQuery requires a window with a document')
- }
- return b(d)
- }
- } else {
- b(c)
- }
- }(typeof window !== 'undefined' ? window : this, function (a6, aw) {
- var aQ = [
- ];
- var Q = aQ.slice;
- var aA = aQ.concat;
- var y = aQ.push;
- var bV = aQ.indexOf;
- var ad = {
- };
- var z = ad.toString;
- var L = ad.hasOwnProperty;
- var E = {
- };
- var aj = '1.11.1',
- bJ = function (e, i) {
- return new bJ.fn.init(e, i)
- },
- F = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
- bT = /^-ms-/,
- aX = /-([\da-z])/gi,
- P = function (e, i) {
- return i.toUpperCase()
- };
- bJ.fn = bJ.prototype = {
- jquery: aj,
- constructor: bJ,
- selector: '',
- length: 0,
- toArray: function () {
- return Q.call(this)
- },
- get: function (e) {
- return e != null ? (e < 0 ? this[e + this.length] : this[e]) : Q.call(this)
- },
- pushStack: function (e) {
- var i = bJ.merge(this.constructor(), e);
- i.prevObject = this;
- i.context = this.context;
- return i
- },
- each: function (i, e) {
- return bJ.each(this, i, e)
- },
- map: function (e) {
- return this.pushStack(bJ.map(this, function (b8, b7) {
- return e.call(b8, b7, b8)
- }))
- },
- slice: function () {
- return this.pushStack(Q.apply(this, arguments))
- },
- first: function () {
- return this.eq(0)
- },
- last: function () {
- return this.eq( - 1)
- },
- eq: function (b8) {
- var e = this.length,
- b7 = + b8 + (b8 < 0 ? e : 0);
- return this.pushStack(b7 >= 0 && b7 < e ? [
- this[b7]
- ] : [
- ])
- },
- end: function () {
- return this.prevObject || this.constructor(null)
- },
- push: y,
- sort: aQ.sort,
- splice: aQ.splice
- };
- bJ.extend = bJ.fn.extend = function () {
- var e,
- cc,
- b7,
- b8,
- cf,
- cd,
- cb = arguments[0] || {
- },
- ca = 1,
- b9 = arguments.length,
- ce = false;
- if (typeof cb === 'boolean') {
- ce = cb;
- cb = arguments[ca] || {
- };
- ca++
- }
- if (typeof cb !== 'object' && !bJ.isFunction(cb)) {
- cb = {
- }
- }
- if (ca === b9) {
- cb = this;
- ca--
- }
- for (; ca < b9; ca++) {
- if ((cf = arguments[ca]) != null) {
- for (b8 in cf) {
- e = cb[b8];
- b7 = cf[b8];
- if (cb === b7) {
- continue
- }
- if (ce && b7 && (bJ.isPlainObject(b7) || (cc = bJ.isArray(b7)))) {
- if (cc) {
- cc = false;
- cd = e && bJ.isArray(e) ? e : [
- ]
- } else {
- cd = e && bJ.isPlainObject(e) ? e : {
- }
- }
- cb[b8] = bJ.extend(ce, cd, b7)
- } else {
- if (b7 !== undefined) {
- cb[b8] = b7
- }
- }
- }
- }
- }
- return cb
- };
- bJ.extend({
- expando: 'jQuery' + (aj + Math.random()).replace(/\D/g, ''),
- isReady: true,
- error: function (e) {
- throw new Error(e)
- },
- noop: function () {
- },
- isFunction: function (e) {
- return bJ.type(e) === 'function'
- },
- isArray: Array.isArray || function (e) {
- return bJ.type(e) === 'array'
- },
- isWindow: function (e) {
- return e != null && e == e.window
- },
- isNumeric: function (e) {
- return !bJ.isArray(e) && e - parseFloat(e) >= 0
- },
- isEmptyObject: function (i) {
- var e;
- for (e in i) {
- return false
- }
- return true
- },
- isPlainObject: function (b8) {
- var i;
- if (!b8 || bJ.type(b8) !== 'object' || b8.nodeType || bJ.isWindow(b8)) {
- return false
- }
- try {
- if (b8.constructor && !L.call(b8, 'constructor') && !L.call(b8.constructor.prototype, 'isPrototypeOf')) {
- return false
- }
- } catch (b7) {
- return false
- }
- if (E.ownLast) {
- for (i in b8) {
- return L.call(b8, i)
- }
- }
- for (i in b8) {
- }
- return i === undefined || L.call(b8, i)
- },
- type: function (e) {
- if (e == null) {
- return e + ''
- }
- return typeof e === 'object' || typeof e === 'function' ? ad[z.call(e)] || 'object' : typeof e
- },
- globalEval: function (e) {
- if (e && bJ.trim(e)) {
- (a6.execScript || function (i) {
- a6['eval'].call(a6, i)
- }) (e)
- }
- },
- camelCase: function (e) {
- return e.replace(bT, 'ms-').replace(aX, P)
- },
- nodeName: function (i, e) {
- return i.nodeName && i.nodeName.toLowerCase() === e.toLowerCase()
- },
- each: function (cb, cc, b7) {
- var ca,
- b8 = 0,
- b9 = cb.length,
- e = ae(cb);
- if (b7) {
- if (e) {
- for (; b8 < b9; b8++) {
- ca = cc.apply(cb[b8], b7);
- if (ca === false) {
- break
- }
- }
- } else {
- for (b8 in cb) {
- ca = cc.apply(cb[b8], b7);
- if (ca === false) {
- break
- }
- }
- }
- } else {
- if (e) {
- for (; b8 < b9; b8++) {
- ca = cc.call(cb[b8], b8, cb[b8]);
- if (ca === false) {
- break
- }
- }
- } else {
- for (b8 in cb) {
- ca = cc.call(cb[b8], b8, cb[b8]);
- if (ca === false) {
- break
- }
- }
- }
- }
- return cb
- },
- trim: function (e) {
- return e == null ? '' : (e + '').replace(F, '')
- },
- makeArray: function (e, b7) {
- var i = b7 || [
- ];
- if (e != null) {
- if (ae(Object(e))) {
- bJ.merge(i, typeof e === 'string' ? [
- e
- ] : e)
- } else {
- y.call(i, e)
- }
- }
- return i
- },
- inArray: function (b9, b7, b8) {
- var e;
- if (b7) {
- if (bV) {
- return bV.call(b7, b9, b8)
- }
- e = b7.length;
- b8 = b8 ? b8 < 0 ? Math.max(0, e + b8) : b8 : 0;
- for (; b8 < e; b8++) {
- if (b8 in b7 && b7[b8] === b9) {
- return b8
- }
- }
- }
- return - 1
- },
- merge: function (ca, b8) {
- var e = + b8.length,
- b7 = 0,
- b9 = ca.length;
- while (b7 < e) {
- ca[b9++] = b8[b7++]
- }
- if (e !== e) {
- while (b8[b7] !== undefined) {
- ca[b9++] = b8[b7++]
- }
- }
- ca.length = b9;
- return ca
- },
- grep: function (e, cd, ca) {
- var cc,
- b9 = [
- ],
- b7 = 0,
- b8 = e.length,
- cb = !ca;
- for (; b7 < b8; b7++) {
- cc = !cd(e[b7], b7);
- if (cc !== cb) {
- b9.push(e[b7])
- }
- }
- return b9
- },
- map: function (b8, cd, e) {
- var cc,
- ca = 0,
- cb = b8.length,
- b7 = ae(b8),
- b9 = [
- ];
- if (b7) {
- for (; ca < cb; ca++) {
- cc = cd(b8[ca], ca, e);
- if (cc != null) {
- b9.push(cc)
- }
- }
- } else {
- for (ca in b8) {
- cc = cd(b8[ca], ca, e);
- if (cc != null) {
- b9.push(cc)
- }
- }
- }
- return aA.apply([], b9)
- },
- guid: 1,
- proxy: function (b9, b8) {
- var e,
- b7,
- i;
- if (typeof b8 === 'string') {
- i = b9[b8];
- b8 = b9;
- b9 = i
- }
- if (!bJ.isFunction(b9)) {
- return undefined
- }
- e = Q.call(arguments, 2);
- b7 = function () {
- return b9.apply(b8 || this, e.concat(Q.call(arguments)))
- };
- b7.guid = b9.guid = b9.guid || bJ.guid++;
- return b7
- },
- now: function () {
- return + (new Date())
- },
- support: E
- });
- bJ.each('Boolean Number String Function Array Date RegExp Object Error'.split(' '), function (b7, e) {
- ad['[object ' + e + ']'] = e.toLowerCase()
- });
- function ae(b7) {
- var i = b7.length,
- e = bJ.type(b7);
- if (e === 'function' || bJ.isWindow(b7)) {
- return false
- }
- if (b7.nodeType === 1 && i) {
- return true
- }
- return e === 'array' || i === 0 || typeof i === 'number' && i > 0 && (i - 1) in b7
- }
- var o = (function (df) {
- var cy,
- di,
- co,
- cH,
- cK,
- ci,
- cW,
- dh,
- dm,
- cI,
- cX,
- cZ,
- cC,
- cp,
- c8,
- c3,
- dg,
- cf,
- cF,
- da = 'sizzle' + - (new Date()),
- cJ = df.document,
- dj = 0,
- c4 = 0,
- ca = cA(),
- c9 = cA(),
- cG = cA(),
- cE = function (i, e) {
- if (i === e) {
- cX = true
- }
- return 0
- },
- de = typeof undefined,
- cQ = 1 << 31,
- cO = ({
- }).hasOwnProperty,
- dc = [
- ],
- dd = dc.pop,
- cM = dc.push,
- b8 = dc.push,
- cn = dc.slice,
- ce = dc.indexOf || function (dp) {
- var dn = 0,
- e = this.length;
- for (; dn < e; dn++) {
- if (this[dn] === dp) {
- return dn
- }
- }
- return - 1
- },
- b9 = 'checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',
- cq = '[\\x20\\t\\r\\n\\f]',
- b7 = '(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+',
- cL = b7.replace('w', 'w#'),
- c6 = '\\[' + cq + '*(' + b7 + ')(?:' + cq + '*([*^$|!~]?=)' + cq + '*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|(' + cL + '))|)' + cq + '*\\]',
- cl = ':(' + b7 + ')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|' + c6 + ')*)|.*)\\)|)',
- cs = new RegExp('^' + cq + '+|((?:^|[^\\\\])(?:\\\\.)*)' + cq + '+$', 'g'),
- cv = new RegExp('^' + cq + '*,' + cq + '*'),
- cB = new RegExp('^' + cq + '*([>+~]|' + cq + ')' + cq + '*'),
- cu = new RegExp('=' + cq + '*([^\\]\'"]*?)' + cq + '*\\]', 'g'),
- cS = new RegExp(cl),
- cU = new RegExp('^' + cL + '$'),
- c2 = {
- ID: new RegExp('^#(' + b7 + ')'),
- CLASS: new RegExp('^\\.(' + b7 + ')'),
- TAG: new RegExp('^(' + b7.replace('w', 'w*') + ')'),
- ATTR: new RegExp('^' + c6),
- PSEUDO: new RegExp('^' + cl),
- CHILD: new RegExp('^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(' + cq + '*(even|odd|(([+-]|)(\\d*)n|)' + cq + '*(?:([+-]|)' + cq + '*(\\d+)|))' + cq + '*\\)|)', 'i'),
- bool: new RegExp('^(?:' + b9 + ')$', 'i'),
- needsContext: new RegExp('^' + cq + '*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(' + cq + '*((?:-\\d)?\\d*)' + cq + '*\\)|)(?=[^-]|$)', 'i')
- },
- cd = /^(?:input|select|textarea|button)$/i,
- cm = /^h\d$/i,
- cP = /^[^{]+\{\s*\[native \w/,
- cR = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- c1 = /[+~]/,
- cN = /'|\\/g,
- ct = new RegExp('\\\\([\\da-f]{1,6}' + cq + '?|(' + cq + ')|.)', 'ig'),
- c5 = function (e, dp, i) {
- var dn = '0x' + dp - 65536;
- return dn !== dn || i ? dp : dn < 0 ? String.fromCharCode(dn + 65536) : String.fromCharCode(dn >> 10 | 55296, dn & 1023 | 56320)
- };
- try {
- b8.apply((dc = cn.call(cJ.childNodes)), cJ.childNodes);
- dc[cJ.childNodes.length].nodeType
- } catch (cD) {
- b8 = {
- apply: dc.length ? function (i, e) {
- cM.apply(i, cn.call(e))
- }
- : function (dq, dp) {
- var e = dq.length,
- dn = 0;
- while ((dq[e++] = dp[dn++])) {
- }
- dq.length = e - 1
- }
- }
- }
- function cw(dv, dn, dz, dB) {
- var dA,
- ds,
- dt,
- dx,
- dy,
- dr,
- dq,
- e,
- dp,
- dw;
- if ((dn ? dn.ownerDocument || dn : cJ) !== cC) {
- cZ(dn)
- }
- dn = dn || cC;
- dz = dz || [
- ];
- if (!dv || typeof dv !== 'string') {
- return dz
- }
- if ((dx = dn.nodeType) !== 1 && dx !== 9) {
- return []
- }
- if (c8 && !dB) {
- if ((dA = cR.exec(dv))) {
- if ((dt = dA[1])) {
- if (dx === 9) {
- ds = dn.getElementById(dt);
- if (ds && ds.parentNode) {
- if (ds.id === dt) {
- dz.push(ds);
- return dz
- }
- } else {
- return dz
- }
- } else {
- if (dn.ownerDocument && (ds = dn.ownerDocument.getElementById(dt)) && cF(dn, ds) && ds.id === dt) {
- dz.push(ds);
- return dz
- }
- }
- } else {
- if (dA[2]) {
- b8.apply(dz, dn.getElementsByTagName(dv));
- return dz
- } else {
- if ((dt = dA[3]) && di.getElementsByClassName && dn.getElementsByClassName) {
- b8.apply(dz, dn.getElementsByClassName(dt));
- return dz
- }
- }
- }
- }
- if (di.qsa && (!c3 || !c3.test(dv))) {
- e = dq = da;
- dp = dn;
- dw = dx === 9 && dv;
- if (dx === 1 && dn.nodeName.toLowerCase() !== 'object') {
- dr = ci(dv);
- if ((dq = dn.getAttribute('id'))) {
- e = dq.replace(cN, '\\$&')
- } else {
- dn.setAttribute('id', e)
- }
- e = '[id=\'' + e + '\'] ';
- dy = dr.length;
- while (dy--) {
- dr[dy] = e + cj(dr[dy])
- }
- dp = c1.test(dv) && cT(dn.parentNode) || dn;
- dw = dr.join(',')
- }
- if (dw) {
- try {
- b8.apply(dz, dp.querySelectorAll(dw));
- return dz
- } catch (du) {
- } finally {
- if (!dq) {
- dn.removeAttribute('id')
- }
- }
- }
- }
- }
- return dh(dv.replace(cs, '$1'), dn, dz, dB)
- }
- function cA() {
- var i = [
- ];
- function e(dn, dp) {
- if (i.push(dn + ' ') > co.cacheLength) {
- delete e[i.shift()]
- }
- return (e[dn + ' '] = dp)
- }
- return e
- }
- function ck(e) {
- e[da] = true;
- return e
- }
- function cg(i) {
- var dp = cC.createElement('div');
- try {
- return !!i(dp)
- } catch (dn) {
- return false
- } finally {
- if (dp.parentNode) {
- dp.parentNode.removeChild(dp)
- }
- dp = null
- }
- }
- function dk(dn, dq) {
- var e = dn.split('|'),
- dp = dn.length;
- while (dp--) {
- co.attrHandle[e[dp]] = dq
- }
- }
- function cb(i, e) {
- var dp = e && i,
- dn = dp && i.nodeType === 1 && e.nodeType === 1 && (~e.sourceIndex || cQ) - (~i.sourceIndex || cQ);
- if (dn) {
- return dn
- }
- if (dp) {
- while ((dp = dp.nextSibling)) {
- if (dp === e) {
- return - 1
- }
- }
- }
- return i ? 1 : - 1
- }
- function cx(e) {
- return function (dn) {
- var i = dn.nodeName.toLowerCase();
- return i === 'input' && dn.type === e
- }
- }
- function cc(e) {
- return function (dn) {
- var i = dn.nodeName.toLowerCase();
- return (i === 'input' || i === 'button') && dn.type === e
- }
- }
- function c7(e) {
- return ck(function (i) {
- i = + i;
- return ck(function (dn, ds) {
- var dq,
- dp = e([], dn.length, i),
- dr = dp.length;
- while (dr--) {
- if (dn[(dq = dp[dr])]) {
- dn[dq] = !(ds[dq] = dn[dq])
- }
- }
- })
- })
- }
- function cT(e) {
- return e && typeof e.getElementsByTagName !== de && e
- }
- di = cw.support = {
- };
- cK = cw.isXML = function (e) {
- var i = e && (e.ownerDocument || e).documentElement;
- return i ? i.nodeName !== 'HTML' : false
- };
- cZ = cw.setDocument = function (dn) {
- var e,
- dp = dn ? dn.ownerDocument || dn : cJ,
- i = dp.defaultView;
- if (dp === cC || dp.nodeType !== 9 || !dp.documentElement) {
- return cC
- }
- cC = dp;
- cp = dp.documentElement;
- c8 = !cK(dp);
- if (i && i !== i.top) {
- if (i.addEventListener) {
- i.addEventListener('unload', function () {
- cZ()
- }, false)
- } else {
- if (i.attachEvent) {
- i.attachEvent('onunload', function () {
- cZ()
- })
- }
- }
- }
- di.attributes = cg(function (dq) {
- dq.className = 'i';
- return !dq.getAttribute('className')
- });
- di.getElementsByTagName = cg(function (dq) {
- dq.appendChild(dp.createComment(''));
- return !dq.getElementsByTagName('*').length
- });
- di.getElementsByClassName = cP.test(dp.getElementsByClassName) && cg(function (dq) {
- dq.innerHTML = '<div class=\'a\'></div><div class=\'a i\'></div>';
- dq.firstChild.className = 'i';
- return dq.getElementsByClassName('i').length === 2
- });
- di.getById = cg(function (dq) {
- cp.appendChild(dq).id = da;
- return !dp.getElementsByName || !dp.getElementsByName(da).length
- });
- if (di.getById) {
- co.find.ID = function (ds, dr) {
- if (typeof dr.getElementById !== de && c8) {
- var dq = dr.getElementById(ds);
- return dq && dq.parentNode ? [
- dq
- ] : [
- ]
- }
- };
- co.filter.ID = function (dr) {
- var dq = dr.replace(ct, c5);
- return function (ds) {
- return ds.getAttribute('id') === dq
- }
- }
- } else {
- delete co.find.ID;
- co.filter.ID = function (dr) {
- var dq = dr.replace(ct, c5);
- return function (dt) {
- var ds = typeof dt.getAttributeNode !== de && dt.getAttributeNode('id');
- return ds && ds.value === dq
- }
- }
- }
- co.find.TAG = di.getElementsByTagName ? function (dq, dr) {
- if (typeof dr.getElementsByTagName !== de) {
- return dr.getElementsByTagName(dq)
- }
- }
- : function (dq, du) {
- var dv,
- dt = [
- ],
- ds = 0,
- dr = du.getElementsByTagName(dq);
- if (dq === '*') {
- while ((dv = dr[ds++])) {
- if (dv.nodeType === 1) {
- dt.push(dv)
- }
- }
- return dt
- }
- return dr
- };
- co.find.CLASS = di.getElementsByClassName && function (dr, dq) {
- if (typeof dq.getElementsByClassName !== de && c8) {
- return dq.getElementsByClassName(dr)
- }
- };
- dg = [
- ];
- c3 = [
- ];
- if ((di.qsa = cP.test(dp.querySelectorAll))) {
- cg(function (dq) {
- dq.innerHTML = '<select msallowclip=\'\'><option selected=\'\'></option></select>';
- if (dq.querySelectorAll('[msallowclip^=\'\']').length) {
- c3.push('[*^$]=' + cq + '*(?:\'\'|"")')
- }
- if (!dq.querySelectorAll('[selected]').length) {
- c3.push('\\[' + cq + '*(?:value|' + b9 + ')')
- }
- if (!dq.querySelectorAll(':checked').length) {
- c3.push(':checked')
- }
- });
- cg(function (dr) {
- var dq = dp.createElement('input');
- dq.setAttribute('type', 'hidden');
- dr.appendChild(dq).setAttribute('name', 'D');
- if (dr.querySelectorAll('[name=d]').length) {
- c3.push('name' + cq + '*[*^$|!~]?=')
- }
- if (!dr.querySelectorAll(':enabled').length) {
- c3.push(':enabled', ':disabled')
- }
- dr.querySelectorAll('*,:x');
- c3.push(',.*:')
- })
- }
- if ((di.matchesSelector = cP.test((cf = cp.matches || cp.webkitMatchesSelector || cp.mozMatchesSelector || cp.oMatchesSelector || cp.msMatchesSelector)))) {
- cg(function (dq) {
- di.disconnectedMatch = cf.call(dq, 'div');
- cf.call(dq, '[s!=\'\']:x');
- dg.push('!=', cl)
- })
- }
- c3 = c3.length && new RegExp(c3.join('|'));
- dg = dg.length && new RegExp(dg.join('|'));
- e = cP.test(cp.compareDocumentPosition);
- cF = e || cP.test(cp.contains) ? function (dr, dq) {
- var dt = dr.nodeType === 9 ? dr.documentElement : dr,
- ds = dq && dq.parentNode;
- return dr === ds || !!(ds && ds.nodeType === 1 && (dt.contains ? dt.contains(ds) : dr.compareDocumentPosition && dr.compareDocumentPosition(ds) & 16))
- }
- : function (dr, dq) {
- if (dq) {
- while ((dq = dq.parentNode)) {
- if (dq === dr) {
- return true
- }
- }
- }
- return false
- };
- cE = e ? function (dr, dq) {
- if (dr === dq) {
- cX = true;
- return 0
- }
- var ds = !dr.compareDocumentPosition - !dq.compareDocumentPosition;
- if (ds) {
- return ds
- }
- ds = (dr.ownerDocument || dr) === (dq.ownerDocument || dq) ? dr.compareDocumentPosition(dq) : 1;
- if (ds & 1 || (!di.sortDetached && dq.compareDocumentPosition(dr) === ds)) {
- if (dr === dp || dr.ownerDocument === cJ && cF(cJ, dr)) {
- return - 1
- }
- if (dq === dp || dq.ownerDocument === cJ && cF(cJ, dq)) {
- return 1
- }
- return cI ? (ce.call(cI, dr) - ce.call(cI, dq)) : 0
- }
- return ds & 4 ? - 1 : 1
- }
- : function (dr, dq) {
- if (dr === dq) {
- cX = true;
- return 0
- }
- var dx,
- du = 0,
- dw = dr.parentNode,
- dt = dq.parentNode,
- ds = [
- dr
- ],
- dv = [
- dq
- ];
- if (!dw || !dt) {
- return dr === dp ? - 1 : dq === dp ? 1 : dw ? - 1 : dt ? 1 : cI ? (ce.call(cI, dr) - ce.call(cI, dq)) : 0
- } else {
- if (dw === dt) {
- return cb(dr, dq)
- }
- }
- dx = dr;
- while ((dx = dx.parentNode)) {
- ds.unshift(dx)
- }
- dx = dq;
- while ((dx = dx.parentNode)) {
- dv.unshift(dx)
- }
- while (ds[du] === dv[du]) {
- du++
- }
- return du ? cb(ds[du], dv[du]) : ds[du] === cJ ? - 1 : dv[du] === cJ ? 1 : 0
- };
- return dp
- };
- cw.matches = function (i, e) {
- return cw(i, null, null, e)
- };
- cw.matchesSelector = function (dn, dq) {
- if ((dn.ownerDocument || dn) !== cC) {
- cZ(dn)
- }
- dq = dq.replace(cu, '=\'$1\']');
- if (di.matchesSelector && c8 && (!dg || !dg.test(dq)) && (!c3 || !c3.test(dq))) {
- try {
- var i = cf.call(dn, dq);
- if (i || di.disconnectedMatch || dn.document && dn.document.nodeType !== 11) {
- return i
- }
- } catch (dp) {
- }
- }
- return cw(dq, cC, null, [
- dn
- ]).length > 0
- };
- cw.contains = function (e, i) {
- if ((e.ownerDocument || e) !== cC) {
- cZ(e)
- }
- return cF(e, i)
- };
- cw.attr = function (dn, e) {
- if ((dn.ownerDocument || dn) !== cC) {
- cZ(dn)
- }
- var i = co.attrHandle[e.toLowerCase()],
- dp = i && cO.call(co.attrHandle, e.toLowerCase()) ? i(dn, e, !c8) : undefined;
- return dp !== undefined ? dp : di.attributes || !c8 ? dn.getAttribute(e) : (dp = dn.getAttributeNode(e)) && dp.specified ? dp.value : null
- };
- cw.error = function (e) {
- throw new Error('Syntax error, unrecognized expression: ' + e)
- };
- cw.uniqueSort = function (dp) {
- var dq,
- dr = [
- ],
- e = 0,
- dn = 0;
- cX = !di.detectDuplicates;
- cI = !di.sortStable && dp.slice(0);
- dp.sort(cE);
- if (cX) {
- while ((dq = dp[dn++])) {
- if (dq === dp[dn]) {
- e = dr.push(dn)
- }
- }
- while (e--) {
- dp.splice(dr[e], 1)
- }
- }
- cI = null;
- return dp
- };
- cH = cw.getText = function (dr) {
- var dq,
- dn = '',
- dp = 0,
- e = dr.nodeType;
- if (!e) {
- while ((dq = dr[dp++])) {
- dn += cH(dq)
- }
- } else {
- if (e === 1 || e === 9 || e === 11) {
- if (typeof dr.textContent === 'string') {
- return dr.textContent
- } else {
- for (dr = dr.firstChild; dr; dr = dr.nextSibling) {
- dn += cH(dr)
- }
- }
- } else {
- if (e === 3 || e === 4) {
- return dr.nodeValue
- }
- }
- }
- return dn
- };
- co = cw.selectors = {
- cacheLength: 50,
- createPseudo: ck,
- match: c2,
- attrHandle: {
- },
- find: {
- },
- relative: {
- '>': {
- dir: 'parentNode',
- first: true
- },
- ' ': {
- dir: 'parentNode'
- },
- '+': {
- dir: 'previousSibling',
- first: true
- },
- '~': {
- dir: 'previousSibling'
- }
- },
- preFilter: {
- ATTR: function (e) {
- e[1] = e[1].replace(ct, c5);
- e[3] = (e[3] || e[4] || e[5] || '').replace(ct, c5);
- if (e[2] === '~=') {
- e[3] = ' ' + e[3] + ' '
- }
- return e.slice(0, 4)
- },
- CHILD: function (e) {
- e[1] = e[1].toLowerCase();
- if (e[1].slice(0, 3) === 'nth') {
- if (!e[3]) {
- cw.error(e[0])
- }
- e[4] = + (e[4] ? e[5] + (e[6] || 1) : 2 * (e[3] === 'even' || e[3] === 'odd'));
- e[5] = + ((e[7] + e[8]) || e[3] === 'odd')
- } else {
- if (e[3]) {
- cw.error(e[0])
- }
- }
- return e
- },
- PSEUDO: function (i) {
- var e,
- dn = !i[6] && i[2];
- if (c2.CHILD.test(i[0])) {
- return null
- }
- if (i[3]) {
- i[2] = i[4] || i[5] || ''
- } else {
- if (dn && cS.test(dn) && (e = ci(dn, true)) && (e = dn.indexOf(')', dn.length - e) - dn.length)) {
- i[0] = i[0].slice(0, e);
- i[2] = dn.slice(0, e)
- }
- }
- return i.slice(0, 3)
- }
- },
- filter: {
- TAG: function (i) {
- var e = i.replace(ct, c5).toLowerCase();
- return i === '*' ? function () {
- return true
- }
- : function (dn) {
- return dn.nodeName && dn.nodeName.toLowerCase() === e
- }
- },
- CLASS: function (e) {
- var i = ca[e + ' '];
- return i || (i = new RegExp('(^|' + cq + ')' + e + '(' + cq + '|$)')) && ca(e, function (dn) {
- return i.test(typeof dn.className === 'string' && dn.className || typeof dn.getAttribute !== de && dn.getAttribute('class') || '')
- })
- },
- ATTR: function (dn, i, e) {
- return function (dq) {
- var dp = cw.attr(dq, dn);
- if (dp == null) {
- return i === '!='
- }
- if (!i) {
- return true
- }
- dp += '';
- return i === '=' ? dp === e : i === '!=' ? dp !== e : i === '^=' ? e && dp.indexOf(e) === 0 : i === '*=' ? e && dp.indexOf(e) > - 1 : i === '$=' ? e && dp.slice( - e.length) === e : i === '~=' ? (' ' + dp + ' ').indexOf(e) > - 1 : i === '|=' ? dp === e || dp.slice(0, e.length + 1) === e + '-' : false
- }
- },
- CHILD: function (i, dq, dp, dr, dn) {
- var dt = i.slice(0, 3) !== 'nth',
- e = i.slice( - 4) !== 'last',
- ds = dq === 'of-type';
- return dr === 1 && dn === 0 ? function (du) {
- return !!du.parentNode
- }
- : function (dA, dy, dD) {
- var du,
- dG,
- dB,
- dF,
- dC,
- dx,
- dz = dt !== e ? 'nextSibling' : 'previousSibling',
- dE = dA.parentNode,
- dw = ds && dA.nodeName.toLowerCase(),
- dv = !dD && !ds;
- if (dE) {
- if (dt) {
- while (dz) {
- dB = dA;
- while ((dB = dB[dz])) {
- if (ds ? dB.nodeName.toLowerCase() === dw : dB.nodeType === 1) {
- return false
- }
- }
- dx = dz = i === 'only' && !dx && 'nextSibling'
- }
- return true
- }
- dx = [
- e ? dE.firstChild : dE.lastChild
- ];
- if (e && dv) {
- dG = dE[da] || (dE[da] = {
- });
- du = dG[i] || [
- ];
- dC = du[0] === dj && du[1];
- dF = du[0] === dj && du[2];
- dB = dC && dE.childNodes[dC];
- while ((dB = ++dC && dB && dB[dz] || (dF = dC = 0) || dx.pop())) {
- if (dB.nodeType === 1 && ++dF && dB === dA) {
- dG[i] = [
- dj,
- dC,
- dF
- ];
- break
- }
- }
- } else {
- if (dv && (du = (dA[da] || (dA[da] = {
- })) [i]) && du[0] === dj) {
- dF = du[1]
- } else {
- while ((dB = ++dC && dB && dB[dz] || (dF = dC = 0) || dx.pop())) {
- if ((ds ? dB.nodeName.toLowerCase() === dw : dB.nodeType === 1) && ++dF) {
- if (dv) {
- (dB[da] || (dB[da] = {
- })) [i] = [
- dj,
- dF
- ]
- }
- if (dB === dA) {
- break
- }
- }
- }
- }
- }
- dF -= dn;
- return dF === dr || (dF % dr === 0 && dF / dr >= 0)
- }
- }
- },
- PSEUDO: function (dp, dn) {
- var e,
- i = co.pseudos[dp] || co.setFilters[dp.toLowerCase()] || cw.error('unsupported pseudo: ' + dp);
- if (i[da]) {
- return i(dn)
- }
- if (i.length > 1) {
- e = [
- dp,
- dp,
- '',
- dn
- ];
- return co.setFilters.hasOwnProperty(dp.toLowerCase()) ? ck(function (ds, du) {
- var dr,
- dq = i(ds, dn),
- dt = dq.length;
- while (dt--) {
- dr = ce.call(ds, dq[dt]);
- ds[dr] = !(du[dr] = dq[dt])
- }
- }) : function (dq) {
- return i(dq, 0, e)
- }
- }
- return i
- }
- },
- pseudos: {
- not: ck(function (e) {
- var i = [
- ],
- dn = [
- ],
- dp = cW(e.replace(cs, '$1'));
- return dp[da] ? ck(function (dr, dw, du, ds) {
- var dv,
- dq = dp(dr, null, ds, [
- ]),
- dt = dr.length;
- while (dt--) {
- if ((dv = dq[dt])) {
- dr[dt] = !(dw[dt] = dv)
- }
- }
- }) : function (ds, dr, dq) {
- i[0] = ds;
- dp(i, null, dq, dn);
- return !dn.pop()
- }
- }),
- has: ck(function (e) {
- return function (i) {
- return cw(e, i).length > 0
- }
- }),
- contains: ck(function (e) {
- return function (i) {
- return (i.textContent || i.innerText || cH(i)).indexOf(e) > - 1
- }
- }),
- lang: ck(function (e) {
- if (!cU.test(e || '')) {
- cw.error('unsupported lang: ' + e)
- }
- e = e.replace(ct, c5).toLowerCase();
- return function (dn) {
- var i;
- do {
- if ((i = c8 ? dn.lang : dn.getAttribute('xml:lang') || dn.getAttribute('lang'))) {
- i = i.toLowerCase();
- return i === e || i.indexOf(e + '-') === 0
- }
- } while ((dn = dn.parentNode) && dn.nodeType === 1);
- return false
- }
- }),
- target: function (e) {
- var i = df.location && df.location.hash;
- return i && i.slice(1) === e.id
- },
- root: function (e) {
- return e === cp
- },
- focus: function (e) {
- return e === cC.activeElement && (!cC.hasFocus || cC.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
- },
- enabled: function (e) {
- return e.disabled === false
- },
- disabled: function (e) {
- return e.disabled === true
- },
- checked: function (e) {
- var i = e.nodeName.toLowerCase();
- return (i === 'input' && !!e.checked) || (i === 'option' && !!e.selected)
- },
- selected: function (e) {
- if (e.parentNode) {
- e.parentNode.selectedIndex
- }
- return e.selected === true
- },
- empty: function (e) {
- for (e = e.firstChild; e; e = e.nextSibling) {
- if (e.nodeType < 6) {
- return false
- }
- }
- return true
- },
- parent: function (e) {
- return !co.pseudos.empty(e)
- },
- header: function (e) {
- return cm.test(e.nodeName)
- },
- input: function (e) {
- return cd.test(e.nodeName)
- },
- button: function (i) {
- var e = i.nodeName.toLowerCase();
- return e === 'input' && i.type === 'button' || e === 'button'
- },
- text: function (i) {
- var e;
- return i.nodeName.toLowerCase() === 'input' && i.type === 'text' && ((e = i.getAttribute('type')) == null || e.toLowerCase() === 'text')
- },
- first: c7(function () {
- return [0]
- }),
- last: c7(function (e, i) {
- return [i - 1]
- }),
- eq: c7(function (e, dn, i) {
- return [i < 0 ? i + dn : i]
- }),
- even: c7(function (e, dp) {
- var dn = 0;
- for (; dn < dp; dn += 2) {
- e.push(dn)
- }
- return e
- }),
- odd: c7(function (e, dp) {
- var dn = 1;
- for (; dn < dp; dn += 2) {
- e.push(dn)
- }
- return e
- }),
- lt: c7(function (e, dq, dp) {
- var dn = dp < 0 ? dp + dq : dp;
- for (; --dn >= 0; ) {
- e.push(dn)
- }
- return e
- }),
- gt: c7(function (e, dq, dp) {
- var dn = dp < 0 ? dp + dq : dp;
- for (; ++dn < dq; ) {
- e.push(dn)
- }
- return e
- })
- }
- };
- co.pseudos.nth = co.pseudos.eq;
- for (cy in {
- radio: true,
- checkbox: true,
- file: true,
- password: true,
- image: true
- }) {
- co.pseudos[cy] = cx(cy)
- }
- for (cy in {
- submit: true,
- reset: true
- }) {
- co.pseudos[cy] = cc(cy)
- }
- function cV() {
- }
- cV.prototype = co.filters = co.pseudos;
- co.setFilters = new cV();
- ci = cw.tokenize = function (dq, dv) {
- var i,
- dr,
- dt,
- du,
- ds,
- dn,
- e,
- dp = c9[dq + ' '];
- if (dp) {
- return dv ? 0 : dp.slice(0)
- }
- ds = dq;
- dn = [
- ];
- e = co.preFilter;
- while (ds) {
- if (!i || (dr = cv.exec(ds))) {
- if (dr) {
- ds = ds.slice(dr[0].length) || ds
- }
- dn.push((dt = [
- ]))
- }
- i = false;
- if ((dr = cB.exec(ds))) {
- i = dr.shift();
- dt.push({
- value: i,
- type: dr[0].replace(cs, ' ')
- });
- ds = ds.slice(i.length)
- }
- for (du in co.filter) {
- if ((dr = c2[du].exec(ds)) && (!e[du] || (dr = e[du](dr)))) {
- i = dr.shift();
- dt.push({
- value: i,
- type: du,
- matches: dr
- });
- ds = ds.slice(i.length)
- }
- }
- if (!i) {
- break
- }
- }
- return dv ? ds.length : ds ? cw.error(dq) : c9(dq, dn).slice(0)
- };
- function cj(dq) {
- var dp = 0,
- dn = dq.length,
- e = '';
- for (; dp < dn; dp++) {
- e += dq[dp].value
- }
- return e
- }
- function cr(dq, dn, dp) {
- var e = dn.dir,
- dr = dp && e === 'parentNode',
- i = c4++;
- return dn.first ? function (du, dt, ds) {
- while ((du = du[e])) {
- if (du.nodeType === 1 || dr) {
- return dq(du, dt, ds)
- }
- }
- }
- : function (dw, du, dt) {
- var dx,
- dv,
- ds = [
- dj,
- i
- ];
- if (dt) {
- while ((dw = dw[e])) {
- if (dw.nodeType === 1 || dr) {
- if (dq(dw, du, dt)) {
- return true
- }
- }
- }
- } else {
- while ((dw = dw[e])) {
- if (dw.nodeType === 1 || dr) {
- dv = dw[da] || (dw[da] = {
- });
- if ((dx = dv[e]) && dx[0] === dj && dx[1] === i) {
- return (ds[2] = dx[2])
- } else {
- dv[e] = ds;
- if ((ds[2] = dq(dw, du, dt))) {
- return true
- }
- }
- }
- }
- }
- }
- }
- function dl(e) {
- return e.length > 1 ? function (dr, dq, dn) {
- var dp = e.length;
- while (dp--) {
- if (!e[dp](dr, dq, dn)) {
- return false
- }
- }
- return true
- }
- : e[0]
- }
- function cz(dn, dr, dq) {
- var dp = 0,
- e = dr.length;
- for (; dp < e; dp++) {
- cw(dn, dr[dp], dq)
- }
- return dq
- }
- function c0(e, dn, dp, dq, dt) {
- var dr,
- dw = [
- ],
- ds = 0,
- du = e.length,
- dv = dn != null;
- for (; ds < du; ds++) {
- if ((dr = e[ds])) {
- if (!dp || dp(dr, dq, dt)) {
- dw.push(dr);
- if (dv) {
- dn.push(ds)
- }
- }
- }
- }
- return dw
- }
- function ch(dn, i, dq, dp, dr, e) {
- if (dp && !dp[da]) {
- dp = ch(dp)
- }
- if (dr && !dr[da]) {
- dr = ch(dr, e)
- }
- return ck(function (dC, dz, du, dB) {
- var dE,
- dA,
- dw,
- dv = [
- ],
- dD = [
- ],
- dt = dz.length,
- ds = dC || cz(i || '*', du.nodeType ? [
- du
- ] : du, [
- ]),
- dx = dn && (dC || !i) ? c0(ds, dv, dn, du, dB) : ds,
- dy = dq ? dr || (dC ? dn : dt || dp) ? [
- ] : dz : dx;
- if (dq) {
- dq(dx, dy, du, dB)
- }
- if (dp) {
- dE = c0(dy, dD);
- dp(dE, [
- ], du, dB);
- dA = dE.length;
- while (dA--) {
- if ((dw = dE[dA])) {
- dy[dD[dA]] = !(dx[dD[dA]] = dw)
- }
- }
- }
- if (dC) {
- if (dr || dn) {
- if (dr) {
- dE = [
- ];
- dA = dy.length;
- while (dA--) {
- if ((dw = dy[dA])) {
- dE.push((dx[dA] = dw))
- }
- }
- dr(null, (dy = [
- ]), dE, dB)
- }
- dA = dy.length;
- while (dA--) {
- if ((dw = dy[dA]) && (dE = dr ? ce.call(dC, dw) : dv[dA]) > - 1) {
- dC[dE] = !(dz[dE] = dw)
- }
- }
- }
- } else {
- dy = c0(dy === dz ? dy.splice(dt, dy.length) : dy);
- if (dr) {
- dr(null, dz, dy, dB)
- } else {
- b8.apply(dz, dy)
- }
- }
- })
- }
- function db(dt) {
- var dn,
- dr,
- dp,
- ds = dt.length,
- dw = co.relative[dt[0].type],
- dx = dw || co.relative[' '],
- dq = dw ? 1 : 0,
- du = cr(function (i) {
- return i === dn
- }, dx, true),
- dv = cr(function (i) {
- return ce.call(dn, i) > - 1
- }, dx, true),
- e = [
- function (dz, dy, i) {
- return (!dw && (i || dy !== dm)) || ((dn = dy).nodeType ? du(dz, dy, i) : dv(dz, dy, i))
- }
- ];
- for (; dq < ds; dq++) {
- if ((dr = co.relative[dt[dq].type])) {
- e = [
- cr(dl(e), dr)
- ]
- } else {
- dr = co.filter[dt[dq].type].apply(null, dt[dq].matches);
- if (dr[da]) {
- dp = ++dq;
- for (; dp < ds; dp++) {
- if (co.relative[dt[dp].type]) {
- break
- }
- }
- return ch(dq > 1 && dl(e), dq > 1 && cj(dt.slice(0, dq - 1).concat({
- value: dt[dq - 2].type === ' ' ? '*' : ''
- })).replace(cs, '$1'), dr, dq < dp && db(dt.slice(dq, dp)), dp < ds && db((dt = dt.slice(dp))), dp < ds && cj(dt))
- }
- e.push(dr)
- }
- }
- return dl(e)
- }
- function cY(dp, dn) {
- var e = dn.length > 0,
- dq = dp.length > 0,
- i = function (dA, du, dz, dy, dD) {
- var dv,
- dw,
- dB,
- dF = 0,
- dx = '0',
- dr = dA && [
- ],
- dG = [
- ],
- dE = dm,
- dt = dA || dq && co.find.TAG('*', dD),
- ds = (dj += dE == null ? 1 : Math.random() || 0.1),
- dC = dt.length;
- if (dD) {
- dm = du !== cC && du
- }
- for (; dx !== dC && (dv = dt[dx]) != null;
- dx++) {
- if (dq && dv) {
- dw = 0;
- while ((dB = dp[dw++])) {
- if (dB(dv, du, dz)) {
- dy.push(dv);
- break
- }
- }
- if (dD) {
- dj = ds
- }
- }
- if (e) {
- if ((dv = !dB && dv)) {
- dF--
- }
- if (dA) {
- dr.push(dv)
- }
- }
- }
- dF += dx;
- if (e && dx !== dF) {
- dw = 0;
- while ((dB = dn[dw++])) {
- dB(dr, dG, du, dz)
- }
- if (dA) {
- if (dF > 0) {
- while (dx--) {
- if (!(dr[dx] || dG[dx])) {
- dG[dx] = dd.call(dy)
- }
- }
- }
- dG = c0(dG)
- }
- b8.apply(dy, dG);
- if (dD && !dA && dG.length > 0 && (dF + dn.length) > 1) {
- cw.uniqueSort(dy)
- }
- }
- if (dD) {
- dj = ds;
- dm = dE
- }
- return dr
- };
- return e ? ck(i) : i
- }
- cW = cw.compile = function (e, dp) {
- var dq,
- dn = [
- ],
- ds = [
- ],
- dr = cG[e + ' '];
- if (!dr) {
- if (!dp) {
- dp = ci(e)
- }
- dq = dp.length;
- while (dq--) {
- dr = db(dp[dq]);
- if (dr[da]) {
- dn.push(dr)
- } else {
- ds.push(dr)
- }
- }
- dr = cG(e, cY(ds, dn));
- dr.selector = e
- }
- return dr
- };
- dh = cw.select = function (dp, e, dq, dt) {
- var dr,
- dw,
- dn,
- dx,
- du,
- dv = typeof dp === 'function' && dp,
- ds = !dt && ci((dp = dv.selector || dp));
- dq = dq || [
- ];
- if (ds.length === 1) {
- dw = ds[0] = ds[0].slice(0);
- if (dw.length > 2 && (dn = dw[0]).type === 'ID' && di.getById && e.nodeType === 9 && c8 && co.relative[dw[1].type]) {
- e = (co.find.ID(dn.matches[0].replace(ct, c5), e) || [
- ]) [0];
- if (!e) {
- return dq
- } else {
- if (dv) {
- e = e.parentNode
- }
- }
- dp = dp.slice(dw.shift().value.length)
- }
- dr = c2.needsContext.test(dp) ? 0 : dw.length;
- while (dr--) {
- dn = dw[dr];
- if (co.relative[(dx = dn.type)]) {
- break
- }
- if ((du = co.find[dx])) {
- if ((dt = du(dn.matches[0].replace(ct, c5), c1.test(dw[0].type) && cT(e.parentNode) || e))) {
- dw.splice(dr, 1);
- dp = dt.length && cj(dw);
- if (!dp) {
- b8.apply(dq, dt);
- return dq
- }
- break
- }
- }
- }
- }(dv || cW(dp, ds)) (dt, e, !c8, dq, c1.test(dp) && cT(e.parentNode) || e);
- return dq
- };
- di.sortStable = da.split('').sort(cE).join('') === da;
- di.detectDuplicates = !!cX;
- cZ();
- di.sortDetached = cg(function (e) {
- return e.compareDocumentPosition(cC.createElement('div')) & 1
- });
- if (!cg(function (e) {
- e.innerHTML = '<a href=\'#\'></a>';
- return e.firstChild.getAttribute('href') === '#'
- })) {
- dk('type|href|height|width', function (i, e, dn) {
- if (!dn) {
- return i.getAttribute(e, e.toLowerCase() === 'type' ? 1 : 2)
- }
- })
- }
- if (!di.attributes || !cg(function (e) {
- e.innerHTML = '<input/>';
- e.firstChild.setAttribute('value', '');
- return e.firstChild.getAttribute('value') === ''
- })) {
- dk('value', function (i, e, dn) {
- if (!dn && i.nodeName.toLowerCase() === 'input') {
- return i.defaultValue
- }
- })
- }
- if (!cg(function (e) {
- return e.getAttribute('disabled') == null
- })) {
- dk(b9, function (i, e, dp) {
- var dn;
- if (!dp) {
- return i[e] === true ? e.toLowerCase() : (dn = i.getAttributeNode(e)) && dn.specified ? dn.value : null
- }
- })
- }
- return cw
- }) (a6);
- bJ.find = o;
- bJ.expr = o.selectors;
- bJ.expr[':'] = bJ.expr.pseudos;
- bJ.unique = o.uniqueSort;
- bJ.text = o.getText;
- bJ.isXMLDoc = o.isXML;
- bJ.contains = o.contains;
- var B = bJ.expr.match.needsContext;
- var b = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
- var aM = /^.[^:#\[\.,]*$/;
- function aS(b7, e, i) {
- if (bJ.isFunction(e)) {
- return bJ.grep(b7, function (b9, b8) {
- return !!e.call(b9, b8, b9) !== i
- })
- }
- if (e.nodeType) {
- return bJ.grep(b7, function (b8) {
- return (b8 === e) !== i
- })
- }
- if (typeof e === 'string') {
- if (aM.test(e)) {
- return bJ.filter(e, b7, i)
- }
- e = bJ.filter(e, b7)
- }
- return bJ.grep(b7, function (b8) {
- return (bJ.inArray(b8, e) >= 0) !== i
- })
- }
- bJ.filter = function (b8, e, b7) {
- var i = e[0];
- if (b7) {
- b8 = ':not(' + b8 + ')'
- }
- return e.length === 1 && i.nodeType === 1 ? bJ.find.matchesSelector(i, b8) ? [
- i
- ] : [
- ] : bJ.find.matches(b8, bJ.grep(e, function (b9) {
- return b9.nodeType === 1
- }))
- };
- bJ.fn.extend({
- find: function (b7) {
- var ca,
- b9 = [
- ],
- b8 = this,
- e = b8.length;
- if (typeof b7 !== 'string') {
- return this.pushStack(bJ(b7).filter(function () {
- for (ca = 0;
- ca < e; ca++) {
- if (bJ.contains(b8[ca], this)) {
- return true
- }
- }
- }))
- }
- for (ca = 0; ca < e; ca++) {
- bJ.find(b7, b8[ca], b9)
- }
- b9 = this.pushStack(e > 1 ? bJ.unique(b9) : b9);
- b9.selector = this.selector ? this.selector + ' ' + b7 : b7;
- return b9
- },
- filter: function (e) {
- return this.pushStack(aS(this, e || [
- ], false))
- },
- not: function (e) {
- return this.pushStack(aS(this, e || [
- ], true))
- },
- is: function (e) {
- return !!aS(this, typeof e === 'string' && B.test(e) ? bJ(e) : e || [
- ], false).length
- }
- });
- var A,
- p = a6.document,
- bu = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
- bW = bJ.fn.init = function (e, b7) {
- var i,
- b8;
- if (!e) {
- return this
- }
- if (typeof e === 'string') {
- if (e.charAt(0) === '<' && e.charAt(e.length - 1) === '>' && e.length >= 3) {
- i = [
- null,
- e,
- null
- ]
- } else {
- i = bu.exec(e)
- }
- if (i && (i[1] || !b7)) {
- if (i[1]) {
- b7 = b7 instanceof bJ ? b7[0] : b7;
- bJ.merge(this, bJ.parseHTML(i[1], b7 && b7.nodeType ? b7.ownerDocument || b7 : p, true));
- if (b.test(i[1]) && bJ.isPlainObject(b7)) {
- for (i in b7) {
- if (bJ.isFunction(this[i])) {
- this[i](b7[i])
- } else {
- this.attr(i, b7[i])
- }
- }
- }
- return this
- } else {
- b8 = p.getElementById(i[2]);
- if (b8 && b8.parentNode) {
- if (b8.id !== i[2]) {
- return A.find(e)
- }
- this.length = 1;
- this[0] = b8
- }
- this.context = p;
- this.selector = e;
- return this
- }
- } else {
- if (!b7 || b7.jquery) {
- return (b7 || A).find(e)
- } else {
- return this.constructor(b7).find(e)
- }
- }
- } else {
- if (e.nodeType) {
- this.context = this[0] = e;
- this.length = 1;
- return this
- } else {
- if (bJ.isFunction(e)) {
- return typeof A.ready !== 'undefined' ? A.ready(e) : e(bJ)
- }
- }
- }
- if (e.selector !== undefined) {
- this.selector = e.selector;
- this.context = e.context
- }
- return bJ.makeArray(e, this)
- };
- bW.prototype = bJ.fn;
- A = bJ(p);
- var bw = /^(?:parents|prev(?:Until|All))/,
- bA = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
- bJ.extend({
- dir: function (b7, i, b9) {
- var e = [
- ],
- b8 = b7[i];
- while (b8 && b8.nodeType !== 9 && (b9 === undefined || b8.nodeType !== 1 || !bJ(b8).is(b9))) {
- if (b8.nodeType === 1) {
- e.push(b8)
- }
- b8 = b8[i]
- }
- return e
- },
- sibling: function (b7, i) {
- var e = [
- ];
- for (; b7; b7 = b7.nextSibling) {
- if (b7.nodeType === 1 && b7 !== i) {
- e.push(b7)
- }
- }
- return e
- }
- });
- bJ.fn.extend({
- has: function (b9) {
- var b8,
- b7 = bJ(b9, this),
- e = b7.length;
- return this.filter(function () {
- for (b8 = 0; b8 < e; b8++) {
- if (bJ.contains(this, b7[b8])) {
- return true
- }
- }
- })
- },
- closest: function (ca, b9) {
- var cb,
- b8 = 0,
- b7 = this.length,
- e = [
- ],
- cc = B.test(ca) || typeof ca !== 'string' ? bJ(ca, b9 || this.context) : 0;
- for (; b8 < b7; b8++) {
- for (cb = this[b8]; cb && cb !== b9; cb = cb.parentNode) {
- if (cb.nodeType < 11 && (cc ? cc.index(cb) > - 1 : cb.nodeType === 1 && bJ.find.matchesSelector(cb, ca))) {
- e.push(cb);
- break
- }
- }
- }
- return this.pushStack(e.length > 1 ? bJ.unique(e) : e)
- },
- index: function (e) {
- if (!e) {
- return (this[0] && this[0].parentNode) ? this.first().prevAll().length : - 1
- }
- if (typeof e === 'string') {
- return bJ.inArray(this[0], bJ(e))
- }
- return bJ.inArray(e.jquery ? e[0] : e, this)
- },
- add: function (e, i) {
- return this.pushStack(bJ.unique(bJ.merge(this.get(), bJ(e, i))))
- },
- addBack: function (e) {
- return this.add(e == null ? this.prevObject : this.prevObject.filter(e))
- }
- });
- function aZ(i, e) {
- do {
- i = i[e]
- } while (i && i.nodeType !== 1);
- return i
- }
- bJ.each({
- parent: function (i) {
- var e = i.parentNode;
- return e && e.nodeType !== 11 ? e : null
- },
- parents: function (e) {
- return bJ.dir(e, 'parentNode')
- },
- parentsUntil: function (b7, e, b8) {
- return bJ.dir(b7, 'parentNode', b8)
- },
- next: function (e) {
- return aZ(e, 'nextSibling')
- },
- prev: function (e) {
- return aZ(e, 'previousSibling')
- },
- nextAll: function (e) {
- return bJ.dir(e, 'nextSibling')
- },
- prevAll: function (e) {
- return bJ.dir(e, 'previousSibling')
- },
- nextUntil: function (b7, e, b8) {
- return bJ.dir(b7, 'nextSibling', b8)
- },
- prevUntil: function (b7, e, b8) {
- return bJ.dir(b7, 'previousSibling', b8)
- },
- siblings: function (e) {
- return bJ.sibling((e.parentNode || {
- }).firstChild, e)
- },
- children: function (e) {
- return bJ.sibling(e.firstChild)
- },
- contents: function (e) {
- return bJ.nodeName(e, 'iframe') ? e.contentDocument || e.contentWindow.document : bJ.merge([], e.childNodes)
- }
- }, function (e, i) {
- bJ.fn[e] = function (b9, b7) {
- var b8 = bJ.map(this, i, b9);
- if (e.slice( - 5) !== 'Until') {
- b7 = b9
- }
- if (b7 && typeof b7 === 'string') {
- b8 = bJ.filter(b7, b8)
- }
- if (this.length > 1) {
- if (!bA[e]) {
- b8 = bJ.unique(b8)
- }
- if (bw.test(e)) {
- b8 = b8.reverse()
- }
- }
- return this.pushStack(b8)
- }
- });
- var aG = (/\S+/g);
- var b3 = {
- };
- function ag(i) {
- var e = b3[i] = {
- };
- bJ.each(i.match(aG) || [
- ], function (b8, b7) {
- e[b7] = true
- });
- return e
- }
- bJ.Callbacks = function (cf) {
- cf = typeof cf === 'string' ? (b3[cf] || ag(cf)) : bJ.extend({
- }, cf);
- var b9,
- b8,
- e,
- ca,
- cb,
- b7,
- cc = [
- ],
- cd = !cf.once && [
- ],
- i = function (cg) {
- b8 = cf.memory && cg;
- e = true;
- cb = b7 || 0;
- b7 = 0;
- ca = cc.length;
- b9 = true;
- for (; cc && cb < ca; cb++) {
- if (cc[cb].apply(cg[0], cg[1]) === false && cf.stopOnFalse) {
- b8 = false;
- break
- }
- }
- b9 = false;
- if (cc) {
- if (cd) {
- if (cd.length) {
- i(cd.shift())
- }
- } else {
- if (b8) {
- cc = [
- ]
- } else {
- ce.disable()
- }
- }
- }
- },
- ce = {
- add: function () {
- if (cc) {
- var ch = cc.length;
- (function cg(ci) {
- bJ.each(ci, function (ck, cj) {
- var cl = bJ.type(cj);
- if (cl === 'function') {
- if (!cf.unique || !ce.has(cj)) {
- cc.push(cj)
- }
- } else {
- if (cj && cj.length && cl !== 'string') {
- cg(cj)
- }
- }
- })
- }) (arguments);
- if (b9) {
- ca = cc.length
- } else {
- if (b8) {
- b7 = ch;
- i(b8)
- }
- }
- }
- return this
- },
- remove: function () {
- if (cc) {
- bJ.each(arguments, function (ci, cg) {
- var ch;
- while ((ch = bJ.inArray(cg, cc, ch)) > - 1) {
- cc.splice(ch, 1);
- if (b9) {
- if (ch <= ca) {
- ca--
- }
- if (ch <= cb) {
- cb--
- }
- }
- }
- })
- }
- return this
- },
- has: function (cg) {
- return cg ? bJ.inArray(cg, cc) > - 1 : !!(cc && cc.length)
- },
- empty: function () {
- cc = [
- ];
- ca = 0;
- return this
- },
- disable: function () {
- cc = cd = b8 = undefined;
- return this
- },
- disabled: function () {
- return !cc
- },
- lock: function () {
- cd = undefined;
- if (!b8) {
- ce.disable()
- }
- return this
- },
- locked: function () {
- return !cd
- },
- fireWith: function (ch, cg) {
- if (cc && (!e || cd)) {
- cg = cg || [
- ];
- cg = [
- ch,
- cg.slice ? cg.slice() : cg
- ];
- if (b9) {
- cd.push(cg)
- } else {
- i(cg)
- }
- }
- return this
- },
- fire: function () {
- ce.fireWith(this, arguments);
- return this
- },
- fired: function () {
- return !!e
- }
- };
- return ce
- };
- bJ.extend({
- Deferred: function (b7) {
- var i = [
- ['resolve',
- 'done',
- bJ.Callbacks('once memory'),
- 'resolved'],
- [
- 'reject',
- 'fail',
- bJ.Callbacks('once memory'),
- 'rejected'
- ],
- [
- 'notify',
- 'progress',
- bJ.Callbacks('memory')
- ]
- ],
- b8 = 'pending',
- b9 = {
- state: function () {
- return b8
- },
- always: function () {
- e.done(arguments).fail(arguments);
- return this
- },
- then: function () {
- var ca = arguments;
- return bJ.Deferred(function (cb) {
- bJ.each(i, function (cd, cc) {
- var ce = bJ.isFunction(ca[cd]) && ca[cd];
- e[cc[1]](function () {
- var cf = ce && ce.apply(this, arguments);
- if (cf && bJ.isFunction(cf.promise)) {
- cf.promise().done(cb.resolve).fail(cb.reject).progress(cb.notify)
- } else {
- cb[cc[0] + 'With'](this === b9 ? cb.promise() : this, ce ? [
- cf
- ] : arguments)
- }
- })
- });
- ca = null
- }).promise()
- },
- promise: function (ca) {
- return ca != null ? bJ.extend(ca, b9) : b9
- }
- },
- e = {
- };
- b9.pipe = b9.then;
- bJ.each(i, function (cb, ca) {
- var cd = ca[2],
- cc = ca[3];
- b9[ca[1]] = cd.add;
- if (cc) {
- cd.add(function () {
- b8 = cc
- }, i[cb ^ 1][2].disable, i[2][2].lock)
- }
- e[ca[0]] = function () {
- e[ca[0] + 'With'](this === e ? b9 : this, arguments);
- return this
- };
- e[ca[0] + 'With'] = cd.fireWith
- });
- b9.promise(e);
- if (b7) {
- b7.call(e, e)
- }
- return e
- },
- when: function (ca) {
- var b8 = 0,
- cc = Q.call(arguments),
- e = cc.length,
- b7 = e !== 1 || (ca && bJ.isFunction(ca.promise)) ? e : 0,
- cf = b7 === 1 ? ca : bJ.Deferred(),
- b9 = function (ch, ci, cg) {
- return function (i) {
- ci[ch] = this;
- cg[ch] = arguments.length > 1 ? Q.call(arguments) : i;
- if (cg === ce) {
- cf.notifyWith(ci, cg)
- } else {
- if (!(--b7)) {
- cf.resolveWith(ci, cg)
- }
- }
- }
- },
- ce,
- cb,
- cd;
- if (e > 1) {
- ce = new Array(e);
- cb = new Array(e);
- cd = new Array(e);
- for (; b8 < e; b8++) {
- if (cc[b8] && bJ.isFunction(cc[b8].promise)) {
- cc[b8].promise().done(b9(b8, cd, cc)).fail(cf.reject).progress(b9(b8, cb, ce))
- } else {
- --b7
- }
- }
- }
- if (!b7) {
- cf.resolveWith(cd, cc)
- }
- return cf.promise()
- }
- });
- var al;
- bJ.fn.ready = function (e) {
- bJ.ready.promise().done(e);
- return this
- };
- bJ.extend({
- isReady: false,
- readyWait: 1,
- holdReady: function (e) {
- if (e) {
- bJ.readyWait++
- } else {
- bJ.ready(true)
- }
- },
- ready: function (e) {
- if (e === true ? --bJ.readyWait : bJ.isReady) {
- return
- }
- if (!p.body) {
- return setTimeout(bJ.ready)
- }
- bJ.isReady = true;
- if (e !== true && --bJ.readyWait > 0) {
- return
- }
- al.resolveWith(p, [
- bJ
- ]);
- if (bJ.fn.triggerHandler) {
- bJ(p).triggerHandler('ready');
- bJ(p).off('ready')
- }
- }
- });
- function bn() {
- if (p.addEventListener) {
- p.removeEventListener('DOMContentLoaded', b0, false);
- a6.removeEventListener('load', b0, false)
- } else {
- p.detachEvent('onreadystatechange', b0);
- a6.detachEvent('onload', b0)
- }
- }
- function b0() {
- if (p.addEventListener || event.type === 'load' || p.readyState === 'complete') {
- bn();
- bJ.ready()
- }
- }
- bJ.ready.promise = function (b9) {
- if (!al) {
- al = bJ.Deferred();
- if (p.readyState === 'complete') {
- setTimeout(bJ.ready)
- } else {
- if (p.addEventListener) {
- p.addEventListener('DOMContentLoaded', b0, false);
- a6.addEventListener('load', b0, false)
- } else {
- p.attachEvent('onreadystatechange', b0);
- a6.attachEvent('onload', b0);
- var b8 = false;
- try {
- b8 = a6.frameElement == null && p.documentElement
- } catch (b7) {
- }
- if (b8 && b8.doScroll) {
- (function i() {
- if (!bJ.isReady) {
- try {
- b8.doScroll('left')
- } catch (ca) {
- return setTimeout(i, 50)
- }
- bn();
- bJ.ready()
- }
- }) ()
- }
- }
- }
- }
- return al.promise(b9)
- };
- var aD = typeof undefined;
- var bi;
- for (bi in bJ(E)) {
- break
- }
- E.ownLast = bi !== '0';
- E.inlineBlockNeedsLayout = false;
- bJ(function () {
- var b7,
- b8,
- e,
- i;
- e = p.getElementsByTagName('body') [0];
- if (!e || !e.style) {
- return
- }
- b8 = p.createElement('div');
- i = p.createElement('div');
- i.style.cssText = 'position:absolute;border:0;width:0;height:0;top:0;left:-9999px';
- e.appendChild(i).appendChild(b8);
- if (typeof b8.style.zoom !== aD) {
- b8.style.cssText = 'display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1';
- E.inlineBlockNeedsLayout = b7 = b8.offsetWidth === 3;
- if (b7) {
- e.style.zoom = 1
- }
- }
- e.removeChild(i)
- });
- (function () {
- var b7 = p.createElement('div');
- if (E.deleteExpando == null) {
- E.deleteExpando = true;
- try {
- delete b7.test
- } catch (i) {
- E.deleteExpando = false
- }
- }
- b7 = null
- }) ();
- bJ.acceptData = function (b7) {
- var i = bJ.noData[(b7.nodeName + ' ').toLowerCase()],
- e = + b7.nodeType || 1;
- return e !== 1 && e !== 9 ? false : !i || i !== true && b7.getAttribute('classid') === i
- };
- var bz = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- aR = /([A-Z])/g;
- function bB(b8, b7, b9) {
- if (b9 === undefined && b8.nodeType === 1) {
- var i = 'data-' + b7.replace(aR, '-$1').toLowerCase();
- b9 = b8.getAttribute(i);
- if (typeof b9 === 'string') {
- try {
- b9 = b9 === 'true' ? true : b9 === 'false' ? false : b9 === 'null' ? null : + b9 + '' === b9 ? + b9 : bz.test(b9) ? bJ.parseJSON(b9) : b9
- } catch (ca) {
- }
- bJ.data(b8, b7, b9)
- } else {
- b9 = undefined
- }
- }
- return b9
- }
- function R(i) {
- var e;
- for (e in i) {
- if (e === 'data' && bJ.isEmptyObject(i[e])) {
- continue
- }
- if (e !== 'toJSON') {
- return false
- }
- }
- return true
- }
- function bd(b8, i, ca, b9) {
- if (!bJ.acceptData(b8)) {
- return
- }
- var cc,
- cb,
- cd = bJ.expando,
- ce = b8.nodeType,
- e = ce ? bJ.cache : b8,
- b7 = ce ? b8[cd] : b8[cd] && cd;
- if ((!b7 || !e[b7] || (!b9 && !e[b7].data)) && ca === undefined && typeof i === 'string') {
- return
- }
- if (!b7) {
- if (ce) {
- b7 = b8[cd] = aQ.pop() || bJ.guid++
- } else {
- b7 = cd
- }
- }
- if (!e[b7]) {
- e[b7] = ce ? {
- }
- : {
- toJSON: bJ.noop
- }
- }
- if (typeof i === 'object' || typeof i === 'function') {
- if (b9) {
- e[b7] = bJ.extend(e[b7], i)
- } else {
- e[b7].data = bJ.extend(e[b7].data, i)
- }
- }
- cb = e[b7];
- if (!b9) {
- if (!cb.data) {
- cb.data = {
- }
- }
- cb = cb.data
- }
- if (ca !== undefined) {
- cb[bJ.camelCase(i)] = ca
- }
- if (typeof i === 'string') {
- cc = cb[i];
- if (cc == null) {
- cc = cb[bJ.camelCase(i)]
- }
- } else {
- cc = cb
- }
- return cc
- }
- function ac(ca, b8, e) {
- if (!bJ.acceptData(ca)) {
- return
- }
- var cc,
- b9,
- cb = ca.nodeType,
- b7 = cb ? bJ.cache : ca,
- cd = cb ? ca[bJ.expando] : bJ.expando;
- if (!b7[cd]) {
- return
- }
- if (b8) {
- cc = e ? b7[cd] : b7[cd].data;
- if (cc) {
- if (!bJ.isArray(b8)) {
- if (b8 in cc) {
- b8 = [
- b8
- ]
- } else {
- b8 = bJ.camelCase(b8);
- if (b8 in cc) {
- b8 = [
- b8
- ]
- } else {
- b8 = b8.split(' ')
- }
- }
- } else {
- b8 = b8.concat(bJ.map(b8, bJ.camelCase))
- }
- b9 = b8.length;
- while (b9--) {
- delete cc[b8[b9]]
- }
- if (e ? !R(cc) : !bJ.isEmptyObject(cc)) {
- return
- }
- }
- }
- if (!e) {
- delete b7[cd].data;
- if (!R(b7[cd])) {
- return
- }
- }
- if (cb) {
- bJ.cleanData([ca], true)
- } else {
- if (E.deleteExpando || b7 != b7.window) {
- delete b7[cd]
- } else {
- b7[cd] = null
- }
- }
- }
- bJ.extend({
- cache: {
- },
- noData: {
- 'applet ': true,
- 'embed ': true,
- 'object ': 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
- },
- hasData: function (e) {
- e = e.nodeType ? bJ.cache[e[bJ.expando]] : e[bJ.expando];
- return !!e && !R(e)
- },
- data: function (i, e, b7) {
- return bd(i, e, b7)
- },
- removeData: function (i, e) {
- return ac(i, e)
- },
- _data: function (i, e, b7) {
- return bd(i, e, b7, true)
- },
- _removeData: function (i, e) {
- return ac(i, e, true)
- }
- });
- bJ.fn.extend({
- data: function (b9, cc) {
- var b8,
- b7,
- cb,
- ca = this[0],
- e = ca && ca.attributes;
- if (b9 === undefined) {
- if (this.length) {
- cb = bJ.data(ca);
- if (ca.nodeType === 1 && !bJ._data(ca, 'parsedAttrs')) {
- b8 = e.length;
- while (b8--) {
- if (e[b8]) {
- b7 = e[b8].name;
- if (b7.indexOf('data-') === 0) {
- b7 = bJ.camelCase(b7.slice(5));
- bB(ca, b7, cb[b7])
- }
- }
- }
- bJ._data(ca, 'parsedAttrs', true)
- }
- }
- return cb
- }
- if (typeof b9 === 'object') {
- return this.each(function () {
- bJ.data(this, b9)
- })
- }
- return arguments.length > 1 ? this.each(function () {
- bJ.data(this, b9, cc)
- }) : ca ? bB(ca, b9, bJ.data(ca, b9)) : undefined
- },
- removeData: function (e) {
- return this.each(function () {
- bJ.removeData(this, e)
- })
- }
- });
- bJ.extend({
- queue: function (b7, i, b8) {
- var e;
- if (b7) {
- i = (i || 'fx') + 'queue';
- e = bJ._data(b7, i);
- if (b8) {
- if (!e || bJ.isArray(b8)) {
- e = bJ._data(b7, i, bJ.makeArray(b8))
- } else {
- e.push(b8)
- }
- }
- return e || [
- ]
- }
- },
- dequeue: function (ca, b9) {
- b9 = b9 || 'fx';
- var i = bJ.queue(ca, b9),
- cb = i.length,
- b8 = i.shift(),
- e = bJ._queueHooks(ca, b9),
- b7 = function () {
- bJ.dequeue(ca, b9)
- };
- if (b8 === 'inprogress') {
- b8 = i.shift();
- cb--
- }
- if (b8) {
- if (b9 === 'fx') {
- i.unshift('inprogress')
- }
- delete e.stop;
- b8.call(ca, b7, e)
- }
- if (!cb && e) {
- e.empty.fire()
- }
- },
- _queueHooks: function (b7, i) {
- var e = i + 'queueHooks';
- return bJ._data(b7, e) || bJ._data(b7, e, {
- empty: bJ.Callbacks('once memory').add(function () {
- bJ._removeData(b7, i + 'queue');
- bJ._removeData(b7, e)
- })
- })
- }
- });
- bJ.fn.extend({
- queue: function (e, i) {
- var b7 = 2;
- if (typeof e !== 'string') {
- i = e;
- e = 'fx';
- b7--
- }
- if (arguments.length < b7) {
- return bJ.queue(this[0], e)
- }
- return i === undefined ? this : this.each(function () {
- var b8 = bJ.queue(this, e, i);
- bJ._queueHooks(this, e);
- if (e === 'fx' && b8[0] !== 'inprogress') {
- bJ.dequeue(this, e)
- }
- })
- },
- dequeue: function (e) {
- return this.each(function () {
- bJ.dequeue(this, e)
- })
- },
- clearQueue: function (e) {
- return this.queue(e || 'fx', [
- ])
- },
- promise: function (b8, cc) {
- var b7,
- b9 = 1,
- cd = bJ.Deferred(),
- cb = this,
- e = this.length,
- ca = function () {
- if (!(--b9)) {
- cd.resolveWith(cb, [
- cb
- ])
- }
- };
- if (typeof b8 !== 'string') {
- cc = b8;
- b8 = undefined
- }
- b8 = b8 || 'fx';
- while (e--) {
- b7 = bJ._data(cb[e], b8 + 'queueHooks');
- if (b7 && b7.empty) {
- b9++;
- b7.empty.add(ca)
- }
- }
- ca();
- return cd.promise(cc)
- }
- });
- var aF = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
- var bU = [
- 'Top',
- 'Right',
- 'Bottom',
- 'Left'
- ];
- var T = function (i, e) {
- i = e || i;
- return bJ.css(i, 'display') === 'none' || !bJ.contains(i.ownerDocument, i)
- };
- var aC = bJ.access = function (e, cb, cd, cc, b9, cf, ce) {
- var b8 = 0,
- b7 = e.length,
- ca = cd == null;
- if (bJ.type(cd) === 'object') {
- b9 = true;
- for (b8 in cd) {
- bJ.access(e, cb, b8, cd[b8], true, cf, ce)
- }
- } else {
- if (cc !== undefined) {
- b9 = true;
- if (!bJ.isFunction(cc)) {
- ce = true
- }
- if (ca) {
- if (ce) {
- cb.call(e, cc);
- cb = null
- } else {
- ca = cb;
- cb = function (cg, i, ch) {
- return ca.call(bJ(cg), ch)
- }
- }
- }
- if (cb) {
- for (; b8 < b7; b8++) {
- cb(e[b8], cd, ce ? cc : cc.call(e[b8], b8, cb(e[b8], cd)))
- }
- }
- }
- }
- return b9 ? e : ca ? cb.call(e) : b7 ? cb(e[0], cd) : cf
- };
- var aN = (/^(?:checkbox|radio)$/i);
- (function () {
- var i = p.createElement('input'),
- b9 = p.createElement('div'),
- b7 = p.createDocumentFragment();
- b9.innerHTML = ' <link/><table></table><a href=\'/a\'>a</a><input type=\'checkbox\'/>';
- E.leadingWhitespace = b9.firstChild.nodeType === 3;
- E.tbody = !b9.getElementsByTagName('tbody').length;
- E.htmlSerialize = !!b9.getElementsByTagName('link').length;
- E.html5Clone = p.createElement('nav').cloneNode(true).outerHTML !== '<:nav></:nav>';
- i.type = 'checkbox';
- i.checked = true;
- b7.appendChild(i);
- E.appendChecked = i.checked;
- b9.innerHTML = '<textarea>x</textarea>';
- E.noCloneChecked = !!b9.cloneNode(true).lastChild.defaultValue;
- b7.appendChild(b9);
- b9.innerHTML = '<input type=\'radio\' checked=\'checked\' name=\'t\'/>';
- E.checkClone = b9.cloneNode(true).cloneNode(true).lastChild.checked;
- E.noCloneEvent = true;
- if (b9.attachEvent) {
- b9.attachEvent('onclick', function () {
- E.noCloneEvent = false
- });
- b9.cloneNode(true).click()
- }
- if (E.deleteExpando == null) {
- E.deleteExpando = true;
- try {
- delete b9.test
- } catch (b8) {
- E.deleteExpando = false
- }
- }
- }) ();
- (function () {
- var b7,
- e,
- b8 = p.createElement('div');
- for (b7 in {
- submit: true,
- change: true,
- focusin: true
- }) {
- e = 'on' + b7;
- if (!(E[b7 + 'Bubbles'] = e in a6)) {
- b8.setAttribute(e, 't');
- E[b7 + 'Bubbles'] = b8.attributes[e].expando === false
- }
- }
- b8 = null
- }) ();
- var bH = /^(?:input|select|textarea)$/i,
- a7 = /^key/,
- bN = /^(?:mouse|pointer|contextmenu)|click/,
- bD = /^(?:focusinfocus|focusoutblur)$/,
- by = /^([^.]*)(?:\.(.+)|)$/;
- function V() {
- return true
- }
- function aa() {
- return false
- }
- function an() {
- try {
- return p.activeElement
- } catch (e) {
- }
- }
- bJ.event = {
- global: {
- },
- add: function (b9, ce, cj, cb, ca) {
- var cc,
- ck,
- cl,
- b7,
- cg,
- cd,
- ci,
- b8,
- ch,
- e,
- i,
- cf = bJ._data(b9);
- if (!cf) {
- return
- }
- if (cj.handler) {
- b7 = cj;
- cj = b7.handler;
- ca = b7.selector
- }
- if (!cj.guid) {
- cj.guid = bJ.guid++
- }
- if (!(ck = cf.events)) {
- ck = cf.events = {
- }
- }
- if (!(cd = cf.handle)) {
- cd = cf.handle = function (cm) {
- return typeof bJ !== aD && (!cm || bJ.event.triggered !== cm.type) ? bJ.event.dispatch.apply(cd.elem, arguments) : undefined
- };
- cd.elem = b9
- }
- ce = (ce || '').match(aG) || [
- ''
- ];
- cl = ce.length;
- while (cl--) {
- cc = by.exec(ce[cl]) || [
- ];
- ch = i = cc[1];
- e = (cc[2] || '').split('.').sort();
- if (!ch) {
- continue
- }
- cg = bJ.event.special[ch] || {
- };
- ch = (ca ? cg.delegateType : cg.bindType) || ch;
- cg = bJ.event.special[ch] || {
- };
- ci = bJ.extend({
- type: ch,
- origType: i,
- data: cb,
- handler: cj,
- guid: cj.guid,
- selector: ca,
- needsContext: ca && bJ.expr.match.needsContext.test(ca),
- namespace: e.join('.')
- }, b7);
- if (!(b8 = ck[ch])) {
- b8 = ck[ch] = [
- ];
- b8.delegateCount = 0;
- if (!cg.setup || cg.setup.call(b9, cb, e, cd) === false) {
- if (b9.addEventListener) {
- b9.addEventListener(ch, cd, false)
- } else {
- if (b9.attachEvent) {
- b9.attachEvent('on' + ch, cd)
- }
- }
- }
- }
- if (cg.add) {
- cg.add.call(b9, ci);
- if (!ci.handler.guid) {
- ci.handler.guid = cj.guid
- }
- }
- if (ca) {
- b8.splice(b8.delegateCount++, 0, ci)
- } else {
- b8.push(ci)
- }
- bJ.event.global[ch] = true
- }
- b9 = null
- },
- remove: function (b8, ce, cl, b9, cd) {
- var cb,
- ci,
- cc,
- ca,
- ck,
- cj,
- cg,
- b7,
- ch,
- e,
- i,
- cf = bJ.hasData(b8) && bJ._data(b8);
- if (!cf || !(cj = cf.events)) {
- return
- }
- ce = (ce || '').match(aG) || [
- ''
- ];
- ck = ce.length;
- while (ck--) {
- cc = by.exec(ce[ck]) || [
- ];
- ch = i = cc[1];
- e = (cc[2] || '').split('.').sort();
- if (!ch) {
- for (ch in cj) {
- bJ.event.remove(b8, ch + ce[ck], cl, b9, true)
- }
- continue
- }
- cg = bJ.event.special[ch] || {
- };
- ch = (b9 ? cg.delegateType : cg.bindType) || ch;
- b7 = cj[ch] || [
- ];
- cc = cc[2] && new RegExp('(^|\\.)' + e.join('\\.(?:.*\\.|)') + '(\\.|$)');
- ca = cb = b7.length;
- while (cb--) {
- ci = b7[cb];
- if ((cd || i === ci.origType) && (!cl || cl.guid === ci.guid) && (!cc || cc.test(ci.namespace)) && (!b9 || b9 === ci.selector || b9 === '**' && ci.selector)) {
- b7.splice(cb, 1);
- if (ci.selector) {
- b7.delegateCount--
- }
- if (cg.remove) {
- cg.remove.call(b8, ci)
- }
- }
- }
- if (ca && !b7.length) {
- if (!cg.teardown || cg.teardown.call(b8, e, cf.handle) === false) {
- bJ.removeEvent(b8, ch, cf.handle)
- }
- delete cj[ch]
- }
- }
- if (bJ.isEmptyObject(cj)) {
- delete cf.handle;
- bJ._removeData(b8, 'events')
- }
- },
- trigger: function (b7, ce, ca, cl) {
- var cf,
- b9,
- cj,
- ck,
- ch,
- cd,
- cc,
- cb = [
- ca || p
- ],
- ci = L.call(b7, 'type') ? b7.type : b7,
- b8 = L.call(b7, 'namespace') ? b7.namespace.split('.') : [
- ];
- cj = cd = ca = ca || p;
- if (ca.nodeType === 3 || ca.nodeType === 8) {
- return
- }
- if (bD.test(ci + bJ.event.triggered)) {
- return
- }
- if (ci.indexOf('.') >= 0) {
- b8 = ci.split('.');
- ci = b8.shift();
- b8.sort()
- }
- b9 = ci.indexOf(':') < 0 && 'on' + ci;
- b7 = b7[bJ.expando] ? b7 : new bJ.Event(ci, typeof b7 === 'object' && b7);
- b7.isTrigger = cl ? 2 : 3;
- b7.namespace = b8.join('.');
- b7.namespace_re = b7.namespace ? new RegExp('(^|\\.)' + b8.join('\\.(?:.*\\.|)') + '(\\.|$)') : null;
- b7.result = undefined;
- if (!b7.target) {
- b7.target = ca
- }
- ce = ce == null ? [
- b7
- ] : bJ.makeArray(ce, [
- b7
- ]);
- ch = bJ.event.special[ci] || {
- };
- if (!cl && ch.trigger && ch.trigger.apply(ca, ce) === false) {
- return
- }
- if (!cl && !ch.noBubble && !bJ.isWindow(ca)) {
- ck = ch.delegateType || ci;
- if (!bD.test(ck + ci)) {
- cj = cj.parentNode
- }
- for (; cj; cj = cj.parentNode) {
- cb.push(cj);
- cd = cj
- }
- if (cd === (ca.ownerDocument || p)) {
- cb.push(cd.defaultView || cd.parentWindow || a6)
- }
- }
- cc = 0;
- while ((cj = cb[cc++]) && !b7.isPropagationStopped()) {
- b7.type = cc > 1 ? ck : ch.bindType || ci;
- cf = (bJ._data(cj, 'events') || {
- }) [b7.type] && bJ._data(cj, 'handle');
- if (cf) {
- cf.apply(cj, ce)
- }
- cf = b9 && cj[b9];
- if (cf && cf.apply && bJ.acceptData(cj)) {
- b7.result = cf.apply(cj, ce);
- if (b7.result === false) {
- b7.preventDefault()
- }
- }
- }
- b7.type = ci;
- if (!cl && !b7.isDefaultPrevented()) {
- if ((!ch._default || ch._default.apply(cb.pop(), ce) === false) && bJ.acceptData(ca)) {
- if (b9 && ca[ci] && !bJ.isWindow(ca)) {
- cd = ca[b9];
- if (cd) {
- ca[b9] = null
- }
- bJ.event.triggered = ci;
- try {
- ca[ci]()
- } catch (cg) {
- }
- bJ.event.triggered = undefined;
- if (cd) {
- ca[b9] = cd
- }
- }
- }
- }
- return b7.result
- },
- dispatch: function (e) {
- e = bJ.event.fix(e);
- var ca,
- cb,
- cf,
- b7,
- b9,
- ce = [
- ],
- cd = Q.call(arguments),
- b8 = (bJ._data(this, 'events') || {
- }) [e.type] || [
- ],
- cc = bJ.event.special[e.type] || {
- };
- cd[0] = e;
- e.delegateTarget = this;
- if (cc.preDispatch && cc.preDispatch.call(this, e) === false) {
- return
- }
- ce = bJ.event.handlers.call(this, e, b8);
- ca = 0;
- while ((b7 = ce[ca++]) && !e.isPropagationStopped()) {
- e.currentTarget = b7.elem;
- b9 = 0;
- while ((cf = b7.handlers[b9++]) && !e.isImmediatePropagationStopped()) {
- if (!e.namespace_re || e.namespace_re.test(cf.namespace)) {
- e.handleObj = cf;
- e.data = cf.data;
- cb = ((bJ.event.special[cf.origType] || {
- }).handle || cf.handler).apply(b7.elem, cd);
- if (cb !== undefined) {
- if ((e.result = cb) === false) {
- e.preventDefault();
- e.stopPropagation()
- }
- }
- }
- }
- }
- if (cc.postDispatch) {
- cc.postDispatch.call(this, e)
- }
- return e.result
- },
- handlers: function (e, b8) {
- var b7,
- cd,
- cb,
- ca,
- cc = [
- ],
- b9 = b8.delegateCount,
- ce = e.target;
- if (b9 && ce.nodeType && (!e.button || e.type !== 'click')) {
- for (;
- ce != this; ce = ce.parentNode || this) {
- if (ce.nodeType === 1 && (ce.disabled !== true || e.type !== 'click')) {
- cb = [
- ];
- for (ca = 0; ca < b9; ca++) {
- cd = b8[ca];
- b7 = cd.selector + ' ';
- if (cb[b7] === undefined) {
- cb[b7] = cd.needsContext ? bJ(b7, this).index(ce) >= 0 : bJ.find(b7, this, null, [
- ce
- ]).length
- }
- if (cb[b7]) {
- cb.push(cd)
- }
- }
- if (cb.length) {
- cc.push({
- elem: ce,
- handlers: cb
- })
- }
- }
- }
- }
- if (b9 < b8.length) {
- cc.push({
- elem: this,
- handlers: b8.slice(b9)
- })
- }
- return cc
- },
- fix: function (b9) {
- if (b9[bJ.expando]) {
- return b9
- }
- var b7,
- cc,
- cb,
- b8 = b9.type,
- e = b9,
- ca = this.fixHooks[b8];
- if (!ca) {
- this.fixHooks[b8] = ca = bN.test(b8) ? this.mouseHooks : a7.test(b8) ? this.keyHooks : {
- }
- }
- cb = ca.props ? this.props.concat(ca.props) : this.props;
- b9 = new bJ.Event(e);
- b7 = cb.length;
- while (b7--) {
- cc = cb[b7];
- b9[cc] = e[cc]
- }
- if (!b9.target) {
- b9.target = e.srcElement || p
- }
- if (b9.target.nodeType === 3) {
- b9.target = b9.target.parentNode
- }
- b9.metaKey = !!b9.metaKey;
- return ca.filter ? ca.filter(b9, e) : b9
- },
- props: 'altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which'.split(' '),
- fixHooks: {
- },
- keyHooks: {
- props: 'char charCode key keyCode'.split(' '),
- filter: function (i, e) {
- if (i.which == null) {
- i.which = e.charCode != null ? e.charCode : e.keyCode
- }
- return i
- }
- },
- mouseHooks: {
- props: 'button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement'.split(' '),
- filter: function (b8, b7) {
- var e,
- b9,
- ca,
- i = b7.button,
- cb = b7.fromElement;
- if (b8.pageX == null && b7.clientX != null) {
- b9 = b8.target.ownerDocument || p;
- ca = b9.documentElement;
- e = b9.body;
- b8.pageX = b7.clientX + (ca && ca.scrollLeft || e && e.scrollLeft || 0) - (ca && ca.clientLeft || e && e.clientLeft || 0);
- b8.pageY = b7.clientY + (ca && ca.scrollTop || e && e.scrollTop || 0) - (ca && ca.clientTop || e && e.clientTop || 0)
- }
- if (!b8.relatedTarget && cb) {
- b8.relatedTarget = cb === b8.target ? b7.toElement : cb
- }
- if (!b8.which && i !== undefined) {
- b8.which = (i & 1 ? 1 : (i & 2 ? 3 : (i & 4 ? 2 : 0)))
- }
- return b8
- }
- },
- special: {
- load: {
- noBubble: true
- },
- focus: {
- trigger: function () {
- if (this !== an() && this.focus) {
- try {
- this.focus();
- return false
- } catch (i) {
- }
- }
- },
- delegateType: 'focusin'
- },
- blur: {
- trigger: function () {
- if (this === an() && this.blur) {
- this.blur();
- return false
- }
- },
- delegateType: 'focusout'
- },
- click: {
- trigger: function () {
- if (bJ.nodeName(this, 'input') && this.type === 'checkbox' && this.click) {
- this.click();
- return false
- }
- },
- _default: function (e) {
- return bJ.nodeName(e.target, 'a')
- }
- },
- beforeunload: {
- postDispatch: function (e) {
- if (e.result !== undefined && e.originalEvent) {
- e.originalEvent.returnValue = e.result
- }
- }
- }
- },
- simulate: function (b7, b9, b8, i) {
- var ca = bJ.extend(new bJ.Event(), b8, {
- type: b7,
- isSimulated: true,
- originalEvent: {
- }
- });
- if (i) {
- bJ.event.trigger(ca, null, b9)
- } else {
- bJ.event.dispatch.call(b9, ca)
- }
- if (ca.isDefaultPrevented()) {
- b8.preventDefault()
- }
- }
- };
- bJ.removeEvent = p.removeEventListener ? function (i, e, b7) {
- if (i.removeEventListener) {
- i.removeEventListener(e, b7, false)
- }
- }
- : function (b7, i, b8) {
- var e = 'on' + i;
- if (b7.detachEvent) {
- if (typeof b7[e] === aD) {
- b7[e] = null
- }
- b7.detachEvent(e, b8)
- }
- };
- bJ.Event = function (i, e) {
- if (!(this instanceof bJ.Event)) {
- return new bJ.Event(i, e)
- }
- if (i && i.type) {
- this.originalEvent = i;
- this.type = i.type;
- this.isDefaultPrevented = i.defaultPrevented || i.defaultPrevented === undefined && i.returnValue === false ? V : aa
- } else {
- this.type = i
- }
- if (e) {
- bJ.extend(this, e)
- }
- this.timeStamp = i && i.timeStamp || bJ.now();
- this[bJ.expando] = true
- };
- bJ.Event.prototype = {
- isDefaultPrevented: aa,
- isPropagationStopped: aa,
- isImmediatePropagationStopped: aa,
- preventDefault: function () {
- var i = this.originalEvent;
- this.isDefaultPrevented = V;
- if (!i) {
- return
- }
- if (i.preventDefault) {
- i.preventDefault()
- } else {
- i.returnValue = false
- }
- },
- stopPropagation: function () {
- var i = this.originalEvent;
- this.isPropagationStopped = V;
- if (!i) {
- return
- }
- if (i.stopPropagation) {
- i.stopPropagation()
- }
- i.cancelBubble = true
- },
- stopImmediatePropagation: function () {
- var i = this.originalEvent;
- this.isImmediatePropagationStopped = V;
- if (i && i.stopImmediatePropagation) {
- i.stopImmediatePropagation()
- }
- this.stopPropagation()
- }
- };
- bJ.each({
- mouseenter: 'mouseover',
- mouseleave: 'mouseout',
- pointerenter: 'pointerover',
- pointerleave: 'pointerout'
- }, function (i, e) {
- bJ.event.special[i] = {
- delegateType: e,
- bindType: e,
- handle: function (b9) {
- var b7,
- cb = this,
- ca = b9.relatedTarget,
- b8 = b9.handleObj;
- if (!ca || (ca !== cb && !bJ.contains(cb, ca))) {
- b9.type = b8.origType;
- b7 = b8.handler.apply(this, arguments);
- b9.type = e
- }
- return b7
- }
- }
- });
- if (!E.submitBubbles) {
- bJ.event.special.submit = {
- setup: function () {
- if (bJ.nodeName(this, 'form')) {
- return false
- }
- bJ.event.add(this, 'click._submit keypress._submit', function (b8) {
- var b7 = b8.target,
- i = bJ.nodeName(b7, 'input') || bJ.nodeName(b7, 'button') ? b7.form : undefined;
- if (i && !bJ._data(i, 'submitBubbles')) {
- bJ.event.add(i, 'submit._submit', function (e) {
- e._submit_bubble = true
- });
- bJ._data(i, 'submitBubbles', true)
- }
- })
- },
- postDispatch: function (e) {
- if (e._submit_bubble) {
- delete e._submit_bubble;
- if (this.parentNode && !e.isTrigger) {
- bJ.event.simulate('submit', this.parentNode, e, true)
- }
- }
- },
- teardown: function () {
- if (bJ.nodeName(this, 'form')) {
- return false
- }
- bJ.event.remove(this, '._submit')
- }
- }
- }
- if (!E.changeBubbles) {
- bJ.event.special.change = {
- setup: function () {
- if (bH.test(this.nodeName)) {
- if (this.type === 'checkbox' || this.type === 'radio') {
- bJ.event.add(this, 'propertychange._change', function (e) {
- if (e.originalEvent.propertyName === 'checked') {
- this._just_changed = true
- }
- });
- bJ.event.add(this, 'click._change', function (e) {
- if (this._just_changed && !e.isTrigger) {
- this._just_changed = false
- }
- bJ.event.simulate('change', this, e, true)
- })
- }
- return false
- }
- bJ.event.add(this, 'beforeactivate._change', function (b7) {
- var i = b7.target;
- if (bH.test(i.nodeName) && !bJ._data(i, 'changeBubbles')) {
- bJ.event.add(i, 'change._change', function (e) {
- if (this.parentNode && !e.isSimulated && !e.isTrigger) {
- bJ.event.simulate('change', this.parentNode, e, true)
- }
- });
- bJ._data(i, 'changeBubbles', true)
- }
- })
- },
- handle: function (i) {
- var e = i.target;
- if (this !== e || i.isSimulated || i.isTrigger || (e.type !== 'radio' && e.type !== 'checkbox')) {
- return i.handleObj.handler.apply(this, arguments)
- }
- },
- teardown: function () {
- bJ.event.remove(this, '._change');
- return !bH.test(this.nodeName)
- }
- }
- }
- if (!E.focusinBubbles) {
- bJ.each({
- focus: 'focusin',
- blur: 'focusout'
- }, function (b7, e) {
- var i = function (b8) {
- bJ.event.simulate(e, b8.target, bJ.event.fix(b8), true)
- };
- bJ.event.special[e] = {
- setup: function () {
- var b9 = this.ownerDocument || this,
- b8 = bJ._data(b9, e);
- if (!b8) {
- b9.addEventListener(b7, i, true)
- }
- bJ._data(b9, e, (b8 || 0) + 1)
- },
- teardown: function () {
- var b9 = this.ownerDocument || this,
- b8 = bJ._data(b9, e) - 1;
- if (!b8) {
- b9.removeEventListener(b7, i, true);
- bJ._removeData(b9, e)
- } else {
- bJ._data(b9, e, b8)
- }
- }
- }
- })
- }
- bJ.fn.extend({
- on: function (b7, e, ca, b9, i) {
- var b8,
- cb;
- if (typeof b7 === 'object') {
- if (typeof e !== 'string') {
- ca = ca || e;
- e = undefined
- }
- for (b8 in b7) {
- this.on(b8, e, ca, b7[b8], i)
- }
- return this
- }
- if (ca == null && b9 == null) {
- b9 = e;
- ca = e = undefined
- } else {
- if (b9 == null) {
- if (typeof e === 'string') {
- b9 = ca;
- ca = undefined
- } else {
- b9 = ca;
- ca = e;
- e = undefined
- }
- }
- }
- if (b9 === false) {
- b9 = aa
- } else {
- if (!b9) {
- return this
- }
- }
- if (i === 1) {
- cb = b9;
- b9 = function (cc) {
- bJ().off(cc);
- return cb.apply(this, arguments)
- };
- b9.guid = cb.guid || (cb.guid = bJ.guid++)
- }
- return this.each(function () {
- bJ.event.add(this, b7, b9, ca, e)
- })
- },
- one: function (i, e, b8, b7) {
- return this.on(i, e, b8, b7, 1)
- },
- off: function (b7, e, b9) {
- var i,
- b8;
- if (b7 && b7.preventDefault && b7.handleObj) {
- i = b7.handleObj;
- bJ(b7.delegateTarget).off(i.namespace ? i.origType + '.' + i.namespace : i.origType, i.selector, i.handler);
- return this
- }
- if (typeof b7 === 'object') {
- for (b8 in b7) {
- this.off(b8, e, b7[b8])
- }
- return this
- }
- if (e === false || typeof e === 'function') {
- b9 = e;
- e = undefined
- }
- if (b9 === false) {
- b9 = aa
- }
- return this.each(function () {
- bJ.event.remove(this, b7, b9, e)
- })
- },
- trigger: function (e, i) {
- return this.each(function () {
- bJ.event.trigger(e, i, this)
- })
- },
- triggerHandler: function (e, b7) {
- var i = this[0];
- if (i) {
- return bJ.event.trigger(e, b7, i, true)
- }
- }
- });
- function C(e) {
- var b7 = f.split('|'),
- i = e.createDocumentFragment();
- if (i.createElement) {
- while (b7.length) {
- i.createElement(b7.pop())
- }
- }
- return i
- }
- var f = 'abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video',
- aE = / jQuery\d+="(?:null|\d+)"/g,
- N = new RegExp('<(?:' + f + ')[\\s/>]', 'i'),
- b6 = /^\s+/,
- aI = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
- q = /<([\w:]+)/,
- b1 = /<tbody/i,
- M = /<|&#?\w+;/,
- ao = /<(?:script|style|link)/i,
- bX = /checked\s*(?:[^=]|=\s*.checked.)/i,
- bC = /^$|\/(?:java|ecma)script/i,
- at = /^true\/(.*)/,
- aP = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
- X = {
- option: [
- 1,
- '<select multiple=\'multiple\'>',
- '</select>'
- ],
- legend: [
- 1,
- '<fieldset>',
- '</fieldset>'
- ],
- area: [
- 1,
- '<map>',
- '</map>'
- ],
- param: [
- 1,
- '<object>',
- '</object>'
- ],
- thead: [
- 1,
- '<table>',
- '</table>'
- ],
- tr: [
- 2,
- '<table><tbody>',
- '</tbody></table>'
- ],
- col: [
- 2,
- '<table><tbody></tbody><colgroup>',
- '</colgroup></table>'
- ],
- td: [
- 3,
- '<table><tbody><tr>',
- '</tr></tbody></table>'
- ],
- _default: E.htmlSerialize ? [
- 0,
- '',
- ''
- ] : [
- 1,
- 'X<div>',
- '</div>'
- ]
- },
- aU = C(p),
- l = aU.appendChild(p.createElement('div'));
- X.optgroup = X.option;
- X.tbody = X.tfoot = X.colgroup = X.caption = X.thead;
- X.th = X.td;
- function n(b9, e) {
- var b7,
- ca,
- b8 = 0,
- cb = typeof b9.getElementsByTagName !== aD ? b9.getElementsByTagName(e || '*') : typeof b9.querySelectorAll !== aD ? b9.querySelectorAll(e || '*') : undefined;
- if (!cb) {
- for (cb = [
- ], b7 = b9.childNodes || b9; (ca = b7[b8]) != null; b8++) {
- if (!e || bJ.nodeName(ca, e)) {
- cb.push(ca)
- } else {
- bJ.merge(cb, n(ca, e))
- }
- }
- }
- return e === undefined || e && bJ.nodeName(b9, e) ? bJ.merge([b9], cb) : cb
- }
- function bZ(e) {
- if (aN.test(e.type)) {
- e.defaultChecked = e.checked
- }
- }
- function a4(i, e) {
- return bJ.nodeName(i, 'table') && bJ.nodeName(e.nodeType !== 11 ? e : e.firstChild, 'tr') ? i.getElementsByTagName('tbody') [0] || i.appendChild(i.ownerDocument.createElement('tbody')) : i
- }
- function v(e) {
- e.type = (bJ.find.attr(e, 'type') !== null) + '/' + e.type;
- return e
- }
- function bg(i) {
- var e = at.exec(i.type);
- if (e) {
- i.type = e[1]
- } else {
- i.removeAttribute('type')
- }
- return i
- }
- function bv(e, b8) {
- var b9,
- b7 = 0;
- for (; (b9 = e[b7]) != null; b7++) {
- bJ._data(b9, 'globalEval', !b8 || bJ._data(b8[b7], 'globalEval'))
- }
- }
- function au(cd, b7) {
- if (b7.nodeType !== 1 || !bJ.hasData(cd)) {
- return
- }
- var ca,
- b9,
- e,
- cc = bJ._data(cd),
- cb = bJ._data(b7, cc),
- b8 = cc.events;
- if (b8) {
- delete cb.handle;
- cb.events = {
- };
- for (ca in b8) {
- for (b9 = 0, e = b8[ca].length; b9 < e; b9++) {
- bJ.event.add(b7, ca, b8[ca][b9])
- }
- }
- }
- if (cb.data) {
- cb.data = bJ.extend({
- }, cb.data)
- }
- }
- function U(b9, i) {
- var ca,
- b8,
- b7;
- if (i.nodeType !== 1) {
- return
- }
- ca = i.nodeName.toLowerCase();
- if (!E.noCloneEvent && i[bJ.expando]) {
- b7 = bJ._data(i);
- for (b8 in b7.events) {
- bJ.removeEvent(i, b8, b7.handle)
- }
- i.removeAttribute(bJ.expando)
- }
- if (ca === 'script' && i.text !== b9.text) {
- v(i).text = b9.text;
- bg(i)
- } else {
- if (ca === 'object') {
- if (i.parentNode) {
- i.outerHTML = b9.outerHTML
- }
- if (E.html5Clone && (b9.innerHTML && !bJ.trim(i.innerHTML))) {
- i.innerHTML = b9.innerHTML
- }
- } else {
- if (ca === 'input' && aN.test(b9.type)) {
- i.defaultChecked = i.checked = b9.checked;
- if (i.value !== b9.value) {
- i.value = b9.value
- }
- } else {
- if (ca === 'option') {
- i.defaultSelected = i.selected = b9.defaultSelected
- } else {
- if (ca === 'input' || ca === 'textarea') {
- i.defaultValue = b9.defaultValue
- }
- }
- }
- }
- }
- }
- bJ.extend({
- clone: function (b7, b9, e) {
- var cb,
- b8,
- ce,
- ca,
- cc,
- cd = bJ.contains(b7.ownerDocument, b7);
- if (E.html5Clone || bJ.isXMLDoc(b7) || !N.test('<' + b7.nodeName + '>')) {
- ce = b7.cloneNode(true)
- } else {
- l.innerHTML = b7.outerHTML;
- l.removeChild(ce = l.firstChild)
- }
- if ((!E.noCloneEvent || !E.noCloneChecked) && (b7.nodeType === 1 || b7.nodeType === 11) && !bJ.isXMLDoc(b7)) {
- cb = n(ce);
- cc = n(b7);
- for (ca = 0; (b8 = cc[ca]) != null; ++ca) {
- if (cb[ca]) {
- U(b8, cb[ca])
- }
- }
- }
- if (b9) {
- if (e) {
- cc = cc || n(b7);
- cb = cb || n(ce);
- for (ca = 0; (b8 = cc[ca]) != null; ca++) {
- au(b8, cb[ca])
- }
- } else {
- au(b7, ce)
- }
- }
- cb = n(ce, 'script');
- if (cb.length > 0) {
- bv(cb, !cd && n(b7, 'script'))
- }
- cb = cc = b8 = null;
- return ce
- },
- buildFragment: function (b7, b9, ce, cj) {
- var cf,
- cb,
- cd,
- ci,
- ck,
- ch,
- b8,
- cc = b7.length,
- ca = C(b9),
- e = [
- ],
- cg = 0;
- for (; cg < cc; cg++) {
- cb = b7[cg];
- if (cb || cb === 0) {
- if (bJ.type(cb) === 'object') {
- bJ.merge(e, cb.nodeType ? [
- cb
- ] : cb)
- } else {
- if (!M.test(cb)) {
- e.push(b9.createTextNode(cb))
- } else {
- ci = ci || ca.appendChild(b9.createElement('div'));
- ck = (q.exec(cb) || [
- '',
- ''
- ]) [1].toLowerCase();
- b8 = X[ck] || X._default;
- ci.innerHTML = b8[1] + cb.replace(aI, '<$1></$2>') + b8[2];
- cf = b8[0];
- while (cf--) {
- ci = ci.lastChild
- }
- if (!E.leadingWhitespace && b6.test(cb)) {
- e.push(b9.createTextNode(b6.exec(cb) [0]))
- }
- if (!E.tbody) {
- cb = ck === 'table' && !b1.test(cb) ? ci.firstChild : b8[1] === '<table>' && !b1.test(cb) ? ci : 0;
- cf = cb && cb.childNodes.length;
- while (cf--) {
- if (bJ.nodeName((ch = cb.childNodes[cf]), 'tbody') && !ch.childNodes.length) {
- cb.removeChild(ch)
- }
- }
- }
- bJ.merge(e, ci.childNodes);
- ci.textContent = '';
- while (ci.firstChild) {
- ci.removeChild(ci.firstChild)
- }
- ci = ca.lastChild
- }
- }
- }
- }
- if (ci) {
- ca.removeChild(ci)
- }
- if (!E.appendChecked) {
- bJ.grep(n(e, 'input'), bZ)
- }
- cg = 0;
- while ((cb = e[cg++])) {
- if (cj && bJ.inArray(cb, cj) !== - 1) {
- continue
- }
- cd = bJ.contains(cb.ownerDocument, cb);
- ci = n(ca.appendChild(cb), 'script');
- if (cd) {
- bv(ci)
- }
- if (ce) {
- cf = 0;
- while ((cb = ci[cf++])) {
- if (bC.test(cb.type || '')) {
- ce.push(cb)
- }
- }
- }
- }
- ci = null;
- return ca
- },
- cleanData: function (b7, cf) {
- var b9,
- ce,
- b8,
- ca,
- cb = 0,
- cg = bJ.expando,
- e = bJ.cache,
- cc = E.deleteExpando,
- cd = bJ.event.special;
- for (; (b9 = b7[cb]) != null; cb++) {
- if (cf || bJ.acceptData(b9)) {
- b8 = b9[cg];
- ca = b8 && e[b8];
- if (ca) {
- if (ca.events) {
- for (ce in ca.events) {
- if (cd[ce]) {
- bJ.event.remove(b9, ce)
- } else {
- bJ.removeEvent(b9, ce, ca.handle)
- }
- }
- }
- if (e[b8]) {
- delete e[b8];
- if (cc) {
- delete b9[cg]
- } else {
- if (typeof b9.removeAttribute !== aD) {
- b9.removeAttribute(cg)
- } else {
- b9[cg] = null
- }
- }
- aQ.push(b8)
- }
- }
- }
- }
- }
- });
- bJ.fn.extend({
- text: function (e) {
- return aC(this, function (i) {
- return i === undefined ? bJ.text(this) : this.empty().append((this[0] && this[0].ownerDocument || p).createTextNode(i))
- }, null, e, arguments.length)
- },
- append: function () {
- return this.domManip(arguments, function (e) {
- if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
- var i = a4(this, e);
- i.appendChild(e)
- }
- })
- },
- prepend: function () {
- return this.domManip(arguments, function (e) {
- if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
- var i = a4(this, e);
- i.insertBefore(e, i.firstChild)
- }
- })
- },
- before: function () {
- return this.domManip(arguments, function (e) {
- if (this.parentNode) {
- this.parentNode.insertBefore(e, this)
- }
- })
- },
- after: function () {
- return this.domManip(arguments, function (e) {
- if (this.parentNode) {
- this.parentNode.insertBefore(e, this.nextSibling)
- }
- })
- },
- remove: function (e, ca) {
- var b9,
- b7 = e ? bJ.filter(e, this) : this,
- b8 = 0;
- for (; (b9 = b7[b8]) != null; b8++) {
- if (!ca && b9.nodeType === 1) {
- bJ.cleanData(n(b9))
- }
- if (b9.parentNode) {
- if (ca && bJ.contains(b9.ownerDocument, b9)) {
- bv(n(b9, 'script'))
- }
- b9.parentNode.removeChild(b9)
- }
- }
- return this
- },
- empty: function () {
- var b7,
- e = 0;
- for (; (b7 = this[e]) != null; e++) {
- if (b7.nodeType === 1) {
- bJ.cleanData(n(b7, false))
- }
- while (b7.firstChild) {
- b7.removeChild(b7.firstChild)
- }
- if (b7.options && bJ.nodeName(b7, 'select')) {
- b7.options.length = 0
- }
- }
- return this
- },
- clone: function (i, e) {
- i = i == null ? false : i;
- e = e == null ? i : e;
- return this.map(function () {
- return bJ.clone(this, i, e)
- })
- },
- html: function (e) {
- return aC(this, function (ca) {
- var b9 = this[0] || {
- },
- b8 = 0,
- b7 = this.length;
- if (ca === undefined) {
- return b9.nodeType === 1 ? b9.innerHTML.replace(aE, '') : undefined
- }
- if (typeof ca === 'string' && !ao.test(ca) && (E.htmlSerialize || !N.test(ca)) && (E.leadingWhitespace || !b6.test(ca)) && !X[(q.exec(ca) || [
- '',
- ''
- ]) [1].toLowerCase()]) {
- ca = ca.replace(aI, '<$1></$2>');
- try {
- for (; b8 < b7; b8++) {
- b9 = this[b8] || {
- };
- if (b9.nodeType === 1) {
- bJ.cleanData(n(b9, false));
- b9.innerHTML = ca
- }
- }
- b9 = 0
- } catch (cb) {
- }
- }
- if (b9) {
- this.empty().append(ca)
- }
- }, null, e, arguments.length)
- },
- replaceWith: function () {
- var e = arguments[0];
- this.domManip(arguments, function (i) {
- e = this.parentNode;
- bJ.cleanData(n(this));
- if (e) {
- e.replaceChild(i, this)
- }
- });
- return e && (e.length || e.nodeType) ? this : this.remove()
- },
- detach: function (e) {
- return this.remove(e, true)
- },
- domManip: function (ce, cj) {
- ce = aA.apply([], ce);
- var cc,
- b8,
- e,
- ca,
- ch,
- cd,
- cb = 0,
- b9 = this.length,
- cg = this,
- ci = b9 - 1,
- cf = ce[0],
- b7 = bJ.isFunction(cf);
- if (b7 || (b9 > 1 && typeof cf === 'string' && !E.checkClone && bX.test(cf))) {
- return this.each(function (ck) {
- var i = cg.eq(ck);
- if (b7) {
- ce[0] = cf.call(this, ck, i.html())
- }
- i.domManip(ce, cj)
- })
- }
- if (b9) {
- cd = bJ.buildFragment(ce, this[0].ownerDocument, false, this);
- cc = cd.firstChild;
- if (cd.childNodes.length === 1) {
- cd = cc
- }
- if (cc) {
- ca = bJ.map(n(cd, 'script'), v);
- e = ca.length;
- for (; cb < b9; cb++) {
- b8 = cd;
- if (cb !== ci) {
- b8 = bJ.clone(b8, true, true);
- if (e) {
- bJ.merge(ca, n(b8, 'script'))
- }
- }
- cj.call(this[cb], b8, cb)
- }
- if (e) {
- ch = ca[ca.length - 1].ownerDocument;
- bJ.map(ca, bg);
- for (cb = 0; cb < e; cb++) {
- b8 = ca[cb];
- if (bC.test(b8.type || '') && !bJ._data(b8, 'globalEval') && bJ.contains(ch, b8)) {
- if (b8.src) {
- if (bJ._evalUrl) {
- bJ._evalUrl(b8.src)
- }
- } else {
- bJ.globalEval((b8.text || b8.textContent || b8.innerHTML || '').replace(aP, ''))
- }
- }
- }
- }
- cd = cc = null
- }
- }
- return this
- }
- });
- bJ.each({
- appendTo: 'append',
- prependTo: 'prepend',
- insertBefore: 'before',
- insertAfter: 'after',
- replaceAll: 'replaceWith'
- }, function (e, i) {
- bJ.fn[e] = function (b7) {
- var b8,
- ca = 0,
- b9 = [
- ],
- cc = bJ(b7),
- cb = cc.length - 1;
- for (; ca <= cb; ca++) {
- b8 = ca === cb ? this : this.clone(true);
- bJ(cc[ca]) [i](b8);
- y.apply(b9, b8.get())
- }
- return this.pushStack(b9)
- }
- });
- var aJ,
- bm = {
- };
- function a5(e, b9) {
- var i,
- b7 = bJ(b9.createElement(e)).appendTo(b9.body),
- b8 = a6.getDefaultComputedStyle && (i = a6.getDefaultComputedStyle(b7[0])) ? i.display : bJ.css(b7[0], 'display');
- b7.detach();
- return b8
- }
- function a1(b7) {
- var i = p,
- e = bm[b7];
- if (!e) {
- e = a5(b7, i);
- if (e === 'none' || !e) {
- aJ = (aJ || bJ('<iframe frameborder=\'0\' width=\'0\' height=\'0\'/>')).appendTo(i.documentElement);
- i = (aJ[0].contentWindow || aJ[0].contentDocument).document;
- i.write();
- i.close();
- e = a5(b7, i);
- aJ.detach()
- }
- bm[b7] = e
- }
- return e
- }(function () {
- var e;
- E.shrinkWrapBlocks = function () {
- if (e != null) {
- return e
- }
- e = false;
- var b8,
- i,
- b7;
- i = p.getElementsByTagName('body') [0];
- if (!i || !i.style) {
- return
- }
- b8 = p.createElement('div');
- b7 = p.createElement('div');
- b7.style.cssText = 'position:absolute;border:0;width:0;height:0;top:0;left:-9999px';
- i.appendChild(b7).appendChild(b8);
- if (typeof b8.style.zoom !== aD) {
- b8.style.cssText = '-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1';
- b8.appendChild(p.createElement('div')).style.width = '5px';
- e = b8.offsetWidth !== 3
- }
- i.removeChild(b7);
- return e
- }
- }) ();
- var a0 = (/^margin/);
- var Z = new RegExp('^(' + aF + ')(?!px)[a-z%]+$', 'i');
- var br,
- H,
- bp = /^(top|right|bottom|left)$/;
- if (a6.getComputedStyle) {
- br = function (e) {
- return e.ownerDocument.defaultView.getComputedStyle(e, null)
- };
- H = function (cc, i, cb) {
- var b9,
- b8,
- ca,
- e,
- b7 = cc.style;
- cb = cb || br(cc);
- e = cb ? cb.getPropertyValue(i) || cb[i] : undefined;
- if (cb) {
- if (e === '' && !bJ.contains(cc.ownerDocument, cc)) {
- e = bJ.style(cc, i)
- }
- if (Z.test(e) && a0.test(i)) {
- b9 = b7.width;
- b8 = b7.minWidth;
- ca = b7.maxWidth;
- b7.minWidth = b7.maxWidth = b7.width = e;
- e = cb.width;
- b7.width = b9;
- b7.minWidth = b8;
- b7.maxWidth = ca
- }
- }
- return e === undefined ? e : e + ''
- }
- } else {
- if (p.documentElement.currentStyle) {
- br = function (e) {
- return e.currentStyle
- };
- H = function (cb, b8, ca) {
- var cc,
- i,
- e,
- b7,
- b9 = cb.style;
- ca = ca || br(cb);
- b7 = ca ? ca[b8] : undefined;
- if (b7 == null && b9 && b9[b8]) {
- b7 = b9[b8]
- }
- if (Z.test(b7) && !bp.test(b8)) {
- cc = b9.left;
- i = cb.runtimeStyle;
- e = i && i.left;
- if (e) {
- i.left = cb.currentStyle.left
- }
- b9.left = b8 === 'fontSize' ? '1em' : b7;
- b7 = b9.pixelLeft + 'px';
- b9.left = cc;
- if (e) {
- i.left = e
- }
- }
- return b7 === undefined ? b7 : b7 + '' || 'auto'
- }
- }
- }
- function a8(e, i) {
- return {
- get: function () {
- var b7 = e();
- if (b7 == null) {
- return
- }
- if (b7) {
- delete this.get;
- return
- }
- return (this.get = i).apply(this, arguments)
- }
- }
- }(function () {
- var cc,
- ca,
- b8,
- cb,
- b7,
- b9,
- i;
- cc = p.createElement('div');
- cc.innerHTML = ' <link/><table></table><a href=\'/a\'>a</a><input type=\'checkbox\'/>';
- b8 = cc.getElementsByTagName('a') [0];
- ca = b8 && b8.style;
- if (!ca) {
- return
- }
- ca.cssText = 'float:left;opacity:.5';
- E.opacity = ca.opacity === '0.5';
- E.cssFloat = !!ca.cssFloat;
- cc.style.backgroundClip = 'content-box';
- cc.cloneNode(true).style.backgroundClip = '';
- E.clearCloneStyle = cc.style.backgroundClip === 'content-box';
- E.boxSizing = ca.boxSizing === '' || ca.MozBoxSizing === '' || ca.WebkitBoxSizing === '';
- bJ.extend(E, {
- reliableHiddenOffsets: function () {
- if (b9 == null) {
- e()
- }
- return b9
- },
- boxSizingReliable: function () {
- if (b7 == null) {
- e()
- }
- return b7
- },
- pixelPosition: function () {
- if (cb == null) {
- e()
- }
- return cb
- },
- reliableMarginRight: function () {
- if (i == null) {
- e()
- }
- return i
- }
- });
- function e() {
- var cg,
- cd,
- ce,
- cf;
- cd = p.getElementsByTagName('body') [0];
- if (!cd || !cd.style) {
- return
- }
- cg = p.createElement('div');
- ce = p.createElement('div');
- ce.style.cssText = 'position:absolute;border:0;width:0;height:0;top:0;left:-9999px';
- cd.appendChild(ce).appendChild(cg);
- cg.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';
- cb = b7 = false;
- i = true;
- if (a6.getComputedStyle) {
- cb = (a6.getComputedStyle(cg, null) || {
- }).top !== '1%';
- b7 = (a6.getComputedStyle(cg, null) || {
- width: '4px'
- }).width === '4px';
- cf = cg.appendChild(p.createElement('div'));
- cf.style.cssText = cg.style.cssText = '-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0';
- cf.style.marginRight = cf.style.width = '0';
- cg.style.width = '1px';
- i = !parseFloat((a6.getComputedStyle(cf, null) || {
- }).marginRight)
- }
- cg.innerHTML = '<table><tr><td></td><td>t</td></tr></table>';
- cf = cg.getElementsByTagName('td');
- cf[0].style.cssText = 'margin:0;border:0;padding:0;display:none';
- b9 = cf[0].offsetHeight === 0;
- if (b9) {
- cf[0].style.display = '';
- cf[1].style.display = 'none';
- b9 = cf[0].offsetHeight === 0
- }
- cd.removeChild(ce)
- }
- }) ();
- bJ.swap = function (ca, b9, cb, b8) {
- var b7,
- i,
- e = {
- };
- for (i in b9) {
- e[i] = ca.style[i];
- ca.style[i] = b9[i]
- }
- b7 = cb.apply(ca, b8 || [
- ]);
- for (i in b9) {
- ca.style[i] = e[i]
- }
- return b7
- };
- var bk = /alpha\([^)]*\)/i,
- aV = /opacity\s*=\s*([^)]*)/,
- I = /^(none|table(?!-c[ea]).+)/,
- bc = new RegExp('^(' + aF + ')(.*)$', 'i'),
- W = new RegExp('^([+-])=(' + aF + ')', 'i'),
- bf = {
- position: 'absolute',
- visibility: 'hidden',
- display: 'block'
- },
- bE = {
- letterSpacing: '0',
- fontWeight: '400'
- },
- ax = [
- 'Webkit',
- 'O',
- 'Moz',
- 'ms'
- ];
- function d(b9, b7) {
- if (b7 in b9) {
- return b7
- }
- var ca = b7.charAt(0).toUpperCase() + b7.slice(1),
- e = b7,
- b8 = ax.length;
- while (b8--) {
- b7 = ax[b8] + ca;
- if (b7 in b9) {
- return b7
- }
- }
- return e
- }
- function t(cb, e) {
- var cc,
- b9,
- ca,
- i = [
- ],
- b7 = 0,
- b8 = cb.length;
- for (; b7 < b8; b7++) {
- b9 = cb[b7];
- if (!b9.style) {
- continue
- }
- i[b7] = bJ._data(b9, 'olddisplay');
- cc = b9.style.display;
- if (e) {
- if (!i[b7] && cc === 'none') {
- b9.style.display = ''
- }
- if (b9.style.display === '' && T(b9)) {
- i[b7] = bJ._data(b9, 'olddisplay', a1(b9.nodeName))
- }
- } else {
- ca = T(b9);
- if (cc && cc !== 'none' || !ca) {
- bJ._data(b9, 'olddisplay', ca ? cc : bJ.css(b9, 'display'))
- }
- }
- }
- for (b7 = 0; b7 < b8; b7++) {
- b9 = cb[b7];
- if (!b9.style) {
- continue
- }
- if (!e || b9.style.display === 'none' || b9.style.display === '') {
- b9.style.display = e ? i[b7] || '' : 'none'
- }
- }
- return cb
- }
- function aO(e, b7, b8) {
- var i = bc.exec(b7);
- return i ? Math.max(0, i[1] - (b8 || 0)) + (i[2] || 'px') : b7
- }
- function ay(ca, b7, e, cc, b9) {
- var b8 = e === (cc ? 'border' : 'content') ? 4 : b7 === 'width' ? 1 : 0,
- cb = 0;
- for (; b8 < 4; b8 += 2) {
- if (e === 'margin') {
- cb += bJ.css(ca, e + bU[b8], true, b9)
- }
- if (cc) {
- if (e === 'content') {
- cb -= bJ.css(ca, 'padding' + bU[b8], true, b9)
- }
- if (e !== 'margin') {
- cb -= bJ.css(ca, 'border' + bU[b8] + 'Width', true, b9)
- }
- } else {
- cb += bJ.css(ca, 'padding' + bU[b8], true, b9);
- if (e !== 'padding') {
- cb += bJ.css(ca, 'border' + bU[b8] + 'Width', true, b9)
- }
- }
- }
- return cb
- }
- function w(b9, i, e) {
- var b8 = true,
- ca = i === 'width' ? b9.offsetWidth : b9.offsetHeight,
- b7 = br(b9),
- cb = E.boxSizing && bJ.css(b9, 'boxSizing', false, b7) === 'border-box';
- if (ca <= 0 || ca == null) {
- ca = H(b9, i, b7);
- if (ca < 0 || ca == null) {
- ca = b9.style[i]
- }
- if (Z.test(ca)) {
- return ca
- }
- b8 = cb && (E.boxSizingReliable() || ca === b9.style[i]);
- ca = parseFloat(ca) || 0
- }
- return (ca + ay(b9, i, e || (cb ? 'border' : 'content'), b8, b7)) + 'px'
- }
- bJ.extend({
- cssHooks: {
- opacity: {
- get: function (b7, i) {
- if (i) {
- var e = H(b7, 'opacity');
- return e === '' ? '1' : e
- }
- }
- }
- },
- cssNumber: {
- columnCount: true,
- fillOpacity: true,
- flexGrow: true,
- flexShrink: true,
- fontWeight: true,
- lineHeight: true,
- opacity: true,
- order: true,
- orphans: true,
- widows: true,
- zIndex: true,
- zoom: true
- },
- cssProps: {
- 'float': E.cssFloat ? 'cssFloat' : 'styleFloat'
- },
- style: function (b8, b7, ce, b9) {
- if (!b8 || b8.nodeType === 3 || b8.nodeType === 8 || !b8.style) {
- return
- }
- var cc,
- cd,
- cf,
- ca = bJ.camelCase(b7),
- i = b8.style;
- b7 = bJ.cssProps[ca] || (bJ.cssProps[ca] = d(i, ca));
- cf = bJ.cssHooks[b7] || bJ.cssHooks[ca];
- if (ce !== undefined) {
- cd = typeof ce;
- if (cd === 'string' && (cc = W.exec(ce))) {
- ce = (cc[1] + 1) * cc[2] + parseFloat(bJ.css(b8, b7));
- cd = 'number'
- }
- if (ce == null || ce !== ce) {
- return
- }
- if (cd === 'number' && !bJ.cssNumber[ca]) {
- ce += 'px'
- }
- if (!E.clearCloneStyle && ce === '' && b7.indexOf('background') === 0) {
- i[b7] = 'inherit'
- }
- if (!cf || !('set' in cf) || (ce = cf.set(b8, ce, b9)) !== undefined) {
- try {
- i[b7] = ce
- } catch (cb) {
- }
- }
- } else {
- if (cf && 'get' in cf && (cc = cf.get(b8, false, b9)) !== undefined) {
- return cc
- }
- return i[b7]
- }
- },
- css: function (cb, b9, i, ca) {
- var b8,
- cc,
- e,
- b7 = bJ.camelCase(b9);
- b9 = bJ.cssProps[b7] || (bJ.cssProps[b7] = d(cb.style, b7));
- e = bJ.cssHooks[b9] || bJ.cssHooks[b7];
- if (e && 'get' in e) {
- cc = e.get(cb, true, i)
- }
- if (cc === undefined) {
- cc = H(cb, b9, ca)
- }
- if (cc === 'normal' && b9 in bE) {
- cc = bE[b9]
- }
- if (i === '' || i) {
- b8 = parseFloat(cc);
- return i === true || bJ.isNumeric(b8) ? b8 || 0 : cc
- }
- return cc
- }
- });
- bJ.each(['height',
- 'width'], function (b7, e) {
- bJ.cssHooks[e] = {
- get: function (b9, b8, i) {
- if (b8) {
- return I.test(bJ.css(b9, 'display')) && b9.offsetWidth === 0 ? bJ.swap(b9, bf, function () {
- return w(b9, e, i)
- }) : w(b9, e, i)
- }
- },
- set: function (b9, ca, i) {
- var b8 = i && br(b9);
- return aO(b9, ca, i ? ay(b9, e, i, E.boxSizing && bJ.css(b9, 'boxSizing', false, b8) === 'border-box', b8) : 0)
- }
- }
- });
- if (!E.opacity) {
- bJ.cssHooks.opacity = {
- get: function (i, e) {
- return aV.test((e && i.currentStyle ? i.currentStyle.filter : i.style.filter) || '') ? (0.01 * parseFloat(RegExp.$1)) + '' : e ? '1' : ''
- },
- set: function (b9, ca) {
- var b8 = b9.style,
- i = b9.currentStyle,
- e = bJ.isNumeric(ca) ? 'alpha(opacity=' + ca * 100 + ')' : '',
- b7 = i && i.filter || b8.filter || '';
- b8.zoom = 1;
- if ((ca >= 1 || ca === '') && bJ.trim(b7.replace(bk, '')) === '' && b8.removeAttribute) {
- b8.removeAttribute('filter');
- if (ca === '' || i && !i.filter) {
- return
- }
- }
- b8.filter = bk.test(b7) ? b7.replace(bk, e) : b7 + ' ' + e
- }
- }
- }
- bJ.cssHooks.marginRight = a8(E.reliableMarginRight, function (i, e) {
- if (e) {
- return bJ.swap(i, {
- display: 'inline-block'
- }, H, [
- i,
- 'marginRight'
- ])
- }
- });
- bJ.each({
- margin: '',
- padding: '',
- border: 'Width'
- }, function (e, i) {
- bJ.cssHooks[e + i] = {
- expand: function (b9) {
- var b8 = 0,
- b7 = {
- },
- ca = typeof b9 === 'string' ? b9.split(' ') : [
- b9
- ];
- for (; b8 < 4; b8++) {
- b7[e + bU[b8] + i] = ca[b8] || ca[b8 - 2] || ca[0]
- }
- return b7
- }
- };
- if (!a0.test(e)) {
- bJ.cssHooks[e + i].set = aO
- }
- });
- bJ.fn.extend({
- css: function (e, i) {
- return aC(this, function (cb, b8, cc) {
- var ca,
- b7,
- cd = {
- },
- b9 = 0;
- if (bJ.isArray(b8)) {
- ca = br(cb);
- b7 = b8.length;
- for (; b9 < b7; b9++) {
- cd[b8[b9]] = bJ.css(cb, b8[b9], false, ca)
- }
- return cd
- }
- return cc !== undefined ? bJ.style(cb, b8, cc) : bJ.css(cb, b8)
- }, e, i, arguments.length > 1)
- },
- show: function () {
- return t(this, true)
- },
- hide: function () {
- return t(this)
- },
- toggle: function (e) {
- if (typeof e === 'boolean') {
- return e ? this.show() : this.hide()
- }
- return this.each(function () {
- if (T(this)) {
- bJ(this).show()
- } else {
- bJ(this).hide()
- }
- })
- }
- });
- function K(b7, i, b9, e, b8) {
- return new K.prototype.init(b7, i, b9, e, b8)
- }
- bJ.Tween = K;
- K.prototype = {
- constructor: K,
- init: function (b8, i, ca, e, b9, b7) {
- this.elem = b8;
- this.prop = ca;
- this.easing = b9 || 'swing';
- this.options = i;
- this.start = this.now = this.cur();
- this.end = e;
- this.unit = b7 || (bJ.cssNumber[ca] ? '' : 'px')
- },
- cur: function () {
- var e = K.propHooks[this.prop];
- return e && e.get ? e.get(this) : K.propHooks._default.get(this)
- },
- run: function (b7) {
- var i,
- e = K.propHooks[this.prop];
- if (this.options.duration) {
- this.pos = i = bJ.easing[this.easing](b7, this.options.duration * b7, 0, 1, this.options.duration)
- } else {
- this.pos = i = b7
- }
- this.now = (this.end - this.start) * i + this.start;
- if (this.options.step) {
- this.options.step.call(this.elem, this.now, this)
- }
- if (e && e.set) {
- e.set(this)
- } else {
- K.propHooks._default.set(this)
- }
- return this
- }
- };
- K.prototype.init.prototype = K.prototype;
- K.propHooks = {
- _default: {
- get: function (i) {
- var e;
- if (i.elem[i.prop] != null && (!i.elem.style || i.elem.style[i.prop] == null)) {
- return i.elem[i.prop]
- }
- e = bJ.css(i.elem, i.prop, '');
- return !e || e === 'auto' ? 0 : e
- },
- set: function (e) {
- if (bJ.fx.step[e.prop]) {
- bJ.fx.step[e.prop](e)
- } else {
- if (e.elem.style && (e.elem.style[bJ.cssProps[e.prop]] != null || bJ.cssHooks[e.prop])) {
- bJ.style(e.elem, e.prop, e.now + e.unit)
- } else {
- e.elem[e.prop] = e.now
- }
- }
- }
- }
- };
- K.propHooks.scrollTop = K.propHooks.scrollLeft = {
- set: function (e) {
- if (e.elem.nodeType && e.elem.parentNode) {
- e.elem[e.prop] = e.now
- }
- }
- };
- bJ.easing = {
- linear: function (e) {
- return e
- },
- swing: function (e) {
- return 0.5 - Math.cos(e * Math.PI) / 2
- }
- };
- bJ.fx = K.prototype.init;
- bJ.fx.step = {
- };
- var O,
- af,
- bS = /^(?:toggle|show|hide)$/,
- bK = new RegExp('^(?:([+-])=|)(' + aF + ')([a-z%]*)$', 'i'),
- bQ = /queueHooks$/,
- aH = [
- j
- ],
- a3 = {
- '*': [
- function (e, cb) {
- var cd = this.createTween(e, cb),
- b9 = cd.cur(),
- b8 = bK.exec(cb),
- cc = b8 && b8[3] || (bJ.cssNumber[e] ? '' : 'px'),
- i = (bJ.cssNumber[e] || cc !== 'px' && + b9) && bK.exec(bJ.css(cd.elem, e)),
- b7 = 1,
- ca = 20;
- if (i && i[3] !== cc) {
- cc = cc || i[3];
- b8 = b8 || [
- ];
- i = + b9 || 1;
- do {
- b7 = b7 || '.5';
- i = i / b7;
- bJ.style(cd.elem, e, i + cc)
- } while (b7 !== (b7 = cd.cur() / b9) && b7 !== 1 && --ca)
- }
- if (b8) {
- i = cd.start = + i || + b9 || 0;
- cd.unit = cc;
- cd.end = b8[1] ? i + (b8[1] + 1) * b8[2] : + b8[2]
- }
- return cd
- }
- ]
- };
- function bo() {
- setTimeout(function () {
- O = undefined
- });
- return (O = bJ.now())
- }
- function bI(b8, ca) {
- var b9,
- e = {
- height: b8
- },
- b7 = 0;
- ca = ca ? 1 : 0;
- for (; b7 < 4; b7 += 2 - ca) {
- b9 = bU[b7];
- e['margin' + b9] = e['padding' + b9] = b8
- }
- if (ca) {
- e.opacity = e.width = b8
- }
- return e
- }
- function be(b9, cb, b8) {
- var i,
- ca = (a3[cb] || [
- ]).concat(a3['*']),
- e = 0,
- b7 = ca.length;
- for (; e < b7; e++) {
- if ((i = ca[e].call(b8, cb, b9))) {
- return i
- }
- }
- }
- function j(b8, cd, e) {
- var b7,
- cg,
- ca,
- cj,
- ck,
- ch,
- cc,
- cf,
- b9 = this,
- ce = {
- },
- i = b8.style,
- cb = b8.nodeType && T(b8),
- ci = bJ._data(b8, 'fxshow');
- if (!e.queue) {
- ck = bJ._queueHooks(b8, 'fx');
- if (ck.unqueued == null) {
- ck.unqueued = 0;
- ch = ck.empty.fire;
- ck.empty.fire = function () {
- if (!ck.unqueued) {
- ch()
- }
- }
- }
- ck.unqueued++;
- b9.always(function () {
- b9.always(function () {
- ck.unqueued--;
- if (!bJ.queue(b8, 'fx').length) {
- ck.empty.fire()
- }
- })
- })
- }
- if (b8.nodeType === 1 && ('height' in cd || 'width' in cd)) {
- e.overflow = [
- i.overflow,
- i.overflowX,
- i.overflowY
- ];
- cc = bJ.css(b8, 'display');
- cf = cc === 'none' ? bJ._data(b8, 'olddisplay') || a1(b8.nodeName) : cc;
- if (cf === 'inline' && bJ.css(b8, 'float') === 'none') {
- if (!E.inlineBlockNeedsLayout || a1(b8.nodeName) === 'inline') {
- i.display = 'inline-block'
- } else {
- i.zoom = 1
- }
- }
- }
- if (e.overflow) {
- i.overflow = 'hidden';
- if (!E.shrinkWrapBlocks()) {
- b9.always(function () {
- i.overflow = e.overflow[0];
- i.overflowX = e.overflow[1];
- i.overflowY = e.overflow[2]
- })
- }
- }
- for (b7 in cd) {
- cg = cd[b7];
- if (bS.exec(cg)) {
- delete cd[b7];
- ca = ca || cg === 'toggle';
- if (cg === (cb ? 'hide' : 'show')) {
- if (cg === 'show' && ci && ci[b7] !== undefined) {
- cb = true
- } else {
- continue
- }
- }
- ce[b7] = ci && ci[b7] || bJ.style(b8, b7)
- } else {
- cc = undefined
- }
- }
- if (!bJ.isEmptyObject(ce)) {
- if (ci) {
- if ('hidden' in ci) {
- cb = ci.hidden
- }
- } else {
- ci = bJ._data(b8, 'fxshow', {
- })
- }
- if (ca) {
- ci.hidden = !cb
- }
- if (cb) {
- bJ(b8).show()
- } else {
- b9.done(function () {
- bJ(b8).hide()
- })
- }
- b9.done(function () {
- var cl;
- bJ._removeData(b8, 'fxshow');
- for (cl in ce) {
- bJ.style(b8, cl, ce[cl])
- }
- });
- for (b7 in ce) {
- cj = be(cb ? ci[b7] : 0, b7, b9);
- if (!(b7 in ci)) {
- ci[b7] = cj.start;
- if (cb) {
- cj.end = cj.start;
- cj.start = b7 === 'width' || b7 === 'height' ? 1 : 0
- }
- }
- }
- } else {
- if ((cc === 'none' ? a1(b8.nodeName) : cc) === 'inline') {
- i.display = cc
- }
- }
- }
- function ap(b8, ca) {
- var b7,
- i,
- cb,
- b9,
- e;
- for (b7 in b8) {
- i = bJ.camelCase(b7);
- cb = ca[i];
- b9 = b8[b7];
- if (bJ.isArray(b9)) {
- cb = b9[1];
- b9 = b8[b7] = b9[0]
- }
- if (b7 !== i) {
- b8[i] = b9;
- delete b8[b7]
- }
- e = bJ.cssHooks[i];
- if (e && 'expand' in e) {
- b9 = e.expand(b9);
- delete b8[i];
- for (b7 in b9) {
- if (!(b7 in b8)) {
- b8[b7] = b9[b7];
- ca[b7] = cb
- }
- }
- } else {
- ca[i] = cb
- }
- }
- }
- function g(b7, cb, ce) {
- var cf,
- e,
- ca = 0,
- i = aH.length,
- cd = bJ.Deferred().always(function () {
- delete b9.elem
- }),
- b9 = function () {
- if (e) {
- return false
- }
- var cl = O || bo(),
- ci = Math.max(0, b8.startTime + b8.duration - cl),
- cg = ci / b8.duration || 0,
- ck = 1 - cg,
- ch = 0,
- cj = b8.tweens.length;
- for (; ch < cj; ch++) {
- b8.tweens[ch].run(ck)
- }
- cd.notifyWith(b7, [
- b8,
- ck,
- ci
- ]);
- if (ck < 1 && cj) {
- return ci
- } else {
- cd.resolveWith(b7, [
- b8
- ]);
- return false
- }
- },
- b8 = cd.promise({
- elem: b7,
- props: bJ.extend({
- }, cb),
- opts: bJ.extend(true, {
- specialEasing: {
- }
- }, ce),
- originalProperties: cb,
- originalOptions: ce,
- startTime: O || bo(),
- duration: ce.duration,
- tweens: [
- ],
- createTween: function (ci, cg) {
- var ch = bJ.Tween(b7, b8.opts, ci, cg, b8.opts.specialEasing[ci] || b8.opts.easing);
- b8.tweens.push(ch);
- return ch
- },
- stop: function (ch) {
- var cg = 0,
- ci = ch ? b8.tweens.length : 0;
- if (e) {
- return this
- }
- e = true;
- for (; cg < ci; cg++) {
- b8.tweens[cg].run(1)
- }
- if (ch) {
- cd.resolveWith(b7, [
- b8,
- ch
- ])
- } else {
- cd.rejectWith(b7, [
- b8,
- ch
- ])
- }
- return this
- }
- }),
- cc = b8.props;
- ap(cc, b8.opts.specialEasing);
- for (; ca < i; ca++) {
- cf = aH[ca].call(b8, b7, cc, b8.opts);
- if (cf) {
- return cf
- }
- }
- bJ.map(cc, be, b8);
- if (bJ.isFunction(b8.opts.start)) {
- b8.opts.start.call(b7, b8)
- }
- bJ.fx.timer(bJ.extend(b9, {
- elem: b7,
- anim: b8,
- queue: b8.opts.queue
- }));
- return b8.progress(b8.opts.progress).done(b8.opts.done, b8.opts.complete).fail(b8.opts.fail).always(b8.opts.always)
- }
- bJ.Animation = bJ.extend(g, {
- tweener: function (i, b9) {
- if (bJ.isFunction(i)) {
- b9 = i;
- i = [
- '*'
- ]
- } else {
- i = i.split(' ')
- }
- var b8,
- e = 0,
- b7 = i.length;
- for (; e < b7; e++) {
- b8 = i[e];
- a3[b8] = a3[b8] || [
- ];
- a3[b8].unshift(b9)
- }
- },
- prefilter: function (i, e) {
- if (e) {
- aH.unshift(i)
- } else {
- aH.push(i)
- }
- }
- });
- bJ.speed = function (b7, b8, i) {
- var e = b7 && typeof b7 === 'object' ? bJ.extend({
- }, b7) : {
- complete: i || !i && b8 || bJ.isFunction(b7) && b7,
- duration: b7,
- easing: i && b8 || b8 && !bJ.isFunction(b8) && b8
- };
- e.duration = bJ.fx.off ? 0 : typeof e.duration === 'number' ? e.duration : e.duration in bJ.fx.speeds ? bJ.fx.speeds[e.duration] : bJ.fx.speeds._default;
- if (e.queue == null || e.queue === true) {
- e.queue = 'fx'
- }
- e.old = e.complete;
- e.complete = function () {
- if (bJ.isFunction(e.old)) {
- e.old.call(this)
- }
- if (e.queue) {
- bJ.dequeue(this, e.queue)
- }
- };
- return e
- };
- bJ.fn.extend({
- fadeTo: function (e, b8, b7, i) {
- return this.filter(T).css('opacity', 0).show().end().animate({
- opacity: b8
- }, e, b7, i)
- },
- animate: function (cb, b8, ca, b9) {
- var b7 = bJ.isEmptyObject(cb),
- e = bJ.speed(b8, ca, b9),
- i = function () {
- var cc = g(this, bJ.extend({
- }, cb), e);
- if (b7 || bJ._data(this, 'finish')) {
- cc.stop(true)
- }
- };
- i.finish = i;
- return b7 || e.queue === false ? this.each(i) : this.queue(e.queue, i)
- },
- stop: function (b7, i, e) {
- var b8 = function (b9) {
- var ca = b9.stop;
- delete b9.stop;
- ca(e)
- };
- if (typeof b7 !== 'string') {
- e = i;
- i = b7;
- b7 = undefined
- }
- if (i && b7 !== false) {
- this.queue(b7 || 'fx', [
- ])
- }
- return this.each(function () {
- var cc = true,
- b9 = b7 != null && b7 + 'queueHooks',
- cb = bJ.timers,
- ca = bJ._data(this);
- if (b9) {
- if (ca[b9] && ca[b9].stop) {
- b8(ca[b9])
- }
- } else {
- for (b9 in ca) {
- if (ca[b9] && ca[b9].stop && bQ.test(b9)) {
- b8(ca[b9])
- }
- }
- }
- for (b9 = cb.length; b9--; ) {
- if (cb[b9].elem === this && (b7 == null || cb[b9].queue === b7)) {
- cb[b9].anim.stop(e);
- cc = false;
- cb.splice(b9, 1)
- }
- }
- if (cc || !e) {
- bJ.dequeue(this, b7)
- }
- })
- },
- finish: function (e) {
- if (e !== false) {
- e = e || 'fx'
- }
- return this.each(function () {
- var b8,
- cb = bJ._data(this),
- b7 = cb[e + 'queue'],
- i = cb[e + 'queueHooks'],
- ca = bJ.timers,
- b9 = b7 ? b7.length : 0;
- cb.finish = true;
- bJ.queue(this, e, [
- ]);
- if (i && i.stop) {
- i.stop.call(this, true)
- }
- for (b8 = ca.length; b8--; ) {
- if (ca[b8].elem === this && ca[b8].queue === e) {
- ca[b8].anim.stop(true);
- ca.splice(b8, 1)
- }
- }
- for (b8 = 0; b8 < b9; b8++) {
- if (b7[b8] && b7[b8].finish) {
- b7[b8].finish.call(this)
- }
- }
- delete cb.finish
- })
- }
- });
- bJ.each(['toggle',
- 'show',
- 'hide'], function (b7, e) {
- var b8 = bJ.fn[e];
- bJ.fn[e] = function (i, ca, b9) {
- return i == null || typeof i === 'boolean' ? b8.apply(this, arguments) : this.animate(bI(e, true), i, ca, b9)
- }
- });
- bJ.each({
- slideDown: bI('show'),
- slideUp: bI('hide'),
- slideToggle: bI('toggle'),
- fadeIn: {
- opacity: 'show'
- },
- fadeOut: {
- opacity: 'hide'
- },
- fadeToggle: {
- opacity: 'toggle'
- }
- }, function (e, i) {
- bJ.fn[e] = function (b7, b9, b8) {
- return this.animate(i, b7, b9, b8)
- }
- });
- bJ.timers = [
- ];
- bJ.fx.tick = function () {
- var b8,
- b7 = bJ.timers,
- e = 0;
- O = bJ.now();
- for (; e < b7.length; e++) {
- b8 = b7[e];
- if (!b8() && b7[e] === b8) {
- b7.splice(e--, 1)
- }
- }
- if (!b7.length) {
- bJ.fx.stop()
- }
- O = undefined
- };
- bJ.fx.timer = function (e) {
- bJ.timers.push(e);
- if (e()) {
- bJ.fx.start()
- } else {
- bJ.timers.pop()
- }
- };
- bJ.fx.interval = 13;
- bJ.fx.start = function () {
- if (!af) {
- af = setInterval(bJ.fx.tick, bJ.fx.interval)
- }
- };
- bJ.fx.stop = function () {
- clearInterval(af);
- af = null
- };
- bJ.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- };
- bJ.fn.delay = function (i, e) {
- i = bJ.fx ? bJ.fx.speeds[i] || i : i;
- e = e || 'fx';
- return this.queue(e, function (b8, b7) {
- var b9 = setTimeout(b8, i);
- b7.stop = function () {
- clearTimeout(b9)
- }
- })
- };
- (function () {
- var b7,
- b9,
- e,
- i,
- b8;
- b9 = p.createElement('div');
- b9.setAttribute('className', 't');
- b9.innerHTML = ' <link/><table></table><a href=\'/a\'>a</a><input type=\'checkbox\'/>';
- i = b9.getElementsByTagName('a') [0];
- e = p.createElement('select');
- b8 = e.appendChild(p.createElement('option'));
- b7 = b9.getElementsByTagName('input') [0];
- i.style.cssText = 'top:1px';
- E.getSetAttribute = b9.className !== 't';
- E.style = /top/.test(i.getAttribute('style'));
- E.hrefNormalized = i.getAttribute('href') === '/a';
- E.checkOn = !!b7.value;
- E.optSelected = b8.selected;
- E.enctype = !!p.createElement('form').enctype;
- e.disabled = true;
- E.optDisabled = !b8.disabled;
- b7 = p.createElement('input');
- b7.setAttribute('value', '');
- E.input = b7.getAttribute('value') === '';
- b7.value = 't';
- b7.setAttribute('type', 'radio');
- E.radioValue = b7.value === 't'
- }) ();
- var am = /\r/g;
- bJ.fn.extend({
- val: function (b8) {
- var e,
- i,
- b9,
- b7 = this[0];
- if (!arguments.length) {
- if (b7) {
- e = bJ.valHooks[b7.type] || bJ.valHooks[b7.nodeName.toLowerCase()];
- if (e && 'get' in e && (i = e.get(b7, 'value')) !== undefined) {
- return i
- }
- i = b7.value;
- return typeof i === 'string' ? i.replace(am, '') : i == null ? '' : i
- }
- return
- }
- b9 = bJ.isFunction(b8);
- return this.each(function (ca) {
- var cb;
- if (this.nodeType !== 1) {
- return
- }
- if (b9) {
- cb = b8.call(this, ca, bJ(this).val())
- } else {
- cb = b8
- }
- if (cb == null) {
- cb = ''
- } else {
- if (typeof cb === 'number') {
- cb += ''
- } else {
- if (bJ.isArray(cb)) {
- cb = bJ.map(cb, function (cc) {
- return cc == null ? '' : cc + ''
- })
- }
- }
- }
- e = bJ.valHooks[this.type] || bJ.valHooks[this.nodeName.toLowerCase()];
- if (!e || !('set' in e) || e.set(this, cb, 'value') === undefined) {
- this.value = cb
- }
- })
- }
- });
- bJ.extend({
- valHooks: {
- option: {
- get: function (e) {
- var i = bJ.find.attr(e, 'value');
- return i != null ? i : bJ.trim(bJ.text(e))
- }
- },
- select: {
- get: function (e) {
- var cc,
- b8,
- ce = e.options,
- ca = e.selectedIndex,
- b9 = e.type === 'select-one' || ca < 0,
- cd = b9 ? null : [
- ],
- cb = b9 ? ca + 1 : ce.length,
- b7 = ca < 0 ? cb : b9 ? ca : 0;
- for (; b7 < cb; b7++) {
- b8 = ce[b7];
- if ((b8.selected || b7 === ca) && (E.optDisabled ? !b8.disabled : b8.getAttribute('disabled') === null) && (!b8.parentNode.disabled || !bJ.nodeName(b8.parentNode, 'optgroup'))) {
- cc = bJ(b8).val();
- if (b9) {
- return cc
- }
- cd.push(cc)
- }
- }
- return cd
- },
- set: function (cb, cc) {
- var cd,
- ca,
- b8 = cb.options,
- e = bJ.makeArray(cc),
- b9 = b8.length;
- while (b9--) {
- ca = b8[b9];
- if (bJ.inArray(bJ.valHooks.option.get(ca), e) >= 0) {
- try {
- ca.selected = cd = true
- } catch (b7) {
- ca.scrollHeight
- }
- } else {
- ca.selected = false
- }
- }
- if (!cd) {
- cb.selectedIndex = - 1
- }
- return b8
- }
- }
- }
- });
- bJ.each(['radio',
- 'checkbox'], function () {
- bJ.valHooks[this] = {
- set: function (e, i) {
- if (bJ.isArray(i)) {
- return (e.checked = bJ.inArray(bJ(e).val(), i) >= 0)
- }
- }
- };
- if (!E.checkOn) {
- bJ.valHooks[this].get = function (e) {
- return e.getAttribute('value') === null ? 'on' : e.value
- }
- }
- });
- var bb,
- b4,
- bP = bJ.expr.attrHandle,
- ar = /^(?:checked|selected)$/i,
- bO = E.getSetAttribute,
- bG = E.input;
- bJ.fn.extend({
- attr: function (e, i) {
- return aC(this, bJ.attr, e, i, arguments.length > 1)
- },
- removeAttr: function (e) {
- return this.each(function () {
- bJ.removeAttr(this, e)
- })
- }
- });
- bJ.extend({
- attr: function (b9, b8, ca) {
- var e,
- b7,
- i = b9.nodeType;
- if (!b9 || i === 3 || i === 8 || i === 2) {
- return
- }
- if (typeof b9.getAttribute === aD) {
- return bJ.prop(b9, b8, ca)
- }
- if (i !== 1 || !bJ.isXMLDoc(b9)) {
- b8 = b8.toLowerCase();
- e = bJ.attrHooks[b8] || (bJ.expr.match.bool.test(b8) ? b4 : bb)
- }
- if (ca !== undefined) {
- if (ca === null) {
- bJ.removeAttr(b9, b8)
- } else {
- if (e && 'set' in e && (b7 = e.set(b9, ca, b8)) !== undefined) {
- return b7
- } else {
- b9.setAttribute(b8, ca + '');
- return ca
- }
- }
- } else {
- if (e && 'get' in e && (b7 = e.get(b9, b8)) !== null) {
- return b7
- } else {
- b7 = bJ.find.attr(b9, b8);
- return b7 == null ? undefined : b7
- }
- }
- },
- removeAttr: function (b8, ca) {
- var e,
- b9,
- b7 = 0,
- cb = ca && ca.match(aG);
- if (cb && b8.nodeType === 1) {
- while ((e = cb[b7++])) {
- b9 = bJ.propFix[e] || e;
- if (bJ.expr.match.bool.test(e)) {
- if (bG && bO || !ar.test(e)) {
- b8[b9] = false
- } else {
- b8[bJ.camelCase('default-' + e)] = b8[b9] = false
- }
- } else {
- bJ.attr(b8, e, '')
- }
- b8.removeAttribute(bO ? e : b9)
- }
- }
- },
- attrHooks: {
- type: {
- set: function (e, i) {
- if (!E.radioValue && i === 'radio' && bJ.nodeName(e, 'input')) {
- var b7 = e.value;
- e.setAttribute('type', i);
- if (b7) {
- e.value = b7
- }
- return i
- }
- }
- }
- }
- });
- b4 = {
- set: function (i, b7, e) {
- if (b7 === false) {
- bJ.removeAttr(i, e)
- } else {
- if (bG && bO || !ar.test(e)) {
- i.setAttribute(!bO && bJ.propFix[e] || e, e)
- } else {
- i[bJ.camelCase('default-' + e)] = i[e] = true
- }
- }
- return e
- }
- };
- bJ.each(bJ.expr.match.bool.source.match(/\w+/g), function (b8, b7) {
- var e = bP[b7] || bJ.find.attr;
- bP[b7] = bG && bO || !ar.test(b7) ? function (ca, b9, cc) {
- var i,
- cb;
- if (!cc) {
- cb = bP[b9];
- bP[b9] = i;
- i = e(ca, b9, cc) != null ? b9.toLowerCase() : null;
- bP[b9] = cb
- }
- return i
- }
- : function (b9, i, ca) {
- if (!ca) {
- return b9[bJ.camelCase('default-' + i)] ? i.toLowerCase() : null
- }
- }
- });
- if (!bG || !bO) {
- bJ.attrHooks.value = {
- set: function (i, b7, e) {
- if (bJ.nodeName(i, 'input')) {
- i.defaultValue = b7
- } else {
- return bb && bb.set(i, b7, e)
- }
- }
- }
- }
- if (!bO) {
- bb = {
- set: function (b7, b8, i) {
- var e = b7.getAttributeNode(i);
- if (!e) {
- b7.setAttributeNode((e = b7.ownerDocument.createAttribute(i)))
- }
- e.value = b8 += '';
- if (i === 'value' || b8 === b7.getAttribute(i)) {
- return b8
- }
- }
- };
- bP.id = bP.name = bP.coords = function (b7, i, b8) {
- var e;
- if (!b8) {
- return (e = b7.getAttributeNode(i)) && e.value !== '' ? e.value : null
- }
- };
- bJ.valHooks.button = {
- get: function (b7, i) {
- var e = b7.getAttributeNode(i);
- if (e && e.specified) {
- return e.value
- }
- },
- set: bb.set
- };
- bJ.attrHooks.contenteditable = {
- set: function (i, b7, e) {
- bb.set(i, b7 === '' ? false : b7, e)
- }
- };
- bJ.each(['width',
- 'height'], function (b7, e) {
- bJ.attrHooks[e] = {
- set: function (i, b8) {
- if (b8 === '') {
- i.setAttribute(e, 'auto');
- return b8
- }
- }
- }
- })
- }
- if (!E.style) {
- bJ.attrHooks.style = {
- get: function (e) {
- return e.style.cssText || undefined
- },
- set: function (e, i) {
- return (e.style.cssText = i + '')
- }
- }
- }
- var aK = /^(?:input|select|textarea|button|object)$/i,
- G = /^(?:a|area)$/i;
- bJ.fn.extend({
- prop: function (e, i) {
- return aC(this, bJ.prop, e, i, arguments.length > 1)
- },
- removeProp: function (e) {
- e = bJ.propFix[e] || e;
- return this.each(function () {
- try {
- this[e] = undefined;
- delete this[e]
- } catch (i) {
- }
- })
- }
- });
- bJ.extend({
- propFix: {
- 'for': 'htmlFor',
- 'class': 'className'
- },
- prop: function (ca, b8, cb) {
- var b7,
- e,
- b9,
- i = ca.nodeType;
- if (!ca || i === 3 || i === 8 || i === 2) {
- return
- }
- b9 = i !== 1 || !bJ.isXMLDoc(ca);
- if (b9) {
- b8 = bJ.propFix[b8] || b8;
- e = bJ.propHooks[b8]
- }
- if (cb !== undefined) {
- return e && 'set' in e && (b7 = e.set(ca, cb, b8)) !== undefined ? b7 : (ca[b8] = cb)
- } else {
- return e && 'get' in e && (b7 = e.get(ca, b8)) !== null ? b7 : ca[b8]
- }
- },
- propHooks: {
- tabIndex: {
- get: function (i) {
- var e = bJ.find.attr(i, 'tabindex');
- return e ? parseInt(e, 10) : aK.test(i.nodeName) || G.test(i.nodeName) && i.href ? 0 : - 1
- }
- }
- }
- });
- if (!E.hrefNormalized) {
- bJ.each(['href',
- 'src'], function (b7, e) {
- bJ.propHooks[e] = {
- get: function (i) {
- return i.getAttribute(e, 4)
- }
- }
- })
- }
- if (!E.optSelected) {
- bJ.propHooks.selected = {
- get: function (i) {
- var e = i.parentNode;
- if (e) {
- e.selectedIndex;
- if (e.parentNode) {
- e.parentNode.selectedIndex
- }
- }
- return null
- }
- }
- }
- bJ.each(['tabIndex',
- 'readOnly',
- 'maxLength',
- 'cellSpacing',
- 'cellPadding',
- 'rowSpan',
- 'colSpan',
- 'useMap',
- 'frameBorder',
- 'contentEditable'], function () {
- bJ.propFix[this.toLowerCase()] = this
- });
- if (!E.enctype) {
- bJ.propFix.enctype = 'encoding'
- }
- var bM = /[\t\r\n\f]/g;
- bJ.fn.extend({
- addClass: function (ce) {
- var b8,
- b7,
- cf,
- cc,
- b9,
- e,
- ca = 0,
- cb = this.length,
- cd = typeof ce === 'string' && ce;
- if (bJ.isFunction(ce)) {
- return this.each(function (i) {
- bJ(this).addClass(ce.call(this, i, this.className))
- })
- }
- if (cd) {
- b8 = (ce || '').match(aG) || [
- ];
- for (; ca < cb; ca++) {
- b7 = this[ca];
- cf = b7.nodeType === 1 && (b7.className ? (' ' + b7.className + ' ').replace(bM, ' ') : ' ');
- if (cf) {
- b9 = 0;
- while ((cc = b8[b9++])) {
- if (cf.indexOf(' ' + cc + ' ') < 0) {
- cf += cc + ' '
- }
- }
- e = bJ.trim(cf);
- if (b7.className !== e) {
- b7.className = e
- }
- }
- }
- }
- return this
- },
- removeClass: function (ce) {
- var b8,
- b7,
- cf,
- cc,
- b9,
- e,
- ca = 0,
- cb = this.length,
- cd = arguments.length === 0 || typeof ce === 'string' && ce;
- if (bJ.isFunction(ce)) {
- return this.each(function (i) {
- bJ(this).removeClass(ce.call(this, i, this.className))
- })
- }
- if (cd) {
- b8 = (ce || '').match(aG) || [
- ];
- for (; ca < cb; ca++) {
- b7 = this[ca];
- cf = b7.nodeType === 1 && (b7.className ? (' ' + b7.className + ' ').replace(bM, ' ') : '');
- if (cf) {
- b9 = 0;
- while ((cc = b8[b9++])) {
- while (cf.indexOf(' ' + cc + ' ') >= 0) {
- cf = cf.replace(' ' + cc + ' ', ' ')
- }
- }
- e = ce ? bJ.trim(cf) : '';
- if (b7.className !== e) {
- b7.className = e
- }
- }
- }
- }
- return this
- },
- toggleClass: function (b7, e) {
- var i = typeof b7;
- if (typeof e === 'boolean' && i === 'string') {
- return e ? this.addClass(b7) : this.removeClass(b7)
- }
- if (bJ.isFunction(b7)) {
- return this.each(function (b8) {
- bJ(this).toggleClass(b7.call(this, b8, this.className, e), e)
- })
- }
- return this.each(function () {
- if (i === 'string') {
- var ca,
- b9 = 0,
- b8 = bJ(this),
- cb = b7.match(aG) || [
- ];
- while ((ca = cb[b9++])) {
- if (b8.hasClass(ca)) {
- b8.removeClass(ca)
- } else {
- b8.addClass(ca)
- }
- }
- } else {
- if (i === aD || i === 'boolean') {
- if (this.className) {
- bJ._data(this, '__className__', this.className)
- }
- this.className = this.className || b7 === false ? '' : bJ._data(this, '__className__') || ''
- }
- }
- })
- },
- hasClass: function (e) {
- var b9 = ' ' + e + ' ',
- b8 = 0,
- b7 = this.length;
- for (; b8 < b7; b8++) {
- if (this[b8].nodeType === 1 && (' ' + this[b8].className + ' ').replace(bM, ' ').indexOf(b9) >= 0) {
- return true
- }
- }
- return false
- }
- });
- bJ.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 (b7, e) {
- bJ.fn[e] = function (b8, i) {
- return arguments.length > 0 ? this.on(e, null, b8, i) : this.trigger(e)
- }
- });
- bJ.fn.extend({
- hover: function (e, i) {
- return this.mouseenter(e).mouseleave(i || e)
- },
- bind: function (e, b7, i) {
- return this.on(e, null, b7, i)
- },
- unbind: function (e, i) {
- return this.off(e, null, i)
- },
- delegate: function (e, i, b8, b7) {
- return this.on(i, e, b8, b7)
- },
- undelegate: function (e, i, b7) {
- return arguments.length === 1 ? this.off(e, '**') : this.off(i, e || '**', b7)
- }
- });
- var bq = bJ.now();
- var bR = (/\?/);
- var a2 = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
- bJ.parseJSON = function (e) {
- if (a6.JSON && a6.JSON.parse) {
- return a6.JSON.parse(e + '')
- }
- var b8,
- b7 = null,
- i = bJ.trim(e + '');
- return i && !bJ.trim(i.replace(a2, function (cb, b9, ca, cc) {
- if (b8 && b9) {
- b7 = 0
- }
- if (b7 === 0) {
- return cb
- }
- b8 = ca || b9;
- b7 += !cc - !ca;
- return ''
- })) ? (Function('return ' + i)) () : bJ.error('Invalid JSON: ' + e)
- };
- bJ.parseXML = function (b8) {
- var i,
- b7;
- if (!b8 || typeof b8 !== 'string') {
- return null
- }
- try {
- if (a6.DOMParser) {
- b7 = new DOMParser();
- i = b7.parseFromString(b8, 'text/xml')
- } else {
- i = new ActiveXObject('Microsoft.XMLDOM');
- i.async = 'false';
- i.loadXML(b8)
- }
- } catch (b9) {
- i = undefined
- }
- if (!i || !i.documentElement || i.getElementsByTagName('parsererror').length) {
- bJ.error('Invalid XML: ' + b8)
- }
- return i
- };
- var b5,
- ab,
- aq = /#.*$/,
- S = /([?&])_=[^&]*/,
- ai = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
- D = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- s = /^(?:GET|HEAD)$/,
- aL = /^\/\//,
- aW = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
- x = {
- },
- ba = {
- },
- aY = '*/'.concat('*');
- try {
- ab = location.href
- } catch (bj) {
- ab = p.createElement('a');
- ab.href = '';
- ab = ab.href
- }
- b5 = aW.exec(ab.toLowerCase()) || [
- ];
- function bL(e) {
- return function (ca, cb) {
- if (typeof ca !== 'string') {
- cb = ca;
- ca = '*'
- }
- var b7,
- b8 = 0,
- b9 = ca.toLowerCase().match(aG) || [
- ];
- if (bJ.isFunction(cb)) {
- while ((b7 = b9[b8++])) {
- if (b7.charAt(0) === '+') {
- b7 = b7.slice(1) || '*';
- (e[b7] = e[b7] || [
- ]).unshift(cb)
- } else {
- (e[b7] = e[b7] || [
- ]).push(cb)
- }
- }
- }
- }
- }
- function r(e, b7, cb, b8) {
- var i = {
- },
- b9 = (e === ba);
- function ca(cc) {
- var cd;
- i[cc] = true;
- bJ.each(e[cc] || [
- ], function (cf, ce) {
- var cg = ce(b7, cb, b8);
- if (typeof cg === 'string' && !b9 && !i[cg]) {
- b7.dataTypes.unshift(cg);
- ca(cg);
- return false
- } else {
- if (b9) {
- return !(cd = cg)
- }
- }
- });
- return cd
- }
- return ca(b7.dataTypes[0]) || !i['*'] && ca('*')
- }
- function u(b7, b8) {
- var e,
- i,
- b9 = bJ.ajaxSettings.flatOptions || {
- };
- for (i in b8) {
- if (b8[i] !== undefined) {
- (b9[i] ? b7 : (e || (e = {
- }))) [i] = b8[i]
- }
- }
- if (e) {
- bJ.extend(true, b7, e)
- }
- return b7
- }
- function h(cd, cc, b9) {
- var e,
- b8,
- b7,
- ca,
- i = cd.contents,
- cb = cd.dataTypes;
- while (cb[0] === '*') {
- cb.shift();
- if (b8 === undefined) {
- b8 = cd.mimeType || cc.getResponseHeader('Content-Type')
- }
- }
- if (b8) {
- for (ca in i) {
- if (i[ca] && i[ca].test(b8)) {
- cb.unshift(ca);
- break
- }
- }
- }
- if (cb[0] in b9) {
- b7 = cb[0]
- } else {
- for (ca in b9) {
- if (!cb[0] || cd.converters[ca + ' ' + cb[0]]) {
- b7 = ca;
- break
- }
- if (!e) {
- e = ca
- }
- }
- b7 = b7 || e
- }
- if (b7) {
- if (b7 !== cb[0]) {
- cb.unshift(b7)
- }
- return b9[b7]
- }
- }
- function ah(ch, b9, ce, b7) {
- var i,
- cc,
- cf,
- ca,
- b8,
- cg = {
- },
- cd = ch.dataTypes.slice();
- if (cd[1]) {
- for (cf in ch.converters) {
- cg[cf.toLowerCase()] = ch.converters[cf]
- }
- }
- cc = cd.shift();
- while (cc) {
- if (ch.responseFields[cc]) {
- ce[ch.responseFields[cc]] = b9
- }
- if (!b8 && b7 && ch.dataFilter) {
- b9 = ch.dataFilter(b9, ch.dataType)
- }
- b8 = cc;
- cc = cd.shift();
- if (cc) {
- if (cc === '*') {
- cc = b8
- } else {
- if (b8 !== '*' && b8 !== cc) {
- cf = cg[b8 + ' ' + cc] || cg['* ' + cc];
- if (!cf) {
- for (i in cg) {
- ca = i.split(' ');
- if (ca[1] === cc) {
- cf = cg[b8 + ' ' + ca[0]] || cg['* ' + ca[0]];
- if (cf) {
- if (cf === true) {
- cf = cg[i]
- } else {
- if (cg[i] !== true) {
- cc = ca[0];
- cd.unshift(ca[1])
- }
- }
- break
- }
- }
- }
- }
- if (cf !== true) {
- if (cf && ch['throws']) {
- b9 = cf(b9)
- } else {
- try {
- b9 = cf(b9)
- } catch (cb) {
- return {
- state: 'parsererror',
- error: cf ? cb : 'No conversion from ' + b8 + ' to ' + cc
- }
- }
- }
- }
- }
- }
- }
- }
- return {
- state: 'success',
- data: b9
- }
- }
- bJ.extend({
- active: 0,
- lastModified: {
- },
- etag: {
- },
- ajaxSettings: {
- url: ab,
- type: 'GET',
- isLocal: D.test(b5[1]),
- global: true,
- processData: true,
- async: true,
- contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
- accepts: {
- '*': aY,
- text: 'text/plain',
- html: 'text/html',
- xml: 'application/xml, text/xml',
- json: 'application/json, text/javascript'
- },
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
- responseFields: {
- xml: 'responseXML',
- text: 'responseText',
- json: 'responseJSON'
- },
- converters: {
- '* text': String,
- 'text html': true,
- 'text json': bJ.parseJSON,
- 'text xml': bJ.parseXML
- },
- flatOptions: {
- url: true,
- context: true
- }
- },
- ajaxSetup: function (i, e) {
- return e ? u(u(i, bJ.ajaxSettings), e) : u(bJ.ajaxSettings, i)
- },
- ajaxPrefilter: bL(x),
- ajaxTransport: bL(ba),
- ajax: function (cb, b8) {
- if (typeof cb === 'object') {
- b8 = cb;
- cb = undefined
- }
- b8 = b8 || {
- };
- var ck,
- cm,
- cc,
- cr,
- cg,
- b7,
- cn,
- b9,
- cf = bJ.ajaxSetup({
- }, b8),
- ct = cf.context || cf,
- ci = cf.context && (ct.nodeType || ct.jquery) ? bJ(ct) : bJ.event,
- cs = bJ.Deferred(),
- cp = bJ.Callbacks('once memory'),
- cd = cf.statusCode || {
- },
- cj = {
- },
- cq = {
- },
- ca = 0,
- ce = 'canceled',
- cl = {
- readyState: 0,
- getResponseHeader: function (i) {
- var e;
- if (ca === 2) {
- if (!b9) {
- b9 = {
- };
- while ((e = ai.exec(cr))) {
- b9[e[1].toLowerCase()] = e[2]
- }
- }
- e = b9[i.toLowerCase()]
- }
- return e == null ? null : e
- },
- getAllResponseHeaders: function () {
- return ca === 2 ? cr : null
- },
- setRequestHeader: function (i, cu) {
- var e = i.toLowerCase();
- if (!ca) {
- i = cq[e] = cq[e] || i;
- cj[i] = cu
- }
- return this
- },
- overrideMimeType: function (e) {
- if (!ca) {
- cf.mimeType = e
- }
- return this
- },
- statusCode: function (i) {
- var e;
- if (i) {
- if (ca < 2) {
- for (e in i) {
- cd[e] = [
- cd[e],
- i[e]
- ]
- }
- } else {
- cl.always(i[cl.status])
- }
- }
- return this
- },
- abort: function (i) {
- var e = i || ce;
- if (cn) {
- cn.abort(e)
- }
- ch(0, e);
- return this
- }
- };
- cs.promise(cl).complete = cp.add;
- cl.success = cl.done;
- cl.error = cl.fail;
- cf.url = ((cb || cf.url || ab) + '').replace(aq, '').replace(aL, b5[1] + '//');
- cf.type = b8.method || b8.type || cf.method || cf.type;
- cf.dataTypes = bJ.trim(cf.dataType || '*').toLowerCase().match(aG) || [
- ''
- ];
- if (cf.crossDomain == null) {
- ck = aW.exec(cf.url.toLowerCase());
- cf.crossDomain = !!(ck && (ck[1] !== b5[1] || ck[2] !== b5[2] || (ck[3] || (ck[1] === 'http:' ? '80' : '443')) !== (b5[3] || (b5[1] === 'http:' ? '80' : '443'))))
- }
- if (cf.data && cf.processData && typeof cf.data !== 'string') {
- cf.data = bJ.param(cf.data, cf.traditional)
- }
- r(x, cf, b8, cl);
- if (ca === 2) {
- return cl
- }
- b7 = cf.global;
- if (b7 && bJ.active++ === 0) {
- bJ.event.trigger('ajaxStart')
- }
- cf.type = cf.type.toUpperCase();
- cf.hasContent = !s.test(cf.type);
- cc = cf.url;
- if (!cf.hasContent) {
- if (cf.data) {
- cc = (cf.url += (bR.test(cc) ? '&' : '?') + cf.data);
- delete cf.data
- }
- if (cf.cache === false) {
- cf.url = S.test(cc) ? cc.replace(S, '$1_=' + bq++) : cc + (bR.test(cc) ? '&' : '?') + '_=' + bq++
- }
- }
- if (cf.ifModified) {
- if (bJ.lastModified[cc]) {
- cl.setRequestHeader('If-Modified-Since', bJ.lastModified[cc])
- }
- if (bJ.etag[cc]) {
- cl.setRequestHeader('If-None-Match', bJ.etag[cc])
- }
- }
- if (cf.data && cf.hasContent && cf.contentType !== false || b8.contentType) {
- cl.setRequestHeader('Content-Type', cf.contentType)
- }
- cl.setRequestHeader('Accept', cf.dataTypes[0] && cf.accepts[cf.dataTypes[0]] ? cf.accepts[cf.dataTypes[0]] + (cf.dataTypes[0] !== '*' ? ', ' + aY + '; q=0.01' : '') : cf.accepts['*']);
- for (cm in cf.headers) {
- cl.setRequestHeader(cm, cf.headers[cm])
- }
- if (cf.beforeSend && (cf.beforeSend.call(ct, cl, cf) === false || ca === 2)) {
- return cl.abort()
- }
- ce = 'abort';
- for (cm in {
- success: 1,
- error: 1,
- complete: 1
- }) {
- cl[cm](cf[cm])
- }
- cn = r(ba, cf, b8, cl);
- if (!cn) {
- ch( - 1, 'No Transport')
- } else {
- cl.readyState = 1;
- if (b7) {
- ci.trigger('ajaxSend', [
- cl,
- cf
- ])
- }
- if (cf.async && cf.timeout > 0) {
- cg = setTimeout(function () {
- cl.abort('timeout')
- }, cf.timeout)
- }
- try {
- ca = 1;
- cn.send(cj, ch)
- } catch (co) {
- if (ca < 2) {
- ch( - 1, co)
- } else {
- throw co
- }
- }
- }
- function ch(cx, i, cy, cv) {
- var e,
- cB,
- cz,
- cw,
- cA,
- cu = i;
- if (ca === 2) {
- return
- }
- ca = 2;
- if (cg) {
- clearTimeout(cg)
- }
- cn = undefined;
- cr = cv || '';
- cl.readyState = cx > 0 ? 4 : 0;
- e = cx >= 200 && cx < 300 || cx === 304;
- if (cy) {
- cw = h(cf, cl, cy)
- }
- cw = ah(cf, cw, cl, e);
- if (e) {
- if (cf.ifModified) {
- cA = cl.getResponseHeader('Last-Modified');
- if (cA) {
- bJ.lastModified[cc] = cA
- }
- cA = cl.getResponseHeader('etag');
- if (cA) {
- bJ.etag[cc] = cA
- }
- }
- if (cx === 204 || cf.type === 'HEAD') {
- cu = 'nocontent'
- } else {
- if (cx === 304) {
- cu = 'notmodified'
- } else {
- cu = cw.state;
- cB = cw.data;
- cz = cw.error;
- e = !cz
- }
- }
- } else {
- cz = cu;
- if (cx || !cu) {
- cu = 'error';
- if (cx < 0) {
- cx = 0
- }
- }
- }
- cl.status = cx;
- cl.statusText = (i || cu) + '';
- if (e) {
- cs.resolveWith(ct, [
- cB,
- cu,
- cl
- ])
- } else {
- cs.rejectWith(ct, [
- cl,
- cu,
- cz
- ])
- }
- cl.statusCode(cd);
- cd = undefined;
- if (b7) {
- ci.trigger(e ? 'ajaxSuccess' : 'ajaxError', [
- cl,
- cf,
- e ? cB : cz
- ])
- }
- cp.fireWith(ct, [
- cl,
- cu
- ]);
- if (b7) {
- ci.trigger('ajaxComplete', [
- cl,
- cf
- ]);
- if (!(--bJ.active)) {
- bJ.event.trigger('ajaxStop')
- }
- }
- }
- return cl
- },
- getJSON: function (e, i, b7) {
- return bJ.get(e, i, b7, 'json')
- },
- getScript: function (e, i) {
- return bJ.get(e, undefined, i, 'script')
- }
- });
- bJ.each(['get',
- 'post'], function (e, b7) {
- bJ[b7] = function (i, b9, ca, b8) {
- if (bJ.isFunction(b9)) {
- b8 = b8 || ca;
- ca = b9;
- b9 = undefined
- }
- return bJ.ajax({
- url: i,
- type: b7,
- dataType: b8,
- data: b9,
- success: ca
- })
- }
- });
- bJ.each(['ajaxStart',
- 'ajaxStop',
- 'ajaxComplete',
- 'ajaxError',
- 'ajaxSuccess',
- 'ajaxSend'], function (e, b7) {
- bJ.fn[b7] = function (i) {
- return this.on(b7, i)
- }
- });
- bJ._evalUrl = function (e) {
- return bJ.ajax({
- url: e,
- type: 'GET',
- dataType: 'script',
- async: false,
- global: false,
- 'throws': true
- })
- };
- bJ.fn.extend({
- wrapAll: function (e) {
- if (bJ.isFunction(e)) {
- return this.each(function (b7) {
- bJ(this).wrapAll(e.call(this, b7))
- })
- }
- if (this[0]) {
- var i = bJ(e, this[0].ownerDocument).eq(0).clone(true);
- if (this[0].parentNode) {
- i.insertBefore(this[0])
- }
- i.map(function () {
- var b7 = this;
- while (b7.firstChild && b7.firstChild.nodeType === 1) {
- b7 = b7.firstChild
- }
- return b7
- }).append(this)
- }
- return this
- },
- wrapInner: function (e) {
- if (bJ.isFunction(e)) {
- return this.each(function (b7) {
- bJ(this).wrapInner(e.call(this, b7))
- })
- }
- return this.each(function () {
- var i = bJ(this),
- b7 = i.contents();
- if (b7.length) {
- b7.wrapAll(e)
- } else {
- i.append(e)
- }
- })
- },
- wrap: function (e) {
- var i = bJ.isFunction(e);
- return this.each(function (b7) {
- bJ(this).wrapAll(i ? e.call(this, b7) : e)
- })
- },
- unwrap: function () {
- return this.parent().each(function () {
- if (!bJ.nodeName(this, 'body')) {
- bJ(this).replaceWith(this.childNodes)
- }
- }).end()
- }
- });
- bJ.expr.filters.hidden = function (e) {
- return e.offsetWidth <= 0 && e.offsetHeight <= 0 || (!E.reliableHiddenOffsets() && ((e.style && e.style.display) || bJ.css(e, 'display')) === 'none')
- };
- bJ.expr.filters.visible = function (e) {
- return !bJ.expr.filters.hidden(e)
- };
- var bx = /%20/g,
- aT = /\[\]$/,
- Y = /\r?\n/g,
- c = /^(?:submit|button|image|reset|file)$/i,
- av = /^(?:input|select|textarea|keygen)/i;
- function k(b7, b9, i, b8) {
- var e;
- if (bJ.isArray(b9)) {
- bJ.each(b9, function (cb, ca) {
- if (i || aT.test(b7)) {
- b8(b7, ca)
- } else {
- k(b7 + '[' + (typeof ca === 'object' ? cb : '') + ']', ca, i, b8)
- }
- })
- } else {
- if (!i && bJ.type(b9) === 'object') {
- for (e in b9) {
- k(b7 + '[' + e + ']', b9[e], i, b8)
- }
- } else {
- b8(b7, b9)
- }
- }
- }
- bJ.param = function (e, b7) {
- var b8,
- i = [
- ],
- b9 = function (ca, cb) {
- cb = bJ.isFunction(cb) ? cb() : (cb == null ? '' : cb);
- i[i.length] = encodeURIComponent(ca) + '=' + encodeURIComponent(cb)
- };
- if (b7 === undefined) {
- b7 = bJ.ajaxSettings && bJ.ajaxSettings.traditional
- }
- if (bJ.isArray(e) || (e.jquery && !bJ.isPlainObject(e))) {
- bJ.each(e, function () {
- b9(this.name, this.value)
- })
- } else {
- for (b8 in e) {
- k(b8, e[b8], b7, b9)
- }
- }
- return i.join('&').replace(bx, '+')
- };
- bJ.fn.extend({
- serialize: function () {
- return bJ.param(this.serializeArray())
- },
- serializeArray: function () {
- return this.map(function () {
- var e = bJ.prop(this, 'elements');
- return e ? bJ.makeArray(e) : this
- }).filter(function () {
- var e = this.type;
- return this.name && !bJ(this).is(':disabled') && av.test(this.nodeName) && !c.test(e) && (this.checked || !aN.test(e))
- }).map(function (e, b7) {
- var b8 = bJ(this).val();
- return b8 == null ? null : bJ.isArray(b8) ? bJ.map(b8, function (i) {
- return {
- name: b7.name,
- value: i.replace(Y, '\r\n')
- }
- }) : {
- name: b7.name,
- value: b8.replace(Y, '\r\n')
- }
- }).get()
- }
- });
- bJ.ajaxSettings.xhr = a6.ActiveXObject !== undefined ? function () {
- return !this.isLocal && /^(get|post|head|put|delete|options)$/i.test(this.type) && bF() || bh()
- }
- : bF;
- var aB = 0,
- ak = {
- },
- az = bJ.ajaxSettings.xhr();
- if (a6.ActiveXObject) {
- bJ(a6).on('unload', function () {
- for (var e in ak) {
- ak[e](undefined, true)
- }
- })
- }
- E.cors = !!az && ('withCredentials' in az);
- az = E.ajax = !!az;
- if (az) {
- bJ.ajaxTransport(function (e) {
- if (!e.crossDomain || E.cors) {
- var i;
- return {
- send: function (ca, b7) {
- var b8,
- b9 = e.xhr(),
- cb = ++aB;
- b9.open(e.type, e.url, e.async, e.username, e.password);
- if (e.xhrFields) {
- for (b8 in e.xhrFields) {
- b9[b8] = e.xhrFields[b8]
- }
- }
- if (e.mimeType && b9.overrideMimeType) {
- b9.overrideMimeType(e.mimeType)
- }
- if (!e.crossDomain && !ca['X-Requested-With']) {
- ca['X-Requested-With'] = 'XMLHttpRequest'
- }
- for (b8 in ca) {
- if (ca[b8] !== undefined) {
- b9.setRequestHeader(b8, ca[b8] + '')
- }
- }
- b9.send((e.hasContent && e.data) || null);
- i = function (ce, cd) {
- var cc,
- ch,
- cf;
- if (i && (cd || b9.readyState === 4)) {
- delete ak[cb];
- i = undefined;
- b9.onreadystatechange = bJ.noop;
- if (cd) {
- if (b9.readyState !== 4) {
- b9.abort()
- }
- } else {
- cf = {
- };
- cc = b9.status;
- if (typeof b9.responseText === 'string') {
- cf.text = b9.responseText
- }
- try {
- ch = b9.statusText
- } catch (cg) {
- ch = ''
- }
- if (!cc && e.isLocal && !e.crossDomain) {
- cc = cf.text ? 200 : 404
- } else {
- if (cc === 1223) {
- cc = 204
- }
- }
- }
- }
- if (cf) {
- b7(cc, ch, cf, b9.getAllResponseHeaders())
- }
- };
- if (!e.async) {
- i()
- } else {
- if (b9.readyState === 4) {
- setTimeout(i)
- } else {
- b9.onreadystatechange = ak[cb] = i
- }
- }
- },
- abort: function () {
- if (i) {
- i(undefined, true)
- }
- }
- }
- }
- })
- }
- function bF() {
- try {
- return new a6.XMLHttpRequest()
- } catch (i) {
- }
- }
- function bh() {
- try {
- return new a6.ActiveXObject('Microsoft.XMLHTTP')
- } catch (i) {
- }
- }
- bJ.ajaxSetup({
- accepts: {
- script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- 'text script': function (e) {
- bJ.globalEval(e);
- return e
- }
- }
- });
- bJ.ajaxPrefilter('script', function (e) {
- if (e.cache === undefined) {
- e.cache = false
- }
- if (e.crossDomain) {
- e.type = 'GET';
- e.global = false
- }
- });
- bJ.ajaxTransport('script', function (b7) {
- if (b7.crossDomain) {
- var e,
- i = p.head || bJ('head') [0] || p.documentElement;
- return {
- send: function (b8, b9) {
- e = p.createElement('script');
- e.async = true;
- if (b7.scriptCharset) {
- e.charset = b7.scriptCharset
- }
- e.src = b7.url;
- e.onload = e.onreadystatechange = function (cb, ca) {
- if (ca || !e.readyState || /loaded|complete/.test(e.readyState)) {
- e.onload = e.onreadystatechange = null;
- if (e.parentNode) {
- e.parentNode.removeChild(e)
- }
- e = null;
- if (!ca) {
- b9(200, 'success')
- }
- }
- };
- i.insertBefore(e, i.firstChild)
- },
- abort: function () {
- if (e) {
- e.onload(undefined, true)
- }
- }
- }
- }
- });
- var bt = [
- ],
- a9 = /(=)\?(?=&|$)|\?\?/;
- bJ.ajaxSetup({
- jsonp: 'callback',
- jsonpCallback: function () {
- var e = bt.pop() || (bJ.expando + '_' + (bq++));
- this[e] = true;
- return e
- }
- });
- bJ.ajaxPrefilter('json jsonp', function (b8, e, b9) {
- var cb,
- i,
- b7,
- ca = b8.jsonp !== false && (a9.test(b8.url) ? 'url' : typeof b8.data === 'string' && !(b8.contentType || '').indexOf('application/x-www-form-urlencoded') && a9.test(b8.data) && 'data');
- if (ca || b8.dataTypes[0] === 'jsonp') {
- cb = b8.jsonpCallback = bJ.isFunction(b8.jsonpCallback) ? b8.jsonpCallback() : b8.jsonpCallback;
- if (ca) {
- b8[ca] = b8[ca].replace(a9, '$1' + cb)
- } else {
- if (b8.jsonp !== false) {
- b8.url += (bR.test(b8.url) ? '&' : '?') + b8.jsonp + '=' + cb
- }
- }
- b8.converters['script json'] = function () {
- if (!b7) {
- bJ.error(cb + ' was not called')
- }
- return b7[0]
- };
- b8.dataTypes[0] = 'json';
- i = a6[cb];
- a6[cb] = function () {
- b7 = arguments
- };
- b9.always(function () {
- a6[cb] = i;
- if (b8[cb]) {
- b8.jsonpCallback = e.jsonpCallback;
- bt.push(cb)
- }
- if (b7 && bJ.isFunction(i)) {
- i(b7[0])
- }
- b7 = i = undefined
- });
- return 'script'
- }
- });
- bJ.parseHTML = function (b9, b7, b8) {
- if (!b9 || typeof b9 !== 'string') {
- return null
- }
- if (typeof b7 === 'boolean') {
- b8 = b7;
- b7 = false
- }
- b7 = b7 || p;
- var i = b.exec(b9),
- e = !b8 && [
- ];
- if (i) {
- return [b7.createElement(i[1])]
- }
- i = bJ.buildFragment([b9], b7, e);
- if (e && e.length) {
- bJ(e).remove()
- }
- return bJ.merge([], i.childNodes)
- };
- var b2 = bJ.fn.load;
- bJ.fn.load = function (b8, cb, cc) {
- if (typeof b8 !== 'string' && b2) {
- return b2.apply(this, arguments)
- }
- var e,
- b7,
- b9,
- i = this,
- ca = b8.indexOf(' ');
- if (ca >= 0) {
- e = bJ.trim(b8.slice(ca, b8.length));
- b8 = b8.slice(0, ca)
- }
- if (bJ.isFunction(cb)) {
- cc = cb;
- cb = undefined
- } else {
- if (cb && typeof cb === 'object') {
- b9 = 'POST'
- }
- }
- if (i.length > 0) {
- bJ.ajax({
- url: b8,
- type: b9,
- dataType: 'html',
- data: cb
- }).done(function (cd) {
- b7 = arguments;
- i.html(e ? bJ('<div>').append(bJ.parseHTML(cd)).find(e) : cd)
- }).complete(cc && function (ce, cd) {
- i.each(cc, b7 || [
- ce.responseText,
- cd,
- ce
- ])
- })
- }
- return this
- };
- bJ.expr.filters.animated = function (e) {
- return bJ.grep(bJ.timers, function (i) {
- return e === i.elem
- }).length
- };
- var bY = a6.document.documentElement;
- function bs(e) {
- return bJ.isWindow(e) ? e : e.nodeType === 9 ? e.defaultView || e.parentWindow : false
- }
- bJ.offset = {
- setOffset: function (b8, ci, cc) {
- var ce,
- cb,
- e,
- b9,
- b7,
- cg,
- ch,
- cd = bJ.css(b8, 'position'),
- ca = bJ(b8),
- cf = {
- };
- if (cd === 'static') {
- b8.style.position = 'relative'
- }
- b7 = ca.offset();
- e = bJ.css(b8, 'top');
- cg = bJ.css(b8, 'left');
- ch = (cd === 'absolute' || cd === 'fixed') && bJ.inArray('auto', [
- e,
- cg
- ]) > - 1;
- if (ch) {
- ce = ca.position();
- b9 = ce.top;
- cb = ce.left
- } else {
- b9 = parseFloat(e) || 0;
- cb = parseFloat(cg) || 0
- }
- if (bJ.isFunction(ci)) {
- ci = ci.call(b8, cc, b7)
- }
- if (ci.top != null) {
- cf.top = (ci.top - b7.top) + b9
- }
- if (ci.left != null) {
- cf.left = (ci.left - b7.left) + cb
- }
- if ('using' in ci) {
- ci.using.call(b8, cf)
- } else {
- ca.css(cf)
- }
- }
- };
- bJ.fn.extend({
- offset: function (i) {
- if (arguments.length) {
- return i === undefined ? this : this.each(function (cb) {
- bJ.offset.setOffset(this, i, cb)
- })
- }
- var e,
- ca,
- b8 = {
- top: 0,
- left: 0
- },
- b7 = this[0],
- b9 = b7 && b7.ownerDocument;
- if (!b9) {
- return
- }
- e = b9.documentElement;
- if (!bJ.contains(e, b7)) {
- return b8
- }
- if (typeof b7.getBoundingClientRect !== aD) {
- b8 = b7.getBoundingClientRect()
- }
- ca = bs(b9);
- return {
- top: b8.top + (ca.pageYOffset || e.scrollTop) - (e.clientTop || 0),
- left: b8.left + (ca.pageXOffset || e.scrollLeft) - (e.clientLeft || 0)
- }
- },
- position: function () {
- if (!this[0]) {
- return
- }
- var b7,
- b8,
- e = {
- top: 0,
- left: 0
- },
- i = this[0];
- if (bJ.css(i, 'position') === 'fixed') {
- b8 = i.getBoundingClientRect()
- } else {
- b7 = this.offsetParent();
- b8 = this.offset();
- if (!bJ.nodeName(b7[0], 'html')) {
- e = b7.offset()
- }
- e.top += bJ.css(b7[0], 'borderTopWidth', true);
- e.left += bJ.css(b7[0], 'borderLeftWidth', true)
- }
- return {
- top: b8.top - e.top - bJ.css(i, 'marginTop', true),
- left: b8.left - e.left - bJ.css(i, 'marginLeft', true)
- }
- },
- offsetParent: function () {
- return this.map(function () {
- var e = this.offsetParent || bY;
- while (e && (!bJ.nodeName(e, 'html') && bJ.css(e, 'position') === 'static')) {
- e = e.offsetParent
- }
- return e || bY
- })
- }
- });
- bJ.each({
- scrollLeft: 'pageXOffset',
- scrollTop: 'pageYOffset'
- }, function (b7, i) {
- var e = /Y/.test(i);
- bJ.fn[b7] = function (b8) {
- return aC(this, function (b9, cc, cb) {
- var ca = bs(b9);
- if (cb === undefined) {
- return ca ? (i in ca) ? ca[i] : ca.document.documentElement[cc] : b9[cc]
- }
- if (ca) {
- ca.scrollTo(!e ? cb : bJ(ca).scrollLeft(), e ? cb : bJ(ca).scrollTop())
- } else {
- b9[cc] = cb
- }
- }, b7, b8, arguments.length, null)
- }
- });
- bJ.each(['top',
- 'left'], function (e, b7) {
- bJ.cssHooks[b7] = a8(E.pixelPosition, function (b8, i) {
- if (i) {
- i = H(b8, b7);
- return Z.test(i) ? bJ(b8).position() [b7] + 'px' : i
- }
- })
- });
- bJ.each({
- Height: 'height',
- Width: 'width'
- }, function (e, i) {
- bJ.each({
- padding: 'inner' + e,
- content: i,
- '': 'outer' + e
- }, function (b7, b8) {
- bJ.fn[b8] = function (cc, cb) {
- var ca = arguments.length && (b7 || typeof cc !== 'boolean'),
- b9 = b7 || (cc === true || cb === true ? 'margin' : 'border');
- return aC(this, function (ce, cd, cf) {
- var cg;
- if (bJ.isWindow(ce)) {
- return ce.document.documentElement['client' + e]
- }
- if (ce.nodeType === 9) {
- cg = ce.documentElement;
- return Math.max(ce.body['scroll' + e], cg['scroll' + e], ce.body['offset' + e], cg['offset' + e], cg['client' + e])
- }
- return cf === undefined ? bJ.css(ce, cd, b9) : bJ.style(ce, cd, cf, b9)
- }, i, ca ? cc : undefined, ca, null)
- }
- })
- });
- bJ.fn.size = function () {
- return this.length
- };
- bJ.fn.andSelf = bJ.fn.addBack;
- if (typeof define === 'function' && define.amd) {
- define('jquery', [
- ], function () {
- return bJ
- })
- }
- var bl = a6.jQuery,
- J = a6.$;
- bJ.noConflict = function (e) {
- if (a6.$ === bJ) {
- a6.$ = J
- }
- if (e && a6.jQuery === bJ) {
- a6.jQuery = bl
- }
- return bJ
- };
- if (typeof aw === aD) {
- a6.jQuery = a6.$ = bJ
- }
- return bJ
- }));
- (function ($) {
- var escape = /["\\\x00-\x1f\x7f-\x9f]/g,
- meta = {
- '': '\\b',
- '\t': '\\t',
- '\n': '\\n',
- '\f': '\\f',
- '\r': '\\r',
- '"': '\\"',
- '\\': '\\\\'
- },
- hasOwn = Object.prototype.hasOwnProperty;
- $.toJSON = typeof JSON === 'object' && JSON.stringify ? JSON.stringify : function (o) {
- if (o === null) {
- return 'null'
- }
- var pairs,
- k,
- name,
- val,
- type = $.type(o);
- if (type === 'undefined') {
- return undefined
- }
- if (type === 'number' || type === 'boolean') {
- return String(o)
- }
- if (type === 'string') {
- return $.quoteString(o)
- }
- if (typeof o.toJSON === 'function') {
- return $.toJSON(o.toJSON())
- }
- if (type === 'date') {
- var month = o.getUTCMonth() + 1,
- day = o.getUTCDate(),
- year = o.getUTCFullYear(),
- hours = o.getUTCHours(),
- minutes = o.getUTCMinutes(),
- seconds = o.getUTCSeconds(),
- milli = o.getUTCMilliseconds();
- if (month < 10) {
- month = '0' + month
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hours < 10) {
- hours = '0' + hours
- }
- if (minutes < 10) {
- minutes = '0' + minutes
- }
- if (seconds < 10) {
- seconds = '0' + seconds
- }
- if (milli < 100) {
- milli = '0' + milli
- }
- if (milli < 10) {
- milli = '0' + milli
- }
- return '"' + year + '-' + month + '-' + day + 'T' + hours + ':' + minutes + ':' + seconds + '.' + milli + 'Z"'
- }
- pairs = [
- ];
- if ($.isArray(o)) {
- for (k = 0; k < o.length; k++) {
- pairs.push($.toJSON(o[k]) || 'null')
- }
- return '[' + pairs.join(',') + ']'
- }
- if (typeof o === 'object') {
- for (k in o) {
- if (hasOwn.call(o, k)) {
- type = typeof k;
- if (type === 'number') {
- name = '"' + k + '"'
- } else {
- if (type === 'string') {
- name = $.quoteString(k)
- } else {
- continue
- }
- }
- type = typeof o[k];
- if (type !== 'function' && type !== 'undefined') {
- val = $.toJSON(o[k]);
- pairs.push(name + ':' + val)
- }
- }
- }
- return '{' + pairs.join(',') + '}'
- }
- };
- $.evalJSON = typeof JSON === 'object' && JSON.parse ? JSON.parse : function (str) {
- return eval('(' + str + ')')
- };
- $.secureEvalJSON = typeof JSON === 'object' && JSON.parse ? JSON.parse : function (str) {
- var filtered = str.replace(/\\["\\\/bfnrtu]/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, '');
- if (/^[\],:{}\s]*$/.test(filtered)) {
- return eval('(' + str + ')')
- }
- throw new SyntaxError('Error parsing JSON, source is not valid.')
- };
- $.quoteString = function (str) {
- if (str.match(escape)) {
- return '"' + str.replace(escape, function (a) {
- var c = meta[a];
- if (typeof c === 'string') {
- return c
- }
- c = a.charCodeAt();
- return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16)
- }) + '"'
- }
- return '"' + str + '"'
- }
- }(jQuery));
- (function (b) {
- if (typeof define === 'function' && define.amd) {
- define(['jquery'], b)
- } else {
- if (typeof exports === 'object') {
- b(require('jquery'))
- } else {
- b(jQuery)
- }
- }
- }(function (g) {
- var b = /\+/g;
- function e(j) {
- return c.raw ? j : encodeURIComponent(j)
- }
- function h(j) {
- return c.raw ? j : decodeURIComponent(j)
- }
- function i(j) {
- return e(c.json ? JSON.stringify(j) : String(j))
- }
- function d(j) {
- if (j.indexOf('"') === 0) {
- j = j.slice(1, - 1).replace(/\\"/g, '"').replace(/\\\\/g, '\\')
- }
- try {
- j = decodeURIComponent(j.replace(b, ' '));
- return c.json ? JSON.parse(j) : j
- } catch (k) {
- }
- }
- function f(k, j) {
- var l = c.raw ? k : d(k);
- return g.isFunction(j) ? j(l) : l
- }
- var c = g.cookie = function (r, q, w) {
- if (arguments.length > 1 && !g.isFunction(q)) {
- w = g.extend({
- }, c.defaults, w);
- if (typeof w.expires === 'number') {
- var s = w.expires,
- v = w.expires = new Date();
- v.setTime( + v + s * 86400000)
- }
- return (document.cookie = [
- e(r),
- '=',
- i(q),
- w.expires ? '; expires=' + w.expires.toUTCString() : '',
- w.path ? '; path=' + w.path : '',
- w.domain ? '; domain=' + w.domain : '',
- w.secure ? '; secure' : ''
- ].join(''))
- }
- var x = r ? undefined : {
- };
- var u = document.cookie ? document.cookie.split('; ') : [
- ];
- for (var p = 0, n = u.length; p < n; p++) {
- var o = u[p].split('=');
- var j = h(o.shift());
- var k = o.join('=');
- if (r && r === j) {
- x = f(k, q);
- break
- }
- if (!r && (k = f(k)) !== undefined) {
- x[j] = k
- }
- }
- return x
- };
- c.defaults = {
- };
- g.removeCookie = function (k, j) {
- if (g.cookie(k) === undefined) {
- return false
- }
- g.cookie(k, '', g.extend({
- }, j, {
- expires: - 1
- }));
- return !g.cookie(k)
- }
- }));
- (function (P, n, ad) {
- var R = {
- html: false,
- photo: false,
- iframe: false,
- inline: false,
- transition: 'elastic',
- speed: 300,
- fadeOut: 300,
- width: false,
- initialWidth: '600',
- innerWidth: false,
- maxWidth: false,
- height: false,
- initialHeight: '450',
- innerHeight: false,
- maxHeight: false,
- scalePhotos: true,
- scrolling: true,
- opacity: 0.9,
- preloading: true,
- className: false,
- overlayClose: true,
- escKey: true,
- arrowKey: true,
- top: false,
- bottom: false,
- left: false,
- right: false,
- fixed: false,
- data: undefined,
- closeButton: true,
- fastIframe: true,
- open: false,
- reposition: true,
- loop: true,
- slideshow: false,
- slideshowAuto: true,
- slideshowSpeed: 2500,
- slideshowStart: 'start slideshow',
- slideshowStop: 'stop slideshow',
- photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
- retinaImage: false,
- retinaUrl: false,
- retinaSuffix: '@2x.$1',
- current: 'image {current} of {total}',
- previous: 'previous',
- next: 'next',
- close: 'close',
- xhrError: 'This content failed to load.',
- imgError: 'This image failed to load.',
- returnFocus: true,
- trapFocus: true,
- onOpen: false,
- onLoad: false,
- onComplete: false,
- onCleanup: false,
- onClosed: false,
- rel: function () {
- return this.rel
- },
- href: function () {
- return P(this).attr('href')
- },
- title: function () {
- return this.title
- }
- },
- z = 'colorbox',
- Z = 'cbox',
- u = Z + 'Element',
- ac = Z + '_open',
- f = Z + '_load',
- aa = Z + '_complete',
- y = Z + '_cleanup',
- aj = Z + '_closed',
- j = Z + '_purge',
- X,
- an,
- ao,
- e,
- N,
- s,
- c,
- W,
- d,
- ah,
- U,
- l,
- i,
- r,
- x,
- ae,
- w,
- Y,
- B,
- E,
- L = P('<a/>'),
- al,
- ap,
- p,
- h,
- b,
- O,
- q,
- G,
- af,
- T,
- C,
- S,
- ak = 'div',
- J = 0,
- ag = {
- },
- ai;
- function M(aq, au, at) {
- var ar = n.createElement(aq);
- if (au) {
- ar.id = Z + au
- }
- if (at) {
- ar.style.cssText = at
- }
- return P(ar)
- }
- function v() {
- return ad.innerHeight ? ad.innerHeight : P(ad).height()
- }
- function D(ar, aq) {
- if (aq !== Object(aq)) {
- aq = {
- }
- }
- this.cache = {
- };
- this.el = ar;
- this.value = function (at) {
- var au;
- if (this.cache[at] === undefined) {
- au = P(this.el).attr('data-cbox-' + at);
- if (au !== undefined) {
- this.cache[at] = au
- } else {
- if (aq[at] !== undefined) {
- this.cache[at] = aq[at]
- } else {
- if (R[at] !== undefined) {
- this.cache[at] = R[at]
- }
- }
- }
- }
- return this.cache[at]
- };
- this.get = function (at) {
- var au = this.value(at);
- return P.isFunction(au) ? au.call(this.el, this) : au
- }
- }
- function I(ar) {
- var aq = d.length,
- at = (O + ar) % aq;
- return (at < 0) ? aq + at : at
- }
- function V(aq, ar) {
- return Math.round((/%/.test(aq) ? ((ar === 'x' ? ah.width() : v()) / 100) : 1) * parseInt(aq, 10))
- }
- function F(ar, aq) {
- return ar.get('photo') || ar.get('photoRegex').test(aq)
- }
- function H(ar, aq) {
- return ar.get('retinaUrl') && ad.devicePixelRatio > 1 ? aq.replace(ar.get('photoRegex'), ar.get('retinaSuffix')) : aq
- }
- function am(aq) {
- if ('contains' in an[0] && !an[0].contains(aq.target) && aq.target !== X[0]) {
- aq.stopPropagation();
- an.focus()
- }
- }
- function o(aq) {
- if (o.str !== aq) {
- an.add(X).removeClass(o.str).addClass(aq);
- o.str = aq
- }
- }
- function Q(aq) {
- O = 0;
- if (aq && aq !== false && aq !== 'nofollow') {
- d = P('.' + u).filter(function () {
- var ar = P.data(this, z);
- var at = new D(this, ar);
- return (at.get('rel') === aq)
- });
- O = d.index(al.el);
- if (O === - 1) {
- d = d.add(al.el);
- O = d.length - 1
- }
- } else {
- d = P(al.el)
- }
- }
- function K(aq) {
- P(n).trigger(aq);
- L.triggerHandler(aq)
- }
- var A = (function () {
- var ar,
- av = Z + 'Slideshow_',
- az = 'click.' + Z,
- ax;
- function at() {
- clearTimeout(ax)
- }
- function ay() {
- if (al.get('loop') || d[O + 1]) {
- at();
- ax = setTimeout(S.next, al.get('slideshowSpeed'))
- }
- }
- function aq() {
- ae.html(al.get('slideshowStop')).unbind(az).one(az, aw);
- L.bind(aa, ay).bind(f, at);
- an.removeClass(av + 'off').addClass(av + 'on')
- }
- function aw() {
- at();
- L.unbind(aa, ay).unbind(f, at);
- ae.html(al.get('slideshowStart')).unbind(az).one(az, function () {
- S.next();
- aq()
- });
- an.removeClass(av + 'on').addClass(av + 'off')
- }
- function au() {
- ar = false;
- ae.hide();
- at();
- L.unbind(aa, ay).unbind(f, at);
- an.removeClass(av + 'off ' + av + 'on')
- }
- return function () {
- if (ar) {
- if (!al.get('slideshow')) {
- L.unbind(y, au);
- au()
- }
- } else {
- if (al.get('slideshow') && d[1]) {
- ar = true;
- L.one(y, au);
- if (al.get('slideshowAuto')) {
- aq()
- } else {
- aw()
- }
- ae.show()
- }
- }
- }
- }());
- function g(at) {
- var ar;
- if (!T) {
- ar = P(at).data(z);
- al = new D(at, ar);
- Q(al.get('rel'));
- if (!G) {
- G = af = true;
- o(al.get('className'));
- an.css({
- visibility: 'hidden',
- display: 'block',
- opacity: ''
- });
- U = M(ak, 'LoadedContent', 'width:0; height:0; overflow:hidden; visibility:hidden');
- e.css({
- width: '',
- height: ''
- }).append(U);
- ap = N.height() + W.height() + e.outerHeight(true) - e.height();
- p = s.width() + c.width() + e.outerWidth(true) - e.width();
- h = U.outerHeight(true);
- b = U.outerWidth(true);
- var ax = V(al.get('initialWidth'), 'x');
- var au = V(al.get('initialHeight'), 'y');
- var aw = al.get('maxWidth');
- var av = al.get('maxHeight');
- al.w = (aw !== false ? Math.min(ax, V(aw, 'x')) : ax) - b - p;
- al.h = (av !== false ? Math.min(au, V(av, 'y')) : au) - h - ap;
- U.css({
- width: '',
- height: al.h
- });
- S.position();
- K(ac);
- al.get('onOpen');
- E.add(r).hide();
- an.focus();
- if (al.get('trapFocus')) {
- if (n.addEventListener) {
- n.addEventListener('focus', am, true);
- L.one(aj, function () {
- n.removeEventListener('focus', am, true)
- })
- }
- }
- if (al.get('returnFocus')) {
- L.one(aj, function () {
- P(al.el).focus()
- })
- }
- }
- var aq = parseFloat(al.get('opacity'));
- X.css({
- opacity: aq === aq ? aq : '',
- cursor: al.get('overlayClose') ? 'pointer' : '',
- visibility: 'visible'
- }).show();
- if (al.get('closeButton')) {
- B.html(al.get('close')).appendTo(e)
- } else {
- B.appendTo('<div/>')
- }
- ab()
- }
- }
- function t() {
- if (!an) {
- ai = false;
- ah = P(ad);
- an = M(ak).attr({
- id: z,
- 'class': P.support.opacity === false ? Z + 'IE' : '',
- role: 'dialog',
- tabindex: '-1'
- }).hide();
- X = M(ak, 'Overlay').hide();
- i = P([M(ak, 'LoadingOverlay') [0],
- M(ak, 'LoadingGraphic') [0]]);
- ao = M(ak, 'Wrapper');
- e = M(ak, 'Content').append(r = M(ak, 'Title'), x = M(ak, 'Current'), Y = P('<button type="button"/>').attr({
- id: Z + 'Previous'
- }), w = P('<button type="button"/>').attr({
- id: Z + 'Next'
- }), ae = M('button', 'Slideshow'), i);
- B = P('<button type="button"/>').attr({
- id: Z + 'Close'
- });
- ao.append(M(ak).append(M(ak, 'TopLeft'), N = M(ak, 'TopCenter'), M(ak, 'TopRight')), M(ak, false, 'clear:left').append(s = M(ak, 'MiddleLeft'), e, c = M(ak, 'MiddleRight')), M(ak, false, 'clear:left').append(M(ak, 'BottomLeft'), W = M(ak, 'BottomCenter'), M(ak, 'BottomRight'))).find('div div').css({
- 'float': 'left'
- });
- l = M(ak, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');
- E = w.add(Y).add(x).add(ae)
- }
- if (n.body && !an.parent().length) {
- P(n.body).append(X, an.append(ao, l))
- }
- }
- function k() {
- function aq(ar) {
- if (!(ar.which > 1 || ar.shiftKey || ar.altKey || ar.metaKey || ar.ctrlKey)) {
- ar.preventDefault();
- g(this)
- }
- }
- if (an) {
- if (!ai) {
- ai = true;
- w.click(function () {
- S.next()
- });
- Y.click(function () {
- S.prev()
- });
- B.click(function () {
- S.close()
- });
- X.click(function () {
- if (al.get('overlayClose')) {
- S.close()
- }
- });
- P(n).bind('keydown.' + Z, function (at) {
- var ar = at.keyCode;
- if (G && al.get('escKey') && ar === 27) {
- at.preventDefault();
- S.close()
- }
- if (G && al.get('arrowKey') && d[1] && !at.altKey) {
- if (ar === 37) {
- at.preventDefault();
- Y.click()
- } else {
- if (ar === 39) {
- at.preventDefault();
- w.click()
- }
- }
- }
- });
- if (P.isFunction(P.fn.on)) {
- P(n).on('click.' + Z, '.' + u, aq)
- } else {
- P('.' + u).live('click.' + Z, aq)
- }
- }
- return true
- }
- return false
- }
- if (P[z]) {
- return
- }
- P(t);
- S = P.fn[z] = P[z] = function (aq, au) {
- var ar;
- var at = this;
- aq = aq || {
- };
- if (P.isFunction(at)) {
- at = P('<a/>');
- aq.open = true
- } else {
- if (!at[0]) {
- return at
- }
- }
- if (!at[0]) {
- return at
- }
- t();
- if (k()) {
- if (au) {
- aq.onComplete = au
- }
- at.each(function () {
- var av = P.data(this, z) || {
- };
- P.data(this, z, P.extend(av, aq))
- }).addClass(u);
- ar = new D(at[0], aq);
- if (ar.get('open')) {
- g(at[0])
- }
- }
- return at
- };
- S.position = function (at, av) {
- var ay,
- aA = 0,
- ar = 0,
- aw = an.offset(),
- aq,
- au;
- ah.unbind('resize.' + Z);
- an.css({
- top: - 90000,
- left: - 90000
- });
- aq = ah.scrollTop();
- au = ah.scrollLeft();
- if (al.get('fixed')) {
- aw.top -= aq;
- aw.left -= au;
- an.css({
- position: 'fixed'
- })
- } else {
- aA = aq;
- ar = au;
- an.css({
- position: 'absolute'
- })
- }
- if (al.get('right') !== false) {
- ar += Math.max(ah.width() - al.w - b - p - V(al.get('right'), 'x'), 0)
- } else {
- if (al.get('left') !== false) {
- ar += V(al.get('left'), 'x')
- } else {
- ar += Math.round(Math.max(ah.width() - al.w - b - p, 0) / 2)
- }
- }
- if (al.get('bottom') !== false) {
- aA += Math.max(v() - al.h - h - ap - V(al.get('bottom'), 'y'), 0)
- } else {
- if (al.get('top') !== false) {
- aA += V(al.get('top'), 'y')
- } else {
- aA += Math.round(Math.max(v() - al.h - h - ap, 0) / 2)
- }
- }
- an.css({
- top: aw.top,
- left: aw.left,
- visibility: 'visible'
- });
- ao[0].style.width = ao[0].style.height = '9999px';
- function az() {
- N[0].style.width = W[0].style.width = e[0].style.width = (parseInt(an[0].style.width, 10) - p) + 'px';
- e[0].style.height = s[0].style.height = c[0].style.height = (parseInt(an[0].style.height, 10) - ap) + 'px'
- }
- ay = {
- width: al.w + b + p,
- height: al.h + h + ap,
- top: aA,
- left: ar
- };
- if (at) {
- var ax = 0;
- P.each(ay, function (aB) {
- if (ay[aB] !== ag[aB]) {
- ax = at;
- return
- }
- });
- at = ax
- }
- ag = ay;
- if (!at) {
- an.css(ay)
- }
- an.dequeue().animate(ay, {
- duration: at || 0,
- complete: function () {
- az();
- af = false;
- ao[0].style.width = (al.w + b + p) + 'px';
- ao[0].style.height = (al.h + h + ap) + 'px';
- if (al.get('reposition')) {
- setTimeout(function () {
- ah.bind('resize.' + Z, S.position)
- }, 1)
- }
- if (P.isFunction(av)) {
- av()
- }
- },
- step: az
- })
- };
- S.resize = function (ar) {
- var aq;
- if (G) {
- ar = ar || {
- };
- if (ar.width) {
- al.w = V(ar.width, 'x') - b - p
- }
- if (ar.innerWidth) {
- al.w = V(ar.innerWidth, 'x')
- }
- U.css({
- width: al.w
- });
- if (ar.height) {
- al.h = V(ar.height, 'y') - h - ap
- }
- if (ar.innerHeight) {
- al.h = V(ar.innerHeight, 'y')
- }
- if (!ar.innerHeight && !ar.height) {
- aq = U.scrollTop();
- U.css({
- height: 'auto'
- });
- al.h = U.height()
- }
- U.css({
- height: al.h
- });
- if (aq) {
- U.scrollTop(aq)
- }
- S.position(al.get('transition') === 'none' ? 0 : al.get('speed'))
- }
- };
- S.prep = function (ar) {
- if (!G) {
- return
- }
- var av,
- at = al.get('transition') === 'none' ? 0 : al.get('speed');
- U.remove();
- U = M(ak, 'LoadedContent').append(ar);
- function aq() {
- al.w = al.w || U.width();
- al.w = al.mw && al.mw < al.w ? al.mw : al.w;
- return al.w
- }
- function au() {
- al.h = al.h || U.height();
- al.h = al.mh && al.mh < al.h ? al.mh : al.h;
- return al.h
- }
- U.hide().appendTo(l.show()).css({
- width: aq(),
- overflow: al.get('scrolling') ? 'auto' : 'hidden'
- }).css({
- height: au()
- }).prependTo(e);
- l.hide();
- P(q).css({
- 'float': 'none'
- });
- o(al.get('className'));
- av = function () {
- var ay = d.length,
- ax,
- aw;
- if (!G) {
- return
- }
- function az() {
- if (P.support.opacity === false) {
- an[0].style.removeAttribute('filter')
- }
- }
- aw = function () {
- clearTimeout(C);
- i.hide();
- K(aa);
- al.get('onComplete')
- };
- r.html(al.get('title')).show();
- U.show();
- if (ay > 1) {
- if (typeof al.get('current') === 'string') {
- x.html(al.get('current').replace('{current}', O + 1).replace('{total}', ay)).show()
- }
- w[(al.get('loop') || O < ay - 1) ? 'show' : 'hide']().html(al.get('next'));
- Y[(al.get('loop') || O) ? 'show' : 'hide']().html(al.get('previous'));
- A();
- if (al.get('preloading')) {
- P.each([I( - 1),
- I(1)], function () {
- var aA,
- aB = d[this],
- aC = new D(aB, P.data(aB, z)),
- aD = aC.get('href');
- if (aD && F(aC, aD)) {
- aD = H(aC, aD);
- aA = n.createElement('img');
- aA.src = aD
- }
- })
- }
- } else {
- E.hide()
- }
- if (al.get('iframe')) {
- ax = n.createElement('iframe');
- if ('frameBorder' in ax) {
- ax.frameBorder = 0
- }
- if ('allowTransparency' in ax) {
- ax.allowTransparency = 'true'
- }
- if (!al.get('scrolling')) {
- ax.scrolling = 'no'
- }
- P(ax).attr({
- src: al.get('href'),
- name: (new Date()).getTime(),
- 'class': Z + 'Iframe',
- allowFullScreen: true
- }).one('load', aw).appendTo(U);
- L.one(j, function () {
- ax.src = '//about:blank'
- });
- if (al.get('fastIframe')) {
- P(ax).trigger('load')
- }
- } else {
- aw()
- }
- if (al.get('transition') === 'fade') {
- an.fadeTo(at, 1, az)
- } else {
- az()
- }
- };
- if (al.get('transition') === 'fade') {
- an.fadeTo(at, 0, function () {
- S.position(0, av)
- })
- } else {
- S.position(at, av)
- }
- };
- function ab() {
- var au,
- av,
- at = S.prep,
- ar,
- aw = ++J;
- af = true;
- q = false;
- K(j);
- K(f);
- al.get('onLoad');
- al.h = al.get('height') ? V(al.get('height'), 'y') - h - ap : al.get('innerHeight') && V(al.get('innerHeight'), 'y');
- al.w = al.get('width') ? V(al.get('width'), 'x') - b - p : al.get('innerWidth') && V(al.get('innerWidth'), 'x');
- al.mw = al.w;
- al.mh = al.h;
- if (al.get('maxWidth')) {
- al.mw = V(al.get('maxWidth'), 'x') - b - p;
- al.mw = al.w && al.w < al.mw ? al.w : al.mw
- }
- if (al.get('maxHeight')) {
- al.mh = V(al.get('maxHeight'), 'y') - h - ap;
- al.mh = al.h && al.h < al.mh ? al.h : al.mh
- }
- au = al.get('href');
- C = setTimeout(function () {
- i.show()
- }, 100);
- if (al.get('inline')) {
- var aq = P(au);
- ar = P('<div>').hide().insertBefore(aq);
- L.one(j, function () {
- ar.replaceWith(aq)
- });
- at(aq)
- } else {
- if (al.get('iframe')) {
- at(' ')
- } else {
- if (al.get('html')) {
- at(al.get('html'))
- } else {
- if (F(al, au)) {
- au = H(al, au);
- q = new Image();
- P(q).addClass(Z + 'Photo').bind('error', function () {
- at(M(ak, 'Error').html(al.get('imgError')))
- }).one('load', function () {
- if (aw !== J) {
- return
- }
- setTimeout(function () {
- var ax;
- P.each(['alt',
- 'longdesc',
- 'aria-describedby'], function (az, aA) {
- var ay = P(al.el).attr(aA) || P(al.el).attr('data-' + aA);
- if (ay) {
- q.setAttribute(aA, ay)
- }
- });
- if (al.get('retinaImage') && ad.devicePixelRatio > 1) {
- q.height = q.height / ad.devicePixelRatio;
- q.width = q.width / ad.devicePixelRatio
- }
- if (al.get('scalePhotos')) {
- av = function () {
- q.height -= q.height * ax;
- q.width -= q.width * ax
- };
- if (al.mw && q.width > al.mw) {
- ax = (q.width - al.mw) / q.width;
- av()
- }
- if (al.mh && q.height > al.mh) {
- ax = (q.height - al.mh) / q.height;
- av()
- }
- }
- if (al.h) {
- q.style.marginTop = Math.max(al.mh - q.height, 0) / 2 + 'px'
- }
- if (d[1] && (al.get('loop') || d[O + 1])) {
- q.style.cursor = 'pointer';
- q.onclick = function () {
- S.next()
- }
- }
- q.style.width = q.width + 'px';
- q.style.height = q.height + 'px';
- at(q)
- }, 1)
- });
- q.src = au
- } else {
- if (au) {
- l.load(au, al.get('data'), function (ay, ax) {
- if (aw === J) {
- at(ax === 'error' ? M(ak, 'Error').html(al.get('xhrError')) : P(this).contents())
- }
- })
- }
- }
- }
- }
- }
- }
- S.next = function () {
- if (!af && d[1] && (al.get('loop') || d[O + 1])) {
- O = I(1);
- g(d[O])
- }
- };
- S.prev = function () {
- if (!af && d[1] && (al.get('loop') || O)) {
- O = I( - 1);
- g(d[O])
- }
- };
- S.close = function () {
- if (G && !T) {
- T = true;
- G = false;
- K(y);
- al.get('onCleanup');
- ah.unbind('.' + Z);
- X.fadeTo(al.get('fadeOut') || 0, 0);
- an.stop().fadeTo(al.get('fadeOut') || 0, 0, function () {
- an.hide();
- X.hide();
- K(j);
- U.remove();
- setTimeout(function () {
- T = false;
- K(aj);
- al.get('onClosed')
- }, 1)
- })
- }
- };
- S.remove = function () {
- if (!an) {
- return
- }
- an.stop();
- P[z].close();
- an.stop(false, true).remove();
- X.remove();
- T = false;
- an = null;
- P('.' + u).removeData(z).removeClass(u);
- P(n).unbind('click.' + Z).unbind('keydown.' + Z)
- };
- S.element = function () {
- return P(al.el)
- };
- S.settings = R
- }(jQuery, document, window));
- (function (b) {
- if (typeof define === 'function' && define.amd) {
- define(['jquery'], b)
- } else {
- if (typeof exports === 'object' && typeof require === 'function') {
- b(require('jquery'))
- } else {
- b(jQuery)
- }
- }
- }(function (e) {
- var b = (function () {
- return {
- escapeRegExChars: function (f) {
- return f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&')
- },
- createNode: function (f) {
- var g = document.createElement('div');
- g.className = f;
- g.style.position = 'absolute';
- g.style.display = 'none';
- return g
- }
- }
- }()),
- d = {
- ESC: 27,
- TAB: 9,
- RETURN: 13,
- LEFT: 37,
- UP: 38,
- RIGHT: 39,
- DOWN: 40
- };
- function c(g, f) {
- var i = function () {
- },
- h = this,
- j = {
- ajaxSettings: {
- },
- autoSelectFirst: false,
- appendTo: document.body,
- serviceUrl: null,
- lookup: null,
- onSelect: null,
- width: 'auto',
- minChars: 1,
- deferRequestBy: 250,
- params: {
- },
- formatResult: c.formatResult,
- delimiter: null,
- zIndex: 9999,
- type: 'GET',
- noCache: false,
- onSearchStart: i,
- onSearchComplete: i,
- onSearchError: i,
- containerClass: 'autocomplete-suggestions',
- tabDisabled: false,
- dataType: 'text',
- currentRequest: null,
- triggerSelectOnValidInput: true,
- preventBadQueries: false,
- lookupFilter: function (l, k, n) {
- return l.value.toLowerCase().indexOf(n) !== - 1
- },
- paramName: 'query',
- transformResult: function (k) {
- return typeof k === 'string' ? e.parseJSON(k) : k
- },
- showNoSuggestionNotice: false,
- noSuggestionNotice: 'No results',
- orientation: 'bottom',
- forceFixPosition: false
- };
- h.element = g;
- h.el = e(g);
- h.suggestions = [
- ];
- h.badQueries = [
- ];
- h.selectedIndex = - 1;
- h.currentValue = h.element.value;
- h.intervalId = 0;
- h.cachedResponse = {
- };
- h.onChangeInterval = null;
- h.onChange = null;
- h.isLocal = false;
- h.suggestionsContainer = null;
- h.noSuggestionsContainer = null;
- h.options = e.extend({
- }, j, f);
- h.classes = {
- selected: 'autocomplete-selected',
- suggestion: 'autocomplete-suggestion'
- };
- h.hint = null;
- h.hintValue = '';
- h.selection = null;
- h.initialize();
- h.setOptions(f)
- }
- c.utils = b;
- e.Autocomplete = c;
- c.formatResult = function (f, g) {
- var h = '(' + b.escapeRegExChars(g) + ')';
- return f.value.replace(new RegExp(h, 'gi'), '<strong>$1</strong>')
- };
- c.prototype = {
- killerFn: null,
- initialize: function () {
- var i = this,
- j = '.' + i.classes.suggestion,
- h = i.classes.selected,
- g = i.options,
- f;
- i.element.setAttribute('autocomplete', 'off');
- i.killerFn = function (k) {
- if (e(k.target).closest('.' + i.options.containerClass).length === 0) {
- i.killSuggestions();
- i.disableKillerFn()
- }
- };
- i.noSuggestionsContainer = e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0);
- i.suggestionsContainer = c.utils.createNode(g.containerClass);
- f = e(i.suggestionsContainer);
- f.appendTo(g.appendTo);
- if (g.width !== 'auto') {
- f.width(g.width)
- }
- f.on('mouseover.autocomplete', j, function () {
- i.activate(e(this).data('index'))
- });
- f.on('mouseout.autocomplete', function () {
- i.selectedIndex = - 1;
- f.children('.' + h).removeClass(h)
- });
- f.on('click.autocomplete', j, function () {
- i.select(e(this).data('index'))
- });
- i.fixPositionCapture = function () {
- if (i.visible) {
- i.fixPosition()
- }
- };
- e(window).on('resize.autocomplete', i.fixPositionCapture);
- i.el.on('keydown.autocomplete', function (k) {
- i.onKeyPress(k)
- });
- i.el.on('keyup.autocomplete', function (k) {
- i.onKeyUp(k)
- });
- i.el.on('blur.autocomplete', function () {
- i.onBlur()
- });
- i.el.on('focus.autocomplete', function () {
- i.onFocus()
- });
- i.el.on('change.autocomplete', function (k) {
- i.onKeyUp(k)
- })
- },
- onFocus: function () {
- var f = this;
- f.fixPosition();
- if (f.options.minChars <= f.el.val().length) {
- f.onValueChange()
- }
- },
- onBlur: function () {
- this.enableKillerFn()
- },
- setOptions: function (h) {
- var g = this,
- f = g.options;
- e.extend(f, h);
- g.isLocal = e.isArray(f.lookup);
- if (g.isLocal) {
- f.lookup = g.verifySuggestionsFormat(f.lookup)
- }
- f.orientation = g.validateOrientation(f.orientation, 'bottom');
- e(g.suggestionsContainer).css({
- 'max-height': f.maxHeight + 'px',
- width: f.width + 'px',
- 'z-index': f.zIndex
- })
- },
- clearCache: function () {
- this.cachedResponse = {
- };
- this.badQueries = [
- ]
- },
- clear: function () {
- this.clearCache();
- this.currentValue = '';
- this.suggestions = [
- ]
- },
- disable: function () {
- var f = this;
- f.disabled = true;
- clearInterval(f.onChangeInterval);
- if (f.currentRequest) {
- f.currentRequest.abort()
- }
- },
- enable: function () {
- this.disabled = false
- },
- fixPosition: function () {
- var l = this,
- q = e(l.suggestionsContainer),
- o = q.parent().get(0);
- if (o !== document.body && !l.options.forceFixPosition) {
- return
- }
- var g = l.options.orientation,
- t = q.outerHeight(),
- p = l.el.outerHeight(),
- j = l.el.offset(),
- r = {
- top: j.top,
- left: j.left
- };
- if (g == 'auto') {
- var i = e(window).height(),
- h = e(window).scrollTop(),
- n = - h + j.top - t,
- s = h + i - (j.top + p + t);
- g = (Math.max(n, s) === n) ? 'top' : 'bottom'
- }
- if (g === 'top') {
- r.top += - t
- } else {
- r.top += p
- }
- if (o !== document.body) {
- var k = q.css('opacity'),
- f;
- if (!l.visible) {
- q.css('opacity', 0).show()
- }
- f = q.offsetParent().offset();
- r.top -= f.top;
- r.left -= f.left;
- if (!l.visible) {
- q.css('opacity', k).hide()
- }
- }
- if (l.options.width === 'auto') {
- r.width = (l.el.outerWidth() - 2) + 'px'
- }
- q.css(r)
- },
- enableKillerFn: function () {
- var f = this;
- e(document).on('click.autocomplete', f.killerFn)
- },
- disableKillerFn: function () {
- var f = this;
- e(document).off('click.autocomplete', f.killerFn)
- },
- killSuggestions: function () {
- var f = this;
- f.stopKillSuggestions();
- f.intervalId = window.setInterval(function () {
- f.hide();
- f.stopKillSuggestions()
- }, 50)
- },
- stopKillSuggestions: function () {
- window.clearInterval(this.intervalId)
- },
- isCursorAtEnd: function () {
- var h = this,
- g = h.el.val().length,
- i = h.element.selectionStart,
- f;
- if (typeof i === 'number') {
- return i === g
- }
- if (document.selection) {
- f = document.selection.createRange();
- f.moveStart('character', - g);
- return g === f.text.length
- }
- return true
- },
- onKeyPress: function (g) {
- var f = this;
- if (!f.disabled && !f.visible && g.which === d.DOWN && f.currentValue) {
- f.suggest();
- return
- }
- if (f.disabled || !f.visible) {
- return
- }
- switch (g.which) {
- case d.ESC:
- f.el.val(f.currentValue);
- f.hide();
- break;
- case d.RIGHT:
- if (f.hint && f.options.onHint && f.isCursorAtEnd()) {
- f.selectHint();
- break
- }
- return;
- case d.TAB:
- if (f.hint && f.options.onHint) {
- f.selectHint();
- return
- }
- case d.RETURN:
- if (f.selectedIndex === - 1) {
- f.hide();
- return
- }
- f.select(f.selectedIndex);
- if (g.which === d.TAB && f.options.tabDisabled === false) {
- return
- }
- break;
- case d.UP:
- f.moveUp();
- break;
- case d.DOWN:
- f.moveDown();
- break;
- default:
- return
- }
- g.stopImmediatePropagation();
- g.preventDefault()
- },
- onKeyUp: function (g) {
- var f = this;
- if (f.disabled) {
- return
- }
- switch (g.which) {
- case d.UP:
- case d.DOWN:
- return
- }
- clearInterval(f.onChangeInterval);
- if (f.currentValue !== f.el.val()) {
- f.findBestHint();
- if (f.options.deferRequestBy > 0) {
- f.onChangeInterval = setInterval(function () {
- f.onValueChange()
- }, f.options.deferRequestBy)
- } else {
- f.onValueChange()
- }
- }
- },
- onValueChange: function () {
- var h = this,
- g = h.options,
- j = h.el.val(),
- i = h.getQuery(j),
- f;
- if (h.selection && h.currentValue !== i) {
- h.selection = null;
- (g.onInvalidateSelection || e.noop).call(h.element)
- }
- clearInterval(h.onChangeInterval);
- h.currentValue = j;
- h.selectedIndex = - 1;
- if (g.triggerSelectOnValidInput) {
- f = h.findSuggestionIndex(i);
- if (f !== - 1) {
- h.select(f);
- return
- }
- }
- if (i.length < g.minChars) {
- h.hide()
- } else {
- h.getSuggestions(i)
- }
- },
- findSuggestionIndex: function (i) {
- var h = this,
- g = - 1,
- f = i.toLowerCase();
- e.each(h.suggestions, function (k, j) {
- if (j.value.toLowerCase() === f) {
- g = k;
- return false
- }
- });
- return g
- },
- getQuery: function (g) {
- var f = this.options.delimiter,
- h;
- if (!f) {
- return g
- }
- h = g.split(f);
- return e.trim(h[h.length - 1])
- },
- getSuggestionsLocal: function (l) {
- var j = this,
- h = j.options,
- g = l.toLowerCase(),
- i = h.lookupFilter,
- f = parseInt(h.lookupLimit, 10),
- k;
- k = {
- suggestions: e.grep(h.lookup, function (n) {
- return i(n, l, g)
- })
- };
- if (f && k.suggestions.length > f) {
- k.suggestions = k.suggestions.slice(0, f)
- }
- return k
- },
- getSuggestions: function (j) {
- var f,
- h = this,
- g = h.options,
- k = g.serviceUrl,
- n,
- l,
- i;
- g.params[g.paramName] = j;
- n = g.ignoreParams ? null : g.params;
- if (g.onSearchStart.call(h.element, g.params) === false) {
- return
- }
- if (h.isLocal) {
- f = h.getSuggestionsLocal(j)
- } else {
- if (e.isFunction(k)) {
- k = k.call(h.element, j)
- }
- l = k + '?' + e.param(n || {
- });
- f = h.cachedResponse[l]
- }
- if (f && e.isArray(f.suggestions)) {
- h.suggestions = f.suggestions;
- h.suggest();
- g.onSearchComplete.call(h.element, j, f.suggestions)
- } else {
- if (!h.isBadQuery(j)) {
- if (h.currentRequest) {
- h.currentRequest.abort()
- }
- i = {
- url: k,
- data: n,
- type: g.type,
- dataType: g.dataType
- };
- e.extend(i, g.ajaxSettings);
- h.currentRequest = e.ajax(i).done(function (p) {
- var o;
- h.currentRequest = null;
- o = g.transformResult(p);
- h.processResponse(o, j, l);
- g.onSearchComplete.call(h.element, j, o.suggestions)
- }).fail(function (o, q, p) {
- g.onSearchError.call(h.element, j, o, q, p)
- })
- } else {
- g.onSearchComplete.call(h.element, j, [
- ])
- }
- }
- },
- isBadQuery: function (g) {
- if (!this.options.preventBadQueries) {
- return false
- }
- var h = this.badQueries,
- f = h.length;
- while (f--) {
- if (g.indexOf(h[f]) === 0) {
- return true
- }
- }
- return false
- },
- hide: function () {
- var f = this;
- f.visible = false;
- f.selectedIndex = - 1;
- clearInterval(f.onChangeInterval);
- e(f.suggestionsContainer).hide();
- f.signalHint(null)
- },
- suggest: function () {
- if (this.suggestions.length === 0) {
- if (this.options.showNoSuggestionNotice) {
- this.noSuggestions()
- } else {
- this.hide()
- }
- return
- }
- var n = this,
- t = n.options,
- r = t.groupBy,
- p = t.formatResult,
- q = n.getQuery(n.currentValue),
- o = n.classes.suggestion,
- h = n.classes.selected,
- f = e(n.suggestionsContainer),
- k = e(n.noSuggestionsContainer),
- s = t.beforeRender,
- j = '',
- g,
- i = function (v, w) {
- var u = v.data[r];
- if (g === u) {
- return ''
- }
- g = u;
- return '<div class="autocomplete-group"><strong>' + g + '</strong></div>'
- },
- l;
- if (t.triggerSelectOnValidInput) {
- l = n.findSuggestionIndex(q);
- if (l !== - 1) {
- n.select(l);
- return
- }
- }
- e.each(n.suggestions, function (v, u) {
- if (r) {
- j += i(u, q, v)
- }
- j += '<div class="' + o + '" data-index="' + v + '">' + p(u, q) + '</div>'
- });
- this.adjustContainerWidth();
- k.detach();
- f.html(j);
- if (t.autoSelectFirst) {
- n.selectedIndex = 0;
- f.children().first().addClass(h)
- }
- if (e.isFunction(s)) {
- s.call(n.element, f)
- }
- n.fixPosition();
- f.show();
- n.visible = true;
- n.findBestHint()
- },
- noSuggestions: function () {
- var h = this,
- f = e(h.suggestionsContainer),
- g = e(h.noSuggestionsContainer);
- this.adjustContainerWidth();
- g.detach();
- f.empty();
- f.append(g);
- h.fixPosition();
- f.show();
- h.visible = true
- },
- adjustContainerWidth: function () {
- var i = this,
- g = i.options,
- h,
- f = e(i.suggestionsContainer);
- if (g.width === 'auto') {
- h = i.el.outerWidth() - 2;
- f.width(h > 0 ? h : 300)
- }
- },
- findBestHint: function () {
- var g = this,
- h = g.el.val().toLowerCase(),
- f = null;
- if (!h) {
- return
- }
- e.each(g.suggestions, function (k, j) {
- var l = j.value.toLowerCase().indexOf(h) === 0;
- if (l) {
- f = j
- }
- return !l
- });
- g.signalHint(f)
- },
- signalHint: function (g) {
- var f = '',
- h = this;
- if (g) {
- f = h.currentValue + g.value.substr(h.currentValue.length)
- }
- if (h.hintValue !== f) {
- h.hintValue = f;
- h.hint = g;
- (this.options.onHint || e.noop) (f)
- }
- },
- verifySuggestionsFormat: function (f) {
- if (f.length && typeof f[0] === 'string') {
- return e.map(f, function (g) {
- return {
- value: g,
- data: null
- }
- })
- }
- return f
- },
- validateOrientation: function (f, g) {
- f = e.trim(f || '').toLowerCase();
- if (e.inArray(f, [
- 'auto',
- 'bottom',
- 'top'
- ]) === - 1) {
- f = g
- }
- return f
- },
- processResponse: function (f, g, j) {
- var i = this,
- h = i.options;
- f.suggestions = i.verifySuggestionsFormat(f.suggestions);
- if (!h.noCache) {
- i.cachedResponse[j] = f;
- if (h.preventBadQueries && f.suggestions.length === 0) {
- i.badQueries.push(g)
- }
- }
- if (g !== i.getQuery(i.currentValue)) {
- return
- }
- i.suggestions = f.suggestions;
- i.suggest()
- },
- activate: function (g) {
- var j = this,
- k,
- i = j.classes.selected,
- f = e(j.suggestionsContainer),
- h = f.find('.' + j.classes.suggestion);
- f.find('.' + i).removeClass(i);
- j.selectedIndex = g;
- if (j.selectedIndex !== - 1 && h.length > j.selectedIndex) {
- k = h.get(j.selectedIndex);
- e(k).addClass(i);
- return k
- }
- return null
- },
- selectHint: function () {
- var g = this,
- f = e.inArray(g.hint, g.suggestions);
- g.select(f)
- },
- select: function (f) {
- var g = this;
- g.hide();
- g.onSelect(f)
- },
- moveUp: function () {
- var f = this;
- if (f.selectedIndex === - 1) {
- return
- }
- if (f.selectedIndex === 0) {
- e(f.suggestionsContainer).children().first().removeClass(f.classes.selected);
- f.selectedIndex = - 1;
- f.el.val(f.currentValue);
- f.findBestHint();
- return
- }
- f.adjustScroll(f.selectedIndex - 1)
- },
- moveDown: function () {
- var f = this;
- if (f.selectedIndex === (f.suggestions.length - 1)) {
- return
- }
- f.adjustScroll(f.selectedIndex + 1)
- },
- adjustScroll: function (f) {
- var h = this,
- l = h.activate(f);
- if (!l) {
- return
- }
- var g,
- j,
- k,
- i = e(l).outerHeight();
- g = l.offsetTop;
- j = e(h.suggestionsContainer).scrollTop();
- k = j + h.options.maxHeight - i;
- if (g < j) {
- e(h.suggestionsContainer).scrollTop(g)
- } else {
- if (g > k) {
- e(h.suggestionsContainer).scrollTop(g - h.options.maxHeight + i)
- }
- }
- h.el.val(h.getValue(h.suggestions[f].value));
- h.signalHint(null)
- },
- onSelect: function (g) {
- var i = this,
- h = i.options.onSelect,
- f = i.suggestions[g];
- i.currentValue = i.getValue(f.value);
- if (i.currentValue !== i.el.val()) {
- i.el.val(i.currentValue)
- }
- i.signalHint(null);
- i.suggestions = [
- ];
- i.selection = f;
- if (e.isFunction(h)) {
- h.call(i.element, f)
- }
- },
- getValue: function (i) {
- var h = this,
- f = h.options.delimiter,
- g,
- j;
- if (!f) {
- return i
- }
- g = h.currentValue;
- j = g.split(f);
- if (j.length === 1) {
- return i
- }
- return g.substr(0, g.length - j[j.length - 1].length) + i
- },
- dispose: function () {
- var f = this;
- f.el.off('.autocomplete').removeData('autocomplete');
- f.disableKillerFn();
- e(window).off('resize.autocomplete', f.fixPositionCapture);
- e(f.suggestionsContainer).remove()
- }
- };
- e.fn.autocomplete = e.fn.devbridgeAutocomplete = function (g, f) {
- var h = 'autocomplete';
- if (arguments.length === 0) {
- return this.first().data(h)
- }
- return this.each(function () {
- var j = e(this),
- i = j.data(h);
- if (typeof g === 'string') {
- if (i && typeof i[g] === 'function') {
- i[g](f)
- }
- } else {
- if (i && i.dispose) {
- i.dispose()
- }
- i = new c(this, g);
- j.data(h, i)
- }
- })
- }
- })); + function (e) {
- var f = function (h, g) {
- this.$element = e(h);
- this.options = e.extend({
- }, f.DEFAULTS, g);
- this.$trigger = e(this.options.trigger).filter('[href="#' + h.id + '"], [data-target="#' + h.id + '"]');
- this.transitioning = null;
- if (this.options.parent) {
- this.$parent = this.getParent()
- } else {
- this.addAriaAndCollapsedClass(this.$element, this.$trigger)
- }
- if (this.options.toggle) {
- this.toggle()
- }
- };
- f.VERSION = '3.3.1';
- f.TRANSITION_DURATION = 350;
- f.DEFAULTS = {
- toggle: true,
- trigger: '[data-toggle="collapse"]'
- };
- f.prototype.dimension = function () {
- var g = this.$element.hasClass('width');
- return g ? 'width' : 'height'
- };
- f.prototype.show = function () {
- if (this.transitioning || this.$element.hasClass('in')) {
- return
- }
- var i;
- var k = this.$parent && this.$parent.children('.panel').children('.in, .collapsing');
- if (k && k.length) {
- i = k.data('bs.collapse');
- if (i && i.transitioning) {
- return
- }
- }
- var h = e.Event('show.bs.collapse');
- this.$element.trigger(h);
- if (h.isDefaultPrevented()) {
- return
- }
- if (k && k.length) {
- c.call(k, 'hide');
- i || k.data('bs.collapse', null)
- }
- var l = this.dimension();
- this.$element.removeClass('collapse').addClass('collapsing') [l](0).attr('aria-expanded', true);
- this.$trigger.removeClass('collapsed').attr('aria-expanded', true);
- this.transitioning = 1;
- var g = function () {
- this.$element.removeClass('collapsing').addClass('collapse in') [l]('');
- this.transitioning = 0;
- this.$element.trigger('shown.bs.collapse')
- };
- if (!e.support.transition) {
- return g.call(this)
- }
- var j = e.camelCase(['scroll',
- l].join('-'));
- this.$element.one('bsTransitionEnd', e.proxy(g, this)).emulateTransitionEnd(f.TRANSITION_DURATION) [l](this.$element[0][j])
- };
- f.prototype.hide = function () {
- if (this.transitioning || !this.$element.hasClass('in')) {
- return
- }
- var h = e.Event('hide.bs.collapse');
- this.$element.trigger(h);
- if (h.isDefaultPrevented()) {
- return
- }
- var i = this.dimension();
- this.$element[i](this.$element[i]()) [0].offsetHeight;
- this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded', false);
- this.$trigger.addClass('collapsed').attr('aria-expanded', false);
- this.transitioning = 1;
- var g = function () {
- this.transitioning = 0;
- this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')
- };
- if (!e.support.transition) {
- return g.call(this)
- }
- this.$element[i](0).one('bsTransitionEnd', e.proxy(g, this)).emulateTransitionEnd(f.TRANSITION_DURATION)
- };
- f.prototype.toggle = function () {
- this[this.$element.hasClass('in') ? 'hide' : 'show']()
- };
- f.prototype.getParent = function () {
- return e(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(e.proxy(function (j, h) {
- var g = e(h);
- this.addAriaAndCollapsedClass(d(g), g)
- }, this)).end()
- };
- f.prototype.addAriaAndCollapsedClass = function (h, g) {
- var i = h.hasClass('in');
- h.attr('aria-expanded', i);
- g.toggleClass('collapsed', !i).attr('aria-expanded', i)
- };
- function d(g) {
- var h;
- var i = g.attr('data-target') || (h = g.attr('href')) && h.replace(/.*(?=#[^\s]+$)/, '');
- return e(i)
- }
- function c(g) {
- return this.each(function () {
- var j = e(this);
- var i = j.data('bs.collapse');
- var h = e.extend({
- }, f.DEFAULTS, j.data(), typeof g == 'object' && g);
- if (!i && h.toggle && g == 'show') {
- h.toggle = false
- }
- if (!i) {
- j.data('bs.collapse', (i = new f(this, h)))
- }
- if (typeof g == 'string') {
- i[g]()
- }
- })
- }
- var b = e.fn.collapse;
- e.fn.collapse = c;
- e.fn.collapse.Constructor = f;
- e.fn.collapse.noConflict = function () {
- e.fn.collapse = b;
- return this
- };
- e(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (k) {
- var j = e(this);
- if (!j.attr('data-target')) {
- k.preventDefault()
- }
- var g = d(j);
- var i = g.data('bs.collapse');
- var h = i ? 'toggle' : e.extend({
- }, j.data(), {
- trigger: this
- });
- c.call(g, h)
- })
- }(jQuery); + function (f) {
- var e = '[data-dismiss="alert"]';
- var c = function (g) {
- f(g).on('click', e, this.close)
- };
- c.VERSION = '3.3.7';
- c.TRANSITION_DURATION = 150;
- c.prototype.close = function (k) {
- var j = f(this);
- var h = j.attr('data-target');
- if (!h) {
- h = j.attr('href');
- h = h && h.replace(/.*(?=#[^\s]*$)/, '')
- }
- var i = f(h === '#' ? [
- ] : h);
- if (k) {
- k.preventDefault()
- }
- if (!i.length) {
- i = j.closest('.alert')
- }
- i.trigger(k = f.Event('close.bs.alert'));
- if (k.isDefaultPrevented()) {
- return
- }
- i.removeClass('in');
- function g() {
- i.detach().trigger('closed.bs.alert').remove()
- }
- f.support.transition && i.hasClass('fade') ? i.one('bsTransitionEnd', g).emulateTransitionEnd(c.TRANSITION_DURATION) : g()
- };
- function d(g) {
- return this.each(function () {
- var i = f(this);
- var h = i.data('bs.alert');
- if (!h) {
- i.data('bs.alert', (h = new c(this)))
- }
- if (typeof g == 'string') {
- h[g].call(i)
- }
- })
- }
- var b = f.fn.alert;
- f.fn.alert = d;
- f.fn.alert.Constructor = c;
- f.fn.alert.noConflict = function () {
- f.fn.alert = b;
- return this
- };
- f(document).on('click.bs.alert.data-api', e, c.prototype.close)
- }(jQuery); function displayAlert(c, d, b) {
- $(c).html('<div class="alert alert-' + d + '"><a href="#0" class="close" data-dismiss="alert">×</a>' + b + '</div>')
- }
- + function (i) {
- var f = '.dropdown-backdrop';
- var c = '[data-toggle="dropdown"]';
- var b = function (j) {
- i(j).on('click.bs.dropdown', this.toggle)
- };
- b.VERSION = '3.3.7';
- function g(l) {
- var j = l.attr('data-target');
- if (!j) {
- j = l.attr('href');
- j = j && /#[A-Za-z]/.test(j) && j.replace(/.*(?=#[^\s]*$)/, '')
- }
- var k = j && i(j);
- return k && k.length ? k : l.parent()
- }
- function e(j) {
- if (j && j.which === 3) {
- return
- }
- i(f).remove();
- i(c).each(function () {
- var n = i(this);
- var l = g(n);
- var k = {
- relatedTarget: this
- };
- if (!l.hasClass('open')) {
- return
- }
- if (j && j.type == 'click' && /input|textarea/i.test(j.target.tagName) && i.contains(l[0], j.target)) {
- return
- }
- l.trigger(j = i.Event('hide.bs.dropdown', k));
- if (j.isDefaultPrevented()) {
- return
- }
- n.attr('aria-expanded', 'false');
- l.removeClass('open').trigger(i.Event('hidden.bs.dropdown', k))
- })
- }
- b.prototype.toggle = function (o) {
- var n = i(this);
- if (n.is('.disabled, :disabled')) {
- return
- }
- var l = g(n);
- var k = l.hasClass('open');
- e();
- if (!k) {
- if ('ontouchstart' in document.documentElement && !l.closest('.navbar-nav').length) {
- i(document.createElement('div')).addClass('dropdown-backdrop').insertAfter(i(this)).on('click', e)
- }
- var j = {
- relatedTarget: this
- };
- l.trigger(o = i.Event('show.bs.dropdown', j));
- if (o.isDefaultPrevented()) {
- return
- }
- n.trigger('focus').attr('aria-expanded', 'true');
- l.toggleClass('open').trigger(i.Event('shown.bs.dropdown', j))
- }
- return false
- };
- b.prototype.keydown = function (o) {
- if (!/(38|40|27|32)/.test(o.which) || /input|textarea/i.test(o.target.tagName)) {
- return
- }
- var n = i(this);
- o.preventDefault();
- o.stopPropagation();
- if (n.is('.disabled, :disabled')) {
- return
- }
- var l = g(n);
- var k = l.hasClass('open');
- if (!k && o.which != 27 || k && o.which == 27) {
- if (o.which == 27) {
- l.find(c).trigger('focus')
- }
- return n.trigger('click')
- }
- var p = ' li:not(.disabled):visible a';
- var q = l.find('.dropdown-menu' + p);
- if (!q.length) {
- return
- }
- var j = q.index(o.target);
- if (o.which == 38 && j > 0) {
- j--
- }
- if (o.which == 40 && j < q.length - 1) {
- j++
- }
- if (!~j) {
- j = 0
- }
- q.eq(j).trigger('focus')
- };
- function h(j) {
- return this.each(function () {
- var l = i(this);
- var k = l.data('bs.dropdown');
- if (!k) {
- l.data('bs.dropdown', (k = new b(this)))
- }
- if (typeof j == 'string') {
- k[j].call(l)
- }
- })
- }
- var d = i.fn.dropdown;
- i.fn.dropdown = h;
- i.fn.dropdown.Constructor = b;
- i.fn.dropdown.noConflict = function () {
- i.fn.dropdown = d;
- return this
- };
- i(document).on('click.bs.dropdown.data-api', e).on('click.bs.dropdown.data-api', '.dropdown form', function (j) {
- j.stopPropagation()
- }).on('click.bs.dropdown.data-api', c, b.prototype.toggle).on('keydown.bs.dropdown.data-api', c, b.prototype.keydown).on('keydown.bs.dropdown.data-api', '.dropdown-menu', b.prototype.keydown)
- }(jQuery); var _vsnr = function (f) {
- this.language = f;
- if (this.prefixes.svod) {
- if (!this.prefixes.tvod || document.location.pathname.indexOf('/' + f) === 0 && document.location.pathname.indexOf('/' + f + this.prefixes.tvod) !== 0) {
- this.mode = 'svod'
- }
- }
- this.loadFromCookie();
- if (navigator && navigator.userAgent.indexOf('MSIE') !== - 1) {
- var c = navigator.userAgent.match(/MSIE (\d+)\./);
- if (c !== null && c[1] <= 6) {
- return true
- }
- }
- try {
- onerror = this.onError
- } catch (b) {
- }
- }; _vsnr.prototype.debug = false; _vsnr.prototype.prefixes = {
- cookie: 'vsnr',
- tvod: '/',
- svod: ''
- }; _vsnr.prototype.language = 'fr'; _vsnr.prototype.languages = [
- 'fr',
- 'en',
- 'de',
- 'es'
- ]; _vsnr.prototype.months = {
- fr: [
- 'Janvier',
- 'Février',
- 'Mars',
- 'Avril',
- 'Mai',
- 'Juin',
- 'Juillet',
- 'Août',
- 'Septembre',
- 'Octobre',
- 'Novembre',
- 'Décembre'
- ],
- en: [
- 'January',
- 'February',
- 'March',
- 'April',
- 'May',
- 'June',
- 'July',
- 'August',
- 'September',
- 'October',
- 'November',
- 'December'
- ],
- de: [
- 'Januar',
- 'Februar',
- 'März',
- 'April',
- 'Mai',
- 'Juni',
- 'Juli',
- 'August',
- 'September',
- 'Oktober',
- 'November',
- 'Dezember'
- ],
- es: [
- 'Enero',
- 'Febrero',
- 'Marzo',
- 'Abril',
- 'Mayo',
- 'Junio',
- 'Julio',
- 'Agosto',
- 'Septiembre',
- 'Octubre',
- 'Noviembre',
- 'Diciembre'
- ]
- };
- _vsnr.prototype.user = false; _vsnr.prototype.autoOpen = false; _vsnr.prototype.autoClose = false; _vsnr.prototype.autoRefresh = false; _vsnr.prototype.callback = false; _vsnr.prototype.colorbox = '{"width":"720px","maxWidth":"95%","height":"360px","maxHeight":"95%"}'; _vsnr.prototype.mode = 'tvod'; _vsnr.prototype.orientation = 'strait'; _vsnr.prototype.service = 'vision'; _vsnr.prototype.affiliate = ''; _vsnr.prototype.loadFromCookie = function () {
- if ($.cookie('PHPSESSID') && $.cookie(this.prefixes.cookie + 'U')) {
- this.user = $.parseJSON($.cookie(this.prefixes.cookie + 'U'));
- if (!this.isTvod()) {
- this.user.credits = 0
- }
- if (this.user.subscribed) {
- $('body').addClass('subscribeduser')
- }
- } else {
- this.user = {
- id: 0,
- credits: 0,
- anonymous: true,
- subscribed: false
- }
- }
- this.isLogged()
- }; _vsnr.prototype.isLogged = function () {
- if (this.user.id && !this.user.anonymous) {
- $('body').addClass('logged');
- $('.anonymous').hide();
- $('.user').show();
- $('.user-block').css('display', 'inline-block');
- return true
- }
- $('.anonymous').show();
- $('.user, .user-block').hide();
- return (this.user.id && this.user.anonymous)
- }; _vsnr.prototype.isTvod = function () {
- return this.mode === 'tvod'
- }; _vsnr.prototype.getPrefix = function (b) {
- return '../' + this.language + (this.isTvod() ? this.prefixes.tvod : this.prefixes.svod) + b
- }; _vsnr.prototype.checkLogged = function () {
- if (!this.callback) {
- return false
- }
- if (!$.cookie('PHPSESSID')) {
- this.loadFromCookie();
- return false
- }
- if ((typeof getUserMovieInfo) === 'function' && this.callback === getUserMovieInfo) {
- _vsnr.callback(true)
- } else {
- $.ajax({
- url: this.getPrefix('isLoggedAjax'),
- method: 'get',
- success: function (b) {
- _vsnr.loadFromCookie();
- if (b === true) {
- if (_vsnr.callback) {
- _vsnr.callback(true)
- }
- return true
- }
- },
- error: function () {
- _vsnr.loadFromCookie();
- return false
- }
- })
- }
- return true
- }; _vsnr.prototype.login = function (b, c) {
- c = c || false;
- $.ajax({
- url: $(b).attr('action'),
- method: 'post',
- data: $(b).serialize(),
- success: function (d) {
- if (d === true) {
- $.colorbox.close();
- $('#login-message').html('');
- _vsnr.loadFromCookie();
- if (_vsnr.autoRefresh) {
- if (c) {
- location.href = c
- } else {
- location.reload()
- }
- return true
- }
- if (_vsnr.callback) {
- _vsnr.callback(false)
- }
- } else {
- displayAlert('#login-message', 'danger', d.message ? d.message : 'Une erreur est survenue lors du login (1). Veuillez réessayer ou contacter le support.');
- window._uxa.push(['trackPageview',
- window.location.pathname + window.location.hash.replace('#', '?__') + '?cs-login-form-error'])
- }
- },
- error: function () {
- displayAlert('#login-message', 'danger', 'Une erreur est survenue lors du login (2). Veuillez réessayer ou contacter le support.');
- window._uxa.push(['trackPageview',
- window.location.pathname + window.location.hash.replace('#', '?__') + '?cs-login-form-error'])
- }
- });
- return false
- }; _vsnr.prototype.ajaxSubmit = function (e, c, b) {
- var d = '.message';
- c = c || false;
- b = b || false;
- msgbox = $(e).find(d);
- if (msgbox) {
- d = '#' + msgbox.attr('id')
- }
- $.ajax({
- url: $(e).attr('action'),
- method: 'post',
- data: $(e).serialize(),
- success: function (f) {
- if (f.error || f.message) {
- displayAlert(d, f.error ? 'danger' : 'success', f.error ? f.error : f.message)
- }
- if (c) {
- c(e, f)
- }
- },
- error: function () {
- displayAlert(d, 'danger', 'Une erreur est survenue. Veuillez réessayer ou contacter le support.');
- if (b) {
- b(e)
- }
- }
- });
- return false
- }; _vsnr.prototype.onError = function (h, c, o, f) {
- var j,
- d = [
- ],
- k = new Image(),
- b = '',
- n = document.currentScript || false,
- g = document.getElementsByTagName('script');
- f = f || '_';
- try {
- if (c.indexOf(document.location.protocol + '//' + document.location.host) !== 0) {
- return false
- }
- o = o.toString();
- d = {
- load: {
- v: o,
- s: 'Error loading script'
- },
- gat: {
- v: h,
- s: '_gat'
- },
- ga: {
- v: h,
- s: 'GA_google'
- },
- gs: {
- v: h,
- s: 'GS_google'
- }
- };
- for (j in d) {
- if (d[j].v.indexOf(d[j].s) !== - 1) {
- return false
- }
- }
- if (n) {
- if (!n.src) {
- h += ', script=' + n.innerText
- } else {
- h += ', script=' + n.src + '@' + o + ':' + f
- }
- } else {
- for (j in g) {
- if (g[j].src && g[j].src.indexOf(document.location.host) === - 1 && g[j].src.indexOf('google') === - 1) {
- h += ', src=' + g[j].src
- }
- }
- }
- b = '/_?f=' + encodeURIComponent(c) + '&l=' + encodeURIComponent(o) + '&c=' + encodeURIComponent(f) + '&u=' + encodeURIComponent(navigator.userAgent) + '&e=' + encodeURIComponent(h);
- if (b.length > 1024) {
- k.src = b.substring(0, 1024)
- } else {
- k.src = b
- }
- } catch (l) {
- if (_vsnr.debug && (typeof console) !== 'undefined') {
- console.log(l)
- }
- }
- onerror = function () {
- return false
- };
- return false
- }; var _vsnrEndless = function (d, e) {
- this.form = $('#' + d);
- this.list = $('#' + this.form.attr('data-list'));
- this.page = this.form.children('input[name="page"]').first();
- this.page.val(2);
- if (e) {
- this.callback = e
- }
- var c = this;
- $(window).scroll(function () {
- c.scroll()
- });
- this.counts = this.list.find('.filters-count').length ? $.parseJSON(this.list.find('.filters-count').html()) : [
- ];
- if (this.callback) {
- this.callback(this.list)
- }
- var b = this.form.find('input:checked');
- if (b.length) {
- this.scroll('reset', b)
- }
- }; _vsnrEndless.prototype.callback = false; _vsnrEndless.prototype.form = false; _vsnrEndless.prototype.list = false; _vsnrEndless.prototype.page = false; _vsnrEndless.prototype.end = false; _vsnrEndless.prototype.running = false; _vsnrEndless.prototype.started = false; _vsnrEndless.prototype.toggle = false; _vsnrEndless.prototype.filters = [
- ]; _vsnrEndless.prototype.counts = [
- ]; _vsnrEndless.prototype.csTracking = ''; _vsnrEndless.prototype.scroll = function (e, i) {
- switch (e) {
- case 'cs':
- this.csTracking = this.form.find('input[name="order"]').val() || '_nosort';
- return false;
- case 'reset':
- this.end = false;
- this.started = false;
- this.page.val(1);
- this.list.html('<div class="firstpage-loader"><img src="../resources/ajax-loader/1425651665.gif"/></div>');
- if (i) {
- i.each(function () {
- var f = $(this).parent();
- if (f && f.prop('tagName') === 'LABEL') {
- if ($(this).is(':checked')) {
- f.addClass('checked')
- } else {
- f.removeClass('checked')
- }
- }
- })
- }
- break;
- case 'start':
- this.started = true;
- break;
- default:
- e = 'scroll'
- }
- if (this.running === true || e === 'scroll' && ($(window).height() + $(window).scrollTop() + 500 < $(document).height() || !this.started) || this.end === true) {
- return false
- }
- this.running = true;
- var g = this;
- g.form.children('.nextpage-loader').show();
- if (g.csTracking) {
- var c = [
- ],
- j = this.form.find('input[name="order"]').val(),
- d = [
- ],
- b = [
- ];
- $('.left-filters input:checked').each(function () {
- var f = $(this).attr('name').replace(/[^a-z]+/g, '');
- if (!b[f]) {
- b[f] = [
- ]
- }
- b[f].push($(this).parent().text().toLowerCase().replace(/[^a-z0-9]+/g, ''))
- });
- for (var h in b) {
- d.push(h + '=' + b[h].join('+'))
- }
- if (d.length) {
- c.push('cs-filterby-' + d.join('&'))
- }
- if (j !== g.csTracking) {
- c.push('cs-orderby-' + j);
- g.csTracking = '_trackall'
- }
- if (g.page.val() > 1) {
- c.push('cs-see-more')
- }
- if (c.length) {
- window._uxa.push(['trackPageview',
- window.location.pathname + window.location.hash.replace('#', '?__') + '?' + c.join('?')])
- }
- }
- $.ajax({
- url: g.form.attr('action'),
- method: 'get',
- data: g.form.serialize(),
- success: function (f) {
- if (g.page.val() < 2) {
- g.list.html('')
- }
- g.page.val(parseInt(g.page.val()) + 1);
- g.list.children('.nextpage').remove();
- g.list.append(f);
- if (g.list.children('.nextpage').length <= 0) {
- g.end = true
- }
- if (g.page.val() < 3) {
- g.counts = g.list.find('.filters-count').length ? $.parseJSON(g.list.find('.filters-count').html()) : [
- ];
- g.filter()
- }
- if (g.callback) {
- g.callback(g.list)
- }
- g.running = false;
- g.form.children('.nextpage-loader').hide()
- },
- error: function () {
- if (g.page.val() < 2) {
- g.list.html('error...')
- }
- g.running = false;
- g.end = true;
- g.list.children('.nextpage').remove();
- g.form.children('.nextpage-loader').hide()
- }
- });
- return false
- };
- _vsnrEndless.prototype.sort = function (b) {
- if (this.toggle) {
- var c = b.href.replace(/.*#/, '');
- this.form.children('input[name="order"]').first().val(c);
- $(b).parent().children('a').hide();
- $(b).show().blur();
- this.scroll('reset');
- $(b).prependTo($(b).parent())
- } else {
- $(b).parent().children('a').show()
- }
- this.toggle = !this.toggle;
- return false
- };
- _vsnrEndless.prototype.filter = function (e) {
- var g = 0,
- c = 10,
- b,
- d;
- if (!e) {
- for (e in this.filters) {
- $(e).removeClass('less');
- this.filter(e)
- }
- }
- e = $(e);
- if (e.is('a')) {
- e = e.parent().parent()
- }
- this.filters['#' + e.attr('id')] = true;
- d = e.hasClass('less') ? 'less' : 'more';
- var f = this;
- e.children('li:not(:last-child)').each(function () {
- var i = $(this).attr('data-filter'),
- h = f.counts[i] || false;
- if (h && (g++ < c || d === 'less')) {
- $(this).show()
- } else {
- $(this).hide()
- }
- });
- b = e.children('li:last-child').first();
- if (d === 'more') {
- b.children('.less').hide();
- b.children('.more').show();
- e.addClass('less')
- } else {
- b.children('.less').show();
- b.children('.more').hide();
- e.removeClass('less')
- }
- if (g > c) {
- b.show()
- } else {
- b.hide()
- }
- return false
- };
- (function (b, d, c) {
- if (typeof define === 'function' && define.amd) {
- define(['jquery'], function (e) {
- c(e, b, d);
- return e.mobile
- })
- } else {
- c(b.jQuery, b, d)
- }
- }(this, document, function (d, c, b, e) {
- (function (D, M, k, s) {
- var L = 'virtualMouseBindings',
- g = 'virtualTouchID',
- f = 'vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel'.split(' '),
- C = 'clientX clientY pageX pageY screenX screenY'.split(' '),
- I = D.event.mouseHooks ? D.event.mouseHooks.props : [
- ],
- E = D.event.props.concat(I),
- G = {
- },
- N = 0,
- y = 0,
- x = 0,
- v = false,
- Q = [
- ],
- n = false,
- X = false,
- A = 'addEventListener' in k,
- z = D(k),
- K = 1,
- T = 0,
- h,
- R;
- D.vmouse = {
- moveDistanceThreshold: 10,
- clickDistanceThreshold: 10,
- resetTimerDuration: 1500
- };
- function w(i) {
- while (i && typeof i.originalEvent !== 'undefined') {
- i = i.originalEvent
- }
- return i
- }
- function o(Z, aa) {
- var ai = Z.type,
- aj,
- ah,
- ab,
- Y,
- af,
- ae,
- ad,
- ac,
- ag;
- Z = D.Event(Z);
- Z.type = aa;
- aj = Z.originalEvent;
- ah = D.event.props;
- if (ai.search(/^(mouse|click)/) > - 1) {
- ah = E
- }
- if (aj) {
- for (ad = ah.length, Y; ad; ) {
- Y = ah[--ad];
- Z[Y] = aj[Y]
- }
- }
- if (ai.search(/mouse(down|up)|click/) > - 1 && !Z.which) {
- Z.which = 1
- }
- if (ai.search(/^touch/) !== - 1) {
- ab = w(aj);
- ai = ab.touches;
- af = ab.changedTouches;
- ae = (ai && ai.length) ? ai[0] : ((af && af.length) ? af[0] : s);
- if (ae) {
- for (ac = 0, ag = C.length; ac < ag; ac++) {
- Y = C[ac];
- Z[Y] = ae[Y]
- }
- }
- }
- return Z
- }
- function V(aa) {
- var Y = {
- },
- i,
- Z;
- while (aa) {
- i = D.data(aa, L);
- for (Z in i) {
- if (i[Z]) {
- Y[Z] = Y.hasVirtualBinding = true
- }
- }
- aa = aa.parentNode
- }
- return Y
- }
- function H(Z, Y) {
- var i;
- while (Z) {
- i = D.data(Z, L);
- if (i && (!Y || i[Y])) {
- return Z
- }
- Z = Z.parentNode
- }
- return null
- }
- function P() {
- X = false
- }
- function q() {
- X = true
- }
- function W() {
- T = 0;
- Q.length = 0;
- n = false;
- q()
- }
- function u() {
- P()
- }
- function B() {
- F();
- N = setTimeout(function () {
- N = 0;
- W()
- }, D.vmouse.resetTimerDuration)
- }
- function F() {
- if (N) {
- clearTimeout(N);
- N = 0
- }
- }
- function t(Z, aa, i) {
- var Y;
- if ((i && i[Z]) || (!i && H(aa.target, Z))) {
- Y = o(aa, Z);
- D(aa.target).trigger(Y)
- }
- return Y
- }
- function p(Y) {
- var Z = D.data(Y.target, g),
- i;
- if (!n && (!T || T !== Z)) {
- i = t('v' + Y.type, Y);
- if (i) {
- if (i.isDefaultPrevented()) {
- Y.preventDefault()
- }
- if (i.isPropagationStopped()) {
- Y.stopPropagation()
- }
- if (i.isImmediatePropagationStopped()) {
- Y.stopImmediatePropagation()
- }
- }
- }
- }
- function U(Z) {
- var ab = w(Z).touches,
- aa,
- i,
- Y;
- if (ab && ab.length === 1) {
- aa = Z.target;
- i = V(aa);
- if (i.hasVirtualBinding) {
- T = K++;
- D.data(aa, g, T);
- F();
- u();
- v = false;
- Y = w(Z).touches[0];
- y = Y.pageX;
- x = Y.pageY;
- t('vmouseover', Z, i);
- t('vmousedown', Z, i)
- }
- }
- }
- function O(i) {
- if (X) {
- return
- }
- if (!v) {
- t('vmousecancel', i, V(i.target))
- }
- v = true;
- B()
- }
- function j(ab) {
- if (X) {
- return
- }
- var Z = w(ab).touches[0],
- Y = v,
- aa = D.vmouse.moveDistanceThreshold,
- i = V(ab.target);
- v = v || (Math.abs(Z.pageX - y) > aa || Math.abs(Z.pageY - x) > aa);
- if (v && !Y) {
- t('vmousecancel', ab, i)
- }
- t('vmousemove', ab, i);
- B()
- }
- function l(aa) {
- if (X) {
- return
- }
- q();
- var i = V(aa.target),
- Y,
- Z;
- t('vmouseup', aa, i);
- if (!v) {
- Y = t('vclick', aa, i);
- if (Y && Y.isDefaultPrevented()) {
- Z = w(aa).changedTouches[0];
- Q.push({
- touchID: T,
- x: Z.clientX,
- y: Z.clientY
- });
- n = true
- }
- }
- t('vmouseout', aa, i);
- v = false;
- B()
- }
- function J(Y) {
- var Z = D.data(Y, L),
- i;
- if (Z) {
- for (i in Z) {
- if (Z[i]) {
- return true
- }
- }
- }
- return false
- }
- function S() {
- }
- function r(i) {
- var Y = i.substr(1);
- return {
- setup: function () {
- if (!J(this)) {
- D.data(this, L, {
- })
- }
- var Z = D.data(this, L);
- Z[i] = true;
- G[i] = (G[i] || 0) + 1;
- if (G[i] === 1) {
- z.bind(Y, p)
- }
- D(this).bind(Y, S);
- if (A) {
- G.touchstart = (G.touchstart || 0) + 1;
- if (G.touchstart === 1) {
- z.bind('touchstart', U).bind('touchend', l).bind('touchmove', j).bind('scroll', O)
- }
- }
- },
- teardown: function () {
- --G[i];
- if (!G[i]) {
- z.unbind(Y, p)
- }
- if (A) {
- --G.touchstart;
- if (!G.touchstart) {
- z.unbind('touchstart', U).unbind('touchmove', j).unbind('touchend', l).unbind('scroll', O)
- }
- }
- var Z = D(this),
- aa = D.data(this, L);
- if (aa) {
- aa[i] = false
- }
- Z.unbind(Y, S);
- if (!J(this)) {
- Z.removeData(L)
- }
- }
- }
- }
- for (R = 0; R < f.length; R++) {
- D.event.special[f[R]] = r(f[R])
- }
- if (A) {
- k.addEventListener('click', function (ac) {
- var Z = Q.length,
- ad = ac.target,
- af,
- ae,
- ag,
- ab,
- Y,
- aa;
- if (Z) {
- af = ac.clientX;
- ae = ac.clientY;
- h = D.vmouse.clickDistanceThreshold;
- ag = ad;
- while (ag) {
- for (ab = 0; ab < Z; ab++) {
- Y = Q[ab];
- aa = 0;
- if ((ag === ad && Math.abs(Y.x - af) < h && Math.abs(Y.y - ae) < h) || D.data(ag, g) === Y.touchID) {
- ac.preventDefault();
- ac.stopPropagation();
- return
- }
- }
- ag = ag.parentNode
- }
- }
- }, true)
- }
- }) (d, c, b);
- (function (f) {
- f.mobile = {
- }
- }(d));
- (function (g, h) {
- var f = {
- touch: 'ontouchend' in b
- };
- g.mobile.support = g.mobile.support || {
- };
- g.extend(g.support, f);
- g.extend(g.mobile.support, f)
- }(d));
- (function (i, o, f) {
- var g = i(b),
- j = i.mobile.support.touch,
- k = 'touchmove scroll',
- p = j ? 'touchstart' : 'mousedown',
- n = j ? 'touchend' : 'mouseup',
- h = j ? 'touchmove' : 'mousemove';
- i.each(('touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop').split(' '), function (r, q) {
- i.fn[q] = function (s) {
- return s ? this.bind(q, s) : this.trigger(q)
- };
- if (i.attrFn) {
- i.attrFn[q] = true
- }
- });
- function l(u, r, t, q) {
- var s = t.type;
- t.type = r;
- if (q) {
- i.event.trigger(t, f, u)
- } else {
- i.event.dispatch.call(u, t)
- }
- t.type = s
- }
- i.event.special.scrollstart = {
- enabled: true,
- setup: function () {
- var q = this,
- t = i(q),
- s,
- u;
- function r(v, w) {
- s = w;
- l(q, s ? 'scrollstart' : 'scrollstop', v)
- }
- t.bind(k, function (v) {
- if (!i.event.special.scrollstart.enabled) {
- return
- }
- if (!s) {
- r(v, true)
- }
- clearTimeout(u);
- u = setTimeout(function () {
- r(v, false)
- }, 50)
- })
- },
- teardown: function () {
- i(this).unbind(k)
- }
- };
- i.event.special.tap = {
- tapholdThreshold: 750,
- emitTapOnTaphold: true,
- setup: function () {
- var q = this,
- s = i(q),
- r = false;
- s.bind('vmousedown', function (v) {
- r = false;
- if (v.which && v.which !== 1) {
- return false
- }
- var u = v.target,
- y;
- function t() {
- clearTimeout(y)
- }
- function x() {
- t();
- s.unbind('vclick', w).unbind('vmouseup', t);
- g.unbind('vmousecancel', x)
- }
- function w(z) {
- x();
- if (!r && u === z.target) {
- l(q, 'tap', z)
- } else {
- if (r) {
- z.preventDefault()
- }
- }
- }
- s.bind('vmouseup', t).bind('vclick', w);
- g.bind('vmousecancel', x);
- y = setTimeout(function () {
- if (!i.event.special.tap.emitTapOnTaphold) {
- r = true
- }
- l(q, 'taphold', i.Event('taphold', {
- target: u
- }))
- }, i.event.special.tap.tapholdThreshold)
- })
- },
- teardown: function () {
- i(this).unbind('vmousedown').unbind('vclick').unbind('vmouseup');
- g.unbind('vmousecancel')
- }
- };
- i.event.special.swipe = {
- scrollSupressionThreshold: 30,
- durationThreshold: 1000,
- horizontalDistanceThreshold: 30,
- verticalDistanceThreshold: 30,
- getLocation: function (t) {
- var s = o.pageXOffset,
- r = o.pageYOffset,
- q = t.clientX,
- u = t.clientY;
- if (t.pageY === 0 && Math.floor(u) > Math.floor(t.pageY) || t.pageX === 0 && Math.floor(q) > Math.floor(t.pageX)) {
- q = q - s;
- u = u - r
- } else {
- if (u < (t.pageY - r) || q < (t.pageX - s)) {
- q = t.pageX - s;
- u = t.pageY - r
- }
- }
- return {
- x: q,
- y: u
- }
- },
- start: function (r) {
- var s = r.originalEvent.touches ? r.originalEvent.touches[0] : r,
- q = i.event.special.swipe.getLocation(s);
- return {
- time: (new Date()).getTime(),
- coords: [
- q.x,
- q.y
- ],
- origin: i(r.target)
- }
- },
- stop: function (r) {
- var s = r.originalEvent.touches ? r.originalEvent.touches[0] : r,
- q = i.event.special.swipe.getLocation(s);
- return {
- time: (new Date()).getTime(),
- coords: [
- q.x,
- q.y
- ]
- }
- },
- handleSwipe: function (u, r, q, s) {
- if (r.time - u.time < i.event.special.swipe.durationThreshold && Math.abs(u.coords[0] - r.coords[0]) > i.event.special.swipe.horizontalDistanceThreshold && Math.abs(u.coords[1] - r.coords[1]) < i.event.special.swipe.verticalDistanceThreshold) {
- var t = u.coords[0] > r.coords[0] ? 'swipeleft' : 'swiperight';
- l(q, 'swipe', i.Event('swipe', {
- target: s,
- swipestart: u,
- swipestop: r
- }), true);
- l(q, t, i.Event(t, {
- target: s,
- swipestart: u,
- swipestop: r
- }), true);
- return true
- }
- return false
- },
- eventInProgress: false,
- setup: function () {
- var s,
- q = this,
- t = i(q),
- r = {
- };
- s = i.data(this, 'mobile-events');
- if (!s) {
- s = {
- length: 0
- };
- i.data(this, 'mobile-events', s)
- }
- s.length++;
- s.swipe = r;
- r.start = function (w) {
- if (i.event.special.swipe.eventInProgress) {
- return
- }
- i.event.special.swipe.eventInProgress = true;
- var u,
- y = i.event.special.swipe.start(w),
- v = w.target,
- x = false;
- r.move = function (z) {
- if (!y || z.isDefaultPrevented()) {
- return
- }
- u = i.event.special.swipe.stop(z);
- if (!x) {
- x = i.event.special.swipe.handleSwipe(y, u, q, v);
- if (x) {
- i.event.special.swipe.eventInProgress = false
- }
- }
- if (Math.abs(y.coords[0] - u.coords[0]) > i.event.special.swipe.scrollSupressionThreshold) {
- z.preventDefault()
- }
- };
- r.stop = function () {
- x = true;
- i.event.special.swipe.eventInProgress = false;
- g.off(h, r.move);
- r.move = null
- };
- g.on(h, r.move).one(n, r.stop)
- };
- t.on(p, r.start)
- },
- teardown: function () {
- var r,
- q;
- r = i.data(this, 'mobile-events');
- if (r) {
- q = r.swipe;
- delete r.swipe;
- r.length--;
- if (r.length === 0) {
- i.removeData(this, 'mobile-events')
- }
- }
- if (q) {
- if (q.start) {
- i(this).off(p, q.start)
- }
- if (q.move) {
- g.off(h, q.move)
- }
- if (q.stop) {
- g.off(n, q.stop)
- }
- }
- }
- };
- i.each({
- scrollstop: 'scrollstart',
- taphold: 'tap',
- swipeleft: 'swipe.left',
- swiperight: 'swipe.right'
- }, function (r, q) {
- i.event.special[r] = {
- setup: function () {
- i(this).bind(q, i.noop)
- },
- teardown: function () {
- i(this).unbind(q)
- }
- }
- })
- }) (d, this)
- }));
- var vsnrSliders = {
- id: 1,
- delay: 4000,
- sliders: {
- },
- init: function () {
- var g = $(this).attr('data-slider') || '',
- c = $(this).find('.slider-part').first(),
- f = c.find('.inner-slider').first(),
- d = vsnrSliders.getInnerWidth(f);
- if (!d || !c.width()) {
- return
- }
- function e(n, i) {
- return function (o) {
- o.stopPropagation();
- vsnrSliders.slide(n, i);
- return false
- }
- }
- var b = 'vsnr-sliders-' + (vsnrSliders.id++);
- c.attr('id', b);
- vsnrSliders.sliders[b] = {
- id: b,
- fade: g.indexOf('fade') !== - 1,
- auto: g.indexOf('auto') !== - 1,
- destroy: g.indexOf('destroy') !== - 1,
- timer: false,
- position: 1,
- count: Math.ceil(d / c.width()),
- dots: false,
- jwstopper: g.indexOf('auto') !== - 1,
- slider: c,
- inner: f
- };
- var j = vsnrSliders.sliders[b];
- if (j.count <= 1) {
- return
- }
- if (j.fade) {
- j.slider.css('position', 'relative');
- j.inner.css('position', 'absolute')
- }
- if (g.indexOf('dots') !== - 1) {
- j.dots = 'dots-' + b;
- var l = $('<span>').addClass('dots');
- if (g.indexOf('bottomdots') !== - 1) {
- l.addClass('bottom-dots')
- } else {
- l.addClass('top-dots')
- }
- for (var h = 1; h <= j.count; h++) {
- l.append($('<a>').attr('href', '#').addClass(h === 1 ? 'active' : '').on('click', e(b, h)).append($('<span>')))
- }
- $(this).append(l)
- }
- var k = 'arrows';
- if (g.indexOf('outside') !== - 1) {
- k += ' arrow-outside'
- }
- if (g.indexOf('white') !== - 1) {
- k += ' arrow-white'
- }
- $(this).append($('<a>').addClass(k + ' arrow-previous').attr('href', '#').on('click', e(b, 'previous')).append($('<span>')));
- $(this).append($('<a>').addClass(k + ' arrow-next').attr('href', '#').on('click', e(b, 'next')).append($('<span>')));
- if (!j.fade) {
- $(this).find('a.arrow-previous').hide()
- }
- if (j.count <= 1) {
- $(this).find('a.arrow-next').hide()
- }
- c.on('swipe', function (i) {
- vsnrSliders.slide($(this).attr('id'), i.swipestart.coords[0] - i.swipestop.coords[0] > 0 ? 'next' : 'previous')
- }).on('selectstart', function () {
- return false
- });
- if (j.auto) {
- c.on('mouseenter', function () {
- clearTimeout(j.timer)
- });
- c.on('mouseleave', function () {
- clearTimeout(j.timer);
- if (j.auto) {
- j.timer = setTimeout(function () {
- vsnrSliders.slide(b, 'next', true)
- }, vsnrSliders.delay)
- }
- });
- j.timer = setTimeout(function () {
- vsnrSliders.slide(b, 'next', true)
- }, vsnrSliders.delay)
- }
- },
- slide: function (g, b, f) {
- var d = vsnrSliders.sliders[g],
- c = 800;
- f = f || false;
- if (!f && d.auto) {
- clearTimeout(d.timer);
- d.auto = false
- }
- if (d.jwstopper) {
- _jwPlayer.pause()
- }
- if (d.destroy) {
- d.destroy = false;
- $(d.inner).children('div').first().remove();
- c = 0;
- if (b === 'next') {
- d.position = d.count
- }
- }
- d.count = Math.ceil(vsnrSliders.getInnerWidth(d.inner) / d.slider.width());
- d.position = Math.min(d.position, d.count);
- if (b === 'next') {
- if (d.position >= d.count) {
- d.position = 1
- } else {
- d.position++
- }
- } else {
- if (b === 'previous') {
- if (d.position <= 1) {
- d.position = d.count
- } else {
- d.position--
- }
- } else {
- d.position = Math.max(1, Math.min(d.count, b))
- }
- }
- var e = Math.ceil(Math.max(0, Math.min(d.slider.width() * (d.position - 1), d.inner.width() - d.slider.width())));
- if (d.fade) {
- d.slider.fadeOut(c, function () {
- d.inner.css('left', ( - 1 * e) + 'px');
- d.slider.fadeIn(1000, function () {
- vsnrSliders.after(d)
- })
- })
- } else {
- d.slider.animate({
- scrollLeft: e
- }, 800, 'swing', function () {
- vsnrSliders.after(d)
- })
- }
- },
- after: function (c) {
- var b = c.slider.parent();
- if (c.position > 1 || c.fade) {
- b.find('a.arrow-previous').show()
- } else {
- b.find('a.arrow-previous').hide()
- }
- if (c.position < c.count || c.fade) {
- b.find('a.arrow-next').show()
- } else {
- b.find('a.arrow-next').hide()
- }
- if (c.dots) {
- b.find('span.dots a').removeClass('active');
- b.find('span.dots a:nth-child(' + c.position + ')').addClass('active')
- }
- if (c.auto) {
- c.timer = setTimeout(function () {
- vsnrSliders.slide(c.id, 'next', true)
- }, vsnrSliders.delay)
- }
- },
- getInnerWidth: function (b) {
- var c = 0;
- $(b).children().each(function () {
- c += $(this).width()
- });
- return c
- },
- disableAuto: function () {
- for (var b in vsnrSliders.sliders) {
- vsnrSliders.sliders[b].auto = false;
- vsnrSliders.sliders[b].jwstopper = false
- }
- }
- };
- $(document).ready(function () {
- $('.slider').each(vsnrSliders.init)
- });
- _vsnr.prototype.location = {
- country: 'FR',
- currency: 'EUR',
- realCurrency: 'EUR',
- rate: false,
- ab: 'normal',
- rates: [
- ],
- offset: 0,
- bundles: [
- ],
- drop: '',
- callback: function () {
- var d = 0,
- g = this.getDate();
- if (_vsnr.isTvod() && !$.cookie('vsrnH') && $('#happy-hours-box').length) {
- for (d = 0;
- d < this.bundles.length; d++) {
- bundle = this.bundles[d];
- if (bundle.start <= g.date && bundle.end >= g.date && bundle.days.indexOf(g.day) > - 1 && (g.hour >= bundle.hour_start) && (g.hour <= bundle.hour_end)) {
- var c = $('#happy-hours-box .from-to').first(),
- f = c.html(),
- b = bundle.hour_end + 1;
- if (b === 24) {
- b = 0
- }
- if (f.indexOf('START24') > - 1) {
- f = f.replace(/START24/, bundle.hour_start).replace(/END24/, b)
- } else {
- f = f.replace(/START12/, this.toAMPM(bundle.hour_start)).replace(/END12/, this.toAMPM(b))
- }
- if (f.indexOf('SUFFIX') > - 1) {
- f = f.replace(/SUFFIX/, (g.dayOfMonth === 1 ? 'st' : (g.dayOfMonth === 2 ? 'nd' : (g.dayOfMonth === 3 ? 'rd' : 'th'))))
- }
- c.html(f.replace(/STARTDAY/, bundle.day_start).replace(/STARTMONTH/, _vsnr.months[_vsnr.language][bundle.month_start - 1]).replace(/ENDDAY/, bundle.day_end).replace(/ENDMONTH/, _vsnr.months[_vsnr.language][bundle.month_end - 1]).replace(/LINE_RETURN/, '<br/>'));
- $('#happy-hours-box').show();
- break
- }
- }
- }
- if (this.currency !== 'EUR' && (typeof this.rates[this.currency]) !== 'undefined') {
- this.rate = this.rates[this.currency]
- }
- this.drop = '<span>';
- if ((typeof this.rates[this.currency]) !== 'undefined') {
- this.drop += '<a href="#" onclick="_vsnr.location.setCurrency(\'' + this.currency + '\'); return false">' + this.rates[this.currency].symbol + '</a>'
- }
- for (var e in this.rates) {
- if (e !== this.currency) {
- this.drop += '<a href="#" onclick="_vsnr.location.setCurrency(\'' + e + '\'); return false">' + this.rates[e].symbol + '</a>'
- }
- }
- this.drop += '</span>';
- $('span.currency-drop').each(function () {
- if ($(this).attr('class').indexOf('currency-dropped') !== - 1) {
- return
- }
- $(this).addClass('currency-dropped').on('click', function () {
- if ($(this).children().length === 0) {
- $(this).append($(_vsnr.location.drop).mouseleave(function () {
- $(this).hide()
- }))
- } else {
- $(this).children().show()
- }
- }).each(function () {
- _vsnr.location.fixPrice($(this))
- })
- });
- $('.footer_ddl_torrent').hide()
- },
- toAMPM: function (b) {
- if (b === 0) {
- return '12AM'
- }
- if (b < 12) {
- return b + 'AM'
- }
- if (b === 12) {
- return '12PM'
- }
- return (b - 12) + 'PM'
- },
- disableHappy: function () {
- $.cookie('vsrnH', 1, {
- expires: 0.083,
- path: '/'
- });
- return false
- },
- init: function (c) {
- var d,
- g;
- if ($.cookie(_vsnr.prefixes.cookie + 'L')) {
- try {
- var b = $.parseJSON($.cookie(_vsnr.prefixes.cookie + 'L'));
- this.country = b.country || 'FR';
- this.realCurrency = b.currency || 'EUR';
- this.currency = $.cookie(_vsnr.prefixes.cookie + 'M') || b.currency || '';
- this.rates = b.rates || [
- ];
- this.offset = b.offset || 0;
- this.bundles = b.bundles || [
- ];
- this.ab = b.ab || 'normal';
- d = new Date();
- if (b.now > d.getTime() - 7200000 && b.time > c) {
- this.callback();
- return true
- }
- } catch (f) {
- }
- }
- this.ab = Math.random() > 0.5 ? 'rollover' : 'normal';
- g = new Date();
- $.ajax({
- url: _vsnr.getPrefix('locateAjax'),
- method: 'get',
- success: function (i) {
- var h = new Date();
- if (i.country && i.time > 1200000000000 && i.time < 2000000000000) {
- var e = {
- country: i.country,
- currency: i.currency,
- rates: i.rates,
- offset: i.time - h.getTime() + 0.2 * Math.min(5000, h.getTime() - g.getTime()) + i.offset + (h.getTimezoneOffset() * 60 * 1000),
- time: i.time,
- now: h.getTime(),
- bundles: i.bundles,
- ab: _vsnr.location.ab
- };
- _vsnr.location.country = e.country;
- if (!_vsnr.location.currency) {
- _vsnr.location.currency = e.currency
- }
- _vsnr.location.rates = e.rates;
- _vsnr.location.offset = e.offset;
- _vsnr.location.bundles = e.bundles;
- $.cookie(_vsnr.prefixes.cookie + 'L', $.toJSON(e), {
- expires: 0.125,
- path: '../default.htm'
- })
- }
- _vsnr.loadFromCookie();
- _vsnr.location.callback()
- },
- error: function () {
- _vsnr.location.callback()
- }
- });
- return true
- },
- getDate: function () {
- var b = new Date();
- b.setTime(b.getTime() + this.offset);
- return {
- date: b.getFullYear() * 10000 + (b.getMonth() + 1) * 100 + b.getDate(),
- hour: b.getHours(),
- day: b.getDay() === 0 ? 7 : b.getDay(),
- month: b.getMonth(),
- dayOfMonth: b.getDate()
- }
- },
- setCurrency: function (b) {
- $.cookie(_vsnr.prefixes.cookie + 'M', b, {
- expires: 365,
- path: '../default.htm'
- });
- top.location.reload()
- },
- getConvertedPrice: function (c) {
- if (this.rate) {
- c = parseFloat(('' + c).replace(/,/, '.'));
- c = '' + (c * this.rate.rate);
- var b = c.indexOf('.');
- if (b > 0) {
- c = c.substring(0, b + 3)
- }
- }
- return c
- },
- fixPrice: function (b) {
- if (!$(b).length) {
- return
- }
- price = $(b).html().match(/[0-9,]+\.[0-9]+/);
- if (price && price[0]) {
- gotPrice = price[0].replace(/,/, '')
- } else {
- price = $(b).html().match(/[0-9 ]+,[0-9]+/);
- if (price === null) {
- price = [
- '0'
- ]
- }
- gotPrice = price[0].replace(/ /, '')
- }
- newPrice = this.getConvertedPrice(gotPrice);
- if (newPrice !== gotPrice) {
- if (_vsnr.language !== 'en') {
- newPrice = newPrice.replace(/\./, ',')
- }
- $(b).html($(b).html().replace(/€/g, this.rate.symbol).replace(price[0], newPrice))
- }
- }
- };
- _vsnr.prototype.cart = {
- type: false,
- value: false,
- mode: false,
- megapack: false,
- typeScene: false,
- svodavailable: false,
- withSubscription: false,
- defaultAmount: 0,
- currentAmount: 0,
- couponAmount: 0,
- callback: false,
- init: function () {
- if ($.cookie(_vsnr.prefixes.cookie + 'C')) {
- cart = $.parseJSON($.cookie(_vsnr.prefixes.cookie + 'C'));
- if (cart) {
- this.type = cart.type || false;
- this.value = cart.value || false;
- this.mode = cart.mode || false;
- this.megapack = cart.megapack || false;
- this.typeScene = cart.typeScene || false;
- this.svodavailable = cart.svodavailable || false
- }
- }
- if (!_vsnr.isTvod() && !this.mode) {
- this.mode = 'subscription'
- }
- this.view();
- return true
- },
- reset: function () {
- this.add(false, false, false);
- return true
- },
- add: function (d, e, g, f, c) {
- var b = false;
- if (d === 'megapack') {
- d = 'pack';
- b = true
- }
- this.type = d;
- this.value = e;
- this.mode = g;
- this.megapack = b;
- this.typeScene = f || false;
- this.svodavailable = c || false;
- $.cookie(_vsnr.prefixes.cookie + 'C', $.toJSON({
- type: d,
- megapack: b,
- value: e,
- mode: g,
- typeScene: f,
- svodavailable: c
- }), {
- expires: 365,
- path: '../default.htm'
- });
- return true
- },
- switchMode: function (b) {
- if (b === 'tvod') {
- if (this.mode === 'subscription') {
- this.mode = 'streaming'
- }
- } else {
- if (this.type === 'movie') {
- if (this.mode === 'streaming' && this.svodavailable) {
- this.mode = 'subscription'
- }
- } else {
- _vsnr.cart.reset()
- }
- }
- $.cookie(_vsnr.prefixes.cookie + 'C', $.toJSON({
- type: this.type,
- value: this.value,
- mode: this.mode,
- typeScene: this.typeScene,
- svodavailable: this.svodavailable
- }), {
- expires: 365,
- path: '../default.htm'
- });
- return true
- },
- view: function () {
- if (!this.type) {
- if (this.callback) {
- this.callback()
- }
- return false
- }
- $.ajax({
- url: _vsnr.getPrefix(this.type + '/cartAjax'),
- method: 'get',
- data: {
- value: this.value,
- mode: this.mode
- },
- success: function (b) {
- _vsnr.cart.defaultAmount = b.defaultAmount;
- _vsnr.cart.currentAmount = b.currentAmount;
- _vsnr.cart.promotionType = b.promotionType;
- _vsnr.cart.withSubscription = b.withSubscription;
- content = b.error ? b.error : b.content;
- $('#cart').html(content);
- if (_vsnr.cart.callback) {
- _vsnr.cart.callback()
- }
- },
- error: function () {
- $('#cart').html('An error occurred')
- }
- });
- return true
- }
- };
- _vsnr.prototype.rolledOver = [
- ];
- _vsnr.prototype.rollover = function (b) {
- if ($('#navbar-top .navbar-toggle').is(':visible')) {
- return true
- }
- if ($(b).hasClass('slides')) {
- b = $(b)
- } else {
- b = $(b).find('.slides')
- }
- b.find('a.rollover').each(function () {
- if (!$(this).attr('data-rollover')) {
- $(this).attr('data-rollover', 1);
- if (!_vsnr.isTouch()) {
- $(this).mouseenter(function () {
- var d = $(this).parent().find('div.rollover').first(),
- c = $(this).height();
- d.height(c).css('margin-top', - 1 * c).show();
- $(this).css('visibility', 'hidden');
- _vsnr.rolledOver.push(d)
- })
- }
- }
- $(this).find('.forbidden-allowed').each(function () {
- _vsnr.hideForCountry($(this), function (c) {
- $(c).parent().parent().find('div.rollover a.btn').remove();
- $(c).parent().find('.slashbanner').remove();
- $(c).removeClass('forbidden-allowed').addClass('slashbanner').show()
- })
- })
- });
- b.find('div.rollover').each(function () {
- if (!$(this).attr('data-rollover')) {
- $(this).attr('data-rollover', 1);
- if (!_vsnr.isTouch()) {
- $(this).mouseleave(function () {
- var c;
- while (_vsnr.rolledOver.length > 0) {
- c = _vsnr.rolledOver.pop();
- c.hide();
- c.parent().find('a.rollover').css('visibility', 'visible')
- }
- })
- }
- $(this).find('.inner .btn-view').click(function (g) {
- g.stopPropagation();
- var h = $(this).attr('data-movie'),
- c = parseInt($(this).attr('data-svod')) || 0,
- d = $(this).attr('data-type') || 'streaming',
- f = parseInt($(this).attr('data-scene')) || 0;
- return buyMovie(h, d, f, c, true)
- });
- $(this).find('.inner .btn-preview').click(function (c) {
- c.stopPropagation();
- return false
- });
- $(this).find('.inner').click(function () {
- var c = $(this).attr('data-url') || $(this).find('a.btn-view').first().attr('href');
- if (c) {
- document.location.href = c
- }
- })
- }
- })
- };
- _vsnr.prototype.hideForCountry = function (f, i) {
- var e = $(f).attr('class').match(/ (allowed|forbidden)-(.+)$/),
- c = e[1],
- h,
- b = e[2].split('-'),
- g = false,
- d = false;
- if (c === 'allowed') {
- for (h in b) {
- if (this.location.country === b[h]) {
- g = true;
- break
- }
- }
- } else {
- for (h in b) {
- if (this.location.country === b[h]) {
- d = true;
- break
- }
- }
- }
- if (c === 'allowed' && !g || c !== 'allowed' && d) {
- i($(f))
- }
- };
- _vsnr.prototype.init = function () {
- $('#menu-search').autocomplete({
- serviceUrl: _vsnr.getPrefix('searchAjax'),
- groupBy: 'type',
- triggerSelectOnValidInput: false,
- onSelect: function (b) {
- document.location.href = b.data.url
- }
- });
- $('button.navbar-toggle').click(function () {
- if ($(this).is(':visible') && $('#navbarCollapse').is(':visible')) {
- $('#navbar-top').css('position', 'fixed');
- $('#navbar-spacer').show()
- } else {
- $('#navbar-top').css('position', 'relative');
- $('#navbar-spacer').hide();
- window.scrollTo(0, 0)
- }
- });
- _vsnr.checkLive(true)
- };
- _vsnr.prototype.disclaimer = function () {
- if ($.cookie('month_disclaimer') === 'agreed') {
- return false
- }
- if ($.cookie('agree_disclaimer') !== this.mode) {
- if (document.referrer) {
- if (document.referrer.search(/^https?:..(www\.)?(dorcelvision\.eu|dorcel\.)/) !== - 1) {
- this.switchMode('tvod');
- return false
- }
- if (document./*
- Exception: SyntaxError: missing ; before statement
- @Scratchpad/2:1
- */
- /*
- undefined
- */
- /*
- undefined
- */
- /*
- undefined
- */
- referrer.indexOf('.be2bill.com/') !== - 1 || document.referrer.indexOf('wnu.com/') !== - 1) {
- this.switchMode('tvod');
- return false
- }
- }
- $.colorbox({
- href: this.getPrefix('disclaimer'),
- transition: 'none',
- open: true,
- reposition: true,
- fixed: true,
- closeButton: false,
- overlayClose: false,
- escKey: false,
- trapFocus: true,
- height: '100%',
- width: '100%',
- maxHeight: false,
- maxWidth: false
- });
- return false
- }
- this.keepDisclaimer()
- };
- _vsnr.prototype.forbiddenCountry = function (c, b) {
- if (!b) {
- return true
- }
- if (c === 'allowed' && b.indexOf('|' + _vsnr.location.country + '|') === - 1 || c === 'forbidden' && b.indexOf('|' + _vsnr.location.country + '|') > - 1) {
- $.colorbox({
- href: this.getPrefix('forbiddenStudio'),
- transition: 'none',
- open: true,
- reposition: true,
- fixed: true,
- closeButton: false,
- overlayClose: false,
- escKey: false,
- trapFocus: true,
- height: '100%',
- width: '100%',
- maxHeight: false,
- maxWidth: false
- })
- }
- };
- _vsnr.prototype.switchMode = function (b) {
- b = b || (_vsnr.isTvod() ? 'svod' : 'tvod');
- if (_vsnr.mode !== b || !$.cookie('agree_disclaimer') || $.cookie('agree_disclaimer') !== _vsnr.mode) {
- _vsnr.cart.switchMode(b);
- _vsnr.keepDisclaimer(b, $('#checkbox-major').is(':checked'));
- if (_vsnr.mode !== b) {
- document.location.href = $('#' + b + 'switch').attr('href')
- }
- }
- };
- _vsnr.prototype.keepTimer = false;
- _vsnr.prototype.keepDisclaimer = function (c, b) {
- c = c || _vsnr.mode;
- b = b || false;
- if (_vsnr.keepTimer) {
- clearTimeout(_vsnr.keepTimer)
- }
- if (b) {
- $.cookie('month_disclaimer', 'agreed', {
- expires: 30,
- path: '../default.htm'
- })
- } else {
- $.cookie('agree_disclaimer', c, {
- expires: 0.0007,
- path: '../default.htm'
- });
- _vsnr.keepTimer = setTimeout(_vsnr.keepDisclaimer, 30000)
- }
- };
- _vsnr.prototype.checkLive = function (b) {
- b = b || false;
- if (!_vsnr.isLogged()) {
- return
- }
- if (b) {
- setTimeout(_vsnr.checkLive, 10000);
- return
- }
- $.ajax({
- type: 'POST',
- url: _vsnr.getPrefix('checkLiveAjax'),
- success: function () {
- setTimeout(_vsnr.checkLive, 120000)
- },
- error: function () {
- setTimeout(_vsnr.checkLive, 120000)
- }
- })
- };
- _vsnr.prototype.isTouch = function () {
- if (!navigator || !navigator.userAgent || navigator.userAgent.search(/(iPhone|iPod|iPad)/i) === - 1) {
- return false
- }
- return true
- };
- _vsnr.prototype.is = function (b) {
- return $('#detect-visible-' + b).is(':visible')
- };
- _vsnr.prototype.canDownload = function () {
- if (!navigator || !navigator.userAgent || navigator.userAgent.search(/(iPhone|iPod|iPad)/i) === - 1) {
- return true
- }
- return false
- };
- _vsnr.prototype.canAutorun = function () {
- if (!navigator || !navigator.userAgent || navigator.userAgent.search(/(iPhone|iPod|iPad|Android)/i) === - 1) {
- return true
- }
- return false
- };
- _vsnr.prototype.hideDownloadButtons = function () {
- if (this.canDownload()) {
- return true
- }
- $('.hide-download').each(function () {
- var f = $(this).attr('class').match(/col-[a-z]+-[0-9]+/g),
- e = {
- xs: 0,
- sm: 0,
- md: 0,
- lg: 0
- },
- d = 0,
- c,
- b = $(this).parent().find('.fix-download').first();
- for (; d < f.length; d++) {
- c = f[d].match(/([a-z]+)-([0-9]+)/);
- if (c && c[1]) {
- e[c[1]] = parseInt(c[2])
- }
- }
- if (b.length) {
- f = b.attr('class').match(/col-[a-z]+-[0-9]+/g);
- for (d = 0; d < f.length; d++) {
- c = f[d].match(/([a-z]+)-([0-9]+)/);
- if (c && c[1]) {
- b.removeClass(f[d]).addClass('col-' + c[1] + '-' + Math.min(12, parseInt(c[2]) + e[c[1]]))
- }
- }
- b.removeClass('fix-download')
- }
- $(this).hide().removeClass('hide-download')
- })
- };
- var _vsnr = new _vsnr(_language);
- function subscribeEmail(c, d) {
- var b = '#subscription-message';
- msgbox = $(c).find('.subscription-message');
- if (msgbox && msgbox.attr('id')) {
- b = '#' + msgbox.attr('id')
- }
- if ((typeof teaserBlockMovie) !== 'undefined' && d != teaserBlockMovie) {
- d = 0
- }
- $(b).html('<img class="center-block"' + (d ? '' : 'style="margin-top:50px")') + ' src="../resources/ajax-loader/1425651665.gif" alt=""/>');
- $('.benderkiller').val('');
- $.ajax({
- url: $(c).attr('action'),
- method: 'post',
- data: $(c).serialize(),
- success: function (e) {
- if (e.message) {
- displayAlert(b, 'success', e.message);
- if (d) {
- $('#closeteaser' + d).click();
- $('#subscribe-button-teasermail').hide();
- $('#close-button-teasermail').show()
- }
- } else {
- if (e.error) {
- displayAlert(b, 'danger', e.error)
- } else {
- displayAlert(b, 'danger', 'An error occurred')
- }
- }
- },
- error: function () {
- displayAlert(b, 'danger', 'An error occurred')
- }
- });
- return false
- }
- function buyMovie(f, c, e, b, d) {
- c = c || 'streaming';
- e = parseInt(e) > 0 || e === true;
- b = parseInt(b) > 0 || b === true;
- d = d || false;
- if (d) {
- return true
- }
- _vsnr.cart.add('movie', f, c, e, b);
- document.location.href = _vsnr.getPrefix('payment');
- return false
- }
- var diapo = 0;
- var diapolock = 0;
- var diapomax = 0;
- function diapostart(c, b) {
- if (!c || !b || $('#navbar-top .navbar-toggle').is(':visible')) {
- return true
- }
- c = parseInt(c);
- b = parseInt(b);
- if (c === diapolock) {
- diapo = c;
- diapomax = b
- } else {
- if (diapo !== c) {
- if (diapo) {
- diapostop(diapo)
- }
- diapo = c;
- diapomax = b;
- diapolock = c;
- setTimeout(function () {
- diapochange(c, 1)
- }, 200)
- }
- }
- return false
- }
- function diapostop(c, b) {
- c = parseInt(c);
- if (!b && diapo === c) {
- diapo = 0;
- diapomax = 0;
- setTimeout(function () {
- diapostop(c, 1)
- }, 700)
- } else {
- if (c !== diapo) {
- $('#diapo' + c + ' li').hide();
- $('#diapo' + c + ' li.diapo0').show()
- }
- }
- return false
- }
- function diapochange(c, b) {
- c = parseInt(c);
- b = parseInt(b);
- diapolock = 0;
- if (c !== diapo) {
- diapostop(c)
- } else {
- $('#diapo' + c + ' li').hide();
- $('#diapo' + c + 'li.diapo' + b).show();
- if (b >= diapomax) {
- b = 1
- } else {
- b++
- }
- diapolock = c;
- setTimeout(function () {
- diapochange(c, b)
- }, 700)
- }
- return false
- }
- function openPack(c, g) {
- var h = $.parseJSON(_vsnr.colorbox),
- f = 10 + 16 + 16,
- b = 0,
- e = '-8px',
- d = $('body > div.container').first().width() + 16;
- h.className = 'no-background';
- h.maxHeight = '95%';
- if (g.packaging === 'simple') {
- h.height = (g.count[2] * 406 + g.count[3] * 335) + 25 + 'px';
- h.onComplete = function () {
- _vsnr.location.callback();
- $('#all-packs span.default-price').each(function () {
- _vsnr.location.fixPrice($(this))
- })
- }
- } else {
- h.fixed = true;
- h.scrolling = false;
- if (_vsnr.is('sm')) {
- f += 196;
- b = f + 456;
- if (g.movies > 5) {
- b += Math.ceil((g.movies - 5) / 4) * (217 + 16)
- }
- } else {
- f += 214;
- b = f + 436;
- if (g.movies > 9) {
- b += Math.ceil((g.movies - 9) / 6) * (207 + 16)
- }
- }
- if (b > $(window).height() * 0.945) {
- d += 17;
- e = '-16px'
- }
- h.height = Math.ceil(b) + 'px';
- h.width = Math.ceil(d) + 'px';
- h.onComplete = function () {
- $('#pack-popup-background div').css('height', $('#pack-popup-buttons').height() + 'px');
- $('#pack-popup #packMoviesList').height(($('#cboxLoadedContent').height() - f) + 'px').css('margin-right', e);
- _vsnr.rollover($('#pack-popup #packMoviesList'))
- }
- }
- $(c).colorbox(h);
- return false
- }
- var megapackId = 0;
- function hideMegapackBox() {
- $('#megapack-box').hide(500);
- $.cookie('vsrnMP' + megapackId, 1, {
- expires: 1,
- path: '../default.htm'
- });
- return false
- }
- function showMegapackBox(b) {
- megapackId = b;
- if (!$.cookie('vsrnMP' + megapackId) && !_vsnr.is('xs')) {
- $('#megapack-box').show()
- }
- }
- function openEmailPreview(b) {
- var c = $.parseJSON(_vsnr.colorbox);
- c.href = b;
- c.className = 'no-background';
- c.width = '700px';
- c.maxWidth = '95%';
- c.height = '300px';
- c.maxHeight = '95%';
- c.onComplete = function () {
- if (_vsnr.isLogged()) {
- $('#subscribe-emailpreview').val(_vsnr.user.email).attr('disabled', 'disabled');
- if (_vsnr.user.emailSubscription) {
- $('#emailpreview-subscription').hide()
- }
- }
- };
- $.colorbox(c);
- return false
- }
- function launchTrailer(b) {
- setTimeout(function () {
- launchTrailer(b)
- }, 1000);
- return false
- }
- function launchPlayer(e, c, d, b) {
- setTimeout(function () {
- launchPlayer(e, c, d, b)
- }, 1000);
- return false
- }
- var match = (document.location.hash + '&').match(/affiliate=(.+?)&/),
- affiliate = match && match[1] ? $.parseJSON(decodeURIComponent(match[1])) : false;
- if (!affiliate && _vsnr.affiliate && !$.cookie('aff')) {
- affiliate = {
- aff: _vsnr.affiliate,
- ref: ''
- }
- }
- if (affiliate && affiliate.aff) {
- var a = document.createElement('script'),
- m = document.getElementsByTagName('script') [0];
- a.async = 1;
- a.src = '../../https@track.dorcelcash.com/in/track.js@s=' + (_vsnr.service === 'xillimite' ? 'XILL' : (_vsnr.orientation === 'strait' ? 'DVIS' : 'GAVC')) + '&aff=' + decodeURIComponent(affiliate.aff.replace(/\+/g, ' ')) + '&d=' + ((new Date()).getTime()) + '&u=' + encodeURIComponent(window.location.href.replace(/#.+$/, '').substr(0, 4000)) + '&r=' + encodeURIComponent(affiliate.ref.substr(0, 1000));
- m.parentNode.insertBefore(a, m)
- }
- $(window).ready(function () {
- var b = '../../https@ssl14.ovh.net/~dugwood/online.gif@host=' + (_vsnr.service === 'xillimite' ? 'x' : 'd');
- new Image().src = b;
- if (_vsnr.user.id) {
- new Image().src = b + 'm'
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement