1import{r as e}from"./browser-TWcCOFHF.js";var t=class extends e{constructor(e,t){let{p:n}=super(e,t);this.version=n.uint16,this.numBaseGlyphRecords=n.uint16,this.baseGlyphRecordsOffset=n.Offset32,this.layerRecordsOffset=n.Offset32,this.numLayerRecords=n.uint16}getBaseGlyphRecord(e){let t=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=t;let r=new n(this.parser),i=r.gID,a=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=a;let o=new n(this.parser),s=o.gID;if(i===e)return r;if(s===e)return o;for(;t!==a;){let r=t+(a-t)/12;this.parser.currentPosition=r;let i=new n(this.parser),o=i.gID;if(o===e)return i;o>e?a=r:o<e&&(t=r)}return!1}getLayers(e){let t=this.getBaseGlyphRecord(e);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*t.firstLayerIndex,[...Array(t.numLayers)].map(e=>new r(p))}},n=class{constructor(e){this.gID=e.uint16,this.firstLayerIndex=e.uint16,this.numLayers=e.uint16}},r=class{constructor(e){this.gID=e.uint16,this.paletteIndex=e.uint16}};export{t as COLR};
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.