"use strict";(self.webpackChunktab_nodes_tree_extension=self.webpackChunktab_nodes_tree_extension||[]).push([[264],{44264:(e,n,t)=>{let o;t.d(n,{f:()=>c,initLicense:()=>r});var a=t(93034),i=t(87521);async function r(){let e=(0,a.tZ)(!0,a.W4.script,[window.location.pathname,r.name]);await i.store.licenseCache.loadLicenseIntoCacheFromStorage(),e.logP("Connect to service worker");let n=await chrome.windows.getCurrent();(o=chrome.runtime.connect({name:c(n,window)})).onMessage.addListener((e,n)=>{s(e,n)});let t=()=>{chrome.runtime.lastError&&e.falseP(chrome.runtime.lastError.message,{port:o}),null==o||o.onDisconnect.removeListener(t)};o.onDisconnect.addListener(t)}async function s(e,n){(0,a.tZ)(!0,a.W4.script,[window.location.pathname,s.name]).receiveP("Receive message.",{message:e,port:n}),null==e||e.type}function c(e,n){return`[${e.id}]${n.location.pathname}`}}}]);