!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function l(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}return function e(f){function u(e,n,o){var t;if("undefined"!=typeof document){if(1<arguments.length){if("number"==typeof(o=l({path:"/"},u.defaults,o)).expires){var r=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*o.expires),o.expires=r}try{t=JSON.stringify(n),/^[\{\[]/.test(t)&&(n=t)}catch(e){}return n=f.write?f.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",n,o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}e||(t={});for(var i=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,a=0;a<i.length;a++){var p=i[a].split("="),s=p.slice(1).join("=");'"'===s.charAt(0)&&(s=s.slice(1,-1));try{var d=p[0].replace(c,decodeURIComponent);if(s=f.read?f.read(s,d):f(s,d)||s.replace(c,decodeURIComponent),this.json)try{s=JSON.parse(s)}catch(e){}if(e===d){t=s;break}e||(t[d]=s)}catch(e){}}return t}}return(u.set=u).get=function(e){return u.call(u,e)},u.getJSON=function(){return u.apply({json:!0},[].slice.call(arguments))},u.defaults={},u.remove=function(e,n){u(e,"",l(n,{expires:-1}))},u.withConverter=e,u}(function(){})});