/*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?n(require("jquery")):n(jQuery)}(function(h){var e=/\+/g;function M(n){return I.raw?n:encodeURIComponent(n)}function p(n,t){n=I.raw?n:function(n){0===n.indexOf('"')&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(e," ")),I.json?JSON.parse(n):n}catch(n){}}(n);return h.isFunction(t)?t(n):n}var I=h.cookie=function(n,t,e){var u,a;if(void 0!==t&&!h.isFunction(t))return"number"==typeof(e=h.extend({},I.defaults,e)).expires&&(a=e.expires,(u=e.expires=new Date).setTime(+u+864e5*a)),document.cookie=[M(n),"=",(a=t,M(I.json?JSON.stringify(a):String(a))),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("");for(var r=n?void 0:{},o=document.cookie?document.cookie.split("; "):[],i=0,c=o.length;i