PageSourceSearch

https://decrypt.co/_next/static/chunks/36989-b9157ab5c7e4ead0.js

js decrypt.co collected 2026-09-24 08:24:59 UTC 12,613 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36989],{36989:function(e,t,n){n.d(t,{rT:function(){return Z}});let r=(()=>{let e=0,t=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function i(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}let l=null;function a(e={}){return l||(l=e.includeStyleProperties?e.includeStyleProperties:i(window.getComputedStyle(document.documentElement)))}function o(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function c(e,t={}){return{width:t.width||function(e){let t=o(e,"border-left-width"),n=o(e,"border-right-width");return e.clientWidth+t+n}(e),height:t.height||function(e){let t=o(e,"border-top-width"),n=o(e,"border-bottom-width");return e.clientHeight+t+n}(e)}}function s(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function u(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function h(e,t,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),l=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("externalResourcesRequired","true"),i.appendChild(l),l.appendChild(e),u(i)}let d=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||d(n,t))};function f(e,t,n,i){let l=window.getComputedStyle(e,n),o=l.getPropertyValue("content");if(""===o||"none"===o)return;let c=r();try{t.className=`${t.className} ${c}`}catch(e){return}let s=document.createElement("style");s.appendChild(function(e,t,n,r){let i=`.${e}:${t}`,l=n.cssText?function(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):a(r).map(e=>{let t=n.getPropertyValue(e),r=n.getPropertyPriority(e);return`${e}: ${t}${r?" !important":""};`}).join(" ");return document.createTextNode(`${i}{${l}}`)}(c,n,l,i)),t.appendChild(s)}let m="application/font-woff",g="image/jpeg",p={woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:g,jpeg:g,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function w(e){return p[(function(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""})(e).toLowerCase()]||""}function y(e){return -1!==e.search(/^(data:)/)}function b(e,t){return`data:${t};base64,${e}`}async function E(e,t,n){let r=await fetch(e,t);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let l=new FileReader;l.onerror=t,l.onloadend=()=>{try{e(n({res:r,result:l.result}))}catch(e){t(e)}},l.readAsDataURL(i)})}let S={};async function v(e,t,n){var r,i,l;let a,o;let c=(r=e,i=t,l=n.includeQueryParams,o=r.replace(/\?.*/,""),l&&(o=r),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),i?`[${i}]${o}`:o);if(null!=S[c])return S[c];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{let r=await E(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1]));a=b(r,t)}catch(r){a=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;r&&(t="string"==typeof r?r:r.message),t&&console.warn(t)}return S[c]=a,a}async function x(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):s(t)}async function $(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),s(t.toDataURL())}let n=e.poster,r=w(n);return s(await v(n,r,t))}async function C(e,t){var n;try{if(null===(n=null==e?void 0:e.contentDocument)||void 0===n?void 0:n.body)return await A(e.contentDocument.body,t,!0)}catch(e){}return e.cloneNode(!1)}async function P(e,t){return d(e,HTMLCanvasElement)?x(e):d(e,HTMLVideoElement)?$(e,t):d(e,HTMLIFrameElement)?C(e,t):e.cloneNode(T(e))}let R=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase(),T=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();async function N(e,t,n){var r,l;if(T(t))return t;let a=[];return R(e)&&e.assignedNodes?a=i(e.assignedNodes()):d(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?a=i(e.contentDocument.body.childNodes):a=i((null!==(l=e.shadowRoot)&&void 0!==l?l:e).childNodes),0===a.length||d(e,HTMLVideoElement)||await a.reduce((e,r)=>e.then(()=>A(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function k(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let r={};for(let i=0;i<n.length;i++){let l=n[i].getAttribute("xlink:href");if(l){let n=e.querySelector(l),i=document.querySelector(l);n||!i||r[l]||(r[l]=await A(i,t,!0))}}let i=Object.values(r);if(i.length){let t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";let r=document.createElementNS(t,"defs");n.appendChild(r);for(let e=0;e<i.length;e++)r.appendChild(i[e]);e.appendChild(n)}return e}async function A(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>P(e,t)).then(n=>N(e,n,t)).then(n=>{var r,i,l;return r=e,i=n,l=t,d(i,Element)&&(!function(e,t,n){let r=t.style;if(!r)return;let i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):a(n).forEac
1h(n=>{let l=i.getPropertyValue(n);if("font-size"===n&&l.endsWith("px")){let e=Math.floor(parseFloat(l.substring(0,l.length-2)))-.1;l=`${e}px`}d(e,HTMLIFrameElement)&&"display"===n&&"inline"===l&&(l="block"),"d"===n&&t.getAttribute("d")&&(l=`path(${t.getAttribute("d")})`),r.setProperty(n,l,i.getPropertyPriority(n))})}(r,i,l),f(r,i,":before",l),f(r,i,":after",l),d(r,HTMLTextAreaElement)&&(i.innerHTML=r.value),d(r,HTMLInputElement)&&i.setAttribute("value",r.value),function(e,t){if(d(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(r,i)),i}).then(e=>k(e,t)):null}let L=/url\((['"]?)([^'"]+?)\1\)/g,I=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,H=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function M(e,t,n,r,i){try{let l;let a=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t,o=w(t);if(i){let e=await i(a);l=b(e,o)}else l=await v(a,o,r);return e.replace(function(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${l}$3`)}catch(e){}return e}function V(e){return -1!==e.search(L)}async function F(e,t,n){if(!V(e))return e;let r=function(e,{preferredFontFormat:t}){return t?e.replace(H,e=>{for(;;){let[n,,r]=I.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}(e,n);return(function(e){let t=[];return e.replace(L,(e,n,r)=>(t.push(r),e)),t.filter(e=>!y(e))})(r).reduce((e,r)=>e.then(e=>M(e,r,t,n)),Promise.resolve(r))}async function D(e,t,n){var r;let i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){let r=await F(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function O(e,t){await D("background",e,t)||await D("background-image",e,t),await D("mask",e,t)||await D("-webkit-mask",e,t)||await D("mask-image",e,t)||await D("-webkit-mask-image",e,t)}async function j(e,t){let n=d(e,HTMLImageElement);if(!(n&&!y(e.src))&&!(d(e,SVGImageElement)&&!y(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await v(r,w(r),t);await new Promise((r,l)=>{e.onload=r,e.onerror=t.onImageErrorHandler?(...e)=>{try{r(t.onImageErrorHandler(...e))}catch(e){l(e)}}:l,e.decode&&(e.decode=r),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function U(e,t){let n=i(e.childNodes).map(e=>q(e,t));await Promise.all(n).then(()=>e)}async function q(e,t){d(e,Element)&&(await O(e,t),await j(e,t),await U(e,t))}let _={};async function z(e){let t=_[e];if(null!=t)return t;let n=await fetch(e);return t={url:e,cssText:await n.text()},_[e]=t,t}async function W(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let l=i.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),E(l,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))})).then(()=>n)}function B(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
1)","gi");for(;;){let e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(null===(e=l.exec(n)))break;i.lastIndex=l.lastIndex}else l.lastIndex=i.lastIndex;t.push(e[0])}return t}async function G(e,t){let n=[],r=[];return e.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let l=i+1,a=e.href,o=z(a).then(e=>W(e,t)).then(e=>B(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?l+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});r.push(o)}})}catch(l){let i=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&r.push(z(n.href).then(e=>W(e,t)).then(e=>B(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",l)}}),Promise.all(r).then(()=>(e.forEach(e=>{if("cssRules"in e)try{i(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function Q(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=i(e.ownerDocument.styleSheets);return(await G(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>V(e.style.getPropertyValue("src")))}function X(e){return e.trim().replace(/["']/g,"")}async function J(e,t){let n=await Q(e,t),r=function(e){let t=new Set;return!function e(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(e=>{t.add(X(e))}),Array.from(n.children).forEach(t=>{t instanceof HTMLElement&&e(t)}
1)}(e),t}(e);return(await Promise.all(n.filter(e=>r.has(X(e.style.fontFamily))).map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return F(e.cssText,n,t)}))).join("\n")}async function K(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await J(e,t);if(n){let t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function Y(e,t={}){let{width:n,height:r}=c(e,t),i=await A(e,t,!0);return await K(i,t),await q(i,t),!function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;null!=r&&Object.keys(r).forEach(e=>{n[e]=r[e]})}(i,t),await h(i,n,r)}async function Z(e,t={}){let{width:n,height:r}=c(e,t),i=await Y(e,t),l=await s(i),a=document.createElement("canvas"),o=a.getContext("2d"),u=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),h=t.canvasWidth||n,d=t.canvasHeight||r;return a.width=h*u,a.height=d*u,!t.skipAutoScale&&(a.width>16384||a.height>16384)&&(a.width>16384&&a.height>16384?a.width>a.height?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384):a.width>16384?(a.height*=16384/a.width,a.width=16384):(a.width*=16384/a.height,a.height=16384)),a.style.width=`${h}`,a.style.height=`${d}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(l,0,0,a.width,a.height),a}}}]);

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.