!function(e){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(function(e){function n(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return i.json?JSON.parse(e):e}catch(e){}}var o=/\+/g,i=e.cookie=function(t,r,c){if(void 0!==r){if("number"==typeof(c=e.extend({},i.defaults,c)).expires){var a=c.expires,u=c.expires=new Date;u.setDate(u.getDate()+a)}return r=i.json?JSON.stringify(r):String(r),document.cookie=[encodeURIComponent(t),"=",i.raw?r:encodeURIComponent(r),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}for(var d=i.raw?function(e){return e}:function(e){return decodeURIComponent(e.replace(o," "))},f=document.cookie.split("; "),p=t?void 0:{},s=0,m=f.length;s<m;s++){var x=f[s].split("="),l=d(x.shift()),g=d(x.join("="));if(t&&t===l){p=n(g);break}t||(p[l]=n(g))}return p};i.defaults={},e.removeCookie=function(n,o){return void 0!==e.cookie(n)&&(e.cookie(n,"",e.extend(o,{expires:-1})),!0)}});