{"version":3,"sources":["../../node_modules/js-cookie/dist/js.cookie.mjs"],"names":["assign","target","i","arguments","length","source","key","defaultConverter","read","value","slice","replace","decodeURIComponent","write","encodeURIComponent","init","converter","defaultAttributes","set","name","attributes","document","expires","Date","now","toUTCString","escape","stringifiedAttributes","attributeName","split","cookie","Object","create","get","cookies","jar","parts","join","found","e","remove","withAttributes","this","withConverter","freeze","api","path"],"mappings":";AAEA,SAASA,OAAQC,GACf,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GACvB,IAAK,IAAII,KAAOD,EACdJ,EAAOK,GAAOD,EAAOC,GAGzB,OAAOL,EAKT,IAAIM,iBAAmB,CACrBC,KAAM,SAAUC,GAId,MAHiB,MAAbA,EAAM,KACRA,EAAQA,EAAMC,MAAM,GAAI,IAEnBD,EAAME,QAAQ,mBAAoBC,qBAE3CC,MAAO,SAAUJ,GACf,OAAOK,mBAAmBL,GAAOE,QAC/B,2CACAC,sBAQN,SAASG,KAAMC,EAAWC,GACxB,SAASC,EAAKC,EAAMV,EAAOW,GACzB,GAAwB,oBAAbC,SAAX,CAMkC,iBAFlCD,EAAapB,OAAO,GAAIiB,EAAmBG,IAErBE,UACpBF,EAAWE,QAAU,IAAIC,KAAKA,KAAKC,MAA6B,MAArBJ,EAAWE,UAEpDF,EAAWE,UACbF,EAAWE,QAAUF,EAAWE,QAAQG,eAG1CN,EAAOL,mBAAmBK,GACvBR,QAAQ,uBAAwBC,oBAChCD,QAAQ,QAASe,QAEpB,IAAIC,EAAwB,GAC5B,IAAK,IAAIC,KAAiBR,EACnBA,EAAWQ,KAIhBD,GAAyB,KAAOC,GAEE,IAA9BR,EAAWQ,KAWfD,GAAyB,IAAMP,EAAWQ,GAAeC,MAAM,KAAK,KAGtE,OAAQR,SAASS,OACfX,EAAO,IAAMH,EAAUH,MAAMJ,EAAOU,GAAQQ,GA6BhD,OAAOI,OAAOC,OACZ,CACEd,IAAAA,EACAe,IA7BJ,SAAcd,GACZ,GAAwB,oBAAbE,YAA6BlB,UAAUC,QAAWe,GAA7D,CAQA,IAFA,IAAIe,EAAUb,SAASS,OAAST,SAASS,OAAOD,MAAM,MAAQ,GAC1DM,EAAM,GACDjC,EAAI,EAAGA,EAAIgC,EAAQ9B,OAAQF,IAAK,CACvC,IAAIkC,EAAQF,EAAQhC,GAAG2B,MAAM,KACzBpB,EAAQ2B,EAAM1B,MAAM,GAAG2B,KAAK,KAEhC,IACE,IAAIC,EAAQ1B,mBAAmBwB,EAAM,IAGrC,GAFAD,EAAIG,GAAStB,EAAUR,KAAKC,EAAO6B,GAE/BnB,IAASmB,EACX,MAEF,MAAOC,KAGX,OAAOpB,EAAOgB,EAAIhB,GAAQgB,IAOxBK,OAAQ,SAAUrB,EAAMC,GACtBF,EACEC,EACA,GACAnB,OAAO,GAAIoB,EAAY,CACrBE,SAAU,MAIhBmB,eAAgB,SAAUrB,GACxB,OAAOL,KAAK2B,KAAK1B,UAAWhB,OAAO,GAAI0C,KAAKtB,WAAYA,KAE1DuB,cAAe,SAAU3B,GACvB,OAAOD,KAAKf,OAAO,GAAI0C,KAAK1B,UAAWA,GAAY0B,KAAKtB,cAG5D,CACEA,WAAY,CAAEX,MAAOsB,OAAOa,OAAO3B,IACnCD,UAAW,CAAEP,MAAOsB,OAAOa,OAAO5B,MAKrC,IAAC6B,IAAM9B,KAAKR,iBAAkB,CAAEuC,KAAM","sourcesContent":["/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n"]}