()
| 1909 | // src/core/runtime/cookies.js |
| 1910 | var CookieJar = class { |
| 1911 | #parseCookies() { |
| 1912 | if (!document.cookie) return []; |
| 1913 | return document.cookie.split("; ").map((entry) => { |
| 1914 | var eq = entry.indexOf("="); |
| 1915 | return { name: entry.slice(0, eq), value: decodeURIComponent(entry.slice(eq + 1)) }; |
| 1916 | }); |
| 1917 | } |
| 1918 | get(target, prop) { |
| 1919 | if (prop === "then") { |
| 1920 | return null; |