window.light||function(a){var e=a.document,i=a.location,h=Array.prototype,d,c;try{c=i.href}catch(b){c=e.createElement("a"),c.href="",c=c.href}d=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?([^?#]*))?/.exec(c.toLowerCase())||[];var j={version:"0.9.0",timestamp:(new Date).getTime(),debug:!1,baseDomain:function(){var f=d[2].split(".");return f.slice(-Math.max(f.length-1,2)).join(".")}(),urlParts:d,toString:function(){var f="Light JavaScript Library version "+j.version;j.debug&&(f+=", debug enabled"); return f+"."},toArray:function(f){var a=[];if(!f.length)return a;for(var b=0,g=f.length;ba.length)return null;var b=2,g=a[1];2===a.length&&(b=1,g=j);for(var e=b,c=a.length;earguments.length)return f;var g=a&&a.init||function(){f.constructor.apply(this,arguments)};j.extend(!0,g.prototype,f.prototype,a);g.constructor=g;b&&j.extend(!0,g,b);g.__super=f;return g},module:function(a,b){var e=j.register(a,null,b);j.isFunction(b)&&(e.constructor=b);return e},each:function(a,b){if(!a)return a;var e=a.length;if(void 0!==e&&"reverse"in a)for(var g= 0;g/g,">");a=a.replace(/");a=a.replace(/</g,"<");a=a.replace(/&/g,"&");a=a.replace(/"/g,'"');return a=a.replace(/'/g,"'")},toJSON:function(a){if("string"!==typeof a||!a)return null; a=light.trim(a);return window.JSON&&JSON.parse?JSON.parse(a):(new Function("return "+a))()}});(function(){var a=function(){this.stack=[];var a=this,i=[].slice.call(arguments,0);i&&light.each(i,function(h){a.add(h)})};a.prototype={add:function(a){this.stack.push(a)},clear:function(){this.stack=[]},invoke:function(){var a=this,i=[].slice.call(arguments,0);fn=this.stack.shift();this.next||(this.next=function(){a.stack.length&&a.invoke.apply(a,i)});fn.apply(null,[this.next].concat(i))}};light.queue=a})(); (function(a,e){var i=a.document,h=a.navigator,d=h.userAgent?h.userAgent.toLowerCase():"",c=a.external,h={device:{pc:"windows",ipad:"ipad",ipod:"ipod",iphone:"iphone",mac:"macintosh",android:"android",nokia:/nokia([^\/ ]+)/},os:{windows:/windows nt (\d)\.(\d)/,macos:/mac os x (\d+)[\._](\d+)(?:[\._](\d+))?/,ios:/cpu(?: iphone)? os (\d)_(\d)(?:_(\d))?/,android:/android (\d)\.(\d)/,chromeos:/cros i686 (\d+)\.(\d+)(?:\.(\d+))?/,linux:"linux",windowsce:0'),d=!0);return e.get("__ud")},b={cookie:null,defaultStorage:function(){var b=null;try{b=a.localStorage}catch(c){}return b}(),set:function(a,f){if(b.cookie&&h.cookieEnabled){var d=a+"="+encodeURIComponent(f);if(b.cookie.days)var l=new Date((new Date).getTime()+864E5*b.cookie.days),d=d+("; expires="+l.toGMTString());b.cookie.domain&&(d+="; domain="+ b.cookie.domain);d+="; path="+(b.cookie.path||e.urlParts[4]||"/");i.cookie=d}if(j)b.defaultStorage.setItem(a,f);else if(d=c()){d.setAttribute(a,f);try{d.save("__ud")}catch(g){}}},get:function(a){if(b.cookie){if(h.cookieEnabled){var f=i.cookie,d=f.indexOf(a+"=");return-1!=d?(d+=a.length+1,a=f.indexOf(";",d),-1==a&&(a=f.length),e.decode(f.substring(d,a)||"")):null}return""}if(j)f=b.defaultStorage.getItem(a);else if(d=c()){try{d.load("__ud")}catch(l){}f=d.getAttribute(a)}return f||""}},j=!!b.defaultStorage; e.module("client/storage",b)})(window,light);