{"version":3,"sources":["../src/scripts/lib/jquery.cookie.js"],"names":["factory","define","amd","exports","_typeof","module","_OldCookies","window","Cookies","api","noConflict","extend","i","result","arguments","length","attributes","key","init","converter","value","path","defaults","expires","Date","setMilliseconds","getMilliseconds","JSON","stringify","test","e","encodeURIComponent","String","replace","decodeURIComponent","escape","document","cookie","toUTCString","domain","secure","join","cookies","split","rdecode","parts","name","slice","charAt","this","json","parse","get","set","getJSON","apply","call","remove","withConverter"],"mappings":"slDAOC,SAAUA,GACP,GAAsB,kBAAXC,SAAyBA,OAAOC,IACvCD,OAAOD,OACJ,IAAuB,YAAL,mBAAPG,SAAO,YAAAC,QAAPD,UACdE,OAAOF,QAAUH,QACd,CACH,GAAIM,GAAcC,OAAOC,QACrBC,EAAMF,OAAOC,QAAUR,GAC3BS,GAAIC,WAAa,WAEb,MADAH,QAAOC,QAAUF,EACVG,KAGjB,WACE,QAASE,KAGL,IAFA,GAAIC,GAAI,EACJC,KACGD,EAAIE,UAAUC,OAAQH,IAAK,CAC9B,GAAII,GAAaF,UAAWF,EAC5B,KAAK,GAAIK,KAAOD,GACZH,EAAOI,GAAOD,EAAWC,GAGjC,MAAOJ,GAGX,QAASK,GAAMC,GACX,QAASV,GAAKQ,EAAKG,EAAOJ,GACtB,GAAIH,EAIJ,IAAIC,UAAUC,OAAS,EAAG,CAKtB,GAJAC,EAAaL,GACTU,KAAM,KACPZ,EAAIa,SAAUN,GAEiB,gBAAvBA,GAAWO,QAAsB,CACxC,GAAIA,GAAU,GAAIC,KAClBD,GAAQE,gBAAgBF,EAAQG,kBAAyC,MAArBV,EAAWO,SAC/DP,EAAWO,QAAUA,EAGzB,IACIV,EAASc,KAAKC,UAAUR,GACpB,UAAUS,KAAKhB,KACfO,EAAQP,GAEd,MAAOiB,IAST,MAPAV,GAAQW,mBAAmBC,OAAOZ,IAClCA,EAAQA,EAAMa,QAAQ,4DAA6DC,oBAEnFjB,EAAMc,mBAAmBC,OAAOf,IAChCA,EAAMA,EAAIgB,QAAQ,2BAA4BC,oBAC9CjB,EAAMA,EAAIgB,QAAQ,UAAWE,QAErBC,SAASC,QACbpB,EAAK,IAAKG,EACVJ,EAAWO,SAAW,aAAeP,EAAWO,QAAQe,cACxDtB,EAAWK,MAAW,UAAYL,EAAWK,KAC7CL,EAAWuB,QAAW,YAAcvB,EAAWuB,OAC/CvB,EAAWwB,OAAS,WAAa,IACnCC,KAAK,IAKNxB,IACDJ,KAUJ,KAJA,GAAI6B,GAAUN,SAASC,OAASD,SAASC,OAAOM,MAAM,SAClDC,EAAU,mBACVhC,EAAI,EAEDA,EAAI8B,EAAQ3B,OAAQH,IAAK,CAC5B,GAAIiC,GAAQH,EAAQ9B,GAAG+B,MAAM,KACzBG,EAAOD,EAAM,GAAGZ,QAAQW,EAASV,oBACjCG,EAASQ,EAAME,MAAM,GAAGN,KAAK,IAER,OAArBJ,EAAOW,OAAO,KACdX,EAASA,EAAOU,MAAM,MAG1B,KAGI,GAFAV,EAASlB,GAAaA,EAAUkB,EAAQS,IAAST,EAAOJ,QAAQW,EAASV,oBAErEe,KAAKC,KACL,IACIb,EAASV,KAAKwB,MAAMd,GACtB,MAAOP,IAGb,GAAIb,IAAQ6B,EAAM,CACdjC,EAASwB,CACT,OAGCpB,IACDJ,EAAOiC,GAAQT,GAErB,MAAOP,KAGb,MAAOjB,GAmBX,MAhBAJ,GAAI2C,IAAM3C,EAAI4C,IAAM5C,EACpBA,EAAI6C,QAAU,WACV,MAAO7C,GAAI8C,OACPL,MAAM,MACJH,MAAMS,KAAK1C,aAErBL,EAAIa,YAEJb,EAAIgD,OAAS,SAAUxC,EAAKD,GACxBP,EAAIQ,EAAK,GAAIN,EAAOK,GAChBO,eAIRd,EAAIiD,cAAgBxC,EAEbT,EAGX,MAAOS","file":"static/scripts/apps/rgpd/cookies.js.map","sourcesContent":["/*!\r\n * JavaScript Cookie v2.0.3\r\n * https://github.com/js-cookie/js-cookie\r\n *\r\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\r\n * Released under the MIT license\r\n */\r\n(function (factory) {\r\n if (typeof define === 'function' && define.amd) {\r\n define(factory);\r\n } else if (typeof exports === 'object') {\r\n module.exports = factory();\r\n } else {\r\n var _OldCookies = window.Cookies;\r\n var api = window.Cookies = factory();\r\n api.noConflict = function () {\r\n window.Cookies = _OldCookies;\r\n return api;\r\n };\r\n }\r\n}(function () {\r\n function extend () {\r\n var i = 0;\r\n var result = {};\r\n for (; i < arguments.length; i++) {\r\n var attributes = arguments[ i ];\r\n for (var key in attributes) {\r\n result[key] = attributes[key];\r\n }\r\n }\r\n return result;\r\n }\r\n\r\n function init (converter) {\r\n function api (key, value, attributes) {\r\n var result;\r\n\r\n // Write\r\n\r\n if (arguments.length > 1) {\r\n attributes = extend({\r\n path: '/'\r\n }, api.defaults, attributes);\r\n\r\n if (typeof attributes.expires === 'number') {\r\n var expires = new Date();\r\n expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);\r\n attributes.expires = expires;\r\n }\r\n\r\n try {\r\n result = JSON.stringify(value);\r\n if (/^[\\{\\[]/.test(result)) {\r\n value = result;\r\n }\r\n } catch (e) {}\r\n\r\n value = encodeURIComponent(String(value));\r\n value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\r\n\r\n key = encodeURIComponent(String(key));\r\n key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);\r\n key = key.replace(/[\\(\\)]/g, escape);\r\n\r\n return (document.cookie = [\r\n key, '=', value,\r\n attributes.expires && '; expires=' + attributes.expires.toUTCString(), // use expires attribute, max-age is not supported by IE\r\n attributes.path && '; path=' + attributes.path,\r\n attributes.domain && '; domain=' + attributes.domain,\r\n attributes.secure ? '; secure' : ''\r\n ].join(''));\r\n }\r\n\r\n // Read\r\n\r\n if (!key) {\r\n result = {};\r\n }\r\n\r\n // To prevent the for loop in the first place assign an empty array\r\n // in case there are no cookies at all. Also prevents odd result when\r\n // calling \"get()\"\r\n var cookies = document.cookie ? document.cookie.split('; ') : [];\r\n var rdecode = /(%[0-9A-Z]{2})+/g;\r\n var i = 0;\r\n\r\n for (; i < cookies.length; i++) {\r\n var parts = cookies[i].split('=');\r\n var name = parts[0].replace(rdecode, decodeURIComponent);\r\n var cookie = parts.slice(1).join('=');\r\n\r\n if (cookie.charAt(0) === '\"') {\r\n cookie = cookie.slice(1, -1);\r\n }\r\n\r\n try {\r\n cookie = converter && converter(cookie, name) || cookie.replace(rdecode, decodeURIComponent);\r\n\r\n if (this.json) {\r\n try {\r\n cookie = JSON.parse(cookie);\r\n } catch (e) {}\r\n }\r\n\r\n if (key === name) {\r\n result = cookie;\r\n break;\r\n }\r\n\r\n if (!key) {\r\n result[name] = cookie;\r\n }\r\n } catch (e) {}\r\n }\r\n\r\n return result;\r\n }\r\n\r\n api.get = api.set = api;\r\n api.getJSON = function () {\r\n return api.apply({\r\n json: true\r\n }, [].slice.call(arguments));\r\n };\r\n api.defaults = {};\r\n\r\n api.remove = function (key, attributes) {\r\n api(key, '', extend(attributes, {\r\n expires: -1\r\n }));\r\n };\r\n\r\n api.withConverter = init;\r\n\r\n return api;\r\n }\r\n\r\n return init();\r\n}));\r\n"]}