PageSourceSearch

https://tesana.com/assets/trailerShare-BGlMG0RV.js

js tesana.com collected 2026-10-09 22:42:14 UTC 1,048 bytes, 1 lines download raw bytes

1function c(n,e=".mp4"){return`${(n||"").toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)||"game"}-trailer${e}`}function l(n){const e=n??(typeof navigator>"u"?void 0:navigator);if(!e||typeof e.share!="function"||typeof e.canShare!="function")return!1;try{return e.canShare({files:[new File([new Uint8Array(1)],"probe.mp4",{type:"video/mp4"})]})}catch{return!1}}function i(n,e,{doc:o,win:t}={}){const a=o??document,r=a.createElement("a");r.href=n,r.download=c(e),r.rel="noopener",r.target="_blank",a.body.appendChild(r),r.click(),r.remove()}async function s(n,e,o={}){const t=o.nav??(typeof navigator>"u"?void 0:navigator);if(!l(t))return i(n,e,o),"downloaded";try{const a=await fetch(n);if(!a.ok)throw new Error(`HTTP ${a.status}`);const r=await a.blob(),d=new File([r],c(e),{type:"video/mp4"});return await t.share({files:[d],title:e,text:`${e} — made on Tesana`}),"shared"}catch(a){if(a?.name==="AbortError")return"cancelled";try{return i(n,e,o),"downloaded"}catch{return"failed"}}}export{i as d,s};

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.