function(){return function(){var c=this;var d=window;function h(a,m){this.code=a;this.state=k[a]||l;this.message=m||"";var b=this.state.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")}),e=b.length-5;if(0>e||b.indexOf("Error",e)!=e)b+="Error";this.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||""}(function(){var a=Error;function m(){}m.prototype=a.prototype;h.b=a.prototype;h.prototype=new m})();
var l="unknown error",k={15:"element not selectable",11:"element not visible",31:"ime engine activation failed",30:"ime not available",24:"invalid cookie domain",29:"invalid element coordinates",12:"invalid element state",32:"invalid selector",51:"invalid selector",52:"invalid selector",17:"javascript error",405:"unsupported operation",34:"move target out of bounds",27:"no such alert",7:"no such element",8:"no such frame",23:"no such window",28:"script timeout",33:"session not created",10:"stale element reference",
0:"success",21:"timeout",25:"unable to set cookie",26:"unexpected alert open"};k[13]=l;k[9]="unknown command";h.prototype.toString=function(){return this.name+": "+this.message};function n(a,m){for(var b=0,e=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),z=String(m).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),H=Math.max(e.length,z.length),A=0;0==b&&A<H;A++){var ha=e[A]||"",ia=z[A]||"",ja=RegExp("(\\d*)(\\D*)","g"),ka=RegExp("(\\d*)(\\D*)","g");do{var f=ja.exec(ha)||["","",""],g=ka.exec(ia)||["","",""];if(0==f[0].length&&0==g[0].length)break;b=((0==f[1].length?0:parseInt(f[1],10))<(0==g[1].length?0:parseInt(g[1],10))?-1:(0==f[1].length?0:parseInt(f[1],10))>
(0==g[1].length?0:parseInt(g[1],10))?1:0)||((0==f[2].length)<(0==g[2].length)?-1:(0==f[2].length)>(0==g[2].length)?1:0)||(f[2]<g[2]?-1:f[2]>g[2]?1:0)}while(0==b)}return b};var p,q,r,s;function t(){return c.navigator?c.navigator.userAgent:null}s=r=q=p=!1;var u;if(u=t()){var aa=c.navigator;p=0==u.indexOf("Opera");q=!p&&-1!=u.indexOf("MSIE");r=!p&&-1!=u.indexOf("WebKit");s=!p&&!r&&"Gecko"==aa.product}var v=p,w=q,x=s,ba=r,y=c.navigator,ca=-1!=(y&&y.platform||"").indexOf("Win");function B(){var a=c.document;return a?a.documentMode:void 0}var C;
a:{var D="",E;if(v&&c.opera)var F=c.opera.version,D="function"==typeof F?F():F;else if(x?E=/rv\:([^\);]+)(\)|;)/:w?E=/MSIE\s+([^\);]+)(\)|;)/:ba&&(E=/WebKit\/(\S+)/),E)var da=E.exec(t()),D=da?da[1]:"";if(w){var ea=B();if(ea>parseFloat(D)){C=String(ea);break a}}C=D}var G={},fa=c.document,ga=fa&&w?B()||("CSS1Compat"==fa.compatMode?parseInt(C,10):5):void 0;var I,J,K,L,M,N,O;O=N=M=L=K=J=I=!1;var P=t();P&&(-1!=P.indexOf("Firefox")?I=!0:-1!=P.indexOf("Camino")?J=!0:-1!=P.indexOf("iPhone")||-1!=P.indexOf("iPod")?K=!0:-1!=P.indexOf("iPad")?L=!0:-1!=P.indexOf("Android")?M=!0:-1!=P.indexOf("Chrome")?N=!0:-1!=P.indexOf("Safari")&&(O=!0));var la=I,ma=J,na=K,oa=L,Q=M,pa=N,R=O;function S(a){return(a=a.exec(t()))?a[1]:""}var qa=function(){if(la)return S(/Firefox\/([0-9.]+)/);if(w||v)return C;if(pa)return S(/Chrome\/([0-9.]+)/);if(R)return S(/Version\/([0-9.]+)/);if(na||oa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(t());if(a)return a[1]+"."+a[2]}else{if(Q)return(a=S(/Android\s+([0-9.]+)/))?a:S(/Version\/([0-9.]+)/);if(ma)return S(/Camino\/([0-9.]+)/)}return""}();var T,ra;function U(a){return V?ra(a):Q?0<=n(sa,a):0<=n(qa,a)}var V=function(){if(!x)return!1;var a=c.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(m){return!1}var b=a.classes,a=a.interfaces,e=b["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),b=b["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),z=b.platformVersion,H=b.version;T=function(a){return 0<=e.a(z,""+a)};ra=function(a){return 0<=e.a(H,""+a)};return!0}(),W;
if(Q){var ta=/Android\s+([0-9\.]+)/.exec(t());W=ta?ta[1]:"0"}else W="0";var sa=W;Q&&U(2.3);Q&&U(4);R&&U(6);var X=w&&(V?T(8):w?0<=n(ga,8):G[8]||(G[8]=0<=n(C,8)))&&!(V?T(9):w?0<=n(ga,9):G[9]||(G[9]=0<=n(C,9))),ua=R&&U(4)&&!U(5),va=Q&&U(2.2)&&!U(2.3),wa=ca&&R&&U(4)&&!U(6);
function xa(){switch("browser_connection"){case "appcache":return X?!1:null!=d.applicationCache;case "browser_connection":return null!=d.navigator&&null!=d.navigator.onLine;case "database":return ua||va?!1:null!=d.openDatabase;case "location":return wa?!1:null!=d.navigator&&null!=d.navigator.geolocation;case "local_storage":return X?!1:null!=d.localStorage;case "session_storage":return X?!1:null!=d.sessionStorage&&null!=d.sessionStorage.clear;default:throw new h(13,"Unsupported API identifier provided as parameter");
}};function ya(){if(xa())return d.navigator.onLine;throw new h(13,"Undefined browser connection state");}var Y=["_"],Z=c;Y[0]in Z||!Z.execScript||Z.execScript("var "+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===ya?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=ya;; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
