forked from sensorsdata/sa-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heatmap.min.js
4 lines (4 loc) · 128 KB
/
heatmap.min.js
1
2
3
4
!function(){var e,t=function(e){"use strict";function t(){if("object"==typeof console&&console.log)try{return console.log.apply(console,arguments)}catch(e){console.log(arguments[0])}}function n(e,t){t=t||z;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=ne.type(e);return"function"!==n&&!ne.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return ne.isFunction(t)?ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?ne.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ne.grep(e,function(e){return G.call(t,e)>-1!==n}):fe.test(t)?ne.filter(t,e,n):(t=ne.filter(t,e),ne.grep(e,function(e){return G.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return ne.each(e.match(ye)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function u(e){throw e}function c(e,t,n,r){var i;try{e&&ne.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&ne.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function d(){z.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),ne.ready()}function f(){this.expando=ne.expando+f.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Te.test(e)?JSON.parse(e):e)}function h(e,n,r){var i;if(void 0===r&&1===e.nodeType)if(i="data-"+n.replace(Ee,"-$&").toLowerCase(),r=e.getAttribute(i),"string"==typeof r){try{r=p(r)}catch(o){t(o)}Ce.set(e,n,r)}else r=void 0;return r}function g(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return ne.css(e,t,"")},l=s(),u=n&&n[3]||(ne.cssNumber[t]?"":"px"),c=(ne.cssNumber[t]||"px"!==u&&+l)&&Ae.exec(ne.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do o=o||".5",c/=o,ne.style(e,t,c+u);while(o!==(o=s()/l)&&1!==o&&--a)}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Pe[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=ne.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Pe[r]=i,i)}function m(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=ke.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ne(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",ke.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function y(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?ne.merge([e],n):n}function x(e,t){for(var n=0,r=e.length;n<r;n++)ke.set(e[n],"globalEval",!t||ke.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if(o=e[p],o||0===o)if("object"===ne.type(o))ne.merge(f,o.nodeType?[o]:o);else if(Fe.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Me.exec(o)||["",""])[1].toLowerCase(),l=He[s]||He._default,a.innerHTML=l[1]+ne.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;ne.merge(f,a.childNodes),a=d.firstChild,a.textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&ne.inArray(o,r)>-1)i&&i.push(o);else if(u=ne.contains(o.ownerDocument,o),a=y(d.appendChild(o),"script"),u&&x(a),n)for(c=0;o=a[c++];)Ie.test(o.type||"")&&n.push(o);return d}function w(){return!0}function _(){return!1}function k(){try{return z.activeElement}catch(e){t(e)}}function C(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)C(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=_;else if(!i)return e;return 1===o&&(a=i,i=function(e){return ne().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ne.guid++)),e.each(function(){ne.event.add(this,t,i,r,n)})}function T(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?ne(">tbody",e)[0]||e:e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function D(e){var t=$e.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function A(e,t){var n,r,i,o,a,s,l,u;if(1===t.nodeType){if(ke.hasData(e)&&(o=ke.access(e),a=ke.set(t,o),u=o.events)){delete a.handle,a.events={};for(i in u)for(n=0,r=u[i].length;n<r;n++)ne.event.add(t,i,u[i][n])}Ce.hasData(e)&&(s=Ce.access(e),l=ne.extend({},s),Ce.set(t,l))}}function L(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Be.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function N(e,t,r,i){t=V.apply([],t);var o,a,s,l,u,c,d=0,f=e.length,p=f-1,h=t[0],g=ne.isFunction(h);if(g||f>1&&"string"==typeof h&&!ee.checkClone&&We.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),N(o,t,r,i)});if(f&&(o=b(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=ne.map(y(o,"script"),E),l=s.length;d<f;d++)u=o,d!==p&&(u=ne.clone(u,!0,!0),l&&ne.merge(s,y(u,"script"))),r.call(e[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,ne.map(s,D),d=0;d<l;d++)u=s[d],Ie.test(u.type||"")&&!ke.access(u,"globalEval")&&ne.contains(c,u)&&(u.src?ne._evalUrl&&ne._evalUrl(u.src):n(u.textContent.replace(Ve,""),c))}return e}function S(e,t,n){for(var r,i=t?ne.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ne.cleanData(y(r)),r.parentNode&&(n&&ne.contains(r.ownerDocument,r)&&x(y(r,"script")),r.parentNode.removeChild(r));return e}function P(e,t,n){var r,i,o,a,s=e.style;return n=n||Ye(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||ne.contains(e.ownerDocument,e)||(a=ne.style(e,t)),!ee.pixelMarginRight()&&Ge.test(a)&&Xe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function B(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function M(e){if(e in tt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if(e=et[n]+t,e in tt)return e}function I(e){var t=ne.cssProps[e];return t||(t=ne.cssProps[e]=M(e)||e),t}function H(e,t,n){var r=Ae.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function F(e,t,n,r,i){var o,a=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(a+=ne.css(e,n+Le[o],!0,i)),r?("content"===n&&(a-=ne.css(e,"padding"+Le[o],!0,i)),"margin"!==n&&(a-=ne.css(e,"border"+Le[o]+"Width",!0,i))):(a+=ne.css(e,"padding"+Le[o],!0,i),"padding"!==n&&(a+=ne.css(e,"border"+Le[o]+"Width",!0,i)));return a}function O(e,t,n){var r,i=Ye(e),o=P(e,t,i),a="border-box"===ne.css(e,"boxSizing",!1,i);return Ge.test(o)?o:(r=a&&(ee.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),o=parseFloat(o)||0,o+F(e,t,n||(a?"border":"content"),r,i)+"px")}function R(e){var t=e.match(ye)||[];return t.join(" ")}function j(e){return e.getAttribute&&e.getAttribute("class")||""}function q(e,t,n,r){var i;if(Array.isArray(t))ne.each(t,function(t,i){n||lt.test(e)?r(e,i):q(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==ne.type(t))r(e,t);else for(i in t)q(e+"["+i+"]",t[i],n,r)}var U=[],z=e.document,W=Object.getPrototypeOf,$=U.slice,V=U.concat,X=U.push,G=U.indexOf,Y={},K=Y.toString,Q=Y.hasOwnProperty,J=Q.toString,Z=J.call(Object),ee={},te="3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector",ne=function(e,t){return new ne.fn.init(e,t)},re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ie=/^-ms-/,oe=/-([a-z])/g,ae=function(e,t){return t.toUpperCase()};ne.fn=ne.prototype={jquery:te,constructor:ne,length:0,toArray:function(){return $.call(this)},get:function(e){return null==e?$.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ne.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ne.each(this,e)},map:function(e){return this.pushStack(ne.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack($.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:X,sort:U.sort,splice:U.splice},ne.extend=ne.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ne.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],r=e[t],a!==r&&(u&&r&&(ne.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&ne.isPlainObject(n)?n:{},a[t]=ne.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},ne.extend({expando:"jQuery"+(te+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ne.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=ne.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==K.call(e))&&(!(t=W(e))||(n=Q.call(t,"constructor")&&t.constructor,"function"==typeof n&&J.call(n)===Z))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Y[K.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(ie,"ms-").replace(oe,ae)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(re,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?ne.merge(n,"string"==typeof e?[e]:e):X.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:G.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,a=0,s=[];if(r(e))for(i=e.length;a<i;a++)o=t(e[a],a,n),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,n),null!=o&&s.push(o);return V.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),ne.isFunction(e))return r=$.call(arguments,2),i=function(){return e.apply(t||this,r.concat($.call(arguments)))},i.guid=e.guid=e.guid||ne.guid++,i},now:Date.now,support:ee}),"function"==typeof Symbol&&(ne.fn[Symbol.iterator]=U[Symbol.iterator]),ne.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Y["[object "+t+"]"]=t.toLowerCase()});var se=function(e){function n(e,t,n,r){var i,o,a,s,l,u,c,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:U)!==M&&B(t),t=t||M,H)){if(11!==p&&(l=ye.exec(e)))if(i=l[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&j(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&k.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(k.qsa&&!X[e+" "]&&(!F||!F.test(e))){if(1!==p)d=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(_e,ke):t.setAttribute("id",s=q),u=D(e),o=u.length;o--;)u[o]="#"+s+" "+h(u[o]);c=u.join(","),d=xe.test(e)&&f(t.parentNode)||t}if(c)try{return Z.apply(n,d.querySelectorAll(c)),n}catch(g){}finally{s===q&&t.removeAttribute("id")}}}return L(e.replace(le,"$1"),t,n,r)}function r(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function i(e){return e[q]=!0,e}function o(e){var t=M.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function d(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function h(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function g(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=W++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,f=[z,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(d=t[q]||(t[q]={}),c=d[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===z&&u[1]===s)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function v(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,t,r){for(var i=0,o=t.length;i<o;i++)n(e,t[i],r);return r}function y(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function x(e,t,n,r,o,a){return r&&!r[q]&&(r=x(r)),o&&!o[q]&&(o=x(o,a)),i(function(i,a,s,l){var u,c,d,f=[],p=[],h=a.length,g=i||m(t||"*",s.nodeType?[s]:s,[]),v=!e||!i&&t?g:y(g,f,e,s,l),x=n?o||(i?e:h||r)?[]:a:v;if(n&&n(v,x,s,l),r)for(u=y(x,p),r(u,[],s,l),c=u.length;c--;)(d=u[c])&&(x[p[c]]=!(v[p[c]]=d));if(i){if(o||e){if(o){for(u=[],c=x.length;c--;)(d=x[c])&&u.push(v[c]=d);o(null,x=[],u,l)}for(c=x.length;c--;)(d=x[c])&&(u=o?te(i,d):f[c])>-1&&(i[u]=!(a[u]=d))}}else x=y(x===a?x.splice(h,x.length):x),o?o(null,a,x,l):Z.apply(a,x)})}function b(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,l=g(function(e){return e===t},a,!0),u=g(function(e){return te(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=C.relative[e[s].type])c=[g(v(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[q]){for(r=++s;r<i&&!C.relative[e[r].type];r++);return x(s>1&&v(c),s>1&&h(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,s<r&&b(e.slice(s,r)),r<i&&b(e=e.slice(r)),r<i&&h(e))}c.push(n)}return v(c)}function w(e,t){var r=t.length>0,o=e.length>0,a=function(i,a,s,l,u){var c,d,f,p=0,h="0",g=i&&[],v=[],m=N,x=i||o&&C.find.TAG("*",u),b=z+=null==m?1:Math.random()||.1,w=x.length;for(u&&(N=a===M||a||u);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(d=0,a||c.ownerDocument===M||(B(c),s=!H);f=e[d++];)if(f(c,a||M,s)){l.push(c);break}u&&(z=b)}r&&((c=!f&&c)&&p--,i&&g.push(c))}if(p+=h,r&&h!==p){for(d=0;f=t[d++];)f(g,v,a,s);if(i){if(p>0)for(;h--;)g[h]||v[h]||(v[h]=Q.call(l));v=y(v)}Z.apply(l,v),u&&!i&&v.length>0&&p+t.length>1&&n.uniqueSort(l)}return u&&(z=b,N=m),g};return r?i(a):a}var _,k,C,T,E,D,A,L,N,S,P,B,M,I,H,F,O,R,j,q="sizzle"+1*new Date,U=e.document,z=0,W=0,$=r(),V=r(),X=r(),G=function(e,t){return e===t&&(P=!0),0},Y={}.hasOwnProperty,K=[],Q=K.pop,J=K.push,Z=K.push,ee=K.slice,te=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",oe="\\["+re+"*("+ie+")(?:"+re+"*([*^$|!~]?=)"+re+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+re+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(re+"+","g"),le=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),ue=new RegExp("^"+re+"*,"+re+"*"),ce=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),de=new RegExp("="+re+"*([^\\]'\"]*?)"+re+"*\\]","g"),fe=new RegExp(ae),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ge=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/[+~]/,be=new RegExp("\\\\([\\da-f]{1,6}"+re+"?|("+re+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ke=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){B()},Te=g(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply(K=ee.call(U.childNodes),U.childNodes),K[U.childNodes.length].nodeType}catch(Ee){Z={apply:K.length?function(e,t){J.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}k=n.support={},E=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},B=n.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:U;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,I=M.documentElement,H=!E(M),U!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),k.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=o(function(e){return e.appendChild(M.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=me.test(M.getElementsByClassName),k.getById=o(function(e){return I.appendChild(e).id=q,!M.getElementsByName||!M.getElementsByName(q).length}),k.getById?(C.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),C.find.TAG=k.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=k.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&H)return t.getElementsByClassName(e)},O=[],F=[],(k.qsa=me.test(M.querySelectorAll))&&(o(function(e){I.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+re+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+re+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+q+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||F.push(".#.+[+~]")}),o(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=M.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+re+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&F.push(":enabled",":disabled"),I.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(k.matchesSelector=me.test(R=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&o(function(e){k.disconnectedMatch=R.call(e,"*"),R.call(e,"[s!='']:x"),O.push("!=",ae)}),F=F.length&&new RegExp(F.join("|")),O=O.length&&new RegExp(O.join("|")),t=me.test(I.compareDocumentPosition),j=t||me.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return P=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!k.sortDetached&&t.compareDocumentPosition(e)===n?e===M||e.ownerDocument===U&&j(U,e)?-1:t===M||t.ownerDocument===U&&j(U,t)?1:S?te(S,e)-te(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return P=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],l=[t];if(!i||!o)return e===M?-1:t===M?1:i?-1:o?1:S?te(S,e)-te(S,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[r]===l[r];)r++;return r?s(a[r],l[r]):a[r]===U?-1:l[r]===U?1:0},M):M},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,r){if((e.ownerDocument||e)!==M&&B(e),r=r.replace(de,"='$1']"),k.matchesSelector&&H&&!X[r+" "]&&(!O||!O.test(r))&&(!F||!F.test(r)))try{var i=R.call(e,r);if(i||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(o){t(o)}return n(r,M,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==M&&B(e),j(e,t)},n.attr=function(e,t){(e.ownerDocument||e)!==M&&B(e);var n=C.attrHandle[t.toLowerCase()],r=n&&Y.call(C.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==r?r:k.attributes||!H?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},n.escape=function(e){return(e+"").replace(_e,ke)},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,i=0;if(P=!k.detectDuplicates,S=!k.sortStable&&e.slice(0),e.sort(G),P){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},T=n.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},C=n.selectors={cacheLength:50,createPseudo:i,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||n.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&n.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=D(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+re+")"+e+"("+re+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===t&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(v){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&y){for(f=v,d=f[q]||(f[q]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===z&&u[1],x=p&&u[2],f=p&&v.childNodes[p];f=++p&&f&&f[g]||(x=p=0)||h.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[z,p,x];break}}else if(y&&(f=t,d=f[q]||(f[q]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),u=c[e]||[],p=u[0]===z&&u[1],x=p),x===!1)for(;(f=++p&&f&&f[g]||(x=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++x||(y&&(d=f[q]||(f[q]={}),c=d[f.uniqueID]||(d[f.uniqueID]={}),c[e]=[z,x]),f!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,t){var r,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[q]?o(t):o.length>1?(r=[e,e,"",t],C.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=te(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=A(e.replace(le,"$1"));return r[q]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:i(function(e){return pe.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===I},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return ge.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,n){return[n<0?n+t:n]}),even:d(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:d(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:d(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:d(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},C.pseudos.nth=C.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[_]=l(_);for(_ in{submit:!0,reset:!0})C.pseudos[_]=u(_);return p.prototype=C.filters=C.pseudos,C.setFilters=new p,D=n.tokenize=function(e,t){var r,i,o,a,s,l,u,c=V[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=C.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(le," ")}),s=s.slice(r.length));for(a in C.filter)!(i=he[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):V(e,l).slice(0)},A=n.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=D(e)),n=t.length;n--;)o=b(t[n]),o[q]?r.push(o):i.push(o);o=X(e,w(i,r)),o.selector=e}return o},L=n.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&D(e=u.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&H&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((l=C.find[s])&&(r=l(a.matches[0].replace(be,we),xe.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&h(o),!e)return Z.apply(n,r),n;break}}return(u||A(e,c))(r,t,!H,n,!t||xe.test(e)&&f(t.parentNode)||t),n},k.sortStable=q.split("").sort(G).join("")===q,k.detectDuplicates=!!P,B(),k.sortDetached=o(function(e){return 1&e.compareDocumentPosition(M.createElement("fieldset"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(ne,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),n}(e);ne.find=se,ne.expr=se.selectors,ne.expr[":"]=ne.expr.pseudos,ne.uniqueSort=ne.unique=se.uniqueSort,ne.text=se.getText,ne.isXMLDoc=se.isXML,ne.contains=se.contains,ne.escapeSelector=se.escape;var le=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ne(e).is(n))break;r.push(e)}return r},ue=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ce=ne.expr.match.needsContext,de=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,fe=/^.[^:#\[\.,]*$/;ne.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ne.find.matchesSelector(r,e)?[r]:[]:ne.find.matches(e,ne.grep(t,function(e){return 1===e.nodeType}))},ne.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ne(e).filter(function(){for(t=0;t<r;t++)if(ne.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ne.find(e,i[t],n);return r>1?ne.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&ce.test(e)?ne(e):e||[],!1).length}});var pe,he=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ge=ne.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||pe,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:he.exec(e),
!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ne?t[0]:t,ne.merge(this,ne.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:z,!0)),de.test(r[1])&&ne.isPlainObject(t))for(r in t)ne.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=z.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ne.isFunction(e)?void 0!==n.ready?n.ready(e):e(ne):ne.makeArray(e,this)};ge.prototype=ne.fn,pe=ne(z);var ve=/^(?:parents|prev(?:Until|All))/,me={children:!0,contents:!0,next:!0,prev:!0};ne.fn.extend({has:function(e){var t=ne(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ne.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ne(e);if(!ce.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ne.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ne.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?G.call(ne(e),this[0]):G.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ne.uniqueSort(ne.merge(this.get(),ne(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ne.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return le(e,"parentNode")},parentsUntil:function(e,t,n){return le(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return le(e,"nextSibling")},prevAll:function(e){return le(e,"previousSibling")},nextUntil:function(e,t,n){return le(e,"nextSibling",n)},prevUntil:function(e,t,n){return le(e,"previousSibling",n)},siblings:function(e){return ue((e.parentNode||{}).firstChild,e)},children:function(e){return ue(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),ne.merge([],e.childNodes))}},function(e,t){ne.fn[e]=function(n,r){var i=ne.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ne.filter(r,i)),this.length>1&&(me[e]||ne.uniqueSort(i),ve.test(e)&&i.reverse()),this.pushStack(i)}});var ye=/[^\x20\t\r\n\f]+/g;ne.Callbacks=function(e){e="string"==typeof e?s(e):ne.extend({},e);var t,n,r,i,o=[],a=[],l=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l<o.length;)o[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(l=o.length-1,a.push(n)),function r(t){ne.each(t,function(t,n){ne.isFunction(n)?e.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==ne.type(n)&&r(n)})}(arguments),n&&!t&&u()),this},remove:function(){return ne.each(arguments,function(e,t){for(var n;(n=ne.inArray(t,o,n))>-1;)o.splice(n,1),n<=l&&l--}),this},has:function(e){return e?ne.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ne.extend({Deferred:function(t){var n=[["notify","progress",ne.Callbacks("memory"),ne.Callbacks("memory"),2],["resolve","done",ne.Callbacks("once memory"),ne.Callbacks("once memory"),0,"resolved"],["reject","fail",ne.Callbacks("once memory"),ne.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return ne.Deferred(function(t){ne.each(n,function(n,r){var i=ne.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&ne.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,c=arguments,d=function(){var e,d;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,ne.isFunction(d)?i?d.call(e,o(a,n,l,i),o(a,n,u,i)):(a++,d.call(e,o(a,n,l,i),o(a,n,u,i),o(a,n,l,n.notifyWith))):(r!==l&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},f=i?d:function(){try{d()}catch(e){ne.Deferred.exceptionHook&&ne.Deferred.exceptionHook(e,f.stackTrace),t+1>=a&&(r!==u&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?f():(ne.Deferred.getStackHook&&(f.stackTrace=ne.Deferred.getStackHook()),e.setTimeout(f))}}var a=0;return ne.Deferred(function(e){n[0][3].add(o(0,e,ne.isFunction(i)?i:l,e.notifyWith)),n[1][3].add(o(0,e,ne.isFunction(t)?t:l)),n[2][3].add(o(0,e,ne.isFunction(r)?r:u))}).promise()},promise:function(e){return null!=e?ne.extend(e,i):i}},o={};return ne.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=$.call(arguments),o=ne.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?$.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(c(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||ne.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)c(i[n],a(n),o.reject);return o.promise()}});var xe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ne.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&xe.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},ne.readyException=function(t){e.setTimeout(function(){throw t})};var be=ne.Deferred();ne.fn.ready=function(e){return be.then(e)["catch"](function(e){ne.readyException(e)}),this},ne.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--ne.readyWait:ne.isReady)||(ne.isReady=!0,e!==!0&&--ne.readyWait>0||be.resolveWith(z,[ne]))}}),ne.ready.then=be.then,"complete"===z.readyState||"loading"!==z.readyState&&!z.documentElement.doScroll?e.setTimeout(ne.ready):(z.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var we=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===ne.type(n)){i=!0;for(s in n)we(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ne.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ne(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},_e=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};f.uid=1,f.prototype={cache:function(e){var t=e[this.expando];return t||(t={},_e(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ne.camelCase(t)]=n;else for(r in t)i[ne.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ne.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(ne.camelCase):(t=ne.camelCase(t),t=t in r?[t]:t.match(ye)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||ne.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ne.isEmptyObject(t)}};var ke=new f,Ce=new f,Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/[A-Z]/g;ne.extend({hasData:function(e){return Ce.hasData(e)||ke.hasData(e)},data:function(e,t,n){return Ce.access(e,t,n)},removeData:function(e,t){Ce.remove(e,t)},_data:function(e,t,n){return ke.access(e,t,n)},_removeData:function(e,t){ke.remove(e,t)}}),ne.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Ce.get(o),1===o.nodeType&&!ke.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ne.camelCase(r.slice(5)),h(o,r,i[r])));ke.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ce.set(this,e)}):we(this,function(t){var n;if(o&&void 0===t){if(n=Ce.get(o,e),void 0!==n)return n;if(n=h(o,e),void 0!==n)return n}else this.each(function(){Ce.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ce.remove(this,e)})}}),ne.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ke.get(e,t),n&&(!r||Array.isArray(n)?r=ke.access(e,t,ne.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ne.queue(e,t),r=n.length,i=n.shift(),o=ne._queueHooks(e,t),a=function(){ne.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ke.get(e,n)||ke.access(e,n,{empty:ne.Callbacks("once memory").add(function(){ke.remove(e,[t+"queue",n])})})}}),ne.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ne.queue(this[0],e):void 0===t?this:this.each(function(){var n=ne.queue(this,e,t);ne._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ne.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ne.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ne.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=ke.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var De=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ae=new RegExp("^(?:([+-])=|)("+De+")([a-z%]*)$","i"),Le=["Top","Right","Bottom","Left"],Ne=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ne.contains(e.ownerDocument,e)&&"none"===ne.css(e,"display")},Se=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},Pe={};ne.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ne(this)?ne(this).show():ne(this).hide()})}});var Be=/^(?:checkbox|radio)$/i,Me=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ie=/^$|\/(?:java|ecma)script/i,He={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td;var Fe=/<|&#?\w+;/;!function(){var e=z.createDocumentFragment(),t=e.appendChild(z.createElement("div")),n=z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ee.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ee.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Oe=z.documentElement,Re=/^key/,je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qe=/^([^.]*)(?:\.(.+)|)/;ne.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,g,v=ke.get(e);if(v)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&ne.find.matchesSelector(Oe,i),n.guid||(n.guid=ne.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(t){return"undefined"!=typeof ne&&ne.event.triggered!==t.type?ne.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(ye)||[""],u=t.length;u--;)s=qe.exec(t[u])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p&&(d=ne.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=ne.event.special[p]||{},c=ne.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ne.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||(f=l[p]=[],f.delegateCount=0,d.setup&&d.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),ne.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,g,v=ke.hasData(e)&&ke.get(e);if(v&&(l=v.events)){for(t=(t||"").match(ye)||[""],u=t.length;u--;)if(s=qe.exec(t[u])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(d=ne.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&d.teardown.call(e,h,v.handle)!==!1||ne.removeEvent(e,p,v.handle),delete l[p])}else for(p in l)ne.event.remove(e,p+t[u],n,r,!0);ne.isEmptyObject(l)&&ke.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=ne.event.fix(e),l=new Array(arguments.length),u=(ke.get(this,"events")||{})[s.type]||[],c=ne.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,s)!==!1){for(a=ne.event.handlers.call(this,s,u),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,r=((ne.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l),void 0!==r&&(s.result=r)===!1&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||u.disabled!==!0)){for(o=[],a={},n=0;n<l;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?ne(i,this).index(u)>-1:ne.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(ne.Event.prototype,e,{enumerable:!0,configurable:!0,get:ne.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ne.expando]?e:new ne.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ne.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ne.Event=function(e,t){return this instanceof ne.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?w:_,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ne.extend(this,t),this.timeStamp=e&&e.timeStamp||ne.now(),void(this[ne.expando]=!0)):new ne.Event(e,t)},ne.Event.prototype={constructor:ne.Event,isDefaultPrevented:_,isPropagationStopped:_,isImmediatePropagationStopped:_,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ne.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Re.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&je.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ne.event.addProp),ne.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ne.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||ne.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.fn.extend({on:function(e,t,n,r){return C(this,e,t,n,r)},one:function(e,t,n,r){return C(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ne(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=_),this.each(function(){ne.event.remove(this,e,n,t)})}});var Ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ze=/<script|<style|<link/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,$e=/^true\/(.*)/,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ne.extend({htmlPrefilter:function(e){return e.replace(Ue,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ne.contains(e.ownerDocument,e);if(!(ee.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ne.isXMLDoc(e)))for(a=y(s),o=y(e),r=0,i=o.length;r<i;r++)L(o[r],a[r]);if(t)if(n)for(o=o||y(e),a=a||y(s),r=0,i=o.length;r<i;r++)A(o[r],a[r]);else A(e,s);return a=y(s,"script"),a.length>0&&x(a,!l&&y(e,"script")),s},cleanData:function(e){for(var t,n,r,i=ne.event.special,o=0;void 0!==(n=e[o]);o++)if(_e(n)){if(t=n[ke.expando]){if(t.events)for(r in t.events)i[r]?ne.event.remove(n,r):ne.removeEvent(n,r,t.handle);n[ke.expando]=void 0}n[Ce.expando]&&(n[Ce.expando]=void 0)}}}),ne.fn.extend({detach:function(e){return S(this,e,!0)},remove:function(e){return S(this,e)},text:function(e){return we(this,function(e){return void 0===e?ne.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return N(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return N(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ne.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ne.clone(this,e,t)})},html:function(e){return we(this,function(e){var n=this[0]||{},r=0,i=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!ze.test(e)&&!He[(Me.exec(e)||["",""])[1].toLowerCase()]){e=ne.htmlPrefilter(e);try{for(;r<i;r++)n=this[r]||{},1===n.nodeType&&(ne.cleanData(y(n,!1)),n.innerHTML=e);n=0}catch(o){t(o)}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return N(this,arguments,function(t){var n=this.parentNode;ne.inArray(this,e)<0&&(ne.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),ne.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ne.fn[e]=function(e){for(var n,r=[],i=ne(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),ne(i[a])[t](n),X.apply(r,n.get());return this.pushStack(r)}});var Xe=/^margin/,Ge=new RegExp("^("+De+")(?!px)[a-z%]+$","i"),Ye=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Oe.appendChild(a);var t=e.getComputedStyle(s);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,Oe.removeChild(a),s=null}}var n,r,i,o,a=z.createElement("div"),s=z.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",ee.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ne.extend(ee,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var Ke=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"},et=["Webkit","Moz","ms"],tt=z.createElement("div").style;ne.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=P(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ne.camelCase(t),l=Qe.test(t),u=e.style;return l||(t=I(s)),a=ne.cssHooks[t]||ne.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t]:(o=typeof n,"string"===o&&(i=Ae.exec(n))&&i[1]&&(n=g(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ne.cssNumber[s]?"":"px")),ee.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=ne.camelCase(t),l=Qe.test(t);return l||(t=I(s)),a=ne.cssHooks[t]||ne.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=P(e,t,r)),"normal"===i&&t in Ze&&(i=Ze[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ne.each(["height","width"],function(e,t){ne.cssHooks[t]={get:function(e,n,r){if(n)return!Ke.test(ne.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?O(e,t,r):Se(e,Je,function(){return O(e,t,r)})},set:function(e,n,r){var i,o=r&&Ye(e),a=r&&F(e,t,r,"border-box"===ne.css(e,"boxSizing",!1,o),o);return a&&(i=Ae.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=ne.css(e,t)),H(e,n,a)}}}),ne.cssHooks.marginLeft=B(ee.reliableMarginLeft,function(e,t){if(t)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-Se(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ne.each({margin:"",padding:"",border:"Width"},function(e,t){ne.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Le[r]+t]=o[r]||o[r-2]||o[0];return i}},Xe.test(e)||(ne.cssHooks[e+t].set=H)}),ne.fn.extend({css:function(e,t){return we(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ye(e),i=t.length;a<i;a++)o[t[a]]=ne.css(e,t[a],!1,r);return o}return void 0!==n?ne.style(e,t,n):ne.css(e,t)},e,t,arguments.length>1)}}),ne.fn.delay=function(t,n){return t=ne.fx?ne.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=z.createElement("input"),t=z.createElement("select"),n=t.appendChild(z.createElement("option"));e.type="checkbox",ee.checkOn=""!==e.value,ee.optSelected=n.selected,e=z.createElement("input"),e.value="t",e.type="radio",ee.radioValue="t"===e.value}();var nt,rt=ne.expr.attrHandle;ne.fn.extend({attr:function(e,t){return we(this,ne.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ne.removeAttr(this,e)})}}),ne.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ne.prop(e,t,n):(1===o&&ne.isXMLDoc(e)||(i=ne.attrHooks[t.toLowerCase()]||(ne.expr.match.bool.test(t)?nt:void 0)),void 0!==n?null===n?void ne.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=ne.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!ee.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(ye);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),nt={set:function(e,t,n){return t===!1?ne.removeAttr(e,n):e.setAttribute(n,n),n}},ne.each(ne.expr.match.bool.source.match(/\w+/g),function(e,t){var n=rt[t]||ne.find.attr;rt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=rt[a],rt[a]=i,i=null!=n(e,t,r)?a:null,rt[a]=o),i}});var it=/^(?:input|select|textarea|button)$/i,ot=/^(?:a|area)$/i;ne.fn.extend({prop:function(e,t){return we(this,ne.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ne.propFix[e]||e]})}}),ne.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ne.isXMLDoc(e)||(t=ne.propFix[t]||t,i=ne.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ne.find.attr(e,"tabindex");return t?parseInt(t,10):it.test(e.nodeName)||ot.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ee.optSelected||(ne.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ne.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ne.propFix[this.toLowerCase()]=this}),ne.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(ne.isFunction(e))return this.each(function(t){ne(this).addClass(e.call(this,t,j(this)))});if("string"==typeof e&&e)for(t=e.match(ye)||[];n=this[l++];)if(i=j(n),r=1===n.nodeType&&" "+R(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=R(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(ne.isFunction(e))return this.each(function(t){ne(this).removeClass(e.call(this,t,j(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(ye)||[];n=this[l++];)if(i=j(n),r=1===n.nodeType&&" "+R(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=R(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ne.isFunction(e)?this.each(function(n){ne(this).toggleClass(e.call(this,n,j(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=ne(this),o=e.match(ye)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=j(this),t&&ke.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":ke.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+R(j(n))+" ").indexOf(t)>-1)return!0;return!1}});var at=/\r/g;ne.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ne.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ne(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=ne.map(i,function(e){return null==e?"":e+""})),t=ne.valHooks[this.type]||ne.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ne.valHooks[i.type]||ne.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(at,""):null==n?"":n)}}}),ne.extend({valHooks:{option:{get:function(e){var t=ne.find.attr(e,"value");return null!=t?t:R(ne.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s="select-one"===e.type,l=s?null:[],u=s?a+1:o.length;for(r=a<0?u:s?a:0;r<u;r++)if(n=o[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=ne(n).val(),s)return t;l.push(t)}return l},set:function(e,t){for(var n,r,i=e.options,o=ne.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ne.inArray(ne.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ne.each(["radio","checkbox"],function(){ne.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ne.inArray(ne(e).val(),t)>-1}},ee.checkOn||(ne.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;ne.extend(ne.event,{trigger:function(t,n,r,i){var o,a,s,l,u,c,d,f=[r||z],p=Q.call(t,"type")?t.type:t,h=Q.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||z,3!==r.nodeType&&8!==r.nodeType&&!st.test(p+ne.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),u=p.indexOf(":")<0&&"on"+p,t=t[ne.expando]?t:new ne.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ne.makeArray(n,[t]),d=ne.event.special[p]||{},i||!d.trigger||d.trigger.apply(r,n)!==!1)){if(!i&&!d.noBubble&&!ne.isWindow(r)){for(l=d.delegateType||p,st.test(l+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||z)&&f.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=f[o++])&&!t.isPropagationStopped();)t.type=o>1?l:d.bindType||p,c=(ke.get(a,"events")||{})[t.type]&&ke.get(a,"handle"),c&&c.apply(a,n),c=u&&a[u],c&&c.apply&&_e(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||d._default&&d._default.apply(f.pop(),n)!==!1||!_e(r)||u&&ne.isFunction(r[p])&&!ne.isWindow(r)&&(s=r[u],s&&(r[u]=null),ne.event.triggered=p,r[p](),ne.event.triggered=void 0,s&&(r[u]=s)),t.result}},simulate:function(e,t,n){var r=ne.extend(new ne.Event,n,{type:e,isSimulated:!0});ne.event.trigger(r,null,t)}}),ne.fn.extend({trigger:function(e,t){return this.each(function(){ne.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ne.event.trigger(e,t,n,!0)}}),ne.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ne.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ne.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ee.focusin="onfocusin"in e,ee.focusin||ne.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ne.event.simulate(t,e.target,ne.event.fix(e))};ne.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ke.access(r,t);i||r.addEventListener(e,n,!0),
ke.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ke.access(r,t)-1;i?ke.access(r,t,i):(r.removeEventListener(e,n,!0),ke.remove(r,t))}}});var lt=/\[\]$/,ut=/\r?\n/g,ct=/^(?:submit|button|image|reset|file)$/i,dt=/^(?:input|select|textarea|keygen)/i;return ne.param=function(e,t){var n,r=[],i=function(e,t){var n=ne.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!ne.isPlainObject(e))ne.each(e,function(){i(this.name,this.value)});else for(n in e)q(n,e[n],t,i);return r.join("&")},ne.fn.extend({serialize:function(){return ne.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ne.prop(this,"elements");return e?ne.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ne(this).is(":disabled")&&dt.test(this.nodeName)&&!ct.test(e)&&(this.checked||!Be.test(e))}).map(function(e,t){var n=ne(this).val();return null==n?null:Array.isArray(n)?ne.map(n,function(e){return{name:t.name,value:e.replace(ut,"\r\n")}}):{name:t.name,value:n.replace(ut,"\r\n")}}).get()}}),ne.fn.extend({wrapAll:function(e){var t;return this[0]&&(ne.isFunction(e)&&(e=e.call(this[0])),t=ne(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ne.isFunction(e)?this.each(function(t){ne(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ne(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ne.isFunction(e);return this.each(function(n){ne(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ne(this).replaceWith(this.childNodes)}),this}}),ne.expr.pseudos.hidden=function(e){return!ne.expr.pseudos.visible(e)},ne.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ee.createHTMLDocument=function(){var e=z.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ne.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(ee.createHTMLDocument?(t=z.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=z.location.href,t.head.appendChild(r)):t=z),i=de.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&ne(o).remove(),ne.merge([],i.childNodes))},ne.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ne.css(e,"position"),d=ne(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=ne.css(e,"top"),l=ne.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ne.isFunction(t)&&(t=t.call(e,n,ne.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):d.css(f)}},ne.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ne.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ne.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+ne.css(e[0],"borderTopWidth",!0),left:r.left+ne.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-ne.css(n,"marginTop",!0),left:t.left-r.left-ne.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ne.css(e,"position");)e=e.offsetParent;return e||Oe})}}),ne.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ne.fn[e]=function(r){return we(this,function(e,r,i){var o;return ne.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ne.each(["top","left"],function(e,t){ne.cssHooks[t]=B(ee.pixelPosition,function(e,n){if(n)return n=P(e,t),Ge.test(n)?ne(e).position()[t]+"px":n})}),ne.each({Height:"height",Width:"width"},function(e,t){ne.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ne.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return we(this,function(t,n,i){var o;return ne.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?ne.css(t,n,s):ne.style(t,n,i,s)},t,a?i:void 0,a)}})}),ne.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ne.holdReady=function(e){e?ne.readyWait++:ne.ready(!0)},ne.isArray=Array.isArray,ne.parseJSON=JSON.parse,ne.nodeName=i,ne}(window);!function(){function t(e){this.mode=c.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var r=[],i=this.data.charCodeAt(t);i>65536?(r[0]=240|(1835008&i)>>>18,r[1]=128|(258048&i)>>>12,r[2]=128|(4032&i)>>>6,r[3]=128|63&i):i>2048?(r[0]=224|(61440&i)>>>12,r[1]=128|(4032&i)>>>6,r[2]=128|63&i):i>128?(r[0]=192|(1984&i)>>>6,r[1]=128|63&i):r[0]=i,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function r(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function i(e,t){this.totalCount=e,this.dataCount=t}function o(){this.buffer=[],this.length=0}function a(){return"undefined"!=typeof CanvasRenderingContext2D}function s(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var n=t.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(e=parseFloat(n[1]))}return e}function l(e,t){for(var n=1,r=u(e),i=0,o=v.length;i<=o;i++){var a=0;switch(t){case d.L:a=v[i][0];break;case d.M:a=v[i][1];break;case d.Q:a=v[i][2];break;case d.H:a=v[i][3]}if(r<=a)break;n++}if(n>v.length)throw new Error("Too long data");return n}function u(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}t.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},n.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=p.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var o=0;o<this.modules.length;o++)for(var a=o*i,s=0;s<this.modules[o].length;s++){var l=s*i,u=this.modules[o][s];u&&(r.beginFill(0,100),r.moveTo(l,a),r.lineTo(l+i,a),r.lineTo(l+i,a+i),r.lineTo(l,a+i),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=p.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(null==this.modules[r][i])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)o==-2||2==o||a==-2||2==a||0==o&&0==a?this.modules[r+o][i+a]=!0:this.modules[r+o][i+a]=!1}},setupTypeNumber:function(e){for(var t=p.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=p.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&1==(r>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[r][a-s]){var l=!1;o<e.length&&(l=1==(e[o]>>>i&1));var u=p.getMask(t,r,a-s);u&&(l=!l),this.modules[r][a-s]=l,i--,i==-1&&(o++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(e,t,r){for(var a=i.getRSBlocks(e,t),s=new o,l=0;l<r.length;l++){var u=r[l];s.put(u.mode,4),s.put(u.getLength(),p.getLengthInBits(u.mode,e)),u.write(s)}for(var c=0,l=0;l<a.length;l++)c+=a[l].dataCount;if(s.getLengthInBits()>8*c)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*c+")");for(s.getLengthInBits()+4<=8*c&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;;){if(s.getLengthInBits()>=8*c)break;if(s.put(n.PAD0,8),s.getLengthInBits()>=8*c)break;s.put(n.PAD1,8)}return n.createBytes(s,a)},n.createBytes=function(e,t){for(var n=0,i=0,o=0,a=new Array(t.length),s=new Array(t.length),l=0;l<t.length;l++){var u=t[l].dataCount,c=t[l].totalCount-u;i=Math.max(i,u),o=Math.max(o,c),a[l]=new Array(u);for(var d=0;d<a[l].length;d++)a[l][d]=255&e.buffer[d+n];n+=u;var f=p.getErrorCorrectPolynomial(c),h=new r(a[l],f.getLength()-1),g=h.mod(f);s[l]=new Array(f.getLength()-1);for(var d=0;d<s[l].length;d++){var v=d+g.getLength()-s[l].length;s[l][d]=v>=0?g.get(v):0}}for(var m=0,d=0;d<t.length;d++)m+=t[d].totalCount;for(var y=new Array(m),x=0,d=0;d<i;d++)for(var l=0;l<t.length;l++)d<a[l].length&&(y[x++]=a[l][d]);for(var d=0;d<o;d++)for(var l=0;l<t.length;l++)d<s[l].length&&(y[x++]=s[l][d]);return y};for(var c={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},f={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},p={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;p.getBCHDigit(t)-p.getBCHDigit(p.G15)>=0;)t^=p.G15<<p.getBCHDigit(t)-p.getBCHDigit(p.G15);return(e<<10|t)^p.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;p.getBCHDigit(t)-p.getBCHDigit(p.G18)>=0;)t^=p.G18<<p.getBCHDigit(t)-p.getBCHDigit(p.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case f.PATTERN000:return(t+n)%2==0;case f.PATTERN001:return t%2==0;case f.PATTERN010:return n%3==0;case f.PATTERN011:return(t+n)%3==0;case f.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case f.PATTERN101:return t*n%2+t*n%3==0;case f.PATTERN110:return(t*n%2+t*n%3)%2==0;case f.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new r([1],0),n=0;n<e;n++)t=t.multiply(new r([1,h.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case c.MODE_NUMBER:return 10;case c.MODE_ALPHA_NUM:return 9;case c.MODE_8BIT_BYTE:return 8;case c.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case c.MODE_NUMBER:return 12;case c.MODE_ALPHA_NUM:return 11;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case c.MODE_NUMBER:return 14;case c.MODE_ALPHA_NUM:return 13;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var o=0,a=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||a==e.isDark(r+s,i+l)&&o++;o>5&&(n+=3+o-5)}for(var r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var u=0;e.isDark(r,i)&&u++,e.isDark(r+1,i)&&u++,e.isDark(r,i+1)&&u++,e.isDark(r+1,i+1)&&u++,0!=u&&4!=u||(n+=3)}for(var r=0;r<t;r++)for(var i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(var i=0;i<t;i++)for(var r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);for(var c=0,i=0;i<t;i++)for(var r=0;r<t;r++)e.isDark(r,i)&&c++;var d=Math.abs(100*c/t/t-50)/5;return n+=10*d}},h={glog:function(e){if(e<1)throw new Error("glog("+e+")");return h.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return h.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)h.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)h.EXP_TABLE[g]=h.EXP_TABLE[g-4]^h.EXP_TABLE[g-5]^h.EXP_TABLE[g-6]^h.EXP_TABLE[g-8];for(var g=0;g<255;g++)h.LOG_TABLE[h.EXP_TABLE[g]]=g;r.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=h.gexp(h.glog(this.get(n))+h.glog(e.get(i)));return new r(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=h.glog(this.get(0))-h.glog(e.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(var i=0;i<e.getLength();i++)n[i]^=h.gexp(h.glog(e.get(i))+t);return new r(n,0).mod(e)}},i.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i.getRSBlocks=function(e,t){var n=i.getRsBlockTable(e,t);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=[],a=0;a<r;a++)for(var s=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;c<s;c++)o.push(new i(l,u));return o},i.getRsBlockTable=function(e,t){switch(t){case d.L:return i.RS_BLOCK_TABLE[4*(e-1)+0];case d.M:return i.RS_BLOCK_TABLE[4*(e-1)+1];case d.Q:return i.RS_BLOCK_TABLE[4*(e-1)+2];case d.H:return i.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},o.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var v=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],m=function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){function t(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}var n=this._htOption,r=this._el,i=e.getModuleCount();Math.floor(n.width/i),Math.floor(n.height/i);this.clear();var o=t("svg",{viewBox:"0 0 "+String(i)+" "+String(i),width:"100%",height:"100%",fill:n.colorLight});o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.appendChild(o),o.appendChild(t("rect",{fill:n.colorLight,width:"100%",height:"100%"})),o.appendChild(t("rect",{fill:n.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<i;a++)for(var s=0;s<i;s++)if(e.isDark(a,s)){var l=t("use",{x:String(s),y:String(a)});l.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),o.appendChild(l)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),y="svg"===document.documentElement.tagName.toLowerCase(),x=y?m:a()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function t(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,null===n._bSupportDataURI){var r=document.createElement("img"),i=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)},o=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)};return r.onabort=i,r.onerror=i,r.onload=o,void(r.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)}if(this._android&&this._android<=2.1){var n=1/window.devicePixelRatio,r=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,t,i,o,a,s,l,u,c){if("nodeName"in e&&/img/i.test(e.nodeName))for(var d=arguments.length-1;d>=1;d--)arguments[d]=arguments[d]*n;else"undefined"==typeof u&&(arguments[1]*=n,arguments[2]*=n,arguments[3]*=n,arguments[4]*=n);r.apply(this,arguments)}}var i=function(e,t){this._bIsPainted=!1,this._android=s(),this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(e){var t=this._elImage,n=this._oContext,r=this._htOption,i=e.getModuleCount(),o=r.width/i,a=r.height/i,s=Math.round(o),l=Math.round(a);t.style.display="none",this.clear();for(var u=0;u<i;u++)for(var c=0;c<i;c++){var d=e.isDark(u,c),f=c*o,p=u*a;n.strokeStyle=d?r.colorDark:r.colorLight,n.lineWidth=1,n.fillStyle=d?r.colorDark:r.colorLight,n.fillRect(f,p,o,a),n.strokeRect(Math.floor(f)+.5,Math.floor(p)+.5,s,l),n.strokeRect(Math.ceil(f)-.5,Math.ceil(p)-.5,s,l)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&t.call(this,e)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(e){return e?Math.floor(1e3*e)/1e3:e},i}():function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,r=e.getModuleCount(),i=Math.floor(t.width/r),o=Math.floor(t.height/r),a=['<table style="border:0;border-collapse:collapse;">'],s=0;s<r;s++){a.push("<tr>");for(var l=0;l<r;l++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+i+"px;height:"+o+"px;background-color:"+(e.isDark(s,l)?t.colorDark:t.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>"),n.innerHTML=a.join("");var u=n.childNodes[0],c=(t.width-u.offsetWidth)/2,d=(t.height-u.offsetHeight)/2;c>0&&d>0&&(u.style.margin=d+"px "+c+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();e=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:d.H},"string"==typeof t&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];"string"==typeof e&&(e=document.getElementById(e)),this._htOption.useSVG&&(x=m),this._android=s(),this._el=e,this._oQRCode=null,this._oDrawing=new x(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},e.prototype.makeCode=function(e){this._oQRCode=new n(l(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},e.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},e.prototype.clear=function(){this._oDrawing.clear()},e.CorrectLevel=d}();var n=null,r=null,i={originalHeatData:null,ajaxHeatData:null,heatDataElement:[],heatMapList:[],heatMode:1,getCurrentUrl:function(){var e=r.urlParse(location.href),n={};return n["sa-request-url"]=sessionStorage.getItem("sensors_heatmap_url"),n["sa-request-url"]=n["sa-request-url"]?encodeURIComponent(n["sa-request-url"]):"",n["sa-request-id"]=sessionStorage.getItem("sensors_heatmap_id"),n["sa-request-type"]=sessionStorage.getItem("sensors_heatmap_type")||"1",t.each(n,function(e,t){t||delete n[e]}),e.addQueryString(n),e.getUrl()},setHeatState:function(e,t,n,i){if(i)"1"===t?this.setClickMap(e,n):"2"===t?this.setScrollMap(e,n):"3"===t&&this.setNoticeMap(e,n);else{var o=r.urlParse(location.href);if(!e)return!1;t||(t=1);var a={"sa-request-id":e,"sa-request-type":t};o.addQueryString(a),location.href=o.getUrl()}},setDropDown:function(e,r,o){function a(){var e=null,r=!1;t(window).off("scroll.v2"),t(window).on("scroll.v2",function(){r||(t("#heatMapContainer").html(""),r=!0),clearTimeout(e),e=setTimeout(function(){i.refreshHeatData(i.heatMode),r=!1},n.para.heatmap.renderRefreshTime||1e3)}),t(window).off("resize.v2"),t(window).on("resize.v2",function(){r||(t("#heatMapContainer").html(""),r=!0),clearTimeout(e),e=setTimeout(function(){i.refreshHeatData(i.heatMode),r=!1},n.para.heatmap.renderRefreshTime||1e3)})}function s(e){function n(t,n){r=t,e.click(t,n),"type"==o?f.text(u[r]):"version"==o&&f.text(c[r])}var r=e.init(),o=e.name,s=e.id,l=t(s+">div"),d=t(s+">ul"),f=l.find("span:first");l.on("click",function(e){e.preventDefault(),e.stopPropagation(),d.is(":visible")?d.hide():(t(".sa-sdk-heatmap-toolbar-selectmap ul").css("display","none"),d.css("display","block"),t(document).on("click.sa-jssdk-dropdown",function(){d.hide(),t(document).off("click.sa-jssdk-dropdown")}))}),d.on("click","li",function(e){var i=t(this).attr("data-state");r!==i&&n(i)}),e.init&&n(r,!0),"version"===o&&t(document).on("keypress",function(e){114==e.keyCode&&i.refreshHeatData(i.heatMode),122==e.keyCode&&(t("#chooseVersion").find("span:first").text("\u65b9\u6848\u4e00"),i.refreshHeatData(1),r="1"),120==e.keyCode&&(t("#chooseVersion").find("span:first").text("\u65b9\u6848\u4e8c"),i.refreshHeatData(2),a(),r="2")})}r=r||"1";var l="1"===r?"1":"0",u={1:"\u70b9\u51fb\u56fe",2:"\u89e6\u8fbe\u7387\u56fe",3:"\u6ce8\u610f\u529b\u56fe"},c={1:"\u65b9\u6848\u4e00",2:"\u65b9\u6848\u4e8c"},d=this;s({init:function(){return r},id:"#chooseType",name:"type",click:function(n,r){d.setHeatState(e,n,o,r),t("#sa_sdk_heatmap_toolbar_filter").toggle("1"==n)}}),"1"===r&&s({init:function(){return t("#chooseVersion").css("display","block"),l},name:"version",id:"#chooseVersion",click:function(e,t){t||("1"===e?i.refreshHeatData(1):"2"===e&&(i.refreshHeatData(2),a()))}})},setScrollMap:function(e,i){var o=this;if("string"==typeof e&&n.para.web_url){var a=new r.urlParse(n.para.web_url);a._values.Path="/api/scroll_heat_map/report/"+e;var s=new r.urlParse(n.para.web_url);s._values.Path="/api/scroll_heat_map/report/"+e,s.addQueryString({pathUrl:encodeURIComponent(i)});var l=s.getUrl();r.ajax({url:i?l:a.getUrl(),type:"POST",cors:!0,header:{cors:"true"},success:function(e){function n(n){var r=parseInt((n.pageY+15)/10),i=0;i=r<=e.detail.length&&e.detail[r]?Math.floor(e.detail[r]/e.total*100*100)/100:0,u&&u.remove(),u=t(l.replace("{{top}}",n.pageY+15).replace("{{percent}}",i+"%")),t(document.body).append(u)}if("object"!=typeof e||!r.isArray(e.result)||0===e.result.length)return o.showErrorInfo(2,{error:"\u672a\u53d6\u5230\u6570\u636e"}),!1;if(e.detail=e.result||[],0===e.result.length)return!1;if(!e.total||0===e.total||"number"!=typeof e.total||e.total<2)return o.showErrorInfo(2,{error:"\u6709\u6548\u7684\u89e6\u53d1\u7528\u6237\u6570\u5c11\u4e8e2\u4eba"}),!1;e.origin_total=e.total,e.total=e.result[0],e.percent={};var i={setData:function(e,t,n){e=String(e);this.data[e]=this.data[e]||{},this.data[e][t]=n},data:{},getData:function(){var e={},t=[],n=null;for(var r in this.data){t=[];for(var i in this.data[r])t.push([i,this.data[r][i]]);this.data[r]=t,n=this.data[r].sort(function(e,t){return Math.abs(e[0]-Number(r))-Math.abs(t[0]-Number(r))})[0],e[n[0]]=n[1]}return e}};r.each(e.result,function(t,n){t/e.total==1?e.percent[100]=10*(n+1):t/e.total>.7&&t/e.total<.8?i.setData(75,parseInt(t/e.total*100),10*(n+1)):t/e.total>.45&&t/e.total<.55?i.setData(50,parseInt(t/e.total*100),10*(n+1)):t/e.total>.2&&t/e.total<.3&&i.setData(25,parseInt(t/e.total*100),10*(n+1))}),r.extend(e.percent,i.getData());var a='<div style="border-bottom: 1px dashed #4C4C4D;height:1px;width:100%;position: absolute;top:{{top}}px;"><span style="font-size:12px;position:absolute;padding:0 12px;top:-24px;height:26px;line-height: 26px;left:0;background:#000;color:#eee;border-radius: 2px;">{{percent}}</span></div>';for(var s in e.percent)t(document.body).append(t(a.replace("{{top}}",e.percent[s]-2).replace("{{percent}}",s+"%")));var l='<div style="z-index:99999;border-bottom: 1px solid #272727;height:1px;width:100%;position: absolute;top:{{top}}px;text-align:center;"><span style="font-size:12px;height:26px;line-height: 26px;background:#000;color:#eee;border-radius: 2px;left:50%;margin-left:-65px;position: absolute;top:-13px;padding: 0 5px;">{{percent}}\u7684\u7528\u6237\u6d4f\u89c8\u5230\u8fd9\u91cc</span></div>',u=null;t(document).on("mousemove",r.throttle(n,150))},error:function(e){r.isObject(e)&&e.error?o.showErrorInfo(2,{error:e.error}):o.showErrorInfo(2,{error:"\u670d\u52a1\u5f02\u5e38"}),sessionStorage.removeItem("sensors_heatmap_id")}})}else n.log("\u7f3a\u5c11web_url")},setNoticeMap:function(e,t){},setContainer:function(e){if(!e)return!1;if(e.classList.add("saContainer"),e&&e.children)for(var t=e.children,n=0;n<t.length;n++)this.setContainer(t[n])},setToolbar:function(n,r,o){function a(e,n,r){for(var i=function(t){var i=Number(n),o=Number(r);return"gt"===e?t>i:"lt"===e?t<i:t>Math.min(i,o)&&t<Math.max(i,o)},o=t.extend(!0,{},l.processOriginalHeatData2()),a=o.rows,u=[],c=0,d=a.length;c<d;c++)i(a[c].values[0][0])&&u.push(a[c]);o.rows=u,l.ajaxHeatData=o,s()}function s(){var e=""+i.heatMode;"1"===e?i.refreshHeatData(1):"2"===e&&i.refreshHeatData(2)}var l=this,u=document.createElement("div");u.setAttribute("style","height:50px !important;z-index:999999;background:#272727;width:100%;position:fixed;top:0;left:0; font-size:14px;color:#EFF2F7;margin:0;clear: both;"),u.innerHTML='<div style="height:39px;line-height:39px;padding:3px 15px 9px"><div class="sa-sdk-heatmap-toolbar-selectmap" id="chooseType" style="position:relative;width:70px;float:left" title="\u9009\u62e9\u67e5\u770b\u7c7b\u578b"><div style="cursor:pointer"><span>\u70b9\u51fb\u56fe</span> <svg style="position:absolute;top:9px" width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="icon" transform="translate(-199.000000, -18.000000)" fill="#99A9BF"><polygon id="Triangle-1-Copy-29" transform="translate(209.000000, 28.000000) scale(1, -1) translate(-209.000000, -28.000000) " points="209 26 213 30 205 30"></polygon></g></g></svg></div><ul style="display:none;list-style:none;margin:0;padding:0;width:100px"><li data-state="1">\u70b9\u51fb\u56fe</li><li data-state="2">\u89e6\u8fbe\u7387\u56fe</li></ul></div><div class="sa-sdk-heatmap-toolbar-selectmap" id="chooseVersion" style="display:none;position:relative;width:70px;float:left" title="\u5207\u6362\u70b9\u51fb\u56fe\u65b9\u6848"><div style="cursor:pointer"><span>\u65b9\u6848\u4e00</span> <svg style="position:absolute;top:9px" width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="icon" transform="translate(-199.000000, -18.000000)" fill="#99A9BF"><polygon id="Triangle-1-Copy-29" transform="translate(209.000000, 28.000000) scale(1, -1) translate(-209.000000, -28.000000) " points="209 26 213 30 205 30"></polygon></g></g></svg></div><ul style="display:none;list-style:none;margin:0;padding:0;width:100px"><li data-state="1">\u65b9\u6848\u4e00</li><li data-state="2">\u65b9\u6848\u4e8c</li></ul></div><div id="sa_sdk_heatmap_toolbar_close" style="float:right;position:relative;width:30px;height:100%;cursor:pointer" title="\u6536\u8d77\u6253\u5f00"><svg style="position:absolute;top:9px;right:0" width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-129.000000, -260.000000)" fill-rule="nonzero" fill="#99A9BF"><polygon points="132.110192 274.35347 130.5 272.842901 138.860144 265 147.23 272.842902 145.619784 274.35347 138.864999 268.016603"></polygon></g></g></svg></div><div style="float:right;padding:0 10px;width:1px;color:#99A9BF">|</div><div id="sa_sdk_heatmap_toolbar_refresh" style="float:right;position:relative;cursor:pointer;width:30px;height:100%" title="\u5237\u65b0\u6570\u636e"><svg style="position:absolute;top:9px;left:5px" width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g><g><path d="M18.1201298,5.45190941 L15.7071603,6.65839414 C14.3331082,3.91029003 11.3336531,2.11731966 7.94879319,2.56975143 C4.59744671,3.02218321 1.91636953,5.78704405 1.54772141,9.13839053 C1.04501944,13.6627083 4.58068998,17.5 9.00446733,17.5 C12.1882465,17.5 14.8693237,15.5227056 15.9585113,12.7243313 L14.098514,12.1043322 L14.0817572,12.1043322 C13.1098668,14.433518 10.5796002,15.9416239 7.7979826,15.3551383 C5.73690451,14.9194632 4.06123127,13.24379 3.62555623,11.1659552 C2.88826001,7.61352789 5.56933719,4.48001893 9.00446733,4.48001893 C11.1660858,4.48001893 13.0093264,5.72001713 13.9141899,7.52974422 L11.4006801,8.80325589 C11.3336531,8.83676935 11.3336531,8.95406648 11.4174368,8.97082321 L16.4612132,10.6297397 C16.5114834,10.6464964 16.5617536,10.612983 16.5785104,10.5627128 L18.2374269,5.51893634 C18.2876971,5.48542287 18.2039134,5.41839594 18.1201298,5.45190941 L18.1201298,5.45190941 Z" fill="#99A9BF"></path><rect x="0" y="0" width="20" height="20"></rect></g></g></g></svg></div><div style="float:right;padding:0 10px;width:1px;color:#99A9BF">|</div><div id="sa_sdk_heatmap_toolbar_share" style="float:right;position:relative;width:30px;height:100%;cursor:pointer" title="\u6536\u8d77\u6253\u5f00"><svg style="position:absolute;top:11px; left: 5px;" width="14px" height="15px" viewBox="0 0 14 15" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-42.000000, -62.000000)"><g transform="translate(39.000000, 60.000000)"><rect x="0" y="0" width="20" height="20"></rect><path d="M12.9177778,12.725 L7.76833333,9.72777778 C7.80444444,9.56166667 7.83333333,9.39555556 7.83333333,9.22222222 C7.83333333,9.04888889 7.80444444,8.88277778 7.76833333,8.71666667 L12.86,5.74833333 C13.25,6.10944444 13.7627778,6.33333333 14.3333333,6.33333333 C15.5322222,6.33333333 16.5,5.36555556 16.5,4.16666667 C16.5,2.96777778 15.5322222,2 14.3333333,2 C13.1344444,2 12.1666667,2.96777778 12.1666667,4.16666667 C12.1666667,4.34 12.1955556,4.50611111 12.2316667,4.67222222 L7.14,7.64055556 C6.75,7.27944444 6.23722222,7.05555556 5.66666667,7.05555556 C4.46777778,7.05555556 3.5,8.02333333 3.5,9.22222222 C3.5,10.4211111 4.46777778,11.3888889 5.66666667,11.3888889 C6.23722222,11.3888889 6.75,11.165 7.14,10.8038889 L12.2822222,13.8083333 C12.2461111,13.96 12.2244444,14.1188889 12.2244444,14.2777778 C12.2244444,15.4405556 13.1705556,16.3866667 14.3333333,16.3866667 C15.4961111,16.3866667 16.4422222,15.4405556 16.4422222,14.2777778 C16.4422222,13.115 15.4961111,12.1688889 14.3333333,12.1688889 C13.7844444,12.1688889 13.2933333,12.3855556 12.9177778,12.725 Z" id="Shape" fill="#99A9BF"></path></g></g></g></svg></div><div style="float:right;padding:0 10px;width:1px;color:#99A9BF">|</div><div id="sa_sdk_heatmap_toolbar_filter" style="float:right;position:relative;cursor:pointer;width:30px;height:100%;" title="\u7b5b\u9009"><svg style="position: absolute; top: 11px; left: 5px;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="17px" height="15px" viewBox="0 0 17 15" version="1.1"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="\u64cd\u4f5c\u680f" transform="translate(-1068.000000, -341.000000)" fill="#99A9BF" fill-rule="nonzero"><g id="screen" transform="translate(1068.000000, 341.000000)"><polygon id="\u8def\u5f84" points="9.13824444 13.2863778 9.13824444 6.65411111 12.5159778 2.08801111 4.52081111 2.08801111 7.8378 6.56684444 7.8378 12.6447111 6.23534444 11.8541778 6.23534444 7.20851111 0.8 0.4 16.2 0.4 10.7646556 7.2299 10.7646556 14.0888889 9.13824444 13.2863778"/></g></g></g></svg></div></div>',
document.body.appendChild(u),this.setContainer(u),this.setDropDown(n,r,o);var c=t('<div id="sa_sdk_heatmap_toolbar_corner" style="cursor:pointer;display:none;position: fixed;z-index:999999;top:0;right:10px;padding:3px 8px 0;background:#000;"></div>');c.html('<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-360.000000, -119.000000)" fill-rule="nonzero" fill="#C0CCDA"><polygon transform="translate(370.365000, 129.117652) scale(1, -1) translate(-370.365000, -129.117652) " points="364.4177 133.235303 363 131.905316 370.360724 125 377.73 131.905317 376.312279 133.235302 370.364999 127.655981"></polygon></g></g></svg>'),t(document.body).append(c),this.setContainer(c[0]),t(u).on("click","#sa_sdk_heatmap_toolbar_refresh",function(){"1"===r||null===r?(l.refreshHeatData(i.heatMode),l.showErrorInfo(5)):location.reload()});var d=this.getCurrentUrl(),f=function(){var n=t('<div style="z-index:999999;width:260px;height:260px;position:fixed;right:2px;top:55px;background:#FFF;box-shadow:0 2px 9px 3px rgba(168,173,178,.39);border-radius:3px;"><div style="height:44px;line-height:44px;border-bottom:1px solid #E9F0F7;text-align:center;color:#475669;font-size:14px;position:relative;">\u5206\u4eab\u94fe\u63a5<span style="position:absolute;top:4px;color:#99A9BF;cursor:pointer;right:4px"><svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g><g transform="translate(-1.000000, -1.000000)"><polygon fill="#99A9BF" transform="translate(11.106602, 11.106602) rotate(-45.000000) translate(-11.106602, -11.106602) " points="12.3566017 12.3566017 12.3566017 18.6066017 9.85660172 18.6066017 9.85660172 12.3566017 3.60660172 12.3566017 3.60660172 9.85660172 9.85660172 9.85660172 9.85660172 3.60660172 12.3566017 3.60660172 12.3566017 9.85660172 18.6066017 9.85660172 18.6066017 12.3566017"></polygon><rect x="1" y="1" width="20" height="20"></rect></g></g></g></svg></span></div><div style="width:128px;height:128px;margin-left:66px;margin-top:16px"></div><div style="margin:20px"><input style="font-size:14px;outline:none;color:#475669;width:92%;border:1px solid #D3DCE6;border-radius:3px;height:32px;line-height:32px;padding:0 10px;" type="text" value=""></div></div>');t(document.body).append(n);var r=n.find("div:eq(1)")[0];n.find("input").val(d),n.find("span").on("click",function(){n.css("display","none")});new e(r,{text:d,width:128,height:128,colorDark:"#000000",colorLight:"#ffffff",correctLevel:e.CorrectLevel.L});return n.css("top",t(u).height()+1),f=function(){return n},n};t(u).on("click","#sa_sdk_heatmap_toolbar_share",function(){var e=f();e.css("display","block"),l.setContainer(e[0]),setTimeout(function(){e.find("input").focus(),e.find("input").select()},1)});var p='<div id="sa_sdk_heatmap_filterFlyout" style="z-index: 999999; position: fixed; right: 2px; top: 51px; width:432.5px; height: 171px; background:rgba(255,255,255,1);box-shadow:0px 2px 9px 3px; rgba(10,10,10,0.39); border-radius:3px;"><form>';p+='<div style="height: 45px; text-align: center; line-height: 45px; font-size:14px; font-family:PingFangSC-Medium,PingFang SC; font-weight:500; color:rgba(32,45,61,1); border-bottom: 1px solid #E9F0F7;">',p+="\u7b5b\u9009\u5c55\u793a\u5143\u7d20",p+="</div>",p+='<div style="height: 78px; border-bottom: 1px solid #E9F0F7;">',p+='<p style="margin: 0; line-height: 78px; padding-left: 20px; font-size:14px; font-family:PingFangSC-Regular,PingFang SC; font-weight:400; color:rgba(71,86,105,1);">\u70b9\u51fb\u6570 <select name="filter_type"><option value="gt" selected>></option><option value="lt"><</option><option value="between">\u5728\u533a\u95f4</option></select><input type="text" name="filterValue"><span class="filter_between_span" style="display:none;"><input type="text" name="filterValueStart" style="margin-right: 5px;">\u81f3<input type="text" name="filterValueEnd" style="margin-left: 5px;"></span> \u7684\u5143\u7d20</p>',p+="</div>",p+='<div style="height: 47px; overflow: hidden; padding: 10px 15px; box-sizing: border-box;">',p+='<div class="sa-sdk-heatmap-filterflyout-submitbtn" style="display: inline-block; float: right; width:56px; height:28px; background:rgba(4,203,148,1); border-radius:3px; font-size:13px; font-family:PingFangSC-Medium,PingFang SC; font-weight:500; color:rgba(255,255,255,1); text-align: center; line-height: 28px; cursor: pointer;">\u786e\u5b9a</div><a class="sa-sdk-heatmap-filterflyout-cancelbtn" href="#" style="float: right; display: inline-block; line-height: 28px; margin-right: 6px; font-size:13px; font-family:PingFangSC-Regular,PingFang SC; font-weight:400; color:rgba(71,86,105,1); text-decoration: none;">\u53d6\u6d88</a>',p+="</div>",p+="</form></div>",t(u).on("click","#sa_sdk_heatmap_toolbar_filter",function(e){e.stopPropagation(),t("#sa_sdk_heatmap_filterFlyout").length?t("#sa_sdk_heatmap_filterFlyout").toggle():(t(document.body).append(p),l.setContainer(t("#sa_sdk_heatmap_filterFlyout")[0]))}),t(document.body).on("change",'#sa_sdk_heatmap_filterFlyout select[name="filter_type"]',function(){var e=t(this).val(),n=t('#sa_sdk_heatmap_filterFlyout input[name="filterValue"]'),r=t("#sa_sdk_heatmap_filterFlyout .filter_between_span");"between"===e?(n.hide(),r.show()):(n.show(),r.hide())}),t(document.body).on("click","#sa_sdk_heatmap_filterFlyout .sa-sdk-heatmap-filterflyout-cancelbtn",function(e){t("#sa_sdk_heatmap_filterFlyout").hide(),t("#sa_sdk_heatmap_filterFlyout form")[0].reset();var n=t('#sa_sdk_heatmap_filterFlyout input[name="filterValue"]'),r=t("#sa_sdk_heatmap_filterFlyout .filter_between_span");n.show(),r.hide();var i=t.extend(!0,{},l.originalHeatData);return l.ajaxHeatData=i,s(),!1}),t(document.body).on("click","#sa_sdk_heatmap_filterFlyout .sa-sdk-heatmap-filterflyout-submitbtn",function(){var e=t('#sa_sdk_heatmap_filterFlyout select[name="filter_type"]').val(),n=t('#sa_sdk_heatmap_filterFlyout input[name="filterValue"]'),r=t('#sa_sdk_heatmap_filterFlyout input[name="filterValueStart"]'),i=t('#sa_sdk_heatmap_filterFlyout input[name="filterValueEnd"]'),o=function(e){if(!t.isNumeric(e))return!1;var n=Number(e);return Math.floor(n)===n&&n>=0},s="\u8f93\u5165\u7684\u6570\u503c\u4e0d\u5408\u6cd5\uff0c\u8bf7\u8f93\u5165\u5927\u4e8e\u7b49\u4e8e 0 \u7684\u6574\u6570",u="\u533a\u95f4\u5de6\u4fa7\u7684\u6570\u5b57\u5927\u4e8e\u53f3\u4fa7\u7684\u6570\u5b57\uff0c\u65e0\u6cd5\u7b5b\u9009\uff0c\u8bf7\u4fee\u6539\u6570\u503c";if("between"===e){if(!o(r.val()))return void l.showErrorInfo(2,{error:s});if(!o(i.val()))return void l.showErrorInfo(2,{error:s});if(Number(r.val())>Number(i.val()))return void l.showErrorInfo(2,{error:u});a(e,r.val(),i.val())}else{if(!o(n.val()))return void l.showErrorInfo(2,{error:s});a(e,n.val())}}),t("#sa_sdk_heatmap_toolbar_filter").on("mouseenter",function(){t('#sa_sdk_heatmap_toolbar_filter g[fill^="#"]').attr("fill","#559FF0")}).on("mouseleave",function(){t('#sa_sdk_heatmap_toolbar_filter g[fill^="#"]').attr("fill","#99A9BF")}),t("#sa_sdk_heatmap_toolbar_share").on("mouseenter",function(){t("#sa_sdk_heatmap_toolbar_share path").attr("fill","#559FF0")}).on("mouseleave",function(){t("#sa_sdk_heatmap_toolbar_share path").attr("fill","#99A9BF")}),t("#sa_sdk_heatmap_toolbar_refresh").on("mouseenter",function(){t("#sa_sdk_heatmap_toolbar_refresh path").attr("fill","#559FF0")}).on("mouseleave",function(){t("#sa_sdk_heatmap_toolbar_refresh path").attr("fill","#99A9BF")}),t("#sa_sdk_heatmap_toolbar_close").on("mouseenter",function(){t("#sa_sdk_heatmap_toolbar_close g").eq(1).attr("fill","#559FF0")}).on("mouseleave",function(){t("#sa_sdk_heatmap_toolbar_close g").eq(1).attr("fill","#99A9BF")}),t("#sa_sdk_heatmap_toolbar_corner").on("mouseenter",function(){t("#sa_sdk_heatmap_toolbar_corner g").eq(1).attr("fill","#559FF0")}).on("mouseleave",function(){t("#sa_sdk_heatmap_toolbar_corner g").eq(1).attr("fill","#99A9BF")}),t(u).on("click","#sa_sdk_heatmap_toolbar_close",function(){t(u).hide(0),t("#sa_sdk_heatmap_toolbar_corner").show(0)}),t("#sa_sdk_heatmap_toolbar_corner").on("click",function(){t("#sa_sdk_heatmap_toolbar_corner").hide(0),t(u).show(0)})},showErrorInfo:function(e,t){var n=document.createElement("div");n.setAttribute("style","background:#e55b41;border:none;border-radius:4px;color:#fff;font-size:18px;left:50%;margin-left:-300px;padding:12px;position: fixed;top:60px;text-align: center;width:600px;z-index:999999;"),1===e?n.innerHTML="\u5f53\u524d\u9875\u9762\u5728\u6240\u9009\u65f6\u95f4\u6bb5\u5185\u6682\u65f6\u6ca1\u6709\u70b9\u51fb\u6570\u636e":2===e?t.error?n.innerHTML=t.error:n.innerHTML="\u8bf7\u6c42\u6570\u636e\u5f02\u5e38":3===e?n.innerHTML="\u5f53\u524d\u9875\u9762\u5728\u6240\u9009\u65f6\u95f4\u6bb5\u5185\u6682\u65f6\u6ca1\u6709\u70b9\u51fb\u6570\u636e":4===e?t.error?n.innerHTML=t.error:n.innerHTML="\u8bf7\u6c42\u6570\u636e\u5f02\u5e38":5===e&&(n.style.backgroundColor="#13CE66",n.innerHTML="\u5237\u65b0\u6570\u636e\u6210\u529f"),document.body.appendChild(n),setTimeout(function(){document.body.removeChild(n)},5e3)},requestType:1,getHeatType:function(){},setClickMap:function(e,i){var o=this;if("string"==typeof e&&n.para.web_url){var a=new r.urlParse(n.para.web_url);a._values.Path="/api/heat_map/report/"+e;var s=new r.urlParse(n.para.web_url);s._values.Path="/api/heat_map/report/path/"+e;var l=s.getUrl();l=l.indexOf("?")===-1?l+"?pathUrl="+encodeURIComponent(i):l+"&pathUrl="+encodeURIComponent(i),t("body").append('<div id="heatMapContainer"></div>'),i?(this.requestType=3,r.ajax({url:l,type:"POST",cors:!0,header:{cors:"true"},success:function(e){o.originalHeatData=o.processOriginalHeatData(e),o.bindEffect(),o.calculateHeatData(e)},error:function(e){o.showErrorInfo(2,e),sessionStorage.removeItem("sensors_heatmap_id")}})):(this.requestType=1,r.ajax({url:a.getUrl(),type:"POST",cors:!0,header:{cors:"true"},success:function(e){o.originalHeatData=o.processOriginalHeatData(e),o.bindEffect(),o.calculateHeatData(e)},error:function(e){o.showErrorInfo(4,e),sessionStorage.removeItem("sensors_heatmap_id")}}))}else n.log("\u7f3a\u5c11web_url")},processOriginalHeatData:function(e){var r=t.extend(!0,{},e);return t.each(r.rows,function(e,r){try{var i=t(r.by_values[0]);i.length&&(r.ele=i[0])}catch(o){n.log("\u5143\u7d20\u7c7b\u540d\u9519\u8bef\uff01",o)}}),r},processOriginalHeatData2:function(){var e=this.originalHeatData,n=t.extend(!0,{},e),r=[],i=[],o=e.rows.slice();return t.each(o,function(e,n){if(!n.ele)return!0;var o=t.inArray(n.ele,i);o===-1?(i.push(n.ele),r.push(t.extend(!0,{},n))):r[o].values[0][0]+=n.values[0][0]}),n.rows=r,n},calculateHeatData:function(e){e=t.extend(!0,{},e),this.ajaxHeatData=e;var i=this;if(!r.isObject(e)||!r.isArray(e.rows)||!r.isObject(e.rows[0]))return i.showErrorInfo(i.requestType),!1;if(!e.page_view||0===Number(e.page_view))return i.showErrorInfo(2,{error:"\u70b9\u51fb\u7387\u8ba1\u7b97\u5931\u8d25\uff0c\u6ca1\u6709\u5f00\u542fautoTrack!"}),!1;var o=parseInt(e.page_view,10),a=e.heat_map_id;e=e.rows;var s=0,l=[],u=[],c=[];if(r.each(e,function(e){var t=null;e.by_values[0]&&(t=r.querySelectorAll(e.by_values[0])[0])&&(l.push(e),c.push(t))}),l.length>1)for(var d=0;d<c.length;d++)for(var f=d+1;f<c.length;f++)if(c[d]===c[f]){l[f].values[0][0]+=l[d].values[0][0],l[d].values[0][0]=0,l[d].by_values="";break}r.each(l,function(e){var t=null;e.by_values[0]&&(t=r.querySelectorAll(e.by_values[0])[0])&&u.push(e)}),u=r.filter(u,function(e){return e}),0===u.length&&i.showErrorInfo(i.requestType),e=u,r.each(e,function(e,t){e.value_fix=e.values[0][0],s+=e.value_fix}),i.data_render=e,r.each(e,function(e,t){if(e.by_values[0]){e.data_page_percent=Number(e.value_fix/s*100).toFixed(2)+"%",e.data_click_percent=Number(e.value_fix/o*100).toFixed(2)+"%",e.data_click=Number(e.value_fix/o),e.data_page=Number(e.value_fix/s);var l=new r.urlParse(n.para.web_url);l._values.Path="/web-click/users",3===i.requestType?e.data_user_link=l.getUrl()+"#heat_map_id="+a+"&detail=true&element_selector="+encodeURIComponent(e.by_values[0])+"&page_url="+encodeURIComponent(location.href):e.data_user_link=l.getUrl()+"#heat_map_id="+a+"&detail=true&element_selector="+encodeURIComponent(e.by_values[0]),"null"===String(e.top_values[0])?e.data_top_value="\u6ca1\u6709\u503c":e.data_top_value=String(e.top_values[0]);var u=r.querySelectorAll(e.by_values[0]);"object"==typeof u&&u.length>0&&setTimeout(function(){i.renderHeatData(u,e,t)},100)}})},heatData:function(e){for(var t=[.005,.01,.025,.05,.1,.5],n=0;n<t.length;n++)if(e<t[n])return n;return 6},heatDataTitle:function(e){return"\u70b9\u51fb\u6b21\u6570 "+e.value_fix+"\r\n\u70b9\u51fb\u6982\u7387 "+e.data_click_percent+"\r\n\u70b9\u51fb\u5360\u6bd4 "+e.data_page_percent+"\r\n\u5386\u53f2\u6570\u636e "+String(e.top_values[0]).slice(0,30)},renderHeatData:function(e,n,i){var o=r.ry(e[0]),a=null,s=o.ele.tagName.toLowerCase();if(1==this.heatMode){if("input"===s||"textarea"===s||"img"===s){o.attr("data-heat-place",String(i));var l=t(e[0]).width();a=o.wrap("span"),"number"==typeof l&&(a.ele.style.width=l),a.ele.style.display="inline-block"}else a=o;this.heatDataElement.push(o),t(a.ele).data("clickdata",t.extend(!0,{},n)),a.attr("data-heat-place",String(i)).addClass("sa-click-area").attr("data-click",n.data_click_percent).addClass("sa-click-area"+this.heatData(n.data_click)),"inline"===a.getStyle("display")&&(e[0].style.display="inline-block",t(e[0]).addClass("sa-heatmap-inlineBlock"))}else if(2===this.heatMode){var u,c,d,f;if(t(e[0]).is(":visible")&&"0"!==String(t(e[0]).css("opacity"))&&("a"===s&&"inline"===t(e[0]).css("display")?e[0].children[0]?(u=t(e[0].children[0]).outerWidth(),c=t(e[0].children[0]).outerHeight(),d=t(e[0]).children()[0].getBoundingClientRect().left,f=t(e[0]).children()[0].getBoundingClientRect().top):(t(e[0]).css("display","inline-block"),u=t(e[0]).outerWidth(),c=t(e[0]).outerHeight(),d=t(e[0]).offset().left-t(window).scrollLeft(),f=t(e[0]).offset().top-t(window).scrollTop(),t(e[0]).css("display","inline")):(u=t(e[0]).outerWidth(),c=t(e[0]).outerHeight(),d=t(e[0]).offset().left-t(window).scrollLeft(),f=t(e[0]).offset().top-t(window).scrollTop()),o.addClass("sa-click-area-v2"),t(o.ele).data("clickdata",t.extend(!0,{},n)),c&&u)){var p={width:u,height:c,left:d,top:f,position:"fixed","z-index":999998,"pointer-events":"none"},h=t('<div class="sa-click-area"></div>');h.css(p),h.attr("data-click",n.data_click_percent),h.addClass("sa-click-area"+this.heatData(n.data_click)),h.attr("selector",e[0]),h.attr("data-heat-place",String(i)),t("#heatMapContainer").append(h),this.setContainer(t("#heatMapContainer")[0])}}},refreshHeatData:function(e){1==this.heatMode&&(r.each(this.heatDataElement,function(e){var n=e.ele.tagName.toLowerCase();if("input"===n||"textarea"===n||"img"===n){var r=e.parent();r&&"span"===r.ele.tagName.toLowerCase()&&r.ele.className.indexOf("sa-click-area")!==-1&&t(e.ele).unwrap()}else e.removeClass("sa-click-area")}),t(".sa-heatmap-inlineBlock").css("display","inline"),t(".sa-heatmap-inlineBlock").removeClass("sa-heatmap-inlineBlock"),this.heatDataElement=[]),2==this.heatMode&&(this.heatDataElement=[],t(".sa-click-area-v2").removeClass("sa-click-area-v2"),t("#heatMapContainer").html("")),this.heatMode=e,this.calculateHeatData(this.ajaxHeatData)},refreshScrollData:function(){},is_fix_state:null,showEffectBox:function(e,t,n){if("fixslidedown"===this.is_fix_state)t.style.position="fixed",t.style.left="auto",t.style.right=0,t.style.top=0,n&&(t.className="sa-heat-box-effect-2017314");else if("notfix"===this.is_fix_state){var i=o.getBrowserWidth(),a=e.target,s=r.ry(a).offset(),l=r.ry(a).getSize(),u=s.left+l.width+2,c=s.top+1;i<u+220&&(u=s.left-220,s.left<220&&(u=e.pageX)),t.style.position="absolute",t.style.left=u+"px",t.style.top=c+"px"}"block"!==t.style.display&&(t.style.display="block")},bindEffect:function(){function e(e){var i=e.currentTarget,a=(i.getAttribute("data-heat-place"),t(i).data("clickdata"));if(!a)return!1;var f,p=r.isObject(n.para.heatmap)?n.para.heatmap.setContent:null;p&&"function"==typeof p?(f=p(i),f=f&&"string"==typeof f?r.trim(f):""):f=r.trim(i.textContent),f&&(f=f.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)),a.data_current_content=f||"\u6ca1\u6709\u503c",l=s.replace(/\{\{[^\{\{]+\}\}/g,function(e){if(e=e.slice(2,-2),"string"==typeof e&&"object"==typeof a)return a[e]}),d.innerHTML=l,o.showEffectBox(e,c,u),o.setContainer(c)}function i(t){var n=t.target;setTimeout(function(){n===p&&e(t)},f)}var o=this,a=!1,o=this,s='<div style="padding: 8px;"><div style="color: #CACACA">\u5f53\u524d\u5185\u5bb9\uff1a</div><div style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{data_current_content}}</div></div><div style="background: #444; height:1px;"></div><div style="padding: 8px;"><table style="width:100%;color:#fff;font-size:13px;"><tr><td>\u70b9\u51fb\u6b21\u6570: </td><td style="text-align:right;">{{value_fix}}\u6b21</td></tr><tr><td style="cursor:pointer;" title="\u70b9\u51fb\u6b21\u6570/\u5f53\u524d\u9875\u9762\u7684\u6d4f\u89c8\u6b21\u6570"><span style="float:left;">\u70b9\u51fb\u7387</span><span style="float:left;margin-left:3px;"><svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-1803.000000, -158.000000)" fill="#979797"><g transform="translate(1737.000000, 84.000000)"><path d="M71,74 C68.24,74 66,76.24 66,79 C66,81.76 68.24,84 71,84 C73.76,84 76,81.76 76,79 C76,76.24 73.76,74 71,74 L71,74 Z M71.5,82.5 L70.5,82.5 L70.5,81.5 L71.5,81.5 L71.5,82.5 L71.5,82.5 Z M72.535,78.625 L72.085,79.085 C71.725,79.45 71.5,79.75 71.5,80.5 L70.5,80.5 L70.5,80.25 C70.5,79.7 70.725,79.2 71.085,78.835 L71.705,78.205 C71.89,78.025 72,77.775 72,77.5 C72,76.95 71.55,76.5 71,76.5 C70.45,76.5 70,76.95 70,77.5 L69,77.5 C69,76.395 69.895,75.5 71,75.5 C72.105,75.5 73,76.395 73,77.5 C73,77.94 72.82,78.34 72.535,78.625 L72.535,78.625 Z" id="prompt"></path></g></g></g></svg></span></td><td style="text-align:right;">{{data_click_percent}}</td></tr><tr><td style="cursor:pointer;" title="\u70b9\u51fb\u6b21\u6570/\u5f53\u524d\u9875\u9762\u7684\u70b9\u51fb\u603b\u6b21\u6570"><span style="float:left;">\u70b9\u51fb\u5360\u6bd4</span> <span style="float:left;margin-left:3px;"><svg width="12px" height="12px" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-1803.000000, -158.000000)" fill="#979797"><g transform="translate(1737.000000, 84.000000)"><path d="M71,74 C68.24,74 66,76.24 66,79 C66,81.76 68.24,84 71,84 C73.76,84 76,81.76 76,79 C76,76.24 73.76,74 71,74 L71,74 Z M71.5,82.5 L70.5,82.5 L70.5,81.5 L71.5,81.5 L71.5,82.5 L71.5,82.5 Z M72.535,78.625 L72.085,79.085 C71.725,79.45 71.5,79.75 71.5,80.5 L70.5,80.5 L70.5,80.25 C70.5,79.7 70.725,79.2 71.085,78.835 L71.705,78.205 C71.89,78.025 72,77.775 72,77.5 C72,76.95 71.55,76.5 71,76.5 C70.45,76.5 70,76.95 70,77.5 L69,77.5 C69,76.395 69.895,75.5 71,75.5 C72.105,75.5 73,76.395 73,77.5 C73,77.94 72.82,78.34 72.535,78.625 L72.535,78.625 Z" id="prompt"></path></g></g></g></svg></span></td><td style="text-align:right;">{{data_page_percent}}</td></tr></table></div><div style="background: #444; height:1px;"></div><div style="padding: 8px;"><div style="color: #CACACA;">\u5386\u53f2\u5185\u5bb9\uff1a</div><div style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{{data_top_value}}</div></div><div style="background: #444; height:1px;"></div><div style="padding: 6px 8px;"><a style="color:#2a90e2;text-decoration: none;" href="{{data_user_link}}" target="_blank">\u67e5\u770b\u7528\u6237\u5217\u8868</a ></div>',l="",u=!0,c=document.createElement("div");document.body.appendChild(c),c.setAttribute("style",'border-radius:3px;display:none;border:1px solid #000;position: fixed; right:0; top:0; background: #333;line-height:24px;font-size:13px;width:220px;color: #fff;font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;box-shadow: 0 2px 4px rgba(0,0,0,0.24);z-index:999999;'),c.innerHTML='<div id="sa_heat_float_right_box_content" style="clear:both;"></div>';var d=document.getElementById("sa_heat_float_right_box_content");r.addEvent(c,"mouseleave",function(){"notfix"===o.is_fix_state&&(a=!1,c.style.display="none")}),r.addEvent(c,"mouseenter",function(){"notfix"===o.is_fix_state&&(a=!0)}),r.addEvent(c,"animationend",function(){c.className=""}),this.is_fix_state="notfix";var f=600,p=null;/iPhone|Android/i.test(navigator.userAgent)?t(document).on("mouseover",".sa-click-area,.sa-click-area-v2",function(e){var n=e.target;p=n,t(n).on("mouseleave",function(){"notfix"===o.is_fix_state&&setTimeout(function(){a||(a=!1,c.style.display="none")},f)}),i(e)}):t(document).on("mouseover",".sa-click-area,.sa-click-area-v2",function(e){var t=e.target;p=t,i(e)})},setCssStyle:function(){var e='.saContainer{margin:0;padding:0;font-size:13px;}.sa-click-area video{visibility:hidden;}.sa-sdk-heatmap-toolbar-selectmap ul{position:absolute;top:40px;left:0;background:#fff;box-shadow:1px 1px 1px rgba(200,200,200,.6);border-radius:3px;}.sa-sdk-heatmap-toolbar-selectmap ul li{cursor:pointer;height:32px;color:#475669;line-height:32px;padding-left:8px}.sa-sdk-heatmap-toolbar-selectmap ul li:hover{background:#00cd90;color:#fff;}.sa-sdk-heatmap-toolbar-selectmap ul li a{text-decoration:none}.sa-heat-box-head-2017322{border-bottom:1px solid rgba(0, 0, 0, .06);cursor:move;height:30px;background:#e1e1e1;color:#999;clear:both}.sa-heat-box-effect-2017314{animation-duration:.5s;animation-fill-mode:both;animation-iteration-count:1;animation-name:sa-heat-box-effect-2017314}@keyframes "sa-heat-box-effect-2017314"{0%{opacity:.6;}to{opacity:1;}}.sa-click-area{position:relative}.sa-click-area:before{pointer-events:none;cursor:pointer;content:"";width:100%;position:absolute;left:0;top:0;bottom:0}.sa-click-area.sa-click-area0:before{background:hsla(60, 98%, 80%, .75);box-shadow:0 0 0 2px #fefe9b inset}img.sa-click-area.sa-click-area0{border:2px solid #fefe9b}.sa-click-area.sa-click-area0:hover:before,input.sa-click-area.sa-click-area0,textarea.sa-click-area.sa-click-area0{background:hsla(60, 98%, 80%, .85)}.sa-click-area.sa-click-area1:before{background:rgba(255, 236, 142, .75);box-shadow:0 0 0 2px #ffec8e inset}img.sa-click-area.sa-click-area1{border:2px solid #ffec8e}.sa-click-area.sa-click-area1:hover:before,input.sa-click-area.sa-click-area1,textarea.sa-click-area.sa-click-area1{background:rgba(255, 236, 142, .85)}.sa-click-area.sa-click-area2:before{background:rgba(255, 188, 113, .75);box-shadow:0 0 0 2px #ffbc71 inset}img.sa-click-area.sa-click-area2{border:2px solid #ffbc71}.sa-click-area.sa-click-area2:hover:before,input.sa-click-area.sa-click-area2,textarea.sa-click-area.sa-click-area2{background:rgba(255, 188, 113, .85)}.sa-click-area.sa-click-area3:before{background:rgba(255, 120, 82, .75);box-shadow:0 0 0 2px #ff7852 inset}img.sa-click-area.sa-click-area3{border:2px solid #ff7852}.sa-click-area.sa-click-area3:hover:before,input.sa-click-area.sa-click-area3,textarea.sa-click-area.sa-click-area3{background:rgba(255, 120, 82, .85)}.sa-click-area.sa-click-area4:before{background:rgba(255, 65, 90, .75);box-shadow:0 0 0 2px #ff415a inset}img.sa-click-area.sa-click-area4{border:2px solid #ff415a}.sa-click-area.sa-click-area4:hover:before,input.sa-click-area.sa-click-area4,textarea.sa-click-area.sa-click-area4{background:rgba(255, 65, 90, .85)}.sa-click-area.sa-click-area5:before{background:rgba(199, 0, 18, .75);box-shadow:0 0 0 2px #c70012 inset}img.sa-click-area.sa-click-area5{border:2px solid #c70012}.sa-click-area.sa-click-area5:hover:before,input.sa-click-area.sa-click-area5,textarea.sa-click-area.sa-click-area5{background:rgba(199, 0, 18, .85)}.sa-click-area.sa-click-area6:before{background:rgba(127, 0, 79, .75);box-shadow:0 0 0 3px #7f004f inset}img.sa-click-area.sa-click-area6{border:2px solid #7f004f}.sa-click-area.sa-click-area6:hover:before,input.sa-click-area.sa-click-area6,textarea.sa-click-area.sa-click-area6{background:rgba(127, 0, 79, .85)}.sa-click-area .sa-click-area:before{background:0 0 !important}.sa-click-area:after{pointer-events:none;height:14px;line-height:14px;margin:-7px 0 0 -28px;width:56px;color:#fff;content:attr(data-click);font-size:14px;font-weight:700;left:50%;line-height:1em;position:absolute;text-align:center;text-indent:0;text-shadow:1px 1px 2px #000;top:50%;z-index:10}';e+="#sa_heat_float_right_box_content table td { color: #fff !important; font-size: 13px !important;}",e+="#sa_sdk_heatmap_filterFlyout select {padding-left: 10px;width: 82px; height: 32px;background:rgba(255,255,255,1); border-radius:3px; border:1px solid rgba(211,220,230,1); margin-right: 10px; margin-left: 10px; outline: none;}",e+="#sa_sdk_heatmap_filterFlyout select:hover {border:1px solid rgba(4,203,148,1);}",e+="#sa_sdk_heatmap_filterFlyout select:active, #sa_sdk_heatmap_filterFlyout select:focus {border:2px solid rgba(4,203,148,0.2);}",e+="#sa_sdk_heatmap_filterFlyout input {outline:none;box-sizing: border-box; width:77px; height:32px; background:rgba(255,255,255,1); border-radius:3px; border:1px solid rgba(211,220,230,1); padding-left:10px; padding-right:10px;}",e+="#sa_sdk_heatmap_filterFlyout input:hover {border:1px solid rgba(4,203,148,1);}",e+="#sa_sdk_heatmap_filterFlyout input:active #sa_sdk_heatmap_filterFlyout input:focus {border:2px solid rgba(4,203,148,0.2);}";var t=document.createElement("style");t.type="text/css";try{t.appendChild(document.createTextNode(e))}catch(n){t.styleSheet.cssText=e}document.getElementsByTagName("head")[0].appendChild(t)}},o={getScrollHeight:function(){var e=parseInt(document.body.scrollHeight,10);return isNaN(e)?0:e},getBrowserWidth:function(){var e=window.innerWidth||document.body.clientWidth;return isNaN(e)?0:parseInt(e,10)},getBrowserHeight:function(){var e=window.innerHeight||document.body.clientHeight;return isNaN(e)?0:parseInt(e,10)},sendIframeData:function(){var e=this;r.bindReady(function(){window&&window.parent&&window.parent.window&&window!==window.parent.window&&(window.parent.window.postMessage({method:"setHeight",params:{height:e.getScrollHeight()}},n.para.web_url),window.parent.window.postMessage({method:"setUrl",params:{request_type:sessionStorage.getItem("sensors_heatmap_type")||"1",url:location.href}},n.para.web_url))})},prepare:function(e,t,o){function a(){setTimeout(function(){i.setToolbar(e,t,o),s.sendIframeData()},r.isObject(n.para.heatmap)&&n.para.heatmap.loadTimeout?n.para.heatmap.loadTimeout:2500)}var s=this;if(!document.querySelectorAll)return alert("\u8bf7\u66f4\u65b0\u5230\u6700\u65b0\u7248\u6d4f\u89c8\u5668,\u5efa\u8bae\u7528chrome\u6216\u8005firefox"),!1;n.errorMsg&&i.showErrorInfo(2,{error:n.errorMsg});var l=n.para.web_url||null;return r.sessionStorage.isSupport()&&sessionStorage.getItem&&sessionStorage.getItem("sensors_heatmap_url")&&(l=sessionStorage.getItem("sensors_heatmap_url")||null),i.setCssStyle(),l?(n.para.web_url=l,sessionStorage.setItem("sensors_heatmap_url",l),a(),void 0):(i.showErrorInfo(2,{error:"\u83b7\u53d6web_url\u8d85\u65f6"}),!1)}};window.sa_jssdk_heatmap_render=function(e,t,i,a){n=e,n.heatmap_version="1.15.12",r=n._,r.bindReady=function(e,t){t=t||window;var r=!1,i=!0,o=t.document,a=o.documentElement,s=o.addEventListener,l=s?"addEventListener":"attachEvent",u=s?"removeEventListener":"detachEvent",c=s?"":"on",d=function(n){"readystatechange"==n.type&&"complete"!=o.readyState||(("load"==n.type?t:o)[u](c+n.type,d,!1),!r&&(r=!0)&&e.call(t,n.type||n))},f=function(){try{a.doScroll("left")}catch(e){return void setTimeout(f,50)}d("poll")};if("complete"==o.readyState)e.call(t,"lazy");else{if(!s&&a.doScroll){try{i=!t.frameElement}catch(p){n.log(p)}i&&f()}o[l](c+"DOMContentLoaded",d,!1),o[l](c+"readystatechange",d,!1),t[l](c+"load",d,!1)}},r.querySelectorAll=function(e){if("string"!=typeof e)return n.log("\u9009\u62e9\u5668\u9519\u8bef",e),[];var t=e.split(" ");1===t.length?/^#\d+/.test(t[0])&&(e="#"+r.strToUnicode(t[0].slice(1))):/^#\d+/.test(t[0])&&(t[0]="#"+r.strToUnicode(t[0].slice(1)),e=t.join(" "));try{return document.querySelectorAll(e)}catch(i){return n.log("\u9519\u8bef",e),[]}},o.prepare(t,i,a)}}();