/** * Copyright (c) 2021 ESHA Research * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Creates a store area that uses a separate cookies for each key/value as the backing * storage. This effectively gives you the store API for all cookies.. * It could definitely use more testing. It also feels like it should better * integrated with the expire plugin before we call it BETA. * * Status: ALPHA - unsupported, useful, needs testing */ ;(function(window, document, store, _) { var C = _.cookies = {// still good enough for me maxAge: 60*60*24*365*10, suffix: ';path=/;sameSite=strict' }; C.all = function() { if (!document.cookie) { return {}; } var cookies = document.cookie.split('; '), all = {}; for (var i=0, cookie, eq; i