var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,n,o,r,u){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof a[r]&&a[r],l=i.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(e,n){if(!l[e]){if(!t[e]){var o="function"==typeof a[r]&&a[r];if(!n&&o)return o(e,!0);if(i)return i(e,!0);if(c&&"string"==typeof e)return c(e);var u=Error("Cannot find module '"+e+"'");throw u.code="MODULE_NOT_FOUND",u}d.resolve=function(n){var o=t[e][1][n];return null!=o?o:n},d.cache={};var s=l[e]=new f.Module(e);t[e][0].call(s.exports,d,s,s.exports,this)}return l[e].exports;function d(e){var t=d.resolve(e);return!1===t?{}:f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=t,f.cache=l,f.parent=i,f.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]},Object.defineProperty(f,"root",{get:function(){return a[r]}}),a[r]=f;for(var s=0;s<n.length;s++)f(n[s]);if(o){var d=f(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof e&&e.amd?e(function(){return d}):u&&(this[u]=d)}}({lSJUm:[function(e,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(n),o.export(n,"config",()=>r);let r={matches:["https://youtubeapi.notionhub.app/oauth/callback*"],run_at:"document_idle",all_frames:!1},u=async()=>{await chrome.runtime.sendMessage({type:"close-auth-callback-tab"}).catch(e=>{console.warn("[YouTube] close auth callback tab failed:",e)})},a=async e=>{await chrome.runtime.sendMessage({type:"youtube-auth",body:{resp:e}}).catch(e=>{console.warn("[YouTube] youtube-auth sendMessage failed:",e)})},i=()=>`${document.title}
${document.body?.innerText||""}`,l=async()=>{let e=i();/YouTube\s*\u6388\u6743\u6210\u529f/.test(e)?(await a({code:200,message:"YouTube \u6388\u6743\u6210\u529f"}),await u()):/YouTube\s*\u6388\u6743\u5931\u8d25/.test(e)&&await a({code:500,message:"YouTube \u6388\u6743\u5931\u8d25"})};l()},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cHUbl:[function(e,t,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,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}]},["lSJUm"],"lSJUm","parcelRequiref116"),globalThis.define=t;