!function(a,b,c){"use strict";var d=function(a,b){if("object"!=typeof a.document)throw new Error("acm.js requires a `window` with a `document` object");if(b.cookieEnabled!==!0)throw new Error("acm.js requires a cookie enabled");var d=function(){function a(){var a=document.cookie.split(";"),b=[];return a.forEach(function(a,c,d){b.push({name:a.split("=")[0].length?a.split("=")[0]:"",value:a.split("=")[1].length?decodeURIComponent(a.split("=")[1]):""})}),b}function b(a){var b=a.hasOwnProperty("expires")?a.expires:h;if(b===-1)a.expires="Thu, 01 Jan 1970 00:00:01 GMT";else{if("string"==typeof b&&Number(b)&&(b=Number(b)),"number"==typeof b){var c=new Date;c.setTime(c.getTime()+b),a.expires=c}"object"==typeof b&&h.toUTCString&&(a.expires=h.toUTCString())}return a}function e(a){var b=a.hasOwnProperty("domain")?a.domain:j;return b&&(a.domain=b),a}function f(a){var b=a.hasOwnProperty("path")?a.path:i;return b&&(a.path=b),a}function g(a){return"undefined"!==k&&k&&(a=encodeURIComponent(a)),a}var h=0,i="/",j="",k=!0,l=!1;this.initialize=function(a){var b=new d;if(a.hasOwnProperty("expires")&&(h=a.expires),a.hasOwnProperty("path")&&(i=a.path),a.hasOwnProperty("domain")&&(j=a.domain),a.hasOwnProperty("encode")&&(k=a.encode),a.hasOwnProperty("debug")&&(l=a.debug),l&&(console.group("debug"),console.time("Initialization time took")),"object"==typeof a)return l&&(console.timeEnd("Initialization time took"),console.groupEnd()),b},this.get=function(b){if("undefined"!=typeof b){var d=new RegExp("(?:^|; )"+b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"),e=document.cookie.match(d);return e?decodeURIComponent(e[1]):c}return a()},this.set=function(a,c,d){if("undefined"!=typeof a&&"undefined"!=typeof c){d=d||{},d=b(d),d=e(d),d=f(d);var h=a+"="+g(c);for(var i in d){h+="; "+i;var j=d[i];j!==!0&&(h+="="+j)}try{return document.cookie=h,l&&console.log('%c Cookie with name "'+a+'" and value "'+c+'" was created',"background: #000; color: #ffff00"),h}catch(k){console.warn(k)}}},this.unset=function(a){var b=this,c={expires:-1};return b.set(a,"",c),!b.get(a)&&(l&&console.log('%c Cookie with name "'+a+'" successful deleted.',"background: #000; color: #ffff00"),!0)}};return new d},e="object"==typeof a.document&&"object"==typeof a.navigator?d(a,b):d;"function"==typeof define&&define.amd?define(function(){return e}):"object"==typeof exports?("object"==typeof module&&"object"==typeof module.exports&&(exports=module.exports=e),exports.acm=e):a.acm=e}("undefined"==typeof window?this:window,navigator);