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,EAAOY,MAAMH,EAAiB,GAE5D,CAGA,OAAO,IACT,EAEA3B,EAAQ+B,MAAQ,SAAS5B,EAAME,GAC7BL,EAAQE,IAAIC,EAAM,GAAI,CACpBI,SAAW,EACXC,OAAUH,GAAWA,EAAQG,OAC7BC,KAAUJ,GAAWA,EAAQI,KAC7BE,OAAU,EACVC,SAAU,GAEd,EAEAZ,EAAQgC,IAAM,WAKZ,IAJA,IAAIA,EAAM,CAAC,EACPT,EAAUN,SAASC,OAAOM,MAAM,KAG9BD,EAAQE,QAAQ,CACpB,IAAIP,EAASK,EAAQG,MAGjBC,EAAiBT,EAAOU,QAAQ,KAGpCD,EAAiBA,EAAiB,EAAIT,EAAOO,OAASE,EAItDK,EADkBH,mBAAmBX,EAAOY,MAAM,EAAGH,GAAgBR,QAAQ,OAAQ,MAClEU,mBAAmBX,EAAOY,MAAMH,EAAiB,GACtE,CAEA,OAAOK,CACT,C","sources":["webpack://apps/./node_modules/browser-cookies/src/browser-cookies.js"],"sourcesContent":["exports.defaults = {};\r\n\r\nexports.set = function(name, value, options) {\r\n // Retrieve options and defaults\r\n var opts = options || {};\r\n var defaults = exports.defaults;\r\n\r\n // Apply default value for unspecified options\r\n var expires = opts.expires || defaults.expires;\r\n var domain = opts.domain || defaults.domain;\r\n var path = opts.path !== undefined ? opts.path : (defaults.path !== undefined ? defaults.path : '/');\r\n var secure = opts.secure !== undefined ? opts.secure : defaults.secure;\r\n var httponly = opts.httponly !== undefined ? opts.httponly : defaults.httponly;\r\n var samesite = opts.samesite !== undefined ? opts.samesite : defaults.samesite;\r\n\r\n // Determine cookie expiration date\r\n // If succesful the result will be a valid Date, otherwise it will be an invalid Date or false(ish)\r\n var expDate = expires ? new Date(\r\n // in case expires is an integer, it should specify the number of days till the cookie expires\r\n typeof expires === 'number' ? new Date().getTime() + (expires * 864e5) :\r\n // else expires should be either a Date object or in a format recognized by Date.parse()\r\n expires\r\n ) : 0;\r\n\r\n // Set cookie\r\n document.cookie = name.replace(/[^+#$&^`|]/g, encodeURIComponent) // Encode cookie name\r\n .replace('(', '%28')\r\n .replace(')', '%29') +\r\n '=' + value.replace(/[^+#$&/:<-\\[\\]-}]/g, encodeURIComponent) + // Encode cookie value (RFC6265)\r\n (expDate && expDate.getTime() >= 0 ? ';expires=' + expDate.toUTCString() : '') + // Add expiration date\r\n (domain ? ';domain=' + domain : '') + // Add domain\r\n (path ? ';path=' + path : '') + // Add path\r\n (secure ? ';secure' : '') + // Add secure option\r\n (httponly ? ';httponly' : '') + // Add httponly option\r\n (samesite ? ';samesite=' + samesite : ''); // Add samesite option\r\n};\r\n\r\nexports.get = function(name) {\r\n var cookies = document.cookie.split(';');\r\n \r\n // Iterate all cookies\r\n while(cookies.length) {\r\n var cookie = cookies.pop();\r\n\r\n // Determine separator index (\"name=value\")\r\n var separatorIndex = cookie.indexOf('=');\r\n\r\n // IE<11 emits the equal sign when the cookie value is empty\r\n separatorIndex = separatorIndex < 0 ? cookie.length : separatorIndex;\r\n\r\n var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\\s+/, ''));\r\n\r\n // Return cookie value if the name matches\r\n if (cookie_name === name) {\r\n return decodeURIComponent(cookie.slice(separatorIndex + 1));\r\n }\r\n }\r\n\r\n // Return `null` as the cookie was not found\r\n return null;\r\n};\r\n\r\nexports.erase = function(name, options) {\r\n exports.set(name, '', {\r\n expires: -1,\r\n domain: options && options.domain,\r\n path: options && options.path,\r\n secure: 0,\r\n httponly: 0}\r\n );\r\n};\r\n\r\nexports.all = function() {\r\n var all = {};\r\n var cookies = document.cookie.split(';');\r\n\r\n // Iterate all cookies\r\n while(cookies.length) {\r\n var cookie = cookies.pop();\r\n\r\n // Determine separator index (\"name=value\")\r\n var separatorIndex = cookie.indexOf('=');\r\n\r\n // IE<11 emits the equal sign when the cookie value is empty\r\n separatorIndex = separatorIndex < 0 ? cookie.length : separatorIndex;\r\n\r\n // add the cookie name and value to the `all` object\r\n var cookie_name = decodeURIComponent(cookie.slice(0, separatorIndex).replace(/^\\s+/, ''));\r\n all[cookie_name] = decodeURIComponent(cookie.slice(separatorIndex + 1));\r\n }\r\n\r\n return all;\r\n};\r\n"],"names":["exports","defaults","set","name","value","options","opts","expires","domain","path","undefined","secure","httponly","samesite","expDate","Date","getTime","document","cookie","replace","encodeURIComponent","toUTCString","get","cookies","split","length","pop","separatorIndex","indexOf","decodeURIComponent","slice","erase","all"],"sourceRoot":""}