/workspace/react-pdf/packages/fontkit/lib/fontkit.es.min.js:1:import e from"restructure";import t from"fs";import n from"@babel/runtime/helpers/applyDecoratedDescriptor";import{PropertyDescriptor as r,resolveLength as s}from"restructure/src/utils";import i from"deep-equal";import a from"@react-pdf/unicode-properties";import o from"@babel/runtime/helpers/defineProperty";import l from"unicode-trie";import u from"dfa";import c from"clone";import h from"tiny-inflate";import d from"brotli/decompress";var p={logErrors:!1};let f=[];function g(e,t,n){if(n.get){let e=n.get;n.get=function(){let n=e.call(this);return Object.defineProperty(this,t,{value:n}),n}}else if("function"==typeof n.value){let e=n.value;return{get(){let n=new Map;function r(...t){let r=t.length>0?t[0]:"value";if(n.has(r))return n.get(r);let s=e.apply(this,t);return n.set(r,s),s}return Object.defineProperty(this,t,{value:r}),r}}}}p.registerFormat=function(e){f.push(e)},p.openSync=function(e,n){let r=t.readFileSync(e);return p.create(r,n)},p.open=function(e,n,r){"function"==typeof n&&(r=n,n=null),t.readFile(e,function(e,t){if(e)return r(e);try{var s=p.create(t,n)}catch(e){return r(e)}return r(null,s)})},p.create=function(t,n){for(let r=0;r<f.length;r++){let s=f[r];if(s.probe(t)){let r=new s(new e.DecodeStream(t));return n?r.getFont(n):r}}throw new Error("Unknown font format")},p.defaultLanguage="en",p.setDefaultLanguage=function(e="en"){p.defaultLanguage=e};let m=new e.Struct({firstCode:e.uint16,entryCount:e.uint16,idDelta:e.int16,idRangeOffset:e.uint16}),y=new e.Struct({startCharCode:e.uint32,endCharCode:e.uint32,glyphID:e.uint32}),b=new e.Struct({startUnicodeValue:e.uint24,additionalCount:e.uint8}),w=new e.Struct({unicodeValue:e.uint24,glyphID:e.uint16}),v=new e.Array(b,e.uint32),_=new e.Array(w,e.uint32),C=new e.Struct({varSelector:e.uint24,defaultUVS:new e.Pointer(e.uint32,v,{type:"parent"}),nonDefaultUVS:new e.Pointer(e.uint32,_,{type:"parent"})}),S=new e.VersionedStruct(e.uint16,{0:{length:e.uint16,language:e.uint16,codeMap:new e.LazyArray(e.uint8,256)},2:{length:e.uint16,language:e.uint16,subHeaderKeys:new e.Array(e.uint16,256),subHeaderCount:e=>Math.max.apply(Math,e.subHeaderKeys),subHeaders:new e.LazyArray(m,"subHeaderCount"),glyphIndexArray:new e.LazyArray(e.uint16,"subHeaderCount")},4:{length:e.uint16,language:e.uint16,segCountX2:e.uint16,segCount:e=>e.segCountX2>>1,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,e=>(e.length-e._currentOffset)/2)},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(y,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(y,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(y,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(C,"numRecords")}}),x=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,S,{type:"parent",lazy:!0})});var A=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(x,"numSubtables")}),k=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),P=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16});let I=new e.Struct({advance:e.uint16,bearing:e.int16});var O=new e.Struct({metrics:new e.LazyArray(I,e=>e.parent.hhea.numberOfMetrics),bearings:new e.LazyArray(e.int16,e=>e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics)}),F=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16});function D(e,t,n=0){return 1===e&&L[n]?L[n]:T[e][t]}const T=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],L={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},M=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}];let G=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",e=>D(e.platformID,e.encodingID,e.languageID)),{type:"parent",relativeTo:"parent.stringOffset",allowNull:!1})}),B=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:"stringOffset"})});var E=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(G,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(G,"count"),langTagCount:e.uint16,langTags:new e.Array(B,"langTagCount")}});const R=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];E.process=function(e){var t={};for(let e of this.records){let n=M[e.platformID][e.languageID];null==n&&null!=this.langTags&&e.languageID>=32768&&(n=this.langTags[e.languageID-32768].tag),null==n&&(n=e.platformID+"-"+e.languageID);let r=e.nameID>=256?"fontFeatures":R[e.nameID]||e.nameID;null==t[r]&&(t[r]={});let s=t[r];e.nameID>=256&&(s=s[e.nameID]||(s[e.nameID]={})),"string"!=typeof e.string&&"string"==typeof s[n]||(s[n]=e.string)}this.records=t},E.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let e=[];for(let t in this.records){let n=this.records[t];"fontFeatures"!==t&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:R.indexOf(t),length:Buffer.byteLength(n.en,"utf16le"),string:n.en}),"postscriptName"===t&&e.push({platformID:1,encodingID:0,languageID:0,nameID:R.indexOf(t),length:n.en.length,string:n.en}))}this.records=e,this.count=e.length,this.stringOffset=E.size(this,null,!1)};var V=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}});let z=V.versions;z[3]=z[4]=z[2];var U=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,e=>e.parent.maxp.numGlyphs)}}),N=new e.Struct({controlValues:new e.Array(e.int16)}),q=new e.Struct({instructions:new e.Array(e.uint8)});let j=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}});j.process=function(){if(0===this.version)for(let e=0;e<this.offsets.length;e++)this.offsets[e]<<=1},j.preEncode=function(){if(0===this.version)for(let e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1};var H=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),W=new e.Array(new e.Buffer);class Y{constructor(e){this.type=e}getCFFVersion(e){for(;e&&!e.hdrSize;)e=e.parent;return e?e.version:-1}decode(t,n){let r=this.getCFFVersion(n)>=2?t.readUInt32BE():t.readUInt16BE();if(0===r)return[];let s,i=t.readUInt8();if(1===i)s=e.uint8;else if(2===i)s=e.uint16;else if(3===i)s=e.uint24;else{if(4!==i)throw new Error(`Bad offset size in CFFIndex: ${i} ${t.pos}`);s=e.uint32}let a=[],o=t.pos+(r+1)*i-1,l=s.decode(t);for(let e=0;e<r;e++){let e=s.decode(t);if(null!=this.type){let r=t.pos;t.pos=o+l,n.length=e-l,a.push(this.type.decode(t,n)),t.pos=r}else a.push({offset:o+l,length:e-l});l=e}return t.pos=o+l,a}size(t,n){let r=2;if(0===t.length)return r;let s,i=this.type||new e.Buffer,a=1;for(let e=0;e<t.length;e++){let r=t[e];a+=i.size(r,n)}if(a<=255)s=e.uint8;else if(a<=65535)s=e.uint16;else if(a<=16777215)s=e.uint24;else{if(!(a<=4294967295))throw new Error("Bad offset in CFFIndex");s=e.uint32}return r+=1+s.size()*(t.length+1),r+=a-1}encode(t,n,r){if(t.writeUInt16BE(n.length),0===n.length)return;let s,i=this.type||new e.Buffer,a=[],o=1;for(let e of n){let t=i.size(e,r);a.push(t),o+=t}if(o<=255)s=e.uint8;else if(o<=6553<response clipped><NOTE>Due to the max output limit, only part of the full response has been shown to you.</NOTE>){return this._layoutEngine.getAvailableFeatures(e,t)},t._getBaseGlyph=function(e,t){return void 0===t&&(t=[]),this._glyphs[e]||(this.directory.tables.glyf?this._glyphs[e]=new TTFGlyph(e,t,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[e]=new CFFGlyph(e,t,this))),this._glyphs[e]||null},t.getGlyph=function(e,t){return void 0===t&&(t=[]),this._glyphs[e]||(this.directory.tables.sbix?this._glyphs[e]=new SBIXGlyph(e,t,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[e]=new COLRGlyph(e,t,this):this._getBaseGlyph(e,t)),this._glyphs[e]||null},t.createSubset=function(){return this.directory.tables["CFF "]?new CFFSubset(this):new TTFSubset(this)},t.getVariation=function(t){if(!this.directory.tables.fvar||!(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if("string"==typeof t&&(t=this.namedVariations[t]),"object"!=typeof t)throw new Error("Variation settings must be either a variation name or settings object.");var r=this.fvar.axis.map(function(e,r){var a=e.axisTag.trim();return a in t?Math.max(e.minValue,Math.min(e.maxValue,t[a])):e.defaultValue}),a=new r__default.default.DecodeStream(this.stream.buffer);a.pos=this._directoryPos;var n=new e(a,r);return n._tables=this._tables,n},t.getFont=function(e){return this.getVariation(e)},_createClass__default.default(e,[{key:"postscriptName",get:function(){return this.getName("postscriptName")}},{key:"fullName",get:function(){return this.getName("fullName")}},{key:"familyName",get:function(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function(){return this.getName("fontSubfamily")}},{key:"copyright",get:function(){return this.getName("copyright")}},{key:"version",get:function(){return this.getName("version")}},{key:"ascent",get:function(){return this.hhea.ascent}},{key:"descent",get:function(){return this.hhea.descent}},{key:"lineGap",get:function(){return this.hhea.lineGap}},{key:"underlinePosition",get:function(){return this.post.underlinePosition}},{key:"underlineThickness",get:function(){return this.post.underlineThickness}},{key:"italicAngle",get:function(){return this.post.italicAngle}},{key:"capHeight",get:function(){var e=this["OS/2"];return e?e.capHeight:this.ascent}},{key:"xHeight",get:function(){var e=this["OS/2"];return e?e.xHeight:0}},{key:"numGlyphs",get:function(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function(){return this.head.unitsPerEm}},{key:"bbox",get:function(){return Object.freeze(new BBox(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function(){return new CmapProcessor(this.cmap)}},{key:"characterSet",get:function(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function(){return new LayoutEngine(this)}},{key:"availableFeatures",get:function(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function(){var e={};if(!this.fvar)return e;for(var t,r=_createForOfIteratorHelperLoose$3(this.fvar.axis);!(t=r()).done;){var a=t.value;e[a.axisTag.trim()]={name:a.name.en,min:a.minValue,default:a.defaultValue,max:a.maxValue}}return e}},{key:"namedVariations",get:function(){var e={};if(!this.fvar)return e;for(var t,r=_createForOfIteratorHelperLoose$3(this.fvar.instance);!(t=r()).done;){for(var a=t.value,n={},l=0;l<this.fvar.axis.length;l++){n[this.fvar.axis[l].axisTag.trim()]=a.coord[l]}e[a.name.en]=n}return e}},{key:"_variationProcessor",get:function(){if(!this.fvar)return null;var e=this.variationCoords;return e||this.CFF2?(e||(e=this.fvar.axis.map(function(e){return e.defaultValue})),new GlyphVariationProcessor(this,e)):null}}]),e}(),_applyDecoratedDescriptor__default.default(_class.prototype,"bbox",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"bbox"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"_cmapProcessor",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"_cmapProcessor"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"characterSet",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"characterSet"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"_layoutEngine",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"_layoutEngine"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"variationAxes",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"variationAxes"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"namedVariations",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"namedVariations"),_class.prototype),_applyDecoratedDescriptor__default.default(_class.prototype,"_variationProcessor",[cache],Object.getOwnPropertyDescriptor(_class.prototype,"_variationProcessor"),_class.prototype),_class);function _createForOfIteratorHelperLoose$2(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray$2(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function _unsupportedIterableToArray$2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$2(e,t):void 0}}function _arrayLikeToArray$2(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var WOFFDirectoryEntry=new r__default.default.Struct({tag:new r__default.default.String(4),offset:new r__default.default.Pointer(r__default.default.uint32,"void",{type:"global"}),compLength:r__default.default.uint32,length:r__default.default.uint32,origChecksum:r__default.default.uint32}),WOFFDirectory=new r__default.default.Struct({tag:new r__default.default.String(4),flavor:r__default.default.uint32,length:r__default.default.uint32,numTables:r__default.default.uint16,reserved:new r__default.default.Reserved(r__default.default.uint16),totalSfntSize:r__default.default.uint32,majorVersion:r__default.default.uint16,minorVersion:r__default.default.uint16,metaOffset:r__default.default.uint32,metaLength:r__default.default.uint32,metaOrigLength:r__default.default.uint32,privOffset:r__default.default.uint32,privLength:r__default.default.uint32,tables:new r__default.default.Array(WOFFDirectoryEntry,"numTables")});WOFFDirectory.process=function(){for(var e,t={},r=_createForOfIteratorHelperLoose$2(this.tables);!(e=r()).done;){var a=e.value;t[a.tag]=a}this.tables=t};var WOFFFont=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose__default.default(t,e),t.probe=function(e){return"wOFF"===e.toString("ascii",0,4)};var r=t.prototype;return r._decodeDirectory=function(){this.directory=WOFFDirectory.decode(this.stream,{_startOffset:0})},r._getTableStream=function(e){var t=this.directory.tables[e];if(t){if(this.stream.pos=t.offset,t.compLength<t.length){this.stream.pos+=2;var r=Buffer.alloc(t.length),a=inflate__default.default(this.stream.readBuffer(t.compLength-2),r);return new r__default.default.DecodeStream(a)}return this.stream}return null},t}(TTFFont);function _createForOfIteratorHelperLoose$1(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray$1(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var TTCHeader=new r__default.default.VersionedStruct(r__default.default.uint32,{65536:{numFonts:r__default.default.uint32,offsets:new r__default.default.Array(r__default.default.uint32,"numFonts")},131072:{numFonts:r__default.default.uint32,offsets:new r__default.default.Array(r__default.default.uint32,"numFonts"),dsigTag:r__default.default.uint32,dsigLength:r__default.default.uint32,dsigOffset:r__default.default.uint32}}),TrueTypeCollection=function(){function e(e){if(this.stream=e,"ttcf"!==e.readString(4))throw new Error("Not a TrueType collection");this.header=TTCHeader.decode(e)}return e.probe=function(e){return"ttcf"===e.toString("ascii",0,4)},e.prototype.getFont=function(e){for(var t,r=_createForOfIteratorHelperLoose$1(this.header.offsets);!(t=r()).done;){var a=t.value,n=new r__default.default.DecodeStream(this.stream.buffer);n.pos=a;var l=new TTFFont(n);if(l.postscriptName===e)return l}return null},_createClass__default.default(e,[{key:"fonts",get:function(){for(var e,t=[],r=_createForOfIteratorHelperLoose$1(this.header.offsets);!(e=r()).done;){var a=e.value,n=new r__default.default.DecodeStream(this.stream.buffer);n.pos=a,t.push(new TTFFont(n))}return t}}]),e}();function _createForOfIteratorHelperLoose(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var DFontName=new r__default.default.String(r__default.default.uint8);new r__default.default.Struct({len:r__default.default.uint32,buf:new r__default.default.Buffer("len")});var Ref=new r__default.default.Struct({id:r__default.default.uint16,nameOffset:r__default.default.int16,attr:r__default.default.uint8,dataOffset:r__default.default.uint24,handle:r__default.default.uint32}),Type=new r__default.default.Struct({name:new r__default.default.String(4),maxTypeIndex:r__default.default.uint16,refList:new r__default.default.Pointer(r__default.default.uint16,new r__default.default.Array(Ref,function(e){return e.maxTypeIndex+1}),{type:"parent"})}),TypeList=new r__default.default.Struct({length:r__default.default.uint16,types:new r__default.default.Array(Type,function(e){return e.length+1})}),DFontMap=new r__default.default.Struct({reserved:new r__default.default.Reserved(r__default.default.uint8,24),typeList:new r__default.default.Pointer(r__default.default.uint16,TypeList),nameListOffset:new r__default.default.Pointer(r__default.default.uint16,"void")}),DFontHeader=new r__default.default.Struct({dataOffset:r__default.default.uint32,map:new r__default.default.Pointer(r__default.default.uint32,DFontMap),dataLength:r__default.default.uint32,mapLength:r__default.default.uint32}),DFont=function(){function e(e){this.stream=e,this.header=DFontHeader.decode(this.stream);for(var t,r=_createForOfIteratorHelperLoose(this.header.map.typeList.types);!(t=r()).done;){for(var a,n=t.value,l=_createForOfIteratorHelperLoose(n.refList);!(a=l()).done;){var u=a.value;u.nameOffset>=0?(this.stream.pos=u.nameOffset+this.header.map.nameListOffset,u.name=DFontName.decode(this.stream)):u.name=null}"sfnt"===n.name&&(this.sfnt=n)}}return e.probe=function(e){var t=new r__default.default.DecodeStream(e);try{var r=DFontHeader.decode(t)}catch(e){return!1}for(var a,n=_createForOfIteratorHelperLoose(r.map.typeList.types);!(a=n()).done;){if("sfnt"===a.value.name)return!0}return!1},e.prototype.getFont=function(e){if(!this.sfnt)return null;for(var t,r=_createForOfIteratorHelperLoose(this.sfnt.refList);!(t=r()).done;){var a=t.value,n=this.header.dataOffset+a.dataOffset+4,l=new r__default.default.DecodeStream(this.stream.buffer.slice(n)),u=new TTFFont(l);if(u.postscriptName===e)return u}return null},_createClass__default.default(e,[{key:"fonts",get:function(){for(var e,t=[],r=_createForOfIteratorHelperLoose(this.sfnt.refList);!(e=r()).done;){var a=e.value,n=this.header.dataOffset+a.dataOffset+4,l=new r__default.default.DecodeStream(this.stream.buffer.slice(n));t.push(new TTFFont(l))}return t}}]),e}();fontkit.registerFormat(TTFFont),fontkit.registerFormat(WOFFFont),fontkit.registerFormat(TrueTypeCollection),fontkit.registerFormat(DFont),exports.default=fontkit;
/workspace/react-pdf/packages/fontkit/lib/fontkit.browser.cjs.js:96:  } else if (typeof descriptor.value === 'function') {
/workspace/react-pdf/packages/fontkit/lib/fontkit.browser.cjs.js:763:function _createForOfIteratorHelperLoose$s(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$s(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
/workspace/react-pdf/packages/fontkit/lib/fontkit.browser.cjs.js:1047:function _createForOfIteratorHelperLoose$r(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$r(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
[The command completed with exit code 0.]
[Current working directory: /workspace/react-pdf]
[Python interpreter: /usr/bin/python]
[Command finished with exit code 0]