var e,o;"function"==typeof(e=globalThis.define)&&(o=e,e=null),function(o,n,t,r,l){var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof u[r]&&u[r],c=i.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function a(e,n){if(!c[e]){if(!o[e]){var t="function"==typeof u[r]&&u[r];if(!n&&t)return t(e,!0);if(i)return i(e,!0);if(f&&"string"==typeof e)return f(e);var l=Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}d.resolve=function(n){var t=o[e][1][n];return null!=t?t:n},d.cache={};var s=c[e]=new a.Module(e);o[e][0].call(s.exports,d,s,s.exports,this)}return c[e].exports;function d(e){var o=d.resolve(e);return!1===o?{}:a(o)}}a.isParcelRequire=!0,a.Module=function(e){this.id=e,this.bundle=a,this.exports={}},a.modules=o,a.cache=c,a.parent=i,a.register=function(e,n){o[e]=[function(e,o){o.exports=n},{}]},Object.defineProperty(a,"root",{get:function(){return u[r]}}),u[r]=a;for(var s=0;s<n.length;s++)a(n[s]);if(t){var d=a(t);"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof e&&e.amd?e(function(){return d}):l&&(this[l]=d)}}({"5ykkc":[function(e,o,n){var t=e("@parcel/transformer-js/src/esmodule-helpers.js");t.defineInteropFlag(n),t.export(n,"config",()=>r),console.log("Flomo token content script loaded");let r={matches:["https://v.flomoapp.com/*","https://flomoapp.com/*"],run_at:"document_idle"},l=()=>{try{let e=localStorage.getItem("me");if(e)try{let o=JSON.parse(e);if(o&&o.access_token)return console.log(`[Flomo] Found user data, name: ${o.name}, id: ${o.id}`),{token:o.access_token,name:o.name,email:o.email,userId:o.id?.toString()}}catch(e){console.warn("[Flomo] Failed to parse 'me' data:",e)}return console.log("[Flomo] No token found in localStorage 'me' key"),{token:null}}catch(e){return console.error("[Flomo] Error extracting token:",e),{token:null}}};chrome.runtime.onMessage.addListener((e,o,n)=>{if("getFlomoToken"===e.type){let e=l();return console.log(`[Flomo] Token request, found: ${e.token?"yes":"no"}`),n(e),!0}});let u=l();u.token&&(console.log("[Flomo] Auto-detected token on page load"),chrome.runtime.sendMessage({type:"flomoTokenFound",...u}))},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cHUbl:[function(e,o,n){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,o){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||o.hasOwnProperty(n)||Object.defineProperty(o,n,{enumerable:!0,get:function(){return e[n]}})}),o},n.export=function(e,o,n){Object.defineProperty(e,o,{enumerable:!0,get:n})}},{}]},["5ykkc"],"5ykkc","parcelRequiref116"),globalThis.define=o;