"use strict";(self.webpackChunkdragblock=self.webpackChunkdragblock||[]).push([[68],{68:function(t,e,s){s.r(e),s.d(e,{COLR:function(){return i}});var r=s(2592);class i extends r.x{constructor(t,e){const{p:s}=super(t,e);this.version=s.uint16,this.numBaseGlyphRecords=s.uint16,this.baseGlyphRecordsOffset=s.Offset32,this.layerRecordsOffset=s.Offset32,this.numLayerRecords=s.uint16}getBaseGlyphRecord(t){let e=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=e;let s=new n(this.parser),r=s.gID,i=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=i;let a=new n(this.parser),h=a.gID;if(r===t)return s;if(h===t)return a;for(;e!==i;){let s=e+(i-e)/12;this.parser.currentPosition=s;let r=new n(this.parser),a=r.gID;if(a===t)return r;a>t?i=s:a<t&&(e=s)}return!1}getLayers(t){let e=this.getBaseGlyphRecord(t);return this.parser.currentPosition=this.tableStart+this.layerRecordsOffset+4*e.firstLayerIndex,[...new Array(e.numLayers)].map((t=>new a(p)))}}class n{constructor(t){this.gID=t.uint16,this.firstLayerIndex=t.uint16,this.numLayers=t.uint16}}class a{constructor(t){this.gID=t.uint16,this.paletteIndex=t.uint16}}}}]);