PageSourceSearch

https://multicolore.ca/_app/immutable/chunks/Timeline.ucHx2sw-.mjs

js multicolore.ca collected 2026-10-06 03:08:33 UTC 13,126 bytes, 1 lines download raw bytes

1import{s as He,c as ae,h as Se,f as K,r as Oe,l as qe,n as je}from"./5.B5pAusIl.mjs";import{S as Be,i as Me,e as ie,f as G,t as M,b as P,j as k,c as X,a as ee,m as te,d as le,l as S,s as C,n as O,o as q,p as N,q as A,r as I,g as be,h as ye,k as Q,u as xe,v as we,H as De,E as Pe,J as oe,B as ce}from"./index.ftLbam5F.mjs";import{e as V}from"./each.sFMPftKf.mjs";import{b as F,f as Ce,e as Y,s as Ne,T as Ve}from"./ArticleType.DXLwwE0H.mjs";import{s as ze,r as Ue,b as Fe}from"./PageHeader.W3DaKUJr.mjs";import{t as Z}from"./index.nA8Ofxz6.mjs";import{w as J,m as Re,c as Ge,e as Je}from"./withGet.CzJrmu7n.mjs";import{a as We}from"./create.BUc4Dmor.mjs";import{s as Ye}from"./lifecycle.CHSGFh45.mjs";import{d as Ze,w as ue}from"./entry.C9r210Sz.mjs";import{M as Ke}from"./Module.BmPycspV.mjs";import{T as Qe}from"./TwoColumns.DRkMUVlw.mjs";var fe=Object.prototype.hasOwnProperty;function he(n,e,l){for(l of n.keys())if(R(l,e))return l}function R(n,e){var l,t,s;if(n===e)return!0;if(n&&e&&(l=n.constructor)===e.constructor){if(l===Date)return n.getTime()===e.getTime();if(l===RegExp)return n.toString()===e.toString();if(l===Array){if((t=n.length)===e.length)for(;t--&&R(n[t],e[t]););return t===-1}if(l===Set){if(n.size!==e.size)return!1;for(t of n)if(s=t,s&&typeof s=="object"&&(s=he(e,s),!s)||!e.has(s))return!1;return!0}if(l===Map){if(n.size!==e.size)return!1;for(t of n)if(s=t[0],s&&typeof s=="object"&&(s=he(e,s),!s)||!R(t[1],e.get(s)))return!1;return!0}if(l===ArrayBuffer)n=new Uint8Array(n),e=new Uint8Array(e);else if(l===DataView){if((t=n.byteLength)===e.byteLength)for(;t--&&n.getInt8(t)===e.getInt8(t););return t===-1}if(ArrayBuffer.isView(n)){if((t=n.byteLength)===e.byteLength)for(;t--&&n[t]===e[t];);return t===-1}if(!l||typeof n=="object"){t=0;for(l in n)if(fe.call(n,l)&&++t&&!fe.call(e,l)||!(l in e)||!R(n[l],e[l]))return!1;return Object.keys(e).length===t}}return n!==n&&e!==e}const Xe={exclude:["h1"],scrollOffset:0,scrollBehaviour:"smooth",activeType:"lowest"};function et(n){const e={...Xe,...n},{selector:l,exclude:t,activeType:s,scrollBehaviour:c,scrollOffset:b,headingFilterFn:v,scrollFn:E}=e,{name:y}=Ge("table-of-contents"),d=["h1","h2","h3","h4","h5","h6"];let u=[],r=[],i={},h={};const g=J.writable([]),m=J.writable([]);let o=null,x=null,a=null;const H=.01,B=J(ue([])),D=J(ue([]));function j(_){let f=[],w=[];const p=d.filter($=>!t.includes($)),T=_==null?void 0:_.querySelectorAll(p.join(", "));return T==null||T.forEach($=>{if(!$.id){const L=$.innerText.replaceAll(/[^a-zA-Z0-9 ]/g,"").replaceAll(" ","-").toLowerCase();$.id=`${L}`}f.push($)}),f=[...f],v&&(f=f.filter($=>v($))),w=[].slice.call(_==null?void 0:_.getElementsByTagName("*")),w=w.filter($=>p.includes($.nodeName.toLowerCase())||$.children.length===0),w.splice(0,w.indexOf(f[0])),{headingsList:f,elementsList:w}}function z(_,f=0){const w=[];let p=0;for(;p<_.length;){const T={title:_[p].innerText,index:f+p,id:_[p].id,node:_[p],children:[]};let $=p+1;for(;$<_.length&&parseInt(_[$].tagName.charAt(1))>parseInt(_[p].tagName.charAt(1));)$++;T.children=z(_.slice(p+1,$),f+p+1),w.push(T),p=$}return w}function Ee(_){const f=document.getElementById(_);if(f){const p=f.getBoundingClientRect().top+window.scrollY-b;window.scrollTo({top:p,behavior:c})}}const ne=s==="highest-parents"||s==="lowest-parents"||s==="all-parents";function $e(_){for(let p=0;p<_.length;p++){const T=r.indexOf(_[p].target),$=i[T];let L=m.get();_[p].intersectionRatio>=H?L.indexOf(T)===-1&&(L=[...L,T],m.set(L),ne&&h[$]&&g.update(U=>[...U,...h[$]])):(L=L.filter(U=>U!==T),m.set(L),ne&&h[$]&&g.update(U=>{var re;const W=[...U];return(re=h[$])==null||re.forEach(Te=>{const Ae=W.indexOf(Te);W.splice(Ae,1)}),W}))}const f=Array.from(new Set(m.get().map(p=>i[p])));let w;if(f.length===0)w=[];else switch(s){case"highest":w=[Math.min(...f)];break;case"lowest":w=[Math.max(...f)];break;case"all":w=f;break;case"all-parents":{const p=f.flatMap(T=>h[T]??[]);w=[...f,...p];break}default:{const p=s==="highest-parents"?Math.min(...f):Math.max(...f);h[p]?w=[...h[p],p]:w=[p]}}B.set(w)}function se(){a==null||a.disconnect(),u.forEach((_,f)=>{h[f]=null;let w=_.tagName,p=[];for(let L=f-1;L>=0;L--)u[L].tagName<w&&(w=u[L].tagName,p=[...p,L]);h[f]=p.length>0?p:null;const T=r.indexOf(u[f]),$=f!==u.length-1?r.indexOf(u[f+1]):r.length;for(let L=T;L<$;L++)i[L]=f}),D.set(z(u)),s!=="none"&&(a=new IntersectionObserver($e,{root:null,threshold:H}),r.forEach(_=>a==null?void 0:a.observe(_)))}function Le(){const _=document.querySelector(l);
1if(!_)return;const{headingsList:f,elementsList:w}=j(_);R(u,f)||(u=f,r=w,h={},i={},se())}Ye(()=>{if(o=document.querySelector(l),!!o)return{headingsList:u,elementsList:r}=j(o),se(),x=new MutationObserver(Le),x.observe(o,{childList:!0,subtree:!0}),()=>{a==null||a.disconnect(),x==null||x.disconnect()}});const ke=Re(y("item"),{stores:B,returned:_=>f=>{const w=u.findIndex(T=>T.id===f),p=_.includes(w);return{"data-id":f,"data-active":p?"":void 0}},action:_=>{const f=_.getAttribute("data-id");return{destroy:Je(We(_,"click",p=>{p.preventDefault(),E?E(`${f}`):Ee(`${f}`),f&&history.pushState({},"",`#${f}`)}))}}}),Ie=Ze(B,_=>f=>{const w=u.findIndex(p=>p.id===f);return _.includes(w)});return{elements:{item:ke},states:{activeHeadingIdxs:B,headingsTree:D},helpers:{isActive:Ie}}}function de(n,e,l){const t=n.slice();t[12]=e[l];const s=t[3](t[12].id);return t[13]=s,t}function ge(n,e,l){const t=n.slice();t[16]=e[l];const s=t[9](t[16]);return t[17]=s,t}function pe(n,e,l){const t=n.slice();t[20]=e[l];const s=t[10](t[20])??{};return t[21]=s.color,t[22]=s.label,t}function tt(n){let e,l;return e=new Ke({props:{entry:n[0],$$slots:{default:[nt]},$$scope:{ctx:n}}}),{c(){X(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,s){te(e,t,s),l=!0},p(t,s){const c={};s&1&&(c.entry=t[0]),s&33554447&&(c.$$scope={dirty:s,ctx:t}),e.$set(c)},i(t){l||(M(e.$$.fragment,t),l=!0)},o(t){P(e.$$.fragment,t),l=!1},d(t){le(e,t)}}}function me(n){var d;let e,l,t=((d=n[20])==null?void 0:d.shortText)+"",s,c,b,v,E,y;return v=new Ve({props:{label:n[22],color:"white"}}),{c(){e=S("li"),l=S("p"),s=xe(t),c=C(),b=S("div"),X(v.$$.fragment),E=C(),this.h()},l(u){e=O(u,"LI",{class:!0});var r=q(e);l=O(r,"P",{class:!0});var i=q(l);s=we(i,t),i.forEach(k),c=N(r),b=O(r,"DIV",{class:!0});var h=q(b);ee(v.$$.fragment,h),h.forEach(k),E=N(r),r.forEach(k),this.h()},h(){A(l,"class","max-w-2/3 text-20 leading-95 bp:max-w-1/2 bp:text-32"),A(b,"class","justify-self-end"),A(e,"class","_event grid h-80 w-full "+n[21]+" p-12 grid-stack bp:h-124")},m(u,r){G(u,e,r),I(e,l),I(l,s),I(e,c),I(e,b),te(v,b,null),I(e,E),y=!0},p:je,i(u){y||(M(v.$$.fragment,u),y=!0)},o(u){P(v.$$.fragment,u),y=!1},d(u){u&&k(e),le(v)}}}function _e(n){let e,l,t=n[16].year+"",s,c,b,v,E,y=V(n[17]),d=[];for(let r=0;r<y.length;r+=1)d[r]=me(pe(n,y,r));const u=r=>P(d[r],1,1,()=>{d[r]=null});return{c(){e=S("li"),l=S("h3"),s=xe(t),c=C(),b=S("ul");for(let r=0;r<d.length;r+=1)d[r].c();v=C(),this.h()},l(r){e=O(r,"LI",{class:!0});var i=q(e);l=O(i,"H3",{class:!0});var h=q(l);s=we(h,t),h.forEach(k),c=N(i),b=O(i,"UL",{class:!0});var g=q(b);for(let m=0;m<d.length;m+=1)d[m].l(g);g.forEach(k),v=N(i),i.forEach(k),this.h()},h(){A(l,"class","text-40 bp:text-72 bp:leading-95"),A(b,"class","flex flex-col pt-12 bp:pt-16"),A(e,"class","_block opacity-0")},m(r,i){G(r,e,i),I(e,l),I(l,s),I(e,c),I(e,b);for(let h=0;h<d.length;h+=1)d[h]&&d[h].m(b,null);I(e,v),E=!0},p(r,i){if(i&1552){y=V(r[17]);let h;for(h=0;h<y.length;h+=1){const g=pe(r,y,h);d[h]?(d[h].p(g,i),M(d[h],1)):(d[h]=me(g),d[h].c(),M(d[h],1),d[h].m(b,null))}for(be(),h=y.length;h<d.length;h+=1)u(h);ye()}},i(r){if(!E){for(let i=0;i<y.length;i+=1)M(d[i]);E=!0}},o(r){d=d.filter(Boolean);for(let i=0;i<d.length;i+=1)P(d[i]);E=!1},d(r){r&&k(e),Q(d,r)}}}function ve(n){let e,l,t,s=n[12].node.innerHTML+"",c,b,v,E,y=[{href:c="#"+n[12].id},{class:"text-16 text-blue-grey transition-all hover:text-black data-[active]:text-20 data-[active]:text-black bp:text-20 bp:hover:text-32 bp:data-[active]:text-32"},n[13]],d={};for(let u=0;u<y.length;u+=1)d=qe(d,y[u]);return{c(){e=S("li"),l=S("a"),t=new De(!1),b=C(),this.h()},l(u){e=O(u,"LI",{class:!0});var r=q(e);l=O(r,"A",{href:!0,class:!0});var i=q(l);t=Pe(i,!1),i.forEach(k),b=N(r),r.forEach(k),this.h()},h(){t.a=null,oe(l,d),ce(l,"svelte-q0osd5",!0),A(e,"class","flex h-32 items-center")},m(u,r){G(u,e,r),I(e,l),t.m(s,l),I(e,b),v||(E=K(n[13].action(l)),v=!0)},p(u,r){r&4&&s!==(s=u[12].node.innerHTML+"")&&t.p(s),oe(l,d=Ce(y,[r&4&&c!==(c="#"+u[12].id)&&{href:c},{class:"text-16 text-blue-grey transition-all hover:text-black data-[active]:text-20 data-[active]:text-black bp:text-20 bp:hover:text-32 bp:data-[active]:text-32"},r&12&&u[13]])),ce(l,"svelte-q0osd5",!0)},d(u){u&&k(e),v=!1,E()}}}function lt(n){let e,l,t,s,c,b,v,E,y,d,u,r=V(n[4]),i=[];for(let o=0;o<r.length;o+=1)i[o]=_e(ge(n,r,o));const h=o=>P(i[o],1,1,()=>{i[o]=null});let g=V(n[2]),m=[];for(let o=0;o<g.length;o+=1)m[o]=ve(de(n,g,o));return{c(){e=S("div"),l=S("ul");for(let o=0;o<i.length;o+=1)i[o].c();t=C(),s=S("nav"),c=S("ul");for(let o=0;o<m.length;o+=1)m[o].c();b=C(),v=S("div"),E=S("div"),this.h()},l(o){e=O(o,"DIV",{id:!0,class:!0,"data-scrolled":!0});var x=q(e);l=O(x,"UL",{class:!0});var a=q(l);for(let j=0;j<i.length;j+=1)i[j].l(a);a.forEach(k),t=N(x),s=O(x,"NAV",{class:!0});var H=q(s);c=O(H,"UL",{class:!0});var B=q(c);for(let j=0;j<m.length;j+=1)m[j].l(B);B.forEach(k),b=N(H),v=O(H,"DIV",{id:!0,class:!0,role:!0});var D=q(v);E=O(D,"DIV",{class:!0}
1),q(E).forEach(k),D.forEach(k),H.forEach(k),x.forEach(k),this.h()},h(){A(l,"class","flex flex-col gap-48 pb-240 bp:gap-64 bp:pb-328"),A(c,"class","flex flex-col items-end justify-between pr-8"),A(E,"class","relative w-full bg-black"),A(v,"id","scrollbar"),A(v,"class","absolute right-0 top-0 w-4 bg-blue-grey"),A(v,"role","presentation"),A(s,"class","sticky top-0 z-10 h-[inherit] opacity-0 *:h-full"),A(e,"id","timeline"),A(e,"class","grid h-400 grid-cols-[1fr_5.4rem] gap-16 overflow-y-scroll scrollbar-hide bp:h-600 bp:grid-cols-[1fr_9.6rem] bp:gap-100 svelte-q0osd5"),A(e,"data-scrolled",rt)},m(o,x){G(o,e,x),I(e,l);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(l,null);I(e,t),I(e,s),I(s,c);for(let a=0;a<m.length;a+=1)m[a]&&m[a].m(c,null);I(s,b),I(s,v),I(v,E),n[11](E),y=!0,d||(u=[K(n[7].call(null,e)),K(n[8].call(null,e))],d=!0)},p(o,x){if(x&1552){r=V(o[4]);let a;for(a=0;a<r.length;a+=1){const H=ge(o,r,a);i[a]?(i[a].p(H,x),M(i[a],1)):(i[a]=_e(H),i[a].c(),M(i[a],1),i[a].m(l,null))}for(be(),a=r.length;a<i.length;a+=1)h(a);ye()}if(x&12){g=V(o[2]);let a;for(a=0;a<g.length;a+=1){const H=de(o,g,a);m[a]?m[a].p(H,x):(m[a]=ve(H),m[a].c(),m[a].m(c,null))}for(;a<m.length;a+=1)m[a].d(1);m.length=g.length}},i(o){if(!y){for(let x=0;x<r.length;x+=1)M(i[x]);y=!0}}
1,o(o){i=i.filter(Boolean);for(let x=0;x<i.length;x+=1)P(i[x]);y=!1},d(o){o&&k(e),Q(i,o),Q(m,o),n[11](null),d=!1,Oe(u)}}}function nt(n){let e,l;return e=new Qe({props:{title:n[0].displayTitle,$$slots:{default:[lt]},$$scope:{ctx:n}}}),{c(){X(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,s){te(e,t,s),l=!0},p(t,s){const c={};s&1&&(c.title=t[0].displayTitle),s&33554446&&(c.$$scope={dirty:s,ctx:t}),e.$set(c)},i(t){l||(M(e.$$.fragment,t),l=!0)},o(t){P(e.$$.fragment,t),l=!1},d(t){le(e,t)}}}function st(n){var s;let e,l,t=((s=n[4])==null?void 0:s.length)&&tt(n);return{c(){t&&t.c(),e=ie()},l(c){t&&t.l(c),e=ie()},m(c,b){t&&t.m(c,b),G(c,e,b),l=!0},p(c,[b]){var v;(v=c[4])!=null&&v.length&&t.p(c,b)},i(c){l||(M(t),l=!0)},o(c){P(t),l=!1},d(c){c&&k(e),t&&t.d(c)}}}const rt="false";function at(n,e,l){let t,s,{entry:c}=e;const b=c.years,{elements:{item:v},states:{headingsTree:E}}=et({selector:"#timeline",activeType:"highest",scrollFn:g=>{const m=document.getElementById("timeline"),o=document.getElementById(g);m&&o&&m.scrollTo({top:o.offsetTop-m.offsetTop-48,behavior:"smooth"})}});ae(n,v,g=>l(3,s=g)),ae(n,E,g=>l(2,t=g));let y;const d=g=>({destroy:ze(Ue(({y:o})=>{const x=o.current>0&&o.current<o.scrollLength;x.toString()!==g.dataset.scrolled&&(g.dataset.scrolled=x.toString());const a=g.clientHeight/o.scrollLength,H=(1-a)*o.progress;l(1,y.style.height=`${a*100}%`,y),l(1,y.style.top=`${H*100}%`,y)}),{container:g})}),u=g=>{const m=g.querySelectorAll("._block"),o=g.querySelectorAll("nav"),x=.2,a=.05;return{destroy:Fe({enter:()=>{m==null||m.forEach((B,D)=>{B.style.opacity="1";const j=B.querySelector("h3"),z=B.querySelectorAll("._event");j&&F(j,{y:[100,0],opacity:[0,1]},{duration:1.2,delay:x*D,easing:Y}),z.length&&F(z,{y:[100,0],opacity:[0,1]},{duration:1.2,delay:Ne(a,{start:x*D}),easing:Y})}),F(o,{x:[-10,0],opacity:[0,1]},{duration:1.2,easing:Y})},exit:()=>{F(m,{opacity:[1,0]},{duration:.2}),F(o,{x:[0,-10],opacity:[1,0]},{duration:.2})}},{target:g,offset:["start end","100px end"]})}},r=g=>g.children,i=g=>{switch(g.eventType){case"launch":return{color:"bg-orange",label:Z("events.launch")};case"creation":return{color:"bg-pink",label:Z("events.creation")};case"partnership":return{color:"bg-yellow",label:Z("events.partnership")}}};function h(g){Se[g?"unshift":"push"](()=>{y=g,l(1,y)})}return n.$$set=g=>{"entry"in g&&l(0,c=g.entry)},[c,y,t,s,b,v,E,d,u,r,i,h]}class bt extends Be{constructor(e){super(),Me(this,e,at,st,He,{entry:0})}}export{bt as default};

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.