1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/FilecoinTransactions.BFP7VJXm.js","../chunks/scheduler.Dqyk3hIP.js","../chunks/index.D08bqEeJ.js","../chunks/index.hj8ZzRJp.js","../chunks/preferences.C7NlrpXN.js","../chunks/index.DhZjX8Ml.js","../chunks/index.B-J861mm.js","../chunks/formatPercent.ps3Vi__c.js","../chunks/SizeContainer.C3Q5ol9f.js","../assets/SizeContainer.C-fjJKvm.css","../chunks/Loader.BZPWXmLu.js","../assets/Loader.BAjHdvX8.css","../chunks/InlineTransition.Rd3M9U9W.js","../chunks/tokenColors.C5jDcznZ.js","../chunks/utils.vK_o3JBb.js","../assets/tokenColors.ycl7yD3b.css","../assets/formatPercent.CJjTmjLk.css","../chunks/TransactionId.f5UvMRJi.js","../chunks/Address.Cwgf71Za.js","../chunks/findMatchedCaptureGroup.DVvsrC2N.js","../chunks/index.B7ZS7N6S.js","../chunks/paths.TX_jze5J.js","../chunks/createQuery.4ZrOHePd.js","../chunks/TruncatedValue.BeLABkSw.js","../assets/TruncatedValue.B1SPYTVc.css","../chunks/isTruthy.aVpfD_y2.js","../chunks/Icon.svelte_svelte_type_style_lang.DX1BHBOs.js","../assets/Icon.B69BEoMK.css","../chunks/TokenBalance.D_bLjHoS.js","../assets/TokenBalance.C1TQDoRO.css","../assets/TransactionId.CBCzm-wK.css","../chunks/BlockNumber.CNyq1p1T.js","../chunks/isNetworkSlugFilecoin.DlxAXcpX.js","../chunks/NetworkIcon.mwqaOcAE.js","../assets/BlockNumber.DEa-hJed.css","../chunks/createInfiniteQuery.BW-2x5O-.js","../chunks/infiniteQueryBehavior.fNrAu1qL.js","../chunks/index.BXC-MvkL.js","../assets/FilecoinTransactions.VcuX4d2a.css","../chunks/index.Cbj2_x1x.js","../chunks/index.uQ0UFZiO.js"])))=>i.map(i=>d[i]); 2import{s as ce,E as qe,F as Fe,k as h,l as g,m as C,f as c,n as P,i as d,h as w,j as T,p as ue,q as b,x as fe,t as I,o as O,D as ie,e as Re,b as je,d as Ae,C as Xe,c as ut,u as ct,g as mt,a as _t}from"../chunks/scheduler.Dqyk3hIP.js";import{S as ye,i as De,f as Ue,c as B,b as S,m as A,t as k,a as v,d as R,g as de,e as be}from"../chunks/index.D08bqEeJ.js";import{e as bt,a as ht,n as Ye}from"../chunks/_explorerContext.D64AFMwj.js";import{b as pt}from"../chunks/index.hj8ZzRJp.js";import{C as gt,g as kt,a as $t}from"../chunks/SizeContainer.C3Q5ol9f.js";import{D as vt,L as Ct}from"../chunks/Loader.BZPWXmLu.js";import{B as dt}from"../chunks/BlockNumber.CNyq1p1T.js";import{L as wt,C as Tt,A as Nt}from"../chunks/formatPercent.ps3Vi__c.js";import{a as Et}from"../chunks/FilecoinBlock.BgqY3OYC.js";import{F as Pt}from"../chunks/FilecoinTransactionsLoader.CA4fkabT.js";import{f as Lt,d as It,g as Ot,L as Bt,h as Ze,i as St}from"../chunks/FilecoinTransactions.BFP7VJXm.js";import{I as At}from"../chunks/IpfsContentId.BuYTuS2O.js";import{T as Rt}from"../chunks/TokenBalance.D_bLjHoS.js";import{j as z,k as Oe,p as qt,a7 as Ft,_ as Be}from"../chunks/preferences.C7NlrpXN.js";import{c as Se}from"../chunks/createQuery.4ZrOHePd.js";const yt=async({parent:s})=>{const e=await s();return{metaTags:{...e.metaTags,title:`Tipset | ${e.metaTags.title}`}}},On=Object.freeze(Object.defineProperty({__proto__:null,load:yt},Symbol.toStringTag,{value:"Module"}));function Dt(s){let e,i;return e=new Et({props:{block:s[6],headingLevel:s[4]+1,isOpen:!0}}),{c(){B(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){A(e,t,n),i=!0},p(t,n){const a={};
2n&64&&(a.block=t[6]),n&16&&(a.headingLevel=t[4]+1),e.$set(a)},i(t){i||(k(e.$$.fragment,t),i=!0)},o(t){v(e.$$.fragment,t),i=!1},d(t){R(e,t)}}}function Ut(s){let e,i;return e=new Nt({props:{class:"card",base:`/explorer/${s[1].slug}`,link:`/block/${s[6].cid}`,$$slots:{default:[Dt]},$$scope:{ctx:s}}}),{c(){B(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){A(e,t,n),i=!0},p(t,n){const a={};n&2&&(a.base=`/explorer/${t[1].slug}`),n&64&&(a.link=`/block/${t[6].cid}`),n&208&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){i||(k(e.$$.fragment,t),i=!0)},o(t){v(e.$$.fragment,t),i=!1},d(t){R(e,t)}}}function Ht(s){let e,i,t;function n(l){s[5](l)}let a={items:s[2],itemsCount:s[2].length,getIndex:Mt,isOrdered:!0,title:s[3],headingLevel:s[4],isScrollEnabled:s[2].length>7,layout:wt.Cards,$$slots:{default:[Ut,({item:l})=>({6:l}),({item:l})=>l?64:0]},$$scope:{ctx:s}};return s[0]!==void 0&&(a.isOpen=s[0]),e=new Tt({props:a}),qe.push(()=>Ue(e,"isOpen",n)),{c(){B(e.$$.fragment)},l(l){S(e.$$.fragment,l)},m(l,r){A(e,l,r),t=!0},p(l,[r]){const o={};r&4&&(o.items=l[2]),r&4&&(o.itemsCount=l[2].length),r&8&&(o.title=l[3]),r&16&&(o.headingLevel=l[4]),r&4&&(o.isScrollEnabled=l[2].length>7),r&210&&(o.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,o.isOpen=l[0],Fe(()=>i=!1)),e.$set(o)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}const Mt=s=>s.cid;function Vt(s,e,i){let{network:t=pt.get("filecoin")}=e,{blocks:n=[]}=e,{title:a="Blocks"}=e,{headingLevel:l=3}=e,{isOpen:r}=e;function o(f){r=f,i(0,r)}return s.$$set=f=>{"network"in f&&i(1,t=f.network),"blocks"in f&&i(2,n=f.blocks),"title"in f&&i(3,a=f.title),"headingLevel"in f&&i(4,l=f.headingLevel),"isOpen"in f&&i(0,r=f.isOpen)},[r,t,n,a,l,o]}class Kt extends ye{constructor(e){super(),De(this,e,Vt,Ht,ce,{network:1,blocks:2,title:3,headingLevel:4,isOpen:0})}}function He(s){const e=s.slice(),i=e[2].previousTipset.number??e[2].number-1n;return e[10]=i,e}function Me(s){const e=s.slice(),i=e[2].blocks&&new Set(e[2].blocks.map(t=>{var n;return(n=t.miner)==null?void 0:n.shortAddress})).size;return e[11]=i,e}function Ve(s){let e,i="Network Consensus";return{c(){e=h(`h${s[3]+1}`),e.textContent=i},l(t){e=g(t,(`h${s[3]+1}`||"null").toUpperCase(),{"data-svelte-h":!0}),ue(e)!=="svelte-1xn1tau"&&(e.textContent=i)},m(t,n){d(t,e,n)},p:fe,d(t){t&&c(e)}}}function jt(s){let e;return{c(){e=I("Tipset")},l(i){e=O(i,"Tipset")},m(i,t){d(i,e,t)},p:fe,d(i){i&&c(e)}}}function zt(s){let e;function i(a,l){return a[2].isCanonical?Qt:Gt}let t=i(s),n=t(s);return{c(){n.c(),e=I(` 3 4 tipset`)},l(a){n.l(a),e=O(a,` 5 6 tipset`)},m(a,l){n.m(a,l),d(a,e,l)},p(a,l){t!==(t=i(a))&&(n.d(1),n=t(a),n&&(n.c(),n.m(e.parentNode,e)))},d(a){a&&c(e),n.d(a)}}}function Gt(s){let e,i="Non-canonical";return{c(){e=h("abbr"),e.textContent=i,this.h()},l(t){e=g(t,"ABBR",{title:!0,class:!0,"data-before":!0,"data-svelte-h":!0}),ue(e)!=="svelte-1dcplkw"&&(e.textContent=i),this.h()},h(){P(e,"title","Non-canonical"),P(e,"class","row inline"),P(e,"data-before","â")},m(t,n){d(t,e,n)},d(t){t&&c(e)}}}function Qt(s){let e,i="Canonical";return{c(){e=h("abbr"),e.textContent=i,this.h()},l(t){e=g(t,"ABBR",{title:!0,class:!0,"data-before":!0,"data-svelte-h":!0}),ue(e)!=="svelte-yz8v24"&&(e.textContent=i),this.h()},h(){P(e,"title","Canonical"),P(e,"class","row inline"),P(e,"data-before","â")},m(t,n){d(t,e,n)},d(t){t&&c(e)}}}function xe(s){let e,i,t=s[2].blocks.length+"",n,a,l=new Intl.PluralRules("en-US").select(s[2].blocks.length)==="one"?"block":"blocks",r,o,f=s[11]!==void 0&&et(s);return{c(){e=h("span"),i=h("span"),n=I(t),a=w(),r=I(l),o=w(),f&&f.c()},l(m){e=g(m,"SPAN",{});var p=C(e);i=g(p,"SPAN",{});var N=C(i);n=O(N,t),a=T(N),r=O(N,l),N.forEach(c),o=T(p),f&&f.l(p),p.forEach(c)},m(m,p){d(m,e,p),b(e,i),b(i,n),b(i,a),b(i,r),b(e,o),f&&f.m(e,null)},p(m,p){p&4&&t!==(t=m[2].blocks.length+"")&&ie(n,t),p&4&&l!==(l=new Intl.PluralRules("en-US").select(m[2].blocks.length)==="one"?"block":"blocks")&&ie(r,l),m[11]!==void 0?f?f.p(m,p):(f=et(m),f.c(),f.m(e,null)):f&&(f.d(1),f=null)},d(m){m&&c(e),f&&f.d()}}}function et(s){let e,i,t=s[11]+"",n,a,l=new Intl.PluralRules("en-US").select(s[11])==="one"?"miner":"miners",r;return{c(){e=h("span"),i=I(`produced by 7 `),n=I(t),a=I(` 8 unique 9 `),r=I(l)},l(o){e=g(o,"SPAN",{});var f=C(e);i=O(f,`produced by 10 `),n=O(f,t),a=O(f,` 11 unique 12 `),r=O(f,l),f.forEach(c)},m(o,f){d(o,e,f),b(e,i),b(e,n),b(e,a),b(e,r)},p(o,f){f&4&&t!==(t=o[11]+"")&&ie(n,t),f&4&&l!==(l=new Intl.PluralRules("en-US").select(o[11])==="one"?"miner":"miners")&&ie(r,l)},d(o){o&&c(e)}}}function tt(s){var f;let e,i,t=s[2].transactions.length+"",n,a,l=new Intl.PluralRules("en-US").select(s[2].transactions.length)==="one"?"transaction":"transactions",r,o=((f=s[2].blocks)==null?void 0:f.length)&&!(s[2].number>0n)&&nt();return{c(){e=h("span"),o&&o.c(),i=w(),n=I(t),a=w(),r=I(l)},l(m){e=g(m,"SPAN",{});var p=C(e);o&&o.l(p),i=T(p),n=O(p,t),a=T(p),r=O(p,l),p.forEach(c)},m(m,p){d(m,e,p),o&&o.m(e,null),b(e,i),b(e,n),b(e,a),b(e,r)},p(m,p){var N;(N=m[2].blocks)!=null&&N.length&&!(m[2].number>0n)?o||(o=nt(),o.c(),o.m(e,i)):o&&(o.d(1),o=null),p&4&&t!==(t=m[2].transactions.length+"")&&ie(n,t),p&4&&l!==(l=new Intl.PluralRules("en-US").select(m[2].transactions.length)==="one"?"transaction":"transactions")&&ie(r,l)},d(m){m&&c(e),o&&o.d()}}}function nt(s){let e;return{c(){e=I("and")},l(i){e=O(i,"and")},m(i,t){d(i,e,t)},d(i){i&&c(e)}}}function it(s){let e,i,t,n,a,l,r;return l=new dt({props:{network:s[1],blockNumber:s[10]}}
12),{c(){e=h("span"),i=h("abbr"),t=I("referencing blocks in"),a=I(` 13 tipset 14 `),B(l.$$.fragment),this.h()},l(o){e=g(o,"SPAN",{});var f=C(e);i=g(f,"ABBR",{title:!0});var m=C(i);t=O(m,"referencing blocks in"),m.forEach(c),a=O(f,` 15 tipset 16 `),S(l.$$.fragment,f),f.forEach(c),this.h()},h(){P(i,"title",n="Block "+s[10]+" hash: "+(s[2].previousTipset.cid??""))},m(o,f){d(o,e,f),b(e,i),b(i,t),b(e,a),A(l,e,null),r=!0},p(o,f){(!r||f&4&&n!==(n="Block "+o[10]+" hash: "+(o[2].previousTipset.cid??"")))&&P(i,"title",n);const m={};f&2&&(m.network=o[1]),f&4&&(m.blockNumber=o[10]),l.$set(m)},i(o){r||(k(l.$$.fragment,o),r=!0)},o(o){v(l.$$.fragment,o),r=!1},d(o){o&&c(e),R(l)}}}function Jt(s){let e,i,t;function n(l){s[4](l)}let a={transactions:s[8],transactionsCount:s[9],layout:"inline",headingLevel:s[3]+1,pagination:s[7]};return s[0]!==void 0&&(a.isOpen=s[0]),e=new It({props:a}),qe.push(()=>Ue(e,"isOpen",n)),{c(){B(e.$$.fragment)},l(l){S(e.$$.fragment,l)},m(l,r){A(e,l,r),t=!0},p(l,r){const o={};r&256&&(o.transactions=l[8]),r&512&&(o.transactionsCount=l[9]),r&8&&(o.headingLevel=l[3]+1),r&128&&(o.pagination=l[7]),!i&&r&1&&(i=!0,o.isOpen=l[0],Fe(()=>i=!1)),e.$set(o)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function lt(s){let e,i;return e=new Ot({props:{network:s[1],events:s[5],eventsCount:s[6],layout:Bt.ListDiscrete,headingLevel:s[3]+1,pagination:s[7]}}),{c(){B(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){A(e,t,n),i=!0},p(t,n){const a={};n&2&&(a.network=t[1]),n&32&&(a.events=t[5]),n&64&&(a.eventsCount=t[6]),n&8&&(a.headingLevel=t[3]+1),n&128&&(a.pagination=t[7]),e.$set(a)},i(t){i||(k(e.$$.fragment,t),i=!0)},o(t){v(e.$$.fragment,t),i=!1},d(t){R(e,t)}}}function Wt(s){let e,i,t=s[5]&<(s);return{c(){t&&t.c(),e=Re()},l(n){t&&t.l(n),e=Re()},m(n,a){t&&t.m(n,a),d(n,e,a),i=!0},p(n,a){n[5]?t?(t.p(n,a),a&32&&k(t,1)):(t=lt(n),t.c(),k(t,1),t.m(e.parentNode,e)):t&&(de(),v(t,1,1,()=>{t=null}),be())},i(n){i||(k(t),i=!0)},o(n){v(t),i=!1},d(n){n&&c(e),t&&t.d(n)}}}function Xt(s){let e;return{c(){e=h("span")},l(i){e=g(i,"SPAN",{}),C(e).forEach(c)},m(i,t){d(i,e,t)},p:fe,i:fe,o:fe,d(i){i&&c(e)}}}function Yt(s){let e,i,t,n,a;return t=new Rt({props:{token:{chainId:s[1].chainId,...s[1].nativeCurrency},balance:Number(s[2].baseGasRate)/1e18,showDecimalPlaces:s[1].nativeCurrency.decimals}}),{c(){e=h("span"),i=I("Base fee: "),B(t.$$.fragment),n=I(" / gas unit")},l(l){e=g(l,"SPAN",{});var r=C(e);i=O(r,"Base fee: "),S(t.$$.fragment,r),n=O(r," / gas unit"),r.forEach(c)},m(l,r){d(l,e,r),b(e,i),A(t,e,null),b(e,n),a=!0},p(l,r){const o={};r&2&&(o.token={chainId:l[1].chainId,...l[1].nativeCurrency}),r&4&&(o.balance=Number(l[2].baseGasRate)/1e18),r&2&&(o.showDecimalPlaces=l[1].nativeCurrency.decimals),t.$set(o)},i(l){a||(k(t.$$.fragment,l),a=!0)},o(l){v(t.$$.fragment,l),a=!1},d(l){l&&c(e),R(t)}}}function Zt(s){var Je,We;let e,i,t,n,a=`h${s[3]+1}`,l,r,o='<a href="https://spec.filecoin.io/algorithms/expected_consensus/" target="_blank">Expected Consensus</a>',f,m,p,N,G,Q,$="containing",j,U,J,W,le,se,X,Y,he,ge,ke,ae,Z,$e,ve,Ce,re,x,we,Te,Ne,K,H,M,Ee,ee,Pe,L=`h${s[3]+1}`&&Ve(s);function ze(u,_){return u[2].isCanonical!==void 0?zt:jt}let Le=ze(s),V=Le(s),q=((Je=s[2].blocks)==null?void 0:Je.length)&&xe(Me(s)),F=((We=s[2].transactions)==null?void 0:We.length)&&tt(s),E=s[2].previousTipset&&it(He(s));Y=new Kt({props:{blocks:s[2].blocks,headingLevel:s[3]+1}}),Z=new Pt({props:{query:{tipsetNumber:s[2].number},transactions:s[2].transactions,transactionsCount:s[2].transactionsCount,$$slots:{default:[Jt,({transactions:u,transactionsCount:_,pagination:y})=>({8:u,9:_,7:y}),({transactions:u,transactionsCount:_,pagination:y})=>(u?256:0)|(_?512:0)|(y?128:0)]},$$scope:{ctx:s}}}),x=new Lt({props:{query:{tipsetNumber:s[2].number},$$slots:{default:[Wt,({events:u,eventsCount:_,pagination:y})=>({5:u,6:_,7:y}),({events:u,eventsCount:_,pagination:y})=>(u?32:0)|(_?64:0)|(y?128:0)]},$$scope:{ctx:s}}});const Ge=[Yt,Xt],te=[];function Qe(u,_){return u[2].baseGasRate?0:1}return H=Qe(s),M=te[H]=Ge[H](s),ee=new vt({props:{date:s[2].timestamp}}),{c(){e=h("hr"),i=w(),t=h("section"),n=h("header"),L&&L.c(),l=w(),r=h("span"),r.innerHTML=o,f=w(),m=h("div"),p=h("div"),N=h("span"),V.c(),G=w(),Q=h("span"),Q.textContent=$,j=w(),q&&q.c(),U=w(),F&&F.c(),J=w(),E&&E.c(),W=w(),le=h("hr"),se=w(),X=h("section"),B(Y.$$.fragment),he=w(),ge=h("hr"),ke=w(),ae=h("section"),B(Z.$$.fragment),$e=w(),ve=h("hr"),Ce=w(),re=h("section"),B(x.$$.fragment),we=w(),Te=h("hr"),Ne=w(),K=h("footer"),M.c(),Ee=w(),B(ee.$$.fragment),this.h()},l(u){e=g(u,"HR",{}),i=T(u),t=g(u,"SECTION",{class:!0});var _=C(t);n=g(_,"HEADER",{class:!0});var y=C(n);L&&L.l(y),l=T(y),r=g(y,"SPAN",{class:!0,"data-svelte-h":!0}
16),ue(r)!=="svelte-xxls5"&&(r.innerHTML=o),y.forEach(c),f=T(_),m=g(_,"DIV",{class:!0});var ne=C(m);p=g(ne,"DIV",{class:!0});var D=C(p);N=g(D,"SPAN",{class:!0});var oe=C(N);V.l(oe),oe.forEach(c),G=T(D),Q=g(D,"SPAN",{"data-svelte-h":!0}),ue(Q)!=="svelte-ocqahm"&&(Q.textContent=$),j=T(D),q&&q.l(D),U=T(D),F&&F.l(D),J=T(D),E&&E.l(D),D.forEach(c),ne.forEach(c),_.forEach(c),W=T(u),le=g(u,"HR",{}),se=T(u),X=g(u,"SECTION",{});var me=C(X);S(Y.$$.fragment,me),me.forEach(c),he=T(u),ge=g(u,"HR",{}),ke=T(u),ae=g(u,"SECTION",{});var _e=C(ae);S(Z.$$.fragment,_e),_e.forEach(c),$e=T(u),ve=g(u,"HR",{}),Ce=T(u),re=g(u,"SECTION",{});var pe=C(re);S(x.$$.fragment,pe),pe.forEach(c),we=T(u),Te=g(u,"HR",{}),Ne=T(u),K=g(u,"FOOTER",{class:!0});var Ie=C(K);M.l(Ie),Ee=T(Ie),S(ee.$$.fragment,Ie),Ie.forEach(c),this.h()},h(){P(r,"class","card-annotation"),P(n,"class","bar"),P(N,"class","row inline"),P(p,"class","row wrap"),P(m,"class","card consensus column"),P(t,"class","column"),P(K,"class","footer bar wrap")},m(u,_){d(u,e,_),d(u,i,_),d(u,t,_),b(t,n),L&&L.m(n,null),b(n,l),b(n,r),b(t,f),b(t,m),b(m,p),b(p,N),V.m(N,null),b(p,G),b(p,Q),b(p,j),q&&q.m(p,null),b(p,U),F&&F.m(p,null),b(p,J),E&&E.m(p,null),d(u,W,_),d(u,le,_),d(u,se,_),d(u,X,_),A(Y,X,null),d(u,he,_),d(u,ge,_),d(u,ke,_),d(u,ae,_),A(Z,ae,null),d(u,$e,_),d(u,ve,_),d(u,Ce,_),d(u,re,_),A(x,re,null),d(u,we,_),d(u,Te,_),d(u,Ne,_),d(u,K,_),te[H].m(K,null),b(K,Ee),A(ee,K,null),Pe=!0},p(u,_){var _e,pe;`h${u[3]+1}`?a?ce(a,`h${u[3]+1}`)?(L.d(1),L=Ve(u),a=`h${u[3]+1}`,L.c(),L.m(n,l)):L.p(u,_):(L=Ve(u),a=`h${u[3]+1}`,L.c(),L.m(n,l)):a&&(L.d(1),L=null,a=`h${u[3]+1}`),Le===(Le=ze(u))&&V?V.p(u,_):(V.d(1),V=Le(u),V&&(V.c(),V.m(N,null))),(_e=u[2].blocks)!=null&&_e.length?q?q.p(Me(u),_):(q=xe(Me(u)),q.c(),q.m(p,U)):q&&(q.d(1),q=null),(pe=u[2].transactions)!=null&&pe.length?F?F.p(u,_):(F=tt(u),F.c(),F.m(p,J)):F&&(F.d(1),F=null),u[2].previousTipset?E?(E.p(He(u),_),_&4&&k(E,1)):(E=it(He(u)),E.c(),k(E,1),E.m(p,null)):E&&(de(),v(E,1,1,()=>{E=null}),be());const y={};_&4&&(y.blocks=u[2].blocks),_&8&&(y.headingLevel=u[3]+1),Y.$set(y);const ne={};_&4&&(ne.query={tipsetNumber:u[2].number}),_&4&&(ne.transactions=u[2].transactions),_&4&&(ne.transactionsCount=u[2].transactionsCount),_&5001&&(ne.$$scope={dirty:_,ctx:u}),Z.$set(ne);const D={};_&4&&(D.query={tipsetNumber:u[2].number}),_&4330&&(D.$$scope={dirty:_,ctx:u}),x.$set(D);let oe=H;H=Qe(u),H===oe?te[H].p(u,_):(de(),v(te[oe],1,1,()=>{te[oe]=null}),be(),M=te[H],M?M.p(u,_):(M=te[H]=Ge[H](u),M.c()),k(M,1),M.m(K,Ee));const me={};_&4&&(me.date=u[2].timestamp),ee.$set(me)},i(u){Pe||(k(E),k(Y.$$.fragment,u),k(Z.$$.fragment,u),k(x.$$.fragment,u),k(M),k(ee.$$.fragment,u),Pe=!0)},o(u){v(E),v(Y.$$.fragment,u),v(Z.$$.fragment,u),v(x.$$.fragment,u),v(M),v(ee.$$.fragment,u),Pe=!1},d(u){u&&(c(e),c(i),c(t),c(W),c(le),c(se),c(X),c(he),c(ge),c(ke),c(ae),c($e),c(ve),c(Ce),c(re),c(we),c(Te),c(Ne),c(K)),L&&L.d(u),V.d(),q&&q.d(),F&&F.d(),E&&E.d(),R(Y),R(Z),R(x),te[H].d(),R(ee)}}}function st(s){let e,i,t;return i=new At({props:{ipfsContentId:s[2].cid,format:"middle-truncated"}}),{c(){e=h("small"),B(i.$$.fragment)},l(n){e=g(n,"SMALL",{});var a=C(e);S(i.$$.fragment,a),a.forEach(c)},m(n,a){d(n,e,a),A(i,e,null),t=!0},p(n,a){const l={};a&4&&(l.ipfsContentId=n[2].cid),i.$set(l)},i(n){t||(k(i.$$.fragment,n),t=!0)},o(n){v(i.$$.fragment,n),t=!1},d(n){n&&c(e),R(i)}}}function Ke(s){let e,i,t,n;i=new dt({props:{network:s[1],blockNumber:s[2].number??s[2].cid}});let a=s[2].cid&&st(s);return{c(){e=h(`h${s[3]}`),B(i.$$.fragment),t=w(),a&&a.c()},l(l){e=g(l,(`h${s[3]}`||"null").toUpperCase(),{});var r=C(e);S(i.$$.fragment,r),t=T(r),a&&a.l(r),r.forEach(c)},m(l,r){d(l,e,r),A(i,e,null),b(e,t),a&&a.m(e,null),n=!0},p(l,r){const o={};r&2&&(o.network=l[1]),r&4&&(o.blockNumber=l[2].number??l[2].cid),i.$set(o),l[2].cid?a?(a.p(l,r),r&4&&k(a,1)):(a=st(l),a.c(),k(a,1),a.m(e,null)):a&&(de(),v(a,1,1,()=>{a=null}),be())},i(l){n||(k(i.$$.fragment,l),k(a),n=!0)},o(l){v(i.$$.fragment,l),v(a),n=!1},d(l){l&&c(e),R(i),a&&a.d()}}}function at(s){let e,i="â";return{c(){e=h("abbr"),e.textContent=i,this.h()},l(t){e=g(t,"ABBR",{title:!0,"data-svelte-h":!0}),ue(e)!=="svelte-1soca1d"&&(e.textContent=i),this.h()},h(){P(e,"title","Canonical")},m(t,n){d(t,e,n)},d(t){t&&c(e)}}}function xt(s){let e,i=`h${s[3]}`,t,n=`h${s[3]}`&&Ke(s),a=s[2].isCanonical&&at();return{c(){e=h("div"),n&&n.c(),t=w(),a&&a.c(),this.h()},l(l){e=g(l,"DIV",{class:!0});var r=C(e);n&&n.l(r),t=T(r),a&&a.l(r),r.forEach(c),this.h()},h(){P(e,"class","row inline")},m(l,r){d(l,e,r),n&&n.m(e,null),b(e,t),a&&a.m(e,null)},p(l,r){`h${l[3]}`?i?ce(i,`h${l[3]}`)?(n.d(1),n=Ke(l),i=`h${l[3]}`,n.c(),n.m(e,t)):n.p(l,r):(n=Ke(l),i=`h${l[3]}`,n.c(),n.m(e,t)):i&&(n.d(1),n=null,i=`h${l[3]}`),l[2].isCanonical?a||(a=at(),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:fe,o(l){v(n,l)},d(l){l&&c(e),n&&n.d(l),a&&a.d()}}}function en(s){let e,i,t=s[1].name+"",n,a=s[2].number===0n?" Genesis":"",l,r;
16return{c(){e=h("span"),i=h("abbr"),n=I(t),l=I(a),r=I(" Tipset"),this.h()},l(o){e=g(o,"SPAN",{class:!0});var f=C(e);i=g(f,"ABBR",{title:!0});var m=C(i);n=O(m,t),l=O(m,a),r=O(m," Tipset"),m.forEach(c),f.forEach(c),this.h()},h(){P(i,"title","Tipset: A set of blocks that are mined at the same time."),P(e,"class","card-annotation")},m(o,f){d(o,e,f),b(e,i),b(i,n),b(i,l),b(i,r)},p(o,f){f&2&&t!==(t=o[1].name+"")&&ie(n,t),f&4&&a!==(a=o[2].number===0n?" Genesis":"")&&ie(l,a)},d(o){o&&c(e)}}}function tn(s){let e,i,t;return i=new gt({props:{type:"label",isOpen:!0,canToggle:!1,class:"column",$$slots:{"header-right":[en],title:[xt],default:[Zt]},$$scope:{ctx:s}}}),{c(){e=h("article"),B(i.$$.fragment),this.h()},l(n){e=g(n,"ARTICLE",{class:!0});var a=C(e);S(i.$$.fragment,a),a.forEach(c),this.h()},h(){P(e,"class","card")},m(n,a){d(n,e,a),A(i,e,null),t=!0},p(n,[a]){const l={};a&4111&&(l.$$scope={dirty:a,ctx:n}),i.$set(l)},i(n){t||(k(i.$$.fragment,n),t=!0)},o(n){v(i.$$.fragment,n),t=!1},d(n){n&&c(e),R(i)}}}function nn(s,e,i){let{network:t=pt.get("filecoin")}=e,{tipset:n}=e,{headingLevel:a=3}=e,{showTransactions:l=!1}=e;function r(o){l=o,i(0,l)}return s.$$set=o=>{"network"in o&&i(1,t=o.network),"tipset"in o&&i(2,n=o.tipset),"headingLevel"in o&&i(3,a=o.headingLevel),"showTransactions"in o&&i(0,l=o.showTransactions)},[l,t,n,a,r]}class ln extends ye{constructor(e){super(),De(this,e,nn,tn,ce,{network:1,tipset:2,headingLevel:3,showTransactions:0})}}const sn=s=>({tipset:s&2}),rt=s=>({tipset:s[1]}),an=s=>({tipset:s&2}),ot=s=>({tipset:s[1]});function rn(s){let e;const i=s[7].default,t=ut(i,s,s[11],rt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,a){t&&t.m(n,a),e=!0},p(n,a){t&&t.p&&(!e||a&2050)&&ct(t,i,n,n[11],e?_t(i,n[11],a,sn):mt(n[11]),rt)},i(n){e||(k(t,n),e=!0)},o(n){v(t,n),e=!1},d(n){t&&t.d(n)}}}function on(s){let e;const i=s[7].header,t=ut(i,s,s[11],ot);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,a){t&&t.m(n,a),e=!0},p(n,a){t&&t.p&&(!e||a&2050)&&ct(t,i,n,n[11],e?_t(i,n[11],a,an):mt(n[11]),ot)},i(n){e||(k(t,n),e=!0)},o(n){v(t,n),e=!1},d(n){t&&t.d(n)}}}function fn(s){var r,o;let e,i,t;const n=[{viewOptions:{contentClass:"column"}},{loadingIcon:z[s[0]].icon},{loadingIconName:z[s[0]].name},{loadingMessage:`Retrieving ${s[2].name} tipset from ${z[s[0]].name}...`},{errorMessage:`Couldn't retrieve ${s[2].name} tipset from ${z[s[0]].name}.`},(o=(r={[Oe.Beryx]:s[8],[Oe.Filfox]:s[9]})[s[0]])==null?void 0:o.call(r),{debug:!0}];function a(f){s[10](f)}let l={$$slots:{header:[on],default:[rn,({result:f})=>({1:f}),({result:f})=>f?2:0]},$$scope:{ctx:s}};for(let f=0;f<n.length;f+=1)l=je(l,n[f]);return s[1]!==void 0&&(l.result=s[1]),e=new Ct({props:l}),qe.push(()=>Ue(e,"result",a)),{c(){B(e.$$.fragment)},l(f){S(e.$$.fragment,f)},m(f,m){A(e,f,m),t=!0},p(f,[m]){var N,G;const p=m&13?kt(n,[n[0],m&1&&{loadingIcon:z[f[0]].icon},m&1&&{loadingIconName:z[f[0]].name},m&5&&{loadingMessage:`Retrieving ${f[2].name} tipset from ${z[f[0]].name}...`},m&5&&{errorMessage:`Couldn't retrieve ${f[2].name} tipset from ${z[f[0]].name}.`},$t((G=(N={[Oe.Beryx]:f[8],[Oe.Filfox]:f[9]})[f[0]])==null?void 0:G.call(N)),n[6]]):{};m&2050&&(p.$$scope={dirty:m,ctx:f}),!i&&m&2&&(i=!0,p.result=f[1],Fe(()=>i=!1)),e.$set(p)},i(f){t||(k(e.$$.fragment,f),t=!0)},o(f){v(e.$$.fragment,f),t=!1},d(f){R(e,f)}}}function un(s,e,i){let t;Ae(s,qt,$=>i(6,t=$));let{$$slots:n={},$$scope:a}=e,{network:l}=e,{query:r}=e,{filecoinTransactionProvider:o}=e,{networkProvider:f}=e,{publicClient:m}=e,{tipset:p}=e;const N=()=>({fromQuery:"tipsetNumber"in r?Se({queryKey:["Block",{filecoinTransactionProvider:o,chainId:l.chainId,tipsetNumber:Number(r.tipsetNumber)}],queryFn:async({queryKey:[$,{chainId:j,tipsetNumber:U}]})=>{const{baseUrls:J,getTipsetByHeight:W}=await Be(async()=>{const{baseUrls:le,getTipsetByHeight:se}=await import("../chunks/FilecoinTransactions.BFP7VJXm.js").then(X=>X.r);return{baseUrls:le,getTipsetByHeight:se}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url);return await W(U,{baseUrl:J[j]})},select:$=>Ze($[0])}):"tipsetCid"in r?Se({queryKey:["Block",{filecoinTransactionProvider:o,chainId:l.chainId,tipsetCid:r.tipsetCid}],queryFn:async({queryKey:[$,{tipsetCid:j}]})=>{const{getTipsetByHash:U}=await Be(async()=>{const{getTipsetByHash:J}=await import("../chunks/FilecoinTransactions.BFP7VJXm.js").then(W=>W.r);return{getTipsetByHash:J}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url);return await U(j)},select:$=>Ze($[0])}):void 0}),G=()=>({fromQuery:"tipsetNumber"in r?Se({queryKey:["Block",{filecoinTransactionProvider:o,tipsetNumber:Number(r.tipsetNumber)}],queryFn:async()=>{const{getTipset:$}=await Be(async()=>{const{getTipset:U}=await import("../chunks/index.Cbj2_x1x.js");return{getTipset:U}},__vite__mapDeps([39,40]),import.meta.url),{baseUrls:j}=await Be(async()=>{const{baseUrls:U}=await import("../chunks/index.Cbj2_x1x.js");return{baseUrls:U}},__vite__mapDeps([39,40]),import.meta.url);return await $({height:Number(r.tipsetNumber)},{baseUrl:j[l.chainId]})},select:$=>St($)}):"tipsetCid"in r?Se({queryKey:["Block",{filecoinTransactionProvider:o,tipsetCid:r.tipsetCid}],queryFn:async()=>{throw new Error(`The ${z[o].name} API doesn't support retrieving tipset by CID.`)}}):void 0});function Q($){p=$,i(1,p)}return s.$$set=$=>{i(12,e=je(je({},e),Xe($))),"network"in $&&i(2,l=$.network),"query"in $&&i(3,r=$.query),"f
16ilecoinTransactionProvider"in $&&i(0,o=$.filecoinTransactionProvider),"networkProvider"in $&&i(4,f=$.networkProvider),"publicClient"in $&&i(5,m=$.publicClient),"tipset"in $&&i(1,p=$.tipset),"$$scope"in $&&i(11,a=$.$$scope)},s.$$.update=()=>{i(0,o=e.filecoinTransactionProvider??t.filecoinTransactionProvider),i(4,f=e.networkProvider??t.rpcNetwork),s.$$.dirty&20&&i(5,m=l&&f&&Ft({network:l,networkProvider:f}))},e=Xe(e),[o,p,l,r,f,m,t,n,N,G,Q,a]}class cn extends ye{constructor(e){super(),De(this,e,un,fn,ce,{network:2,query:3,filecoinTransactionProvider:0,networkProvider:4,publicClient:5,tipset:1})}}function ft(s){let e,i;return e=new ln({props:{network:s[0],tipset:s[4],headingLevel:2}}),{c(){B(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){A(e,t,n),i=!0},p(t,n){const a={};n&1&&(a.network=t[0]),n&16&&(a.tipset=t[4]),e.$set(a)},i(t){i||(k(e.$$.fragment,t),i=!0)},o(t){v(e.$$.fragment,t),i=!1},d(t){R(e,t)}}}function mn(s){let e,i,t=s[4]&&ft(s);return{c(){t&&t.c(),e=Re()},l(n){t&&t.l(n),e=Re()},m(n,a){t&&t.m(n,a),d(n,e,a),i=!0},p(n,a){n[4]?t?(t.p(n,a),a&16&&k(t,1)):(t=ft(n),t.c(),k(t,1),t.m(e.parentNode,e)):t&&(de(),v(t,1,1,()=>{t=null}),be())},i(n){i||(k(t),i=!0)},o(n){v(t),i=!1},d(n){n&&c(e),t&&t.d(n)}}}function _n(s){let e,i,t;function n(l){s[3](l)}let a={network:s[0],query:s[1].filecoinTipsetCid?{tipsetCid:s[1].filecoinTipsetCid}:{tipsetNumber:s[1].blockNumber},$$slots:{default:[mn,({tipset:l})=>({4:l}),({tipset:l})=>l?16:0]},$$scope:{ctx:s}};return s[2].filecoinTipset!==void 0&&(a.tipset=s[2].filecoinTipset),e=new cn({props:a}),qe.push(()=>Ue(e,"tipset",n)),{c(){B(e.$$.fragment)},l(l){S(e.$$.fragment,l)},m(l,r){A(e,l,r),t=!0},p(l,[r]){const o={};r&1&&(o.network=l[0]),r&2&&(o.query=l[1].filecoinTipsetCid?{tipsetCid:l[1].filecoinTipsetCid}:{tipsetNumber:l[1].blockNumber}),r&49&&(o.$$scope={dirty:r,ctx:l}),!i&&r&4&&(i=!0,o.tipset=l[2].filecoinTipset,Fe(()=>i=!1)),e.$set(o)},i(l){t||(k(e.$$.fragment,l),t=!0)},o(l){v(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function pn(s,e,i){let t,n,a;Ae(s,bt,r=>i(0,t=r)),Ae(s,ht,r=>i(1,n=r)),Ae(s,Ye,r=>i(2,a=r));function l(r){s.$$.not_equal(a.filecoinTipset,r)&&(a.filecoinTipset=r,Ye.set(a))}return[t,n,a,l]}class Bn extends ye{constructor(e){super(),De(this,e,pn,_n,ce,{})}}export{Bn as component,On as universal};
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.