function CookieJar(a){this.initialize(a)}
CookieJar.prototype={options:{},initialize:function(a){this.options={expires:3600,path:"",domain:"",secure:""};for(var b in a||{})this.options[b]=a[b];if(this.options.expires!="")a=new Date,a.setTime(a.getTime()+this.options.expires*1E3),this.options.expires="; expires="+a.toGMTString();if(this.options.path!="")this.options.path="; path="+escape(this.options.path);if(this.options.domain!="")this.options.domain="; domain="+escape(this.options.domain);this.options.secure=this.options.secure=="secure"?
"; secure":""},put:function(a,b){var c=this.options;switch(typeof b){case "undefined":case "function":case "unknown":return!1;case "boolean":case "string":case "number":b=String(b.toString())}var d=a+"="+escape(b);try{document.cookie=d+c.expires+c.path+c.domain+c.secure}catch(e){return!1}return!0},remove:function(a){var b=this.options;try{var c=new Date;c.setTime(c.getTime()-36E5);var d="; expires="+c.toGMTString();document.cookie=a+"="+d+b.path+b.domain+b.secure}catch(e){return!1}return!0},get:function(a){return(a=
document.cookie.match(a+"=(.*?)(;|$)"))?unescape(a[1]):null},empty:function(){for(var a=this.getKeys(),b=a.length,c=0;c<b;c++)this.remove(a[c])},getPack:function(){for(var a={},b=this.getKeys(),c=b.length,d=0;d<c;d++)a[b[d]]=this.get(b[d]);return a},keyRe:/[^=; ]+(?=\=)/g,getKeys:function(){for(var a=[],b=document.cookie;(match=this.keyRe.exec(b))!=void 0;)a.push(match[0].replace(/^\s*|\s*$/g,""));return a}};

