1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40263],{54844:function(t,e,r){r.d(e,{I:function(){return u}});var n=r(31549),i=r(26161),a=r(14528);let o=t=>(0,n.jsxs)("svg",{viewBox:"0 0 466.72 352.62",fill:"currentColor",...t,children:[(0,n.jsx)("path",{d:"M113.31,81.21l12.48-12.48L68.74,11.69l-12.48,12.48c-75.03,75.03-75.01,197.11.03,272.16,75.04,75.04,197.13,75.06,272.16.03l12.48-12.48-57.05-57.05-12.48,12.48c-43.57,43.57-114.47,43.55-158.06-.03-43.59-43.59-43.6-114.49-.03-158.06Z"}),(0,n.jsx)("path",{d:"M353.41,271.4l-12.48,12.48,57.05,57.05,12.48-12.48c75.03-75.03,75.01-197.11-.03-272.16-75.04-75.04-197.13-75.06-272.16-.03l-12.48,12.48,57.05,57.05,12.48-12.48c43.57-43.57,114.47-43.55,158.06.03,43.59,43.59,43.6,114.49.03,158.06Z"})]});var l=r(14517),c=r(5817);let u=t=>{let{slug:e="bitcoin",displayPath:r,className:u,size:h="default",tone:d="muted",hiddenInCapture:s=!1}=t;return(0,n.jsxs)(i.h,{name:a.IM.COIN,params:{slug:e},...s?{[c.UZ]:""}:{},...s?{[c.Ak]:""}:{},className:(0,l.default)("flex items-center","light"===d?"text-white":"text-neutral-600","xlarge"===h?"gap-5":"large"===h?"gap-4":"gap-2",u),children:[(0,n.jsx)(o,{className:"xlarge"===h?"h-14 w-14":"large"===h?"h-10 w-10":"h-5 w-5",fill:"currentColor"}),(0,n.jsxs)("span",{className:(0,l.default)("font-akzidenz-grotesk leading-none","xlarge"===h?"text-[38px]":"large"===h?"text-[1.75rem]":"text-sm"),children:["decrypt.co/",null!=r?r:e]})]})}},5817:function(t,e,r){r.d(e,{Ak:function(){return l},H0:function(){return u},NB:function(){return h},UZ:function(){return c},gm:function(){return R},wK:function(){return g}});var n=r(36989),i=r(44194),a=r(94554);let o="#0A0B0E",l="data-share-ignore",c="data-share-watermark-anchor",u="data-share-big-watermark",h="data-share-chart-card",d=t=>!("function"==typeof t.hasAttribute&&t.hasAttribute(l))&&"CANVAS"!==t.tagName,s=()=>{var t;return void 0!==window.ClipboardItem&&!!(null===(t=navigator.clipboard)||void 0===t?void 0:t.write)},g=()=>window.innerWidth>=1024,m=()=>g()&&s(),f=(t,e)=>{let r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)},w={top:20,right:20,bottom:20,left:20},p=(t,e)=>{let r=2*e.top,n=2*e.right,i=2*e.bottom,a=2*e.left,l=document.createElement("canvas");l.width=t.width+a+n,l.height=t.height+r+i;let c=l.getContext("2d");return c?(c.fillStyle=o,c.fillRect(0,0,l.width,l.height),c.drawImage(t,a,r),l):t},v=t=>new Promise(e=>t.toBlob(e,"image/png")),y=(t,e,r,n)=>{let i=t.querySelector("[".concat(u,'="').concat(n,'"]')),a=e.querySelector("[".concat(c,"]"));if(!i||!a)return null;let o=a.getBoundingClientRect();return 0===o.width||0===o.height?null:{bigWatermark:i,relRight:o.right-r.left,relVCenter:o.top+o.height/2-r.top}},C=async(t,e,r)=>{let i=e.bigWatermark.getBoundingClientRect(),a=await (0,n.rT)(e.bigWatermark,{pixelRatio:2,canvasWidth:Math.ceil(i.width),canvasHeight:Math.ceil(i.height)});if(0===a.width||0===a.height)return;let o=t.getContext("2d");if(!o)return;let l=2*r.left+2*e.relRight,c=2*r.top+2*e.relVCenter,u=l-a.width,h=c-a.height/2;o.drawImage(a,u,h)},b=(t,e,r)=>{let n=Array.from(t.querySelectorAll("canvas")),i=Array.from(r.querySelectorAll("canvas"));return n.map((t,r)=>{var n,a,o;let l=(null!==(n=t.parentElement)&&void 0!==n?n:t).getBoundingClientRect(),c=null!==(a=i[r])&&void 0!==a?a:t,u=(null!==(o=c.parentElement)&&void 0!==o?o:c).getBoundingClientRect();return{canvas:c,relX:l.left-e.left,relY:l.top-e.top,slotWidth:l.width,slotHeight:l.height,sourceWidth:u.width,sourceHeight:u.height}})},x=(t,e,r)=>{let n=t.querySelector("[".concat(h,'="').concat(r,'"]'));if(!n)return null;let i=n.getBoundingClientRect();return 0===i.width||0===i.height?null:{relX:i.left-e.left,relY:i.top-e.top,width:i.width,height:i.height}},U=(t,e,r,n)=>{let i=e.sourceHeight*(e.slotWidth/e.sourceWidth),a=i-e.slotHeight;if(a<=0||0===e.sourceWidth||0===e.sourceHeight)return{canvas:t,position:e};let l=2*a,c=(n.top+e.relY+e.slotHeight)*2,u=r?(n.left+r.relX)*2:0,h=r?(n.left+r.relX+r.width)*2:t.width,d=document.createElement("canvas");d.width=t.width,d.height=t.height+l;let s=d.getContext("2d");if(!s)return{canvas:t,position:e};s.fillStyle=o,s.fillRect(0,0,d.width,d.height),s.save(),s.beginPath(),s.rect(0,0,u,d.height),s.rect(h,0,d.width-h,d.height),s.clip(),s.drawImage(t,0,0),s.restore(
1),s.save(),s.beginPath(),s.rect(u,0,h-u,c),s.clip(),s.drawImage(t,0,0),s.restore(),s.save(),s.beginPath(),s.rect(u,c+l,h-u,d.height-(c+l)),s.clip(),s.drawImage(t,0,l),s.restore();let g=h-u,m=(n.top+e.relY)*2+4;if(g>0){let e=document.createElement("canvas");e.width=g,e.height=2;let r=e.getContext("2d");if(r){r.drawImage(t,u,m,g,2,0,0,g,2);let n=s.createPattern(e,"repeat");n&&(s.save(),s.beginPath(),s.rect(u,c,g,l),s.clip(),s.translate(u,c),s.fillStyle=n,s.fillRect(0,0,g,l),s.restore())}}return{canvas:d,position:{...e,slotHeight:i}}},D=(t,e,r)=>{let n=t.getContext("2d");if(n)for(let{canvas:t,relX:i,relY:a,slotWidth:o,slotHeight:l,sourceWidth:c,sourceHeight:u}of e){if(0===t.width||0===t.height||0===c||0===u)continue;let e=Math.min(o/c,l/u),h=c*e,d=u*e,s=(o-h)/2,g=(l-d)/2;n.drawImage(t,(r.left+i+s)*2,(r.top+a+g)*2,2*h,2*d)}},I=t=>new Promise(e=>setTimeout(e,t)),S=t=>{if(0===t.width||0===t.height)return!1;let e=t.getContext("2d");if(!e)return!1;try{let{data:r}=e.getImageData(0,0,t.width,t.height);for(let t=3;t<r.length;t+=148)if(0!==r[t])return!0;return!1}catch(t){return!0}},T=async function(t){let{requirePaint:e=!0,expectCanvas:r=!1,timeoutMs:n=8e3}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Date.now(),a=!1;for(;Date.now()-i<n;){let n=Array.from(t.querySelectorAll("canvas"));if(n.length>0){if(a=!0,n.every(t=>t.width>0&&t.height>0&&(!e||S(t)))){await I(250);return}}else if(!r&&!a&&Date.now()-i>900)return;await I(150)}},k=(t,e)=>new Promise((r,n)=>{let i=Date.now()+25e3,a=()=>{var o;let l=null===(o=t.contentDocument)||void 0===o?void 0:o.querySelector('[data-share-id="'.concat(e,'"]')),c=null==l?void 0:l.getBoundingClientRect();if(l&&c&&c.width>0&&c.height>0){setTimeout(()=>r(l),300);return}if(Date.now()>i){n(Error('Timed out waiting for share target "'.concat(e,'"')));return}setTimeout(a,150)};a()}),E=async t=>{let e=document.createElement("iframe");e.style.cssText="position:fixed;top:0;left:-10000px;width:".concat(1280,"px;height:").concat(3e3,"px;border:0;"),document.body.appendChild(e);let r=k(e,t);return e.src=window.location.href,{iframe:e,target:await r}},R=(t,e)=>{let{fileName:r,shareId:l,padding:c}=e,[u,h]=(0,i.useState)(!1);return{share:(0,i.useCallback)(async()=>{if(u)return;let e=t.current;if(!e)return;h(!0);let i={current:null},s=(async()=>{let t;let r=window.innerWidth>=1024;if(r)t=e;else{let e=await E(l);i.current=e.iframe,t=e.target}await T(e);let a=e.querySelectorAll("canvas").length>0;t!==e&&await T(t,{requirePaint:!1,expectCanvas:a,timeoutMs:18e3});let u=t.getBoundingClientRect(),h=b(t,u,e);if(a&&0===h.length)throw Error("Chart canvas never appeared in the desktop-width reload");let s=x(t,u,l),g=y(r?document:t.ownerDocument,t,u,l),m=await (0,n.rT)(t,{pixelRatio:2,backgroundColor:o,filter:d,canvasWidth:Math.ceil(u.width),canvasHeight:Math.ceil(u.height)}),f={...w,...c},I=p(m,f),S=h.map(t=>{let e=U(I,t,s,f);return I=e.canvas,e.position});D(I,S,f),g&&await C(I,g,f);let k=await v(I);if(!k)throw Error("Screenshot capture returned no image");return k})();try{if(m())await navigator.clipboard.write([new window.ClipboardItem({"image/png":s})]),a.ZP.success("Copied the screenshot to clipboard");else{let t=await s;f(t,"".concat(r,".png")),a.ZP.success("Image downloaded")}}catch(t){console.error("Screenshot capture failed:",t),a.ZP.error("Couldn't create the image, try again")}finally{var g;null===(g=i.current)||void 0===g||g.remove(),h(!1)}},[t,u,r,l,c]),isSharing:u}}},43833:function(t,e,r){r.d(e,{Aq:function(){return p},_9:function(){return l},e4:function(){return y},gl:function(){return a},he:function(){return f},mJ:function(){return g},oD:function(){return u},rG:function(){return d},tC:function(){return x},uI:function(){return C},um:function(){return c}});var n=r(60118);r(12043),r(73656).env.COINGLASS_API_KEY;let i=t=>["coinglass-etf-flows",t];function a(t){return(0,n.a)(i(t),()=>{throw Error("Coinglass ETF flows are fetched server-side only")},{enabled:!1})}let o=t=>["coinglass-etf-summary",t];function l(t){let e=t[t.length-1];return t.length>1&&(null==e?void 0:e.flowUsd)===0&&function(t,e){let r=new Date(t),n=new Date(e);return r.getUTCFullYear()===n.getUTCFullYear()&&r.getUTCMonth()===n.getUTCMonth()&&r.getUTCDate()===n.getUTCDate()}(e.timestamp,Date.now())?t.slice(0,-1):t}function c(t){return(0,n.a)(o(t),()=>{throw Error("Coinglass ETF summary is fetched server-side only")},{enabled:!1})}function u(t){return t>1e6?"bullish":t<-1e6?"bearish":"neutral"}let h={bullish:"text-coin-dark-bull",bearish:"text-coin-dark-bear",neutral:"text-coin-dark-text-soft"};function d(t){return h[u(t)]}let s=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",minimumFractionDigits:1,maximumFractionDigits:1});function g(t){return s.format(t)}new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2});let m=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric",year:"numeric"});function f(t){return m.format(t)}let w=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",day:"numeric"});function p(t){return w.format(t)}let v=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",month:"short",year:"2-digit"});function y(t){var e,r,n,i;let a=v.formatToParts(t),o=null!==(n=null===(e=a.find(t=>"month"===t.type))||void 0===e?void 0:e.value)&&void 0!==n?n:"",l=null!==(i=null===(r=a.find(t=>"year"===t.type))||void 0===r?void 0:r.value)&&void 0!==i?i:"";return"".concat(o," '").concat(l)}function C(t,e){return"COIN"===e?t.priceUsd?t.flowUsd/t.priceUsd:0:t.flowUsd}let b=new Intl.NumberFormat("en-US",{notation:"compact",minimumFractionDigits:2,maximumFractionDigits:2});function x(t,e){return"COIN"===e?b.format(t):g(t)}
1}}]);
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.