1import{t as e}from"./rolldown-runtime-C0FnF6B9.js";var t=e(((e,t)=>{(function(n,r){var i=function(e){if(typeof e.document!=`object`)throw Error("Cookies.js requires a `window` with a `document` object");var t=function(e,n,r){return arguments.length===1?t.get(e):t.set(e,n,r)};return t._document=e.document,t._cacheKeyPrefix=`cookey.`,t._maxExpireDate=new Date(`Fri, 31 Dec 9999 23:59:59 UTC`),t.defaults={path:`/`,secure:!1},t.get=function(e){t._cachedDocumentCookie!==t._document.cookie&&t._renewCache();var n=t._cache[t._cacheKeyPrefix+e];return n===r?r:decodeURIComponent(n)},t.set=function(e,n,i){return i=t._getExtendedOptions(i),i.expires=t._getExpiresDate(n===r?-1:i.expires),t._document.cookie=t._generateCookieString(e,n,i),t},t.expire=function(e,n){return t.set(e,r,n)},t._getExtendedOptions=function(e){return{path:e&&e.path||t.defaults.path,domain:e&&e.domain||t.defaults.domain,expires:e&&e.expires||t.defaults.expires,secure:e&&e.secure!==r?e.secure:t.defaults.secure}},t._isValidDate=function(e){return Object.prototype.toString.call(e)===`[object Date]`&&!isNaN(e.getTime())},t._getExpiresDate=function(e,n){if(n||=new Date,typeof e==`number`?e=e===1/0?t._maxExpireDate:new Date(n.getTime()+e*1e3):typeof e==`string`&&(e=new Date(e)),e&&!t._isValidDate(e))throw Error("`expires` parameter cannot be converted to a valid Date instance");return e},t._generateCookieString=function(e,t,n){e=e.replace(/[^#$&+\^`|]/g,encodeURIComponent),e=e.replace(/\(/g,`%28`).replace(/\)/g,`%29`),t=(t+``).replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),n||={};var r=e+`=`+t;return r+=n.path?`;path=`+n.path:``,r+=n.domain?`;domain=`+n.domain:``,r+=n.expires?`;expires=`+n.expires.toUTCString():``,r+=n.secure?`;secure`:``,r},t._getCacheFromString=function(e){for(var n={},i=e?e.split(`; `):[],a=0;a<i.length;a++){var o=t._getKeyValuePairFromCookieString(i[a]);n[t._cacheKeyPrefix+o.key]===r&&(n[t._cacheKeyPrefix+o.key]=o.value)}return n},t._getKeyValuePairFromCookieString=function(e){var t=e.indexOf(`=`);t=t<0?e.length:t;var n=e.substr(0,t),r;try{r=decodeURIComponent(n)}catch(e){console&&typeof console.error==`function`&&console.error(`Could not decode cookie with key "`+n+`"`,e)}return{key:r,value:e.substr(t+1)}},t._renewCache=function(){t._cache=t._getCacheFromString(t._document.cookie),t._cachedDocumentCookie=t._document.cookie},t._areEnabled=function(){var e=`cookies.js`,n=t.set(e,1).get(e)===`1`;return t.expire(e),n},t.enabled=t._areEnabled(),t},a=typeof n.document==`object`?i(n):i;typeof define==`function`&&define.amd?define(function(){return a}):typeof e==`object`?(typeof t==`object`&&typeof t.exports==`object`&&(e=t.exports=a),e.Cookies=a):n.Cookies=a})(typeof window>`u`?e:window)}));export{t}; 2//# sourceMappingURL=cookies-Cvi5xOWh.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.