{"version":3,"sources":["webpack:///./node_modules/lib-font/src/opentype/tables/advanced/shared/coverage.js","webpack:///./node_modules/lib-font/src/opentype/tables/advanced/shared/class.js","webpack:///./node_modules/lib-font/src/opentype/tables/advanced/shared/itemvariation.js","webpack:///./node_modules/lib-font/src/opentype/tables/advanced/GDEF.js"],"names":["CoverageTable","constructor","p","super","this","coverageFormat","uint16","glyphCount","glyphArray","Array","map","_","rangeCount","rangeRecords","CoverageRangeRecord","startGlyphID","endGlyphID","startCoverageIndex","ClassDefinition","classFormat","classValueArray","classRangeCount","classRangeRecords","ClassRangeRecord","class","ItemVariationStoreTable","table","parser","start","currentPosition","format","variationRegionListOffset","Offset32","itemVariationDataCount","itemVariationDataOffsets","dict","dataview","majorVersion","minorVersion","glyphClassDefOffset","Offset16","lazy","tableStart","attachListOffset","ligCaretListOffset","markAttachClassDefOffset","markGlyphSetsDefOffset","itemVarStoreOffset","coverageOffset","attachPointOffsets","getPoint","pointID","AttachPoint","pointCount","pointIndices","ligGlyphCount","ligGlyphOffsets","getLigGlyph","ligGlyphID","caretCount","caretValueOffsets","getCaretValue","caretID","CaretValue","caretValueFormat","coordinate","int16","caretValuePointIndex","deviceOffset","markGlyphSetTableFormat","markGlyphSetCount","coverageOffsets","getMarkGlyphSet","markGlyphSetID"],"mappings":"0FAAA,8CACA,MAAMA,UAAsB,IAC1BC,YAAYC,GACVC,MAAMD,GACNE,KAAKC,eAAiBH,EAAEI,OACI,IAAxBF,KAAKC,iBACPD,KAAKG,WAAaL,EAAEI,OACpBF,KAAKI,WAAa,IAAI,IAAIC,MAAML,KAAKG,aAAaG,KAAIC,GAAKT,EAAEI,UAEnC,IAAxBF,KAAKC,iBACPD,KAAKQ,WAAaV,EAAEI,OACpBF,KAAKS,aAAe,IAAI,IAAIJ,MAAML,KAAKQ,aAAaF,KAAIC,GAAK,IAAIG,EAAoBZ,KAEzF,EAEF,MAAMY,EACJb,YAAYC,GACVE,KAAKW,aAAeb,EAAEI,OACtBF,KAAKY,W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C,SAE1B,EAGF,MAAM,UAA2B,IAC/BvC,YAAYC,GACVC,MAAMD,GACNE,KAAKiE,wBAA0BnE,EAAEI,OACjCF,KAAKkE,kBAAoBpE,EAAEI,OAC3BF,KAAKmE,gBAAkB,IAAI,IAAI9D,MAAML,KAAKkE,oBAAoB5D,KAAIC,GAAKT,EAAE8B,UAC3E,CACAwC,gBAAgBC,GAEd,OADArE,KAAKuB,OAAOE,gBAAkBzB,KAAKwB,MAAQxB,KAAKmE,gBAAgBE,GACzD,IAAI,IAAcrE,KAAKuB,OAChC,E","file":"js/7-2884bda77d50fe0270cb.chunk.js","sourcesContent":["import { ParsedData } from \"../../../../parser.js\";\nclass CoverageTable extends ParsedData {\n constructor(p) {\n super(p);\n this.coverageFormat = p.uint16;\n if (this.coverageFormat === 1) {\n this.glyphCount = p.uint16;\n this.glyphArray = [...new Array(this.glyphCount)].map(_ => p.uint16);\n }\n if (this.coverageFormat === 2) {\n this.rangeCount = p.uint16;\n this.rangeRecords = [...new Array(this.rangeCount)].map(_ => new CoverageRangeRecord(p));\n }\n }\n}\nclass CoverageRangeRecord {\n constructor(p) {\n this.startGlyphID = p.uint16;\n this.endGlyphID = p.uint16;\n this.startCoverageIndex = p.uint16;\n }\n}\nexport { CoverageTable };","class ClassDefinition {\n constructor(p) {\n this.classFormat = p.uint16;\n if (this.classFormat === 1) {\n this.startGlyphID = p.uint16;\n this.glyphCount = p.uint16;\n this.classValueArray = [...new Array(this.glyphCount)].map(_ => p.uint16);\n }\n if (this.classFormat === 2) {\n this.classRangeCount = p.uint16;\n this.classRangeRecords = [...new Array(this.classRangeCount)].map(_ => new ClassRangeRecord(p));\n }\n }\n}\nclass ClassRangeRecord {\n constructor(p) {\n this.startGlyphID = p.uint16;\n this.endGlyphID = p.uint16;\n this.class = p.uint16;\n }\n}\nexport { ClassDefinition };","class ItemVariationStoreTable {\n constructor(table, p) {\n this.table = table;\n this.parser = p;\n this.start = p.currentPosition;\n this.format = p.uint16;\n this.variationRegionListOffset = p.Offset32;\n this.itemVariationDataCount = p.uint16;\n this.itemVariationDataOffsets = [...new Array(this.itemVariationDataCount)].map(_ => p.Offset32);\n }\n}\nclass ItemVariationData {\n constructor(p) {\n this.itemCount = p.uint16;\n this.shortDeltaCount = p.uint16;\n this.regionIndexCount = p.uint16;\n this.regionIndexes = p.uint16;\n this.deltaSets = [...new Array(this.itemCount)].map(_ => new DeltaSet(p, this.shortDeltaCount, this.regionIndexCount));\n }\n}\nclass DeltaSet {\n constructor(p, shortDeltaCount, regionIndexCount) {\n // the documentation here seems problematic:\n //\n // \"Logically, each DeltaSet record has regionIndexCount number of elements.\n // The first shortDeltaCount elements are represented as signed 16-bit values\n // (int16), and the remaining regionIndexCount - shortDeltaCount elements are\n // represented as signed 8-bit values (int8). The length of the data for each\n // row is shortDeltaCount + regionIndexCount.\"\n //\n // I'm assuming that should be \"the remaining regionIndexCount elements are\".\n this.DeltaData = [];\n while (shortDeltaCount-- > 0) {\n this.DeltaData.push(p.in16);\n }\n while (regionIndexCount-- > 0) {\n this.DeltaData.push(p.int8);\n }\n }\n}\nexport { ItemVariationStoreTable };","import { ParsedData } from \"../../../parser.js\";\nimport { SimpleTable } from \"../simple-table.js\";\nimport { ClassDefinition } from \"./shared/class.js\";\nimport { CoverageTable } from \"./shared/coverage.js\";\nimport { ItemVariationStoreTable } from \"./shared/itemvariation.js\";\nimport lazy from \"../../../lazy.js\";\n\n/**\n * The OpenType `GDEF` table.\n *\n * See https://docs.microsoft.com/en-us/typography/opentype/spec/GDEF\n */\nclass GDEF extends SimpleTable {\n constructor(dict, dataview) {\n const _super = super(dict, dataview),\n p = _super.p;\n\n // there are three possible versions\n this.majorVersion = p.uint16;\n this.minorVersion = p.uint16;\n this.glyphClassDefOffset = p.Offset16;\n lazy(this, `glyphClassDefs`, () => {\n if (this.glyphClassDefOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.glyphClassDefOffset;\n return new ClassDefinition(p);\n });\n this.attachListOffset = p.Offset16;\n lazy(this, `attachList`, () => {\n if (this.attachListOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.attachListOffset;\n return new AttachList(p);\n });\n this.ligCaretListOffset = p.Offset16;\n lazy(this, `ligCaretList`, () => {\n if (this.ligCaretListOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.ligCaretListOffset;\n return new LigCaretList(p);\n });\n this.markAttachClassDefOffset = p.Offset16;\n lazy(this, `markAttachClassDef`, () => {\n if (this.markAttachClassDefOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.markAttachClassDefOffset;\n return new ClassDefinition(p);\n });\n if (this.minorVersion >= 2) {\n this.markGlyphSetsDefOffset = p.Offset16;\n lazy(this, `markGlyphSetsDef`, () => {\n if (this.markGlyphSetsDefOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.markGlyphSetsDefOffset;\n return new MarkGlyphSetsTable(p);\n });\n }\n if (this.minorVersion === 3) {\n this.itemVarStoreOffset = p.Offset32;\n lazy(this, `itemVarStore`, () => {\n if (this.itemVarStoreOffset === 0) return undefined;\n p.currentPosition = this.tableStart + this.itemVarStoreOffset;\n return new ItemVariationStoreTable(p);\n });\n }\n }\n}\nclass AttachList extends ParsedData {\n constructor(p) {\n super(p);\n this.coverageOffset = p.Offset16; // Offset to Coverage table - from beginning of AttachList table\n this.glyphCount = p.uint16;\n this.attachPointOffsets = [...new Array(this.glyphCount)].map(_ => p.Offset16); // From beginning of AttachList table (in Coverage Index order)\n }\n\n getPoint(pointID) {\n this.parser.currentPosition = this.start + this.attachPointOffsets[pointID];\n return new AttachPoint(this.parser);\n }\n}\nclass AttachPoint {\n constructor(p) {\n this.pointCount = p.uint16;\n this.pointIndices = [...new Array(this.pointCount)].map(_ => p.uint16);\n }\n}\nclass LigCaretList extends ParsedData {\n constructor(p) {\n super(p);\n this.coverageOffset = p.Offset16;\n lazy(this, `coverage`, () => {\n p.currentPosition = this.start + this.coverageOffset;\n return new CoverageTable(p);\n });\n this.ligGlyphCount = p.uint16;\n this.ligGlyphOffsets = [...new Array(this.ligGlyphCount)].map(_ => p.Offset16); // From beginning of LigCaretList table\n }\n\n getLigGlyph(ligGlyphID) {\n this.parser.currentPosition = this.start + this.ligGlyphOffsets[ligGlyphID];\n return new LigGlyph(this.parser);\n }\n}\nclass LigGlyph extends ParsedData {\n constructor(p) {\n super(p);\n this.caretCount = p.uint16;\n this.caretValueOffsets = [...new Array(this.caretCount)].map(_ => p.Offset16); // From beginning of LigGlyph table\n }\n\n getCaretValue(caretID) {\n this.parser.currentPosition = this.start + this.caretValueOffsets[caretID];\n return new CaretValue(this.parser);\n }\n}\nclass CaretValue {\n constructor(p) {\n this.caretValueFormat = p.uint16;\n if (this.caretValueFormat === 1) {\n this.coordinate = p.int16;\n }\n if (this.caretValueFormat === 2) {\n this.caretValuePointIndex = p.uint16;\n }\n if (this.caretValueFormat === 3) {\n this.coordinate = p.int16;\n this.deviceOffset = p.Offset16; // Offset to Device table (non-variable font) / Variation Index table (variable font) for X or Y value-from beginning of CaretValue table\n }\n }\n}\n\nclass MarkGlyphSetsTable extends ParsedData {\n constructor(p) {\n super(p);\n this.markGlyphSetTableFormat = p.uint16;\n this.markGlyphSetCount = p.uint16;\n this.coverageOffsets = [...new Array(this.markGlyphSetCount)].map(_ => p.Offset32);\n }\n getMarkGlyphSet(markGlyphSetID) {\n this.parser.currentPosition = this.start + this.coverageOffsets[markGlyphSetID];\n return new CoverageTable(this.parser);\n }\n}\nexport { GDEF };"],"sourceRoot":""}