PageSourceSearch

https://www.lighthouseacademy.ai/_next/static/chunks/2474.c07118aea2e35bab.js

js lighthouseacademy.ai collected 2026-10-04 23:38:47 UTC 4,902 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2474],{57038:function(t,e,a){function r(t,e){var a,r,n;t.accDescr&&(null===(a=e.setAccDescription)||void 0===a||a.call(e,t.accDescr)),t.accTitle&&(null===(r=e.setAccTitle)||void 0===r||r.call(e,t.accTitle)),t.title&&(null===(n=e.setDiagramTitle)||void 0===n||n.call(e,t.title))}a.d(e,{A:function(){return r}}),(0,a(99573).eW)(r,"populateCommonDb")},22474:function(t,e,a){a.d(e,{diagram:function(){return y}});var r,n=a(66462),o=a(57038),l=a(42877),c=a(66764),i=a(99573),s=a(18442),d=c.vZ.packet,p=(r=class{getConfig(){let t=(0,l.Rb)({...d,...(0,c.iE)().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){(0,c.ZH)(),this.packet=[]}constructor(){this.packet=[],this.setAccTitle=c.GN,this.getAccTitle=c.eu,this.setDiagramTitle=c.g2,this.getDiagramTitle=c.Kr,this.getAccDescription=c.Mx,this.setAccDescription=c.U$}},(0,i.eW)(r,"PacketDB"),r),k=(0,i.eW)((t,e)=>{(0,o.A)(t,e);let a=-1,r=[],n=1,{bitsPerRow:l}=e.getConfig();for(let{start:o,end:c,bits:s,label:d}of t.blocks){if(void 0!==o&&void 0!==c&&c<o)throw Error("Packet block ".concat(o," - ").concat(c," is invalid. End must be greater than start."));if(null!=o||(o=a+1),o!==a+1)throw Error("Packet block ".concat(o," - ").concat(null!=c?c:o," is not contiguous. It should start from ").concat(a+1,"."));if(0===s)throw Error("Packet block ".concat(o," is invalid. Cannot have a zero bit field."));for(null!=c||(c=o+(null!=s?s:1)-1),null!=s||(s=c-o+1),a=c,i.cM.debug("Packet block ".concat(o," - ").concat(a," with label ").concat(d));r.length<=l+1&&e.getPacket().length<1e4;){let[t,a]=h({start:o,end:c,bits:s,label:d},n,l);if(r.push(t),t.end+1===n*l&&(e.pushWord(r),r=[],n++),!a)break;({start:o,end:c,bits:s,label:d}=a)}}e.pushWord(r)},"populate"),h=(0,i.eW)((t,e,a)=>{if(void 0===t.start)throw Error("start should have been set during first phase");if(void 0===t.end)throw Error("end should have been set during first phase");if(t.start>t.end)throw Error("Block start ".concat(t.start," is greater than block end ").concat(t.end,"."));if(t.end+1<=e*a)return[t,void 0];let r=e*a-1,n=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),u={parser:{yy:void 0},parse:(0,i.eW)(async t=>{var e;let a=await (0,s.Qc)("packet",t),r=null===(e=u.parser)||void 0===e?void 0:e.yy;if(!(r instanceof p))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");i.cM.debug(a),k(a,r)},"parse")},b=(0,i.eW)((t,e,a,r)=>{let o=r.db,l=o.getConfig(),{rowHeight:i,paddingY:s,bitWidth:d,bitsPerRow:p}=l,k=o.getPacket(),h=o.getDiagramTitle(),u=i+s,b=u*(k.length+1)-(h?0:i),g=d*p+2,y=(0,n.P)(e);for(let[t,e]of(y.attr("viewBox","0 0 ".concat(g," ").concat(b)),(0,c.v2)(y,b,g,l.useMaxWidth),k.entries()))f(y,e,t,l);y.append("text").text(h).attr("x",g/2).attr("y",b-u/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),f=(0,i.eW)((t,e,a,r)=>{let{rowHeight:n,paddingX:o,paddingY:l,bitWidth:c,bitsPerRow:i,showBits:s}=r,d=t.append("g"),p=a*(n+l)+l;for(let t of e){let e=t.start%i*c+1,a=(t.end-t.start+1)*c-o;if(d.append("rect").attr("x",e).attr("y",p).attr("width",a).attr("height",n).attr("class","packetBlock"),d.append("text").attr("x",e+a/2).attr("y",p+n/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(t.label),!s)continue;let r=t.end===t.start,l=p-2;d.append("text").attr("x",e+(r?a/2:0)).attr("y",l).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",r?"middle":"start").text(t.start),r||d.append("text").attr("x",e+a).attr("y",l).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(t.end)}},"drawWord"),g={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillC
1olor:"#efefef"},y={parser:u,get db(){return new p},renderer:{draw:b},styles:(0,i.eW)(function(){let{packet:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,l.Rb)(g,t);return"\n	.packetByte {\n		font-size: ".concat(e.byteFontSize,";\n	}\n	.packetByte.start {\n		fill: ").concat(e.startByteColor,";\n	}\n	.packetByte.end {\n		fill: ").concat(e.endByteColor,";\n	}\n	.packetLabel {\n		fill: ").concat(e.labelColor,";\n		font-size: ").concat(e.labelFontSize,";\n	}\n	.packetTitle {\n		fill: ").concat(e.titleColor,";\n		font-size: ").concat(e.titleFontSize,";\n	}\n	.packetBlock {\n		stroke: ").concat(e.blockStrokeColor,";\n		stroke-width: ").concat(e.blockStrokeWidth,";\n		fill: ").concat(e.blockFillColor,";\n	}\n	")},"styles")}}}]);

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.