PageSourceSearch

https://coinsect.io/_nuxt/BFVGNp6o.js

js coinsect.io collected 2026-10-07 00:15:57 UTC 1,831 bytes, 1 lines download raw bytes

1import{x as e}from"./huzoChKY.js";import{a as t}from"./BG08T4yo.js";import{ut as n}from"./53c8EvBF.js";import{d as r}from"./DdYoX3_7.js";import{n as i}from"./BTT82eWq.js";import{n as a,s as o}from"./CDD3dj7N.js";var s=(e,{url:t,chatToken:n})=>e(`helpers/crawled_websites`,{method:`POST`,body:{url:t,chatToken:n}}),c=e=>e(`helpers/crawled_websites/examples`),l=e=>!!(e&&(e.title||e.description||e.image)),u=6e4,d=new Map,f=(e,t,{trials:n=3,intervalMs:r=2e3}={})=>{let i=d.get(e);if(i)return i;let a=(async()=>{try{for(let i=0;i<n;i++){let a=await t(e);if(a?.status!==`crawling`){let e=a?.meta;return{title:e?.title||null,description:e?.description||null,image:e?.image||null}}i<n-1&&await o(r)}}catch{}return null})();return d.set(e,a),a.then(t=>{t||setTimeout(()=>{d.get(e)===a&&d.delete(e)},u)}),a},p=e=>e.replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&quot;/g,`"`).replace(/&#0*39;/g,`'`).replace(/&amp;/g,`&`),m=t=>{if(!t)return null;let n=p(t.replace(/<a\b[^>]*?\bhref\s*=\s*(["'])(.*?)\1[^>]*>/gi,` $2 `).replace(/<[^>]*>/g,` `));for(let t of n.matchAll(new RegExp(e.url.source,e.url.flags)))if(/^https:\/\//i.test(t[0]))return t[0];return null},h=()=>{let{$api:e}=t(),o=i(),c=n({image:null,title:null,description:null}),l=()=>{c.value.image=null,c.value.title=null,c.value.description=null},u=e=>{if(!e)return;if(e.startsWith(`https://coinsect.io`)){r(e.split(`https://coinsect.io`)[1]||`/`);return}let t=e.startsWith(`http`)?e:`https://${e}`;window.open(t,`_blank`,`noreferrer`)},d=t=>f(t,async t=>s(e,{url:t,chatToken:await o.currentToken()}));return{meta:c,reset:l,tryMetaTags:async e=>{if(!e)throw Error(`no link`);if(a(e)){c.value={image:e,title:null,description:null};return}let t=await d(e);if(!t)throw Error(`crawl failed`);c.value={...t}},fetchLinkMeta:d,onClickMetaCard:u}};export{c as i,m as n,l as r,h as t};

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.