{"version":3,"sources":["jquery.cookie.js"],"names":["factory","define","amd","jQuery","$","pluses","raw","s","decoded","decodeURIComponent","replace","converted","indexOf","slice","config","json","JSON","parse","er","cookie","key","value","options","undefined","extend","defaults","expires","days","t","Date","setDate","getDate","stringify","String","document","encodeURIComponent","toUTCString","path","domain","secure","join","decode","cookies","split","result","i","l","length","parts","name","shift","removeCookie"],"mappings":"CAeC,SAACA,SAEkB,mBAAfC,QAAeA,OAAAC,IAPlBD,OAUA,CAAA,UAASD,SAPTA,QAWAG,QATF,CAAE,SAYDC,GAVA,IAAIC,OAaD,MAXH,SAAAC,IAaKC,GAZJ,OAAOA,EAGR,SAAAC,QAYCD,GAXA,OAaGE,mBAAoBF,EAAAG,QAAUL,OAAK,MAVvC,SAAAM,UAgBMJ,GACK,IAhBNA,EAAEK,QAgBJ,OAdDL,EAAIA,EAAEM,MAgBL,GAAA,GAAAH,QAAA,OAAA,KAAAA,QAAA,QAAA,OAdF,IACC,OAAOI,OAkBNC,KAAOC,KAAMC,MAAMV,GAAAA,EAjBnB,MAAMW,MAGT,IAAIJ,OAASV,EAkBVe,OAAQ,SAAUC,IAASC,MAAGC,SAfhC,QAkBGC,IAlBCF,MAkBS,CAfZ,GAoBsB,iBAtBtBC,QAkBAlB,EAAAoB,OAAA,GAAAV,OAAAW,SAAAH,UAIaI,QAAsB,CAnBlC,IAoBFC,KAAIL,QAASI,QAAME,EAASN,QAAMI,QAAA,IAAAG,KAnBhCD,EAAEE,QAoBCF,EAAAG,UAAeJ,MAfnB,OAFAN,MAAQP,OAoBJC,KAASC,KAAAgB,UAAaX,OAAWY,OAAAZ,OAlB7Ba,SAqBPf,OAAS,CApBTL,OAAOR,IAqBPc,IAAMe,mBAAAf,KApBN,IACAN,OAAOR,IAsBHe,MAAKc,mBAAAd,OArBTC,QAAQI,QAsBF,aAASJ,QAAUI,QAAQU,cAAA,GArBjCd,QAAQe,KAsBR,UAAAf,QAAAe,KAAA,GArBAf,QAsBDgB,OAAA,YAAAhB,QAAAgB,OAAA,GArBChB,QAuBFiB,OAAc,WAAA,IACdC,KAAC,IAhBD,IAHA,IAAIC,OA0BD3B,OAAOR,IAAOA,IAAIE,QAzBjBkC,QA0BHR,SAAYf,OAAAwB,MAAA,MAzBTC,OA0BHxB,SAAAG,EAAA,GACDsB,EAAO,EAAAC,EAAMJ,QAAAK,OAAAF,EAAAC,EAAAD,IAAA,CAzBZ,IA0BAG,MAAAN,QAAAG,GAAAF,MAAA,KAECM,KAAAR,OAAAO,MAAAE,SA1BG/B,OAASsB,OAAOO,MAAMR,KAAK,MAE/B,GAAIpB,KAAOA,MAAQ6B,KAAM,CACxBL,OAASjC,UAAUQ,QACnB,MAGIC,MACJwB,OAAOK,MAAQtC,UAAUQ,SAI3B,OAAOyB,QAGR9B,OAAOW,SAAW,GAElBrB,EAAE+C,aAAe,SAAU/B,IAAKE,SAC/B,YAAsBC,IAAlBnB,EAAEe,OAAOC,OAEZhB,EAAEe,OAAOC,IAAK,GAAIhB,EAAEoB,OAAO,GAAIF,QAAS,CAAEI,SAAU,MAC7C","file":"jquery.cookie.js","sourcesContent":["/*!\r\n * jQuery Cookie Plugin v1.3.1\r\n * https://github.com/carhartl/jquery-cookie\r\n *\r\n * Copyright 2013 Klaus Hartl\r\n * Released under the MIT license\r\n */\r\n(function (factory) {\r\n\tif (typeof define === 'function' && define.amd) {\r\n\t\t// AMD. Register as anonymous module.\r\n\t\tdefine(['jquery'], factory);\r\n\t} else {\r\n\t\t// Browser globals.\r\n\t\tfactory(jQuery);\r\n\t}\r\n}(function ($) {\r\n\r\n\tvar pluses = /\\+/g;\r\n\r\n\tfunction raw(s) {\r\n\t\treturn s;\r\n\t}\r\n\r\n\tfunction decoded(s) {\r\n\t\treturn decodeURIComponent(s.replace(pluses, ' '));\r\n\t}\r\n\r\n\tfunction converted(s) {\r\n\t\tif (s.indexOf('\"') === 0) {\r\n\t\t\t// This is a quoted cookie as according to RFC2068, unescape\r\n\t\t\ts = s.slice(1, -1).replace(/\\\\\"/g, '\"').replace(/\\\\\\\\/g, '\\\\');\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn config.json ? JSON.parse(s) : s;\r\n\t\t} catch(er) {}\r\n\t}\r\n\r\n\tvar config = $.cookie = function (key, value, options) {\r\n\r\n\t\t// write\r\n\t\tif (value !== undefined) {\r\n\t\t\toptions = $.extend({}, config.defaults, options);\r\n\r\n\t\t\tif (typeof options.expires === 'number') {\r\n\t\t\t\tvar days = options.expires, t = options.expires = new Date();\r\n\t\t\t\tt.setDate(t.getDate() + days);\r\n\t\t\t}\r\n\r\n\t\t\tvalue = config.json ? JSON.stringify(value) : String(value);\r\n\r\n\t\t\treturn (document.cookie = [\r\n\t\t\t\tconfig.raw ? key : encodeURIComponent(key),\r\n\t\t\t\t'=',\r\n\t\t\t\tconfig.raw ? value : encodeURIComponent(value),\r\n\t\t\t\toptions.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE\r\n\t\t\t\toptions.path ? '; path=' + options.path : '',\r\n\t\t\t\toptions.domain ? '; domain=' + options.domain : '',\r\n\t\t\t\toptions.secure ? '; secure' : ''\r\n\t\t\t].join(''));\r\n\t\t}\r\n\r\n\t\t// read\r\n\t\tvar decode = config.raw ? raw : decoded;\r\n\t\tvar cookies = document.cookie.split('; ');\r\n\t\tvar result = key ? undefined : {};\r\n\t\tfor (var i = 0, l = cookies.length; i < l; i++) {\r\n\t\t\tvar parts = cookies[i].split('=');\r\n\t\t\tvar name = decode(parts.shift());\r\n\t\t\tvar cookie = decode(parts.join('='));\r\n\r\n\t\t\tif (key && key === name) {\r\n\t\t\t\tresult = converted(cookie);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif (!key) {\r\n\t\t\t\tresult[name] = converted(cookie);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t};\r\n\r\n\tconfig.defaults = {};\r\n\r\n\t$.removeCookie = function (key, options) {\r\n\t\tif ($.cookie(key) !== undefined) {\r\n\t\t\t// Must not alter options, thus extending a fresh object...\r\n\t\t\t$.cookie(key, '', $.extend({}, options, { expires: -1 }));\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t};\r\n\r\n}));\r\n"]}