PageSourceSearch

https://slidesquad.ai/1864.7ba13e0a4eca82f0.js

js slidesquad.ai collected 2026-10-05 15:05:21 UTC 4,405 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkSlideSquad=self.webpackChunkSlideSquad||[]).push([[1864],{31864:(U,b,h)=>{h.r(b),h.d(b,{diagram:()=>K});var C=h(10467),P=h(39089),y=h(63088),v=h(78485),l=h(99317),p=h(26526),w=h(44756),x=l.UI.packet,E=class{constructor(){this.packet=[],this.setAccTitle=l.SV,this.getAccTitle=l.iN,this.setDiagramTitle=l.ke,this.getDiagramTitle=l.ab,this.getAccDescription=l.m7,this.setAccDescription=l.EI}static{(0,p.K2)(this,"PacketDB")}getConfig(){const t=(0,v.$t)({...x,...(0,l.zj)().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){(0,l.IU)(),this.packet=[]}},D=(0,p.K2)((t,e)=>{(0,y.S)(t,e);let s=-1,r=[],i=1;const{bitsPerRow:c}=e.getConfig();for(let{start:a,end:n,bits:k,label:d}of t.blocks){if(void 0!==a&&void 0!==n&&n<a)throw new Error(`Packet block ${a} - ${n} is invalid. End must be greater than start.`);if(a??=s+1,a!==s+1)throw new Error(`Packet block ${a} - ${n??a} is not contiguous. It should start from ${s+1}.`);if(0===k)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(n??=a+(k??1)-1,k??=n-a+1,s=n,p.Rm.debug(`Packet block ${a} - ${s} with label ${d}`);r.length<=c+1&&e.getPacket().length<1e4;){const[u,o]=S({start:a,end:n,bits:k,label:d},i,c);if(r.push(u),u.end+1===i*c&&(e.pushWord(r),r=[],i++),!o)break;({start:a,end:n,bits:k,label:d}=o)}}e.pushWord(r)},"populate"),S=(0,p.K2)((t,e,s)=>{if(void 0===t.start)throw new Error("start should have been set during first phase");if(void 0===t.end)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*s)return[t,void 0];const r=e*s-1,i=e*s;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),B={parser:{yy:void 0},parse:(0,p.K2)(function(){var t=(0,C.A)(function*(e){const s=yield(0,w.qg)("packet",e),r=B.parser?.yy;if(!(r instanceof E))throw new 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.");p.Rm.debug(s),D(s,r)});return function(e){return t.apply(this,arguments)}}(),"parse")},A=(0,p.K2)((t,e,s,r)=>{const i=r.db,c=i.getConfig(),{rowHeight:a,paddingY:n,bitWidth:k,bitsPerRow:d}=c,u=i.getPacket(),o=i.getDiagramTitle(),f=a+n,_=f*(u.length+1)-(o?0:a),g=k*d+2,m=(0,P.D)(e);m.attr("viewBox",`0 0 ${g} ${_}`),(0,l.a$)(m,_,g,c.useMaxWidth);for(const[F,I]of u.entries())T(m,I,F,c);m.append("text").text(o).attr("x",g/2).attr("y",_-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=(0,p.K2)((t,e,s,{rowHeight:r,paddingX:i,paddingY:c,bitWidth:a,bitsPerRow:n,showBits:k})=>{const d=t.append("g"),u=s*(r+c)+c;for(const o of e){const f=o.start%n*a+1,_=(o.end-o.start+1)*a-i;if(d.append("rect").attr("x",f).attr("y",u).attr("width",_).attr("height",r).attr("class","packetBlock"),d.append("text").attr("x",f+_/2).attr("y",u+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!k)continue;const g=o.end===o.start,m=u-2;d.append("text").attr("x",f+(g?_/2:0)).attr("y",m).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",g?"middle":"start").text(o.start),g||d.append("text").attr("x",f+_).attr("y",m).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),O={draw:A},W={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},M=(0,p.K2)(({packet:t}={})=>{const e=(0,v.$t)(W,t);return`\n\t.packetByte {\n\t\tfont-size: ${e.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${e.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${e.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${e.labelColor};\n\t\tfont-size: ${e.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${e.titleColor};\n\t\tfont-size: ${e.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${e.blockStrokeColor};\n\t\tstroke-width: ${e.blockStrokeWidth};
1\n\t\tfill: ${e.blockFillColor};\n\t}\n\t`},"styles"),K={parser:B,get db(){return new E},renderer:O,styles:M}}}]);

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.