pdf.worker.js 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900
  1. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  3. /* Copyright 2012 Mozilla Foundation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. // Initializing PDFJS global object (if still undefined)
  18. if (typeof PDFJS === 'undefined') {
  19. (typeof window !== 'undefined' ? window : this).PDFJS = {};
  20. }
  21. PDFJS.version = '0.8.958';
  22. PDFJS.build = 'd45d7bc';
  23. (function pdfjsWrapper() {
  24. // Use strict in our context only - users might not want it
  25. 'use strict';
  26. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  27. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  28. /* Copyright 2012 Mozilla Foundation
  29. *
  30. * Licensed under the Apache License, Version 2.0 (the "License");
  31. * you may not use this file except in compliance with the License.
  32. * You may obtain a copy of the License at
  33. *
  34. * http://www.apache.org/licenses/LICENSE-2.0
  35. *
  36. * Unless required by applicable law or agreed to in writing, software
  37. * distributed under the License is distributed on an "AS IS" BASIS,
  38. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  39. * See the License for the specific language governing permissions and
  40. * limitations under the License.
  41. */
  42. /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL,
  43. Promise */
  44. 'use strict';
  45. var globalScope = (typeof window === 'undefined') ? this : window;
  46. var isWorker = (typeof window == 'undefined');
  47. var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
  48. var TextRenderingMode = {
  49. FILL: 0,
  50. STROKE: 1,
  51. FILL_STROKE: 2,
  52. INVISIBLE: 3,
  53. FILL_ADD_TO_PATH: 4,
  54. STROKE_ADD_TO_PATH: 5,
  55. FILL_STROKE_ADD_TO_PATH: 6,
  56. ADD_TO_PATH: 7,
  57. FILL_STROKE_MASK: 3,
  58. ADD_TO_PATH_FLAG: 4
  59. };
  60. // The global PDFJS object exposes the API
  61. // In production, it will be declared outside a global wrapper
  62. // In development, it will be declared here
  63. if (!globalScope.PDFJS) {
  64. globalScope.PDFJS = {};
  65. }
  66. globalScope.PDFJS.pdfBug = false;
  67. PDFJS.VERBOSITY_LEVELS = {
  68. errors: 0,
  69. warnings: 1,
  70. infos: 5
  71. };
  72. // All the possible operations for an operator list.
  73. var OPS = PDFJS.OPS = {
  74. // Intentionally start from 1 so it is easy to spot bad operators that will be
  75. // 0's.
  76. dependency: 1,
  77. setLineWidth: 2,
  78. setLineCap: 3,
  79. setLineJoin: 4,
  80. setMiterLimit: 5,
  81. setDash: 6,
  82. setRenderingIntent: 7,
  83. setFlatness: 8,
  84. setGState: 9,
  85. save: 10,
  86. restore: 11,
  87. transform: 12,
  88. moveTo: 13,
  89. lineTo: 14,
  90. curveTo: 15,
  91. curveTo2: 16,
  92. curveTo3: 17,
  93. closePath: 18,
  94. rectangle: 19,
  95. stroke: 20,
  96. closeStroke: 21,
  97. fill: 22,
  98. eoFill: 23,
  99. fillStroke: 24,
  100. eoFillStroke: 25,
  101. closeFillStroke: 26,
  102. closeEOFillStroke: 27,
  103. endPath: 28,
  104. clip: 29,
  105. eoClip: 30,
  106. beginText: 31,
  107. endText: 32,
  108. setCharSpacing: 33,
  109. setWordSpacing: 34,
  110. setHScale: 35,
  111. setLeading: 36,
  112. setFont: 37,
  113. setTextRenderingMode: 38,
  114. setTextRise: 39,
  115. moveText: 40,
  116. setLeadingMoveText: 41,
  117. setTextMatrix: 42,
  118. nextLine: 43,
  119. showText: 44,
  120. showSpacedText: 45,
  121. nextLineShowText: 46,
  122. nextLineSetSpacingShowText: 47,
  123. setCharWidth: 48,
  124. setCharWidthAndBounds: 49,
  125. setStrokeColorSpace: 50,
  126. setFillColorSpace: 51,
  127. setStrokeColor: 52,
  128. setStrokeColorN: 53,
  129. setFillColor: 54,
  130. setFillColorN: 55,
  131. setStrokeGray: 56,
  132. setFillGray: 57,
  133. setStrokeRGBColor: 58,
  134. setFillRGBColor: 59,
  135. setStrokeCMYKColor: 60,
  136. setFillCMYKColor: 61,
  137. shadingFill: 62,
  138. beginInlineImage: 63,
  139. beginImageData: 64,
  140. endInlineImage: 65,
  141. paintXObject: 66,
  142. markPoint: 67,
  143. markPointProps: 68,
  144. beginMarkedContent: 69,
  145. beginMarkedContentProps: 70,
  146. endMarkedContent: 71,
  147. beginCompat: 72,
  148. endCompat: 73,
  149. paintFormXObjectBegin: 74,
  150. paintFormXObjectEnd: 75,
  151. beginGroup: 76,
  152. endGroup: 77,
  153. beginAnnotations: 78,
  154. endAnnotations: 79,
  155. beginAnnotation: 80,
  156. endAnnotation: 81,
  157. paintJpegXObject: 82,
  158. paintImageMaskXObject: 83,
  159. paintImageMaskXObjectGroup: 84,
  160. paintImageXObject: 85,
  161. paintInlineImageXObject: 86,
  162. paintInlineImageXObjectGroup: 87
  163. };
  164. // A notice for devs. These are good for things that are helpful to devs, such
  165. // as warning that Workers were disabled, which is important to devs but not
  166. // end users.
  167. function info(msg) {
  168. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  169. console.log('Info: ' + msg);
  170. }
  171. }
  172. // Non-fatal warnings.
  173. function warn(msg) {
  174. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  175. console.log('Warning: ' + msg);
  176. }
  177. }
  178. // Fatal errors that should trigger the fallback UI and halt execution by
  179. // throwing an exception.
  180. function error(msg) {
  181. // If multiple arguments were passed, pass them all to the log function.
  182. if (arguments.length > 1) {
  183. var logArguments = ['Error:'];
  184. logArguments.push.apply(logArguments, arguments);
  185. console.log.apply(console, logArguments);
  186. // Join the arguments into a single string for the lines below.
  187. msg = [].join.call(arguments, ' ');
  188. } else {
  189. console.log('Error: ' + msg);
  190. }
  191. console.log(backtrace());
  192. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  193. throw new Error(msg);
  194. }
  195. function backtrace() {
  196. try {
  197. throw new Error();
  198. } catch (e) {
  199. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  200. }
  201. }
  202. function assert(cond, msg) {
  203. if (!cond)
  204. error(msg);
  205. }
  206. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  207. unknown: 'unknown',
  208. forms: 'forms',
  209. javaScript: 'javaScript',
  210. smask: 'smask',
  211. shadingPattern: 'shadingPattern',
  212. font: 'font'
  213. };
  214. var UnsupportedManager = PDFJS.UnsupportedManager =
  215. (function UnsupportedManagerClosure() {
  216. var listeners = [];
  217. return {
  218. listen: function (cb) {
  219. listeners.push(cb);
  220. },
  221. notify: function (featureId) {
  222. warn('Unsupported feature "' + featureId + '"');
  223. for (var i = 0, ii = listeners.length; i < ii; i++) {
  224. listeners[i](featureId);
  225. }
  226. }
  227. };
  228. })();
  229. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  230. // absolute URL, it will be returned as is.
  231. function combineUrl(baseUrl, url) {
  232. if (!url)
  233. return baseUrl;
  234. if (/^[a-z][a-z0-9+\-.]*:/i.test(url))
  235. return url;
  236. if (url.charAt(0) == '/') {
  237. // absolute path
  238. var i = baseUrl.indexOf('://');
  239. i = baseUrl.indexOf('/', i + 3);
  240. return baseUrl.substring(0, i) + url;
  241. } else {
  242. // relative path
  243. var pathLength = baseUrl.length, i;
  244. i = baseUrl.lastIndexOf('#');
  245. pathLength = i >= 0 ? i : pathLength;
  246. i = baseUrl.lastIndexOf('?', pathLength);
  247. pathLength = i >= 0 ? i : pathLength;
  248. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  249. return baseUrl.substring(0, prefixLength + 1) + url;
  250. }
  251. }
  252. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  253. function isValidUrl(url, allowRelative) {
  254. if (!url) {
  255. return false;
  256. }
  257. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  258. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  259. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  260. if (!protocol) {
  261. return allowRelative;
  262. }
  263. protocol = protocol[0].toLowerCase();
  264. switch (protocol) {
  265. case 'http':
  266. case 'https':
  267. case 'ftp':
  268. case 'mailto':
  269. return true;
  270. default:
  271. return false;
  272. }
  273. }
  274. PDFJS.isValidUrl = isValidUrl;
  275. // In a well-formed PDF, |cond| holds. If it doesn't, subsequent
  276. // behavior is undefined.
  277. function assertWellFormed(cond, msg) {
  278. if (!cond)
  279. error(msg);
  280. }
  281. function shadow(obj, prop, value) {
  282. Object.defineProperty(obj, prop, { value: value,
  283. enumerable: true,
  284. configurable: true,
  285. writable: false });
  286. return value;
  287. }
  288. var PasswordResponses = PDFJS.PasswordResponses = {
  289. NEED_PASSWORD: 1,
  290. INCORRECT_PASSWORD: 2
  291. };
  292. var PasswordException = (function PasswordExceptionClosure() {
  293. function PasswordException(msg, code) {
  294. this.name = 'PasswordException';
  295. this.message = msg;
  296. this.code = code;
  297. }
  298. PasswordException.prototype = new Error();
  299. PasswordException.constructor = PasswordException;
  300. return PasswordException;
  301. })();
  302. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  303. function UnknownErrorException(msg, details) {
  304. this.name = 'UnknownErrorException';
  305. this.message = msg;
  306. this.details = details;
  307. }
  308. UnknownErrorException.prototype = new Error();
  309. UnknownErrorException.constructor = UnknownErrorException;
  310. return UnknownErrorException;
  311. })();
  312. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  313. function InvalidPDFException(msg) {
  314. this.name = 'InvalidPDFException';
  315. this.message = msg;
  316. }
  317. InvalidPDFException.prototype = new Error();
  318. InvalidPDFException.constructor = InvalidPDFException;
  319. return InvalidPDFException;
  320. })();
  321. var MissingPDFException = (function MissingPDFExceptionClosure() {
  322. function MissingPDFException(msg) {
  323. this.name = 'MissingPDFException';
  324. this.message = msg;
  325. }
  326. MissingPDFException.prototype = new Error();
  327. MissingPDFException.constructor = MissingPDFException;
  328. return MissingPDFException;
  329. })();
  330. var NotImplementedException = (function NotImplementedExceptionClosure() {
  331. function NotImplementedException(msg) {
  332. this.message = msg;
  333. }
  334. NotImplementedException.prototype = new Error();
  335. NotImplementedException.prototype.name = 'NotImplementedException';
  336. NotImplementedException.constructor = NotImplementedException;
  337. return NotImplementedException;
  338. })();
  339. var MissingDataException = (function MissingDataExceptionClosure() {
  340. function MissingDataException(begin, end) {
  341. this.begin = begin;
  342. this.end = end;
  343. this.message = 'Missing data [' + begin + ', ' + end + ')';
  344. }
  345. MissingDataException.prototype = new Error();
  346. MissingDataException.prototype.name = 'MissingDataException';
  347. MissingDataException.constructor = MissingDataException;
  348. return MissingDataException;
  349. })();
  350. var XRefParseException = (function XRefParseExceptionClosure() {
  351. function XRefParseException(msg) {
  352. this.message = msg;
  353. }
  354. XRefParseException.prototype = new Error();
  355. XRefParseException.prototype.name = 'XRefParseException';
  356. XRefParseException.constructor = XRefParseException;
  357. return XRefParseException;
  358. })();
  359. function bytesToString(bytes) {
  360. var str = '';
  361. var length = bytes.length;
  362. for (var n = 0; n < length; ++n)
  363. str += String.fromCharCode(bytes[n]);
  364. return str;
  365. }
  366. function stringToBytes(str) {
  367. var length = str.length;
  368. var bytes = new Uint8Array(length);
  369. for (var n = 0; n < length; ++n)
  370. bytes[n] = str.charCodeAt(n) & 0xFF;
  371. return bytes;
  372. }
  373. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  374. var Util = PDFJS.Util = (function UtilClosure() {
  375. function Util() {}
  376. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  377. return 'rgb(' + rgb[0] + ',' + rgb[1] + ',' + rgb[2] + ')';
  378. };
  379. Util.makeCssCmyk = function Util_makeCssCmyk(cmyk) {
  380. var rgb = ColorSpace.singletons.cmyk.getRgb(cmyk, 0);
  381. return Util.makeCssRgb(rgb);
  382. };
  383. // Concatenates two transformation matrices together and returns the result.
  384. Util.transform = function Util_transform(m1, m2) {
  385. return [
  386. m1[0] * m2[0] + m1[2] * m2[1],
  387. m1[1] * m2[0] + m1[3] * m2[1],
  388. m1[0] * m2[2] + m1[2] * m2[3],
  389. m1[1] * m2[2] + m1[3] * m2[3],
  390. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  391. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  392. ];
  393. };
  394. // For 2d affine transforms
  395. Util.applyTransform = function Util_applyTransform(p, m) {
  396. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  397. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  398. return [xt, yt];
  399. };
  400. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  401. var d = m[0] * m[3] - m[1] * m[2];
  402. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  403. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  404. return [xt, yt];
  405. };
  406. // Applies the transform to the rectangle and finds the minimum axially
  407. // aligned bounding box.
  408. Util.getAxialAlignedBoundingBox =
  409. function Util_getAxialAlignedBoundingBox(r, m) {
  410. var p1 = Util.applyTransform(r, m);
  411. var p2 = Util.applyTransform(r.slice(2, 4), m);
  412. var p3 = Util.applyTransform([r[0], r[3]], m);
  413. var p4 = Util.applyTransform([r[2], r[1]], m);
  414. return [
  415. Math.min(p1[0], p2[0], p3[0], p4[0]),
  416. Math.min(p1[1], p2[1], p3[1], p4[1]),
  417. Math.max(p1[0], p2[0], p3[0], p4[0]),
  418. Math.max(p1[1], p2[1], p3[1], p4[1])
  419. ];
  420. };
  421. Util.inverseTransform = function Util_inverseTransform(m) {
  422. var d = m[0] * m[3] - m[1] * m[2];
  423. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  424. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  425. };
  426. // Apply a generic 3d matrix M on a 3-vector v:
  427. // | a b c | | X |
  428. // | d e f | x | Y |
  429. // | g h i | | Z |
  430. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  431. // with v as [X,Y,Z]
  432. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  433. return [
  434. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  435. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  436. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  437. ];
  438. };
  439. // This calculation uses Singular Value Decomposition.
  440. // The SVD can be represented with formula A = USV. We are interested in the
  441. // matrix S here because it represents the scale values.
  442. Util.singularValueDecompose2dScale =
  443. function Util_singularValueDecompose2dScale(m) {
  444. var transpose = [m[0], m[2], m[1], m[3]];
  445. // Multiply matrix m with its transpose.
  446. var a = m[0] * transpose[0] + m[1] * transpose[2];
  447. var b = m[0] * transpose[1] + m[1] * transpose[3];
  448. var c = m[2] * transpose[0] + m[3] * transpose[2];
  449. var d = m[2] * transpose[1] + m[3] * transpose[3];
  450. // Solve the second degree polynomial to get roots.
  451. var first = (a + d) / 2;
  452. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  453. var sx = first + second || 1;
  454. var sy = first - second || 1;
  455. // Scale values are the square roots of the eigenvalues.
  456. return [Math.sqrt(sx), Math.sqrt(sy)];
  457. };
  458. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  459. // For coordinate systems whose origin lies in the bottom-left, this
  460. // means normalization to (BL,TR) ordering. For systems with origin in the
  461. // top-left, this means (TL,BR) ordering.
  462. Util.normalizeRect = function Util_normalizeRect(rect) {
  463. var r = rect.slice(0); // clone rect
  464. if (rect[0] > rect[2]) {
  465. r[0] = rect[2];
  466. r[2] = rect[0];
  467. }
  468. if (rect[1] > rect[3]) {
  469. r[1] = rect[3];
  470. r[3] = rect[1];
  471. }
  472. return r;
  473. };
  474. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  475. // intersection of rect1 and rect2. If no intersection, returns 'false'
  476. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  477. Util.intersect = function Util_intersect(rect1, rect2) {
  478. function compare(a, b) {
  479. return a - b;
  480. }
  481. // Order points along the axes
  482. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  483. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  484. result = [];
  485. rect1 = Util.normalizeRect(rect1);
  486. rect2 = Util.normalizeRect(rect2);
  487. // X: first and second points belong to different rectangles?
  488. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  489. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  490. // Intersection must be between second and third points
  491. result[0] = orderedX[1];
  492. result[2] = orderedX[2];
  493. } else {
  494. return false;
  495. }
  496. // Y: first and second points belong to different rectangles?
  497. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  498. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  499. // Intersection must be between second and third points
  500. result[1] = orderedY[1];
  501. result[3] = orderedY[2];
  502. } else {
  503. return false;
  504. }
  505. return result;
  506. };
  507. Util.sign = function Util_sign(num) {
  508. return num < 0 ? -1 : 1;
  509. };
  510. // TODO(mack): Rename appendToArray
  511. Util.concatenateToArray = function concatenateToArray(arr1, arr2) {
  512. Array.prototype.push.apply(arr1, arr2);
  513. };
  514. Util.prependToArray = function concatenateToArray(arr1, arr2) {
  515. Array.prototype.unshift.apply(arr1, arr2);
  516. };
  517. Util.extendObj = function extendObj(obj1, obj2) {
  518. for (var key in obj2) {
  519. obj1[key] = obj2[key];
  520. }
  521. };
  522. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  523. name) {
  524. while (dict && !dict.has(name)) {
  525. dict = dict.get('Parent');
  526. }
  527. if (!dict) {
  528. return null;
  529. }
  530. return dict.get(name);
  531. };
  532. Util.inherit = function Util_inherit(sub, base, prototype) {
  533. sub.prototype = Object.create(base.prototype);
  534. sub.prototype.constructor = sub;
  535. for (var prop in prototype) {
  536. sub.prototype[prop] = prototype[prop];
  537. }
  538. };
  539. Util.loadScript = function Util_loadScript(src, callback) {
  540. var script = document.createElement('script');
  541. var loaded = false;
  542. script.setAttribute('src', src);
  543. if (callback) {
  544. script.onload = function() {
  545. if (!loaded) {
  546. callback();
  547. }
  548. loaded = true;
  549. };
  550. }
  551. document.getElementsByTagName('head')[0].appendChild(script);
  552. };
  553. return Util;
  554. })();
  555. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  556. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  557. this.viewBox = viewBox;
  558. this.scale = scale;
  559. this.rotation = rotation;
  560. this.offsetX = offsetX;
  561. this.offsetY = offsetY;
  562. // creating transform to convert pdf coordinate system to the normal
  563. // canvas like coordinates taking in account scale and rotation
  564. var centerX = (viewBox[2] + viewBox[0]) / 2;
  565. var centerY = (viewBox[3] + viewBox[1]) / 2;
  566. var rotateA, rotateB, rotateC, rotateD;
  567. rotation = rotation % 360;
  568. rotation = rotation < 0 ? rotation + 360 : rotation;
  569. switch (rotation) {
  570. case 180:
  571. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  572. break;
  573. case 90:
  574. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  575. break;
  576. case 270:
  577. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  578. break;
  579. //case 0:
  580. default:
  581. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  582. break;
  583. }
  584. if (dontFlip) {
  585. rotateC = -rotateC; rotateD = -rotateD;
  586. }
  587. var offsetCanvasX, offsetCanvasY;
  588. var width, height;
  589. if (rotateA === 0) {
  590. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  591. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  592. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  593. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  594. } else {
  595. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  596. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  597. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  598. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  599. }
  600. // creating transform for the following operations:
  601. // translate(-centerX, -centerY), rotate and flip vertically,
  602. // scale, and translate(offsetCanvasX, offsetCanvasY)
  603. this.transform = [
  604. rotateA * scale,
  605. rotateB * scale,
  606. rotateC * scale,
  607. rotateD * scale,
  608. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  609. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  610. ];
  611. this.width = width;
  612. this.height = height;
  613. this.fontScale = scale;
  614. }
  615. PageViewport.prototype = {
  616. clone: function PageViewPort_clone(args) {
  617. args = args || {};
  618. var scale = 'scale' in args ? args.scale : this.scale;
  619. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  620. return new PageViewport(this.viewBox.slice(), scale, rotation,
  621. this.offsetX, this.offsetY, args.dontFlip);
  622. },
  623. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  624. return Util.applyTransform([x, y], this.transform);
  625. },
  626. convertToViewportRectangle:
  627. function PageViewport_convertToViewportRectangle(rect) {
  628. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  629. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  630. return [tl[0], tl[1], br[0], br[1]];
  631. },
  632. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  633. return Util.applyInverseTransform([x, y], this.transform);
  634. }
  635. };
  636. return PageViewport;
  637. })();
  638. var PDFStringTranslateTable = [
  639. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  640. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  641. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  642. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  643. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  644. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  645. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  646. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  647. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  648. ];
  649. function stringToPDFString(str) {
  650. var i, n = str.length, str2 = '';
  651. if (str[0] === '\xFE' && str[1] === '\xFF') {
  652. // UTF16BE BOM
  653. for (i = 2; i < n; i += 2)
  654. str2 += String.fromCharCode(
  655. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1));
  656. } else {
  657. for (i = 0; i < n; ++i) {
  658. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  659. str2 += code ? String.fromCharCode(code) : str.charAt(i);
  660. }
  661. }
  662. return str2;
  663. }
  664. function stringToUTF8String(str) {
  665. return decodeURIComponent(escape(str));
  666. }
  667. function isEmptyObj(obj) {
  668. for (var key in obj) {
  669. return false;
  670. }
  671. return true;
  672. }
  673. function isBool(v) {
  674. return typeof v == 'boolean';
  675. }
  676. function isInt(v) {
  677. return typeof v == 'number' && ((v | 0) == v);
  678. }
  679. function isNum(v) {
  680. return typeof v == 'number';
  681. }
  682. function isString(v) {
  683. return typeof v == 'string';
  684. }
  685. function isNull(v) {
  686. return v === null;
  687. }
  688. function isName(v) {
  689. return v instanceof Name;
  690. }
  691. function isCmd(v, cmd) {
  692. return v instanceof Cmd && (!cmd || v.cmd == cmd);
  693. }
  694. function isDict(v, type) {
  695. if (!(v instanceof Dict)) {
  696. return false;
  697. }
  698. if (!type) {
  699. return true;
  700. }
  701. var dictType = v.get('Type');
  702. return isName(dictType) && dictType.name == type;
  703. }
  704. function isArray(v) {
  705. return v instanceof Array;
  706. }
  707. function isStream(v) {
  708. return typeof v == 'object' && v !== null && v !== undefined &&
  709. ('getBytes' in v);
  710. }
  711. function isArrayBuffer(v) {
  712. return typeof v == 'object' && v !== null && v !== undefined &&
  713. ('byteLength' in v);
  714. }
  715. function isRef(v) {
  716. return v instanceof Ref;
  717. }
  718. function isPDFFunction(v) {
  719. var fnDict;
  720. if (typeof v != 'object')
  721. return false;
  722. else if (isDict(v))
  723. fnDict = v;
  724. else if (isStream(v))
  725. fnDict = v.dict;
  726. else
  727. return false;
  728. return fnDict.has('FunctionType');
  729. }
  730. /**
  731. * Legacy support for PDFJS Promise implementation.
  732. * TODO remove eventually
  733. */
  734. var LegacyPromise = PDFJS.LegacyPromise = (function LegacyPromiseClosure() {
  735. return function LegacyPromise() {
  736. var resolve, reject;
  737. var promise = new Promise(function (resolve_, reject_) {
  738. resolve = resolve_;
  739. reject = reject_;
  740. });
  741. promise.resolve = resolve;
  742. promise.reject = reject;
  743. return promise;
  744. };
  745. })();
  746. /**
  747. * Polyfill for Promises:
  748. * The following promise implementation tries to generally implment the
  749. * Promise/A+ spec. Some notable differences from other promise libaries are:
  750. * - There currently isn't a seperate deferred and promise object.
  751. * - Unhandled rejections eventually show an error if they aren't handled.
  752. *
  753. * Based off of the work in:
  754. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  755. */
  756. (function PromiseClosure() {
  757. if (globalScope.Promise) {
  758. // Promises existing in the DOM/Worker, checking presence of all/resolve
  759. if (typeof globalScope.Promise.all !== 'function') {
  760. globalScope.Promise.all = function (iterable) {
  761. var count = 0, results = [], resolve, reject;
  762. var promise = new globalScope.Promise(function (resolve_, reject_) {
  763. resolve = resolve_;
  764. reject = reject_;
  765. });
  766. iterable.forEach(function (p, i) {
  767. count++;
  768. p.then(function (result) {
  769. results[i] = result;
  770. count--;
  771. if (count === 0) {
  772. resolve(results);
  773. }
  774. }, reject);
  775. });
  776. if (count === 0) {
  777. resolve(results);
  778. }
  779. return promise;
  780. };
  781. }
  782. if (typeof globalScope.Promise.resolve !== 'function') {
  783. globalScope.Promise.resolve = function (x) {
  784. return new globalScope.Promise(function (resolve) { resolve(x); });
  785. };
  786. }
  787. return;
  788. }
  789. var STATUS_PENDING = 0;
  790. var STATUS_RESOLVED = 1;
  791. var STATUS_REJECTED = 2;
  792. // In an attempt to avoid silent exceptions, unhandled rejections are
  793. // tracked and if they aren't handled in a certain amount of time an
  794. // error is logged.
  795. var REJECTION_TIMEOUT = 500;
  796. var HandlerManager = {
  797. handlers: [],
  798. running: false,
  799. unhandledRejections: [],
  800. pendingRejectionCheck: false,
  801. scheduleHandlers: function scheduleHandlers(promise) {
  802. if (promise._status == STATUS_PENDING) {
  803. return;
  804. }
  805. this.handlers = this.handlers.concat(promise._handlers);
  806. promise._handlers = [];
  807. if (this.running) {
  808. return;
  809. }
  810. this.running = true;
  811. setTimeout(this.runHandlers.bind(this), 0);
  812. },
  813. runHandlers: function runHandlers() {
  814. var RUN_TIMEOUT = 1; // ms
  815. var timeoutAt = Date.now() + RUN_TIMEOUT;
  816. while (this.handlers.length > 0) {
  817. var handler = this.handlers.shift();
  818. var nextStatus = handler.thisPromise._status;
  819. var nextValue = handler.thisPromise._value;
  820. try {
  821. if (nextStatus === STATUS_RESOLVED) {
  822. if (typeof(handler.onResolve) == 'function') {
  823. nextValue = handler.onResolve(nextValue);
  824. }
  825. } else if (typeof(handler.onReject) === 'function') {
  826. nextValue = handler.onReject(nextValue);
  827. nextStatus = STATUS_RESOLVED;
  828. if (handler.thisPromise._unhandledRejection) {
  829. this.removeUnhandeledRejection(handler.thisPromise);
  830. }
  831. }
  832. } catch (ex) {
  833. nextStatus = STATUS_REJECTED;
  834. nextValue = ex;
  835. }
  836. handler.nextPromise._updateStatus(nextStatus, nextValue);
  837. if (Date.now() >= timeoutAt) {
  838. break;
  839. }
  840. }
  841. if (this.handlers.length > 0) {
  842. setTimeout(this.runHandlers.bind(this), 0);
  843. return;
  844. }
  845. this.running = false;
  846. },
  847. addUnhandledRejection: function addUnhandledRejection(promise) {
  848. this.unhandledRejections.push({
  849. promise: promise,
  850. time: Date.now()
  851. });
  852. this.scheduleRejectionCheck();
  853. },
  854. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  855. promise._unhandledRejection = false;
  856. for (var i = 0; i < this.unhandledRejections.length; i++) {
  857. if (this.unhandledRejections[i].promise === promise) {
  858. this.unhandledRejections.splice(i);
  859. i--;
  860. }
  861. }
  862. },
  863. scheduleRejectionCheck: function scheduleRejectionCheck() {
  864. if (this.pendingRejectionCheck) {
  865. return;
  866. }
  867. this.pendingRejectionCheck = true;
  868. setTimeout(function rejectionCheck() {
  869. this.pendingRejectionCheck = false;
  870. var now = Date.now();
  871. for (var i = 0; i < this.unhandledRejections.length; i++) {
  872. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  873. var unhandled = this.unhandledRejections[i].promise._value;
  874. var msg = 'Unhandled rejection: ' + unhandled;
  875. if (unhandled.stack) {
  876. msg += '\n' + unhandled.stack;
  877. }
  878. warn(msg);
  879. this.unhandledRejections.splice(i);
  880. i--;
  881. }
  882. }
  883. if (this.unhandledRejections.length) {
  884. this.scheduleRejectionCheck();
  885. }
  886. }.bind(this), REJECTION_TIMEOUT);
  887. }
  888. };
  889. function Promise(resolver) {
  890. this._status = STATUS_PENDING;
  891. this._handlers = [];
  892. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  893. }
  894. /**
  895. * Builds a promise that is resolved when all the passed in promises are
  896. * resolved.
  897. * @param {array} array of data and/or promises to wait for.
  898. * @return {Promise} New dependant promise.
  899. */
  900. Promise.all = function Promise_all(promises) {
  901. var resolveAll, rejectAll;
  902. var deferred = new Promise(function (resolve, reject) {
  903. resolveAll = resolve;
  904. rejectAll = reject;
  905. });
  906. var unresolved = promises.length;
  907. var results = [];
  908. if (unresolved === 0) {
  909. resolveAll(results);
  910. return deferred;
  911. }
  912. function reject(reason) {
  913. if (deferred._status === STATUS_REJECTED) {
  914. return;
  915. }
  916. results = [];
  917. rejectAll(reason);
  918. }
  919. for (var i = 0, ii = promises.length; i < ii; ++i) {
  920. var promise = promises[i];
  921. var resolve = (function(i) {
  922. return function(value) {
  923. if (deferred._status === STATUS_REJECTED) {
  924. return;
  925. }
  926. results[i] = value;
  927. unresolved--;
  928. if (unresolved === 0)
  929. resolveAll(results);
  930. };
  931. })(i);
  932. if (Promise.isPromise(promise)) {
  933. promise.then(resolve, reject);
  934. } else {
  935. resolve(promise);
  936. }
  937. }
  938. return deferred;
  939. };
  940. /**
  941. * Checks if the value is likely a promise (has a 'then' function).
  942. * @return {boolean} true if x is thenable
  943. */
  944. Promise.isPromise = function Promise_isPromise(value) {
  945. return value && typeof value.then === 'function';
  946. };
  947. /**
  948. * Creates resolved promise
  949. * @param x resolve value
  950. * @returns {Promise}
  951. */
  952. Promise.resolve = function Promise_resolve(x) {
  953. return new Promise(function (resolve) { resolve(x); });
  954. };
  955. Promise.prototype = {
  956. _status: null,
  957. _value: null,
  958. _handlers: null,
  959. _unhandledRejection: null,
  960. _updateStatus: function Promise__updateStatus(status, value) {
  961. if (this._status === STATUS_RESOLVED ||
  962. this._status === STATUS_REJECTED) {
  963. return;
  964. }
  965. if (status == STATUS_RESOLVED &&
  966. Promise.isPromise(value)) {
  967. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  968. this._updateStatus.bind(this, STATUS_REJECTED));
  969. return;
  970. }
  971. this._status = status;
  972. this._value = value;
  973. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  974. this._unhandledRejection = true;
  975. HandlerManager.addUnhandledRejection(this);
  976. }
  977. HandlerManager.scheduleHandlers(this);
  978. },
  979. _resolve: function Promise_resolve(value) {
  980. this._updateStatus(STATUS_RESOLVED, value);
  981. },
  982. _reject: function Promise_reject(reason) {
  983. this._updateStatus(STATUS_REJECTED, reason);
  984. },
  985. then: function Promise_then(onResolve, onReject) {
  986. var nextPromise = new Promise(function (resolve, reject) {
  987. this.resolve = reject;
  988. this.reject = reject;
  989. });
  990. this._handlers.push({
  991. thisPromise: this,
  992. onResolve: onResolve,
  993. onReject: onReject,
  994. nextPromise: nextPromise
  995. });
  996. HandlerManager.scheduleHandlers(this);
  997. return nextPromise;
  998. }
  999. };
  1000. globalScope.Promise = Promise;
  1001. })();
  1002. var StatTimer = (function StatTimerClosure() {
  1003. function rpad(str, pad, length) {
  1004. while (str.length < length)
  1005. str += pad;
  1006. return str;
  1007. }
  1008. function StatTimer() {
  1009. this.started = {};
  1010. this.times = [];
  1011. this.enabled = true;
  1012. }
  1013. StatTimer.prototype = {
  1014. time: function StatTimer_time(name) {
  1015. if (!this.enabled)
  1016. return;
  1017. if (name in this.started)
  1018. warn('Timer is already running for ' + name);
  1019. this.started[name] = Date.now();
  1020. },
  1021. timeEnd: function StatTimer_timeEnd(name) {
  1022. if (!this.enabled)
  1023. return;
  1024. if (!(name in this.started))
  1025. warn('Timer has not been started for ' + name);
  1026. this.times.push({
  1027. 'name': name,
  1028. 'start': this.started[name],
  1029. 'end': Date.now()
  1030. });
  1031. // Remove timer from started so it can be called again.
  1032. delete this.started[name];
  1033. },
  1034. toString: function StatTimer_toString() {
  1035. var times = this.times;
  1036. var out = '';
  1037. // Find the longest name for padding purposes.
  1038. var longest = 0;
  1039. for (var i = 0, ii = times.length; i < ii; ++i) {
  1040. var name = times[i]['name'];
  1041. if (name.length > longest)
  1042. longest = name.length;
  1043. }
  1044. for (var i = 0, ii = times.length; i < ii; ++i) {
  1045. var span = times[i];
  1046. var duration = span.end - span.start;
  1047. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1048. }
  1049. return out;
  1050. }
  1051. };
  1052. return StatTimer;
  1053. })();
  1054. PDFJS.createBlob = function createBlob(data, contentType) {
  1055. if (typeof Blob !== 'undefined')
  1056. return new Blob([data], { type: contentType });
  1057. // Blob builder is deprecated in FF14 and removed in FF18.
  1058. var bb = new MozBlobBuilder();
  1059. bb.append(data);
  1060. return bb.getBlob(contentType);
  1061. };
  1062. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1063. // Blob/createObjectURL is not available, falling back to data schema.
  1064. var digits =
  1065. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1066. return function createObjectURL(data, contentType) {
  1067. if (!PDFJS.disableCreateObjectURL &&
  1068. typeof URL !== 'undefined' && URL.createObjectURL) {
  1069. var blob = PDFJS.createBlob(data, contentType);
  1070. return URL.createObjectURL(blob);
  1071. }
  1072. var buffer = 'data:' + contentType + ';base64,';
  1073. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1074. var b1 = data[i] & 0xFF;
  1075. var b2 = data[i + 1] & 0xFF;
  1076. var b3 = data[i + 2] & 0xFF;
  1077. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1078. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1079. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1080. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1081. }
  1082. return buffer;
  1083. };
  1084. })();
  1085. function MessageHandler(name, comObj) {
  1086. this.name = name;
  1087. this.comObj = comObj;
  1088. this.callbackIndex = 1;
  1089. this.postMessageTransfers = true;
  1090. var callbacks = this.callbacks = {};
  1091. var ah = this.actionHandler = {};
  1092. ah['console_log'] = [function ahConsoleLog(data) {
  1093. console.log.apply(console, data);
  1094. }];
  1095. ah['console_error'] = [function ahConsoleError(data) {
  1096. console.error.apply(console, data);
  1097. }];
  1098. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1099. UnsupportedManager.notify(data);
  1100. }];
  1101. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1102. var data = event.data;
  1103. if (data.isReply) {
  1104. var callbackId = data.callbackId;
  1105. if (data.callbackId in callbacks) {
  1106. var callback = callbacks[callbackId];
  1107. delete callbacks[callbackId];
  1108. callback(data.data);
  1109. } else {
  1110. error('Cannot resolve callback ' + callbackId);
  1111. }
  1112. } else if (data.action in ah) {
  1113. var action = ah[data.action];
  1114. if (data.callbackId) {
  1115. var deferred = {};
  1116. var promise = new Promise(function (resolve, reject) {
  1117. deferred.resolve = resolve;
  1118. deferred.reject = reject;
  1119. });
  1120. deferred.promise = promise;
  1121. promise.then(function(resolvedData) {
  1122. comObj.postMessage({
  1123. isReply: true,
  1124. callbackId: data.callbackId,
  1125. data: resolvedData
  1126. });
  1127. });
  1128. action[0].call(action[1], data.data, deferred);
  1129. } else {
  1130. action[0].call(action[1], data.data);
  1131. }
  1132. } else {
  1133. error('Unkown action from worker: ' + data.action);
  1134. }
  1135. };
  1136. }
  1137. MessageHandler.prototype = {
  1138. on: function messageHandlerOn(actionName, handler, scope) {
  1139. var ah = this.actionHandler;
  1140. if (ah[actionName]) {
  1141. error('There is already an actionName called "' + actionName + '"');
  1142. }
  1143. ah[actionName] = [handler, scope];
  1144. },
  1145. /**
  1146. * Sends a message to the comObj to invoke the action with the supplied data.
  1147. * @param {String} actionName Action to call.
  1148. * @param {JSON} data JSON data to send.
  1149. * @param {function} [callback] Optional callback that will handle a reply.
  1150. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1151. */
  1152. send: function messageHandlerSend(actionName, data, callback, transfers) {
  1153. var message = {
  1154. action: actionName,
  1155. data: data
  1156. };
  1157. if (callback) {
  1158. var callbackId = this.callbackIndex++;
  1159. this.callbacks[callbackId] = callback;
  1160. message.callbackId = callbackId;
  1161. }
  1162. if (transfers && this.postMessageTransfers) {
  1163. this.comObj.postMessage(message, transfers);
  1164. } else {
  1165. this.comObj.postMessage(message);
  1166. }
  1167. }
  1168. };
  1169. function loadJpegStream(id, imageUrl, objs) {
  1170. var img = new Image();
  1171. img.onload = (function loadJpegStream_onloadClosure() {
  1172. objs.resolve(id, img);
  1173. });
  1174. img.src = imageUrl;
  1175. }
  1176. var ColorSpace = (function ColorSpaceClosure() {
  1177. // Constructor should define this.numComps, this.defaultColor, this.name
  1178. function ColorSpace() {
  1179. error('should not call ColorSpace constructor');
  1180. }
  1181. ColorSpace.prototype = {
  1182. /**
  1183. * Converts the color value to the RGB color. The color components are
  1184. * located in the src array starting from the srcOffset. Returns the array
  1185. * of the rgb components, each value ranging from [0,255].
  1186. */
  1187. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  1188. error('Should not call ColorSpace.getRgb');
  1189. },
  1190. /**
  1191. * Converts the color value to the RGB color, similar to the getRgb method.
  1192. * The result placed into the dest array starting from the destOffset.
  1193. */
  1194. getRgbItem: function ColorSpace_getRgb(src, srcOffset, dest, destOffset) {
  1195. error('Should not call ColorSpace.getRgbItem');
  1196. },
  1197. /**
  1198. * Converts the specified number of the color values to the RGB colors.
  1199. * The colors are located in the src array starting from the srcOffset.
  1200. * The result is placed into the dest array starting from the destOffset.
  1201. * The src array items shall be in [0,2^bits) range, the dest array items
  1202. * will be in [0,255] range. alpha01 indicates how many alpha components
  1203. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  1204. * array).
  1205. */
  1206. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  1207. dest, destOffset, bits,
  1208. alpha01) {
  1209. error('Should not call ColorSpace.getRgbBuffer');
  1210. },
  1211. /**
  1212. * Determines the number of bytes required to store the result of the
  1213. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  1214. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  1215. */
  1216. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  1217. alpha01) {
  1218. error('Should not call ColorSpace.getOutputLength');
  1219. },
  1220. /**
  1221. * Returns true if source data will be equal the result/output data.
  1222. */
  1223. isPassthrough: function ColorSpace_isPassthrough(bits) {
  1224. return false;
  1225. },
  1226. /**
  1227. * Fills in the RGB colors in an RGBA buffer.
  1228. */
  1229. fillRgb: function ColorSpace_fillRgb(rgbaBuf, originalWidth,
  1230. originalHeight, width, height,
  1231. actualHeight, bpc, comps) {
  1232. var count = originalWidth * originalHeight;
  1233. var rgbBuf = null;
  1234. var numComponentColors = 1 << bpc;
  1235. var needsResizing = originalHeight != height || originalWidth != width;
  1236. if (this.isPassthrough(bpc)) {
  1237. rgbBuf = comps;
  1238. } else if (this.numComps === 1 && count > numComponentColors &&
  1239. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  1240. // Optimization: create a color map when there is just one component and
  1241. // we are converting more colors than the size of the color map. We
  1242. // don't build the map if the colorspace is gray or rgb since those
  1243. // methods are faster than building a map. This mainly offers big speed
  1244. // ups for indexed and alternate colorspaces.
  1245. //
  1246. // TODO it may be worth while to cache the color map. While running
  1247. // testing I never hit a cache so I will leave that out for now (perhaps
  1248. // we are reparsing colorspaces too much?).
  1249. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  1250. new Uint16Array(numComponentColors);
  1251. for (var i = 0; i < numComponentColors; i++) {
  1252. allColors[i] = i;
  1253. }
  1254. var colorMap = new Uint8Array(numComponentColors * 3);
  1255. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  1256. /* alpha01 = */ 0);
  1257. if (!needsResizing) {
  1258. // Fill in the RGB values directly into |rgbaBuf|.
  1259. var rgbaPos = 0;
  1260. for (var i = 0; i < count; ++i) {
  1261. var key = comps[i] * 3;
  1262. rgbaBuf[rgbaPos++] = colorMap[key];
  1263. rgbaBuf[rgbaPos++] = colorMap[key + 1];
  1264. rgbaBuf[rgbaPos++] = colorMap[key + 2];
  1265. rgbaPos++;
  1266. }
  1267. } else {
  1268. rgbBuf = new Uint8Array(count * 3);
  1269. var rgbPos = 0;
  1270. for (var i = 0; i < count; ++i) {
  1271. var key = comps[i] * 3;
  1272. rgbBuf[rgbPos++] = colorMap[key];
  1273. rgbBuf[rgbPos++] = colorMap[key + 1];
  1274. rgbBuf[rgbPos++] = colorMap[key + 2];
  1275. }
  1276. }
  1277. } else {
  1278. if (!needsResizing) {
  1279. // Fill in the RGB values directly into |rgbaBuf|.
  1280. this.getRgbBuffer(comps, 0, width * actualHeight, rgbaBuf, 0, bpc,
  1281. /* alpha01 = */ 1);
  1282. } else {
  1283. rgbBuf = new Uint8Array(count * 3);
  1284. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  1285. /* alpha01 = */ 0);
  1286. }
  1287. }
  1288. if (rgbBuf) {
  1289. if (needsResizing) {
  1290. rgbBuf = PDFImage.resize(rgbBuf, bpc, 3, originalWidth,
  1291. originalHeight, width, height);
  1292. }
  1293. var rgbPos = 0;
  1294. var actualLength = width * actualHeight * 4;
  1295. for (var i = 0; i < actualLength; i += 4) {
  1296. rgbaBuf[i] = rgbBuf[rgbPos++];
  1297. rgbaBuf[i + 1] = rgbBuf[rgbPos++];
  1298. rgbaBuf[i + 2] = rgbBuf[rgbPos++];
  1299. }
  1300. }
  1301. },
  1302. /**
  1303. * True if the colorspace has components in the default range of [0, 1].
  1304. * This should be true for all colorspaces except for lab color spaces
  1305. * which are [0,100], [-128, 127], [-128, 127].
  1306. */
  1307. usesZeroToOneRange: true
  1308. };
  1309. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  1310. var IR = ColorSpace.parseToIR(cs, xref, res);
  1311. if (IR instanceof AlternateCS)
  1312. return IR;
  1313. return ColorSpace.fromIR(IR);
  1314. };
  1315. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  1316. var name = isArray(IR) ? IR[0] : IR;
  1317. switch (name) {
  1318. case 'DeviceGrayCS':
  1319. return this.singletons.gray;
  1320. case 'DeviceRgbCS':
  1321. return this.singletons.rgb;
  1322. case 'DeviceCmykCS':
  1323. return this.singletons.cmyk;
  1324. case 'CalGrayCS':
  1325. var whitePoint = IR[1].WhitePoint;
  1326. var blackPoint = IR[1].BlackPoint;
  1327. var gamma = IR[1].Gamma;
  1328. return new CalGrayCS(whitePoint, blackPoint, gamma);
  1329. case 'PatternCS':
  1330. var basePatternCS = IR[1];
  1331. if (basePatternCS)
  1332. basePatternCS = ColorSpace.fromIR(basePatternCS);
  1333. return new PatternCS(basePatternCS);
  1334. case 'IndexedCS':
  1335. var baseIndexedCS = IR[1];
  1336. var hiVal = IR[2];
  1337. var lookup = IR[3];
  1338. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  1339. case 'AlternateCS':
  1340. var numComps = IR[1];
  1341. var alt = IR[2];
  1342. var tintFnIR = IR[3];
  1343. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  1344. PDFFunction.fromIR(tintFnIR));
  1345. case 'LabCS':
  1346. var whitePoint = IR[1].WhitePoint;
  1347. var blackPoint = IR[1].BlackPoint;
  1348. var range = IR[1].Range;
  1349. return new LabCS(whitePoint, blackPoint, range);
  1350. default:
  1351. error('Unkown name ' + name);
  1352. }
  1353. return null;
  1354. };
  1355. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  1356. if (isName(cs)) {
  1357. var colorSpaces = res.get('ColorSpace');
  1358. if (isDict(colorSpaces)) {
  1359. var refcs = colorSpaces.get(cs.name);
  1360. if (refcs)
  1361. cs = refcs;
  1362. }
  1363. }
  1364. cs = xref.fetchIfRef(cs);
  1365. var mode;
  1366. if (isName(cs)) {
  1367. mode = cs.name;
  1368. this.mode = mode;
  1369. switch (mode) {
  1370. case 'DeviceGray':
  1371. case 'G':
  1372. return 'DeviceGrayCS';
  1373. case 'DeviceRGB':
  1374. case 'RGB':
  1375. return 'DeviceRgbCS';
  1376. case 'DeviceCMYK':
  1377. case 'CMYK':
  1378. return 'DeviceCmykCS';
  1379. case 'Pattern':
  1380. return ['PatternCS', null];
  1381. default:
  1382. error('unrecognized colorspace ' + mode);
  1383. }
  1384. } else if (isArray(cs)) {
  1385. mode = cs[0].name;
  1386. this.mode = mode;
  1387. switch (mode) {
  1388. case 'DeviceGray':
  1389. case 'G':
  1390. return 'DeviceGrayCS';
  1391. case 'DeviceRGB':
  1392. case 'RGB':
  1393. return 'DeviceRgbCS';
  1394. case 'DeviceCMYK':
  1395. case 'CMYK':
  1396. return 'DeviceCmykCS';
  1397. case 'CalGray':
  1398. var params = cs[1].getAll();
  1399. return ['CalGrayCS', params];
  1400. case 'CalRGB':
  1401. return 'DeviceRgbCS';
  1402. case 'ICCBased':
  1403. var stream = xref.fetchIfRef(cs[1]);
  1404. var dict = stream.dict;
  1405. var numComps = dict.get('N');
  1406. if (numComps == 1)
  1407. return 'DeviceGrayCS';
  1408. if (numComps == 3)
  1409. return 'DeviceRgbCS';
  1410. if (numComps == 4)
  1411. return 'DeviceCmykCS';
  1412. break;
  1413. case 'Pattern':
  1414. var basePatternCS = cs[1];
  1415. if (basePatternCS)
  1416. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  1417. return ['PatternCS', basePatternCS];
  1418. case 'Indexed':
  1419. case 'I':
  1420. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  1421. var hiVal = cs[2] + 1;
  1422. var lookup = xref.fetchIfRef(cs[3]);
  1423. if (isStream(lookup)) {
  1424. lookup = lookup.getBytes();
  1425. }
  1426. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  1427. case 'Separation':
  1428. case 'DeviceN':
  1429. var name = cs[1];
  1430. var numComps = 1;
  1431. if (isName(name))
  1432. numComps = 1;
  1433. else if (isArray(name))
  1434. numComps = name.length;
  1435. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  1436. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  1437. return ['AlternateCS', numComps, alt, tintFnIR];
  1438. case 'Lab':
  1439. var params = cs[1].getAll();
  1440. return ['LabCS', params];
  1441. default:
  1442. error('unimplemented color space object "' + mode + '"');
  1443. }
  1444. } else {
  1445. error('unrecognized color space object: "' + cs + '"');
  1446. }
  1447. return null;
  1448. };
  1449. /**
  1450. * Checks if a decode map matches the default decode map for a color space.
  1451. * This handles the general decode maps where there are two values per
  1452. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  1453. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  1454. * slightly different.
  1455. * @param {Array} decode Decode map (usually from an image).
  1456. * @param {Number} n Number of components the color space has.
  1457. */
  1458. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  1459. if (!decode)
  1460. return true;
  1461. if (n * 2 !== decode.length) {
  1462. warn('The decode map is not the correct length');
  1463. return true;
  1464. }
  1465. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  1466. if (decode[i] !== 0 || decode[i + 1] != 1)
  1467. return false;
  1468. }
  1469. return true;
  1470. };
  1471. ColorSpace.singletons = {
  1472. get gray() {
  1473. return shadow(this, 'gray', new DeviceGrayCS());
  1474. },
  1475. get rgb() {
  1476. return shadow(this, 'rgb', new DeviceRgbCS());
  1477. },
  1478. get cmyk() {
  1479. return shadow(this, 'cmyk', new DeviceCmykCS());
  1480. }
  1481. };
  1482. return ColorSpace;
  1483. })();
  1484. /**
  1485. * Alternate color space handles both Separation and DeviceN color spaces. A
  1486. * Separation color space is actually just a DeviceN with one color component.
  1487. * Both color spaces use a tinting function to convert colors to a base color
  1488. * space.
  1489. */
  1490. var AlternateCS = (function AlternateCSClosure() {
  1491. function AlternateCS(numComps, base, tintFn) {
  1492. this.name = 'Alternate';
  1493. this.numComps = numComps;
  1494. this.defaultColor = new Float32Array(numComps);
  1495. for (var i = 0; i < numComps; ++i) {
  1496. this.defaultColor[i] = 1;
  1497. }
  1498. this.base = base;
  1499. this.tintFn = tintFn;
  1500. }
  1501. AlternateCS.prototype = {
  1502. getRgb: function AlternateCS_getRgb(src, srcOffset) {
  1503. var rgb = new Uint8Array(3);
  1504. this.getRgbItem(src, srcOffset, rgb, 0);
  1505. return rgb;
  1506. },
  1507. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  1508. dest, destOffset) {
  1509. var baseNumComps = this.base.numComps;
  1510. var input = 'subarray' in src ?
  1511. src.subarray(srcOffset, srcOffset + this.numComps) :
  1512. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  1513. var tinted = this.tintFn(input);
  1514. this.base.getRgbItem(tinted, 0, dest, destOffset);
  1515. },
  1516. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  1517. dest, destOffset, bits,
  1518. alpha01) {
  1519. var tintFn = this.tintFn;
  1520. var base = this.base;
  1521. var scale = 1 / ((1 << bits) - 1);
  1522. var baseNumComps = base.numComps;
  1523. var usesZeroToOneRange = base.usesZeroToOneRange;
  1524. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  1525. alpha01 === 0;
  1526. var pos = isPassthrough ? destOffset : 0;
  1527. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  1528. var numComps = this.numComps;
  1529. var scaled = new Float32Array(numComps);
  1530. for (var i = 0; i < count; i++) {
  1531. for (var j = 0; j < numComps; j++) {
  1532. scaled[j] = src[srcOffset++] * scale;
  1533. }
  1534. var tinted = tintFn(scaled);
  1535. if (usesZeroToOneRange) {
  1536. for (var j = 0; j < baseNumComps; j++) {
  1537. baseBuf[pos++] = tinted[j] * 255;
  1538. }
  1539. } else {
  1540. base.getRgbItem(tinted, 0, baseBuf, pos);
  1541. pos += baseNumComps;
  1542. }
  1543. }
  1544. if (!isPassthrough) {
  1545. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  1546. }
  1547. },
  1548. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  1549. alpha01) {
  1550. return this.base.getOutputLength(inputLength *
  1551. this.base.numComps / this.numComps,
  1552. alpha01);
  1553. },
  1554. isPassthrough: ColorSpace.prototype.isPassthrough,
  1555. fillRgb: ColorSpace.prototype.fillRgb,
  1556. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  1557. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1558. },
  1559. usesZeroToOneRange: true
  1560. };
  1561. return AlternateCS;
  1562. })();
  1563. var PatternCS = (function PatternCSClosure() {
  1564. function PatternCS(baseCS) {
  1565. this.name = 'Pattern';
  1566. this.base = baseCS;
  1567. }
  1568. PatternCS.prototype = {};
  1569. return PatternCS;
  1570. })();
  1571. var IndexedCS = (function IndexedCSClosure() {
  1572. function IndexedCS(base, highVal, lookup) {
  1573. this.name = 'Indexed';
  1574. this.numComps = 1;
  1575. this.defaultColor = new Uint8Array([0]);
  1576. this.base = base;
  1577. this.highVal = highVal;
  1578. var baseNumComps = base.numComps;
  1579. var length = baseNumComps * highVal;
  1580. var lookupArray;
  1581. if (isStream(lookup)) {
  1582. lookupArray = new Uint8Array(length);
  1583. var bytes = lookup.getBytes(length);
  1584. lookupArray.set(bytes);
  1585. } else if (isString(lookup)) {
  1586. lookupArray = new Uint8Array(length);
  1587. for (var i = 0; i < length; ++i)
  1588. lookupArray[i] = lookup.charCodeAt(i);
  1589. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  1590. lookupArray = lookup;
  1591. } else {
  1592. error('Unrecognized lookup table: ' + lookup);
  1593. }
  1594. this.lookup = lookupArray;
  1595. }
  1596. IndexedCS.prototype = {
  1597. getRgb: function IndexedCS_getRgb(src, srcOffset) {
  1598. var numComps = this.base.numComps;
  1599. var start = src[srcOffset] * numComps;
  1600. return this.base.getRgb(this.lookup, start);
  1601. },
  1602. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  1603. dest, destOffset) {
  1604. var numComps = this.base.numComps;
  1605. var start = src[srcOffset] * numComps;
  1606. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  1607. },
  1608. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  1609. dest, destOffset, bits,
  1610. alpha01) {
  1611. var base = this.base;
  1612. var numComps = base.numComps;
  1613. var outputDelta = base.getOutputLength(numComps, alpha01);
  1614. var lookup = this.lookup;
  1615. for (var i = 0; i < count; ++i) {
  1616. var lookupPos = src[srcOffset++] * numComps;
  1617. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  1618. destOffset += outputDelta;
  1619. }
  1620. },
  1621. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  1622. return this.base.getOutputLength(inputLength * this.base.numComps,
  1623. alpha01);
  1624. },
  1625. isPassthrough: ColorSpace.prototype.isPassthrough,
  1626. fillRgb: ColorSpace.prototype.fillRgb,
  1627. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  1628. // indexed color maps shouldn't be changed
  1629. return true;
  1630. },
  1631. usesZeroToOneRange: true
  1632. };
  1633. return IndexedCS;
  1634. })();
  1635. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  1636. function DeviceGrayCS() {
  1637. this.name = 'DeviceGray';
  1638. this.numComps = 1;
  1639. this.defaultColor = new Float32Array([0]);
  1640. }
  1641. DeviceGrayCS.prototype = {
  1642. getRgb: function DeviceGrayCS_getRgb(src, srcOffset) {
  1643. var rgb = new Uint8Array(3);
  1644. this.getRgbItem(src, srcOffset, rgb, 0);
  1645. return rgb;
  1646. },
  1647. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  1648. dest, destOffset) {
  1649. var c = (src[srcOffset] * 255) | 0;
  1650. c = c < 0 ? 0 : c > 255 ? 255 : c;
  1651. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  1652. },
  1653. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  1654. dest, destOffset, bits,
  1655. alpha01) {
  1656. var scale = 255 / ((1 << bits) - 1);
  1657. var j = srcOffset, q = destOffset;
  1658. for (var i = 0; i < count; ++i) {
  1659. var c = (scale * src[j++]) | 0;
  1660. dest[q++] = c;
  1661. dest[q++] = c;
  1662. dest[q++] = c;
  1663. q += alpha01;
  1664. }
  1665. },
  1666. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  1667. alpha01) {
  1668. return inputLength * (3 + alpha01);
  1669. },
  1670. isPassthrough: ColorSpace.prototype.isPassthrough,
  1671. fillRgb: ColorSpace.prototype.fillRgb,
  1672. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  1673. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1674. },
  1675. usesZeroToOneRange: true
  1676. };
  1677. return DeviceGrayCS;
  1678. })();
  1679. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  1680. function DeviceRgbCS() {
  1681. this.name = 'DeviceRGB';
  1682. this.numComps = 3;
  1683. this.defaultColor = new Float32Array([0, 0, 0]);
  1684. }
  1685. DeviceRgbCS.prototype = {
  1686. getRgb: function DeviceRgbCS_getRgb(src, srcOffset) {
  1687. var rgb = new Uint8Array(3);
  1688. this.getRgbItem(src, srcOffset, rgb, 0);
  1689. return rgb;
  1690. },
  1691. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  1692. dest, destOffset) {
  1693. var r = (src[srcOffset] * 255) | 0;
  1694. var g = (src[srcOffset + 1] * 255) | 0;
  1695. var b = (src[srcOffset + 2] * 255) | 0;
  1696. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  1697. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  1698. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  1699. },
  1700. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  1701. dest, destOffset, bits,
  1702. alpha01) {
  1703. if (bits === 8 && alpha01 === 0) {
  1704. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  1705. return;
  1706. }
  1707. var scale = 255 / ((1 << bits) - 1);
  1708. var j = srcOffset, q = destOffset;
  1709. for (var i = 0; i < count; ++i) {
  1710. dest[q++] = (scale * src[j++]) | 0;
  1711. dest[q++] = (scale * src[j++]) | 0;
  1712. dest[q++] = (scale * src[j++]) | 0;
  1713. q += alpha01;
  1714. }
  1715. },
  1716. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  1717. alpha01) {
  1718. return (inputLength * (3 + alpha01) / 3) | 0;
  1719. },
  1720. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  1721. return bits == 8;
  1722. },
  1723. fillRgb: ColorSpace.prototype.fillRgb,
  1724. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  1725. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1726. },
  1727. usesZeroToOneRange: true
  1728. };
  1729. return DeviceRgbCS;
  1730. })();
  1731. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  1732. // The coefficients below was found using numerical analysis: the method of
  1733. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  1734. // where color_value is the tabular value from the table of sampled RGB colors
  1735. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  1736. // CMYK color conversion using the estimation below:
  1737. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  1738. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  1739. var c = src[srcOffset + 0] * srcScale;
  1740. var m = src[srcOffset + 1] * srcScale;
  1741. var y = src[srcOffset + 2] * srcScale;
  1742. var k = src[srcOffset + 3] * srcScale;
  1743. var r =
  1744. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  1745. 18.82290502165302 * y + 212.25662451639585 * k +
  1746. -285.2331026137004) +
  1747. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  1748. -17.873870861415444 * k - 5.497006427196366) +
  1749. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  1750. 17.5119270841813) +
  1751. k * (-21.86122147463605 * k - 189.48180835922747) + 255;
  1752. var g =
  1753. c * (8.841041422036149 * c + 60.118027045597366 * m +
  1754. 6.871425592049007 * y + 31.159100130055922 * k +
  1755. -79.2970844816548) +
  1756. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  1757. 131.35250912493976 * k - 190.9453302588951) +
  1758. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  1759. k * (-20.737325471181034 * k - 187.80453709719578) + 255;
  1760. var b =
  1761. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  1762. 30.89978309703729 * y - 0.23883238689178934 * k +
  1763. -14.183576799673286) +
  1764. m * (10.49593273432072 * m + 63.02378494754052 * y +
  1765. 50.606957656360734 * k - 112.23884253719248) +
  1766. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  1767. -193.58209356861505) +
  1768. k * (-22.33816807309886 * k - 180.12613974708367) + 255;
  1769. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  1770. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  1771. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  1772. }
  1773. function DeviceCmykCS() {
  1774. this.name = 'DeviceCMYK';
  1775. this.numComps = 4;
  1776. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  1777. }
  1778. DeviceCmykCS.prototype = {
  1779. getRgb: function DeviceCmykCS_getRgb(src, srcOffset) {
  1780. var rgb = new Uint8Array(3);
  1781. convertToRgb(src, srcOffset, 1, rgb, 0);
  1782. return rgb;
  1783. },
  1784. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  1785. dest, destOffset) {
  1786. convertToRgb(src, srcOffset, 1, dest, destOffset);
  1787. },
  1788. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  1789. dest, destOffset, bits,
  1790. alpha01) {
  1791. var scale = 1 / ((1 << bits) - 1);
  1792. for (var i = 0; i < count; i++) {
  1793. convertToRgb(src, srcOffset, scale, dest, destOffset);
  1794. srcOffset += 4;
  1795. destOffset += 3 + alpha01;
  1796. }
  1797. },
  1798. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  1799. alpha01) {
  1800. return (inputLength / 4 * (3 + alpha01)) | 0;
  1801. },
  1802. isPassthrough: ColorSpace.prototype.isPassthrough,
  1803. fillRgb: ColorSpace.prototype.fillRgb,
  1804. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  1805. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1806. },
  1807. usesZeroToOneRange: true
  1808. };
  1809. return DeviceCmykCS;
  1810. })();
  1811. //
  1812. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  1813. //
  1814. var CalGrayCS = (function CalGrayCSClosure() {
  1815. function CalGrayCS(whitePoint, blackPoint, gamma) {
  1816. this.name = 'CalGray';
  1817. this.numComps = 1;
  1818. this.defaultColor = new Float32Array([0]);
  1819. if (!whitePoint) {
  1820. error('WhitePoint missing - required for color space CalGray');
  1821. }
  1822. blackPoint = blackPoint || [0, 0, 0];
  1823. gamma = gamma || 1;
  1824. // Translate arguments to spec variables.
  1825. this.XW = whitePoint[0];
  1826. this.YW = whitePoint[1];
  1827. this.ZW = whitePoint[2];
  1828. this.XB = blackPoint[0];
  1829. this.YB = blackPoint[1];
  1830. this.ZB = blackPoint[2];
  1831. this.G = gamma;
  1832. // Validate variables as per spec.
  1833. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  1834. error('Invalid WhitePoint components for ' + this.name +
  1835. ', no fallback available');
  1836. }
  1837. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  1838. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  1839. this.XB = this.YB = this.ZB = 0;
  1840. }
  1841. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  1842. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  1843. ', ZB: ' + this.ZB + ', only default values are supported.');
  1844. }
  1845. if (this.G < 1) {
  1846. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  1847. ', falling back to default');
  1848. this.G = 1;
  1849. }
  1850. }
  1851. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  1852. // A represents a gray component of a calibrated gray space.
  1853. // A <---> AG in the spec
  1854. var A = src[srcOffset] * scale;
  1855. var AG = Math.pow(A, cs.G);
  1856. // Computes intermediate variables M, L, N as per spec.
  1857. // Except if other than default BlackPoint values are used.
  1858. var M = cs.XW * AG;
  1859. var L = cs.YW * AG;
  1860. var N = cs.ZW * AG;
  1861. // Decode XYZ, as per spec.
  1862. var X = M;
  1863. var Y = L;
  1864. var Z = N;
  1865. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  1866. // This yields values in range [0, 100].
  1867. var Lstar = Math.max(116 * Math.pow(Y, 1 / 3) - 16, 0);
  1868. // Convert values to rgb range [0, 255].
  1869. dest[destOffset] = Lstar * 255 / 100;
  1870. dest[destOffset + 1] = Lstar * 255 / 100;
  1871. dest[destOffset + 2] = Lstar * 255 / 100;
  1872. }
  1873. CalGrayCS.prototype = {
  1874. getRgb: function CalGrayCS_getRgb(src, srcOffset) {
  1875. var rgb = new Uint8Array(3);
  1876. this.getRgbItem(src, srcOffset, rgb, 0);
  1877. return rgb;
  1878. },
  1879. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  1880. dest, destOffset) {
  1881. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  1882. },
  1883. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  1884. dest, destOffset, bits,
  1885. alpha01) {
  1886. var scale = 1 / ((1 << bits) - 1);
  1887. for (var i = 0; i < count; ++i) {
  1888. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  1889. srcOffset += 1;
  1890. destOffset += 3 + alpha01;
  1891. }
  1892. },
  1893. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  1894. return inputLength * (3 + alpha01);
  1895. },
  1896. isPassthrough: ColorSpace.prototype.isPassthrough,
  1897. fillRgb: ColorSpace.prototype.fillRgb,
  1898. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  1899. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  1900. },
  1901. usesZeroToOneRange: true
  1902. };
  1903. return CalGrayCS;
  1904. })();
  1905. //
  1906. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  1907. //
  1908. var LabCS = (function LabCSClosure() {
  1909. function LabCS(whitePoint, blackPoint, range) {
  1910. this.name = 'Lab';
  1911. this.numComps = 3;
  1912. this.defaultColor = new Float32Array([0, 0, 0]);
  1913. if (!whitePoint)
  1914. error('WhitePoint missing - required for color space Lab');
  1915. blackPoint = blackPoint || [0, 0, 0];
  1916. range = range || [-100, 100, -100, 100];
  1917. // Translate args to spec variables
  1918. this.XW = whitePoint[0];
  1919. this.YW = whitePoint[1];
  1920. this.ZW = whitePoint[2];
  1921. this.amin = range[0];
  1922. this.amax = range[1];
  1923. this.bmin = range[2];
  1924. this.bmax = range[3];
  1925. // These are here just for completeness - the spec doesn't offer any
  1926. // formulas that use BlackPoint in Lab
  1927. this.XB = blackPoint[0];
  1928. this.YB = blackPoint[1];
  1929. this.ZB = blackPoint[2];
  1930. // Validate vars as per spec
  1931. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1)
  1932. error('Invalid WhitePoint components, no fallback available');
  1933. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  1934. info('Invalid BlackPoint, falling back to default');
  1935. this.XB = this.YB = this.ZB = 0;
  1936. }
  1937. if (this.amin > this.amax || this.bmin > this.bmax) {
  1938. info('Invalid Range, falling back to defaults');
  1939. this.amin = -100;
  1940. this.amax = 100;
  1941. this.bmin = -100;
  1942. this.bmax = 100;
  1943. }
  1944. }
  1945. // Function g(x) from spec
  1946. function fn_g(x) {
  1947. if (x >= 6 / 29)
  1948. return x * x * x;
  1949. else
  1950. return (108 / 841) * (x - 4 / 29);
  1951. }
  1952. function decode(value, high1, low2, high2) {
  1953. return low2 + (value) * (high2 - low2) / (high1);
  1954. }
  1955. // If decoding is needed maxVal should be 2^bits per component - 1.
  1956. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  1957. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  1958. // not the usual [0, 1]. If a command like setFillColor is used the src
  1959. // values will already be within the correct range. However, if we are
  1960. // converting an image we have to map the values to the correct range given
  1961. // above.
  1962. // Ls,as,bs <---> L*,a*,b* in the spec
  1963. var Ls = src[srcOffset];
  1964. var as = src[srcOffset + 1];
  1965. var bs = src[srcOffset + 2];
  1966. if (maxVal !== false) {
  1967. Ls = decode(Ls, maxVal, 0, 100);
  1968. as = decode(as, maxVal, cs.amin, cs.amax);
  1969. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  1970. }
  1971. // Adjust limits of 'as' and 'bs'
  1972. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  1973. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  1974. // Computes intermediate variables X,Y,Z as per spec
  1975. var M = (Ls + 16) / 116;
  1976. var L = M + (as / 500);
  1977. var N = M - (bs / 200);
  1978. var X = cs.XW * fn_g(L);
  1979. var Y = cs.YW * fn_g(M);
  1980. var Z = cs.ZW * fn_g(N);
  1981. var r, g, b;
  1982. // Using different conversions for D50 and D65 white points,
  1983. // per http://www.color.org/srgb.pdf
  1984. if (cs.ZW < 1) {
  1985. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  1986. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  1987. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  1988. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  1989. } else {
  1990. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  1991. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  1992. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  1993. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  1994. }
  1995. // clamp color values to [0,1] range then convert to [0,255] range.
  1996. dest[destOffset] = Math.sqrt(r < 0 ? 0 : r > 1 ? 1 : r) * 255;
  1997. dest[destOffset + 1] = Math.sqrt(g < 0 ? 0 : g > 1 ? 1 : g) * 255;
  1998. dest[destOffset + 2] = Math.sqrt(b < 0 ? 0 : b > 1 ? 1 : b) * 255;
  1999. }
  2000. LabCS.prototype = {
  2001. getRgb: function LabCS_getRgb(src, srcOffset) {
  2002. var rgb = new Uint8Array(3);
  2003. convertToRgb(this, src, srcOffset, false, rgb, 0);
  2004. return rgb;
  2005. },
  2006. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  2007. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  2008. },
  2009. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  2010. dest, destOffset, bits,
  2011. alpha01) {
  2012. var maxVal = (1 << bits) - 1;
  2013. for (var i = 0; i < count; i++) {
  2014. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  2015. srcOffset += 3;
  2016. destOffset += 3 + alpha01;
  2017. }
  2018. },
  2019. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  2020. return (inputLength * (3 + alpha01) / 3) | 0;
  2021. },
  2022. isPassthrough: ColorSpace.prototype.isPassthrough,
  2023. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  2024. // XXX: Decoding is handled with the lab conversion because of the strange
  2025. // ranges that are used.
  2026. return true;
  2027. },
  2028. usesZeroToOneRange: false
  2029. };
  2030. return LabCS;
  2031. })();
  2032. var PDFFunction = (function PDFFunctionClosure() {
  2033. var CONSTRUCT_SAMPLED = 0;
  2034. var CONSTRUCT_INTERPOLATED = 2;
  2035. var CONSTRUCT_STICHED = 3;
  2036. var CONSTRUCT_POSTSCRIPT = 4;
  2037. return {
  2038. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  2039. str) {
  2040. var length = 1;
  2041. for (var i = 0, ii = size.length; i < ii; i++)
  2042. length *= size[i];
  2043. length *= outputSize;
  2044. var array = [];
  2045. var codeSize = 0;
  2046. var codeBuf = 0;
  2047. // 32 is a valid bps so shifting won't work
  2048. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  2049. var strBytes = str.getBytes((length * bps + 7) / 8);
  2050. var strIdx = 0;
  2051. for (var i = 0; i < length; i++) {
  2052. while (codeSize < bps) {
  2053. codeBuf <<= 8;
  2054. codeBuf |= strBytes[strIdx++];
  2055. codeSize += 8;
  2056. }
  2057. codeSize -= bps;
  2058. array.push((codeBuf >> codeSize) * sampleMul);
  2059. codeBuf &= (1 << codeSize) - 1;
  2060. }
  2061. return array;
  2062. },
  2063. getIR: function PDFFunction_getIR(xref, fn) {
  2064. var dict = fn.dict;
  2065. if (!dict)
  2066. dict = fn;
  2067. var types = [this.constructSampled,
  2068. null,
  2069. this.constructInterpolated,
  2070. this.constructStiched,
  2071. this.constructPostScript];
  2072. var typeNum = dict.get('FunctionType');
  2073. var typeFn = types[typeNum];
  2074. if (!typeFn)
  2075. error('Unknown type of function');
  2076. return typeFn.call(this, fn, dict, xref);
  2077. },
  2078. fromIR: function PDFFunction_fromIR(IR) {
  2079. var type = IR[0];
  2080. switch (type) {
  2081. case CONSTRUCT_SAMPLED:
  2082. return this.constructSampledFromIR(IR);
  2083. case CONSTRUCT_INTERPOLATED:
  2084. return this.constructInterpolatedFromIR(IR);
  2085. case CONSTRUCT_STICHED:
  2086. return this.constructStichedFromIR(IR);
  2087. //case CONSTRUCT_POSTSCRIPT:
  2088. default:
  2089. return this.constructPostScriptFromIR(IR);
  2090. }
  2091. },
  2092. parse: function PDFFunction_parse(xref, fn) {
  2093. var IR = this.getIR(xref, fn);
  2094. return this.fromIR(IR);
  2095. },
  2096. constructSampled: function PDFFunction_constructSampled(str, dict) {
  2097. function toMultiArray(arr) {
  2098. var inputLength = arr.length;
  2099. var outputLength = arr.length / 2;
  2100. var out = [];
  2101. var index = 0;
  2102. for (var i = 0; i < inputLength; i += 2) {
  2103. out[index] = [arr[i], arr[i + 1]];
  2104. ++index;
  2105. }
  2106. return out;
  2107. }
  2108. var domain = dict.get('Domain');
  2109. var range = dict.get('Range');
  2110. if (!domain || !range)
  2111. error('No domain or range');
  2112. var inputSize = domain.length / 2;
  2113. var outputSize = range.length / 2;
  2114. domain = toMultiArray(domain);
  2115. range = toMultiArray(range);
  2116. var size = dict.get('Size');
  2117. var bps = dict.get('BitsPerSample');
  2118. var order = dict.get('Order') || 1;
  2119. if (order !== 1) {
  2120. // No description how cubic spline interpolation works in PDF32000:2008
  2121. // As in poppler, ignoring order, linear interpolation may work as good
  2122. info('No support for cubic spline interpolation: ' + order);
  2123. }
  2124. var encode = dict.get('Encode');
  2125. if (!encode) {
  2126. encode = [];
  2127. for (var i = 0; i < inputSize; ++i) {
  2128. encode.push(0);
  2129. encode.push(size[i] - 1);
  2130. }
  2131. }
  2132. encode = toMultiArray(encode);
  2133. var decode = dict.get('Decode');
  2134. if (!decode)
  2135. decode = range;
  2136. else
  2137. decode = toMultiArray(decode);
  2138. var samples = this.getSampleArray(size, outputSize, bps, str);
  2139. return [
  2140. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  2141. outputSize, Math.pow(2, bps) - 1, range
  2142. ];
  2143. },
  2144. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  2145. // See chapter 3, page 109 of the PDF reference
  2146. function interpolate(x, xmin, xmax, ymin, ymax) {
  2147. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  2148. }
  2149. return function constructSampledFromIRResult(args) {
  2150. // See chapter 3, page 110 of the PDF reference.
  2151. var m = IR[1];
  2152. var domain = IR[2];
  2153. var encode = IR[3];
  2154. var decode = IR[4];
  2155. var samples = IR[5];
  2156. var size = IR[6];
  2157. var n = IR[7];
  2158. var mask = IR[8];
  2159. var range = IR[9];
  2160. if (m != args.length)
  2161. error('Incorrect number of arguments: ' + m + ' != ' +
  2162. args.length);
  2163. var x = args;
  2164. // Building the cube vertices: its part and sample index
  2165. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  2166. var cubeVertices = 1 << m;
  2167. var cubeN = new Float64Array(cubeVertices);
  2168. var cubeVertex = new Uint32Array(cubeVertices);
  2169. for (var j = 0; j < cubeVertices; j++)
  2170. cubeN[j] = 1;
  2171. var k = n, pos = 1;
  2172. // Map x_i to y_j for 0 <= i < m using the sampled function.
  2173. for (var i = 0; i < m; ++i) {
  2174. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  2175. var domain_2i = domain[i][0];
  2176. var domain_2i_1 = domain[i][1];
  2177. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  2178. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  2179. // Encode_2i, Encode_2i+1)
  2180. var e = interpolate(xi, domain_2i, domain_2i_1,
  2181. encode[i][0], encode[i][1]);
  2182. // e_i' = min(max(e_i, 0), Size_i - 1)
  2183. var size_i = size[i];
  2184. e = Math.min(Math.max(e, 0), size_i - 1);
  2185. // Adjusting the cube: N and vertex sample index
  2186. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  2187. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  2188. var n1 = e - e0; // (e - e0) / (e1 - e0);
  2189. var offset0 = e0 * k;
  2190. var offset1 = offset0 + k; // e1 * k
  2191. for (var j = 0; j < cubeVertices; j++) {
  2192. if (j & pos) {
  2193. cubeN[j] *= n1;
  2194. cubeVertex[j] += offset1;
  2195. } else {
  2196. cubeN[j] *= n0;
  2197. cubeVertex[j] += offset0;
  2198. }
  2199. }
  2200. k *= size_i;
  2201. pos <<= 1;
  2202. }
  2203. var y = new Float64Array(n);
  2204. for (var j = 0; j < n; ++j) {
  2205. // Sum all cube vertices' samples portions
  2206. var rj = 0;
  2207. for (var i = 0; i < cubeVertices; i++)
  2208. rj += samples[cubeVertex[i] + j] * cubeN[i];
  2209. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  2210. // Decode_2j, Decode_2j+1)
  2211. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  2212. // y_j = min(max(r_j, range_2j), range_2j+1)
  2213. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  2214. }
  2215. return y;
  2216. };
  2217. },
  2218. constructInterpolated: function PDFFunction_constructInterpolated(str,
  2219. dict) {
  2220. var c0 = dict.get('C0') || [0];
  2221. var c1 = dict.get('C1') || [1];
  2222. var n = dict.get('N');
  2223. if (!isArray(c0) || !isArray(c1))
  2224. error('Illegal dictionary for interpolated function');
  2225. var length = c0.length;
  2226. var diff = [];
  2227. for (var i = 0; i < length; ++i)
  2228. diff.push(c1[i] - c0[i]);
  2229. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  2230. },
  2231. constructInterpolatedFromIR:
  2232. function PDFFunction_constructInterpolatedFromIR(IR) {
  2233. var c0 = IR[1];
  2234. var diff = IR[2];
  2235. var n = IR[3];
  2236. var length = diff.length;
  2237. return function constructInterpolatedFromIRResult(args) {
  2238. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  2239. var out = [];
  2240. for (var j = 0; j < length; ++j)
  2241. out.push(c0[j] + (x * diff[j]));
  2242. return out;
  2243. };
  2244. },
  2245. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  2246. var domain = dict.get('Domain');
  2247. if (!domain)
  2248. error('No domain');
  2249. var inputSize = domain.length / 2;
  2250. if (inputSize != 1)
  2251. error('Bad domain for stiched function');
  2252. var fnRefs = dict.get('Functions');
  2253. var fns = [];
  2254. for (var i = 0, ii = fnRefs.length; i < ii; ++i)
  2255. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  2256. var bounds = dict.get('Bounds');
  2257. var encode = dict.get('Encode');
  2258. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  2259. },
  2260. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  2261. var domain = IR[1];
  2262. var bounds = IR[2];
  2263. var encode = IR[3];
  2264. var fnsIR = IR[4];
  2265. var fns = [];
  2266. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  2267. fns.push(PDFFunction.fromIR(fnsIR[i]));
  2268. }
  2269. return function constructStichedFromIRResult(args) {
  2270. var clip = function constructStichedFromIRClip(v, min, max) {
  2271. if (v > max)
  2272. v = max;
  2273. else if (v < min)
  2274. v = min;
  2275. return v;
  2276. };
  2277. // clip to domain
  2278. var v = clip(args[0], domain[0], domain[1]);
  2279. // calulate which bound the value is in
  2280. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  2281. if (v < bounds[i])
  2282. break;
  2283. }
  2284. // encode value into domain of function
  2285. var dmin = domain[0];
  2286. if (i > 0)
  2287. dmin = bounds[i - 1];
  2288. var dmax = domain[1];
  2289. if (i < bounds.length)
  2290. dmax = bounds[i];
  2291. var rmin = encode[2 * i];
  2292. var rmax = encode[2 * i + 1];
  2293. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  2294. // call the appropropriate function
  2295. return fns[i]([v2]);
  2296. };
  2297. },
  2298. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  2299. xref) {
  2300. var domain = dict.get('Domain');
  2301. var range = dict.get('Range');
  2302. if (!domain)
  2303. error('No domain.');
  2304. if (!range)
  2305. error('No range.');
  2306. var lexer = new PostScriptLexer(fn);
  2307. var parser = new PostScriptParser(lexer);
  2308. var code = parser.parse();
  2309. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  2310. },
  2311. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  2312. IR) {
  2313. var domain = IR[1];
  2314. var range = IR[2];
  2315. var code = IR[3];
  2316. var numOutputs = range.length / 2;
  2317. var evaluator = new PostScriptEvaluator(code);
  2318. // Cache the values for a big speed up, the cache size is limited though
  2319. // since the number of possible values can be huge from a PS function.
  2320. var cache = new FunctionCache();
  2321. return function constructPostScriptFromIRResult(args) {
  2322. var initialStack = [];
  2323. for (var i = 0, ii = (domain.length / 2); i < ii; ++i) {
  2324. initialStack.push(args[i]);
  2325. }
  2326. var key = initialStack.join('_');
  2327. if (cache.has(key))
  2328. return cache.get(key);
  2329. var stack = evaluator.execute(initialStack);
  2330. var transformed = [];
  2331. for (i = numOutputs - 1; i >= 0; --i) {
  2332. var out = stack.pop();
  2333. var rangeIndex = 2 * i;
  2334. if (out < range[rangeIndex])
  2335. out = range[rangeIndex];
  2336. else if (out > range[rangeIndex + 1])
  2337. out = range[rangeIndex + 1];
  2338. transformed[i] = out;
  2339. }
  2340. cache.set(key, transformed);
  2341. return transformed;
  2342. };
  2343. }
  2344. };
  2345. })();
  2346. var FunctionCache = (function FunctionCacheClosure() {
  2347. // Of 10 PDF's with type4 functions the maxium number of distinct values seen
  2348. // was 256. This still may need some tweaking in the future though.
  2349. var MAX_CACHE_SIZE = 1024;
  2350. function FunctionCache() {
  2351. this.cache = {};
  2352. this.total = 0;
  2353. }
  2354. FunctionCache.prototype = {
  2355. has: function FunctionCache_has(key) {
  2356. return key in this.cache;
  2357. },
  2358. get: function FunctionCache_get(key) {
  2359. return this.cache[key];
  2360. },
  2361. set: function FunctionCache_set(key, value) {
  2362. if (this.total < MAX_CACHE_SIZE) {
  2363. this.cache[key] = value;
  2364. this.total++;
  2365. }
  2366. }
  2367. };
  2368. return FunctionCache;
  2369. })();
  2370. var PostScriptStack = (function PostScriptStackClosure() {
  2371. var MAX_STACK_SIZE = 100;
  2372. function PostScriptStack(initialStack) {
  2373. this.stack = initialStack || [];
  2374. }
  2375. PostScriptStack.prototype = {
  2376. push: function PostScriptStack_push(value) {
  2377. if (this.stack.length >= MAX_STACK_SIZE)
  2378. error('PostScript function stack overflow.');
  2379. this.stack.push(value);
  2380. },
  2381. pop: function PostScriptStack_pop() {
  2382. if (this.stack.length <= 0)
  2383. error('PostScript function stack underflow.');
  2384. return this.stack.pop();
  2385. },
  2386. copy: function PostScriptStack_copy(n) {
  2387. if (this.stack.length + n >= MAX_STACK_SIZE)
  2388. error('PostScript function stack overflow.');
  2389. var stack = this.stack;
  2390. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++)
  2391. stack.push(stack[i]);
  2392. },
  2393. index: function PostScriptStack_index(n) {
  2394. this.push(this.stack[this.stack.length - n - 1]);
  2395. },
  2396. // rotate the last n stack elements p times
  2397. roll: function PostScriptStack_roll(n, p) {
  2398. var stack = this.stack;
  2399. var l = stack.length - n;
  2400. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  2401. for (i = l, j = r; i < j; i++, j--) {
  2402. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2403. }
  2404. for (i = l, j = c - 1; i < j; i++, j--) {
  2405. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2406. }
  2407. for (i = c, j = r; i < j; i++, j--) {
  2408. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  2409. }
  2410. }
  2411. };
  2412. return PostScriptStack;
  2413. })();
  2414. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  2415. function PostScriptEvaluator(operators, operands) {
  2416. this.operators = operators;
  2417. this.operands = operands;
  2418. }
  2419. PostScriptEvaluator.prototype = {
  2420. execute: function PostScriptEvaluator_execute(initialStack) {
  2421. var stack = new PostScriptStack(initialStack);
  2422. var counter = 0;
  2423. var operators = this.operators;
  2424. var length = operators.length;
  2425. var operator, a, b;
  2426. while (counter < length) {
  2427. operator = operators[counter++];
  2428. if (typeof operator == 'number') {
  2429. // Operator is really an operand and should be pushed to the stack.
  2430. stack.push(operator);
  2431. continue;
  2432. }
  2433. switch (operator) {
  2434. // non standard ps operators
  2435. case 'jz': // jump if false
  2436. b = stack.pop();
  2437. a = stack.pop();
  2438. if (!a)
  2439. counter = b;
  2440. break;
  2441. case 'j': // jump
  2442. a = stack.pop();
  2443. counter = a;
  2444. break;
  2445. // all ps operators in alphabetical order (excluding if/ifelse)
  2446. case 'abs':
  2447. a = stack.pop();
  2448. stack.push(Math.abs(a));
  2449. break;
  2450. case 'add':
  2451. b = stack.pop();
  2452. a = stack.pop();
  2453. stack.push(a + b);
  2454. break;
  2455. case 'and':
  2456. b = stack.pop();
  2457. a = stack.pop();
  2458. if (isBool(a) && isBool(b))
  2459. stack.push(a && b);
  2460. else
  2461. stack.push(a & b);
  2462. break;
  2463. case 'atan':
  2464. a = stack.pop();
  2465. stack.push(Math.atan(a));
  2466. break;
  2467. case 'bitshift':
  2468. b = stack.pop();
  2469. a = stack.pop();
  2470. if (a > 0)
  2471. stack.push(a << b);
  2472. else
  2473. stack.push(a >> b);
  2474. break;
  2475. case 'ceiling':
  2476. a = stack.pop();
  2477. stack.push(Math.ceil(a));
  2478. break;
  2479. case 'copy':
  2480. a = stack.pop();
  2481. stack.copy(a);
  2482. break;
  2483. case 'cos':
  2484. a = stack.pop();
  2485. stack.push(Math.cos(a));
  2486. break;
  2487. case 'cvi':
  2488. a = stack.pop() | 0;
  2489. stack.push(a);
  2490. break;
  2491. case 'cvr':
  2492. // noop
  2493. break;
  2494. case 'div':
  2495. b = stack.pop();
  2496. a = stack.pop();
  2497. stack.push(a / b);
  2498. break;
  2499. case 'dup':
  2500. stack.copy(1);
  2501. break;
  2502. case 'eq':
  2503. b = stack.pop();
  2504. a = stack.pop();
  2505. stack.push(a == b);
  2506. break;
  2507. case 'exch':
  2508. stack.roll(2, 1);
  2509. break;
  2510. case 'exp':
  2511. b = stack.pop();
  2512. a = stack.pop();
  2513. stack.push(Math.pow(a, b));
  2514. break;
  2515. case 'false':
  2516. stack.push(false);
  2517. break;
  2518. case 'floor':
  2519. a = stack.pop();
  2520. stack.push(Math.floor(a));
  2521. break;
  2522. case 'ge':
  2523. b = stack.pop();
  2524. a = stack.pop();
  2525. stack.push(a >= b);
  2526. break;
  2527. case 'gt':
  2528. b = stack.pop();
  2529. a = stack.pop();
  2530. stack.push(a > b);
  2531. break;
  2532. case 'idiv':
  2533. b = stack.pop();
  2534. a = stack.pop();
  2535. stack.push((a / b) | 0);
  2536. break;
  2537. case 'index':
  2538. a = stack.pop();
  2539. stack.index(a);
  2540. break;
  2541. case 'le':
  2542. b = stack.pop();
  2543. a = stack.pop();
  2544. stack.push(a <= b);
  2545. break;
  2546. case 'ln':
  2547. a = stack.pop();
  2548. stack.push(Math.log(a));
  2549. break;
  2550. case 'log':
  2551. a = stack.pop();
  2552. stack.push(Math.log(a) / Math.LN10);
  2553. break;
  2554. case 'lt':
  2555. b = stack.pop();
  2556. a = stack.pop();
  2557. stack.push(a < b);
  2558. break;
  2559. case 'mod':
  2560. b = stack.pop();
  2561. a = stack.pop();
  2562. stack.push(a % b);
  2563. break;
  2564. case 'mul':
  2565. b = stack.pop();
  2566. a = stack.pop();
  2567. stack.push(a * b);
  2568. break;
  2569. case 'ne':
  2570. b = stack.pop();
  2571. a = stack.pop();
  2572. stack.push(a != b);
  2573. break;
  2574. case 'neg':
  2575. a = stack.pop();
  2576. stack.push(-b);
  2577. break;
  2578. case 'not':
  2579. a = stack.pop();
  2580. if (isBool(a) && isBool(b))
  2581. stack.push(a && b);
  2582. else
  2583. stack.push(a & b);
  2584. break;
  2585. case 'or':
  2586. b = stack.pop();
  2587. a = stack.pop();
  2588. if (isBool(a) && isBool(b))
  2589. stack.push(a || b);
  2590. else
  2591. stack.push(a | b);
  2592. break;
  2593. case 'pop':
  2594. stack.pop();
  2595. break;
  2596. case 'roll':
  2597. b = stack.pop();
  2598. a = stack.pop();
  2599. stack.roll(a, b);
  2600. break;
  2601. case 'round':
  2602. a = stack.pop();
  2603. stack.push(Math.round(a));
  2604. break;
  2605. case 'sin':
  2606. a = stack.pop();
  2607. stack.push(Math.sin(a));
  2608. break;
  2609. case 'sqrt':
  2610. a = stack.pop();
  2611. stack.push(Math.sqrt(a));
  2612. break;
  2613. case 'sub':
  2614. b = stack.pop();
  2615. a = stack.pop();
  2616. stack.push(a - b);
  2617. break;
  2618. case 'true':
  2619. stack.push(true);
  2620. break;
  2621. case 'truncate':
  2622. a = stack.pop();
  2623. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  2624. stack.push(a);
  2625. break;
  2626. case 'xor':
  2627. b = stack.pop();
  2628. a = stack.pop();
  2629. if (isBool(a) && isBool(b))
  2630. stack.push(a != b);
  2631. else
  2632. stack.push(a ^ b);
  2633. break;
  2634. default:
  2635. error('Unknown operator ' + operator);
  2636. break;
  2637. }
  2638. }
  2639. return stack.stack;
  2640. }
  2641. };
  2642. return PostScriptEvaluator;
  2643. })();
  2644. var PostScriptParser = (function PostScriptParserClosure() {
  2645. function PostScriptParser(lexer) {
  2646. this.lexer = lexer;
  2647. this.operators = [];
  2648. this.token = null;
  2649. this.prev = null;
  2650. }
  2651. PostScriptParser.prototype = {
  2652. nextToken: function PostScriptParser_nextToken() {
  2653. this.prev = this.token;
  2654. this.token = this.lexer.getToken();
  2655. },
  2656. accept: function PostScriptParser_accept(type) {
  2657. if (this.token.type == type) {
  2658. this.nextToken();
  2659. return true;
  2660. }
  2661. return false;
  2662. },
  2663. expect: function PostScriptParser_expect(type) {
  2664. if (this.accept(type))
  2665. return true;
  2666. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  2667. type + '.');
  2668. },
  2669. parse: function PostScriptParser_parse() {
  2670. this.nextToken();
  2671. this.expect(PostScriptTokenTypes.LBRACE);
  2672. this.parseBlock();
  2673. this.expect(PostScriptTokenTypes.RBRACE);
  2674. return this.operators;
  2675. },
  2676. parseBlock: function PostScriptParser_parseBlock() {
  2677. while (true) {
  2678. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  2679. this.operators.push(this.prev.value);
  2680. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  2681. this.operators.push(this.prev.value);
  2682. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  2683. this.parseCondition();
  2684. } else {
  2685. return;
  2686. }
  2687. }
  2688. },
  2689. parseCondition: function PostScriptParser_parseCondition() {
  2690. // Add two place holders that will be updated later
  2691. var conditionLocation = this.operators.length;
  2692. this.operators.push(null, null);
  2693. this.parseBlock();
  2694. this.expect(PostScriptTokenTypes.RBRACE);
  2695. if (this.accept(PostScriptTokenTypes.IF)) {
  2696. // The true block is right after the 'if' so it just falls through on
  2697. // true else it jumps and skips the true block.
  2698. this.operators[conditionLocation] = this.operators.length;
  2699. this.operators[conditionLocation + 1] = 'jz';
  2700. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  2701. var jumpLocation = this.operators.length;
  2702. this.operators.push(null, null);
  2703. var endOfTrue = this.operators.length;
  2704. this.parseBlock();
  2705. this.expect(PostScriptTokenTypes.RBRACE);
  2706. this.expect(PostScriptTokenTypes.IFELSE);
  2707. // The jump is added at the end of the true block to skip the false
  2708. // block.
  2709. this.operators[jumpLocation] = this.operators.length;
  2710. this.operators[jumpLocation + 1] = 'j';
  2711. this.operators[conditionLocation] = endOfTrue;
  2712. this.operators[conditionLocation + 1] = 'jz';
  2713. } else {
  2714. error('PS Function: error parsing conditional.');
  2715. }
  2716. }
  2717. };
  2718. return PostScriptParser;
  2719. })();
  2720. var PostScriptTokenTypes = {
  2721. LBRACE: 0,
  2722. RBRACE: 1,
  2723. NUMBER: 2,
  2724. OPERATOR: 3,
  2725. IF: 4,
  2726. IFELSE: 5
  2727. };
  2728. var PostScriptToken = (function PostScriptTokenClosure() {
  2729. function PostScriptToken(type, value) {
  2730. this.type = type;
  2731. this.value = value;
  2732. }
  2733. var opCache = {};
  2734. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  2735. var opValue = opCache[op];
  2736. if (opValue)
  2737. return opValue;
  2738. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  2739. };
  2740. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  2741. '{');
  2742. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  2743. '}');
  2744. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  2745. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  2746. 'IFELSE');
  2747. return PostScriptToken;
  2748. })();
  2749. var PostScriptLexer = (function PostScriptLexerClosure() {
  2750. function PostScriptLexer(stream) {
  2751. this.stream = stream;
  2752. this.nextChar();
  2753. }
  2754. PostScriptLexer.prototype = {
  2755. nextChar: function PostScriptLexer_nextChar() {
  2756. return (this.currentChar = this.stream.getByte());
  2757. },
  2758. getToken: function PostScriptLexer_getToken() {
  2759. var s = '';
  2760. var comment = false;
  2761. var ch = this.currentChar;
  2762. // skip comments
  2763. while (true) {
  2764. if (ch < 0) {
  2765. return EOF;
  2766. }
  2767. if (comment) {
  2768. if (ch === 0x0A || ch === 0x0D) {
  2769. comment = false;
  2770. }
  2771. } else if (ch == 0x25) { // '%'
  2772. comment = true;
  2773. } else if (!Lexer.isSpace(ch)) {
  2774. break;
  2775. }
  2776. ch = this.nextChar();
  2777. }
  2778. switch (ch | 0) {
  2779. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  2780. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  2781. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  2782. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  2783. this.getNumber());
  2784. case 0x7B: // '{'
  2785. this.nextChar();
  2786. return PostScriptToken.LBRACE;
  2787. case 0x7D: // '}'
  2788. this.nextChar();
  2789. return PostScriptToken.RBRACE;
  2790. }
  2791. // operator
  2792. var str = String.fromCharCode(ch);
  2793. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  2794. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  2795. str += String.fromCharCode(ch);
  2796. }
  2797. switch (str.toLowerCase()) {
  2798. case 'if':
  2799. return PostScriptToken.IF;
  2800. case 'ifelse':
  2801. return PostScriptToken.IFELSE;
  2802. default:
  2803. return PostScriptToken.getOperator(str);
  2804. }
  2805. },
  2806. getNumber: function PostScriptLexer_getNumber() {
  2807. var ch = this.currentChar;
  2808. var str = String.fromCharCode(ch);
  2809. while ((ch = this.nextChar()) >= 0) {
  2810. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  2811. ch === 0x2D || ch === 0x2E) { // '-', '.'
  2812. str += String.fromCharCode(ch);
  2813. } else {
  2814. break;
  2815. }
  2816. }
  2817. var value = parseFloat(str);
  2818. if (isNaN(value))
  2819. error('Invalid floating point number: ' + value);
  2820. return value;
  2821. }
  2822. };
  2823. return PostScriptLexer;
  2824. })();
  2825. var Annotation = (function AnnotationClosure() {
  2826. // 12.5.5: Algorithm: Appearance streams
  2827. function getTransformMatrix(rect, bbox, matrix) {
  2828. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  2829. var minX = bounds[0];
  2830. var minY = bounds[1];
  2831. var maxX = bounds[2];
  2832. var maxY = bounds[3];
  2833. if (minX === maxX || minY === maxY) {
  2834. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  2835. // just apply the transform for rect
  2836. return [1, 0, 0, 1, rect[0], rect[1]];
  2837. }
  2838. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  2839. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  2840. return [
  2841. xRatio,
  2842. 0,
  2843. 0,
  2844. yRatio,
  2845. rect[0] - minX * xRatio,
  2846. rect[1] - minY * yRatio
  2847. ];
  2848. }
  2849. function getDefaultAppearance(dict) {
  2850. var appearanceState = dict.get('AP');
  2851. if (!isDict(appearanceState)) {
  2852. return;
  2853. }
  2854. var appearance;
  2855. var appearances = appearanceState.get('N');
  2856. if (isDict(appearances)) {
  2857. var as = dict.get('AS');
  2858. if (as && appearances.has(as.name)) {
  2859. appearance = appearances.get(as.name);
  2860. }
  2861. } else {
  2862. appearance = appearances;
  2863. }
  2864. return appearance;
  2865. }
  2866. function Annotation(params) {
  2867. if (params.data) {
  2868. this.data = params.data;
  2869. return;
  2870. }
  2871. var dict = params.dict;
  2872. var data = this.data = {};
  2873. data.subtype = dict.get('Subtype').name;
  2874. var rect = dict.get('Rect');
  2875. data.rect = Util.normalizeRect(rect);
  2876. data.annotationFlags = dict.get('F');
  2877. var color = dict.get('C');
  2878. if (isArray(color) && color.length === 3) {
  2879. // TODO(mack): currently only supporting rgb; need support different
  2880. // colorspaces
  2881. data.color = color;
  2882. } else {
  2883. data.color = [0, 0, 0];
  2884. }
  2885. // Some types of annotations have border style dict which has more
  2886. // info than the border array
  2887. if (dict.has('BS')) {
  2888. var borderStyle = dict.get('BS');
  2889. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  2890. } else {
  2891. var borderArray = dict.get('Border') || [0, 0, 1];
  2892. data.borderWidth = borderArray[2] || 0;
  2893. // TODO: implement proper support for annotations with line dash patterns.
  2894. var dashArray = borderArray[3];
  2895. if (data.borderWidth > 0 && dashArray && isArray(dashArray)) {
  2896. var dashArrayLength = dashArray.length;
  2897. if (dashArrayLength > 0) {
  2898. // According to the PDF specification: the elements in a dashArray
  2899. // shall be numbers that are nonnegative and not all equal to zero.
  2900. var isInvalid = false;
  2901. var numPositive = 0;
  2902. for (var i = 0; i < dashArrayLength; i++) {
  2903. if (!(+dashArray[i] >= 0)) {
  2904. isInvalid = true;
  2905. break;
  2906. } else if (dashArray[i] > 0) {
  2907. numPositive++;
  2908. }
  2909. }
  2910. if (isInvalid || numPositive === 0) {
  2911. data.borderWidth = 0;
  2912. }
  2913. }
  2914. }
  2915. }
  2916. this.appearance = getDefaultAppearance(dict);
  2917. data.hasAppearance = !!this.appearance;
  2918. }
  2919. Annotation.prototype = {
  2920. getData: function Annotation_getData() {
  2921. return this.data;
  2922. },
  2923. hasHtml: function Annotation_hasHtml() {
  2924. return false;
  2925. },
  2926. getHtmlElement: function Annotation_getHtmlElement(commonObjs) {
  2927. throw new NotImplementedException(
  2928. 'getHtmlElement() should be implemented in subclass');
  2929. },
  2930. // TODO(mack): Remove this, it's not really that helpful.
  2931. getEmptyContainer: function Annotation_getEmptyContainer(tagName, rect) {
  2932. assert(!isWorker,
  2933. 'getEmptyContainer() should be called from main thread');
  2934. rect = rect || this.data.rect;
  2935. var element = document.createElement(tagName);
  2936. element.style.width = Math.ceil(rect[2] - rect[0]) + 'px';
  2937. element.style.height = Math.ceil(rect[3] - rect[1]) + 'px';
  2938. return element;
  2939. },
  2940. isViewable: function Annotation_isViewable() {
  2941. var data = this.data;
  2942. return !!(
  2943. data &&
  2944. (!data.annotationFlags ||
  2945. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  2946. data.rect // rectangle is nessessary
  2947. );
  2948. },
  2949. loadResources: function(keys) {
  2950. var promise = new LegacyPromise();
  2951. this.appearance.dict.getAsync('Resources').then(function(resources) {
  2952. if (!resources) {
  2953. promise.resolve();
  2954. return;
  2955. }
  2956. var objectLoader = new ObjectLoader(resources.map,
  2957. keys,
  2958. resources.xref);
  2959. objectLoader.load().then(function() {
  2960. promise.resolve(resources);
  2961. });
  2962. }.bind(this));
  2963. return promise;
  2964. },
  2965. getOperatorList: function Annotation_getToOperatorList(evaluator) {
  2966. var promise = new LegacyPromise();
  2967. if (!this.appearance) {
  2968. promise.resolve(new OperatorList());
  2969. return promise;
  2970. }
  2971. var data = this.data;
  2972. var appearanceDict = this.appearance.dict;
  2973. var resourcesPromise = this.loadResources([
  2974. 'ExtGState',
  2975. 'ColorSpace',
  2976. 'Pattern',
  2977. 'Shading',
  2978. 'XObject',
  2979. 'Font'
  2980. // ProcSet
  2981. // Properties
  2982. ]);
  2983. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  2984. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  2985. var transform = getTransformMatrix(data.rect, bbox, matrix);
  2986. var border = data.border;
  2987. resourcesPromise.then(function(resources) {
  2988. var opList = new OperatorList();
  2989. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  2990. evaluator.getOperatorList(this.appearance, resources, opList);
  2991. opList.addOp(OPS.endAnnotation, []);
  2992. promise.resolve(opList);
  2993. }.bind(this));
  2994. return promise;
  2995. }
  2996. };
  2997. Annotation.getConstructor =
  2998. function Annotation_getConstructor(subtype, fieldType) {
  2999. if (!subtype) {
  3000. return;
  3001. }
  3002. // TODO(mack): Implement FreeText annotations
  3003. if (subtype === 'Link') {
  3004. return LinkAnnotation;
  3005. } else if (subtype === 'Text') {
  3006. return TextAnnotation;
  3007. } else if (subtype === 'Widget') {
  3008. if (!fieldType) {
  3009. return;
  3010. }
  3011. if (fieldType === 'Tx') {
  3012. return TextWidgetAnnotation;
  3013. } else {
  3014. return WidgetAnnotation;
  3015. }
  3016. } else {
  3017. return Annotation;
  3018. }
  3019. };
  3020. // TODO(mack): Support loading annotation from data
  3021. Annotation.fromData = function Annotation_fromData(data) {
  3022. var subtype = data.subtype;
  3023. var fieldType = data.fieldType;
  3024. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3025. if (Constructor) {
  3026. return new Constructor({ data: data });
  3027. }
  3028. };
  3029. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  3030. var dict = xref.fetchIfRef(ref);
  3031. if (!isDict(dict)) {
  3032. return;
  3033. }
  3034. var subtype = dict.get('Subtype');
  3035. subtype = isName(subtype) ? subtype.name : '';
  3036. if (!subtype) {
  3037. return;
  3038. }
  3039. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3040. fieldType = isName(fieldType) ? fieldType.name : '';
  3041. var Constructor = Annotation.getConstructor(subtype, fieldType);
  3042. if (!Constructor) {
  3043. return;
  3044. }
  3045. var params = {
  3046. dict: dict,
  3047. ref: ref,
  3048. };
  3049. var annotation = new Constructor(params);
  3050. if (annotation.isViewable()) {
  3051. return annotation;
  3052. } else {
  3053. warn('unimplemented annotation type: ' + subtype);
  3054. }
  3055. };
  3056. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  3057. annotations, opList, pdfManager, partialEvaluator) {
  3058. function reject(e) {
  3059. annotationsReadyPromise.reject(e);
  3060. }
  3061. var annotationsReadyPromise = new LegacyPromise();
  3062. var annotationPromises = [];
  3063. for (var i = 0, n = annotations.length; i < n; ++i) {
  3064. annotationPromises.push(annotations[i].getOperatorList(partialEvaluator));
  3065. }
  3066. Promise.all(annotationPromises).then(function(datas) {
  3067. opList.addOp(OPS.beginAnnotations, []);
  3068. for (var i = 0, n = datas.length; i < n; ++i) {
  3069. var annotOpList = datas[i];
  3070. opList.addOpList(annotOpList);
  3071. }
  3072. opList.addOp(OPS.endAnnotations, []);
  3073. annotationsReadyPromise.resolve();
  3074. }, reject);
  3075. return annotationsReadyPromise;
  3076. };
  3077. return Annotation;
  3078. })();
  3079. PDFJS.Annotation = Annotation;
  3080. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  3081. function WidgetAnnotation(params) {
  3082. Annotation.call(this, params);
  3083. if (params.data) {
  3084. return;
  3085. }
  3086. var dict = params.dict;
  3087. var data = this.data;
  3088. data.fieldValue = stringToPDFString(
  3089. Util.getInheritableProperty(dict, 'V') || '');
  3090. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  3091. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  3092. var fieldType = Util.getInheritableProperty(dict, 'FT');
  3093. data.fieldType = isName(fieldType) ? fieldType.name : '';
  3094. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  3095. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || new Dict();
  3096. // Building the full field name by collecting the field and
  3097. // its ancestors 'T' data and joining them using '.'.
  3098. var fieldName = [];
  3099. var namedItem = dict;
  3100. var ref = params.ref;
  3101. while (namedItem) {
  3102. var parent = namedItem.get('Parent');
  3103. var parentRef = namedItem.getRaw('Parent');
  3104. var name = namedItem.get('T');
  3105. if (name) {
  3106. fieldName.unshift(stringToPDFString(name));
  3107. } else {
  3108. // The field name is absent, that means more than one field
  3109. // with the same name may exist. Replacing the empty name
  3110. // with the '`' plus index in the parent's 'Kids' array.
  3111. // This is not in the PDF spec but necessary to id the
  3112. // the input controls.
  3113. var kids = parent.get('Kids');
  3114. var j, jj;
  3115. for (j = 0, jj = kids.length; j < jj; j++) {
  3116. var kidRef = kids[j];
  3117. if (kidRef.num == ref.num && kidRef.gen == ref.gen)
  3118. break;
  3119. }
  3120. fieldName.unshift('`' + j);
  3121. }
  3122. namedItem = parent;
  3123. ref = parentRef;
  3124. }
  3125. data.fullName = fieldName.join('.');
  3126. }
  3127. var parent = Annotation.prototype;
  3128. Util.inherit(WidgetAnnotation, Annotation, {
  3129. isViewable: function WidgetAnnotation_isViewable() {
  3130. if (this.data.fieldType === 'Sig') {
  3131. warn('unimplemented annotation type: Widget signature');
  3132. return false;
  3133. }
  3134. return parent.isViewable.call(this);
  3135. }
  3136. });
  3137. return WidgetAnnotation;
  3138. })();
  3139. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  3140. function TextWidgetAnnotation(params) {
  3141. WidgetAnnotation.call(this, params);
  3142. if (params.data) {
  3143. return;
  3144. }
  3145. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  3146. }
  3147. // TODO(mack): This dupes some of the logic in CanvasGraphics.setFont()
  3148. function setTextStyles(element, item, fontObj) {
  3149. var style = element.style;
  3150. style.fontSize = item.fontSize + 'px';
  3151. style.direction = item.fontDirection < 0 ? 'rtl': 'ltr';
  3152. if (!fontObj) {
  3153. return;
  3154. }
  3155. style.fontWeight = fontObj.black ?
  3156. (fontObj.bold ? 'bolder' : 'bold') :
  3157. (fontObj.bold ? 'bold' : 'normal');
  3158. style.fontStyle = fontObj.italic ? 'italic' : 'normal';
  3159. var fontName = fontObj.loadedName;
  3160. var fontFamily = fontName ? '"' + fontName + '", ' : '';
  3161. // Use a reasonable default font if the font doesn't specify a fallback
  3162. var fallbackName = fontObj.fallbackName || 'Helvetica, sans-serif';
  3163. style.fontFamily = fontFamily + fallbackName;
  3164. }
  3165. var parent = WidgetAnnotation.prototype;
  3166. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  3167. hasHtml: function TextWidgetAnnotation_hasHtml() {
  3168. return !this.data.hasAppearance && !!this.data.fieldValue;
  3169. },
  3170. getHtmlElement: function TextWidgetAnnotation_getHtmlElement(commonObjs) {
  3171. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3172. var item = this.data;
  3173. var element = this.getEmptyContainer('div');
  3174. element.style.display = 'table';
  3175. var content = document.createElement('div');
  3176. content.textContent = item.fieldValue;
  3177. var textAlignment = item.textAlignment;
  3178. content.style.textAlign = ['left', 'center', 'right'][textAlignment];
  3179. content.style.verticalAlign = 'middle';
  3180. content.style.display = 'table-cell';
  3181. var fontObj = item.fontRefName ?
  3182. commonObjs.getData(item.fontRefName) : null;
  3183. var cssRules = setTextStyles(content, item, fontObj);
  3184. element.appendChild(content);
  3185. return element;
  3186. },
  3187. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  3188. if (this.appearance) {
  3189. return Annotation.prototype.getOperatorList.call(this, evaluator);
  3190. }
  3191. var promise = new LegacyPromise();
  3192. var opList = new OperatorList();
  3193. var data = this.data;
  3194. // Even if there is an appearance stream, ignore it. This is the
  3195. // behaviour used by Adobe Reader.
  3196. var defaultAppearance = data.defaultAppearance;
  3197. if (!defaultAppearance) {
  3198. promise.resolve(opList);
  3199. return promise;
  3200. }
  3201. // Include any font resources found in the default appearance
  3202. var stream = new Stream(stringToBytes(defaultAppearance));
  3203. evaluator.getOperatorList(stream, this.fieldResources, opList);
  3204. var appearanceFnArray = opList.fnArray;
  3205. var appearanceArgsArray = opList.argsArray;
  3206. var fnArray = [];
  3207. var argsArray = [];
  3208. // TODO(mack): Add support for stroke color
  3209. data.rgb = [0, 0, 0];
  3210. // TODO THIS DOESN'T MAKE ANY SENSE SINCE THE fnArray IS EMPTY!
  3211. for (var i = 0, n = fnArray.length; i < n; ++i) {
  3212. var fnId = appearanceFnArray[i];
  3213. var args = appearanceArgsArray[i];
  3214. if (fnId === OPS.setFont) {
  3215. data.fontRefName = args[0];
  3216. var size = args[1];
  3217. if (size < 0) {
  3218. data.fontDirection = -1;
  3219. data.fontSize = -size;
  3220. } else {
  3221. data.fontDirection = 1;
  3222. data.fontSize = size;
  3223. }
  3224. } else if (fnId === OPS.setFillRGBColor) {
  3225. data.rgb = args;
  3226. } else if (fnId === OPS.setFillGray) {
  3227. var rgbValue = args[0] * 255;
  3228. data.rgb = [rgbValue, rgbValue, rgbValue];
  3229. }
  3230. }
  3231. promise.resolve(opList);
  3232. return promise;
  3233. }
  3234. });
  3235. return TextWidgetAnnotation;
  3236. })();
  3237. var TextAnnotation = (function TextAnnotationClosure() {
  3238. function TextAnnotation(params) {
  3239. Annotation.call(this, params);
  3240. if (params.data) {
  3241. return;
  3242. }
  3243. var dict = params.dict;
  3244. var data = this.data;
  3245. var content = dict.get('Contents');
  3246. var title = dict.get('T');
  3247. data.content = stringToPDFString(content || '');
  3248. data.title = stringToPDFString(title || '');
  3249. data.name = !dict.has('Name') ? 'Note' : dict.get('Name').name;
  3250. }
  3251. var ANNOT_MIN_SIZE = 10;
  3252. Util.inherit(TextAnnotation, Annotation, {
  3253. getOperatorList: function TextAnnotation_getOperatorList(evaluator) {
  3254. var promise = new LegacyPromise();
  3255. promise.resolve(new OperatorList());
  3256. return promise;
  3257. },
  3258. hasHtml: function TextAnnotation_hasHtml() {
  3259. return true;
  3260. },
  3261. getHtmlElement: function TextAnnotation_getHtmlElement(commonObjs) {
  3262. assert(!isWorker, 'getHtmlElement() shall be called from main thread');
  3263. var item = this.data;
  3264. var rect = item.rect;
  3265. // sanity check because of OOo-generated PDFs
  3266. if ((rect[3] - rect[1]) < ANNOT_MIN_SIZE) {
  3267. rect[3] = rect[1] + ANNOT_MIN_SIZE;
  3268. }
  3269. if ((rect[2] - rect[0]) < ANNOT_MIN_SIZE) {
  3270. rect[2] = rect[0] + (rect[3] - rect[1]); // make it square
  3271. }
  3272. var container = this.getEmptyContainer('section', rect);
  3273. container.className = 'annotText';
  3274. var image = document.createElement('img');
  3275. image.style.height = container.style.height;
  3276. var iconName = item.name;
  3277. image.src = PDFJS.imageResourcesPath + 'annotation-' +
  3278. iconName.toLowerCase() + '.svg';
  3279. image.alt = '[{{type}} Annotation]';
  3280. image.dataset.l10nId = 'text_annotation_type';
  3281. image.dataset.l10nArgs = JSON.stringify({type: iconName});
  3282. var content = document.createElement('div');
  3283. content.setAttribute('hidden', true);
  3284. var title = document.createElement('h1');
  3285. var text = document.createElement('p');
  3286. content.style.left = Math.floor(rect[2] - rect[0]) + 'px';
  3287. content.style.top = '0px';
  3288. title.textContent = item.title;
  3289. if (!item.content && !item.title) {
  3290. content.setAttribute('hidden', true);
  3291. } else {
  3292. var e = document.createElement('span');
  3293. var lines = item.content.split(/(?:\r\n?|\n)/);
  3294. for (var i = 0, ii = lines.length; i < ii; ++i) {
  3295. var line = lines[i];
  3296. e.appendChild(document.createTextNode(line));
  3297. if (i < (ii - 1))
  3298. e.appendChild(document.createElement('br'));
  3299. }
  3300. text.appendChild(e);
  3301. var showAnnotation = function showAnnotation() {
  3302. container.style.zIndex += 1;
  3303. content.removeAttribute('hidden');
  3304. };
  3305. var hideAnnotation = function hideAnnotation(e) {
  3306. if (e.toElement || e.relatedTarget) { // No context menu is used
  3307. container.style.zIndex -= 1;
  3308. content.setAttribute('hidden', true);
  3309. }
  3310. };
  3311. content.addEventListener('mouseover', showAnnotation, false);
  3312. content.addEventListener('mouseout', hideAnnotation, false);
  3313. image.addEventListener('mouseover', showAnnotation, false);
  3314. image.addEventListener('mouseout', hideAnnotation, false);
  3315. }
  3316. content.appendChild(title);
  3317. content.appendChild(text);
  3318. container.appendChild(image);
  3319. container.appendChild(content);
  3320. return container;
  3321. }
  3322. });
  3323. return TextAnnotation;
  3324. })();
  3325. var LinkAnnotation = (function LinkAnnotationClosure() {
  3326. function LinkAnnotation(params) {
  3327. Annotation.call(this, params);
  3328. if (params.data) {
  3329. return;
  3330. }
  3331. var dict = params.dict;
  3332. var data = this.data;
  3333. var action = dict.get('A');
  3334. if (action) {
  3335. var linkType = action.get('S').name;
  3336. if (linkType === 'URI') {
  3337. var url = action.get('URI');
  3338. if (isName(url)) {
  3339. // Some bad PDFs do not put parentheses around relative URLs.
  3340. url = '/' + url.name;
  3341. } else {
  3342. url = addDefaultProtocolToUrl(url);
  3343. }
  3344. // TODO: pdf spec mentions urls can be relative to a Base
  3345. // entry in the dictionary.
  3346. if (!isValidUrl(url, false)) {
  3347. url = '';
  3348. }
  3349. data.url = url;
  3350. } else if (linkType === 'GoTo') {
  3351. data.dest = action.get('D');
  3352. } else if (linkType === 'GoToR') {
  3353. var urlDict = action.get('F');
  3354. if (isDict(urlDict)) {
  3355. // We assume that the 'url' is a Filspec dictionary
  3356. // and fetch the url without checking any further
  3357. url = urlDict.get('F') || '';
  3358. }
  3359. // TODO: pdf reference says that GoToR
  3360. // can also have 'NewWindow' attribute
  3361. if (!isValidUrl(url, false)) {
  3362. url = '';
  3363. }
  3364. data.url = url;
  3365. data.dest = action.get('D');
  3366. } else if (linkType === 'Named') {
  3367. data.action = action.get('N').name;
  3368. } else {
  3369. warn('unrecognized link type: ' + linkType);
  3370. }
  3371. } else if (dict.has('Dest')) {
  3372. // simple destination link
  3373. var dest = dict.get('Dest');
  3374. data.dest = isName(dest) ? dest.name : dest;
  3375. }
  3376. }
  3377. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  3378. function addDefaultProtocolToUrl(url) {
  3379. if (url.indexOf('www.') === 0) {
  3380. return ('http://' + url);
  3381. }
  3382. return url;
  3383. }
  3384. Util.inherit(LinkAnnotation, Annotation, {
  3385. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  3386. return false;
  3387. },
  3388. hasHtml: function LinkAnnotation_hasHtml() {
  3389. return true;
  3390. },
  3391. getHtmlElement: function LinkAnnotation_getHtmlElement(commonObjs) {
  3392. var rect = this.data.rect;
  3393. var element = document.createElement('a');
  3394. var borderWidth = this.data.borderWidth;
  3395. element.style.borderWidth = borderWidth + 'px';
  3396. var color = this.data.color;
  3397. var rgb = [];
  3398. for (var i = 0; i < 3; ++i) {
  3399. rgb[i] = Math.round(color[i] * 255);
  3400. }
  3401. element.style.borderColor = Util.makeCssRgb(rgb);
  3402. element.style.borderStyle = 'solid';
  3403. var width = rect[2] - rect[0] - 2 * borderWidth;
  3404. var height = rect[3] - rect[1] - 2 * borderWidth;
  3405. element.style.width = width + 'px';
  3406. element.style.height = height + 'px';
  3407. element.href = this.data.url || '';
  3408. return element;
  3409. }
  3410. });
  3411. return LinkAnnotation;
  3412. })();
  3413. var NetworkManager = (function NetworkManagerClosure() {
  3414. var OK_RESPONSE = 200;
  3415. var PARTIAL_CONTENT_RESPONSE = 206;
  3416. function NetworkManager(url, args) {
  3417. this.url = url;
  3418. args = args || {};
  3419. this.httpHeaders = args.httpHeaders || {};
  3420. this.withCredentials = args.withCredentials || false;
  3421. this.getXhr = args.getXhr ||
  3422. function NetworkManager_getXhr() {
  3423. return new XMLHttpRequest();
  3424. };
  3425. this.currXhrId = 0;
  3426. this.pendingRequests = {};
  3427. this.loadedRequests = {};
  3428. }
  3429. function getArrayBuffer(xhr) {
  3430. var data = (xhr.mozResponseArrayBuffer || xhr.mozResponse ||
  3431. xhr.responseArrayBuffer || xhr.response);
  3432. if (typeof data !== 'string') {
  3433. return data;
  3434. }
  3435. var length = data.length;
  3436. var buffer = new Uint8Array(length);
  3437. for (var i = 0; i < length; i++) {
  3438. buffer[i] = data.charCodeAt(i) & 0xFF;
  3439. }
  3440. return buffer;
  3441. }
  3442. NetworkManager.prototype = {
  3443. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  3444. var args = {
  3445. begin: begin,
  3446. end: end
  3447. };
  3448. for (var prop in listeners) {
  3449. args[prop] = listeners[prop];
  3450. }
  3451. return this.request(args);
  3452. },
  3453. requestFull: function NetworkManager_requestRange(listeners) {
  3454. return this.request(listeners);
  3455. },
  3456. request: function NetworkManager_requestRange(args) {
  3457. var xhr = this.getXhr();
  3458. var xhrId = this.currXhrId++;
  3459. var pendingRequest = this.pendingRequests[xhrId] = {
  3460. xhr: xhr
  3461. };
  3462. xhr.open('GET', this.url);
  3463. xhr.withCredentials = this.withCredentials;
  3464. for (var property in this.httpHeaders) {
  3465. var value = this.httpHeaders[property];
  3466. if (typeof value === 'undefined') {
  3467. continue;
  3468. }
  3469. xhr.setRequestHeader(property, value);
  3470. }
  3471. if ('begin' in args && 'end' in args) {
  3472. var rangeStr = args.begin + '-' + (args.end - 1);
  3473. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  3474. pendingRequest.expectedStatus = 206;
  3475. } else {
  3476. pendingRequest.expectedStatus = 200;
  3477. }
  3478. xhr.mozResponseType = xhr.responseType = 'arraybuffer';
  3479. if (args.onProgress) {
  3480. xhr.onprogress = args.onProgress;
  3481. }
  3482. if (args.onError) {
  3483. xhr.onerror = function(evt) {
  3484. args.onError(xhr.status);
  3485. };
  3486. }
  3487. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  3488. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  3489. pendingRequest.onDone = args.onDone;
  3490. pendingRequest.onError = args.onError;
  3491. xhr.send(null);
  3492. return xhrId;
  3493. },
  3494. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  3495. var pendingRequest = this.pendingRequests[xhrId];
  3496. if (!pendingRequest) {
  3497. // Maybe abortRequest was called...
  3498. return;
  3499. }
  3500. var xhr = pendingRequest.xhr;
  3501. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  3502. pendingRequest.onHeadersReceived();
  3503. delete pendingRequest.onHeadersReceived;
  3504. }
  3505. if (xhr.readyState !== 4) {
  3506. return;
  3507. }
  3508. if (!(xhrId in this.pendingRequests)) {
  3509. // The XHR request might have been aborted in onHeadersReceived()
  3510. // callback, in which case we should abort request
  3511. return;
  3512. }
  3513. delete this.pendingRequests[xhrId];
  3514. // success status == 0 can be on ftp, file and other protocols
  3515. if (xhr.status === 0 && /^https?:/i.test(this.url)) {
  3516. if (pendingRequest.onError) {
  3517. pendingRequest.onError(xhr.status);
  3518. }
  3519. return;
  3520. }
  3521. var xhrStatus = xhr.status || OK_RESPONSE;
  3522. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  3523. // "A server MAY ignore the Range header". This means it's possible to
  3524. // get a 200 rather than a 206 response from a range request.
  3525. var ok_response_on_range_request =
  3526. xhrStatus === OK_RESPONSE &&
  3527. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  3528. if (!ok_response_on_range_request &&
  3529. xhrStatus !== pendingRequest.expectedStatus) {
  3530. if (pendingRequest.onError) {
  3531. pendingRequest.onError(xhr.status);
  3532. }
  3533. return;
  3534. }
  3535. this.loadedRequests[xhrId] = true;
  3536. var chunk = getArrayBuffer(xhr);
  3537. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  3538. var rangeHeader = xhr.getResponseHeader('Content-Range');
  3539. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  3540. var begin = parseInt(matches[1], 10);
  3541. pendingRequest.onDone({
  3542. begin: begin,
  3543. chunk: chunk
  3544. });
  3545. } else {
  3546. pendingRequest.onDone({
  3547. begin: 0,
  3548. chunk: chunk
  3549. });
  3550. }
  3551. },
  3552. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  3553. for (var xhrId in this.pendingRequests) {
  3554. return true;
  3555. }
  3556. return false;
  3557. },
  3558. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  3559. return this.pendingRequests[xhrId].xhr;
  3560. },
  3561. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  3562. return xhrId in this.pendingRequests;
  3563. },
  3564. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  3565. return xhrId in this.loadedRequests;
  3566. },
  3567. abortAllRequests: function NetworkManager_abortAllRequests() {
  3568. for (var xhrId in this.pendingRequests) {
  3569. this.abortRequest(xhrId | 0);
  3570. }
  3571. },
  3572. abortRequest: function NetworkManager_abortRequest(xhrId) {
  3573. var xhr = this.pendingRequests[xhrId].xhr;
  3574. delete this.pendingRequests[xhrId];
  3575. xhr.abort();
  3576. }
  3577. };
  3578. return NetworkManager;
  3579. })();
  3580. var ChunkedStream = (function ChunkedStreamClosure() {
  3581. function ChunkedStream(length, chunkSize, manager) {
  3582. this.bytes = new Uint8Array(length);
  3583. this.start = 0;
  3584. this.pos = 0;
  3585. this.end = length;
  3586. this.chunkSize = chunkSize;
  3587. this.loadedChunks = [];
  3588. this.numChunksLoaded = 0;
  3589. this.numChunks = Math.ceil(length / chunkSize);
  3590. this.manager = manager;
  3591. this.initialDataLength = 0;
  3592. }
  3593. // required methods for a stream. if a particular stream does not
  3594. // implement these, an error should be thrown
  3595. ChunkedStream.prototype = {
  3596. getMissingChunks: function ChunkedStream_getMissingChunks() {
  3597. var chunks = [];
  3598. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  3599. if (!(chunk in this.loadedChunks)) {
  3600. chunks.push(chunk);
  3601. }
  3602. }
  3603. return chunks;
  3604. },
  3605. getBaseStreams: function ChunkedStream_getBaseStreams() {
  3606. return [this];
  3607. },
  3608. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  3609. return this.numChunksLoaded === this.numChunks;
  3610. },
  3611. onReceiveData: function(begin, chunk) {
  3612. var end = begin + chunk.byteLength;
  3613. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  3614. // Using this.length is inaccurate here since this.start can be moved
  3615. // See ChunkedStream.moveStart()
  3616. var length = this.bytes.length;
  3617. assert(end % this.chunkSize === 0 || end === length,
  3618. 'Bad end offset: ' + end);
  3619. this.bytes.set(new Uint8Array(chunk), begin);
  3620. var chunkSize = this.chunkSize;
  3621. var beginChunk = Math.floor(begin / chunkSize);
  3622. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3623. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3624. if (!(chunk in this.loadedChunks)) {
  3625. this.loadedChunks[chunk] = true;
  3626. ++this.numChunksLoaded;
  3627. }
  3628. }
  3629. },
  3630. onReceiveInitialData: function (data) {
  3631. this.bytes.set(data);
  3632. this.initialDataLength = data.length;
  3633. var endChunk = this.end === data.length ?
  3634. this.numChunks : Math.floor(data.length / this.chunkSize);
  3635. for (var i = 0; i < endChunk; i++) {
  3636. this.loadedChunks[i] = true;
  3637. ++this.numChunksLoaded;
  3638. }
  3639. },
  3640. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  3641. if (begin >= end) {
  3642. return;
  3643. }
  3644. if (end <= this.initialDataLength) {
  3645. return;
  3646. }
  3647. var chunkSize = this.chunkSize;
  3648. var beginChunk = Math.floor(begin / chunkSize);
  3649. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  3650. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3651. if (!(chunk in this.loadedChunks)) {
  3652. throw new MissingDataException(begin, end);
  3653. }
  3654. }
  3655. },
  3656. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  3657. for (var chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  3658. if (!(chunk in this.loadedChunks)) {
  3659. return chunk;
  3660. }
  3661. }
  3662. // Wrap around to beginning
  3663. for (var chunk = 0; chunk < beginChunk; ++chunk) {
  3664. if (!(chunk in this.loadedChunks)) {
  3665. return chunk;
  3666. }
  3667. }
  3668. return null;
  3669. },
  3670. hasChunk: function ChunkedStream_hasChunk(chunk) {
  3671. return chunk in this.loadedChunks;
  3672. },
  3673. get length() {
  3674. return this.end - this.start;
  3675. },
  3676. getByte: function ChunkedStream_getByte() {
  3677. var pos = this.pos;
  3678. if (pos >= this.end) {
  3679. return -1;
  3680. }
  3681. this.ensureRange(pos, pos + 1);
  3682. return this.bytes[this.pos++];
  3683. },
  3684. // returns subarray of original buffer
  3685. // should only be read
  3686. getBytes: function ChunkedStream_getBytes(length) {
  3687. var bytes = this.bytes;
  3688. var pos = this.pos;
  3689. var strEnd = this.end;
  3690. if (!length) {
  3691. this.ensureRange(pos, strEnd);
  3692. return bytes.subarray(pos, strEnd);
  3693. }
  3694. var end = pos + length;
  3695. if (end > strEnd)
  3696. end = strEnd;
  3697. this.ensureRange(pos, end);
  3698. this.pos = end;
  3699. return bytes.subarray(pos, end);
  3700. },
  3701. peekBytes: function ChunkedStream_peekBytes(length) {
  3702. var bytes = this.getBytes(length);
  3703. this.pos -= bytes.length;
  3704. return bytes;
  3705. },
  3706. getByteRange: function ChunkedStream_getBytes(begin, end) {
  3707. this.ensureRange(begin, end);
  3708. return this.bytes.subarray(begin, end);
  3709. },
  3710. skip: function ChunkedStream_skip(n) {
  3711. if (!n)
  3712. n = 1;
  3713. this.pos += n;
  3714. },
  3715. reset: function ChunkedStream_reset() {
  3716. this.pos = this.start;
  3717. },
  3718. moveStart: function ChunkedStream_moveStart() {
  3719. this.start = this.pos;
  3720. },
  3721. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  3722. function ChunkedStreamSubstream() {}
  3723. ChunkedStreamSubstream.prototype = Object.create(this);
  3724. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  3725. var chunkSize = this.chunkSize;
  3726. var beginChunk = Math.floor(this.start / chunkSize);
  3727. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  3728. var missingChunks = [];
  3729. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3730. if (!(chunk in this.loadedChunks)) {
  3731. missingChunks.push(chunk);
  3732. }
  3733. }
  3734. return missingChunks;
  3735. };
  3736. var subStream = new ChunkedStreamSubstream();
  3737. subStream.pos = subStream.start = start;
  3738. subStream.end = start + length || this.end;
  3739. subStream.dict = dict;
  3740. return subStream;
  3741. },
  3742. isStream: true
  3743. };
  3744. return ChunkedStream;
  3745. })();
  3746. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  3747. function ChunkedStreamManager(length, chunkSize, url, args) {
  3748. var self = this;
  3749. this.stream = new ChunkedStream(length, chunkSize, this);
  3750. this.length = length;
  3751. this.chunkSize = chunkSize;
  3752. this.url = url;
  3753. this.disableAutoFetch = args.disableAutoFetch;
  3754. var msgHandler = this.msgHandler = args.msgHandler;
  3755. if (args.chunkedViewerLoading) {
  3756. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  3757. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  3758. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3759. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  3760. };
  3761. } else {
  3762. var getXhr = function getXhr() {
  3763. return new XMLHttpRequest();
  3764. };
  3765. this.networkManager = new NetworkManager(this.url, {
  3766. getXhr: getXhr,
  3767. httpHeaders: args.httpHeaders,
  3768. withCredentials: args.withCredentials
  3769. });
  3770. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  3771. this.networkManager.requestRange(begin, end, {
  3772. onDone: this.onReceiveData.bind(this),
  3773. onProgress: this.onProgress.bind(this)
  3774. });
  3775. };
  3776. }
  3777. this.currRequestId = 0;
  3778. this.chunksNeededByRequest = {};
  3779. this.requestsByChunk = {};
  3780. this.callbacksByRequest = {};
  3781. this.loadedStream = new LegacyPromise();
  3782. if (args.initialData) {
  3783. this.setInitialData(args.initialData);
  3784. }
  3785. }
  3786. ChunkedStreamManager.prototype = {
  3787. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  3788. this.stream.onReceiveInitialData(data);
  3789. if (this.stream.allChunksLoaded()) {
  3790. this.loadedStream.resolve(this.stream);
  3791. } else if (this.msgHandler) {
  3792. this.msgHandler.send('DocProgress', {
  3793. loaded: data.length,
  3794. total: this.length
  3795. });
  3796. }
  3797. },
  3798. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  3799. return this.loadedStream;
  3800. },
  3801. // Get all the chunks that are not yet loaded and groups them into
  3802. // contiguous ranges to load in as few requests as possible
  3803. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  3804. var missingChunks = this.stream.getMissingChunks();
  3805. this.requestChunks(missingChunks);
  3806. return this.loadedStream;
  3807. },
  3808. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  3809. callback) {
  3810. var requestId = this.currRequestId++;
  3811. var chunksNeeded;
  3812. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  3813. for (var i = 0, ii = chunks.length; i < ii; i++) {
  3814. if (!this.stream.hasChunk(chunks[i])) {
  3815. chunksNeeded[chunks[i]] = true;
  3816. }
  3817. }
  3818. if (isEmptyObj(chunksNeeded)) {
  3819. if (callback) {
  3820. callback();
  3821. }
  3822. return;
  3823. }
  3824. this.callbacksByRequest[requestId] = callback;
  3825. var chunksToRequest = [];
  3826. for (var chunk in chunksNeeded) {
  3827. chunk = chunk | 0;
  3828. if (!(chunk in this.requestsByChunk)) {
  3829. this.requestsByChunk[chunk] = [];
  3830. chunksToRequest.push(chunk);
  3831. }
  3832. this.requestsByChunk[chunk].push(requestId);
  3833. }
  3834. if (!chunksToRequest.length) {
  3835. return;
  3836. }
  3837. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  3838. for (var i = 0; i < groupedChunksToRequest.length; ++i) {
  3839. var groupedChunk = groupedChunksToRequest[i];
  3840. var begin = groupedChunk.beginChunk * this.chunkSize;
  3841. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  3842. this.sendRequest(begin, end);
  3843. }
  3844. },
  3845. getStream: function ChunkedStreamManager_getStream() {
  3846. return this.stream;
  3847. },
  3848. // Loads any chunks in the requested range that are not yet loaded
  3849. requestRange: function ChunkedStreamManager_requestRange(
  3850. begin, end, callback) {
  3851. end = Math.min(end, this.length);
  3852. var beginChunk = this.getBeginChunk(begin);
  3853. var endChunk = this.getEndChunk(end);
  3854. var chunks = [];
  3855. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3856. chunks.push(chunk);
  3857. }
  3858. this.requestChunks(chunks, callback);
  3859. },
  3860. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  3861. callback) {
  3862. ranges = ranges || [];
  3863. var chunksToRequest = [];
  3864. for (var i = 0; i < ranges.length; i++) {
  3865. var beginChunk = this.getBeginChunk(ranges[i].begin);
  3866. var endChunk = this.getEndChunk(ranges[i].end);
  3867. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3868. if (chunksToRequest.indexOf(chunk) < 0) {
  3869. chunksToRequest.push(chunk);
  3870. }
  3871. }
  3872. }
  3873. chunksToRequest.sort(function(a, b) { return a - b; });
  3874. this.requestChunks(chunksToRequest, callback);
  3875. },
  3876. // Groups a sorted array of chunks into as few continguous larger
  3877. // chunks as possible
  3878. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  3879. var groupedChunks = [];
  3880. var beginChunk = -1;
  3881. var prevChunk = -1;
  3882. for (var i = 0; i < chunks.length; ++i) {
  3883. var chunk = chunks[i];
  3884. if (beginChunk < 0) {
  3885. beginChunk = chunk;
  3886. }
  3887. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  3888. groupedChunks.push({
  3889. beginChunk: beginChunk, endChunk: prevChunk + 1});
  3890. beginChunk = chunk;
  3891. }
  3892. if (i + 1 === chunks.length) {
  3893. groupedChunks.push({
  3894. beginChunk: beginChunk, endChunk: chunk + 1});
  3895. }
  3896. prevChunk = chunk;
  3897. }
  3898. return groupedChunks;
  3899. },
  3900. onProgress: function ChunkedStreamManager_onProgress(args) {
  3901. var bytesLoaded = this.stream.numChunksLoaded * this.chunkSize +
  3902. args.loaded;
  3903. this.msgHandler.send('DocProgress', {
  3904. loaded: bytesLoaded,
  3905. total: this.length
  3906. });
  3907. },
  3908. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  3909. var chunk = args.chunk;
  3910. var begin = args.begin;
  3911. var end = begin + chunk.byteLength;
  3912. var beginChunk = this.getBeginChunk(begin);
  3913. var endChunk = this.getEndChunk(end);
  3914. this.stream.onReceiveData(begin, chunk);
  3915. if (this.stream.allChunksLoaded()) {
  3916. this.loadedStream.resolve(this.stream);
  3917. }
  3918. var loadedRequests = [];
  3919. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  3920. // The server might return more chunks than requested
  3921. var requestIds = this.requestsByChunk[chunk] || [];
  3922. delete this.requestsByChunk[chunk];
  3923. for (var i = 0; i < requestIds.length; ++i) {
  3924. var requestId = requestIds[i];
  3925. var chunksNeeded = this.chunksNeededByRequest[requestId];
  3926. if (chunk in chunksNeeded) {
  3927. delete chunksNeeded[chunk];
  3928. }
  3929. if (!isEmptyObj(chunksNeeded)) {
  3930. continue;
  3931. }
  3932. loadedRequests.push(requestId);
  3933. }
  3934. }
  3935. // If there are no pending requests, automatically fetch the next
  3936. // unfetched chunk of the PDF
  3937. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  3938. var nextEmptyChunk;
  3939. if (this.stream.numChunksLoaded === 1) {
  3940. // This is a special optimization so that after fetching the first
  3941. // chunk, rather than fetching the second chunk, we fetch the last
  3942. // chunk.
  3943. var lastChunk = this.stream.numChunks - 1;
  3944. if (!this.stream.hasChunk(lastChunk)) {
  3945. nextEmptyChunk = lastChunk;
  3946. }
  3947. } else {
  3948. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  3949. }
  3950. if (isInt(nextEmptyChunk)) {
  3951. this.requestChunks([nextEmptyChunk]);
  3952. }
  3953. }
  3954. for (var i = 0; i < loadedRequests.length; ++i) {
  3955. var requestId = loadedRequests[i];
  3956. var callback = this.callbacksByRequest[requestId];
  3957. delete this.callbacksByRequest[requestId];
  3958. if (callback) {
  3959. callback();
  3960. }
  3961. }
  3962. this.msgHandler.send('DocProgress', {
  3963. loaded: this.stream.numChunksLoaded * this.chunkSize,
  3964. total: this.length
  3965. });
  3966. },
  3967. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  3968. var chunk = Math.floor(begin / this.chunkSize);
  3969. return chunk;
  3970. },
  3971. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  3972. if (end % this.chunkSize === 0) {
  3973. return end / this.chunkSize;
  3974. }
  3975. // 0 -> 0
  3976. // 1 -> 1
  3977. // 99 -> 1
  3978. // 100 -> 1
  3979. // 101 -> 2
  3980. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  3981. return chunk;
  3982. }
  3983. };
  3984. return ChunkedStreamManager;
  3985. })();
  3986. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  3987. var BasePdfManager = (function BasePdfManagerClosure() {
  3988. function BasePdfManager() {
  3989. throw new Error('Cannot initialize BaseManagerManager');
  3990. }
  3991. BasePdfManager.prototype = {
  3992. onLoadedStream: function BasePdfManager_onLoadedStream() {
  3993. throw new NotImplementedException();
  3994. },
  3995. ensureModel: function BasePdfManager_ensureModel(prop, args) {
  3996. return this.ensure(this.pdfModel, prop, args);
  3997. },
  3998. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  3999. return this.ensure(this.pdfModel.xref, prop, args);
  4000. },
  4001. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  4002. return this.ensure(this.pdfModel.catalog, prop, args);
  4003. },
  4004. getPage: function BasePdfManager_pagePage(pageIndex) {
  4005. return this.pdfModel.getPage(pageIndex);
  4006. },
  4007. cleanup: function BasePdfManager_cleanup() {
  4008. return this.pdfModel.cleanup();
  4009. },
  4010. ensure: function BasePdfManager_ensure(obj, prop, args) {
  4011. return new NotImplementedException();
  4012. },
  4013. requestRange: function BasePdfManager_ensure(begin, end) {
  4014. return new NotImplementedException();
  4015. },
  4016. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  4017. return new NotImplementedException();
  4018. },
  4019. updatePassword: function BasePdfManager_updatePassword(password) {
  4020. this.pdfModel.xref.password = this.password = password;
  4021. if (this.passwordChangedPromise) {
  4022. this.passwordChangedPromise.resolve();
  4023. }
  4024. },
  4025. terminate: function BasePdfManager_terminate() {
  4026. return new NotImplementedException();
  4027. }
  4028. };
  4029. return BasePdfManager;
  4030. })();
  4031. var LocalPdfManager = (function LocalPdfManagerClosure() {
  4032. function LocalPdfManager(data, password) {
  4033. var stream = new Stream(data);
  4034. this.pdfModel = new PDFDocument(this, stream, password);
  4035. this.loadedStream = new LegacyPromise();
  4036. this.loadedStream.resolve(stream);
  4037. }
  4038. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4039. LocalPdfManager.prototype.constructor = LocalPdfManager;
  4040. LocalPdfManager.prototype.ensure =
  4041. function LocalPdfManager_ensure(obj, prop, args) {
  4042. var promise = new LegacyPromise();
  4043. try {
  4044. var value = obj[prop];
  4045. var result;
  4046. if (typeof(value) === 'function') {
  4047. result = value.apply(obj, args);
  4048. } else {
  4049. result = value;
  4050. }
  4051. promise.resolve(result);
  4052. } catch (e) {
  4053. console.log(e.stack);
  4054. promise.reject(e);
  4055. }
  4056. return promise;
  4057. };
  4058. LocalPdfManager.prototype.requestRange =
  4059. function LocalPdfManager_requestRange(begin, end) {
  4060. var promise = new LegacyPromise();
  4061. promise.resolve();
  4062. return promise;
  4063. };
  4064. LocalPdfManager.prototype.requestLoadedStream =
  4065. function LocalPdfManager_requestLoadedStream() {
  4066. };
  4067. LocalPdfManager.prototype.onLoadedStream =
  4068. function LocalPdfManager_getLoadedStream() {
  4069. return this.loadedStream;
  4070. };
  4071. LocalPdfManager.prototype.terminate =
  4072. function LocalPdfManager_terminate() {
  4073. return;
  4074. };
  4075. return LocalPdfManager;
  4076. })();
  4077. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  4078. var CHUNK_SIZE = 65536;
  4079. function NetworkPdfManager(args, msgHandler) {
  4080. this.msgHandler = msgHandler;
  4081. var params = {
  4082. msgHandler: msgHandler,
  4083. httpHeaders: args.httpHeaders,
  4084. withCredentials: args.withCredentials,
  4085. chunkedViewerLoading: args.chunkedViewerLoading,
  4086. disableAutoFetch: args.disableAutoFetch,
  4087. initialData: args.initialData
  4088. };
  4089. this.streamManager = new ChunkedStreamManager(args.length, CHUNK_SIZE,
  4090. args.url, params);
  4091. this.pdfModel = new PDFDocument(this, this.streamManager.getStream(),
  4092. args.password);
  4093. }
  4094. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  4095. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  4096. NetworkPdfManager.prototype.ensure =
  4097. function NetworkPdfManager_ensure(obj, prop, args) {
  4098. var promise = new LegacyPromise();
  4099. this.ensureHelper(promise, obj, prop, args);
  4100. return promise;
  4101. };
  4102. NetworkPdfManager.prototype.ensureHelper =
  4103. function NetworkPdfManager_ensureHelper(promise, obj, prop, args) {
  4104. try {
  4105. var result;
  4106. var value = obj[prop];
  4107. if (typeof(value) === 'function') {
  4108. result = value.apply(obj, args);
  4109. } else {
  4110. result = value;
  4111. }
  4112. promise.resolve(result);
  4113. } catch(e) {
  4114. if (!(e instanceof MissingDataException)) {
  4115. console.log(e.stack);
  4116. promise.reject(e);
  4117. return;
  4118. }
  4119. this.streamManager.requestRange(e.begin, e.end, function() {
  4120. this.ensureHelper(promise, obj, prop, args);
  4121. }.bind(this));
  4122. }
  4123. };
  4124. NetworkPdfManager.prototype.requestRange =
  4125. function NetworkPdfManager_requestRange(begin, end) {
  4126. var promise = new LegacyPromise();
  4127. this.streamManager.requestRange(begin, end, function() {
  4128. promise.resolve();
  4129. });
  4130. return promise;
  4131. };
  4132. NetworkPdfManager.prototype.requestLoadedStream =
  4133. function NetworkPdfManager_requestLoadedStream() {
  4134. this.streamManager.requestAllChunks();
  4135. };
  4136. NetworkPdfManager.prototype.onLoadedStream =
  4137. function NetworkPdfManager_getLoadedStream() {
  4138. return this.streamManager.onLoadedStream();
  4139. };
  4140. NetworkPdfManager.prototype.terminate =
  4141. function NetworkPdfManager_terminate() {
  4142. this.streamManager.networkManager.abortAllRequests();
  4143. };
  4144. return NetworkPdfManager;
  4145. })();
  4146. var Page = (function PageClosure() {
  4147. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  4148. this.pdfManager = pdfManager;
  4149. this.pageIndex = pageIndex;
  4150. this.pageDict = pageDict;
  4151. this.xref = xref;
  4152. this.ref = ref;
  4153. this.fontCache = fontCache;
  4154. this.idCounters = {
  4155. obj: 0
  4156. };
  4157. this.resourcesPromise = null;
  4158. }
  4159. Page.prototype = {
  4160. getPageProp: function Page_getPageProp(key) {
  4161. return this.pageDict.get(key);
  4162. },
  4163. inheritPageProp: function Page_inheritPageProp(key) {
  4164. var dict = this.pageDict;
  4165. var obj = dict.get(key);
  4166. while (obj === undefined) {
  4167. dict = dict.get('Parent');
  4168. if (!dict)
  4169. break;
  4170. obj = dict.get(key);
  4171. }
  4172. return obj;
  4173. },
  4174. get content() {
  4175. return this.getPageProp('Contents');
  4176. },
  4177. get resources() {
  4178. return shadow(this, 'resources', this.inheritPageProp('Resources'));
  4179. },
  4180. get mediaBox() {
  4181. var obj = this.inheritPageProp('MediaBox');
  4182. // Reset invalid media box to letter size.
  4183. if (!isArray(obj) || obj.length !== 4)
  4184. obj = [0, 0, 612, 792];
  4185. return shadow(this, 'mediaBox', obj);
  4186. },
  4187. get view() {
  4188. var mediaBox = this.mediaBox;
  4189. var cropBox = this.inheritPageProp('CropBox');
  4190. if (!isArray(cropBox) || cropBox.length !== 4)
  4191. return shadow(this, 'view', mediaBox);
  4192. // From the spec, 6th ed., p.963:
  4193. // "The crop, bleed, trim, and art boxes should not ordinarily
  4194. // extend beyond the boundaries of the media box. If they do, they are
  4195. // effectively reduced to their intersection with the media box."
  4196. cropBox = Util.intersect(cropBox, mediaBox);
  4197. if (!cropBox)
  4198. return shadow(this, 'view', mediaBox);
  4199. return shadow(this, 'view', cropBox);
  4200. },
  4201. get annotationRefs() {
  4202. return shadow(this, 'annotationRefs', this.inheritPageProp('Annots'));
  4203. },
  4204. get rotate() {
  4205. var rotate = this.inheritPageProp('Rotate') || 0;
  4206. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  4207. if (rotate % 90 !== 0) {
  4208. rotate = 0;
  4209. } else if (rotate >= 360) {
  4210. rotate = rotate % 360;
  4211. } else if (rotate < 0) {
  4212. // The spec doesn't cover negatives, assume its counterclockwise
  4213. // rotation. The following is the other implementation of modulo.
  4214. rotate = ((rotate % 360) + 360) % 360;
  4215. }
  4216. return shadow(this, 'rotate', rotate);
  4217. },
  4218. getContentStream: function Page_getContentStream() {
  4219. var content = this.content;
  4220. var stream;
  4221. if (isArray(content)) {
  4222. // fetching items
  4223. var xref = this.xref;
  4224. var i, n = content.length;
  4225. var streams = [];
  4226. for (i = 0; i < n; ++i)
  4227. streams.push(xref.fetchIfRef(content[i]));
  4228. stream = new StreamsSequenceStream(streams);
  4229. } else if (isStream(content)) {
  4230. stream = content;
  4231. } else {
  4232. // replacing non-existent page content with empty one
  4233. stream = new NullStream();
  4234. }
  4235. return stream;
  4236. },
  4237. loadResources: function(keys) {
  4238. if (!this.resourcesPromise) {
  4239. // TODO: add async inheritPageProp and remove this.
  4240. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  4241. }
  4242. var promise = new LegacyPromise();
  4243. this.resourcesPromise.then(function resourceSuccess() {
  4244. var objectLoader = new ObjectLoader(this.resources.map,
  4245. keys,
  4246. this.xref);
  4247. objectLoader.load().then(function objectLoaderSuccess() {
  4248. promise.resolve();
  4249. });
  4250. }.bind(this));
  4251. return promise;
  4252. },
  4253. getOperatorList: function Page_getOperatorList(handler) {
  4254. var self = this;
  4255. var promise = new LegacyPromise();
  4256. function reject(e) {
  4257. promise.reject(e);
  4258. }
  4259. var pageListPromise = new LegacyPromise();
  4260. var pdfManager = this.pdfManager;
  4261. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4262. []);
  4263. var resourcesPromise = this.loadResources([
  4264. 'ExtGState',
  4265. 'ColorSpace',
  4266. 'Pattern',
  4267. 'Shading',
  4268. 'XObject',
  4269. 'Font',
  4270. // ProcSet
  4271. // Properties
  4272. ]);
  4273. var partialEvaluator = new PartialEvaluator(
  4274. pdfManager, this.xref, handler,
  4275. this.pageIndex, 'p' + this.pageIndex + '_',
  4276. this.idCounters, this.fontCache);
  4277. var dataPromises = Promise.all(
  4278. [contentStreamPromise, resourcesPromise], reject);
  4279. dataPromises.then(function(data) {
  4280. var contentStream = data[0];
  4281. var opList = new OperatorList(handler, self.pageIndex);
  4282. handler.send('StartRenderPage', {
  4283. transparency: partialEvaluator.hasBlendModes(self.resources),
  4284. pageIndex: self.pageIndex
  4285. });
  4286. partialEvaluator.getOperatorList(contentStream, self.resources, opList);
  4287. pageListPromise.resolve(opList);
  4288. });
  4289. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  4290. Promise.all([pageListPromise, annotationsPromise]).then(function(datas) {
  4291. var pageOpList = datas[0];
  4292. var annotations = datas[1];
  4293. if (annotations.length === 0) {
  4294. pageOpList.flush(true);
  4295. promise.resolve(pageOpList);
  4296. return;
  4297. }
  4298. var annotationsReadyPromise = Annotation.appendToOperatorList(
  4299. annotations, pageOpList, pdfManager, partialEvaluator);
  4300. annotationsReadyPromise.then(function () {
  4301. pageOpList.flush(true);
  4302. promise.resolve(pageOpList);
  4303. }, reject);
  4304. }, reject);
  4305. return promise;
  4306. },
  4307. extractTextContent: function Page_extractTextContent() {
  4308. var handler = {
  4309. on: function nullHandlerOn() {},
  4310. send: function nullHandlerSend() {}
  4311. };
  4312. var self = this;
  4313. var textContentPromise = new LegacyPromise();
  4314. var pdfManager = this.pdfManager;
  4315. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  4316. []);
  4317. var resourcesPromise = this.loadResources([
  4318. 'ExtGState',
  4319. 'XObject',
  4320. 'Font'
  4321. ]);
  4322. var dataPromises = Promise.all([contentStreamPromise,
  4323. resourcesPromise]);
  4324. dataPromises.then(function(data) {
  4325. var contentStream = data[0];
  4326. var partialEvaluator = new PartialEvaluator(
  4327. pdfManager, self.xref, handler,
  4328. self.pageIndex, 'p' + self.pageIndex + '_',
  4329. self.idCounters, self.fontCache);
  4330. var bidiTexts = partialEvaluator.getTextContent(contentStream,
  4331. self.resources);
  4332. textContentPromise.resolve(bidiTexts);
  4333. });
  4334. return textContentPromise;
  4335. },
  4336. getAnnotationsData: function Page_getAnnotationsData() {
  4337. var annotations = this.annotations;
  4338. var annotationsData = [];
  4339. for (var i = 0, n = annotations.length; i < n; ++i) {
  4340. annotationsData.push(annotations[i].getData());
  4341. }
  4342. return annotationsData;
  4343. },
  4344. get annotations() {
  4345. var annotations = [];
  4346. var annotationRefs = this.annotationRefs || [];
  4347. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  4348. var annotationRef = annotationRefs[i];
  4349. var annotation = Annotation.fromRef(this.xref, annotationRef);
  4350. if (annotation) {
  4351. annotations.push(annotation);
  4352. }
  4353. }
  4354. return shadow(this, 'annotations', annotations);
  4355. }
  4356. };
  4357. return Page;
  4358. })();
  4359. /**
  4360. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  4361. * `PDFDoc`, this one doesn't have any job management code.
  4362. * Right now there exists one PDFDocument on the main thread + one object
  4363. * for each worker. If there is no worker support enabled, there are two
  4364. * `PDFDocument` objects on the main thread created.
  4365. */
  4366. var PDFDocument = (function PDFDocumentClosure() {
  4367. function PDFDocument(pdfManager, arg, password) {
  4368. if (isStream(arg))
  4369. init.call(this, pdfManager, arg, password);
  4370. else if (isArrayBuffer(arg))
  4371. init.call(this, pdfManager, new Stream(arg), password);
  4372. else
  4373. error('PDFDocument: Unknown argument type');
  4374. }
  4375. function init(pdfManager, stream, password) {
  4376. assertWellFormed(stream.length > 0, 'stream must have data');
  4377. this.pdfManager = pdfManager;
  4378. this.stream = stream;
  4379. var xref = new XRef(this.stream, password, pdfManager);
  4380. this.xref = xref;
  4381. }
  4382. function find(stream, needle, limit, backwards) {
  4383. var pos = stream.pos;
  4384. var end = stream.end;
  4385. var str = '';
  4386. if (pos + limit > end)
  4387. limit = end - pos;
  4388. for (var n = 0; n < limit; ++n)
  4389. str += String.fromCharCode(stream.getByte());
  4390. stream.pos = pos;
  4391. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  4392. if (index == -1)
  4393. return false; /* not found */
  4394. stream.pos += index;
  4395. return true; /* found */
  4396. }
  4397. var DocumentInfoValidators = {
  4398. get entries() {
  4399. // Lazily build this since all the validation functions below are not
  4400. // defined until after this file loads.
  4401. return shadow(this, 'entries', {
  4402. Title: isString,
  4403. Author: isString,
  4404. Subject: isString,
  4405. Keywords: isString,
  4406. Creator: isString,
  4407. Producer: isString,
  4408. CreationDate: isString,
  4409. ModDate: isString,
  4410. Trapped: isName
  4411. });
  4412. }
  4413. };
  4414. PDFDocument.prototype = {
  4415. parse: function PDFDocument_parse(recoveryMode) {
  4416. this.setup(recoveryMode);
  4417. try {
  4418. // checking if AcroForm is present
  4419. this.acroForm = this.catalog.catDict.get('AcroForm');
  4420. if (this.acroForm) {
  4421. this.xfa = this.acroForm.get('XFA');
  4422. var fields = this.acroForm.get('Fields');
  4423. if ((!fields || !isArray(fields) || fields.length === 0) &&
  4424. !this.xfa) {
  4425. // no fields and no XFA -- not a form (?)
  4426. this.acroForm = null;
  4427. }
  4428. }
  4429. } catch (ex) {
  4430. info('Something wrong with AcroForm entry');
  4431. this.acroForm = null;
  4432. }
  4433. },
  4434. get linearization() {
  4435. var length = this.stream.length;
  4436. var linearization = false;
  4437. if (length) {
  4438. try {
  4439. linearization = new Linearization(this.stream);
  4440. if (linearization.length != length) {
  4441. linearization = false;
  4442. }
  4443. } catch (err) {
  4444. if (err instanceof MissingDataException) {
  4445. throw err;
  4446. }
  4447. info('The linearization data is not available ' +
  4448. 'or unreadable PDF data is found');
  4449. linearization = false;
  4450. }
  4451. }
  4452. // shadow the prototype getter with a data property
  4453. return shadow(this, 'linearization', linearization);
  4454. },
  4455. get startXRef() {
  4456. var stream = this.stream;
  4457. var startXRef = 0;
  4458. var linearization = this.linearization;
  4459. if (linearization) {
  4460. // Find end of first obj.
  4461. stream.reset();
  4462. if (find(stream, 'endobj', 1024))
  4463. startXRef = stream.pos + 6;
  4464. } else {
  4465. // Find startxref by jumping backward from the end of the file.
  4466. var step = 1024;
  4467. var found = false, pos = stream.end;
  4468. while (!found && pos > 0) {
  4469. pos -= step - 'startxref'.length;
  4470. if (pos < 0)
  4471. pos = 0;
  4472. stream.pos = pos;
  4473. found = find(stream, 'startxref', step, true);
  4474. }
  4475. if (found) {
  4476. stream.skip(9);
  4477. var ch;
  4478. do {
  4479. ch = stream.getByte();
  4480. } while (Lexer.isSpace(ch));
  4481. var str = '';
  4482. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  4483. str += String.fromCharCode(ch);
  4484. ch = stream.getByte();
  4485. }
  4486. startXRef = parseInt(str, 10);
  4487. if (isNaN(startXRef))
  4488. startXRef = 0;
  4489. }
  4490. }
  4491. // shadow the prototype getter with a data property
  4492. return shadow(this, 'startXRef', startXRef);
  4493. },
  4494. get mainXRefEntriesOffset() {
  4495. var mainXRefEntriesOffset = 0;
  4496. var linearization = this.linearization;
  4497. if (linearization)
  4498. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  4499. // shadow the prototype getter with a data property
  4500. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  4501. },
  4502. // Find the header, remove leading garbage and setup the stream
  4503. // starting from the header.
  4504. checkHeader: function PDFDocument_checkHeader() {
  4505. var stream = this.stream;
  4506. stream.reset();
  4507. if (find(stream, '%PDF-', 1024)) {
  4508. // Found the header, trim off any garbage before it.
  4509. stream.moveStart();
  4510. // Reading file format version
  4511. var MAX_VERSION_LENGTH = 12;
  4512. var version = '', ch;
  4513. while ((ch = stream.getByte()) > 0x20) { // SPACE
  4514. if (version.length >= MAX_VERSION_LENGTH) {
  4515. break;
  4516. }
  4517. version += String.fromCharCode(ch);
  4518. }
  4519. // removing "%PDF-"-prefix
  4520. this.pdfFormatVersion = version.substring(5);
  4521. return;
  4522. }
  4523. // May not be a PDF file, continue anyway.
  4524. },
  4525. parseStartXRef: function PDFDocument_parseStartXRef() {
  4526. var startXRef = this.startXRef;
  4527. this.xref.setStartXRef(startXRef);
  4528. },
  4529. setup: function PDFDocument_setup(recoveryMode) {
  4530. this.xref.parse(recoveryMode);
  4531. this.catalog = new Catalog(this.pdfManager, this.xref);
  4532. },
  4533. get numPages() {
  4534. var linearization = this.linearization;
  4535. var num = linearization ? linearization.numPages : this.catalog.numPages;
  4536. // shadow the prototype getter
  4537. return shadow(this, 'numPages', num);
  4538. },
  4539. get documentInfo() {
  4540. var docInfo = {
  4541. PDFFormatVersion: this.pdfFormatVersion,
  4542. IsAcroFormPresent: !!this.acroForm,
  4543. IsXFAPresent: !!this.xfa
  4544. };
  4545. var infoDict;
  4546. try {
  4547. infoDict = this.xref.trailer.get('Info');
  4548. } catch (err) {
  4549. info('The document information dictionary is invalid.');
  4550. }
  4551. if (infoDict) {
  4552. var validEntries = DocumentInfoValidators.entries;
  4553. // Only fill the document info with valid entries from the spec.
  4554. for (var key in validEntries) {
  4555. if (infoDict.has(key)) {
  4556. var value = infoDict.get(key);
  4557. // Make sure the value conforms to the spec.
  4558. if (validEntries[key](value)) {
  4559. docInfo[key] = typeof value !== 'string' ? value :
  4560. stringToPDFString(value);
  4561. } else {
  4562. info('Bad value in document info for "' + key + '"');
  4563. }
  4564. }
  4565. }
  4566. }
  4567. return shadow(this, 'documentInfo', docInfo);
  4568. },
  4569. get fingerprint() {
  4570. var xref = this.xref, hash, fileID = '';
  4571. if (xref.trailer.has('ID')) {
  4572. hash = stringToBytes(xref.trailer.get('ID')[0]);
  4573. } else {
  4574. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  4575. }
  4576. for (var i = 0, n = hash.length; i < n; i++) {
  4577. fileID += hash[i].toString(16);
  4578. }
  4579. return shadow(this, 'fingerprint', fileID);
  4580. },
  4581. getPage: function PDFDocument_getPage(pageIndex) {
  4582. return this.catalog.getPage(pageIndex);
  4583. },
  4584. cleanup: function PDFDocument_cleanup() {
  4585. return this.catalog.cleanup();
  4586. }
  4587. };
  4588. return PDFDocument;
  4589. })();
  4590. var Name = (function NameClosure() {
  4591. function Name(name) {
  4592. this.name = name;
  4593. }
  4594. Name.prototype = {};
  4595. return Name;
  4596. })();
  4597. var Cmd = (function CmdClosure() {
  4598. function Cmd(cmd) {
  4599. this.cmd = cmd;
  4600. }
  4601. Cmd.prototype = {};
  4602. var cmdCache = {};
  4603. Cmd.get = function Cmd_get(cmd) {
  4604. var cmdValue = cmdCache[cmd];
  4605. if (cmdValue)
  4606. return cmdValue;
  4607. return cmdCache[cmd] = new Cmd(cmd);
  4608. };
  4609. return Cmd;
  4610. })();
  4611. var Dict = (function DictClosure() {
  4612. var nonSerializable = function nonSerializableClosure() {
  4613. return nonSerializable; // creating closure on some variable
  4614. };
  4615. // xref is optional
  4616. function Dict(xref) {
  4617. // Map should only be used internally, use functions below to access.
  4618. this.map = Object.create(null);
  4619. this.xref = xref;
  4620. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  4621. }
  4622. Dict.prototype = {
  4623. assignXref: function Dict_assignXref(newXref) {
  4624. this.xref = newXref;
  4625. },
  4626. // automatically dereferences Ref objects
  4627. get: function Dict_get(key1, key2, key3) {
  4628. var value;
  4629. var xref = this.xref;
  4630. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  4631. typeof key2 == 'undefined') {
  4632. return xref ? xref.fetchIfRef(value) : value;
  4633. }
  4634. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  4635. typeof key3 == 'undefined') {
  4636. return xref ? xref.fetchIfRef(value) : value;
  4637. }
  4638. value = this.map[key3] || null;
  4639. return xref ? xref.fetchIfRef(value) : value;
  4640. },
  4641. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  4642. getAsync: function Dict_getAsync(key1, key2, key3) {
  4643. var value;
  4644. var promise;
  4645. var xref = this.xref;
  4646. if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
  4647. typeof key2 === undefined) {
  4648. if (xref) {
  4649. return xref.fetchIfRefAsync(value);
  4650. }
  4651. promise = new LegacyPromise();
  4652. promise.resolve(value);
  4653. return promise;
  4654. }
  4655. if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
  4656. typeof key3 === undefined) {
  4657. if (xref) {
  4658. return xref.fetchIfRefAsync(value);
  4659. }
  4660. promise = new LegacyPromise();
  4661. promise.resolve(value);
  4662. return promise;
  4663. }
  4664. value = this.map[key3] || null;
  4665. if (xref) {
  4666. return xref.fetchIfRefAsync(value);
  4667. }
  4668. promise = new LegacyPromise();
  4669. promise.resolve(value);
  4670. return promise;
  4671. },
  4672. // no dereferencing
  4673. getRaw: function Dict_getRaw(key) {
  4674. return this.map[key];
  4675. },
  4676. // creates new map and dereferences all Refs
  4677. getAll: function Dict_getAll() {
  4678. var all = {};
  4679. for (var key in this.map) {
  4680. var obj = this.get(key);
  4681. all[key] = obj instanceof Dict ? obj.getAll() : obj;
  4682. }
  4683. return all;
  4684. },
  4685. set: function Dict_set(key, value) {
  4686. this.map[key] = value;
  4687. },
  4688. has: function Dict_has(key) {
  4689. return key in this.map;
  4690. },
  4691. forEach: function Dict_forEach(callback) {
  4692. for (var key in this.map) {
  4693. callback(key, this.get(key));
  4694. }
  4695. }
  4696. };
  4697. return Dict;
  4698. })();
  4699. var Ref = (function RefClosure() {
  4700. function Ref(num, gen) {
  4701. this.num = num;
  4702. this.gen = gen;
  4703. }
  4704. Ref.prototype = {};
  4705. return Ref;
  4706. })();
  4707. // The reference is identified by number and generation,
  4708. // this structure stores only one instance of the reference.
  4709. var RefSet = (function RefSetClosure() {
  4710. function RefSet() {
  4711. this.dict = {};
  4712. }
  4713. RefSet.prototype = {
  4714. has: function RefSet_has(ref) {
  4715. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4716. },
  4717. put: function RefSet_put(ref) {
  4718. this.dict['R' + ref.num + '.' + ref.gen] = true;
  4719. },
  4720. remove: function RefSet_remove(ref) {
  4721. delete this.dict['R' + ref.num + '.' + ref.gen];
  4722. }
  4723. };
  4724. return RefSet;
  4725. })();
  4726. var RefSetCache = (function RefSetCacheClosure() {
  4727. function RefSetCache() {
  4728. this.dict = Object.create(null);
  4729. }
  4730. RefSetCache.prototype = {
  4731. get: function RefSetCache_get(ref) {
  4732. return this.dict['R' + ref.num + '.' + ref.gen];
  4733. },
  4734. has: function RefSetCache_has(ref) {
  4735. return ('R' + ref.num + '.' + ref.gen) in this.dict;
  4736. },
  4737. put: function RefSetCache_put(ref, obj) {
  4738. this.dict['R' + ref.num + '.' + ref.gen] = obj;
  4739. },
  4740. forEach: function RefSetCache_forEach(fn, thisArg) {
  4741. for (var i in this.dict) {
  4742. fn.call(thisArg, this.dict[i]);
  4743. }
  4744. },
  4745. clear: function RefSetCache_clear() {
  4746. this.dict = Object.create(null);
  4747. }
  4748. };
  4749. return RefSetCache;
  4750. })();
  4751. var Catalog = (function CatalogClosure() {
  4752. function Catalog(pdfManager, xref) {
  4753. this.pdfManager = pdfManager;
  4754. this.xref = xref;
  4755. this.catDict = xref.getCatalogObj();
  4756. this.fontCache = new RefSetCache();
  4757. assertWellFormed(isDict(this.catDict),
  4758. 'catalog object is not a dictionary');
  4759. this.pagePromises = [];
  4760. }
  4761. Catalog.prototype = {
  4762. get metadata() {
  4763. var streamRef = this.catDict.getRaw('Metadata');
  4764. if (!isRef(streamRef))
  4765. return shadow(this, 'metadata', null);
  4766. var encryptMetadata = !this.xref.encrypt ? false :
  4767. this.xref.encrypt.encryptMetadata;
  4768. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  4769. var metadata;
  4770. if (stream && isDict(stream.dict)) {
  4771. var type = stream.dict.get('Type');
  4772. var subtype = stream.dict.get('Subtype');
  4773. if (isName(type) && isName(subtype) &&
  4774. type.name === 'Metadata' && subtype.name === 'XML') {
  4775. // XXX: This should examine the charset the XML document defines,
  4776. // however since there are currently no real means to decode
  4777. // arbitrary charsets, let's just hope that the author of the PDF
  4778. // was reasonable enough to stick with the XML default charset,
  4779. // which is UTF-8.
  4780. try {
  4781. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  4782. } catch (e) {
  4783. info('Skipping invalid metadata.');
  4784. }
  4785. }
  4786. }
  4787. return shadow(this, 'metadata', metadata);
  4788. },
  4789. get toplevelPagesDict() {
  4790. var pagesObj = this.catDict.get('Pages');
  4791. assertWellFormed(isDict(pagesObj), 'invalid top-level pages dictionary');
  4792. // shadow the prototype getter
  4793. return shadow(this, 'toplevelPagesDict', pagesObj);
  4794. },
  4795. get documentOutline() {
  4796. var obj = null;
  4797. try {
  4798. obj = this.readDocumentOutline();
  4799. } catch (ex) {
  4800. if (ex instanceof MissingDataException) {
  4801. throw ex;
  4802. }
  4803. warn('Unable to read document outline');
  4804. }
  4805. return shadow(this, 'documentOutline', obj);
  4806. },
  4807. readDocumentOutline: function Catalog_readDocumentOutline() {
  4808. var xref = this.xref;
  4809. var obj = this.catDict.get('Outlines');
  4810. var root = { items: [] };
  4811. if (isDict(obj)) {
  4812. obj = obj.getRaw('First');
  4813. var processed = new RefSet();
  4814. if (isRef(obj)) {
  4815. var queue = [{obj: obj, parent: root}];
  4816. // to avoid recursion keeping track of the items
  4817. // in the processed dictionary
  4818. processed.put(obj);
  4819. while (queue.length > 0) {
  4820. var i = queue.shift();
  4821. var outlineDict = xref.fetchIfRef(i.obj);
  4822. if (outlineDict === null)
  4823. continue;
  4824. if (!outlineDict.has('Title'))
  4825. error('Invalid outline item');
  4826. var dest = outlineDict.get('A');
  4827. if (dest)
  4828. dest = dest.get('D');
  4829. else if (outlineDict.has('Dest')) {
  4830. dest = outlineDict.getRaw('Dest');
  4831. if (isName(dest))
  4832. dest = dest.name;
  4833. }
  4834. var title = outlineDict.get('Title');
  4835. var outlineItem = {
  4836. dest: dest,
  4837. title: stringToPDFString(title),
  4838. color: outlineDict.get('C') || [0, 0, 0],
  4839. count: outlineDict.get('Count'),
  4840. bold: !!(outlineDict.get('F') & 2),
  4841. italic: !!(outlineDict.get('F') & 1),
  4842. items: []
  4843. };
  4844. i.parent.items.push(outlineItem);
  4845. obj = outlineDict.getRaw('First');
  4846. if (isRef(obj) && !processed.has(obj)) {
  4847. queue.push({obj: obj, parent: outlineItem});
  4848. processed.put(obj);
  4849. }
  4850. obj = outlineDict.getRaw('Next');
  4851. if (isRef(obj) && !processed.has(obj)) {
  4852. queue.push({obj: obj, parent: i.parent});
  4853. processed.put(obj);
  4854. }
  4855. }
  4856. }
  4857. }
  4858. return root.items.length > 0 ? root.items : null;
  4859. },
  4860. get numPages() {
  4861. var obj = this.toplevelPagesDict.get('Count');
  4862. assertWellFormed(
  4863. isInt(obj),
  4864. 'page count in top level pages object is not an integer'
  4865. );
  4866. // shadow the prototype getter
  4867. return shadow(this, 'num', obj);
  4868. },
  4869. get destinations() {
  4870. function fetchDestination(dest) {
  4871. return isDict(dest) ? dest.get('D') : dest;
  4872. }
  4873. var xref = this.xref;
  4874. var dests = {}, nameTreeRef, nameDictionaryRef;
  4875. var obj = this.catDict.get('Names');
  4876. if (obj)
  4877. nameTreeRef = obj.getRaw('Dests');
  4878. else if (this.catDict.has('Dests'))
  4879. nameDictionaryRef = this.catDict.get('Dests');
  4880. if (nameDictionaryRef) {
  4881. // reading simple destination dictionary
  4882. obj = nameDictionaryRef;
  4883. obj.forEach(function catalogForEach(key, value) {
  4884. if (!value) return;
  4885. dests[key] = fetchDestination(value);
  4886. });
  4887. }
  4888. if (nameTreeRef) {
  4889. var nameTree = new NameTree(nameTreeRef, xref);
  4890. var names = nameTree.getAll();
  4891. for (var name in names) {
  4892. if (!names.hasOwnProperty(name)) {
  4893. continue;
  4894. }
  4895. dests[name] = fetchDestination(names[name]);
  4896. }
  4897. }
  4898. return shadow(this, 'destinations', dests);
  4899. },
  4900. get javaScript() {
  4901. var xref = this.xref;
  4902. var obj = this.catDict.get('Names');
  4903. var javaScript = [];
  4904. if (obj && obj.has('JavaScript')) {
  4905. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  4906. var names = nameTree.getAll();
  4907. for (var name in names) {
  4908. if (!names.hasOwnProperty(name)) {
  4909. continue;
  4910. }
  4911. // We don't really use the JavaScript right now so this code is
  4912. // defensive so we don't cause errors on document load.
  4913. var jsDict = names[name];
  4914. if (!isDict(jsDict)) {
  4915. continue;
  4916. }
  4917. var type = jsDict.get('S');
  4918. if (!isName(type) || type.name !== 'JavaScript') {
  4919. continue;
  4920. }
  4921. var js = jsDict.get('JS');
  4922. if (!isString(js) && !isStream(js)) {
  4923. continue;
  4924. }
  4925. if (isStream(js)) {
  4926. js = bytesToString(js.getBytes());
  4927. }
  4928. javaScript.push(stringToPDFString(js));
  4929. }
  4930. }
  4931. return shadow(this, 'javaScript', javaScript);
  4932. },
  4933. cleanup: function Catalog_cleanup() {
  4934. this.fontCache.forEach(function (font) {
  4935. delete font.sent;
  4936. delete font.translated;
  4937. });
  4938. this.fontCache.clear();
  4939. },
  4940. getPage: function Catalog_getPage(pageIndex) {
  4941. if (!(pageIndex in this.pagePromises)) {
  4942. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  4943. function (a) {
  4944. var dict = a[0];
  4945. var ref = a[1];
  4946. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  4947. this.fontCache);
  4948. }.bind(this)
  4949. );
  4950. }
  4951. return this.pagePromises[pageIndex];
  4952. },
  4953. getPageDict: function Catalog_getPageDict(pageIndex) {
  4954. var promise = new LegacyPromise();
  4955. var nodesToVisit = [this.catDict.getRaw('Pages')];
  4956. var currentPageIndex = 0;
  4957. var xref = this.xref;
  4958. function next() {
  4959. while (nodesToVisit.length) {
  4960. var currentNode = nodesToVisit.pop();
  4961. if (isRef(currentNode)) {
  4962. xref.fetchAsync(currentNode).then(function (obj) {
  4963. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  4964. if (pageIndex === currentPageIndex) {
  4965. promise.resolve([obj, currentNode]);
  4966. } else {
  4967. currentPageIndex++;
  4968. next();
  4969. }
  4970. return;
  4971. }
  4972. nodesToVisit.push(obj);
  4973. next();
  4974. }.bind(this), promise.reject.bind(promise));
  4975. return;
  4976. }
  4977. // must be a child page dictionary
  4978. assert(
  4979. isDict(currentNode),
  4980. 'page dictionary kid reference points to wrong type of object'
  4981. );
  4982. var count = currentNode.get('Count');
  4983. // Skip nodes where the page can't be.
  4984. if (currentPageIndex + count <= pageIndex) {
  4985. currentPageIndex += count;
  4986. continue;
  4987. }
  4988. var kids = currentNode.get('Kids');
  4989. assert(isArray(kids), 'page dictionary kids object is not an array');
  4990. if (count === kids.length) {
  4991. // Nodes that don't have the page have been skipped and this is the
  4992. // bottom of the tree which means the page requested must be a
  4993. // descendant of this pages node. Ideally we would just resolve the
  4994. // promise with the page ref here, but there is the case where more
  4995. // pages nodes could link to single a page (see issue 3666 pdf). To
  4996. // handle this push it back on the queue so if it is a pages node it
  4997. // will be descended into.
  4998. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  4999. currentPageIndex = pageIndex;
  5000. continue;
  5001. } else {
  5002. for (var last = kids.length - 1; last >= 0; last--) {
  5003. nodesToVisit.push(kids[last]);
  5004. }
  5005. }
  5006. }
  5007. promise.reject('Page index ' + pageIndex + ' not found.');
  5008. }
  5009. next();
  5010. return promise;
  5011. },
  5012. getPageIndex: function Catalog_getPageIndex(ref) {
  5013. // The page tree nodes have the count of all the leaves below them. To get
  5014. // how many pages are before we just have to walk up the tree and keep
  5015. // adding the count of siblings to the left of the node.
  5016. var xref = this.xref;
  5017. function pagesBeforeRef(kidRef) {
  5018. var total = 0;
  5019. var parentRef;
  5020. return xref.fetchAsync(kidRef).then(function (node) {
  5021. if (!node) {
  5022. return null;
  5023. }
  5024. parentRef = node.getRaw('Parent');
  5025. return node.getAsync('Parent');
  5026. }).then(function (parent) {
  5027. if (!parent) {
  5028. return null;
  5029. }
  5030. return parent.getAsync('Kids');
  5031. }).then(function (kids) {
  5032. if (!kids) {
  5033. return null;
  5034. }
  5035. var kidPromises = [];
  5036. var found = false;
  5037. for (var i = 0; i < kids.length; i++) {
  5038. var kid = kids[i];
  5039. assert(isRef(kid), 'kids must be an ref');
  5040. if (kid.num == kidRef.num) {
  5041. found = true;
  5042. break;
  5043. }
  5044. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  5045. if (kid.has('Count')) {
  5046. var count = kid.get('Count');
  5047. total += count;
  5048. } else { // page leaf node
  5049. total++;
  5050. }
  5051. }));
  5052. }
  5053. if (!found) {
  5054. error('kid ref not found in parents kids');
  5055. }
  5056. return Promise.all(kidPromises).then(function () {
  5057. return [total, parentRef];
  5058. });
  5059. });
  5060. }
  5061. var total = 0;
  5062. function next(ref) {
  5063. return pagesBeforeRef(ref).then(function (args) {
  5064. if (!args) {
  5065. return total;
  5066. }
  5067. var count = args[0];
  5068. var parentRef = args[1];
  5069. total += count;
  5070. return next(parentRef);
  5071. });
  5072. }
  5073. return next(ref);
  5074. }
  5075. };
  5076. return Catalog;
  5077. })();
  5078. var XRef = (function XRefClosure() {
  5079. function XRef(stream, password) {
  5080. this.stream = stream;
  5081. this.entries = [];
  5082. this.xrefstms = {};
  5083. // prepare the XRef cache
  5084. this.cache = [];
  5085. this.password = password;
  5086. }
  5087. XRef.prototype = {
  5088. setStartXRef: function XRef_setStartXRef(startXRef) {
  5089. // Store the starting positions of xref tables as we process them
  5090. // so we can recover from missing data errors
  5091. this.startXRefQueue = [startXRef];
  5092. },
  5093. parse: function XRef_parse(recoveryMode) {
  5094. var trailerDict;
  5095. if (!recoveryMode) {
  5096. trailerDict = this.readXRef();
  5097. } else {
  5098. warn('Indexing all PDF objects');
  5099. trailerDict = this.indexObjects();
  5100. }
  5101. trailerDict.assignXref(this);
  5102. this.trailer = trailerDict;
  5103. var encrypt = trailerDict.get('Encrypt');
  5104. if (encrypt) {
  5105. var ids = trailerDict.get('ID');
  5106. var fileId = (ids && ids.length) ? ids[0] : '';
  5107. this.encrypt = new CipherTransformFactory(
  5108. encrypt, fileId, this.password);
  5109. }
  5110. // get the root dictionary (catalog) object
  5111. if (!(this.root = trailerDict.get('Root'))) {
  5112. error('Invalid root reference');
  5113. }
  5114. },
  5115. processXRefTable: function XRef_processXRefTable(parser) {
  5116. if (!('tableState' in this)) {
  5117. // Stores state of the table as we process it so we can resume
  5118. // from middle of table in case of missing data error
  5119. this.tableState = {
  5120. entryNum: 0,
  5121. streamPos: parser.lexer.stream.pos,
  5122. parserBuf1: parser.buf1,
  5123. parserBuf2: parser.buf2
  5124. };
  5125. }
  5126. var obj = this.readXRefTable(parser);
  5127. // Sanity check
  5128. if (!isCmd(obj, 'trailer'))
  5129. error('Invalid XRef table: could not find trailer dictionary');
  5130. // Read trailer dictionary, e.g.
  5131. // trailer
  5132. // << /Size 22
  5133. // /Root 20R
  5134. // /Info 10R
  5135. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  5136. // >>
  5137. // The parser goes through the entire stream << ... >> and provides
  5138. // a getter interface for the key-value table
  5139. var dict = parser.getObj();
  5140. if (!isDict(dict))
  5141. error('Invalid XRef table: could not parse trailer dictionary');
  5142. delete this.tableState;
  5143. return dict;
  5144. },
  5145. readXRefTable: function XRef_readXRefTable(parser) {
  5146. // Example of cross-reference table:
  5147. // xref
  5148. // 0 1 <-- subsection header (first obj #, obj count)
  5149. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  5150. // 23 2 <-- subsection header ... and so on ...
  5151. // 0000025518 00002 n
  5152. // 0000025635 00000 n
  5153. // trailer
  5154. // ...
  5155. var stream = parser.lexer.stream;
  5156. var tableState = this.tableState;
  5157. stream.pos = tableState.streamPos;
  5158. parser.buf1 = tableState.parserBuf1;
  5159. parser.buf2 = tableState.parserBuf2;
  5160. // Outer loop is over subsection headers
  5161. var obj;
  5162. while (true) {
  5163. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  5164. if (isCmd(obj = parser.getObj(), 'trailer')) {
  5165. break;
  5166. }
  5167. tableState.firstEntryNum = obj;
  5168. tableState.entryCount = parser.getObj();
  5169. }
  5170. var first = tableState.firstEntryNum;
  5171. var count = tableState.entryCount;
  5172. if (!isInt(first) || !isInt(count))
  5173. error('Invalid XRef table: wrong types in subsection header');
  5174. // Inner loop is over objects themselves
  5175. for (var i = tableState.entryNum; i < count; i++) {
  5176. tableState.streamPos = stream.pos;
  5177. tableState.entryNum = i;
  5178. tableState.parserBuf1 = parser.buf1;
  5179. tableState.parserBuf2 = parser.buf2;
  5180. var entry = {};
  5181. entry.offset = parser.getObj();
  5182. entry.gen = parser.getObj();
  5183. var type = parser.getObj();
  5184. if (isCmd(type, 'f'))
  5185. entry.free = true;
  5186. else if (isCmd(type, 'n'))
  5187. entry.uncompressed = true;
  5188. // Validate entry obj
  5189. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  5190. !(entry.free || entry.uncompressed)) {
  5191. console.log(entry.offset, entry.gen, entry.free,
  5192. entry.uncompressed);
  5193. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  5194. }
  5195. if (!this.entries[i + first])
  5196. this.entries[i + first] = entry;
  5197. }
  5198. tableState.entryNum = 0;
  5199. tableState.streamPos = stream.pos;
  5200. tableState.parserBuf1 = parser.buf1;
  5201. tableState.parserBuf2 = parser.buf2;
  5202. delete tableState.firstEntryNum;
  5203. delete tableState.entryCount;
  5204. }
  5205. // Per issue 3248: hp scanners generate bad XRef
  5206. if (first === 1 && this.entries[1] && this.entries[1].free) {
  5207. // shifting the entries
  5208. this.entries.shift();
  5209. }
  5210. // Sanity check: as per spec, first object must be free
  5211. if (this.entries[0] && !this.entries[0].free)
  5212. error('Invalid XRef table: unexpected first object');
  5213. return obj;
  5214. },
  5215. processXRefStream: function XRef_processXRefStream(stream) {
  5216. if (!('streamState' in this)) {
  5217. // Stores state of the stream as we process it so we can resume
  5218. // from middle of stream in case of missing data error
  5219. var streamParameters = stream.dict;
  5220. var byteWidths = streamParameters.get('W');
  5221. var range = streamParameters.get('Index');
  5222. if (!range) {
  5223. range = [0, streamParameters.get('Size')];
  5224. }
  5225. this.streamState = {
  5226. entryRanges: range,
  5227. byteWidths: byteWidths,
  5228. entryNum: 0,
  5229. streamPos: stream.pos
  5230. };
  5231. }
  5232. this.readXRefStream(stream);
  5233. delete this.streamState;
  5234. return stream.dict;
  5235. },
  5236. readXRefStream: function XRef_readXRefStream(stream) {
  5237. var i, j;
  5238. var streamState = this.streamState;
  5239. stream.pos = streamState.streamPos;
  5240. var byteWidths = streamState.byteWidths;
  5241. var typeFieldWidth = byteWidths[0];
  5242. var offsetFieldWidth = byteWidths[1];
  5243. var generationFieldWidth = byteWidths[2];
  5244. var entryRanges = streamState.entryRanges;
  5245. while (entryRanges.length > 0) {
  5246. var first = entryRanges[0];
  5247. var n = entryRanges[1];
  5248. if (!isInt(first) || !isInt(n))
  5249. error('Invalid XRef range fields: ' + first + ', ' + n);
  5250. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  5251. !isInt(generationFieldWidth)) {
  5252. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  5253. }
  5254. for (i = streamState.entryNum; i < n; ++i) {
  5255. streamState.entryNum = i;
  5256. streamState.streamPos = stream.pos;
  5257. var type = 0, offset = 0, generation = 0;
  5258. for (j = 0; j < typeFieldWidth; ++j)
  5259. type = (type << 8) | stream.getByte();
  5260. // if type field is absent, its default value = 1
  5261. if (typeFieldWidth === 0)
  5262. type = 1;
  5263. for (j = 0; j < offsetFieldWidth; ++j)
  5264. offset = (offset << 8) | stream.getByte();
  5265. for (j = 0; j < generationFieldWidth; ++j)
  5266. generation = (generation << 8) | stream.getByte();
  5267. var entry = {};
  5268. entry.offset = offset;
  5269. entry.gen = generation;
  5270. switch (type) {
  5271. case 0:
  5272. entry.free = true;
  5273. break;
  5274. case 1:
  5275. entry.uncompressed = true;
  5276. break;
  5277. case 2:
  5278. break;
  5279. default:
  5280. error('Invalid XRef entry type: ' + type);
  5281. }
  5282. if (!this.entries[first + i])
  5283. this.entries[first + i] = entry;
  5284. }
  5285. streamState.entryNum = 0;
  5286. streamState.streamPos = stream.pos;
  5287. entryRanges.splice(0, 2);
  5288. }
  5289. },
  5290. indexObjects: function XRef_indexObjects() {
  5291. // Simple scan through the PDF content to find objects,
  5292. // trailers and XRef streams.
  5293. function readToken(data, offset) {
  5294. var token = '', ch = data[offset];
  5295. while (ch !== 13 && ch !== 10) {
  5296. if (++offset >= data.length)
  5297. break;
  5298. token += String.fromCharCode(ch);
  5299. ch = data[offset];
  5300. }
  5301. return token;
  5302. }
  5303. function skipUntil(data, offset, what) {
  5304. var length = what.length, dataLength = data.length;
  5305. var skipped = 0;
  5306. // finding byte sequence
  5307. while (offset < dataLength) {
  5308. var i = 0;
  5309. while (i < length && data[offset + i] == what[i])
  5310. ++i;
  5311. if (i >= length)
  5312. break; // sequence found
  5313. offset++;
  5314. skipped++;
  5315. }
  5316. return skipped;
  5317. }
  5318. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  5319. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  5320. 101, 102]);
  5321. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  5322. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  5323. var stream = this.stream;
  5324. stream.pos = 0;
  5325. var buffer = stream.getBytes();
  5326. var position = stream.start, length = buffer.length;
  5327. var trailers = [], xrefStms = [];
  5328. var state = 0;
  5329. var currentToken;
  5330. while (position < length) {
  5331. var ch = buffer[position];
  5332. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  5333. ++position;
  5334. continue;
  5335. }
  5336. if (ch === 37) { // %-comment
  5337. do {
  5338. ++position;
  5339. if (position >= length) {
  5340. break;
  5341. }
  5342. ch = buffer[position];
  5343. } while (ch !== 13 && ch !== 10);
  5344. continue;
  5345. }
  5346. var token = readToken(buffer, position);
  5347. var m;
  5348. if (token === 'xref') {
  5349. position += skipUntil(buffer, position, trailerBytes);
  5350. trailers.push(position);
  5351. position += skipUntil(buffer, position, startxrefBytes);
  5352. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  5353. this.entries[m[1]] = {
  5354. offset: position,
  5355. gen: m[2] | 0,
  5356. uncompressed: true
  5357. };
  5358. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  5359. var content = buffer.subarray(position, position + contentLength);
  5360. // checking XRef stream suspect
  5361. // (it shall have '/XRef' and next char is not a letter)
  5362. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  5363. if (xrefTagOffset < contentLength &&
  5364. content[xrefTagOffset + 5] < 64) {
  5365. xrefStms.push(position);
  5366. this.xrefstms[position] = 1; // don't read it recursively
  5367. }
  5368. position += contentLength;
  5369. } else
  5370. position += token.length + 1;
  5371. }
  5372. // reading XRef streams
  5373. for (var i = 0, ii = xrefStms.length; i < ii; ++i) {
  5374. this.startXRefQueue.push(xrefStms[i]);
  5375. this.readXRef(/* recoveryMode */ true);
  5376. }
  5377. // finding main trailer
  5378. var dict;
  5379. for (var i = 0, ii = trailers.length; i < ii; ++i) {
  5380. stream.pos = trailers[i];
  5381. var parser = new Parser(new Lexer(stream), true, null);
  5382. var obj = parser.getObj();
  5383. if (!isCmd(obj, 'trailer'))
  5384. continue;
  5385. // read the trailer dictionary
  5386. if (!isDict(dict = parser.getObj()))
  5387. continue;
  5388. // taking the first one with 'ID'
  5389. if (dict.has('ID'))
  5390. return dict;
  5391. }
  5392. // no tailer with 'ID', taking last one (if exists)
  5393. if (dict)
  5394. return dict;
  5395. // nothing helps
  5396. // calling error() would reject worker with an UnknownErrorException.
  5397. throw new InvalidPDFException('Invalid PDF structure');
  5398. },
  5399. readXRef: function XRef_readXRef(recoveryMode) {
  5400. var stream = this.stream;
  5401. try {
  5402. while (this.startXRefQueue.length) {
  5403. var startXRef = this.startXRefQueue[0];
  5404. stream.pos = startXRef;
  5405. var parser = new Parser(new Lexer(stream), true, null);
  5406. var obj = parser.getObj();
  5407. var dict;
  5408. // Get dictionary
  5409. if (isCmd(obj, 'xref')) {
  5410. // Parse end-of-file XRef
  5411. dict = this.processXRefTable(parser);
  5412. if (!this.topDict) {
  5413. this.topDict = dict;
  5414. }
  5415. // Recursively get other XRefs 'XRefStm', if any
  5416. obj = dict.get('XRefStm');
  5417. if (isInt(obj)) {
  5418. var pos = obj;
  5419. // ignore previously loaded xref streams
  5420. // (possible infinite recursion)
  5421. if (!(pos in this.xrefstms)) {
  5422. this.xrefstms[pos] = 1;
  5423. this.startXRefQueue.push(pos);
  5424. }
  5425. }
  5426. } else if (isInt(obj)) {
  5427. // Parse in-stream XRef
  5428. if (!isInt(parser.getObj()) ||
  5429. !isCmd(parser.getObj(), 'obj') ||
  5430. !isStream(obj = parser.getObj())) {
  5431. error('Invalid XRef stream');
  5432. }
  5433. dict = this.processXRefStream(obj);
  5434. if (!this.topDict) {
  5435. this.topDict = dict;
  5436. }
  5437. if (!dict)
  5438. error('Failed to read XRef stream');
  5439. } else {
  5440. error('Invalid XRef stream header');
  5441. }
  5442. // Recursively get previous dictionary, if any
  5443. obj = dict.get('Prev');
  5444. if (isInt(obj)) {
  5445. this.startXRefQueue.push(obj);
  5446. } else if (isRef(obj)) {
  5447. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  5448. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  5449. this.startXRefQueue.push(obj.num);
  5450. }
  5451. this.startXRefQueue.shift();
  5452. }
  5453. return this.topDict;
  5454. } catch (e) {
  5455. if (e instanceof MissingDataException) {
  5456. throw e;
  5457. }
  5458. info('(while reading XRef): ' + e);
  5459. }
  5460. if (recoveryMode)
  5461. return;
  5462. throw new XRefParseException();
  5463. },
  5464. getEntry: function XRef_getEntry(i) {
  5465. var e = this.entries[i];
  5466. if (e === null)
  5467. return null;
  5468. return e.free || !e.offset ? null : e; // returns null if entry is free
  5469. },
  5470. fetchIfRef: function XRef_fetchIfRef(obj) {
  5471. if (!isRef(obj))
  5472. return obj;
  5473. return this.fetch(obj);
  5474. },
  5475. fetch: function XRef_fetch(ref, suppressEncryption) {
  5476. assertWellFormed(isRef(ref), 'ref object is not a reference');
  5477. var num = ref.num;
  5478. var e;
  5479. if (num in this.cache) {
  5480. e = this.cache[num];
  5481. if (e instanceof Stream) {
  5482. return e.makeSubStream(e.start, e.length, e.dict);
  5483. }
  5484. return e;
  5485. }
  5486. e = this.getEntry(num);
  5487. // the referenced entry can be free
  5488. if (e === null)
  5489. return (this.cache[num] = e);
  5490. var gen = ref.gen;
  5491. var stream, parser;
  5492. if (e.uncompressed) {
  5493. if (e.gen != gen)
  5494. error('inconsistent generation in XRef');
  5495. stream = this.stream.makeSubStream(e.offset);
  5496. parser = new Parser(new Lexer(stream), true, this);
  5497. var obj1 = parser.getObj();
  5498. var obj2 = parser.getObj();
  5499. var obj3 = parser.getObj();
  5500. if (!isInt(obj1) || obj1 != num ||
  5501. !isInt(obj2) || obj2 != gen ||
  5502. !isCmd(obj3)) {
  5503. error('bad XRef entry');
  5504. }
  5505. if (!isCmd(obj3, 'obj')) {
  5506. // some bad pdfs use "obj1234" and really mean 1234
  5507. if (obj3.cmd.indexOf('obj') === 0) {
  5508. num = parseInt(obj3.cmd.substring(3), 10);
  5509. if (!isNaN(num))
  5510. return num;
  5511. }
  5512. error('bad XRef entry');
  5513. }
  5514. if (this.encrypt && !suppressEncryption) {
  5515. try {
  5516. e = parser.getObj(this.encrypt.createCipherTransform(num, gen));
  5517. } catch (ex) {
  5518. // almost all streams must be encrypted, but sometimes
  5519. // they are not probably due to some broken generators
  5520. // re-trying without encryption
  5521. return this.fetch(ref, true);
  5522. }
  5523. } else {
  5524. e = parser.getObj();
  5525. }
  5526. if (!isStream(e)) {
  5527. this.cache[num] = e;
  5528. }
  5529. return e;
  5530. }
  5531. // compressed entry
  5532. var tableOffset = e.offset;
  5533. stream = this.fetch(new Ref(tableOffset, 0));
  5534. if (!isStream(stream))
  5535. error('bad ObjStm stream');
  5536. var first = stream.dict.get('First');
  5537. var n = stream.dict.get('N');
  5538. if (!isInt(first) || !isInt(n)) {
  5539. error('invalid first and n parameters for ObjStm stream');
  5540. }
  5541. parser = new Parser(new Lexer(stream), false, this);
  5542. parser.allowStreams = true;
  5543. var i, entries = [], nums = [];
  5544. // read the object numbers to populate cache
  5545. for (i = 0; i < n; ++i) {
  5546. num = parser.getObj();
  5547. if (!isInt(num)) {
  5548. error('invalid object number in the ObjStm stream: ' + num);
  5549. }
  5550. nums.push(num);
  5551. var offset = parser.getObj();
  5552. if (!isInt(offset)) {
  5553. error('invalid object offset in the ObjStm stream: ' + offset);
  5554. }
  5555. }
  5556. // read stream objects for cache
  5557. for (i = 0; i < n; ++i) {
  5558. entries.push(parser.getObj());
  5559. num = nums[i];
  5560. var entry = this.entries[num];
  5561. if (entry && entry.offset === tableOffset && entry.gen === i) {
  5562. this.cache[num] = entries[i];
  5563. }
  5564. }
  5565. e = entries[e.gen];
  5566. if (e === undefined) {
  5567. error('bad XRef entry for compressed object');
  5568. }
  5569. return e;
  5570. },
  5571. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  5572. if (!isRef(obj)) {
  5573. var promise = new LegacyPromise();
  5574. promise.resolve(obj);
  5575. return promise;
  5576. }
  5577. return this.fetchAsync(obj);
  5578. },
  5579. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  5580. var promise = new LegacyPromise();
  5581. var tryFetch = function (promise) {
  5582. try {
  5583. promise.resolve(this.fetch(ref, suppressEncryption));
  5584. } catch (e) {
  5585. if (e instanceof MissingDataException) {
  5586. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  5587. return;
  5588. }
  5589. promise.reject(e);
  5590. }
  5591. }.bind(this, promise);
  5592. tryFetch();
  5593. return promise;
  5594. },
  5595. getCatalogObj: function XRef_getCatalogObj() {
  5596. return this.root;
  5597. }
  5598. };
  5599. return XRef;
  5600. })();
  5601. /**
  5602. * A NameTree is like a Dict but has some adventagous properties, see the spec
  5603. * (7.9.6) for more details.
  5604. * TODO: implement all the Dict functions and make this more efficent.
  5605. */
  5606. var NameTree = (function NameTreeClosure() {
  5607. function NameTree(root, xref) {
  5608. this.root = root;
  5609. this.xref = xref;
  5610. }
  5611. NameTree.prototype = {
  5612. getAll: function NameTree_getAll() {
  5613. var dict = {};
  5614. if (!this.root) {
  5615. return dict;
  5616. }
  5617. var xref = this.xref;
  5618. // reading name tree
  5619. var processed = new RefSet();
  5620. processed.put(this.root);
  5621. var queue = [this.root];
  5622. while (queue.length > 0) {
  5623. var i, n;
  5624. var obj = xref.fetchIfRef(queue.shift());
  5625. if (!isDict(obj)) {
  5626. continue;
  5627. }
  5628. if (obj.has('Kids')) {
  5629. var kids = obj.get('Kids');
  5630. for (i = 0, n = kids.length; i < n; i++) {
  5631. var kid = kids[i];
  5632. if (processed.has(kid))
  5633. error('invalid destinations');
  5634. queue.push(kid);
  5635. processed.put(kid);
  5636. }
  5637. continue;
  5638. }
  5639. var names = obj.get('Names');
  5640. if (names) {
  5641. for (i = 0, n = names.length; i < n; i += 2) {
  5642. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  5643. }
  5644. }
  5645. }
  5646. return dict;
  5647. }
  5648. };
  5649. return NameTree;
  5650. })();
  5651. /**
  5652. * A helper for loading missing data in object graphs. It traverses the graph
  5653. * depth first and queues up any objects that have missing data. Once it has
  5654. * has traversed as many objects that are available it attempts to bundle the
  5655. * missing data requests and then resume from the nodes that weren't ready.
  5656. *
  5657. * NOTE: It provides protection from circular references by keeping track of
  5658. * of loaded references. However, you must be careful not to load any graphs
  5659. * that have references to the catalog or other pages since that will cause the
  5660. * entire PDF document object graph to be traversed.
  5661. */
  5662. var ObjectLoader = (function() {
  5663. function mayHaveChildren(value) {
  5664. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  5665. }
  5666. function addChildren(node, nodesToVisit) {
  5667. if (isDict(node) || isStream(node)) {
  5668. var map;
  5669. if (isDict(node)) {
  5670. map = node.map;
  5671. } else {
  5672. map = node.dict.map;
  5673. }
  5674. for (var key in map) {
  5675. var value = map[key];
  5676. if (mayHaveChildren(value)) {
  5677. nodesToVisit.push(value);
  5678. }
  5679. }
  5680. } else if (isArray(node)) {
  5681. for (var i = 0, ii = node.length; i < ii; i++) {
  5682. var value = node[i];
  5683. if (mayHaveChildren(value)) {
  5684. nodesToVisit.push(value);
  5685. }
  5686. }
  5687. }
  5688. }
  5689. function ObjectLoader(obj, keys, xref) {
  5690. this.obj = obj;
  5691. this.keys = keys;
  5692. this.xref = xref;
  5693. this.refSet = null;
  5694. }
  5695. ObjectLoader.prototype = {
  5696. load: function ObjectLoader_load() {
  5697. var keys = this.keys;
  5698. this.promise = new LegacyPromise();
  5699. // Don't walk the graph if all the data is already loaded.
  5700. if (!(this.xref.stream instanceof ChunkedStream) ||
  5701. this.xref.stream.getMissingChunks().length === 0) {
  5702. this.promise.resolve();
  5703. return this.promise;
  5704. }
  5705. this.refSet = new RefSet();
  5706. // Setup the initial nodes to visit.
  5707. var nodesToVisit = [];
  5708. for (var i = 0; i < keys.length; i++) {
  5709. nodesToVisit.push(this.obj[keys[i]]);
  5710. }
  5711. this.walk(nodesToVisit);
  5712. return this.promise;
  5713. },
  5714. walk: function ObjectLoader_walk(nodesToVisit) {
  5715. var nodesToRevisit = [];
  5716. var pendingRequests = [];
  5717. // DFS walk of the object graph.
  5718. while (nodesToVisit.length) {
  5719. var currentNode = nodesToVisit.pop();
  5720. // Only references or chunked streams can cause missing data exceptions.
  5721. if (isRef(currentNode)) {
  5722. // Skip nodes that have already been visited.
  5723. if (this.refSet.has(currentNode)) {
  5724. continue;
  5725. }
  5726. try {
  5727. var ref = currentNode;
  5728. this.refSet.put(ref);
  5729. currentNode = this.xref.fetch(currentNode);
  5730. } catch (e) {
  5731. if (!(e instanceof MissingDataException)) {
  5732. throw e;
  5733. }
  5734. nodesToRevisit.push(currentNode);
  5735. pendingRequests.push({ begin: e.begin, end: e.end });
  5736. }
  5737. }
  5738. if (currentNode && currentNode.getBaseStreams) {
  5739. var baseStreams = currentNode.getBaseStreams();
  5740. var foundMissingData = false;
  5741. for (var i = 0; i < baseStreams.length; i++) {
  5742. var stream = baseStreams[i];
  5743. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  5744. foundMissingData = true;
  5745. pendingRequests.push({
  5746. begin: stream.start,
  5747. end: stream.end
  5748. });
  5749. }
  5750. }
  5751. if (foundMissingData) {
  5752. nodesToRevisit.push(currentNode);
  5753. }
  5754. }
  5755. addChildren(currentNode, nodesToVisit);
  5756. }
  5757. if (pendingRequests.length) {
  5758. this.xref.stream.manager.requestRanges(pendingRequests,
  5759. function pendingRequestCallback() {
  5760. nodesToVisit = nodesToRevisit;
  5761. for (var i = 0; i < nodesToRevisit.length; i++) {
  5762. var node = nodesToRevisit[i];
  5763. // Remove any reference nodes from the currrent refset so they
  5764. // aren't skipped when we revist them.
  5765. if (isRef(node)) {
  5766. this.refSet.remove(node);
  5767. }
  5768. }
  5769. this.walk(nodesToVisit);
  5770. }.bind(this));
  5771. return;
  5772. }
  5773. // Everything is loaded.
  5774. this.refSet = null;
  5775. this.promise.resolve();
  5776. }
  5777. };
  5778. return ObjectLoader;
  5779. })();
  5780. var ISOAdobeCharset = [
  5781. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  5782. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  5783. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  5784. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  5785. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  5786. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  5787. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  5788. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  5789. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  5790. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  5791. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  5792. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  5793. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  5794. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  5795. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  5796. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  5797. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  5798. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  5799. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  5800. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  5801. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  5802. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  5803. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  5804. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  5805. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  5806. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  5807. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  5808. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  5809. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  5810. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  5811. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  5812. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  5813. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  5814. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  5815. ];
  5816. var ExpertCharset = [
  5817. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  5818. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  5819. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  5820. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  5821. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  5822. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  5823. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  5824. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  5825. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  5826. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  5827. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  5828. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  5829. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  5830. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  5831. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  5832. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  5833. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  5834. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  5835. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  5836. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  5837. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  5838. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  5839. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  5840. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  5841. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  5842. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  5843. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  5844. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  5845. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  5846. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  5847. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  5848. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  5849. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  5850. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  5851. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  5852. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  5853. 'Ydieresissmall'
  5854. ];
  5855. var ExpertSubsetCharset = [
  5856. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  5857. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  5858. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  5859. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  5860. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  5861. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  5862. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  5863. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  5864. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  5865. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  5866. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  5867. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  5868. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  5869. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  5870. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  5871. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  5872. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  5873. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  5874. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  5875. 'periodinferior', 'commainferior'
  5876. ];
  5877. var CIDToUnicodeMaps = {
  5878. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  5879. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  5880. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  5881. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  5882. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  5883. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  5884. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  5885. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  5886. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  5887. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  5888. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  5889. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  5890. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  5891. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  5892. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  5893. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  5894. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  5895. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  5896. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  5897. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  5898. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  5899. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  5900. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  5901. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  5902. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  5903. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  5904. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  5905. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  5906. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  5907. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  5908. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  5909. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  5910. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  5911. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  5912. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  5913. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  5914. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  5915. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  5916. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  5917. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  5918. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  5919. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  5920. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  5921. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  5922. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  5923. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  5924. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  5925. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  5926. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  5927. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  5928. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  5929. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  5930. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  5931. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  5932. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  5933. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  5934. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  5935. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  5936. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  5937. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  5938. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  5939. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  5940. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  5941. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  5942. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  5943. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  5944. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  5945. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  5946. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  5947. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  5948. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  5949. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  5950. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  5951. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  5952. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  5953. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  5954. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  5955. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  5956. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  5957. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  5958. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  5959. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  5960. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  5961. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  5962. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  5963. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  5964. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  5965. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  5966. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  5967. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  5968. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  5969. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  5970. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  5971. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  5972. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  5973. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  5974. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  5975. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  5976. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  5977. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  5978. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  5979. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  5980. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  5981. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  5982. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  5983. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  5984. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  5985. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  5986. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  5987. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  5988. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  5989. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  5990. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  5991. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  5992. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  5993. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  5994. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  5995. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  5996. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  5997. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  5998. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  5999. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  6000. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  6001. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  6002. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  6003. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  6004. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  6005. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  6006. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  6007. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  6008. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  6009. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  6010. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  6011. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  6012. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  6013. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  6014. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  6015. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  6016. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  6017. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  6018. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  6019. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  6020. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  6021. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  6022. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  6023. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  6024. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  6025. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  6026. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  6027. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  6028. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  6029. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  6030. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  6031. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  6032. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  6033. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  6034. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  6035. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  6036. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  6037. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  6038. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  6039. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  6040. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  6041. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  6042. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  6043. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  6044. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  6045. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  6046. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  6047. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  6048. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  6049. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  6050. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  6051. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  6052. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  6053. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  6054. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  6055. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  6056. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  6057. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  6058. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  6059. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  6060. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  6061. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  6062. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  6063. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  6064. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  6065. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  6066. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  6067. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  6068. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  6069. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  6070. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  6071. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  6072. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  6073. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  6074. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  6075. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  6076. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  6077. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  6078. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  6079. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  6080. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  6081. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  6082. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  6083. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  6084. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  6085. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  6086. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  6087. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  6088. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  6089. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  6090. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  6091. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  6092. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  6093. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  6094. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  6095. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  6096. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  6097. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  6098. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  6099. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  6100. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  6101. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  6102. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  6103. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  6104. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  6105. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  6106. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  6107. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  6108. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  6109. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  6110. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  6111. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  6112. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  6113. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  6114. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  6115. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  6116. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  6117. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  6118. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  6119. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  6120. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  6121. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  6122. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  6123. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  6124. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  6125. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  6126. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  6127. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  6128. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  6129. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  6130. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  6131. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  6132. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  6133. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  6134. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  6135. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  6136. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  6137. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  6138. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  6139. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  6140. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  6141. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  6142. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  6143. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  6144. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  6145. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  6146. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  6147. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  6148. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  6149. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  6150. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  6151. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  6152. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  6153. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  6154. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  6155. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  6156. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  6157. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  6158. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  6159. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  6160. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  6161. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  6162. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  6163. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  6164. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  6165. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  6166. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  6167. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  6168. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  6169. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  6170. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  6171. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  6172. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  6173. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  6174. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  6175. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  6176. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  6177. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  6178. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  6179. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  6180. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  6181. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  6182. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  6183. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  6184. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  6185. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  6186. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  6187. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  6188. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  6189. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  6190. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  6191. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  6192. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  6193. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  6194. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  6195. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  6196. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  6197. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  6198. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  6199. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  6200. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  6201. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  6202. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  6203. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  6204. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  6205. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  6206. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  6207. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  6208. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  6209. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  6210. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  6211. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  6212. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  6213. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  6214. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  6215. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  6216. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  6217. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  6218. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  6219. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  6220. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  6221. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  6222. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  6223. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  6224. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  6225. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  6226. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  6227. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  6228. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  6229. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  6230. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  6231. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  6232. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  6233. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  6234. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  6235. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  6236. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  6237. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  6238. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  6239. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  6240. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  6241. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  6242. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  6243. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  6244. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  6245. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  6246. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  6247. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  6248. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  6249. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  6250. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  6251. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  6252. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  6253. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  6254. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  6255. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  6256. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  6257. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  6258. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  6259. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  6260. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  6261. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  6262. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  6263. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  6264. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  6265. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  6266. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  6267. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  6268. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  6269. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  6270. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  6271. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  6272. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  6273. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  6274. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  6275. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  6276. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  6277. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  6278. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  6279. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  6280. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  6281. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  6282. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  6283. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  6284. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  6285. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  6286. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  6287. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  6288. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  6289. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  6290. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  6291. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  6292. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  6293. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  6294. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  6295. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  6296. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  6297. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  6298. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  6299. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  6300. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  6301. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  6302. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  6303. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  6304. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  6305. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  6306. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  6307. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  6308. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  6309. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  6310. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  6311. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  6312. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  6313. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  6314. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  6315. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  6316. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  6317. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  6318. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  6319. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  6320. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  6321. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  6322. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  6323. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  6324. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  6325. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  6326. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  6327. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  6328. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  6329. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  6330. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  6331. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  6332. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  6333. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  6334. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  6335. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  6336. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  6337. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  6338. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  6339. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  6340. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  6341. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  6342. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  6343. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  6344. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  6345. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  6346. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  6347. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  6348. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  6349. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  6350. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  6351. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  6352. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  6353. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  6354. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  6355. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  6356. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  6357. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  6358. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  6359. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  6360. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  6361. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  6362. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  6363. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  6364. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  6365. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  6366. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  6367. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  6368. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  6369. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  6370. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  6371. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  6372. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  6373. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  6374. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  6375. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  6376. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  6377. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  6378. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  6379. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  6380. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  6381. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  6382. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  6383. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  6384. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  6385. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  6386. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  6387. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  6388. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  6389. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  6390. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  6391. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  6392. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  6393. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  6394. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  6395. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  6396. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  6397. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  6398. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  6399. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  6400. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  6401. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  6402. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  6403. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  6404. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  6405. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  6406. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  6407. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  6408. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  6409. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  6410. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  6411. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  6412. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  6413. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  6414. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  6415. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  6416. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  6417. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  6418. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  6419. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  6420. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  6421. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  6422. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  6423. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  6424. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  6425. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  6426. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  6427. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  6428. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  6429. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  6430. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  6431. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  6432. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  6433. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  6434. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  6435. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  6436. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  6437. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  6438. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  6439. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  6440. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  6441. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  6442. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  6443. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  6444. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  6445. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  6446. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  6447. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  6448. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  6449. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  6450. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  6451. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  6452. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  6453. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  6454. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  6455. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  6456. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  6457. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  6458. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  6459. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  6460. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  6461. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  6462. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  6463. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  6464. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  6465. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  6466. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  6467. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  6468. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  6469. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  6470. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  6471. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  6472. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  6473. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  6474. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  6475. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  6476. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  6477. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  6478. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  6479. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  6480. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  6481. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  6482. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  6483. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  6484. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  6485. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  6486. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  6487. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  6488. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  6489. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  6490. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  6491. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  6492. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  6493. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  6494. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  6495. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  6496. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  6497. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  6498. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  6499. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  6500. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  6501. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  6502. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  6503. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  6504. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  6505. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  6506. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  6507. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  6508. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  6509. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  6510. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  6511. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  6512. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  6513. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  6514. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  6515. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  6516. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  6517. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  6518. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  6519. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  6520. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  6521. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  6522. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  6523. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  6524. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  6525. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  6526. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  6527. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  6528. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  6529. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  6530. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  6531. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  6532. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  6533. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  6534. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  6535. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  6536. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  6537. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  6538. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  6539. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  6540. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  6541. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  6542. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  6543. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  6544. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  6545. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  6546. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  6547. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  6548. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  6549. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  6550. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  6551. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  6552. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  6553. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  6554. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  6555. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  6556. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  6557. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  6558. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  6559. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  6560. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  6561. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  6562. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  6563. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  6564. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  6565. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  6566. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  6567. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  6568. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  6569. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  6570. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  6571. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  6572. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  6573. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  6574. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  6575. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  6576. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  6577. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  6578. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  6579. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  6580. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  6581. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  6582. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  6583. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  6584. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  6585. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  6586. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  6587. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  6588. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  6589. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  6590. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  6591. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  6592. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  6593. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  6594. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  6595. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  6596. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  6597. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  6598. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  6599. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  6600. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  6601. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  6602. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  6603. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  6604. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  6605. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  6606. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  6607. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  6608. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  6609. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  6610. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  6611. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  6612. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  6613. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  6614. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  6615. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  6616. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  6617. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  6618. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  6619. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  6620. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  6621. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  6622. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  6623. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  6624. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  6625. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  6626. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  6627. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  6628. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  6629. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  6630. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  6631. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  6632. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  6633. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  6634. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  6635. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  6636. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  6637. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  6638. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  6639. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  6640. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  6641. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  6642. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  6643. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  6644. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  6645. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  6646. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  6647. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  6648. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  6649. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  6650. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  6651. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  6652. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  6653. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  6654. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  6655. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  6656. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  6657. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  6658. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  6659. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  6660. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  6661. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  6662. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  6663. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  6664. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  6665. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  6666. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  6667. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  6668. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  6669. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  6670. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  6671. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  6672. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  6673. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  6674. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  6675. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  6676. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  6677. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  6678. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  6679. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  6680. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  6681. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  6682. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  6683. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  6684. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  6685. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  6686. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  6687. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  6688. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  6689. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  6690. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  6691. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  6692. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  6693. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  6694. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  6695. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  6696. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  6697. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  6698. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  6699. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  6700. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  6701. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  6702. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  6703. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  6704. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  6705. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  6706. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  6707. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  6708. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  6709. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  6710. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  6711. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  6712. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  6713. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  6714. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  6715. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  6716. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  6717. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  6718. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  6719. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  6720. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  6721. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  6722. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  6723. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  6724. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  6725. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  6726. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  6727. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  6728. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  6729. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  6730. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  6731. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  6732. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  6733. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  6734. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  6735. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  6736. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  6737. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  6738. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  6739. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  6740. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  6741. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  6742. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  6743. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  6744. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  6745. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  6746. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  6747. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  6748. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  6749. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  6750. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  6751. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  6752. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  6753. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  6754. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  6755. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  6756. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  6757. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  6758. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  6759. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  6760. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  6761. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  6762. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  6763. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  6764. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  6765. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  6766. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  6767. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  6768. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  6769. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  6770. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  6771. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  6772. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  6773. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  6774. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  6775. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  6776. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  6777. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  6778. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  6779. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  6780. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  6781. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  6782. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  6783. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  6784. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  6785. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  6786. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  6787. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  6788. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  6789. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  6790. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  6791. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  6792. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  6793. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  6794. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  6795. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  6796. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  6797. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  6798. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  6799. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  6800. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  6801. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  6802. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  6803. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  6804. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  6805. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  6806. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  6807. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  6808. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  6809. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  6810. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  6811. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  6812. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  6813. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  6814. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  6815. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  6816. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  6817. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  6818. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  6819. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  6820. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  6821. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  6822. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  6823. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  6824. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  6825. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  6826. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  6827. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  6828. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  6829. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  6830. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  6831. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  6832. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  6833. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  6834. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  6835. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  6836. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  6837. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  6838. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  6839. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  6840. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  6841. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  6842. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  6843. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  6844. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  6845. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  6846. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  6847. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  6848. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  6849. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  6850. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  6851. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  6852. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  6853. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  6854. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  6855. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  6856. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  6857. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  6858. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  6859. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  6860. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  6861. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  6862. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  6863. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  6864. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  6865. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  6866. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  6867. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  6868. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  6869. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  6870. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  6871. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  6872. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  6873. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  6874. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  6875. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  6876. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  6877. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  6878. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  6879. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  6880. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  6881. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  6882. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  6883. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  6884. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  6885. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  6886. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  6887. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  6888. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  6889. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  6890. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  6891. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  6892. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  6893. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  6894. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  6895. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  6896. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  6897. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  6898. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  6899. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  6900. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  6901. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  6902. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  6903. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  6904. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  6905. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  6906. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  6907. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  6908. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  6909. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  6910. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  6911. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  6912. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  6913. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  6914. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  6915. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  6916. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  6917. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  6918. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  6919. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  6920. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  6921. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  6922. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  6923. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  6924. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  6925. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  6926. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  6927. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  6928. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  6929. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  6930. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  6931. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  6932. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  6933. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  6934. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  6935. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  6936. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  6937. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  6938. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  6939. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  6940. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  6941. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  6942. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  6943. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  6944. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  6945. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  6946. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  6947. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  6948. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  6949. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  6950. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  6951. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  6952. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  6953. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  6954. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  6955. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  6956. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  6957. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  6958. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  6959. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  6960. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  6961. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  6962. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  6963. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  6964. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  6965. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  6966. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  6967. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  6968. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  6969. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  6970. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  6971. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  6972. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  6973. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  6974. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  6975. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  6976. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  6977. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  6978. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  6979. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  6980. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  6981. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  6982. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  6983. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  6984. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  6985. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  6986. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  6987. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  6988. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  6989. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  6990. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  6991. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  6992. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  6993. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  6994. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  6995. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  6996. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  6997. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  6998. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  6999. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  7000. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  7001. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  7002. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  7003. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  7004. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  7005. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  7006. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  7007. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  7008. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  7009. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  7010. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  7011. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  7012. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  7013. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  7014. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  7015. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  7016. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  7017. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  7018. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  7019. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  7020. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  7021. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  7022. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  7023. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  7024. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  7025. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  7026. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  7027. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  7028. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  7029. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  7030. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  7031. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  7032. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  7033. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  7034. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  7035. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  7036. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  7037. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  7038. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  7039. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  7040. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  7041. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  7042. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  7043. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  7044. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  7045. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  7046. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  7047. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  7048. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  7049. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  7050. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  7051. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  7052. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  7053. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  7054. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  7055. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  7056. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  7057. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  7058. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  7059. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  7060. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  7061. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  7062. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  7063. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  7064. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  7065. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  7066. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  7067. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  7068. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  7069. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  7070. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  7071. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  7072. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  7073. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  7074. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  7075. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  7076. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  7077. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  7078. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  7079. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  7080. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  7081. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  7082. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  7083. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  7084. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  7085. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  7086. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  7087. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  7088. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  7089. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  7090. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  7091. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  7092. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  7093. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  7094. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  7095. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  7096. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  7097. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  7098. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  7099. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  7100. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  7101. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  7102. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  7103. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  7104. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  7105. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  7106. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  7107. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  7108. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  7109. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  7110. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  7111. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  7112. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  7113. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  7114. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  7115. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  7116. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  7117. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  7118. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  7119. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  7120. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  7121. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  7122. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  7123. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  7124. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  7125. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  7126. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  7127. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  7128. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  7129. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  7130. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  7131. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  7132. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  7133. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  7134. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  7135. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  7136. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  7137. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  7138. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  7139. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  7140. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  7141. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  7142. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  7143. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  7144. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  7145. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  7146. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  7147. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  7148. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  7149. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  7150. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  7151. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  7152. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  7153. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  7154. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  7155. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  7156. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  7157. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  7158. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  7159. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  7160. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  7161. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  7162. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  7163. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  7164. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  7165. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  7166. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  7167. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  7168. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  7169. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  7170. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  7171. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  7172. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  7173. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  7174. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  7175. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  7176. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  7177. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  7178. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  7179. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  7180. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  7181. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  7182. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  7183. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  7184. 38315, 38741, 171581, 173594],
  7185. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  7186. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  7187. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  7188. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  7189. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  7190. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  7191. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  7192. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  7193. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  7194. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  7195. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  7196. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  7197. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  7198. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  7199. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  7200. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  7201. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  7202. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  7203. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  7204. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  7205. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  7206. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  7207. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  7208. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  7209. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  7210. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  7211. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  7212. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  7213. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  7214. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  7215. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  7216. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  7217. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  7218. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  7219. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  7220. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  7221. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  7222. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  7223. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  7224. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  7225. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  7226. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  7227. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  7228. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  7229. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  7230. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  7231. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  7232. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  7233. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  7234. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  7235. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  7236. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  7237. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  7238. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  7239. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  7240. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  7241. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  7242. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  7243. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  7244. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  7245. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  7246. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  7247. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  7248. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  7249. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  7250. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  7251. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  7252. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  7253. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  7254. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  7255. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  7256. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  7257. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  7258. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  7259. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  7260. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  7261. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  7262. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  7263. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  7264. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  7265. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  7266. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  7267. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  7268. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  7269. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  7270. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  7271. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  7272. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  7273. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  7274. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  7275. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  7276. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  7277. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  7278. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  7279. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  7280. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  7281. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  7282. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  7283. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  7284. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  7285. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  7286. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  7287. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  7288. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  7289. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  7290. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  7291. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  7292. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  7293. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  7294. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  7295. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  7296. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  7297. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  7298. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  7299. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  7300. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  7301. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  7302. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  7303. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  7304. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  7305. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  7306. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  7307. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  7308. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  7309. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  7310. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  7311. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  7312. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  7313. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  7314. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  7315. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  7316. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  7317. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  7318. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  7319. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  7320. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  7321. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  7322. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  7323. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  7324. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  7325. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  7326. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  7327. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  7328. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  7329. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  7330. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  7331. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  7332. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  7333. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  7334. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  7335. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  7336. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  7337. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  7338. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  7339. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  7340. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  7341. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  7342. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  7343. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  7344. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  7345. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  7346. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  7347. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  7348. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  7349. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  7350. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  7351. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  7352. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  7353. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  7354. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  7355. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  7356. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  7357. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  7358. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  7359. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  7360. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  7361. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  7362. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  7363. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  7364. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  7365. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  7366. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  7367. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  7368. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  7369. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  7370. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  7371. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  7372. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  7373. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  7374. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  7375. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  7376. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  7377. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  7378. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  7379. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  7380. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  7381. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  7382. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  7383. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  7384. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  7385. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  7386. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  7387. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  7388. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  7389. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  7390. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  7391. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  7392. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  7393. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  7394. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  7395. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  7396. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  7397. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  7398. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  7399. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  7400. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  7401. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  7402. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  7403. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  7404. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  7405. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  7406. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  7407. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  7408. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  7409. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  7410. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  7411. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  7412. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  7413. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  7414. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  7415. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  7416. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  7417. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  7418. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  7419. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  7420. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  7421. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  7422. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  7423. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  7424. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  7425. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  7426. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  7427. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  7428. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  7429. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  7430. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  7431. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  7432. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  7433. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  7434. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  7435. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  7436. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  7437. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  7438. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  7439. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  7440. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  7441. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  7442. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  7443. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  7444. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  7445. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  7446. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  7447. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  7448. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  7449. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  7450. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  7451. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  7452. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  7453. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  7454. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  7455. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  7456. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  7457. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  7458. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  7459. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  7460. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  7461. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  7462. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  7463. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  7464. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  7465. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  7466. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  7467. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  7468. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  7469. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  7470. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  7471. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  7472. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  7473. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  7474. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  7475. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  7476. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  7477. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  7478. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  7479. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  7480. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  7481. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  7482. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  7483. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  7484. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  7485. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  7486. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  7487. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  7488. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  7489. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  7490. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  7491. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  7492. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  7493. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  7494. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  7495. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  7496. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  7497. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  7498. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  7499. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  7500. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  7501. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  7502. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  7503. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  7504. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  7505. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  7506. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  7507. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  7508. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  7509. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  7510. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  7511. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  7512. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  7513. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  7514. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  7515. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  7516. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  7517. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  7518. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  7519. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  7520. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  7521. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  7522. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  7523. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  7524. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  7525. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  7526. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  7527. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  7528. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  7529. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  7530. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  7531. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  7532. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  7533. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  7534. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  7535. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  7536. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  7537. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  7538. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  7539. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  7540. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  7541. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  7542. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  7543. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  7544. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  7545. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  7546. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  7547. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  7548. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  7549. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  7550. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  7551. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  7552. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  7553. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  7554. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  7555. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  7556. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  7557. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  7558. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  7559. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  7560. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  7561. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  7562. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  7563. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  7564. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  7565. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  7566. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  7567. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  7568. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  7569. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  7570. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  7571. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  7572. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  7573. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  7574. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  7575. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  7576. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  7577. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  7578. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  7579. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  7580. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  7581. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  7582. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  7583. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  7584. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  7585. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  7586. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  7587. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  7588. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  7589. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  7590. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  7591. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  7592. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  7593. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  7594. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  7595. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  7596. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  7597. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  7598. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  7599. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  7600. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  7601. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  7602. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  7603. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  7604. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  7605. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  7606. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  7607. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  7608. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  7609. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  7610. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  7611. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  7612. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  7613. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  7614. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  7615. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  7616. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  7617. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  7618. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  7619. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  7620. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  7621. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  7622. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  7623. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  7624. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  7625. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  7626. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  7627. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  7628. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  7629. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  7630. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  7631. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  7632. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  7633. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  7634. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  7635. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  7636. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  7637. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  7638. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  7639. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  7640. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  7641. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  7642. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  7643. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  7644. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  7645. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  7646. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  7647. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  7648. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  7649. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  7650. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  7651. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  7652. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  7653. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  7654. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  7655. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  7656. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  7657. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  7658. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  7659. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  7660. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  7661. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  7662. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  7663. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  7664. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  7665. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  7666. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  7667. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  7668. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  7669. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  7670. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  7671. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  7672. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  7673. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  7674. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  7675. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  7676. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  7677. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  7678. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  7679. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  7680. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  7681. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  7682. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  7683. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  7684. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  7685. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  7686. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  7687. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  7688. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  7689. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  7690. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  7691. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  7692. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  7693. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  7694. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  7695. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  7696. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  7697. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  7698. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  7699. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  7700. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  7701. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  7702. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  7703. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  7704. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  7705. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  7706. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  7707. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  7708. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  7709. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  7710. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  7711. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  7712. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  7713. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  7714. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  7715. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  7716. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  7717. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  7718. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  7719. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  7720. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  7721. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  7722. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  7723. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  7724. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  7725. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  7726. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  7727. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  7728. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  7729. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  7730. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  7731. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  7732. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  7733. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  7734. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  7735. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  7736. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  7737. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  7738. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  7739. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  7740. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  7741. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  7742. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  7743. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  7744. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  7745. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  7746. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  7747. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  7748. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  7749. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  7750. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  7751. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  7752. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  7753. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  7754. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  7755. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  7756. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  7757. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  7758. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  7759. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  7760. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  7761. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  7762. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  7763. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  7764. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  7765. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  7766. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  7767. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  7768. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  7769. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  7770. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  7771. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  7772. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  7773. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  7774. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  7775. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  7776. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  7777. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  7778. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  7779. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  7780. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  7781. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  7782. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  7783. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  7784. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  7785. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  7786. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  7787. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  7788. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  7789. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  7790. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  7791. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  7792. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  7793. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  7794. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  7795. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  7796. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  7797. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  7798. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  7799. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  7800. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  7801. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  7802. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  7803. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  7804. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  7805. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  7806. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  7807. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  7808. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  7809. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  7810. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  7811. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  7812. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  7813. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  7814. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  7815. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  7816. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  7817. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  7818. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  7819. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  7820. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  7821. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  7822. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  7823. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  7824. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  7825. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  7826. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  7827. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  7828. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  7829. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  7830. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  7831. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  7832. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  7833. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  7834. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  7835. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  7836. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  7837. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  7838. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  7839. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  7840. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  7841. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  7842. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  7843. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  7844. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  7845. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  7846. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  7847. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  7848. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  7849. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  7850. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  7851. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  7852. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  7853. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  7854. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  7855. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  7856. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  7857. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  7858. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  7859. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  7860. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  7861. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  7862. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  7863. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  7864. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  7865. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  7866. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  7867. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  7868. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  7869. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  7870. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  7871. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  7872. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  7873. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  7874. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  7875. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  7876. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  7877. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  7878. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  7879. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  7880. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  7881. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  7882. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  7883. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  7884. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  7885. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  7886. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  7887. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  7888. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  7889. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  7890. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  7891. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  7892. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  7893. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  7894. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  7895. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  7896. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  7897. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  7898. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  7899. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  7900. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  7901. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  7902. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  7903. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  7904. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  7905. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  7906. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  7907. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  7908. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  7909. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  7910. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  7911. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  7912. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  7913. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  7914. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  7915. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  7916. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  7917. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  7918. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  7919. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  7920. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  7921. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  7922. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  7923. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  7924. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  7925. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  7926. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  7927. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  7928. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  7929. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  7930. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  7931. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  7932. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  7933. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  7934. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  7935. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  7936. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  7937. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  7938. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  7939. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  7940. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  7941. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  7942. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  7943. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  7944. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  7945. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  7946. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  7947. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  7948. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  7949. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  7950. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  7951. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  7952. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  7953. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  7954. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  7955. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  7956. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  7957. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  7958. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  7959. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  7960. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  7961. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  7962. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  7963. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  7964. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  7965. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  7966. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  7967. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  7968. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  7969. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  7970. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  7971. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  7972. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  7973. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  7974. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  7975. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  7976. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  7977. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  7978. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  7979. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  7980. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  7981. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  7982. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  7983. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  7984. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  7985. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  7986. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  7987. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  7988. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  7989. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  7990. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  7991. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  7992. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  7993. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  7994. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  7995. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  7996. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  7997. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  7998. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  7999. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  8000. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  8001. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  8002. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  8003. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  8004. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  8005. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  8006. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  8007. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  8008. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  8009. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  8010. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  8011. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  8012. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  8013. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  8014. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  8015. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  8016. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  8017. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  8018. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  8019. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  8020. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  8021. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  8022. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  8023. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  8024. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  8025. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  8026. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  8027. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  8028. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  8029. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  8030. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  8031. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  8032. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  8033. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  8034. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  8035. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  8036. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  8037. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  8038. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  8039. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  8040. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  8041. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  8042. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  8043. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  8044. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  8045. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  8046. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  8047. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  8048. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  8049. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  8050. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  8051. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  8052. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  8053. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  8054. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  8055. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  8056. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  8057. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  8058. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  8059. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  8060. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  8061. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  8062. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  8063. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  8064. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  8065. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  8066. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  8067. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  8068. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  8069. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  8070. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  8071. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  8072. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  8073. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  8074. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  8075. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  8076. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  8077. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  8078. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  8079. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  8080. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  8081. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  8082. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  8083. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  8084. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  8085. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  8086. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  8087. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  8088. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  8089. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  8090. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  8091. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  8092. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  8093. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  8094. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  8095. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  8096. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  8097. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  8098. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  8099. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  8100. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  8101. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  8102. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  8103. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  8104. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  8105. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  8106. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  8107. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  8108. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  8109. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  8110. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  8111. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  8112. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  8113. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  8114. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  8115. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  8116. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  8117. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  8118. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  8119. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  8120. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  8121. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  8122. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  8123. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  8124. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  8125. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  8126. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  8127. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  8128. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  8129. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  8130. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  8131. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  8132. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  8133. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  8134. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  8135. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  8136. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  8137. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  8138. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  8139. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  8140. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  8141. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  8142. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  8143. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  8144. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  8145. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  8146. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  8147. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  8148. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  8149. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  8150. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  8151. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  8152. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  8153. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  8154. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  8155. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  8156. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  8157. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  8158. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  8159. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  8160. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  8161. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  8162. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  8163. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  8164. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  8165. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  8166. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  8167. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  8168. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  8169. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  8170. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  8171. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  8172. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  8173. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  8174. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  8175. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  8176. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  8177. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  8178. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  8179. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  8180. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  8181. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  8182. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  8183. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  8184. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  8185. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  8186. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  8187. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  8188. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  8189. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  8190. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  8191. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  8192. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  8193. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  8194. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  8195. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  8196. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  8197. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  8198. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  8199. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  8200. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  8201. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  8202. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  8203. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  8204. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  8205. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  8206. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  8207. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  8208. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  8209. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  8210. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  8211. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  8212. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  8213. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  8214. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  8215. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  8216. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  8217. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  8218. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  8219. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  8220. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  8221. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  8222. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  8223. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  8224. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  8225. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  8226. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  8227. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  8228. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  8229. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  8230. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  8231. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  8232. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  8233. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  8234. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  8235. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  8236. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  8237. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  8238. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  8239. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  8240. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  8241. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  8242. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  8243. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  8244. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  8245. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  8246. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  8247. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  8248. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  8249. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  8250. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  8251. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  8252. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  8253. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  8254. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  8255. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  8256. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  8257. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  8258. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  8259. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  8260. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  8261. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  8262. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  8263. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  8264. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  8265. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  8266. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  8267. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  8268. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  8269. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  8270. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  8271. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  8272. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  8273. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  8274. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  8275. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  8276. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  8277. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  8278. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  8279. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  8280. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  8281. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  8282. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  8283. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  8284. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  8285. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  8286. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  8287. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  8288. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  8289. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  8290. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  8291. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  8292. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  8293. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  8294. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  8295. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  8296. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  8297. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  8298. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  8299. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  8300. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  8301. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  8302. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  8303. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  8304. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  8305. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  8306. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  8307. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  8308. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  8309. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  8310. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  8311. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  8312. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  8313. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  8314. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  8315. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  8316. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  8317. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  8318. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  8319. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  8320. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  8321. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  8322. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  8323. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  8324. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  8325. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  8326. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  8327. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  8328. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  8329. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  8330. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  8331. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  8332. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  8333. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  8334. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  8335. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  8336. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  8337. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  8338. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  8339. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  8340. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  8341. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  8342. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  8343. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  8344. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  8345. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  8346. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  8347. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  8348. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  8349. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  8350. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  8351. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  8352. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  8353. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  8354. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  8355. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  8356. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  8357. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  8358. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  8359. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  8360. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  8361. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  8362. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  8363. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  8364. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  8365. {f: 6, c: 55198}],
  8366. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  8367. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  8368. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  8369. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  8370. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  8371. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  8372. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  8373. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  8374. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  8375. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  8376. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  8377. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  8378. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  8379. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  8380. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  8381. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  8382. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  8383. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  8384. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  8385. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  8386. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  8387. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  8388. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  8389. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  8390. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  8391. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  8392. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  8393. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  8394. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  8395. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  8396. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  8397. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  8398. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  8399. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  8400. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  8401. [12057, 21353, 63192], [12059, 21430, 63193],
  8402. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  8403. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  8404. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  8405. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  8406. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  8407. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  8408. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  8409. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  8410. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  8411. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  8412. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  8413. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  8414. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  8415. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  8416. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  8417. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  8418. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  8419. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  8420. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  8421. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  8422. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  8423. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  8424. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  8425. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  8426. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  8427. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  8428. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  8429. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  8430. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  8431. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  8432. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  8433. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  8434. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  8435. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  8436. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  8437. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  8438. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  8439. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  8440. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  8441. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  8442. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  8443. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  8444. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  8445. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  8446. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  8447. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  8448. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  8449. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  8450. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  8451. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  8452. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  8453. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  8454. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  8455. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  8456. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  8457. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  8458. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  8459. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  8460. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  8461. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  8462. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  8463. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  8464. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  8465. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  8466. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  8467. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  8468. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  8469. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  8470. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  8471. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  8472. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  8473. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  8474. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  8475. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  8476. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  8477. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  8478. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  8479. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  8480. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  8481. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  8482. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  8483. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  8484. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  8485. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  8486. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  8487. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  8488. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  8489. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  8490. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  8491. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  8492. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  8493. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  8494. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  8495. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  8496. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  8497. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  8498. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  8499. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  8500. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  8501. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  8502. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  8503. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  8504. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  8505. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  8506. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  8507. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  8508. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  8509. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  8510. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  8511. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  8512. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  8513. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  8514. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  8515. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  8516. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  8517. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  8518. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  8519. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  8520. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  8521. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  8522. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  8523. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  8524. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  8525. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  8526. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  8527. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  8528. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  8529. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  8530. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  8531. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  8532. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  8533. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  8534. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  8535. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  8536. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  8537. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  8538. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  8539. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  8540. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  8541. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  8542. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  8543. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  8544. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  8545. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  8546. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  8547. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  8548. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  8549. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  8550. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  8551. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  8552. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  8553. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  8554. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  8555. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  8556. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  8557. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  8558. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  8559. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  8560. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  8561. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  8562. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  8563. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  8564. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  8565. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  8566. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  8567. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  8568. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  8569. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  8570. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  8571. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  8572. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  8573. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  8574. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  8575. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  8576. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  8577. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  8578. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  8579. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  8580. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  8581. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  8582. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  8583. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  8584. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  8585. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  8586. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  8587. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  8588. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  8589. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  8590. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  8591. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  8592. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  8593. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  8594. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  8595. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  8596. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  8597. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  8598. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  8599. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  8600. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  8601. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  8602. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  8603. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  8604. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  8605. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  8606. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  8607. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  8608. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  8609. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  8610. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  8611. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  8612. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  8613. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  8614. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  8615. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  8616. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  8617. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  8618. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  8619. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  8620. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  8621. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  8622. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  8623. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  8624. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  8625. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  8626. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  8627. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  8628. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  8629. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  8630. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  8631. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  8632. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  8633. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  8634. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  8635. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  8636. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  8637. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  8638. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  8639. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  8640. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  8641. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  8642. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  8643. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  8644. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  8645. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  8646. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  8647. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  8648. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  8649. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  8650. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  8651. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  8652. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  8653. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  8654. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  8655. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  8656. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  8657. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  8658. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  8659. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  8660. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  8661. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  8662. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  8663. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  8664. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  8665. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  8666. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  8667. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  8668. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  8669. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  8670. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  8671. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  8672. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  8673. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  8674. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  8675. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  8676. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  8677. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  8678. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  8679. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  8680. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  8681. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  8682. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  8683. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  8684. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  8685. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  8686. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  8687. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  8688. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  8689. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  8690. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  8691. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  8692. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  8693. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  8694. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  8695. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  8696. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  8697. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  8698. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  8699. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  8700. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  8701. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  8702. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  8703. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  8704. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  8705. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  8706. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  8707. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  8708. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  8709. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  8710. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  8711. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  8712. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  8713. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  8714. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  8715. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  8716. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  8717. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  8718. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  8719. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  8720. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  8721. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  8722. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  8723. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  8724. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  8725. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  8726. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  8727. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  8728. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  8729. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  8730. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  8731. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  8732. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  8733. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  8734. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  8735. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  8736. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  8737. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  8738. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  8739. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  8740. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  8741. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  8742. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  8743. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  8744. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  8745. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  8746. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  8747. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  8748. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  8749. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  8750. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  8751. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  8752. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  8753. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  8754. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  8755. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  8756. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  8757. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  8758. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  8759. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  8760. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  8761. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  8762. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  8763. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  8764. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  8765. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  8766. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  8767. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  8768. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  8769. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  8770. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  8771. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  8772. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  8773. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  8774. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  8775. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  8776. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  8777. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  8778. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  8779. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  8780. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  8781. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  8782. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  8783. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  8784. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  8785. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  8786. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  8787. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  8788. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  8789. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  8790. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  8791. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  8792. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  8793. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  8794. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  8795. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  8796. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  8797. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  8798. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  8799. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  8800. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  8801. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  8802. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  8803. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  8804. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  8805. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  8806. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  8807. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  8808. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  8809. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  8810. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  8811. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  8812. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  8813. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  8814. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  8815. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  8816. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  8817. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  8818. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  8819. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  8820. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  8821. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  8822. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  8823. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  8824. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  8825. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  8826. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  8827. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  8828. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  8829. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  8830. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  8831. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  8832. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  8833. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  8834. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  8835. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  8836. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  8837. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  8838. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  8839. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  8840. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  8841. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  8842. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  8843. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  8844. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  8845. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  8846. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  8847. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  8848. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  8849. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  8850. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  8851. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  8852. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  8853. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  8854. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  8855. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  8856. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  8857. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  8858. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  8859. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  8860. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  8861. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  8862. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  8863. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  8864. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  8865. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  8866. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  8867. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  8868. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  8869. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  8870. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  8871. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  8872. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  8873. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  8874. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  8875. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  8876. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  8877. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  8878. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  8879. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  8880. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  8881. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  8882. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  8883. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  8884. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  8885. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  8886. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  8887. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  8888. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  8889. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  8890. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  8891. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  8892. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  8893. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  8894. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  8895. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  8896. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  8897. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  8898. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  8899. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  8900. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  8901. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  8902. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  8903. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  8904. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  8905. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  8906. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  8907. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  8908. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  8909. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  8910. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  8911. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  8912. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  8913. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  8914. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  8915. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  8916. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  8917. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  8918. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  8919. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  8920. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  8921. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  8922. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  8923. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  8924. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  8925. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  8926. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  8927. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  8928. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  8929. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  8930. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  8931. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  8932. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  8933. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  8934. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  8935. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  8936. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  8937. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  8938. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  8939. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  8940. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  8941. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  8942. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  8943. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  8944. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  8945. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  8946. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  8947. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  8948. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  8949. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  8950. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  8951. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  8952. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  8953. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  8954. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  8955. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  8956. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  8957. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  8958. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  8959. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  8960. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  8961. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  8962. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  8963. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  8964. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  8965. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  8966. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  8967. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  8968. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  8969. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  8970. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  8971. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  8972. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  8973. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  8974. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  8975. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  8976. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  8977. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  8978. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  8979. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  8980. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  8981. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  8982. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  8983. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  8984. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  8985. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  8986. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  8987. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  8988. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  8989. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  8990. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  8991. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  8992. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  8993. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  8994. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  8995. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  8996. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  8997. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  8998. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  8999. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  9000. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  9001. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  9002. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  9003. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  9004. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  9005. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  9006. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  9007. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  9008. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  9009. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  9010. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  9011. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  9012. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  9013. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  9014. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  9015. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  9016. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  9017. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  9018. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  9019. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  9020. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  9021. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  9022. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  9023. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  9024. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  9025. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  9026. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  9027. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  9028. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  9029. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  9030. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  9031. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  9032. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  9033. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  9034. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  9035. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  9036. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  9037. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  9038. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  9039. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  9040. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  9041. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  9042. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  9043. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  9044. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  9045. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  9046. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  9047. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  9048. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  9049. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  9050. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  9051. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  9052. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  9053. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  9054. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  9055. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  9056. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  9057. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  9058. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  9059. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  9060. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  9061. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  9062. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  9063. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  9064. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  9065. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  9066. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  9067. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  9068. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  9069. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  9070. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  9071. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  9072. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  9073. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  9074. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  9075. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  9076. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  9077. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  9078. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  9079. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  9080. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  9081. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  9082. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  9083. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  9084. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  9085. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  9086. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  9087. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  9088. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  9089. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  9090. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  9091. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  9092. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  9093. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  9094. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  9095. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  9096. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  9097. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  9098. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  9099. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  9100. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  9101. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  9102. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  9103. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  9104. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  9105. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  9106. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  9107. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  9108. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  9109. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  9110. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  9111. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  9112. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  9113. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  9114. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  9115. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  9116. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  9117. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  9118. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  9119. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  9120. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  9121. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  9122. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  9123. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  9124. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  9125. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  9126. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  9127. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  9128. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  9129. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  9130. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  9131. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  9132. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  9133. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  9134. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  9135. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  9136. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  9137. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  9138. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  9139. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  9140. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  9141. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  9142. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  9143. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  9144. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  9145. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  9146. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  9147. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  9148. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  9149. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  9150. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  9151. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  9152. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  9153. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  9154. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  9155. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  9156. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  9157. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  9158. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  9159. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  9160. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  9161. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  9162. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  9163. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  9164. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  9165. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  9166. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  9167. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  9168. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  9169. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  9170. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  9171. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  9172. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  9173. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  9174. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  9175. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  9176. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  9177. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  9178. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  9179. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  9180. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  9181. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  9182. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  9183. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  9184. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  9185. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  9186. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  9187. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  9188. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  9189. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  9190. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  9191. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  9192. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  9193. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  9194. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  9195. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  9196. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  9197. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  9198. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  9199. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  9200. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  9201. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  9202. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  9203. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  9204. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  9205. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  9206. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  9207. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  9208. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  9209. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  9210. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  9211. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  9212. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  9213. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  9214. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  9215. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  9216. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  9217. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  9218. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  9219. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  9220. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  9221. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  9222. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  9223. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  9224. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  9225. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  9226. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  9227. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  9228. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  9229. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  9230. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  9231. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  9232. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  9233. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  9234. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  9235. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  9236. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  9237. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  9238. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  9239. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  9240. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  9241. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  9242. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  9243. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  9244. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  9245. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  9246. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  9247. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  9248. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  9249. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  9250. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  9251. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  9252. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  9253. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  9254. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  9255. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  9256. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  9257. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  9258. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  9259. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  9260. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  9261. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  9262. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  9263. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  9264. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  9265. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  9266. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  9267. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  9268. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  9269. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  9270. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  9271. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  9272. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  9273. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  9274. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  9275. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  9276. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  9277. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  9278. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  9279. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  9280. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  9281. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  9282. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  9283. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  9284. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  9285. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  9286. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  9287. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  9288. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  9289. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  9290. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  9291. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  9292. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  9293. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  9294. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  9295. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  9296. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  9297. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  9298. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  9299. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  9300. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  9301. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  9302. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  9303. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  9304. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  9305. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  9306. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  9307. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  9308. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  9309. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  9310. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  9311. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  9312. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  9313. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  9314. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  9315. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  9316. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  9317. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  9318. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  9319. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  9320. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  9321. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  9322. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  9323. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  9324. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  9325. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  9326. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  9327. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  9328. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  9329. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  9330. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  9331. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  9332. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  9333. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  9334. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  9335. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  9336. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  9337. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  9338. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  9339. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  9340. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  9341. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  9342. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  9343. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  9344. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  9345. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  9346. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  9347. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  9348. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  9349. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  9350. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  9351. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  9352. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  9353. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  9354. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  9355. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  9356. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  9357. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  9358. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  9359. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  9360. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  9361. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  9362. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  9363. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  9364. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  9365. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  9366. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  9367. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  9368. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  9369. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  9370. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  9371. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  9372. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  9373. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  9374. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  9375. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  9376. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  9377. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  9378. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  9379. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  9380. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  9381. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  9382. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  9383. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  9384. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  9385. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  9386. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  9387. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  9388. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  9389. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  9390. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  9391. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  9392. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  9393. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  9394. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  9395. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  9396. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  9397. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  9398. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  9399. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  9400. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  9401. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  9402. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  9403. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  9404. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  9405. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  9406. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  9407. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  9408. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  9409. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  9410. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  9411. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  9412. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  9413. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  9414. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  9415. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  9416. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  9417. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  9418. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  9419. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  9420. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  9421. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  9422. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  9423. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  9424. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  9425. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  9426. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  9427. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  9428. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  9429. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  9430. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  9431. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  9432. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  9433. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  9434. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  9435. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  9436. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  9437. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  9438. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  9439. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  9440. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  9441. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  9442. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  9443. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  9444. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  9445. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  9446. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  9447. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  9448. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  9449. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  9450. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  9451. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  9452. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  9453. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  9454. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  9455. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  9456. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  9457. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  9458. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  9459. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  9460. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  9461. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  9462. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  9463. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  9464. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  9465. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  9466. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  9467. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  9468. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  9469. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  9470. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  9471. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  9472. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  9473. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  9474. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  9475. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  9476. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  9477. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  9478. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  9479. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  9480. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  9481. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  9482. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  9483. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  9484. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  9485. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  9486. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  9487. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  9488. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  9489. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  9490. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  9491. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  9492. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  9493. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  9494. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  9495. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  9496. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  9497. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  9498. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  9499. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  9500. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  9501. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  9502. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  9503. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  9504. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  9505. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  9506. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  9507. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  9508. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  9509. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  9510. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  9511. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  9512. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  9513. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  9514. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  9515. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  9516. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  9517. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  9518. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  9519. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  9520. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  9521. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  9522. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  9523. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  9524. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  9525. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  9526. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  9527. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  9528. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  9529. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  9530. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  9531. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  9532. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  9533. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  9534. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  9535. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  9536. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  9537. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  9538. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  9539. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  9540. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  9541. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  9542. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  9543. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  9544. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  9545. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  9546. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  9547. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  9548. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  9549. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  9550. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  9551. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  9552. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  9553. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  9554. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  9555. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  9556. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  9557. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  9558. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  9559. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  9560. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  9561. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  9562. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  9563. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  9564. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  9565. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  9566. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  9567. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  9568. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  9569. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  9570. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  9571. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  9572. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  9573. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  9574. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  9575. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  9576. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  9577. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  9578. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  9579. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  9580. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  9581. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  9582. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  9583. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  9584. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  9585. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  9586. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  9587. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  9588. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  9589. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  9590. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  9591. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  9592. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  9593. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  9594. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  9595. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  9596. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  9597. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  9598. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  9599. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  9600. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  9601. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  9602. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  9603. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  9604. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  9605. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  9606. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  9607. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  9608. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  9609. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  9610. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  9611. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  9612. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  9613. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  9614. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  9615. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  9616. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  9617. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  9618. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  9619. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  9620. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  9621. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  9622. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  9623. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  9624. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  9625. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  9626. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  9627. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  9628. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  9629. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  9630. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  9631. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  9632. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  9633. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  9634. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  9635. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  9636. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  9637. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  9638. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  9639. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  9640. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  9641. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  9642. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  9643. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  9644. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  9645. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  9646. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  9647. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  9648. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  9649. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  9650. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  9651. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  9652. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  9653. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  9654. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  9655. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  9656. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  9657. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  9658. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  9659. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  9660. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  9661. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  9662. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  9663. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  9664. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  9665. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  9666. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  9667. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  9668. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  9669. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  9670. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  9671. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  9672. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  9673. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  9674. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  9675. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  9676. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  9677. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  9678. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  9679. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  9680. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  9681. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  9682. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  9683. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  9684. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  9685. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  9686. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  9687. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  9688. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  9689. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  9690. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  9691. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  9692. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  9693. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  9694. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  9695. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  9696. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  9697. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  9698. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  9699. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  9700. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  9701. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  9702. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  9703. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  9704. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  9705. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  9706. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  9707. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  9708. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  9709. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  9710. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  9711. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  9712. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  9713. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  9714. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  9715. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  9716. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  9717. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  9718. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  9719. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  9720. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  9721. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  9722. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  9723. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  9724. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  9725. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  9726. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  9727. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  9728. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  9729. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  9730. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  9731. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  9732. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  9733. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  9734. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  9735. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  9736. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  9737. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  9738. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  9739. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  9740. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  9741. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  9742. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  9743. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  9744. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  9745. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  9746. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  9747. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  9748. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  9749. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  9750. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  9751. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  9752. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  9753. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  9754. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  9755. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  9756. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  9757. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  9758. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  9759. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  9760. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  9761. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  9762. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  9763. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  9764. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  9765. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  9766. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  9767. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  9768. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  9769. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  9770. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  9771. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  9772. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  9773. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  9774. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  9775. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  9776. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  9777. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  9778. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  9779. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  9780. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  9781. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  9782. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  9783. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  9784. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  9785. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  9786. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  9787. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  9788. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  9789. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  9790. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  9791. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  9792. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  9793. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  9794. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  9795. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  9796. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  9797. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  9798. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  9799. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  9800. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  9801. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  9802. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  9803. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  9804. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  9805. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  9806. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  9807. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  9808. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  9809. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  9810. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  9811. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  9812. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  9813. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  9814. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  9815. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  9816. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  9817. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  9818. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  9819. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  9820. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  9821. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  9822. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  9823. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  9824. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  9825. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  9826. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  9827. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  9828. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  9829. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  9830. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  9831. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  9832. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  9833. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  9834. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  9835. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  9836. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  9837. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  9838. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  9839. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  9840. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  9841. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  9842. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  9843. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  9844. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  9845. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  9846. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  9847. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  9848. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  9849. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  9850. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  9851. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  9852. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  9853. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  9854. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  9855. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  9856. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  9857. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  9858. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  9859. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  9860. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  9861. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  9862. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  9863. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  9864. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  9865. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  9866. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  9867. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  9868. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  9869. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  9870. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  9871. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  9872. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  9873. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  9874. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  9875. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  9876. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  9877. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  9878. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  9879. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  9880. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  9881. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  9882. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  9883. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  9884. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  9885. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  9886. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  9887. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  9888. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  9889. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  9890. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  9891. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  9892. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  9893. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  9894. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  9895. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  9896. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  9897. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  9898. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  9899. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  9900. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  9901. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  9902. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  9903. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  9904. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  9905. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  9906. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  9907. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  9908. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  9909. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  9910. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  9911. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  9912. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  9913. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  9914. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  9915. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  9916. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  9917. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  9918. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  9919. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  9920. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  9921. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  9922. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  9923. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  9924. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  9925. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  9926. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  9927. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  9928. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  9929. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  9930. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  9931. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  9932. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  9933. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  9934. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  9935. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  9936. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  9937. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  9938. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  9939. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  9940. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  9941. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  9942. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  9943. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  9944. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  9945. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  9946. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  9947. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  9948. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  9949. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  9950. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  9951. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  9952. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  9953. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  9954. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  9955. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  9956. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  9957. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  9958. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  9959. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  9960. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  9961. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  9962. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  9963. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  9964. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  9965. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  9966. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  9967. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  9968. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  9969. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  9970. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  9971. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  9972. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  9973. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  9974. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  9975. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  9976. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  9977. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  9978. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  9979. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  9980. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  9981. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  9982. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  9983. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  9984. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  9985. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  9986. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  9987. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  9988. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  9989. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  9990. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  9991. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  9992. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  9993. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  9994. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  9995. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  9996. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  9997. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  9998. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  9999. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  10000. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  10001. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  10002. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  10003. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  10004. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  10005. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  10006. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  10007. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  10008. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  10009. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  10010. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  10011. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  10012. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  10013. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  10014. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  10015. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  10016. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  10017. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  10018. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  10019. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  10020. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  10021. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  10022. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  10023. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  10024. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  10025. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  10026. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  10027. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  10028. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  10029. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  10030. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  10031. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  10032. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  10033. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  10034. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  10035. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  10036. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  10037. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  10038. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  10039. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  10040. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  10041. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  10042. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  10043. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  10044. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  10045. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  10046. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  10047. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  10048. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  10049. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  10050. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  10051. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  10052. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  10053. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  10054. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  10055. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  10056. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  10057. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  10058. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  10059. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  10060. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  10061. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  10062. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  10063. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  10064. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  10065. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  10066. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  10067. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  10068. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  10069. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  10070. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  10071. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  10072. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  10073. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  10074. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  10075. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  10076. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  10077. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  10078. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  10079. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  10080. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  10081. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  10082. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  10083. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  10084. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  10085. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  10086. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  10087. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  10088. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  10089. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  10090. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  10091. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  10092. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  10093. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  10094. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  10095. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  10096. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  10097. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  10098. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  10099. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  10100. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  10101. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  10102. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  10103. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  10104. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  10105. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  10106. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  10107. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  10108. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  10109. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  10110. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  10111. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  10112. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  10113. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  10114. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  10115. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  10116. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  10117. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  10118. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  10119. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  10120. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  10121. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  10122. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  10123. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  10124. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  10125. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  10126. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  10127. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  10128. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  10129. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  10130. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  10131. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  10132. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  10133. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  10134. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  10135. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  10136. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  10137. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  10138. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  10139. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  10140. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  10141. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  10142. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  10143. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  10144. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  10145. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  10146. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  10147. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  10148. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  10149. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  10150. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  10151. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  10152. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  10153. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  10154. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  10155. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  10156. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  10157. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  10158. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  10159. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  10160. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  10161. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  10162. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  10163. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  10164. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  10165. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  10166. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  10167. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  10168. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  10169. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  10170. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  10171. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  10172. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  10173. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  10174. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  10175. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  10176. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  10177. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  10178. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  10179. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  10180. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  10181. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  10182. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  10183. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  10184. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  10185. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  10186. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  10187. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  10188. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  10189. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  10190. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  10191. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  10192. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  10193. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  10194. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  10195. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  10196. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  10197. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  10198. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  10199. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  10200. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  10201. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  10202. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  10203. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  10204. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  10205. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  10206. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  10207. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  10208. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  10209. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  10210. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  10211. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  10212. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  10213. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  10214. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  10215. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  10216. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  10217. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  10218. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  10219. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  10220. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  10221. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  10222. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  10223. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  10224. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  10225. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  10226. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  10227. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  10228. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  10229. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  10230. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  10231. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  10232. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  10233. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  10234. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  10235. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  10236. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  10237. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  10238. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  10239. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  10240. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  10241. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  10242. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  10243. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  10244. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  10245. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  10246. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  10247. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  10248. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  10249. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  10250. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  10251. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  10252. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  10253. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  10254. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  10255. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  10256. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  10257. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  10258. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  10259. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  10260. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  10261. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  10262. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  10263. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  10264. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  10265. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  10266. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  10267. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  10268. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  10269. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  10270. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  10271. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  10272. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  10273. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  10274. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  10275. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  10276. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  10277. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  10278. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  10279. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  10280. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  10281. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  10282. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  10283. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  10284. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  10285. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  10286. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  10287. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  10288. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  10289. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  10290. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  10291. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  10292. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  10293. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  10294. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  10295. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  10296. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  10297. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  10298. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  10299. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  10300. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  10301. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  10302. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  10303. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  10304. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  10305. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  10306. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  10307. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  10308. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  10309. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  10310. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  10311. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  10312. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  10313. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  10314. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  10315. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  10316. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  10317. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  10318. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  10319. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  10320. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  10321. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  10322. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  10323. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  10324. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  10325. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  10326. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  10327. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  10328. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  10329. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  10330. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  10331. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  10332. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  10333. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  10334. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  10335. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  10336. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  10337. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  10338. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  10339. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  10340. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  10341. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  10342. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  10343. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  10344. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  10345. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  10346. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  10347. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  10348. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  10349. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  10350. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  10351. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  10352. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  10353. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  10354. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  10355. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  10356. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  10357. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  10358. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  10359. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  10360. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  10361. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  10362. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  10363. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  10364. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  10365. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  10366. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  10367. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  10368. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  10369. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  10370. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  10371. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  10372. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  10373. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  10374. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  10375. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  10376. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  10377. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  10378. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  10379. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  10380. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  10381. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  10382. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  10383. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  10384. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  10385. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  10386. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  10387. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  10388. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  10389. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  10390. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  10391. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  10392. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  10393. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  10394. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  10395. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  10396. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  10397. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  10398. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  10399. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  10400. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  10401. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  10402. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  10403. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  10404. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  10405. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  10406. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  10407. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  10408. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  10409. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  10410. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  10411. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  10412. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  10413. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  10414. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  10415. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  10416. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  10417. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  10418. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  10419. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  10420. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  10421. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  10422. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  10423. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  10424. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  10425. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  10426. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  10427. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  10428. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  10429. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  10430. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  10431. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  10432. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  10433. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  10434. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  10435. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  10436. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  10437. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  10438. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  10439. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  10440. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  10441. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  10442. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  10443. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  10444. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  10445. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  10446. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  10447. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  10448. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  10449. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  10450. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  10451. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  10452. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  10453. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  10454. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  10455. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  10456. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  10457. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  10458. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  10459. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  10460. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  10461. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  10462. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  10463. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  10464. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  10465. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  10466. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  10467. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  10468. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  10469. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  10470. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  10471. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  10472. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  10473. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  10474. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  10475. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  10476. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  10477. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  10478. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  10479. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  10480. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  10481. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  10482. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  10483. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  10484. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  10485. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  10486. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  10487. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  10488. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  10489. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  10490. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  10491. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  10492. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  10493. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  10494. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  10495. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  10496. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  10497. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  10498. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  10499. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  10500. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  10501. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  10502. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  10503. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  10504. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  10505. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  10506. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  10507. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  10508. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  10509. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  10510. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  10511. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  10512. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  10513. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  10514. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  10515. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  10516. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  10517. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  10518. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  10519. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  10520. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  10521. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  10522. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  10523. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  10524. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  10525. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  10526. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  10527. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  10528. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  10529. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  10530. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  10531. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  10532. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  10533. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  10534. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  10535. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  10536. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  10537. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  10538. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  10539. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  10540. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  10541. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  10542. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  10543. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  10544. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  10545. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  10546. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  10547. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  10548. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  10549. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  10550. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  10551. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  10552. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  10553. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  10554. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  10555. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  10556. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  10557. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  10558. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  10559. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  10560. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  10561. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  10562. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  10563. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  10564. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  10565. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  10566. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  10567. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  10568. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  10569. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  10570. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  10571. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  10572. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  10573. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  10574. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  10575. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  10576. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  10577. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  10578. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  10579. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  10580. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  10581. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  10582. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  10583. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  10584. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  10585. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  10586. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  10587. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  10588. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  10589. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  10590. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  10591. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  10592. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  10593. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  10594. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  10595. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  10596. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  10597. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  10598. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  10599. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  10600. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  10601. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  10602. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  10603. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  10604. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  10605. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  10606. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  10607. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  10608. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  10609. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  10610. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  10611. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  10612. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  10613. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  10614. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  10615. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  10616. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  10617. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  10618. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  10619. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  10620. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  10621. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  10622. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  10623. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  10624. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  10625. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  10626. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  10627. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  10628. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  10629. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  10630. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  10631. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  10632. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  10633. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  10634. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  10635. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  10636. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  10637. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  10638. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  10639. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  10640. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  10641. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  10642. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  10643. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  10644. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  10645. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  10646. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  10647. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  10648. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  10649. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  10650. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  10651. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  10652. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  10653. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  10654. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  10655. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  10656. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  10657. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  10658. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  10659. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  10660. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  10661. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  10662. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  10663. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  10664. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  10665. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  10666. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  10667. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  10668. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  10669. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  10670. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  10671. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  10672. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  10673. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  10674. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  10675. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  10676. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  10677. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  10678. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  10679. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  10680. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  10681. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  10682. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  10683. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  10684. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  10685. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  10686. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  10687. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  10688. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  10689. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  10690. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  10691. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  10692. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  10693. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  10694. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  10695. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  10696. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  10697. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  10698. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  10699. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  10700. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  10701. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  10702. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  10703. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  10704. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  10705. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  10706. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  10707. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  10708. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  10709. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  10710. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  10711. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  10712. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  10713. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  10714. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  10715. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  10716. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  10717. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  10718. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  10719. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  10720. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  10721. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  10722. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  10723. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  10724. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  10725. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  10726. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  10727. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  10728. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  10729. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  10730. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  10731. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  10732. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  10733. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  10734. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  10735. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  10736. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  10737. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  10738. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  10739. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  10740. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  10741. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  10742. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  10743. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  10744. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  10745. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  10746. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  10747. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  10748. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  10749. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  10750. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  10751. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  10752. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  10753. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  10754. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  10755. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  10756. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  10757. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  10758. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  10759. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  10760. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  10761. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  10762. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  10763. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  10764. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  10765. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  10766. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  10767. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  10768. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  10769. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  10770. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  10771. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  10772. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  10773. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  10774. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  10775. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  10776. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  10777. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  10778. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  10779. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  10780. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  10781. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  10782. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  10783. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  10784. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  10785. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  10786. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  10787. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  10788. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  10789. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  10790. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  10791. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  10792. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  10793. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  10794. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  10795. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  10796. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  10797. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  10798. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  10799. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  10800. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  10801. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  10802. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  10803. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  10804. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  10805. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  10806. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  10807. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  10808. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  10809. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  10810. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  10811. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  10812. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  10813. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  10814. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  10815. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  10816. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  10817. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  10818. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  10819. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  10820. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  10821. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  10822. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  10823. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  10824. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  10825. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  10826. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  10827. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  10828. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  10829. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  10830. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  10831. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  10832. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  10833. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  10834. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  10835. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  10836. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  10837. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  10838. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  10839. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  10840. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  10841. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  10842. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  10843. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  10844. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  10845. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  10846. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  10847. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  10848. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  10849. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  10850. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  10851. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  10852. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  10853. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  10854. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  10855. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  10856. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  10857. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  10858. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  10859. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  10860. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  10861. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  10862. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  10863. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  10864. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  10865. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  10866. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  10867. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  10868. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  10869. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  10870. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  10871. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  10872. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  10873. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  10874. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  10875. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  10876. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  10877. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  10878. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  10879. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  10880. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  10881. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  10882. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  10883. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  10884. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  10885. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  10886. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  10887. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  10888. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  10889. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  10890. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  10891. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  10892. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  10893. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  10894. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  10895. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  10896. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  10897. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  10898. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  10899. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  10900. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  10901. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  10902. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  10903. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  10904. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  10905. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  10906. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  10907. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  10908. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  10909. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  10910. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  10911. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  10912. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  10913. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  10914. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  10915. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  10916. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  10917. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  10918. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  10919. 23446, 62959, 32347],
  10920. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  10921. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  10922. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  10923. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  10924. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  10925. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  10926. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  10927. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  10928. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  10929. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  10930. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  10931. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  10932. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  10933. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  10934. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  10935. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  10936. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  10937. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  10938. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  10939. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  10940. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  10941. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  10942. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  10943. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  10944. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  10945. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  10946. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  10947. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  10948. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  10949. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  10950. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  10951. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  10952. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  10953. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  10954. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  10955. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  10956. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  10957. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  10958. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  10959. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  10960. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  10961. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  10962. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  10963. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  10964. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  10965. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  10966. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  10967. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  10968. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  10969. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  10970. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  10971. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  10972. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  10973. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  10974. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  10975. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  10976. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  10977. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  10978. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  10979. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  10980. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  10981. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  10982. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  10983. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  10984. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  10985. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  10986. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  10987. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  10988. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  10989. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  10990. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  10991. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  10992. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  10993. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  10994. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  10995. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  10996. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  10997. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  10998. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  10999. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  11000. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  11001. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  11002. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  11003. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  11004. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  11005. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  11006. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  11007. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  11008. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  11009. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  11010. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  11011. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  11012. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  11013. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  11014. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  11015. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  11016. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  11017. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  11018. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  11019. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  11020. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  11021. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  11022. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  11023. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  11024. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  11025. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  11026. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  11027. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  11028. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  11029. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  11030. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  11031. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  11032. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  11033. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  11034. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  11035. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  11036. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  11037. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  11038. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  11039. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  11040. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  11041. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  11042. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  11043. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  11044. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  11045. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  11046. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  11047. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  11048. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  11049. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  11050. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  11051. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  11052. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  11053. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  11054. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  11055. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  11056. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  11057. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  11058. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  11059. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  11060. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  11061. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  11062. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  11063. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  11064. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  11065. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  11066. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  11067. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  11068. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  11069. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  11070. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  11071. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  11072. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  11073. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  11074. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  11075. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  11076. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  11077. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  11078. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  11079. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  11080. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  11081. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  11082. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  11083. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  11084. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  11085. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  11086. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  11087. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  11088. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  11089. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  11090. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  11091. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  11092. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  11093. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  11094. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  11095. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  11096. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  11097. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  11098. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  11099. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  11100. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  11101. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  11102. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  11103. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  11104. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  11105. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  11106. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  11107. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  11108. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  11109. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  11110. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  11111. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  11112. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  11113. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  11114. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  11115. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  11116. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  11117. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  11118. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  11119. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  11120. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  11121. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  11122. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  11123. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  11124. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  11125. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  11126. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  11127. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  11128. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  11129. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  11130. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  11131. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  11132. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  11133. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  11134. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  11135. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  11136. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  11137. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  11138. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  11139. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  11140. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  11141. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  11142. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  11143. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  11144. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  11145. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  11146. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  11147. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  11148. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  11149. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  11150. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  11151. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  11152. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  11153. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  11154. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  11155. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  11156. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  11157. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  11158. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  11159. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  11160. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  11161. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  11162. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  11163. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  11164. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  11165. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  11166. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  11167. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  11168. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  11169. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  11170. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  11171. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  11172. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  11173. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  11174. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  11175. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  11176. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  11177. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  11178. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  11179. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  11180. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  11181. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  11182. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  11183. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  11184. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  11185. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  11186. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  11187. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  11188. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  11189. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  11190. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  11191. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  11192. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  11193. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  11194. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  11195. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  11196. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  11197. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  11198. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  11199. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  11200. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  11201. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  11202. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  11203. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  11204. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  11205. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  11206. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  11207. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  11208. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  11209. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  11210. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  11211. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  11212. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  11213. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  11214. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  11215. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  11216. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  11217. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  11218. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  11219. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  11220. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  11221. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  11222. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  11223. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  11224. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  11225. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  11226. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  11227. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  11228. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  11229. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  11230. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  11231. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  11232. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  11233. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  11234. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  11235. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  11236. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  11237. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  11238. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  11239. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  11240. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  11241. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  11242. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  11243. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  11244. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  11245. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  11246. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  11247. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  11248. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  11249. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  11250. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  11251. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  11252. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  11253. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  11254. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  11255. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  11256. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  11257. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  11258. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  11259. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  11260. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  11261. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  11262. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  11263. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  11264. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  11265. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  11266. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  11267. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  11268. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  11269. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  11270. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  11271. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  11272. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  11273. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  11274. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  11275. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  11276. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  11277. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  11278. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  11279. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  11280. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  11281. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  11282. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  11283. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  11284. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  11285. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  11286. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  11287. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  11288. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  11289. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  11290. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  11291. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  11292. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  11293. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  11294. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  11295. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  11296. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  11297. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  11298. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  11299. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  11300. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  11301. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  11302. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  11303. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  11304. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  11305. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  11306. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  11307. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  11308. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  11309. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  11310. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  11311. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  11312. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  11313. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  11314. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  11315. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  11316. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  11317. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  11318. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  11319. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  11320. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  11321. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  11322. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  11323. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  11324. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  11325. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  11326. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  11327. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  11328. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  11329. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  11330. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  11331. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  11332. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  11333. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  11334. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  11335. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  11336. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  11337. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  11338. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  11339. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  11340. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  11341. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  11342. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  11343. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  11344. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  11345. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  11346. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  11347. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  11348. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  11349. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  11350. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  11351. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  11352. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  11353. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  11354. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  11355. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  11356. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  11357. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  11358. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  11359. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  11360. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  11361. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  11362. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  11363. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  11364. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  11365. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  11366. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  11367. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  11368. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  11369. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  11370. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  11371. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  11372. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  11373. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  11374. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  11375. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  11376. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  11377. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  11378. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  11379. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  11380. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  11381. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  11382. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  11383. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  11384. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  11385. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  11386. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  11387. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  11388. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  11389. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  11390. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  11391. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  11392. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  11393. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  11394. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  11395. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  11396. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  11397. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  11398. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  11399. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  11400. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  11401. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  11402. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  11403. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  11404. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  11405. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  11406. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  11407. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  11408. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  11409. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  11410. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  11411. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  11412. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  11413. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  11414. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  11415. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  11416. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  11417. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  11418. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  11419. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  11420. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  11421. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  11422. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  11423. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  11424. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  11425. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  11426. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  11427. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  11428. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  11429. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  11430. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  11431. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  11432. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  11433. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  11434. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  11435. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  11436. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  11437. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  11438. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  11439. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  11440. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  11441. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  11442. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  11443. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  11444. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  11445. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  11446. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  11447. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  11448. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  11449. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  11450. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  11451. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  11452. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  11453. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  11454. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  11455. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  11456. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  11457. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  11458. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  11459. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  11460. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  11461. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  11462. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  11463. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  11464. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  11465. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  11466. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  11467. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  11468. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  11469. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  11470. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  11471. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  11472. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  11473. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  11474. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  11475. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  11476. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  11477. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  11478. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  11479. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  11480. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  11481. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  11482. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  11483. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  11484. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  11485. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  11486. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  11487. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  11488. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  11489. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  11490. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  11491. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  11492. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  11493. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  11494. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  11495. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  11496. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  11497. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  11498. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  11499. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  11500. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  11501. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  11502. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  11503. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  11504. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  11505. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  11506. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  11507. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  11508. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  11509. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  11510. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  11511. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  11512. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  11513. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  11514. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  11515. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  11516. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  11517. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  11518. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  11519. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  11520. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  11521. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  11522. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  11523. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  11524. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  11525. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  11526. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  11527. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  11528. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  11529. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  11530. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  11531. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  11532. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  11533. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  11534. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  11535. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  11536. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  11537. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  11538. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  11539. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  11540. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  11541. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  11542. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  11543. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  11544. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  11545. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  11546. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  11547. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  11548. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  11549. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  11550. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  11551. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  11552. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  11553. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  11554. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  11555. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  11556. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  11557. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  11558. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  11559. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  11560. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  11561. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  11562. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  11563. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  11564. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  11565. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  11566. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  11567. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  11568. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  11569. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  11570. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  11571. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  11572. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  11573. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  11574. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  11575. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  11576. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  11577. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  11578. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  11579. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  11580. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  11581. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  11582. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  11583. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  11584. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  11585. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  11586. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  11587. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  11588. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  11589. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  11590. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  11591. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  11592. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  11593. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  11594. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  11595. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  11596. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  11597. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  11598. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  11599. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  11600. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  11601. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  11602. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  11603. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  11604. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  11605. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  11606. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  11607. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  11608. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  11609. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  11610. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  11611. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  11612. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  11613. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  11614. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  11615. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  11616. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  11617. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  11618. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  11619. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  11620. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  11621. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  11622. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  11623. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  11624. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  11625. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  11626. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  11627. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  11628. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  11629. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  11630. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  11631. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  11632. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  11633. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  11634. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  11635. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  11636. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  11637. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  11638. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  11639. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  11640. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  11641. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  11642. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  11643. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  11644. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  11645. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  11646. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  11647. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  11648. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  11649. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  11650. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  11651. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  11652. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  11653. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  11654. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  11655. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  11656. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  11657. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  11658. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  11659. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  11660. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  11661. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  11662. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  11663. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  11664. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  11665. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  11666. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  11667. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  11668. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  11669. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  11670. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  11671. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  11672. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  11673. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  11674. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  11675. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  11676. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  11677. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  11678. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  11679. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  11680. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  11681. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  11682. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  11683. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  11684. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  11685. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  11686. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  11687. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  11688. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  11689. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  11690. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  11691. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  11692. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  11693. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  11694. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  11695. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  11696. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  11697. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  11698. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  11699. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  11700. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  11701. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  11702. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  11703. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  11704. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  11705. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  11706. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  11707. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  11708. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  11709. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  11710. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  11711. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  11712. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  11713. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  11714. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  11715. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  11716. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  11717. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  11718. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  11719. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  11720. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  11721. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  11722. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  11723. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  11724. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  11725. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  11726. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  11727. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  11728. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  11729. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  11730. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  11731. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  11732. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  11733. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  11734. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  11735. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  11736. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  11737. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  11738. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  11739. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  11740. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  11741. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  11742. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  11743. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  11744. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  11745. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  11746. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  11747. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  11748. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  11749. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  11750. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  11751. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  11752. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  11753. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  11754. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  11755. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  11756. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  11757. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  11758. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  11759. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  11760. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  11761. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  11762. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  11763. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  11764. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  11765. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  11766. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  11767. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  11768. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  11769. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  11770. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  11771. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  11772. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  11773. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  11774. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  11775. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  11776. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  11777. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  11778. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  11779. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  11780. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  11781. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  11782. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  11783. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  11784. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  11785. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  11786. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  11787. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  11788. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  11789. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  11790. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  11791. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  11792. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  11793. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  11794. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  11795. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  11796. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  11797. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  11798. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  11799. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  11800. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  11801. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  11802. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  11803. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  11804. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  11805. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  11806. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  11807. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  11808. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  11809. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  11810. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  11811. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  11812. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  11813. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  11814. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  11815. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  11816. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  11817. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  11818. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  11819. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  11820. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  11821. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  11822. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  11823. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  11824. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  11825. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  11826. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  11827. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  11828. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  11829. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  11830. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  11831. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  11832. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  11833. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  11834. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  11835. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  11836. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  11837. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  11838. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  11839. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  11840. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  11841. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  11842. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  11843. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  11844. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  11845. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  11846. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  11847. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  11848. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  11849. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  11850. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  11851. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  11852. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  11853. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  11854. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  11855. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  11856. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  11857. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  11858. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  11859. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  11860. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  11861. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  11862. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  11863. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  11864. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  11865. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  11866. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  11867. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  11868. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  11869. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  11870. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  11871. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  11872. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  11873. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  11874. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  11875. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  11876. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  11877. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  11878. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  11879. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  11880. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  11881. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  11882. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  11883. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  11884. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  11885. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  11886. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  11887. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  11888. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  11889. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  11890. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  11891. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  11892. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  11893. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  11894. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  11895. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  11896. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  11897. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  11898. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  11899. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  11900. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  11901. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  11902. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  11903. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  11904. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  11905. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  11906. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  11907. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  11908. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  11909. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  11910. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  11911. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  11912. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  11913. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  11914. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  11915. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  11916. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  11917. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  11918. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  11919. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  11920. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  11921. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  11922. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  11923. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  11924. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  11925. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  11926. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  11927. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  11928. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  11929. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  11930. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  11931. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  11932. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  11933. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  11934. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  11935. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  11936. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  11937. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  11938. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  11939. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  11940. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  11941. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  11942. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  11943. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  11944. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  11945. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  11946. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  11947. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  11948. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  11949. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  11950. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  11951. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  11952. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  11953. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  11954. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  11955. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  11956. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  11957. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  11958. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  11959. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  11960. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  11961. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  11962. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  11963. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  11964. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  11965. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  11966. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  11967. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  11968. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  11969. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  11970. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  11971. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  11972. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  11973. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  11974. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  11975. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  11976. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  11977. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  11978. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  11979. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  11980. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  11981. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  11982. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  11983. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  11984. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  11985. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  11986. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  11987. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  11988. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  11989. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  11990. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  11991. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  11992. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  11993. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  11994. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  11995. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  11996. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  11997. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  11998. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  11999. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  12000. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  12001. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  12002. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  12003. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  12004. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  12005. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  12006. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  12007. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  12008. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  12009. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  12010. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  12011. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  12012. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  12013. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  12014. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  12015. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  12016. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  12017. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  12018. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  12019. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  12020. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  12021. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  12022. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  12023. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  12024. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  12025. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  12026. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  12027. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  12028. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  12029. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  12030. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  12031. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  12032. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  12033. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  12034. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  12035. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  12036. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  12037. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  12038. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  12039. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  12040. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  12041. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  12042. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  12043. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  12044. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  12045. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  12046. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  12047. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  12048. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  12049. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  12050. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  12051. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  12052. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  12053. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  12054. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  12055. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  12056. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  12057. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  12058. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  12059. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  12060. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  12061. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  12062. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  12063. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  12064. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  12065. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  12066. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  12067. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  12068. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  12069. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  12070. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  12071. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  12072. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  12073. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  12074. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  12075. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  12076. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  12077. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  12078. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  12079. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  12080. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  12081. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  12082. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  12083. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  12084. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  12085. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  12086. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  12087. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  12088. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  12089. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  12090. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  12091. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  12092. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  12093. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  12094. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  12095. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  12096. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  12097. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  12098. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  12099. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  12100. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  12101. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  12102. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  12103. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  12104. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  12105. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  12106. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  12107. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  12108. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  12109. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  12110. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  12111. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  12112. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  12113. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  12114. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  12115. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  12116. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  12117. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  12118. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  12119. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  12120. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  12121. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  12122. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  12123. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  12124. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  12125. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  12126. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  12127. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  12128. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  12129. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  12130. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  12131. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  12132. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  12133. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  12134. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  12135. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  12136. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  12137. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  12138. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  12139. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  12140. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  12141. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  12142. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  12143. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  12144. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  12145. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  12146. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  12147. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  12148. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  12149. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  12150. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  12151. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  12152. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  12153. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  12154. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  12155. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  12156. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  12157. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  12158. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  12159. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  12160. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  12161. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  12162. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  12163. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  12164. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  12165. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  12166. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  12167. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  12168. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  12169. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  12170. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  12171. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  12172. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  12173. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  12174. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  12175. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  12176. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  12177. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  12178. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  12179. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  12180. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  12181. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  12182. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  12183. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  12184. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  12185. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  12186. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  12187. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  12188. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  12189. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  12190. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  12191. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  12192. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  12193. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  12194. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  12195. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  12196. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  12197. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  12198. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  12199. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  12200. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  12201. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  12202. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  12203. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  12204. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  12205. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  12206. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  12207. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  12208. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  12209. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  12210. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  12211. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  12212. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  12213. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  12214. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  12215. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  12216. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  12217. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  12218. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  12219. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  12220. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  12221. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  12222. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  12223. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  12224. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  12225. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  12226. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  12227. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  12228. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  12229. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  12230. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  12231. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  12232. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  12233. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  12234. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  12235. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  12236. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  12237. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  12238. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  12239. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  12240. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  12241. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  12242. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  12243. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  12244. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  12245. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  12246. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  12247. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  12248. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  12249. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  12250. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  12251. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  12252. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  12253. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  12254. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  12255. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  12256. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  12257. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  12258. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  12259. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  12260. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  12261. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  12262. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  12263. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  12264. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  12265. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  12266. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  12267. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  12268. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  12269. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  12270. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  12271. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  12272. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  12273. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  12274. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  12275. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  12276. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  12277. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  12278. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  12279. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  12280. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  12281. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  12282. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  12283. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  12284. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  12285. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  12286. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  12287. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  12288. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  12289. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  12290. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  12291. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  12292. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  12293. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  12294. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  12295. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  12296. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  12297. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  12298. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  12299. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  12300. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  12301. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  12302. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  12303. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  12304. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  12305. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  12306. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  12307. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  12308. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  12309. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  12310. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  12311. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  12312. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  12313. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  12314. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  12315. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  12316. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  12317. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  12318. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  12319. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  12320. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  12321. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  12322. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  12323. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  12324. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  12325. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  12326. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  12327. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  12328. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  12329. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  12330. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  12331. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  12332. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  12333. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  12334. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  12335. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  12336. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  12337. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  12338. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  12339. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  12340. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  12341. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  12342. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  12343. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  12344. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  12345. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  12346. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  12347. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  12348. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  12349. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  12350. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  12351. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  12352. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  12353. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  12354. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  12355. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  12356. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  12357. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  12358. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  12359. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  12360. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  12361. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  12362. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  12363. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  12364. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  12365. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  12366. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  12367. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  12368. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  12369. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  12370. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  12371. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  12372. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  12373. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  12374. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  12375. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  12376. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  12377. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  12378. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  12379. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  12380. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  12381. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  12382. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  12383. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  12384. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  12385. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  12386. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  12387. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  12388. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  12389. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  12390. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  12391. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  12392. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  12393. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  12394. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  12395. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  12396. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  12397. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  12398. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  12399. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  12400. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  12401. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  12402. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  12403. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  12404. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  12405. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  12406. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  12407. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  12408. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  12409. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  12410. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  12411. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  12412. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  12413. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  12414. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  12415. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  12416. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  12417. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  12418. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  12419. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  12420. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  12421. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  12422. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  12423. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  12424. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  12425. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  12426. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  12427. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  12428. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  12429. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  12430. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  12431. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  12432. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  12433. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  12434. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  12435. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  12436. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  12437. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  12438. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  12439. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  12440. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  12441. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  12442. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  12443. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  12444. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  12445. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  12446. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  12447. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  12448. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  12449. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  12450. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  12451. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  12452. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  12453. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  12454. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  12455. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  12456. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  12457. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  12458. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  12459. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  12460. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  12461. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  12462. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  12463. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  12464. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  12465. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  12466. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  12467. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  12468. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  12469. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  12470. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  12471. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  12472. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  12473. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  12474. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  12475. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  12476. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  12477. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  12478. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  12479. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  12480. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  12481. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  12482. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  12483. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  12484. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  12485. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  12486. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  12487. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  12488. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  12489. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  12490. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  12491. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  12492. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  12493. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  12494. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  12495. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  12496. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  12497. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  12498. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  12499. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  12500. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  12501. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  12502. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  12503. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  12504. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  12505. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  12506. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  12507. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  12508. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  12509. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  12510. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  12511. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  12512. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  12513. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  12514. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  12515. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  12516. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  12517. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  12518. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  12519. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  12520. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  12521. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  12522. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  12523. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  12524. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  12525. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  12526. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  12527. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  12528. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  12529. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  12530. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  12531. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  12532. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  12533. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  12534. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  12535. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  12536. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  12537. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  12538. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  12539. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  12540. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  12541. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  12542. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  12543. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  12544. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  12545. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  12546. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  12547. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  12548. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  12549. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  12550. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  12551. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  12552. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  12553. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  12554. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  12555. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  12556. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  12557. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  12558. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  12559. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  12560. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  12561. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  12562. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  12563. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  12564. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  12565. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  12566. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  12567. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  12568. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  12569. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  12570. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  12571. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  12572. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  12573. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  12574. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  12575. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  12576. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  12577. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  12578. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  12579. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  12580. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  12581. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  12582. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  12583. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  12584. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  12585. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  12586. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  12587. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  12588. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  12589. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  12590. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  12591. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  12592. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  12593. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  12594. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  12595. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  12596. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  12597. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  12598. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  12599. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  12600. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  12601. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  12602. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  12603. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  12604. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  12605. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  12606. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  12607. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  12608. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  12609. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  12610. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  12611. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  12612. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  12613. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  12614. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  12615. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  12616. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  12617. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  12618. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  12619. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  12620. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  12621. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  12622. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  12623. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  12624. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  12625. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  12626. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  12627. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  12628. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  12629. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  12630. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  12631. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  12632. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  12633. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  12634. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  12635. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  12636. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  12637. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  12638. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  12639. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  12640. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  12641. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  12642. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  12643. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  12644. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  12645. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  12646. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  12647. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  12648. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  12649. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  12650. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  12651. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  12652. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  12653. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  12654. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  12655. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  12656. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  12657. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  12658. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  12659. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  12660. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  12661. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  12662. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  12663. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  12664. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  12665. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  12666. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  12667. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  12668. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  12669. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  12670. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  12671. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  12672. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  12673. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  12674. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  12675. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  12676. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  12677. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  12678. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  12679. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  12680. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  12681. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  12682. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  12683. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  12684. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  12685. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  12686. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  12687. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  12688. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  12689. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  12690. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  12691. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  12692. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  12693. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  12694. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  12695. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  12696. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  12697. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  12698. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  12699. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  12700. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  12701. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  12702. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  12703. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  12704. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  12705. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  12706. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  12707. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  12708. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  12709. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  12710. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  12711. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  12712. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  12713. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  12714. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  12715. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  12716. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  12717. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  12718. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  12719. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  12720. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  12721. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  12722. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  12723. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  12724. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  12725. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  12726. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  12727. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  12728. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  12729. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  12730. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  12731. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  12732. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  12733. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  12734. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  12735. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  12736. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  12737. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  12738. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  12739. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  12740. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  12741. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  12742. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  12743. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  12744. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  12745. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  12746. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  12747. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  12748. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  12749. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  12750. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  12751. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  12752. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  12753. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  12754. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  12755. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  12756. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  12757. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  12758. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  12759. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  12760. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  12761. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  12762. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  12763. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  12764. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  12765. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  12766. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  12767. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  12768. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  12769. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  12770. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  12771. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  12772. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  12773. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  12774. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  12775. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  12776. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  12777. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  12778. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  12779. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  12780. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  12781. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  12782. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  12783. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  12784. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  12785. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  12786. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  12787. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  12788. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  12789. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  12790. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  12791. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  12792. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  12793. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  12794. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  12795. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  12796. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  12797. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  12798. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  12799. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  12800. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  12801. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  12802. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  12803. {f: 7, c: 19887}]
  12804. };
  12805. var ARCFourCipher = (function ARCFourCipherClosure() {
  12806. function ARCFourCipher(key) {
  12807. this.a = 0;
  12808. this.b = 0;
  12809. var s = new Uint8Array(256);
  12810. var i, j = 0, tmp, keyLength = key.length;
  12811. for (i = 0; i < 256; ++i)
  12812. s[i] = i;
  12813. for (i = 0; i < 256; ++i) {
  12814. tmp = s[i];
  12815. j = (j + tmp + key[i % keyLength]) & 0xFF;
  12816. s[i] = s[j];
  12817. s[j] = tmp;
  12818. }
  12819. this.s = s;
  12820. }
  12821. ARCFourCipher.prototype = {
  12822. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  12823. var i, n = data.length, tmp, tmp2;
  12824. var a = this.a, b = this.b, s = this.s;
  12825. var output = new Uint8Array(n);
  12826. for (i = 0; i < n; ++i) {
  12827. a = (a + 1) & 0xFF;
  12828. tmp = s[a];
  12829. b = (b + tmp) & 0xFF;
  12830. tmp2 = s[b];
  12831. s[a] = tmp2;
  12832. s[b] = tmp;
  12833. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  12834. }
  12835. this.a = a;
  12836. this.b = b;
  12837. return output;
  12838. }
  12839. };
  12840. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  12841. return ARCFourCipher;
  12842. })();
  12843. var calculateMD5 = (function calculateMD5Closure() {
  12844. var r = new Uint8Array([
  12845. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  12846. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  12847. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  12848. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  12849. var k = new Int32Array([
  12850. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  12851. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  12852. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  12853. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  12854. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  12855. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  12856. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  12857. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  12858. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  12859. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  12860. -145523070, -1120210379, 718787259, -343485551]);
  12861. function hash(data, offset, length) {
  12862. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  12863. // pre-processing
  12864. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  12865. var padded = new Uint8Array(paddedLength);
  12866. var i, j, n;
  12867. for (i = 0; i < length; ++i)
  12868. padded[i] = data[offset++];
  12869. padded[i++] = 0x80;
  12870. n = paddedLength - 8;
  12871. while (i < n)
  12872. padded[i++] = 0;
  12873. padded[i++] = (length << 3) & 0xFF;
  12874. padded[i++] = (length >> 5) & 0xFF;
  12875. padded[i++] = (length >> 13) & 0xFF;
  12876. padded[i++] = (length >> 21) & 0xFF;
  12877. padded[i++] = (length >>> 29) & 0xFF;
  12878. padded[i++] = 0;
  12879. padded[i++] = 0;
  12880. padded[i++] = 0;
  12881. // chunking
  12882. // TODO ArrayBuffer ?
  12883. var w = new Int32Array(16);
  12884. for (i = 0; i < paddedLength;) {
  12885. for (j = 0; j < 16; ++j, i += 4) {
  12886. w[j] = (padded[i] | (padded[i + 1] << 8) |
  12887. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  12888. }
  12889. var a = h0, b = h1, c = h2, d = h3, f, g;
  12890. for (j = 0; j < 64; ++j) {
  12891. if (j < 16) {
  12892. f = (b & c) | ((~b) & d);
  12893. g = j;
  12894. } else if (j < 32) {
  12895. f = (d & b) | ((~d) & c);
  12896. g = (5 * j + 1) & 15;
  12897. } else if (j < 48) {
  12898. f = b ^ c ^ d;
  12899. g = (3 * j + 5) & 15;
  12900. } else {
  12901. f = c ^ (b | (~d));
  12902. g = (7 * j) & 15;
  12903. }
  12904. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  12905. d = c;
  12906. c = b;
  12907. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  12908. a = tmp;
  12909. }
  12910. h0 = (h0 + a) | 0;
  12911. h1 = (h1 + b) | 0;
  12912. h2 = (h2 + c) | 0;
  12913. h3 = (h3 + d) | 0;
  12914. }
  12915. return new Uint8Array([
  12916. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  12917. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  12918. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  12919. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  12920. ]);
  12921. }
  12922. return hash;
  12923. })();
  12924. var NullCipher = (function NullCipherClosure() {
  12925. function NullCipher() {
  12926. }
  12927. NullCipher.prototype = {
  12928. decryptBlock: function NullCipher_decryptBlock(data) {
  12929. return data;
  12930. }
  12931. };
  12932. return NullCipher;
  12933. })();
  12934. var AES128Cipher = (function AES128CipherClosure() {
  12935. var rcon = new Uint8Array([
  12936. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  12937. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  12938. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  12939. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  12940. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  12941. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  12942. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  12943. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  12944. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  12945. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  12946. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  12947. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  12948. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  12949. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  12950. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  12951. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  12952. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  12953. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  12954. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  12955. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  12956. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  12957. 0x74, 0xe8, 0xcb, 0x8d]);
  12958. var s = new Uint8Array([
  12959. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  12960. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  12961. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  12962. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  12963. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  12964. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  12965. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  12966. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  12967. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  12968. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  12969. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  12970. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  12971. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  12972. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  12973. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  12974. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  12975. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  12976. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  12977. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  12978. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  12979. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  12980. 0xb0, 0x54, 0xbb, 0x16]);
  12981. var inv_s = new Uint8Array([
  12982. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  12983. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  12984. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  12985. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  12986. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  12987. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  12988. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  12989. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  12990. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  12991. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  12992. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  12993. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  12994. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  12995. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  12996. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  12997. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  12998. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  12999. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13000. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13001. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13002. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13003. 0x55, 0x21, 0x0c, 0x7d]);
  13004. var mix = new Uint32Array([
  13005. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13006. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13007. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13008. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13009. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13010. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13011. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13012. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13013. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13014. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13015. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13016. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13017. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13018. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13019. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13020. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13021. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13022. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13023. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13024. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13025. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13026. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13027. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13028. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13029. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13030. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13031. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13032. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13033. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13034. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13035. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13036. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13037. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13038. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13039. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13040. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13041. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13042. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13043. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13044. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13045. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13046. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13047. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13048. function expandKey128(cipherKey) {
  13049. var b = 176, result = new Uint8Array(b);
  13050. result.set(cipherKey);
  13051. for (var j = 16, i = 1; j < b; ++i) {
  13052. // RotWord
  13053. var t1 = result[j - 3], t2 = result[j - 2],
  13054. t3 = result[j - 1], t4 = result[j - 4];
  13055. // SubWord
  13056. t1 = s[t1]; t2 = s[t2]; t3 = s[t3]; t4 = s[t4];
  13057. // Rcon
  13058. t1 = t1 ^ rcon[i];
  13059. for (var n = 0; n < 4; ++n) {
  13060. result[j] = (t1 ^= result[j - 16]); j++;
  13061. result[j] = (t2 ^= result[j - 16]); j++;
  13062. result[j] = (t3 ^= result[j - 16]); j++;
  13063. result[j] = (t4 ^= result[j - 16]); j++;
  13064. }
  13065. }
  13066. return result;
  13067. }
  13068. function decrypt128(input, key) {
  13069. var state = new Uint8Array(16);
  13070. state.set(input);
  13071. var i, j, k;
  13072. var t, u, v;
  13073. // AddRoundKey
  13074. for (j = 0, k = 160; j < 16; ++j, ++k)
  13075. state[j] ^= key[k];
  13076. for (i = 9; i >= 1; --i) {
  13077. // InvShiftRows
  13078. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13079. state[5] = state[1]; state[1] = t;
  13080. t = state[14]; u = state[10]; state[14] = state[6];
  13081. state[10] = state[2]; state[6] = t; state[2] = u;
  13082. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13083. state[11] = t; state[7] = u; state[3] = v;
  13084. // InvSubBytes
  13085. for (j = 0; j < 16; ++j)
  13086. state[j] = inv_s[state[j]];
  13087. // AddRoundKey
  13088. for (j = 0, k = i * 16; j < 16; ++j, ++k)
  13089. state[j] ^= key[k];
  13090. // InvMixColumns
  13091. for (j = 0; j < 16; j += 4) {
  13092. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13093. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13094. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13095. (s3 >>> 24) ^ (s3 << 8));
  13096. state[j] = (t >>> 24) & 0xFF;
  13097. state[j + 1] = (t >> 16) & 0xFF;
  13098. state[j + 2] = (t >> 8) & 0xFF;
  13099. state[j + 3] = t & 0xFF;
  13100. }
  13101. }
  13102. // InvShiftRows
  13103. t = state[13]; state[13] = state[9]; state[9] = state[5];
  13104. state[5] = state[1]; state[1] = t;
  13105. t = state[14]; u = state[10]; state[14] = state[6];
  13106. state[10] = state[2]; state[6] = t; state[2] = u;
  13107. t = state[15]; u = state[11]; v = state[7]; state[15] = state[3];
  13108. state[11] = t; state[7] = u; state[3] = v;
  13109. for (j = 0; j < 16; ++j) {
  13110. // InvSubBytes
  13111. state[j] = inv_s[state[j]];
  13112. // AddRoundKey
  13113. state[j] ^= key[j];
  13114. }
  13115. return state;
  13116. }
  13117. function AES128Cipher(key) {
  13118. this.key = expandKey128(key);
  13119. this.buffer = new Uint8Array(16);
  13120. this.bufferPosition = 0;
  13121. }
  13122. function decryptBlock2(data, finalize) {
  13123. var i, j, ii, sourceLength = data.length,
  13124. buffer = this.buffer, bufferLength = this.bufferPosition,
  13125. result = [], iv = this.iv;
  13126. for (i = 0; i < sourceLength; ++i) {
  13127. buffer[bufferLength] = data[i];
  13128. ++bufferLength;
  13129. if (bufferLength < 16)
  13130. continue;
  13131. // buffer is full, decrypting
  13132. var plain = decrypt128(buffer, this.key);
  13133. // xor-ing the IV vector to get plain text
  13134. for (j = 0; j < 16; ++j)
  13135. plain[j] ^= iv[j];
  13136. iv = buffer;
  13137. result.push(plain);
  13138. buffer = new Uint8Array(16);
  13139. bufferLength = 0;
  13140. }
  13141. // saving incomplete buffer
  13142. this.buffer = buffer;
  13143. this.bufferLength = bufferLength;
  13144. this.iv = iv;
  13145. if (result.length === 0) {
  13146. return new Uint8Array([]);
  13147. }
  13148. // combining plain text blocks into one
  13149. var outputLength = 16 * result.length;
  13150. if (finalize) {
  13151. // undo a padding that is described in RFC 2898
  13152. var lastBlock = result[result.length - 1];
  13153. outputLength -= lastBlock[15];
  13154. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13155. }
  13156. var output = new Uint8Array(outputLength);
  13157. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16)
  13158. output.set(result[i], j);
  13159. return output;
  13160. }
  13161. AES128Cipher.prototype = {
  13162. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13163. var i, sourceLength = data.length;
  13164. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13165. // waiting for IV values -- they are at the start of the stream
  13166. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength)
  13167. buffer[bufferLength] = data[i];
  13168. if (bufferLength < 16) {
  13169. // need more data
  13170. this.bufferLength = bufferLength;
  13171. return new Uint8Array([]);
  13172. }
  13173. this.iv = buffer;
  13174. this.buffer = new Uint8Array(16);
  13175. this.bufferLength = 0;
  13176. // starting decryption
  13177. this.decryptBlock = decryptBlock2;
  13178. return this.decryptBlock(data.subarray(16), finalize);
  13179. }
  13180. };
  13181. return AES128Cipher;
  13182. })();
  13183. var CipherTransform = (function CipherTransformClosure() {
  13184. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  13185. this.stringCipherConstructor = stringCipherConstructor;
  13186. this.streamCipherConstructor = streamCipherConstructor;
  13187. }
  13188. CipherTransform.prototype = {
  13189. createStream: function CipherTransform_createStream(stream) {
  13190. var cipher = new this.streamCipherConstructor();
  13191. return new DecryptStream(stream,
  13192. function cipherTransformDecryptStream(data, finalize) {
  13193. return cipher.decryptBlock(data, finalize);
  13194. }
  13195. );
  13196. },
  13197. decryptString: function CipherTransform_decryptString(s) {
  13198. var cipher = new this.stringCipherConstructor();
  13199. var data = stringToBytes(s);
  13200. data = cipher.decryptBlock(data, true);
  13201. return bytesToString(data);
  13202. }
  13203. };
  13204. return CipherTransform;
  13205. })();
  13206. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  13207. var defaultPasswordBytes = new Uint8Array([
  13208. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  13209. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  13210. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  13211. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  13212. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  13213. flags, revision, keyLength, encryptMetadata) {
  13214. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  13215. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  13216. if (password) {
  13217. n = Math.min(32, password.length);
  13218. for (; i < n; ++i)
  13219. hashData[i] = password[i];
  13220. }
  13221. j = 0;
  13222. while (i < 32) {
  13223. hashData[i++] = defaultPasswordBytes[j++];
  13224. }
  13225. // as now the padded password in the hashData[0..i]
  13226. for (j = 0, n = ownerPassword.length; j < n; ++j)
  13227. hashData[i++] = ownerPassword[j];
  13228. hashData[i++] = flags & 0xFF;
  13229. hashData[i++] = (flags >> 8) & 0xFF;
  13230. hashData[i++] = (flags >> 16) & 0xFF;
  13231. hashData[i++] = (flags >>> 24) & 0xFF;
  13232. for (j = 0, n = fileId.length; j < n; ++j)
  13233. hashData[i++] = fileId[j];
  13234. if (revision >= 4 && !encryptMetadata) {
  13235. hashData[i++] = 0xFF;
  13236. hashData[i++] = 0xFF;
  13237. hashData[i++] = 0xFF;
  13238. hashData[i++] = 0xFF;
  13239. }
  13240. var hash = calculateMD5(hashData, 0, i);
  13241. var keyLengthInBytes = keyLength >> 3;
  13242. if (revision >= 3) {
  13243. for (j = 0; j < 50; ++j) {
  13244. hash = calculateMD5(hash, 0, keyLengthInBytes);
  13245. }
  13246. }
  13247. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  13248. var cipher, checkData;
  13249. if (revision >= 3) {
  13250. for (i = 0; i < 32; ++i)
  13251. hashData[i] = defaultPasswordBytes[i];
  13252. for (j = 0, n = fileId.length; j < n; ++j)
  13253. hashData[i++] = fileId[j];
  13254. cipher = new ARCFourCipher(encryptionKey);
  13255. var checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  13256. n = encryptionKey.length;
  13257. var derivedKey = new Uint8Array(n), k;
  13258. for (j = 1; j <= 19; ++j) {
  13259. for (k = 0; k < n; ++k)
  13260. derivedKey[k] = encryptionKey[k] ^ j;
  13261. cipher = new ARCFourCipher(derivedKey);
  13262. checkData = cipher.encryptBlock(checkData);
  13263. }
  13264. for (j = 0, n = checkData.length; j < n; ++j) {
  13265. if (userPassword[j] != checkData[j])
  13266. return null;
  13267. }
  13268. } else {
  13269. cipher = new ARCFourCipher(encryptionKey);
  13270. checkData = cipher.encryptBlock(defaultPasswordBytes);
  13271. for (j = 0, n = checkData.length; j < n; ++j) {
  13272. if (userPassword[j] != checkData[j])
  13273. return null;
  13274. }
  13275. }
  13276. return encryptionKey;
  13277. }
  13278. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  13279. var hashData = new Uint8Array(32), i = 0, j, n;
  13280. n = Math.min(32, password.length);
  13281. for (; i < n; ++i)
  13282. hashData[i] = password[i];
  13283. j = 0;
  13284. while (i < 32) {
  13285. hashData[i++] = defaultPasswordBytes[j++];
  13286. }
  13287. var hash = calculateMD5(hashData, 0, i);
  13288. var keyLengthInBytes = keyLength >> 3;
  13289. if (revision >= 3) {
  13290. for (j = 0; j < 50; ++j) {
  13291. hash = calculateMD5(hash, 0, hash.length);
  13292. }
  13293. }
  13294. var cipher, userPassword;
  13295. if (revision >= 3) {
  13296. userPassword = ownerPassword;
  13297. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  13298. for (j = 19; j >= 0; j--) {
  13299. for (k = 0; k < keyLengthInBytes; ++k)
  13300. derivedKey[k] = hash[k] ^ j;
  13301. cipher = new ARCFourCipher(derivedKey);
  13302. userPassword = cipher.encryptBlock(userPassword);
  13303. }
  13304. } else {
  13305. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  13306. userPassword = cipher.encryptBlock(ownerPassword);
  13307. }
  13308. return userPassword;
  13309. }
  13310. var identityName = new Name('Identity');
  13311. function CipherTransformFactory(dict, fileId, password) {
  13312. var filter = dict.get('Filter');
  13313. if (!isName(filter) || filter.name != 'Standard')
  13314. error('unknown encryption method');
  13315. this.dict = dict;
  13316. var algorithm = dict.get('V');
  13317. if (!isInt(algorithm) ||
  13318. (algorithm != 1 && algorithm != 2 && algorithm != 4))
  13319. error('unsupported encryption algorithm');
  13320. this.algorithm = algorithm;
  13321. var keyLength = dict.get('Length') || 40;
  13322. if (!isInt(keyLength) ||
  13323. keyLength < 40 || (keyLength % 8) !== 0)
  13324. error('invalid key length');
  13325. // prepare keys
  13326. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  13327. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  13328. var flags = dict.get('P');
  13329. var revision = dict.get('R');
  13330. var encryptMetadata = algorithm == 4 && // meaningful when V is 4
  13331. dict.get('EncryptMetadata') !== false; // makes true as default value
  13332. this.encryptMetadata = encryptMetadata;
  13333. var fileIdBytes = stringToBytes(fileId);
  13334. var passwordBytes;
  13335. if (password)
  13336. passwordBytes = stringToBytes(password);
  13337. var encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  13338. ownerPassword, userPassword, flags,
  13339. revision, keyLength, encryptMetadata);
  13340. if (!encryptionKey && !password) {
  13341. throw new PasswordException('No password given',
  13342. PasswordResponses.NEED_PASSWORD);
  13343. } else if (!encryptionKey && password) {
  13344. // Attempting use the password as an owner password
  13345. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  13346. revision, keyLength);
  13347. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  13348. ownerPassword, userPassword, flags,
  13349. revision, keyLength, encryptMetadata);
  13350. }
  13351. if (!encryptionKey)
  13352. throw new PasswordException('Incorrect Password',
  13353. PasswordResponses.INCORRECT_PASSWORD);
  13354. this.encryptionKey = encryptionKey;
  13355. if (algorithm == 4) {
  13356. this.cf = dict.get('CF');
  13357. this.stmf = dict.get('StmF') || identityName;
  13358. this.strf = dict.get('StrF') || identityName;
  13359. this.eff = dict.get('EFF') || this.strf;
  13360. }
  13361. }
  13362. function buildObjectKey(num, gen, encryptionKey, isAes) {
  13363. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  13364. for (i = 0, n = encryptionKey.length; i < n; ++i)
  13365. key[i] = encryptionKey[i];
  13366. key[i++] = num & 0xFF;
  13367. key[i++] = (num >> 8) & 0xFF;
  13368. key[i++] = (num >> 16) & 0xFF;
  13369. key[i++] = gen & 0xFF;
  13370. key[i++] = (gen >> 8) & 0xFF;
  13371. if (isAes) {
  13372. key[i++] = 0x73;
  13373. key[i++] = 0x41;
  13374. key[i++] = 0x6C;
  13375. key[i++] = 0x54;
  13376. }
  13377. var hash = calculateMD5(key, 0, i);
  13378. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  13379. }
  13380. function buildCipherConstructor(cf, name, num, gen, key) {
  13381. var cryptFilter = cf.get(name.name);
  13382. var cfm;
  13383. if (cryptFilter !== null && cryptFilter !== undefined)
  13384. cfm = cryptFilter.get('CFM');
  13385. if (!cfm || cfm.name == 'None') {
  13386. return function cipherTransformFactoryBuildCipherConstructorNone() {
  13387. return new NullCipher();
  13388. };
  13389. }
  13390. if ('V2' == cfm.name) {
  13391. return function cipherTransformFactoryBuildCipherConstructorV2() {
  13392. return new ARCFourCipher(
  13393. buildObjectKey(num, gen, key, false));
  13394. };
  13395. }
  13396. if ('AESV2' == cfm.name) {
  13397. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  13398. return new AES128Cipher(
  13399. buildObjectKey(num, gen, key, true));
  13400. };
  13401. }
  13402. error('Unknown crypto method');
  13403. }
  13404. CipherTransformFactory.prototype = {
  13405. createCipherTransform:
  13406. function CipherTransformFactory_createCipherTransform(num, gen) {
  13407. if (this.algorithm == 4) {
  13408. return new CipherTransform(
  13409. buildCipherConstructor(this.cf, this.stmf,
  13410. num, gen, this.encryptionKey),
  13411. buildCipherConstructor(this.cf, this.strf,
  13412. num, gen, this.encryptionKey));
  13413. }
  13414. // algorithms 1 and 2
  13415. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  13416. var cipherConstructor = function buildCipherCipherConstructor() {
  13417. return new ARCFourCipher(key);
  13418. };
  13419. return new CipherTransform(cipherConstructor, cipherConstructor);
  13420. }
  13421. };
  13422. return CipherTransformFactory;
  13423. })();
  13424. var PatternType = {
  13425. AXIAL: 2,
  13426. RADIAL: 3
  13427. };
  13428. var Pattern = (function PatternClosure() {
  13429. // Constructor should define this.getPattern
  13430. function Pattern() {
  13431. error('should not call Pattern constructor');
  13432. }
  13433. Pattern.prototype = {
  13434. // Input: current Canvas context
  13435. // Output: the appropriate fillStyle or strokeStyle
  13436. getPattern: function Pattern_getPattern(ctx) {
  13437. error('Should not call Pattern.getStyle: ' + ctx);
  13438. }
  13439. };
  13440. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  13441. res) {
  13442. var dict = isStream(shading) ? shading.dict : shading;
  13443. var type = dict.get('ShadingType');
  13444. switch (type) {
  13445. case PatternType.AXIAL:
  13446. case PatternType.RADIAL:
  13447. // Both radial and axial shadings are handled by RadialAxial shading.
  13448. return new Shadings.RadialAxial(dict, matrix, xref, res);
  13449. default:
  13450. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  13451. return new Shadings.Dummy();
  13452. }
  13453. };
  13454. return Pattern;
  13455. })();
  13456. var Shadings = {};
  13457. // A small number to offset the first/last color stops so we can insert ones to
  13458. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  13459. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  13460. // internally so we have to go bigger.
  13461. Shadings.SMALL_NUMBER = 1e-2;
  13462. // Radial and axial shading have very similar implementations
  13463. // If needed, the implementations can be broken into two classes
  13464. Shadings.RadialAxial = (function RadialAxialClosure() {
  13465. function RadialAxial(dict, matrix, xref, res) {
  13466. this.matrix = matrix;
  13467. this.coordsArr = dict.get('Coords');
  13468. this.shadingType = dict.get('ShadingType');
  13469. this.type = 'Pattern';
  13470. var cs = dict.get('ColorSpace', 'CS');
  13471. cs = ColorSpace.parse(cs, xref, res);
  13472. this.cs = cs;
  13473. var t0 = 0.0, t1 = 1.0;
  13474. if (dict.has('Domain')) {
  13475. var domainArr = dict.get('Domain');
  13476. t0 = domainArr[0];
  13477. t1 = domainArr[1];
  13478. }
  13479. var extendStart = false, extendEnd = false;
  13480. if (dict.has('Extend')) {
  13481. var extendArr = dict.get('Extend');
  13482. extendStart = extendArr[0];
  13483. extendEnd = extendArr[1];
  13484. }
  13485. if (this.shadingType === PatternType.RADIAL &&
  13486. (!extendStart || !extendEnd)) {
  13487. // Radial gradient only currently works if either circle is fully within
  13488. // the other circle.
  13489. var x1 = this.coordsArr[0];
  13490. var y1 = this.coordsArr[1];
  13491. var r1 = this.coordsArr[2];
  13492. var x2 = this.coordsArr[3];
  13493. var y2 = this.coordsArr[4];
  13494. var r2 = this.coordsArr[5];
  13495. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  13496. if (r1 <= r2 + distance &&
  13497. r2 <= r1 + distance) {
  13498. warn('Unsupported radial gradient.');
  13499. }
  13500. }
  13501. this.extendStart = extendStart;
  13502. this.extendEnd = extendEnd;
  13503. var fnObj = dict.get('Function');
  13504. var fn;
  13505. if (isArray(fnObj)) {
  13506. var fnArray = [];
  13507. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  13508. var obj = xref.fetchIfRef(fnObj[j]);
  13509. if (!isPDFFunction(obj)) {
  13510. error('Invalid function');
  13511. }
  13512. fnArray.push(PDFFunction.parse(xref, obj));
  13513. }
  13514. fn = function radialAxialColorFunction(arg) {
  13515. var out = [];
  13516. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  13517. out.push(fnArray[i](arg)[0]);
  13518. }
  13519. return out;
  13520. };
  13521. } else {
  13522. if (!isPDFFunction(fnObj)) {
  13523. error('Invalid function');
  13524. }
  13525. fn = PDFFunction.parse(xref, fnObj);
  13526. }
  13527. // 10 samples seems good enough for now, but probably won't work
  13528. // if there are sharp color changes. Ideally, we would implement
  13529. // the spec faithfully and add lossless optimizations.
  13530. var diff = t1 - t0;
  13531. var step = diff / 10;
  13532. var colorStops = this.colorStops = [];
  13533. // Protect against bad domains so we don't end up in an infinte loop below.
  13534. if (t0 >= t1 || step <= 0) {
  13535. // Acrobat doesn't seem to handle these cases so we'll ignore for
  13536. // now.
  13537. info('Bad shading domain.');
  13538. return;
  13539. }
  13540. for (var i = t0; i <= t1; i += step) {
  13541. var rgbColor = cs.getRgb(fn([i]), 0);
  13542. var cssColor = Util.makeCssRgb(rgbColor);
  13543. colorStops.push([(i - t0) / diff, cssColor]);
  13544. }
  13545. var background = 'transparent';
  13546. if (dict.has('Background')) {
  13547. var rgbColor = cs.getRgb(dict.get('Background'), 0);
  13548. background = Util.makeCssRgb(rgbColor);
  13549. }
  13550. if (!extendStart) {
  13551. // Insert a color stop at the front and offset the first real color stop
  13552. // so it doesn't conflict with the one we insert.
  13553. colorStops.unshift([0, background]);
  13554. colorStops[1][0] += Shadings.SMALL_NUMBER;
  13555. }
  13556. if (!extendEnd) {
  13557. // Same idea as above in extendStart but for the end.
  13558. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  13559. colorStops.push([1, background]);
  13560. }
  13561. this.colorStops = colorStops;
  13562. }
  13563. RadialAxial.prototype = {
  13564. getIR: function RadialAxial_getIR() {
  13565. var coordsArr = this.coordsArr;
  13566. var shadingType = this.shadingType;
  13567. var type, p0, p1, r0, r1;
  13568. if (shadingType == PatternType.AXIAL) {
  13569. p0 = [coordsArr[0], coordsArr[1]];
  13570. p1 = [coordsArr[2], coordsArr[3]];
  13571. r0 = null;
  13572. r1 = null;
  13573. type = 'axial';
  13574. } else if (shadingType == PatternType.RADIAL) {
  13575. p0 = [coordsArr[0], coordsArr[1]];
  13576. p1 = [coordsArr[3], coordsArr[4]];
  13577. r0 = coordsArr[2];
  13578. r1 = coordsArr[5];
  13579. type = 'radial';
  13580. } else {
  13581. error('getPattern type unknown: ' + shadingType);
  13582. }
  13583. var matrix = this.matrix;
  13584. if (matrix) {
  13585. p0 = Util.applyTransform(p0, matrix);
  13586. p1 = Util.applyTransform(p1, matrix);
  13587. }
  13588. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  13589. }
  13590. };
  13591. return RadialAxial;
  13592. })();
  13593. Shadings.Dummy = (function DummyClosure() {
  13594. function Dummy() {
  13595. this.type = 'Pattern';
  13596. }
  13597. Dummy.prototype = {
  13598. getIR: function Dummy_getIR() {
  13599. return ['Dummy'];
  13600. }
  13601. };
  13602. return Dummy;
  13603. })();
  13604. function getTilingPatternIR(operatorList, dict, args) {
  13605. var matrix = dict.get('Matrix');
  13606. var bbox = dict.get('BBox');
  13607. var xstep = dict.get('XStep');
  13608. var ystep = dict.get('YStep');
  13609. var paintType = dict.get('PaintType');
  13610. var tilingType = dict.get('TilingType');
  13611. return [
  13612. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  13613. paintType, tilingType
  13614. ];
  13615. }
  13616. var PartialEvaluator = (function PartialEvaluatorClosure() {
  13617. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  13618. uniquePrefix, idCounters, fontCache) {
  13619. this.state = new EvalState();
  13620. this.stateStack = [];
  13621. this.pdfManager = pdfManager;
  13622. this.xref = xref;
  13623. this.handler = handler;
  13624. this.pageIndex = pageIndex;
  13625. this.uniquePrefix = uniquePrefix;
  13626. this.idCounters = idCounters;
  13627. this.fontCache = fontCache;
  13628. }
  13629. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  13630. PartialEvaluator.prototype = {
  13631. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  13632. if (!isDict(resources)) {
  13633. return false;
  13634. }
  13635. var nodes = [resources];
  13636. while (nodes.length) {
  13637. var node = nodes.shift();
  13638. // First check the current resources for blend modes.
  13639. var graphicStates = node.get('ExtGState');
  13640. if (isDict(graphicStates)) {
  13641. graphicStates = graphicStates.getAll();
  13642. for (var key in graphicStates) {
  13643. var graphicState = graphicStates[key];
  13644. var bm = graphicState['BM'];
  13645. if (isName(bm) && bm.name !== 'Normal') {
  13646. return true;
  13647. }
  13648. }
  13649. }
  13650. // Descend into the XObjects to look for more resources and blend modes.
  13651. var xObjects = node.get('XObject');
  13652. if (!isDict(xObjects)) {
  13653. continue;
  13654. }
  13655. xObjects = xObjects.getAll();
  13656. for (var key in xObjects) {
  13657. var xObject = xObjects[key];
  13658. if (!isStream(xObject)) {
  13659. continue;
  13660. }
  13661. var xResources = xObject.dict.get('Resources');
  13662. if (isDict(xResources)) {
  13663. nodes.push(xResources);
  13664. }
  13665. }
  13666. }
  13667. return false;
  13668. },
  13669. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  13670. xobj, smask,
  13671. operatorList,
  13672. state) {
  13673. var self = this;
  13674. var matrix = xobj.dict.get('Matrix');
  13675. var bbox = xobj.dict.get('BBox');
  13676. var group = xobj.dict.get('Group');
  13677. if (group) {
  13678. var groupOptions = {
  13679. matrix: matrix,
  13680. bbox: bbox,
  13681. smask: smask,
  13682. isolated: false,
  13683. knockout: false
  13684. };
  13685. var groupSubtype = group.get('S');
  13686. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  13687. groupOptions.isolated = group.get('I') || false;
  13688. groupOptions.knockout = group.get('K') || false;
  13689. var colorSpace = group.get('CS');
  13690. groupOptions.colorSpace = colorSpace ?
  13691. ColorSpace.parseToIR(colorSpace, this.xref, resources) : null;
  13692. }
  13693. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  13694. }
  13695. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  13696. this.getOperatorList(xobj, xobj.dict.get('Resources') || resources,
  13697. operatorList, state);
  13698. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  13699. if (group) {
  13700. operatorList.addOp(OPS.endGroup, [groupOptions]);
  13701. }
  13702. },
  13703. buildPaintImageXObject: function PartialEvaluator_buildPaintImageXObject(
  13704. resources, image, inline, operatorList) {
  13705. var self = this;
  13706. var dict = image.dict;
  13707. var w = dict.get('Width', 'W');
  13708. var h = dict.get('Height', 'H');
  13709. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  13710. warn('Image exceeded maximum allowed size and was removed.');
  13711. return;
  13712. }
  13713. var imageMask = dict.get('ImageMask', 'IM') || false;
  13714. if (imageMask) {
  13715. // This depends on a tmpCanvas beeing filled with the
  13716. // current fillStyle, such that processing the pixel
  13717. // data can't be done here. Instead of creating a
  13718. // complete PDFImage, only read the information needed
  13719. // for later.
  13720. var width = dict.get('Width', 'W');
  13721. var height = dict.get('Height', 'H');
  13722. var bitStrideLength = (width + 7) >> 3;
  13723. var imgArray = image.getBytes(bitStrideLength * height);
  13724. var decode = dict.get('Decode', 'D');
  13725. var inverseDecode = !!decode && decode[0] > 0;
  13726. operatorList.addOp(OPS.paintImageMaskXObject,
  13727. [PDFImage.createMask(imgArray, width, height, inverseDecode)]
  13728. );
  13729. return;
  13730. }
  13731. var softMask = dict.get('SMask', 'SM') || false;
  13732. var mask = dict.get('Mask') || false;
  13733. var SMALL_IMAGE_DIMENSIONS = 200;
  13734. // Inlining small images into the queue as RGB data
  13735. if (inline && !softMask && !mask &&
  13736. !(image instanceof JpegStream) &&
  13737. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  13738. var imageObj = new PDFImage(this.xref, resources, image,
  13739. inline, null, null);
  13740. var imgData = imageObj.getImageData();
  13741. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  13742. return;
  13743. }
  13744. // If there is no imageMask, create the PDFImage and a lot
  13745. // of image processing can be done here.
  13746. var uniquePrefix = this.uniquePrefix || '';
  13747. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  13748. operatorList.addDependency(objId);
  13749. var args = [objId, w, h];
  13750. if (!softMask && !mask && image instanceof JpegStream &&
  13751. image.isNativelySupported(this.xref, resources)) {
  13752. // These JPEGs don't need any more processing so we can just send it.
  13753. operatorList.addOp(OPS.paintJpegXObject, args);
  13754. this.handler.send(
  13755. 'obj', [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  13756. return;
  13757. }
  13758. PDFImage.buildImage(function(imageObj) {
  13759. var imgData = imageObj.getImageData();
  13760. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  13761. null, [imgData.data.buffer]);
  13762. }, self.handler, self.xref, resources, image, inline);
  13763. operatorList.addOp(OPS.paintImageXObject, args);
  13764. },
  13765. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  13766. operatorList) {
  13767. var smaskContent = smask.get('G');
  13768. var smaskOptions = {
  13769. subtype: smask.get('S').name,
  13770. backdrop: smask.get('BC')
  13771. };
  13772. this.buildFormXObject(resources, smaskContent, smaskOptions,
  13773. operatorList);
  13774. },
  13775. handleTilingType: function PartialEvaluator_handleTilingType(
  13776. fn, args, resources, pattern, patternDict,
  13777. operatorList) {
  13778. // Create an IR of the pattern code.
  13779. var tilingOpList = this.getOperatorList(pattern,
  13780. patternDict.get('Resources') || resources);
  13781. // Add the dependencies to the parent operator list so they are resolved
  13782. // before sub operator list is executed synchronously.
  13783. operatorList.addDependencies(tilingOpList.dependencies);
  13784. operatorList.addOp(fn, getTilingPatternIR({
  13785. fnArray: tilingOpList.fnArray,
  13786. argsArray: tilingOpList.argsArray
  13787. }, patternDict, args));
  13788. },
  13789. handleSetFont: function PartialEvaluator_handleSetFont(
  13790. resources, fontArgs, fontRef, operatorList) {
  13791. // TODO(mack): Not needed?
  13792. var fontName;
  13793. if (fontArgs) {
  13794. fontArgs = fontArgs.slice();
  13795. fontName = fontArgs[0].name;
  13796. }
  13797. var self = this;
  13798. var font = this.loadFont(fontName, fontRef, this.xref, resources,
  13799. operatorList);
  13800. this.state.font = font;
  13801. var loadedName = font.loadedName;
  13802. if (!font.sent) {
  13803. var fontData = font.translated.exportData();
  13804. self.handler.send('commonobj', [
  13805. loadedName,
  13806. 'Font',
  13807. fontData
  13808. ]);
  13809. font.sent = true;
  13810. }
  13811. return loadedName;
  13812. },
  13813. handleText: function PartialEvaluator_handleText(chars) {
  13814. var font = this.state.font.translated;
  13815. var glyphs = font.charsToGlyphs(chars);
  13816. var isAddToPathSet = !!(this.state.textRenderingMode &
  13817. TextRenderingMode.ADD_TO_PATH_FLAG);
  13818. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  13819. for (var i = 0; i < glyphs.length; i++) {
  13820. if (glyphs[i] === null) {
  13821. continue;
  13822. }
  13823. var fontChar = glyphs[i].fontChar;
  13824. if (!font.renderer.hasBuiltPath(fontChar)) {
  13825. var path = font.renderer.getPathJs(fontChar);
  13826. this.handler.send('commonobj', [
  13827. font.loadedName + '_path_' + fontChar,
  13828. 'FontPath',
  13829. path
  13830. ]);
  13831. }
  13832. }
  13833. }
  13834. return glyphs;
  13835. },
  13836. setGState: function PartialEvaluator_setGState(resources, gState,
  13837. operatorList, xref) {
  13838. var self = this;
  13839. // TODO(mack): This should be rewritten so that this function returns
  13840. // what should be added to the queue during each iteration
  13841. function setGStateForKey(gStateObj, key, value) {
  13842. switch (key) {
  13843. case 'Type':
  13844. break;
  13845. case 'LW':
  13846. case 'LC':
  13847. case 'LJ':
  13848. case 'ML':
  13849. case 'D':
  13850. case 'RI':
  13851. case 'FL':
  13852. case 'CA':
  13853. case 'ca':
  13854. gStateObj.push([key, value]);
  13855. break;
  13856. case 'Font':
  13857. var loadedName = self.handleSetFont(resources, null, value[0],
  13858. operatorList);
  13859. operatorList.addDependency(loadedName);
  13860. gStateObj.push([key, [loadedName, value[1]]]);
  13861. break;
  13862. case 'BM':
  13863. gStateObj.push([key, value]);
  13864. break;
  13865. case 'SMask':
  13866. if (isName(value) && value.name === 'None') {
  13867. gStateObj.push([key, false]);
  13868. break;
  13869. }
  13870. var dict = xref.fetchIfRef(value);
  13871. if (isDict(dict)) {
  13872. self.handleSMask(dict, resources, operatorList);
  13873. gStateObj.push([key, true]);
  13874. } else {
  13875. warn('Unsupported SMask type');
  13876. }
  13877. break;
  13878. // Only generate info log messages for the following since
  13879. // they are unlikey to have a big impact on the rendering.
  13880. case 'OP':
  13881. case 'op':
  13882. case 'OPM':
  13883. case 'BG':
  13884. case 'BG2':
  13885. case 'UCR':
  13886. case 'UCR2':
  13887. case 'TR':
  13888. case 'TR2':
  13889. case 'HT':
  13890. case 'SM':
  13891. case 'SA':
  13892. case 'AIS':
  13893. case 'TK':
  13894. // TODO implement these operators.
  13895. info('graphic state operator ' + key);
  13896. break;
  13897. default:
  13898. info('Unknown graphic state operator ' + key);
  13899. break;
  13900. }
  13901. }
  13902. // This array holds the converted/processed state data.
  13903. var gStateObj = [];
  13904. var gStateMap = gState.map;
  13905. for (var key in gStateMap) {
  13906. var value = gStateMap[key];
  13907. setGStateForKey(gStateObj, key, value);
  13908. }
  13909. operatorList.addOp(OPS.setGState, [gStateObj]);
  13910. },
  13911. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  13912. resources,
  13913. parentOperatorList) {
  13914. function errorFont() {
  13915. return {
  13916. translated: new ErrorFont('Font ' + fontName + ' is not available'),
  13917. loadedName: 'g_font_error'
  13918. };
  13919. }
  13920. var fontRef;
  13921. if (font) { // Loading by ref.
  13922. assert(isRef(font));
  13923. fontRef = font;
  13924. } else { // Loading by name.
  13925. var fontRes = resources.get('Font');
  13926. if (fontRes) {
  13927. fontRef = fontRes.getRaw(fontName);
  13928. } else {
  13929. warn('fontRes not available');
  13930. return errorFont();
  13931. }
  13932. }
  13933. if (this.fontCache.has(fontRef)) {
  13934. return this.fontCache.get(fontRef);
  13935. }
  13936. font = xref.fetchIfRef(fontRef);
  13937. if (!isDict(font)) {
  13938. return errorFont();
  13939. }
  13940. // Workaround for bad PDF generators that doesn't reference fonts
  13941. // properly, i.e. by not using an object identifier.
  13942. // Check if the fontRef is a Dict (as opposed to a standard object),
  13943. // in which case we don't cache the font and instead reference it by
  13944. // fontName in font.loadedName below.
  13945. var fontRefIsDict = isDict(fontRef);
  13946. if (!fontRefIsDict) {
  13947. this.fontCache.put(fontRef, font);
  13948. }
  13949. // keep track of each font we translated so the caller can
  13950. // load them asynchronously before calling display on a page
  13951. font.loadedName = 'g_font_' + (fontRefIsDict ?
  13952. fontName.replace(/\W/g, '') : (fontRef.num + '_' + fontRef.gen));
  13953. if (!font.translated) {
  13954. var translated;
  13955. try {
  13956. translated = this.translateFont(font, xref);
  13957. } catch (e) {
  13958. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  13959. translated = new ErrorFont(e instanceof Error ? e.message : e);
  13960. }
  13961. font.translated = translated;
  13962. }
  13963. if (font.translated.loadCharProcs) {
  13964. var charProcs = font.get('CharProcs').getAll();
  13965. var fontResources = font.get('Resources') || resources;
  13966. var charProcKeys = Object.keys(charProcs);
  13967. var charProcOperatorList = {};
  13968. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  13969. var key = charProcKeys[i];
  13970. var glyphStream = charProcs[key];
  13971. var operatorList = this.getOperatorList(glyphStream, fontResources);
  13972. charProcOperatorList[key] = operatorList.getIR();
  13973. if (!parentOperatorList) {
  13974. continue;
  13975. }
  13976. // Add the dependencies to the parent operator list so they are
  13977. // resolved before sub operator list is executed synchronously.
  13978. parentOperatorList.addDependencies(charProcOperatorList.dependencies);
  13979. }
  13980. font.translated.charProcOperatorList = charProcOperatorList;
  13981. font.loaded = true;
  13982. } else {
  13983. font.loaded = true;
  13984. }
  13985. return font;
  13986. },
  13987. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  13988. resources,
  13989. operatorList,
  13990. evaluatorState) {
  13991. var self = this;
  13992. var xref = this.xref;
  13993. var handler = this.handler;
  13994. operatorList = operatorList || new OperatorList();
  13995. resources = resources || new Dict();
  13996. var xobjs = resources.get('XObject') || new Dict();
  13997. var patterns = resources.get('Pattern') || new Dict();
  13998. var preprocessor = new EvaluatorPreprocessor(stream, xref);
  13999. if (evaluatorState) {
  14000. preprocessor.setState(evaluatorState);
  14001. }
  14002. var promise = new LegacyPromise();
  14003. var operation;
  14004. while ((operation = preprocessor.read())) {
  14005. var args = operation.args;
  14006. var fn = operation.fn;
  14007. switch (fn) {
  14008. case OPS.setStrokeColorN:
  14009. case OPS.setFillColorN:
  14010. if (args[args.length - 1].code) {
  14011. break;
  14012. }
  14013. // compile tiling patterns
  14014. var patternName = args[args.length - 1];
  14015. // SCN/scn applies patterns along with normal colors
  14016. var pattern;
  14017. if (isName(patternName) &&
  14018. (pattern = patterns.get(patternName.name))) {
  14019. var dict = isStream(pattern) ? pattern.dict : pattern;
  14020. var typeNum = dict.get('PatternType');
  14021. if (typeNum == TILING_PATTERN) {
  14022. self.handleTilingType(fn, args, resources, pattern, dict,
  14023. operatorList);
  14024. args = [];
  14025. continue;
  14026. } else if (typeNum == SHADING_PATTERN) {
  14027. var shading = dict.get('Shading');
  14028. var matrix = dict.get('Matrix');
  14029. var pattern = Pattern.parseShading(shading, matrix, xref,
  14030. resources);
  14031. args = pattern.getIR();
  14032. } else {
  14033. error('Unkown PatternType ' + typeNum);
  14034. }
  14035. }
  14036. break;
  14037. case OPS.paintXObject:
  14038. if (args[0].code) {
  14039. break;
  14040. }
  14041. // eagerly compile XForm objects
  14042. var name = args[0].name;
  14043. var xobj = xobjs.get(name);
  14044. if (xobj) {
  14045. assertWellFormed(
  14046. isStream(xobj), 'XObject should be a stream');
  14047. var type = xobj.dict.get('Subtype');
  14048. assertWellFormed(
  14049. isName(type),
  14050. 'XObject should have a Name subtype'
  14051. );
  14052. if ('Form' == type.name) {
  14053. self.buildFormXObject(resources, xobj, null, operatorList,
  14054. preprocessor.getState());
  14055. args = [];
  14056. continue;
  14057. } else if ('Image' == type.name) {
  14058. self.buildPaintImageXObject(resources, xobj, false,
  14059. operatorList);
  14060. args = [];
  14061. continue;
  14062. } else {
  14063. error('Unhandled XObject subtype ' + type.name);
  14064. }
  14065. }
  14066. break;
  14067. case OPS.setFont:
  14068. // eagerly collect all fonts
  14069. var loadedName = self.handleSetFont(resources, args, null,
  14070. operatorList);
  14071. operatorList.addDependency(loadedName);
  14072. args[0] = loadedName;
  14073. break;
  14074. case OPS.endInlineImage:
  14075. self.buildPaintImageXObject(resources, args[0], true,
  14076. operatorList);
  14077. args = [];
  14078. continue;
  14079. case OPS.save:
  14080. var old = this.state;
  14081. this.stateStack.push(this.state);
  14082. this.state = old.clone();
  14083. break;
  14084. case OPS.restore:
  14085. var prev = this.stateStack.pop();
  14086. if (prev) {
  14087. this.state = prev;
  14088. }
  14089. break;
  14090. case OPS.showText:
  14091. args[0] = this.handleText(args[0]);
  14092. break;
  14093. case OPS.showSpacedText:
  14094. var arr = args[0];
  14095. var arrLength = arr.length;
  14096. for (var i = 0; i < arrLength; ++i) {
  14097. if (isString(arr[i])) {
  14098. arr[i] = this.handleText(arr[i]);
  14099. }
  14100. }
  14101. break;
  14102. case OPS.nextLineShowText:
  14103. args[0] = this.handleText(args[0]);
  14104. break;
  14105. case OPS.nextLineSetSpacingShowText:
  14106. args[2] = this.handleText(args[2]);
  14107. break;
  14108. case OPS.setTextRenderingMode:
  14109. this.state.textRenderingMode = args[0];
  14110. break;
  14111. // Parse the ColorSpace data to a raw format.
  14112. case OPS.setFillColorSpace:
  14113. case OPS.setStrokeColorSpace:
  14114. args = [ColorSpace.parseToIR(args[0], xref, resources)];
  14115. break;
  14116. case OPS.shadingFill:
  14117. var shadingRes = resources.get('Shading');
  14118. if (!shadingRes)
  14119. error('No shading resource found');
  14120. var shading = shadingRes.get(args[0].name);
  14121. if (!shading)
  14122. error('No shading object found');
  14123. var shadingFill = Pattern.parseShading(
  14124. shading, null, xref, resources);
  14125. var patternIR = shadingFill.getIR();
  14126. args = [patternIR];
  14127. fn = OPS.shadingFill;
  14128. break;
  14129. case OPS.setGState:
  14130. var dictName = args[0];
  14131. var extGState = resources.get('ExtGState');
  14132. if (!isDict(extGState) || !extGState.has(dictName.name))
  14133. break;
  14134. var gState = extGState.get(dictName.name);
  14135. self.setGState(resources, gState, operatorList, xref);
  14136. args = [];
  14137. continue;
  14138. } // switch
  14139. operatorList.addOp(fn, args);
  14140. }
  14141. // some pdf don't close all restores inside object/form
  14142. // closing those for them
  14143. for (var i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  14144. operatorList.addOp(OPS.restore, []);
  14145. }
  14146. return operatorList;
  14147. },
  14148. getTextContent: function PartialEvaluator_getTextContent(
  14149. stream, resources, textState) {
  14150. textState = textState || new TextState();
  14151. var bidiTexts = [];
  14152. var SPACE_FACTOR = 0.35;
  14153. var MULTI_SPACE_FACTOR = 1.5;
  14154. var self = this;
  14155. var xref = this.xref;
  14156. function handleSetFont(fontName, fontRef) {
  14157. return self.loadFont(fontName, fontRef, xref, resources, null);
  14158. }
  14159. resources = xref.fetchIfRef(resources) || new Dict();
  14160. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  14161. var xobjs = null;
  14162. var preprocessor = new EvaluatorPreprocessor(stream, xref);
  14163. var res = resources;
  14164. var chunk = '';
  14165. var font = null;
  14166. var charSpace = 0, wordSpace = 0;
  14167. var operation;
  14168. while ((operation = preprocessor.read())) {
  14169. var fn = operation.fn;
  14170. var args = operation.args;
  14171. switch (fn) {
  14172. // TODO: Add support for SAVE/RESTORE and XFORM here.
  14173. case OPS.setFont:
  14174. font = handleSetFont(args[0].name).translated;
  14175. textState.fontSize = args[1];
  14176. break;
  14177. case OPS.setTextRise:
  14178. textState.textRise = args[0];
  14179. break;
  14180. case OPS.setHScale:
  14181. textState.textHScale = args[0] / 100;
  14182. break;
  14183. case OPS.setLeading:
  14184. textState.leading = args[0];
  14185. break;
  14186. case OPS.moveText:
  14187. textState.translateTextMatrix(args[0], args[1]);
  14188. break;
  14189. case OPS.setLeadingMoveText:
  14190. textState.leading = -args[1];
  14191. textState.translateTextMatrix(args[0], args[1]);
  14192. break;
  14193. case OPS.nextLine:
  14194. textState.translateTextMatrix(0, -textState.leading);
  14195. break;
  14196. case OPS.setTextMatrix:
  14197. textState.setTextMatrix(args[0], args[1],
  14198. args[2], args[3], args[4], args[5]);
  14199. break;
  14200. case OPS.setCharSpacing:
  14201. charSpace = args[0];
  14202. break;
  14203. case OPS.setWordSpacing:
  14204. wordSpace = args[0];
  14205. break;
  14206. case OPS.beginText:
  14207. textState.initialiseTextObj();
  14208. break;
  14209. case OPS.showSpacedText:
  14210. var items = args[0];
  14211. for (var j = 0, jj = items.length; j < jj; j++) {
  14212. if (typeof items[j] === 'string') {
  14213. chunk += fontCharsToUnicode(items[j], font);
  14214. } else if (items[j] < 0 && font.spaceWidth > 0) {
  14215. var fakeSpaces = -items[j] / font.spaceWidth;
  14216. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  14217. fakeSpaces = Math.round(fakeSpaces);
  14218. while (fakeSpaces--) {
  14219. chunk += ' ';
  14220. }
  14221. } else if (fakeSpaces > SPACE_FACTOR) {
  14222. chunk += ' ';
  14223. }
  14224. }
  14225. }
  14226. break;
  14227. case OPS.showText:
  14228. chunk += fontCharsToUnicode(args[0], font);
  14229. break;
  14230. case OPS.nextLineShowText:
  14231. // For search, adding a extra white space for line breaks would be
  14232. // better here, but that causes too much spaces in the
  14233. // text-selection divs.
  14234. chunk += fontCharsToUnicode(args[0], font);
  14235. break;
  14236. case OPS.nextLineSetSpacingShowText:
  14237. // Note comment in "'"
  14238. chunk += fontCharsToUnicode(args[2], font);
  14239. break;
  14240. case OPS.paintXObject:
  14241. // Set the chunk such that the following if won't add something
  14242. // to the state.
  14243. chunk = '';
  14244. if (args[0].code) {
  14245. break;
  14246. }
  14247. if (!xobjs) {
  14248. xobjs = resources.get('XObject') || new Dict();
  14249. }
  14250. var name = args[0].name;
  14251. var xobj = xobjs.get(name);
  14252. if (!xobj)
  14253. break;
  14254. assertWellFormed(isStream(xobj), 'XObject should be a stream');
  14255. var type = xobj.dict.get('Subtype');
  14256. assertWellFormed(
  14257. isName(type),
  14258. 'XObject should have a Name subtype'
  14259. );
  14260. if ('Form' !== type.name)
  14261. break;
  14262. var formTexts = this.getTextContent(
  14263. xobj,
  14264. xobj.dict.get('Resources') || resources,
  14265. textState
  14266. );
  14267. Util.concatenateToArray(bidiTexts, formTexts);
  14268. break;
  14269. case OPS.setGState:
  14270. var dictName = args[0];
  14271. var extGState = resources.get('ExtGState');
  14272. if (!isDict(extGState) || !extGState.has(dictName.name))
  14273. break;
  14274. var gsState = extGState.get(dictName.name);
  14275. for (var i = 0; i < gsState.length; i++) {
  14276. if (gsState[i] === 'Font') {
  14277. font = handleSetFont(args[0].name).translated;
  14278. }
  14279. }
  14280. break;
  14281. } // switch
  14282. if (chunk !== '') {
  14283. var bidiResult = PDFJS.bidi(chunk, -1, font.vertical);
  14284. var bidiText = {
  14285. str: bidiResult.str,
  14286. dir: bidiResult.dir
  14287. };
  14288. var renderParams = textState.calcRenderParams(preprocessor.ctm);
  14289. bidiText.x = renderParams.renderMatrix[4] - (textState.fontSize *
  14290. renderParams.vScale * Math.sin(renderParams.angle));
  14291. bidiText.y = renderParams.renderMatrix[5] + (textState.fontSize *
  14292. renderParams.vScale * Math.cos(renderParams.angle));
  14293. var fontHeight = textState.fontSize * renderParams.vScale;
  14294. var fontAscent = font.ascent ? font.ascent * fontHeight :
  14295. font.descent ? (1 + font.descent) * fontHeight : fontHeight;
  14296. bidiText.x = renderParams.renderMatrix[4] - (fontAscent *
  14297. Math.sin(renderParams.angle));
  14298. bidiText.y = renderParams.renderMatrix[5] + (fontAscent *
  14299. Math.cos(renderParams.angle));
  14300. if (bidiText.dir == 'ttb') {
  14301. bidiText.x += renderParams.vScale / 2;
  14302. bidiText.y -= renderParams.vScale;
  14303. }
  14304. bidiText.angle = renderParams.angle;
  14305. bidiText.size = fontHeight;
  14306. bidiTexts.push(bidiText);
  14307. chunk = '';
  14308. }
  14309. } // while
  14310. return bidiTexts;
  14311. },
  14312. extractDataStructures: function
  14313. partialEvaluatorExtractDataStructures(dict, baseDict,
  14314. xref, properties) {
  14315. // 9.10.2
  14316. var toUnicode = dict.get('ToUnicode') ||
  14317. baseDict.get('ToUnicode');
  14318. if (toUnicode)
  14319. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  14320. if (properties.composite) {
  14321. // CIDSystemInfo helps to match CID to glyphs
  14322. var cidSystemInfo = dict.get('CIDSystemInfo');
  14323. if (isDict(cidSystemInfo)) {
  14324. properties.cidSystemInfo = {
  14325. registry: cidSystemInfo.get('Registry'),
  14326. ordering: cidSystemInfo.get('Ordering'),
  14327. supplement: cidSystemInfo.get('Supplement')
  14328. };
  14329. }
  14330. var cidToGidMap = dict.get('CIDToGIDMap');
  14331. if (isStream(cidToGidMap))
  14332. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  14333. }
  14334. // Based on 9.6.6 of the spec the encoding can come from multiple places
  14335. // but should be prioritized in the following order:
  14336. // 1. Encoding dictionary
  14337. // 2. Encoding within font file (Type1 or Type1C)
  14338. // 3. Default (depends on font type)
  14339. // Differences applied to the above.
  14340. // Note: we don't fill in the encoding from the font file(2) here but use
  14341. // the flag overridableEncoding to signal that the font can override the
  14342. // encoding if it has one built in.
  14343. var overridableEncoding = true;
  14344. var hasEncoding = false;
  14345. var flags = properties.flags;
  14346. var differences = [];
  14347. var baseEncoding = properties.type === 'TrueType' ?
  14348. Encodings.WinAnsiEncoding :
  14349. Encodings.StandardEncoding;
  14350. // The Symbolic attribute can be misused for regular fonts
  14351. // Heuristic: we have to check if the font is a standard one and has
  14352. // Symbolic font name
  14353. if (!!(flags & FontFlags.Symbolic)) {
  14354. baseEncoding = !properties.file && /Symbol/i.test(properties.name) ?
  14355. Encodings.SymbolSetEncoding : Encodings.MacRomanEncoding;
  14356. }
  14357. if (dict.has('Encoding')) {
  14358. var encoding = dict.get('Encoding');
  14359. if (isDict(encoding)) {
  14360. var baseName = encoding.get('BaseEncoding');
  14361. if (baseName) {
  14362. overridableEncoding = false;
  14363. hasEncoding = true;
  14364. baseEncoding = Encodings[baseName.name];
  14365. }
  14366. // Load the differences between the base and original
  14367. if (encoding.has('Differences')) {
  14368. hasEncoding = true;
  14369. var diffEncoding = encoding.get('Differences');
  14370. var index = 0;
  14371. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  14372. var data = diffEncoding[j];
  14373. if (isNum(data))
  14374. index = data;
  14375. else
  14376. differences[index++] = data.name;
  14377. }
  14378. }
  14379. } else if (isName(encoding)) {
  14380. overridableEncoding = false;
  14381. hasEncoding = true;
  14382. var currentEncoding = Encodings[encoding.name];
  14383. // Some bad PDF files contain fonts whose encoding name is not among
  14384. // the predefined encodings, causing baseEncoding to be undefined.
  14385. // In this case, fallback to using the baseEncoding as defined above
  14386. // and let the font override the encoding if one is available.
  14387. if (currentEncoding) {
  14388. baseEncoding = currentEncoding;
  14389. } else {
  14390. overridableEncoding = true;
  14391. }
  14392. } else {
  14393. error('Encoding is not a Name nor a Dict');
  14394. }
  14395. }
  14396. properties.differences = differences;
  14397. properties.baseEncoding = baseEncoding;
  14398. properties.hasEncoding = hasEncoding;
  14399. properties.overridableEncoding = overridableEncoding;
  14400. },
  14401. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode, xref,
  14402. properties) {
  14403. var cmapObj = toUnicode;
  14404. var charToUnicode = [];
  14405. if (isName(cmapObj)) {
  14406. var isIdentityMap = cmapObj.name.substr(0, 9) == 'Identity-';
  14407. if (!isIdentityMap)
  14408. error('ToUnicode file cmap translation not implemented');
  14409. } else if (isStream(cmapObj)) {
  14410. var cmap = CMapFactory.create(cmapObj).map;
  14411. // Convert UTF-16BE
  14412. for (var i in cmap) {
  14413. var token = cmap[i];
  14414. var str = [];
  14415. for (var k = 0; k < token.length; k += 2) {
  14416. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  14417. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  14418. str.push(w1);
  14419. continue;
  14420. }
  14421. k += 2;
  14422. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  14423. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  14424. }
  14425. cmap[i] = String.fromCharCode.apply(String, str);
  14426. }
  14427. return cmap;
  14428. }
  14429. return charToUnicode;
  14430. },
  14431. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  14432. // Extract the encoding from the CIDToGIDMap
  14433. var glyphsData = cidToGidStream.getBytes();
  14434. // Set encoding 0 to later verify the font has an encoding
  14435. var result = [];
  14436. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  14437. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  14438. if (glyphID === 0)
  14439. continue;
  14440. var code = j >> 1;
  14441. result[code] = glyphID;
  14442. }
  14443. return result;
  14444. },
  14445. extractWidths: function PartialEvaluator_extractWidths(dict,
  14446. xref,
  14447. descriptor,
  14448. properties) {
  14449. var glyphsWidths = [];
  14450. var defaultWidth = 0;
  14451. var glyphsVMetrics = [];
  14452. var defaultVMetrics;
  14453. if (properties.composite) {
  14454. defaultWidth = dict.get('DW') || 1000;
  14455. var widths = dict.get('W');
  14456. if (widths) {
  14457. for (var i = 0, ii = widths.length; i < ii; i++) {
  14458. var start = widths[i++];
  14459. var code = xref.fetchIfRef(widths[i]);
  14460. if (isArray(code)) {
  14461. for (var j = 0, jj = code.length; j < jj; j++)
  14462. glyphsWidths[start++] = code[j];
  14463. } else {
  14464. var width = widths[++i];
  14465. for (var j = start; j <= code; j++)
  14466. glyphsWidths[j] = width;
  14467. }
  14468. }
  14469. }
  14470. if (properties.vertical) {
  14471. var vmetrics = dict.get('DW2') || [880, -1000];
  14472. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  14473. vmetrics = dict.get('W2');
  14474. if (vmetrics) {
  14475. for (var i = 0, ii = vmetrics.length; i < ii; i++) {
  14476. var start = vmetrics[i++];
  14477. var code = xref.fetchIfRef(vmetrics[i]);
  14478. if (isArray(code)) {
  14479. for (var j = 0, jj = code.length; j < jj; j++)
  14480. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  14481. } else {
  14482. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  14483. for (var j = start; j <= code; j++)
  14484. glyphsVMetrics[j] = vmetric;
  14485. }
  14486. }
  14487. }
  14488. }
  14489. } else {
  14490. var firstChar = properties.firstChar;
  14491. var widths = dict.get('Widths');
  14492. if (widths) {
  14493. var j = firstChar;
  14494. for (var i = 0, ii = widths.length; i < ii; i++)
  14495. glyphsWidths[j++] = widths[i];
  14496. defaultWidth = parseFloat(descriptor.get('MissingWidth')) || 0;
  14497. } else {
  14498. // Trying get the BaseFont metrics (see comment above).
  14499. var baseFontName = dict.get('BaseFont');
  14500. if (isName(baseFontName)) {
  14501. var metrics = this.getBaseFontMetrics(baseFontName.name);
  14502. glyphsWidths = metrics.widths;
  14503. defaultWidth = metrics.defaultWidth;
  14504. }
  14505. }
  14506. }
  14507. // Heuristic: detection of monospace font by checking all non-zero widths
  14508. var isMonospace = true, firstWidth = defaultWidth;
  14509. for (var glyph in glyphsWidths) {
  14510. var glyphWidth = glyphsWidths[glyph];
  14511. if (!glyphWidth)
  14512. continue;
  14513. if (!firstWidth) {
  14514. firstWidth = glyphWidth;
  14515. continue;
  14516. }
  14517. if (firstWidth != glyphWidth) {
  14518. isMonospace = false;
  14519. break;
  14520. }
  14521. }
  14522. if (isMonospace)
  14523. properties.flags |= FontFlags.FixedPitch;
  14524. properties.defaultWidth = defaultWidth;
  14525. properties.widths = glyphsWidths;
  14526. properties.defaultVMetrics = defaultVMetrics;
  14527. properties.vmetrics = glyphsVMetrics;
  14528. },
  14529. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  14530. // Simulating descriptor flags attribute
  14531. var fontNameWoStyle = baseFontName.split('-')[0];
  14532. return (fontNameWoStyle in serifFonts) ||
  14533. (fontNameWoStyle.search(/serif/gi) !== -1);
  14534. },
  14535. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  14536. var defaultWidth = 0, widths = [], monospace = false;
  14537. var lookupName = stdFontMap[name] || name;
  14538. if (!(lookupName in Metrics)) {
  14539. // Use default fonts for looking up font metrics if the passed
  14540. // font is not a base font
  14541. if (this.isSerifFont(name)) {
  14542. lookupName = 'Times-Roman';
  14543. } else {
  14544. lookupName = 'Helvetica';
  14545. }
  14546. }
  14547. var glyphWidths = Metrics[lookupName];
  14548. if (isNum(glyphWidths)) {
  14549. defaultWidth = glyphWidths;
  14550. monospace = true;
  14551. } else {
  14552. widths = glyphWidths;
  14553. }
  14554. return {
  14555. defaultWidth: defaultWidth,
  14556. monospace: monospace,
  14557. widths: widths
  14558. };
  14559. },
  14560. translateFont: function PartialEvaluator_translateFont(dict,
  14561. xref) {
  14562. var baseDict = dict;
  14563. var type = dict.get('Subtype');
  14564. assertWellFormed(isName(type), 'invalid font Subtype');
  14565. var composite = false;
  14566. if (type.name == 'Type0') {
  14567. // If font is a composite
  14568. // - get the descendant font
  14569. // - set the type according to the descendant font
  14570. // - get the FontDescriptor from the descendant font
  14571. var df = dict.get('DescendantFonts');
  14572. if (!df)
  14573. error('Descendant fonts are not specified');
  14574. dict = isArray(df) ? xref.fetchIfRef(df[0]) : df;
  14575. type = dict.get('Subtype');
  14576. assertWellFormed(isName(type), 'invalid font Subtype');
  14577. composite = true;
  14578. }
  14579. var maxCharIndex = composite ? 0xFFFF : 0xFF;
  14580. var descriptor = dict.get('FontDescriptor');
  14581. if (!descriptor) {
  14582. if (type.name == 'Type3') {
  14583. // FontDescriptor is only required for Type3 fonts when the document
  14584. // is a tagged pdf. Create a barbebones one to get by.
  14585. descriptor = new Dict();
  14586. descriptor.set('FontName', new Name(type.name));
  14587. } else {
  14588. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  14589. // FontDescriptor was not required.
  14590. // This case is here for compatibility.
  14591. var baseFontName = dict.get('BaseFont');
  14592. if (!isName(baseFontName))
  14593. error('Base font is not specified');
  14594. // Using base font name as a font name.
  14595. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  14596. var metrics = this.getBaseFontMetrics(baseFontName);
  14597. // Simulating descriptor flags attribute
  14598. var fontNameWoStyle = baseFontName.split('-')[0];
  14599. var flags = (
  14600. this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  14601. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  14602. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  14603. FontFlags.Nonsymbolic);
  14604. var properties = {
  14605. type: type.name,
  14606. name: baseFontName,
  14607. widths: metrics.widths,
  14608. defaultWidth: metrics.defaultWidth,
  14609. flags: flags,
  14610. firstChar: 0,
  14611. lastChar: maxCharIndex
  14612. };
  14613. this.extractDataStructures(dict, dict, xref, properties);
  14614. return new Font(baseFontName, null, properties);
  14615. }
  14616. }
  14617. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  14618. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  14619. // to ignore this rule when a variant of a standart font is used.
  14620. // TODO Fill the width array depending on which of the base font this is
  14621. // a variant.
  14622. var firstChar = dict.get('FirstChar') || 0;
  14623. var lastChar = dict.get('LastChar') || maxCharIndex;
  14624. var fontName = descriptor.get('FontName');
  14625. var baseFont = dict.get('BaseFont');
  14626. // Some bad pdf's have a string as the font name.
  14627. if (isString(fontName)) {
  14628. fontName = new Name(fontName);
  14629. }
  14630. if (isString(baseFont)) {
  14631. baseFont = new Name(baseFont);
  14632. }
  14633. if (type.name !== 'Type3') {
  14634. var fontNameStr = fontName && fontName.name;
  14635. var baseFontStr = baseFont && baseFont.name;
  14636. if (fontNameStr !== baseFontStr) {
  14637. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  14638. '" but should be the same as the Font\'s BaseFont "' +
  14639. baseFontStr + '"');
  14640. }
  14641. }
  14642. fontName = fontName || baseFont;
  14643. assertWellFormed(isName(fontName), 'invalid font name');
  14644. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  14645. if (fontFile) {
  14646. if (fontFile.dict) {
  14647. var subtype = fontFile.dict.get('Subtype');
  14648. if (subtype)
  14649. subtype = subtype.name;
  14650. var length1 = fontFile.dict.get('Length1');
  14651. var length2 = fontFile.dict.get('Length2');
  14652. }
  14653. }
  14654. var properties = {
  14655. type: type.name,
  14656. name: fontName.name,
  14657. subtype: subtype,
  14658. file: fontFile,
  14659. length1: length1,
  14660. length2: length2,
  14661. loadedName: baseDict.loadedName,
  14662. composite: composite,
  14663. wideChars: composite,
  14664. fixedPitch: false,
  14665. fontMatrix: dict.get('FontMatrix') || FONT_IDENTITY_MATRIX,
  14666. firstChar: firstChar || 0,
  14667. lastChar: lastChar || maxCharIndex,
  14668. bbox: descriptor.get('FontBBox'),
  14669. ascent: descriptor.get('Ascent'),
  14670. descent: descriptor.get('Descent'),
  14671. xHeight: descriptor.get('XHeight'),
  14672. capHeight: descriptor.get('CapHeight'),
  14673. flags: descriptor.get('Flags'),
  14674. italicAngle: descriptor.get('ItalicAngle'),
  14675. coded: false
  14676. };
  14677. if (composite) {
  14678. var cidEncoding = baseDict.get('Encoding');
  14679. if (isName(cidEncoding)) {
  14680. properties.cidEncoding = cidEncoding.name;
  14681. properties.vertical = /-V$/.test(cidEncoding.name);
  14682. }
  14683. properties.cmap = CMapFactory.create(cidEncoding);
  14684. }
  14685. this.extractWidths(dict, xref, descriptor, properties);
  14686. this.extractDataStructures(dict, baseDict, xref, properties);
  14687. if (type.name === 'Type3') {
  14688. properties.coded = true;
  14689. }
  14690. return new Font(fontName.name, fontFile, properties);
  14691. }
  14692. };
  14693. PartialEvaluator.optimizeQueue =
  14694. function PartialEvaluator_optimizeQueue(queue) {
  14695. function squash(array, index, howMany, element) {
  14696. if (isArray(array)) {
  14697. array.splice(index, howMany, element);
  14698. } else {
  14699. // Replace the element.
  14700. array[index] = element;
  14701. // Shift everything after the element up.
  14702. var sub = array.subarray(index + howMany);
  14703. array.set(sub, index + 1);
  14704. }
  14705. }
  14706. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  14707. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  14708. // searching for (save, transform, paintInlineImageXObject, restore)+
  14709. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  14710. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  14711. var MAX_WIDTH = 1000;
  14712. var IMAGE_PADDING = 1;
  14713. for (var i = 0, ii = argsArray.length; i < ii; i++) {
  14714. if (fnArray[i] === OPS.paintInlineImageXObject &&
  14715. fnArray[i - 2] === OPS.save && fnArray[i - 1] === OPS.transform &&
  14716. fnArray[i + 1] === OPS.restore) {
  14717. var j = i - 2;
  14718. for (i += 2; i < ii && fnArray[i - 4] === fnArray[i]; i++) {
  14719. }
  14720. var count = Math.min((i - j) >> 2,
  14721. MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  14722. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  14723. continue;
  14724. }
  14725. // assuming that heights of those image is too small (~1 pixel)
  14726. // packing as much as possible by lines
  14727. var maxX = 0;
  14728. var map = [], maxLineHeight = 0;
  14729. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  14730. for (var q = 0; q < count; q++) {
  14731. var transform = argsArray[j + (q << 2) + 1];
  14732. var img = argsArray[j + (q << 2) + 2][0];
  14733. if (currentX + img.width > MAX_WIDTH) {
  14734. // starting new line
  14735. maxX = Math.max(maxX, currentX);
  14736. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  14737. currentX = 0;
  14738. maxLineHeight = 0;
  14739. }
  14740. map.push({
  14741. transform: transform,
  14742. x: currentX, y: currentY,
  14743. w: img.width, h: img.height
  14744. });
  14745. currentX += img.width + 2 * IMAGE_PADDING;
  14746. maxLineHeight = Math.max(maxLineHeight, img.height);
  14747. }
  14748. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  14749. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  14750. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  14751. var imgRowSize = imgWidth << 2;
  14752. for (var q = 0; q < count; q++) {
  14753. var data = argsArray[j + (q << 2) + 2][0].data;
  14754. // copy image by lines and extends pixels into padding
  14755. var rowSize = map[q].w << 2;
  14756. var dataOffset = 0;
  14757. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  14758. imgData.set(
  14759. data.subarray(0, rowSize), offset - imgRowSize);
  14760. for (var k = 0, kk = map[q].h; k < kk; k++) {
  14761. imgData.set(
  14762. data.subarray(dataOffset, dataOffset + rowSize), offset);
  14763. dataOffset += rowSize;
  14764. offset += imgRowSize;
  14765. }
  14766. imgData.set(
  14767. data.subarray(dataOffset - rowSize, dataOffset), offset);
  14768. while (offset >= 0) {
  14769. data[offset - 4] = data[offset];
  14770. data[offset - 3] = data[offset + 1];
  14771. data[offset - 2] = data[offset + 2];
  14772. data[offset - 1] = data[offset + 3];
  14773. data[offset + rowSize] = data[offset + rowSize - 4];
  14774. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  14775. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  14776. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  14777. offset -= imgRowSize;
  14778. }
  14779. }
  14780. // replacing queue items
  14781. squash(fnArray, j, count * 4, OPS.paintInlineImageXObjectGroup);
  14782. argsArray.splice(j, count * 4,
  14783. [{width: imgWidth, height: imgHeight, data: imgData}, map]);
  14784. i = j;
  14785. ii = argsArray.length;
  14786. }
  14787. }
  14788. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  14789. // searching for (save, transform, paintImageMaskXObject, restore)+
  14790. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  14791. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  14792. for (var i = 0, ii = argsArray.length; i < ii; i++) {
  14793. if (fnArray[i] === OPS.paintImageMaskXObject &&
  14794. fnArray[i - 2] === OPS.save && fnArray[i - 1] === OPS.transform &&
  14795. fnArray[i + 1] === OPS.restore) {
  14796. var j = i - 2;
  14797. for (i += 2; i < ii && fnArray[i - 4] === fnArray[i]; i++) {
  14798. }
  14799. var count = Math.min((i - j) >> 2,
  14800. MAX_IMAGES_IN_MASKS_BLOCK);
  14801. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  14802. continue;
  14803. }
  14804. var images = [];
  14805. for (var q = 0; q < count; q++) {
  14806. var transform = argsArray[j + (q << 2) + 1];
  14807. var maskParams = argsArray[j + (q << 2) + 2][0];
  14808. images.push({data: maskParams.data, width: maskParams.width,
  14809. height: maskParams.height, transform: transform});
  14810. }
  14811. // replacing queue items
  14812. squash(fnArray, j, count * 4, OPS.paintImageMaskXObjectGroup);
  14813. argsArray.splice(j, count * 4, [images]);
  14814. i = j;
  14815. ii = argsArray.length;
  14816. }
  14817. }
  14818. };
  14819. return PartialEvaluator;
  14820. })();
  14821. var OperatorList = (function OperatorListClosure() {
  14822. var CHUNK_SIZE = 100;
  14823. function getTransfers(queue) {
  14824. var transfers = [];
  14825. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  14826. for (var i = 0, ii = queue.length; i < ii; i++) {
  14827. switch (fnArray[i]) {
  14828. case OPS.paintInlineImageXObject:
  14829. case OPS.paintInlineImageXObjectGroup:
  14830. case OPS.paintImageMaskXObject:
  14831. var arg = argsArray[i][0]; // first param in imgData
  14832. transfers.push(arg.data.buffer);
  14833. break;
  14834. }
  14835. }
  14836. return transfers;
  14837. }
  14838. function OperatorList(messageHandler, pageIndex) {
  14839. this.messageHandler = messageHandler;
  14840. // When there isn't a message handler the fn array needs to be able to grow
  14841. // since we can't flush the operators.
  14842. if (messageHandler) {
  14843. this.fnArray = new Uint8Array(CHUNK_SIZE);
  14844. } else {
  14845. this.fnArray = [];
  14846. }
  14847. this.argsArray = [];
  14848. this.dependencies = {},
  14849. this.pageIndex = pageIndex;
  14850. this.fnIndex = 0;
  14851. }
  14852. OperatorList.prototype = {
  14853. get length() {
  14854. return this.argsArray.length;
  14855. },
  14856. addOp: function(fn, args) {
  14857. if (this.messageHandler) {
  14858. this.fnArray[this.fnIndex++] = fn;
  14859. this.argsArray.push(args);
  14860. if (this.fnIndex >= CHUNK_SIZE) {
  14861. this.flush();
  14862. }
  14863. } else {
  14864. this.fnArray.push(fn);
  14865. this.argsArray.push(args);
  14866. }
  14867. },
  14868. addDependency: function(dependency) {
  14869. if (dependency in this.dependencies) {
  14870. return;
  14871. }
  14872. this.dependencies[dependency] = true;
  14873. this.addOp(OPS.dependency, [dependency]);
  14874. },
  14875. addDependencies: function(dependencies) {
  14876. for (var key in dependencies) {
  14877. this.addDependency(key);
  14878. }
  14879. },
  14880. addOpList: function(opList) {
  14881. Util.extendObj(this.dependencies, opList.dependencies);
  14882. for (var i = 0, ii = opList.length; i < ii; i++) {
  14883. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  14884. }
  14885. },
  14886. getIR: function() {
  14887. return {
  14888. fnArray: this.fnArray,
  14889. argsArray: this.argsArray,
  14890. length: this.length
  14891. };
  14892. },
  14893. flush: function(lastChunk) {
  14894. PartialEvaluator.optimizeQueue(this);
  14895. var transfers = getTransfers(this);
  14896. this.messageHandler.send('RenderPageChunk', {
  14897. operatorList: {
  14898. fnArray: this.fnArray,
  14899. argsArray: this.argsArray,
  14900. lastChunk: lastChunk,
  14901. length: this.length
  14902. },
  14903. pageIndex: this.pageIndex
  14904. }, null, transfers);
  14905. this.dependencies = [];
  14906. this.fnIndex = 0;
  14907. this.argsArray = [];
  14908. }
  14909. };
  14910. return OperatorList;
  14911. })();
  14912. var TextState = (function TextStateClosure() {
  14913. function TextState() {
  14914. this.fontSize = 0;
  14915. this.textMatrix = [1, 0, 0, 1, 0, 0];
  14916. this.stateStack = [];
  14917. //textState variables
  14918. this.leading = 0;
  14919. this.textHScale = 1;
  14920. this.textRise = 0;
  14921. }
  14922. TextState.prototype = {
  14923. initialiseTextObj: function TextState_initialiseTextObj() {
  14924. var m = this.textMatrix;
  14925. m[0] = 1, m[1] = 0, m[2] = 0, m[3] = 1, m[4] = 0, m[5] = 0;
  14926. },
  14927. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  14928. var m = this.textMatrix;
  14929. m[0] = a, m[1] = b, m[2] = c, m[3] = d, m[4] = e, m[5] = f;
  14930. },
  14931. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  14932. var m = this.textMatrix;
  14933. m[4] = m[0] * x + m[2] * y + m[4];
  14934. m[5] = m[1] * x + m[3] * y + m[5];
  14935. },
  14936. calcRenderParams: function TextState_calcRenderingParams(cm) {
  14937. var tm = this.textMatrix;
  14938. var a = this.fontSize;
  14939. var b = a * this.textHScale;
  14940. var c = this.textRise;
  14941. var vScale = Math.sqrt((tm[2] * tm[2]) + (tm[3] * tm[3]));
  14942. var angle = Math.atan2(tm[1], tm[0]);
  14943. var m0 = tm[0] * cm[0] + tm[1] * cm[2];
  14944. var m1 = tm[0] * cm[1] + tm[1] * cm[3];
  14945. var m2 = tm[2] * cm[0] + tm[3] * cm[2];
  14946. var m3 = tm[2] * cm[1] + tm[3] * cm[3];
  14947. var m4 = tm[4] * cm[0] + tm[5] * cm[2] + cm[4];
  14948. var m5 = tm[4] * cm[1] + tm[5] * cm[3] + cm[5];
  14949. var renderMatrix = [
  14950. b * m0,
  14951. b * m1,
  14952. a * m2,
  14953. a * m3,
  14954. c * m2 + m4,
  14955. c * m3 + m5
  14956. ];
  14957. return {
  14958. renderMatrix: renderMatrix,
  14959. vScale: vScale,
  14960. angle: angle
  14961. };
  14962. },
  14963. };
  14964. return TextState;
  14965. })();
  14966. var EvalState = (function EvalStateClosure() {
  14967. function EvalState() {
  14968. this.font = null;
  14969. this.textRenderingMode = TextRenderingMode.FILL;
  14970. }
  14971. EvalState.prototype = {
  14972. clone: function CanvasExtraState_clone() {
  14973. return Object.create(this);
  14974. },
  14975. };
  14976. return EvalState;
  14977. })();
  14978. var EvaluatorPreprocessor = (function EvaluatorPreprocessor() {
  14979. // Specifies properties for each command
  14980. //
  14981. // If variableArgs === true: [0, `numArgs`] expected
  14982. // If variableArgs === false: exactly `numArgs` expected
  14983. var OP_MAP = {
  14984. // Graphic state
  14985. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  14986. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  14987. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  14988. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  14989. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  14990. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  14991. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  14992. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  14993. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  14994. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  14995. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  14996. // Path
  14997. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  14998. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  14999. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  15000. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  15001. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  15002. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  15003. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  15004. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  15005. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  15006. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  15007. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  15008. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  15009. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  15010. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  15011. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  15012. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  15013. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  15014. // Clipping
  15015. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  15016. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  15017. // Text
  15018. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  15019. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  15020. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  15021. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  15022. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  15023. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  15024. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  15025. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  15026. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  15027. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  15028. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  15029. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  15030. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  15031. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  15032. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  15033. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  15034. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  15035. variableArgs: false },
  15036. // Type3 fonts
  15037. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  15038. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  15039. // Color
  15040. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  15041. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  15042. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  15043. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  15044. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  15045. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  15046. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  15047. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  15048. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  15049. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  15050. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  15051. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  15052. // Shading
  15053. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  15054. // Images
  15055. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  15056. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  15057. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  15058. // XObjects
  15059. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  15060. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  15061. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  15062. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  15063. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  15064. variableArgs: false },
  15065. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  15066. // Compatibility
  15067. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  15068. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  15069. // (reserved partial commands for the lexer)
  15070. BM: null,
  15071. BD: null,
  15072. 'true': null,
  15073. fa: null,
  15074. fal: null,
  15075. fals: null,
  15076. 'false': null,
  15077. nu: null,
  15078. nul: null,
  15079. 'null': null
  15080. };
  15081. function EvaluatorPreprocessor(stream, xref) {
  15082. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  15083. // dictionary
  15084. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  15085. this.ctm = new Float32Array([1, 0, 0, 1, 0, 0]);
  15086. this.savedStates = [];
  15087. }
  15088. EvaluatorPreprocessor.prototype = {
  15089. get savedStatesDepth() {
  15090. return this.savedStates.length;
  15091. },
  15092. read: function EvaluatorPreprocessor_read() {
  15093. var args = [];
  15094. while (true) {
  15095. var obj = this.parser.getObj();
  15096. if (isEOF(obj)) {
  15097. return null; // no more commands
  15098. }
  15099. if (!isCmd(obj)) {
  15100. // argument
  15101. if (obj !== null && obj !== undefined) {
  15102. args.push(obj instanceof Dict ? obj.getAll() : obj);
  15103. assertWellFormed(args.length <= 33, 'Too many arguments');
  15104. }
  15105. continue;
  15106. }
  15107. var cmd = obj.cmd;
  15108. // Check that the command is valid
  15109. var opSpec = OP_MAP[cmd];
  15110. if (!opSpec) {
  15111. warn('Unknown command "' + cmd + '"');
  15112. continue;
  15113. }
  15114. var fn = opSpec.id;
  15115. // Validate the number of arguments for the command
  15116. if (opSpec.variableArgs) {
  15117. if (args.length > opSpec.numArgs) {
  15118. info('Command ' + fn + ': expected [0,' + opSpec.numArgs +
  15119. '] args, but received ' + args.length + ' args');
  15120. }
  15121. } else {
  15122. if (args.length < opSpec.numArgs) {
  15123. // If we receive too few args, it's not possible to possible
  15124. // to execute the command, so skip the command
  15125. info('Command ' + fn + ': because expected ' +
  15126. opSpec.numArgs + ' args, but received ' + args.length +
  15127. ' args; skipping');
  15128. args = [];
  15129. continue;
  15130. } else if (args.length > opSpec.numArgs) {
  15131. info('Command ' + fn + ': expected ' + opSpec.numArgs +
  15132. ' args, but received ' + args.length + ' args');
  15133. }
  15134. }
  15135. // TODO figure out how to type-check vararg functions
  15136. this.preprocessCommand(fn, args);
  15137. return {fn: fn, args: args};
  15138. }
  15139. },
  15140. getState: function EvaluatorPreprocessor_getState() {
  15141. return {
  15142. ctm: this.ctm
  15143. };
  15144. },
  15145. setState: function EvaluatorPreprocessor_setState(state) {
  15146. this.ctm = state.ctm;
  15147. },
  15148. preprocessCommand: function EvaluatorPreprocessor_preprocessCommand(fn,
  15149. args) {
  15150. switch (fn | 0) {
  15151. case OPS.save:
  15152. this.savedStates.push(this.getState());
  15153. break;
  15154. case OPS.restore:
  15155. var previousState = this.savedStates.pop();
  15156. if (previousState) {
  15157. this.setState(previousState);
  15158. }
  15159. break;
  15160. case OPS.transform:
  15161. var ctm = this.ctm;
  15162. var m = new Float32Array(6);
  15163. m[0] = ctm[0] * args[0] + ctm[2] * args[1];
  15164. m[1] = ctm[1] * args[0] + ctm[3] * args[1];
  15165. m[2] = ctm[0] * args[2] + ctm[2] * args[3];
  15166. m[3] = ctm[1] * args[2] + ctm[3] * args[3];
  15167. m[4] = ctm[0] * args[4] + ctm[2] * args[5] + ctm[4];
  15168. m[5] = ctm[1] * args[4] + ctm[3] * args[5] + ctm[5];
  15169. this.ctm = m;
  15170. break;
  15171. }
  15172. }
  15173. };
  15174. return EvaluatorPreprocessor;
  15175. })();
  15176. // Unicode Private Use Area
  15177. var CMAP_GLYPH_OFFSET = 0xE000;
  15178. var GLYPH_AREA_SIZE = 0x1900;
  15179. var SYMBOLIC_FONT_GLYPH_OFFSET = 0xF000;
  15180. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  15181. // except for Type 3 fonts
  15182. var PDF_GLYPH_SPACE_UNITS = 1000;
  15183. // Hinting is currently disabled due to unknown problems on windows
  15184. // in tracemonkey and various other pdfs with type1 fonts.
  15185. var HINTING_ENABLED = false;
  15186. // Accented charactars are not displayed properly on windows, using this flag
  15187. // to control analysis of seac charstrings.
  15188. var SEAC_ANALYSIS_ENABLED = false;
  15189. var FontFlags = {
  15190. FixedPitch: 1,
  15191. Serif: 2,
  15192. Symbolic: 4,
  15193. Script: 8,
  15194. Nonsymbolic: 32,
  15195. Italic: 64,
  15196. AllCap: 65536,
  15197. SmallCap: 131072,
  15198. ForceBold: 262144
  15199. };
  15200. var Encodings = {
  15201. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15202. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15203. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  15204. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  15205. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  15206. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  15207. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  15208. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  15209. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  15210. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  15211. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  15212. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  15213. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  15214. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  15215. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  15216. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  15217. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  15218. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  15219. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  15220. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15221. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  15222. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  15223. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  15224. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  15225. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  15226. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  15227. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  15228. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  15229. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  15230. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  15231. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  15232. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  15233. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  15234. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  15235. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  15236. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  15237. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  15238. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  15239. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  15240. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  15241. 'Ydieresissmall'],
  15242. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15243. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15244. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  15245. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  15246. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  15247. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  15248. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  15249. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  15250. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  15251. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  15252. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  15253. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  15254. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  15255. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  15256. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  15257. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  15258. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  15259. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  15260. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  15261. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  15262. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  15263. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  15264. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  15265. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  15266. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  15267. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  15268. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  15269. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  15270. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  15271. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  15272. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  15273. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  15274. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  15275. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  15276. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  15277. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  15278. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  15279. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  15280. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  15281. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  15282. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15283. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15284. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  15285. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  15286. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  15287. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  15288. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  15289. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  15290. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  15291. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  15292. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  15293. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  15294. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  15295. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  15296. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  15297. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  15298. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  15299. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  15300. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  15301. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  15302. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  15303. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  15304. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  15305. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  15306. 'guillemotright', 'ellipsis', '', 'Agrave', 'Atilde', 'Otilde', 'OE',
  15307. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  15308. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  15309. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  15310. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  15311. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  15312. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  15313. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  15314. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  15315. 'ogonek', 'caron'],
  15316. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15317. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15318. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  15319. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  15320. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  15321. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  15322. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  15323. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  15324. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  15325. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  15326. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  15327. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  15328. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15329. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  15330. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  15331. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  15332. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  15333. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  15334. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  15335. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  15336. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  15337. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  15338. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  15339. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  15340. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  15341. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15342. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15343. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  15344. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  15345. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  15346. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  15347. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  15348. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  15349. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  15350. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  15351. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  15352. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  15353. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  15354. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  15355. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  15356. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  15357. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  15358. 'zcaron', 'Ydieresis', '', 'exclamdown', 'cent', 'sterling',
  15359. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  15360. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  15361. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  15362. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  15363. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  15364. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  15365. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  15366. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  15367. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  15368. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  15369. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  15370. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  15371. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  15372. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  15373. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  15374. 'ydieresis'],
  15375. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15376. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15377. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  15378. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  15379. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  15380. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  15381. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  15382. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  15383. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  15384. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  15385. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  15386. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  15387. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  15388. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  15389. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  15390. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15391. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  15392. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  15393. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  15394. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  15395. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  15396. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  15397. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  15398. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  15399. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  15400. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  15401. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  15402. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  15403. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  15404. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  15405. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  15406. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  15407. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  15408. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  15409. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  15410. 'bracerightbt'],
  15411. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15412. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15413. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  15414. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  15415. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  15416. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  15417. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  15418. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  15419. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  15420. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  15421. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  15422. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15423. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  15424. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  15425. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  15426. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  15427. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  15428. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  15429. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  15430. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  15431. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  15432. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  15433. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  15434. 'a188', 'a189', 'a190', 'a191']
  15435. };
  15436. /**
  15437. * Hold a map of decoded fonts and of the standard fourteen Type1
  15438. * fonts and their acronyms.
  15439. */
  15440. var stdFontMap = {
  15441. 'ArialNarrow': 'Helvetica',
  15442. 'ArialNarrow-Bold': 'Helvetica-Bold',
  15443. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  15444. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  15445. 'ArialBlack': 'Helvetica',
  15446. 'ArialBlack-Bold': 'Helvetica-Bold',
  15447. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  15448. 'ArialBlack-Italic': 'Helvetica-Oblique',
  15449. 'Arial': 'Helvetica',
  15450. 'Arial-Bold': 'Helvetica-Bold',
  15451. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  15452. 'Arial-Italic': 'Helvetica-Oblique',
  15453. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  15454. 'Arial-BoldMT': 'Helvetica-Bold',
  15455. 'Arial-ItalicMT': 'Helvetica-Oblique',
  15456. 'ArialMT': 'Helvetica',
  15457. 'Courier-Bold': 'Courier-Bold',
  15458. 'Courier-BoldItalic': 'Courier-BoldOblique',
  15459. 'Courier-Italic': 'Courier-Oblique',
  15460. 'CourierNew': 'Courier',
  15461. 'CourierNew-Bold': 'Courier-Bold',
  15462. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  15463. 'CourierNew-Italic': 'Courier-Oblique',
  15464. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  15465. 'CourierNewPS-BoldMT': 'Courier-Bold',
  15466. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  15467. 'CourierNewPSMT': 'Courier',
  15468. 'Helvetica-Bold': 'Helvetica-Bold',
  15469. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  15470. 'Helvetica-Italic': 'Helvetica-Oblique',
  15471. 'Symbol-Bold': 'Symbol',
  15472. 'Symbol-BoldItalic': 'Symbol',
  15473. 'Symbol-Italic': 'Symbol',
  15474. 'TimesNewRoman': 'Times-Roman',
  15475. 'TimesNewRoman-Bold': 'Times-Bold',
  15476. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  15477. 'TimesNewRoman-Italic': 'Times-Italic',
  15478. 'TimesNewRomanPS': 'Times-Roman',
  15479. 'TimesNewRomanPS-Bold': 'Times-Bold',
  15480. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  15481. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  15482. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  15483. 'TimesNewRomanPS-Italic': 'Times-Italic',
  15484. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  15485. 'TimesNewRomanPSMT': 'Times-Roman',
  15486. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  15487. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  15488. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  15489. };
  15490. /**
  15491. * Holds the map of the non-standard fonts that might be included as a standard
  15492. * fonts without glyph data.
  15493. */
  15494. var nonStdFontMap = {
  15495. 'ComicSansMS': 'Comic Sans MS',
  15496. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  15497. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  15498. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  15499. 'LucidaConsole': 'Courier',
  15500. 'LucidaConsole-Bold': 'Courier-Bold',
  15501. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  15502. 'LucidaConsole-Italic': 'Courier-Oblique',
  15503. 'MS-Gothic': 'MS Gothic',
  15504. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  15505. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  15506. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  15507. 'MS-Mincho': 'MS Mincho',
  15508. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  15509. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  15510. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  15511. 'MS-PGothic': 'MS PGothic',
  15512. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  15513. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  15514. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  15515. 'MS-PMincho': 'MS PMincho',
  15516. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  15517. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  15518. 'MS-PMincho-Italic': 'MS PMincho-Italic',
  15519. };
  15520. var serifFonts = {
  15521. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  15522. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  15523. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  15524. 'Arno': true, 'Aster': true, 'Aurora': true,
  15525. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  15526. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  15527. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  15528. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  15529. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  15530. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  15531. 'Cartier': true, 'Caslon': true, 'Catull': true,
  15532. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  15533. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  15534. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  15535. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  15536. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  15537. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  15538. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  15539. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  15540. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  15541. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  15542. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  15543. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  15544. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  15545. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  15546. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  15547. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  15548. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  15549. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  15550. 'Miller': true, 'Minion': true, 'Modern': true,
  15551. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  15552. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  15553. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  15554. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  15555. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  15556. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  15557. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  15558. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  15559. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  15560. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  15561. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  15562. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  15563. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  15564. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  15565. };
  15566. var symbolsFonts = {
  15567. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  15568. };
  15569. var CMapConverterList = {
  15570. 'H': jis7ToUnicode,
  15571. 'V': jis7ToUnicode,
  15572. 'EUC-H': eucjpToUnicode,
  15573. 'EUC-V': eucjpToUnicode,
  15574. '83pv-RKSJ-H': sjis83pvToUnicode,
  15575. '90pv-RKSJ-H': sjis90pvToUnicode,
  15576. '90ms-RKSJ-H': sjisToUnicode,
  15577. '90ms-RKSJ-V': sjisToUnicode,
  15578. '90msp-RKSJ-H': sjisToUnicode,
  15579. '90msp-RKSJ-V': sjisToUnicode,
  15580. 'GBK-EUC-H': gbkToUnicode,
  15581. 'GBKp-EUC-H': gbkToUnicode,
  15582. 'B5pc-H': big5ToUnicode,
  15583. 'ETenms-B5-H': big5ToUnicode,
  15584. 'ETenms-B5-V': big5ToUnicode,
  15585. };
  15586. // CMaps using Hankaku (Halfwidth) Latin glyphs instead of proportional one.
  15587. // We need to distinguish them to get correct widths from CIDFont dicts.
  15588. var HalfwidthCMaps = {
  15589. 'H': true,
  15590. 'V': true,
  15591. 'EUC-H': true,
  15592. 'EUC-V': true,
  15593. '90ms-RKSJ-H': true,
  15594. '90ms-RKSJ-V': true,
  15595. 'UniJIS-UCS2-HW-H': true,
  15596. 'UniJIS-UCS2-HW-V': true
  15597. };
  15598. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  15599. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  15600. // glyphs, but common for some set of the standard fonts.
  15601. var GlyphMapForStandardFonts = {
  15602. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  15603. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 173,
  15604. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  15605. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  15606. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  15607. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  15608. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  15609. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  15610. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  15611. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  15612. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  15613. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  15614. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  15615. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  15616. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  15617. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  15618. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  15619. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  15620. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  15621. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  15622. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  15623. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  15624. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  15625. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  15626. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  15627. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '305': 963,
  15628. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  15629. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  15630. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  15631. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  15632. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  15633. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  15634. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  15635. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  15636. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  15637. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  15638. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  15639. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  15640. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  15641. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  15642. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  15643. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  15644. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  15645. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  15646. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  15647. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  15648. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  15649. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  15650. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  15651. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  15652. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  15653. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  15654. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  15655. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  15656. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  15657. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  15658. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  15659. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  15660. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  15661. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  15662. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  15663. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  15664. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  15665. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  15666. };
  15667. var decodeBytes;
  15668. if (typeof TextDecoder !== 'undefined') {
  15669. // The encodings supported by TextDecoder can be found at:
  15670. // http://encoding.spec.whatwg.org/#concept-encoding-get
  15671. decodeBytes = function(bytes, encoding, fatal) {
  15672. return new TextDecoder(encoding, {fatal: !!fatal}).decode(bytes);
  15673. };
  15674. } else if (typeof FileReaderSync !== 'undefined') {
  15675. decodeBytes = function(bytes, encoding) {
  15676. return new FileReaderSync().readAsText(new Blob([bytes]), encoding);
  15677. };
  15678. } else {
  15679. // Clear the list so that decodeBytes will never be called.
  15680. CMapConverterList = {};
  15681. }
  15682. function jis7ToUnicode(str) {
  15683. var bytes = stringToBytes(str);
  15684. var length = bytes.length;
  15685. for (var i = 0; i < length; ++i) {
  15686. bytes[i] |= 0x80;
  15687. }
  15688. return decodeBytes(bytes, 'euc-jp');
  15689. }
  15690. function eucjpToUnicode(str) {
  15691. return decodeBytes(stringToBytes(str), 'euc-jp');
  15692. }
  15693. function sjisToUnicode(str) {
  15694. return decodeBytes(stringToBytes(str), 'shift_jis');
  15695. }
  15696. function sjis83pvToUnicode(str) {
  15697. var bytes = stringToBytes(str);
  15698. try {
  15699. // TODO: 83pv has incompatible mappings in ed40..ee9c range.
  15700. return decodeBytes(bytes, 'shift_jis', true);
  15701. } catch (e) {
  15702. warn('Unsupported 83pv character found');
  15703. // Just retry without checking errors for now.
  15704. return decodeBytes(bytes, 'shift_jis');
  15705. }
  15706. }
  15707. function sjis90pvToUnicode(str) {
  15708. var bytes = stringToBytes(str);
  15709. try {
  15710. // TODO: 90pv has incompatible mappings in 8740..879c and eb41..ee9c.
  15711. return decodeBytes(bytes, 'shift_jis', true);
  15712. } catch (e) {
  15713. warn('Unsupported 90pv character found');
  15714. // Just retry without checking errors for now.
  15715. return decodeBytes(bytes, 'shift_jis');
  15716. }
  15717. }
  15718. function gbkToUnicode(str) {
  15719. return decodeBytes(stringToBytes(str), 'gbk');
  15720. }
  15721. function big5ToUnicode(str) {
  15722. return decodeBytes(stringToBytes(str), 'big5');
  15723. }
  15724. // Some characters, e.g. copyrightserif, mapped to the private use area and
  15725. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  15726. // to the similar equivalents in the normal characters range.
  15727. function mapPrivateUseChars(code) {
  15728. switch (code) {
  15729. case 0xF8E9: // copyrightsans
  15730. case 0xF6D9: // copyrightserif
  15731. return 0x00A9; // copyright
  15732. default:
  15733. return code;
  15734. }
  15735. }
  15736. var UnicodeRanges = [
  15737. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  15738. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  15739. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  15740. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  15741. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  15742. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  15743. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  15744. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  15745. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  15746. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  15747. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  15748. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  15749. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  15750. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  15751. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  15752. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  15753. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  15754. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  15755. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  15756. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  15757. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  15758. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  15759. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  15760. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  15761. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  15762. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  15763. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  15764. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  15765. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  15766. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  15767. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  15768. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  15769. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  15770. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  15771. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  15772. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  15773. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  15774. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  15775. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  15776. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  15777. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  15778. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  15779. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  15780. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  15781. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  15782. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  15783. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  15784. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  15785. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  15786. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  15787. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  15788. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  15789. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  15790. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  15791. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  15792. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  15793. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  15794. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  15795. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  15796. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  15797. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  15798. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  15799. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  15800. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  15801. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  15802. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  15803. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  15804. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  15805. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  15806. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  15807. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  15808. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  15809. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  15810. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  15811. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  15812. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  15813. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  15814. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  15815. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  15816. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  15817. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  15818. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  15819. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  15820. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  15821. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  15822. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  15823. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  15824. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  15825. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  15826. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  15827. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  15828. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  15829. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  15830. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  15831. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  15832. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  15833. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  15834. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  15835. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  15836. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  15837. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  15838. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  15839. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  15840. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  15841. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  15842. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  15843. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  15844. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  15845. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  15846. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  15847. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  15848. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  15849. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  15850. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  15851. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  15852. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  15853. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  15854. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  15855. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  15856. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  15857. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  15858. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  15859. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  15860. ];
  15861. var MacStandardGlyphOrdering = [
  15862. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  15863. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  15864. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  15865. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  15866. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  15867. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  15868. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  15869. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  15870. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  15871. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  15872. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  15873. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  15874. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  15875. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  15876. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  15877. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  15878. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  15879. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  15880. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  15881. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  15882. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  15883. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  15884. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  15885. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  15886. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  15887. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  15888. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  15889. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  15890. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  15891. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  15892. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  15893. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  15894. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  15895. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  15896. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  15897. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  15898. function getUnicodeRangeFor(value) {
  15899. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  15900. var range = UnicodeRanges[i];
  15901. if (value >= range.begin && value < range.end)
  15902. return i;
  15903. }
  15904. return -1;
  15905. }
  15906. function isRTLRangeFor(value) {
  15907. var range = UnicodeRanges[13];
  15908. if (value >= range.begin && value < range.end)
  15909. return true;
  15910. range = UnicodeRanges[11];
  15911. if (value >= range.begin && value < range.end)
  15912. return true;
  15913. return false;
  15914. }
  15915. function isSpecialUnicode(unicode) {
  15916. return (unicode <= 0x1F || (unicode >= 127 && unicode < GLYPH_AREA_SIZE)) ||
  15917. (unicode >= CMAP_GLYPH_OFFSET &&
  15918. unicode < CMAP_GLYPH_OFFSET + GLYPH_AREA_SIZE);
  15919. }
  15920. // The normalization table is obtained by filtering the Unicode characters
  15921. // database with <compat> entries.
  15922. var NormalizedUnicodes = {
  15923. '\u00A8': '\u0020\u0308',
  15924. '\u00AF': '\u0020\u0304',
  15925. '\u00B4': '\u0020\u0301',
  15926. '\u00B5': '\u03BC',
  15927. '\u00B8': '\u0020\u0327',
  15928. '\u0132': '\u0049\u004A',
  15929. '\u0133': '\u0069\u006A',
  15930. '\u013F': '\u004C\u00B7',
  15931. '\u0140': '\u006C\u00B7',
  15932. '\u0149': '\u02BC\u006E',
  15933. '\u017F': '\u0073',
  15934. '\u01C4': '\u0044\u017D',
  15935. '\u01C5': '\u0044\u017E',
  15936. '\u01C6': '\u0064\u017E',
  15937. '\u01C7': '\u004C\u004A',
  15938. '\u01C8': '\u004C\u006A',
  15939. '\u01C9': '\u006C\u006A',
  15940. '\u01CA': '\u004E\u004A',
  15941. '\u01CB': '\u004E\u006A',
  15942. '\u01CC': '\u006E\u006A',
  15943. '\u01F1': '\u0044\u005A',
  15944. '\u01F2': '\u0044\u007A',
  15945. '\u01F3': '\u0064\u007A',
  15946. '\u02D8': '\u0020\u0306',
  15947. '\u02D9': '\u0020\u0307',
  15948. '\u02DA': '\u0020\u030A',
  15949. '\u02DB': '\u0020\u0328',
  15950. '\u02DC': '\u0020\u0303',
  15951. '\u02DD': '\u0020\u030B',
  15952. '\u037A': '\u0020\u0345',
  15953. '\u0384': '\u0020\u0301',
  15954. '\u03D0': '\u03B2',
  15955. '\u03D1': '\u03B8',
  15956. '\u03D2': '\u03A5',
  15957. '\u03D5': '\u03C6',
  15958. '\u03D6': '\u03C0',
  15959. '\u03F0': '\u03BA',
  15960. '\u03F1': '\u03C1',
  15961. '\u03F2': '\u03C2',
  15962. '\u03F4': '\u0398',
  15963. '\u03F5': '\u03B5',
  15964. '\u03F9': '\u03A3',
  15965. '\u0587': '\u0565\u0582',
  15966. '\u0675': '\u0627\u0674',
  15967. '\u0676': '\u0648\u0674',
  15968. '\u0677': '\u06C7\u0674',
  15969. '\u0678': '\u064A\u0674',
  15970. '\u0E33': '\u0E4D\u0E32',
  15971. '\u0EB3': '\u0ECD\u0EB2',
  15972. '\u0EDC': '\u0EAB\u0E99',
  15973. '\u0EDD': '\u0EAB\u0EA1',
  15974. '\u0F77': '\u0FB2\u0F81',
  15975. '\u0F79': '\u0FB3\u0F81',
  15976. '\u1E9A': '\u0061\u02BE',
  15977. '\u1FBD': '\u0020\u0313',
  15978. '\u1FBF': '\u0020\u0313',
  15979. '\u1FC0': '\u0020\u0342',
  15980. '\u1FFE': '\u0020\u0314',
  15981. '\u2002': '\u0020',
  15982. '\u2003': '\u0020',
  15983. '\u2004': '\u0020',
  15984. '\u2005': '\u0020',
  15985. '\u2006': '\u0020',
  15986. '\u2008': '\u0020',
  15987. '\u2009': '\u0020',
  15988. '\u200A': '\u0020',
  15989. '\u2017': '\u0020\u0333',
  15990. '\u2024': '\u002E',
  15991. '\u2025': '\u002E\u002E',
  15992. '\u2026': '\u002E\u002E\u002E',
  15993. '\u2033': '\u2032\u2032',
  15994. '\u2034': '\u2032\u2032\u2032',
  15995. '\u2036': '\u2035\u2035',
  15996. '\u2037': '\u2035\u2035\u2035',
  15997. '\u203C': '\u0021\u0021',
  15998. '\u203E': '\u0020\u0305',
  15999. '\u2047': '\u003F\u003F',
  16000. '\u2048': '\u003F\u0021',
  16001. '\u2049': '\u0021\u003F',
  16002. '\u2057': '\u2032\u2032\u2032\u2032',
  16003. '\u205F': '\u0020',
  16004. '\u20A8': '\u0052\u0073',
  16005. '\u2100': '\u0061\u002F\u0063',
  16006. '\u2101': '\u0061\u002F\u0073',
  16007. '\u2103': '\u00B0\u0043',
  16008. '\u2105': '\u0063\u002F\u006F',
  16009. '\u2106': '\u0063\u002F\u0075',
  16010. '\u2107': '\u0190',
  16011. '\u2109': '\u00B0\u0046',
  16012. '\u2116': '\u004E\u006F',
  16013. '\u2121': '\u0054\u0045\u004C',
  16014. '\u2135': '\u05D0',
  16015. '\u2136': '\u05D1',
  16016. '\u2137': '\u05D2',
  16017. '\u2138': '\u05D3',
  16018. '\u213B': '\u0046\u0041\u0058',
  16019. '\u2160': '\u0049',
  16020. '\u2161': '\u0049\u0049',
  16021. '\u2162': '\u0049\u0049\u0049',
  16022. '\u2163': '\u0049\u0056',
  16023. '\u2164': '\u0056',
  16024. '\u2165': '\u0056\u0049',
  16025. '\u2166': '\u0056\u0049\u0049',
  16026. '\u2167': '\u0056\u0049\u0049\u0049',
  16027. '\u2168': '\u0049\u0058',
  16028. '\u2169': '\u0058',
  16029. '\u216A': '\u0058\u0049',
  16030. '\u216B': '\u0058\u0049\u0049',
  16031. '\u216C': '\u004C',
  16032. '\u216D': '\u0043',
  16033. '\u216E': '\u0044',
  16034. '\u216F': '\u004D',
  16035. '\u2170': '\u0069',
  16036. '\u2171': '\u0069\u0069',
  16037. '\u2172': '\u0069\u0069\u0069',
  16038. '\u2173': '\u0069\u0076',
  16039. '\u2174': '\u0076',
  16040. '\u2175': '\u0076\u0069',
  16041. '\u2176': '\u0076\u0069\u0069',
  16042. '\u2177': '\u0076\u0069\u0069\u0069',
  16043. '\u2178': '\u0069\u0078',
  16044. '\u2179': '\u0078',
  16045. '\u217A': '\u0078\u0069',
  16046. '\u217B': '\u0078\u0069\u0069',
  16047. '\u217C': '\u006C',
  16048. '\u217D': '\u0063',
  16049. '\u217E': '\u0064',
  16050. '\u217F': '\u006D',
  16051. '\u222C': '\u222B\u222B',
  16052. '\u222D': '\u222B\u222B\u222B',
  16053. '\u222F': '\u222E\u222E',
  16054. '\u2230': '\u222E\u222E\u222E',
  16055. '\u2474': '\u0028\u0031\u0029',
  16056. '\u2475': '\u0028\u0032\u0029',
  16057. '\u2476': '\u0028\u0033\u0029',
  16058. '\u2477': '\u0028\u0034\u0029',
  16059. '\u2478': '\u0028\u0035\u0029',
  16060. '\u2479': '\u0028\u0036\u0029',
  16061. '\u247A': '\u0028\u0037\u0029',
  16062. '\u247B': '\u0028\u0038\u0029',
  16063. '\u247C': '\u0028\u0039\u0029',
  16064. '\u247D': '\u0028\u0031\u0030\u0029',
  16065. '\u247E': '\u0028\u0031\u0031\u0029',
  16066. '\u247F': '\u0028\u0031\u0032\u0029',
  16067. '\u2480': '\u0028\u0031\u0033\u0029',
  16068. '\u2481': '\u0028\u0031\u0034\u0029',
  16069. '\u2482': '\u0028\u0031\u0035\u0029',
  16070. '\u2483': '\u0028\u0031\u0036\u0029',
  16071. '\u2484': '\u0028\u0031\u0037\u0029',
  16072. '\u2485': '\u0028\u0031\u0038\u0029',
  16073. '\u2486': '\u0028\u0031\u0039\u0029',
  16074. '\u2487': '\u0028\u0032\u0030\u0029',
  16075. '\u2488': '\u0031\u002E',
  16076. '\u2489': '\u0032\u002E',
  16077. '\u248A': '\u0033\u002E',
  16078. '\u248B': '\u0034\u002E',
  16079. '\u248C': '\u0035\u002E',
  16080. '\u248D': '\u0036\u002E',
  16081. '\u248E': '\u0037\u002E',
  16082. '\u248F': '\u0038\u002E',
  16083. '\u2490': '\u0039\u002E',
  16084. '\u2491': '\u0031\u0030\u002E',
  16085. '\u2492': '\u0031\u0031\u002E',
  16086. '\u2493': '\u0031\u0032\u002E',
  16087. '\u2494': '\u0031\u0033\u002E',
  16088. '\u2495': '\u0031\u0034\u002E',
  16089. '\u2496': '\u0031\u0035\u002E',
  16090. '\u2497': '\u0031\u0036\u002E',
  16091. '\u2498': '\u0031\u0037\u002E',
  16092. '\u2499': '\u0031\u0038\u002E',
  16093. '\u249A': '\u0031\u0039\u002E',
  16094. '\u249B': '\u0032\u0030\u002E',
  16095. '\u249C': '\u0028\u0061\u0029',
  16096. '\u249D': '\u0028\u0062\u0029',
  16097. '\u249E': '\u0028\u0063\u0029',
  16098. '\u249F': '\u0028\u0064\u0029',
  16099. '\u24A0': '\u0028\u0065\u0029',
  16100. '\u24A1': '\u0028\u0066\u0029',
  16101. '\u24A2': '\u0028\u0067\u0029',
  16102. '\u24A3': '\u0028\u0068\u0029',
  16103. '\u24A4': '\u0028\u0069\u0029',
  16104. '\u24A5': '\u0028\u006A\u0029',
  16105. '\u24A6': '\u0028\u006B\u0029',
  16106. '\u24A7': '\u0028\u006C\u0029',
  16107. '\u24A8': '\u0028\u006D\u0029',
  16108. '\u24A9': '\u0028\u006E\u0029',
  16109. '\u24AA': '\u0028\u006F\u0029',
  16110. '\u24AB': '\u0028\u0070\u0029',
  16111. '\u24AC': '\u0028\u0071\u0029',
  16112. '\u24AD': '\u0028\u0072\u0029',
  16113. '\u24AE': '\u0028\u0073\u0029',
  16114. '\u24AF': '\u0028\u0074\u0029',
  16115. '\u24B0': '\u0028\u0075\u0029',
  16116. '\u24B1': '\u0028\u0076\u0029',
  16117. '\u24B2': '\u0028\u0077\u0029',
  16118. '\u24B3': '\u0028\u0078\u0029',
  16119. '\u24B4': '\u0028\u0079\u0029',
  16120. '\u24B5': '\u0028\u007A\u0029',
  16121. '\u2A0C': '\u222B\u222B\u222B\u222B',
  16122. '\u2A74': '\u003A\u003A\u003D',
  16123. '\u2A75': '\u003D\u003D',
  16124. '\u2A76': '\u003D\u003D\u003D',
  16125. '\u2E9F': '\u6BCD',
  16126. '\u2EF3': '\u9F9F',
  16127. '\u2F00': '\u4E00',
  16128. '\u2F01': '\u4E28',
  16129. '\u2F02': '\u4E36',
  16130. '\u2F03': '\u4E3F',
  16131. '\u2F04': '\u4E59',
  16132. '\u2F05': '\u4E85',
  16133. '\u2F06': '\u4E8C',
  16134. '\u2F07': '\u4EA0',
  16135. '\u2F08': '\u4EBA',
  16136. '\u2F09': '\u513F',
  16137. '\u2F0A': '\u5165',
  16138. '\u2F0B': '\u516B',
  16139. '\u2F0C': '\u5182',
  16140. '\u2F0D': '\u5196',
  16141. '\u2F0E': '\u51AB',
  16142. '\u2F0F': '\u51E0',
  16143. '\u2F10': '\u51F5',
  16144. '\u2F11': '\u5200',
  16145. '\u2F12': '\u529B',
  16146. '\u2F13': '\u52F9',
  16147. '\u2F14': '\u5315',
  16148. '\u2F15': '\u531A',
  16149. '\u2F16': '\u5338',
  16150. '\u2F17': '\u5341',
  16151. '\u2F18': '\u535C',
  16152. '\u2F19': '\u5369',
  16153. '\u2F1A': '\u5382',
  16154. '\u2F1B': '\u53B6',
  16155. '\u2F1C': '\u53C8',
  16156. '\u2F1D': '\u53E3',
  16157. '\u2F1E': '\u56D7',
  16158. '\u2F1F': '\u571F',
  16159. '\u2F20': '\u58EB',
  16160. '\u2F21': '\u5902',
  16161. '\u2F22': '\u590A',
  16162. '\u2F23': '\u5915',
  16163. '\u2F24': '\u5927',
  16164. '\u2F25': '\u5973',
  16165. '\u2F26': '\u5B50',
  16166. '\u2F27': '\u5B80',
  16167. '\u2F28': '\u5BF8',
  16168. '\u2F29': '\u5C0F',
  16169. '\u2F2A': '\u5C22',
  16170. '\u2F2B': '\u5C38',
  16171. '\u2F2C': '\u5C6E',
  16172. '\u2F2D': '\u5C71',
  16173. '\u2F2E': '\u5DDB',
  16174. '\u2F2F': '\u5DE5',
  16175. '\u2F30': '\u5DF1',
  16176. '\u2F31': '\u5DFE',
  16177. '\u2F32': '\u5E72',
  16178. '\u2F33': '\u5E7A',
  16179. '\u2F34': '\u5E7F',
  16180. '\u2F35': '\u5EF4',
  16181. '\u2F36': '\u5EFE',
  16182. '\u2F37': '\u5F0B',
  16183. '\u2F38': '\u5F13',
  16184. '\u2F39': '\u5F50',
  16185. '\u2F3A': '\u5F61',
  16186. '\u2F3B': '\u5F73',
  16187. '\u2F3C': '\u5FC3',
  16188. '\u2F3D': '\u6208',
  16189. '\u2F3E': '\u6236',
  16190. '\u2F3F': '\u624B',
  16191. '\u2F40': '\u652F',
  16192. '\u2F41': '\u6534',
  16193. '\u2F42': '\u6587',
  16194. '\u2F43': '\u6597',
  16195. '\u2F44': '\u65A4',
  16196. '\u2F45': '\u65B9',
  16197. '\u2F46': '\u65E0',
  16198. '\u2F47': '\u65E5',
  16199. '\u2F48': '\u66F0',
  16200. '\u2F49': '\u6708',
  16201. '\u2F4A': '\u6728',
  16202. '\u2F4B': '\u6B20',
  16203. '\u2F4C': '\u6B62',
  16204. '\u2F4D': '\u6B79',
  16205. '\u2F4E': '\u6BB3',
  16206. '\u2F4F': '\u6BCB',
  16207. '\u2F50': '\u6BD4',
  16208. '\u2F51': '\u6BDB',
  16209. '\u2F52': '\u6C0F',
  16210. '\u2F53': '\u6C14',
  16211. '\u2F54': '\u6C34',
  16212. '\u2F55': '\u706B',
  16213. '\u2F56': '\u722A',
  16214. '\u2F57': '\u7236',
  16215. '\u2F58': '\u723B',
  16216. '\u2F59': '\u723F',
  16217. '\u2F5A': '\u7247',
  16218. '\u2F5B': '\u7259',
  16219. '\u2F5C': '\u725B',
  16220. '\u2F5D': '\u72AC',
  16221. '\u2F5E': '\u7384',
  16222. '\u2F5F': '\u7389',
  16223. '\u2F60': '\u74DC',
  16224. '\u2F61': '\u74E6',
  16225. '\u2F62': '\u7518',
  16226. '\u2F63': '\u751F',
  16227. '\u2F64': '\u7528',
  16228. '\u2F65': '\u7530',
  16229. '\u2F66': '\u758B',
  16230. '\u2F67': '\u7592',
  16231. '\u2F68': '\u7676',
  16232. '\u2F69': '\u767D',
  16233. '\u2F6A': '\u76AE',
  16234. '\u2F6B': '\u76BF',
  16235. '\u2F6C': '\u76EE',
  16236. '\u2F6D': '\u77DB',
  16237. '\u2F6E': '\u77E2',
  16238. '\u2F6F': '\u77F3',
  16239. '\u2F70': '\u793A',
  16240. '\u2F71': '\u79B8',
  16241. '\u2F72': '\u79BE',
  16242. '\u2F73': '\u7A74',
  16243. '\u2F74': '\u7ACB',
  16244. '\u2F75': '\u7AF9',
  16245. '\u2F76': '\u7C73',
  16246. '\u2F77': '\u7CF8',
  16247. '\u2F78': '\u7F36',
  16248. '\u2F79': '\u7F51',
  16249. '\u2F7A': '\u7F8A',
  16250. '\u2F7B': '\u7FBD',
  16251. '\u2F7C': '\u8001',
  16252. '\u2F7D': '\u800C',
  16253. '\u2F7E': '\u8012',
  16254. '\u2F7F': '\u8033',
  16255. '\u2F80': '\u807F',
  16256. '\u2F81': '\u8089',
  16257. '\u2F82': '\u81E3',
  16258. '\u2F83': '\u81EA',
  16259. '\u2F84': '\u81F3',
  16260. '\u2F85': '\u81FC',
  16261. '\u2F86': '\u820C',
  16262. '\u2F87': '\u821B',
  16263. '\u2F88': '\u821F',
  16264. '\u2F89': '\u826E',
  16265. '\u2F8A': '\u8272',
  16266. '\u2F8B': '\u8278',
  16267. '\u2F8C': '\u864D',
  16268. '\u2F8D': '\u866B',
  16269. '\u2F8E': '\u8840',
  16270. '\u2F8F': '\u884C',
  16271. '\u2F90': '\u8863',
  16272. '\u2F91': '\u897E',
  16273. '\u2F92': '\u898B',
  16274. '\u2F93': '\u89D2',
  16275. '\u2F94': '\u8A00',
  16276. '\u2F95': '\u8C37',
  16277. '\u2F96': '\u8C46',
  16278. '\u2F97': '\u8C55',
  16279. '\u2F98': '\u8C78',
  16280. '\u2F99': '\u8C9D',
  16281. '\u2F9A': '\u8D64',
  16282. '\u2F9B': '\u8D70',
  16283. '\u2F9C': '\u8DB3',
  16284. '\u2F9D': '\u8EAB',
  16285. '\u2F9E': '\u8ECA',
  16286. '\u2F9F': '\u8F9B',
  16287. '\u2FA0': '\u8FB0',
  16288. '\u2FA1': '\u8FB5',
  16289. '\u2FA2': '\u9091',
  16290. '\u2FA3': '\u9149',
  16291. '\u2FA4': '\u91C6',
  16292. '\u2FA5': '\u91CC',
  16293. '\u2FA6': '\u91D1',
  16294. '\u2FA7': '\u9577',
  16295. '\u2FA8': '\u9580',
  16296. '\u2FA9': '\u961C',
  16297. '\u2FAA': '\u96B6',
  16298. '\u2FAB': '\u96B9',
  16299. '\u2FAC': '\u96E8',
  16300. '\u2FAD': '\u9751',
  16301. '\u2FAE': '\u975E',
  16302. '\u2FAF': '\u9762',
  16303. '\u2FB0': '\u9769',
  16304. '\u2FB1': '\u97CB',
  16305. '\u2FB2': '\u97ED',
  16306. '\u2FB3': '\u97F3',
  16307. '\u2FB4': '\u9801',
  16308. '\u2FB5': '\u98A8',
  16309. '\u2FB6': '\u98DB',
  16310. '\u2FB7': '\u98DF',
  16311. '\u2FB8': '\u9996',
  16312. '\u2FB9': '\u9999',
  16313. '\u2FBA': '\u99AC',
  16314. '\u2FBB': '\u9AA8',
  16315. '\u2FBC': '\u9AD8',
  16316. '\u2FBD': '\u9ADF',
  16317. '\u2FBE': '\u9B25',
  16318. '\u2FBF': '\u9B2F',
  16319. '\u2FC0': '\u9B32',
  16320. '\u2FC1': '\u9B3C',
  16321. '\u2FC2': '\u9B5A',
  16322. '\u2FC3': '\u9CE5',
  16323. '\u2FC4': '\u9E75',
  16324. '\u2FC5': '\u9E7F',
  16325. '\u2FC6': '\u9EA5',
  16326. '\u2FC7': '\u9EBB',
  16327. '\u2FC8': '\u9EC3',
  16328. '\u2FC9': '\u9ECD',
  16329. '\u2FCA': '\u9ED1',
  16330. '\u2FCB': '\u9EF9',
  16331. '\u2FCC': '\u9EFD',
  16332. '\u2FCD': '\u9F0E',
  16333. '\u2FCE': '\u9F13',
  16334. '\u2FCF': '\u9F20',
  16335. '\u2FD0': '\u9F3B',
  16336. '\u2FD1': '\u9F4A',
  16337. '\u2FD2': '\u9F52',
  16338. '\u2FD3': '\u9F8D',
  16339. '\u2FD4': '\u9F9C',
  16340. '\u2FD5': '\u9FA0',
  16341. '\u3036': '\u3012',
  16342. '\u3038': '\u5341',
  16343. '\u3039': '\u5344',
  16344. '\u303A': '\u5345',
  16345. '\u309B': '\u0020\u3099',
  16346. '\u309C': '\u0020\u309A',
  16347. '\u3131': '\u1100',
  16348. '\u3132': '\u1101',
  16349. '\u3133': '\u11AA',
  16350. '\u3134': '\u1102',
  16351. '\u3135': '\u11AC',
  16352. '\u3136': '\u11AD',
  16353. '\u3137': '\u1103',
  16354. '\u3138': '\u1104',
  16355. '\u3139': '\u1105',
  16356. '\u313A': '\u11B0',
  16357. '\u313B': '\u11B1',
  16358. '\u313C': '\u11B2',
  16359. '\u313D': '\u11B3',
  16360. '\u313E': '\u11B4',
  16361. '\u313F': '\u11B5',
  16362. '\u3140': '\u111A',
  16363. '\u3141': '\u1106',
  16364. '\u3142': '\u1107',
  16365. '\u3143': '\u1108',
  16366. '\u3144': '\u1121',
  16367. '\u3145': '\u1109',
  16368. '\u3146': '\u110A',
  16369. '\u3147': '\u110B',
  16370. '\u3148': '\u110C',
  16371. '\u3149': '\u110D',
  16372. '\u314A': '\u110E',
  16373. '\u314B': '\u110F',
  16374. '\u314C': '\u1110',
  16375. '\u314D': '\u1111',
  16376. '\u314E': '\u1112',
  16377. '\u314F': '\u1161',
  16378. '\u3150': '\u1162',
  16379. '\u3151': '\u1163',
  16380. '\u3152': '\u1164',
  16381. '\u3153': '\u1165',
  16382. '\u3154': '\u1166',
  16383. '\u3155': '\u1167',
  16384. '\u3156': '\u1168',
  16385. '\u3157': '\u1169',
  16386. '\u3158': '\u116A',
  16387. '\u3159': '\u116B',
  16388. '\u315A': '\u116C',
  16389. '\u315B': '\u116D',
  16390. '\u315C': '\u116E',
  16391. '\u315D': '\u116F',
  16392. '\u315E': '\u1170',
  16393. '\u315F': '\u1171',
  16394. '\u3160': '\u1172',
  16395. '\u3161': '\u1173',
  16396. '\u3162': '\u1174',
  16397. '\u3163': '\u1175',
  16398. '\u3164': '\u1160',
  16399. '\u3165': '\u1114',
  16400. '\u3166': '\u1115',
  16401. '\u3167': '\u11C7',
  16402. '\u3168': '\u11C8',
  16403. '\u3169': '\u11CC',
  16404. '\u316A': '\u11CE',
  16405. '\u316B': '\u11D3',
  16406. '\u316C': '\u11D7',
  16407. '\u316D': '\u11D9',
  16408. '\u316E': '\u111C',
  16409. '\u316F': '\u11DD',
  16410. '\u3170': '\u11DF',
  16411. '\u3171': '\u111D',
  16412. '\u3172': '\u111E',
  16413. '\u3173': '\u1120',
  16414. '\u3174': '\u1122',
  16415. '\u3175': '\u1123',
  16416. '\u3176': '\u1127',
  16417. '\u3177': '\u1129',
  16418. '\u3178': '\u112B',
  16419. '\u3179': '\u112C',
  16420. '\u317A': '\u112D',
  16421. '\u317B': '\u112E',
  16422. '\u317C': '\u112F',
  16423. '\u317D': '\u1132',
  16424. '\u317E': '\u1136',
  16425. '\u317F': '\u1140',
  16426. '\u3180': '\u1147',
  16427. '\u3181': '\u114C',
  16428. '\u3182': '\u11F1',
  16429. '\u3183': '\u11F2',
  16430. '\u3184': '\u1157',
  16431. '\u3185': '\u1158',
  16432. '\u3186': '\u1159',
  16433. '\u3187': '\u1184',
  16434. '\u3188': '\u1185',
  16435. '\u3189': '\u1188',
  16436. '\u318A': '\u1191',
  16437. '\u318B': '\u1192',
  16438. '\u318C': '\u1194',
  16439. '\u318D': '\u119E',
  16440. '\u318E': '\u11A1',
  16441. '\u3200': '\u0028\u1100\u0029',
  16442. '\u3201': '\u0028\u1102\u0029',
  16443. '\u3202': '\u0028\u1103\u0029',
  16444. '\u3203': '\u0028\u1105\u0029',
  16445. '\u3204': '\u0028\u1106\u0029',
  16446. '\u3205': '\u0028\u1107\u0029',
  16447. '\u3206': '\u0028\u1109\u0029',
  16448. '\u3207': '\u0028\u110B\u0029',
  16449. '\u3208': '\u0028\u110C\u0029',
  16450. '\u3209': '\u0028\u110E\u0029',
  16451. '\u320A': '\u0028\u110F\u0029',
  16452. '\u320B': '\u0028\u1110\u0029',
  16453. '\u320C': '\u0028\u1111\u0029',
  16454. '\u320D': '\u0028\u1112\u0029',
  16455. '\u320E': '\u0028\u1100\u1161\u0029',
  16456. '\u320F': '\u0028\u1102\u1161\u0029',
  16457. '\u3210': '\u0028\u1103\u1161\u0029',
  16458. '\u3211': '\u0028\u1105\u1161\u0029',
  16459. '\u3212': '\u0028\u1106\u1161\u0029',
  16460. '\u3213': '\u0028\u1107\u1161\u0029',
  16461. '\u3214': '\u0028\u1109\u1161\u0029',
  16462. '\u3215': '\u0028\u110B\u1161\u0029',
  16463. '\u3216': '\u0028\u110C\u1161\u0029',
  16464. '\u3217': '\u0028\u110E\u1161\u0029',
  16465. '\u3218': '\u0028\u110F\u1161\u0029',
  16466. '\u3219': '\u0028\u1110\u1161\u0029',
  16467. '\u321A': '\u0028\u1111\u1161\u0029',
  16468. '\u321B': '\u0028\u1112\u1161\u0029',
  16469. '\u321C': '\u0028\u110C\u116E\u0029',
  16470. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  16471. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  16472. '\u3220': '\u0028\u4E00\u0029',
  16473. '\u3221': '\u0028\u4E8C\u0029',
  16474. '\u3222': '\u0028\u4E09\u0029',
  16475. '\u3223': '\u0028\u56DB\u0029',
  16476. '\u3224': '\u0028\u4E94\u0029',
  16477. '\u3225': '\u0028\u516D\u0029',
  16478. '\u3226': '\u0028\u4E03\u0029',
  16479. '\u3227': '\u0028\u516B\u0029',
  16480. '\u3228': '\u0028\u4E5D\u0029',
  16481. '\u3229': '\u0028\u5341\u0029',
  16482. '\u322A': '\u0028\u6708\u0029',
  16483. '\u322B': '\u0028\u706B\u0029',
  16484. '\u322C': '\u0028\u6C34\u0029',
  16485. '\u322D': '\u0028\u6728\u0029',
  16486. '\u322E': '\u0028\u91D1\u0029',
  16487. '\u322F': '\u0028\u571F\u0029',
  16488. '\u3230': '\u0028\u65E5\u0029',
  16489. '\u3231': '\u0028\u682A\u0029',
  16490. '\u3232': '\u0028\u6709\u0029',
  16491. '\u3233': '\u0028\u793E\u0029',
  16492. '\u3234': '\u0028\u540D\u0029',
  16493. '\u3235': '\u0028\u7279\u0029',
  16494. '\u3236': '\u0028\u8CA1\u0029',
  16495. '\u3237': '\u0028\u795D\u0029',
  16496. '\u3238': '\u0028\u52B4\u0029',
  16497. '\u3239': '\u0028\u4EE3\u0029',
  16498. '\u323A': '\u0028\u547C\u0029',
  16499. '\u323B': '\u0028\u5B66\u0029',
  16500. '\u323C': '\u0028\u76E3\u0029',
  16501. '\u323D': '\u0028\u4F01\u0029',
  16502. '\u323E': '\u0028\u8CC7\u0029',
  16503. '\u323F': '\u0028\u5354\u0029',
  16504. '\u3240': '\u0028\u796D\u0029',
  16505. '\u3241': '\u0028\u4F11\u0029',
  16506. '\u3242': '\u0028\u81EA\u0029',
  16507. '\u3243': '\u0028\u81F3\u0029',
  16508. '\u32C0': '\u0031\u6708',
  16509. '\u32C1': '\u0032\u6708',
  16510. '\u32C2': '\u0033\u6708',
  16511. '\u32C3': '\u0034\u6708',
  16512. '\u32C4': '\u0035\u6708',
  16513. '\u32C5': '\u0036\u6708',
  16514. '\u32C6': '\u0037\u6708',
  16515. '\u32C7': '\u0038\u6708',
  16516. '\u32C8': '\u0039\u6708',
  16517. '\u32C9': '\u0031\u0030\u6708',
  16518. '\u32CA': '\u0031\u0031\u6708',
  16519. '\u32CB': '\u0031\u0032\u6708',
  16520. '\u3358': '\u0030\u70B9',
  16521. '\u3359': '\u0031\u70B9',
  16522. '\u335A': '\u0032\u70B9',
  16523. '\u335B': '\u0033\u70B9',
  16524. '\u335C': '\u0034\u70B9',
  16525. '\u335D': '\u0035\u70B9',
  16526. '\u335E': '\u0036\u70B9',
  16527. '\u335F': '\u0037\u70B9',
  16528. '\u3360': '\u0038\u70B9',
  16529. '\u3361': '\u0039\u70B9',
  16530. '\u3362': '\u0031\u0030\u70B9',
  16531. '\u3363': '\u0031\u0031\u70B9',
  16532. '\u3364': '\u0031\u0032\u70B9',
  16533. '\u3365': '\u0031\u0033\u70B9',
  16534. '\u3366': '\u0031\u0034\u70B9',
  16535. '\u3367': '\u0031\u0035\u70B9',
  16536. '\u3368': '\u0031\u0036\u70B9',
  16537. '\u3369': '\u0031\u0037\u70B9',
  16538. '\u336A': '\u0031\u0038\u70B9',
  16539. '\u336B': '\u0031\u0039\u70B9',
  16540. '\u336C': '\u0032\u0030\u70B9',
  16541. '\u336D': '\u0032\u0031\u70B9',
  16542. '\u336E': '\u0032\u0032\u70B9',
  16543. '\u336F': '\u0032\u0033\u70B9',
  16544. '\u3370': '\u0032\u0034\u70B9',
  16545. '\u33E0': '\u0031\u65E5',
  16546. '\u33E1': '\u0032\u65E5',
  16547. '\u33E2': '\u0033\u65E5',
  16548. '\u33E3': '\u0034\u65E5',
  16549. '\u33E4': '\u0035\u65E5',
  16550. '\u33E5': '\u0036\u65E5',
  16551. '\u33E6': '\u0037\u65E5',
  16552. '\u33E7': '\u0038\u65E5',
  16553. '\u33E8': '\u0039\u65E5',
  16554. '\u33E9': '\u0031\u0030\u65E5',
  16555. '\u33EA': '\u0031\u0031\u65E5',
  16556. '\u33EB': '\u0031\u0032\u65E5',
  16557. '\u33EC': '\u0031\u0033\u65E5',
  16558. '\u33ED': '\u0031\u0034\u65E5',
  16559. '\u33EE': '\u0031\u0035\u65E5',
  16560. '\u33EF': '\u0031\u0036\u65E5',
  16561. '\u33F0': '\u0031\u0037\u65E5',
  16562. '\u33F1': '\u0031\u0038\u65E5',
  16563. '\u33F2': '\u0031\u0039\u65E5',
  16564. '\u33F3': '\u0032\u0030\u65E5',
  16565. '\u33F4': '\u0032\u0031\u65E5',
  16566. '\u33F5': '\u0032\u0032\u65E5',
  16567. '\u33F6': '\u0032\u0033\u65E5',
  16568. '\u33F7': '\u0032\u0034\u65E5',
  16569. '\u33F8': '\u0032\u0035\u65E5',
  16570. '\u33F9': '\u0032\u0036\u65E5',
  16571. '\u33FA': '\u0032\u0037\u65E5',
  16572. '\u33FB': '\u0032\u0038\u65E5',
  16573. '\u33FC': '\u0032\u0039\u65E5',
  16574. '\u33FD': '\u0033\u0030\u65E5',
  16575. '\u33FE': '\u0033\u0031\u65E5',
  16576. '\uFB00': '\u0066\u0066',
  16577. '\uFB01': '\u0066\u0069',
  16578. '\uFB02': '\u0066\u006C',
  16579. '\uFB03': '\u0066\u0066\u0069',
  16580. '\uFB04': '\u0066\u0066\u006C',
  16581. '\uFB05': '\u017F\u0074',
  16582. '\uFB06': '\u0073\u0074',
  16583. '\uFB13': '\u0574\u0576',
  16584. '\uFB14': '\u0574\u0565',
  16585. '\uFB15': '\u0574\u056B',
  16586. '\uFB16': '\u057E\u0576',
  16587. '\uFB17': '\u0574\u056D',
  16588. '\uFB4F': '\u05D0\u05DC',
  16589. '\uFB50': '\u0671',
  16590. '\uFB51': '\u0671',
  16591. '\uFB52': '\u067B',
  16592. '\uFB53': '\u067B',
  16593. '\uFB54': '\u067B',
  16594. '\uFB55': '\u067B',
  16595. '\uFB56': '\u067E',
  16596. '\uFB57': '\u067E',
  16597. '\uFB58': '\u067E',
  16598. '\uFB59': '\u067E',
  16599. '\uFB5A': '\u0680',
  16600. '\uFB5B': '\u0680',
  16601. '\uFB5C': '\u0680',
  16602. '\uFB5D': '\u0680',
  16603. '\uFB5E': '\u067A',
  16604. '\uFB5F': '\u067A',
  16605. '\uFB60': '\u067A',
  16606. '\uFB61': '\u067A',
  16607. '\uFB62': '\u067F',
  16608. '\uFB63': '\u067F',
  16609. '\uFB64': '\u067F',
  16610. '\uFB65': '\u067F',
  16611. '\uFB66': '\u0679',
  16612. '\uFB67': '\u0679',
  16613. '\uFB68': '\u0679',
  16614. '\uFB69': '\u0679',
  16615. '\uFB6A': '\u06A4',
  16616. '\uFB6B': '\u06A4',
  16617. '\uFB6C': '\u06A4',
  16618. '\uFB6D': '\u06A4',
  16619. '\uFB6E': '\u06A6',
  16620. '\uFB6F': '\u06A6',
  16621. '\uFB70': '\u06A6',
  16622. '\uFB71': '\u06A6',
  16623. '\uFB72': '\u0684',
  16624. '\uFB73': '\u0684',
  16625. '\uFB74': '\u0684',
  16626. '\uFB75': '\u0684',
  16627. '\uFB76': '\u0683',
  16628. '\uFB77': '\u0683',
  16629. '\uFB78': '\u0683',
  16630. '\uFB79': '\u0683',
  16631. '\uFB7A': '\u0686',
  16632. '\uFB7B': '\u0686',
  16633. '\uFB7C': '\u0686',
  16634. '\uFB7D': '\u0686',
  16635. '\uFB7E': '\u0687',
  16636. '\uFB7F': '\u0687',
  16637. '\uFB80': '\u0687',
  16638. '\uFB81': '\u0687',
  16639. '\uFB82': '\u068D',
  16640. '\uFB83': '\u068D',
  16641. '\uFB84': '\u068C',
  16642. '\uFB85': '\u068C',
  16643. '\uFB86': '\u068E',
  16644. '\uFB87': '\u068E',
  16645. '\uFB88': '\u0688',
  16646. '\uFB89': '\u0688',
  16647. '\uFB8A': '\u0698',
  16648. '\uFB8B': '\u0698',
  16649. '\uFB8C': '\u0691',
  16650. '\uFB8D': '\u0691',
  16651. '\uFB8E': '\u06A9',
  16652. '\uFB8F': '\u06A9',
  16653. '\uFB90': '\u06A9',
  16654. '\uFB91': '\u06A9',
  16655. '\uFB92': '\u06AF',
  16656. '\uFB93': '\u06AF',
  16657. '\uFB94': '\u06AF',
  16658. '\uFB95': '\u06AF',
  16659. '\uFB96': '\u06B3',
  16660. '\uFB97': '\u06B3',
  16661. '\uFB98': '\u06B3',
  16662. '\uFB99': '\u06B3',
  16663. '\uFB9A': '\u06B1',
  16664. '\uFB9B': '\u06B1',
  16665. '\uFB9C': '\u06B1',
  16666. '\uFB9D': '\u06B1',
  16667. '\uFB9E': '\u06BA',
  16668. '\uFB9F': '\u06BA',
  16669. '\uFBA0': '\u06BB',
  16670. '\uFBA1': '\u06BB',
  16671. '\uFBA2': '\u06BB',
  16672. '\uFBA3': '\u06BB',
  16673. '\uFBA4': '\u06C0',
  16674. '\uFBA5': '\u06C0',
  16675. '\uFBA6': '\u06C1',
  16676. '\uFBA7': '\u06C1',
  16677. '\uFBA8': '\u06C1',
  16678. '\uFBA9': '\u06C1',
  16679. '\uFBAA': '\u06BE',
  16680. '\uFBAB': '\u06BE',
  16681. '\uFBAC': '\u06BE',
  16682. '\uFBAD': '\u06BE',
  16683. '\uFBAE': '\u06D2',
  16684. '\uFBAF': '\u06D2',
  16685. '\uFBB0': '\u06D3',
  16686. '\uFBB1': '\u06D3',
  16687. '\uFBD3': '\u06AD',
  16688. '\uFBD4': '\u06AD',
  16689. '\uFBD5': '\u06AD',
  16690. '\uFBD6': '\u06AD',
  16691. '\uFBD7': '\u06C7',
  16692. '\uFBD8': '\u06C7',
  16693. '\uFBD9': '\u06C6',
  16694. '\uFBDA': '\u06C6',
  16695. '\uFBDB': '\u06C8',
  16696. '\uFBDC': '\u06C8',
  16697. '\uFBDD': '\u0677',
  16698. '\uFBDE': '\u06CB',
  16699. '\uFBDF': '\u06CB',
  16700. '\uFBE0': '\u06C5',
  16701. '\uFBE1': '\u06C5',
  16702. '\uFBE2': '\u06C9',
  16703. '\uFBE3': '\u06C9',
  16704. '\uFBE4': '\u06D0',
  16705. '\uFBE5': '\u06D0',
  16706. '\uFBE6': '\u06D0',
  16707. '\uFBE7': '\u06D0',
  16708. '\uFBE8': '\u0649',
  16709. '\uFBE9': '\u0649',
  16710. '\uFBEA': '\u0626\u0627',
  16711. '\uFBEB': '\u0626\u0627',
  16712. '\uFBEC': '\u0626\u06D5',
  16713. '\uFBED': '\u0626\u06D5',
  16714. '\uFBEE': '\u0626\u0648',
  16715. '\uFBEF': '\u0626\u0648',
  16716. '\uFBF0': '\u0626\u06C7',
  16717. '\uFBF1': '\u0626\u06C7',
  16718. '\uFBF2': '\u0626\u06C6',
  16719. '\uFBF3': '\u0626\u06C6',
  16720. '\uFBF4': '\u0626\u06C8',
  16721. '\uFBF5': '\u0626\u06C8',
  16722. '\uFBF6': '\u0626\u06D0',
  16723. '\uFBF7': '\u0626\u06D0',
  16724. '\uFBF8': '\u0626\u06D0',
  16725. '\uFBF9': '\u0626\u0649',
  16726. '\uFBFA': '\u0626\u0649',
  16727. '\uFBFB': '\u0626\u0649',
  16728. '\uFBFC': '\u06CC',
  16729. '\uFBFD': '\u06CC',
  16730. '\uFBFE': '\u06CC',
  16731. '\uFBFF': '\u06CC',
  16732. '\uFC00': '\u0626\u062C',
  16733. '\uFC01': '\u0626\u062D',
  16734. '\uFC02': '\u0626\u0645',
  16735. '\uFC03': '\u0626\u0649',
  16736. '\uFC04': '\u0626\u064A',
  16737. '\uFC05': '\u0628\u062C',
  16738. '\uFC06': '\u0628\u062D',
  16739. '\uFC07': '\u0628\u062E',
  16740. '\uFC08': '\u0628\u0645',
  16741. '\uFC09': '\u0628\u0649',
  16742. '\uFC0A': '\u0628\u064A',
  16743. '\uFC0B': '\u062A\u062C',
  16744. '\uFC0C': '\u062A\u062D',
  16745. '\uFC0D': '\u062A\u062E',
  16746. '\uFC0E': '\u062A\u0645',
  16747. '\uFC0F': '\u062A\u0649',
  16748. '\uFC10': '\u062A\u064A',
  16749. '\uFC11': '\u062B\u062C',
  16750. '\uFC12': '\u062B\u0645',
  16751. '\uFC13': '\u062B\u0649',
  16752. '\uFC14': '\u062B\u064A',
  16753. '\uFC15': '\u062C\u062D',
  16754. '\uFC16': '\u062C\u0645',
  16755. '\uFC17': '\u062D\u062C',
  16756. '\uFC18': '\u062D\u0645',
  16757. '\uFC19': '\u062E\u062C',
  16758. '\uFC1A': '\u062E\u062D',
  16759. '\uFC1B': '\u062E\u0645',
  16760. '\uFC1C': '\u0633\u062C',
  16761. '\uFC1D': '\u0633\u062D',
  16762. '\uFC1E': '\u0633\u062E',
  16763. '\uFC1F': '\u0633\u0645',
  16764. '\uFC20': '\u0635\u062D',
  16765. '\uFC21': '\u0635\u0645',
  16766. '\uFC22': '\u0636\u062C',
  16767. '\uFC23': '\u0636\u062D',
  16768. '\uFC24': '\u0636\u062E',
  16769. '\uFC25': '\u0636\u0645',
  16770. '\uFC26': '\u0637\u062D',
  16771. '\uFC27': '\u0637\u0645',
  16772. '\uFC28': '\u0638\u0645',
  16773. '\uFC29': '\u0639\u062C',
  16774. '\uFC2A': '\u0639\u0645',
  16775. '\uFC2B': '\u063A\u062C',
  16776. '\uFC2C': '\u063A\u0645',
  16777. '\uFC2D': '\u0641\u062C',
  16778. '\uFC2E': '\u0641\u062D',
  16779. '\uFC2F': '\u0641\u062E',
  16780. '\uFC30': '\u0641\u0645',
  16781. '\uFC31': '\u0641\u0649',
  16782. '\uFC32': '\u0641\u064A',
  16783. '\uFC33': '\u0642\u062D',
  16784. '\uFC34': '\u0642\u0645',
  16785. '\uFC35': '\u0642\u0649',
  16786. '\uFC36': '\u0642\u064A',
  16787. '\uFC37': '\u0643\u0627',
  16788. '\uFC38': '\u0643\u062C',
  16789. '\uFC39': '\u0643\u062D',
  16790. '\uFC3A': '\u0643\u062E',
  16791. '\uFC3B': '\u0643\u0644',
  16792. '\uFC3C': '\u0643\u0645',
  16793. '\uFC3D': '\u0643\u0649',
  16794. '\uFC3E': '\u0643\u064A',
  16795. '\uFC3F': '\u0644\u062C',
  16796. '\uFC40': '\u0644\u062D',
  16797. '\uFC41': '\u0644\u062E',
  16798. '\uFC42': '\u0644\u0645',
  16799. '\uFC43': '\u0644\u0649',
  16800. '\uFC44': '\u0644\u064A',
  16801. '\uFC45': '\u0645\u062C',
  16802. '\uFC46': '\u0645\u062D',
  16803. '\uFC47': '\u0645\u062E',
  16804. '\uFC48': '\u0645\u0645',
  16805. '\uFC49': '\u0645\u0649',
  16806. '\uFC4A': '\u0645\u064A',
  16807. '\uFC4B': '\u0646\u062C',
  16808. '\uFC4C': '\u0646\u062D',
  16809. '\uFC4D': '\u0646\u062E',
  16810. '\uFC4E': '\u0646\u0645',
  16811. '\uFC4F': '\u0646\u0649',
  16812. '\uFC50': '\u0646\u064A',
  16813. '\uFC51': '\u0647\u062C',
  16814. '\uFC52': '\u0647\u0645',
  16815. '\uFC53': '\u0647\u0649',
  16816. '\uFC54': '\u0647\u064A',
  16817. '\uFC55': '\u064A\u062C',
  16818. '\uFC56': '\u064A\u062D',
  16819. '\uFC57': '\u064A\u062E',
  16820. '\uFC58': '\u064A\u0645',
  16821. '\uFC59': '\u064A\u0649',
  16822. '\uFC5A': '\u064A\u064A',
  16823. '\uFC5B': '\u0630\u0670',
  16824. '\uFC5C': '\u0631\u0670',
  16825. '\uFC5D': '\u0649\u0670',
  16826. '\uFC5E': '\u0020\u064C\u0651',
  16827. '\uFC5F': '\u0020\u064D\u0651',
  16828. '\uFC60': '\u0020\u064E\u0651',
  16829. '\uFC61': '\u0020\u064F\u0651',
  16830. '\uFC62': '\u0020\u0650\u0651',
  16831. '\uFC63': '\u0020\u0651\u0670',
  16832. '\uFC64': '\u0626\u0631',
  16833. '\uFC65': '\u0626\u0632',
  16834. '\uFC66': '\u0626\u0645',
  16835. '\uFC67': '\u0626\u0646',
  16836. '\uFC68': '\u0626\u0649',
  16837. '\uFC69': '\u0626\u064A',
  16838. '\uFC6A': '\u0628\u0631',
  16839. '\uFC6B': '\u0628\u0632',
  16840. '\uFC6C': '\u0628\u0645',
  16841. '\uFC6D': '\u0628\u0646',
  16842. '\uFC6E': '\u0628\u0649',
  16843. '\uFC6F': '\u0628\u064A',
  16844. '\uFC70': '\u062A\u0631',
  16845. '\uFC71': '\u062A\u0632',
  16846. '\uFC72': '\u062A\u0645',
  16847. '\uFC73': '\u062A\u0646',
  16848. '\uFC74': '\u062A\u0649',
  16849. '\uFC75': '\u062A\u064A',
  16850. '\uFC76': '\u062B\u0631',
  16851. '\uFC77': '\u062B\u0632',
  16852. '\uFC78': '\u062B\u0645',
  16853. '\uFC79': '\u062B\u0646',
  16854. '\uFC7A': '\u062B\u0649',
  16855. '\uFC7B': '\u062B\u064A',
  16856. '\uFC7C': '\u0641\u0649',
  16857. '\uFC7D': '\u0641\u064A',
  16858. '\uFC7E': '\u0642\u0649',
  16859. '\uFC7F': '\u0642\u064A',
  16860. '\uFC80': '\u0643\u0627',
  16861. '\uFC81': '\u0643\u0644',
  16862. '\uFC82': '\u0643\u0645',
  16863. '\uFC83': '\u0643\u0649',
  16864. '\uFC84': '\u0643\u064A',
  16865. '\uFC85': '\u0644\u0645',
  16866. '\uFC86': '\u0644\u0649',
  16867. '\uFC87': '\u0644\u064A',
  16868. '\uFC88': '\u0645\u0627',
  16869. '\uFC89': '\u0645\u0645',
  16870. '\uFC8A': '\u0646\u0631',
  16871. '\uFC8B': '\u0646\u0632',
  16872. '\uFC8C': '\u0646\u0645',
  16873. '\uFC8D': '\u0646\u0646',
  16874. '\uFC8E': '\u0646\u0649',
  16875. '\uFC8F': '\u0646\u064A',
  16876. '\uFC90': '\u0649\u0670',
  16877. '\uFC91': '\u064A\u0631',
  16878. '\uFC92': '\u064A\u0632',
  16879. '\uFC93': '\u064A\u0645',
  16880. '\uFC94': '\u064A\u0646',
  16881. '\uFC95': '\u064A\u0649',
  16882. '\uFC96': '\u064A\u064A',
  16883. '\uFC97': '\u0626\u062C',
  16884. '\uFC98': '\u0626\u062D',
  16885. '\uFC99': '\u0626\u062E',
  16886. '\uFC9A': '\u0626\u0645',
  16887. '\uFC9B': '\u0626\u0647',
  16888. '\uFC9C': '\u0628\u062C',
  16889. '\uFC9D': '\u0628\u062D',
  16890. '\uFC9E': '\u0628\u062E',
  16891. '\uFC9F': '\u0628\u0645',
  16892. '\uFCA0': '\u0628\u0647',
  16893. '\uFCA1': '\u062A\u062C',
  16894. '\uFCA2': '\u062A\u062D',
  16895. '\uFCA3': '\u062A\u062E',
  16896. '\uFCA4': '\u062A\u0645',
  16897. '\uFCA5': '\u062A\u0647',
  16898. '\uFCA6': '\u062B\u0645',
  16899. '\uFCA7': '\u062C\u062D',
  16900. '\uFCA8': '\u062C\u0645',
  16901. '\uFCA9': '\u062D\u062C',
  16902. '\uFCAA': '\u062D\u0645',
  16903. '\uFCAB': '\u062E\u062C',
  16904. '\uFCAC': '\u062E\u0645',
  16905. '\uFCAD': '\u0633\u062C',
  16906. '\uFCAE': '\u0633\u062D',
  16907. '\uFCAF': '\u0633\u062E',
  16908. '\uFCB0': '\u0633\u0645',
  16909. '\uFCB1': '\u0635\u062D',
  16910. '\uFCB2': '\u0635\u062E',
  16911. '\uFCB3': '\u0635\u0645',
  16912. '\uFCB4': '\u0636\u062C',
  16913. '\uFCB5': '\u0636\u062D',
  16914. '\uFCB6': '\u0636\u062E',
  16915. '\uFCB7': '\u0636\u0645',
  16916. '\uFCB8': '\u0637\u062D',
  16917. '\uFCB9': '\u0638\u0645',
  16918. '\uFCBA': '\u0639\u062C',
  16919. '\uFCBB': '\u0639\u0645',
  16920. '\uFCBC': '\u063A\u062C',
  16921. '\uFCBD': '\u063A\u0645',
  16922. '\uFCBE': '\u0641\u062C',
  16923. '\uFCBF': '\u0641\u062D',
  16924. '\uFCC0': '\u0641\u062E',
  16925. '\uFCC1': '\u0641\u0645',
  16926. '\uFCC2': '\u0642\u062D',
  16927. '\uFCC3': '\u0642\u0645',
  16928. '\uFCC4': '\u0643\u062C',
  16929. '\uFCC5': '\u0643\u062D',
  16930. '\uFCC6': '\u0643\u062E',
  16931. '\uFCC7': '\u0643\u0644',
  16932. '\uFCC8': '\u0643\u0645',
  16933. '\uFCC9': '\u0644\u062C',
  16934. '\uFCCA': '\u0644\u062D',
  16935. '\uFCCB': '\u0644\u062E',
  16936. '\uFCCC': '\u0644\u0645',
  16937. '\uFCCD': '\u0644\u0647',
  16938. '\uFCCE': '\u0645\u062C',
  16939. '\uFCCF': '\u0645\u062D',
  16940. '\uFCD0': '\u0645\u062E',
  16941. '\uFCD1': '\u0645\u0645',
  16942. '\uFCD2': '\u0646\u062C',
  16943. '\uFCD3': '\u0646\u062D',
  16944. '\uFCD4': '\u0646\u062E',
  16945. '\uFCD5': '\u0646\u0645',
  16946. '\uFCD6': '\u0646\u0647',
  16947. '\uFCD7': '\u0647\u062C',
  16948. '\uFCD8': '\u0647\u0645',
  16949. '\uFCD9': '\u0647\u0670',
  16950. '\uFCDA': '\u064A\u062C',
  16951. '\uFCDB': '\u064A\u062D',
  16952. '\uFCDC': '\u064A\u062E',
  16953. '\uFCDD': '\u064A\u0645',
  16954. '\uFCDE': '\u064A\u0647',
  16955. '\uFCDF': '\u0626\u0645',
  16956. '\uFCE0': '\u0626\u0647',
  16957. '\uFCE1': '\u0628\u0645',
  16958. '\uFCE2': '\u0628\u0647',
  16959. '\uFCE3': '\u062A\u0645',
  16960. '\uFCE4': '\u062A\u0647',
  16961. '\uFCE5': '\u062B\u0645',
  16962. '\uFCE6': '\u062B\u0647',
  16963. '\uFCE7': '\u0633\u0645',
  16964. '\uFCE8': '\u0633\u0647',
  16965. '\uFCE9': '\u0634\u0645',
  16966. '\uFCEA': '\u0634\u0647',
  16967. '\uFCEB': '\u0643\u0644',
  16968. '\uFCEC': '\u0643\u0645',
  16969. '\uFCED': '\u0644\u0645',
  16970. '\uFCEE': '\u0646\u0645',
  16971. '\uFCEF': '\u0646\u0647',
  16972. '\uFCF0': '\u064A\u0645',
  16973. '\uFCF1': '\u064A\u0647',
  16974. '\uFCF2': '\u0640\u064E\u0651',
  16975. '\uFCF3': '\u0640\u064F\u0651',
  16976. '\uFCF4': '\u0640\u0650\u0651',
  16977. '\uFCF5': '\u0637\u0649',
  16978. '\uFCF6': '\u0637\u064A',
  16979. '\uFCF7': '\u0639\u0649',
  16980. '\uFCF8': '\u0639\u064A',
  16981. '\uFCF9': '\u063A\u0649',
  16982. '\uFCFA': '\u063A\u064A',
  16983. '\uFCFB': '\u0633\u0649',
  16984. '\uFCFC': '\u0633\u064A',
  16985. '\uFCFD': '\u0634\u0649',
  16986. '\uFCFE': '\u0634\u064A',
  16987. '\uFCFF': '\u062D\u0649',
  16988. '\uFD00': '\u062D\u064A',
  16989. '\uFD01': '\u062C\u0649',
  16990. '\uFD02': '\u062C\u064A',
  16991. '\uFD03': '\u062E\u0649',
  16992. '\uFD04': '\u062E\u064A',
  16993. '\uFD05': '\u0635\u0649',
  16994. '\uFD06': '\u0635\u064A',
  16995. '\uFD07': '\u0636\u0649',
  16996. '\uFD08': '\u0636\u064A',
  16997. '\uFD09': '\u0634\u062C',
  16998. '\uFD0A': '\u0634\u062D',
  16999. '\uFD0B': '\u0634\u062E',
  17000. '\uFD0C': '\u0634\u0645',
  17001. '\uFD0D': '\u0634\u0631',
  17002. '\uFD0E': '\u0633\u0631',
  17003. '\uFD0F': '\u0635\u0631',
  17004. '\uFD10': '\u0636\u0631',
  17005. '\uFD11': '\u0637\u0649',
  17006. '\uFD12': '\u0637\u064A',
  17007. '\uFD13': '\u0639\u0649',
  17008. '\uFD14': '\u0639\u064A',
  17009. '\uFD15': '\u063A\u0649',
  17010. '\uFD16': '\u063A\u064A',
  17011. '\uFD17': '\u0633\u0649',
  17012. '\uFD18': '\u0633\u064A',
  17013. '\uFD19': '\u0634\u0649',
  17014. '\uFD1A': '\u0634\u064A',
  17015. '\uFD1B': '\u062D\u0649',
  17016. '\uFD1C': '\u062D\u064A',
  17017. '\uFD1D': '\u062C\u0649',
  17018. '\uFD1E': '\u062C\u064A',
  17019. '\uFD1F': '\u062E\u0649',
  17020. '\uFD20': '\u062E\u064A',
  17021. '\uFD21': '\u0635\u0649',
  17022. '\uFD22': '\u0635\u064A',
  17023. '\uFD23': '\u0636\u0649',
  17024. '\uFD24': '\u0636\u064A',
  17025. '\uFD25': '\u0634\u062C',
  17026. '\uFD26': '\u0634\u062D',
  17027. '\uFD27': '\u0634\u062E',
  17028. '\uFD28': '\u0634\u0645',
  17029. '\uFD29': '\u0634\u0631',
  17030. '\uFD2A': '\u0633\u0631',
  17031. '\uFD2B': '\u0635\u0631',
  17032. '\uFD2C': '\u0636\u0631',
  17033. '\uFD2D': '\u0634\u062C',
  17034. '\uFD2E': '\u0634\u062D',
  17035. '\uFD2F': '\u0634\u062E',
  17036. '\uFD30': '\u0634\u0645',
  17037. '\uFD31': '\u0633\u0647',
  17038. '\uFD32': '\u0634\u0647',
  17039. '\uFD33': '\u0637\u0645',
  17040. '\uFD34': '\u0633\u062C',
  17041. '\uFD35': '\u0633\u062D',
  17042. '\uFD36': '\u0633\u062E',
  17043. '\uFD37': '\u0634\u062C',
  17044. '\uFD38': '\u0634\u062D',
  17045. '\uFD39': '\u0634\u062E',
  17046. '\uFD3A': '\u0637\u0645',
  17047. '\uFD3B': '\u0638\u0645',
  17048. '\uFD3C': '\u0627\u064B',
  17049. '\uFD3D': '\u0627\u064B',
  17050. '\uFD50': '\u062A\u062C\u0645',
  17051. '\uFD51': '\u062A\u062D\u062C',
  17052. '\uFD52': '\u062A\u062D\u062C',
  17053. '\uFD53': '\u062A\u062D\u0645',
  17054. '\uFD54': '\u062A\u062E\u0645',
  17055. '\uFD55': '\u062A\u0645\u062C',
  17056. '\uFD56': '\u062A\u0645\u062D',
  17057. '\uFD57': '\u062A\u0645\u062E',
  17058. '\uFD58': '\u062C\u0645\u062D',
  17059. '\uFD59': '\u062C\u0645\u062D',
  17060. '\uFD5A': '\u062D\u0645\u064A',
  17061. '\uFD5B': '\u062D\u0645\u0649',
  17062. '\uFD5C': '\u0633\u062D\u062C',
  17063. '\uFD5D': '\u0633\u062C\u062D',
  17064. '\uFD5E': '\u0633\u062C\u0649',
  17065. '\uFD5F': '\u0633\u0645\u062D',
  17066. '\uFD60': '\u0633\u0645\u062D',
  17067. '\uFD61': '\u0633\u0645\u062C',
  17068. '\uFD62': '\u0633\u0645\u0645',
  17069. '\uFD63': '\u0633\u0645\u0645',
  17070. '\uFD64': '\u0635\u062D\u062D',
  17071. '\uFD65': '\u0635\u062D\u062D',
  17072. '\uFD66': '\u0635\u0645\u0645',
  17073. '\uFD67': '\u0634\u062D\u0645',
  17074. '\uFD68': '\u0634\u062D\u0645',
  17075. '\uFD69': '\u0634\u062C\u064A',
  17076. '\uFD6A': '\u0634\u0645\u062E',
  17077. '\uFD6B': '\u0634\u0645\u062E',
  17078. '\uFD6C': '\u0634\u0645\u0645',
  17079. '\uFD6D': '\u0634\u0645\u0645',
  17080. '\uFD6E': '\u0636\u062D\u0649',
  17081. '\uFD6F': '\u0636\u062E\u0645',
  17082. '\uFD70': '\u0636\u062E\u0645',
  17083. '\uFD71': '\u0637\u0645\u062D',
  17084. '\uFD72': '\u0637\u0645\u062D',
  17085. '\uFD73': '\u0637\u0645\u0645',
  17086. '\uFD74': '\u0637\u0645\u064A',
  17087. '\uFD75': '\u0639\u062C\u0645',
  17088. '\uFD76': '\u0639\u0645\u0645',
  17089. '\uFD77': '\u0639\u0645\u0645',
  17090. '\uFD78': '\u0639\u0645\u0649',
  17091. '\uFD79': '\u063A\u0645\u0645',
  17092. '\uFD7A': '\u063A\u0645\u064A',
  17093. '\uFD7B': '\u063A\u0645\u0649',
  17094. '\uFD7C': '\u0641\u062E\u0645',
  17095. '\uFD7D': '\u0641\u062E\u0645',
  17096. '\uFD7E': '\u0642\u0645\u062D',
  17097. '\uFD7F': '\u0642\u0645\u0645',
  17098. '\uFD80': '\u0644\u062D\u0645',
  17099. '\uFD81': '\u0644\u062D\u064A',
  17100. '\uFD82': '\u0644\u062D\u0649',
  17101. '\uFD83': '\u0644\u062C\u062C',
  17102. '\uFD84': '\u0644\u062C\u062C',
  17103. '\uFD85': '\u0644\u062E\u0645',
  17104. '\uFD86': '\u0644\u062E\u0645',
  17105. '\uFD87': '\u0644\u0645\u062D',
  17106. '\uFD88': '\u0644\u0645\u062D',
  17107. '\uFD89': '\u0645\u062D\u062C',
  17108. '\uFD8A': '\u0645\u062D\u0645',
  17109. '\uFD8B': '\u0645\u062D\u064A',
  17110. '\uFD8C': '\u0645\u062C\u062D',
  17111. '\uFD8D': '\u0645\u062C\u0645',
  17112. '\uFD8E': '\u0645\u062E\u062C',
  17113. '\uFD8F': '\u0645\u062E\u0645',
  17114. '\uFD92': '\u0645\u062C\u062E',
  17115. '\uFD93': '\u0647\u0645\u062C',
  17116. '\uFD94': '\u0647\u0645\u0645',
  17117. '\uFD95': '\u0646\u062D\u0645',
  17118. '\uFD96': '\u0646\u062D\u0649',
  17119. '\uFD97': '\u0646\u062C\u0645',
  17120. '\uFD98': '\u0646\u062C\u0645',
  17121. '\uFD99': '\u0646\u062C\u0649',
  17122. '\uFD9A': '\u0646\u0645\u064A',
  17123. '\uFD9B': '\u0646\u0645\u0649',
  17124. '\uFD9C': '\u064A\u0645\u0645',
  17125. '\uFD9D': '\u064A\u0645\u0645',
  17126. '\uFD9E': '\u0628\u062E\u064A',
  17127. '\uFD9F': '\u062A\u062C\u064A',
  17128. '\uFDA0': '\u062A\u062C\u0649',
  17129. '\uFDA1': '\u062A\u062E\u064A',
  17130. '\uFDA2': '\u062A\u062E\u0649',
  17131. '\uFDA3': '\u062A\u0645\u064A',
  17132. '\uFDA4': '\u062A\u0645\u0649',
  17133. '\uFDA5': '\u062C\u0645\u064A',
  17134. '\uFDA6': '\u062C\u062D\u0649',
  17135. '\uFDA7': '\u062C\u0645\u0649',
  17136. '\uFDA8': '\u0633\u062E\u0649',
  17137. '\uFDA9': '\u0635\u062D\u064A',
  17138. '\uFDAA': '\u0634\u062D\u064A',
  17139. '\uFDAB': '\u0636\u062D\u064A',
  17140. '\uFDAC': '\u0644\u062C\u064A',
  17141. '\uFDAD': '\u0644\u0645\u064A',
  17142. '\uFDAE': '\u064A\u062D\u064A',
  17143. '\uFDAF': '\u064A\u062C\u064A',
  17144. '\uFDB0': '\u064A\u0645\u064A',
  17145. '\uFDB1': '\u0645\u0645\u064A',
  17146. '\uFDB2': '\u0642\u0645\u064A',
  17147. '\uFDB3': '\u0646\u062D\u064A',
  17148. '\uFDB4': '\u0642\u0645\u062D',
  17149. '\uFDB5': '\u0644\u062D\u0645',
  17150. '\uFDB6': '\u0639\u0645\u064A',
  17151. '\uFDB7': '\u0643\u0645\u064A',
  17152. '\uFDB8': '\u0646\u062C\u062D',
  17153. '\uFDB9': '\u0645\u062E\u064A',
  17154. '\uFDBA': '\u0644\u062C\u0645',
  17155. '\uFDBB': '\u0643\u0645\u0645',
  17156. '\uFDBC': '\u0644\u062C\u0645',
  17157. '\uFDBD': '\u0646\u062C\u062D',
  17158. '\uFDBE': '\u062C\u062D\u064A',
  17159. '\uFDBF': '\u062D\u062C\u064A',
  17160. '\uFDC0': '\u0645\u062C\u064A',
  17161. '\uFDC1': '\u0641\u0645\u064A',
  17162. '\uFDC2': '\u0628\u062D\u064A',
  17163. '\uFDC3': '\u0643\u0645\u0645',
  17164. '\uFDC4': '\u0639\u062C\u0645',
  17165. '\uFDC5': '\u0635\u0645\u0645',
  17166. '\uFDC6': '\u0633\u062E\u064A',
  17167. '\uFDC7': '\u0646\u062C\u064A',
  17168. '\uFE49': '\u203E',
  17169. '\uFE4A': '\u203E',
  17170. '\uFE4B': '\u203E',
  17171. '\uFE4C': '\u203E',
  17172. '\uFE4D': '\u005F',
  17173. '\uFE4E': '\u005F',
  17174. '\uFE4F': '\u005F',
  17175. '\uFE80': '\u0621',
  17176. '\uFE81': '\u0622',
  17177. '\uFE82': '\u0622',
  17178. '\uFE83': '\u0623',
  17179. '\uFE84': '\u0623',
  17180. '\uFE85': '\u0624',
  17181. '\uFE86': '\u0624',
  17182. '\uFE87': '\u0625',
  17183. '\uFE88': '\u0625',
  17184. '\uFE89': '\u0626',
  17185. '\uFE8A': '\u0626',
  17186. '\uFE8B': '\u0626',
  17187. '\uFE8C': '\u0626',
  17188. '\uFE8D': '\u0627',
  17189. '\uFE8E': '\u0627',
  17190. '\uFE8F': '\u0628',
  17191. '\uFE90': '\u0628',
  17192. '\uFE91': '\u0628',
  17193. '\uFE92': '\u0628',
  17194. '\uFE93': '\u0629',
  17195. '\uFE94': '\u0629',
  17196. '\uFE95': '\u062A',
  17197. '\uFE96': '\u062A',
  17198. '\uFE97': '\u062A',
  17199. '\uFE98': '\u062A',
  17200. '\uFE99': '\u062B',
  17201. '\uFE9A': '\u062B',
  17202. '\uFE9B': '\u062B',
  17203. '\uFE9C': '\u062B',
  17204. '\uFE9D': '\u062C',
  17205. '\uFE9E': '\u062C',
  17206. '\uFE9F': '\u062C',
  17207. '\uFEA0': '\u062C',
  17208. '\uFEA1': '\u062D',
  17209. '\uFEA2': '\u062D',
  17210. '\uFEA3': '\u062D',
  17211. '\uFEA4': '\u062D',
  17212. '\uFEA5': '\u062E',
  17213. '\uFEA6': '\u062E',
  17214. '\uFEA7': '\u062E',
  17215. '\uFEA8': '\u062E',
  17216. '\uFEA9': '\u062F',
  17217. '\uFEAA': '\u062F',
  17218. '\uFEAB': '\u0630',
  17219. '\uFEAC': '\u0630',
  17220. '\uFEAD': '\u0631',
  17221. '\uFEAE': '\u0631',
  17222. '\uFEAF': '\u0632',
  17223. '\uFEB0': '\u0632',
  17224. '\uFEB1': '\u0633',
  17225. '\uFEB2': '\u0633',
  17226. '\uFEB3': '\u0633',
  17227. '\uFEB4': '\u0633',
  17228. '\uFEB5': '\u0634',
  17229. '\uFEB6': '\u0634',
  17230. '\uFEB7': '\u0634',
  17231. '\uFEB8': '\u0634',
  17232. '\uFEB9': '\u0635',
  17233. '\uFEBA': '\u0635',
  17234. '\uFEBB': '\u0635',
  17235. '\uFEBC': '\u0635',
  17236. '\uFEBD': '\u0636',
  17237. '\uFEBE': '\u0636',
  17238. '\uFEBF': '\u0636',
  17239. '\uFEC0': '\u0636',
  17240. '\uFEC1': '\u0637',
  17241. '\uFEC2': '\u0637',
  17242. '\uFEC3': '\u0637',
  17243. '\uFEC4': '\u0637',
  17244. '\uFEC5': '\u0638',
  17245. '\uFEC6': '\u0638',
  17246. '\uFEC7': '\u0638',
  17247. '\uFEC8': '\u0638',
  17248. '\uFEC9': '\u0639',
  17249. '\uFECA': '\u0639',
  17250. '\uFECB': '\u0639',
  17251. '\uFECC': '\u0639',
  17252. '\uFECD': '\u063A',
  17253. '\uFECE': '\u063A',
  17254. '\uFECF': '\u063A',
  17255. '\uFED0': '\u063A',
  17256. '\uFED1': '\u0641',
  17257. '\uFED2': '\u0641',
  17258. '\uFED3': '\u0641',
  17259. '\uFED4': '\u0641',
  17260. '\uFED5': '\u0642',
  17261. '\uFED6': '\u0642',
  17262. '\uFED7': '\u0642',
  17263. '\uFED8': '\u0642',
  17264. '\uFED9': '\u0643',
  17265. '\uFEDA': '\u0643',
  17266. '\uFEDB': '\u0643',
  17267. '\uFEDC': '\u0643',
  17268. '\uFEDD': '\u0644',
  17269. '\uFEDE': '\u0644',
  17270. '\uFEDF': '\u0644',
  17271. '\uFEE0': '\u0644',
  17272. '\uFEE1': '\u0645',
  17273. '\uFEE2': '\u0645',
  17274. '\uFEE3': '\u0645',
  17275. '\uFEE4': '\u0645',
  17276. '\uFEE5': '\u0646',
  17277. '\uFEE6': '\u0646',
  17278. '\uFEE7': '\u0646',
  17279. '\uFEE8': '\u0646',
  17280. '\uFEE9': '\u0647',
  17281. '\uFEEA': '\u0647',
  17282. '\uFEEB': '\u0647',
  17283. '\uFEEC': '\u0647',
  17284. '\uFEED': '\u0648',
  17285. '\uFEEE': '\u0648',
  17286. '\uFEEF': '\u0649',
  17287. '\uFEF0': '\u0649',
  17288. '\uFEF1': '\u064A',
  17289. '\uFEF2': '\u064A',
  17290. '\uFEF3': '\u064A',
  17291. '\uFEF4': '\u064A',
  17292. '\uFEF5': '\u0644\u0622',
  17293. '\uFEF6': '\u0644\u0622',
  17294. '\uFEF7': '\u0644\u0623',
  17295. '\uFEF8': '\u0644\u0623',
  17296. '\uFEF9': '\u0644\u0625',
  17297. '\uFEFA': '\u0644\u0625',
  17298. '\uFEFB': '\u0644\u0627',
  17299. '\uFEFC': '\u0644\u0627'
  17300. };
  17301. function reverseIfRtl(chars) {
  17302. var charsLength = chars.length;
  17303. //reverse an arabic ligature
  17304. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0)))
  17305. return chars;
  17306. var s = '';
  17307. for (var ii = charsLength - 1; ii >= 0; ii--)
  17308. s += chars[ii];
  17309. return s;
  17310. }
  17311. function fontCharsToUnicode(charCodes, font) {
  17312. var glyphs = font.charsToGlyphs(charCodes);
  17313. var result = '';
  17314. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  17315. var glyph = glyphs[i];
  17316. if (!glyph)
  17317. continue;
  17318. var glyphUnicode = glyph.unicode;
  17319. if (glyphUnicode in NormalizedUnicodes)
  17320. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  17321. result += reverseIfRtl(glyphUnicode);
  17322. }
  17323. return result;
  17324. }
  17325. function adjustWidths(properties) {
  17326. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  17327. return;
  17328. }
  17329. // adjusting width to fontMatrix scale
  17330. var scale = 0.001 / properties.fontMatrix[0];
  17331. var glyphsWidths = properties.widths;
  17332. for (var glyph in glyphsWidths) {
  17333. glyphsWidths[glyph] *= scale;
  17334. }
  17335. properties.defaultWidth *= scale;
  17336. }
  17337. /**
  17338. * 'Font' is the class the outside world should use, it encapsulate all the font
  17339. * decoding logics whatever type it is (assuming the font type is supported).
  17340. *
  17341. * For example to read a Type1 font and to attach it to the document:
  17342. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  17343. * type1Font.bind();
  17344. */
  17345. var Font = (function FontClosure() {
  17346. function Font(name, file, properties) {
  17347. this.name = name;
  17348. this.loadedName = properties.loadedName;
  17349. this.coded = properties.coded;
  17350. this.loadCharProcs = properties.coded;
  17351. this.sizes = [];
  17352. var names = name.split('+');
  17353. names = names.length > 1 ? names[1] : names[0];
  17354. names = names.split(/[-,_]/g)[0];
  17355. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  17356. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  17357. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  17358. var type = properties.type;
  17359. this.type = type;
  17360. this.fallbackName = this.isMonospace ? 'monospace' :
  17361. this.isSerifFont ? 'serif' : 'sans-serif';
  17362. this.differences = properties.differences;
  17363. this.widths = properties.widths;
  17364. this.defaultWidth = properties.defaultWidth;
  17365. this.composite = properties.composite;
  17366. this.wideChars = properties.wideChars;
  17367. this.hasEncoding = properties.hasEncoding;
  17368. this.cmap = properties.cmap;
  17369. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  17370. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  17371. this.fontMatrix = properties.fontMatrix;
  17372. if (properties.type == 'Type3') {
  17373. this.encoding = properties.baseEncoding;
  17374. return;
  17375. }
  17376. // Trying to fix encoding using glyph CIDSystemInfo.
  17377. this.loadCidToUnicode(properties);
  17378. this.cidEncoding = properties.cidEncoding;
  17379. this.vertical = properties.vertical;
  17380. if (this.vertical) {
  17381. this.vmetrics = properties.vmetrics;
  17382. this.defaultVMetrics = properties.defaultVMetrics;
  17383. }
  17384. if (properties.toUnicode && properties.toUnicode.length > 0)
  17385. this.toUnicode = properties.toUnicode;
  17386. else
  17387. this.rebuildToUnicode(properties);
  17388. this.toFontChar = this.buildToFontChar(this.toUnicode);
  17389. if (!file) {
  17390. // The file data is not specified. Trying to fix the font name
  17391. // to be used with the canvas.font.
  17392. var fontName = name.replace(/[,_]/g, '-');
  17393. var isStandardFont = fontName in stdFontMap;
  17394. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  17395. this.bold = (fontName.search(/bold/gi) != -1);
  17396. this.italic = (fontName.search(/oblique/gi) != -1) ||
  17397. (fontName.search(/italic/gi) != -1);
  17398. // Use 'name' instead of 'fontName' here because the original
  17399. // name ArialBlack for example will be replaced by Helvetica.
  17400. this.black = (name.search(/Black/g) != -1);
  17401. // if at least one width is present, remeasure all chars when exists
  17402. this.remeasure = Object.keys(this.widths).length > 0;
  17403. this.encoding = properties.baseEncoding;
  17404. this.noUnicodeAdaptation = true;
  17405. if (isStandardFont && type === 'CIDFontType2' &&
  17406. properties.cidEncoding.indexOf('Identity-') === 0) {
  17407. // Standard fonts might be embedded as CID font without glyph mapping.
  17408. // Building one based on GlyphMapForStandardFonts.
  17409. var map = [];
  17410. for (var code in GlyphMapForStandardFonts) {
  17411. map[+code] = GlyphMapForStandardFonts[code];
  17412. }
  17413. this.toFontChar = map;
  17414. this.toUnicode = map;
  17415. }
  17416. this.loadedName = fontName.split('-')[0];
  17417. this.loading = false;
  17418. return;
  17419. }
  17420. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  17421. var subtype = properties.subtype;
  17422. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1'))
  17423. type = 'Type1';
  17424. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0')
  17425. type = 'CIDFontType0';
  17426. // XXX: Temporarily change the type for open type so we trigger a warning.
  17427. // This should be removed when we add support for open type.
  17428. if (subtype === 'OpenType') {
  17429. type = 'OpenType';
  17430. }
  17431. var data;
  17432. switch (type) {
  17433. case 'Type1':
  17434. case 'CIDFontType0':
  17435. this.mimetype = 'font/opentype';
  17436. var cff = (subtype == 'Type1C' || subtype == 'CIDFontType0C') ?
  17437. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  17438. adjustWidths(properties);
  17439. // Wrap the CFF data inside an OTF font file
  17440. data = this.convert(name, cff, properties);
  17441. break;
  17442. case 'OpenType':
  17443. case 'TrueType':
  17444. case 'CIDFontType2':
  17445. this.mimetype = 'font/opentype';
  17446. // Repair the TrueType file. It is can be damaged in the point of
  17447. // view of the sanitizer
  17448. data = this.checkAndRepair(name, file, properties);
  17449. break;
  17450. default:
  17451. error('Font ' + type + ' is not supported');
  17452. break;
  17453. }
  17454. this.data = data;
  17455. // Transfer some properties again that could change during font conversion
  17456. this.fontMatrix = properties.fontMatrix;
  17457. this.widths = properties.widths;
  17458. this.defaultWidth = properties.defaultWidth;
  17459. this.encoding = properties.baseEncoding;
  17460. this.seacMap = properties.seacMap;
  17461. this.loading = true;
  17462. }
  17463. var numFonts = 0;
  17464. function getUniqueName() {
  17465. return 'pdfFont' + numFonts++;
  17466. }
  17467. function stringToArray(str) {
  17468. var array = [];
  17469. for (var i = 0, ii = str.length; i < ii; ++i)
  17470. array[i] = str.charCodeAt(i);
  17471. return array;
  17472. }
  17473. function arrayToString(arr) {
  17474. var str = '';
  17475. for (var i = 0, ii = arr.length; i < ii; ++i)
  17476. str += String.fromCharCode(arr[i]);
  17477. return str;
  17478. }
  17479. function int16(bytes) {
  17480. return (bytes[0] << 8) + (bytes[1] & 0xff);
  17481. }
  17482. function int32(bytes) {
  17483. return (bytes[0] << 24) + (bytes[1] << 16) +
  17484. (bytes[2] << 8) + (bytes[3] & 0xff);
  17485. }
  17486. function getMaxPower2(number) {
  17487. var maxPower = 0;
  17488. var value = number;
  17489. while (value >= 2) {
  17490. value /= 2;
  17491. maxPower++;
  17492. }
  17493. value = 2;
  17494. for (var i = 1; i < maxPower; i++)
  17495. value *= 2;
  17496. return value;
  17497. }
  17498. function string16(value) {
  17499. return String.fromCharCode((value >> 8) & 0xff) +
  17500. String.fromCharCode(value & 0xff);
  17501. }
  17502. function safeString16(value) {
  17503. // clamp value to the 16-bit int range
  17504. value = value > 0x7FFF ? 0x7FFF : value < -0x8000 ? -0x8000 : value;
  17505. return String.fromCharCode((value >> 8) & 0xff) +
  17506. String.fromCharCode(value & 0xff);
  17507. }
  17508. function string32(value) {
  17509. return String.fromCharCode((value >> 24) & 0xff) +
  17510. String.fromCharCode((value >> 16) & 0xff) +
  17511. String.fromCharCode((value >> 8) & 0xff) +
  17512. String.fromCharCode(value & 0xff);
  17513. }
  17514. function createOpenTypeHeader(sfnt, file, numTables) {
  17515. // Windows hates the Mac TrueType sfnt version number
  17516. if (sfnt == 'true')
  17517. sfnt = string32(0x00010000);
  17518. // sfnt version (4 bytes)
  17519. var header = sfnt;
  17520. // numTables (2 bytes)
  17521. header += string16(numTables);
  17522. // searchRange (2 bytes)
  17523. var tablesMaxPower2 = getMaxPower2(numTables);
  17524. var searchRange = tablesMaxPower2 * 16;
  17525. header += string16(searchRange);
  17526. // entrySelector (2 bytes)
  17527. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  17528. // rangeShift (2 bytes)
  17529. header += string16(numTables * 16 - searchRange);
  17530. file.file += header;
  17531. file.virtualOffset += header.length;
  17532. }
  17533. function createTableEntry(file, tag, data) {
  17534. // offset
  17535. var offset = file.virtualOffset;
  17536. // length
  17537. var length = data.length;
  17538. // Per spec tables must be 4-bytes align so add padding as needed
  17539. while (data.length & 3)
  17540. data.push(0x00);
  17541. while (file.virtualOffset & 3)
  17542. file.virtualOffset++;
  17543. // checksum
  17544. var checksum = 0, n = data.length;
  17545. for (var i = 0; i < n; i += 4)
  17546. checksum = (checksum + int32([data[i], data[i + 1], data[i + 2],
  17547. data[i + 3]])) | 0;
  17548. var tableEntry = (tag + string32(checksum) +
  17549. string32(offset) + string32(length));
  17550. file.file += tableEntry;
  17551. file.virtualOffset += data.length;
  17552. }
  17553. function getRanges(glyphs, deltas) {
  17554. // Array.sort() sorts by characters, not numerically, so convert to an
  17555. // array of characters.
  17556. var codes = [];
  17557. var length = glyphs.length;
  17558. for (var n = 0; n < length; ++n)
  17559. codes.push({ unicode: glyphs[n].unicode, code: n });
  17560. codes.sort(function fontGetRangesSort(a, b) {
  17561. return a.unicode - b.unicode;
  17562. });
  17563. // Split the sorted codes into ranges.
  17564. var ranges = [];
  17565. for (var n = 0; n < length; ) {
  17566. var start = codes[n].unicode;
  17567. var codeIndices = [deltas ? deltas[codes[n].code] : codes[n].code + 1];
  17568. ++n;
  17569. var end = start;
  17570. while (n < length && end + 1 == codes[n].unicode) {
  17571. codeIndices.push(deltas ? deltas[codes[n].code] : codes[n].code + 1);
  17572. ++end;
  17573. ++n;
  17574. if (end === 0xFFFF) { break; }
  17575. }
  17576. ranges.push([start, end, codeIndices]);
  17577. }
  17578. return ranges;
  17579. }
  17580. function createCmapTable(glyphs, deltas) {
  17581. var ranges = getRanges(glyphs, deltas);
  17582. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  17583. var cmap = '\x00\x00' + // version
  17584. string16(numTables) + // numTables
  17585. '\x00\x03' + // platformID
  17586. '\x00\x01' + // encodingID
  17587. string32(4 + numTables * 8); // start of the table record
  17588. for (var i = ranges.length - 1; i >= 0; --i) {
  17589. if (ranges[i][0] <= 0xFFFF) { break; }
  17590. }
  17591. var bmpLength = i + 1;
  17592. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  17593. ranges[i][1] = 0xFFFE;
  17594. }
  17595. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  17596. var segCount = bmpLength + trailingRangesCount;
  17597. var segCount2 = segCount * 2;
  17598. var searchRange = getMaxPower2(segCount) * 2;
  17599. var searchEntry = Math.log(segCount) / Math.log(2);
  17600. var rangeShift = 2 * segCount - searchRange;
  17601. // Fill up the 4 parallel arrays describing the segments.
  17602. var startCount = '';
  17603. var endCount = '';
  17604. var idDeltas = '';
  17605. var idRangeOffsets = '';
  17606. var glyphsIds = '';
  17607. var bias = 0;
  17608. for (var i = 0, ii = bmpLength; i < ii; i++) {
  17609. var range = ranges[i];
  17610. var start = range[0];
  17611. var end = range[1];
  17612. startCount += string16(start);
  17613. endCount += string16(end);
  17614. var codes = range[2];
  17615. var contiguous = true;
  17616. for (var j = 1, jj = codes.length; j < jj; ++j) {
  17617. if (codes[j] !== codes[j - 1] + 1) {
  17618. contiguous = false;
  17619. break;
  17620. }
  17621. }
  17622. if (!contiguous) {
  17623. var offset = (segCount - i) * 2 + bias * 2;
  17624. bias += (end - start + 1);
  17625. idDeltas += string16(0);
  17626. idRangeOffsets += string16(offset);
  17627. for (var j = 0, jj = codes.length; j < jj; ++j) {
  17628. glyphsIds += string16(codes[j]);
  17629. }
  17630. } else {
  17631. var startCode = codes[0];
  17632. idDeltas += string16((startCode - start) & 0xFFFF);
  17633. idRangeOffsets += string16(0);
  17634. }
  17635. }
  17636. if (trailingRangesCount > 0) {
  17637. endCount += '\xFF\xFF';
  17638. startCount += '\xFF\xFF';
  17639. idDeltas += '\x00\x01';
  17640. idRangeOffsets += '\x00\x00';
  17641. }
  17642. var format314 = '\x00\x00' + // language
  17643. string16(segCount2) +
  17644. string16(searchRange) +
  17645. string16(searchEntry) +
  17646. string16(rangeShift) +
  17647. endCount + '\x00\x00' + startCount +
  17648. idDeltas + idRangeOffsets + glyphsIds;
  17649. var format31012 = '';
  17650. var header31012 = '';
  17651. if (numTables > 1) {
  17652. cmap += '\x00\x03' + // platformID
  17653. '\x00\x0A' + // encodingID
  17654. string32(4 + numTables * 8 +
  17655. 4 + format314.length); // start of the table record
  17656. format31012 = '';
  17657. for (var i = 0, ii = ranges.length; i < ii; i++) {
  17658. var range = ranges[i];
  17659. var start = range[0];
  17660. var codes = range[2];
  17661. var code = codes[0];
  17662. for (var j = 1, jj = codes.length; j < jj; ++j) {
  17663. if (codes[j] !== codes[j - 1] + 1) {
  17664. var end = range[0] + j - 1;
  17665. format31012 += string32(start) + // startCharCode
  17666. string32(end) + // endCharCode
  17667. string32(code); // startGlyphID
  17668. start = end + 1;
  17669. code = codes[j];
  17670. }
  17671. }
  17672. format31012 += string32(start) + // startCharCode
  17673. string32(range[1]) + // endCharCode
  17674. string32(code); // startGlyphID
  17675. }
  17676. header31012 = '\x00\x0C' + // format
  17677. '\x00\x00' + // reserved
  17678. string32(format31012.length + 16) + // length
  17679. '\x00\x00\x00\x00' + // language
  17680. string32(format31012.length / 12); // nGroups
  17681. }
  17682. return stringToArray(cmap +
  17683. '\x00\x04' + // format
  17684. string16(format314.length + 4) + // length
  17685. format314 + header31012 + format31012);
  17686. }
  17687. function validateOS2Table(os2) {
  17688. var stream = new Stream(os2.data);
  17689. var version = int16(stream.getBytes(2));
  17690. // TODO verify all OS/2 tables fields, but currently we validate only those
  17691. // that give us issues
  17692. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  17693. var selection = int16(stream.getBytes(2));
  17694. if (version < 4 && (selection & 0x0300)) {
  17695. return false;
  17696. }
  17697. var firstChar = int16(stream.getBytes(2));
  17698. var lastChar = int16(stream.getBytes(2));
  17699. if (firstChar > lastChar) {
  17700. return false;
  17701. }
  17702. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  17703. var usWinAscent = int16(stream.getBytes(2));
  17704. if (usWinAscent === 0) { // makes font unreadable by windows
  17705. return false;
  17706. }
  17707. // OS/2 appears to be valid, resetting some fields
  17708. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  17709. return true;
  17710. }
  17711. function createOS2Table(properties, charstrings, override) {
  17712. override = override || {
  17713. unitsPerEm: 0,
  17714. yMax: 0,
  17715. yMin: 0,
  17716. ascent: 0,
  17717. descent: 0
  17718. };
  17719. var ulUnicodeRange1 = 0;
  17720. var ulUnicodeRange2 = 0;
  17721. var ulUnicodeRange3 = 0;
  17722. var ulUnicodeRange4 = 0;
  17723. var firstCharIndex = null;
  17724. var lastCharIndex = 0;
  17725. if (charstrings) {
  17726. for (var i = 0; i < charstrings.length; ++i) {
  17727. var code = charstrings[i].unicode;
  17728. if (firstCharIndex > code || !firstCharIndex)
  17729. firstCharIndex = code;
  17730. if (lastCharIndex < code)
  17731. lastCharIndex = code;
  17732. var position = getUnicodeRangeFor(code);
  17733. if (position < 32) {
  17734. ulUnicodeRange1 |= 1 << position;
  17735. } else if (position < 64) {
  17736. ulUnicodeRange2 |= 1 << position - 32;
  17737. } else if (position < 96) {
  17738. ulUnicodeRange3 |= 1 << position - 64;
  17739. } else if (position < 123) {
  17740. ulUnicodeRange4 |= 1 << position - 96;
  17741. } else {
  17742. error('Unicode ranges Bits > 123 are reserved for internal usage');
  17743. }
  17744. }
  17745. } else {
  17746. // TODO
  17747. firstCharIndex = 0;
  17748. lastCharIndex = 255;
  17749. }
  17750. var bbox = properties.bbox || [0, 0, 0, 0];
  17751. var unitsPerEm = override.unitsPerEm ||
  17752. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  17753. // if the font units differ to the PDF glyph space units
  17754. // then scale up the values
  17755. var scale = properties.ascentScaled ? 1.0 :
  17756. unitsPerEm / PDF_GLYPH_SPACE_UNITS;
  17757. var typoAscent = override.ascent || Math.round(scale *
  17758. (properties.ascent || bbox[3]));
  17759. var typoDescent = override.descent || Math.round(scale *
  17760. (properties.descent || bbox[1]));
  17761. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  17762. typoDescent = -typoDescent; // fixing incorrect descent
  17763. }
  17764. var winAscent = override.yMax || typoAscent;
  17765. var winDescent = -override.yMin || -typoDescent;
  17766. return '\x00\x03' + // version
  17767. '\x02\x24' + // xAvgCharWidth
  17768. '\x01\xF4' + // usWeightClass
  17769. '\x00\x05' + // usWidthClass
  17770. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  17771. '\x02\x8A' + // ySubscriptXSize
  17772. '\x02\xBB' + // ySubscriptYSize
  17773. '\x00\x00' + // ySubscriptXOffset
  17774. '\x00\x8C' + // ySubscriptYOffset
  17775. '\x02\x8A' + // ySuperScriptXSize
  17776. '\x02\xBB' + // ySuperScriptYSize
  17777. '\x00\x00' + // ySuperScriptXOffset
  17778. '\x01\xDF' + // ySuperScriptYOffset
  17779. '\x00\x31' + // yStrikeOutSize
  17780. '\x01\x02' + // yStrikeOutPosition
  17781. '\x00\x00' + // sFamilyClass
  17782. '\x00\x00\x06' +
  17783. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  17784. '\x00\x00\x00\x00\x00\x00' + // Panose
  17785. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  17786. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  17787. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  17788. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  17789. '\x2A\x32\x31\x2A' + // achVendID
  17790. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  17791. string16(firstCharIndex ||
  17792. properties.firstChar) + // usFirstCharIndex
  17793. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  17794. string16(typoAscent) + // sTypoAscender
  17795. string16(typoDescent) + // sTypoDescender
  17796. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  17797. string16(winAscent) + // usWinAscent
  17798. string16(winDescent) + // usWinDescent
  17799. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  17800. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  17801. string16(properties.xHeight) + // sxHeight
  17802. string16(properties.capHeight) + // sCapHeight
  17803. string16(0) + // usDefaultChar
  17804. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  17805. '\x00\x03'; // usMaxContext
  17806. }
  17807. function createPostTable(properties) {
  17808. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  17809. return '\x00\x03\x00\x00' + // Version number
  17810. string32(angle) + // italicAngle
  17811. '\x00\x00' + // underlinePosition
  17812. '\x00\x00' + // underlineThickness
  17813. string32(properties.fixedPitch) + // isFixedPitch
  17814. '\x00\x00\x00\x00' + // minMemType42
  17815. '\x00\x00\x00\x00' + // maxMemType42
  17816. '\x00\x00\x00\x00' + // minMemType1
  17817. '\x00\x00\x00\x00'; // maxMemType1
  17818. }
  17819. function createNameTable(name, proto) {
  17820. if (!proto) {
  17821. proto = [[], []]; // no strings and unicode strings
  17822. }
  17823. var strings = [
  17824. proto[0][0] || 'Original licence', // 0.Copyright
  17825. proto[0][1] || name, // 1.Font family
  17826. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  17827. proto[0][3] || 'uniqueID', // 3.Unique ID
  17828. proto[0][4] || name, // 4.Full font name
  17829. proto[0][5] || 'Version 0.11', // 5.Version
  17830. proto[0][6] || '', // 6.Postscript name
  17831. proto[0][7] || 'Unknown', // 7.Trademark
  17832. proto[0][8] || 'Unknown', // 8.Manufacturer
  17833. proto[0][9] || 'Unknown' // 9.Designer
  17834. ];
  17835. // Mac want 1-byte per character strings while Windows want
  17836. // 2-bytes per character, so duplicate the names table
  17837. var stringsUnicode = [];
  17838. for (var i = 0, ii = strings.length; i < ii; i++) {
  17839. var str = proto[1][i] || strings[i];
  17840. var strUnicode = '';
  17841. for (var j = 0, jj = str.length; j < jj; j++)
  17842. strUnicode += string16(str.charCodeAt(j));
  17843. stringsUnicode.push(strUnicode);
  17844. }
  17845. var names = [strings, stringsUnicode];
  17846. var platforms = ['\x00\x01', '\x00\x03'];
  17847. var encodings = ['\x00\x00', '\x00\x01'];
  17848. var languages = ['\x00\x00', '\x04\x09'];
  17849. var namesRecordCount = strings.length * platforms.length;
  17850. var nameTable =
  17851. '\x00\x00' + // format
  17852. string16(namesRecordCount) + // Number of names Record
  17853. string16(namesRecordCount * 12 + 6); // Storage
  17854. // Build the name records field
  17855. var strOffset = 0;
  17856. for (var i = 0, ii = platforms.length; i < ii; i++) {
  17857. var strs = names[i];
  17858. for (var j = 0, jj = strs.length; j < jj; j++) {
  17859. var str = strs[j];
  17860. var nameRecord =
  17861. platforms[i] + // platform ID
  17862. encodings[i] + // encoding ID
  17863. languages[i] + // language ID
  17864. string16(j) + // name ID
  17865. string16(str.length) +
  17866. string16(strOffset);
  17867. nameTable += nameRecord;
  17868. strOffset += str.length;
  17869. }
  17870. }
  17871. nameTable += strings.join('') + stringsUnicode.join('');
  17872. return nameTable;
  17873. }
  17874. // Normalize the charcodes in the cmap table into unicode values
  17875. // that will work with the (3, 1) cmap table we will write out.
  17876. function cmapCharcodeToUnicode(charcode, symbolic, platformId, encodingId) {
  17877. var unicode;
  17878. if (symbolic) {
  17879. // These codes will be shifted into the range
  17880. // SYMBOLIC_FONT_GLYPH_OFFSET to (SYMBOLIC_FONT_GLYPH_OFFSET + 0xFF)
  17881. // so that they are not in the control character range that could
  17882. // be displayed as spaces by browsers.
  17883. if (platformId === 3 && encodingId === 0 ||
  17884. platformId === 1 && encodingId === 0) {
  17885. unicode = SYMBOLIC_FONT_GLYPH_OFFSET | (charcode & 0xFF);
  17886. }
  17887. } else {
  17888. if (platformId === 3 && encodingId === 1) {
  17889. // A (3, 1) table is alredy unicode (Microsoft Unicode format)
  17890. unicode = charcode;
  17891. } else if (platformId === 1 && encodingId === 0) {
  17892. // TODO(mack): Should apply the changes to convert the
  17893. // MacRomanEncoding to Mac OS Roman encoding in 9.6.6.4
  17894. // table 115 of the pdf spec
  17895. var glyphName = Encodings.MacRomanEncoding[charcode];
  17896. if (glyphName) {
  17897. unicode = GlyphsUnicode[glyphName];
  17898. }
  17899. }
  17900. }
  17901. return unicode;
  17902. }
  17903. Font.prototype = {
  17904. name: null,
  17905. font: null,
  17906. mimetype: null,
  17907. encoding: null,
  17908. get renderer() {
  17909. var renderer = FontRendererFactory.create(this);
  17910. return shadow(this, 'renderer', renderer);
  17911. },
  17912. exportData: function Font_exportData() {
  17913. var data = {};
  17914. for (var i in this) {
  17915. if (this.hasOwnProperty(i))
  17916. data[i] = this[i];
  17917. }
  17918. return data;
  17919. },
  17920. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  17921. function readTableEntry(file) {
  17922. var tag = file.getBytes(4);
  17923. tag = String.fromCharCode(tag[0]) +
  17924. String.fromCharCode(tag[1]) +
  17925. String.fromCharCode(tag[2]) +
  17926. String.fromCharCode(tag[3]);
  17927. var checksum = int32(file.getBytes(4));
  17928. var offset = int32(file.getBytes(4));
  17929. var length = int32(file.getBytes(4));
  17930. // Read the table associated data
  17931. var previousPosition = file.pos;
  17932. file.pos = file.start ? file.start : 0;
  17933. file.skip(offset);
  17934. var data = file.getBytes(length);
  17935. file.pos = previousPosition;
  17936. if (tag == 'head') {
  17937. // clearing checksum adjustment
  17938. data[8] = data[9] = data[10] = data[11] = 0;
  17939. data[17] |= 0x20; //Set font optimized for cleartype flag
  17940. }
  17941. return {
  17942. tag: tag,
  17943. checksum: checksum,
  17944. length: length,
  17945. offset: offset,
  17946. data: data
  17947. };
  17948. }
  17949. function readOpenTypeHeader(ttf) {
  17950. return {
  17951. version: arrayToString(ttf.getBytes(4)),
  17952. numTables: int16(ttf.getBytes(2)),
  17953. searchRange: int16(ttf.getBytes(2)),
  17954. entrySelector: int16(ttf.getBytes(2)),
  17955. rangeShift: int16(ttf.getBytes(2))
  17956. };
  17957. }
  17958. function createGlyphNameMap(glyphs, ids, properties) {
  17959. var glyphNames = properties.glyphNames;
  17960. if (!glyphNames) {
  17961. properties.glyphNameMap = {};
  17962. return;
  17963. }
  17964. var glyphsLength = glyphs.length;
  17965. var glyphNameMap = {};
  17966. var encoding = [];
  17967. for (var i = 0; i < glyphsLength; ++i) {
  17968. var glyphName = glyphNames[ids[i]];
  17969. if (!glyphName)
  17970. continue;
  17971. var unicode = glyphs[i].unicode;
  17972. glyphNameMap[glyphName] = unicode;
  17973. var code = glyphs[i].code;
  17974. encoding[code] = glyphName;
  17975. }
  17976. properties.glyphNameMap = glyphNameMap;
  17977. if (properties.overridableEncoding)
  17978. properties.baseEncoding = encoding;
  17979. }
  17980. /**
  17981. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  17982. * PDF spec
  17983. */
  17984. function readCmapTable(cmap, font, hasEncoding, isSymbolicFont) {
  17985. var start = (font.start ? font.start : 0) + cmap.offset;
  17986. font.pos = start;
  17987. var version = int16(font.getBytes(2));
  17988. var numTables = int16(font.getBytes(2));
  17989. var potentialTable;
  17990. var foundPreferredTable;
  17991. // There's an order of preference in terms of which cmap subtable we
  17992. // want to use. So scan through them to find our preferred table.
  17993. for (var i = 0; i < numTables; i++) {
  17994. var platformId = int16(font.getBytes(2));
  17995. var encodingId = int16(font.getBytes(2));
  17996. var offset = int32(font.getBytes(4));
  17997. var useTable = false;
  17998. var canBreak = false;
  17999. // The following block implements the following from the spec:
  18000. //
  18001. // When the font has no Encoding entry, or the font descriptor’s
  18002. // Symbolic flag is set (in which case the Encoding entry
  18003. // is ignored), this shall occur:
  18004. // - If the font contains a (3, 0) subtable, the range of
  18005. // - Otherwise, the (1, 0) subtable will be used.
  18006. // Otherwise, if the font does have an encoding:
  18007. // - Use the (3, 1) cmap subtable
  18008. // - Otherwise, use the (1, 0) subtable if present
  18009. //
  18010. // The following diverges slightly from the above spec in order
  18011. // to handle the case that hasEncoding and isSymbolicFont are both
  18012. // true. In this, based on the ordering of the rules in the spec,
  18013. // my interpretation is that we should be acting as if the font is
  18014. // symbolic.
  18015. //
  18016. // However, in this case, the test pdf 'preistabelle.pdf'
  18017. // is interpreting this case as a non-symbolic font. In this case
  18018. // though, 'presitabelle.pdf' does contain a (3, 1) table and does
  18019. // not contain a (3, 0) table which indicates it is non-symbolic.
  18020. //
  18021. // Thus, I am using this heurisitic of looking at which table is
  18022. // found to truly determine whether or not the font is symbolic.
  18023. // That is, if the specific symbolic/non-symbolic font specific
  18024. // tables (3, 0) or (3, 1) is found, that information is used for
  18025. // deciding if the font is symbolic or not.
  18026. //
  18027. // TODO(mack): This section needs some more thought on whether the
  18028. // heuristic is good enough. For now, it passes all the regression
  18029. // tests.
  18030. if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  18031. useTable = true;
  18032. canBreak = true;
  18033. foundPreferredTable = true;
  18034. } else if (hasEncoding && platformId === 3 && encodingId === 1) {
  18035. useTable = true;
  18036. canBreak = true;
  18037. foundPreferredTable = true;
  18038. // Update the isSymbolicFont based on this heuristic
  18039. isSymbolicFont = false;
  18040. } else if (platformId === 1 && encodingId === 0 &&
  18041. !foundPreferredTable) {
  18042. useTable = true;
  18043. foundPreferredTable = true;
  18044. } else if (!potentialTable) {
  18045. // We will use an arbitrary table if we cannot find a preferred
  18046. // table
  18047. useTable = true;
  18048. }
  18049. if (useTable) {
  18050. potentialTable = {
  18051. platformId: platformId,
  18052. encodingId: encodingId,
  18053. offset: offset,
  18054. isSymbolicFont: isSymbolicFont
  18055. };
  18056. }
  18057. if (canBreak) {
  18058. break;
  18059. }
  18060. }
  18061. if (!potentialTable) {
  18062. error('Could not find a cmap table');
  18063. return;
  18064. }
  18065. if (!foundPreferredTable) {
  18066. warn('Did not find a cmap of suitable format. Interpreting (' +
  18067. potentialTable.platformId + ', ' + potentialTable.encodingId +
  18068. ') as (3, 1) table');
  18069. potentialTable.platformId = 3;
  18070. potentialTable.encodingId = 1;
  18071. }
  18072. font.pos = start + potentialTable.offset;
  18073. var format = int16(font.getBytes(2));
  18074. var length = int16(font.getBytes(2));
  18075. var language = int16(font.getBytes(2));
  18076. var hasShortCmap = false;
  18077. var mappings = [];
  18078. // TODO(mack): refactor this cmap subtable reading logic out
  18079. if (format === 0) {
  18080. for (var j = 0; j < 256; j++) {
  18081. var index = font.getByte();
  18082. if (!index) {
  18083. continue;
  18084. }
  18085. mappings.push({
  18086. charcode: j,
  18087. glyphId: index
  18088. });
  18089. }
  18090. hasShortCmap = true;
  18091. } else if (format === 4) {
  18092. // re-creating the table in format 4 since the encoding
  18093. // might be changed
  18094. var segCount = (int16(font.getBytes(2)) >> 1);
  18095. font.getBytes(6); // skipping range fields
  18096. var segIndex, segments = [];
  18097. for (segIndex = 0; segIndex < segCount; segIndex++) {
  18098. segments.push({ end: int16(font.getBytes(2)) });
  18099. }
  18100. font.getBytes(2);
  18101. for (segIndex = 0; segIndex < segCount; segIndex++) {
  18102. segments[segIndex].start = int16(font.getBytes(2));
  18103. }
  18104. for (segIndex = 0; segIndex < segCount; segIndex++) {
  18105. segments[segIndex].delta = int16(font.getBytes(2));
  18106. }
  18107. var offsetsCount = 0;
  18108. for (segIndex = 0; segIndex < segCount; segIndex++) {
  18109. var segment = segments[segIndex];
  18110. var rangeOffset = int16(font.getBytes(2));
  18111. if (!rangeOffset) {
  18112. segment.offsetIndex = -1;
  18113. continue;
  18114. }
  18115. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  18116. segment.offsetIndex = offsetIndex;
  18117. offsetsCount = Math.max(offsetsCount, offsetIndex +
  18118. segment.end - segment.start + 1);
  18119. }
  18120. var offsets = [];
  18121. for (var j = 0; j < offsetsCount; j++) {
  18122. offsets.push(int16(font.getBytes(2)));
  18123. }
  18124. for (segIndex = 0; segIndex < segCount; segIndex++) {
  18125. var segment = segments[segIndex];
  18126. var start = segment.start, end = segment.end;
  18127. var delta = segment.delta, offsetIndex = segment.offsetIndex;
  18128. for (var j = start; j <= end; j++) {
  18129. if (j == 0xFFFF) {
  18130. continue;
  18131. }
  18132. var glyphId = offsetIndex < 0 ? j :
  18133. offsets[offsetIndex + j - start];
  18134. glyphId = (glyphId + delta) & 0xFFFF;
  18135. if (glyphId === 0) {
  18136. continue;
  18137. }
  18138. mappings.push({
  18139. charcode: j,
  18140. glyphId: glyphId
  18141. });
  18142. }
  18143. }
  18144. } else if (format == 6) {
  18145. // Format 6 is a 2-bytes dense mapping, which means the font data
  18146. // lives glue together even if they are pretty far in the unicode
  18147. // table. (This looks weird, so I can have missed something), this
  18148. // works on Linux but seems to fails on Mac so let's rewrite the
  18149. // cmap table to a 3-1-4 style
  18150. var firstCode = int16(font.getBytes(2));
  18151. var entryCount = int16(font.getBytes(2));
  18152. var glyphs = [];
  18153. var ids = [];
  18154. for (var j = 0; j < entryCount; j++) {
  18155. var glyphId = int16(font.getBytes(2));
  18156. var charcode = firstCode + j;
  18157. mappings.push({
  18158. charcode: charcode,
  18159. glyphId: glyphId
  18160. });
  18161. }
  18162. } else {
  18163. error('cmap table has unsupported format: ' + format);
  18164. }
  18165. // removing duplicate entries
  18166. mappings.sort(function (a, b) {
  18167. return a.charcode - b.charcode;
  18168. });
  18169. for (var i = 1; i < mappings.length; i++) {
  18170. if (mappings[i - 1].charcode === mappings[i].charcode) {
  18171. mappings.splice(i, 1);
  18172. i--;
  18173. }
  18174. }
  18175. return {
  18176. platformId: potentialTable.platformId,
  18177. encodingId: potentialTable.encodingId,
  18178. isSymbolicFont: potentialTable.isSymbolicFont,
  18179. mappings: mappings,
  18180. hasShortCmap: hasShortCmap
  18181. };
  18182. }
  18183. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  18184. if (!header) {
  18185. if (metrics) {
  18186. metrics.data = null;
  18187. }
  18188. return;
  18189. }
  18190. font.pos = (font.start ? font.start : 0) + header.offset;
  18191. font.pos += header.length - 2;
  18192. var numOfMetrics = int16(font.getBytes(2));
  18193. if (numOfMetrics > numGlyphs) {
  18194. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  18195. 'greater than the numGlyphs (' + numGlyphs + ')');
  18196. // Reduce numOfMetrics if it is greater than numGlyphs
  18197. numOfMetrics = numGlyphs;
  18198. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  18199. header.data[35] = numOfMetrics & 0x00ff;
  18200. }
  18201. var numOfSidebearings = numGlyphs - numOfMetrics;
  18202. var numMissing = numOfSidebearings -
  18203. ((metrics.length - numOfMetrics * 4) >> 1);
  18204. if (numMissing > 0) {
  18205. font.pos = (font.start ? font.start : 0) + metrics.offset;
  18206. var entries = '';
  18207. for (var i = 0, ii = metrics.length; i < ii; i++)
  18208. entries += String.fromCharCode(font.getByte());
  18209. for (var i = 0; i < numMissing; i++)
  18210. entries += '\x00\x00';
  18211. metrics.data = stringToArray(entries);
  18212. }
  18213. }
  18214. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  18215. hintsValid) {
  18216. if (sourceEnd - sourceStart <= 12) {
  18217. // glyph with data less than 12 is invalid one
  18218. return 0;
  18219. }
  18220. var glyf = source.subarray(sourceStart, sourceEnd);
  18221. var contoursCount = (glyf[0] << 8) | glyf[1];
  18222. if (contoursCount & 0x8000) {
  18223. // complex glyph, writing as is
  18224. dest.set(glyf, destStart);
  18225. return glyf.length;
  18226. }
  18227. var j = 10, flagsCount = 0;
  18228. for (var i = 0; i < contoursCount; i++) {
  18229. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  18230. flagsCount = endPoint + 1;
  18231. j += 2;
  18232. }
  18233. // skipping instructions
  18234. var instructionsStart = j;
  18235. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  18236. j += 2 + instructionsLength;
  18237. var instructionsEnd = j;
  18238. // validating flags
  18239. var coordinatesLength = 0;
  18240. for (var i = 0; i < flagsCount; i++) {
  18241. var flag = glyf[j++];
  18242. if (flag & 0xC0) {
  18243. // reserved flags must be zero, cleaning up
  18244. glyf[j - 1] = flag & 0x3F;
  18245. }
  18246. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  18247. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  18248. coordinatesLength += xyLength;
  18249. if (flag & 8) {
  18250. var repeat = glyf[j++];
  18251. i += repeat;
  18252. coordinatesLength += repeat * xyLength;
  18253. }
  18254. }
  18255. // glyph without coordinates will be rejected
  18256. if (coordinatesLength === 0) {
  18257. return 0;
  18258. }
  18259. var glyphDataLength = j + coordinatesLength;
  18260. if (glyphDataLength > glyf.length) {
  18261. // not enough data for coordinates
  18262. return 0;
  18263. }
  18264. if (!hintsValid && instructionsLength > 0) {
  18265. dest.set(glyf.subarray(0, instructionsStart), destStart);
  18266. dest.set([0, 0], destStart + instructionsStart);
  18267. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  18268. destStart + instructionsStart + 2);
  18269. glyphDataLength -= instructionsLength;
  18270. if (glyf.length - glyphDataLength > 3) {
  18271. glyphDataLength = (glyphDataLength + 3) & ~3;
  18272. }
  18273. return glyphDataLength;
  18274. }
  18275. if (glyf.length - glyphDataLength > 3) {
  18276. // truncating and aligning to 4 bytes the long glyph data
  18277. glyphDataLength = (glyphDataLength + 3) & ~3;
  18278. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  18279. return glyphDataLength;
  18280. }
  18281. // glyph data is fine
  18282. dest.set(glyf, destStart);
  18283. return glyf.length;
  18284. }
  18285. function sanitizeHead(head, numGlyphs, locaLength) {
  18286. var data = head.data;
  18287. // Validate version:
  18288. // Should always be 0x00010000
  18289. var version = int32([data[0], data[1], data[2], data[3]]);
  18290. if (version >> 16 !== 1) {
  18291. info('Attempting to fix invalid version in head table: ' + version);
  18292. data[0] = 0;
  18293. data[1] = 1;
  18294. data[2] = 0;
  18295. data[3] = 0;
  18296. }
  18297. var indexToLocFormat = int16([data[50], data[51]]);
  18298. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  18299. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  18300. indexToLocFormat);
  18301. // The value of indexToLocFormat should be 0 if the loca table
  18302. // consists of short offsets, and should be 1 if the loca table
  18303. // consists of long offsets.
  18304. //
  18305. // The number of entries in the loca table should be numGlyphs + 1.
  18306. //
  18307. // Using this information, we can work backwards to deduce if the
  18308. // size of each offset in the loca table, and thus figure out the
  18309. // appropriate value for indexToLocFormat.
  18310. var numGlyphsPlusOne = numGlyphs + 1;
  18311. if (locaLength === numGlyphsPlusOne << 1) {
  18312. // 0x0000 indicates the loca table consists of short offsets
  18313. data[50] = 0;
  18314. data[51] = 0;
  18315. } else if (locaLength === numGlyphsPlusOne << 2) {
  18316. // 0x0001 indicates the loca table consists of long offsets
  18317. data[50] = 0;
  18318. data[51] = 1;
  18319. } else {
  18320. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  18321. }
  18322. }
  18323. }
  18324. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  18325. isGlyphLocationsLong, hintsValid,
  18326. dupFirstEntry) {
  18327. var itemSize, itemDecode, itemEncode;
  18328. if (isGlyphLocationsLong) {
  18329. itemSize = 4;
  18330. itemDecode = function fontItemDecodeLong(data, offset) {
  18331. return (data[offset] << 24) | (data[offset + 1] << 16) |
  18332. (data[offset + 2] << 8) | data[offset + 3];
  18333. };
  18334. itemEncode = function fontItemEncodeLong(data, offset, value) {
  18335. data[offset] = (value >>> 24) & 0xFF;
  18336. data[offset + 1] = (value >> 16) & 0xFF;
  18337. data[offset + 2] = (value >> 8) & 0xFF;
  18338. data[offset + 3] = value & 0xFF;
  18339. };
  18340. } else {
  18341. itemSize = 2;
  18342. itemDecode = function fontItemDecode(data, offset) {
  18343. return (data[offset] << 9) | (data[offset + 1] << 1);
  18344. };
  18345. itemEncode = function fontItemEncode(data, offset, value) {
  18346. data[offset] = (value >> 9) & 0xFF;
  18347. data[offset + 1] = (value >> 1) & 0xFF;
  18348. };
  18349. }
  18350. var locaData = loca.data;
  18351. var locaDataSize = itemSize * (1 + numGlyphs);
  18352. // is loca.data too short or long?
  18353. if (locaData.length !== locaDataSize) {
  18354. locaData = new Uint8Array(locaDataSize);
  18355. locaData.set(loca.data.subarray(0, locaDataSize));
  18356. loca.data = locaData;
  18357. }
  18358. // removing the invalid glyphs
  18359. var oldGlyfData = glyf.data;
  18360. var oldGlyfDataLength = oldGlyfData.length;
  18361. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  18362. var startOffset = itemDecode(locaData, 0);
  18363. var writeOffset = 0;
  18364. itemEncode(locaData, 0, writeOffset);
  18365. for (var i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  18366. var endOffset = itemDecode(locaData, j);
  18367. if (endOffset > oldGlyfDataLength) {
  18368. // glyph end offset points outside glyf data, rejecting the glyph
  18369. itemEncode(locaData, j, writeOffset);
  18370. startOffset = endOffset;
  18371. continue;
  18372. }
  18373. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  18374. newGlyfData, writeOffset, hintsValid);
  18375. writeOffset += newLength;
  18376. itemEncode(locaData, j, writeOffset);
  18377. startOffset = endOffset;
  18378. }
  18379. if (writeOffset === 0) {
  18380. // glyf table cannot be empty -- redoing the glyf and loca tables
  18381. // to have single glyph with one point
  18382. var simpleGlyph = new Uint8Array(
  18383. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  18384. for (var i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize)
  18385. itemEncode(locaData, j, simpleGlyph.length);
  18386. glyf.data = simpleGlyph;
  18387. return;
  18388. }
  18389. if (dupFirstEntry) {
  18390. var firstEntryLength = itemDecode(locaData, itemSize);
  18391. if (newGlyfData.length > firstEntryLength + writeOffset) {
  18392. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  18393. } else {
  18394. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  18395. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  18396. }
  18397. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  18398. itemEncode(loca.data, locaData.length - itemSize,
  18399. writeOffset + firstEntryLength);
  18400. } else {
  18401. glyf.data = newGlyfData.subarray(0, writeOffset);
  18402. }
  18403. }
  18404. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  18405. var start = (font.start ? font.start : 0) + post.offset;
  18406. font.pos = start;
  18407. var length = post.length, end = start + length;
  18408. var version = int32(font.getBytes(4));
  18409. // skip rest to the tables
  18410. font.getBytes(28);
  18411. var glyphNames;
  18412. var valid = true;
  18413. switch (version) {
  18414. case 0x00010000:
  18415. glyphNames = MacStandardGlyphOrdering;
  18416. break;
  18417. case 0x00020000:
  18418. var numGlyphs = int16(font.getBytes(2));
  18419. if (numGlyphs != maxpNumGlyphs) {
  18420. valid = false;
  18421. break;
  18422. }
  18423. var glyphNameIndexes = [];
  18424. for (var i = 0; i < numGlyphs; ++i) {
  18425. var index = int16(font.getBytes(2));
  18426. if (index >= 32768) {
  18427. valid = false;
  18428. break;
  18429. }
  18430. glyphNameIndexes.push(index);
  18431. }
  18432. if (!valid) {
  18433. break;
  18434. }
  18435. var customNames = [];
  18436. while (font.pos < end) {
  18437. var stringLength = font.getByte();
  18438. var string = '';
  18439. for (var i = 0; i < stringLength; ++i) {
  18440. string += String.fromCharCode(font.getByte());
  18441. }
  18442. customNames.push(string);
  18443. }
  18444. glyphNames = [];
  18445. for (var i = 0; i < numGlyphs; ++i) {
  18446. var j = glyphNameIndexes[i];
  18447. if (j < 258) {
  18448. glyphNames.push(MacStandardGlyphOrdering[j]);
  18449. continue;
  18450. }
  18451. glyphNames.push(customNames[j - 258]);
  18452. }
  18453. break;
  18454. case 0x00030000:
  18455. break;
  18456. default:
  18457. warn('Unknown/unsupported post table version ' + version);
  18458. valid = false;
  18459. break;
  18460. }
  18461. properties.glyphNames = glyphNames;
  18462. return valid;
  18463. }
  18464. function readNameTable(nameTable) {
  18465. var start = (font.start ? font.start : 0) + nameTable.offset;
  18466. font.pos = start;
  18467. var names = [[], []];
  18468. var length = nameTable.length, end = start + length;
  18469. var format = int16(font.getBytes(2));
  18470. var FORMAT_0_HEADER_LENGTH = 6;
  18471. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  18472. // unsupported name table format or table "too" small
  18473. return names;
  18474. }
  18475. var numRecords = int16(font.getBytes(2));
  18476. var stringsStart = int16(font.getBytes(2));
  18477. var records = [];
  18478. var NAME_RECORD_LENGTH = 12;
  18479. for (var i = 0; i < numRecords &&
  18480. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  18481. var r = {
  18482. platform: int16(font.getBytes(2)),
  18483. encoding: int16(font.getBytes(2)),
  18484. language: int16(font.getBytes(2)),
  18485. name: int16(font.getBytes(2)),
  18486. length: int16(font.getBytes(2)),
  18487. offset: int16(font.getBytes(2))
  18488. };
  18489. // using only Macintosh and Windows platform/encoding names
  18490. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  18491. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  18492. records.push(r);
  18493. }
  18494. }
  18495. for (var i = 0, ii = records.length; i < ii; i++) {
  18496. var record = records[i];
  18497. var pos = start + stringsStart + record.offset;
  18498. if (pos + record.length > end) {
  18499. continue; // outside of name table, ignoring
  18500. }
  18501. font.pos = pos;
  18502. var nameIndex = record.name;
  18503. var encoding = record.encoding ? 1 : 0;
  18504. if (record.encoding) {
  18505. // unicode
  18506. var str = '';
  18507. for (var j = 0, jj = record.length; j < jj; j += 2) {
  18508. str += String.fromCharCode(int16(font.getBytes(2)));
  18509. }
  18510. names[1][nameIndex] = str;
  18511. } else {
  18512. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  18513. }
  18514. }
  18515. return names;
  18516. }
  18517. var TTOpsStackDeltas = [
  18518. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  18519. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  18520. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  18521. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  18522. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  18523. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  18524. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  18525. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  18526. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  18527. // 0xC0-DF == -1 and 0xE0-FF == -2
  18528. function sanitizeTTProgram(table, ttContext) {
  18529. var data = table.data;
  18530. var i = 0, n, lastEndf = 0, lastDeff = 0;
  18531. var stack = [];
  18532. var callstack = [];
  18533. var functionsCalled = [];
  18534. var tooComplexToFollowFunctions =
  18535. ttContext.tooComplexToFollowFunctions;
  18536. var inFDEF = false, ifLevel = 0, inELSE = 0;
  18537. for (var ii = data.length; i < ii;) {
  18538. var op = data[i++];
  18539. // The TrueType instruction set docs can be found at
  18540. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  18541. if (op === 0x40) { // NPUSHB - pushes n bytes
  18542. n = data[i++];
  18543. if (inFDEF || inELSE) {
  18544. i += n;
  18545. } else {
  18546. for (var j = 0; j < n; j++) {
  18547. stack.push(data[i++]);
  18548. }
  18549. }
  18550. } else if (op === 0x41) { // NPUSHW - pushes n words
  18551. n = data[i++];
  18552. if (inFDEF || inELSE) {
  18553. i += n * 2;
  18554. } else {
  18555. for (var j = 0; j < n; j++) {
  18556. var b = data[i++];
  18557. stack.push((b << 8) | data[i++]);
  18558. }
  18559. }
  18560. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  18561. n = op - 0xB0 + 1;
  18562. if (inFDEF || inELSE) {
  18563. i += n;
  18564. } else {
  18565. for (var j = 0; j < n; j++) {
  18566. stack.push(data[i++]);
  18567. }
  18568. }
  18569. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  18570. n = op - 0xB8 + 1;
  18571. if (inFDEF || inELSE) {
  18572. i += n * 2;
  18573. } else {
  18574. for (var j = 0; j < n; j++) {
  18575. var b = data[i++];
  18576. stack.push((b << 8) | data[i++]);
  18577. }
  18578. }
  18579. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  18580. if (!inFDEF && !inELSE) {
  18581. // collecting inforamtion about which functions are used
  18582. var funcId = stack[stack.length - 1];
  18583. ttContext.functionsUsed[funcId] = true;
  18584. if (funcId in ttContext.functionsStackDeltas) {
  18585. stack.length += ttContext.functionsStackDeltas[funcId];
  18586. } else if (funcId in ttContext.functionsDefined &&
  18587. functionsCalled.indexOf(funcId) < 0) {
  18588. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  18589. functionsCalled.push(funcId);
  18590. var pc = ttContext.functionsDefined[funcId];
  18591. if (!pc) {
  18592. warn('TT: CALL non-existent function');
  18593. ttContext.hintsValid = false;
  18594. return;
  18595. }
  18596. data = pc.data;
  18597. i = pc.i;
  18598. }
  18599. }
  18600. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  18601. if (inFDEF || inELSE) {
  18602. warn('TT: nested FDEFs not allowed');
  18603. tooComplexToFollowFunctions = true;
  18604. }
  18605. inFDEF = true;
  18606. // collecting inforamtion about which functions are defined
  18607. lastDeff = i;
  18608. var funcId = stack.pop();
  18609. ttContext.functionsDefined[funcId] = {data: data, i: i};
  18610. } else if (op === 0x2D) { // ENDF - end of function
  18611. if (inFDEF) {
  18612. inFDEF = false;
  18613. lastEndf = i;
  18614. } else {
  18615. var pc = callstack.pop();
  18616. if (!pc) {
  18617. warn('TT: ENDF bad stack');
  18618. ttContext.hintsValid = false;
  18619. return;
  18620. }
  18621. var funcId = functionsCalled.pop();
  18622. data = pc.data;
  18623. i = pc.i;
  18624. ttContext.functionsStackDeltas[funcId] =
  18625. stack.length - pc.stackTop;
  18626. }
  18627. } else if (op === 0x89) { // IDEF - instruction definition
  18628. if (inFDEF || inELSE) {
  18629. warn('TT: nested IDEFs not allowed');
  18630. tooComplexToFollowFunctions = true;
  18631. }
  18632. inFDEF = true;
  18633. // recording it as a function to track ENDF
  18634. lastDeff = i;
  18635. } else if (op === 0x58) { // IF
  18636. ++ifLevel;
  18637. } else if (op === 0x1B) { // ELSE
  18638. inELSE = ifLevel;
  18639. } else if (op === 0x59) { // EIF
  18640. if (inELSE === ifLevel) {
  18641. inELSE = 0;
  18642. }
  18643. --ifLevel;
  18644. } else if (op === 0x1C) { // JMPR
  18645. var offset = stack[stack.length - 1];
  18646. // only jumping forward to prevent infinite loop
  18647. if (offset > 0) { i += offset - 1; }
  18648. }
  18649. // Adjusting stack not extactly, but just enough to get function id
  18650. if (!inFDEF && !inELSE) {
  18651. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  18652. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  18653. if (op >= 0x71 && op <= 0x75) {
  18654. n = stack.pop();
  18655. if (n === n) {
  18656. stackDelta = -n * 2;
  18657. }
  18658. }
  18659. while (stackDelta < 0 && stack.length > 0) {
  18660. stack.pop();
  18661. stackDelta++;
  18662. }
  18663. while (stackDelta > 0) {
  18664. stack.push(NaN); // pushing any number into stack
  18665. stackDelta--;
  18666. }
  18667. }
  18668. }
  18669. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  18670. var content = [data];
  18671. if (i > data.length) {
  18672. content.push(new Uint8Array(i - data.length));
  18673. }
  18674. if (lastDeff > lastEndf) {
  18675. warn('TT: complementing a missing function tail');
  18676. // new function definition started, but not finished
  18677. // complete function by [CLEAR, ENDF]
  18678. content.push(new Uint8Array([0x22, 0x2D]));
  18679. }
  18680. foldTTTable(table, content);
  18681. }
  18682. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  18683. if (ttContext.tooComplexToFollowFunctions) {
  18684. return;
  18685. }
  18686. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  18687. if (j > maxFunctionDefs) {
  18688. warn('TT: invalid function id: ' + j);
  18689. ttContext.hintsValid = false;
  18690. return;
  18691. }
  18692. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  18693. warn('TT: undefined function: ' + j);
  18694. ttContext.hintsValid = false;
  18695. return;
  18696. }
  18697. }
  18698. }
  18699. function foldTTTable(table, content) {
  18700. if (content.length > 1) {
  18701. // concatenating the content items
  18702. var newLength = 0;
  18703. for (var j = 0, jj = content.length; j < jj; j++) {
  18704. newLength += content[j].length;
  18705. }
  18706. newLength = (newLength + 3) & ~3;
  18707. var result = new Uint8Array(newLength);
  18708. var pos = 0;
  18709. for (var j = 0, jj = content.length; j < jj; j++) {
  18710. result.set(content[j], pos);
  18711. pos += content[j].length;
  18712. }
  18713. table.data = result;
  18714. table.length = newLength;
  18715. }
  18716. }
  18717. function sanitizeTTPrograms(fpgm, prep, cvt) {
  18718. var ttContext = {
  18719. functionsDefined: [],
  18720. functionsUsed: [],
  18721. functionsStackDeltas: [],
  18722. tooComplexToFollowFunctions: false,
  18723. hintsValid: true
  18724. };
  18725. if (fpgm) {
  18726. sanitizeTTProgram(fpgm, ttContext);
  18727. }
  18728. if (prep) {
  18729. sanitizeTTProgram(prep, ttContext);
  18730. }
  18731. if (fpgm) {
  18732. checkInvalidFunctions(ttContext, maxFunctionDefs);
  18733. }
  18734. if (cvt && (cvt.length & 1)) {
  18735. var cvtData = new Uint8Array(cvt.length + 1);
  18736. cvtData.set(cvt.data);
  18737. cvt.data = cvtData;
  18738. }
  18739. return ttContext.hintsValid;
  18740. }
  18741. // The following steps modify the original font data, making copy
  18742. font = new Stream(new Uint8Array(font.getBytes()));
  18743. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  18744. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  18745. var header = readOpenTypeHeader(font);
  18746. var numTables = header.numTables;
  18747. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  18748. hmtx: null, maxp: null, name: null, post: null};
  18749. for (var i = 0; i < numTables; i++) {
  18750. var table = readTableEntry(font);
  18751. if (VALID_TABLES.indexOf(table.tag) < 0) {
  18752. continue; // skipping table if it's not a required or optional table
  18753. }
  18754. if (table.length === 0) {
  18755. continue; // skipping empty tables
  18756. }
  18757. tables[table.tag] = table;
  18758. }
  18759. var isTrueType = !tables['CFF '];
  18760. if (!isTrueType) {
  18761. // OpenType font
  18762. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  18763. // no major tables: throwing everything at CFFFont
  18764. var cffFile = new Stream(tables['CFF '].data);
  18765. var cff = new CFFFont(cffFile, properties);
  18766. return this.convert(name, cff, properties);
  18767. }
  18768. delete tables.glyf;
  18769. delete tables.loca;
  18770. delete tables.fpgm;
  18771. delete tables.prep;
  18772. delete tables['cvt '];
  18773. } else {
  18774. if (!tables.glyf || !tables.loca) {
  18775. error('Required "glyf" or "loca" tables are not found');
  18776. }
  18777. }
  18778. if (!tables.maxp) {
  18779. error('Required "maxp" table is not found');
  18780. }
  18781. font.pos = (font.start || 0) + tables.maxp.offset;
  18782. var version = int32(font.getBytes(4));
  18783. var numGlyphs = int16(font.getBytes(2));
  18784. var maxFunctionDefs = 0;
  18785. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  18786. // maxZones can be invalid
  18787. font.pos += 8;
  18788. var maxZones = int16(font.getBytes(2));
  18789. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  18790. tables.maxp.data[14] = 0;
  18791. tables.maxp.data[15] = 2;
  18792. }
  18793. font.pos += 4;
  18794. maxFunctionDefs = int16(font.getBytes(2));
  18795. }
  18796. var dupFirstEntry = false;
  18797. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  18798. properties.toUnicode[0] > '\u0000') {
  18799. // oracle's defect (see 3427), duplicating first entry
  18800. dupFirstEntry = true;
  18801. numGlyphs++;
  18802. tables.maxp.data[4] = numGlyphs >> 8;
  18803. tables.maxp.data[5] = numGlyphs & 255;
  18804. }
  18805. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  18806. tables['cvt '], maxFunctionDefs);
  18807. if (!hintsValid) {
  18808. delete tables.fpgm;
  18809. delete tables.prep;
  18810. delete tables['cvt '];
  18811. }
  18812. // Tables needs to be written by ascendant alphabetic order
  18813. var tablesNames = Object.keys(tables);
  18814. tablesNames.sort();
  18815. numTables = tablesNames.length;
  18816. // header and new offsets. Table entry information is appended to the
  18817. // end of file. The virtualOffset represents where to put the actual
  18818. // data of a particular table;
  18819. var ttf = {
  18820. file: '',
  18821. virtualOffset: numTables * (4 * 4)
  18822. };
  18823. // The new numbers of tables will be the last one plus the num
  18824. // of missing tables
  18825. createOpenTypeHeader(header.version, ttf, numTables);
  18826. // Ensure the hmtx table contains the advance width and
  18827. // sidebearings information for numGlyphs in the maxp table
  18828. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  18829. if (!tables.head) {
  18830. error('Required "head" table is not found');
  18831. }
  18832. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  18833. if (isTrueType) {
  18834. var isGlyphLocationsLong = int16([tables.head.data[50],
  18835. tables.head.data[51]]);
  18836. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  18837. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  18838. }
  18839. if (!tables.hhea) {
  18840. error('Required "hhea" table is not found');
  18841. }
  18842. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  18843. // Sometimes it's 0. That needs to be fixed
  18844. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  18845. tables.hhea.data[10] = 0xFF;
  18846. tables.hhea.data[11] = 0xFF;
  18847. }
  18848. // The 'post' table has glyphs names.
  18849. if (tables.post) {
  18850. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  18851. if (!valid) {
  18852. tables.post = null;
  18853. }
  18854. }
  18855. var glyphs, ids;
  18856. if (properties.type == 'CIDFontType2') {
  18857. // Replace the old CMAP table with a shiny new one
  18858. // Type2 composite fonts map characters directly to glyphs so the cmap
  18859. // table must be replaced.
  18860. // canvas fillText will reencode some characters even if the font has a
  18861. // glyph at that position - e.g. newline is converted to a space and
  18862. // U+00AD (soft hyphen) is not drawn.
  18863. // So, offset all the glyphs by 0xFF to avoid these cases and use
  18864. // the encoding to map incoming characters to the new glyph positions
  18865. if (!tables.cmap) {
  18866. tables.cmap = {
  18867. tag: 'cmap',
  18868. data: null
  18869. };
  18870. }
  18871. var cidToGidMap = properties.cidToGidMap || [];
  18872. var gidToCidMap = [0];
  18873. if (cidToGidMap.length > 0) {
  18874. for (var j = cidToGidMap.length - 1; j >= 0; j--) {
  18875. var gid = cidToGidMap[j];
  18876. if (gid)
  18877. gidToCidMap[gid] = j;
  18878. }
  18879. // filling the gaps using CID above the CIDs currently used in font
  18880. var nextCid = cidToGidMap.length;
  18881. for (var i = 1; i < numGlyphs; i++) {
  18882. if (!gidToCidMap[i])
  18883. gidToCidMap[i] = nextCid++;
  18884. }
  18885. } else {
  18886. for (var i = 1; i < numGlyphs; i++) {
  18887. gidToCidMap[i] = i;
  18888. }
  18889. if (dupFirstEntry) {
  18890. gidToCidMap[numGlyphs - 1] = 0;
  18891. }
  18892. }
  18893. glyphs = [];
  18894. ids = [];
  18895. var usedUnicodes = [];
  18896. var unassignedUnicodeItems = [];
  18897. var toFontChar = this.cidToFontChar || this.toFontChar;
  18898. for (var i = 1; i < numGlyphs; i++) {
  18899. var cid = gidToCidMap[i];
  18900. var unicode = toFontChar[cid];
  18901. if (!unicode || typeof unicode !== 'number' ||
  18902. isSpecialUnicode(unicode) || unicode in usedUnicodes) {
  18903. unassignedUnicodeItems.push(i);
  18904. continue;
  18905. }
  18906. usedUnicodes[unicode] = true;
  18907. glyphs.push({ unicode: unicode, code: cid });
  18908. ids.push(i);
  18909. }
  18910. // unassigned codepoints will never be used for non-Identity CMap
  18911. // because the input will be Unicode
  18912. if (!this.cidToFontChar) {
  18913. // trying to fit as many unassigned symbols as we can
  18914. // in the range allocated for the user defined symbols
  18915. var unusedUnicode = CMAP_GLYPH_OFFSET;
  18916. for (var j = 0, jj = unassignedUnicodeItems.length; j < jj; j++) {
  18917. var i = unassignedUnicodeItems[j];
  18918. var cid = gidToCidMap[i];
  18919. while (unusedUnicode in usedUnicodes)
  18920. unusedUnicode++;
  18921. if (unusedUnicode >= CMAP_GLYPH_OFFSET + GLYPH_AREA_SIZE)
  18922. break;
  18923. var unicode = unusedUnicode++;
  18924. this.toFontChar[cid] = unicode;
  18925. usedUnicodes[unicode] = true;
  18926. glyphs.push({ unicode: unicode, code: cid });
  18927. ids.push(i);
  18928. }
  18929. }
  18930. } else {
  18931. this.useToFontChar = true;
  18932. // Most of the following logic in this code branch is based on the
  18933. // 9.6.6.4 of the PDF spec.
  18934. // TODO(mack):
  18935. // We are using this.hasEncoding to mean that the encoding is either
  18936. // MacRomanEncoding or WinAnsiEncoding (following spec in 9.6.6.4),
  18937. // but this.hasEncoding is currently true for any encodings on the
  18938. // Encodings object (e.g. MacExpertEncoding). So should consider using
  18939. // better check for this.
  18940. var cmapTable = readCmapTable(tables.cmap, font, this.hasEncoding,
  18941. this.isSymbolicFont);
  18942. // TODO(mack): If the (3, 0) cmap table used, then the font is
  18943. // symbolic. The range of charcodes in the cmap table should be
  18944. // one of the following:
  18945. // -> 0x0000 - 0x00FF
  18946. // -> 0xF000 - 0xF0FF
  18947. // -> 0xF100 - 0xF1FF
  18948. // -> 0xF200 - 0xF2FF
  18949. // If it is not, we should change not consider this a symbolic font
  18950. this.isSymbolicFont = cmapTable.isSymbolicFont;
  18951. var cmapPlatformId = cmapTable.platformId;
  18952. var cmapEncodingId = cmapTable.encodingId;
  18953. var cmapMappings = cmapTable.mappings;
  18954. var cmapMappingsLength = cmapMappings.length;
  18955. var glyphs = [];
  18956. var ids = [];
  18957. for (var i = 0; i < cmapMappingsLength; ++i) {
  18958. var cmapMapping = cmapMappings[i];
  18959. var charcode = cmapMapping.charcode;
  18960. var unicode = cmapCharcodeToUnicode(charcode, this.isSymbolicFont,
  18961. cmapPlatformId, cmapEncodingId);
  18962. if (!unicode) {
  18963. // TODO(mack): gotta check if skipping mappings where we cannot find
  18964. // a unicode is the correct behaviour
  18965. continue;
  18966. }
  18967. glyphs.push({
  18968. code: charcode,
  18969. unicode: unicode
  18970. });
  18971. ids.push(cmapMapping.glyphId);
  18972. }
  18973. var hasShortCmap = cmapTable.hasShortCmap;
  18974. var toFontChar = this.toFontChar;
  18975. if (hasShortCmap && ids.length == numGlyphs) {
  18976. // Fixes the short cmap tables -- some generators use incorrect
  18977. // glyph id.
  18978. for (var i = 0, ii = ids.length; i < ii; i++) {
  18979. ids[i] = i;
  18980. }
  18981. }
  18982. // Rewrite the whole toFontChar dictionary with a new one using the
  18983. // information from the mappings in the cmap table.
  18984. var newToFontChar = [];
  18985. if (this.isSymbolicFont) {
  18986. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  18987. var glyph = glyphs[i];
  18988. // For (3, 0) cmap tables:
  18989. // The charcode key being stored in toFontChar is the lower byte
  18990. // of the two-byte charcodes of the cmap table since according to
  18991. // the spec: 'each byte from the string shall be prepended with the
  18992. // high byte of the range [of charcodes in the cmap table], to form
  18993. // a two-byte character, which shall be used to select the
  18994. // associated glyph description from the subtable'.
  18995. //
  18996. // For (1, 0) cmap tables:
  18997. // 'single bytes from the string shall be used to look up the
  18998. // associated glyph descriptions from the subtable'. This means
  18999. // charcodes in the cmap will be single bytes, so no-op since
  19000. // glyph.code & 0xFF === glyph.code
  19001. newToFontChar[glyph.code & 0xFF] = glyph.unicode;
  19002. }
  19003. } else {
  19004. var encoding = properties.baseEncoding;
  19005. var differences = properties.differences;
  19006. // TODO(mack): check if it is necessary to shift control characters
  19007. // for non-symbolic fonts so that browsers dont't render them using
  19008. // space characters
  19009. var glyphCodeMapping = cmapTable.glyphCodeMapping;
  19010. for (var charcode = 0; charcode < encoding.length; ++charcode) {
  19011. if (!encoding.hasOwnProperty(charcode)) {
  19012. continue;
  19013. }
  19014. // Since the cmap table that we will be writing out is a (3, 1)
  19015. // unicode table, in this section we will rewrites the charcodes
  19016. // in the pdf into unicodes
  19017. var glyphName = encoding[charcode];
  19018. // A nonsymbolic font should not have a Differences array, but
  19019. // if it does have one, we should still use it
  19020. if (charcode in differences) {
  19021. glyphName = differences[charcode];
  19022. }
  19023. // Finally, any undefined entries in the table shall be filled
  19024. // using StandardEncoding
  19025. if (!glyphName) {
  19026. glyphName = Encodings.StandardEncoding[charcode];
  19027. }
  19028. // TODO(mack): Handle the case that the glyph name cannot be
  19029. // mapped as specified, in which case the glyph name shall be
  19030. // looked up in the font program's 'post' table (if one is
  19031. // present) and the associated glyph id shall be used.
  19032. //
  19033. // For now, we're just using the '.notdef' glyph name in this
  19034. // case.
  19035. glyphName = glyphName || '.notdef';
  19036. var unicode = GlyphsUnicode[glyphName];
  19037. newToFontChar[charcode] = unicode;
  19038. }
  19039. }
  19040. this.toFontChar = toFontChar = newToFontChar;
  19041. createGlyphNameMap(glyphs, ids, properties);
  19042. this.glyphNameMap = properties.glyphNameMap;
  19043. }
  19044. if (glyphs.length === 0) {
  19045. // defines at least one glyph
  19046. glyphs.push({ unicode: 0xF000, code: 0xF000, glyph: '.notdef' });
  19047. ids.push(0);
  19048. }
  19049. // Converting glyphs and ids into font's cmap table
  19050. tables.cmap.data = createCmapTable(glyphs, ids);
  19051. var unicodeIsEnabled = [];
  19052. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  19053. unicodeIsEnabled[glyphs[i].unicode] = true;
  19054. }
  19055. this.unicodeIsEnabled = unicodeIsEnabled;
  19056. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  19057. // extract some more font properties from the OpenType head and
  19058. // hhea tables; yMin and descent value are always negative
  19059. var override = {
  19060. unitsPerEm: int16([tables.head.data[18], tables.head.data[19]]),
  19061. yMax: int16([tables.head.data[42], tables.head.data[43]]),
  19062. yMin: int16([tables.head.data[38], tables.head.data[39]]) - 0x10000,
  19063. ascent: int16([tables.hhea.data[4], tables.hhea.data[5]]),
  19064. descent: int16([tables.hhea.data[6], tables.hhea.data[7]]) - 0x10000
  19065. };
  19066. tables['OS/2'] = {
  19067. tag: 'OS/2',
  19068. data: stringToArray(createOS2Table(properties, glyphs, override))
  19069. };
  19070. }
  19071. // Rewrite the 'post' table if needed
  19072. if (!tables.post) {
  19073. tables.post = {
  19074. tag: 'post',
  19075. data: stringToArray(createPostTable(properties))
  19076. };
  19077. }
  19078. if (!isTrueType) {
  19079. try {
  19080. // Trying to repair CFF file
  19081. var cffFile = new Stream(tables['CFF '].data);
  19082. var parser = new CFFParser(cffFile, properties);
  19083. var cff = parser.parse();
  19084. var compiler = new CFFCompiler(cff);
  19085. tables['CFF '].data = compiler.compile();
  19086. } catch (e) {
  19087. warn('Failed to compile font ' + properties.loadedName);
  19088. }
  19089. }
  19090. // Re-creating 'name' table
  19091. if (!tables.name) {
  19092. tables.name = {
  19093. tag: 'name',
  19094. data: stringToArray(createNameTable(this.name))
  19095. };
  19096. } else {
  19097. // ... using existing 'name' table as prototype
  19098. var namePrototype = readNameTable(tables.name);
  19099. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  19100. }
  19101. // rewrite the tables but tweak offsets
  19102. for (var i = 0; i < numTables; i++) {
  19103. var table = tables[tablesNames[i]];
  19104. var data = [];
  19105. var tableData = table.data;
  19106. for (var j = 0, jj = tableData.length; j < jj; j++)
  19107. data.push(tableData[j]);
  19108. createTableEntry(ttf, table.tag, data);
  19109. }
  19110. // Add the table datas
  19111. for (var i = 0; i < numTables; i++) {
  19112. var table = tables[tablesNames[i]];
  19113. var tableData = table.data;
  19114. ttf.file += arrayToString(tableData);
  19115. // 4-byte aligned data
  19116. while (ttf.file.length & 3)
  19117. ttf.file += String.fromCharCode(0);
  19118. }
  19119. return stringToArray(ttf.file);
  19120. },
  19121. convert: function Font_convert(fontName, font, properties) {
  19122. function isFixedPitch(glyphs) {
  19123. for (var i = 0, ii = glyphs.length - 1; i < ii; i++) {
  19124. if (glyphs[i] != glyphs[i + 1])
  19125. return false;
  19126. }
  19127. return true;
  19128. }
  19129. // The offsets object holds at the same time a representation of where
  19130. // to write the table entry information about a table and another offset
  19131. // representing the offset where to draw the actual data of a particular
  19132. // table
  19133. var REQ_TABLES_CNT = 9;
  19134. var otf = {
  19135. file: '',
  19136. virtualOffset: 9 * (4 * 4)
  19137. };
  19138. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  19139. var charstrings = font.charstrings;
  19140. properties.fixedPitch = isFixedPitch(charstrings);
  19141. var glyphNameMap = {};
  19142. for (var i = 0; i < charstrings.length; ++i) {
  19143. var charstring = charstrings[i];
  19144. glyphNameMap[charstring.glyph] = charstring.unicode;
  19145. }
  19146. this.glyphNameMap = glyphNameMap;
  19147. var seacs = font.seacs;
  19148. if (SEAC_ANALYSIS_ENABLED && seacs) {
  19149. var seacMap = [];
  19150. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  19151. for (var i = 0; i < charstrings.length; ++i) {
  19152. var charstring = charstrings[i];
  19153. var seac = seacs[charstring.gid];
  19154. if (!seac) {
  19155. continue;
  19156. }
  19157. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  19158. var baseUnicode = glyphNameMap[baseGlyphName];
  19159. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  19160. var accentUnicode = glyphNameMap[accentGlyphName];
  19161. if (!baseUnicode || !accentUnicode) {
  19162. continue;
  19163. }
  19164. var accentOffset = {
  19165. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  19166. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  19167. };
  19168. seacMap[charstring.unicode] = {
  19169. baseUnicode: baseUnicode,
  19170. accentUnicode: accentUnicode,
  19171. accentOffset: accentOffset
  19172. };
  19173. }
  19174. properties.seacMap = seacMap;
  19175. }
  19176. if (properties.overridableEncoding && (properties.subtype == 'Type1C' ||
  19177. properties.subtype == 'CIDFontType0C')) {
  19178. var encoding = [];
  19179. for (var i = 0; i < charstrings.length; ++i) {
  19180. var charstring = charstrings[i];
  19181. encoding[charstring.code] = charstring.glyph;
  19182. }
  19183. properties.baseEncoding = encoding;
  19184. }
  19185. if (properties.subtype == 'CIDFontType0C') {
  19186. var toFontChar = [];
  19187. for (var i = 0; i < charstrings.length; ++i) {
  19188. var charstring = charstrings[i];
  19189. toFontChar[charstring.code] = charstring.unicode;
  19190. }
  19191. this.toFontChar = toFontChar;
  19192. }
  19193. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  19194. var fields = {
  19195. // PostScript Font Program
  19196. 'CFF ': font.data,
  19197. // OS/2 and Windows Specific metrics
  19198. 'OS/2': stringToArray(createOS2Table(properties, charstrings)),
  19199. // Character to glyphs mapping
  19200. 'cmap': createCmapTable(charstrings.slice(),
  19201. ('glyphIds' in font) ? font.glyphIds : null),
  19202. // Font header
  19203. 'head': (function fontFieldsHead() {
  19204. return stringToArray(
  19205. '\x00\x01\x00\x00' + // Version number
  19206. '\x00\x00\x10\x00' + // fontRevision
  19207. '\x00\x00\x00\x00' + // checksumAdjustement
  19208. '\x5F\x0F\x3C\xF5' + // magicNumber
  19209. '\x00\x00' + // Flags
  19210. safeString16(unitsPerEm) + // unitsPerEM
  19211. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  19212. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  19213. '\x00\x00' + // xMin
  19214. safeString16(properties.descent) + // yMin
  19215. '\x0F\xFF' + // xMax
  19216. safeString16(properties.ascent) + // yMax
  19217. string16(properties.italicAngle ? 2 : 0) + // macStyle
  19218. '\x00\x11' + // lowestRecPPEM
  19219. '\x00\x00' + // fontDirectionHint
  19220. '\x00\x00' + // indexToLocFormat
  19221. '\x00\x00'); // glyphDataFormat
  19222. })(),
  19223. // Horizontal header
  19224. 'hhea': (function fontFieldsHhea() {
  19225. return stringToArray(
  19226. '\x00\x01\x00\x00' + // Version number
  19227. safeString16(properties.ascent) + // Typographic Ascent
  19228. safeString16(properties.descent) + // Typographic Descent
  19229. '\x00\x00' + // Line Gap
  19230. '\xFF\xFF' + // advanceWidthMax
  19231. '\x00\x00' + // minLeftSidebearing
  19232. '\x00\x00' + // minRightSidebearing
  19233. '\x00\x00' + // xMaxExtent
  19234. safeString16(properties.capHeight) + // caretSlopeRise
  19235. safeString16(Math.tan(properties.italicAngle) *
  19236. properties.xHeight) + // caretSlopeRun
  19237. '\x00\x00' + // caretOffset
  19238. '\x00\x00' + // -reserved-
  19239. '\x00\x00' + // -reserved-
  19240. '\x00\x00' + // -reserved-
  19241. '\x00\x00' + // -reserved-
  19242. '\x00\x00' + // metricDataFormat
  19243. string16(charstrings.length + 1)); // Number of HMetrics
  19244. })(),
  19245. // Horizontal metrics
  19246. 'hmtx': (function fontFieldsHmtx() {
  19247. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  19248. for (var i = 0, ii = charstrings.length; i < ii; i++) {
  19249. var charstring = charstrings[i];
  19250. var width = 'width' in charstring ? charstring.width : 0;
  19251. hmtx += string16(width) + string16(0);
  19252. }
  19253. return stringToArray(hmtx);
  19254. })(),
  19255. // Maximum profile
  19256. 'maxp': (function fontFieldsMaxp() {
  19257. return stringToArray(
  19258. '\x00\x00\x50\x00' + // Version number
  19259. string16(charstrings.length + 1)); // Num of glyphs
  19260. })(),
  19261. // Naming tables
  19262. 'name': stringToArray(createNameTable(fontName)),
  19263. // PostScript informations
  19264. 'post': stringToArray(createPostTable(properties))
  19265. };
  19266. for (var field in fields)
  19267. createTableEntry(otf, field, fields[field]);
  19268. for (var field in fields) {
  19269. var table = fields[field];
  19270. otf.file += arrayToString(table);
  19271. }
  19272. return stringToArray(otf.file);
  19273. },
  19274. buildToFontChar: function Font_buildToFontChar(toUnicode) {
  19275. var result = [];
  19276. var unusedUnicode = CMAP_GLYPH_OFFSET;
  19277. for (var i = 0, ii = toUnicode.length; i < ii; i++) {
  19278. var unicode = toUnicode[i];
  19279. var fontCharCode = typeof unicode === 'object' ? unusedUnicode++ :
  19280. unicode;
  19281. if (typeof unicode !== 'undefined') {
  19282. if (isString(fontCharCode) && fontCharCode.length === 1) {
  19283. fontCharCode = fontCharCode.charCodeAt(0);
  19284. }
  19285. result[i] = fontCharCode;
  19286. }
  19287. }
  19288. return result;
  19289. },
  19290. rebuildToUnicode: function Font_rebuildToUnicode(properties) {
  19291. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  19292. var map = [];
  19293. var toUnicode = this.toUnicode || this.cidToUnicode;
  19294. if (toUnicode) {
  19295. var isIdentityMap = toUnicode.length === 0;
  19296. for (var i = firstChar, ii = lastChar; i <= ii; i++) {
  19297. // TODO missing map the character according font's CMap
  19298. map[i] = isIdentityMap ? String.fromCharCode(i) : toUnicode[i];
  19299. }
  19300. } else {
  19301. for (var i = firstChar, ii = lastChar; i <= ii; i++) {
  19302. var glyph = properties.differences[i];
  19303. if (!glyph)
  19304. glyph = properties.baseEncoding[i];
  19305. if (!!glyph && (glyph in GlyphsUnicode))
  19306. map[i] = String.fromCharCode(GlyphsUnicode[glyph]);
  19307. }
  19308. }
  19309. this.toUnicode = map;
  19310. },
  19311. loadCidToUnicode: function Font_loadCidToUnicode(properties) {
  19312. if (!properties.cidSystemInfo)
  19313. return;
  19314. var cidToUnicodeMap = [], unicodeToCIDMap = [];
  19315. this.cidToUnicode = cidToUnicodeMap;
  19316. this.unicodeToCID = unicodeToCIDMap;
  19317. var cidEncoding = properties.cidEncoding;
  19318. if (properties.toUnicode) {
  19319. if (cidEncoding && cidEncoding.indexOf('Identity-') !== 0) {
  19320. warn('Need to create a reverse mapping from \'ToUnicode\' CMap');
  19321. }
  19322. return; // 'ToUnicode' CMap will be used
  19323. }
  19324. var cidSystemInfo = properties.cidSystemInfo;
  19325. var cidToUnicode;
  19326. if (cidSystemInfo) {
  19327. cidToUnicode = CIDToUnicodeMaps[
  19328. cidSystemInfo.registry + '-' + cidSystemInfo.ordering];
  19329. }
  19330. if (!cidToUnicode)
  19331. return; // identity encoding
  19332. var overwrite = HalfwidthCMaps[cidEncoding];
  19333. var cid = 1, i, j, k, ii;
  19334. for (i = 0, ii = cidToUnicode.length; i < ii; ++i) {
  19335. var unicode = cidToUnicode[i];
  19336. if (isArray(unicode)) {
  19337. var length = unicode.length;
  19338. for (j = 0; j < length; j++) {
  19339. cidToUnicodeMap[cid] = k = unicode[j];
  19340. if (!unicodeToCIDMap[k] || overwrite) {
  19341. unicodeToCIDMap[k] = cid;
  19342. }
  19343. }
  19344. cid++;
  19345. } else if (typeof unicode === 'object') {
  19346. var fillLength = unicode.f;
  19347. if (fillLength) {
  19348. k = unicode.c;
  19349. for (j = 0; j < fillLength; ++j) {
  19350. cidToUnicodeMap[cid] = k;
  19351. if (!unicodeToCIDMap[k] || overwrite) {
  19352. unicodeToCIDMap[k] = cid;
  19353. }
  19354. cid++;
  19355. k++;
  19356. }
  19357. } else
  19358. cid += unicode.s;
  19359. } else if (unicode) {
  19360. cidToUnicodeMap[cid] = unicode;
  19361. if (!unicodeToCIDMap[unicode] || overwrite) {
  19362. unicodeToCIDMap[unicode] = cid;
  19363. }
  19364. cid++;
  19365. } else
  19366. cid++;
  19367. }
  19368. if (!cidEncoding) {
  19369. return;
  19370. }
  19371. if (cidEncoding.indexOf('Identity-') !== 0) {
  19372. // input is already Unicode for non-Identity CMap encodings.
  19373. this.cidToUnicode = [];
  19374. // For CIDFontType2, however, we need cid-to-Unicode conversion
  19375. // to rebuild cmap.
  19376. if (properties.type == 'CIDFontType2') {
  19377. this.cidToFontChar = cidToUnicodeMap;
  19378. }
  19379. } else {
  19380. // We don't have to do reverse conversions if the string is
  19381. // already CID.
  19382. this.unicodeToCID = [];
  19383. }
  19384. },
  19385. get spaceWidth() {
  19386. if ('_shadowWidth' in this) {
  19387. return this._shadowWidth;
  19388. }
  19389. // trying to estimate space character width
  19390. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  19391. var width;
  19392. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  19393. var glyphName = possibleSpaceReplacements[i];
  19394. // if possible, getting width by glyph name
  19395. if (glyphName in this.widths) {
  19396. width = this.widths[glyphName];
  19397. break;
  19398. }
  19399. var glyphUnicode = GlyphsUnicode[glyphName];
  19400. // finding the charcode via unicodeToCID map
  19401. var charcode = 0;
  19402. if (this.composite)
  19403. charcode = this.unicodeToCID[glyphUnicode];
  19404. // ... via toUnicode map
  19405. if (!charcode && 'toUnicode' in this)
  19406. charcode = this.toUnicode.indexOf(glyphUnicode);
  19407. // setting it to unicode if negative or undefined
  19408. if (charcode <= 0)
  19409. charcode = glyphUnicode;
  19410. // trying to get width via charcode
  19411. width = this.widths[charcode];
  19412. if (width)
  19413. break; // the non-zero width found
  19414. }
  19415. width = width || this.defaultWidth;
  19416. // Do not shadow the property here. See discussion:
  19417. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  19418. this._shadowWidth = width;
  19419. return width;
  19420. },
  19421. charToGlyph: function Font_charToGlyph(charcode) {
  19422. var fontCharCode, width, operatorList, disabled;
  19423. var width = this.widths[charcode];
  19424. var vmetric = this.vmetrics && this.vmetrics[charcode];
  19425. switch (this.type) {
  19426. case 'CIDFontType0':
  19427. var cid = this.unicodeToCID[charcode] || charcode;
  19428. if (this.unicodeToCID.length > 0) {
  19429. width = this.widths[cid];
  19430. vmetric = this.vmetrics && this.vmetrics[cid];
  19431. }
  19432. if (this.noUnicodeAdaptation) {
  19433. fontCharCode = this.toFontChar[charcode] || charcode;
  19434. break;
  19435. }
  19436. // CIDFontType0 is not encoded in Unicode.
  19437. fontCharCode = this.toFontChar[cid] || cid;
  19438. break;
  19439. case 'CIDFontType2':
  19440. if (this.unicodeToCID.length > 0) {
  19441. var cid = this.unicodeToCID[charcode] || charcode;
  19442. width = this.widths[cid];
  19443. vmetric = this.vmetrics && this.vmetrics[cid];
  19444. fontCharCode = charcode;
  19445. break;
  19446. }
  19447. fontCharCode = this.toFontChar[charcode] || charcode;
  19448. break;
  19449. case 'MMType1': // XXX at the moment only "standard" fonts are supported
  19450. case 'Type1':
  19451. var glyphName = this.differences[charcode] || this.encoding[charcode];
  19452. if (!isNum(width))
  19453. width = this.widths[glyphName];
  19454. if (this.noUnicodeAdaptation) {
  19455. fontCharCode = mapPrivateUseChars(GlyphsUnicode[glyphName] ||
  19456. charcode);
  19457. break;
  19458. }
  19459. fontCharCode = this.glyphNameMap[glyphName] ||
  19460. GlyphsUnicode[glyphName] || charcode;
  19461. break;
  19462. case 'Type3':
  19463. var glyphName = this.differences[charcode] || this.encoding[charcode];
  19464. operatorList = this.charProcOperatorList[glyphName];
  19465. fontCharCode = charcode;
  19466. break;
  19467. case 'TrueType':
  19468. if (this.useToFontChar) {
  19469. fontCharCode = this.toFontChar[charcode] || charcode;
  19470. break;
  19471. }
  19472. var glyphName = this.differences[charcode] || this.encoding[charcode];
  19473. if (!glyphName)
  19474. glyphName = Encodings.StandardEncoding[charcode];
  19475. if (!isNum(width))
  19476. width = this.widths[glyphName];
  19477. if (this.noUnicodeAdaptation) {
  19478. fontCharCode = GlyphsUnicode[glyphName] || charcode;
  19479. break;
  19480. }
  19481. if (!this.hasEncoding || this.isSymbolicFont) {
  19482. fontCharCode = this.useToFontChar ? this.toFontChar[charcode] :
  19483. charcode;
  19484. break;
  19485. }
  19486. // MacRoman encoding address by re-encoding the cmap table
  19487. fontCharCode = glyphName in this.glyphNameMap ?
  19488. this.glyphNameMap[glyphName] : GlyphsUnicode[glyphName];
  19489. break;
  19490. default:
  19491. warn('Unsupported font type: ' + this.type);
  19492. break;
  19493. }
  19494. var unicodeChars = !('toUnicode' in this) ? charcode :
  19495. this.toUnicode[charcode] || charcode;
  19496. if (typeof unicodeChars === 'number') {
  19497. unicodeChars = String.fromCharCode(unicodeChars);
  19498. }
  19499. width = isNum(width) ? width : this.defaultWidth;
  19500. disabled = this.unicodeIsEnabled ?
  19501. !this.unicodeIsEnabled[fontCharCode] : false;
  19502. var accent = null;
  19503. if (this.seacMap && this.seacMap[fontCharCode]) {
  19504. var seac = this.seacMap[fontCharCode];
  19505. fontCharCode = seac.baseUnicode;
  19506. accent = {
  19507. fontChar: String.fromCharCode(seac.accentUnicode),
  19508. offset: seac.accentOffset
  19509. };
  19510. }
  19511. return {
  19512. fontChar: String.fromCharCode(fontCharCode),
  19513. unicode: unicodeChars,
  19514. accent: accent,
  19515. width: width,
  19516. vmetric: vmetric,
  19517. disabled: disabled,
  19518. operatorList: operatorList
  19519. };
  19520. },
  19521. charsToGlyphs: function Font_charsToGlyphs(chars) {
  19522. var charsCache = this.charsCache;
  19523. var glyphs;
  19524. // if we translated this string before, just grab it from the cache
  19525. if (charsCache) {
  19526. glyphs = charsCache[chars];
  19527. if (glyphs)
  19528. return glyphs;
  19529. }
  19530. // lazily create the translation cache
  19531. if (!charsCache)
  19532. charsCache = this.charsCache = Object.create(null);
  19533. glyphs = [];
  19534. var charsCacheKey = chars;
  19535. var converter;
  19536. var cidEncoding = this.cidEncoding;
  19537. if (cidEncoding) {
  19538. converter = CMapConverterList[cidEncoding];
  19539. if (converter) {
  19540. chars = converter(chars);
  19541. } else if (cidEncoding.indexOf('Uni') !== 0 &&
  19542. cidEncoding.indexOf('Identity-') !== 0) {
  19543. warn('Unsupported CMap: ' + cidEncoding);
  19544. }
  19545. }
  19546. if (!converter && this.cmap) {
  19547. var i = 0;
  19548. // composite fonts have multi-byte strings convert the string from
  19549. // single-byte to multi-byte
  19550. while (i < chars.length) {
  19551. var c = this.cmap.readCharCode(chars, i);
  19552. var charcode = c[0];
  19553. var length = c[1];
  19554. i += length;
  19555. var glyph = this.charToGlyph(charcode);
  19556. glyphs.push(glyph);
  19557. // placing null after each word break charcode (ASCII SPACE)
  19558. // Ignore occurences of 0x20 in multiple-byte codes.
  19559. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  19560. glyphs.push(null);
  19561. }
  19562. }
  19563. }
  19564. else {
  19565. for (var i = 0, ii = chars.length; i < ii; ++i) {
  19566. var charcode = chars.charCodeAt(i);
  19567. var glyph = this.charToGlyph(charcode);
  19568. glyphs.push(glyph);
  19569. if (charcode == 0x20)
  19570. glyphs.push(null);
  19571. }
  19572. }
  19573. // Enter the translated string into the cache
  19574. return (charsCache[charsCacheKey] = glyphs);
  19575. }
  19576. };
  19577. return Font;
  19578. })();
  19579. var ErrorFont = (function ErrorFontClosure() {
  19580. function ErrorFont(error) {
  19581. this.error = error;
  19582. }
  19583. ErrorFont.prototype = {
  19584. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  19585. return [];
  19586. },
  19587. exportData: function ErrorFont_exportData() {
  19588. return {error: this.error};
  19589. }
  19590. };
  19591. return ErrorFont;
  19592. })();
  19593. /*
  19594. * CharStrings are encoded following the the CharString Encoding sequence
  19595. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  19596. * The value in a byte indicates a command, a number, or subsequent bytes
  19597. * that are to be interpreted in a special way.
  19598. *
  19599. * CharString Number Encoding:
  19600. * A CharString byte containing the values from 32 through 255 inclusive
  19601. * indicate an integer. These values are decoded in four ranges.
  19602. *
  19603. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  19604. * indicate the integer v - 139. Thus, the integer values from -107 through
  19605. * 107 inclusive may be encoded in single byte.
  19606. *
  19607. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  19608. * indicates an integer involving the next byte, w, according to the formula:
  19609. * [(v - 247) x 256] + w + 108
  19610. *
  19611. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  19612. * indicates an integer involving the next byte, w, according to the formula:
  19613. * -[(v - 251) * 256] - w - 108
  19614. *
  19615. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  19616. * are a two complement signed integer. The first of these bytes contains the
  19617. * highest order bits, the second byte contains the next higher order bits
  19618. * and the fourth byte contain the lowest order bits.
  19619. *
  19620. *
  19621. * CharString Command Encoding:
  19622. * CharStrings commands are encoded in 1 or 2 bytes.
  19623. *
  19624. * Single byte commands are encoded in 1 byte that contains a value between
  19625. * 0 and 31 inclusive.
  19626. * If a command byte contains the value 12, then the value in the next byte
  19627. * indicates a command. This "escape" mechanism allows many extra commands
  19628. * to be encoded and this encoding technique helps to minimize the length of
  19629. * the charStrings.
  19630. */
  19631. var Type1CharString = (function Type1CharStringClosure() {
  19632. var COMMAND_MAP = {
  19633. 'hstem': [1],
  19634. 'vstem': [3],
  19635. 'vmoveto': [4],
  19636. 'rlineto': [5],
  19637. 'hlineto': [6],
  19638. 'vlineto': [7],
  19639. 'rrcurveto': [8],
  19640. 'callsubr': [10],
  19641. 'flex': [12, 35],
  19642. 'drop' : [12, 18],
  19643. 'endchar': [14],
  19644. 'rmoveto': [21],
  19645. 'hmoveto': [22],
  19646. 'vhcurveto': [30],
  19647. 'hvcurveto': [31]
  19648. };
  19649. function Type1CharString() {
  19650. this.width = 0;
  19651. this.lsb = 0;
  19652. this.flexing = false;
  19653. this.output = [];
  19654. this.stack = [];
  19655. }
  19656. Type1CharString.prototype = {
  19657. convert: function Type1CharString_convert(encoded, subrs) {
  19658. var count = encoded.length;
  19659. var error = false;
  19660. for (var i = 0; i < count; i++) {
  19661. var value = encoded[i];
  19662. if (value < 32) {
  19663. if (value === 12) {
  19664. value = (value << 8) + encoded[++i];
  19665. }
  19666. switch (value) {
  19667. case 1: // hstem
  19668. if (!HINTING_ENABLED) {
  19669. this.stack = [];
  19670. break;
  19671. }
  19672. error = this.executeCommand(2, COMMAND_MAP.hstem);
  19673. break;
  19674. case 3: // vstem
  19675. if (!HINTING_ENABLED) {
  19676. this.stack = [];
  19677. break;
  19678. }
  19679. error = this.executeCommand(2, COMMAND_MAP.vstem);
  19680. break;
  19681. case 4: // vmoveto
  19682. if (this.flexing) {
  19683. if (this.stack.length < 1) {
  19684. error = true;
  19685. break;
  19686. }
  19687. // Add the dx for flex and but also swap the values so they are
  19688. // the right order.
  19689. var dy = this.stack.pop();
  19690. this.stack.push(0, dy);
  19691. break;
  19692. }
  19693. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  19694. break;
  19695. case 5: // rlineto
  19696. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  19697. break;
  19698. case 6: // hlineto
  19699. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  19700. break;
  19701. case 7: // vlineto
  19702. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  19703. break;
  19704. case 8: // rrcurveto
  19705. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  19706. break;
  19707. case 9: // closepath
  19708. // closepath is a Type1 command that does not take argument and is
  19709. // useless in Type2 and it can simply be ignored.
  19710. this.stack = [];
  19711. break;
  19712. case 10: // callsubr
  19713. if (this.stack.length < 1) {
  19714. error = true;
  19715. break;
  19716. }
  19717. var subrNumber = this.stack.pop();
  19718. error = this.convert(subrs[subrNumber], subrs);
  19719. break;
  19720. case 11: // return
  19721. return error;
  19722. case 13: // hsbw
  19723. if (this.stack.length < 2) {
  19724. error = true;
  19725. break;
  19726. }
  19727. // To convert to type2 we have to move the width value to the
  19728. // first part of the charstring and then use hmoveto with lsb.
  19729. var wx = this.stack.pop();
  19730. var sbx = this.stack.pop();
  19731. this.lsb = sbx;
  19732. this.width = wx;
  19733. this.stack.push(sbx);
  19734. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  19735. break;
  19736. case 14: // endchar
  19737. this.output.push(COMMAND_MAP.endchar[0]);
  19738. break;
  19739. case 21: // rmoveto
  19740. if (this.flexing) {
  19741. break;
  19742. }
  19743. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  19744. break;
  19745. case 22: // hmoveto
  19746. if (this.flexing) {
  19747. // Add the dy for flex.
  19748. this.stack.push(0);
  19749. break;
  19750. }
  19751. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  19752. break;
  19753. case 30: // vhcurveto
  19754. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  19755. break;
  19756. case 31: // hvcurveto
  19757. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  19758. break;
  19759. case (12 << 8) + 0: // dotsection
  19760. // dotsection is a Type1 command to specify some hinting feature
  19761. // for dots that do not take a parameter and it can safely be
  19762. // ignored for Type2.
  19763. this.stack = [];
  19764. break;
  19765. case (12 << 8) + 1: // vstem3
  19766. if (!HINTING_ENABLED) {
  19767. this.stack = [];
  19768. break;
  19769. }
  19770. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  19771. // multiple parameters, so instead of returning [vh]stem3 take a
  19772. // shortcut and return [vhstem] instead.
  19773. error = this.executeCommand(2, COMMAND_MAP.vstem);
  19774. break;
  19775. case (12 << 8) + 2: // hstem3
  19776. if (!HINTING_ENABLED) {
  19777. this.stack = [];
  19778. break;
  19779. }
  19780. // See vstem3.
  19781. error = this.executeCommand(2, COMMAND_MAP.hstem);
  19782. break;
  19783. case (12 << 8) + 6: // seac
  19784. // seac is like type 2's special endchar but it doesn't use the
  19785. // first argument asb, so remove it.
  19786. if (SEAC_ANALYSIS_ENABLED) {
  19787. this.seac = this.stack.splice(-4, 4);
  19788. error = this.executeCommand(0, COMMAND_MAP.endchar);
  19789. } else {
  19790. error = this.executeCommand(4, COMMAND_MAP.endchar);
  19791. }
  19792. break;
  19793. case (12 << 8) + 7: // sbw
  19794. if (this.stack.length < 4) {
  19795. error = true;
  19796. break;
  19797. }
  19798. // To convert to type2 we have to move the width value to the
  19799. // first part of the charstring and then use rmoveto with
  19800. // (dx, dy). The height argument will not be used for vmtx and
  19801. // vhea tables reconstruction -- ignoring it.
  19802. var wy = this.stack.pop();
  19803. var wx = this.stack.pop();
  19804. var sby = this.stack.pop();
  19805. var sbx = this.stack.pop();
  19806. this.lsb = sbx;
  19807. this.width = wx;
  19808. this.stack.push(sbx, sby);
  19809. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  19810. break;
  19811. case (12 << 8) + 12: // div
  19812. if (this.stack.length < 2) {
  19813. error = true;
  19814. break;
  19815. }
  19816. var num2 = this.stack.pop();
  19817. var num1 = this.stack.pop();
  19818. this.stack.push(num1 / num2);
  19819. break;
  19820. case (12 << 8) + 16: // callothersubr
  19821. if (this.stack.length < 2) {
  19822. error = true;
  19823. break;
  19824. }
  19825. var subrNumber = this.stack.pop();
  19826. var numArgs = this.stack.pop();
  19827. if (subrNumber === 0 && numArgs === 3) {
  19828. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  19829. this.stack.push(
  19830. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  19831. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  19832. flexArgs[4], // bcp2x
  19833. flexArgs[5], // bcp2y
  19834. flexArgs[6], // p2x
  19835. flexArgs[7], // p2y
  19836. flexArgs[8], // bcp3x
  19837. flexArgs[9], // bcp3y
  19838. flexArgs[10], // bcp4x
  19839. flexArgs[11], // bcp4y
  19840. flexArgs[12], // p3x
  19841. flexArgs[13], // p3y
  19842. flexArgs[14] // flexDepth
  19843. // 15 = finalx unused by flex
  19844. // 16 = finaly unused by flex
  19845. );
  19846. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  19847. this.flexing = false;
  19848. this.stack.push(flexArgs[15], flexArgs[16]);
  19849. } else if (subrNumber === 1 && numArgs === 0) {
  19850. this.flexing = true;
  19851. }
  19852. break;
  19853. case (12 << 8) + 17: // pop
  19854. // Ignore this since it is only used with othersubr.
  19855. break;
  19856. case (12 << 8) + 33: // setcurrentpoint
  19857. // Ignore for now.
  19858. this.stack = [];
  19859. break;
  19860. default:
  19861. warn('Unknown type 1 charstring command of "' + value + '"');
  19862. break;
  19863. }
  19864. if (error) {
  19865. break;
  19866. }
  19867. continue;
  19868. } else if (value <= 246) {
  19869. value = value - 139;
  19870. } else if (value <= 250) {
  19871. value = ((value - 247) * 256) + encoded[++i] + 108;
  19872. } else if (value <= 254) {
  19873. value = -((value - 251) * 256) - encoded[++i] - 108;
  19874. } else {
  19875. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  19876. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  19877. }
  19878. this.stack.push(value);
  19879. }
  19880. return error;
  19881. },
  19882. executeCommand: function(howManyArgs, command, keepStack) {
  19883. var stackLength = this.stack.length;
  19884. if (howManyArgs > stackLength) {
  19885. return true;
  19886. }
  19887. var start = stackLength - howManyArgs;
  19888. for (var i = start; i < stackLength; i++) {
  19889. var value = this.stack[i];
  19890. if (value === (value | 0)) { // int
  19891. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  19892. } else { // fixed point
  19893. value = (65536 * value) | 0;
  19894. this.output.push(255,
  19895. (value >> 24) & 0xFF,
  19896. (value >> 16) & 0xFF,
  19897. (value >> 8) & 0xFF,
  19898. value & 0xFF);
  19899. }
  19900. }
  19901. this.output.push.apply(this.output, command);
  19902. if (keepStack) {
  19903. this.stack.splice(start, howManyArgs);
  19904. } else {
  19905. this.stack = [];
  19906. }
  19907. return false;
  19908. }
  19909. };
  19910. return Type1CharString;
  19911. })();
  19912. /*
  19913. * Type1Parser encapsulate the needed code for parsing a Type1 font
  19914. * program. Some of its logic depends on the Type2 charstrings
  19915. * structure.
  19916. * Note: this doesn't really parse the font since that would require evaluation
  19917. * of PostScript, but it is possible in most cases to extract what we need
  19918. * without a full parse.
  19919. */
  19920. var Type1Parser = (function Type1ParserClosure() {
  19921. /*
  19922. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  19923. * of Plaintext Bytes. The function took a key as a parameter which can be
  19924. * for decrypting the eexec block of for decoding charStrings.
  19925. */
  19926. var EEXEC_ENCRYPT_KEY = 55665;
  19927. var CHAR_STRS_ENCRYPT_KEY = 4330;
  19928. function decrypt(stream, key, discardNumber) {
  19929. var r = key, c1 = 52845, c2 = 22719;
  19930. var decryptedString = [];
  19931. var value = '';
  19932. var count = stream.length;
  19933. for (var i = 0; i < count; i++) {
  19934. value = stream[i];
  19935. decryptedString[i] = value ^ (r >> 8);
  19936. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  19937. }
  19938. return decryptedString.slice(discardNumber);
  19939. }
  19940. function isSpecial(c) {
  19941. return c === 0x2F || // '/'
  19942. c === 0x5B || c === 0x5D || // '[', ']'
  19943. c === 0x7B || c === 0x7D || // '{', '}'
  19944. c === 0x28 || c === 0x29; // '(', ')'
  19945. }
  19946. function Type1Parser(stream, encrypted) {
  19947. if (encrypted) {
  19948. stream = new Stream(decrypt(stream.getBytes(), EEXEC_ENCRYPT_KEY, 4));
  19949. }
  19950. this.stream = stream;
  19951. this.nextChar();
  19952. }
  19953. Type1Parser.prototype = {
  19954. readNumberArray: function Type1Parser_readNumberArray() {
  19955. this.getToken(); // read '[' or '{' (arrays can start with either)
  19956. var array = [];
  19957. while (true) {
  19958. var token = this.getToken();
  19959. if (token === null || token === ']' || token === '}') {
  19960. break;
  19961. }
  19962. array.push(parseFloat(token || 0));
  19963. }
  19964. return array;
  19965. },
  19966. readNumber: function Type1Parser_readNumber() {
  19967. var token = this.getToken();
  19968. return parseFloat(token || 0);
  19969. },
  19970. readInt: function Type1Parser_readInt() {
  19971. // Use '| 0' to prevent setting a double into length such as the double
  19972. // does not flow into the loop variable.
  19973. var token = this.getToken();
  19974. return parseInt(token || 0, 10) | 0;
  19975. },
  19976. readBoolean: function Type1Parser_readBoolean() {
  19977. var token = this.getToken();
  19978. // Use 1 and 0 since that's what type2 charstrings use.
  19979. return token === 'true' ? 1 : 0;
  19980. },
  19981. nextChar : function Type1_nextChar() {
  19982. return (this.currentChar = this.stream.getByte());
  19983. },
  19984. getToken: function Type1Parser_getToken() {
  19985. // Eat whitespace and comments.
  19986. var comment = false;
  19987. var ch = this.currentChar;
  19988. while (true) {
  19989. if (ch === -1) {
  19990. return null;
  19991. }
  19992. if (comment) {
  19993. if (ch === 0x0A || ch === 0x0D) {
  19994. comment = false;
  19995. }
  19996. } else if (ch === 0x25) { // '%'
  19997. comment = true;
  19998. } else if (!Lexer.isSpace(ch)) {
  19999. break;
  20000. }
  20001. ch = this.nextChar();
  20002. }
  20003. if (isSpecial(ch)) {
  20004. this.nextChar();
  20005. return String.fromCharCode(ch);
  20006. }
  20007. var token = '';
  20008. do {
  20009. token += String.fromCharCode(ch);
  20010. ch = this.nextChar();
  20011. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  20012. return token;
  20013. },
  20014. /*
  20015. * Returns an object containing a Subrs array and a CharStrings
  20016. * array extracted from and eexec encrypted block of data
  20017. */
  20018. extractFontProgram: function Type1Parser_extractFontProgram() {
  20019. var stream = this.stream;
  20020. var subrs = [], charstrings = [];
  20021. var program = {
  20022. subrs: [],
  20023. charstrings: [],
  20024. properties: {
  20025. 'privateData': {
  20026. 'lenIV': 4
  20027. }
  20028. }
  20029. };
  20030. var token;
  20031. while ((token = this.getToken()) !== null) {
  20032. if (token !== '/') {
  20033. continue;
  20034. }
  20035. token = this.getToken();
  20036. switch (token) {
  20037. case 'CharStrings':
  20038. // The number immediately following CharStrings must be greater or
  20039. // equal to the number of CharStrings.
  20040. this.getToken();
  20041. this.getToken(); // read in 'dict'
  20042. this.getToken(); // read in 'dup'
  20043. this.getToken(); // read in 'begin'
  20044. while(true) {
  20045. token = this.getToken();
  20046. if (token === null || token === 'end') {
  20047. break;
  20048. }
  20049. if (token !== '/') {
  20050. continue;
  20051. }
  20052. var glyph = this.getToken();
  20053. var length = this.readInt();
  20054. this.getToken(); // read in 'RD' or '-|'
  20055. var data = stream.makeSubStream(stream.pos, length);
  20056. var lenIV = program.properties.privateData['lenIV'];
  20057. var encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY,
  20058. lenIV);
  20059. // Skip past the required space and binary data.
  20060. stream.skip(length);
  20061. this.nextChar();
  20062. token = this.getToken(); // read in 'ND' or '|-'
  20063. if (token === 'noaccess') {
  20064. this.getToken(); // read in 'def'
  20065. }
  20066. charstrings.push({
  20067. glyph: glyph,
  20068. encoded: encoded
  20069. });
  20070. }
  20071. break;
  20072. case 'Subrs':
  20073. var num = this.readInt();
  20074. this.getToken(); // read in 'array'
  20075. while ((token = this.getToken()) === 'dup') {
  20076. var index = this.readInt();
  20077. var length = this.readInt();
  20078. this.getToken(); // read in 'RD' or '-|'
  20079. var data = stream.makeSubStream(stream.pos, length);
  20080. var lenIV = program.properties.privateData['lenIV'];
  20081. var encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY,
  20082. lenIV);
  20083. // Skip past the required space and binary data.
  20084. stream.skip(length);
  20085. this.nextChar();
  20086. token = this.getToken(); // read in 'NP' or '|'
  20087. if (token === 'noaccess') {
  20088. this.getToken(); // read in 'put'
  20089. }
  20090. subrs[index] = encoded;
  20091. }
  20092. break;
  20093. case 'BlueValues':
  20094. case 'OtherBlues':
  20095. case 'FamilyBlues':
  20096. case 'FamilyOtherBlues':
  20097. var blueArray = this.readNumberArray();
  20098. // *Blue* values may contain invalid data: disables reading of
  20099. // those values when hinting is disabled.
  20100. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  20101. HINTING_ENABLED) {
  20102. program.properties.privateData[token] = blueArray;
  20103. }
  20104. break;
  20105. case 'StemSnapH':
  20106. case 'StemSnapV':
  20107. program.properties.privateData[token] = this.readNumberArray();
  20108. break;
  20109. case 'StdHW':
  20110. case 'StdVW':
  20111. program.properties.privateData[token] =
  20112. this.readNumberArray()[0];
  20113. break;
  20114. case 'BlueShift':
  20115. case 'lenIV':
  20116. case 'BlueFuzz':
  20117. case 'BlueScale':
  20118. case 'LanguageGroup':
  20119. case 'ExpansionFactor':
  20120. program.properties.privateData[token] = this.readNumber();
  20121. break;
  20122. case 'ForceBold':
  20123. program.properties.privateData[token] = this.readBoolean();
  20124. break;
  20125. }
  20126. }
  20127. for (var i = 0; i < charstrings.length; i++) {
  20128. var glyph = charstrings[i].glyph;
  20129. var encoded = charstrings[i].encoded;
  20130. var charString = new Type1CharString();
  20131. var error = charString.convert(encoded, subrs);
  20132. var output = charString.output;
  20133. if (error) {
  20134. // It seems when FreeType encounters an error while evaluating a glyph
  20135. // that it completely ignores the glyph so we'll mimic that behaviour
  20136. // here and put an endchar to make the validator happy.
  20137. output = [14];
  20138. }
  20139. program.charstrings.push({
  20140. glyph: glyph,
  20141. data: output,
  20142. seac: charString.seac,
  20143. lsb: charString.lsb,
  20144. width: charString.width
  20145. });
  20146. }
  20147. return program;
  20148. },
  20149. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  20150. var token;
  20151. while ((token = this.getToken()) !== null) {
  20152. if (token !== '/') {
  20153. continue;
  20154. }
  20155. token = this.getToken();
  20156. switch (token) {
  20157. case 'FontMatrix':
  20158. var matrix = this.readNumberArray();
  20159. properties.fontMatrix = matrix;
  20160. break;
  20161. case 'Encoding':
  20162. var encodingArg = this.getToken();
  20163. var encoding;
  20164. if (!/^\d+$/.test(encodingArg)) {
  20165. // encoding name is specified
  20166. encoding = Encodings[encodingArg];
  20167. } else {
  20168. encoding = [];
  20169. var size = parseInt(encodingArg, 10) | 0;
  20170. this.getToken(); // read in 'array'
  20171. for (var j = 0; j < size; j++) {
  20172. var token = this.getToken();
  20173. // skipping till first dup or def (e.g. ignoring for statement)
  20174. while (token !== 'dup' && token !== 'def') {
  20175. token = this.getToken();
  20176. if (token === null) {
  20177. return; // invalid header
  20178. }
  20179. }
  20180. if (token === 'def') {
  20181. break; // read all array data
  20182. }
  20183. var index = this.readInt();
  20184. this.getToken(); // read in '/'
  20185. var glyph = this.getToken();
  20186. encoding[index] = glyph;
  20187. this.getToken(); // read the in 'put'
  20188. }
  20189. }
  20190. if (properties.overridableEncoding && encoding) {
  20191. properties.baseEncoding = encoding;
  20192. break;
  20193. }
  20194. break;
  20195. case 'FontBBox':
  20196. var fontBBox = this.readNumberArray();
  20197. // adjusting ascent/descent
  20198. properties.ascent = fontBBox[3];
  20199. properties.descent = fontBBox[1];
  20200. properties.ascentScaled = true;
  20201. break;
  20202. }
  20203. }
  20204. }
  20205. };
  20206. return Type1Parser;
  20207. })();
  20208. /**
  20209. * The CFF class takes a Type1 file and wrap it into a
  20210. * 'Compact Font Format' which itself embed Type2 charstrings.
  20211. */
  20212. var CFFStandardStrings = [
  20213. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  20214. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  20215. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  20216. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  20217. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  20218. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  20219. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  20220. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  20221. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  20222. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  20223. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  20224. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  20225. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  20226. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  20227. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  20228. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  20229. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  20230. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  20231. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  20232. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  20233. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  20234. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  20235. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  20236. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  20237. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  20238. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  20239. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  20240. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  20241. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  20242. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  20243. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  20244. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  20245. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  20246. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', '266 ff',
  20247. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  20248. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  20249. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  20250. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  20251. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  20252. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  20253. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  20254. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  20255. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  20256. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  20257. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  20258. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  20259. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  20260. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  20261. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  20262. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  20263. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  20264. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  20265. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  20266. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  20267. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  20268. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  20269. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  20270. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  20271. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  20272. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  20273. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  20274. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  20275. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  20276. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  20277. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  20278. ];
  20279. // Type1Font is also a CIDFontType0.
  20280. var Type1Font = function Type1Font(name, file, properties) {
  20281. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  20282. // Also, length1 and length2 might be off by 6 bytes as well.
  20283. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  20284. var PFB_HEADER_SIZE = 6;
  20285. var headerBlockLength = properties.length1;
  20286. var eexecBlockLength = properties.length2;
  20287. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  20288. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  20289. if (pfbHeaderPresent) {
  20290. file.skip(PFB_HEADER_SIZE);
  20291. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  20292. (pfbHeader[3] << 8) | pfbHeader[2];
  20293. }
  20294. // Get the data block containing glyphs and subrs informations
  20295. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  20296. var headerBlockParser = new Type1Parser(headerBlock);
  20297. headerBlockParser.extractFontHeader(properties);
  20298. if (pfbHeaderPresent) {
  20299. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  20300. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  20301. (pfbHeader[3] << 8) | pfbHeader[2];
  20302. }
  20303. // Decrypt the data blocks and retrieve it's content
  20304. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  20305. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  20306. var data = eexecBlockParser.extractFontProgram();
  20307. for (var info in data.properties)
  20308. properties[info] = data.properties[info];
  20309. var charstrings = this.getOrderedCharStrings(data.charstrings, properties);
  20310. var type2Charstrings = this.getType2Charstrings(charstrings);
  20311. var subrs = this.getType2Subrs(data.subrs);
  20312. this.charstrings = charstrings;
  20313. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  20314. subrs, properties);
  20315. this.seacs = this.getSeacs(data.charstrings);
  20316. };
  20317. Type1Font.prototype = {
  20318. getOrderedCharStrings: function Type1Font_getOrderedCharStrings(glyphs,
  20319. properties) {
  20320. var charstrings = [];
  20321. var usedUnicodes = [];
  20322. var i, length, glyphName;
  20323. var unusedUnicode = CMAP_GLYPH_OFFSET;
  20324. for (i = 0, length = glyphs.length; i < length; i++) {
  20325. var item = glyphs[i];
  20326. var glyphName = item.glyph;
  20327. var unicode = glyphName in GlyphsUnicode ?
  20328. GlyphsUnicode[glyphName] : unusedUnicode++;
  20329. while (usedUnicodes[unicode]) {
  20330. unicode = unusedUnicode++;
  20331. }
  20332. usedUnicodes[unicode] = true;
  20333. charstrings.push({
  20334. glyph: glyphName,
  20335. unicode: unicode,
  20336. gid: i,
  20337. charstring: item.data,
  20338. width: item.width,
  20339. lsb: item.lsb
  20340. });
  20341. }
  20342. charstrings.sort(function charstrings_sort(a, b) {
  20343. return a.unicode - b.unicode;
  20344. });
  20345. return charstrings;
  20346. },
  20347. getSeacs: function Type1Font_getSeacs(charstrings) {
  20348. var i, ii;
  20349. var seacMap = [];
  20350. for (i = 0, ii = charstrings.length; i < ii; i++) {
  20351. var charstring = charstrings[i];
  20352. if (charstring.seac) {
  20353. seacMap[i] = charstring.seac;
  20354. }
  20355. }
  20356. return seacMap;
  20357. },
  20358. getType2Charstrings: function Type1Font_getType2Charstrings(
  20359. type1Charstrings) {
  20360. var type2Charstrings = [];
  20361. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  20362. type2Charstrings.push(type1Charstrings[i].charstring);
  20363. }
  20364. return type2Charstrings;
  20365. },
  20366. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  20367. var bias = 0;
  20368. var count = type1Subrs.length;
  20369. if (count < 1133)
  20370. bias = 107;
  20371. else if (count < 33769)
  20372. bias = 1131;
  20373. else
  20374. bias = 32768;
  20375. // Add a bunch of empty subrs to deal with the Type2 bias
  20376. var type2Subrs = [];
  20377. for (var i = 0; i < bias; i++)
  20378. type2Subrs.push([0x0B]);
  20379. for (var i = 0; i < count; i++) {
  20380. type2Subrs.push(type1Subrs[i]);
  20381. }
  20382. return type2Subrs;
  20383. },
  20384. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  20385. var cff = new CFF();
  20386. cff.header = new CFFHeader(1, 0, 4, 4);
  20387. cff.names = [name];
  20388. var topDict = new CFFTopDict();
  20389. // CFF strings IDs 0...390 are predefined names, so refering
  20390. // to entries in our own String INDEX starts at SID 391.
  20391. topDict.setByName('version', 391);
  20392. topDict.setByName('Notice', 392);
  20393. topDict.setByName('FullName', 393);
  20394. topDict.setByName('FamilyName', 394);
  20395. topDict.setByName('Weight', 395);
  20396. topDict.setByName('Encoding', null); // placeholder
  20397. topDict.setByName('FontMatrix', properties.fontMatrix);
  20398. topDict.setByName('FontBBox', properties.bbox);
  20399. topDict.setByName('charset', null); // placeholder
  20400. topDict.setByName('CharStrings', null); // placeholder
  20401. topDict.setByName('Private', null); // placeholder
  20402. cff.topDict = topDict;
  20403. var strings = new CFFStrings();
  20404. strings.add('Version 0.11'); // Version
  20405. strings.add('See original notice'); // Notice
  20406. strings.add(name); // FullName
  20407. strings.add(name); // FamilyName
  20408. strings.add('Medium'); // Weight
  20409. cff.strings = strings;
  20410. cff.globalSubrIndex = new CFFIndex();
  20411. var count = glyphs.length;
  20412. var charsetArray = [0];
  20413. for (var i = 0; i < count; i++) {
  20414. var index = CFFStandardStrings.indexOf(charstrings[i].glyph);
  20415. // Some characters like asterikmath && circlecopyrt are
  20416. // missing from the original strings, for the moment let's
  20417. // map them to .notdef and see later if it cause any
  20418. // problems
  20419. if (index == -1)
  20420. index = 0;
  20421. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  20422. }
  20423. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  20424. var charStringsIndex = new CFFIndex();
  20425. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  20426. for (var i = 0; i < count; i++) {
  20427. charStringsIndex.add(glyphs[i]);
  20428. }
  20429. cff.charStrings = charStringsIndex;
  20430. var privateDict = new CFFPrivateDict();
  20431. privateDict.setByName('Subrs', null); // placeholder
  20432. var fields = [
  20433. 'BlueValues',
  20434. 'OtherBlues',
  20435. 'FamilyBlues',
  20436. 'FamilyOtherBlues',
  20437. 'StemSnapH',
  20438. 'StemSnapV',
  20439. 'BlueShift',
  20440. 'BlueFuzz',
  20441. 'BlueScale',
  20442. 'LanguageGroup',
  20443. 'ExpansionFactor',
  20444. 'ForceBold',
  20445. 'StdHW',
  20446. 'StdVW'
  20447. ];
  20448. for (var i = 0, ii = fields.length; i < ii; i++) {
  20449. var field = fields[i];
  20450. if (!properties.privateData.hasOwnProperty(field))
  20451. continue;
  20452. var value = properties.privateData[field];
  20453. if (isArray(value)) {
  20454. // All of the private dictionary array data in CFF must be stored as
  20455. // "delta-encoded" numbers.
  20456. for (var j = value.length - 1; j > 0; j--) {
  20457. value[j] -= value[j - 1]; // ... difference from previous value
  20458. }
  20459. }
  20460. privateDict.setByName(field, value);
  20461. }
  20462. cff.topDict.privateDict = privateDict;
  20463. var subrIndex = new CFFIndex();
  20464. for (var i = 0, ii = subrs.length; i < ii; i++) {
  20465. subrIndex.add(subrs[i]);
  20466. }
  20467. privateDict.subrsIndex = subrIndex;
  20468. var compiler = new CFFCompiler(cff);
  20469. return compiler.compile();
  20470. }
  20471. };
  20472. var CFFFont = (function CFFFontClosure() {
  20473. function CFFFont(file, properties) {
  20474. this.properties = properties;
  20475. var parser = new CFFParser(file, properties);
  20476. this.cff = parser.parse();
  20477. var compiler = new CFFCompiler(this.cff);
  20478. this.readExtra();
  20479. try {
  20480. this.data = compiler.compile();
  20481. } catch (e) {
  20482. warn('Failed to compile font ' + properties.loadedName);
  20483. // There may have just been an issue with the compiler, set the data
  20484. // anyway and hope the font loaded.
  20485. this.data = file;
  20486. }
  20487. }
  20488. CFFFont.prototype = {
  20489. readExtra: function CFFFont_readExtra() {
  20490. // charstrings contains info about glyphs (one element per glyph
  20491. // containing mappings for {unicode, width})
  20492. var charstrings = this.getCharStrings();
  20493. // create the mapping between charstring and glyph id
  20494. var glyphIds = [];
  20495. for (var i = 0, ii = charstrings.length; i < ii; i++)
  20496. glyphIds.push(charstrings[i].gid);
  20497. this.charstrings = charstrings;
  20498. this.glyphIds = glyphIds;
  20499. this.seacs = this.cff.seacs;
  20500. },
  20501. getCharStrings: function CFFFont_getCharStrings() {
  20502. var cff = this.cff;
  20503. var charsets = cff.charset.charset;
  20504. var encoding = cff.encoding ? cff.encoding.encoding : null;
  20505. var charstrings = [];
  20506. var unicodeUsed = [];
  20507. var unassignedUnicodeItems = [];
  20508. var inverseEncoding = [];
  20509. var gidStart = 0;
  20510. if (charsets[0] === '.notdef') {
  20511. gidStart = 1;
  20512. }
  20513. // According to section 9.7.4.2 CIDFontType0C glyph selection should be
  20514. // handled differently.
  20515. if (this.properties.subtype === 'CIDFontType0C') {
  20516. if (this.cff.isCIDFont) {
  20517. // If the font is actually a CID font then we should use the charset
  20518. // to map CIDs to GIDs.
  20519. inverseEncoding = charsets;
  20520. } else {
  20521. // If it is NOT actually a CID font then CIDs should be mapped
  20522. // directly to GIDs.
  20523. inverseEncoding = [];
  20524. for (var i = 0, ii = cff.charStrings.count; i < ii; i++) {
  20525. inverseEncoding.push(i);
  20526. }
  20527. // Use the identity map for charsets as well.
  20528. charsets = inverseEncoding;
  20529. }
  20530. } else {
  20531. for (var charcode in encoding) {
  20532. var gid = encoding[charcode];
  20533. if (gid in inverseEncoding) {
  20534. // Glyphs can be multiply-encoded if there was an encoding
  20535. // supplement. Convert to an array and append the charcode.
  20536. var previousCharcode = inverseEncoding[gid];
  20537. if (!isArray(previousCharcode)) {
  20538. inverseEncoding[gid] = [previousCharcode];
  20539. }
  20540. inverseEncoding[gid].push(charcode | 0);
  20541. } else {
  20542. inverseEncoding[gid] = charcode | 0;
  20543. }
  20544. }
  20545. }
  20546. for (var i = gidStart, ii = charsets.length; i < ii; i++) {
  20547. var glyph = charsets[i];
  20548. var codes = inverseEncoding[i];
  20549. if (!isArray(codes)) {
  20550. codes = [codes];
  20551. }
  20552. for (var j = 0; j < codes.length; j++) {
  20553. var code = codes[j];
  20554. if (!code || isSpecialUnicode(code)) {
  20555. unassignedUnicodeItems.push(i, code);
  20556. continue;
  20557. }
  20558. charstrings.push({
  20559. unicode: code,
  20560. code: code,
  20561. gid: i,
  20562. glyph: glyph
  20563. });
  20564. unicodeUsed[code] = true;
  20565. }
  20566. }
  20567. var nextUnusedUnicode = CMAP_GLYPH_OFFSET;
  20568. for (var j = 0, jj = unassignedUnicodeItems.length; j < jj; j += 2) {
  20569. var i = unassignedUnicodeItems[j];
  20570. // giving unicode value anyway
  20571. while (nextUnusedUnicode in unicodeUsed)
  20572. nextUnusedUnicode++;
  20573. var unicode = nextUnusedUnicode++;
  20574. charstrings.push({
  20575. unicode: unicode,
  20576. code: unassignedUnicodeItems[j + 1] || 0,
  20577. gid: i,
  20578. glyph: charsets[i]
  20579. });
  20580. }
  20581. // sort the array by the unicode value (again)
  20582. charstrings.sort(function getCharStringsSort(a, b) {
  20583. return a.unicode - b.unicode;
  20584. });
  20585. return charstrings;
  20586. }
  20587. };
  20588. return CFFFont;
  20589. })();
  20590. var CFFParser = (function CFFParserClosure() {
  20591. var CharstringValidationData = [
  20592. null,
  20593. { id: 'hstem', min: 2, resetStack: true, stem: true },
  20594. null,
  20595. { id: 'vstem', min: 2, resetStack: true, stem: true },
  20596. { id: 'vmoveto', min: 1, resetStack: true },
  20597. { id: 'rlineto', min: 2, resetStack: true },
  20598. { id: 'hlineto', min: 1, resetStack: true },
  20599. { id: 'vlineto', min: 1, resetStack: true },
  20600. { id: 'rrcurveto', min: 6, resetStack: true },
  20601. null,
  20602. { id: 'callsubr', min: 1, undefStack: true },
  20603. { id: 'return', min: 0, undefStack: true },
  20604. null, // 12
  20605. null,
  20606. null, // endchar
  20607. null,
  20608. null,
  20609. null,
  20610. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  20611. null, // hintmask
  20612. null, // cntrmask
  20613. { id: 'rmoveto', min: 2, resetStack: true },
  20614. { id: 'hmoveto', min: 1, resetStack: true },
  20615. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  20616. { id: 'rcurveline', min: 8, resetStack: true },
  20617. { id: 'rlinecurve', min: 8, resetStack: true },
  20618. { id: 'vvcurveto', min: 4, resetStack: true },
  20619. { id: 'hhcurveto', min: 4, resetStack: true },
  20620. null, // shortint
  20621. { id: 'callgsubr', min: 1, undefStack: true },
  20622. { id: 'vhcurveto', min: 4, resetStack: true },
  20623. { id: 'hvcurveto', min: 4, resetStack: true }
  20624. ];
  20625. var CharstringValidationData12 = [
  20626. null,
  20627. null,
  20628. null,
  20629. { id: 'and', min: 2, stackDelta: -1 },
  20630. { id: 'or', min: 2, stackDelta: -1 },
  20631. { id: 'not', min: 1, stackDelta: 0 },
  20632. null,
  20633. null,
  20634. null,
  20635. { id: 'abs', min: 1, stackDelta: 0 },
  20636. { id: 'add', min: 2, stackDelta: -1,
  20637. stackFn: function stack_div(stack, index) {
  20638. stack[index - 2] = stack[index - 2] + stack[index - 1];
  20639. }
  20640. },
  20641. { id: 'sub', min: 2, stackDelta: -1,
  20642. stackFn: function stack_div(stack, index) {
  20643. stack[index - 2] = stack[index - 2] - stack[index - 1];
  20644. }
  20645. },
  20646. { id: 'div', min: 2, stackDelta: -1,
  20647. stackFn: function stack_div(stack, index) {
  20648. stack[index - 2] = stack[index - 2] / stack[index - 1];
  20649. }
  20650. },
  20651. null,
  20652. { id: 'neg', min: 1, stackDelta: 0,
  20653. stackFn: function stack_div(stack, index) {
  20654. stack[index - 1] = -stack[index - 1];
  20655. }
  20656. },
  20657. { id: 'eq', min: 2, stackDelta: -1 },
  20658. null,
  20659. null,
  20660. { id: 'drop', min: 1, stackDelta: -1 },
  20661. null,
  20662. { id: 'put', min: 2, stackDelta: -2 },
  20663. { id: 'get', min: 1, stackDelta: 0 },
  20664. { id: 'ifelse', min: 4, stackDelta: -3 },
  20665. { id: 'random', min: 0, stackDelta: 1 },
  20666. { id: 'mul', min: 2, stackDelta: -1,
  20667. stackFn: function stack_div(stack, index) {
  20668. stack[index - 2] = stack[index - 2] * stack[index - 1];
  20669. }
  20670. },
  20671. null,
  20672. { id: 'sqrt', min: 1, stackDelta: 0 },
  20673. { id: 'dup', min: 1, stackDelta: 1 },
  20674. { id: 'exch', min: 2, stackDelta: 0 },
  20675. { id: 'index', min: 2, stackDelta: 0 },
  20676. { id: 'roll', min: 3, stackDelta: -2 },
  20677. null,
  20678. null,
  20679. null,
  20680. { id: 'hflex', min: 7, resetStack: true },
  20681. { id: 'flex', min: 13, resetStack: true },
  20682. { id: 'hflex1', min: 9, resetStack: true },
  20683. { id: 'flex1', min: 11, resetStack: true }
  20684. ];
  20685. function CFFParser(file, properties) {
  20686. this.bytes = file.getBytes();
  20687. this.properties = properties;
  20688. }
  20689. CFFParser.prototype = {
  20690. parse: function CFFParser_parse() {
  20691. var properties = this.properties;
  20692. var cff = new CFF();
  20693. this.cff = cff;
  20694. // The first five sections must be in order, all the others are reached
  20695. // via offsets contained in one of the below.
  20696. var header = this.parseHeader();
  20697. var nameIndex = this.parseIndex(header.endPos);
  20698. var topDictIndex = this.parseIndex(nameIndex.endPos);
  20699. var stringIndex = this.parseIndex(topDictIndex.endPos);
  20700. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  20701. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  20702. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  20703. cff.header = header.obj;
  20704. cff.names = this.parseNameIndex(nameIndex.obj);
  20705. cff.strings = this.parseStringIndex(stringIndex.obj);
  20706. cff.topDict = topDict;
  20707. cff.globalSubrIndex = globalSubrIndex.obj;
  20708. this.parsePrivateDict(cff.topDict);
  20709. cff.isCIDFont = topDict.hasName('ROS');
  20710. var charStringOffset = topDict.getByName('CharStrings');
  20711. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  20712. cff.charStrings = charStringsAndSeacs.charStrings;
  20713. cff.seacs = charStringsAndSeacs.seacs;
  20714. var fontMatrix = topDict.getByName('FontMatrix');
  20715. if (fontMatrix) {
  20716. properties.fontMatrix = fontMatrix;
  20717. }
  20718. var fontBBox = topDict.getByName('FontBBox');
  20719. if (fontBBox) {
  20720. // adjusting ascent/descent
  20721. properties.ascent = fontBBox[3];
  20722. properties.descent = fontBBox[1];
  20723. properties.ascentScaled = true;
  20724. }
  20725. var charset, encoding;
  20726. if (cff.isCIDFont) {
  20727. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  20728. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  20729. var dictRaw = fdArrayIndex.get(i);
  20730. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  20731. cff.strings);
  20732. this.parsePrivateDict(fontDict);
  20733. cff.fdArray.push(fontDict);
  20734. }
  20735. // cid fonts don't have an encoding
  20736. encoding = null;
  20737. charset = this.parseCharsets(topDict.getByName('charset'),
  20738. cff.charStrings.count, cff.strings, true);
  20739. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  20740. cff.charStrings.count);
  20741. } else {
  20742. charset = this.parseCharsets(topDict.getByName('charset'),
  20743. cff.charStrings.count, cff.strings, false);
  20744. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  20745. properties,
  20746. cff.strings, charset.charset);
  20747. }
  20748. cff.charset = charset;
  20749. cff.encoding = encoding;
  20750. return cff;
  20751. },
  20752. parseHeader: function CFFParser_parseHeader() {
  20753. var bytes = this.bytes;
  20754. var offset = 0;
  20755. while (bytes[offset] != 1)
  20756. ++offset;
  20757. if (offset !== 0) {
  20758. info('cff data is shifted');
  20759. bytes = bytes.subarray(offset);
  20760. this.bytes = bytes;
  20761. }
  20762. var major = bytes[0];
  20763. var minor = bytes[1];
  20764. var hdrSize = bytes[2];
  20765. var offSize = bytes[3];
  20766. var header = new CFFHeader(major, minor, hdrSize, offSize);
  20767. return {obj: header, endPos: hdrSize};
  20768. },
  20769. parseDict: function CFFParser_parseDict(dict) {
  20770. var pos = 0;
  20771. function parseOperand() {
  20772. var value = dict[pos++];
  20773. if (value === 30) {
  20774. return parseFloatOperand(pos);
  20775. } else if (value === 28) {
  20776. value = dict[pos++];
  20777. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  20778. return value;
  20779. } else if (value === 29) {
  20780. value = dict[pos++];
  20781. value = (value << 8) | dict[pos++];
  20782. value = (value << 8) | dict[pos++];
  20783. value = (value << 8) | dict[pos++];
  20784. return value;
  20785. } else if (value >= 32 && value <= 246) {
  20786. return value - 139;
  20787. } else if (value >= 247 && value <= 250) {
  20788. return ((value - 247) * 256) + dict[pos++] + 108;
  20789. } else if (value >= 251 && value <= 254) {
  20790. return -((value - 251) * 256) - dict[pos++] - 108;
  20791. } else {
  20792. error('255 is not a valid DICT command');
  20793. }
  20794. return -1;
  20795. }
  20796. function parseFloatOperand() {
  20797. var str = '';
  20798. var eof = 15;
  20799. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  20800. '9', '.', 'E', 'E-', null, '-'];
  20801. var length = dict.length;
  20802. while (pos < length) {
  20803. var b = dict[pos++];
  20804. var b1 = b >> 4;
  20805. var b2 = b & 15;
  20806. if (b1 == eof)
  20807. break;
  20808. str += lookup[b1];
  20809. if (b2 == eof)
  20810. break;
  20811. str += lookup[b2];
  20812. }
  20813. return parseFloat(str);
  20814. }
  20815. var operands = [];
  20816. var entries = [];
  20817. var pos = 0;
  20818. var end = dict.length;
  20819. while (pos < end) {
  20820. var b = dict[pos];
  20821. if (b <= 21) {
  20822. if (b === 12)
  20823. b = (b << 8) | dict[++pos];
  20824. entries.push([b, operands]);
  20825. operands = [];
  20826. ++pos;
  20827. } else {
  20828. operands.push(parseOperand());
  20829. }
  20830. }
  20831. return entries;
  20832. },
  20833. parseIndex: function CFFParser_parseIndex(pos) {
  20834. var cffIndex = new CFFIndex();
  20835. var bytes = this.bytes;
  20836. var count = (bytes[pos++] << 8) | bytes[pos++];
  20837. var offsets = [];
  20838. var start = pos;
  20839. var end = pos;
  20840. if (count !== 0) {
  20841. var offsetSize = bytes[pos++];
  20842. // add 1 for offset to determine size of last object
  20843. var startPos = pos + ((count + 1) * offsetSize) - 1;
  20844. for (var i = 0, ii = count + 1; i < ii; ++i) {
  20845. var offset = 0;
  20846. for (var j = 0; j < offsetSize; ++j) {
  20847. offset <<= 8;
  20848. offset += bytes[pos++];
  20849. }
  20850. offsets.push(startPos + offset);
  20851. }
  20852. end = offsets[count];
  20853. }
  20854. for (var i = 0, ii = offsets.length - 1; i < ii; ++i) {
  20855. var offsetStart = offsets[i];
  20856. var offsetEnd = offsets[i + 1];
  20857. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  20858. }
  20859. return {obj: cffIndex, endPos: end};
  20860. },
  20861. parseNameIndex: function CFFParser_parseNameIndex(index) {
  20862. var names = [];
  20863. for (var i = 0, ii = index.count; i < ii; ++i) {
  20864. var name = index.get(i);
  20865. // OTS doesn't allow names to be over 127 characters.
  20866. var length = Math.min(name.length, 127);
  20867. var data = [];
  20868. // OTS also only permits certain characters in the name.
  20869. for (var j = 0; j < length; ++j) {
  20870. var c = name[j];
  20871. if (j === 0 && c === 0) {
  20872. data[j] = c;
  20873. continue;
  20874. }
  20875. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  20876. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  20877. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  20878. c === 47 /* / */ || c === 37 /* % */) {
  20879. data[j] = 95;
  20880. continue;
  20881. }
  20882. data[j] = c;
  20883. }
  20884. names.push(String.fromCharCode.apply(null, data));
  20885. }
  20886. return names;
  20887. },
  20888. parseStringIndex: function CFFParser_parseStringIndex(index) {
  20889. var strings = new CFFStrings();
  20890. for (var i = 0, ii = index.count; i < ii; ++i) {
  20891. var data = index.get(i);
  20892. strings.add(String.fromCharCode.apply(null, data));
  20893. }
  20894. return strings;
  20895. },
  20896. createDict: function CFFParser_createDict(Type, dict, strings) {
  20897. var cffDict = new Type(strings);
  20898. var types = cffDict.types;
  20899. for (var i = 0, ii = dict.length; i < ii; ++i) {
  20900. var pair = dict[i];
  20901. var key = pair[0];
  20902. var value = pair[1];
  20903. cffDict.setByKey(key, value);
  20904. }
  20905. return cffDict;
  20906. },
  20907. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  20908. var charStrings = this.parseIndex(charStringOffset).obj;
  20909. var seacs = [];
  20910. var count = charStrings.count;
  20911. for (var i = 0; i < count; i++) {
  20912. var charstring = charStrings.get(i);
  20913. var stackSize = 0;
  20914. var stack = [];
  20915. var undefStack = true;
  20916. var hints = 0;
  20917. var valid = true;
  20918. var data = charstring;
  20919. var length = data.length;
  20920. for (var j = 0; j < length;) {
  20921. var value = data[j++];
  20922. var validationCommand = null;
  20923. if (value == 12) {
  20924. var q = data[j++];
  20925. if (q === 0) {
  20926. // The CFF specification state that the 'dotsection' command
  20927. // (12, 0) is deprecated and treated as a no-op, but all Type2
  20928. // charstrings processors should support them. Unfortunately
  20929. // the font sanitizer don't. As a workaround the sequence (12, 0)
  20930. // is replaced by a useless (0, hmoveto).
  20931. data[j - 2] = 139;
  20932. data[j - 1] = 22;
  20933. stackSize = 0;
  20934. } else {
  20935. validationCommand = CharstringValidationData12[q];
  20936. }
  20937. } else if (value === 28) { // number (16 bit)
  20938. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  20939. j += 2;
  20940. stackSize++;
  20941. } else if (value == 14) {
  20942. if (stackSize >= 4) {
  20943. stackSize -= 4;
  20944. if (SEAC_ANALYSIS_ENABLED) {
  20945. seacs[i] = stack.slice(stackSize, stackSize + 4);
  20946. valid = false;
  20947. }
  20948. }
  20949. } else if (value >= 32 && value <= 246) { // number
  20950. stack[stackSize] = value - 139;
  20951. stackSize++;
  20952. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  20953. stack[stackSize] = value < 251 ?
  20954. ((value - 247) << 8) + data[j] + 108 :
  20955. -((value - 251) << 8) - data[j] - 108;
  20956. j++;
  20957. stackSize++;
  20958. } else if (value == 255) { // number (32 bit)
  20959. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  20960. (data[j + 2] << 8) | data[j + 3]) / 65536;
  20961. j += 4;
  20962. stackSize++;
  20963. } else if (value == 19 || value == 20) {
  20964. hints += stackSize >> 1;
  20965. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  20966. stackSize = 0;
  20967. } else {
  20968. validationCommand = CharstringValidationData[value];
  20969. }
  20970. if (validationCommand) {
  20971. if (validationCommand.stem) {
  20972. hints += stackSize >> 1;
  20973. }
  20974. if ('min' in validationCommand) {
  20975. if (!undefStack && stackSize < validationCommand.min) {
  20976. warn('Not enough parameters for ' + validationCommand.id +
  20977. '; actual: ' + stackSize +
  20978. ', expected: ' + validationCommand.min);
  20979. valid = false;
  20980. break;
  20981. }
  20982. }
  20983. if ('stackDelta' in validationCommand) {
  20984. if ('stackFn' in validationCommand) {
  20985. validationCommand.stackFn(stack, stackSize);
  20986. }
  20987. stackSize += validationCommand.stackDelta;
  20988. } else if (validationCommand.resetStack) {
  20989. stackSize = 0;
  20990. undefStack = false;
  20991. } else if (validationCommand.undefStack) {
  20992. stackSize = 0;
  20993. undefStack = true;
  20994. }
  20995. }
  20996. }
  20997. if (!valid) {
  20998. // resetting invalid charstring to single 'endchar'
  20999. charStrings.set(i, new Uint8Array([14]));
  21000. }
  21001. }
  21002. return { charStrings: charStrings, seacs: seacs };
  21003. },
  21004. emptyPrivateDictionary:
  21005. function CFFParser_emptyPrivateDictionary(parentDict) {
  21006. var privateDict = this.createDict(CFFPrivateDict, [],
  21007. parentDict.strings);
  21008. parentDict.setByKey(18, [0, 0]);
  21009. parentDict.privateDict = privateDict;
  21010. },
  21011. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  21012. // no private dict, do nothing
  21013. if (!parentDict.hasName('Private')) {
  21014. this.emptyPrivateDictionary(parentDict);
  21015. return;
  21016. }
  21017. var privateOffset = parentDict.getByName('Private');
  21018. // make sure the params are formatted correctly
  21019. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  21020. parentDict.removeByName('Private');
  21021. return;
  21022. }
  21023. var size = privateOffset[0];
  21024. var offset = privateOffset[1];
  21025. // remove empty dicts or ones that refer to invalid location
  21026. if (size === 0 || offset >= this.bytes.length) {
  21027. this.emptyPrivateDictionary(parentDict);
  21028. return;
  21029. }
  21030. var privateDictEnd = offset + size;
  21031. var dictData = this.bytes.subarray(offset, privateDictEnd);
  21032. var dict = this.parseDict(dictData);
  21033. var privateDict = this.createDict(CFFPrivateDict, dict,
  21034. parentDict.strings);
  21035. parentDict.privateDict = privateDict;
  21036. // Parse the Subrs index also since it's relative to the private dict.
  21037. if (!privateDict.getByName('Subrs'))
  21038. return;
  21039. var subrsOffset = privateDict.getByName('Subrs');
  21040. var relativeOffset = offset + subrsOffset;
  21041. // Validate the offset.
  21042. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  21043. this.emptyPrivateDictionary(parentDict);
  21044. return;
  21045. }
  21046. var subrsIndex = this.parseIndex(relativeOffset);
  21047. privateDict.subrsIndex = subrsIndex.obj;
  21048. },
  21049. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  21050. if (pos === 0) {
  21051. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  21052. ISOAdobeCharset);
  21053. } else if (pos == 1) {
  21054. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  21055. ExpertCharset);
  21056. } else if (pos == 2) {
  21057. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  21058. ExpertSubsetCharset);
  21059. }
  21060. var bytes = this.bytes;
  21061. var start = pos;
  21062. var format = bytes[pos++];
  21063. var charset = ['.notdef'];
  21064. // subtract 1 for the .notdef glyph
  21065. length -= 1;
  21066. switch (format) {
  21067. case 0:
  21068. for (var i = 0; i < length; i++) {
  21069. var id = (bytes[pos++] << 8) | bytes[pos++];
  21070. charset.push(cid ? id : strings.get(id));
  21071. }
  21072. break;
  21073. case 1:
  21074. while (charset.length <= length) {
  21075. var id = (bytes[pos++] << 8) | bytes[pos++];
  21076. var count = bytes[pos++];
  21077. for (var i = 0; i <= count; i++)
  21078. charset.push(cid ? id++ : strings.get(id++));
  21079. }
  21080. break;
  21081. case 2:
  21082. while (charset.length <= length) {
  21083. var id = (bytes[pos++] << 8) | bytes[pos++];
  21084. var count = (bytes[pos++] << 8) | bytes[pos++];
  21085. for (var i = 0; i <= count; i++)
  21086. charset.push(cid ? id++ : strings.get(id++));
  21087. }
  21088. break;
  21089. default:
  21090. error('Unknown charset format');
  21091. }
  21092. // Raw won't be needed if we actually compile the charset.
  21093. var end = pos;
  21094. var raw = bytes.subarray(start, end);
  21095. return new CFFCharset(false, format, charset, raw);
  21096. },
  21097. parseEncoding: function CFFParser_parseEncoding(pos,
  21098. properties,
  21099. strings,
  21100. charset) {
  21101. var encoding = {};
  21102. var bytes = this.bytes;
  21103. var predefined = false;
  21104. var hasSupplement = false;
  21105. var format;
  21106. var raw = null;
  21107. function readSupplement() {
  21108. var supplementsCount = bytes[pos++];
  21109. for (var i = 0; i < supplementsCount; i++) {
  21110. var code = bytes[pos++];
  21111. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  21112. encoding[code] = charset.indexOf(strings.get(sid));
  21113. }
  21114. }
  21115. if (pos === 0 || pos == 1) {
  21116. predefined = true;
  21117. format = pos;
  21118. var baseEncoding = pos ? Encodings.ExpertEncoding :
  21119. Encodings.StandardEncoding;
  21120. for (var i = 0, ii = charset.length; i < ii; i++) {
  21121. var index = baseEncoding.indexOf(charset[i]);
  21122. if (index != -1) {
  21123. encoding[index] = i;
  21124. }
  21125. }
  21126. } else {
  21127. var dataStart = pos;
  21128. var format = bytes[pos++];
  21129. switch (format & 0x7f) {
  21130. case 0:
  21131. var glyphsCount = bytes[pos++];
  21132. for (var i = 1; i <= glyphsCount; i++)
  21133. encoding[bytes[pos++]] = i;
  21134. break;
  21135. case 1:
  21136. var rangesCount = bytes[pos++];
  21137. var gid = 1;
  21138. for (var i = 0; i < rangesCount; i++) {
  21139. var start = bytes[pos++];
  21140. var left = bytes[pos++];
  21141. for (var j = start; j <= start + left; j++)
  21142. encoding[j] = gid++;
  21143. }
  21144. break;
  21145. default:
  21146. error('Unknow encoding format: ' + format + ' in CFF');
  21147. break;
  21148. }
  21149. var dataEnd = pos;
  21150. if (format & 0x80) {
  21151. // The font sanitizer does not support CFF encoding with a
  21152. // supplement, since the encoding is not really used to map
  21153. // between gid to glyph, let's overwrite what is declared in
  21154. // the top dictionary to let the sanitizer think the font use
  21155. // StandardEncoding, that's a lie but that's ok.
  21156. bytes[dataStart] &= 0x7f;
  21157. readSupplement();
  21158. hasSupplement = true;
  21159. }
  21160. raw = bytes.subarray(dataStart, dataEnd);
  21161. }
  21162. format = format & 0x7f;
  21163. return new CFFEncoding(predefined, format, encoding, raw);
  21164. },
  21165. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  21166. var start = pos;
  21167. var bytes = this.bytes;
  21168. var format = bytes[pos++];
  21169. var fdSelect = [];
  21170. switch (format) {
  21171. case 0:
  21172. for (var i = 0; i < length; ++i) {
  21173. var id = bytes[pos++];
  21174. fdSelect.push(id);
  21175. }
  21176. break;
  21177. case 3:
  21178. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  21179. for (var i = 0; i < rangesCount; ++i) {
  21180. var first = (bytes[pos++] << 8) | bytes[pos++];
  21181. var fdIndex = bytes[pos++];
  21182. var next = (bytes[pos] << 8) | bytes[pos + 1];
  21183. for (var j = first; j < next; ++j)
  21184. fdSelect.push(fdIndex);
  21185. }
  21186. // Advance past the sentinel(next).
  21187. pos += 2;
  21188. break;
  21189. default:
  21190. error('Unknown fdselect format ' + format);
  21191. break;
  21192. }
  21193. var end = pos;
  21194. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  21195. }
  21196. };
  21197. return CFFParser;
  21198. })();
  21199. // Compact Font Format
  21200. var CFF = (function CFFClosure() {
  21201. function CFF() {
  21202. this.header = null;
  21203. this.names = [];
  21204. this.topDict = null;
  21205. this.strings = new CFFStrings();
  21206. this.globalSubrIndex = null;
  21207. // The following could really be per font, but since we only have one font
  21208. // store them here.
  21209. this.encoding = null;
  21210. this.charset = null;
  21211. this.charStrings = null;
  21212. this.fdArray = [];
  21213. this.fdSelect = null;
  21214. this.isCIDFont = false;
  21215. }
  21216. return CFF;
  21217. })();
  21218. var CFFHeader = (function CFFHeaderClosure() {
  21219. function CFFHeader(major, minor, hdrSize, offSize) {
  21220. this.major = major;
  21221. this.minor = minor;
  21222. this.hdrSize = hdrSize;
  21223. this.offSize = offSize;
  21224. }
  21225. return CFFHeader;
  21226. })();
  21227. var CFFStrings = (function CFFStringsClosure() {
  21228. function CFFStrings() {
  21229. this.strings = [];
  21230. }
  21231. CFFStrings.prototype = {
  21232. get: function CFFStrings_get(index) {
  21233. if (index >= 0 && index <= 390)
  21234. return CFFStandardStrings[index];
  21235. if (index - 391 <= this.strings.length)
  21236. return this.strings[index - 391];
  21237. return CFFStandardStrings[0];
  21238. },
  21239. add: function CFFStrings_add(value) {
  21240. this.strings.push(value);
  21241. },
  21242. get count() {
  21243. return this.strings.length;
  21244. }
  21245. };
  21246. return CFFStrings;
  21247. })();
  21248. var CFFIndex = (function CFFIndexClosure() {
  21249. function CFFIndex() {
  21250. this.objects = [];
  21251. this.length = 0;
  21252. }
  21253. CFFIndex.prototype = {
  21254. add: function CFFIndex_add(data) {
  21255. this.length += data.length;
  21256. this.objects.push(data);
  21257. },
  21258. set: function CFFIndex_set(index, data) {
  21259. this.length += data.length - this.objects[index].length;
  21260. this.objects[index] = data;
  21261. },
  21262. get: function CFFIndex_get(index) {
  21263. return this.objects[index];
  21264. },
  21265. get count() {
  21266. return this.objects.length;
  21267. }
  21268. };
  21269. return CFFIndex;
  21270. })();
  21271. var CFFDict = (function CFFDictClosure() {
  21272. function CFFDict(tables, strings) {
  21273. this.keyToNameMap = tables.keyToNameMap;
  21274. this.nameToKeyMap = tables.nameToKeyMap;
  21275. this.defaults = tables.defaults;
  21276. this.types = tables.types;
  21277. this.opcodes = tables.opcodes;
  21278. this.order = tables.order;
  21279. this.strings = strings;
  21280. this.values = {};
  21281. }
  21282. CFFDict.prototype = {
  21283. // value should always be an array
  21284. setByKey: function CFFDict_setByKey(key, value) {
  21285. if (!(key in this.keyToNameMap))
  21286. return false;
  21287. // ignore empty values
  21288. if (value.length === 0)
  21289. return true;
  21290. var type = this.types[key];
  21291. // remove the array wrapping these types of values
  21292. if (type === 'num' || type === 'sid' || type === 'offset')
  21293. value = value[0];
  21294. this.values[key] = value;
  21295. return true;
  21296. },
  21297. setByName: function CFFDict_setByName(name, value) {
  21298. if (!(name in this.nameToKeyMap)) {
  21299. error('Invalid dictionary name "' + name + '"');
  21300. }
  21301. this.values[this.nameToKeyMap[name]] = value;
  21302. },
  21303. hasName: function CFFDict_hasName(name) {
  21304. return this.nameToKeyMap[name] in this.values;
  21305. },
  21306. getByName: function CFFDict_getByName(name) {
  21307. if (!(name in this.nameToKeyMap))
  21308. error('Invalid dictionary name "' + name + '"');
  21309. var key = this.nameToKeyMap[name];
  21310. if (!(key in this.values))
  21311. return this.defaults[key];
  21312. return this.values[key];
  21313. },
  21314. removeByName: function CFFDict_removeByName(name) {
  21315. delete this.values[this.nameToKeyMap[name]];
  21316. }
  21317. };
  21318. CFFDict.createTables = function CFFDict_createTables(layout) {
  21319. var tables = {
  21320. keyToNameMap: {},
  21321. nameToKeyMap: {},
  21322. defaults: {},
  21323. types: {},
  21324. opcodes: {},
  21325. order: []
  21326. };
  21327. for (var i = 0, ii = layout.length; i < ii; ++i) {
  21328. var entry = layout[i];
  21329. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  21330. tables.keyToNameMap[key] = entry[1];
  21331. tables.nameToKeyMap[entry[1]] = key;
  21332. tables.types[key] = entry[2];
  21333. tables.defaults[key] = entry[3];
  21334. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  21335. tables.order.push(key);
  21336. }
  21337. return tables;
  21338. };
  21339. return CFFDict;
  21340. })();
  21341. var CFFTopDict = (function CFFTopDictClosure() {
  21342. var layout = [
  21343. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  21344. [[12, 20], 'SyntheticBase', 'num', null],
  21345. [0, 'version', 'sid', null],
  21346. [1, 'Notice', 'sid', null],
  21347. [[12, 0], 'Copyright', 'sid', null],
  21348. [2, 'FullName', 'sid', null],
  21349. [3, 'FamilyName', 'sid', null],
  21350. [4, 'Weight', 'sid', null],
  21351. [[12, 1], 'isFixedPitch', 'num', 0],
  21352. [[12, 2], 'ItalicAngle', 'num', 0],
  21353. [[12, 3], 'UnderlinePosition', 'num', -100],
  21354. [[12, 4], 'UnderlineThickness', 'num', 50],
  21355. [[12, 5], 'PaintType', 'num', 0],
  21356. [[12, 6], 'CharstringType', 'num', 2],
  21357. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  21358. [0.001, 0, 0, 0.001, 0, 0]],
  21359. [13, 'UniqueID', 'num', null],
  21360. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  21361. [[12, 8], 'StrokeWidth', 'num', 0],
  21362. [14, 'XUID', 'array', null],
  21363. [15, 'charset', 'offset', 0],
  21364. [16, 'Encoding', 'offset', 0],
  21365. [17, 'CharStrings', 'offset', 0],
  21366. [18, 'Private', ['offset', 'offset'], null],
  21367. [[12, 21], 'PostScript', 'sid', null],
  21368. [[12, 22], 'BaseFontName', 'sid', null],
  21369. [[12, 23], 'BaseFontBlend', 'delta', null],
  21370. [[12, 31], 'CIDFontVersion', 'num', 0],
  21371. [[12, 32], 'CIDFontRevision', 'num', 0],
  21372. [[12, 33], 'CIDFontType', 'num', 0],
  21373. [[12, 34], 'CIDCount', 'num', 8720],
  21374. [[12, 35], 'UIDBase', 'num', null],
  21375. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  21376. // before FDArray.
  21377. [[12, 37], 'FDSelect', 'offset', null],
  21378. [[12, 36], 'FDArray', 'offset', null],
  21379. [[12, 38], 'FontName', 'sid', null]
  21380. ];
  21381. var tables = null;
  21382. function CFFTopDict(strings) {
  21383. if (tables === null)
  21384. tables = CFFDict.createTables(layout);
  21385. CFFDict.call(this, tables, strings);
  21386. this.privateDict = null;
  21387. }
  21388. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  21389. return CFFTopDict;
  21390. })();
  21391. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  21392. var layout = [
  21393. [6, 'BlueValues', 'delta', null],
  21394. [7, 'OtherBlues', 'delta', null],
  21395. [8, 'FamilyBlues', 'delta', null],
  21396. [9, 'FamilyOtherBlues', 'delta', null],
  21397. [[12, 9], 'BlueScale', 'num', 0.039625],
  21398. [[12, 10], 'BlueShift', 'num', 7],
  21399. [[12, 11], 'BlueFuzz', 'num', 1],
  21400. [10, 'StdHW', 'num', null],
  21401. [11, 'StdVW', 'num', null],
  21402. [[12, 12], 'StemSnapH', 'delta', null],
  21403. [[12, 13], 'StemSnapV', 'delta', null],
  21404. [[12, 14], 'ForceBold', 'num', 0],
  21405. [[12, 17], 'LanguageGroup', 'num', 0],
  21406. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  21407. [[12, 19], 'initialRandomSeed', 'num', 0],
  21408. [20, 'defaultWidthX', 'num', 0],
  21409. [21, 'nominalWidthX', 'num', 0],
  21410. [19, 'Subrs', 'offset', null]
  21411. ];
  21412. var tables = null;
  21413. function CFFPrivateDict(strings) {
  21414. if (tables === null)
  21415. tables = CFFDict.createTables(layout);
  21416. CFFDict.call(this, tables, strings);
  21417. this.subrsIndex = null;
  21418. }
  21419. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  21420. return CFFPrivateDict;
  21421. })();
  21422. var CFFCharsetPredefinedTypes = {
  21423. ISO_ADOBE: 0,
  21424. EXPERT: 1,
  21425. EXPERT_SUBSET: 2
  21426. };
  21427. var CFFCharsetEmbeddedTypes = {
  21428. FORMAT0: 0,
  21429. FORMAT1: 1,
  21430. FORMAT2: 2
  21431. };
  21432. var CFFCharset = (function CFFCharsetClosure() {
  21433. function CFFCharset(predefined, format, charset, raw) {
  21434. this.predefined = predefined;
  21435. this.format = format;
  21436. this.charset = charset;
  21437. this.raw = raw;
  21438. }
  21439. return CFFCharset;
  21440. })();
  21441. var CFFEncodingPredefinedTypes = {
  21442. STANDARD: 0,
  21443. EXPERT: 1
  21444. };
  21445. var CFFCharsetEmbeddedTypes = {
  21446. FORMAT0: 0,
  21447. FORMAT1: 1
  21448. };
  21449. var CFFEncoding = (function CFFEncodingClosure() {
  21450. function CFFEncoding(predefined, format, encoding, raw) {
  21451. this.predefined = predefined;
  21452. this.format = format;
  21453. this.encoding = encoding;
  21454. this.raw = raw;
  21455. }
  21456. return CFFEncoding;
  21457. })();
  21458. var CFFFDSelect = (function CFFFDSelectClosure() {
  21459. function CFFFDSelect(fdSelect, raw) {
  21460. this.fdSelect = fdSelect;
  21461. this.raw = raw;
  21462. }
  21463. return CFFFDSelect;
  21464. })();
  21465. // Helper class to keep track of where an offset is within the data and helps
  21466. // filling in that offset once it's known.
  21467. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  21468. function CFFOffsetTracker() {
  21469. this.offsets = {};
  21470. }
  21471. CFFOffsetTracker.prototype = {
  21472. isTracking: function CFFOffsetTracker_isTracking(key) {
  21473. return key in this.offsets;
  21474. },
  21475. track: function CFFOffsetTracker_track(key, location) {
  21476. if (key in this.offsets)
  21477. error('Already tracking location of ' + key);
  21478. this.offsets[key] = location;
  21479. },
  21480. offset: function CFFOffsetTracker_offset(value) {
  21481. for (var key in this.offsets) {
  21482. this.offsets[key] += value;
  21483. }
  21484. },
  21485. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  21486. values,
  21487. output) {
  21488. if (!(key in this.offsets))
  21489. error('Not tracking location of ' + key);
  21490. var data = output.data;
  21491. var dataOffset = this.offsets[key];
  21492. var size = 5;
  21493. for (var i = 0, ii = values.length; i < ii; ++i) {
  21494. var offset0 = i * size + dataOffset;
  21495. var offset1 = offset0 + 1;
  21496. var offset2 = offset0 + 2;
  21497. var offset3 = offset0 + 3;
  21498. var offset4 = offset0 + 4;
  21499. // It's easy to screw up offsets so perform this sanity check.
  21500. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  21501. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0)
  21502. error('writing to an offset that is not empty');
  21503. var value = values[i];
  21504. data[offset0] = 0x1d;
  21505. data[offset1] = (value >> 24) & 0xFF;
  21506. data[offset2] = (value >> 16) & 0xFF;
  21507. data[offset3] = (value >> 8) & 0xFF;
  21508. data[offset4] = value & 0xFF;
  21509. }
  21510. }
  21511. };
  21512. return CFFOffsetTracker;
  21513. })();
  21514. // Takes a CFF and converts it to the binary representation.
  21515. var CFFCompiler = (function CFFCompilerClosure() {
  21516. function stringToArray(str) {
  21517. var array = [];
  21518. for (var i = 0, ii = str.length; i < ii; ++i)
  21519. array[i] = str.charCodeAt(i);
  21520. return array;
  21521. }
  21522. function CFFCompiler(cff) {
  21523. this.cff = cff;
  21524. }
  21525. CFFCompiler.prototype = {
  21526. compile: function CFFCompiler_compile() {
  21527. var cff = this.cff;
  21528. var output = {
  21529. data: [],
  21530. length: 0,
  21531. add: function CFFCompiler_add(data) {
  21532. this.data = this.data.concat(data);
  21533. this.length = this.data.length;
  21534. }
  21535. };
  21536. // Compile the five entries that must be in order.
  21537. var header = this.compileHeader(cff.header);
  21538. output.add(header);
  21539. var nameIndex = this.compileNameIndex(cff.names);
  21540. output.add(nameIndex);
  21541. if (cff.isCIDFont) {
  21542. // The spec is unclear on how font matrices should relate to each other
  21543. // when there is one in the main top dict and the sub top dicts.
  21544. // Windows handles this differently than linux and osx so we have to
  21545. // normalize to work on all.
  21546. // Rules based off of some mailing list discussions:
  21547. // - If main font has a matrix and subfont doesn't, use the main matrix.
  21548. // - If no main font matrix and there is a subfont matrix, use the
  21549. // subfont matrix.
  21550. // - If both have matrices, concat together.
  21551. // - If neither have matrices, use default.
  21552. // To make this work on all platforms we move the top matrix into each
  21553. // sub top dict and concat if necessary.
  21554. if (cff.topDict.hasName('FontMatrix')) {
  21555. var base = cff.topDict.getByName('FontMatrix');
  21556. cff.topDict.removeByName('FontMatrix');
  21557. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  21558. var subDict = cff.fdArray[i];
  21559. var matrix = base.slice(0);
  21560. if (subDict.hasName('FontMatrix')) {
  21561. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  21562. }
  21563. subDict.setByName('FontMatrix', matrix);
  21564. }
  21565. }
  21566. }
  21567. var compiled = this.compileTopDicts([cff.topDict],
  21568. output.length,
  21569. cff.isCIDFont);
  21570. output.add(compiled.output);
  21571. var topDictTracker = compiled.trackers[0];
  21572. var stringIndex = this.compileStringIndex(cff.strings.strings);
  21573. output.add(stringIndex);
  21574. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  21575. output.add(globalSubrIndex);
  21576. // Now start on the other entries that have no specfic order.
  21577. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  21578. if (cff.encoding.predefined) {
  21579. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  21580. output);
  21581. } else {
  21582. var encoding = this.compileEncoding(cff.encoding);
  21583. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  21584. output.add(encoding);
  21585. }
  21586. }
  21587. if (cff.charset && cff.topDict.hasName('charset')) {
  21588. if (cff.charset.predefined) {
  21589. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  21590. output);
  21591. } else {
  21592. var charset = this.compileCharset(cff.charset);
  21593. topDictTracker.setEntryLocation('charset', [output.length], output);
  21594. output.add(charset);
  21595. }
  21596. }
  21597. var charStrings = this.compileCharStrings(cff.charStrings);
  21598. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  21599. output.add(charStrings);
  21600. if (cff.isCIDFont) {
  21601. // For some reason FDSelect must be in front of FDArray on windows. OSX
  21602. // and linux don't seem to care.
  21603. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  21604. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  21605. output.add(fdSelect);
  21606. // It is unclear if the sub font dictionary can have CID related
  21607. // dictionary keys, but the sanitizer doesn't like them so remove them.
  21608. var compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  21609. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  21610. output.add(compiled.output);
  21611. var fontDictTrackers = compiled.trackers;
  21612. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  21613. }
  21614. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  21615. // If the font data ends with INDEX whose object data is zero-length,
  21616. // the sanitizer will bail out. Add a dummy byte to avoid that.
  21617. output.add([0]);
  21618. return output.data;
  21619. },
  21620. encodeNumber: function CFFCompiler_encodeNumber(value) {
  21621. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) // isInt
  21622. return this.encodeInteger(value);
  21623. else
  21624. return this.encodeFloat(value);
  21625. },
  21626. encodeFloat: function CFFCompiler_encodeFloat(num) {
  21627. var value = num.toString();
  21628. // rounding inaccurate doubles
  21629. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  21630. if (m) {
  21631. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  21632. value = (Math.round(num * epsilon) / epsilon).toString();
  21633. }
  21634. var nibbles = '';
  21635. for (var i = 0, ii = value.length; i < ii; ++i) {
  21636. var a = value[i];
  21637. if (a === 'e') {
  21638. nibbles += value[++i] === '-' ? 'c' : 'b';
  21639. } else if (a === '.') {
  21640. nibbles += 'a';
  21641. } else if (a === '-') {
  21642. nibbles += 'e';
  21643. } else {
  21644. nibbles += a;
  21645. }
  21646. }
  21647. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  21648. var out = [30];
  21649. for (var i = 0, ii = nibbles.length; i < ii; i += 2) {
  21650. out.push(parseInt(nibbles.substr(i, 2), 16));
  21651. }
  21652. return out;
  21653. },
  21654. encodeInteger: function CFFCompiler_encodeInteger(value) {
  21655. var code;
  21656. if (value >= -107 && value <= 107) {
  21657. code = [value + 139];
  21658. } else if (value >= 108 && value <= 1131) {
  21659. value = [value - 108];
  21660. code = [(value >> 8) + 247, value & 0xFF];
  21661. } else if (value >= -1131 && value <= -108) {
  21662. value = -value - 108;
  21663. code = [(value >> 8) + 251, value & 0xFF];
  21664. } else if (value >= -32768 && value <= 32767) {
  21665. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  21666. } else {
  21667. code = [0x1d,
  21668. (value >> 24) & 0xFF,
  21669. (value >> 16) & 0xFF,
  21670. (value >> 8) & 0xFF,
  21671. value & 0xFF];
  21672. }
  21673. return code;
  21674. },
  21675. compileHeader: function CFFCompiler_compileHeader(header) {
  21676. return [
  21677. header.major,
  21678. header.minor,
  21679. header.hdrSize,
  21680. header.offSize
  21681. ];
  21682. },
  21683. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  21684. var nameIndex = new CFFIndex();
  21685. for (var i = 0, ii = names.length; i < ii; ++i)
  21686. nameIndex.add(stringToArray(names[i]));
  21687. return this.compileIndex(nameIndex);
  21688. },
  21689. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  21690. length,
  21691. removeCidKeys) {
  21692. var fontDictTrackers = [];
  21693. var fdArrayIndex = new CFFIndex();
  21694. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  21695. var fontDict = dicts[i];
  21696. if (removeCidKeys) {
  21697. fontDict.removeByName('CIDFontVersion');
  21698. fontDict.removeByName('CIDFontRevision');
  21699. fontDict.removeByName('CIDFontType');
  21700. fontDict.removeByName('CIDCount');
  21701. fontDict.removeByName('UIDBase');
  21702. }
  21703. var fontDictTracker = new CFFOffsetTracker();
  21704. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  21705. fontDictTrackers.push(fontDictTracker);
  21706. fdArrayIndex.add(fontDictData);
  21707. fontDictTracker.offset(length);
  21708. }
  21709. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  21710. return {
  21711. trackers: fontDictTrackers,
  21712. output: fdArrayIndex
  21713. };
  21714. },
  21715. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  21716. trackers,
  21717. output) {
  21718. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  21719. var fontDict = dicts[i];
  21720. assert(fontDict.privateDict && fontDict.hasName('Private'),
  21721. 'There must be an private dictionary.');
  21722. var privateDict = fontDict.privateDict;
  21723. var privateDictTracker = new CFFOffsetTracker();
  21724. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  21725. var outputLength = output.length;
  21726. privateDictTracker.offset(outputLength);
  21727. if (!privateDictData.length) {
  21728. // The private dictionary was empty, set the output length to zero to
  21729. // ensure the offset length isn't out of bounds in the eyes of the
  21730. // sanitizer.
  21731. outputLength = 0;
  21732. }
  21733. trackers[i].setEntryLocation('Private',
  21734. [privateDictData.length, outputLength],
  21735. output);
  21736. output.add(privateDictData);
  21737. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  21738. var subrs = this.compileIndex(privateDict.subrsIndex);
  21739. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  21740. output);
  21741. output.add(subrs);
  21742. }
  21743. }
  21744. },
  21745. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  21746. var out = [];
  21747. // The dictionary keys must be in a certain order.
  21748. var order = dict.order;
  21749. for (var i = 0; i < order.length; ++i) {
  21750. var key = order[i];
  21751. if (!(key in dict.values))
  21752. continue;
  21753. var values = dict.values[key];
  21754. var types = dict.types[key];
  21755. if (!isArray(types)) types = [types];
  21756. if (!isArray(values)) values = [values];
  21757. // Remove any empty dict values.
  21758. if (values.length === 0)
  21759. continue;
  21760. for (var j = 0, jj = types.length; j < jj; ++j) {
  21761. var type = types[j];
  21762. var value = values[j];
  21763. switch (type) {
  21764. case 'num':
  21765. case 'sid':
  21766. out = out.concat(this.encodeNumber(value));
  21767. break;
  21768. case 'offset':
  21769. // For offsets we just insert a 32bit integer so we don't have to
  21770. // deal with figuring out the length of the offset when it gets
  21771. // replaced later on by the compiler.
  21772. var name = dict.keyToNameMap[key];
  21773. // Some offsets have the offset and the length, so just record the
  21774. // position of the first one.
  21775. if (!offsetTracker.isTracking(name))
  21776. offsetTracker.track(name, out.length);
  21777. out = out.concat([0x1d, 0, 0, 0, 0]);
  21778. break;
  21779. case 'array':
  21780. case 'delta':
  21781. out = out.concat(this.encodeNumber(value));
  21782. for (var k = 1, kk = values.length; k < kk; ++k)
  21783. out = out.concat(this.encodeNumber(values[k]));
  21784. break;
  21785. default:
  21786. error('Unknown data type of ' + type);
  21787. break;
  21788. }
  21789. }
  21790. out = out.concat(dict.opcodes[key]);
  21791. }
  21792. return out;
  21793. },
  21794. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  21795. var stringIndex = new CFFIndex();
  21796. for (var i = 0, ii = strings.length; i < ii; ++i)
  21797. stringIndex.add(stringToArray(strings[i]));
  21798. return this.compileIndex(stringIndex);
  21799. },
  21800. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  21801. var globalSubrIndex = this.cff.globalSubrIndex;
  21802. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  21803. },
  21804. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  21805. return this.compileIndex(charStrings);
  21806. },
  21807. compileCharset: function CFFCompiler_compileCharset(charset) {
  21808. return this.compileTypedArray(charset.raw);
  21809. },
  21810. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  21811. return this.compileTypedArray(encoding.raw);
  21812. },
  21813. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  21814. return this.compileTypedArray(fdSelect);
  21815. },
  21816. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  21817. var out = [];
  21818. for (var i = 0, ii = data.length; i < ii; ++i)
  21819. out[i] = data[i];
  21820. return out;
  21821. },
  21822. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  21823. trackers = trackers || [];
  21824. var objects = index.objects;
  21825. // First 2 bytes contains the number of objects contained into this index
  21826. var count = objects.length;
  21827. // If there is no object, just create an index. This technically
  21828. // should just be [0, 0] but OTS has an issue with that.
  21829. if (count === 0)
  21830. return [0, 0, 0];
  21831. var data = [(count >> 8) & 0xFF, count & 0xff];
  21832. var lastOffset = 1;
  21833. for (var i = 0; i < count; ++i)
  21834. lastOffset += objects[i].length;
  21835. var offsetSize;
  21836. if (lastOffset < 0x100)
  21837. offsetSize = 1;
  21838. else if (lastOffset < 0x10000)
  21839. offsetSize = 2;
  21840. else if (lastOffset < 0x1000000)
  21841. offsetSize = 3;
  21842. else
  21843. offsetSize = 4;
  21844. // Next byte contains the offset size use to reference object in the file
  21845. data.push(offsetSize);
  21846. // Add another offset after this one because we need a new offset
  21847. var relativeOffset = 1;
  21848. for (var i = 0; i < count + 1; i++) {
  21849. if (offsetSize === 1) {
  21850. data.push(relativeOffset & 0xFF);
  21851. } else if (offsetSize === 2) {
  21852. data.push((relativeOffset >> 8) & 0xFF,
  21853. relativeOffset & 0xFF);
  21854. } else if (offsetSize === 3) {
  21855. data.push((relativeOffset >> 16) & 0xFF,
  21856. (relativeOffset >> 8) & 0xFF,
  21857. relativeOffset & 0xFF);
  21858. } else {
  21859. data.push((relativeOffset >>> 24) & 0xFF,
  21860. (relativeOffset >> 16) & 0xFF,
  21861. (relativeOffset >> 8) & 0xFF,
  21862. relativeOffset & 0xFF);
  21863. }
  21864. if (objects[i])
  21865. relativeOffset += objects[i].length;
  21866. }
  21867. var offset = data.length;
  21868. for (var i = 0; i < count; i++) {
  21869. // Notify the tracker where the object will be offset in the data.
  21870. if (trackers[i])
  21871. trackers[i].offset(data.length);
  21872. for (var j = 0, jj = objects[i].length; j < jj; j++)
  21873. data.push(objects[i][j]);
  21874. }
  21875. return data;
  21876. }
  21877. };
  21878. return CFFCompiler;
  21879. })();
  21880. // Workaround for seac on Windows.
  21881. (function checkSeacSupport() {
  21882. if (/Windows/.test(navigator.userAgent)) {
  21883. SEAC_ANALYSIS_ENABLED = true;
  21884. }
  21885. })();
  21886. // Workaround for Private Use Area characters in Chrome on Windows
  21887. // http://code.google.com/p/chromium/issues/detail?id=122465
  21888. // https://github.com/mozilla/pdf.js/issues/1689
  21889. (function checkChromeWindows() {
  21890. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  21891. SYMBOLIC_FONT_GLYPH_OFFSET = 0xF100;
  21892. }
  21893. })();
  21894. var FontRendererFactory = (function FontRendererFactoryClosure() {
  21895. function getLong(data, offset) {
  21896. return (data[offset] << 24) | (data[offset + 1] << 16) |
  21897. (data[offset + 2] << 8) | data[offset + 3];
  21898. }
  21899. function getUshort(data, offset) {
  21900. return (data[offset] << 8) | data[offset + 1];
  21901. }
  21902. function parseCmap(data, start, end) {
  21903. var offset = getUshort(data, start + 2) === 1 ? getLong(data, start + 8) :
  21904. getLong(data, start + 16);
  21905. var format = getUshort(data, start + offset);
  21906. if (format === 4) {
  21907. var length = getUshort(data, start + offset + 2);
  21908. var segCount = getUshort(data, start + offset + 6) >> 1;
  21909. var p = start + offset + 14;
  21910. var ranges = [];
  21911. for (var i = 0; i < segCount; i++, p += 2) {
  21912. ranges[i] = {end: getUshort(data, p)};
  21913. }
  21914. p += 2;
  21915. for (var i = 0; i < segCount; i++, p += 2) {
  21916. ranges[i].start = getUshort(data, p);
  21917. }
  21918. for (var i = 0; i < segCount; i++, p += 2) {
  21919. ranges[i].idDelta = getUshort(data, p);
  21920. }
  21921. for (var i = 0; i < segCount; i++, p += 2) {
  21922. var idOffset = getUshort(data, p);
  21923. if (idOffset === 0) {
  21924. continue;
  21925. }
  21926. ranges[i].ids = [];
  21927. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  21928. ranges[i].ids[j] = getUshort(data, p + idOffset);
  21929. idOffset += 2;
  21930. }
  21931. }
  21932. return ranges;
  21933. } else if (format === 12) {
  21934. var length = getLong(data, start + offset + 4);
  21935. var groups = getLong(data, start + offset + 12);
  21936. var p = start + offset + 16;
  21937. var ranges = [];
  21938. for (var i = 0; i < groups; i++) {
  21939. ranges.push({
  21940. start: getLong(data, p),
  21941. end: getLong(data, p + 4),
  21942. idDelta: getLong(data, p + 8) - getLong(data, p)
  21943. });
  21944. p += 12;
  21945. }
  21946. return ranges;
  21947. }
  21948. error('not supported cmap: ' + format);
  21949. }
  21950. function parseCff(data, start, end) {
  21951. var properties = {};
  21952. var parser = new CFFParser(
  21953. new Stream(data, start, end - start), properties);
  21954. var cff = parser.parse();
  21955. return {
  21956. glyphs: cff.charStrings.objects,
  21957. subrs: cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  21958. cff.topDict.privateDict.subrsIndex.objects,
  21959. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  21960. };
  21961. }
  21962. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  21963. var itemSize, itemDecode;
  21964. if (isGlyphLocationsLong) {
  21965. itemSize = 4;
  21966. itemDecode = function fontItemDecodeLong(data, offset) {
  21967. return (data[offset] << 24) | (data[offset + 1] << 16) |
  21968. (data[offset + 2] << 8) | data[offset + 3];
  21969. };
  21970. } else {
  21971. itemSize = 2;
  21972. itemDecode = function fontItemDecode(data, offset) {
  21973. return (data[offset] << 9) | (data[offset + 1] << 1);
  21974. };
  21975. }
  21976. var glyphs = [];
  21977. var startOffset = itemDecode(loca, 0);
  21978. for (var j = itemSize; j < loca.length; j += itemSize) {
  21979. var endOffset = itemDecode(loca, j);
  21980. glyphs.push(glyf.subarray(startOffset, endOffset));
  21981. startOffset = endOffset;
  21982. }
  21983. return glyphs;
  21984. }
  21985. function lookupCmap(ranges, unicode) {
  21986. var code = unicode.charCodeAt(0);
  21987. var l = 0, r = ranges.length - 1;
  21988. while (l < r) {
  21989. var c = (l + r + 1) >> 1;
  21990. if (code < ranges[c].start) {
  21991. r = c - 1;
  21992. } else {
  21993. l = c;
  21994. }
  21995. }
  21996. if (ranges[l].start <= code && code <= ranges[l].end) {
  21997. return (ranges[l].idDelta + (ranges[l].ids ?
  21998. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  21999. }
  22000. return 0;
  22001. }
  22002. function compileGlyf(code, js, font) {
  22003. function moveTo(x, y) {
  22004. js.push('c.moveTo(' + x + ',' + y + ');');
  22005. }
  22006. function lineTo(x, y) {
  22007. js.push('c.lineTo(' + x + ',' + y + ');');
  22008. }
  22009. function quadraticCurveTo(xa, ya, x, y) {
  22010. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  22011. x + ',' + y + ');');
  22012. }
  22013. var i = 0;
  22014. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  22015. var xMin = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  22016. var yMin = ((code[i + 4] << 24) | (code[i + 5] << 16)) >> 16;
  22017. var xMax = ((code[i + 6] << 24) | (code[i + 7] << 16)) >> 16;
  22018. var yMax = ((code[i + 8] << 24) | (code[i + 9] << 16)) >> 16;
  22019. i += 10;
  22020. if (numberOfContours < 0) {
  22021. // composite glyph
  22022. var x = 0, y = 0;
  22023. do {
  22024. var flags = (code[i] << 8) | code[i + 1];
  22025. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  22026. i += 4;
  22027. var arg1, arg2;
  22028. if ((flags & 0x01)) {
  22029. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  22030. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  22031. i += 4;
  22032. } else {
  22033. arg1 = code[i++]; arg2 = code[i++];
  22034. }
  22035. if ((flags & 0x02)) {
  22036. x = arg1;
  22037. y = arg2;
  22038. } else {
  22039. x = 0; y = 0; // TODO "they are points" ?
  22040. }
  22041. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  22042. if ((flags & 0x08)) {
  22043. scaleX =
  22044. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  22045. i += 2;
  22046. } else if ((flags & 0x40)) {
  22047. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  22048. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  22049. i += 4;
  22050. } else if ((flags & 0x80)) {
  22051. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  22052. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  22053. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  22054. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  22055. i += 8;
  22056. }
  22057. var subglyph = font.glyphs[glyphIndex];
  22058. if (subglyph) {
  22059. js.push('c.save();');
  22060. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  22061. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  22062. compileGlyf(subglyph, js, font);
  22063. js.push('c.restore();');
  22064. }
  22065. } while ((flags & 0x20));
  22066. } else {
  22067. // simple glyph
  22068. var endPtsOfContours = [];
  22069. for (var j = 0; j < numberOfContours; j++) {
  22070. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  22071. i += 2;
  22072. }
  22073. var instructionLength = (code[i] << 8) | code[i + 1];
  22074. i += 2 + instructionLength; // skipping the instructions
  22075. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  22076. var points = [];
  22077. while (points.length < numberOfPoints) {
  22078. var flags = code[i++], repeat = 1;
  22079. if ((flags & 0x08)) {
  22080. repeat += code[i++];
  22081. }
  22082. while (repeat-- > 0) {
  22083. points.push({flags: flags});
  22084. }
  22085. }
  22086. var x = 0, y = 0;
  22087. for (var j = 0; j < numberOfPoints; j++) {
  22088. switch (points[j].flags & 0x12) {
  22089. case 0x00:
  22090. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  22091. i += 2;
  22092. break;
  22093. case 0x02:
  22094. x -= code[i++];
  22095. break;
  22096. case 0x12:
  22097. x += code[i++];
  22098. break;
  22099. }
  22100. points[j].x = x;
  22101. }
  22102. for (var j = 0; j < numberOfPoints; j++) {
  22103. switch (points[j].flags & 0x24) {
  22104. case 0x00:
  22105. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  22106. i += 2;
  22107. break;
  22108. case 0x04:
  22109. y -= code[i++];
  22110. break;
  22111. case 0x24:
  22112. y += code[i++];
  22113. break;
  22114. }
  22115. points[j].y = y;
  22116. }
  22117. var startPoint = 0;
  22118. for (var i = 0; i < numberOfContours; i++) {
  22119. var endPoint = endPtsOfContours[i];
  22120. // contours might have implicit points, which is located in the middle
  22121. // between two neighboring off-curve points
  22122. var contour = points.slice(startPoint, endPoint + 1);
  22123. if ((contour[0].flags & 1)) {
  22124. contour.push(contour[0]); // using start point at the contour end
  22125. } else if ((contour[contour.length - 1].flags & 1)) {
  22126. // first is off-curve point, trying to use one from the end
  22127. contour.unshift(contour[contour.length - 1]);
  22128. } else {
  22129. // start and end are off-curve points, creating implicit one
  22130. var p = {
  22131. flags: 1,
  22132. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  22133. y: (contour[0].y + contour[contour.length - 1].y) / 2
  22134. };
  22135. contour.unshift(p);
  22136. contour.push(p);
  22137. }
  22138. moveTo(contour[0].x, contour[0].y);
  22139. for (var j = 1, jj = contour.length; j < jj; j++) {
  22140. if ((contour[j].flags & 1)) {
  22141. lineTo(contour[j].x, contour[j].y);
  22142. } else if ((contour[j + 1].flags & 1)){
  22143. quadraticCurveTo(contour[j].x, contour[j].y,
  22144. contour[j + 1].x, contour[j + 1].y);
  22145. j++;
  22146. } else {
  22147. quadraticCurveTo(contour[j].x, contour[j].y,
  22148. (contour[j].x + contour[j + 1].x) / 2,
  22149. (contour[j].y + contour[j + 1].y) / 2);
  22150. }
  22151. }
  22152. startPoint = endPoint + 1;
  22153. }
  22154. }
  22155. }
  22156. function compileCharString(code, js, font) {
  22157. var stack = [];
  22158. var x = 0, y = 0;
  22159. var stems = 0;
  22160. function moveTo(x, y) {
  22161. js.push('c.moveTo(' + x + ',' + y + ');');
  22162. }
  22163. function lineTo(x, y) {
  22164. js.push('c.lineTo(' + x + ',' + y + ');');
  22165. }
  22166. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  22167. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  22168. x + ',' + y + ');');
  22169. }
  22170. function parse(code) {
  22171. var i = 0;
  22172. while (i < code.length) {
  22173. var stackClean = false;
  22174. var v = code[i++];
  22175. switch (v) {
  22176. case 1: // hstem
  22177. stems += stack.length >> 1;
  22178. stackClean = true;
  22179. break;
  22180. case 3: // vstem
  22181. stems += stack.length >> 1;
  22182. stackClean = true;
  22183. break;
  22184. case 4: // vmoveto
  22185. y += stack.pop();
  22186. moveTo(x, y);
  22187. stackClean = true;
  22188. break;
  22189. case 5: // rlineto
  22190. while (stack.length > 0) {
  22191. x += stack.shift();
  22192. y += stack.shift();
  22193. lineTo(x, y);
  22194. }
  22195. break;
  22196. case 6: // hlineto
  22197. while (stack.length > 0) {
  22198. x += stack.shift();
  22199. lineTo(x, y);
  22200. if (stack.length === 0) {
  22201. break;
  22202. }
  22203. y += stack.shift();
  22204. lineTo(x, y);
  22205. }
  22206. break;
  22207. case 7: // vlineto
  22208. while (stack.length > 0) {
  22209. y += stack.shift();
  22210. lineTo(x, y);
  22211. if (stack.length === 0) {
  22212. break;
  22213. }
  22214. x += stack.shift();
  22215. lineTo(x, y);
  22216. }
  22217. break;
  22218. case 8: // rrcurveto
  22219. while (stack.length > 0) {
  22220. var xa = x + stack.shift(), ya = y + stack.shift();
  22221. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22222. x = xb + stack.shift(); y = yb + stack.shift();
  22223. bezierCurveTo(xa, ya, xb, yb, x, y);
  22224. }
  22225. break;
  22226. case 10: // callsubr
  22227. var n = stack.pop() + font.subrsBias;
  22228. var subrCode = font.subrs[n];
  22229. if (subrCode) {
  22230. parse(subrCode);
  22231. }
  22232. break;
  22233. case 11: // return
  22234. return;
  22235. case 12:
  22236. v = code[i++];
  22237. switch (v) {
  22238. case 34: // flex
  22239. var xa = x + stack.shift();
  22240. var xb = xa + stack.shift(), y1 = y + stack.shift();
  22241. x = xb + stack.shift();
  22242. bezierCurveTo(xa, y, xb, y1, x, y1);
  22243. var xa = x + stack.shift();
  22244. var xb = xa + stack.shift();
  22245. x = xb + stack.shift();
  22246. bezierCurveTo(xa, y1, xb, y, x, y);
  22247. break;
  22248. case 35: // flex
  22249. var xa = x + stack.shift(), ya = y + stack.shift();
  22250. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22251. x = xb + stack.shift(); y = yb + stack.shift();
  22252. bezierCurveTo(xa, ya, xb, yb, x, y);
  22253. var xa = x + stack.shift(), ya = y + stack.shift();
  22254. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22255. x = xb + stack.shift(); y = yb + stack.shift();
  22256. bezierCurveTo(xa, ya, xb, yb, x, y);
  22257. stack.pop(); // fd
  22258. break;
  22259. case 36: // hflex1
  22260. var xa = x + stack.shift(), y1 = y + stack.shift();
  22261. var xb = xa + stack.shift(), y2 = y1 + stack.shift();
  22262. x = xb + stack.shift();
  22263. bezierCurveTo(xa, y1, xb, y2, x, y2);
  22264. var xa = x + stack.shift();
  22265. var xb = xa + stack.shift(), y3 = y2 + stack.shift();
  22266. x = xb + stack.shift();
  22267. bezierCurveTo(xa, y2, xb, y3, x, y);
  22268. break;
  22269. case 37: // flex1
  22270. var x0 = x, y0 = y;
  22271. var xa = x + stack.shift(), ya = y + stack.shift();
  22272. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22273. x = xb + stack.shift(); y = yb + stack.shift();
  22274. bezierCurveTo(xa, ya, xb, yb, x, y);
  22275. var xa = x + stack.shift(), ya = y + stack.shift();
  22276. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22277. x = xb; y = yb;
  22278. if (Math.abs(x - x0) > Math.abs(y - y0))
  22279. x += stack.shift();
  22280. else
  22281. y += stack.shift();
  22282. bezierCurveTo(xa, ya, xb, yb, x, y);
  22283. break;
  22284. default:
  22285. error('unknown operator: 12 ' + v);
  22286. }
  22287. break;
  22288. case 14: // endchar
  22289. if (stack.length >= 4) {
  22290. var achar = stack.pop();
  22291. var bchar = stack.pop();
  22292. y = stack.pop();
  22293. x = stack.pop();
  22294. js.push('c.save();');
  22295. js.push('c.translate('+ x + ',' + y + ');');
  22296. var gid = lookupCmap(font.cmap, String.fromCharCode(
  22297. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  22298. compileCharString(font.glyphs[gid], js, font);
  22299. js.push('c.restore();');
  22300. gid = lookupCmap(font.cmap, String.fromCharCode(
  22301. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  22302. compileCharString(font.glyphs[gid], js, font);
  22303. }
  22304. return;
  22305. case 18: // hstemhm
  22306. stems += stack.length >> 1;
  22307. stackClean = true;
  22308. break;
  22309. case 19: // hintmask
  22310. stems += stack.length >> 1;
  22311. i += (stems + 7) >> 3;
  22312. stackClean = true;
  22313. break;
  22314. case 20: // cntrmask
  22315. stems += stack.length >> 1;
  22316. i += (stems + 7) >> 3;
  22317. stackClean = true;
  22318. break;
  22319. case 21: // rmoveto
  22320. y += stack.pop();
  22321. x += stack.pop();
  22322. moveTo(x, y);
  22323. stackClean = true;
  22324. break;
  22325. case 22: // hmoveto
  22326. x += stack.pop();
  22327. moveTo(x, y);
  22328. stackClean = true;
  22329. break;
  22330. case 23: // vstemhm
  22331. stems += stack.length >> 1;
  22332. stackClean = true;
  22333. break;
  22334. case 24: // rcurveline
  22335. while (stack.length > 2) {
  22336. var xa = x + stack.shift(), ya = y + stack.shift();
  22337. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22338. x = xb + stack.shift(); y = yb + stack.shift();
  22339. bezierCurveTo(xa, ya, xb, yb, x, y);
  22340. }
  22341. x += stack.shift();
  22342. y += stack.shift();
  22343. lineTo(x, y);
  22344. break;
  22345. case 25: // rlinecurve
  22346. while (stack.length > 6) {
  22347. x += stack.shift();
  22348. y += stack.shift();
  22349. lineTo(x, y);
  22350. }
  22351. var xa = x + stack.shift(), ya = y + stack.shift();
  22352. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22353. x = xb + stack.shift(); y = yb + stack.shift();
  22354. bezierCurveTo(xa, ya, xb, yb, x, y);
  22355. break;
  22356. case 26: // vvcurveto
  22357. if (stack.length % 2) {
  22358. x += stack.shift();
  22359. }
  22360. while (stack.length > 0) {
  22361. var xa = x, ya = y + stack.shift();
  22362. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22363. x = xb; y = yb + stack.shift();
  22364. bezierCurveTo(xa, ya, xb, yb, x, y);
  22365. }
  22366. break;
  22367. case 27: // hhcurveto
  22368. if (stack.length % 2) {
  22369. y += stack.shift();
  22370. }
  22371. while (stack.length > 0) {
  22372. var xa = x + stack.shift(), ya = y;
  22373. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22374. x = xb + stack.shift(); y = yb;
  22375. bezierCurveTo(xa, ya, xb, yb, x, y);
  22376. }
  22377. break;
  22378. case 28:
  22379. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  22380. i += 2;
  22381. break;
  22382. case 29: // callgsubr
  22383. var n = stack.pop() + font.gsubrsBias;
  22384. var subrCode = font.gsubrs[n];
  22385. if (subrCode) {
  22386. parse(subrCode);
  22387. }
  22388. break;
  22389. case 30: // vhcurveto
  22390. while (stack.length > 0) {
  22391. var xa = x, ya = y + stack.shift();
  22392. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22393. x = xb + stack.shift();
  22394. y = yb + (stack.length === 1 ? stack.shift() : 0);
  22395. bezierCurveTo(xa, ya, xb, yb, x, y);
  22396. if (stack.length === 0) {
  22397. break;
  22398. }
  22399. var xa = x + stack.shift(), ya = y;
  22400. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22401. y = yb + stack.shift();
  22402. x = xb + (stack.length === 1 ? stack.shift() : 0);
  22403. bezierCurveTo(xa, ya, xb, yb, x, y);
  22404. }
  22405. break;
  22406. case 31: // hvcurveto
  22407. while (stack.length > 0) {
  22408. var xa = x + stack.shift(), ya = y;
  22409. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22410. y = yb + stack.shift();
  22411. x = xb + (stack.length === 1 ? stack.shift() : 0);
  22412. bezierCurveTo(xa, ya, xb, yb, x, y);
  22413. if (stack.length === 0) {
  22414. break;
  22415. }
  22416. var xa = x, ya = y + stack.shift();
  22417. var xb = xa + stack.shift(), yb = ya + stack.shift();
  22418. x = xb + stack.shift();
  22419. y = yb + (stack.length === 1 ? stack.shift() : 0);
  22420. bezierCurveTo(xa, ya, xb, yb, x, y);
  22421. }
  22422. break;
  22423. default:
  22424. if (v < 32)
  22425. error('unknown operator: ' + v);
  22426. if (v < 247)
  22427. stack.push(v - 139);
  22428. else if (v < 251)
  22429. stack.push((v - 247) * 256 + code[i++] + 108);
  22430. else if (v < 255)
  22431. stack.push(-(v - 251) * 256 - code[i++] - 108);
  22432. else {
  22433. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  22434. (code[i + 2] << 8) | code[i + 3]) / 65536);
  22435. i += 4;
  22436. }
  22437. break;
  22438. }
  22439. if (stackClean) {
  22440. stack.length = 0;
  22441. }
  22442. }
  22443. }
  22444. parse(code);
  22445. }
  22446. var noop = '';
  22447. function CompiledFont(fontMatrix) {
  22448. this.compiledGlyphs = {};
  22449. this.fontMatrix = fontMatrix;
  22450. }
  22451. CompiledFont.prototype = {
  22452. getPathJs: function (unicode) {
  22453. var gid = lookupCmap(this.cmap, unicode);
  22454. var fn = this.compiledGlyphs[gid];
  22455. if (!fn) {
  22456. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  22457. }
  22458. return fn;
  22459. },
  22460. compileGlyph: function (code) {
  22461. if (!code || code.length === 0 || code[0] === 14) {
  22462. return noop;
  22463. }
  22464. var js = [];
  22465. js.push('c.save();');
  22466. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  22467. js.push('c.scale(size, -size);');
  22468. this.compileGlyphImpl(code, js);
  22469. js.push('c.restore();');
  22470. return js.join('\n');
  22471. },
  22472. compileGlyphImpl: function () {
  22473. error('Children classes should implement this.');
  22474. },
  22475. hasBuiltPath: function (unicode) {
  22476. var gid = lookupCmap(this.cmap, unicode);
  22477. return gid in this.compiledGlyphs;
  22478. }
  22479. };
  22480. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  22481. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  22482. CompiledFont.call(this, fontMatrix);
  22483. this.glyphs = glyphs;
  22484. this.cmap = cmap;
  22485. this.compiledGlyphs = [];
  22486. }
  22487. Util.inherit(TrueTypeCompiled, CompiledFont, {
  22488. compileGlyphImpl: function (code, js) {
  22489. compileGlyf(code, js, this);
  22490. }
  22491. });
  22492. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  22493. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  22494. CompiledFont.call(this, fontMatrix);
  22495. this.glyphs = cffInfo.glyphs;
  22496. this.gsubrs = cffInfo.gsubrs || [];
  22497. this.subrs = cffInfo.subrs || [];
  22498. this.cmap = cmap;
  22499. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  22500. this.compiledGlyphs = [];
  22501. this.gsubrsBias = this.gsubrs.length < 1240 ? 107 :
  22502. this.gsubrs.length < 33900 ? 1131 : 32768;
  22503. this.subrsBias = this.subrs.length < 1240 ? 107 :
  22504. this.subrs.length < 33900 ? 1131 : 32768;
  22505. }
  22506. Util.inherit(Type2Compiled, CompiledFont, {
  22507. compileGlyphImpl: function (code, js) {
  22508. compileCharString(code, js, this);
  22509. }
  22510. });
  22511. return {
  22512. create: function FontRendererFactory_create(font) {
  22513. var data = new Uint8Array(font.data);
  22514. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  22515. var numTables = getUshort(data, 4);
  22516. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  22517. var tag = String.fromCharCode.apply(null, data.subarray(p, p + 4));
  22518. var offset = getLong(data, p + 8);
  22519. var length = getLong(data, p + 12);
  22520. switch (tag) {
  22521. case 'cmap':
  22522. cmap = parseCmap(data, offset, offset + length);
  22523. break;
  22524. case 'glyf':
  22525. glyf = data.subarray(offset, offset + length);
  22526. break;
  22527. case 'loca':
  22528. loca = data.subarray(offset, offset + length);
  22529. break;
  22530. case 'head':
  22531. unitsPerEm = getUshort(data, offset + 18);
  22532. indexToLocFormat = getUshort(data, offset + 50);
  22533. break;
  22534. case 'CFF ':
  22535. cff = parseCff(data, offset, offset + length);
  22536. break;
  22537. }
  22538. }
  22539. if (glyf) {
  22540. var fontMatrix = !unitsPerEm ? font.fontMatrix :
  22541. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0];
  22542. return new TrueTypeCompiled(
  22543. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  22544. } else {
  22545. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  22546. }
  22547. }
  22548. };
  22549. })();
  22550. var GlyphsUnicode = {
  22551. A: 0x0041,
  22552. AE: 0x00C6,
  22553. AEacute: 0x01FC,
  22554. AEmacron: 0x01E2,
  22555. AEsmall: 0xF7E6,
  22556. Aacute: 0x00C1,
  22557. Aacutesmall: 0xF7E1,
  22558. Abreve: 0x0102,
  22559. Abreveacute: 0x1EAE,
  22560. Abrevecyrillic: 0x04D0,
  22561. Abrevedotbelow: 0x1EB6,
  22562. Abrevegrave: 0x1EB0,
  22563. Abrevehookabove: 0x1EB2,
  22564. Abrevetilde: 0x1EB4,
  22565. Acaron: 0x01CD,
  22566. Acircle: 0x24B6,
  22567. Acircumflex: 0x00C2,
  22568. Acircumflexacute: 0x1EA4,
  22569. Acircumflexdotbelow: 0x1EAC,
  22570. Acircumflexgrave: 0x1EA6,
  22571. Acircumflexhookabove: 0x1EA8,
  22572. Acircumflexsmall: 0xF7E2,
  22573. Acircumflextilde: 0x1EAA,
  22574. Acute: 0xF6C9,
  22575. Acutesmall: 0xF7B4,
  22576. Acyrillic: 0x0410,
  22577. Adblgrave: 0x0200,
  22578. Adieresis: 0x00C4,
  22579. Adieresiscyrillic: 0x04D2,
  22580. Adieresismacron: 0x01DE,
  22581. Adieresissmall: 0xF7E4,
  22582. Adotbelow: 0x1EA0,
  22583. Adotmacron: 0x01E0,
  22584. Agrave: 0x00C0,
  22585. Agravesmall: 0xF7E0,
  22586. Ahookabove: 0x1EA2,
  22587. Aiecyrillic: 0x04D4,
  22588. Ainvertedbreve: 0x0202,
  22589. Alpha: 0x0391,
  22590. Alphatonos: 0x0386,
  22591. Amacron: 0x0100,
  22592. Amonospace: 0xFF21,
  22593. Aogonek: 0x0104,
  22594. Aring: 0x00C5,
  22595. Aringacute: 0x01FA,
  22596. Aringbelow: 0x1E00,
  22597. Aringsmall: 0xF7E5,
  22598. Asmall: 0xF761,
  22599. Atilde: 0x00C3,
  22600. Atildesmall: 0xF7E3,
  22601. Aybarmenian: 0x0531,
  22602. B: 0x0042,
  22603. Bcircle: 0x24B7,
  22604. Bdotaccent: 0x1E02,
  22605. Bdotbelow: 0x1E04,
  22606. Becyrillic: 0x0411,
  22607. Benarmenian: 0x0532,
  22608. Beta: 0x0392,
  22609. Bhook: 0x0181,
  22610. Blinebelow: 0x1E06,
  22611. Bmonospace: 0xFF22,
  22612. Brevesmall: 0xF6F4,
  22613. Bsmall: 0xF762,
  22614. Btopbar: 0x0182,
  22615. C: 0x0043,
  22616. Caarmenian: 0x053E,
  22617. Cacute: 0x0106,
  22618. Caron: 0xF6CA,
  22619. Caronsmall: 0xF6F5,
  22620. Ccaron: 0x010C,
  22621. Ccedilla: 0x00C7,
  22622. Ccedillaacute: 0x1E08,
  22623. Ccedillasmall: 0xF7E7,
  22624. Ccircle: 0x24B8,
  22625. Ccircumflex: 0x0108,
  22626. Cdot: 0x010A,
  22627. Cdotaccent: 0x010A,
  22628. Cedillasmall: 0xF7B8,
  22629. Chaarmenian: 0x0549,
  22630. Cheabkhasiancyrillic: 0x04BC,
  22631. Checyrillic: 0x0427,
  22632. Chedescenderabkhasiancyrillic: 0x04BE,
  22633. Chedescendercyrillic: 0x04B6,
  22634. Chedieresiscyrillic: 0x04F4,
  22635. Cheharmenian: 0x0543,
  22636. Chekhakassiancyrillic: 0x04CB,
  22637. Cheverticalstrokecyrillic: 0x04B8,
  22638. Chi: 0x03A7,
  22639. Chook: 0x0187,
  22640. Circumflexsmall: 0xF6F6,
  22641. Cmonospace: 0xFF23,
  22642. Coarmenian: 0x0551,
  22643. Csmall: 0xF763,
  22644. D: 0x0044,
  22645. DZ: 0x01F1,
  22646. DZcaron: 0x01C4,
  22647. Daarmenian: 0x0534,
  22648. Dafrican: 0x0189,
  22649. Dcaron: 0x010E,
  22650. Dcedilla: 0x1E10,
  22651. Dcircle: 0x24B9,
  22652. Dcircumflexbelow: 0x1E12,
  22653. Dcroat: 0x0110,
  22654. Ddotaccent: 0x1E0A,
  22655. Ddotbelow: 0x1E0C,
  22656. Decyrillic: 0x0414,
  22657. Deicoptic: 0x03EE,
  22658. Delta: 0x2206,
  22659. Deltagreek: 0x0394,
  22660. Dhook: 0x018A,
  22661. Dieresis: 0xF6CB,
  22662. DieresisAcute: 0xF6CC,
  22663. DieresisGrave: 0xF6CD,
  22664. Dieresissmall: 0xF7A8,
  22665. Digammagreek: 0x03DC,
  22666. Djecyrillic: 0x0402,
  22667. Dlinebelow: 0x1E0E,
  22668. Dmonospace: 0xFF24,
  22669. Dotaccentsmall: 0xF6F7,
  22670. Dslash: 0x0110,
  22671. Dsmall: 0xF764,
  22672. Dtopbar: 0x018B,
  22673. Dz: 0x01F2,
  22674. Dzcaron: 0x01C5,
  22675. Dzeabkhasiancyrillic: 0x04E0,
  22676. Dzecyrillic: 0x0405,
  22677. Dzhecyrillic: 0x040F,
  22678. E: 0x0045,
  22679. Eacute: 0x00C9,
  22680. Eacutesmall: 0xF7E9,
  22681. Ebreve: 0x0114,
  22682. Ecaron: 0x011A,
  22683. Ecedillabreve: 0x1E1C,
  22684. Echarmenian: 0x0535,
  22685. Ecircle: 0x24BA,
  22686. Ecircumflex: 0x00CA,
  22687. Ecircumflexacute: 0x1EBE,
  22688. Ecircumflexbelow: 0x1E18,
  22689. Ecircumflexdotbelow: 0x1EC6,
  22690. Ecircumflexgrave: 0x1EC0,
  22691. Ecircumflexhookabove: 0x1EC2,
  22692. Ecircumflexsmall: 0xF7EA,
  22693. Ecircumflextilde: 0x1EC4,
  22694. Ecyrillic: 0x0404,
  22695. Edblgrave: 0x0204,
  22696. Edieresis: 0x00CB,
  22697. Edieresissmall: 0xF7EB,
  22698. Edot: 0x0116,
  22699. Edotaccent: 0x0116,
  22700. Edotbelow: 0x1EB8,
  22701. Efcyrillic: 0x0424,
  22702. Egrave: 0x00C8,
  22703. Egravesmall: 0xF7E8,
  22704. Eharmenian: 0x0537,
  22705. Ehookabove: 0x1EBA,
  22706. Eightroman: 0x2167,
  22707. Einvertedbreve: 0x0206,
  22708. Eiotifiedcyrillic: 0x0464,
  22709. Elcyrillic: 0x041B,
  22710. Elevenroman: 0x216A,
  22711. Emacron: 0x0112,
  22712. Emacronacute: 0x1E16,
  22713. Emacrongrave: 0x1E14,
  22714. Emcyrillic: 0x041C,
  22715. Emonospace: 0xFF25,
  22716. Encyrillic: 0x041D,
  22717. Endescendercyrillic: 0x04A2,
  22718. Eng: 0x014A,
  22719. Enghecyrillic: 0x04A4,
  22720. Enhookcyrillic: 0x04C7,
  22721. Eogonek: 0x0118,
  22722. Eopen: 0x0190,
  22723. Epsilon: 0x0395,
  22724. Epsilontonos: 0x0388,
  22725. Ercyrillic: 0x0420,
  22726. Ereversed: 0x018E,
  22727. Ereversedcyrillic: 0x042D,
  22728. Escyrillic: 0x0421,
  22729. Esdescendercyrillic: 0x04AA,
  22730. Esh: 0x01A9,
  22731. Esmall: 0xF765,
  22732. Eta: 0x0397,
  22733. Etarmenian: 0x0538,
  22734. Etatonos: 0x0389,
  22735. Eth: 0x00D0,
  22736. Ethsmall: 0xF7F0,
  22737. Etilde: 0x1EBC,
  22738. Etildebelow: 0x1E1A,
  22739. Euro: 0x20AC,
  22740. Ezh: 0x01B7,
  22741. Ezhcaron: 0x01EE,
  22742. Ezhreversed: 0x01B8,
  22743. F: 0x0046,
  22744. Fcircle: 0x24BB,
  22745. Fdotaccent: 0x1E1E,
  22746. Feharmenian: 0x0556,
  22747. Feicoptic: 0x03E4,
  22748. Fhook: 0x0191,
  22749. Fitacyrillic: 0x0472,
  22750. Fiveroman: 0x2164,
  22751. Fmonospace: 0xFF26,
  22752. Fourroman: 0x2163,
  22753. Fsmall: 0xF766,
  22754. G: 0x0047,
  22755. GBsquare: 0x3387,
  22756. Gacute: 0x01F4,
  22757. Gamma: 0x0393,
  22758. Gammaafrican: 0x0194,
  22759. Gangiacoptic: 0x03EA,
  22760. Gbreve: 0x011E,
  22761. Gcaron: 0x01E6,
  22762. Gcedilla: 0x0122,
  22763. Gcircle: 0x24BC,
  22764. Gcircumflex: 0x011C,
  22765. Gcommaaccent: 0x0122,
  22766. Gdot: 0x0120,
  22767. Gdotaccent: 0x0120,
  22768. Gecyrillic: 0x0413,
  22769. Ghadarmenian: 0x0542,
  22770. Ghemiddlehookcyrillic: 0x0494,
  22771. Ghestrokecyrillic: 0x0492,
  22772. Gheupturncyrillic: 0x0490,
  22773. Ghook: 0x0193,
  22774. Gimarmenian: 0x0533,
  22775. Gjecyrillic: 0x0403,
  22776. Gmacron: 0x1E20,
  22777. Gmonospace: 0xFF27,
  22778. Grave: 0xF6CE,
  22779. Gravesmall: 0xF760,
  22780. Gsmall: 0xF767,
  22781. Gsmallhook: 0x029B,
  22782. Gstroke: 0x01E4,
  22783. H: 0x0048,
  22784. H18533: 0x25CF,
  22785. H18543: 0x25AA,
  22786. H18551: 0x25AB,
  22787. H22073: 0x25A1,
  22788. HPsquare: 0x33CB,
  22789. Haabkhasiancyrillic: 0x04A8,
  22790. Hadescendercyrillic: 0x04B2,
  22791. Hardsigncyrillic: 0x042A,
  22792. Hbar: 0x0126,
  22793. Hbrevebelow: 0x1E2A,
  22794. Hcedilla: 0x1E28,
  22795. Hcircle: 0x24BD,
  22796. Hcircumflex: 0x0124,
  22797. Hdieresis: 0x1E26,
  22798. Hdotaccent: 0x1E22,
  22799. Hdotbelow: 0x1E24,
  22800. Hmonospace: 0xFF28,
  22801. Hoarmenian: 0x0540,
  22802. Horicoptic: 0x03E8,
  22803. Hsmall: 0xF768,
  22804. Hungarumlaut: 0xF6CF,
  22805. Hungarumlautsmall: 0xF6F8,
  22806. Hzsquare: 0x3390,
  22807. I: 0x0049,
  22808. IAcyrillic: 0x042F,
  22809. IJ: 0x0132,
  22810. IUcyrillic: 0x042E,
  22811. Iacute: 0x00CD,
  22812. Iacutesmall: 0xF7ED,
  22813. Ibreve: 0x012C,
  22814. Icaron: 0x01CF,
  22815. Icircle: 0x24BE,
  22816. Icircumflex: 0x00CE,
  22817. Icircumflexsmall: 0xF7EE,
  22818. Icyrillic: 0x0406,
  22819. Idblgrave: 0x0208,
  22820. Idieresis: 0x00CF,
  22821. Idieresisacute: 0x1E2E,
  22822. Idieresiscyrillic: 0x04E4,
  22823. Idieresissmall: 0xF7EF,
  22824. Idot: 0x0130,
  22825. Idotaccent: 0x0130,
  22826. Idotbelow: 0x1ECA,
  22827. Iebrevecyrillic: 0x04D6,
  22828. Iecyrillic: 0x0415,
  22829. Ifraktur: 0x2111,
  22830. Igrave: 0x00CC,
  22831. Igravesmall: 0xF7EC,
  22832. Ihookabove: 0x1EC8,
  22833. Iicyrillic: 0x0418,
  22834. Iinvertedbreve: 0x020A,
  22835. Iishortcyrillic: 0x0419,
  22836. Imacron: 0x012A,
  22837. Imacroncyrillic: 0x04E2,
  22838. Imonospace: 0xFF29,
  22839. Iniarmenian: 0x053B,
  22840. Iocyrillic: 0x0401,
  22841. Iogonek: 0x012E,
  22842. Iota: 0x0399,
  22843. Iotaafrican: 0x0196,
  22844. Iotadieresis: 0x03AA,
  22845. Iotatonos: 0x038A,
  22846. Ismall: 0xF769,
  22847. Istroke: 0x0197,
  22848. Itilde: 0x0128,
  22849. Itildebelow: 0x1E2C,
  22850. Izhitsacyrillic: 0x0474,
  22851. Izhitsadblgravecyrillic: 0x0476,
  22852. J: 0x004A,
  22853. Jaarmenian: 0x0541,
  22854. Jcircle: 0x24BF,
  22855. Jcircumflex: 0x0134,
  22856. Jecyrillic: 0x0408,
  22857. Jheharmenian: 0x054B,
  22858. Jmonospace: 0xFF2A,
  22859. Jsmall: 0xF76A,
  22860. K: 0x004B,
  22861. KBsquare: 0x3385,
  22862. KKsquare: 0x33CD,
  22863. Kabashkircyrillic: 0x04A0,
  22864. Kacute: 0x1E30,
  22865. Kacyrillic: 0x041A,
  22866. Kadescendercyrillic: 0x049A,
  22867. Kahookcyrillic: 0x04C3,
  22868. Kappa: 0x039A,
  22869. Kastrokecyrillic: 0x049E,
  22870. Kaverticalstrokecyrillic: 0x049C,
  22871. Kcaron: 0x01E8,
  22872. Kcedilla: 0x0136,
  22873. Kcircle: 0x24C0,
  22874. Kcommaaccent: 0x0136,
  22875. Kdotbelow: 0x1E32,
  22876. Keharmenian: 0x0554,
  22877. Kenarmenian: 0x053F,
  22878. Khacyrillic: 0x0425,
  22879. Kheicoptic: 0x03E6,
  22880. Khook: 0x0198,
  22881. Kjecyrillic: 0x040C,
  22882. Klinebelow: 0x1E34,
  22883. Kmonospace: 0xFF2B,
  22884. Koppacyrillic: 0x0480,
  22885. Koppagreek: 0x03DE,
  22886. Ksicyrillic: 0x046E,
  22887. Ksmall: 0xF76B,
  22888. L: 0x004C,
  22889. LJ: 0x01C7,
  22890. LL: 0xF6BF,
  22891. Lacute: 0x0139,
  22892. Lambda: 0x039B,
  22893. Lcaron: 0x013D,
  22894. Lcedilla: 0x013B,
  22895. Lcircle: 0x24C1,
  22896. Lcircumflexbelow: 0x1E3C,
  22897. Lcommaaccent: 0x013B,
  22898. Ldot: 0x013F,
  22899. Ldotaccent: 0x013F,
  22900. Ldotbelow: 0x1E36,
  22901. Ldotbelowmacron: 0x1E38,
  22902. Liwnarmenian: 0x053C,
  22903. Lj: 0x01C8,
  22904. Ljecyrillic: 0x0409,
  22905. Llinebelow: 0x1E3A,
  22906. Lmonospace: 0xFF2C,
  22907. Lslash: 0x0141,
  22908. Lslashsmall: 0xF6F9,
  22909. Lsmall: 0xF76C,
  22910. M: 0x004D,
  22911. MBsquare: 0x3386,
  22912. Macron: 0xF6D0,
  22913. Macronsmall: 0xF7AF,
  22914. Macute: 0x1E3E,
  22915. Mcircle: 0x24C2,
  22916. Mdotaccent: 0x1E40,
  22917. Mdotbelow: 0x1E42,
  22918. Menarmenian: 0x0544,
  22919. Mmonospace: 0xFF2D,
  22920. Msmall: 0xF76D,
  22921. Mturned: 0x019C,
  22922. Mu: 0x039C,
  22923. N: 0x004E,
  22924. NJ: 0x01CA,
  22925. Nacute: 0x0143,
  22926. Ncaron: 0x0147,
  22927. Ncedilla: 0x0145,
  22928. Ncircle: 0x24C3,
  22929. Ncircumflexbelow: 0x1E4A,
  22930. Ncommaaccent: 0x0145,
  22931. Ndotaccent: 0x1E44,
  22932. Ndotbelow: 0x1E46,
  22933. Nhookleft: 0x019D,
  22934. Nineroman: 0x2168,
  22935. Nj: 0x01CB,
  22936. Njecyrillic: 0x040A,
  22937. Nlinebelow: 0x1E48,
  22938. Nmonospace: 0xFF2E,
  22939. Nowarmenian: 0x0546,
  22940. Nsmall: 0xF76E,
  22941. Ntilde: 0x00D1,
  22942. Ntildesmall: 0xF7F1,
  22943. Nu: 0x039D,
  22944. O: 0x004F,
  22945. OE: 0x0152,
  22946. OEsmall: 0xF6FA,
  22947. Oacute: 0x00D3,
  22948. Oacutesmall: 0xF7F3,
  22949. Obarredcyrillic: 0x04E8,
  22950. Obarreddieresiscyrillic: 0x04EA,
  22951. Obreve: 0x014E,
  22952. Ocaron: 0x01D1,
  22953. Ocenteredtilde: 0x019F,
  22954. Ocircle: 0x24C4,
  22955. Ocircumflex: 0x00D4,
  22956. Ocircumflexacute: 0x1ED0,
  22957. Ocircumflexdotbelow: 0x1ED8,
  22958. Ocircumflexgrave: 0x1ED2,
  22959. Ocircumflexhookabove: 0x1ED4,
  22960. Ocircumflexsmall: 0xF7F4,
  22961. Ocircumflextilde: 0x1ED6,
  22962. Ocyrillic: 0x041E,
  22963. Odblacute: 0x0150,
  22964. Odblgrave: 0x020C,
  22965. Odieresis: 0x00D6,
  22966. Odieresiscyrillic: 0x04E6,
  22967. Odieresissmall: 0xF7F6,
  22968. Odotbelow: 0x1ECC,
  22969. Ogoneksmall: 0xF6FB,
  22970. Ograve: 0x00D2,
  22971. Ogravesmall: 0xF7F2,
  22972. Oharmenian: 0x0555,
  22973. Ohm: 0x2126,
  22974. Ohookabove: 0x1ECE,
  22975. Ohorn: 0x01A0,
  22976. Ohornacute: 0x1EDA,
  22977. Ohorndotbelow: 0x1EE2,
  22978. Ohorngrave: 0x1EDC,
  22979. Ohornhookabove: 0x1EDE,
  22980. Ohorntilde: 0x1EE0,
  22981. Ohungarumlaut: 0x0150,
  22982. Oi: 0x01A2,
  22983. Oinvertedbreve: 0x020E,
  22984. Omacron: 0x014C,
  22985. Omacronacute: 0x1E52,
  22986. Omacrongrave: 0x1E50,
  22987. Omega: 0x2126,
  22988. Omegacyrillic: 0x0460,
  22989. Omegagreek: 0x03A9,
  22990. Omegaroundcyrillic: 0x047A,
  22991. Omegatitlocyrillic: 0x047C,
  22992. Omegatonos: 0x038F,
  22993. Omicron: 0x039F,
  22994. Omicrontonos: 0x038C,
  22995. Omonospace: 0xFF2F,
  22996. Oneroman: 0x2160,
  22997. Oogonek: 0x01EA,
  22998. Oogonekmacron: 0x01EC,
  22999. Oopen: 0x0186,
  23000. Oslash: 0x00D8,
  23001. Oslashacute: 0x01FE,
  23002. Oslashsmall: 0xF7F8,
  23003. Osmall: 0xF76F,
  23004. Ostrokeacute: 0x01FE,
  23005. Otcyrillic: 0x047E,
  23006. Otilde: 0x00D5,
  23007. Otildeacute: 0x1E4C,
  23008. Otildedieresis: 0x1E4E,
  23009. Otildesmall: 0xF7F5,
  23010. P: 0x0050,
  23011. Pacute: 0x1E54,
  23012. Pcircle: 0x24C5,
  23013. Pdotaccent: 0x1E56,
  23014. Pecyrillic: 0x041F,
  23015. Peharmenian: 0x054A,
  23016. Pemiddlehookcyrillic: 0x04A6,
  23017. Phi: 0x03A6,
  23018. Phook: 0x01A4,
  23019. Pi: 0x03A0,
  23020. Piwrarmenian: 0x0553,
  23021. Pmonospace: 0xFF30,
  23022. Psi: 0x03A8,
  23023. Psicyrillic: 0x0470,
  23024. Psmall: 0xF770,
  23025. Q: 0x0051,
  23026. Qcircle: 0x24C6,
  23027. Qmonospace: 0xFF31,
  23028. Qsmall: 0xF771,
  23029. R: 0x0052,
  23030. Raarmenian: 0x054C,
  23031. Racute: 0x0154,
  23032. Rcaron: 0x0158,
  23033. Rcedilla: 0x0156,
  23034. Rcircle: 0x24C7,
  23035. Rcommaaccent: 0x0156,
  23036. Rdblgrave: 0x0210,
  23037. Rdotaccent: 0x1E58,
  23038. Rdotbelow: 0x1E5A,
  23039. Rdotbelowmacron: 0x1E5C,
  23040. Reharmenian: 0x0550,
  23041. Rfraktur: 0x211C,
  23042. Rho: 0x03A1,
  23043. Ringsmall: 0xF6FC,
  23044. Rinvertedbreve: 0x0212,
  23045. Rlinebelow: 0x1E5E,
  23046. Rmonospace: 0xFF32,
  23047. Rsmall: 0xF772,
  23048. Rsmallinverted: 0x0281,
  23049. Rsmallinvertedsuperior: 0x02B6,
  23050. S: 0x0053,
  23051. SF010000: 0x250C,
  23052. SF020000: 0x2514,
  23053. SF030000: 0x2510,
  23054. SF040000: 0x2518,
  23055. SF050000: 0x253C,
  23056. SF060000: 0x252C,
  23057. SF070000: 0x2534,
  23058. SF080000: 0x251C,
  23059. SF090000: 0x2524,
  23060. SF100000: 0x2500,
  23061. SF110000: 0x2502,
  23062. SF190000: 0x2561,
  23063. SF200000: 0x2562,
  23064. SF210000: 0x2556,
  23065. SF220000: 0x2555,
  23066. SF230000: 0x2563,
  23067. SF240000: 0x2551,
  23068. SF250000: 0x2557,
  23069. SF260000: 0x255D,
  23070. SF270000: 0x255C,
  23071. SF280000: 0x255B,
  23072. SF360000: 0x255E,
  23073. SF370000: 0x255F,
  23074. SF380000: 0x255A,
  23075. SF390000: 0x2554,
  23076. SF400000: 0x2569,
  23077. SF410000: 0x2566,
  23078. SF420000: 0x2560,
  23079. SF430000: 0x2550,
  23080. SF440000: 0x256C,
  23081. SF450000: 0x2567,
  23082. SF460000: 0x2568,
  23083. SF470000: 0x2564,
  23084. SF480000: 0x2565,
  23085. SF490000: 0x2559,
  23086. SF500000: 0x2558,
  23087. SF510000: 0x2552,
  23088. SF520000: 0x2553,
  23089. SF530000: 0x256B,
  23090. SF540000: 0x256A,
  23091. Sacute: 0x015A,
  23092. Sacutedotaccent: 0x1E64,
  23093. Sampigreek: 0x03E0,
  23094. Scaron: 0x0160,
  23095. Scarondotaccent: 0x1E66,
  23096. Scaronsmall: 0xF6FD,
  23097. Scedilla: 0x015E,
  23098. Schwa: 0x018F,
  23099. Schwacyrillic: 0x04D8,
  23100. Schwadieresiscyrillic: 0x04DA,
  23101. Scircle: 0x24C8,
  23102. Scircumflex: 0x015C,
  23103. Scommaaccent: 0x0218,
  23104. Sdotaccent: 0x1E60,
  23105. Sdotbelow: 0x1E62,
  23106. Sdotbelowdotaccent: 0x1E68,
  23107. Seharmenian: 0x054D,
  23108. Sevenroman: 0x2166,
  23109. Shaarmenian: 0x0547,
  23110. Shacyrillic: 0x0428,
  23111. Shchacyrillic: 0x0429,
  23112. Sheicoptic: 0x03E2,
  23113. Shhacyrillic: 0x04BA,
  23114. Shimacoptic: 0x03EC,
  23115. Sigma: 0x03A3,
  23116. Sixroman: 0x2165,
  23117. Smonospace: 0xFF33,
  23118. Softsigncyrillic: 0x042C,
  23119. Ssmall: 0xF773,
  23120. Stigmagreek: 0x03DA,
  23121. T: 0x0054,
  23122. Tau: 0x03A4,
  23123. Tbar: 0x0166,
  23124. Tcaron: 0x0164,
  23125. Tcedilla: 0x0162,
  23126. Tcircle: 0x24C9,
  23127. Tcircumflexbelow: 0x1E70,
  23128. Tcommaaccent: 0x0162,
  23129. Tdotaccent: 0x1E6A,
  23130. Tdotbelow: 0x1E6C,
  23131. Tecyrillic: 0x0422,
  23132. Tedescendercyrillic: 0x04AC,
  23133. Tenroman: 0x2169,
  23134. Tetsecyrillic: 0x04B4,
  23135. Theta: 0x0398,
  23136. Thook: 0x01AC,
  23137. Thorn: 0x00DE,
  23138. Thornsmall: 0xF7FE,
  23139. Threeroman: 0x2162,
  23140. Tildesmall: 0xF6FE,
  23141. Tiwnarmenian: 0x054F,
  23142. Tlinebelow: 0x1E6E,
  23143. Tmonospace: 0xFF34,
  23144. Toarmenian: 0x0539,
  23145. Tonefive: 0x01BC,
  23146. Tonesix: 0x0184,
  23147. Tonetwo: 0x01A7,
  23148. Tretroflexhook: 0x01AE,
  23149. Tsecyrillic: 0x0426,
  23150. Tshecyrillic: 0x040B,
  23151. Tsmall: 0xF774,
  23152. Twelveroman: 0x216B,
  23153. Tworoman: 0x2161,
  23154. U: 0x0055,
  23155. Uacute: 0x00DA,
  23156. Uacutesmall: 0xF7FA,
  23157. Ubreve: 0x016C,
  23158. Ucaron: 0x01D3,
  23159. Ucircle: 0x24CA,
  23160. Ucircumflex: 0x00DB,
  23161. Ucircumflexbelow: 0x1E76,
  23162. Ucircumflexsmall: 0xF7FB,
  23163. Ucyrillic: 0x0423,
  23164. Udblacute: 0x0170,
  23165. Udblgrave: 0x0214,
  23166. Udieresis: 0x00DC,
  23167. Udieresisacute: 0x01D7,
  23168. Udieresisbelow: 0x1E72,
  23169. Udieresiscaron: 0x01D9,
  23170. Udieresiscyrillic: 0x04F0,
  23171. Udieresisgrave: 0x01DB,
  23172. Udieresismacron: 0x01D5,
  23173. Udieresissmall: 0xF7FC,
  23174. Udotbelow: 0x1EE4,
  23175. Ugrave: 0x00D9,
  23176. Ugravesmall: 0xF7F9,
  23177. Uhookabove: 0x1EE6,
  23178. Uhorn: 0x01AF,
  23179. Uhornacute: 0x1EE8,
  23180. Uhorndotbelow: 0x1EF0,
  23181. Uhorngrave: 0x1EEA,
  23182. Uhornhookabove: 0x1EEC,
  23183. Uhorntilde: 0x1EEE,
  23184. Uhungarumlaut: 0x0170,
  23185. Uhungarumlautcyrillic: 0x04F2,
  23186. Uinvertedbreve: 0x0216,
  23187. Ukcyrillic: 0x0478,
  23188. Umacron: 0x016A,
  23189. Umacroncyrillic: 0x04EE,
  23190. Umacrondieresis: 0x1E7A,
  23191. Umonospace: 0xFF35,
  23192. Uogonek: 0x0172,
  23193. Upsilon: 0x03A5,
  23194. Upsilon1: 0x03D2,
  23195. Upsilonacutehooksymbolgreek: 0x03D3,
  23196. Upsilonafrican: 0x01B1,
  23197. Upsilondieresis: 0x03AB,
  23198. Upsilondieresishooksymbolgreek: 0x03D4,
  23199. Upsilonhooksymbol: 0x03D2,
  23200. Upsilontonos: 0x038E,
  23201. Uring: 0x016E,
  23202. Ushortcyrillic: 0x040E,
  23203. Usmall: 0xF775,
  23204. Ustraightcyrillic: 0x04AE,
  23205. Ustraightstrokecyrillic: 0x04B0,
  23206. Utilde: 0x0168,
  23207. Utildeacute: 0x1E78,
  23208. Utildebelow: 0x1E74,
  23209. V: 0x0056,
  23210. Vcircle: 0x24CB,
  23211. Vdotbelow: 0x1E7E,
  23212. Vecyrillic: 0x0412,
  23213. Vewarmenian: 0x054E,
  23214. Vhook: 0x01B2,
  23215. Vmonospace: 0xFF36,
  23216. Voarmenian: 0x0548,
  23217. Vsmall: 0xF776,
  23218. Vtilde: 0x1E7C,
  23219. W: 0x0057,
  23220. Wacute: 0x1E82,
  23221. Wcircle: 0x24CC,
  23222. Wcircumflex: 0x0174,
  23223. Wdieresis: 0x1E84,
  23224. Wdotaccent: 0x1E86,
  23225. Wdotbelow: 0x1E88,
  23226. Wgrave: 0x1E80,
  23227. Wmonospace: 0xFF37,
  23228. Wsmall: 0xF777,
  23229. X: 0x0058,
  23230. Xcircle: 0x24CD,
  23231. Xdieresis: 0x1E8C,
  23232. Xdotaccent: 0x1E8A,
  23233. Xeharmenian: 0x053D,
  23234. Xi: 0x039E,
  23235. Xmonospace: 0xFF38,
  23236. Xsmall: 0xF778,
  23237. Y: 0x0059,
  23238. Yacute: 0x00DD,
  23239. Yacutesmall: 0xF7FD,
  23240. Yatcyrillic: 0x0462,
  23241. Ycircle: 0x24CE,
  23242. Ycircumflex: 0x0176,
  23243. Ydieresis: 0x0178,
  23244. Ydieresissmall: 0xF7FF,
  23245. Ydotaccent: 0x1E8E,
  23246. Ydotbelow: 0x1EF4,
  23247. Yericyrillic: 0x042B,
  23248. Yerudieresiscyrillic: 0x04F8,
  23249. Ygrave: 0x1EF2,
  23250. Yhook: 0x01B3,
  23251. Yhookabove: 0x1EF6,
  23252. Yiarmenian: 0x0545,
  23253. Yicyrillic: 0x0407,
  23254. Yiwnarmenian: 0x0552,
  23255. Ymonospace: 0xFF39,
  23256. Ysmall: 0xF779,
  23257. Ytilde: 0x1EF8,
  23258. Yusbigcyrillic: 0x046A,
  23259. Yusbigiotifiedcyrillic: 0x046C,
  23260. Yuslittlecyrillic: 0x0466,
  23261. Yuslittleiotifiedcyrillic: 0x0468,
  23262. Z: 0x005A,
  23263. Zaarmenian: 0x0536,
  23264. Zacute: 0x0179,
  23265. Zcaron: 0x017D,
  23266. Zcaronsmall: 0xF6FF,
  23267. Zcircle: 0x24CF,
  23268. Zcircumflex: 0x1E90,
  23269. Zdot: 0x017B,
  23270. Zdotaccent: 0x017B,
  23271. Zdotbelow: 0x1E92,
  23272. Zecyrillic: 0x0417,
  23273. Zedescendercyrillic: 0x0498,
  23274. Zedieresiscyrillic: 0x04DE,
  23275. Zeta: 0x0396,
  23276. Zhearmenian: 0x053A,
  23277. Zhebrevecyrillic: 0x04C1,
  23278. Zhecyrillic: 0x0416,
  23279. Zhedescendercyrillic: 0x0496,
  23280. Zhedieresiscyrillic: 0x04DC,
  23281. Zlinebelow: 0x1E94,
  23282. Zmonospace: 0xFF3A,
  23283. Zsmall: 0xF77A,
  23284. Zstroke: 0x01B5,
  23285. a: 0x0061,
  23286. aabengali: 0x0986,
  23287. aacute: 0x00E1,
  23288. aadeva: 0x0906,
  23289. aagujarati: 0x0A86,
  23290. aagurmukhi: 0x0A06,
  23291. aamatragurmukhi: 0x0A3E,
  23292. aarusquare: 0x3303,
  23293. aavowelsignbengali: 0x09BE,
  23294. aavowelsigndeva: 0x093E,
  23295. aavowelsigngujarati: 0x0ABE,
  23296. abbreviationmarkarmenian: 0x055F,
  23297. abbreviationsigndeva: 0x0970,
  23298. abengali: 0x0985,
  23299. abopomofo: 0x311A,
  23300. abreve: 0x0103,
  23301. abreveacute: 0x1EAF,
  23302. abrevecyrillic: 0x04D1,
  23303. abrevedotbelow: 0x1EB7,
  23304. abrevegrave: 0x1EB1,
  23305. abrevehookabove: 0x1EB3,
  23306. abrevetilde: 0x1EB5,
  23307. acaron: 0x01CE,
  23308. acircle: 0x24D0,
  23309. acircumflex: 0x00E2,
  23310. acircumflexacute: 0x1EA5,
  23311. acircumflexdotbelow: 0x1EAD,
  23312. acircumflexgrave: 0x1EA7,
  23313. acircumflexhookabove: 0x1EA9,
  23314. acircumflextilde: 0x1EAB,
  23315. acute: 0x00B4,
  23316. acutebelowcmb: 0x0317,
  23317. acutecmb: 0x0301,
  23318. acutecomb: 0x0301,
  23319. acutedeva: 0x0954,
  23320. acutelowmod: 0x02CF,
  23321. acutetonecmb: 0x0341,
  23322. acyrillic: 0x0430,
  23323. adblgrave: 0x0201,
  23324. addakgurmukhi: 0x0A71,
  23325. adeva: 0x0905,
  23326. adieresis: 0x00E4,
  23327. adieresiscyrillic: 0x04D3,
  23328. adieresismacron: 0x01DF,
  23329. adotbelow: 0x1EA1,
  23330. adotmacron: 0x01E1,
  23331. ae: 0x00E6,
  23332. aeacute: 0x01FD,
  23333. aekorean: 0x3150,
  23334. aemacron: 0x01E3,
  23335. afii00208: 0x2015,
  23336. afii08941: 0x20A4,
  23337. afii10017: 0x0410,
  23338. afii10018: 0x0411,
  23339. afii10019: 0x0412,
  23340. afii10020: 0x0413,
  23341. afii10021: 0x0414,
  23342. afii10022: 0x0415,
  23343. afii10023: 0x0401,
  23344. afii10024: 0x0416,
  23345. afii10025: 0x0417,
  23346. afii10026: 0x0418,
  23347. afii10027: 0x0419,
  23348. afii10028: 0x041A,
  23349. afii10029: 0x041B,
  23350. afii10030: 0x041C,
  23351. afii10031: 0x041D,
  23352. afii10032: 0x041E,
  23353. afii10033: 0x041F,
  23354. afii10034: 0x0420,
  23355. afii10035: 0x0421,
  23356. afii10036: 0x0422,
  23357. afii10037: 0x0423,
  23358. afii10038: 0x0424,
  23359. afii10039: 0x0425,
  23360. afii10040: 0x0426,
  23361. afii10041: 0x0427,
  23362. afii10042: 0x0428,
  23363. afii10043: 0x0429,
  23364. afii10044: 0x042A,
  23365. afii10045: 0x042B,
  23366. afii10046: 0x042C,
  23367. afii10047: 0x042D,
  23368. afii10048: 0x042E,
  23369. afii10049: 0x042F,
  23370. afii10050: 0x0490,
  23371. afii10051: 0x0402,
  23372. afii10052: 0x0403,
  23373. afii10053: 0x0404,
  23374. afii10054: 0x0405,
  23375. afii10055: 0x0406,
  23376. afii10056: 0x0407,
  23377. afii10057: 0x0408,
  23378. afii10058: 0x0409,
  23379. afii10059: 0x040A,
  23380. afii10060: 0x040B,
  23381. afii10061: 0x040C,
  23382. afii10062: 0x040E,
  23383. afii10063: 0xF6C4,
  23384. afii10064: 0xF6C5,
  23385. afii10065: 0x0430,
  23386. afii10066: 0x0431,
  23387. afii10067: 0x0432,
  23388. afii10068: 0x0433,
  23389. afii10069: 0x0434,
  23390. afii10070: 0x0435,
  23391. afii10071: 0x0451,
  23392. afii10072: 0x0436,
  23393. afii10073: 0x0437,
  23394. afii10074: 0x0438,
  23395. afii10075: 0x0439,
  23396. afii10076: 0x043A,
  23397. afii10077: 0x043B,
  23398. afii10078: 0x043C,
  23399. afii10079: 0x043D,
  23400. afii10080: 0x043E,
  23401. afii10081: 0x043F,
  23402. afii10082: 0x0440,
  23403. afii10083: 0x0441,
  23404. afii10084: 0x0442,
  23405. afii10085: 0x0443,
  23406. afii10086: 0x0444,
  23407. afii10087: 0x0445,
  23408. afii10088: 0x0446,
  23409. afii10089: 0x0447,
  23410. afii10090: 0x0448,
  23411. afii10091: 0x0449,
  23412. afii10092: 0x044A,
  23413. afii10093: 0x044B,
  23414. afii10094: 0x044C,
  23415. afii10095: 0x044D,
  23416. afii10096: 0x044E,
  23417. afii10097: 0x044F,
  23418. afii10098: 0x0491,
  23419. afii10099: 0x0452,
  23420. afii10100: 0x0453,
  23421. afii10101: 0x0454,
  23422. afii10102: 0x0455,
  23423. afii10103: 0x0456,
  23424. afii10104: 0x0457,
  23425. afii10105: 0x0458,
  23426. afii10106: 0x0459,
  23427. afii10107: 0x045A,
  23428. afii10108: 0x045B,
  23429. afii10109: 0x045C,
  23430. afii10110: 0x045E,
  23431. afii10145: 0x040F,
  23432. afii10146: 0x0462,
  23433. afii10147: 0x0472,
  23434. afii10148: 0x0474,
  23435. afii10192: 0xF6C6,
  23436. afii10193: 0x045F,
  23437. afii10194: 0x0463,
  23438. afii10195: 0x0473,
  23439. afii10196: 0x0475,
  23440. afii10831: 0xF6C7,
  23441. afii10832: 0xF6C8,
  23442. afii10846: 0x04D9,
  23443. afii299: 0x200E,
  23444. afii300: 0x200F,
  23445. afii301: 0x200D,
  23446. afii57381: 0x066A,
  23447. afii57388: 0x060C,
  23448. afii57392: 0x0660,
  23449. afii57393: 0x0661,
  23450. afii57394: 0x0662,
  23451. afii57395: 0x0663,
  23452. afii57396: 0x0664,
  23453. afii57397: 0x0665,
  23454. afii57398: 0x0666,
  23455. afii57399: 0x0667,
  23456. afii57400: 0x0668,
  23457. afii57401: 0x0669,
  23458. afii57403: 0x061B,
  23459. afii57407: 0x061F,
  23460. afii57409: 0x0621,
  23461. afii57410: 0x0622,
  23462. afii57411: 0x0623,
  23463. afii57412: 0x0624,
  23464. afii57413: 0x0625,
  23465. afii57414: 0x0626,
  23466. afii57415: 0x0627,
  23467. afii57416: 0x0628,
  23468. afii57417: 0x0629,
  23469. afii57418: 0x062A,
  23470. afii57419: 0x062B,
  23471. afii57420: 0x062C,
  23472. afii57421: 0x062D,
  23473. afii57422: 0x062E,
  23474. afii57423: 0x062F,
  23475. afii57424: 0x0630,
  23476. afii57425: 0x0631,
  23477. afii57426: 0x0632,
  23478. afii57427: 0x0633,
  23479. afii57428: 0x0634,
  23480. afii57429: 0x0635,
  23481. afii57430: 0x0636,
  23482. afii57431: 0x0637,
  23483. afii57432: 0x0638,
  23484. afii57433: 0x0639,
  23485. afii57434: 0x063A,
  23486. afii57440: 0x0640,
  23487. afii57441: 0x0641,
  23488. afii57442: 0x0642,
  23489. afii57443: 0x0643,
  23490. afii57444: 0x0644,
  23491. afii57445: 0x0645,
  23492. afii57446: 0x0646,
  23493. afii57448: 0x0648,
  23494. afii57449: 0x0649,
  23495. afii57450: 0x064A,
  23496. afii57451: 0x064B,
  23497. afii57452: 0x064C,
  23498. afii57453: 0x064D,
  23499. afii57454: 0x064E,
  23500. afii57455: 0x064F,
  23501. afii57456: 0x0650,
  23502. afii57457: 0x0651,
  23503. afii57458: 0x0652,
  23504. afii57470: 0x0647,
  23505. afii57505: 0x06A4,
  23506. afii57506: 0x067E,
  23507. afii57507: 0x0686,
  23508. afii57508: 0x0698,
  23509. afii57509: 0x06AF,
  23510. afii57511: 0x0679,
  23511. afii57512: 0x0688,
  23512. afii57513: 0x0691,
  23513. afii57514: 0x06BA,
  23514. afii57519: 0x06D2,
  23515. afii57534: 0x06D5,
  23516. afii57636: 0x20AA,
  23517. afii57645: 0x05BE,
  23518. afii57658: 0x05C3,
  23519. afii57664: 0x05D0,
  23520. afii57665: 0x05D1,
  23521. afii57666: 0x05D2,
  23522. afii57667: 0x05D3,
  23523. afii57668: 0x05D4,
  23524. afii57669: 0x05D5,
  23525. afii57670: 0x05D6,
  23526. afii57671: 0x05D7,
  23527. afii57672: 0x05D8,
  23528. afii57673: 0x05D9,
  23529. afii57674: 0x05DA,
  23530. afii57675: 0x05DB,
  23531. afii57676: 0x05DC,
  23532. afii57677: 0x05DD,
  23533. afii57678: 0x05DE,
  23534. afii57679: 0x05DF,
  23535. afii57680: 0x05E0,
  23536. afii57681: 0x05E1,
  23537. afii57682: 0x05E2,
  23538. afii57683: 0x05E3,
  23539. afii57684: 0x05E4,
  23540. afii57685: 0x05E5,
  23541. afii57686: 0x05E6,
  23542. afii57687: 0x05E7,
  23543. afii57688: 0x05E8,
  23544. afii57689: 0x05E9,
  23545. afii57690: 0x05EA,
  23546. afii57694: 0xFB2A,
  23547. afii57695: 0xFB2B,
  23548. afii57700: 0xFB4B,
  23549. afii57705: 0xFB1F,
  23550. afii57716: 0x05F0,
  23551. afii57717: 0x05F1,
  23552. afii57718: 0x05F2,
  23553. afii57723: 0xFB35,
  23554. afii57793: 0x05B4,
  23555. afii57794: 0x05B5,
  23556. afii57795: 0x05B6,
  23557. afii57796: 0x05BB,
  23558. afii57797: 0x05B8,
  23559. afii57798: 0x05B7,
  23560. afii57799: 0x05B0,
  23561. afii57800: 0x05B2,
  23562. afii57801: 0x05B1,
  23563. afii57802: 0x05B3,
  23564. afii57803: 0x05C2,
  23565. afii57804: 0x05C1,
  23566. afii57806: 0x05B9,
  23567. afii57807: 0x05BC,
  23568. afii57839: 0x05BD,
  23569. afii57841: 0x05BF,
  23570. afii57842: 0x05C0,
  23571. afii57929: 0x02BC,
  23572. afii61248: 0x2105,
  23573. afii61289: 0x2113,
  23574. afii61352: 0x2116,
  23575. afii61573: 0x202C,
  23576. afii61574: 0x202D,
  23577. afii61575: 0x202E,
  23578. afii61664: 0x200C,
  23579. afii63167: 0x066D,
  23580. afii64937: 0x02BD,
  23581. agrave: 0x00E0,
  23582. agujarati: 0x0A85,
  23583. agurmukhi: 0x0A05,
  23584. ahiragana: 0x3042,
  23585. ahookabove: 0x1EA3,
  23586. aibengali: 0x0990,
  23587. aibopomofo: 0x311E,
  23588. aideva: 0x0910,
  23589. aiecyrillic: 0x04D5,
  23590. aigujarati: 0x0A90,
  23591. aigurmukhi: 0x0A10,
  23592. aimatragurmukhi: 0x0A48,
  23593. ainarabic: 0x0639,
  23594. ainfinalarabic: 0xFECA,
  23595. aininitialarabic: 0xFECB,
  23596. ainmedialarabic: 0xFECC,
  23597. ainvertedbreve: 0x0203,
  23598. aivowelsignbengali: 0x09C8,
  23599. aivowelsigndeva: 0x0948,
  23600. aivowelsigngujarati: 0x0AC8,
  23601. akatakana: 0x30A2,
  23602. akatakanahalfwidth: 0xFF71,
  23603. akorean: 0x314F,
  23604. alef: 0x05D0,
  23605. alefarabic: 0x0627,
  23606. alefdageshhebrew: 0xFB30,
  23607. aleffinalarabic: 0xFE8E,
  23608. alefhamzaabovearabic: 0x0623,
  23609. alefhamzaabovefinalarabic: 0xFE84,
  23610. alefhamzabelowarabic: 0x0625,
  23611. alefhamzabelowfinalarabic: 0xFE88,
  23612. alefhebrew: 0x05D0,
  23613. aleflamedhebrew: 0xFB4F,
  23614. alefmaddaabovearabic: 0x0622,
  23615. alefmaddaabovefinalarabic: 0xFE82,
  23616. alefmaksuraarabic: 0x0649,
  23617. alefmaksurafinalarabic: 0xFEF0,
  23618. alefmaksurainitialarabic: 0xFEF3,
  23619. alefmaksuramedialarabic: 0xFEF4,
  23620. alefpatahhebrew: 0xFB2E,
  23621. alefqamatshebrew: 0xFB2F,
  23622. aleph: 0x2135,
  23623. allequal: 0x224C,
  23624. alpha: 0x03B1,
  23625. alphatonos: 0x03AC,
  23626. amacron: 0x0101,
  23627. amonospace: 0xFF41,
  23628. ampersand: 0x0026,
  23629. ampersandmonospace: 0xFF06,
  23630. ampersandsmall: 0xF726,
  23631. amsquare: 0x33C2,
  23632. anbopomofo: 0x3122,
  23633. angbopomofo: 0x3124,
  23634. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  23635. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  23636. angkhankhuthai: 0x0E5A,
  23637. angle: 0x2220,
  23638. anglebracketleft: 0x3008,
  23639. anglebracketleftvertical: 0xFE3F,
  23640. anglebracketright: 0x3009,
  23641. anglebracketrightvertical: 0xFE40,
  23642. angleleft: 0x2329,
  23643. angleright: 0x232A,
  23644. angstrom: 0x212B,
  23645. anoteleia: 0x0387,
  23646. anudattadeva: 0x0952,
  23647. anusvarabengali: 0x0982,
  23648. anusvaradeva: 0x0902,
  23649. anusvaragujarati: 0x0A82,
  23650. aogonek: 0x0105,
  23651. apaatosquare: 0x3300,
  23652. aparen: 0x249C,
  23653. apostrophearmenian: 0x055A,
  23654. apostrophemod: 0x02BC,
  23655. apple: 0xF8FF,
  23656. approaches: 0x2250,
  23657. approxequal: 0x2248,
  23658. approxequalorimage: 0x2252,
  23659. approximatelyequal: 0x2245,
  23660. araeaekorean: 0x318E,
  23661. araeakorean: 0x318D,
  23662. arc: 0x2312,
  23663. arighthalfring: 0x1E9A,
  23664. aring: 0x00E5,
  23665. aringacute: 0x01FB,
  23666. aringbelow: 0x1E01,
  23667. arrowboth: 0x2194,
  23668. arrowdashdown: 0x21E3,
  23669. arrowdashleft: 0x21E0,
  23670. arrowdashright: 0x21E2,
  23671. arrowdashup: 0x21E1,
  23672. arrowdblboth: 0x21D4,
  23673. arrowdbldown: 0x21D3,
  23674. arrowdblleft: 0x21D0,
  23675. arrowdblright: 0x21D2,
  23676. arrowdblup: 0x21D1,
  23677. arrowdown: 0x2193,
  23678. arrowdownleft: 0x2199,
  23679. arrowdownright: 0x2198,
  23680. arrowdownwhite: 0x21E9,
  23681. arrowheaddownmod: 0x02C5,
  23682. arrowheadleftmod: 0x02C2,
  23683. arrowheadrightmod: 0x02C3,
  23684. arrowheadupmod: 0x02C4,
  23685. arrowhorizex: 0xF8E7,
  23686. arrowleft: 0x2190,
  23687. arrowleftdbl: 0x21D0,
  23688. arrowleftdblstroke: 0x21CD,
  23689. arrowleftoverright: 0x21C6,
  23690. arrowleftwhite: 0x21E6,
  23691. arrowright: 0x2192,
  23692. arrowrightdblstroke: 0x21CF,
  23693. arrowrightheavy: 0x279E,
  23694. arrowrightoverleft: 0x21C4,
  23695. arrowrightwhite: 0x21E8,
  23696. arrowtableft: 0x21E4,
  23697. arrowtabright: 0x21E5,
  23698. arrowup: 0x2191,
  23699. arrowupdn: 0x2195,
  23700. arrowupdnbse: 0x21A8,
  23701. arrowupdownbase: 0x21A8,
  23702. arrowupleft: 0x2196,
  23703. arrowupleftofdown: 0x21C5,
  23704. arrowupright: 0x2197,
  23705. arrowupwhite: 0x21E7,
  23706. arrowvertex: 0xF8E6,
  23707. asciicircum: 0x005E,
  23708. asciicircummonospace: 0xFF3E,
  23709. asciitilde: 0x007E,
  23710. asciitildemonospace: 0xFF5E,
  23711. ascript: 0x0251,
  23712. ascriptturned: 0x0252,
  23713. asmallhiragana: 0x3041,
  23714. asmallkatakana: 0x30A1,
  23715. asmallkatakanahalfwidth: 0xFF67,
  23716. asterisk: 0x002A,
  23717. asteriskaltonearabic: 0x066D,
  23718. asteriskarabic: 0x066D,
  23719. asteriskmath: 0x2217,
  23720. asteriskmonospace: 0xFF0A,
  23721. asterisksmall: 0xFE61,
  23722. asterism: 0x2042,
  23723. asuperior: 0xF6E9,
  23724. asymptoticallyequal: 0x2243,
  23725. at: 0x0040,
  23726. atilde: 0x00E3,
  23727. atmonospace: 0xFF20,
  23728. atsmall: 0xFE6B,
  23729. aturned: 0x0250,
  23730. aubengali: 0x0994,
  23731. aubopomofo: 0x3120,
  23732. audeva: 0x0914,
  23733. augujarati: 0x0A94,
  23734. augurmukhi: 0x0A14,
  23735. aulengthmarkbengali: 0x09D7,
  23736. aumatragurmukhi: 0x0A4C,
  23737. auvowelsignbengali: 0x09CC,
  23738. auvowelsigndeva: 0x094C,
  23739. auvowelsigngujarati: 0x0ACC,
  23740. avagrahadeva: 0x093D,
  23741. aybarmenian: 0x0561,
  23742. ayin: 0x05E2,
  23743. ayinaltonehebrew: 0xFB20,
  23744. ayinhebrew: 0x05E2,
  23745. b: 0x0062,
  23746. babengali: 0x09AC,
  23747. backslash: 0x005C,
  23748. backslashmonospace: 0xFF3C,
  23749. badeva: 0x092C,
  23750. bagujarati: 0x0AAC,
  23751. bagurmukhi: 0x0A2C,
  23752. bahiragana: 0x3070,
  23753. bahtthai: 0x0E3F,
  23754. bakatakana: 0x30D0,
  23755. bar: 0x007C,
  23756. barmonospace: 0xFF5C,
  23757. bbopomofo: 0x3105,
  23758. bcircle: 0x24D1,
  23759. bdotaccent: 0x1E03,
  23760. bdotbelow: 0x1E05,
  23761. beamedsixteenthnotes: 0x266C,
  23762. because: 0x2235,
  23763. becyrillic: 0x0431,
  23764. beharabic: 0x0628,
  23765. behfinalarabic: 0xFE90,
  23766. behinitialarabic: 0xFE91,
  23767. behiragana: 0x3079,
  23768. behmedialarabic: 0xFE92,
  23769. behmeeminitialarabic: 0xFC9F,
  23770. behmeemisolatedarabic: 0xFC08,
  23771. behnoonfinalarabic: 0xFC6D,
  23772. bekatakana: 0x30D9,
  23773. benarmenian: 0x0562,
  23774. bet: 0x05D1,
  23775. beta: 0x03B2,
  23776. betasymbolgreek: 0x03D0,
  23777. betdagesh: 0xFB31,
  23778. betdageshhebrew: 0xFB31,
  23779. bethebrew: 0x05D1,
  23780. betrafehebrew: 0xFB4C,
  23781. bhabengali: 0x09AD,
  23782. bhadeva: 0x092D,
  23783. bhagujarati: 0x0AAD,
  23784. bhagurmukhi: 0x0A2D,
  23785. bhook: 0x0253,
  23786. bihiragana: 0x3073,
  23787. bikatakana: 0x30D3,
  23788. bilabialclick: 0x0298,
  23789. bindigurmukhi: 0x0A02,
  23790. birusquare: 0x3331,
  23791. blackcircle: 0x25CF,
  23792. blackdiamond: 0x25C6,
  23793. blackdownpointingtriangle: 0x25BC,
  23794. blackleftpointingpointer: 0x25C4,
  23795. blackleftpointingtriangle: 0x25C0,
  23796. blacklenticularbracketleft: 0x3010,
  23797. blacklenticularbracketleftvertical: 0xFE3B,
  23798. blacklenticularbracketright: 0x3011,
  23799. blacklenticularbracketrightvertical: 0xFE3C,
  23800. blacklowerlefttriangle: 0x25E3,
  23801. blacklowerrighttriangle: 0x25E2,
  23802. blackrectangle: 0x25AC,
  23803. blackrightpointingpointer: 0x25BA,
  23804. blackrightpointingtriangle: 0x25B6,
  23805. blacksmallsquare: 0x25AA,
  23806. blacksmilingface: 0x263B,
  23807. blacksquare: 0x25A0,
  23808. blackstar: 0x2605,
  23809. blackupperlefttriangle: 0x25E4,
  23810. blackupperrighttriangle: 0x25E5,
  23811. blackuppointingsmalltriangle: 0x25B4,
  23812. blackuppointingtriangle: 0x25B2,
  23813. blank: 0x2423,
  23814. blinebelow: 0x1E07,
  23815. block: 0x2588,
  23816. bmonospace: 0xFF42,
  23817. bobaimaithai: 0x0E1A,
  23818. bohiragana: 0x307C,
  23819. bokatakana: 0x30DC,
  23820. bparen: 0x249D,
  23821. bqsquare: 0x33C3,
  23822. braceex: 0xF8F4,
  23823. braceleft: 0x007B,
  23824. braceleftbt: 0xF8F3,
  23825. braceleftmid: 0xF8F2,
  23826. braceleftmonospace: 0xFF5B,
  23827. braceleftsmall: 0xFE5B,
  23828. bracelefttp: 0xF8F1,
  23829. braceleftvertical: 0xFE37,
  23830. braceright: 0x007D,
  23831. bracerightbt: 0xF8FE,
  23832. bracerightmid: 0xF8FD,
  23833. bracerightmonospace: 0xFF5D,
  23834. bracerightsmall: 0xFE5C,
  23835. bracerighttp: 0xF8FC,
  23836. bracerightvertical: 0xFE38,
  23837. bracketleft: 0x005B,
  23838. bracketleftbt: 0xF8F0,
  23839. bracketleftex: 0xF8EF,
  23840. bracketleftmonospace: 0xFF3B,
  23841. bracketlefttp: 0xF8EE,
  23842. bracketright: 0x005D,
  23843. bracketrightbt: 0xF8FB,
  23844. bracketrightex: 0xF8FA,
  23845. bracketrightmonospace: 0xFF3D,
  23846. bracketrighttp: 0xF8F9,
  23847. breve: 0x02D8,
  23848. brevebelowcmb: 0x032E,
  23849. brevecmb: 0x0306,
  23850. breveinvertedbelowcmb: 0x032F,
  23851. breveinvertedcmb: 0x0311,
  23852. breveinverteddoublecmb: 0x0361,
  23853. bridgebelowcmb: 0x032A,
  23854. bridgeinvertedbelowcmb: 0x033A,
  23855. brokenbar: 0x00A6,
  23856. bstroke: 0x0180,
  23857. bsuperior: 0xF6EA,
  23858. btopbar: 0x0183,
  23859. buhiragana: 0x3076,
  23860. bukatakana: 0x30D6,
  23861. bullet: 0x2022,
  23862. bulletinverse: 0x25D8,
  23863. bulletoperator: 0x2219,
  23864. bullseye: 0x25CE,
  23865. c: 0x0063,
  23866. caarmenian: 0x056E,
  23867. cabengali: 0x099A,
  23868. cacute: 0x0107,
  23869. cadeva: 0x091A,
  23870. cagujarati: 0x0A9A,
  23871. cagurmukhi: 0x0A1A,
  23872. calsquare: 0x3388,
  23873. candrabindubengali: 0x0981,
  23874. candrabinducmb: 0x0310,
  23875. candrabindudeva: 0x0901,
  23876. candrabindugujarati: 0x0A81,
  23877. capslock: 0x21EA,
  23878. careof: 0x2105,
  23879. caron: 0x02C7,
  23880. caronbelowcmb: 0x032C,
  23881. caroncmb: 0x030C,
  23882. carriagereturn: 0x21B5,
  23883. cbopomofo: 0x3118,
  23884. ccaron: 0x010D,
  23885. ccedilla: 0x00E7,
  23886. ccedillaacute: 0x1E09,
  23887. ccircle: 0x24D2,
  23888. ccircumflex: 0x0109,
  23889. ccurl: 0x0255,
  23890. cdot: 0x010B,
  23891. cdotaccent: 0x010B,
  23892. cdsquare: 0x33C5,
  23893. cedilla: 0x00B8,
  23894. cedillacmb: 0x0327,
  23895. cent: 0x00A2,
  23896. centigrade: 0x2103,
  23897. centinferior: 0xF6DF,
  23898. centmonospace: 0xFFE0,
  23899. centoldstyle: 0xF7A2,
  23900. centsuperior: 0xF6E0,
  23901. chaarmenian: 0x0579,
  23902. chabengali: 0x099B,
  23903. chadeva: 0x091B,
  23904. chagujarati: 0x0A9B,
  23905. chagurmukhi: 0x0A1B,
  23906. chbopomofo: 0x3114,
  23907. cheabkhasiancyrillic: 0x04BD,
  23908. checkmark: 0x2713,
  23909. checyrillic: 0x0447,
  23910. chedescenderabkhasiancyrillic: 0x04BF,
  23911. chedescendercyrillic: 0x04B7,
  23912. chedieresiscyrillic: 0x04F5,
  23913. cheharmenian: 0x0573,
  23914. chekhakassiancyrillic: 0x04CC,
  23915. cheverticalstrokecyrillic: 0x04B9,
  23916. chi: 0x03C7,
  23917. chieuchacirclekorean: 0x3277,
  23918. chieuchaparenkorean: 0x3217,
  23919. chieuchcirclekorean: 0x3269,
  23920. chieuchkorean: 0x314A,
  23921. chieuchparenkorean: 0x3209,
  23922. chochangthai: 0x0E0A,
  23923. chochanthai: 0x0E08,
  23924. chochingthai: 0x0E09,
  23925. chochoethai: 0x0E0C,
  23926. chook: 0x0188,
  23927. cieucacirclekorean: 0x3276,
  23928. cieucaparenkorean: 0x3216,
  23929. cieuccirclekorean: 0x3268,
  23930. cieuckorean: 0x3148,
  23931. cieucparenkorean: 0x3208,
  23932. cieucuparenkorean: 0x321C,
  23933. circle: 0x25CB,
  23934. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  23935. circlemultiply: 0x2297,
  23936. circleot: 0x2299,
  23937. circleplus: 0x2295,
  23938. circlepostalmark: 0x3036,
  23939. circlewithlefthalfblack: 0x25D0,
  23940. circlewithrighthalfblack: 0x25D1,
  23941. circumflex: 0x02C6,
  23942. circumflexbelowcmb: 0x032D,
  23943. circumflexcmb: 0x0302,
  23944. clear: 0x2327,
  23945. clickalveolar: 0x01C2,
  23946. clickdental: 0x01C0,
  23947. clicklateral: 0x01C1,
  23948. clickretroflex: 0x01C3,
  23949. club: 0x2663,
  23950. clubsuitblack: 0x2663,
  23951. clubsuitwhite: 0x2667,
  23952. cmcubedsquare: 0x33A4,
  23953. cmonospace: 0xFF43,
  23954. cmsquaredsquare: 0x33A0,
  23955. coarmenian: 0x0581,
  23956. colon: 0x003A,
  23957. colonmonetary: 0x20A1,
  23958. colonmonospace: 0xFF1A,
  23959. colonsign: 0x20A1,
  23960. colonsmall: 0xFE55,
  23961. colontriangularhalfmod: 0x02D1,
  23962. colontriangularmod: 0x02D0,
  23963. comma: 0x002C,
  23964. commaabovecmb: 0x0313,
  23965. commaaboverightcmb: 0x0315,
  23966. commaaccent: 0xF6C3,
  23967. commaarabic: 0x060C,
  23968. commaarmenian: 0x055D,
  23969. commainferior: 0xF6E1,
  23970. commamonospace: 0xFF0C,
  23971. commareversedabovecmb: 0x0314,
  23972. commareversedmod: 0x02BD,
  23973. commasmall: 0xFE50,
  23974. commasuperior: 0xF6E2,
  23975. commaturnedabovecmb: 0x0312,
  23976. commaturnedmod: 0x02BB,
  23977. compass: 0x263C,
  23978. congruent: 0x2245,
  23979. contourintegral: 0x222E,
  23980. control: 0x2303,
  23981. controlACK: 0x0006,
  23982. controlBEL: 0x0007,
  23983. controlBS: 0x0008,
  23984. controlCAN: 0x0018,
  23985. controlCR: 0x000D,
  23986. controlDC1: 0x0011,
  23987. controlDC2: 0x0012,
  23988. controlDC3: 0x0013,
  23989. controlDC4: 0x0014,
  23990. controlDEL: 0x007F,
  23991. controlDLE: 0x0010,
  23992. controlEM: 0x0019,
  23993. controlENQ: 0x0005,
  23994. controlEOT: 0x0004,
  23995. controlESC: 0x001B,
  23996. controlETB: 0x0017,
  23997. controlETX: 0x0003,
  23998. controlFF: 0x000C,
  23999. controlFS: 0x001C,
  24000. controlGS: 0x001D,
  24001. controlHT: 0x0009,
  24002. controlLF: 0x000A,
  24003. controlNAK: 0x0015,
  24004. controlRS: 0x001E,
  24005. controlSI: 0x000F,
  24006. controlSO: 0x000E,
  24007. controlSOT: 0x0002,
  24008. controlSTX: 0x0001,
  24009. controlSUB: 0x001A,
  24010. controlSYN: 0x0016,
  24011. controlUS: 0x001F,
  24012. controlVT: 0x000B,
  24013. copyright: 0x00A9,
  24014. copyrightsans: 0xF8E9,
  24015. copyrightserif: 0xF6D9,
  24016. cornerbracketleft: 0x300C,
  24017. cornerbracketlefthalfwidth: 0xFF62,
  24018. cornerbracketleftvertical: 0xFE41,
  24019. cornerbracketright: 0x300D,
  24020. cornerbracketrighthalfwidth: 0xFF63,
  24021. cornerbracketrightvertical: 0xFE42,
  24022. corporationsquare: 0x337F,
  24023. cosquare: 0x33C7,
  24024. coverkgsquare: 0x33C6,
  24025. cparen: 0x249E,
  24026. cruzeiro: 0x20A2,
  24027. cstretched: 0x0297,
  24028. curlyand: 0x22CF,
  24029. curlyor: 0x22CE,
  24030. currency: 0x00A4,
  24031. cyrBreve: 0xF6D1,
  24032. cyrFlex: 0xF6D2,
  24033. cyrbreve: 0xF6D4,
  24034. cyrflex: 0xF6D5,
  24035. d: 0x0064,
  24036. daarmenian: 0x0564,
  24037. dabengali: 0x09A6,
  24038. dadarabic: 0x0636,
  24039. dadeva: 0x0926,
  24040. dadfinalarabic: 0xFEBE,
  24041. dadinitialarabic: 0xFEBF,
  24042. dadmedialarabic: 0xFEC0,
  24043. dagesh: 0x05BC,
  24044. dageshhebrew: 0x05BC,
  24045. dagger: 0x2020,
  24046. daggerdbl: 0x2021,
  24047. dagujarati: 0x0AA6,
  24048. dagurmukhi: 0x0A26,
  24049. dahiragana: 0x3060,
  24050. dakatakana: 0x30C0,
  24051. dalarabic: 0x062F,
  24052. dalet: 0x05D3,
  24053. daletdagesh: 0xFB33,
  24054. daletdageshhebrew: 0xFB33,
  24055. dalethebrew: 0x05D3,
  24056. dalfinalarabic: 0xFEAA,
  24057. dammaarabic: 0x064F,
  24058. dammalowarabic: 0x064F,
  24059. dammatanaltonearabic: 0x064C,
  24060. dammatanarabic: 0x064C,
  24061. danda: 0x0964,
  24062. dargahebrew: 0x05A7,
  24063. dargalefthebrew: 0x05A7,
  24064. dasiapneumatacyrilliccmb: 0x0485,
  24065. dblGrave: 0xF6D3,
  24066. dblanglebracketleft: 0x300A,
  24067. dblanglebracketleftvertical: 0xFE3D,
  24068. dblanglebracketright: 0x300B,
  24069. dblanglebracketrightvertical: 0xFE3E,
  24070. dblarchinvertedbelowcmb: 0x032B,
  24071. dblarrowleft: 0x21D4,
  24072. dblarrowright: 0x21D2,
  24073. dbldanda: 0x0965,
  24074. dblgrave: 0xF6D6,
  24075. dblgravecmb: 0x030F,
  24076. dblintegral: 0x222C,
  24077. dbllowline: 0x2017,
  24078. dbllowlinecmb: 0x0333,
  24079. dbloverlinecmb: 0x033F,
  24080. dblprimemod: 0x02BA,
  24081. dblverticalbar: 0x2016,
  24082. dblverticallineabovecmb: 0x030E,
  24083. dbopomofo: 0x3109,
  24084. dbsquare: 0x33C8,
  24085. dcaron: 0x010F,
  24086. dcedilla: 0x1E11,
  24087. dcircle: 0x24D3,
  24088. dcircumflexbelow: 0x1E13,
  24089. dcroat: 0x0111,
  24090. ddabengali: 0x09A1,
  24091. ddadeva: 0x0921,
  24092. ddagujarati: 0x0AA1,
  24093. ddagurmukhi: 0x0A21,
  24094. ddalarabic: 0x0688,
  24095. ddalfinalarabic: 0xFB89,
  24096. dddhadeva: 0x095C,
  24097. ddhabengali: 0x09A2,
  24098. ddhadeva: 0x0922,
  24099. ddhagujarati: 0x0AA2,
  24100. ddhagurmukhi: 0x0A22,
  24101. ddotaccent: 0x1E0B,
  24102. ddotbelow: 0x1E0D,
  24103. decimalseparatorarabic: 0x066B,
  24104. decimalseparatorpersian: 0x066B,
  24105. decyrillic: 0x0434,
  24106. degree: 0x00B0,
  24107. dehihebrew: 0x05AD,
  24108. dehiragana: 0x3067,
  24109. deicoptic: 0x03EF,
  24110. dekatakana: 0x30C7,
  24111. deleteleft: 0x232B,
  24112. deleteright: 0x2326,
  24113. delta: 0x03B4,
  24114. deltaturned: 0x018D,
  24115. denominatorminusonenumeratorbengali: 0x09F8,
  24116. dezh: 0x02A4,
  24117. dhabengali: 0x09A7,
  24118. dhadeva: 0x0927,
  24119. dhagujarati: 0x0AA7,
  24120. dhagurmukhi: 0x0A27,
  24121. dhook: 0x0257,
  24122. dialytikatonos: 0x0385,
  24123. dialytikatonoscmb: 0x0344,
  24124. diamond: 0x2666,
  24125. diamondsuitwhite: 0x2662,
  24126. dieresis: 0x00A8,
  24127. dieresisacute: 0xF6D7,
  24128. dieresisbelowcmb: 0x0324,
  24129. dieresiscmb: 0x0308,
  24130. dieresisgrave: 0xF6D8,
  24131. dieresistonos: 0x0385,
  24132. dihiragana: 0x3062,
  24133. dikatakana: 0x30C2,
  24134. dittomark: 0x3003,
  24135. divide: 0x00F7,
  24136. divides: 0x2223,
  24137. divisionslash: 0x2215,
  24138. djecyrillic: 0x0452,
  24139. dkshade: 0x2593,
  24140. dlinebelow: 0x1E0F,
  24141. dlsquare: 0x3397,
  24142. dmacron: 0x0111,
  24143. dmonospace: 0xFF44,
  24144. dnblock: 0x2584,
  24145. dochadathai: 0x0E0E,
  24146. dodekthai: 0x0E14,
  24147. dohiragana: 0x3069,
  24148. dokatakana: 0x30C9,
  24149. dollar: 0x0024,
  24150. dollarinferior: 0xF6E3,
  24151. dollarmonospace: 0xFF04,
  24152. dollaroldstyle: 0xF724,
  24153. dollarsmall: 0xFE69,
  24154. dollarsuperior: 0xF6E4,
  24155. dong: 0x20AB,
  24156. dorusquare: 0x3326,
  24157. dotaccent: 0x02D9,
  24158. dotaccentcmb: 0x0307,
  24159. dotbelowcmb: 0x0323,
  24160. dotbelowcomb: 0x0323,
  24161. dotkatakana: 0x30FB,
  24162. dotlessi: 0x0131,
  24163. dotlessj: 0xF6BE,
  24164. dotlessjstrokehook: 0x0284,
  24165. dotmath: 0x22C5,
  24166. dottedcircle: 0x25CC,
  24167. doubleyodpatah: 0xFB1F,
  24168. doubleyodpatahhebrew: 0xFB1F,
  24169. downtackbelowcmb: 0x031E,
  24170. downtackmod: 0x02D5,
  24171. dparen: 0x249F,
  24172. dsuperior: 0xF6EB,
  24173. dtail: 0x0256,
  24174. dtopbar: 0x018C,
  24175. duhiragana: 0x3065,
  24176. dukatakana: 0x30C5,
  24177. dz: 0x01F3,
  24178. dzaltone: 0x02A3,
  24179. dzcaron: 0x01C6,
  24180. dzcurl: 0x02A5,
  24181. dzeabkhasiancyrillic: 0x04E1,
  24182. dzecyrillic: 0x0455,
  24183. dzhecyrillic: 0x045F,
  24184. e: 0x0065,
  24185. eacute: 0x00E9,
  24186. earth: 0x2641,
  24187. ebengali: 0x098F,
  24188. ebopomofo: 0x311C,
  24189. ebreve: 0x0115,
  24190. ecandradeva: 0x090D,
  24191. ecandragujarati: 0x0A8D,
  24192. ecandravowelsigndeva: 0x0945,
  24193. ecandravowelsigngujarati: 0x0AC5,
  24194. ecaron: 0x011B,
  24195. ecedillabreve: 0x1E1D,
  24196. echarmenian: 0x0565,
  24197. echyiwnarmenian: 0x0587,
  24198. ecircle: 0x24D4,
  24199. ecircumflex: 0x00EA,
  24200. ecircumflexacute: 0x1EBF,
  24201. ecircumflexbelow: 0x1E19,
  24202. ecircumflexdotbelow: 0x1EC7,
  24203. ecircumflexgrave: 0x1EC1,
  24204. ecircumflexhookabove: 0x1EC3,
  24205. ecircumflextilde: 0x1EC5,
  24206. ecyrillic: 0x0454,
  24207. edblgrave: 0x0205,
  24208. edeva: 0x090F,
  24209. edieresis: 0x00EB,
  24210. edot: 0x0117,
  24211. edotaccent: 0x0117,
  24212. edotbelow: 0x1EB9,
  24213. eegurmukhi: 0x0A0F,
  24214. eematragurmukhi: 0x0A47,
  24215. efcyrillic: 0x0444,
  24216. egrave: 0x00E8,
  24217. egujarati: 0x0A8F,
  24218. eharmenian: 0x0567,
  24219. ehbopomofo: 0x311D,
  24220. ehiragana: 0x3048,
  24221. ehookabove: 0x1EBB,
  24222. eibopomofo: 0x311F,
  24223. eight: 0x0038,
  24224. eightarabic: 0x0668,
  24225. eightbengali: 0x09EE,
  24226. eightcircle: 0x2467,
  24227. eightcircleinversesansserif: 0x2791,
  24228. eightdeva: 0x096E,
  24229. eighteencircle: 0x2471,
  24230. eighteenparen: 0x2485,
  24231. eighteenperiod: 0x2499,
  24232. eightgujarati: 0x0AEE,
  24233. eightgurmukhi: 0x0A6E,
  24234. eighthackarabic: 0x0668,
  24235. eighthangzhou: 0x3028,
  24236. eighthnotebeamed: 0x266B,
  24237. eightideographicparen: 0x3227,
  24238. eightinferior: 0x2088,
  24239. eightmonospace: 0xFF18,
  24240. eightoldstyle: 0xF738,
  24241. eightparen: 0x247B,
  24242. eightperiod: 0x248F,
  24243. eightpersian: 0x06F8,
  24244. eightroman: 0x2177,
  24245. eightsuperior: 0x2078,
  24246. eightthai: 0x0E58,
  24247. einvertedbreve: 0x0207,
  24248. eiotifiedcyrillic: 0x0465,
  24249. ekatakana: 0x30A8,
  24250. ekatakanahalfwidth: 0xFF74,
  24251. ekonkargurmukhi: 0x0A74,
  24252. ekorean: 0x3154,
  24253. elcyrillic: 0x043B,
  24254. element: 0x2208,
  24255. elevencircle: 0x246A,
  24256. elevenparen: 0x247E,
  24257. elevenperiod: 0x2492,
  24258. elevenroman: 0x217A,
  24259. ellipsis: 0x2026,
  24260. ellipsisvertical: 0x22EE,
  24261. emacron: 0x0113,
  24262. emacronacute: 0x1E17,
  24263. emacrongrave: 0x1E15,
  24264. emcyrillic: 0x043C,
  24265. emdash: 0x2014,
  24266. emdashvertical: 0xFE31,
  24267. emonospace: 0xFF45,
  24268. emphasismarkarmenian: 0x055B,
  24269. emptyset: 0x2205,
  24270. enbopomofo: 0x3123,
  24271. encyrillic: 0x043D,
  24272. endash: 0x2013,
  24273. endashvertical: 0xFE32,
  24274. endescendercyrillic: 0x04A3,
  24275. eng: 0x014B,
  24276. engbopomofo: 0x3125,
  24277. enghecyrillic: 0x04A5,
  24278. enhookcyrillic: 0x04C8,
  24279. enspace: 0x2002,
  24280. eogonek: 0x0119,
  24281. eokorean: 0x3153,
  24282. eopen: 0x025B,
  24283. eopenclosed: 0x029A,
  24284. eopenreversed: 0x025C,
  24285. eopenreversedclosed: 0x025E,
  24286. eopenreversedhook: 0x025D,
  24287. eparen: 0x24A0,
  24288. epsilon: 0x03B5,
  24289. epsilontonos: 0x03AD,
  24290. equal: 0x003D,
  24291. equalmonospace: 0xFF1D,
  24292. equalsmall: 0xFE66,
  24293. equalsuperior: 0x207C,
  24294. equivalence: 0x2261,
  24295. erbopomofo: 0x3126,
  24296. ercyrillic: 0x0440,
  24297. ereversed: 0x0258,
  24298. ereversedcyrillic: 0x044D,
  24299. escyrillic: 0x0441,
  24300. esdescendercyrillic: 0x04AB,
  24301. esh: 0x0283,
  24302. eshcurl: 0x0286,
  24303. eshortdeva: 0x090E,
  24304. eshortvowelsigndeva: 0x0946,
  24305. eshreversedloop: 0x01AA,
  24306. eshsquatreversed: 0x0285,
  24307. esmallhiragana: 0x3047,
  24308. esmallkatakana: 0x30A7,
  24309. esmallkatakanahalfwidth: 0xFF6A,
  24310. estimated: 0x212E,
  24311. esuperior: 0xF6EC,
  24312. eta: 0x03B7,
  24313. etarmenian: 0x0568,
  24314. etatonos: 0x03AE,
  24315. eth: 0x00F0,
  24316. etilde: 0x1EBD,
  24317. etildebelow: 0x1E1B,
  24318. etnahtafoukhhebrew: 0x0591,
  24319. etnahtafoukhlefthebrew: 0x0591,
  24320. etnahtahebrew: 0x0591,
  24321. etnahtalefthebrew: 0x0591,
  24322. eturned: 0x01DD,
  24323. eukorean: 0x3161,
  24324. euro: 0x20AC,
  24325. evowelsignbengali: 0x09C7,
  24326. evowelsigndeva: 0x0947,
  24327. evowelsigngujarati: 0x0AC7,
  24328. exclam: 0x0021,
  24329. exclamarmenian: 0x055C,
  24330. exclamdbl: 0x203C,
  24331. exclamdown: 0x00A1,
  24332. exclamdownsmall: 0xF7A1,
  24333. exclammonospace: 0xFF01,
  24334. exclamsmall: 0xF721,
  24335. existential: 0x2203,
  24336. ezh: 0x0292,
  24337. ezhcaron: 0x01EF,
  24338. ezhcurl: 0x0293,
  24339. ezhreversed: 0x01B9,
  24340. ezhtail: 0x01BA,
  24341. f: 0x0066,
  24342. fadeva: 0x095E,
  24343. fagurmukhi: 0x0A5E,
  24344. fahrenheit: 0x2109,
  24345. fathaarabic: 0x064E,
  24346. fathalowarabic: 0x064E,
  24347. fathatanarabic: 0x064B,
  24348. fbopomofo: 0x3108,
  24349. fcircle: 0x24D5,
  24350. fdotaccent: 0x1E1F,
  24351. feharabic: 0x0641,
  24352. feharmenian: 0x0586,
  24353. fehfinalarabic: 0xFED2,
  24354. fehinitialarabic: 0xFED3,
  24355. fehmedialarabic: 0xFED4,
  24356. feicoptic: 0x03E5,
  24357. female: 0x2640,
  24358. ff: 0xFB00,
  24359. ffi: 0xFB03,
  24360. ffl: 0xFB04,
  24361. fi: 0xFB01,
  24362. fifteencircle: 0x246E,
  24363. fifteenparen: 0x2482,
  24364. fifteenperiod: 0x2496,
  24365. figuredash: 0x2012,
  24366. filledbox: 0x25A0,
  24367. filledrect: 0x25AC,
  24368. finalkaf: 0x05DA,
  24369. finalkafdagesh: 0xFB3A,
  24370. finalkafdageshhebrew: 0xFB3A,
  24371. finalkafhebrew: 0x05DA,
  24372. finalmem: 0x05DD,
  24373. finalmemhebrew: 0x05DD,
  24374. finalnun: 0x05DF,
  24375. finalnunhebrew: 0x05DF,
  24376. finalpe: 0x05E3,
  24377. finalpehebrew: 0x05E3,
  24378. finaltsadi: 0x05E5,
  24379. finaltsadihebrew: 0x05E5,
  24380. firsttonechinese: 0x02C9,
  24381. fisheye: 0x25C9,
  24382. fitacyrillic: 0x0473,
  24383. five: 0x0035,
  24384. fivearabic: 0x0665,
  24385. fivebengali: 0x09EB,
  24386. fivecircle: 0x2464,
  24387. fivecircleinversesansserif: 0x278E,
  24388. fivedeva: 0x096B,
  24389. fiveeighths: 0x215D,
  24390. fivegujarati: 0x0AEB,
  24391. fivegurmukhi: 0x0A6B,
  24392. fivehackarabic: 0x0665,
  24393. fivehangzhou: 0x3025,
  24394. fiveideographicparen: 0x3224,
  24395. fiveinferior: 0x2085,
  24396. fivemonospace: 0xFF15,
  24397. fiveoldstyle: 0xF735,
  24398. fiveparen: 0x2478,
  24399. fiveperiod: 0x248C,
  24400. fivepersian: 0x06F5,
  24401. fiveroman: 0x2174,
  24402. fivesuperior: 0x2075,
  24403. fivethai: 0x0E55,
  24404. fl: 0xFB02,
  24405. florin: 0x0192,
  24406. fmonospace: 0xFF46,
  24407. fmsquare: 0x3399,
  24408. fofanthai: 0x0E1F,
  24409. fofathai: 0x0E1D,
  24410. fongmanthai: 0x0E4F,
  24411. forall: 0x2200,
  24412. four: 0x0034,
  24413. fourarabic: 0x0664,
  24414. fourbengali: 0x09EA,
  24415. fourcircle: 0x2463,
  24416. fourcircleinversesansserif: 0x278D,
  24417. fourdeva: 0x096A,
  24418. fourgujarati: 0x0AEA,
  24419. fourgurmukhi: 0x0A6A,
  24420. fourhackarabic: 0x0664,
  24421. fourhangzhou: 0x3024,
  24422. fourideographicparen: 0x3223,
  24423. fourinferior: 0x2084,
  24424. fourmonospace: 0xFF14,
  24425. fournumeratorbengali: 0x09F7,
  24426. fouroldstyle: 0xF734,
  24427. fourparen: 0x2477,
  24428. fourperiod: 0x248B,
  24429. fourpersian: 0x06F4,
  24430. fourroman: 0x2173,
  24431. foursuperior: 0x2074,
  24432. fourteencircle: 0x246D,
  24433. fourteenparen: 0x2481,
  24434. fourteenperiod: 0x2495,
  24435. fourthai: 0x0E54,
  24436. fourthtonechinese: 0x02CB,
  24437. fparen: 0x24A1,
  24438. fraction: 0x2044,
  24439. franc: 0x20A3,
  24440. g: 0x0067,
  24441. gabengali: 0x0997,
  24442. gacute: 0x01F5,
  24443. gadeva: 0x0917,
  24444. gafarabic: 0x06AF,
  24445. gaffinalarabic: 0xFB93,
  24446. gafinitialarabic: 0xFB94,
  24447. gafmedialarabic: 0xFB95,
  24448. gagujarati: 0x0A97,
  24449. gagurmukhi: 0x0A17,
  24450. gahiragana: 0x304C,
  24451. gakatakana: 0x30AC,
  24452. gamma: 0x03B3,
  24453. gammalatinsmall: 0x0263,
  24454. gammasuperior: 0x02E0,
  24455. gangiacoptic: 0x03EB,
  24456. gbopomofo: 0x310D,
  24457. gbreve: 0x011F,
  24458. gcaron: 0x01E7,
  24459. gcedilla: 0x0123,
  24460. gcircle: 0x24D6,
  24461. gcircumflex: 0x011D,
  24462. gcommaaccent: 0x0123,
  24463. gdot: 0x0121,
  24464. gdotaccent: 0x0121,
  24465. gecyrillic: 0x0433,
  24466. gehiragana: 0x3052,
  24467. gekatakana: 0x30B2,
  24468. geometricallyequal: 0x2251,
  24469. gereshaccenthebrew: 0x059C,
  24470. gereshhebrew: 0x05F3,
  24471. gereshmuqdamhebrew: 0x059D,
  24472. germandbls: 0x00DF,
  24473. gershayimaccenthebrew: 0x059E,
  24474. gershayimhebrew: 0x05F4,
  24475. getamark: 0x3013,
  24476. ghabengali: 0x0998,
  24477. ghadarmenian: 0x0572,
  24478. ghadeva: 0x0918,
  24479. ghagujarati: 0x0A98,
  24480. ghagurmukhi: 0x0A18,
  24481. ghainarabic: 0x063A,
  24482. ghainfinalarabic: 0xFECE,
  24483. ghaininitialarabic: 0xFECF,
  24484. ghainmedialarabic: 0xFED0,
  24485. ghemiddlehookcyrillic: 0x0495,
  24486. ghestrokecyrillic: 0x0493,
  24487. gheupturncyrillic: 0x0491,
  24488. ghhadeva: 0x095A,
  24489. ghhagurmukhi: 0x0A5A,
  24490. ghook: 0x0260,
  24491. ghzsquare: 0x3393,
  24492. gihiragana: 0x304E,
  24493. gikatakana: 0x30AE,
  24494. gimarmenian: 0x0563,
  24495. gimel: 0x05D2,
  24496. gimeldagesh: 0xFB32,
  24497. gimeldageshhebrew: 0xFB32,
  24498. gimelhebrew: 0x05D2,
  24499. gjecyrillic: 0x0453,
  24500. glottalinvertedstroke: 0x01BE,
  24501. glottalstop: 0x0294,
  24502. glottalstopinverted: 0x0296,
  24503. glottalstopmod: 0x02C0,
  24504. glottalstopreversed: 0x0295,
  24505. glottalstopreversedmod: 0x02C1,
  24506. glottalstopreversedsuperior: 0x02E4,
  24507. glottalstopstroke: 0x02A1,
  24508. glottalstopstrokereversed: 0x02A2,
  24509. gmacron: 0x1E21,
  24510. gmonospace: 0xFF47,
  24511. gohiragana: 0x3054,
  24512. gokatakana: 0x30B4,
  24513. gparen: 0x24A2,
  24514. gpasquare: 0x33AC,
  24515. gradient: 0x2207,
  24516. grave: 0x0060,
  24517. gravebelowcmb: 0x0316,
  24518. gravecmb: 0x0300,
  24519. gravecomb: 0x0300,
  24520. gravedeva: 0x0953,
  24521. gravelowmod: 0x02CE,
  24522. gravemonospace: 0xFF40,
  24523. gravetonecmb: 0x0340,
  24524. greater: 0x003E,
  24525. greaterequal: 0x2265,
  24526. greaterequalorless: 0x22DB,
  24527. greatermonospace: 0xFF1E,
  24528. greaterorequivalent: 0x2273,
  24529. greaterorless: 0x2277,
  24530. greateroverequal: 0x2267,
  24531. greatersmall: 0xFE65,
  24532. gscript: 0x0261,
  24533. gstroke: 0x01E5,
  24534. guhiragana: 0x3050,
  24535. guillemotleft: 0x00AB,
  24536. guillemotright: 0x00BB,
  24537. guilsinglleft: 0x2039,
  24538. guilsinglright: 0x203A,
  24539. gukatakana: 0x30B0,
  24540. guramusquare: 0x3318,
  24541. gysquare: 0x33C9,
  24542. h: 0x0068,
  24543. haabkhasiancyrillic: 0x04A9,
  24544. haaltonearabic: 0x06C1,
  24545. habengali: 0x09B9,
  24546. hadescendercyrillic: 0x04B3,
  24547. hadeva: 0x0939,
  24548. hagujarati: 0x0AB9,
  24549. hagurmukhi: 0x0A39,
  24550. haharabic: 0x062D,
  24551. hahfinalarabic: 0xFEA2,
  24552. hahinitialarabic: 0xFEA3,
  24553. hahiragana: 0x306F,
  24554. hahmedialarabic: 0xFEA4,
  24555. haitusquare: 0x332A,
  24556. hakatakana: 0x30CF,
  24557. hakatakanahalfwidth: 0xFF8A,
  24558. halantgurmukhi: 0x0A4D,
  24559. hamzaarabic: 0x0621,
  24560. hamzalowarabic: 0x0621,
  24561. hangulfiller: 0x3164,
  24562. hardsigncyrillic: 0x044A,
  24563. harpoonleftbarbup: 0x21BC,
  24564. harpoonrightbarbup: 0x21C0,
  24565. hasquare: 0x33CA,
  24566. hatafpatah: 0x05B2,
  24567. hatafpatah16: 0x05B2,
  24568. hatafpatah23: 0x05B2,
  24569. hatafpatah2f: 0x05B2,
  24570. hatafpatahhebrew: 0x05B2,
  24571. hatafpatahnarrowhebrew: 0x05B2,
  24572. hatafpatahquarterhebrew: 0x05B2,
  24573. hatafpatahwidehebrew: 0x05B2,
  24574. hatafqamats: 0x05B3,
  24575. hatafqamats1b: 0x05B3,
  24576. hatafqamats28: 0x05B3,
  24577. hatafqamats34: 0x05B3,
  24578. hatafqamatshebrew: 0x05B3,
  24579. hatafqamatsnarrowhebrew: 0x05B3,
  24580. hatafqamatsquarterhebrew: 0x05B3,
  24581. hatafqamatswidehebrew: 0x05B3,
  24582. hatafsegol: 0x05B1,
  24583. hatafsegol17: 0x05B1,
  24584. hatafsegol24: 0x05B1,
  24585. hatafsegol30: 0x05B1,
  24586. hatafsegolhebrew: 0x05B1,
  24587. hatafsegolnarrowhebrew: 0x05B1,
  24588. hatafsegolquarterhebrew: 0x05B1,
  24589. hatafsegolwidehebrew: 0x05B1,
  24590. hbar: 0x0127,
  24591. hbopomofo: 0x310F,
  24592. hbrevebelow: 0x1E2B,
  24593. hcedilla: 0x1E29,
  24594. hcircle: 0x24D7,
  24595. hcircumflex: 0x0125,
  24596. hdieresis: 0x1E27,
  24597. hdotaccent: 0x1E23,
  24598. hdotbelow: 0x1E25,
  24599. he: 0x05D4,
  24600. heart: 0x2665,
  24601. heartsuitblack: 0x2665,
  24602. heartsuitwhite: 0x2661,
  24603. hedagesh: 0xFB34,
  24604. hedageshhebrew: 0xFB34,
  24605. hehaltonearabic: 0x06C1,
  24606. heharabic: 0x0647,
  24607. hehebrew: 0x05D4,
  24608. hehfinalaltonearabic: 0xFBA7,
  24609. hehfinalalttwoarabic: 0xFEEA,
  24610. hehfinalarabic: 0xFEEA,
  24611. hehhamzaabovefinalarabic: 0xFBA5,
  24612. hehhamzaaboveisolatedarabic: 0xFBA4,
  24613. hehinitialaltonearabic: 0xFBA8,
  24614. hehinitialarabic: 0xFEEB,
  24615. hehiragana: 0x3078,
  24616. hehmedialaltonearabic: 0xFBA9,
  24617. hehmedialarabic: 0xFEEC,
  24618. heiseierasquare: 0x337B,
  24619. hekatakana: 0x30D8,
  24620. hekatakanahalfwidth: 0xFF8D,
  24621. hekutaarusquare: 0x3336,
  24622. henghook: 0x0267,
  24623. herutusquare: 0x3339,
  24624. het: 0x05D7,
  24625. hethebrew: 0x05D7,
  24626. hhook: 0x0266,
  24627. hhooksuperior: 0x02B1,
  24628. hieuhacirclekorean: 0x327B,
  24629. hieuhaparenkorean: 0x321B,
  24630. hieuhcirclekorean: 0x326D,
  24631. hieuhkorean: 0x314E,
  24632. hieuhparenkorean: 0x320D,
  24633. hihiragana: 0x3072,
  24634. hikatakana: 0x30D2,
  24635. hikatakanahalfwidth: 0xFF8B,
  24636. hiriq: 0x05B4,
  24637. hiriq14: 0x05B4,
  24638. hiriq21: 0x05B4,
  24639. hiriq2d: 0x05B4,
  24640. hiriqhebrew: 0x05B4,
  24641. hiriqnarrowhebrew: 0x05B4,
  24642. hiriqquarterhebrew: 0x05B4,
  24643. hiriqwidehebrew: 0x05B4,
  24644. hlinebelow: 0x1E96,
  24645. hmonospace: 0xFF48,
  24646. hoarmenian: 0x0570,
  24647. hohipthai: 0x0E2B,
  24648. hohiragana: 0x307B,
  24649. hokatakana: 0x30DB,
  24650. hokatakanahalfwidth: 0xFF8E,
  24651. holam: 0x05B9,
  24652. holam19: 0x05B9,
  24653. holam26: 0x05B9,
  24654. holam32: 0x05B9,
  24655. holamhebrew: 0x05B9,
  24656. holamnarrowhebrew: 0x05B9,
  24657. holamquarterhebrew: 0x05B9,
  24658. holamwidehebrew: 0x05B9,
  24659. honokhukthai: 0x0E2E,
  24660. hookabovecomb: 0x0309,
  24661. hookcmb: 0x0309,
  24662. hookpalatalizedbelowcmb: 0x0321,
  24663. hookretroflexbelowcmb: 0x0322,
  24664. hoonsquare: 0x3342,
  24665. horicoptic: 0x03E9,
  24666. horizontalbar: 0x2015,
  24667. horncmb: 0x031B,
  24668. hotsprings: 0x2668,
  24669. house: 0x2302,
  24670. hparen: 0x24A3,
  24671. hsuperior: 0x02B0,
  24672. hturned: 0x0265,
  24673. huhiragana: 0x3075,
  24674. huiitosquare: 0x3333,
  24675. hukatakana: 0x30D5,
  24676. hukatakanahalfwidth: 0xFF8C,
  24677. hungarumlaut: 0x02DD,
  24678. hungarumlautcmb: 0x030B,
  24679. hv: 0x0195,
  24680. hyphen: 0x002D,
  24681. hypheninferior: 0xF6E5,
  24682. hyphenmonospace: 0xFF0D,
  24683. hyphensmall: 0xFE63,
  24684. hyphensuperior: 0xF6E6,
  24685. hyphentwo: 0x2010,
  24686. i: 0x0069,
  24687. iacute: 0x00ED,
  24688. iacyrillic: 0x044F,
  24689. ibengali: 0x0987,
  24690. ibopomofo: 0x3127,
  24691. ibreve: 0x012D,
  24692. icaron: 0x01D0,
  24693. icircle: 0x24D8,
  24694. icircumflex: 0x00EE,
  24695. icyrillic: 0x0456,
  24696. idblgrave: 0x0209,
  24697. ideographearthcircle: 0x328F,
  24698. ideographfirecircle: 0x328B,
  24699. ideographicallianceparen: 0x323F,
  24700. ideographiccallparen: 0x323A,
  24701. ideographiccentrecircle: 0x32A5,
  24702. ideographicclose: 0x3006,
  24703. ideographiccomma: 0x3001,
  24704. ideographiccommaleft: 0xFF64,
  24705. ideographiccongratulationparen: 0x3237,
  24706. ideographiccorrectcircle: 0x32A3,
  24707. ideographicearthparen: 0x322F,
  24708. ideographicenterpriseparen: 0x323D,
  24709. ideographicexcellentcircle: 0x329D,
  24710. ideographicfestivalparen: 0x3240,
  24711. ideographicfinancialcircle: 0x3296,
  24712. ideographicfinancialparen: 0x3236,
  24713. ideographicfireparen: 0x322B,
  24714. ideographichaveparen: 0x3232,
  24715. ideographichighcircle: 0x32A4,
  24716. ideographiciterationmark: 0x3005,
  24717. ideographiclaborcircle: 0x3298,
  24718. ideographiclaborparen: 0x3238,
  24719. ideographicleftcircle: 0x32A7,
  24720. ideographiclowcircle: 0x32A6,
  24721. ideographicmedicinecircle: 0x32A9,
  24722. ideographicmetalparen: 0x322E,
  24723. ideographicmoonparen: 0x322A,
  24724. ideographicnameparen: 0x3234,
  24725. ideographicperiod: 0x3002,
  24726. ideographicprintcircle: 0x329E,
  24727. ideographicreachparen: 0x3243,
  24728. ideographicrepresentparen: 0x3239,
  24729. ideographicresourceparen: 0x323E,
  24730. ideographicrightcircle: 0x32A8,
  24731. ideographicsecretcircle: 0x3299,
  24732. ideographicselfparen: 0x3242,
  24733. ideographicsocietyparen: 0x3233,
  24734. ideographicspace: 0x3000,
  24735. ideographicspecialparen: 0x3235,
  24736. ideographicstockparen: 0x3231,
  24737. ideographicstudyparen: 0x323B,
  24738. ideographicsunparen: 0x3230,
  24739. ideographicsuperviseparen: 0x323C,
  24740. ideographicwaterparen: 0x322C,
  24741. ideographicwoodparen: 0x322D,
  24742. ideographiczero: 0x3007,
  24743. ideographmetalcircle: 0x328E,
  24744. ideographmooncircle: 0x328A,
  24745. ideographnamecircle: 0x3294,
  24746. ideographsuncircle: 0x3290,
  24747. ideographwatercircle: 0x328C,
  24748. ideographwoodcircle: 0x328D,
  24749. ideva: 0x0907,
  24750. idieresis: 0x00EF,
  24751. idieresisacute: 0x1E2F,
  24752. idieresiscyrillic: 0x04E5,
  24753. idotbelow: 0x1ECB,
  24754. iebrevecyrillic: 0x04D7,
  24755. iecyrillic: 0x0435,
  24756. ieungacirclekorean: 0x3275,
  24757. ieungaparenkorean: 0x3215,
  24758. ieungcirclekorean: 0x3267,
  24759. ieungkorean: 0x3147,
  24760. ieungparenkorean: 0x3207,
  24761. igrave: 0x00EC,
  24762. igujarati: 0x0A87,
  24763. igurmukhi: 0x0A07,
  24764. ihiragana: 0x3044,
  24765. ihookabove: 0x1EC9,
  24766. iibengali: 0x0988,
  24767. iicyrillic: 0x0438,
  24768. iideva: 0x0908,
  24769. iigujarati: 0x0A88,
  24770. iigurmukhi: 0x0A08,
  24771. iimatragurmukhi: 0x0A40,
  24772. iinvertedbreve: 0x020B,
  24773. iishortcyrillic: 0x0439,
  24774. iivowelsignbengali: 0x09C0,
  24775. iivowelsigndeva: 0x0940,
  24776. iivowelsigngujarati: 0x0AC0,
  24777. ij: 0x0133,
  24778. ikatakana: 0x30A4,
  24779. ikatakanahalfwidth: 0xFF72,
  24780. ikorean: 0x3163,
  24781. ilde: 0x02DC,
  24782. iluyhebrew: 0x05AC,
  24783. imacron: 0x012B,
  24784. imacroncyrillic: 0x04E3,
  24785. imageorapproximatelyequal: 0x2253,
  24786. imatragurmukhi: 0x0A3F,
  24787. imonospace: 0xFF49,
  24788. increment: 0x2206,
  24789. infinity: 0x221E,
  24790. iniarmenian: 0x056B,
  24791. integral: 0x222B,
  24792. integralbottom: 0x2321,
  24793. integralbt: 0x2321,
  24794. integralex: 0xF8F5,
  24795. integraltop: 0x2320,
  24796. integraltp: 0x2320,
  24797. intersection: 0x2229,
  24798. intisquare: 0x3305,
  24799. invbullet: 0x25D8,
  24800. invcircle: 0x25D9,
  24801. invsmileface: 0x263B,
  24802. iocyrillic: 0x0451,
  24803. iogonek: 0x012F,
  24804. iota: 0x03B9,
  24805. iotadieresis: 0x03CA,
  24806. iotadieresistonos: 0x0390,
  24807. iotalatin: 0x0269,
  24808. iotatonos: 0x03AF,
  24809. iparen: 0x24A4,
  24810. irigurmukhi: 0x0A72,
  24811. ismallhiragana: 0x3043,
  24812. ismallkatakana: 0x30A3,
  24813. ismallkatakanahalfwidth: 0xFF68,
  24814. issharbengali: 0x09FA,
  24815. istroke: 0x0268,
  24816. isuperior: 0xF6ED,
  24817. iterationhiragana: 0x309D,
  24818. iterationkatakana: 0x30FD,
  24819. itilde: 0x0129,
  24820. itildebelow: 0x1E2D,
  24821. iubopomofo: 0x3129,
  24822. iucyrillic: 0x044E,
  24823. ivowelsignbengali: 0x09BF,
  24824. ivowelsigndeva: 0x093F,
  24825. ivowelsigngujarati: 0x0ABF,
  24826. izhitsacyrillic: 0x0475,
  24827. izhitsadblgravecyrillic: 0x0477,
  24828. j: 0x006A,
  24829. jaarmenian: 0x0571,
  24830. jabengali: 0x099C,
  24831. jadeva: 0x091C,
  24832. jagujarati: 0x0A9C,
  24833. jagurmukhi: 0x0A1C,
  24834. jbopomofo: 0x3110,
  24835. jcaron: 0x01F0,
  24836. jcircle: 0x24D9,
  24837. jcircumflex: 0x0135,
  24838. jcrossedtail: 0x029D,
  24839. jdotlessstroke: 0x025F,
  24840. jecyrillic: 0x0458,
  24841. jeemarabic: 0x062C,
  24842. jeemfinalarabic: 0xFE9E,
  24843. jeeminitialarabic: 0xFE9F,
  24844. jeemmedialarabic: 0xFEA0,
  24845. jeharabic: 0x0698,
  24846. jehfinalarabic: 0xFB8B,
  24847. jhabengali: 0x099D,
  24848. jhadeva: 0x091D,
  24849. jhagujarati: 0x0A9D,
  24850. jhagurmukhi: 0x0A1D,
  24851. jheharmenian: 0x057B,
  24852. jis: 0x3004,
  24853. jmonospace: 0xFF4A,
  24854. jparen: 0x24A5,
  24855. jsuperior: 0x02B2,
  24856. k: 0x006B,
  24857. kabashkircyrillic: 0x04A1,
  24858. kabengali: 0x0995,
  24859. kacute: 0x1E31,
  24860. kacyrillic: 0x043A,
  24861. kadescendercyrillic: 0x049B,
  24862. kadeva: 0x0915,
  24863. kaf: 0x05DB,
  24864. kafarabic: 0x0643,
  24865. kafdagesh: 0xFB3B,
  24866. kafdageshhebrew: 0xFB3B,
  24867. kaffinalarabic: 0xFEDA,
  24868. kafhebrew: 0x05DB,
  24869. kafinitialarabic: 0xFEDB,
  24870. kafmedialarabic: 0xFEDC,
  24871. kafrafehebrew: 0xFB4D,
  24872. kagujarati: 0x0A95,
  24873. kagurmukhi: 0x0A15,
  24874. kahiragana: 0x304B,
  24875. kahookcyrillic: 0x04C4,
  24876. kakatakana: 0x30AB,
  24877. kakatakanahalfwidth: 0xFF76,
  24878. kappa: 0x03BA,
  24879. kappasymbolgreek: 0x03F0,
  24880. kapyeounmieumkorean: 0x3171,
  24881. kapyeounphieuphkorean: 0x3184,
  24882. kapyeounpieupkorean: 0x3178,
  24883. kapyeounssangpieupkorean: 0x3179,
  24884. karoriisquare: 0x330D,
  24885. kashidaautoarabic: 0x0640,
  24886. kashidaautonosidebearingarabic: 0x0640,
  24887. kasmallkatakana: 0x30F5,
  24888. kasquare: 0x3384,
  24889. kasraarabic: 0x0650,
  24890. kasratanarabic: 0x064D,
  24891. kastrokecyrillic: 0x049F,
  24892. katahiraprolongmarkhalfwidth: 0xFF70,
  24893. kaverticalstrokecyrillic: 0x049D,
  24894. kbopomofo: 0x310E,
  24895. kcalsquare: 0x3389,
  24896. kcaron: 0x01E9,
  24897. kcedilla: 0x0137,
  24898. kcircle: 0x24DA,
  24899. kcommaaccent: 0x0137,
  24900. kdotbelow: 0x1E33,
  24901. keharmenian: 0x0584,
  24902. kehiragana: 0x3051,
  24903. kekatakana: 0x30B1,
  24904. kekatakanahalfwidth: 0xFF79,
  24905. kenarmenian: 0x056F,
  24906. kesmallkatakana: 0x30F6,
  24907. kgreenlandic: 0x0138,
  24908. khabengali: 0x0996,
  24909. khacyrillic: 0x0445,
  24910. khadeva: 0x0916,
  24911. khagujarati: 0x0A96,
  24912. khagurmukhi: 0x0A16,
  24913. khaharabic: 0x062E,
  24914. khahfinalarabic: 0xFEA6,
  24915. khahinitialarabic: 0xFEA7,
  24916. khahmedialarabic: 0xFEA8,
  24917. kheicoptic: 0x03E7,
  24918. khhadeva: 0x0959,
  24919. khhagurmukhi: 0x0A59,
  24920. khieukhacirclekorean: 0x3278,
  24921. khieukhaparenkorean: 0x3218,
  24922. khieukhcirclekorean: 0x326A,
  24923. khieukhkorean: 0x314B,
  24924. khieukhparenkorean: 0x320A,
  24925. khokhaithai: 0x0E02,
  24926. khokhonthai: 0x0E05,
  24927. khokhuatthai: 0x0E03,
  24928. khokhwaithai: 0x0E04,
  24929. khomutthai: 0x0E5B,
  24930. khook: 0x0199,
  24931. khorakhangthai: 0x0E06,
  24932. khzsquare: 0x3391,
  24933. kihiragana: 0x304D,
  24934. kikatakana: 0x30AD,
  24935. kikatakanahalfwidth: 0xFF77,
  24936. kiroguramusquare: 0x3315,
  24937. kiromeetorusquare: 0x3316,
  24938. kirosquare: 0x3314,
  24939. kiyeokacirclekorean: 0x326E,
  24940. kiyeokaparenkorean: 0x320E,
  24941. kiyeokcirclekorean: 0x3260,
  24942. kiyeokkorean: 0x3131,
  24943. kiyeokparenkorean: 0x3200,
  24944. kiyeoksioskorean: 0x3133,
  24945. kjecyrillic: 0x045C,
  24946. klinebelow: 0x1E35,
  24947. klsquare: 0x3398,
  24948. kmcubedsquare: 0x33A6,
  24949. kmonospace: 0xFF4B,
  24950. kmsquaredsquare: 0x33A2,
  24951. kohiragana: 0x3053,
  24952. kohmsquare: 0x33C0,
  24953. kokaithai: 0x0E01,
  24954. kokatakana: 0x30B3,
  24955. kokatakanahalfwidth: 0xFF7A,
  24956. kooposquare: 0x331E,
  24957. koppacyrillic: 0x0481,
  24958. koreanstandardsymbol: 0x327F,
  24959. koroniscmb: 0x0343,
  24960. kparen: 0x24A6,
  24961. kpasquare: 0x33AA,
  24962. ksicyrillic: 0x046F,
  24963. ktsquare: 0x33CF,
  24964. kturned: 0x029E,
  24965. kuhiragana: 0x304F,
  24966. kukatakana: 0x30AF,
  24967. kukatakanahalfwidth: 0xFF78,
  24968. kvsquare: 0x33B8,
  24969. kwsquare: 0x33BE,
  24970. l: 0x006C,
  24971. labengali: 0x09B2,
  24972. lacute: 0x013A,
  24973. ladeva: 0x0932,
  24974. lagujarati: 0x0AB2,
  24975. lagurmukhi: 0x0A32,
  24976. lakkhangyaothai: 0x0E45,
  24977. lamaleffinalarabic: 0xFEFC,
  24978. lamalefhamzaabovefinalarabic: 0xFEF8,
  24979. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  24980. lamalefhamzabelowfinalarabic: 0xFEFA,
  24981. lamalefhamzabelowisolatedarabic: 0xFEF9,
  24982. lamalefisolatedarabic: 0xFEFB,
  24983. lamalefmaddaabovefinalarabic: 0xFEF6,
  24984. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  24985. lamarabic: 0x0644,
  24986. lambda: 0x03BB,
  24987. lambdastroke: 0x019B,
  24988. lamed: 0x05DC,
  24989. lameddagesh: 0xFB3C,
  24990. lameddageshhebrew: 0xFB3C,
  24991. lamedhebrew: 0x05DC,
  24992. lamfinalarabic: 0xFEDE,
  24993. lamhahinitialarabic: 0xFCCA,
  24994. laminitialarabic: 0xFEDF,
  24995. lamjeeminitialarabic: 0xFCC9,
  24996. lamkhahinitialarabic: 0xFCCB,
  24997. lamlamhehisolatedarabic: 0xFDF2,
  24998. lammedialarabic: 0xFEE0,
  24999. lammeemhahinitialarabic: 0xFD88,
  25000. lammeeminitialarabic: 0xFCCC,
  25001. largecircle: 0x25EF,
  25002. lbar: 0x019A,
  25003. lbelt: 0x026C,
  25004. lbopomofo: 0x310C,
  25005. lcaron: 0x013E,
  25006. lcedilla: 0x013C,
  25007. lcircle: 0x24DB,
  25008. lcircumflexbelow: 0x1E3D,
  25009. lcommaaccent: 0x013C,
  25010. ldot: 0x0140,
  25011. ldotaccent: 0x0140,
  25012. ldotbelow: 0x1E37,
  25013. ldotbelowmacron: 0x1E39,
  25014. leftangleabovecmb: 0x031A,
  25015. lefttackbelowcmb: 0x0318,
  25016. less: 0x003C,
  25017. lessequal: 0x2264,
  25018. lessequalorgreater: 0x22DA,
  25019. lessmonospace: 0xFF1C,
  25020. lessorequivalent: 0x2272,
  25021. lessorgreater: 0x2276,
  25022. lessoverequal: 0x2266,
  25023. lesssmall: 0xFE64,
  25024. lezh: 0x026E,
  25025. lfblock: 0x258C,
  25026. lhookretroflex: 0x026D,
  25027. lira: 0x20A4,
  25028. liwnarmenian: 0x056C,
  25029. lj: 0x01C9,
  25030. ljecyrillic: 0x0459,
  25031. ll: 0xF6C0,
  25032. lladeva: 0x0933,
  25033. llagujarati: 0x0AB3,
  25034. llinebelow: 0x1E3B,
  25035. llladeva: 0x0934,
  25036. llvocalicbengali: 0x09E1,
  25037. llvocalicdeva: 0x0961,
  25038. llvocalicvowelsignbengali: 0x09E3,
  25039. llvocalicvowelsigndeva: 0x0963,
  25040. lmiddletilde: 0x026B,
  25041. lmonospace: 0xFF4C,
  25042. lmsquare: 0x33D0,
  25043. lochulathai: 0x0E2C,
  25044. logicaland: 0x2227,
  25045. logicalnot: 0x00AC,
  25046. logicalnotreversed: 0x2310,
  25047. logicalor: 0x2228,
  25048. lolingthai: 0x0E25,
  25049. longs: 0x017F,
  25050. lowlinecenterline: 0xFE4E,
  25051. lowlinecmb: 0x0332,
  25052. lowlinedashed: 0xFE4D,
  25053. lozenge: 0x25CA,
  25054. lparen: 0x24A7,
  25055. lslash: 0x0142,
  25056. lsquare: 0x2113,
  25057. lsuperior: 0xF6EE,
  25058. ltshade: 0x2591,
  25059. luthai: 0x0E26,
  25060. lvocalicbengali: 0x098C,
  25061. lvocalicdeva: 0x090C,
  25062. lvocalicvowelsignbengali: 0x09E2,
  25063. lvocalicvowelsigndeva: 0x0962,
  25064. lxsquare: 0x33D3,
  25065. m: 0x006D,
  25066. mabengali: 0x09AE,
  25067. macron: 0x00AF,
  25068. macronbelowcmb: 0x0331,
  25069. macroncmb: 0x0304,
  25070. macronlowmod: 0x02CD,
  25071. macronmonospace: 0xFFE3,
  25072. macute: 0x1E3F,
  25073. madeva: 0x092E,
  25074. magujarati: 0x0AAE,
  25075. magurmukhi: 0x0A2E,
  25076. mahapakhhebrew: 0x05A4,
  25077. mahapakhlefthebrew: 0x05A4,
  25078. mahiragana: 0x307E,
  25079. maichattawalowleftthai: 0xF895,
  25080. maichattawalowrightthai: 0xF894,
  25081. maichattawathai: 0x0E4B,
  25082. maichattawaupperleftthai: 0xF893,
  25083. maieklowleftthai: 0xF88C,
  25084. maieklowrightthai: 0xF88B,
  25085. maiekthai: 0x0E48,
  25086. maiekupperleftthai: 0xF88A,
  25087. maihanakatleftthai: 0xF884,
  25088. maihanakatthai: 0x0E31,
  25089. maitaikhuleftthai: 0xF889,
  25090. maitaikhuthai: 0x0E47,
  25091. maitholowleftthai: 0xF88F,
  25092. maitholowrightthai: 0xF88E,
  25093. maithothai: 0x0E49,
  25094. maithoupperleftthai: 0xF88D,
  25095. maitrilowleftthai: 0xF892,
  25096. maitrilowrightthai: 0xF891,
  25097. maitrithai: 0x0E4A,
  25098. maitriupperleftthai: 0xF890,
  25099. maiyamokthai: 0x0E46,
  25100. makatakana: 0x30DE,
  25101. makatakanahalfwidth: 0xFF8F,
  25102. male: 0x2642,
  25103. mansyonsquare: 0x3347,
  25104. maqafhebrew: 0x05BE,
  25105. mars: 0x2642,
  25106. masoracirclehebrew: 0x05AF,
  25107. masquare: 0x3383,
  25108. mbopomofo: 0x3107,
  25109. mbsquare: 0x33D4,
  25110. mcircle: 0x24DC,
  25111. mcubedsquare: 0x33A5,
  25112. mdotaccent: 0x1E41,
  25113. mdotbelow: 0x1E43,
  25114. meemarabic: 0x0645,
  25115. meemfinalarabic: 0xFEE2,
  25116. meeminitialarabic: 0xFEE3,
  25117. meemmedialarabic: 0xFEE4,
  25118. meemmeeminitialarabic: 0xFCD1,
  25119. meemmeemisolatedarabic: 0xFC48,
  25120. meetorusquare: 0x334D,
  25121. mehiragana: 0x3081,
  25122. meizierasquare: 0x337E,
  25123. mekatakana: 0x30E1,
  25124. mekatakanahalfwidth: 0xFF92,
  25125. mem: 0x05DE,
  25126. memdagesh: 0xFB3E,
  25127. memdageshhebrew: 0xFB3E,
  25128. memhebrew: 0x05DE,
  25129. menarmenian: 0x0574,
  25130. merkhahebrew: 0x05A5,
  25131. merkhakefulahebrew: 0x05A6,
  25132. merkhakefulalefthebrew: 0x05A6,
  25133. merkhalefthebrew: 0x05A5,
  25134. mhook: 0x0271,
  25135. mhzsquare: 0x3392,
  25136. middledotkatakanahalfwidth: 0xFF65,
  25137. middot: 0x00B7,
  25138. mieumacirclekorean: 0x3272,
  25139. mieumaparenkorean: 0x3212,
  25140. mieumcirclekorean: 0x3264,
  25141. mieumkorean: 0x3141,
  25142. mieumpansioskorean: 0x3170,
  25143. mieumparenkorean: 0x3204,
  25144. mieumpieupkorean: 0x316E,
  25145. mieumsioskorean: 0x316F,
  25146. mihiragana: 0x307F,
  25147. mikatakana: 0x30DF,
  25148. mikatakanahalfwidth: 0xFF90,
  25149. minus: 0x2212,
  25150. minusbelowcmb: 0x0320,
  25151. minuscircle: 0x2296,
  25152. minusmod: 0x02D7,
  25153. minusplus: 0x2213,
  25154. minute: 0x2032,
  25155. miribaarusquare: 0x334A,
  25156. mirisquare: 0x3349,
  25157. mlonglegturned: 0x0270,
  25158. mlsquare: 0x3396,
  25159. mmcubedsquare: 0x33A3,
  25160. mmonospace: 0xFF4D,
  25161. mmsquaredsquare: 0x339F,
  25162. mohiragana: 0x3082,
  25163. mohmsquare: 0x33C1,
  25164. mokatakana: 0x30E2,
  25165. mokatakanahalfwidth: 0xFF93,
  25166. molsquare: 0x33D6,
  25167. momathai: 0x0E21,
  25168. moverssquare: 0x33A7,
  25169. moverssquaredsquare: 0x33A8,
  25170. mparen: 0x24A8,
  25171. mpasquare: 0x33AB,
  25172. mssquare: 0x33B3,
  25173. msuperior: 0xF6EF,
  25174. mturned: 0x026F,
  25175. mu: 0x00B5,
  25176. mu1: 0x00B5,
  25177. muasquare: 0x3382,
  25178. muchgreater: 0x226B,
  25179. muchless: 0x226A,
  25180. mufsquare: 0x338C,
  25181. mugreek: 0x03BC,
  25182. mugsquare: 0x338D,
  25183. muhiragana: 0x3080,
  25184. mukatakana: 0x30E0,
  25185. mukatakanahalfwidth: 0xFF91,
  25186. mulsquare: 0x3395,
  25187. multiply: 0x00D7,
  25188. mumsquare: 0x339B,
  25189. munahhebrew: 0x05A3,
  25190. munahlefthebrew: 0x05A3,
  25191. musicalnote: 0x266A,
  25192. musicalnotedbl: 0x266B,
  25193. musicflatsign: 0x266D,
  25194. musicsharpsign: 0x266F,
  25195. mussquare: 0x33B2,
  25196. muvsquare: 0x33B6,
  25197. muwsquare: 0x33BC,
  25198. mvmegasquare: 0x33B9,
  25199. mvsquare: 0x33B7,
  25200. mwmegasquare: 0x33BF,
  25201. mwsquare: 0x33BD,
  25202. n: 0x006E,
  25203. nabengali: 0x09A8,
  25204. nabla: 0x2207,
  25205. nacute: 0x0144,
  25206. nadeva: 0x0928,
  25207. nagujarati: 0x0AA8,
  25208. nagurmukhi: 0x0A28,
  25209. nahiragana: 0x306A,
  25210. nakatakana: 0x30CA,
  25211. nakatakanahalfwidth: 0xFF85,
  25212. napostrophe: 0x0149,
  25213. nasquare: 0x3381,
  25214. nbopomofo: 0x310B,
  25215. nbspace: 0x00A0,
  25216. ncaron: 0x0148,
  25217. ncedilla: 0x0146,
  25218. ncircle: 0x24DD,
  25219. ncircumflexbelow: 0x1E4B,
  25220. ncommaaccent: 0x0146,
  25221. ndotaccent: 0x1E45,
  25222. ndotbelow: 0x1E47,
  25223. nehiragana: 0x306D,
  25224. nekatakana: 0x30CD,
  25225. nekatakanahalfwidth: 0xFF88,
  25226. newsheqelsign: 0x20AA,
  25227. nfsquare: 0x338B,
  25228. ngabengali: 0x0999,
  25229. ngadeva: 0x0919,
  25230. ngagujarati: 0x0A99,
  25231. ngagurmukhi: 0x0A19,
  25232. ngonguthai: 0x0E07,
  25233. nhiragana: 0x3093,
  25234. nhookleft: 0x0272,
  25235. nhookretroflex: 0x0273,
  25236. nieunacirclekorean: 0x326F,
  25237. nieunaparenkorean: 0x320F,
  25238. nieuncieuckorean: 0x3135,
  25239. nieuncirclekorean: 0x3261,
  25240. nieunhieuhkorean: 0x3136,
  25241. nieunkorean: 0x3134,
  25242. nieunpansioskorean: 0x3168,
  25243. nieunparenkorean: 0x3201,
  25244. nieunsioskorean: 0x3167,
  25245. nieuntikeutkorean: 0x3166,
  25246. nihiragana: 0x306B,
  25247. nikatakana: 0x30CB,
  25248. nikatakanahalfwidth: 0xFF86,
  25249. nikhahitleftthai: 0xF899,
  25250. nikhahitthai: 0x0E4D,
  25251. nine: 0x0039,
  25252. ninearabic: 0x0669,
  25253. ninebengali: 0x09EF,
  25254. ninecircle: 0x2468,
  25255. ninecircleinversesansserif: 0x2792,
  25256. ninedeva: 0x096F,
  25257. ninegujarati: 0x0AEF,
  25258. ninegurmukhi: 0x0A6F,
  25259. ninehackarabic: 0x0669,
  25260. ninehangzhou: 0x3029,
  25261. nineideographicparen: 0x3228,
  25262. nineinferior: 0x2089,
  25263. ninemonospace: 0xFF19,
  25264. nineoldstyle: 0xF739,
  25265. nineparen: 0x247C,
  25266. nineperiod: 0x2490,
  25267. ninepersian: 0x06F9,
  25268. nineroman: 0x2178,
  25269. ninesuperior: 0x2079,
  25270. nineteencircle: 0x2472,
  25271. nineteenparen: 0x2486,
  25272. nineteenperiod: 0x249A,
  25273. ninethai: 0x0E59,
  25274. nj: 0x01CC,
  25275. njecyrillic: 0x045A,
  25276. nkatakana: 0x30F3,
  25277. nkatakanahalfwidth: 0xFF9D,
  25278. nlegrightlong: 0x019E,
  25279. nlinebelow: 0x1E49,
  25280. nmonospace: 0xFF4E,
  25281. nmsquare: 0x339A,
  25282. nnabengali: 0x09A3,
  25283. nnadeva: 0x0923,
  25284. nnagujarati: 0x0AA3,
  25285. nnagurmukhi: 0x0A23,
  25286. nnnadeva: 0x0929,
  25287. nohiragana: 0x306E,
  25288. nokatakana: 0x30CE,
  25289. nokatakanahalfwidth: 0xFF89,
  25290. nonbreakingspace: 0x00A0,
  25291. nonenthai: 0x0E13,
  25292. nonuthai: 0x0E19,
  25293. noonarabic: 0x0646,
  25294. noonfinalarabic: 0xFEE6,
  25295. noonghunnaarabic: 0x06BA,
  25296. noonghunnafinalarabic: 0xFB9F,
  25297. nooninitialarabic: 0xFEE7,
  25298. noonjeeminitialarabic: 0xFCD2,
  25299. noonjeemisolatedarabic: 0xFC4B,
  25300. noonmedialarabic: 0xFEE8,
  25301. noonmeeminitialarabic: 0xFCD5,
  25302. noonmeemisolatedarabic: 0xFC4E,
  25303. noonnoonfinalarabic: 0xFC8D,
  25304. notcontains: 0x220C,
  25305. notelement: 0x2209,
  25306. notelementof: 0x2209,
  25307. notequal: 0x2260,
  25308. notgreater: 0x226F,
  25309. notgreaternorequal: 0x2271,
  25310. notgreaternorless: 0x2279,
  25311. notidentical: 0x2262,
  25312. notless: 0x226E,
  25313. notlessnorequal: 0x2270,
  25314. notparallel: 0x2226,
  25315. notprecedes: 0x2280,
  25316. notsubset: 0x2284,
  25317. notsucceeds: 0x2281,
  25318. notsuperset: 0x2285,
  25319. nowarmenian: 0x0576,
  25320. nparen: 0x24A9,
  25321. nssquare: 0x33B1,
  25322. nsuperior: 0x207F,
  25323. ntilde: 0x00F1,
  25324. nu: 0x03BD,
  25325. nuhiragana: 0x306C,
  25326. nukatakana: 0x30CC,
  25327. nukatakanahalfwidth: 0xFF87,
  25328. nuktabengali: 0x09BC,
  25329. nuktadeva: 0x093C,
  25330. nuktagujarati: 0x0ABC,
  25331. nuktagurmukhi: 0x0A3C,
  25332. numbersign: 0x0023,
  25333. numbersignmonospace: 0xFF03,
  25334. numbersignsmall: 0xFE5F,
  25335. numeralsigngreek: 0x0374,
  25336. numeralsignlowergreek: 0x0375,
  25337. numero: 0x2116,
  25338. nun: 0x05E0,
  25339. nundagesh: 0xFB40,
  25340. nundageshhebrew: 0xFB40,
  25341. nunhebrew: 0x05E0,
  25342. nvsquare: 0x33B5,
  25343. nwsquare: 0x33BB,
  25344. nyabengali: 0x099E,
  25345. nyadeva: 0x091E,
  25346. nyagujarati: 0x0A9E,
  25347. nyagurmukhi: 0x0A1E,
  25348. o: 0x006F,
  25349. oacute: 0x00F3,
  25350. oangthai: 0x0E2D,
  25351. obarred: 0x0275,
  25352. obarredcyrillic: 0x04E9,
  25353. obarreddieresiscyrillic: 0x04EB,
  25354. obengali: 0x0993,
  25355. obopomofo: 0x311B,
  25356. obreve: 0x014F,
  25357. ocandradeva: 0x0911,
  25358. ocandragujarati: 0x0A91,
  25359. ocandravowelsigndeva: 0x0949,
  25360. ocandravowelsigngujarati: 0x0AC9,
  25361. ocaron: 0x01D2,
  25362. ocircle: 0x24DE,
  25363. ocircumflex: 0x00F4,
  25364. ocircumflexacute: 0x1ED1,
  25365. ocircumflexdotbelow: 0x1ED9,
  25366. ocircumflexgrave: 0x1ED3,
  25367. ocircumflexhookabove: 0x1ED5,
  25368. ocircumflextilde: 0x1ED7,
  25369. ocyrillic: 0x043E,
  25370. odblacute: 0x0151,
  25371. odblgrave: 0x020D,
  25372. odeva: 0x0913,
  25373. odieresis: 0x00F6,
  25374. odieresiscyrillic: 0x04E7,
  25375. odotbelow: 0x1ECD,
  25376. oe: 0x0153,
  25377. oekorean: 0x315A,
  25378. ogonek: 0x02DB,
  25379. ogonekcmb: 0x0328,
  25380. ograve: 0x00F2,
  25381. ogujarati: 0x0A93,
  25382. oharmenian: 0x0585,
  25383. ohiragana: 0x304A,
  25384. ohookabove: 0x1ECF,
  25385. ohorn: 0x01A1,
  25386. ohornacute: 0x1EDB,
  25387. ohorndotbelow: 0x1EE3,
  25388. ohorngrave: 0x1EDD,
  25389. ohornhookabove: 0x1EDF,
  25390. ohorntilde: 0x1EE1,
  25391. ohungarumlaut: 0x0151,
  25392. oi: 0x01A3,
  25393. oinvertedbreve: 0x020F,
  25394. okatakana: 0x30AA,
  25395. okatakanahalfwidth: 0xFF75,
  25396. okorean: 0x3157,
  25397. olehebrew: 0x05AB,
  25398. omacron: 0x014D,
  25399. omacronacute: 0x1E53,
  25400. omacrongrave: 0x1E51,
  25401. omdeva: 0x0950,
  25402. omega: 0x03C9,
  25403. omega1: 0x03D6,
  25404. omegacyrillic: 0x0461,
  25405. omegalatinclosed: 0x0277,
  25406. omegaroundcyrillic: 0x047B,
  25407. omegatitlocyrillic: 0x047D,
  25408. omegatonos: 0x03CE,
  25409. omgujarati: 0x0AD0,
  25410. omicron: 0x03BF,
  25411. omicrontonos: 0x03CC,
  25412. omonospace: 0xFF4F,
  25413. one: 0x0031,
  25414. onearabic: 0x0661,
  25415. onebengali: 0x09E7,
  25416. onecircle: 0x2460,
  25417. onecircleinversesansserif: 0x278A,
  25418. onedeva: 0x0967,
  25419. onedotenleader: 0x2024,
  25420. oneeighth: 0x215B,
  25421. onefitted: 0xF6DC,
  25422. onegujarati: 0x0AE7,
  25423. onegurmukhi: 0x0A67,
  25424. onehackarabic: 0x0661,
  25425. onehalf: 0x00BD,
  25426. onehangzhou: 0x3021,
  25427. oneideographicparen: 0x3220,
  25428. oneinferior: 0x2081,
  25429. onemonospace: 0xFF11,
  25430. onenumeratorbengali: 0x09F4,
  25431. oneoldstyle: 0xF731,
  25432. oneparen: 0x2474,
  25433. oneperiod: 0x2488,
  25434. onepersian: 0x06F1,
  25435. onequarter: 0x00BC,
  25436. oneroman: 0x2170,
  25437. onesuperior: 0x00B9,
  25438. onethai: 0x0E51,
  25439. onethird: 0x2153,
  25440. oogonek: 0x01EB,
  25441. oogonekmacron: 0x01ED,
  25442. oogurmukhi: 0x0A13,
  25443. oomatragurmukhi: 0x0A4B,
  25444. oopen: 0x0254,
  25445. oparen: 0x24AA,
  25446. openbullet: 0x25E6,
  25447. option: 0x2325,
  25448. ordfeminine: 0x00AA,
  25449. ordmasculine: 0x00BA,
  25450. orthogonal: 0x221F,
  25451. oshortdeva: 0x0912,
  25452. oshortvowelsigndeva: 0x094A,
  25453. oslash: 0x00F8,
  25454. oslashacute: 0x01FF,
  25455. osmallhiragana: 0x3049,
  25456. osmallkatakana: 0x30A9,
  25457. osmallkatakanahalfwidth: 0xFF6B,
  25458. ostrokeacute: 0x01FF,
  25459. osuperior: 0xF6F0,
  25460. otcyrillic: 0x047F,
  25461. otilde: 0x00F5,
  25462. otildeacute: 0x1E4D,
  25463. otildedieresis: 0x1E4F,
  25464. oubopomofo: 0x3121,
  25465. overline: 0x203E,
  25466. overlinecenterline: 0xFE4A,
  25467. overlinecmb: 0x0305,
  25468. overlinedashed: 0xFE49,
  25469. overlinedblwavy: 0xFE4C,
  25470. overlinewavy: 0xFE4B,
  25471. overscore: 0x00AF,
  25472. ovowelsignbengali: 0x09CB,
  25473. ovowelsigndeva: 0x094B,
  25474. ovowelsigngujarati: 0x0ACB,
  25475. p: 0x0070,
  25476. paampssquare: 0x3380,
  25477. paasentosquare: 0x332B,
  25478. pabengali: 0x09AA,
  25479. pacute: 0x1E55,
  25480. padeva: 0x092A,
  25481. pagedown: 0x21DF,
  25482. pageup: 0x21DE,
  25483. pagujarati: 0x0AAA,
  25484. pagurmukhi: 0x0A2A,
  25485. pahiragana: 0x3071,
  25486. paiyannoithai: 0x0E2F,
  25487. pakatakana: 0x30D1,
  25488. palatalizationcyrilliccmb: 0x0484,
  25489. palochkacyrillic: 0x04C0,
  25490. pansioskorean: 0x317F,
  25491. paragraph: 0x00B6,
  25492. parallel: 0x2225,
  25493. parenleft: 0x0028,
  25494. parenleftaltonearabic: 0xFD3E,
  25495. parenleftbt: 0xF8ED,
  25496. parenleftex: 0xF8EC,
  25497. parenleftinferior: 0x208D,
  25498. parenleftmonospace: 0xFF08,
  25499. parenleftsmall: 0xFE59,
  25500. parenleftsuperior: 0x207D,
  25501. parenlefttp: 0xF8EB,
  25502. parenleftvertical: 0xFE35,
  25503. parenright: 0x0029,
  25504. parenrightaltonearabic: 0xFD3F,
  25505. parenrightbt: 0xF8F8,
  25506. parenrightex: 0xF8F7,
  25507. parenrightinferior: 0x208E,
  25508. parenrightmonospace: 0xFF09,
  25509. parenrightsmall: 0xFE5A,
  25510. parenrightsuperior: 0x207E,
  25511. parenrighttp: 0xF8F6,
  25512. parenrightvertical: 0xFE36,
  25513. partialdiff: 0x2202,
  25514. paseqhebrew: 0x05C0,
  25515. pashtahebrew: 0x0599,
  25516. pasquare: 0x33A9,
  25517. patah: 0x05B7,
  25518. patah11: 0x05B7,
  25519. patah1d: 0x05B7,
  25520. patah2a: 0x05B7,
  25521. patahhebrew: 0x05B7,
  25522. patahnarrowhebrew: 0x05B7,
  25523. patahquarterhebrew: 0x05B7,
  25524. patahwidehebrew: 0x05B7,
  25525. pazerhebrew: 0x05A1,
  25526. pbopomofo: 0x3106,
  25527. pcircle: 0x24DF,
  25528. pdotaccent: 0x1E57,
  25529. pe: 0x05E4,
  25530. pecyrillic: 0x043F,
  25531. pedagesh: 0xFB44,
  25532. pedageshhebrew: 0xFB44,
  25533. peezisquare: 0x333B,
  25534. pefinaldageshhebrew: 0xFB43,
  25535. peharabic: 0x067E,
  25536. peharmenian: 0x057A,
  25537. pehebrew: 0x05E4,
  25538. pehfinalarabic: 0xFB57,
  25539. pehinitialarabic: 0xFB58,
  25540. pehiragana: 0x307A,
  25541. pehmedialarabic: 0xFB59,
  25542. pekatakana: 0x30DA,
  25543. pemiddlehookcyrillic: 0x04A7,
  25544. perafehebrew: 0xFB4E,
  25545. percent: 0x0025,
  25546. percentarabic: 0x066A,
  25547. percentmonospace: 0xFF05,
  25548. percentsmall: 0xFE6A,
  25549. period: 0x002E,
  25550. periodarmenian: 0x0589,
  25551. periodcentered: 0x00B7,
  25552. periodhalfwidth: 0xFF61,
  25553. periodinferior: 0xF6E7,
  25554. periodmonospace: 0xFF0E,
  25555. periodsmall: 0xFE52,
  25556. periodsuperior: 0xF6E8,
  25557. perispomenigreekcmb: 0x0342,
  25558. perpendicular: 0x22A5,
  25559. perthousand: 0x2030,
  25560. peseta: 0x20A7,
  25561. pfsquare: 0x338A,
  25562. phabengali: 0x09AB,
  25563. phadeva: 0x092B,
  25564. phagujarati: 0x0AAB,
  25565. phagurmukhi: 0x0A2B,
  25566. phi: 0x03C6,
  25567. phi1: 0x03D5,
  25568. phieuphacirclekorean: 0x327A,
  25569. phieuphaparenkorean: 0x321A,
  25570. phieuphcirclekorean: 0x326C,
  25571. phieuphkorean: 0x314D,
  25572. phieuphparenkorean: 0x320C,
  25573. philatin: 0x0278,
  25574. phinthuthai: 0x0E3A,
  25575. phisymbolgreek: 0x03D5,
  25576. phook: 0x01A5,
  25577. phophanthai: 0x0E1E,
  25578. phophungthai: 0x0E1C,
  25579. phosamphaothai: 0x0E20,
  25580. pi: 0x03C0,
  25581. pieupacirclekorean: 0x3273,
  25582. pieupaparenkorean: 0x3213,
  25583. pieupcieuckorean: 0x3176,
  25584. pieupcirclekorean: 0x3265,
  25585. pieupkiyeokkorean: 0x3172,
  25586. pieupkorean: 0x3142,
  25587. pieupparenkorean: 0x3205,
  25588. pieupsioskiyeokkorean: 0x3174,
  25589. pieupsioskorean: 0x3144,
  25590. pieupsiostikeutkorean: 0x3175,
  25591. pieupthieuthkorean: 0x3177,
  25592. pieuptikeutkorean: 0x3173,
  25593. pihiragana: 0x3074,
  25594. pikatakana: 0x30D4,
  25595. pisymbolgreek: 0x03D6,
  25596. piwrarmenian: 0x0583,
  25597. plus: 0x002B,
  25598. plusbelowcmb: 0x031F,
  25599. pluscircle: 0x2295,
  25600. plusminus: 0x00B1,
  25601. plusmod: 0x02D6,
  25602. plusmonospace: 0xFF0B,
  25603. plussmall: 0xFE62,
  25604. plussuperior: 0x207A,
  25605. pmonospace: 0xFF50,
  25606. pmsquare: 0x33D8,
  25607. pohiragana: 0x307D,
  25608. pointingindexdownwhite: 0x261F,
  25609. pointingindexleftwhite: 0x261C,
  25610. pointingindexrightwhite: 0x261E,
  25611. pointingindexupwhite: 0x261D,
  25612. pokatakana: 0x30DD,
  25613. poplathai: 0x0E1B,
  25614. postalmark: 0x3012,
  25615. postalmarkface: 0x3020,
  25616. pparen: 0x24AB,
  25617. precedes: 0x227A,
  25618. prescription: 0x211E,
  25619. primemod: 0x02B9,
  25620. primereversed: 0x2035,
  25621. product: 0x220F,
  25622. projective: 0x2305,
  25623. prolongedkana: 0x30FC,
  25624. propellor: 0x2318,
  25625. propersubset: 0x2282,
  25626. propersuperset: 0x2283,
  25627. proportion: 0x2237,
  25628. proportional: 0x221D,
  25629. psi: 0x03C8,
  25630. psicyrillic: 0x0471,
  25631. psilipneumatacyrilliccmb: 0x0486,
  25632. pssquare: 0x33B0,
  25633. puhiragana: 0x3077,
  25634. pukatakana: 0x30D7,
  25635. pvsquare: 0x33B4,
  25636. pwsquare: 0x33BA,
  25637. q: 0x0071,
  25638. qadeva: 0x0958,
  25639. qadmahebrew: 0x05A8,
  25640. qafarabic: 0x0642,
  25641. qaffinalarabic: 0xFED6,
  25642. qafinitialarabic: 0xFED7,
  25643. qafmedialarabic: 0xFED8,
  25644. qamats: 0x05B8,
  25645. qamats10: 0x05B8,
  25646. qamats1a: 0x05B8,
  25647. qamats1c: 0x05B8,
  25648. qamats27: 0x05B8,
  25649. qamats29: 0x05B8,
  25650. qamats33: 0x05B8,
  25651. qamatsde: 0x05B8,
  25652. qamatshebrew: 0x05B8,
  25653. qamatsnarrowhebrew: 0x05B8,
  25654. qamatsqatanhebrew: 0x05B8,
  25655. qamatsqatannarrowhebrew: 0x05B8,
  25656. qamatsqatanquarterhebrew: 0x05B8,
  25657. qamatsqatanwidehebrew: 0x05B8,
  25658. qamatsquarterhebrew: 0x05B8,
  25659. qamatswidehebrew: 0x05B8,
  25660. qarneyparahebrew: 0x059F,
  25661. qbopomofo: 0x3111,
  25662. qcircle: 0x24E0,
  25663. qhook: 0x02A0,
  25664. qmonospace: 0xFF51,
  25665. qof: 0x05E7,
  25666. qofdagesh: 0xFB47,
  25667. qofdageshhebrew: 0xFB47,
  25668. qofhebrew: 0x05E7,
  25669. qparen: 0x24AC,
  25670. quarternote: 0x2669,
  25671. qubuts: 0x05BB,
  25672. qubuts18: 0x05BB,
  25673. qubuts25: 0x05BB,
  25674. qubuts31: 0x05BB,
  25675. qubutshebrew: 0x05BB,
  25676. qubutsnarrowhebrew: 0x05BB,
  25677. qubutsquarterhebrew: 0x05BB,
  25678. qubutswidehebrew: 0x05BB,
  25679. question: 0x003F,
  25680. questionarabic: 0x061F,
  25681. questionarmenian: 0x055E,
  25682. questiondown: 0x00BF,
  25683. questiondownsmall: 0xF7BF,
  25684. questiongreek: 0x037E,
  25685. questionmonospace: 0xFF1F,
  25686. questionsmall: 0xF73F,
  25687. quotedbl: 0x0022,
  25688. quotedblbase: 0x201E,
  25689. quotedblleft: 0x201C,
  25690. quotedblmonospace: 0xFF02,
  25691. quotedblprime: 0x301E,
  25692. quotedblprimereversed: 0x301D,
  25693. quotedblright: 0x201D,
  25694. quoteleft: 0x2018,
  25695. quoteleftreversed: 0x201B,
  25696. quotereversed: 0x201B,
  25697. quoteright: 0x2019,
  25698. quoterightn: 0x0149,
  25699. quotesinglbase: 0x201A,
  25700. quotesingle: 0x0027,
  25701. quotesinglemonospace: 0xFF07,
  25702. r: 0x0072,
  25703. raarmenian: 0x057C,
  25704. rabengali: 0x09B0,
  25705. racute: 0x0155,
  25706. radeva: 0x0930,
  25707. radical: 0x221A,
  25708. radicalex: 0xF8E5,
  25709. radoverssquare: 0x33AE,
  25710. radoverssquaredsquare: 0x33AF,
  25711. radsquare: 0x33AD,
  25712. rafe: 0x05BF,
  25713. rafehebrew: 0x05BF,
  25714. ragujarati: 0x0AB0,
  25715. ragurmukhi: 0x0A30,
  25716. rahiragana: 0x3089,
  25717. rakatakana: 0x30E9,
  25718. rakatakanahalfwidth: 0xFF97,
  25719. ralowerdiagonalbengali: 0x09F1,
  25720. ramiddlediagonalbengali: 0x09F0,
  25721. ramshorn: 0x0264,
  25722. ratio: 0x2236,
  25723. rbopomofo: 0x3116,
  25724. rcaron: 0x0159,
  25725. rcedilla: 0x0157,
  25726. rcircle: 0x24E1,
  25727. rcommaaccent: 0x0157,
  25728. rdblgrave: 0x0211,
  25729. rdotaccent: 0x1E59,
  25730. rdotbelow: 0x1E5B,
  25731. rdotbelowmacron: 0x1E5D,
  25732. referencemark: 0x203B,
  25733. reflexsubset: 0x2286,
  25734. reflexsuperset: 0x2287,
  25735. registered: 0x00AE,
  25736. registersans: 0xF8E8,
  25737. registerserif: 0xF6DA,
  25738. reharabic: 0x0631,
  25739. reharmenian: 0x0580,
  25740. rehfinalarabic: 0xFEAE,
  25741. rehiragana: 0x308C,
  25742. rekatakana: 0x30EC,
  25743. rekatakanahalfwidth: 0xFF9A,
  25744. resh: 0x05E8,
  25745. reshdageshhebrew: 0xFB48,
  25746. reshhebrew: 0x05E8,
  25747. reversedtilde: 0x223D,
  25748. reviahebrew: 0x0597,
  25749. reviamugrashhebrew: 0x0597,
  25750. revlogicalnot: 0x2310,
  25751. rfishhook: 0x027E,
  25752. rfishhookreversed: 0x027F,
  25753. rhabengali: 0x09DD,
  25754. rhadeva: 0x095D,
  25755. rho: 0x03C1,
  25756. rhook: 0x027D,
  25757. rhookturned: 0x027B,
  25758. rhookturnedsuperior: 0x02B5,
  25759. rhosymbolgreek: 0x03F1,
  25760. rhotichookmod: 0x02DE,
  25761. rieulacirclekorean: 0x3271,
  25762. rieulaparenkorean: 0x3211,
  25763. rieulcirclekorean: 0x3263,
  25764. rieulhieuhkorean: 0x3140,
  25765. rieulkiyeokkorean: 0x313A,
  25766. rieulkiyeoksioskorean: 0x3169,
  25767. rieulkorean: 0x3139,
  25768. rieulmieumkorean: 0x313B,
  25769. rieulpansioskorean: 0x316C,
  25770. rieulparenkorean: 0x3203,
  25771. rieulphieuphkorean: 0x313F,
  25772. rieulpieupkorean: 0x313C,
  25773. rieulpieupsioskorean: 0x316B,
  25774. rieulsioskorean: 0x313D,
  25775. rieulthieuthkorean: 0x313E,
  25776. rieultikeutkorean: 0x316A,
  25777. rieulyeorinhieuhkorean: 0x316D,
  25778. rightangle: 0x221F,
  25779. righttackbelowcmb: 0x0319,
  25780. righttriangle: 0x22BF,
  25781. rihiragana: 0x308A,
  25782. rikatakana: 0x30EA,
  25783. rikatakanahalfwidth: 0xFF98,
  25784. ring: 0x02DA,
  25785. ringbelowcmb: 0x0325,
  25786. ringcmb: 0x030A,
  25787. ringhalfleft: 0x02BF,
  25788. ringhalfleftarmenian: 0x0559,
  25789. ringhalfleftbelowcmb: 0x031C,
  25790. ringhalfleftcentered: 0x02D3,
  25791. ringhalfright: 0x02BE,
  25792. ringhalfrightbelowcmb: 0x0339,
  25793. ringhalfrightcentered: 0x02D2,
  25794. rinvertedbreve: 0x0213,
  25795. rittorusquare: 0x3351,
  25796. rlinebelow: 0x1E5F,
  25797. rlongleg: 0x027C,
  25798. rlonglegturned: 0x027A,
  25799. rmonospace: 0xFF52,
  25800. rohiragana: 0x308D,
  25801. rokatakana: 0x30ED,
  25802. rokatakanahalfwidth: 0xFF9B,
  25803. roruathai: 0x0E23,
  25804. rparen: 0x24AD,
  25805. rrabengali: 0x09DC,
  25806. rradeva: 0x0931,
  25807. rragurmukhi: 0x0A5C,
  25808. rreharabic: 0x0691,
  25809. rrehfinalarabic: 0xFB8D,
  25810. rrvocalicbengali: 0x09E0,
  25811. rrvocalicdeva: 0x0960,
  25812. rrvocalicgujarati: 0x0AE0,
  25813. rrvocalicvowelsignbengali: 0x09C4,
  25814. rrvocalicvowelsigndeva: 0x0944,
  25815. rrvocalicvowelsigngujarati: 0x0AC4,
  25816. rsuperior: 0xF6F1,
  25817. rtblock: 0x2590,
  25818. rturned: 0x0279,
  25819. rturnedsuperior: 0x02B4,
  25820. ruhiragana: 0x308B,
  25821. rukatakana: 0x30EB,
  25822. rukatakanahalfwidth: 0xFF99,
  25823. rupeemarkbengali: 0x09F2,
  25824. rupeesignbengali: 0x09F3,
  25825. rupiah: 0xF6DD,
  25826. ruthai: 0x0E24,
  25827. rvocalicbengali: 0x098B,
  25828. rvocalicdeva: 0x090B,
  25829. rvocalicgujarati: 0x0A8B,
  25830. rvocalicvowelsignbengali: 0x09C3,
  25831. rvocalicvowelsigndeva: 0x0943,
  25832. rvocalicvowelsigngujarati: 0x0AC3,
  25833. s: 0x0073,
  25834. sabengali: 0x09B8,
  25835. sacute: 0x015B,
  25836. sacutedotaccent: 0x1E65,
  25837. sadarabic: 0x0635,
  25838. sadeva: 0x0938,
  25839. sadfinalarabic: 0xFEBA,
  25840. sadinitialarabic: 0xFEBB,
  25841. sadmedialarabic: 0xFEBC,
  25842. sagujarati: 0x0AB8,
  25843. sagurmukhi: 0x0A38,
  25844. sahiragana: 0x3055,
  25845. sakatakana: 0x30B5,
  25846. sakatakanahalfwidth: 0xFF7B,
  25847. sallallahoualayhewasallamarabic: 0xFDFA,
  25848. samekh: 0x05E1,
  25849. samekhdagesh: 0xFB41,
  25850. samekhdageshhebrew: 0xFB41,
  25851. samekhhebrew: 0x05E1,
  25852. saraaathai: 0x0E32,
  25853. saraaethai: 0x0E41,
  25854. saraaimaimalaithai: 0x0E44,
  25855. saraaimaimuanthai: 0x0E43,
  25856. saraamthai: 0x0E33,
  25857. saraathai: 0x0E30,
  25858. saraethai: 0x0E40,
  25859. saraiileftthai: 0xF886,
  25860. saraiithai: 0x0E35,
  25861. saraileftthai: 0xF885,
  25862. saraithai: 0x0E34,
  25863. saraothai: 0x0E42,
  25864. saraueeleftthai: 0xF888,
  25865. saraueethai: 0x0E37,
  25866. saraueleftthai: 0xF887,
  25867. sarauethai: 0x0E36,
  25868. sarauthai: 0x0E38,
  25869. sarauuthai: 0x0E39,
  25870. sbopomofo: 0x3119,
  25871. scaron: 0x0161,
  25872. scarondotaccent: 0x1E67,
  25873. scedilla: 0x015F,
  25874. schwa: 0x0259,
  25875. schwacyrillic: 0x04D9,
  25876. schwadieresiscyrillic: 0x04DB,
  25877. schwahook: 0x025A,
  25878. scircle: 0x24E2,
  25879. scircumflex: 0x015D,
  25880. scommaaccent: 0x0219,
  25881. sdotaccent: 0x1E61,
  25882. sdotbelow: 0x1E63,
  25883. sdotbelowdotaccent: 0x1E69,
  25884. seagullbelowcmb: 0x033C,
  25885. second: 0x2033,
  25886. secondtonechinese: 0x02CA,
  25887. section: 0x00A7,
  25888. seenarabic: 0x0633,
  25889. seenfinalarabic: 0xFEB2,
  25890. seeninitialarabic: 0xFEB3,
  25891. seenmedialarabic: 0xFEB4,
  25892. segol: 0x05B6,
  25893. segol13: 0x05B6,
  25894. segol1f: 0x05B6,
  25895. segol2c: 0x05B6,
  25896. segolhebrew: 0x05B6,
  25897. segolnarrowhebrew: 0x05B6,
  25898. segolquarterhebrew: 0x05B6,
  25899. segoltahebrew: 0x0592,
  25900. segolwidehebrew: 0x05B6,
  25901. seharmenian: 0x057D,
  25902. sehiragana: 0x305B,
  25903. sekatakana: 0x30BB,
  25904. sekatakanahalfwidth: 0xFF7E,
  25905. semicolon: 0x003B,
  25906. semicolonarabic: 0x061B,
  25907. semicolonmonospace: 0xFF1B,
  25908. semicolonsmall: 0xFE54,
  25909. semivoicedmarkkana: 0x309C,
  25910. semivoicedmarkkanahalfwidth: 0xFF9F,
  25911. sentisquare: 0x3322,
  25912. sentosquare: 0x3323,
  25913. seven: 0x0037,
  25914. sevenarabic: 0x0667,
  25915. sevenbengali: 0x09ED,
  25916. sevencircle: 0x2466,
  25917. sevencircleinversesansserif: 0x2790,
  25918. sevendeva: 0x096D,
  25919. seveneighths: 0x215E,
  25920. sevengujarati: 0x0AED,
  25921. sevengurmukhi: 0x0A6D,
  25922. sevenhackarabic: 0x0667,
  25923. sevenhangzhou: 0x3027,
  25924. sevenideographicparen: 0x3226,
  25925. seveninferior: 0x2087,
  25926. sevenmonospace: 0xFF17,
  25927. sevenoldstyle: 0xF737,
  25928. sevenparen: 0x247A,
  25929. sevenperiod: 0x248E,
  25930. sevenpersian: 0x06F7,
  25931. sevenroman: 0x2176,
  25932. sevensuperior: 0x2077,
  25933. seventeencircle: 0x2470,
  25934. seventeenparen: 0x2484,
  25935. seventeenperiod: 0x2498,
  25936. seventhai: 0x0E57,
  25937. sfthyphen: 0x00AD,
  25938. shaarmenian: 0x0577,
  25939. shabengali: 0x09B6,
  25940. shacyrillic: 0x0448,
  25941. shaddaarabic: 0x0651,
  25942. shaddadammaarabic: 0xFC61,
  25943. shaddadammatanarabic: 0xFC5E,
  25944. shaddafathaarabic: 0xFC60,
  25945. shaddakasraarabic: 0xFC62,
  25946. shaddakasratanarabic: 0xFC5F,
  25947. shade: 0x2592,
  25948. shadedark: 0x2593,
  25949. shadelight: 0x2591,
  25950. shademedium: 0x2592,
  25951. shadeva: 0x0936,
  25952. shagujarati: 0x0AB6,
  25953. shagurmukhi: 0x0A36,
  25954. shalshelethebrew: 0x0593,
  25955. shbopomofo: 0x3115,
  25956. shchacyrillic: 0x0449,
  25957. sheenarabic: 0x0634,
  25958. sheenfinalarabic: 0xFEB6,
  25959. sheeninitialarabic: 0xFEB7,
  25960. sheenmedialarabic: 0xFEB8,
  25961. sheicoptic: 0x03E3,
  25962. sheqel: 0x20AA,
  25963. sheqelhebrew: 0x20AA,
  25964. sheva: 0x05B0,
  25965. sheva115: 0x05B0,
  25966. sheva15: 0x05B0,
  25967. sheva22: 0x05B0,
  25968. sheva2e: 0x05B0,
  25969. shevahebrew: 0x05B0,
  25970. shevanarrowhebrew: 0x05B0,
  25971. shevaquarterhebrew: 0x05B0,
  25972. shevawidehebrew: 0x05B0,
  25973. shhacyrillic: 0x04BB,
  25974. shimacoptic: 0x03ED,
  25975. shin: 0x05E9,
  25976. shindagesh: 0xFB49,
  25977. shindageshhebrew: 0xFB49,
  25978. shindageshshindot: 0xFB2C,
  25979. shindageshshindothebrew: 0xFB2C,
  25980. shindageshsindot: 0xFB2D,
  25981. shindageshsindothebrew: 0xFB2D,
  25982. shindothebrew: 0x05C1,
  25983. shinhebrew: 0x05E9,
  25984. shinshindot: 0xFB2A,
  25985. shinshindothebrew: 0xFB2A,
  25986. shinsindot: 0xFB2B,
  25987. shinsindothebrew: 0xFB2B,
  25988. shook: 0x0282,
  25989. sigma: 0x03C3,
  25990. sigma1: 0x03C2,
  25991. sigmafinal: 0x03C2,
  25992. sigmalunatesymbolgreek: 0x03F2,
  25993. sihiragana: 0x3057,
  25994. sikatakana: 0x30B7,
  25995. sikatakanahalfwidth: 0xFF7C,
  25996. siluqhebrew: 0x05BD,
  25997. siluqlefthebrew: 0x05BD,
  25998. similar: 0x223C,
  25999. sindothebrew: 0x05C2,
  26000. siosacirclekorean: 0x3274,
  26001. siosaparenkorean: 0x3214,
  26002. sioscieuckorean: 0x317E,
  26003. sioscirclekorean: 0x3266,
  26004. sioskiyeokkorean: 0x317A,
  26005. sioskorean: 0x3145,
  26006. siosnieunkorean: 0x317B,
  26007. siosparenkorean: 0x3206,
  26008. siospieupkorean: 0x317D,
  26009. siostikeutkorean: 0x317C,
  26010. six: 0x0036,
  26011. sixarabic: 0x0666,
  26012. sixbengali: 0x09EC,
  26013. sixcircle: 0x2465,
  26014. sixcircleinversesansserif: 0x278F,
  26015. sixdeva: 0x096C,
  26016. sixgujarati: 0x0AEC,
  26017. sixgurmukhi: 0x0A6C,
  26018. sixhackarabic: 0x0666,
  26019. sixhangzhou: 0x3026,
  26020. sixideographicparen: 0x3225,
  26021. sixinferior: 0x2086,
  26022. sixmonospace: 0xFF16,
  26023. sixoldstyle: 0xF736,
  26024. sixparen: 0x2479,
  26025. sixperiod: 0x248D,
  26026. sixpersian: 0x06F6,
  26027. sixroman: 0x2175,
  26028. sixsuperior: 0x2076,
  26029. sixteencircle: 0x246F,
  26030. sixteencurrencydenominatorbengali: 0x09F9,
  26031. sixteenparen: 0x2483,
  26032. sixteenperiod: 0x2497,
  26033. sixthai: 0x0E56,
  26034. slash: 0x002F,
  26035. slashmonospace: 0xFF0F,
  26036. slong: 0x017F,
  26037. slongdotaccent: 0x1E9B,
  26038. smileface: 0x263A,
  26039. smonospace: 0xFF53,
  26040. sofpasuqhebrew: 0x05C3,
  26041. softhyphen: 0x00AD,
  26042. softsigncyrillic: 0x044C,
  26043. sohiragana: 0x305D,
  26044. sokatakana: 0x30BD,
  26045. sokatakanahalfwidth: 0xFF7F,
  26046. soliduslongoverlaycmb: 0x0338,
  26047. solidusshortoverlaycmb: 0x0337,
  26048. sorusithai: 0x0E29,
  26049. sosalathai: 0x0E28,
  26050. sosothai: 0x0E0B,
  26051. sosuathai: 0x0E2A,
  26052. space: 0x0020,
  26053. spacehackarabic: 0x0020,
  26054. spade: 0x2660,
  26055. spadesuitblack: 0x2660,
  26056. spadesuitwhite: 0x2664,
  26057. sparen: 0x24AE,
  26058. squarebelowcmb: 0x033B,
  26059. squarecc: 0x33C4,
  26060. squarecm: 0x339D,
  26061. squarediagonalcrosshatchfill: 0x25A9,
  26062. squarehorizontalfill: 0x25A4,
  26063. squarekg: 0x338F,
  26064. squarekm: 0x339E,
  26065. squarekmcapital: 0x33CE,
  26066. squareln: 0x33D1,
  26067. squarelog: 0x33D2,
  26068. squaremg: 0x338E,
  26069. squaremil: 0x33D5,
  26070. squaremm: 0x339C,
  26071. squaremsquared: 0x33A1,
  26072. squareorthogonalcrosshatchfill: 0x25A6,
  26073. squareupperlefttolowerrightfill: 0x25A7,
  26074. squareupperrighttolowerleftfill: 0x25A8,
  26075. squareverticalfill: 0x25A5,
  26076. squarewhitewithsmallblack: 0x25A3,
  26077. srsquare: 0x33DB,
  26078. ssabengali: 0x09B7,
  26079. ssadeva: 0x0937,
  26080. ssagujarati: 0x0AB7,
  26081. ssangcieuckorean: 0x3149,
  26082. ssanghieuhkorean: 0x3185,
  26083. ssangieungkorean: 0x3180,
  26084. ssangkiyeokkorean: 0x3132,
  26085. ssangnieunkorean: 0x3165,
  26086. ssangpieupkorean: 0x3143,
  26087. ssangsioskorean: 0x3146,
  26088. ssangtikeutkorean: 0x3138,
  26089. ssuperior: 0xF6F2,
  26090. sterling: 0x00A3,
  26091. sterlingmonospace: 0xFFE1,
  26092. strokelongoverlaycmb: 0x0336,
  26093. strokeshortoverlaycmb: 0x0335,
  26094. subset: 0x2282,
  26095. subsetnotequal: 0x228A,
  26096. subsetorequal: 0x2286,
  26097. succeeds: 0x227B,
  26098. suchthat: 0x220B,
  26099. suhiragana: 0x3059,
  26100. sukatakana: 0x30B9,
  26101. sukatakanahalfwidth: 0xFF7D,
  26102. sukunarabic: 0x0652,
  26103. summation: 0x2211,
  26104. sun: 0x263C,
  26105. superset: 0x2283,
  26106. supersetnotequal: 0x228B,
  26107. supersetorequal: 0x2287,
  26108. svsquare: 0x33DC,
  26109. syouwaerasquare: 0x337C,
  26110. t: 0x0074,
  26111. tabengali: 0x09A4,
  26112. tackdown: 0x22A4,
  26113. tackleft: 0x22A3,
  26114. tadeva: 0x0924,
  26115. tagujarati: 0x0AA4,
  26116. tagurmukhi: 0x0A24,
  26117. taharabic: 0x0637,
  26118. tahfinalarabic: 0xFEC2,
  26119. tahinitialarabic: 0xFEC3,
  26120. tahiragana: 0x305F,
  26121. tahmedialarabic: 0xFEC4,
  26122. taisyouerasquare: 0x337D,
  26123. takatakana: 0x30BF,
  26124. takatakanahalfwidth: 0xFF80,
  26125. tatweelarabic: 0x0640,
  26126. tau: 0x03C4,
  26127. tav: 0x05EA,
  26128. tavdages: 0xFB4A,
  26129. tavdagesh: 0xFB4A,
  26130. tavdageshhebrew: 0xFB4A,
  26131. tavhebrew: 0x05EA,
  26132. tbar: 0x0167,
  26133. tbopomofo: 0x310A,
  26134. tcaron: 0x0165,
  26135. tccurl: 0x02A8,
  26136. tcedilla: 0x0163,
  26137. tcheharabic: 0x0686,
  26138. tchehfinalarabic: 0xFB7B,
  26139. tchehinitialarabic: 0xFB7C,
  26140. tchehmedialarabic: 0xFB7D,
  26141. tcircle: 0x24E3,
  26142. tcircumflexbelow: 0x1E71,
  26143. tcommaaccent: 0x0163,
  26144. tdieresis: 0x1E97,
  26145. tdotaccent: 0x1E6B,
  26146. tdotbelow: 0x1E6D,
  26147. tecyrillic: 0x0442,
  26148. tedescendercyrillic: 0x04AD,
  26149. teharabic: 0x062A,
  26150. tehfinalarabic: 0xFE96,
  26151. tehhahinitialarabic: 0xFCA2,
  26152. tehhahisolatedarabic: 0xFC0C,
  26153. tehinitialarabic: 0xFE97,
  26154. tehiragana: 0x3066,
  26155. tehjeeminitialarabic: 0xFCA1,
  26156. tehjeemisolatedarabic: 0xFC0B,
  26157. tehmarbutaarabic: 0x0629,
  26158. tehmarbutafinalarabic: 0xFE94,
  26159. tehmedialarabic: 0xFE98,
  26160. tehmeeminitialarabic: 0xFCA4,
  26161. tehmeemisolatedarabic: 0xFC0E,
  26162. tehnoonfinalarabic: 0xFC73,
  26163. tekatakana: 0x30C6,
  26164. tekatakanahalfwidth: 0xFF83,
  26165. telephone: 0x2121,
  26166. telephoneblack: 0x260E,
  26167. telishagedolahebrew: 0x05A0,
  26168. telishaqetanahebrew: 0x05A9,
  26169. tencircle: 0x2469,
  26170. tenideographicparen: 0x3229,
  26171. tenparen: 0x247D,
  26172. tenperiod: 0x2491,
  26173. tenroman: 0x2179,
  26174. tesh: 0x02A7,
  26175. tet: 0x05D8,
  26176. tetdagesh: 0xFB38,
  26177. tetdageshhebrew: 0xFB38,
  26178. tethebrew: 0x05D8,
  26179. tetsecyrillic: 0x04B5,
  26180. tevirhebrew: 0x059B,
  26181. tevirlefthebrew: 0x059B,
  26182. thabengali: 0x09A5,
  26183. thadeva: 0x0925,
  26184. thagujarati: 0x0AA5,
  26185. thagurmukhi: 0x0A25,
  26186. thalarabic: 0x0630,
  26187. thalfinalarabic: 0xFEAC,
  26188. thanthakhatlowleftthai: 0xF898,
  26189. thanthakhatlowrightthai: 0xF897,
  26190. thanthakhatthai: 0x0E4C,
  26191. thanthakhatupperleftthai: 0xF896,
  26192. theharabic: 0x062B,
  26193. thehfinalarabic: 0xFE9A,
  26194. thehinitialarabic: 0xFE9B,
  26195. thehmedialarabic: 0xFE9C,
  26196. thereexists: 0x2203,
  26197. therefore: 0x2234,
  26198. theta: 0x03B8,
  26199. theta1: 0x03D1,
  26200. thetasymbolgreek: 0x03D1,
  26201. thieuthacirclekorean: 0x3279,
  26202. thieuthaparenkorean: 0x3219,
  26203. thieuthcirclekorean: 0x326B,
  26204. thieuthkorean: 0x314C,
  26205. thieuthparenkorean: 0x320B,
  26206. thirteencircle: 0x246C,
  26207. thirteenparen: 0x2480,
  26208. thirteenperiod: 0x2494,
  26209. thonangmonthothai: 0x0E11,
  26210. thook: 0x01AD,
  26211. thophuthaothai: 0x0E12,
  26212. thorn: 0x00FE,
  26213. thothahanthai: 0x0E17,
  26214. thothanthai: 0x0E10,
  26215. thothongthai: 0x0E18,
  26216. thothungthai: 0x0E16,
  26217. thousandcyrillic: 0x0482,
  26218. thousandsseparatorarabic: 0x066C,
  26219. thousandsseparatorpersian: 0x066C,
  26220. three: 0x0033,
  26221. threearabic: 0x0663,
  26222. threebengali: 0x09E9,
  26223. threecircle: 0x2462,
  26224. threecircleinversesansserif: 0x278C,
  26225. threedeva: 0x0969,
  26226. threeeighths: 0x215C,
  26227. threegujarati: 0x0AE9,
  26228. threegurmukhi: 0x0A69,
  26229. threehackarabic: 0x0663,
  26230. threehangzhou: 0x3023,
  26231. threeideographicparen: 0x3222,
  26232. threeinferior: 0x2083,
  26233. threemonospace: 0xFF13,
  26234. threenumeratorbengali: 0x09F6,
  26235. threeoldstyle: 0xF733,
  26236. threeparen: 0x2476,
  26237. threeperiod: 0x248A,
  26238. threepersian: 0x06F3,
  26239. threequarters: 0x00BE,
  26240. threequartersemdash: 0xF6DE,
  26241. threeroman: 0x2172,
  26242. threesuperior: 0x00B3,
  26243. threethai: 0x0E53,
  26244. thzsquare: 0x3394,
  26245. tihiragana: 0x3061,
  26246. tikatakana: 0x30C1,
  26247. tikatakanahalfwidth: 0xFF81,
  26248. tikeutacirclekorean: 0x3270,
  26249. tikeutaparenkorean: 0x3210,
  26250. tikeutcirclekorean: 0x3262,
  26251. tikeutkorean: 0x3137,
  26252. tikeutparenkorean: 0x3202,
  26253. tilde: 0x02DC,
  26254. tildebelowcmb: 0x0330,
  26255. tildecmb: 0x0303,
  26256. tildecomb: 0x0303,
  26257. tildedoublecmb: 0x0360,
  26258. tildeoperator: 0x223C,
  26259. tildeoverlaycmb: 0x0334,
  26260. tildeverticalcmb: 0x033E,
  26261. timescircle: 0x2297,
  26262. tipehahebrew: 0x0596,
  26263. tipehalefthebrew: 0x0596,
  26264. tippigurmukhi: 0x0A70,
  26265. titlocyrilliccmb: 0x0483,
  26266. tiwnarmenian: 0x057F,
  26267. tlinebelow: 0x1E6F,
  26268. tmonospace: 0xFF54,
  26269. toarmenian: 0x0569,
  26270. tohiragana: 0x3068,
  26271. tokatakana: 0x30C8,
  26272. tokatakanahalfwidth: 0xFF84,
  26273. tonebarextrahighmod: 0x02E5,
  26274. tonebarextralowmod: 0x02E9,
  26275. tonebarhighmod: 0x02E6,
  26276. tonebarlowmod: 0x02E8,
  26277. tonebarmidmod: 0x02E7,
  26278. tonefive: 0x01BD,
  26279. tonesix: 0x0185,
  26280. tonetwo: 0x01A8,
  26281. tonos: 0x0384,
  26282. tonsquare: 0x3327,
  26283. topatakthai: 0x0E0F,
  26284. tortoiseshellbracketleft: 0x3014,
  26285. tortoiseshellbracketleftsmall: 0xFE5D,
  26286. tortoiseshellbracketleftvertical: 0xFE39,
  26287. tortoiseshellbracketright: 0x3015,
  26288. tortoiseshellbracketrightsmall: 0xFE5E,
  26289. tortoiseshellbracketrightvertical: 0xFE3A,
  26290. totaothai: 0x0E15,
  26291. tpalatalhook: 0x01AB,
  26292. tparen: 0x24AF,
  26293. trademark: 0x2122,
  26294. trademarksans: 0xF8EA,
  26295. trademarkserif: 0xF6DB,
  26296. tretroflexhook: 0x0288,
  26297. triagdn: 0x25BC,
  26298. triaglf: 0x25C4,
  26299. triagrt: 0x25BA,
  26300. triagup: 0x25B2,
  26301. ts: 0x02A6,
  26302. tsadi: 0x05E6,
  26303. tsadidagesh: 0xFB46,
  26304. tsadidageshhebrew: 0xFB46,
  26305. tsadihebrew: 0x05E6,
  26306. tsecyrillic: 0x0446,
  26307. tsere: 0x05B5,
  26308. tsere12: 0x05B5,
  26309. tsere1e: 0x05B5,
  26310. tsere2b: 0x05B5,
  26311. tserehebrew: 0x05B5,
  26312. tserenarrowhebrew: 0x05B5,
  26313. tserequarterhebrew: 0x05B5,
  26314. tserewidehebrew: 0x05B5,
  26315. tshecyrillic: 0x045B,
  26316. tsuperior: 0xF6F3,
  26317. ttabengali: 0x099F,
  26318. ttadeva: 0x091F,
  26319. ttagujarati: 0x0A9F,
  26320. ttagurmukhi: 0x0A1F,
  26321. tteharabic: 0x0679,
  26322. ttehfinalarabic: 0xFB67,
  26323. ttehinitialarabic: 0xFB68,
  26324. ttehmedialarabic: 0xFB69,
  26325. tthabengali: 0x09A0,
  26326. tthadeva: 0x0920,
  26327. tthagujarati: 0x0AA0,
  26328. tthagurmukhi: 0x0A20,
  26329. tturned: 0x0287,
  26330. tuhiragana: 0x3064,
  26331. tukatakana: 0x30C4,
  26332. tukatakanahalfwidth: 0xFF82,
  26333. tusmallhiragana: 0x3063,
  26334. tusmallkatakana: 0x30C3,
  26335. tusmallkatakanahalfwidth: 0xFF6F,
  26336. twelvecircle: 0x246B,
  26337. twelveparen: 0x247F,
  26338. twelveperiod: 0x2493,
  26339. twelveroman: 0x217B,
  26340. twentycircle: 0x2473,
  26341. twentyhangzhou: 0x5344,
  26342. twentyparen: 0x2487,
  26343. twentyperiod: 0x249B,
  26344. two: 0x0032,
  26345. twoarabic: 0x0662,
  26346. twobengali: 0x09E8,
  26347. twocircle: 0x2461,
  26348. twocircleinversesansserif: 0x278B,
  26349. twodeva: 0x0968,
  26350. twodotenleader: 0x2025,
  26351. twodotleader: 0x2025,
  26352. twodotleadervertical: 0xFE30,
  26353. twogujarati: 0x0AE8,
  26354. twogurmukhi: 0x0A68,
  26355. twohackarabic: 0x0662,
  26356. twohangzhou: 0x3022,
  26357. twoideographicparen: 0x3221,
  26358. twoinferior: 0x2082,
  26359. twomonospace: 0xFF12,
  26360. twonumeratorbengali: 0x09F5,
  26361. twooldstyle: 0xF732,
  26362. twoparen: 0x2475,
  26363. twoperiod: 0x2489,
  26364. twopersian: 0x06F2,
  26365. tworoman: 0x2171,
  26366. twostroke: 0x01BB,
  26367. twosuperior: 0x00B2,
  26368. twothai: 0x0E52,
  26369. twothirds: 0x2154,
  26370. u: 0x0075,
  26371. uacute: 0x00FA,
  26372. ubar: 0x0289,
  26373. ubengali: 0x0989,
  26374. ubopomofo: 0x3128,
  26375. ubreve: 0x016D,
  26376. ucaron: 0x01D4,
  26377. ucircle: 0x24E4,
  26378. ucircumflex: 0x00FB,
  26379. ucircumflexbelow: 0x1E77,
  26380. ucyrillic: 0x0443,
  26381. udattadeva: 0x0951,
  26382. udblacute: 0x0171,
  26383. udblgrave: 0x0215,
  26384. udeva: 0x0909,
  26385. udieresis: 0x00FC,
  26386. udieresisacute: 0x01D8,
  26387. udieresisbelow: 0x1E73,
  26388. udieresiscaron: 0x01DA,
  26389. udieresiscyrillic: 0x04F1,
  26390. udieresisgrave: 0x01DC,
  26391. udieresismacron: 0x01D6,
  26392. udotbelow: 0x1EE5,
  26393. ugrave: 0x00F9,
  26394. ugujarati: 0x0A89,
  26395. ugurmukhi: 0x0A09,
  26396. uhiragana: 0x3046,
  26397. uhookabove: 0x1EE7,
  26398. uhorn: 0x01B0,
  26399. uhornacute: 0x1EE9,
  26400. uhorndotbelow: 0x1EF1,
  26401. uhorngrave: 0x1EEB,
  26402. uhornhookabove: 0x1EED,
  26403. uhorntilde: 0x1EEF,
  26404. uhungarumlaut: 0x0171,
  26405. uhungarumlautcyrillic: 0x04F3,
  26406. uinvertedbreve: 0x0217,
  26407. ukatakana: 0x30A6,
  26408. ukatakanahalfwidth: 0xFF73,
  26409. ukcyrillic: 0x0479,
  26410. ukorean: 0x315C,
  26411. umacron: 0x016B,
  26412. umacroncyrillic: 0x04EF,
  26413. umacrondieresis: 0x1E7B,
  26414. umatragurmukhi: 0x0A41,
  26415. umonospace: 0xFF55,
  26416. underscore: 0x005F,
  26417. underscoredbl: 0x2017,
  26418. underscoremonospace: 0xFF3F,
  26419. underscorevertical: 0xFE33,
  26420. underscorewavy: 0xFE4F,
  26421. union: 0x222A,
  26422. universal: 0x2200,
  26423. uogonek: 0x0173,
  26424. uparen: 0x24B0,
  26425. upblock: 0x2580,
  26426. upperdothebrew: 0x05C4,
  26427. upsilon: 0x03C5,
  26428. upsilondieresis: 0x03CB,
  26429. upsilondieresistonos: 0x03B0,
  26430. upsilonlatin: 0x028A,
  26431. upsilontonos: 0x03CD,
  26432. uptackbelowcmb: 0x031D,
  26433. uptackmod: 0x02D4,
  26434. uragurmukhi: 0x0A73,
  26435. uring: 0x016F,
  26436. ushortcyrillic: 0x045E,
  26437. usmallhiragana: 0x3045,
  26438. usmallkatakana: 0x30A5,
  26439. usmallkatakanahalfwidth: 0xFF69,
  26440. ustraightcyrillic: 0x04AF,
  26441. ustraightstrokecyrillic: 0x04B1,
  26442. utilde: 0x0169,
  26443. utildeacute: 0x1E79,
  26444. utildebelow: 0x1E75,
  26445. uubengali: 0x098A,
  26446. uudeva: 0x090A,
  26447. uugujarati: 0x0A8A,
  26448. uugurmukhi: 0x0A0A,
  26449. uumatragurmukhi: 0x0A42,
  26450. uuvowelsignbengali: 0x09C2,
  26451. uuvowelsigndeva: 0x0942,
  26452. uuvowelsigngujarati: 0x0AC2,
  26453. uvowelsignbengali: 0x09C1,
  26454. uvowelsigndeva: 0x0941,
  26455. uvowelsigngujarati: 0x0AC1,
  26456. v: 0x0076,
  26457. vadeva: 0x0935,
  26458. vagujarati: 0x0AB5,
  26459. vagurmukhi: 0x0A35,
  26460. vakatakana: 0x30F7,
  26461. vav: 0x05D5,
  26462. vavdagesh: 0xFB35,
  26463. vavdagesh65: 0xFB35,
  26464. vavdageshhebrew: 0xFB35,
  26465. vavhebrew: 0x05D5,
  26466. vavholam: 0xFB4B,
  26467. vavholamhebrew: 0xFB4B,
  26468. vavvavhebrew: 0x05F0,
  26469. vavyodhebrew: 0x05F1,
  26470. vcircle: 0x24E5,
  26471. vdotbelow: 0x1E7F,
  26472. vecyrillic: 0x0432,
  26473. veharabic: 0x06A4,
  26474. vehfinalarabic: 0xFB6B,
  26475. vehinitialarabic: 0xFB6C,
  26476. vehmedialarabic: 0xFB6D,
  26477. vekatakana: 0x30F9,
  26478. venus: 0x2640,
  26479. verticalbar: 0x007C,
  26480. verticallineabovecmb: 0x030D,
  26481. verticallinebelowcmb: 0x0329,
  26482. verticallinelowmod: 0x02CC,
  26483. verticallinemod: 0x02C8,
  26484. vewarmenian: 0x057E,
  26485. vhook: 0x028B,
  26486. vikatakana: 0x30F8,
  26487. viramabengali: 0x09CD,
  26488. viramadeva: 0x094D,
  26489. viramagujarati: 0x0ACD,
  26490. visargabengali: 0x0983,
  26491. visargadeva: 0x0903,
  26492. visargagujarati: 0x0A83,
  26493. vmonospace: 0xFF56,
  26494. voarmenian: 0x0578,
  26495. voicediterationhiragana: 0x309E,
  26496. voicediterationkatakana: 0x30FE,
  26497. voicedmarkkana: 0x309B,
  26498. voicedmarkkanahalfwidth: 0xFF9E,
  26499. vokatakana: 0x30FA,
  26500. vparen: 0x24B1,
  26501. vtilde: 0x1E7D,
  26502. vturned: 0x028C,
  26503. vuhiragana: 0x3094,
  26504. vukatakana: 0x30F4,
  26505. w: 0x0077,
  26506. wacute: 0x1E83,
  26507. waekorean: 0x3159,
  26508. wahiragana: 0x308F,
  26509. wakatakana: 0x30EF,
  26510. wakatakanahalfwidth: 0xFF9C,
  26511. wakorean: 0x3158,
  26512. wasmallhiragana: 0x308E,
  26513. wasmallkatakana: 0x30EE,
  26514. wattosquare: 0x3357,
  26515. wavedash: 0x301C,
  26516. wavyunderscorevertical: 0xFE34,
  26517. wawarabic: 0x0648,
  26518. wawfinalarabic: 0xFEEE,
  26519. wawhamzaabovearabic: 0x0624,
  26520. wawhamzaabovefinalarabic: 0xFE86,
  26521. wbsquare: 0x33DD,
  26522. wcircle: 0x24E6,
  26523. wcircumflex: 0x0175,
  26524. wdieresis: 0x1E85,
  26525. wdotaccent: 0x1E87,
  26526. wdotbelow: 0x1E89,
  26527. wehiragana: 0x3091,
  26528. weierstrass: 0x2118,
  26529. wekatakana: 0x30F1,
  26530. wekorean: 0x315E,
  26531. weokorean: 0x315D,
  26532. wgrave: 0x1E81,
  26533. whitebullet: 0x25E6,
  26534. whitecircle: 0x25CB,
  26535. whitecircleinverse: 0x25D9,
  26536. whitecornerbracketleft: 0x300E,
  26537. whitecornerbracketleftvertical: 0xFE43,
  26538. whitecornerbracketright: 0x300F,
  26539. whitecornerbracketrightvertical: 0xFE44,
  26540. whitediamond: 0x25C7,
  26541. whitediamondcontainingblacksmalldiamond: 0x25C8,
  26542. whitedownpointingsmalltriangle: 0x25BF,
  26543. whitedownpointingtriangle: 0x25BD,
  26544. whiteleftpointingsmalltriangle: 0x25C3,
  26545. whiteleftpointingtriangle: 0x25C1,
  26546. whitelenticularbracketleft: 0x3016,
  26547. whitelenticularbracketright: 0x3017,
  26548. whiterightpointingsmalltriangle: 0x25B9,
  26549. whiterightpointingtriangle: 0x25B7,
  26550. whitesmallsquare: 0x25AB,
  26551. whitesmilingface: 0x263A,
  26552. whitesquare: 0x25A1,
  26553. whitestar: 0x2606,
  26554. whitetelephone: 0x260F,
  26555. whitetortoiseshellbracketleft: 0x3018,
  26556. whitetortoiseshellbracketright: 0x3019,
  26557. whiteuppointingsmalltriangle: 0x25B5,
  26558. whiteuppointingtriangle: 0x25B3,
  26559. wihiragana: 0x3090,
  26560. wikatakana: 0x30F0,
  26561. wikorean: 0x315F,
  26562. wmonospace: 0xFF57,
  26563. wohiragana: 0x3092,
  26564. wokatakana: 0x30F2,
  26565. wokatakanahalfwidth: 0xFF66,
  26566. won: 0x20A9,
  26567. wonmonospace: 0xFFE6,
  26568. wowaenthai: 0x0E27,
  26569. wparen: 0x24B2,
  26570. wring: 0x1E98,
  26571. wsuperior: 0x02B7,
  26572. wturned: 0x028D,
  26573. wynn: 0x01BF,
  26574. x: 0x0078,
  26575. xabovecmb: 0x033D,
  26576. xbopomofo: 0x3112,
  26577. xcircle: 0x24E7,
  26578. xdieresis: 0x1E8D,
  26579. xdotaccent: 0x1E8B,
  26580. xeharmenian: 0x056D,
  26581. xi: 0x03BE,
  26582. xmonospace: 0xFF58,
  26583. xparen: 0x24B3,
  26584. xsuperior: 0x02E3,
  26585. y: 0x0079,
  26586. yaadosquare: 0x334E,
  26587. yabengali: 0x09AF,
  26588. yacute: 0x00FD,
  26589. yadeva: 0x092F,
  26590. yaekorean: 0x3152,
  26591. yagujarati: 0x0AAF,
  26592. yagurmukhi: 0x0A2F,
  26593. yahiragana: 0x3084,
  26594. yakatakana: 0x30E4,
  26595. yakatakanahalfwidth: 0xFF94,
  26596. yakorean: 0x3151,
  26597. yamakkanthai: 0x0E4E,
  26598. yasmallhiragana: 0x3083,
  26599. yasmallkatakana: 0x30E3,
  26600. yasmallkatakanahalfwidth: 0xFF6C,
  26601. yatcyrillic: 0x0463,
  26602. ycircle: 0x24E8,
  26603. ycircumflex: 0x0177,
  26604. ydieresis: 0x00FF,
  26605. ydotaccent: 0x1E8F,
  26606. ydotbelow: 0x1EF5,
  26607. yeharabic: 0x064A,
  26608. yehbarreearabic: 0x06D2,
  26609. yehbarreefinalarabic: 0xFBAF,
  26610. yehfinalarabic: 0xFEF2,
  26611. yehhamzaabovearabic: 0x0626,
  26612. yehhamzaabovefinalarabic: 0xFE8A,
  26613. yehhamzaaboveinitialarabic: 0xFE8B,
  26614. yehhamzaabovemedialarabic: 0xFE8C,
  26615. yehinitialarabic: 0xFEF3,
  26616. yehmedialarabic: 0xFEF4,
  26617. yehmeeminitialarabic: 0xFCDD,
  26618. yehmeemisolatedarabic: 0xFC58,
  26619. yehnoonfinalarabic: 0xFC94,
  26620. yehthreedotsbelowarabic: 0x06D1,
  26621. yekorean: 0x3156,
  26622. yen: 0x00A5,
  26623. yenmonospace: 0xFFE5,
  26624. yeokorean: 0x3155,
  26625. yeorinhieuhkorean: 0x3186,
  26626. yerahbenyomohebrew: 0x05AA,
  26627. yerahbenyomolefthebrew: 0x05AA,
  26628. yericyrillic: 0x044B,
  26629. yerudieresiscyrillic: 0x04F9,
  26630. yesieungkorean: 0x3181,
  26631. yesieungpansioskorean: 0x3183,
  26632. yesieungsioskorean: 0x3182,
  26633. yetivhebrew: 0x059A,
  26634. ygrave: 0x1EF3,
  26635. yhook: 0x01B4,
  26636. yhookabove: 0x1EF7,
  26637. yiarmenian: 0x0575,
  26638. yicyrillic: 0x0457,
  26639. yikorean: 0x3162,
  26640. yinyang: 0x262F,
  26641. yiwnarmenian: 0x0582,
  26642. ymonospace: 0xFF59,
  26643. yod: 0x05D9,
  26644. yoddagesh: 0xFB39,
  26645. yoddageshhebrew: 0xFB39,
  26646. yodhebrew: 0x05D9,
  26647. yodyodhebrew: 0x05F2,
  26648. yodyodpatahhebrew: 0xFB1F,
  26649. yohiragana: 0x3088,
  26650. yoikorean: 0x3189,
  26651. yokatakana: 0x30E8,
  26652. yokatakanahalfwidth: 0xFF96,
  26653. yokorean: 0x315B,
  26654. yosmallhiragana: 0x3087,
  26655. yosmallkatakana: 0x30E7,
  26656. yosmallkatakanahalfwidth: 0xFF6E,
  26657. yotgreek: 0x03F3,
  26658. yoyaekorean: 0x3188,
  26659. yoyakorean: 0x3187,
  26660. yoyakthai: 0x0E22,
  26661. yoyingthai: 0x0E0D,
  26662. yparen: 0x24B4,
  26663. ypogegrammeni: 0x037A,
  26664. ypogegrammenigreekcmb: 0x0345,
  26665. yr: 0x01A6,
  26666. yring: 0x1E99,
  26667. ysuperior: 0x02B8,
  26668. ytilde: 0x1EF9,
  26669. yturned: 0x028E,
  26670. yuhiragana: 0x3086,
  26671. yuikorean: 0x318C,
  26672. yukatakana: 0x30E6,
  26673. yukatakanahalfwidth: 0xFF95,
  26674. yukorean: 0x3160,
  26675. yusbigcyrillic: 0x046B,
  26676. yusbigiotifiedcyrillic: 0x046D,
  26677. yuslittlecyrillic: 0x0467,
  26678. yuslittleiotifiedcyrillic: 0x0469,
  26679. yusmallhiragana: 0x3085,
  26680. yusmallkatakana: 0x30E5,
  26681. yusmallkatakanahalfwidth: 0xFF6D,
  26682. yuyekorean: 0x318B,
  26683. yuyeokorean: 0x318A,
  26684. yyabengali: 0x09DF,
  26685. yyadeva: 0x095F,
  26686. z: 0x007A,
  26687. zaarmenian: 0x0566,
  26688. zacute: 0x017A,
  26689. zadeva: 0x095B,
  26690. zagurmukhi: 0x0A5B,
  26691. zaharabic: 0x0638,
  26692. zahfinalarabic: 0xFEC6,
  26693. zahinitialarabic: 0xFEC7,
  26694. zahiragana: 0x3056,
  26695. zahmedialarabic: 0xFEC8,
  26696. zainarabic: 0x0632,
  26697. zainfinalarabic: 0xFEB0,
  26698. zakatakana: 0x30B6,
  26699. zaqefgadolhebrew: 0x0595,
  26700. zaqefqatanhebrew: 0x0594,
  26701. zarqahebrew: 0x0598,
  26702. zayin: 0x05D6,
  26703. zayindagesh: 0xFB36,
  26704. zayindageshhebrew: 0xFB36,
  26705. zayinhebrew: 0x05D6,
  26706. zbopomofo: 0x3117,
  26707. zcaron: 0x017E,
  26708. zcircle: 0x24E9,
  26709. zcircumflex: 0x1E91,
  26710. zcurl: 0x0291,
  26711. zdot: 0x017C,
  26712. zdotaccent: 0x017C,
  26713. zdotbelow: 0x1E93,
  26714. zecyrillic: 0x0437,
  26715. zedescendercyrillic: 0x0499,
  26716. zedieresiscyrillic: 0x04DF,
  26717. zehiragana: 0x305C,
  26718. zekatakana: 0x30BC,
  26719. zero: 0x0030,
  26720. zeroarabic: 0x0660,
  26721. zerobengali: 0x09E6,
  26722. zerodeva: 0x0966,
  26723. zerogujarati: 0x0AE6,
  26724. zerogurmukhi: 0x0A66,
  26725. zerohackarabic: 0x0660,
  26726. zeroinferior: 0x2080,
  26727. zeromonospace: 0xFF10,
  26728. zerooldstyle: 0xF730,
  26729. zeropersian: 0x06F0,
  26730. zerosuperior: 0x2070,
  26731. zerothai: 0x0E50,
  26732. zerowidthjoiner: 0xFEFF,
  26733. zerowidthnonjoiner: 0x200C,
  26734. zerowidthspace: 0x200B,
  26735. zeta: 0x03B6,
  26736. zhbopomofo: 0x3113,
  26737. zhearmenian: 0x056A,
  26738. zhebrevecyrillic: 0x04C2,
  26739. zhecyrillic: 0x0436,
  26740. zhedescendercyrillic: 0x0497,
  26741. zhedieresiscyrillic: 0x04DD,
  26742. zihiragana: 0x3058,
  26743. zikatakana: 0x30B8,
  26744. zinorhebrew: 0x05AE,
  26745. zlinebelow: 0x1E95,
  26746. zmonospace: 0xFF5A,
  26747. zohiragana: 0x305E,
  26748. zokatakana: 0x30BE,
  26749. zparen: 0x24B5,
  26750. zretroflexhook: 0x0290,
  26751. zstroke: 0x01B6,
  26752. zuhiragana: 0x305A,
  26753. zukatakana: 0x30BA,
  26754. '.notdef': 0x0000
  26755. };
  26756. var PDFImage = (function PDFImageClosure() {
  26757. /**
  26758. * Decode the image in the main thread if it supported. Resovles the promise
  26759. * when the image data is ready.
  26760. */
  26761. function handleImageData(handler, xref, res, image, promise) {
  26762. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  26763. // For natively supported jpegs send them to the main thread for decoding.
  26764. var dict = image.dict;
  26765. var colorSpace = dict.get('ColorSpace', 'CS');
  26766. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  26767. var numComps = colorSpace.numComps;
  26768. handler.send('JpegDecode', [image.getIR(), numComps], function(message) {
  26769. var data = message.data;
  26770. var stream = new Stream(data, 0, data.length, image.dict);
  26771. promise.resolve(stream);
  26772. });
  26773. } else {
  26774. promise.resolve(image);
  26775. }
  26776. }
  26777. /**
  26778. * Decode and clamp a value. The formula is different from the spec because we
  26779. * don't decode to float range [0,1], we decode it in the [0,max] range.
  26780. */
  26781. function decodeAndClamp(value, addend, coefficient, max) {
  26782. value = addend + value * coefficient;
  26783. // Clamp the value to the range
  26784. return value < 0 ? 0 : value > max ? max : value;
  26785. }
  26786. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  26787. this.image = image;
  26788. if (image.getParams) {
  26789. // JPX/JPEG2000 streams directly contain bits per component
  26790. // and color space mode information.
  26791. warn('get params from actual stream');
  26792. // var bits = ...
  26793. // var colorspace = ...
  26794. }
  26795. // TODO cache rendered images?
  26796. var dict = image.dict;
  26797. this.width = dict.get('Width', 'W');
  26798. this.height = dict.get('Height', 'H');
  26799. if (this.width < 1 || this.height < 1)
  26800. error('Invalid image width: ' + this.width + ' or height: ' +
  26801. this.height);
  26802. this.interpolate = dict.get('Interpolate', 'I') || false;
  26803. this.imageMask = dict.get('ImageMask', 'IM') || false;
  26804. this.matte = dict.get('Matte') || false;
  26805. var bitsPerComponent = image.bitsPerComponent;
  26806. if (!bitsPerComponent) {
  26807. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  26808. if (!bitsPerComponent) {
  26809. if (this.imageMask)
  26810. bitsPerComponent = 1;
  26811. else
  26812. error('Bits per component missing in image: ' + this.imageMask);
  26813. }
  26814. }
  26815. this.bpc = bitsPerComponent;
  26816. if (!this.imageMask) {
  26817. var colorSpace = dict.get('ColorSpace', 'CS');
  26818. if (!colorSpace) {
  26819. warn('JPX images (which don"t require color spaces');
  26820. colorSpace = new Name('DeviceRGB');
  26821. }
  26822. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  26823. this.numComps = this.colorSpace.numComps;
  26824. }
  26825. this.decode = dict.get('Decode', 'D');
  26826. this.needsDecode = false;
  26827. if (this.decode &&
  26828. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  26829. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  26830. this.needsDecode = true;
  26831. // Do some preprocessing to avoid more math.
  26832. var max = (1 << bitsPerComponent) - 1;
  26833. this.decodeCoefficients = [];
  26834. this.decodeAddends = [];
  26835. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  26836. var dmin = this.decode[i];
  26837. var dmax = this.decode[i + 1];
  26838. this.decodeCoefficients[j] = dmax - dmin;
  26839. this.decodeAddends[j] = max * dmin;
  26840. }
  26841. }
  26842. if (smask) {
  26843. this.smask = new PDFImage(xref, res, smask, false);
  26844. } else if (mask) {
  26845. if (isStream(mask)) {
  26846. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  26847. } else {
  26848. // Color key mask (just an array).
  26849. this.mask = mask;
  26850. }
  26851. }
  26852. }
  26853. /**
  26854. * Handles processing of image data and calls the callback with an argument
  26855. * of a PDFImage when the image is ready to be used.
  26856. */
  26857. PDFImage.buildImage = function PDFImage_buildImage(callback, handler, xref,
  26858. res, image, inline) {
  26859. var imageDataPromise = new LegacyPromise();
  26860. var smaskPromise = new LegacyPromise();
  26861. var maskPromise = new LegacyPromise();
  26862. // The image data and smask data may not be ready yet, wait till both are
  26863. // resolved.
  26864. Promise.all([imageDataPromise, smaskPromise, maskPromise]).then(
  26865. function(results) {
  26866. var imageData = results[0], smaskData = results[1], maskData = results[2];
  26867. var image = new PDFImage(xref, res, imageData, inline, smaskData,
  26868. maskData);
  26869. callback(image);
  26870. });
  26871. handleImageData(handler, xref, res, image, imageDataPromise);
  26872. var smask = image.dict.get('SMask');
  26873. var mask = image.dict.get('Mask');
  26874. if (smask) {
  26875. handleImageData(handler, xref, res, smask, smaskPromise);
  26876. maskPromise.resolve(null);
  26877. } else {
  26878. smaskPromise.resolve(null);
  26879. if (mask) {
  26880. if (isStream(mask)) {
  26881. handleImageData(handler, xref, res, mask, maskPromise);
  26882. } else if (isArray(mask)) {
  26883. maskPromise.resolve(mask);
  26884. } else {
  26885. warn('Unsupported mask format.');
  26886. maskPromise.resolve(null);
  26887. }
  26888. } else {
  26889. maskPromise.resolve(null);
  26890. }
  26891. }
  26892. };
  26893. /**
  26894. * Resize an image using the nearest neighbor algorithm. Currently only
  26895. * supports one and three component images.
  26896. * @param {TypedArray} pixels The original image with one component.
  26897. * @param {Number} bpc Number of bits per component.
  26898. * @param {Number} components Number of color components, 1 or 3 is supported.
  26899. * @param {Number} w1 Original width.
  26900. * @param {Number} h1 Original height.
  26901. * @param {Number} w2 New width.
  26902. * @param {Number} h2 New height.
  26903. * @return {TypedArray} Resized image data.
  26904. */
  26905. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  26906. w1, h1, w2, h2) {
  26907. var length = w2 * h2 * components;
  26908. var temp = bpc <= 8 ? new Uint8Array(length) :
  26909. bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length);
  26910. var xRatio = w1 / w2;
  26911. var yRatio = h1 / h2;
  26912. var px, py, newIndex, oldIndex;
  26913. for (var i = 0; i < h2; i++) {
  26914. for (var j = 0; j < w2; j++) {
  26915. px = Math.floor(j * xRatio);
  26916. py = Math.floor(i * yRatio);
  26917. newIndex = (i * w2) + j;
  26918. oldIndex = ((py * w1) + px);
  26919. if (components === 1) {
  26920. temp[newIndex] = pixels[oldIndex];
  26921. } else if (components === 3) {
  26922. newIndex *= 3;
  26923. oldIndex *= 3;
  26924. temp[newIndex] = pixels[oldIndex];
  26925. temp[newIndex + 1] = pixels[oldIndex + 1];
  26926. temp[newIndex + 2] = pixels[oldIndex + 2];
  26927. }
  26928. }
  26929. }
  26930. return temp;
  26931. };
  26932. PDFImage.createMask = function PDFImage_createMask(imgArray, width, height,
  26933. inverseDecode) {
  26934. // Copy imgArray into a typed array (inverting if necessary) so it can be
  26935. // transferred to the main thread.
  26936. var length = ((width + 7) >> 3) * height;
  26937. var data = new Uint8Array(length);
  26938. if (inverseDecode) {
  26939. for (var i = 0; i < length; i++) {
  26940. data[i] = ~imgArray[i];
  26941. }
  26942. } else {
  26943. for (var i = 0; i < length; i++) {
  26944. data[i] = imgArray[i];
  26945. }
  26946. }
  26947. return {data: data, width: width, height: height};
  26948. };
  26949. PDFImage.prototype = {
  26950. get drawWidth() {
  26951. if (!this.smask)
  26952. return this.width;
  26953. return Math.max(this.width, this.smask.width);
  26954. },
  26955. get drawHeight() {
  26956. if (!this.smask)
  26957. return this.height;
  26958. return Math.max(this.height, this.smask.height);
  26959. },
  26960. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  26961. var bpc = this.bpc;
  26962. var decodeMap = this.decode;
  26963. var numComps = this.numComps;
  26964. var decodeAddends, decodeCoefficients;
  26965. var decodeAddends = this.decodeAddends;
  26966. var decodeCoefficients = this.decodeCoefficients;
  26967. var max = (1 << bpc) - 1;
  26968. if (bpc === 1) {
  26969. // If the buffer needed decode that means it just needs to be inverted.
  26970. for (var i = 0, ii = buffer.length; i < ii; i++) {
  26971. buffer[i] = +!(buffer[i]);
  26972. }
  26973. return;
  26974. }
  26975. var index = 0;
  26976. for (var i = 0, ii = this.width * this.height; i < ii; i++) {
  26977. for (var j = 0; j < numComps; j++) {
  26978. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  26979. decodeCoefficients[j], max);
  26980. index++;
  26981. }
  26982. }
  26983. },
  26984. getComponents: function PDFImage_getComponents(buffer) {
  26985. var bpc = this.bpc;
  26986. // This image doesn't require any extra work.
  26987. if (bpc === 8)
  26988. return buffer;
  26989. var bufferLength = buffer.length;
  26990. var width = this.width;
  26991. var height = this.height;
  26992. var numComps = this.numComps;
  26993. var length = width * height * numComps;
  26994. var bufferPos = 0;
  26995. var output = bpc <= 8 ? new Uint8Array(length) :
  26996. bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length);
  26997. var rowComps = width * numComps;
  26998. var max = (1 << bpc) - 1;
  26999. if (bpc === 1) {
  27000. // Optimization for reading 1 bpc images.
  27001. var mask = 0;
  27002. var buf = 0;
  27003. for (var i = 0, ii = length; i < ii; ++i) {
  27004. if (i % rowComps === 0) {
  27005. mask = 0;
  27006. buf = 0;
  27007. } else {
  27008. mask >>= 1;
  27009. }
  27010. if (mask <= 0) {
  27011. buf = buffer[bufferPos++];
  27012. mask = 128;
  27013. }
  27014. output[i] = +!!(buf & mask);
  27015. }
  27016. } else {
  27017. // The general case that handles all other bpc values.
  27018. var bits = 0, buf = 0;
  27019. for (var i = 0, ii = length; i < ii; ++i) {
  27020. if (i % rowComps === 0) {
  27021. buf = 0;
  27022. bits = 0;
  27023. }
  27024. while (bits < bpc) {
  27025. buf = (buf << 8) | buffer[bufferPos++];
  27026. bits += 8;
  27027. }
  27028. var remainingBits = bits - bpc;
  27029. var value = buf >> remainingBits;
  27030. output[i] = value < 0 ? 0 : value > max ? max : value;
  27031. buf = buf & ((1 << remainingBits) - 1);
  27032. bits = remainingBits;
  27033. }
  27034. }
  27035. return output;
  27036. },
  27037. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  27038. actualHeight, image) {
  27039. var smask = this.smask;
  27040. var mask = this.mask;
  27041. var alphaBuf;
  27042. if (smask) {
  27043. var sw = smask.width;
  27044. var sh = smask.height;
  27045. alphaBuf = new Uint8Array(sw * sh);
  27046. smask.fillGrayBuffer(alphaBuf);
  27047. if (sw != width || sh != height)
  27048. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  27049. height);
  27050. } else if (mask) {
  27051. if (mask instanceof PDFImage) {
  27052. var sw = mask.width;
  27053. var sh = mask.height;
  27054. alphaBuf = new Uint8Array(sw * sh);
  27055. mask.numComps = 1;
  27056. mask.fillGrayBuffer(alphaBuf);
  27057. // Need to invert values in rgbaBuf
  27058. for (var i = 0, ii = sw * sh; i < ii; ++i)
  27059. alphaBuf[i] = 255 - alphaBuf[i];
  27060. if (sw != width || sh != height)
  27061. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  27062. height);
  27063. } else if (isArray(mask)) {
  27064. // Color key mask: if any of the compontents are outside the range
  27065. // then they should be painted.
  27066. alphaBuf = new Uint8Array(width * height);
  27067. var numComps = this.numComps;
  27068. for (var i = 0, ii = width * height; i < ii; ++i) {
  27069. var opacity = 0;
  27070. var imageOffset = i * numComps;
  27071. for (var j = 0; j < numComps; ++j) {
  27072. var color = image[imageOffset + j];
  27073. var maskOffset = j * 2;
  27074. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  27075. opacity = 255;
  27076. break;
  27077. }
  27078. }
  27079. alphaBuf[i] = opacity;
  27080. }
  27081. } else {
  27082. error('Unknown mask format.');
  27083. }
  27084. }
  27085. if (alphaBuf) {
  27086. for (var i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  27087. rgbaBuf[j] = alphaBuf[i];
  27088. }
  27089. } else {
  27090. // Common case: no mask (and no need to allocate the extra buffer).
  27091. for (var i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  27092. rgbaBuf[j] = 255;
  27093. }
  27094. }
  27095. },
  27096. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  27097. var matte = this.smask && this.smask.matte;
  27098. if (!matte) {
  27099. return;
  27100. }
  27101. function clamp(value) {
  27102. return (value < 0 ? 0 : value > 255 ? 255 : value) | 0;
  27103. }
  27104. var matteRgb = this.colorSpace.getRgb(matte, 0);
  27105. var length = width * height * 4;
  27106. for (var i = 0; i < length; i += 4) {
  27107. var alpha = buffer[i + 3];
  27108. if (alpha === 0) {
  27109. // according formula we have to get Infinity in all components
  27110. // making it as white (tipical paper color) should be okay
  27111. buffer[i] = 255;
  27112. buffer[i + 1] = 255;
  27113. buffer[i + 2] = 255;
  27114. continue;
  27115. }
  27116. var k = 255 / alpha;
  27117. buffer[i] = clamp((buffer[i] - matteRgb[0]) * k + matteRgb[0]);
  27118. buffer[i + 1] = clamp((buffer[i + 1] - matteRgb[1]) * k + matteRgb[1]);
  27119. buffer[i + 2] = clamp((buffer[i + 2] - matteRgb[2]) * k + matteRgb[2]);
  27120. }
  27121. },
  27122. fillRgbaBuffer: function PDFImage_fillRgbaBuffer(buffer, width, height) {
  27123. var numComps = this.numComps;
  27124. var originalWidth = this.width;
  27125. var originalHeight = this.height;
  27126. var bpc = this.bpc;
  27127. // rows start at byte boundary;
  27128. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  27129. var imgArray = this.getImageBytes(originalHeight * rowBytes);
  27130. // imgArray can be incomplete (e.g. after CCITT fax encoding)
  27131. var actualHeight = 0 | (imgArray.length / rowBytes *
  27132. height / originalHeight);
  27133. var comps = this.getComponents(imgArray);
  27134. // Handle opacity here since color key masking needs to be performed on
  27135. // undecoded values.
  27136. this.fillOpacity(buffer, width, height, actualHeight, comps);
  27137. if (this.needsDecode) {
  27138. this.decodeBuffer(comps);
  27139. }
  27140. this.colorSpace.fillRgb(buffer, originalWidth, originalHeight, width,
  27141. height, actualHeight, bpc, comps);
  27142. this.undoPreblend(buffer, width, actualHeight);
  27143. },
  27144. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  27145. var numComps = this.numComps;
  27146. if (numComps != 1)
  27147. error('Reading gray scale from a color image: ' + numComps);
  27148. var width = this.width;
  27149. var height = this.height;
  27150. var bpc = this.bpc;
  27151. // rows start at byte boundary;
  27152. var rowBytes = (width * numComps * bpc + 7) >> 3;
  27153. var imgArray = this.getImageBytes(height * rowBytes);
  27154. var comps = this.getComponents(imgArray);
  27155. if (this.needsDecode) {
  27156. this.decodeBuffer(comps);
  27157. }
  27158. var length = width * height;
  27159. // we aren't using a colorspace so we need to scale the value
  27160. var scale = 255 / ((1 << bpc) - 1);
  27161. for (var i = 0; i < length; ++i)
  27162. buffer[i] = (scale * comps[i]) | 0;
  27163. },
  27164. getImageData: function PDFImage_getImageData() {
  27165. var drawWidth = this.drawWidth;
  27166. var drawHeight = this.drawHeight;
  27167. var imgData = {
  27168. width: drawWidth,
  27169. height: drawHeight,
  27170. data: new Uint8Array(drawWidth * drawHeight * 4)
  27171. };
  27172. var pixels = imgData.data;
  27173. this.fillRgbaBuffer(pixels, drawWidth, drawHeight);
  27174. return imgData;
  27175. },
  27176. getImageBytes: function PDFImage_getImageBytes(length) {
  27177. this.image.reset();
  27178. return this.image.getBytes(length);
  27179. }
  27180. };
  27181. return PDFImage;
  27182. })();
  27183. // The Metrics object contains glyph widths (in glyph space units).
  27184. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  27185. // space unit corresponds to 1/1000th of text space unit.
  27186. var Metrics = {
  27187. 'Courier': 600,
  27188. 'Courier-Bold': 600,
  27189. 'Courier-BoldOblique': 600,
  27190. 'Courier-Oblique': 600,
  27191. 'Helvetica' : {
  27192. 'space': 278,
  27193. 'exclam': 278,
  27194. 'quotedbl': 355,
  27195. 'numbersign': 556,
  27196. 'dollar': 556,
  27197. 'percent': 889,
  27198. 'ampersand': 667,
  27199. 'quoteright': 222,
  27200. 'parenleft': 333,
  27201. 'parenright': 333,
  27202. 'asterisk': 389,
  27203. 'plus': 584,
  27204. 'comma': 278,
  27205. 'hyphen': 333,
  27206. 'period': 278,
  27207. 'slash': 278,
  27208. 'zero': 556,
  27209. 'one': 556,
  27210. 'two': 556,
  27211. 'three': 556,
  27212. 'four': 556,
  27213. 'five': 556,
  27214. 'six': 556,
  27215. 'seven': 556,
  27216. 'eight': 556,
  27217. 'nine': 556,
  27218. 'colon': 278,
  27219. 'semicolon': 278,
  27220. 'less': 584,
  27221. 'equal': 584,
  27222. 'greater': 584,
  27223. 'question': 556,
  27224. 'at': 1015,
  27225. 'A': 667,
  27226. 'B': 667,
  27227. 'C': 722,
  27228. 'D': 722,
  27229. 'E': 667,
  27230. 'F': 611,
  27231. 'G': 778,
  27232. 'H': 722,
  27233. 'I': 278,
  27234. 'J': 500,
  27235. 'K': 667,
  27236. 'L': 556,
  27237. 'M': 833,
  27238. 'N': 722,
  27239. 'O': 778,
  27240. 'P': 667,
  27241. 'Q': 778,
  27242. 'R': 722,
  27243. 'S': 667,
  27244. 'T': 611,
  27245. 'U': 722,
  27246. 'V': 667,
  27247. 'W': 944,
  27248. 'X': 667,
  27249. 'Y': 667,
  27250. 'Z': 611,
  27251. 'bracketleft': 278,
  27252. 'backslash': 278,
  27253. 'bracketright': 278,
  27254. 'asciicircum': 469,
  27255. 'underscore': 556,
  27256. 'quoteleft': 222,
  27257. 'a': 556,
  27258. 'b': 556,
  27259. 'c': 500,
  27260. 'd': 556,
  27261. 'e': 556,
  27262. 'f': 278,
  27263. 'g': 556,
  27264. 'h': 556,
  27265. 'i': 222,
  27266. 'j': 222,
  27267. 'k': 500,
  27268. 'l': 222,
  27269. 'm': 833,
  27270. 'n': 556,
  27271. 'o': 556,
  27272. 'p': 556,
  27273. 'q': 556,
  27274. 'r': 333,
  27275. 's': 500,
  27276. 't': 278,
  27277. 'u': 556,
  27278. 'v': 500,
  27279. 'w': 722,
  27280. 'x': 500,
  27281. 'y': 500,
  27282. 'z': 500,
  27283. 'braceleft': 334,
  27284. 'bar': 260,
  27285. 'braceright': 334,
  27286. 'asciitilde': 584,
  27287. 'exclamdown': 333,
  27288. 'cent': 556,
  27289. 'sterling': 556,
  27290. 'fraction': 167,
  27291. 'yen': 556,
  27292. 'florin': 556,
  27293. 'section': 556,
  27294. 'currency': 556,
  27295. 'quotesingle': 191,
  27296. 'quotedblleft': 333,
  27297. 'guillemotleft': 556,
  27298. 'guilsinglleft': 333,
  27299. 'guilsinglright': 333,
  27300. 'fi': 500,
  27301. 'fl': 500,
  27302. 'endash': 556,
  27303. 'dagger': 556,
  27304. 'daggerdbl': 556,
  27305. 'periodcentered': 278,
  27306. 'paragraph': 537,
  27307. 'bullet': 350,
  27308. 'quotesinglbase': 222,
  27309. 'quotedblbase': 333,
  27310. 'quotedblright': 333,
  27311. 'guillemotright': 556,
  27312. 'ellipsis': 1000,
  27313. 'perthousand': 1000,
  27314. 'questiondown': 611,
  27315. 'grave': 333,
  27316. 'acute': 333,
  27317. 'circumflex': 333,
  27318. 'tilde': 333,
  27319. 'macron': 333,
  27320. 'breve': 333,
  27321. 'dotaccent': 333,
  27322. 'dieresis': 333,
  27323. 'ring': 333,
  27324. 'cedilla': 333,
  27325. 'hungarumlaut': 333,
  27326. 'ogonek': 333,
  27327. 'caron': 333,
  27328. 'emdash': 1000,
  27329. 'AE': 1000,
  27330. 'ordfeminine': 370,
  27331. 'Lslash': 556,
  27332. 'Oslash': 778,
  27333. 'OE': 1000,
  27334. 'ordmasculine': 365,
  27335. 'ae': 889,
  27336. 'dotlessi': 278,
  27337. 'lslash': 222,
  27338. 'oslash': 611,
  27339. 'oe': 944,
  27340. 'germandbls': 611,
  27341. 'Idieresis': 278,
  27342. 'eacute': 556,
  27343. 'abreve': 556,
  27344. 'uhungarumlaut': 556,
  27345. 'ecaron': 556,
  27346. 'Ydieresis': 667,
  27347. 'divide': 584,
  27348. 'Yacute': 667,
  27349. 'Acircumflex': 667,
  27350. 'aacute': 556,
  27351. 'Ucircumflex': 722,
  27352. 'yacute': 500,
  27353. 'scommaaccent': 500,
  27354. 'ecircumflex': 556,
  27355. 'Uring': 722,
  27356. 'Udieresis': 722,
  27357. 'aogonek': 556,
  27358. 'Uacute': 722,
  27359. 'uogonek': 556,
  27360. 'Edieresis': 667,
  27361. 'Dcroat': 722,
  27362. 'commaaccent': 250,
  27363. 'copyright': 737,
  27364. 'Emacron': 667,
  27365. 'ccaron': 500,
  27366. 'aring': 556,
  27367. 'Ncommaaccent': 722,
  27368. 'lacute': 222,
  27369. 'agrave': 556,
  27370. 'Tcommaaccent': 611,
  27371. 'Cacute': 722,
  27372. 'atilde': 556,
  27373. 'Edotaccent': 667,
  27374. 'scaron': 500,
  27375. 'scedilla': 500,
  27376. 'iacute': 278,
  27377. 'lozenge': 471,
  27378. 'Rcaron': 722,
  27379. 'Gcommaaccent': 778,
  27380. 'ucircumflex': 556,
  27381. 'acircumflex': 556,
  27382. 'Amacron': 667,
  27383. 'rcaron': 333,
  27384. 'ccedilla': 500,
  27385. 'Zdotaccent': 611,
  27386. 'Thorn': 667,
  27387. 'Omacron': 778,
  27388. 'Racute': 722,
  27389. 'Sacute': 667,
  27390. 'dcaron': 643,
  27391. 'Umacron': 722,
  27392. 'uring': 556,
  27393. 'threesuperior': 333,
  27394. 'Ograve': 778,
  27395. 'Agrave': 667,
  27396. 'Abreve': 667,
  27397. 'multiply': 584,
  27398. 'uacute': 556,
  27399. 'Tcaron': 611,
  27400. 'partialdiff': 476,
  27401. 'ydieresis': 500,
  27402. 'Nacute': 722,
  27403. 'icircumflex': 278,
  27404. 'Ecircumflex': 667,
  27405. 'adieresis': 556,
  27406. 'edieresis': 556,
  27407. 'cacute': 500,
  27408. 'nacute': 556,
  27409. 'umacron': 556,
  27410. 'Ncaron': 722,
  27411. 'Iacute': 278,
  27412. 'plusminus': 584,
  27413. 'brokenbar': 260,
  27414. 'registered': 737,
  27415. 'Gbreve': 778,
  27416. 'Idotaccent': 278,
  27417. 'summation': 600,
  27418. 'Egrave': 667,
  27419. 'racute': 333,
  27420. 'omacron': 556,
  27421. 'Zacute': 611,
  27422. 'Zcaron': 611,
  27423. 'greaterequal': 549,
  27424. 'Eth': 722,
  27425. 'Ccedilla': 722,
  27426. 'lcommaaccent': 222,
  27427. 'tcaron': 317,
  27428. 'eogonek': 556,
  27429. 'Uogonek': 722,
  27430. 'Aacute': 667,
  27431. 'Adieresis': 667,
  27432. 'egrave': 556,
  27433. 'zacute': 500,
  27434. 'iogonek': 222,
  27435. 'Oacute': 778,
  27436. 'oacute': 556,
  27437. 'amacron': 556,
  27438. 'sacute': 500,
  27439. 'idieresis': 278,
  27440. 'Ocircumflex': 778,
  27441. 'Ugrave': 722,
  27442. 'Delta': 612,
  27443. 'thorn': 556,
  27444. 'twosuperior': 333,
  27445. 'Odieresis': 778,
  27446. 'mu': 556,
  27447. 'igrave': 278,
  27448. 'ohungarumlaut': 556,
  27449. 'Eogonek': 667,
  27450. 'dcroat': 556,
  27451. 'threequarters': 834,
  27452. 'Scedilla': 667,
  27453. 'lcaron': 299,
  27454. 'Kcommaaccent': 667,
  27455. 'Lacute': 556,
  27456. 'trademark': 1000,
  27457. 'edotaccent': 556,
  27458. 'Igrave': 278,
  27459. 'Imacron': 278,
  27460. 'Lcaron': 556,
  27461. 'onehalf': 834,
  27462. 'lessequal': 549,
  27463. 'ocircumflex': 556,
  27464. 'ntilde': 556,
  27465. 'Uhungarumlaut': 722,
  27466. 'Eacute': 667,
  27467. 'emacron': 556,
  27468. 'gbreve': 556,
  27469. 'onequarter': 834,
  27470. 'Scaron': 667,
  27471. 'Scommaaccent': 667,
  27472. 'Ohungarumlaut': 778,
  27473. 'degree': 400,
  27474. 'ograve': 556,
  27475. 'Ccaron': 722,
  27476. 'ugrave': 556,
  27477. 'radical': 453,
  27478. 'Dcaron': 722,
  27479. 'rcommaaccent': 333,
  27480. 'Ntilde': 722,
  27481. 'otilde': 556,
  27482. 'Rcommaaccent': 722,
  27483. 'Lcommaaccent': 556,
  27484. 'Atilde': 667,
  27485. 'Aogonek': 667,
  27486. 'Aring': 667,
  27487. 'Otilde': 778,
  27488. 'zdotaccent': 500,
  27489. 'Ecaron': 667,
  27490. 'Iogonek': 278,
  27491. 'kcommaaccent': 500,
  27492. 'minus': 584,
  27493. 'Icircumflex': 278,
  27494. 'ncaron': 556,
  27495. 'tcommaaccent': 278,
  27496. 'logicalnot': 584,
  27497. 'odieresis': 556,
  27498. 'udieresis': 556,
  27499. 'notequal': 549,
  27500. 'gcommaaccent': 556,
  27501. 'eth': 556,
  27502. 'zcaron': 500,
  27503. 'ncommaaccent': 556,
  27504. 'onesuperior': 333,
  27505. 'imacron': 278,
  27506. 'Euro': 556
  27507. },
  27508. 'Helvetica-Bold': {
  27509. 'space': 278,
  27510. 'exclam': 333,
  27511. 'quotedbl': 474,
  27512. 'numbersign': 556,
  27513. 'dollar': 556,
  27514. 'percent': 889,
  27515. 'ampersand': 722,
  27516. 'quoteright': 278,
  27517. 'parenleft': 333,
  27518. 'parenright': 333,
  27519. 'asterisk': 389,
  27520. 'plus': 584,
  27521. 'comma': 278,
  27522. 'hyphen': 333,
  27523. 'period': 278,
  27524. 'slash': 278,
  27525. 'zero': 556,
  27526. 'one': 556,
  27527. 'two': 556,
  27528. 'three': 556,
  27529. 'four': 556,
  27530. 'five': 556,
  27531. 'six': 556,
  27532. 'seven': 556,
  27533. 'eight': 556,
  27534. 'nine': 556,
  27535. 'colon': 333,
  27536. 'semicolon': 333,
  27537. 'less': 584,
  27538. 'equal': 584,
  27539. 'greater': 584,
  27540. 'question': 611,
  27541. 'at': 975,
  27542. 'A': 722,
  27543. 'B': 722,
  27544. 'C': 722,
  27545. 'D': 722,
  27546. 'E': 667,
  27547. 'F': 611,
  27548. 'G': 778,
  27549. 'H': 722,
  27550. 'I': 278,
  27551. 'J': 556,
  27552. 'K': 722,
  27553. 'L': 611,
  27554. 'M': 833,
  27555. 'N': 722,
  27556. 'O': 778,
  27557. 'P': 667,
  27558. 'Q': 778,
  27559. 'R': 722,
  27560. 'S': 667,
  27561. 'T': 611,
  27562. 'U': 722,
  27563. 'V': 667,
  27564. 'W': 944,
  27565. 'X': 667,
  27566. 'Y': 667,
  27567. 'Z': 611,
  27568. 'bracketleft': 333,
  27569. 'backslash': 278,
  27570. 'bracketright': 333,
  27571. 'asciicircum': 584,
  27572. 'underscore': 556,
  27573. 'quoteleft': 278,
  27574. 'a': 556,
  27575. 'b': 611,
  27576. 'c': 556,
  27577. 'd': 611,
  27578. 'e': 556,
  27579. 'f': 333,
  27580. 'g': 611,
  27581. 'h': 611,
  27582. 'i': 278,
  27583. 'j': 278,
  27584. 'k': 556,
  27585. 'l': 278,
  27586. 'm': 889,
  27587. 'n': 611,
  27588. 'o': 611,
  27589. 'p': 611,
  27590. 'q': 611,
  27591. 'r': 389,
  27592. 's': 556,
  27593. 't': 333,
  27594. 'u': 611,
  27595. 'v': 556,
  27596. 'w': 778,
  27597. 'x': 556,
  27598. 'y': 556,
  27599. 'z': 500,
  27600. 'braceleft': 389,
  27601. 'bar': 280,
  27602. 'braceright': 389,
  27603. 'asciitilde': 584,
  27604. 'exclamdown': 333,
  27605. 'cent': 556,
  27606. 'sterling': 556,
  27607. 'fraction': 167,
  27608. 'yen': 556,
  27609. 'florin': 556,
  27610. 'section': 556,
  27611. 'currency': 556,
  27612. 'quotesingle': 238,
  27613. 'quotedblleft': 500,
  27614. 'guillemotleft': 556,
  27615. 'guilsinglleft': 333,
  27616. 'guilsinglright': 333,
  27617. 'fi': 611,
  27618. 'fl': 611,
  27619. 'endash': 556,
  27620. 'dagger': 556,
  27621. 'daggerdbl': 556,
  27622. 'periodcentered': 278,
  27623. 'paragraph': 556,
  27624. 'bullet': 350,
  27625. 'quotesinglbase': 278,
  27626. 'quotedblbase': 500,
  27627. 'quotedblright': 500,
  27628. 'guillemotright': 556,
  27629. 'ellipsis': 1000,
  27630. 'perthousand': 1000,
  27631. 'questiondown': 611,
  27632. 'grave': 333,
  27633. 'acute': 333,
  27634. 'circumflex': 333,
  27635. 'tilde': 333,
  27636. 'macron': 333,
  27637. 'breve': 333,
  27638. 'dotaccent': 333,
  27639. 'dieresis': 333,
  27640. 'ring': 333,
  27641. 'cedilla': 333,
  27642. 'hungarumlaut': 333,
  27643. 'ogonek': 333,
  27644. 'caron': 333,
  27645. 'emdash': 1000,
  27646. 'AE': 1000,
  27647. 'ordfeminine': 370,
  27648. 'Lslash': 611,
  27649. 'Oslash': 778,
  27650. 'OE': 1000,
  27651. 'ordmasculine': 365,
  27652. 'ae': 889,
  27653. 'dotlessi': 278,
  27654. 'lslash': 278,
  27655. 'oslash': 611,
  27656. 'oe': 944,
  27657. 'germandbls': 611,
  27658. 'Idieresis': 278,
  27659. 'eacute': 556,
  27660. 'abreve': 556,
  27661. 'uhungarumlaut': 611,
  27662. 'ecaron': 556,
  27663. 'Ydieresis': 667,
  27664. 'divide': 584,
  27665. 'Yacute': 667,
  27666. 'Acircumflex': 722,
  27667. 'aacute': 556,
  27668. 'Ucircumflex': 722,
  27669. 'yacute': 556,
  27670. 'scommaaccent': 556,
  27671. 'ecircumflex': 556,
  27672. 'Uring': 722,
  27673. 'Udieresis': 722,
  27674. 'aogonek': 556,
  27675. 'Uacute': 722,
  27676. 'uogonek': 611,
  27677. 'Edieresis': 667,
  27678. 'Dcroat': 722,
  27679. 'commaaccent': 250,
  27680. 'copyright': 737,
  27681. 'Emacron': 667,
  27682. 'ccaron': 556,
  27683. 'aring': 556,
  27684. 'Ncommaaccent': 722,
  27685. 'lacute': 278,
  27686. 'agrave': 556,
  27687. 'Tcommaaccent': 611,
  27688. 'Cacute': 722,
  27689. 'atilde': 556,
  27690. 'Edotaccent': 667,
  27691. 'scaron': 556,
  27692. 'scedilla': 556,
  27693. 'iacute': 278,
  27694. 'lozenge': 494,
  27695. 'Rcaron': 722,
  27696. 'Gcommaaccent': 778,
  27697. 'ucircumflex': 611,
  27698. 'acircumflex': 556,
  27699. 'Amacron': 722,
  27700. 'rcaron': 389,
  27701. 'ccedilla': 556,
  27702. 'Zdotaccent': 611,
  27703. 'Thorn': 667,
  27704. 'Omacron': 778,
  27705. 'Racute': 722,
  27706. 'Sacute': 667,
  27707. 'dcaron': 743,
  27708. 'Umacron': 722,
  27709. 'uring': 611,
  27710. 'threesuperior': 333,
  27711. 'Ograve': 778,
  27712. 'Agrave': 722,
  27713. 'Abreve': 722,
  27714. 'multiply': 584,
  27715. 'uacute': 611,
  27716. 'Tcaron': 611,
  27717. 'partialdiff': 494,
  27718. 'ydieresis': 556,
  27719. 'Nacute': 722,
  27720. 'icircumflex': 278,
  27721. 'Ecircumflex': 667,
  27722. 'adieresis': 556,
  27723. 'edieresis': 556,
  27724. 'cacute': 556,
  27725. 'nacute': 611,
  27726. 'umacron': 611,
  27727. 'Ncaron': 722,
  27728. 'Iacute': 278,
  27729. 'plusminus': 584,
  27730. 'brokenbar': 280,
  27731. 'registered': 737,
  27732. 'Gbreve': 778,
  27733. 'Idotaccent': 278,
  27734. 'summation': 600,
  27735. 'Egrave': 667,
  27736. 'racute': 389,
  27737. 'omacron': 611,
  27738. 'Zacute': 611,
  27739. 'Zcaron': 611,
  27740. 'greaterequal': 549,
  27741. 'Eth': 722,
  27742. 'Ccedilla': 722,
  27743. 'lcommaaccent': 278,
  27744. 'tcaron': 389,
  27745. 'eogonek': 556,
  27746. 'Uogonek': 722,
  27747. 'Aacute': 722,
  27748. 'Adieresis': 722,
  27749. 'egrave': 556,
  27750. 'zacute': 500,
  27751. 'iogonek': 278,
  27752. 'Oacute': 778,
  27753. 'oacute': 611,
  27754. 'amacron': 556,
  27755. 'sacute': 556,
  27756. 'idieresis': 278,
  27757. 'Ocircumflex': 778,
  27758. 'Ugrave': 722,
  27759. 'Delta': 612,
  27760. 'thorn': 611,
  27761. 'twosuperior': 333,
  27762. 'Odieresis': 778,
  27763. 'mu': 611,
  27764. 'igrave': 278,
  27765. 'ohungarumlaut': 611,
  27766. 'Eogonek': 667,
  27767. 'dcroat': 611,
  27768. 'threequarters': 834,
  27769. 'Scedilla': 667,
  27770. 'lcaron': 400,
  27771. 'Kcommaaccent': 722,
  27772. 'Lacute': 611,
  27773. 'trademark': 1000,
  27774. 'edotaccent': 556,
  27775. 'Igrave': 278,
  27776. 'Imacron': 278,
  27777. 'Lcaron': 611,
  27778. 'onehalf': 834,
  27779. 'lessequal': 549,
  27780. 'ocircumflex': 611,
  27781. 'ntilde': 611,
  27782. 'Uhungarumlaut': 722,
  27783. 'Eacute': 667,
  27784. 'emacron': 556,
  27785. 'gbreve': 611,
  27786. 'onequarter': 834,
  27787. 'Scaron': 667,
  27788. 'Scommaaccent': 667,
  27789. 'Ohungarumlaut': 778,
  27790. 'degree': 400,
  27791. 'ograve': 611,
  27792. 'Ccaron': 722,
  27793. 'ugrave': 611,
  27794. 'radical': 549,
  27795. 'Dcaron': 722,
  27796. 'rcommaaccent': 389,
  27797. 'Ntilde': 722,
  27798. 'otilde': 611,
  27799. 'Rcommaaccent': 722,
  27800. 'Lcommaaccent': 611,
  27801. 'Atilde': 722,
  27802. 'Aogonek': 722,
  27803. 'Aring': 722,
  27804. 'Otilde': 778,
  27805. 'zdotaccent': 500,
  27806. 'Ecaron': 667,
  27807. 'Iogonek': 278,
  27808. 'kcommaaccent': 556,
  27809. 'minus': 584,
  27810. 'Icircumflex': 278,
  27811. 'ncaron': 611,
  27812. 'tcommaaccent': 333,
  27813. 'logicalnot': 584,
  27814. 'odieresis': 611,
  27815. 'udieresis': 611,
  27816. 'notequal': 549,
  27817. 'gcommaaccent': 611,
  27818. 'eth': 611,
  27819. 'zcaron': 500,
  27820. 'ncommaaccent': 611,
  27821. 'onesuperior': 333,
  27822. 'imacron': 278,
  27823. 'Euro': 556
  27824. },
  27825. 'Helvetica-BoldOblique': {
  27826. 'space': 278,
  27827. 'exclam': 333,
  27828. 'quotedbl': 474,
  27829. 'numbersign': 556,
  27830. 'dollar': 556,
  27831. 'percent': 889,
  27832. 'ampersand': 722,
  27833. 'quoteright': 278,
  27834. 'parenleft': 333,
  27835. 'parenright': 333,
  27836. 'asterisk': 389,
  27837. 'plus': 584,
  27838. 'comma': 278,
  27839. 'hyphen': 333,
  27840. 'period': 278,
  27841. 'slash': 278,
  27842. 'zero': 556,
  27843. 'one': 556,
  27844. 'two': 556,
  27845. 'three': 556,
  27846. 'four': 556,
  27847. 'five': 556,
  27848. 'six': 556,
  27849. 'seven': 556,
  27850. 'eight': 556,
  27851. 'nine': 556,
  27852. 'colon': 333,
  27853. 'semicolon': 333,
  27854. 'less': 584,
  27855. 'equal': 584,
  27856. 'greater': 584,
  27857. 'question': 611,
  27858. 'at': 975,
  27859. 'A': 722,
  27860. 'B': 722,
  27861. 'C': 722,
  27862. 'D': 722,
  27863. 'E': 667,
  27864. 'F': 611,
  27865. 'G': 778,
  27866. 'H': 722,
  27867. 'I': 278,
  27868. 'J': 556,
  27869. 'K': 722,
  27870. 'L': 611,
  27871. 'M': 833,
  27872. 'N': 722,
  27873. 'O': 778,
  27874. 'P': 667,
  27875. 'Q': 778,
  27876. 'R': 722,
  27877. 'S': 667,
  27878. 'T': 611,
  27879. 'U': 722,
  27880. 'V': 667,
  27881. 'W': 944,
  27882. 'X': 667,
  27883. 'Y': 667,
  27884. 'Z': 611,
  27885. 'bracketleft': 333,
  27886. 'backslash': 278,
  27887. 'bracketright': 333,
  27888. 'asciicircum': 584,
  27889. 'underscore': 556,
  27890. 'quoteleft': 278,
  27891. 'a': 556,
  27892. 'b': 611,
  27893. 'c': 556,
  27894. 'd': 611,
  27895. 'e': 556,
  27896. 'f': 333,
  27897. 'g': 611,
  27898. 'h': 611,
  27899. 'i': 278,
  27900. 'j': 278,
  27901. 'k': 556,
  27902. 'l': 278,
  27903. 'm': 889,
  27904. 'n': 611,
  27905. 'o': 611,
  27906. 'p': 611,
  27907. 'q': 611,
  27908. 'r': 389,
  27909. 's': 556,
  27910. 't': 333,
  27911. 'u': 611,
  27912. 'v': 556,
  27913. 'w': 778,
  27914. 'x': 556,
  27915. 'y': 556,
  27916. 'z': 500,
  27917. 'braceleft': 389,
  27918. 'bar': 280,
  27919. 'braceright': 389,
  27920. 'asciitilde': 584,
  27921. 'exclamdown': 333,
  27922. 'cent': 556,
  27923. 'sterling': 556,
  27924. 'fraction': 167,
  27925. 'yen': 556,
  27926. 'florin': 556,
  27927. 'section': 556,
  27928. 'currency': 556,
  27929. 'quotesingle': 238,
  27930. 'quotedblleft': 500,
  27931. 'guillemotleft': 556,
  27932. 'guilsinglleft': 333,
  27933. 'guilsinglright': 333,
  27934. 'fi': 611,
  27935. 'fl': 611,
  27936. 'endash': 556,
  27937. 'dagger': 556,
  27938. 'daggerdbl': 556,
  27939. 'periodcentered': 278,
  27940. 'paragraph': 556,
  27941. 'bullet': 350,
  27942. 'quotesinglbase': 278,
  27943. 'quotedblbase': 500,
  27944. 'quotedblright': 500,
  27945. 'guillemotright': 556,
  27946. 'ellipsis': 1000,
  27947. 'perthousand': 1000,
  27948. 'questiondown': 611,
  27949. 'grave': 333,
  27950. 'acute': 333,
  27951. 'circumflex': 333,
  27952. 'tilde': 333,
  27953. 'macron': 333,
  27954. 'breve': 333,
  27955. 'dotaccent': 333,
  27956. 'dieresis': 333,
  27957. 'ring': 333,
  27958. 'cedilla': 333,
  27959. 'hungarumlaut': 333,
  27960. 'ogonek': 333,
  27961. 'caron': 333,
  27962. 'emdash': 1000,
  27963. 'AE': 1000,
  27964. 'ordfeminine': 370,
  27965. 'Lslash': 611,
  27966. 'Oslash': 778,
  27967. 'OE': 1000,
  27968. 'ordmasculine': 365,
  27969. 'ae': 889,
  27970. 'dotlessi': 278,
  27971. 'lslash': 278,
  27972. 'oslash': 611,
  27973. 'oe': 944,
  27974. 'germandbls': 611,
  27975. 'Idieresis': 278,
  27976. 'eacute': 556,
  27977. 'abreve': 556,
  27978. 'uhungarumlaut': 611,
  27979. 'ecaron': 556,
  27980. 'Ydieresis': 667,
  27981. 'divide': 584,
  27982. 'Yacute': 667,
  27983. 'Acircumflex': 722,
  27984. 'aacute': 556,
  27985. 'Ucircumflex': 722,
  27986. 'yacute': 556,
  27987. 'scommaaccent': 556,
  27988. 'ecircumflex': 556,
  27989. 'Uring': 722,
  27990. 'Udieresis': 722,
  27991. 'aogonek': 556,
  27992. 'Uacute': 722,
  27993. 'uogonek': 611,
  27994. 'Edieresis': 667,
  27995. 'Dcroat': 722,
  27996. 'commaaccent': 250,
  27997. 'copyright': 737,
  27998. 'Emacron': 667,
  27999. 'ccaron': 556,
  28000. 'aring': 556,
  28001. 'Ncommaaccent': 722,
  28002. 'lacute': 278,
  28003. 'agrave': 556,
  28004. 'Tcommaaccent': 611,
  28005. 'Cacute': 722,
  28006. 'atilde': 556,
  28007. 'Edotaccent': 667,
  28008. 'scaron': 556,
  28009. 'scedilla': 556,
  28010. 'iacute': 278,
  28011. 'lozenge': 494,
  28012. 'Rcaron': 722,
  28013. 'Gcommaaccent': 778,
  28014. 'ucircumflex': 611,
  28015. 'acircumflex': 556,
  28016. 'Amacron': 722,
  28017. 'rcaron': 389,
  28018. 'ccedilla': 556,
  28019. 'Zdotaccent': 611,
  28020. 'Thorn': 667,
  28021. 'Omacron': 778,
  28022. 'Racute': 722,
  28023. 'Sacute': 667,
  28024. 'dcaron': 743,
  28025. 'Umacron': 722,
  28026. 'uring': 611,
  28027. 'threesuperior': 333,
  28028. 'Ograve': 778,
  28029. 'Agrave': 722,
  28030. 'Abreve': 722,
  28031. 'multiply': 584,
  28032. 'uacute': 611,
  28033. 'Tcaron': 611,
  28034. 'partialdiff': 494,
  28035. 'ydieresis': 556,
  28036. 'Nacute': 722,
  28037. 'icircumflex': 278,
  28038. 'Ecircumflex': 667,
  28039. 'adieresis': 556,
  28040. 'edieresis': 556,
  28041. 'cacute': 556,
  28042. 'nacute': 611,
  28043. 'umacron': 611,
  28044. 'Ncaron': 722,
  28045. 'Iacute': 278,
  28046. 'plusminus': 584,
  28047. 'brokenbar': 280,
  28048. 'registered': 737,
  28049. 'Gbreve': 778,
  28050. 'Idotaccent': 278,
  28051. 'summation': 600,
  28052. 'Egrave': 667,
  28053. 'racute': 389,
  28054. 'omacron': 611,
  28055. 'Zacute': 611,
  28056. 'Zcaron': 611,
  28057. 'greaterequal': 549,
  28058. 'Eth': 722,
  28059. 'Ccedilla': 722,
  28060. 'lcommaaccent': 278,
  28061. 'tcaron': 389,
  28062. 'eogonek': 556,
  28063. 'Uogonek': 722,
  28064. 'Aacute': 722,
  28065. 'Adieresis': 722,
  28066. 'egrave': 556,
  28067. 'zacute': 500,
  28068. 'iogonek': 278,
  28069. 'Oacute': 778,
  28070. 'oacute': 611,
  28071. 'amacron': 556,
  28072. 'sacute': 556,
  28073. 'idieresis': 278,
  28074. 'Ocircumflex': 778,
  28075. 'Ugrave': 722,
  28076. 'Delta': 612,
  28077. 'thorn': 611,
  28078. 'twosuperior': 333,
  28079. 'Odieresis': 778,
  28080. 'mu': 611,
  28081. 'igrave': 278,
  28082. 'ohungarumlaut': 611,
  28083. 'Eogonek': 667,
  28084. 'dcroat': 611,
  28085. 'threequarters': 834,
  28086. 'Scedilla': 667,
  28087. 'lcaron': 400,
  28088. 'Kcommaaccent': 722,
  28089. 'Lacute': 611,
  28090. 'trademark': 1000,
  28091. 'edotaccent': 556,
  28092. 'Igrave': 278,
  28093. 'Imacron': 278,
  28094. 'Lcaron': 611,
  28095. 'onehalf': 834,
  28096. 'lessequal': 549,
  28097. 'ocircumflex': 611,
  28098. 'ntilde': 611,
  28099. 'Uhungarumlaut': 722,
  28100. 'Eacute': 667,
  28101. 'emacron': 556,
  28102. 'gbreve': 611,
  28103. 'onequarter': 834,
  28104. 'Scaron': 667,
  28105. 'Scommaaccent': 667,
  28106. 'Ohungarumlaut': 778,
  28107. 'degree': 400,
  28108. 'ograve': 611,
  28109. 'Ccaron': 722,
  28110. 'ugrave': 611,
  28111. 'radical': 549,
  28112. 'Dcaron': 722,
  28113. 'rcommaaccent': 389,
  28114. 'Ntilde': 722,
  28115. 'otilde': 611,
  28116. 'Rcommaaccent': 722,
  28117. 'Lcommaaccent': 611,
  28118. 'Atilde': 722,
  28119. 'Aogonek': 722,
  28120. 'Aring': 722,
  28121. 'Otilde': 778,
  28122. 'zdotaccent': 500,
  28123. 'Ecaron': 667,
  28124. 'Iogonek': 278,
  28125. 'kcommaaccent': 556,
  28126. 'minus': 584,
  28127. 'Icircumflex': 278,
  28128. 'ncaron': 611,
  28129. 'tcommaaccent': 333,
  28130. 'logicalnot': 584,
  28131. 'odieresis': 611,
  28132. 'udieresis': 611,
  28133. 'notequal': 549,
  28134. 'gcommaaccent': 611,
  28135. 'eth': 611,
  28136. 'zcaron': 500,
  28137. 'ncommaaccent': 611,
  28138. 'onesuperior': 333,
  28139. 'imacron': 278,
  28140. 'Euro': 556
  28141. },
  28142. 'Helvetica-Oblique' : {
  28143. 'space': 278,
  28144. 'exclam': 278,
  28145. 'quotedbl': 355,
  28146. 'numbersign': 556,
  28147. 'dollar': 556,
  28148. 'percent': 889,
  28149. 'ampersand': 667,
  28150. 'quoteright': 222,
  28151. 'parenleft': 333,
  28152. 'parenright': 333,
  28153. 'asterisk': 389,
  28154. 'plus': 584,
  28155. 'comma': 278,
  28156. 'hyphen': 333,
  28157. 'period': 278,
  28158. 'slash': 278,
  28159. 'zero': 556,
  28160. 'one': 556,
  28161. 'two': 556,
  28162. 'three': 556,
  28163. 'four': 556,
  28164. 'five': 556,
  28165. 'six': 556,
  28166. 'seven': 556,
  28167. 'eight': 556,
  28168. 'nine': 556,
  28169. 'colon': 278,
  28170. 'semicolon': 278,
  28171. 'less': 584,
  28172. 'equal': 584,
  28173. 'greater': 584,
  28174. 'question': 556,
  28175. 'at': 1015,
  28176. 'A': 667,
  28177. 'B': 667,
  28178. 'C': 722,
  28179. 'D': 722,
  28180. 'E': 667,
  28181. 'F': 611,
  28182. 'G': 778,
  28183. 'H': 722,
  28184. 'I': 278,
  28185. 'J': 500,
  28186. 'K': 667,
  28187. 'L': 556,
  28188. 'M': 833,
  28189. 'N': 722,
  28190. 'O': 778,
  28191. 'P': 667,
  28192. 'Q': 778,
  28193. 'R': 722,
  28194. 'S': 667,
  28195. 'T': 611,
  28196. 'U': 722,
  28197. 'V': 667,
  28198. 'W': 944,
  28199. 'X': 667,
  28200. 'Y': 667,
  28201. 'Z': 611,
  28202. 'bracketleft': 278,
  28203. 'backslash': 278,
  28204. 'bracketright': 278,
  28205. 'asciicircum': 469,
  28206. 'underscore': 556,
  28207. 'quoteleft': 222,
  28208. 'a': 556,
  28209. 'b': 556,
  28210. 'c': 500,
  28211. 'd': 556,
  28212. 'e': 556,
  28213. 'f': 278,
  28214. 'g': 556,
  28215. 'h': 556,
  28216. 'i': 222,
  28217. 'j': 222,
  28218. 'k': 500,
  28219. 'l': 222,
  28220. 'm': 833,
  28221. 'n': 556,
  28222. 'o': 556,
  28223. 'p': 556,
  28224. 'q': 556,
  28225. 'r': 333,
  28226. 's': 500,
  28227. 't': 278,
  28228. 'u': 556,
  28229. 'v': 500,
  28230. 'w': 722,
  28231. 'x': 500,
  28232. 'y': 500,
  28233. 'z': 500,
  28234. 'braceleft': 334,
  28235. 'bar': 260,
  28236. 'braceright': 334,
  28237. 'asciitilde': 584,
  28238. 'exclamdown': 333,
  28239. 'cent': 556,
  28240. 'sterling': 556,
  28241. 'fraction': 167,
  28242. 'yen': 556,
  28243. 'florin': 556,
  28244. 'section': 556,
  28245. 'currency': 556,
  28246. 'quotesingle': 191,
  28247. 'quotedblleft': 333,
  28248. 'guillemotleft': 556,
  28249. 'guilsinglleft': 333,
  28250. 'guilsinglright': 333,
  28251. 'fi': 500,
  28252. 'fl': 500,
  28253. 'endash': 556,
  28254. 'dagger': 556,
  28255. 'daggerdbl': 556,
  28256. 'periodcentered': 278,
  28257. 'paragraph': 537,
  28258. 'bullet': 350,
  28259. 'quotesinglbase': 222,
  28260. 'quotedblbase': 333,
  28261. 'quotedblright': 333,
  28262. 'guillemotright': 556,
  28263. 'ellipsis': 1000,
  28264. 'perthousand': 1000,
  28265. 'questiondown': 611,
  28266. 'grave': 333,
  28267. 'acute': 333,
  28268. 'circumflex': 333,
  28269. 'tilde': 333,
  28270. 'macron': 333,
  28271. 'breve': 333,
  28272. 'dotaccent': 333,
  28273. 'dieresis': 333,
  28274. 'ring': 333,
  28275. 'cedilla': 333,
  28276. 'hungarumlaut': 333,
  28277. 'ogonek': 333,
  28278. 'caron': 333,
  28279. 'emdash': 1000,
  28280. 'AE': 1000,
  28281. 'ordfeminine': 370,
  28282. 'Lslash': 556,
  28283. 'Oslash': 778,
  28284. 'OE': 1000,
  28285. 'ordmasculine': 365,
  28286. 'ae': 889,
  28287. 'dotlessi': 278,
  28288. 'lslash': 222,
  28289. 'oslash': 611,
  28290. 'oe': 944,
  28291. 'germandbls': 611,
  28292. 'Idieresis': 278,
  28293. 'eacute': 556,
  28294. 'abreve': 556,
  28295. 'uhungarumlaut': 556,
  28296. 'ecaron': 556,
  28297. 'Ydieresis': 667,
  28298. 'divide': 584,
  28299. 'Yacute': 667,
  28300. 'Acircumflex': 667,
  28301. 'aacute': 556,
  28302. 'Ucircumflex': 722,
  28303. 'yacute': 500,
  28304. 'scommaaccent': 500,
  28305. 'ecircumflex': 556,
  28306. 'Uring': 722,
  28307. 'Udieresis': 722,
  28308. 'aogonek': 556,
  28309. 'Uacute': 722,
  28310. 'uogonek': 556,
  28311. 'Edieresis': 667,
  28312. 'Dcroat': 722,
  28313. 'commaaccent': 250,
  28314. 'copyright': 737,
  28315. 'Emacron': 667,
  28316. 'ccaron': 500,
  28317. 'aring': 556,
  28318. 'Ncommaaccent': 722,
  28319. 'lacute': 222,
  28320. 'agrave': 556,
  28321. 'Tcommaaccent': 611,
  28322. 'Cacute': 722,
  28323. 'atilde': 556,
  28324. 'Edotaccent': 667,
  28325. 'scaron': 500,
  28326. 'scedilla': 500,
  28327. 'iacute': 278,
  28328. 'lozenge': 471,
  28329. 'Rcaron': 722,
  28330. 'Gcommaaccent': 778,
  28331. 'ucircumflex': 556,
  28332. 'acircumflex': 556,
  28333. 'Amacron': 667,
  28334. 'rcaron': 333,
  28335. 'ccedilla': 500,
  28336. 'Zdotaccent': 611,
  28337. 'Thorn': 667,
  28338. 'Omacron': 778,
  28339. 'Racute': 722,
  28340. 'Sacute': 667,
  28341. 'dcaron': 643,
  28342. 'Umacron': 722,
  28343. 'uring': 556,
  28344. 'threesuperior': 333,
  28345. 'Ograve': 778,
  28346. 'Agrave': 667,
  28347. 'Abreve': 667,
  28348. 'multiply': 584,
  28349. 'uacute': 556,
  28350. 'Tcaron': 611,
  28351. 'partialdiff': 476,
  28352. 'ydieresis': 500,
  28353. 'Nacute': 722,
  28354. 'icircumflex': 278,
  28355. 'Ecircumflex': 667,
  28356. 'adieresis': 556,
  28357. 'edieresis': 556,
  28358. 'cacute': 500,
  28359. 'nacute': 556,
  28360. 'umacron': 556,
  28361. 'Ncaron': 722,
  28362. 'Iacute': 278,
  28363. 'plusminus': 584,
  28364. 'brokenbar': 260,
  28365. 'registered': 737,
  28366. 'Gbreve': 778,
  28367. 'Idotaccent': 278,
  28368. 'summation': 600,
  28369. 'Egrave': 667,
  28370. 'racute': 333,
  28371. 'omacron': 556,
  28372. 'Zacute': 611,
  28373. 'Zcaron': 611,
  28374. 'greaterequal': 549,
  28375. 'Eth': 722,
  28376. 'Ccedilla': 722,
  28377. 'lcommaaccent': 222,
  28378. 'tcaron': 317,
  28379. 'eogonek': 556,
  28380. 'Uogonek': 722,
  28381. 'Aacute': 667,
  28382. 'Adieresis': 667,
  28383. 'egrave': 556,
  28384. 'zacute': 500,
  28385. 'iogonek': 222,
  28386. 'Oacute': 778,
  28387. 'oacute': 556,
  28388. 'amacron': 556,
  28389. 'sacute': 500,
  28390. 'idieresis': 278,
  28391. 'Ocircumflex': 778,
  28392. 'Ugrave': 722,
  28393. 'Delta': 612,
  28394. 'thorn': 556,
  28395. 'twosuperior': 333,
  28396. 'Odieresis': 778,
  28397. 'mu': 556,
  28398. 'igrave': 278,
  28399. 'ohungarumlaut': 556,
  28400. 'Eogonek': 667,
  28401. 'dcroat': 556,
  28402. 'threequarters': 834,
  28403. 'Scedilla': 667,
  28404. 'lcaron': 299,
  28405. 'Kcommaaccent': 667,
  28406. 'Lacute': 556,
  28407. 'trademark': 1000,
  28408. 'edotaccent': 556,
  28409. 'Igrave': 278,
  28410. 'Imacron': 278,
  28411. 'Lcaron': 556,
  28412. 'onehalf': 834,
  28413. 'lessequal': 549,
  28414. 'ocircumflex': 556,
  28415. 'ntilde': 556,
  28416. 'Uhungarumlaut': 722,
  28417. 'Eacute': 667,
  28418. 'emacron': 556,
  28419. 'gbreve': 556,
  28420. 'onequarter': 834,
  28421. 'Scaron': 667,
  28422. 'Scommaaccent': 667,
  28423. 'Ohungarumlaut': 778,
  28424. 'degree': 400,
  28425. 'ograve': 556,
  28426. 'Ccaron': 722,
  28427. 'ugrave': 556,
  28428. 'radical': 453,
  28429. 'Dcaron': 722,
  28430. 'rcommaaccent': 333,
  28431. 'Ntilde': 722,
  28432. 'otilde': 556,
  28433. 'Rcommaaccent': 722,
  28434. 'Lcommaaccent': 556,
  28435. 'Atilde': 667,
  28436. 'Aogonek': 667,
  28437. 'Aring': 667,
  28438. 'Otilde': 778,
  28439. 'zdotaccent': 500,
  28440. 'Ecaron': 667,
  28441. 'Iogonek': 278,
  28442. 'kcommaaccent': 500,
  28443. 'minus': 584,
  28444. 'Icircumflex': 278,
  28445. 'ncaron': 556,
  28446. 'tcommaaccent': 278,
  28447. 'logicalnot': 584,
  28448. 'odieresis': 556,
  28449. 'udieresis': 556,
  28450. 'notequal': 549,
  28451. 'gcommaaccent': 556,
  28452. 'eth': 556,
  28453. 'zcaron': 500,
  28454. 'ncommaaccent': 556,
  28455. 'onesuperior': 333,
  28456. 'imacron': 278,
  28457. 'Euro': 556
  28458. },
  28459. 'Symbol': {
  28460. 'space': 250,
  28461. 'exclam': 333,
  28462. 'universal': 713,
  28463. 'numbersign': 500,
  28464. 'existential': 549,
  28465. 'percent': 833,
  28466. 'ampersand': 778,
  28467. 'suchthat': 439,
  28468. 'parenleft': 333,
  28469. 'parenright': 333,
  28470. 'asteriskmath': 500,
  28471. 'plus': 549,
  28472. 'comma': 250,
  28473. 'minus': 549,
  28474. 'period': 250,
  28475. 'slash': 278,
  28476. 'zero': 500,
  28477. 'one': 500,
  28478. 'two': 500,
  28479. 'three': 500,
  28480. 'four': 500,
  28481. 'five': 500,
  28482. 'six': 500,
  28483. 'seven': 500,
  28484. 'eight': 500,
  28485. 'nine': 500,
  28486. 'colon': 278,
  28487. 'semicolon': 278,
  28488. 'less': 549,
  28489. 'equal': 549,
  28490. 'greater': 549,
  28491. 'question': 444,
  28492. 'congruent': 549,
  28493. 'Alpha': 722,
  28494. 'Beta': 667,
  28495. 'Chi': 722,
  28496. 'Delta': 612,
  28497. 'Epsilon': 611,
  28498. 'Phi': 763,
  28499. 'Gamma': 603,
  28500. 'Eta': 722,
  28501. 'Iota': 333,
  28502. 'theta1': 631,
  28503. 'Kappa': 722,
  28504. 'Lambda': 686,
  28505. 'Mu': 889,
  28506. 'Nu': 722,
  28507. 'Omicron': 722,
  28508. 'Pi': 768,
  28509. 'Theta': 741,
  28510. 'Rho': 556,
  28511. 'Sigma': 592,
  28512. 'Tau': 611,
  28513. 'Upsilon': 690,
  28514. 'sigma1': 439,
  28515. 'Omega': 768,
  28516. 'Xi': 645,
  28517. 'Psi': 795,
  28518. 'Zeta': 611,
  28519. 'bracketleft': 333,
  28520. 'therefore': 863,
  28521. 'bracketright': 333,
  28522. 'perpendicular': 658,
  28523. 'underscore': 500,
  28524. 'radicalex': 500,
  28525. 'alpha': 631,
  28526. 'beta': 549,
  28527. 'chi': 549,
  28528. 'delta': 494,
  28529. 'epsilon': 439,
  28530. 'phi': 521,
  28531. 'gamma': 411,
  28532. 'eta': 603,
  28533. 'iota': 329,
  28534. 'phi1': 603,
  28535. 'kappa': 549,
  28536. 'lambda': 549,
  28537. 'mu': 576,
  28538. 'nu': 521,
  28539. 'omicron': 549,
  28540. 'pi': 549,
  28541. 'theta': 521,
  28542. 'rho': 549,
  28543. 'sigma': 603,
  28544. 'tau': 439,
  28545. 'upsilon': 576,
  28546. 'omega1': 713,
  28547. 'omega': 686,
  28548. 'xi': 493,
  28549. 'psi': 686,
  28550. 'zeta': 494,
  28551. 'braceleft': 480,
  28552. 'bar': 200,
  28553. 'braceright': 480,
  28554. 'similar': 549,
  28555. 'Euro': 750,
  28556. 'Upsilon1': 620,
  28557. 'minute': 247,
  28558. 'lessequal': 549,
  28559. 'fraction': 167,
  28560. 'infinity': 713,
  28561. 'florin': 500,
  28562. 'club': 753,
  28563. 'diamond': 753,
  28564. 'heart': 753,
  28565. 'spade': 753,
  28566. 'arrowboth': 1042,
  28567. 'arrowleft': 987,
  28568. 'arrowup': 603,
  28569. 'arrowright': 987,
  28570. 'arrowdown': 603,
  28571. 'degree': 400,
  28572. 'plusminus': 549,
  28573. 'second': 411,
  28574. 'greaterequal': 549,
  28575. 'multiply': 549,
  28576. 'proportional': 713,
  28577. 'partialdiff': 494,
  28578. 'bullet': 460,
  28579. 'divide': 549,
  28580. 'notequal': 549,
  28581. 'equivalence': 549,
  28582. 'approxequal': 549,
  28583. 'ellipsis': 1000,
  28584. 'arrowvertex': 603,
  28585. 'arrowhorizex': 1000,
  28586. 'carriagereturn': 658,
  28587. 'aleph': 823,
  28588. 'Ifraktur': 686,
  28589. 'Rfraktur': 795,
  28590. 'weierstrass': 987,
  28591. 'circlemultiply': 768,
  28592. 'circleplus': 768,
  28593. 'emptyset': 823,
  28594. 'intersection': 768,
  28595. 'union': 768,
  28596. 'propersuperset': 713,
  28597. 'reflexsuperset': 713,
  28598. 'notsubset': 713,
  28599. 'propersubset': 713,
  28600. 'reflexsubset': 713,
  28601. 'element': 713,
  28602. 'notelement': 713,
  28603. 'angle': 768,
  28604. 'gradient': 713,
  28605. 'registerserif': 790,
  28606. 'copyrightserif': 790,
  28607. 'trademarkserif': 890,
  28608. 'product': 823,
  28609. 'radical': 549,
  28610. 'dotmath': 250,
  28611. 'logicalnot': 713,
  28612. 'logicaland': 603,
  28613. 'logicalor': 603,
  28614. 'arrowdblboth': 1042,
  28615. 'arrowdblleft': 987,
  28616. 'arrowdblup': 603,
  28617. 'arrowdblright': 987,
  28618. 'arrowdbldown': 603,
  28619. 'lozenge': 494,
  28620. 'angleleft': 329,
  28621. 'registersans': 790,
  28622. 'copyrightsans': 790,
  28623. 'trademarksans': 786,
  28624. 'summation': 713,
  28625. 'parenlefttp': 384,
  28626. 'parenleftex': 384,
  28627. 'parenleftbt': 384,
  28628. 'bracketlefttp': 384,
  28629. 'bracketleftex': 384,
  28630. 'bracketleftbt': 384,
  28631. 'bracelefttp': 494,
  28632. 'braceleftmid': 494,
  28633. 'braceleftbt': 494,
  28634. 'braceex': 494,
  28635. 'angleright': 329,
  28636. 'integral': 274,
  28637. 'integraltp': 686,
  28638. 'integralex': 686,
  28639. 'integralbt': 686,
  28640. 'parenrighttp': 384,
  28641. 'parenrightex': 384,
  28642. 'parenrightbt': 384,
  28643. 'bracketrighttp': 384,
  28644. 'bracketrightex': 384,
  28645. 'bracketrightbt': 384,
  28646. 'bracerighttp': 494,
  28647. 'bracerightmid': 494,
  28648. 'bracerightbt': 494,
  28649. 'apple': 790
  28650. },
  28651. 'Times-Roman': {
  28652. 'space': 250,
  28653. 'exclam': 333,
  28654. 'quotedbl': 408,
  28655. 'numbersign': 500,
  28656. 'dollar': 500,
  28657. 'percent': 833,
  28658. 'ampersand': 778,
  28659. 'quoteright': 333,
  28660. 'parenleft': 333,
  28661. 'parenright': 333,
  28662. 'asterisk': 500,
  28663. 'plus': 564,
  28664. 'comma': 250,
  28665. 'hyphen': 333,
  28666. 'period': 250,
  28667. 'slash': 278,
  28668. 'zero': 500,
  28669. 'one': 500,
  28670. 'two': 500,
  28671. 'three': 500,
  28672. 'four': 500,
  28673. 'five': 500,
  28674. 'six': 500,
  28675. 'seven': 500,
  28676. 'eight': 500,
  28677. 'nine': 500,
  28678. 'colon': 278,
  28679. 'semicolon': 278,
  28680. 'less': 564,
  28681. 'equal': 564,
  28682. 'greater': 564,
  28683. 'question': 444,
  28684. 'at': 921,
  28685. 'A': 722,
  28686. 'B': 667,
  28687. 'C': 667,
  28688. 'D': 722,
  28689. 'E': 611,
  28690. 'F': 556,
  28691. 'G': 722,
  28692. 'H': 722,
  28693. 'I': 333,
  28694. 'J': 389,
  28695. 'K': 722,
  28696. 'L': 611,
  28697. 'M': 889,
  28698. 'N': 722,
  28699. 'O': 722,
  28700. 'P': 556,
  28701. 'Q': 722,
  28702. 'R': 667,
  28703. 'S': 556,
  28704. 'T': 611,
  28705. 'U': 722,
  28706. 'V': 722,
  28707. 'W': 944,
  28708. 'X': 722,
  28709. 'Y': 722,
  28710. 'Z': 611,
  28711. 'bracketleft': 333,
  28712. 'backslash': 278,
  28713. 'bracketright': 333,
  28714. 'asciicircum': 469,
  28715. 'underscore': 500,
  28716. 'quoteleft': 333,
  28717. 'a': 444,
  28718. 'b': 500,
  28719. 'c': 444,
  28720. 'd': 500,
  28721. 'e': 444,
  28722. 'f': 333,
  28723. 'g': 500,
  28724. 'h': 500,
  28725. 'i': 278,
  28726. 'j': 278,
  28727. 'k': 500,
  28728. 'l': 278,
  28729. 'm': 778,
  28730. 'n': 500,
  28731. 'o': 500,
  28732. 'p': 500,
  28733. 'q': 500,
  28734. 'r': 333,
  28735. 's': 389,
  28736. 't': 278,
  28737. 'u': 500,
  28738. 'v': 500,
  28739. 'w': 722,
  28740. 'x': 500,
  28741. 'y': 500,
  28742. 'z': 444,
  28743. 'braceleft': 480,
  28744. 'bar': 200,
  28745. 'braceright': 480,
  28746. 'asciitilde': 541,
  28747. 'exclamdown': 333,
  28748. 'cent': 500,
  28749. 'sterling': 500,
  28750. 'fraction': 167,
  28751. 'yen': 500,
  28752. 'florin': 500,
  28753. 'section': 500,
  28754. 'currency': 500,
  28755. 'quotesingle': 180,
  28756. 'quotedblleft': 444,
  28757. 'guillemotleft': 500,
  28758. 'guilsinglleft': 333,
  28759. 'guilsinglright': 333,
  28760. 'fi': 556,
  28761. 'fl': 556,
  28762. 'endash': 500,
  28763. 'dagger': 500,
  28764. 'daggerdbl': 500,
  28765. 'periodcentered': 250,
  28766. 'paragraph': 453,
  28767. 'bullet': 350,
  28768. 'quotesinglbase': 333,
  28769. 'quotedblbase': 444,
  28770. 'quotedblright': 444,
  28771. 'guillemotright': 500,
  28772. 'ellipsis': 1000,
  28773. 'perthousand': 1000,
  28774. 'questiondown': 444,
  28775. 'grave': 333,
  28776. 'acute': 333,
  28777. 'circumflex': 333,
  28778. 'tilde': 333,
  28779. 'macron': 333,
  28780. 'breve': 333,
  28781. 'dotaccent': 333,
  28782. 'dieresis': 333,
  28783. 'ring': 333,
  28784. 'cedilla': 333,
  28785. 'hungarumlaut': 333,
  28786. 'ogonek': 333,
  28787. 'caron': 333,
  28788. 'emdash': 1000,
  28789. 'AE': 889,
  28790. 'ordfeminine': 276,
  28791. 'Lslash': 611,
  28792. 'Oslash': 722,
  28793. 'OE': 889,
  28794. 'ordmasculine': 310,
  28795. 'ae': 667,
  28796. 'dotlessi': 278,
  28797. 'lslash': 278,
  28798. 'oslash': 500,
  28799. 'oe': 722,
  28800. 'germandbls': 500,
  28801. 'Idieresis': 333,
  28802. 'eacute': 444,
  28803. 'abreve': 444,
  28804. 'uhungarumlaut': 500,
  28805. 'ecaron': 444,
  28806. 'Ydieresis': 722,
  28807. 'divide': 564,
  28808. 'Yacute': 722,
  28809. 'Acircumflex': 722,
  28810. 'aacute': 444,
  28811. 'Ucircumflex': 722,
  28812. 'yacute': 500,
  28813. 'scommaaccent': 389,
  28814. 'ecircumflex': 444,
  28815. 'Uring': 722,
  28816. 'Udieresis': 722,
  28817. 'aogonek': 444,
  28818. 'Uacute': 722,
  28819. 'uogonek': 500,
  28820. 'Edieresis': 611,
  28821. 'Dcroat': 722,
  28822. 'commaaccent': 250,
  28823. 'copyright': 760,
  28824. 'Emacron': 611,
  28825. 'ccaron': 444,
  28826. 'aring': 444,
  28827. 'Ncommaaccent': 722,
  28828. 'lacute': 278,
  28829. 'agrave': 444,
  28830. 'Tcommaaccent': 611,
  28831. 'Cacute': 667,
  28832. 'atilde': 444,
  28833. 'Edotaccent': 611,
  28834. 'scaron': 389,
  28835. 'scedilla': 389,
  28836. 'iacute': 278,
  28837. 'lozenge': 471,
  28838. 'Rcaron': 667,
  28839. 'Gcommaaccent': 722,
  28840. 'ucircumflex': 500,
  28841. 'acircumflex': 444,
  28842. 'Amacron': 722,
  28843. 'rcaron': 333,
  28844. 'ccedilla': 444,
  28845. 'Zdotaccent': 611,
  28846. 'Thorn': 556,
  28847. 'Omacron': 722,
  28848. 'Racute': 667,
  28849. 'Sacute': 556,
  28850. 'dcaron': 588,
  28851. 'Umacron': 722,
  28852. 'uring': 500,
  28853. 'threesuperior': 300,
  28854. 'Ograve': 722,
  28855. 'Agrave': 722,
  28856. 'Abreve': 722,
  28857. 'multiply': 564,
  28858. 'uacute': 500,
  28859. 'Tcaron': 611,
  28860. 'partialdiff': 476,
  28861. 'ydieresis': 500,
  28862. 'Nacute': 722,
  28863. 'icircumflex': 278,
  28864. 'Ecircumflex': 611,
  28865. 'adieresis': 444,
  28866. 'edieresis': 444,
  28867. 'cacute': 444,
  28868. 'nacute': 500,
  28869. 'umacron': 500,
  28870. 'Ncaron': 722,
  28871. 'Iacute': 333,
  28872. 'plusminus': 564,
  28873. 'brokenbar': 200,
  28874. 'registered': 760,
  28875. 'Gbreve': 722,
  28876. 'Idotaccent': 333,
  28877. 'summation': 600,
  28878. 'Egrave': 611,
  28879. 'racute': 333,
  28880. 'omacron': 500,
  28881. 'Zacute': 611,
  28882. 'Zcaron': 611,
  28883. 'greaterequal': 549,
  28884. 'Eth': 722,
  28885. 'Ccedilla': 667,
  28886. 'lcommaaccent': 278,
  28887. 'tcaron': 326,
  28888. 'eogonek': 444,
  28889. 'Uogonek': 722,
  28890. 'Aacute': 722,
  28891. 'Adieresis': 722,
  28892. 'egrave': 444,
  28893. 'zacute': 444,
  28894. 'iogonek': 278,
  28895. 'Oacute': 722,
  28896. 'oacute': 500,
  28897. 'amacron': 444,
  28898. 'sacute': 389,
  28899. 'idieresis': 278,
  28900. 'Ocircumflex': 722,
  28901. 'Ugrave': 722,
  28902. 'Delta': 612,
  28903. 'thorn': 500,
  28904. 'twosuperior': 300,
  28905. 'Odieresis': 722,
  28906. 'mu': 500,
  28907. 'igrave': 278,
  28908. 'ohungarumlaut': 500,
  28909. 'Eogonek': 611,
  28910. 'dcroat': 500,
  28911. 'threequarters': 750,
  28912. 'Scedilla': 556,
  28913. 'lcaron': 344,
  28914. 'Kcommaaccent': 722,
  28915. 'Lacute': 611,
  28916. 'trademark': 980,
  28917. 'edotaccent': 444,
  28918. 'Igrave': 333,
  28919. 'Imacron': 333,
  28920. 'Lcaron': 611,
  28921. 'onehalf': 750,
  28922. 'lessequal': 549,
  28923. 'ocircumflex': 500,
  28924. 'ntilde': 500,
  28925. 'Uhungarumlaut': 722,
  28926. 'Eacute': 611,
  28927. 'emacron': 444,
  28928. 'gbreve': 500,
  28929. 'onequarter': 750,
  28930. 'Scaron': 556,
  28931. 'Scommaaccent': 556,
  28932. 'Ohungarumlaut': 722,
  28933. 'degree': 400,
  28934. 'ograve': 500,
  28935. 'Ccaron': 667,
  28936. 'ugrave': 500,
  28937. 'radical': 453,
  28938. 'Dcaron': 722,
  28939. 'rcommaaccent': 333,
  28940. 'Ntilde': 722,
  28941. 'otilde': 500,
  28942. 'Rcommaaccent': 667,
  28943. 'Lcommaaccent': 611,
  28944. 'Atilde': 722,
  28945. 'Aogonek': 722,
  28946. 'Aring': 722,
  28947. 'Otilde': 722,
  28948. 'zdotaccent': 444,
  28949. 'Ecaron': 611,
  28950. 'Iogonek': 333,
  28951. 'kcommaaccent': 500,
  28952. 'minus': 564,
  28953. 'Icircumflex': 333,
  28954. 'ncaron': 500,
  28955. 'tcommaaccent': 278,
  28956. 'logicalnot': 564,
  28957. 'odieresis': 500,
  28958. 'udieresis': 500,
  28959. 'notequal': 549,
  28960. 'gcommaaccent': 500,
  28961. 'eth': 500,
  28962. 'zcaron': 444,
  28963. 'ncommaaccent': 500,
  28964. 'onesuperior': 300,
  28965. 'imacron': 278,
  28966. 'Euro': 500
  28967. },
  28968. 'Times-Bold': {
  28969. 'space': 250,
  28970. 'exclam': 333,
  28971. 'quotedbl': 555,
  28972. 'numbersign': 500,
  28973. 'dollar': 500,
  28974. 'percent': 1000,
  28975. 'ampersand': 833,
  28976. 'quoteright': 333,
  28977. 'parenleft': 333,
  28978. 'parenright': 333,
  28979. 'asterisk': 500,
  28980. 'plus': 570,
  28981. 'comma': 250,
  28982. 'hyphen': 333,
  28983. 'period': 250,
  28984. 'slash': 278,
  28985. 'zero': 500,
  28986. 'one': 500,
  28987. 'two': 500,
  28988. 'three': 500,
  28989. 'four': 500,
  28990. 'five': 500,
  28991. 'six': 500,
  28992. 'seven': 500,
  28993. 'eight': 500,
  28994. 'nine': 500,
  28995. 'colon': 333,
  28996. 'semicolon': 333,
  28997. 'less': 570,
  28998. 'equal': 570,
  28999. 'greater': 570,
  29000. 'question': 500,
  29001. 'at': 930,
  29002. 'A': 722,
  29003. 'B': 667,
  29004. 'C': 722,
  29005. 'D': 722,
  29006. 'E': 667,
  29007. 'F': 611,
  29008. 'G': 778,
  29009. 'H': 778,
  29010. 'I': 389,
  29011. 'J': 500,
  29012. 'K': 778,
  29013. 'L': 667,
  29014. 'M': 944,
  29015. 'N': 722,
  29016. 'O': 778,
  29017. 'P': 611,
  29018. 'Q': 778,
  29019. 'R': 722,
  29020. 'S': 556,
  29021. 'T': 667,
  29022. 'U': 722,
  29023. 'V': 722,
  29024. 'W': 1000,
  29025. 'X': 722,
  29026. 'Y': 722,
  29027. 'Z': 667,
  29028. 'bracketleft': 333,
  29029. 'backslash': 278,
  29030. 'bracketright': 333,
  29031. 'asciicircum': 581,
  29032. 'underscore': 500,
  29033. 'quoteleft': 333,
  29034. 'a': 500,
  29035. 'b': 556,
  29036. 'c': 444,
  29037. 'd': 556,
  29038. 'e': 444,
  29039. 'f': 333,
  29040. 'g': 500,
  29041. 'h': 556,
  29042. 'i': 278,
  29043. 'j': 333,
  29044. 'k': 556,
  29045. 'l': 278,
  29046. 'm': 833,
  29047. 'n': 556,
  29048. 'o': 500,
  29049. 'p': 556,
  29050. 'q': 556,
  29051. 'r': 444,
  29052. 's': 389,
  29053. 't': 333,
  29054. 'u': 556,
  29055. 'v': 500,
  29056. 'w': 722,
  29057. 'x': 500,
  29058. 'y': 500,
  29059. 'z': 444,
  29060. 'braceleft': 394,
  29061. 'bar': 220,
  29062. 'braceright': 394,
  29063. 'asciitilde': 520,
  29064. 'exclamdown': 333,
  29065. 'cent': 500,
  29066. 'sterling': 500,
  29067. 'fraction': 167,
  29068. 'yen': 500,
  29069. 'florin': 500,
  29070. 'section': 500,
  29071. 'currency': 500,
  29072. 'quotesingle': 278,
  29073. 'quotedblleft': 500,
  29074. 'guillemotleft': 500,
  29075. 'guilsinglleft': 333,
  29076. 'guilsinglright': 333,
  29077. 'fi': 556,
  29078. 'fl': 556,
  29079. 'endash': 500,
  29080. 'dagger': 500,
  29081. 'daggerdbl': 500,
  29082. 'periodcentered': 250,
  29083. 'paragraph': 540,
  29084. 'bullet': 350,
  29085. 'quotesinglbase': 333,
  29086. 'quotedblbase': 500,
  29087. 'quotedblright': 500,
  29088. 'guillemotright': 500,
  29089. 'ellipsis': 1000,
  29090. 'perthousand': 1000,
  29091. 'questiondown': 500,
  29092. 'grave': 333,
  29093. 'acute': 333,
  29094. 'circumflex': 333,
  29095. 'tilde': 333,
  29096. 'macron': 333,
  29097. 'breve': 333,
  29098. 'dotaccent': 333,
  29099. 'dieresis': 333,
  29100. 'ring': 333,
  29101. 'cedilla': 333,
  29102. 'hungarumlaut': 333,
  29103. 'ogonek': 333,
  29104. 'caron': 333,
  29105. 'emdash': 1000,
  29106. 'AE': 1000,
  29107. 'ordfeminine': 300,
  29108. 'Lslash': 667,
  29109. 'Oslash': 778,
  29110. 'OE': 1000,
  29111. 'ordmasculine': 330,
  29112. 'ae': 722,
  29113. 'dotlessi': 278,
  29114. 'lslash': 278,
  29115. 'oslash': 500,
  29116. 'oe': 722,
  29117. 'germandbls': 556,
  29118. 'Idieresis': 389,
  29119. 'eacute': 444,
  29120. 'abreve': 500,
  29121. 'uhungarumlaut': 556,
  29122. 'ecaron': 444,
  29123. 'Ydieresis': 722,
  29124. 'divide': 570,
  29125. 'Yacute': 722,
  29126. 'Acircumflex': 722,
  29127. 'aacute': 500,
  29128. 'Ucircumflex': 722,
  29129. 'yacute': 500,
  29130. 'scommaaccent': 389,
  29131. 'ecircumflex': 444,
  29132. 'Uring': 722,
  29133. 'Udieresis': 722,
  29134. 'aogonek': 500,
  29135. 'Uacute': 722,
  29136. 'uogonek': 556,
  29137. 'Edieresis': 667,
  29138. 'Dcroat': 722,
  29139. 'commaaccent': 250,
  29140. 'copyright': 747,
  29141. 'Emacron': 667,
  29142. 'ccaron': 444,
  29143. 'aring': 500,
  29144. 'Ncommaaccent': 722,
  29145. 'lacute': 278,
  29146. 'agrave': 500,
  29147. 'Tcommaaccent': 667,
  29148. 'Cacute': 722,
  29149. 'atilde': 500,
  29150. 'Edotaccent': 667,
  29151. 'scaron': 389,
  29152. 'scedilla': 389,
  29153. 'iacute': 278,
  29154. 'lozenge': 494,
  29155. 'Rcaron': 722,
  29156. 'Gcommaaccent': 778,
  29157. 'ucircumflex': 556,
  29158. 'acircumflex': 500,
  29159. 'Amacron': 722,
  29160. 'rcaron': 444,
  29161. 'ccedilla': 444,
  29162. 'Zdotaccent': 667,
  29163. 'Thorn': 611,
  29164. 'Omacron': 778,
  29165. 'Racute': 722,
  29166. 'Sacute': 556,
  29167. 'dcaron': 672,
  29168. 'Umacron': 722,
  29169. 'uring': 556,
  29170. 'threesuperior': 300,
  29171. 'Ograve': 778,
  29172. 'Agrave': 722,
  29173. 'Abreve': 722,
  29174. 'multiply': 570,
  29175. 'uacute': 556,
  29176. 'Tcaron': 667,
  29177. 'partialdiff': 494,
  29178. 'ydieresis': 500,
  29179. 'Nacute': 722,
  29180. 'icircumflex': 278,
  29181. 'Ecircumflex': 667,
  29182. 'adieresis': 500,
  29183. 'edieresis': 444,
  29184. 'cacute': 444,
  29185. 'nacute': 556,
  29186. 'umacron': 556,
  29187. 'Ncaron': 722,
  29188. 'Iacute': 389,
  29189. 'plusminus': 570,
  29190. 'brokenbar': 220,
  29191. 'registered': 747,
  29192. 'Gbreve': 778,
  29193. 'Idotaccent': 389,
  29194. 'summation': 600,
  29195. 'Egrave': 667,
  29196. 'racute': 444,
  29197. 'omacron': 500,
  29198. 'Zacute': 667,
  29199. 'Zcaron': 667,
  29200. 'greaterequal': 549,
  29201. 'Eth': 722,
  29202. 'Ccedilla': 722,
  29203. 'lcommaaccent': 278,
  29204. 'tcaron': 416,
  29205. 'eogonek': 444,
  29206. 'Uogonek': 722,
  29207. 'Aacute': 722,
  29208. 'Adieresis': 722,
  29209. 'egrave': 444,
  29210. 'zacute': 444,
  29211. 'iogonek': 278,
  29212. 'Oacute': 778,
  29213. 'oacute': 500,
  29214. 'amacron': 500,
  29215. 'sacute': 389,
  29216. 'idieresis': 278,
  29217. 'Ocircumflex': 778,
  29218. 'Ugrave': 722,
  29219. 'Delta': 612,
  29220. 'thorn': 556,
  29221. 'twosuperior': 300,
  29222. 'Odieresis': 778,
  29223. 'mu': 556,
  29224. 'igrave': 278,
  29225. 'ohungarumlaut': 500,
  29226. 'Eogonek': 667,
  29227. 'dcroat': 556,
  29228. 'threequarters': 750,
  29229. 'Scedilla': 556,
  29230. 'lcaron': 394,
  29231. 'Kcommaaccent': 778,
  29232. 'Lacute': 667,
  29233. 'trademark': 1000,
  29234. 'edotaccent': 444,
  29235. 'Igrave': 389,
  29236. 'Imacron': 389,
  29237. 'Lcaron': 667,
  29238. 'onehalf': 750,
  29239. 'lessequal': 549,
  29240. 'ocircumflex': 500,
  29241. 'ntilde': 556,
  29242. 'Uhungarumlaut': 722,
  29243. 'Eacute': 667,
  29244. 'emacron': 444,
  29245. 'gbreve': 500,
  29246. 'onequarter': 750,
  29247. 'Scaron': 556,
  29248. 'Scommaaccent': 556,
  29249. 'Ohungarumlaut': 778,
  29250. 'degree': 400,
  29251. 'ograve': 500,
  29252. 'Ccaron': 722,
  29253. 'ugrave': 556,
  29254. 'radical': 549,
  29255. 'Dcaron': 722,
  29256. 'rcommaaccent': 444,
  29257. 'Ntilde': 722,
  29258. 'otilde': 500,
  29259. 'Rcommaaccent': 722,
  29260. 'Lcommaaccent': 667,
  29261. 'Atilde': 722,
  29262. 'Aogonek': 722,
  29263. 'Aring': 722,
  29264. 'Otilde': 778,
  29265. 'zdotaccent': 444,
  29266. 'Ecaron': 667,
  29267. 'Iogonek': 389,
  29268. 'kcommaaccent': 556,
  29269. 'minus': 570,
  29270. 'Icircumflex': 389,
  29271. 'ncaron': 556,
  29272. 'tcommaaccent': 333,
  29273. 'logicalnot': 570,
  29274. 'odieresis': 500,
  29275. 'udieresis': 556,
  29276. 'notequal': 549,
  29277. 'gcommaaccent': 500,
  29278. 'eth': 500,
  29279. 'zcaron': 444,
  29280. 'ncommaaccent': 556,
  29281. 'onesuperior': 300,
  29282. 'imacron': 278,
  29283. 'Euro': 500
  29284. },
  29285. 'Times-BoldItalic': {
  29286. 'space': 250,
  29287. 'exclam': 389,
  29288. 'quotedbl': 555,
  29289. 'numbersign': 500,
  29290. 'dollar': 500,
  29291. 'percent': 833,
  29292. 'ampersand': 778,
  29293. 'quoteright': 333,
  29294. 'parenleft': 333,
  29295. 'parenright': 333,
  29296. 'asterisk': 500,
  29297. 'plus': 570,
  29298. 'comma': 250,
  29299. 'hyphen': 333,
  29300. 'period': 250,
  29301. 'slash': 278,
  29302. 'zero': 500,
  29303. 'one': 500,
  29304. 'two': 500,
  29305. 'three': 500,
  29306. 'four': 500,
  29307. 'five': 500,
  29308. 'six': 500,
  29309. 'seven': 500,
  29310. 'eight': 500,
  29311. 'nine': 500,
  29312. 'colon': 333,
  29313. 'semicolon': 333,
  29314. 'less': 570,
  29315. 'equal': 570,
  29316. 'greater': 570,
  29317. 'question': 500,
  29318. 'at': 832,
  29319. 'A': 667,
  29320. 'B': 667,
  29321. 'C': 667,
  29322. 'D': 722,
  29323. 'E': 667,
  29324. 'F': 667,
  29325. 'G': 722,
  29326. 'H': 778,
  29327. 'I': 389,
  29328. 'J': 500,
  29329. 'K': 667,
  29330. 'L': 611,
  29331. 'M': 889,
  29332. 'N': 722,
  29333. 'O': 722,
  29334. 'P': 611,
  29335. 'Q': 722,
  29336. 'R': 667,
  29337. 'S': 556,
  29338. 'T': 611,
  29339. 'U': 722,
  29340. 'V': 667,
  29341. 'W': 889,
  29342. 'X': 667,
  29343. 'Y': 611,
  29344. 'Z': 611,
  29345. 'bracketleft': 333,
  29346. 'backslash': 278,
  29347. 'bracketright': 333,
  29348. 'asciicircum': 570,
  29349. 'underscore': 500,
  29350. 'quoteleft': 333,
  29351. 'a': 500,
  29352. 'b': 500,
  29353. 'c': 444,
  29354. 'd': 500,
  29355. 'e': 444,
  29356. 'f': 333,
  29357. 'g': 500,
  29358. 'h': 556,
  29359. 'i': 278,
  29360. 'j': 278,
  29361. 'k': 500,
  29362. 'l': 278,
  29363. 'm': 778,
  29364. 'n': 556,
  29365. 'o': 500,
  29366. 'p': 500,
  29367. 'q': 500,
  29368. 'r': 389,
  29369. 's': 389,
  29370. 't': 278,
  29371. 'u': 556,
  29372. 'v': 444,
  29373. 'w': 667,
  29374. 'x': 500,
  29375. 'y': 444,
  29376. 'z': 389,
  29377. 'braceleft': 348,
  29378. 'bar': 220,
  29379. 'braceright': 348,
  29380. 'asciitilde': 570,
  29381. 'exclamdown': 389,
  29382. 'cent': 500,
  29383. 'sterling': 500,
  29384. 'fraction': 167,
  29385. 'yen': 500,
  29386. 'florin': 500,
  29387. 'section': 500,
  29388. 'currency': 500,
  29389. 'quotesingle': 278,
  29390. 'quotedblleft': 500,
  29391. 'guillemotleft': 500,
  29392. 'guilsinglleft': 333,
  29393. 'guilsinglright': 333,
  29394. 'fi': 556,
  29395. 'fl': 556,
  29396. 'endash': 500,
  29397. 'dagger': 500,
  29398. 'daggerdbl': 500,
  29399. 'periodcentered': 250,
  29400. 'paragraph': 500,
  29401. 'bullet': 350,
  29402. 'quotesinglbase': 333,
  29403. 'quotedblbase': 500,
  29404. 'quotedblright': 500,
  29405. 'guillemotright': 500,
  29406. 'ellipsis': 1000,
  29407. 'perthousand': 1000,
  29408. 'questiondown': 500,
  29409. 'grave': 333,
  29410. 'acute': 333,
  29411. 'circumflex': 333,
  29412. 'tilde': 333,
  29413. 'macron': 333,
  29414. 'breve': 333,
  29415. 'dotaccent': 333,
  29416. 'dieresis': 333,
  29417. 'ring': 333,
  29418. 'cedilla': 333,
  29419. 'hungarumlaut': 333,
  29420. 'ogonek': 333,
  29421. 'caron': 333,
  29422. 'emdash': 1000,
  29423. 'AE': 944,
  29424. 'ordfeminine': 266,
  29425. 'Lslash': 611,
  29426. 'Oslash': 722,
  29427. 'OE': 944,
  29428. 'ordmasculine': 300,
  29429. 'ae': 722,
  29430. 'dotlessi': 278,
  29431. 'lslash': 278,
  29432. 'oslash': 500,
  29433. 'oe': 722,
  29434. 'germandbls': 500,
  29435. 'Idieresis': 389,
  29436. 'eacute': 444,
  29437. 'abreve': 500,
  29438. 'uhungarumlaut': 556,
  29439. 'ecaron': 444,
  29440. 'Ydieresis': 611,
  29441. 'divide': 570,
  29442. 'Yacute': 611,
  29443. 'Acircumflex': 667,
  29444. 'aacute': 500,
  29445. 'Ucircumflex': 722,
  29446. 'yacute': 444,
  29447. 'scommaaccent': 389,
  29448. 'ecircumflex': 444,
  29449. 'Uring': 722,
  29450. 'Udieresis': 722,
  29451. 'aogonek': 500,
  29452. 'Uacute': 722,
  29453. 'uogonek': 556,
  29454. 'Edieresis': 667,
  29455. 'Dcroat': 722,
  29456. 'commaaccent': 250,
  29457. 'copyright': 747,
  29458. 'Emacron': 667,
  29459. 'ccaron': 444,
  29460. 'aring': 500,
  29461. 'Ncommaaccent': 722,
  29462. 'lacute': 278,
  29463. 'agrave': 500,
  29464. 'Tcommaaccent': 611,
  29465. 'Cacute': 667,
  29466. 'atilde': 500,
  29467. 'Edotaccent': 667,
  29468. 'scaron': 389,
  29469. 'scedilla': 389,
  29470. 'iacute': 278,
  29471. 'lozenge': 494,
  29472. 'Rcaron': 667,
  29473. 'Gcommaaccent': 722,
  29474. 'ucircumflex': 556,
  29475. 'acircumflex': 500,
  29476. 'Amacron': 667,
  29477. 'rcaron': 389,
  29478. 'ccedilla': 444,
  29479. 'Zdotaccent': 611,
  29480. 'Thorn': 611,
  29481. 'Omacron': 722,
  29482. 'Racute': 667,
  29483. 'Sacute': 556,
  29484. 'dcaron': 608,
  29485. 'Umacron': 722,
  29486. 'uring': 556,
  29487. 'threesuperior': 300,
  29488. 'Ograve': 722,
  29489. 'Agrave': 667,
  29490. 'Abreve': 667,
  29491. 'multiply': 570,
  29492. 'uacute': 556,
  29493. 'Tcaron': 611,
  29494. 'partialdiff': 494,
  29495. 'ydieresis': 444,
  29496. 'Nacute': 722,
  29497. 'icircumflex': 278,
  29498. 'Ecircumflex': 667,
  29499. 'adieresis': 500,
  29500. 'edieresis': 444,
  29501. 'cacute': 444,
  29502. 'nacute': 556,
  29503. 'umacron': 556,
  29504. 'Ncaron': 722,
  29505. 'Iacute': 389,
  29506. 'plusminus': 570,
  29507. 'brokenbar': 220,
  29508. 'registered': 747,
  29509. 'Gbreve': 722,
  29510. 'Idotaccent': 389,
  29511. 'summation': 600,
  29512. 'Egrave': 667,
  29513. 'racute': 389,
  29514. 'omacron': 500,
  29515. 'Zacute': 611,
  29516. 'Zcaron': 611,
  29517. 'greaterequal': 549,
  29518. 'Eth': 722,
  29519. 'Ccedilla': 667,
  29520. 'lcommaaccent': 278,
  29521. 'tcaron': 366,
  29522. 'eogonek': 444,
  29523. 'Uogonek': 722,
  29524. 'Aacute': 667,
  29525. 'Adieresis': 667,
  29526. 'egrave': 444,
  29527. 'zacute': 389,
  29528. 'iogonek': 278,
  29529. 'Oacute': 722,
  29530. 'oacute': 500,
  29531. 'amacron': 500,
  29532. 'sacute': 389,
  29533. 'idieresis': 278,
  29534. 'Ocircumflex': 722,
  29535. 'Ugrave': 722,
  29536. 'Delta': 612,
  29537. 'thorn': 500,
  29538. 'twosuperior': 300,
  29539. 'Odieresis': 722,
  29540. 'mu': 576,
  29541. 'igrave': 278,
  29542. 'ohungarumlaut': 500,
  29543. 'Eogonek': 667,
  29544. 'dcroat': 500,
  29545. 'threequarters': 750,
  29546. 'Scedilla': 556,
  29547. 'lcaron': 382,
  29548. 'Kcommaaccent': 667,
  29549. 'Lacute': 611,
  29550. 'trademark': 1000,
  29551. 'edotaccent': 444,
  29552. 'Igrave': 389,
  29553. 'Imacron': 389,
  29554. 'Lcaron': 611,
  29555. 'onehalf': 750,
  29556. 'lessequal': 549,
  29557. 'ocircumflex': 500,
  29558. 'ntilde': 556,
  29559. 'Uhungarumlaut': 722,
  29560. 'Eacute': 667,
  29561. 'emacron': 444,
  29562. 'gbreve': 500,
  29563. 'onequarter': 750,
  29564. 'Scaron': 556,
  29565. 'Scommaaccent': 556,
  29566. 'Ohungarumlaut': 722,
  29567. 'degree': 400,
  29568. 'ograve': 500,
  29569. 'Ccaron': 667,
  29570. 'ugrave': 556,
  29571. 'radical': 549,
  29572. 'Dcaron': 722,
  29573. 'rcommaaccent': 389,
  29574. 'Ntilde': 722,
  29575. 'otilde': 500,
  29576. 'Rcommaaccent': 667,
  29577. 'Lcommaaccent': 611,
  29578. 'Atilde': 667,
  29579. 'Aogonek': 667,
  29580. 'Aring': 667,
  29581. 'Otilde': 722,
  29582. 'zdotaccent': 389,
  29583. 'Ecaron': 667,
  29584. 'Iogonek': 389,
  29585. 'kcommaaccent': 500,
  29586. 'minus': 606,
  29587. 'Icircumflex': 389,
  29588. 'ncaron': 556,
  29589. 'tcommaaccent': 278,
  29590. 'logicalnot': 606,
  29591. 'odieresis': 500,
  29592. 'udieresis': 556,
  29593. 'notequal': 549,
  29594. 'gcommaaccent': 500,
  29595. 'eth': 500,
  29596. 'zcaron': 389,
  29597. 'ncommaaccent': 556,
  29598. 'onesuperior': 300,
  29599. 'imacron': 278,
  29600. 'Euro': 500
  29601. },
  29602. 'Times-Italic': {
  29603. 'space': 250,
  29604. 'exclam': 333,
  29605. 'quotedbl': 420,
  29606. 'numbersign': 500,
  29607. 'dollar': 500,
  29608. 'percent': 833,
  29609. 'ampersand': 778,
  29610. 'quoteright': 333,
  29611. 'parenleft': 333,
  29612. 'parenright': 333,
  29613. 'asterisk': 500,
  29614. 'plus': 675,
  29615. 'comma': 250,
  29616. 'hyphen': 333,
  29617. 'period': 250,
  29618. 'slash': 278,
  29619. 'zero': 500,
  29620. 'one': 500,
  29621. 'two': 500,
  29622. 'three': 500,
  29623. 'four': 500,
  29624. 'five': 500,
  29625. 'six': 500,
  29626. 'seven': 500,
  29627. 'eight': 500,
  29628. 'nine': 500,
  29629. 'colon': 333,
  29630. 'semicolon': 333,
  29631. 'less': 675,
  29632. 'equal': 675,
  29633. 'greater': 675,
  29634. 'question': 500,
  29635. 'at': 920,
  29636. 'A': 611,
  29637. 'B': 611,
  29638. 'C': 667,
  29639. 'D': 722,
  29640. 'E': 611,
  29641. 'F': 611,
  29642. 'G': 722,
  29643. 'H': 722,
  29644. 'I': 333,
  29645. 'J': 444,
  29646. 'K': 667,
  29647. 'L': 556,
  29648. 'M': 833,
  29649. 'N': 667,
  29650. 'O': 722,
  29651. 'P': 611,
  29652. 'Q': 722,
  29653. 'R': 611,
  29654. 'S': 500,
  29655. 'T': 556,
  29656. 'U': 722,
  29657. 'V': 611,
  29658. 'W': 833,
  29659. 'X': 611,
  29660. 'Y': 556,
  29661. 'Z': 556,
  29662. 'bracketleft': 389,
  29663. 'backslash': 278,
  29664. 'bracketright': 389,
  29665. 'asciicircum': 422,
  29666. 'underscore': 500,
  29667. 'quoteleft': 333,
  29668. 'a': 500,
  29669. 'b': 500,
  29670. 'c': 444,
  29671. 'd': 500,
  29672. 'e': 444,
  29673. 'f': 278,
  29674. 'g': 500,
  29675. 'h': 500,
  29676. 'i': 278,
  29677. 'j': 278,
  29678. 'k': 444,
  29679. 'l': 278,
  29680. 'm': 722,
  29681. 'n': 500,
  29682. 'o': 500,
  29683. 'p': 500,
  29684. 'q': 500,
  29685. 'r': 389,
  29686. 's': 389,
  29687. 't': 278,
  29688. 'u': 500,
  29689. 'v': 444,
  29690. 'w': 667,
  29691. 'x': 444,
  29692. 'y': 444,
  29693. 'z': 389,
  29694. 'braceleft': 400,
  29695. 'bar': 275,
  29696. 'braceright': 400,
  29697. 'asciitilde': 541,
  29698. 'exclamdown': 389,
  29699. 'cent': 500,
  29700. 'sterling': 500,
  29701. 'fraction': 167,
  29702. 'yen': 500,
  29703. 'florin': 500,
  29704. 'section': 500,
  29705. 'currency': 500,
  29706. 'quotesingle': 214,
  29707. 'quotedblleft': 556,
  29708. 'guillemotleft': 500,
  29709. 'guilsinglleft': 333,
  29710. 'guilsinglright': 333,
  29711. 'fi': 500,
  29712. 'fl': 500,
  29713. 'endash': 500,
  29714. 'dagger': 500,
  29715. 'daggerdbl': 500,
  29716. 'periodcentered': 250,
  29717. 'paragraph': 523,
  29718. 'bullet': 350,
  29719. 'quotesinglbase': 333,
  29720. 'quotedblbase': 556,
  29721. 'quotedblright': 556,
  29722. 'guillemotright': 500,
  29723. 'ellipsis': 889,
  29724. 'perthousand': 1000,
  29725. 'questiondown': 500,
  29726. 'grave': 333,
  29727. 'acute': 333,
  29728. 'circumflex': 333,
  29729. 'tilde': 333,
  29730. 'macron': 333,
  29731. 'breve': 333,
  29732. 'dotaccent': 333,
  29733. 'dieresis': 333,
  29734. 'ring': 333,
  29735. 'cedilla': 333,
  29736. 'hungarumlaut': 333,
  29737. 'ogonek': 333,
  29738. 'caron': 333,
  29739. 'emdash': 889,
  29740. 'AE': 889,
  29741. 'ordfeminine': 276,
  29742. 'Lslash': 556,
  29743. 'Oslash': 722,
  29744. 'OE': 944,
  29745. 'ordmasculine': 310,
  29746. 'ae': 667,
  29747. 'dotlessi': 278,
  29748. 'lslash': 278,
  29749. 'oslash': 500,
  29750. 'oe': 667,
  29751. 'germandbls': 500,
  29752. 'Idieresis': 333,
  29753. 'eacute': 444,
  29754. 'abreve': 500,
  29755. 'uhungarumlaut': 500,
  29756. 'ecaron': 444,
  29757. 'Ydieresis': 556,
  29758. 'divide': 675,
  29759. 'Yacute': 556,
  29760. 'Acircumflex': 611,
  29761. 'aacute': 500,
  29762. 'Ucircumflex': 722,
  29763. 'yacute': 444,
  29764. 'scommaaccent': 389,
  29765. 'ecircumflex': 444,
  29766. 'Uring': 722,
  29767. 'Udieresis': 722,
  29768. 'aogonek': 500,
  29769. 'Uacute': 722,
  29770. 'uogonek': 500,
  29771. 'Edieresis': 611,
  29772. 'Dcroat': 722,
  29773. 'commaaccent': 250,
  29774. 'copyright': 760,
  29775. 'Emacron': 611,
  29776. 'ccaron': 444,
  29777. 'aring': 500,
  29778. 'Ncommaaccent': 667,
  29779. 'lacute': 278,
  29780. 'agrave': 500,
  29781. 'Tcommaaccent': 556,
  29782. 'Cacute': 667,
  29783. 'atilde': 500,
  29784. 'Edotaccent': 611,
  29785. 'scaron': 389,
  29786. 'scedilla': 389,
  29787. 'iacute': 278,
  29788. 'lozenge': 471,
  29789. 'Rcaron': 611,
  29790. 'Gcommaaccent': 722,
  29791. 'ucircumflex': 500,
  29792. 'acircumflex': 500,
  29793. 'Amacron': 611,
  29794. 'rcaron': 389,
  29795. 'ccedilla': 444,
  29796. 'Zdotaccent': 556,
  29797. 'Thorn': 611,
  29798. 'Omacron': 722,
  29799. 'Racute': 611,
  29800. 'Sacute': 500,
  29801. 'dcaron': 544,
  29802. 'Umacron': 722,
  29803. 'uring': 500,
  29804. 'threesuperior': 300,
  29805. 'Ograve': 722,
  29806. 'Agrave': 611,
  29807. 'Abreve': 611,
  29808. 'multiply': 675,
  29809. 'uacute': 500,
  29810. 'Tcaron': 556,
  29811. 'partialdiff': 476,
  29812. 'ydieresis': 444,
  29813. 'Nacute': 667,
  29814. 'icircumflex': 278,
  29815. 'Ecircumflex': 611,
  29816. 'adieresis': 500,
  29817. 'edieresis': 444,
  29818. 'cacute': 444,
  29819. 'nacute': 500,
  29820. 'umacron': 500,
  29821. 'Ncaron': 667,
  29822. 'Iacute': 333,
  29823. 'plusminus': 675,
  29824. 'brokenbar': 275,
  29825. 'registered': 760,
  29826. 'Gbreve': 722,
  29827. 'Idotaccent': 333,
  29828. 'summation': 600,
  29829. 'Egrave': 611,
  29830. 'racute': 389,
  29831. 'omacron': 500,
  29832. 'Zacute': 556,
  29833. 'Zcaron': 556,
  29834. 'greaterequal': 549,
  29835. 'Eth': 722,
  29836. 'Ccedilla': 667,
  29837. 'lcommaaccent': 278,
  29838. 'tcaron': 300,
  29839. 'eogonek': 444,
  29840. 'Uogonek': 722,
  29841. 'Aacute': 611,
  29842. 'Adieresis': 611,
  29843. 'egrave': 444,
  29844. 'zacute': 389,
  29845. 'iogonek': 278,
  29846. 'Oacute': 722,
  29847. 'oacute': 500,
  29848. 'amacron': 500,
  29849. 'sacute': 389,
  29850. 'idieresis': 278,
  29851. 'Ocircumflex': 722,
  29852. 'Ugrave': 722,
  29853. 'Delta': 612,
  29854. 'thorn': 500,
  29855. 'twosuperior': 300,
  29856. 'Odieresis': 722,
  29857. 'mu': 500,
  29858. 'igrave': 278,
  29859. 'ohungarumlaut': 500,
  29860. 'Eogonek': 611,
  29861. 'dcroat': 500,
  29862. 'threequarters': 750,
  29863. 'Scedilla': 500,
  29864. 'lcaron': 300,
  29865. 'Kcommaaccent': 667,
  29866. 'Lacute': 556,
  29867. 'trademark': 980,
  29868. 'edotaccent': 444,
  29869. 'Igrave': 333,
  29870. 'Imacron': 333,
  29871. 'Lcaron': 611,
  29872. 'onehalf': 750,
  29873. 'lessequal': 549,
  29874. 'ocircumflex': 500,
  29875. 'ntilde': 500,
  29876. 'Uhungarumlaut': 722,
  29877. 'Eacute': 611,
  29878. 'emacron': 444,
  29879. 'gbreve': 500,
  29880. 'onequarter': 750,
  29881. 'Scaron': 500,
  29882. 'Scommaaccent': 500,
  29883. 'Ohungarumlaut': 722,
  29884. 'degree': 400,
  29885. 'ograve': 500,
  29886. 'Ccaron': 667,
  29887. 'ugrave': 500,
  29888. 'radical': 453,
  29889. 'Dcaron': 722,
  29890. 'rcommaaccent': 389,
  29891. 'Ntilde': 667,
  29892. 'otilde': 500,
  29893. 'Rcommaaccent': 611,
  29894. 'Lcommaaccent': 556,
  29895. 'Atilde': 611,
  29896. 'Aogonek': 611,
  29897. 'Aring': 611,
  29898. 'Otilde': 722,
  29899. 'zdotaccent': 389,
  29900. 'Ecaron': 611,
  29901. 'Iogonek': 333,
  29902. 'kcommaaccent': 444,
  29903. 'minus': 675,
  29904. 'Icircumflex': 333,
  29905. 'ncaron': 500,
  29906. 'tcommaaccent': 278,
  29907. 'logicalnot': 675,
  29908. 'odieresis': 500,
  29909. 'udieresis': 500,
  29910. 'notequal': 549,
  29911. 'gcommaaccent': 500,
  29912. 'eth': 500,
  29913. 'zcaron': 389,
  29914. 'ncommaaccent': 500,
  29915. 'onesuperior': 300,
  29916. 'imacron': 278,
  29917. 'Euro': 500
  29918. },
  29919. 'ZapfDingbats': {
  29920. 'space': 278,
  29921. 'a1': 974,
  29922. 'a2': 961,
  29923. 'a202': 974,
  29924. 'a3': 980,
  29925. 'a4': 719,
  29926. 'a5': 789,
  29927. 'a119': 790,
  29928. 'a118': 791,
  29929. 'a117': 690,
  29930. 'a11': 960,
  29931. 'a12': 939,
  29932. 'a13': 549,
  29933. 'a14': 855,
  29934. 'a15': 911,
  29935. 'a16': 933,
  29936. 'a105': 911,
  29937. 'a17': 945,
  29938. 'a18': 974,
  29939. 'a19': 755,
  29940. 'a20': 846,
  29941. 'a21': 762,
  29942. 'a22': 761,
  29943. 'a23': 571,
  29944. 'a24': 677,
  29945. 'a25': 763,
  29946. 'a26': 760,
  29947. 'a27': 759,
  29948. 'a28': 754,
  29949. 'a6': 494,
  29950. 'a7': 552,
  29951. 'a8': 537,
  29952. 'a9': 577,
  29953. 'a10': 692,
  29954. 'a29': 786,
  29955. 'a30': 788,
  29956. 'a31': 788,
  29957. 'a32': 790,
  29958. 'a33': 793,
  29959. 'a34': 794,
  29960. 'a35': 816,
  29961. 'a36': 823,
  29962. 'a37': 789,
  29963. 'a38': 841,
  29964. 'a39': 823,
  29965. 'a40': 833,
  29966. 'a41': 816,
  29967. 'a42': 831,
  29968. 'a43': 923,
  29969. 'a44': 744,
  29970. 'a45': 723,
  29971. 'a46': 749,
  29972. 'a47': 790,
  29973. 'a48': 792,
  29974. 'a49': 695,
  29975. 'a50': 776,
  29976. 'a51': 768,
  29977. 'a52': 792,
  29978. 'a53': 759,
  29979. 'a54': 707,
  29980. 'a55': 708,
  29981. 'a56': 682,
  29982. 'a57': 701,
  29983. 'a58': 826,
  29984. 'a59': 815,
  29985. 'a60': 789,
  29986. 'a61': 789,
  29987. 'a62': 707,
  29988. 'a63': 687,
  29989. 'a64': 696,
  29990. 'a65': 689,
  29991. 'a66': 786,
  29992. 'a67': 787,
  29993. 'a68': 713,
  29994. 'a69': 791,
  29995. 'a70': 785,
  29996. 'a71': 791,
  29997. 'a72': 873,
  29998. 'a73': 761,
  29999. 'a74': 762,
  30000. 'a203': 762,
  30001. 'a75': 759,
  30002. 'a204': 759,
  30003. 'a76': 892,
  30004. 'a77': 892,
  30005. 'a78': 788,
  30006. 'a79': 784,
  30007. 'a81': 438,
  30008. 'a82': 138,
  30009. 'a83': 277,
  30010. 'a84': 415,
  30011. 'a97': 392,
  30012. 'a98': 392,
  30013. 'a99': 668,
  30014. 'a100': 668,
  30015. 'a89': 390,
  30016. 'a90': 390,
  30017. 'a93': 317,
  30018. 'a94': 317,
  30019. 'a91': 276,
  30020. 'a92': 276,
  30021. 'a205': 509,
  30022. 'a85': 509,
  30023. 'a206': 410,
  30024. 'a86': 410,
  30025. 'a87': 234,
  30026. 'a88': 234,
  30027. 'a95': 334,
  30028. 'a96': 334,
  30029. 'a101': 732,
  30030. 'a102': 544,
  30031. 'a103': 544,
  30032. 'a104': 910,
  30033. 'a106': 667,
  30034. 'a107': 760,
  30035. 'a108': 760,
  30036. 'a112': 776,
  30037. 'a111': 595,
  30038. 'a110': 694,
  30039. 'a109': 626,
  30040. 'a120': 788,
  30041. 'a121': 788,
  30042. 'a122': 788,
  30043. 'a123': 788,
  30044. 'a124': 788,
  30045. 'a125': 788,
  30046. 'a126': 788,
  30047. 'a127': 788,
  30048. 'a128': 788,
  30049. 'a129': 788,
  30050. 'a130': 788,
  30051. 'a131': 788,
  30052. 'a132': 788,
  30053. 'a133': 788,
  30054. 'a134': 788,
  30055. 'a135': 788,
  30056. 'a136': 788,
  30057. 'a137': 788,
  30058. 'a138': 788,
  30059. 'a139': 788,
  30060. 'a140': 788,
  30061. 'a141': 788,
  30062. 'a142': 788,
  30063. 'a143': 788,
  30064. 'a144': 788,
  30065. 'a145': 788,
  30066. 'a146': 788,
  30067. 'a147': 788,
  30068. 'a148': 788,
  30069. 'a149': 788,
  30070. 'a150': 788,
  30071. 'a151': 788,
  30072. 'a152': 788,
  30073. 'a153': 788,
  30074. 'a154': 788,
  30075. 'a155': 788,
  30076. 'a156': 788,
  30077. 'a157': 788,
  30078. 'a158': 788,
  30079. 'a159': 788,
  30080. 'a160': 894,
  30081. 'a161': 838,
  30082. 'a163': 1016,
  30083. 'a164': 458,
  30084. 'a196': 748,
  30085. 'a165': 924,
  30086. 'a192': 748,
  30087. 'a166': 918,
  30088. 'a167': 927,
  30089. 'a168': 928,
  30090. 'a169': 928,
  30091. 'a170': 834,
  30092. 'a171': 873,
  30093. 'a172': 828,
  30094. 'a173': 924,
  30095. 'a162': 924,
  30096. 'a174': 917,
  30097. 'a175': 930,
  30098. 'a176': 931,
  30099. 'a177': 463,
  30100. 'a178': 883,
  30101. 'a179': 836,
  30102. 'a193': 836,
  30103. 'a180': 867,
  30104. 'a199': 867,
  30105. 'a181': 696,
  30106. 'a200': 696,
  30107. 'a182': 874,
  30108. 'a201': 874,
  30109. 'a183': 760,
  30110. 'a184': 946,
  30111. 'a197': 771,
  30112. 'a185': 865,
  30113. 'a194': 771,
  30114. 'a198': 888,
  30115. 'a186': 967,
  30116. 'a195': 888,
  30117. 'a187': 831,
  30118. 'a188': 873,
  30119. 'a189': 927,
  30120. 'a190': 970,
  30121. 'a191': 918
  30122. }
  30123. };
  30124. var EOF = {};
  30125. function isEOF(v) {
  30126. return v == EOF;
  30127. }
  30128. var Parser = (function ParserClosure() {
  30129. function Parser(lexer, allowStreams, xref) {
  30130. this.lexer = lexer;
  30131. this.allowStreams = allowStreams;
  30132. this.xref = xref;
  30133. this.refill();
  30134. }
  30135. Parser.prototype = {
  30136. refill: function Parser_refill() {
  30137. this.buf1 = this.lexer.getObj();
  30138. this.buf2 = this.lexer.getObj();
  30139. },
  30140. shift: function Parser_shift() {
  30141. if (isCmd(this.buf2, 'ID')) {
  30142. this.buf1 = this.buf2;
  30143. this.buf2 = null;
  30144. } else {
  30145. this.buf1 = this.buf2;
  30146. this.buf2 = this.lexer.getObj();
  30147. }
  30148. },
  30149. getObj: function Parser_getObj(cipherTransform) {
  30150. if (isCmd(this.buf1, 'BI')) { // inline image
  30151. this.shift();
  30152. return this.makeInlineImage(cipherTransform);
  30153. }
  30154. if (isCmd(this.buf1, '[')) { // array
  30155. this.shift();
  30156. var array = [];
  30157. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1))
  30158. array.push(this.getObj(cipherTransform));
  30159. if (isEOF(this.buf1))
  30160. error('End of file inside array');
  30161. this.shift();
  30162. return array;
  30163. }
  30164. if (isCmd(this.buf1, '<<')) { // dictionary or stream
  30165. this.shift();
  30166. var dict = new Dict(this.xref);
  30167. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  30168. if (!isName(this.buf1)) {
  30169. info('Malformed dictionary, key must be a name object');
  30170. this.shift();
  30171. continue;
  30172. }
  30173. var key = this.buf1.name;
  30174. this.shift();
  30175. if (isEOF(this.buf1))
  30176. break;
  30177. dict.set(key, this.getObj(cipherTransform));
  30178. }
  30179. if (isEOF(this.buf1))
  30180. error('End of file inside dictionary');
  30181. // stream objects are not allowed inside content streams or
  30182. // object streams
  30183. if (isCmd(this.buf2, 'stream')) {
  30184. return this.allowStreams ?
  30185. this.makeStream(dict, cipherTransform) : dict;
  30186. }
  30187. this.shift();
  30188. return dict;
  30189. }
  30190. if (isInt(this.buf1)) { // indirect reference or integer
  30191. var num = this.buf1;
  30192. this.shift();
  30193. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  30194. var ref = new Ref(num, this.buf1);
  30195. this.shift();
  30196. this.shift();
  30197. return ref;
  30198. }
  30199. return num;
  30200. }
  30201. if (isString(this.buf1)) { // string
  30202. var str = this.buf1;
  30203. this.shift();
  30204. if (cipherTransform)
  30205. str = cipherTransform.decryptString(str);
  30206. return str;
  30207. }
  30208. // simple object
  30209. var obj = this.buf1;
  30210. this.shift();
  30211. return obj;
  30212. },
  30213. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  30214. var lexer = this.lexer;
  30215. var stream = lexer.stream;
  30216. // parse dictionary
  30217. var dict = new Dict();
  30218. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  30219. if (!isName(this.buf1))
  30220. error('Dictionary key must be a name object');
  30221. var key = this.buf1.name;
  30222. this.shift();
  30223. if (isEOF(this.buf1))
  30224. break;
  30225. dict.set(key, this.getObj(cipherTransform));
  30226. }
  30227. // parse image stream
  30228. var startPos = stream.pos;
  30229. // searching for the /EI\s/
  30230. var state = 0, ch, i, ii;
  30231. while (state != 4 && (ch = stream.getByte()) !== -1) {
  30232. switch (ch | 0) {
  30233. case 0x20:
  30234. case 0x0D:
  30235. case 0x0A:
  30236. // let's check next five bytes to be ASCII... just be sure
  30237. var followingBytes = stream.peekBytes(5);
  30238. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  30239. ch = followingBytes[i];
  30240. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  30241. // not a LF, CR, SPACE or any visible ASCII character
  30242. state = 0;
  30243. break; // some binary stuff found, resetting the state
  30244. }
  30245. }
  30246. state = state === 3 ? 4 : 0;
  30247. break;
  30248. case 0x45:
  30249. state = 2;
  30250. break;
  30251. case 0x49:
  30252. state = state === 2 ? 3 : 0;
  30253. break;
  30254. default:
  30255. state = 0;
  30256. break;
  30257. }
  30258. }
  30259. var length = (stream.pos - 4) - startPos;
  30260. var imageStream = stream.makeSubStream(startPos, length, dict);
  30261. if (cipherTransform)
  30262. imageStream = cipherTransform.createStream(imageStream);
  30263. imageStream = this.filter(imageStream, dict, length);
  30264. imageStream.dict = dict;
  30265. this.buf2 = Cmd.get('EI');
  30266. this.shift();
  30267. return imageStream;
  30268. },
  30269. fetchIfRef: function Parser_fetchIfRef(obj) {
  30270. // not relying on the xref.fetchIfRef -- xref might not be set
  30271. return isRef(obj) ? this.xref.fetch(obj) : obj;
  30272. },
  30273. makeStream: function Parser_makeStream(dict, cipherTransform) {
  30274. var lexer = this.lexer;
  30275. var stream = lexer.stream;
  30276. // get stream start position
  30277. lexer.skipToNextLine();
  30278. var pos = stream.pos - 1;
  30279. // get length
  30280. var length = this.fetchIfRef(dict.get('Length'));
  30281. if (!isInt(length)) {
  30282. info('Bad ' + length + ' attribute in stream');
  30283. length = 0;
  30284. }
  30285. // skip over the stream data
  30286. stream.pos = pos + length;
  30287. lexer.nextChar();
  30288. this.shift(); // '>>'
  30289. this.shift(); // 'stream'
  30290. if (!isCmd(this.buf1, 'endstream')) {
  30291. // bad stream length, scanning for endstream
  30292. stream.pos = pos;
  30293. var SCAN_BLOCK_SIZE = 2048;
  30294. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  30295. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  30296. 0x61, 0x6D];
  30297. var skipped = 0, found = false;
  30298. while (stream.pos < stream.end) {
  30299. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  30300. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  30301. var found = false, i, ii, j;
  30302. for (i = 0, j = 0; i < scanLength; i++) {
  30303. var b = scanBytes[i];
  30304. if (b !== ENDSTREAM_SIGNATURE[j]) {
  30305. i -= j;
  30306. j = 0;
  30307. } else {
  30308. j++;
  30309. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  30310. found = true;
  30311. break;
  30312. }
  30313. }
  30314. }
  30315. if (found) {
  30316. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  30317. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  30318. break;
  30319. }
  30320. skipped += scanLength;
  30321. stream.pos += scanLength;
  30322. }
  30323. if (!found) {
  30324. error('Missing endstream');
  30325. }
  30326. length = skipped;
  30327. lexer.nextChar();
  30328. this.shift();
  30329. this.shift();
  30330. }
  30331. this.shift(); // 'endstream'
  30332. stream = stream.makeSubStream(pos, length, dict);
  30333. if (cipherTransform)
  30334. stream = cipherTransform.createStream(stream);
  30335. stream = this.filter(stream, dict, length);
  30336. stream.dict = dict;
  30337. return stream;
  30338. },
  30339. filter: function Parser_filter(stream, dict, length) {
  30340. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  30341. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  30342. if (isName(filter))
  30343. return this.makeFilter(stream, filter.name, length, params);
  30344. if (isArray(filter)) {
  30345. var filterArray = filter;
  30346. var paramsArray = params;
  30347. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  30348. filter = filterArray[i];
  30349. if (!isName(filter))
  30350. error('Bad filter name: ' + filter);
  30351. params = null;
  30352. if (isArray(paramsArray) && (i in paramsArray))
  30353. params = paramsArray[i];
  30354. stream = this.makeFilter(stream, filter.name, length, params);
  30355. // after the first stream the length variable is invalid
  30356. length = null;
  30357. }
  30358. }
  30359. return stream;
  30360. },
  30361. makeFilter: function Parser_makeFilter(stream, name, length, params) {
  30362. if (stream.dict.get('Length') === 0) {
  30363. return new NullStream(stream);
  30364. }
  30365. if (name == 'FlateDecode' || name == 'Fl') {
  30366. if (params) {
  30367. return new PredictorStream(new FlateStream(stream), params);
  30368. }
  30369. return new FlateStream(stream);
  30370. }
  30371. if (name == 'LZWDecode' || name == 'LZW') {
  30372. var earlyChange = 1;
  30373. if (params) {
  30374. if (params.has('EarlyChange'))
  30375. earlyChange = params.get('EarlyChange');
  30376. return new PredictorStream(
  30377. new LZWStream(stream, earlyChange), params);
  30378. }
  30379. return new LZWStream(stream, earlyChange);
  30380. }
  30381. if (name == 'DCTDecode' || name == 'DCT') {
  30382. var bytes = stream.getBytes(length);
  30383. return new JpegStream(bytes, stream.dict, this.xref);
  30384. }
  30385. if (name == 'JPXDecode' || name == 'JPX') {
  30386. var bytes = stream.getBytes(length);
  30387. return new JpxStream(bytes, stream.dict);
  30388. }
  30389. if (name == 'ASCII85Decode' || name == 'A85') {
  30390. return new Ascii85Stream(stream);
  30391. }
  30392. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  30393. return new AsciiHexStream(stream);
  30394. }
  30395. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  30396. return new CCITTFaxStream(stream, params);
  30397. }
  30398. if (name == 'RunLengthDecode' || name == 'RL') {
  30399. return new RunLengthStream(stream);
  30400. }
  30401. if (name == 'JBIG2Decode') {
  30402. var bytes = stream.getBytes(length);
  30403. return new Jbig2Stream(bytes, stream.dict);
  30404. }
  30405. warn('filter "' + name + '" not supported yet');
  30406. return stream;
  30407. }
  30408. };
  30409. return Parser;
  30410. })();
  30411. var Lexer = (function LexerClosure() {
  30412. function Lexer(stream, knownCommands) {
  30413. this.stream = stream;
  30414. this.nextChar();
  30415. // The PDFs might have "glued" commands with other commands, operands or
  30416. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  30417. // commands and their prefixes. The prefixes are built the following way:
  30418. // if there a command that is a prefix of the other valid command or
  30419. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  30420. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  30421. // other commands or literals as a prefix. The knowCommands is optional.
  30422. this.knownCommands = knownCommands;
  30423. }
  30424. Lexer.isSpace = function Lexer_isSpace(ch) {
  30425. // space is one of the following characters: SPACE, TAB, CR, or LF
  30426. return ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A;
  30427. };
  30428. // A '1' in this array means the character is white space. A '1' or
  30429. // '2' means the character ends a name or command.
  30430. var specialChars = [
  30431. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  30432. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  30433. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  30434. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  30435. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  30436. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  30437. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  30438. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  30439. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  30440. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  30441. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  30442. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  30443. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  30444. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  30445. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  30446. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  30447. ];
  30448. function toHexDigit(ch) {
  30449. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  30450. return ch & 0x0F;
  30451. }
  30452. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  30453. // 'A'-'F', 'a'-'f'
  30454. return (ch & 0x0F) + 9;
  30455. }
  30456. return -1;
  30457. }
  30458. Lexer.prototype = {
  30459. nextChar: function Lexer_nextChar() {
  30460. return (this.currentChar = this.stream.getByte());
  30461. },
  30462. getNumber: function Lexer_getNumber() {
  30463. var floating = false;
  30464. var ch = this.currentChar;
  30465. var str = String.fromCharCode(ch);
  30466. while ((ch = this.nextChar()) >= 0) {
  30467. if (ch === 0x2E && !floating) { // '.'
  30468. str += '.';
  30469. floating = true;
  30470. } else if (ch === 0x2D) { // '-'
  30471. // ignore minus signs in the middle of numbers to match
  30472. // Adobe's behavior
  30473. warn('Badly formated number');
  30474. } else if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  30475. str += String.fromCharCode(ch);
  30476. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  30477. floating = true;
  30478. } else {
  30479. // the last character doesn't belong to us
  30480. break;
  30481. }
  30482. }
  30483. var value = parseFloat(str);
  30484. if (isNaN(value))
  30485. error('Invalid floating point number: ' + value);
  30486. return value;
  30487. },
  30488. getString: function Lexer_getString() {
  30489. var numParen = 1;
  30490. var done = false;
  30491. var str = '';
  30492. var ch = this.nextChar();
  30493. while (true) {
  30494. var charBuffered = false;
  30495. switch (ch | 0) {
  30496. case -1:
  30497. warn('Unterminated string');
  30498. done = true;
  30499. break;
  30500. case 0x28: // '('
  30501. ++numParen;
  30502. str += '(';
  30503. break;
  30504. case 0x29: // ')'
  30505. if (--numParen === 0) {
  30506. this.nextChar(); // consume strings ')'
  30507. done = true;
  30508. } else {
  30509. str += ')';
  30510. }
  30511. break;
  30512. case 0x5C: // '\\'
  30513. ch = this.nextChar();
  30514. switch (ch) {
  30515. case -1:
  30516. warn('Unterminated string');
  30517. done = true;
  30518. break;
  30519. case 0x6E: // 'n'
  30520. str += '\n';
  30521. break;
  30522. case 0x72: // 'r'
  30523. str += '\r';
  30524. break;
  30525. case 0x74: // 't'
  30526. str += '\t';
  30527. break;
  30528. case 0x62: // 'b'
  30529. str += '\b';
  30530. break;
  30531. case 0x66: // 'f'
  30532. str += '\f';
  30533. break;
  30534. case 0x5C: // '\'
  30535. case 0x28: // '('
  30536. case 0x29: // ')'
  30537. str += String.fromCharCode(ch);
  30538. break;
  30539. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  30540. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  30541. var x = ch & 0x0F;
  30542. ch = this.nextChar();
  30543. charBuffered = true;
  30544. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  30545. x = (x << 3) + (ch & 0x0F);
  30546. ch = this.nextChar();
  30547. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  30548. charBuffered = false;
  30549. x = (x << 3) + (ch & 0x0F);
  30550. }
  30551. }
  30552. str += String.fromCharCode(x);
  30553. break;
  30554. case 0x0A: case 0x0D: // LF, CR
  30555. break;
  30556. default:
  30557. str += String.fromCharCode(ch);
  30558. break;
  30559. }
  30560. break;
  30561. default:
  30562. str += String.fromCharCode(ch);
  30563. break;
  30564. }
  30565. if (done) {
  30566. break;
  30567. }
  30568. if (!charBuffered) {
  30569. ch = this.nextChar();
  30570. }
  30571. }
  30572. return str;
  30573. },
  30574. getName: function Lexer_getName() {
  30575. var str = '', ch;
  30576. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  30577. if (ch === 0x23) { // '#'
  30578. ch = this.nextChar();
  30579. var x = toHexDigit(ch);
  30580. if (x != -1) {
  30581. var x2 = toHexDigit(this.nextChar());
  30582. if (x2 == -1)
  30583. error('Illegal digit in hex char in name: ' + x2);
  30584. str += String.fromCharCode((x << 4) | x2);
  30585. } else {
  30586. str += '#';
  30587. str += String.fromCharCode(ch);
  30588. }
  30589. } else {
  30590. str += String.fromCharCode(ch);
  30591. }
  30592. }
  30593. if (str.length > 128) {
  30594. error('Warning: name token is longer than allowed by the spec: ' +
  30595. str.length);
  30596. }
  30597. return new Name(str);
  30598. },
  30599. getHexString: function Lexer_getHexString() {
  30600. var str = '';
  30601. var ch = this.currentChar;
  30602. var isFirstHex = true;
  30603. var firstDigit;
  30604. var secondDigit;
  30605. while (true) {
  30606. if (ch < 0) {
  30607. warn('Unterminated hex string');
  30608. break;
  30609. } else if (ch === 0x3E) { // '>'
  30610. this.nextChar();
  30611. break;
  30612. } else if (specialChars[ch] === 1) {
  30613. ch = this.nextChar();
  30614. continue;
  30615. } else {
  30616. if (isFirstHex) {
  30617. firstDigit = toHexDigit(ch);
  30618. if (firstDigit === -1) {
  30619. warn('Ignoring invalid character "' + ch + '" in hex string');
  30620. ch = this.nextChar();
  30621. continue;
  30622. }
  30623. } else {
  30624. secondDigit = toHexDigit(ch);
  30625. if (secondDigit === -1) {
  30626. warn('Ignoring invalid character "' + ch + '" in hex string');
  30627. ch = this.nextChar();
  30628. continue;
  30629. }
  30630. str += String.fromCharCode((firstDigit << 4) | secondDigit);
  30631. }
  30632. isFirstHex = !isFirstHex;
  30633. ch = this.nextChar();
  30634. }
  30635. }
  30636. return str;
  30637. },
  30638. getObj: function Lexer_getObj() {
  30639. // skip whitespace and comments
  30640. var comment = false;
  30641. var ch = this.currentChar;
  30642. while (true) {
  30643. if (ch < 0) {
  30644. return EOF;
  30645. }
  30646. if (comment) {
  30647. if (ch === 0x0A || ch == 0x0D) // LF, CR
  30648. comment = false;
  30649. } else if (ch === 0x25) { // '%'
  30650. comment = true;
  30651. } else if (specialChars[ch] !== 1) {
  30652. break;
  30653. }
  30654. ch = this.nextChar();
  30655. }
  30656. // start reading token
  30657. switch (ch | 0) {
  30658. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  30659. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  30660. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  30661. return this.getNumber();
  30662. case 0x28: // '('
  30663. return this.getString();
  30664. case 0x2F: // '/'
  30665. return this.getName();
  30666. // array punctuation
  30667. case 0x5B: // '['
  30668. this.nextChar();
  30669. return Cmd.get('[');
  30670. case 0x5D: // ']'
  30671. this.nextChar();
  30672. return Cmd.get(']');
  30673. // hex string or dict punctuation
  30674. case 0x3C: // '<'
  30675. ch = this.nextChar();
  30676. if (ch === 0x3C) {
  30677. // dict punctuation
  30678. this.nextChar();
  30679. return Cmd.get('<<');
  30680. }
  30681. return this.getHexString();
  30682. // dict punctuation
  30683. case 0x3E: // '>'
  30684. ch = this.nextChar();
  30685. if (ch === 0x3E) {
  30686. this.nextChar();
  30687. return Cmd.get('>>');
  30688. }
  30689. return Cmd.get('>');
  30690. case 0x7B: // '{'
  30691. this.nextChar();
  30692. return Cmd.get('{');
  30693. case 0x7D: // '}'
  30694. this.nextChar();
  30695. return Cmd.get('}');
  30696. case 0x29: // ')'
  30697. error('Illegal character: ' + ch);
  30698. break;
  30699. }
  30700. // command
  30701. var str = String.fromCharCode(ch);
  30702. var knownCommands = this.knownCommands;
  30703. var knownCommandFound = knownCommands && (str in knownCommands);
  30704. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  30705. // stop if known command is found and next character does not make
  30706. // the str a command
  30707. var possibleCommand = str + String.fromCharCode(ch);
  30708. if (knownCommandFound && !(possibleCommand in knownCommands)) {
  30709. break;
  30710. }
  30711. if (str.length == 128)
  30712. error('Command token too long: ' + str.length);
  30713. str = possibleCommand;
  30714. knownCommandFound = knownCommands && (str in knownCommands);
  30715. }
  30716. if (str == 'true')
  30717. return true;
  30718. if (str == 'false')
  30719. return false;
  30720. if (str == 'null')
  30721. return null;
  30722. return Cmd.get(str);
  30723. },
  30724. skipToNextLine: function Lexer_skipToNextLine() {
  30725. var stream = this.stream;
  30726. var ch = this.currentChar;
  30727. while (ch >= 0) {
  30728. if (ch === 0x0D) { // CR
  30729. ch = this.nextChar();
  30730. if (ch === 0x0A) { // LF
  30731. this.nextChar();
  30732. }
  30733. break;
  30734. } else if (ch === 0x0A) { // LF
  30735. this.nextChar();
  30736. break;
  30737. }
  30738. ch = this.nextChar();
  30739. }
  30740. }
  30741. };
  30742. return Lexer;
  30743. })();
  30744. var Linearization = (function LinearizationClosure() {
  30745. function Linearization(stream) {
  30746. this.parser = new Parser(new Lexer(stream), false, null);
  30747. var obj1 = this.parser.getObj();
  30748. var obj2 = this.parser.getObj();
  30749. var obj3 = this.parser.getObj();
  30750. this.linDict = this.parser.getObj();
  30751. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  30752. isDict(this.linDict)) {
  30753. var obj = this.linDict.get('Linearized');
  30754. if (!(isNum(obj) && obj > 0))
  30755. this.linDict = null;
  30756. }
  30757. }
  30758. Linearization.prototype = {
  30759. getInt: function Linearization_getInt(name) {
  30760. var linDict = this.linDict;
  30761. var obj;
  30762. if (isDict(linDict) &&
  30763. isInt(obj = linDict.get(name)) &&
  30764. obj > 0) {
  30765. return obj;
  30766. }
  30767. error('"' + name + '" field in linearization table is invalid');
  30768. },
  30769. getHint: function Linearization_getHint(index) {
  30770. var linDict = this.linDict;
  30771. var obj1, obj2;
  30772. if (isDict(linDict) &&
  30773. isArray(obj1 = linDict.get('H')) &&
  30774. obj1.length >= 2 &&
  30775. isInt(obj2 = obj1[index]) &&
  30776. obj2 > 0) {
  30777. return obj2;
  30778. }
  30779. error('Hints table in linearization table is invalid: ' + index);
  30780. },
  30781. get length() {
  30782. if (!isDict(this.linDict))
  30783. return 0;
  30784. return this.getInt('L');
  30785. },
  30786. get hintsOffset() {
  30787. return this.getHint(0);
  30788. },
  30789. get hintsLength() {
  30790. return this.getHint(1);
  30791. },
  30792. get hintsOffset2() {
  30793. return this.getHint(2);
  30794. },
  30795. get hintsLenth2() {
  30796. return this.getHint(3);
  30797. },
  30798. get objectNumberFirst() {
  30799. return this.getInt('O');
  30800. },
  30801. get endFirst() {
  30802. return this.getInt('E');
  30803. },
  30804. get numPages() {
  30805. return this.getInt('N');
  30806. },
  30807. get mainXRefEntriesOffset() {
  30808. return this.getInt('T');
  30809. },
  30810. get pageFirst() {
  30811. return this.getInt('P');
  30812. }
  30813. };
  30814. return Linearization;
  30815. })();
  30816. var Stream = (function StreamClosure() {
  30817. function Stream(arrayBuffer, start, length, dict) {
  30818. this.bytes = arrayBuffer instanceof Uint8Array ? arrayBuffer :
  30819. new Uint8Array(arrayBuffer);
  30820. this.start = start || 0;
  30821. this.pos = this.start;
  30822. this.end = (start + length) || this.bytes.length;
  30823. this.dict = dict;
  30824. }
  30825. // required methods for a stream. if a particular stream does not
  30826. // implement these, an error should be thrown
  30827. Stream.prototype = {
  30828. get length() {
  30829. return this.end - this.start;
  30830. },
  30831. getByte: function Stream_getByte() {
  30832. if (this.pos >= this.end)
  30833. return -1;
  30834. return this.bytes[this.pos++];
  30835. },
  30836. // returns subarray of original buffer
  30837. // should only be read
  30838. getBytes: function Stream_getBytes(length) {
  30839. var bytes = this.bytes;
  30840. var pos = this.pos;
  30841. var strEnd = this.end;
  30842. if (!length)
  30843. return bytes.subarray(pos, strEnd);
  30844. var end = pos + length;
  30845. if (end > strEnd)
  30846. end = strEnd;
  30847. this.pos = end;
  30848. return bytes.subarray(pos, end);
  30849. },
  30850. peekBytes: function Stream_peekBytes(length) {
  30851. var bytes = this.getBytes(length);
  30852. this.pos -= bytes.length;
  30853. return bytes;
  30854. },
  30855. skip: function Stream_skip(n) {
  30856. if (!n)
  30857. n = 1;
  30858. this.pos += n;
  30859. },
  30860. reset: function Stream_reset() {
  30861. this.pos = this.start;
  30862. },
  30863. moveStart: function Stream_moveStart() {
  30864. this.start = this.pos;
  30865. },
  30866. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  30867. return new Stream(this.bytes.buffer, start, length, dict);
  30868. },
  30869. isStream: true
  30870. };
  30871. return Stream;
  30872. })();
  30873. var StringStream = (function StringStreamClosure() {
  30874. function StringStream(str) {
  30875. var length = str.length;
  30876. var bytes = new Uint8Array(length);
  30877. for (var n = 0; n < length; ++n)
  30878. bytes[n] = str.charCodeAt(n);
  30879. Stream.call(this, bytes);
  30880. }
  30881. StringStream.prototype = Stream.prototype;
  30882. return StringStream;
  30883. })();
  30884. // super class for the decoding streams
  30885. var DecodeStream = (function DecodeStreamClosure() {
  30886. function DecodeStream() {
  30887. this.pos = 0;
  30888. this.bufferLength = 0;
  30889. this.eof = false;
  30890. this.buffer = null;
  30891. }
  30892. DecodeStream.prototype = {
  30893. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  30894. var buffer = this.buffer;
  30895. var current = buffer ? buffer.byteLength : 0;
  30896. if (requested < current)
  30897. return buffer;
  30898. var size = 512;
  30899. while (size < requested)
  30900. size <<= 1;
  30901. var buffer2 = new Uint8Array(size);
  30902. for (var i = 0; i < current; ++i)
  30903. buffer2[i] = buffer[i];
  30904. return (this.buffer = buffer2);
  30905. },
  30906. getByte: function DecodeStream_getByte() {
  30907. var pos = this.pos;
  30908. while (this.bufferLength <= pos) {
  30909. if (this.eof)
  30910. return -1;
  30911. this.readBlock();
  30912. }
  30913. return this.buffer[this.pos++];
  30914. },
  30915. getBytes: function DecodeStream_getBytes(length) {
  30916. var end, pos = this.pos;
  30917. if (length) {
  30918. this.ensureBuffer(pos + length);
  30919. end = pos + length;
  30920. while (!this.eof && this.bufferLength < end)
  30921. this.readBlock();
  30922. var bufEnd = this.bufferLength;
  30923. if (end > bufEnd)
  30924. end = bufEnd;
  30925. } else {
  30926. while (!this.eof)
  30927. this.readBlock();
  30928. end = this.bufferLength;
  30929. // checking if bufferLength is still 0 then
  30930. // the buffer has to be initialized
  30931. if (!end)
  30932. this.buffer = new Uint8Array(0);
  30933. }
  30934. this.pos = end;
  30935. return this.buffer.subarray(pos, end);
  30936. },
  30937. peekBytes: function DecodeStream_peekBytes(length) {
  30938. var bytes = this.getBytes(length);
  30939. this.pos -= bytes.length;
  30940. return bytes;
  30941. },
  30942. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  30943. var end = start + length;
  30944. while (this.bufferLength <= end && !this.eof)
  30945. this.readBlock();
  30946. return new Stream(this.buffer, start, length, dict);
  30947. },
  30948. skip: function Stream_skip(n) {
  30949. if (!n)
  30950. n = 1;
  30951. this.pos += n;
  30952. },
  30953. reset: function DecodeStream_reset() {
  30954. this.pos = 0;
  30955. },
  30956. getBaseStreams: function DecodeStream_getBaseStreams() {
  30957. if (this.str && this.str.getBaseStreams) {
  30958. return this.str.getBaseStreams();
  30959. }
  30960. return [];
  30961. }
  30962. };
  30963. return DecodeStream;
  30964. })();
  30965. var FakeStream = (function FakeStreamClosure() {
  30966. function FakeStream(stream) {
  30967. this.dict = stream.dict;
  30968. DecodeStream.call(this);
  30969. }
  30970. FakeStream.prototype = Object.create(DecodeStream.prototype);
  30971. FakeStream.prototype.readBlock = function FakeStream_readBlock() {
  30972. var bufferLength = this.bufferLength;
  30973. bufferLength += 1024;
  30974. var buffer = this.ensureBuffer(bufferLength);
  30975. this.bufferLength = bufferLength;
  30976. };
  30977. FakeStream.prototype.getBytes = function FakeStream_getBytes(length) {
  30978. var end, pos = this.pos;
  30979. if (length) {
  30980. this.ensureBuffer(pos + length);
  30981. end = pos + length;
  30982. while (!this.eof && this.bufferLength < end)
  30983. this.readBlock();
  30984. var bufEnd = this.bufferLength;
  30985. if (end > bufEnd)
  30986. end = bufEnd;
  30987. } else {
  30988. this.eof = true;
  30989. end = this.bufferLength;
  30990. }
  30991. this.pos = end;
  30992. return this.buffer.subarray(pos, end);
  30993. };
  30994. return FakeStream;
  30995. })();
  30996. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  30997. function StreamsSequenceStream(streams) {
  30998. this.streams = streams;
  30999. DecodeStream.call(this);
  31000. }
  31001. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  31002. StreamsSequenceStream.prototype.readBlock =
  31003. function streamSequenceStreamReadBlock() {
  31004. var streams = this.streams;
  31005. if (streams.length === 0) {
  31006. this.eof = true;
  31007. return;
  31008. }
  31009. var stream = streams.shift();
  31010. var chunk = stream.getBytes();
  31011. var bufferLength = this.bufferLength;
  31012. var newLength = bufferLength + chunk.length;
  31013. var buffer = this.ensureBuffer(newLength);
  31014. buffer.set(chunk, bufferLength);
  31015. this.bufferLength = newLength;
  31016. };
  31017. StreamsSequenceStream.prototype.getBaseStreams =
  31018. function StreamsSequenceStream_getBaseStreams() {
  31019. var baseStreams = [];
  31020. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  31021. var stream = this.streams[i];
  31022. if (stream.getBaseStreams) {
  31023. Util.concatenateToArray(baseStreams, stream.getBaseStreams());
  31024. }
  31025. }
  31026. return baseStreams;
  31027. };
  31028. return StreamsSequenceStream;
  31029. })();
  31030. var FlateStream = (function FlateStreamClosure() {
  31031. var codeLenCodeMap = new Uint32Array([
  31032. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  31033. ]);
  31034. var lengthDecode = new Uint32Array([
  31035. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  31036. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  31037. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  31038. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  31039. ]);
  31040. var distDecode = new Uint32Array([
  31041. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  31042. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  31043. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  31044. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  31045. ]);
  31046. var fixedLitCodeTab = [new Uint32Array([
  31047. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  31048. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  31049. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  31050. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  31051. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  31052. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  31053. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  31054. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  31055. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  31056. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  31057. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  31058. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  31059. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  31060. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  31061. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  31062. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  31063. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  31064. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  31065. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  31066. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  31067. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  31068. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  31069. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  31070. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  31071. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  31072. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  31073. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  31074. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  31075. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  31076. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  31077. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  31078. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  31079. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  31080. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  31081. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  31082. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  31083. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  31084. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  31085. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  31086. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  31087. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  31088. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  31089. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  31090. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  31091. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  31092. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  31093. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  31094. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  31095. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  31096. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  31097. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  31098. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  31099. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  31100. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  31101. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  31102. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  31103. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  31104. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  31105. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  31106. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  31107. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  31108. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  31109. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  31110. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  31111. ]), 9];
  31112. var fixedDistCodeTab = [new Uint32Array([
  31113. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  31114. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  31115. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  31116. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  31117. ]), 5];
  31118. function FlateStream(stream) {
  31119. var bytes = stream.getBytes();
  31120. var bytesPos = 0;
  31121. this.dict = stream.dict;
  31122. var cmf = bytes[bytesPos++];
  31123. var flg = bytes[bytesPos++];
  31124. if (cmf == -1 || flg == -1)
  31125. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  31126. if ((cmf & 0x0f) != 0x08)
  31127. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  31128. if ((((cmf << 8) + flg) % 31) !== 0)
  31129. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  31130. if (flg & 0x20)
  31131. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  31132. this.bytes = bytes;
  31133. this.bytesPos = bytesPos;
  31134. this.codeSize = 0;
  31135. this.codeBuf = 0;
  31136. DecodeStream.call(this);
  31137. }
  31138. FlateStream.prototype = Object.create(DecodeStream.prototype);
  31139. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  31140. var codeSize = this.codeSize;
  31141. var codeBuf = this.codeBuf;
  31142. var bytes = this.bytes;
  31143. var bytesPos = this.bytesPos;
  31144. var b;
  31145. while (codeSize < bits) {
  31146. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31147. error('Bad encoding in flate stream');
  31148. codeBuf |= b << codeSize;
  31149. codeSize += 8;
  31150. }
  31151. b = codeBuf & ((1 << bits) - 1);
  31152. this.codeBuf = codeBuf >> bits;
  31153. this.codeSize = codeSize -= bits;
  31154. this.bytesPos = bytesPos;
  31155. return b;
  31156. };
  31157. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  31158. var codes = table[0];
  31159. var maxLen = table[1];
  31160. var codeSize = this.codeSize;
  31161. var codeBuf = this.codeBuf;
  31162. var bytes = this.bytes;
  31163. var bytesPos = this.bytesPos;
  31164. while (codeSize < maxLen) {
  31165. var b;
  31166. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31167. error('Bad encoding in flate stream');
  31168. codeBuf |= (b << codeSize);
  31169. codeSize += 8;
  31170. }
  31171. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  31172. var codeLen = code >> 16;
  31173. var codeVal = code & 0xffff;
  31174. if (codeSize === 0 || codeSize < codeLen || codeLen === 0)
  31175. error('Bad encoding in flate stream');
  31176. this.codeBuf = (codeBuf >> codeLen);
  31177. this.codeSize = (codeSize - codeLen);
  31178. this.bytesPos = bytesPos;
  31179. return codeVal;
  31180. };
  31181. FlateStream.prototype.generateHuffmanTable =
  31182. function flateStreamGenerateHuffmanTable(lengths) {
  31183. var n = lengths.length;
  31184. // find max code length
  31185. var maxLen = 0;
  31186. for (var i = 0; i < n; ++i) {
  31187. if (lengths[i] > maxLen)
  31188. maxLen = lengths[i];
  31189. }
  31190. // build the table
  31191. var size = 1 << maxLen;
  31192. var codes = new Uint32Array(size);
  31193. for (var len = 1, code = 0, skip = 2;
  31194. len <= maxLen;
  31195. ++len, code <<= 1, skip <<= 1) {
  31196. for (var val = 0; val < n; ++val) {
  31197. if (lengths[val] == len) {
  31198. // bit-reverse the code
  31199. var code2 = 0;
  31200. var t = code;
  31201. for (var i = 0; i < len; ++i) {
  31202. code2 = (code2 << 1) | (t & 1);
  31203. t >>= 1;
  31204. }
  31205. // fill the table entries
  31206. for (var i = code2; i < size; i += skip)
  31207. codes[i] = (len << 16) | val;
  31208. ++code;
  31209. }
  31210. }
  31211. }
  31212. return [codes, maxLen];
  31213. };
  31214. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  31215. // read block header
  31216. var hdr = this.getBits(3);
  31217. if (hdr & 1)
  31218. this.eof = true;
  31219. hdr >>= 1;
  31220. if (hdr === 0) { // uncompressed block
  31221. var bytes = this.bytes;
  31222. var bytesPos = this.bytesPos;
  31223. var b;
  31224. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31225. error('Bad block header in flate stream');
  31226. var blockLen = b;
  31227. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31228. error('Bad block header in flate stream');
  31229. blockLen |= (b << 8);
  31230. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31231. error('Bad block header in flate stream');
  31232. var check = b;
  31233. if (typeof (b = bytes[bytesPos++]) == 'undefined')
  31234. error('Bad block header in flate stream');
  31235. check |= (b << 8);
  31236. if (check != (~blockLen & 0xffff) &&
  31237. (blockLen !== 0 || check !== 0)) {
  31238. // Ignoring error for bad "empty" block (see issue 1277)
  31239. error('Bad uncompressed block length in flate stream');
  31240. }
  31241. this.codeBuf = 0;
  31242. this.codeSize = 0;
  31243. var bufferLength = this.bufferLength;
  31244. var buffer = this.ensureBuffer(bufferLength + blockLen);
  31245. var end = bufferLength + blockLen;
  31246. this.bufferLength = end;
  31247. if (blockLen === 0) {
  31248. if (typeof bytes[bytesPos] == 'undefined') {
  31249. this.eof = true;
  31250. }
  31251. } else {
  31252. for (var n = bufferLength; n < end; ++n) {
  31253. if (typeof (b = bytes[bytesPos++]) == 'undefined') {
  31254. this.eof = true;
  31255. break;
  31256. }
  31257. buffer[n] = b;
  31258. }
  31259. }
  31260. this.bytesPos = bytesPos;
  31261. return;
  31262. }
  31263. var litCodeTable;
  31264. var distCodeTable;
  31265. if (hdr == 1) { // compressed block, fixed codes
  31266. litCodeTable = fixedLitCodeTab;
  31267. distCodeTable = fixedDistCodeTab;
  31268. } else if (hdr == 2) { // compressed block, dynamic codes
  31269. var numLitCodes = this.getBits(5) + 257;
  31270. var numDistCodes = this.getBits(5) + 1;
  31271. var numCodeLenCodes = this.getBits(4) + 4;
  31272. // build the code lengths code table
  31273. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  31274. for (var i = 0; i < numCodeLenCodes; ++i)
  31275. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  31276. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  31277. // build the literal and distance code tables
  31278. var len = 0;
  31279. var i = 0;
  31280. var codes = numLitCodes + numDistCodes;
  31281. var codeLengths = new Uint8Array(codes);
  31282. while (i < codes) {
  31283. var code = this.getCode(codeLenCodeTab);
  31284. if (code == 16) {
  31285. var bitsLength = 2, bitsOffset = 3, what = len;
  31286. } else if (code == 17) {
  31287. var bitsLength = 3, bitsOffset = 3, what = (len = 0);
  31288. } else if (code == 18) {
  31289. var bitsLength = 7, bitsOffset = 11, what = (len = 0);
  31290. } else {
  31291. codeLengths[i++] = len = code;
  31292. continue;
  31293. }
  31294. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  31295. while (repeatLength-- > 0)
  31296. codeLengths[i++] = what;
  31297. }
  31298. litCodeTable =
  31299. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  31300. distCodeTable =
  31301. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  31302. } else {
  31303. error('Unknown block type in flate stream');
  31304. }
  31305. var buffer = this.buffer;
  31306. var limit = buffer ? buffer.length : 0;
  31307. var pos = this.bufferLength;
  31308. while (true) {
  31309. var code1 = this.getCode(litCodeTable);
  31310. if (code1 < 256) {
  31311. if (pos + 1 >= limit) {
  31312. buffer = this.ensureBuffer(pos + 1);
  31313. limit = buffer.length;
  31314. }
  31315. buffer[pos++] = code1;
  31316. continue;
  31317. }
  31318. if (code1 == 256) {
  31319. this.bufferLength = pos;
  31320. return;
  31321. }
  31322. code1 -= 257;
  31323. code1 = lengthDecode[code1];
  31324. var code2 = code1 >> 16;
  31325. if (code2 > 0)
  31326. code2 = this.getBits(code2);
  31327. var len = (code1 & 0xffff) + code2;
  31328. code1 = this.getCode(distCodeTable);
  31329. code1 = distDecode[code1];
  31330. code2 = code1 >> 16;
  31331. if (code2 > 0)
  31332. code2 = this.getBits(code2);
  31333. var dist = (code1 & 0xffff) + code2;
  31334. if (pos + len >= limit) {
  31335. buffer = this.ensureBuffer(pos + len);
  31336. limit = buffer.length;
  31337. }
  31338. for (var k = 0; k < len; ++k, ++pos)
  31339. buffer[pos] = buffer[pos - dist];
  31340. }
  31341. };
  31342. return FlateStream;
  31343. })();
  31344. var PredictorStream = (function PredictorStreamClosure() {
  31345. function PredictorStream(str, params) {
  31346. var predictor = this.predictor = params.get('Predictor') || 1;
  31347. if (predictor <= 1)
  31348. return str; // no prediction
  31349. if (predictor !== 2 && (predictor < 10 || predictor > 15))
  31350. error('Unsupported predictor: ' + predictor);
  31351. if (predictor === 2)
  31352. this.readBlock = this.readBlockTiff;
  31353. else
  31354. this.readBlock = this.readBlockPng;
  31355. this.str = str;
  31356. this.dict = str.dict;
  31357. var colors = this.colors = params.get('Colors') || 1;
  31358. var bits = this.bits = params.get('BitsPerComponent') || 8;
  31359. var columns = this.columns = params.get('Columns') || 1;
  31360. this.pixBytes = (colors * bits + 7) >> 3;
  31361. this.rowBytes = (columns * colors * bits + 7) >> 3;
  31362. DecodeStream.call(this);
  31363. return this;
  31364. }
  31365. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  31366. PredictorStream.prototype.readBlockTiff =
  31367. function predictorStreamReadBlockTiff() {
  31368. var rowBytes = this.rowBytes;
  31369. var bufferLength = this.bufferLength;
  31370. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  31371. var bits = this.bits;
  31372. var colors = this.colors;
  31373. var rawBytes = this.str.getBytes(rowBytes);
  31374. this.eof = !rawBytes.length;
  31375. if (this.eof) {
  31376. return;
  31377. }
  31378. var inbuf = 0, outbuf = 0;
  31379. var inbits = 0, outbits = 0;
  31380. var pos = bufferLength;
  31381. if (bits === 1) {
  31382. for (var i = 0; i < rowBytes; ++i) {
  31383. var c = rawBytes[i];
  31384. inbuf = (inbuf << 8) | c;
  31385. // bitwise addition is exclusive or
  31386. // first shift inbuf and then add
  31387. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  31388. // truncate inbuf (assumes colors < 16)
  31389. inbuf &= 0xFFFF;
  31390. }
  31391. } else if (bits === 8) {
  31392. for (var i = 0; i < colors; ++i)
  31393. buffer[pos++] = rawBytes[i];
  31394. for (; i < rowBytes; ++i) {
  31395. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  31396. pos++;
  31397. }
  31398. } else {
  31399. var compArray = new Uint8Array(colors + 1);
  31400. var bitMask = (1 << bits) - 1;
  31401. var j = 0, k = bufferLength;
  31402. var columns = this.columns;
  31403. for (var i = 0; i < columns; ++i) {
  31404. for (var kk = 0; kk < colors; ++kk) {
  31405. if (inbits < bits) {
  31406. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  31407. inbits += 8;
  31408. }
  31409. compArray[kk] = (compArray[kk] +
  31410. (inbuf >> (inbits - bits))) & bitMask;
  31411. inbits -= bits;
  31412. outbuf = (outbuf << bits) | compArray[kk];
  31413. outbits += bits;
  31414. if (outbits >= 8) {
  31415. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  31416. outbits -= 8;
  31417. }
  31418. }
  31419. }
  31420. if (outbits > 0) {
  31421. buffer[k++] = (outbuf << (8 - outbits)) +
  31422. (inbuf & ((1 << (8 - outbits)) - 1));
  31423. }
  31424. }
  31425. this.bufferLength += rowBytes;
  31426. };
  31427. PredictorStream.prototype.readBlockPng =
  31428. function predictorStreamReadBlockPng() {
  31429. var rowBytes = this.rowBytes;
  31430. var pixBytes = this.pixBytes;
  31431. var predictor = this.str.getByte();
  31432. var rawBytes = this.str.getBytes(rowBytes);
  31433. this.eof = !rawBytes.length;
  31434. if (this.eof) {
  31435. return;
  31436. }
  31437. var bufferLength = this.bufferLength;
  31438. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  31439. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  31440. if (prevRow.length === 0)
  31441. prevRow = new Uint8Array(rowBytes);
  31442. var j = bufferLength;
  31443. switch (predictor) {
  31444. case 0:
  31445. for (var i = 0; i < rowBytes; ++i)
  31446. buffer[j++] = rawBytes[i];
  31447. break;
  31448. case 1:
  31449. for (var i = 0; i < pixBytes; ++i)
  31450. buffer[j++] = rawBytes[i];
  31451. for (; i < rowBytes; ++i) {
  31452. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  31453. j++;
  31454. }
  31455. break;
  31456. case 2:
  31457. for (var i = 0; i < rowBytes; ++i)
  31458. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  31459. break;
  31460. case 3:
  31461. for (var i = 0; i < pixBytes; ++i)
  31462. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  31463. for (; i < rowBytes; ++i) {
  31464. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  31465. rawBytes[i]) & 0xFF;
  31466. j++;
  31467. }
  31468. break;
  31469. case 4:
  31470. // we need to save the up left pixels values. the simplest way
  31471. // is to create a new buffer
  31472. for (var i = 0; i < pixBytes; ++i) {
  31473. var up = prevRow[i];
  31474. var c = rawBytes[i];
  31475. buffer[j++] = up + c;
  31476. }
  31477. for (; i < rowBytes; ++i) {
  31478. var up = prevRow[i];
  31479. var upLeft = prevRow[i - pixBytes];
  31480. var left = buffer[j - pixBytes];
  31481. var p = left + up - upLeft;
  31482. var pa = p - left;
  31483. if (pa < 0)
  31484. pa = -pa;
  31485. var pb = p - up;
  31486. if (pb < 0)
  31487. pb = -pb;
  31488. var pc = p - upLeft;
  31489. if (pc < 0)
  31490. pc = -pc;
  31491. var c = rawBytes[i];
  31492. if (pa <= pb && pa <= pc)
  31493. buffer[j++] = left + c;
  31494. else if (pb <= pc)
  31495. buffer[j++] = up + c;
  31496. else
  31497. buffer[j++] = upLeft + c;
  31498. }
  31499. break;
  31500. default:
  31501. error('Unsupported predictor: ' + predictor);
  31502. }
  31503. this.bufferLength += rowBytes;
  31504. };
  31505. return PredictorStream;
  31506. })();
  31507. /**
  31508. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  31509. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  31510. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  31511. * a library to decode these images and the stream behaves like all the other
  31512. * DecodeStreams.
  31513. */
  31514. var JpegStream = (function JpegStreamClosure() {
  31515. function JpegStream(bytes, dict, xref) {
  31516. // TODO: per poppler, some images may have 'junk' before that
  31517. // need to be removed
  31518. this.dict = dict;
  31519. this.bytes = bytes;
  31520. DecodeStream.call(this);
  31521. }
  31522. JpegStream.prototype = Object.create(DecodeStream.prototype);
  31523. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  31524. if (this.bufferLength)
  31525. return;
  31526. try {
  31527. var jpegImage = new JpegImage();
  31528. if (this.colorTransform != -1)
  31529. jpegImage.colorTransform = this.colorTransform;
  31530. jpegImage.parse(this.bytes);
  31531. var width = jpegImage.width;
  31532. var height = jpegImage.height;
  31533. var data = jpegImage.getData(width, height);
  31534. this.buffer = data;
  31535. this.bufferLength = data.length;
  31536. this.eof = true;
  31537. } catch (e) {
  31538. error('JPEG error: ' + e);
  31539. }
  31540. };
  31541. JpegStream.prototype.getIR = function JpegStream_getIR() {
  31542. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  31543. };
  31544. /**
  31545. * Checks if the image can be decoded and displayed by the browser without any
  31546. * further processing such as color space conversions.
  31547. */
  31548. JpegStream.prototype.isNativelySupported =
  31549. function JpegStream_isNativelySupported(xref, res) {
  31550. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  31551. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  31552. };
  31553. /**
  31554. * Checks if the image can be decoded by the browser.
  31555. */
  31556. JpegStream.prototype.isNativelyDecodable =
  31557. function JpegStream_isNativelyDecodable(xref, res) {
  31558. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  31559. var numComps = cs.numComps;
  31560. return numComps == 1 || numComps == 3;
  31561. };
  31562. return JpegStream;
  31563. })();
  31564. /**
  31565. * For JPEG 2000's we use a library to decode these images and
  31566. * the stream behaves like all the other DecodeStreams.
  31567. */
  31568. var JpxStream = (function JpxStreamClosure() {
  31569. function JpxStream(bytes, dict) {
  31570. this.dict = dict;
  31571. this.bytes = bytes;
  31572. DecodeStream.call(this);
  31573. }
  31574. JpxStream.prototype = Object.create(DecodeStream.prototype);
  31575. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  31576. if (this.bufferLength)
  31577. return;
  31578. var jpxImage = new JpxImage();
  31579. jpxImage.parse(this.bytes);
  31580. var width = jpxImage.width;
  31581. var height = jpxImage.height;
  31582. var componentsCount = jpxImage.componentsCount;
  31583. if (componentsCount != 1 && componentsCount != 3 && componentsCount != 4)
  31584. error('JPX with ' + componentsCount + ' components is not supported');
  31585. var data = new Uint8Array(width * height * componentsCount);
  31586. for (var k = 0, kk = jpxImage.tiles.length; k < kk; k++) {
  31587. var tileCompoments = jpxImage.tiles[k];
  31588. var tileWidth = tileCompoments[0].width;
  31589. var tileHeight = tileCompoments[0].height;
  31590. var tileLeft = tileCompoments[0].left;
  31591. var tileTop = tileCompoments[0].top;
  31592. var dataPosition, sourcePosition, data0, data1, data2, data3, rowFeed;
  31593. switch (componentsCount) {
  31594. case 1:
  31595. data0 = tileCompoments[0].items;
  31596. dataPosition = width * tileTop + tileLeft;
  31597. rowFeed = width - tileWidth;
  31598. sourcePosition = 0;
  31599. for (var j = 0; j < tileHeight; j++) {
  31600. for (var i = 0; i < tileWidth; i++)
  31601. data[dataPosition++] = data0[sourcePosition++];
  31602. dataPosition += rowFeed;
  31603. }
  31604. break;
  31605. case 3:
  31606. data0 = tileCompoments[0].items;
  31607. data1 = tileCompoments[1].items;
  31608. data2 = tileCompoments[2].items;
  31609. dataPosition = (width * tileTop + tileLeft) * 3;
  31610. rowFeed = (width - tileWidth) * 3;
  31611. sourcePosition = 0;
  31612. for (var j = 0; j < tileHeight; j++) {
  31613. for (var i = 0; i < tileWidth; i++) {
  31614. data[dataPosition++] = data0[sourcePosition];
  31615. data[dataPosition++] = data1[sourcePosition];
  31616. data[dataPosition++] = data2[sourcePosition];
  31617. sourcePosition++;
  31618. }
  31619. dataPosition += rowFeed;
  31620. }
  31621. break;
  31622. case 4:
  31623. data0 = tileCompoments[0].items;
  31624. data1 = tileCompoments[1].items;
  31625. data2 = tileCompoments[2].items;
  31626. data3 = tileCompoments[3].items;
  31627. dataPosition = (width * tileTop + tileLeft) * 4;
  31628. rowFeed = (width - tileWidth) * 4;
  31629. sourcePosition = 0;
  31630. for (var j = 0; j < tileHeight; j++) {
  31631. for (var i = 0; i < tileWidth; i++) {
  31632. data[dataPosition++] = data0[sourcePosition];
  31633. data[dataPosition++] = data1[sourcePosition];
  31634. data[dataPosition++] = data2[sourcePosition];
  31635. data[dataPosition++] = data3[sourcePosition];
  31636. sourcePosition++;
  31637. }
  31638. dataPosition += rowFeed;
  31639. }
  31640. break;
  31641. }
  31642. }
  31643. this.buffer = data;
  31644. this.bufferLength = data.length;
  31645. this.eof = true;
  31646. };
  31647. return JpxStream;
  31648. })();
  31649. /**
  31650. * For JBIG2's we use a library to decode these images and
  31651. * the stream behaves like all the other DecodeStreams.
  31652. */
  31653. var Jbig2Stream = (function Jbig2StreamClosure() {
  31654. function Jbig2Stream(bytes, dict) {
  31655. this.dict = dict;
  31656. this.bytes = bytes;
  31657. DecodeStream.call(this);
  31658. }
  31659. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  31660. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  31661. if (this.bufferLength)
  31662. return;
  31663. var jbig2Image = new Jbig2Image();
  31664. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  31665. // According to the PDF specification, DecodeParms can be either
  31666. // a dictionary, or an array whose elements are dictionaries.
  31667. if (isArray(decodeParams)) {
  31668. if (decodeParams.length > 1) {
  31669. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  31670. 'not supported.');
  31671. }
  31672. decodeParams = decodeParams[0];
  31673. }
  31674. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  31675. var globalsStream = decodeParams.get('JBIG2Globals');
  31676. var globals = globalsStream.getBytes();
  31677. chunks.push({data: globals, start: 0, end: globals.length});
  31678. }
  31679. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  31680. var data = jbig2Image.parseChunks(chunks);
  31681. var dataLength = data.length;
  31682. // JBIG2 had black as 1 and white as 0, inverting the colors
  31683. for (var i = 0; i < dataLength; i++)
  31684. data[i] ^= 0xFF;
  31685. this.buffer = data;
  31686. this.bufferLength = dataLength;
  31687. this.eof = true;
  31688. };
  31689. return Jbig2Stream;
  31690. })();
  31691. var DecryptStream = (function DecryptStreamClosure() {
  31692. function DecryptStream(str, decrypt) {
  31693. this.str = str;
  31694. this.dict = str.dict;
  31695. this.decrypt = decrypt;
  31696. this.nextChunk = null;
  31697. this.initialized = false;
  31698. DecodeStream.call(this);
  31699. }
  31700. var chunkSize = 512;
  31701. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  31702. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  31703. var chunk;
  31704. if (this.initialized) {
  31705. chunk = this.nextChunk;
  31706. } else {
  31707. chunk = this.str.getBytes(chunkSize);
  31708. this.initialized = true;
  31709. }
  31710. if (!chunk || chunk.length === 0) {
  31711. this.eof = true;
  31712. return;
  31713. }
  31714. this.nextChunk = this.str.getBytes(chunkSize);
  31715. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  31716. var decrypt = this.decrypt;
  31717. chunk = decrypt(chunk, !hasMoreData);
  31718. var bufferLength = this.bufferLength;
  31719. var i, n = chunk.length;
  31720. var buffer = this.ensureBuffer(bufferLength + n);
  31721. for (i = 0; i < n; i++)
  31722. buffer[bufferLength++] = chunk[i];
  31723. this.bufferLength = bufferLength;
  31724. };
  31725. return DecryptStream;
  31726. })();
  31727. var Ascii85Stream = (function Ascii85StreamClosure() {
  31728. function Ascii85Stream(str) {
  31729. this.str = str;
  31730. this.dict = str.dict;
  31731. this.input = new Uint8Array(5);
  31732. DecodeStream.call(this);
  31733. }
  31734. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  31735. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  31736. var TILDA_CHAR = 0x7E; // '~'
  31737. var Z_LOWER_CHAR = 0x7A; // 'z'
  31738. var EOF = -1;
  31739. var str = this.str;
  31740. var c = str.getByte();
  31741. while (Lexer.isSpace(c)) {
  31742. c = str.getByte();
  31743. }
  31744. if (c === EOF || c === TILDA_CHAR) {
  31745. this.eof = true;
  31746. return;
  31747. }
  31748. var bufferLength = this.bufferLength, buffer;
  31749. // special code for z
  31750. if (c == Z_LOWER_CHAR) {
  31751. buffer = this.ensureBuffer(bufferLength + 4);
  31752. for (var i = 0; i < 4; ++i)
  31753. buffer[bufferLength + i] = 0;
  31754. this.bufferLength += 4;
  31755. } else {
  31756. var input = this.input;
  31757. input[0] = c;
  31758. for (var i = 1; i < 5; ++i) {
  31759. c = str.getByte();
  31760. while (Lexer.isSpace(c)) {
  31761. c = str.getByte();
  31762. }
  31763. input[i] = c;
  31764. if (c === EOF || c == TILDA_CHAR)
  31765. break;
  31766. }
  31767. buffer = this.ensureBuffer(bufferLength + i - 1);
  31768. this.bufferLength += i - 1;
  31769. // partial ending;
  31770. if (i < 5) {
  31771. for (; i < 5; ++i)
  31772. input[i] = 0x21 + 84;
  31773. this.eof = true;
  31774. }
  31775. var t = 0;
  31776. for (var i = 0; i < 5; ++i)
  31777. t = t * 85 + (input[i] - 0x21);
  31778. for (var i = 3; i >= 0; --i) {
  31779. buffer[bufferLength + i] = t & 0xFF;
  31780. t >>= 8;
  31781. }
  31782. }
  31783. };
  31784. return Ascii85Stream;
  31785. })();
  31786. var AsciiHexStream = (function AsciiHexStreamClosure() {
  31787. function AsciiHexStream(str) {
  31788. this.str = str;
  31789. this.dict = str.dict;
  31790. this.firstDigit = -1;
  31791. DecodeStream.call(this);
  31792. }
  31793. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  31794. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  31795. var UPSTREAM_BLOCK_SIZE = 8000;
  31796. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  31797. if (!bytes.length) {
  31798. this.eof = true;
  31799. return;
  31800. }
  31801. var maxDecodeLength = (bytes.length + 1) >> 1;
  31802. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  31803. var bufferLength = this.bufferLength;
  31804. var firstDigit = this.firstDigit;
  31805. for (var i = 0, ii = bytes.length; i < ii; i++) {
  31806. var ch = bytes[i], digit;
  31807. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  31808. digit = ch & 0x0F;
  31809. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  31810. // 'A'-'Z', 'a'-'z'
  31811. digit = (ch & 0x0F) + 9;
  31812. } else if (ch === 0x3E) { // '>'
  31813. this.eof = true;
  31814. break;
  31815. } else { // probably whitespace
  31816. continue; // ignoring
  31817. }
  31818. if (firstDigit < 0) {
  31819. firstDigit = digit;
  31820. } else {
  31821. buffer[bufferLength++] = (firstDigit << 4) | digit;
  31822. firstDigit = -1;
  31823. }
  31824. }
  31825. if (firstDigit >= 0 && this.eof) {
  31826. // incomplete byte
  31827. buffer[bufferLength++] = (firstDigit << 4);
  31828. firstDigit = -1;
  31829. }
  31830. this.firstDigit = firstDigit;
  31831. this.bufferLength = bufferLength;
  31832. };
  31833. return AsciiHexStream;
  31834. })();
  31835. var RunLengthStream = (function RunLengthStreamClosure() {
  31836. function RunLengthStream(str) {
  31837. this.str = str;
  31838. this.dict = str.dict;
  31839. DecodeStream.call(this);
  31840. }
  31841. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  31842. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  31843. // The repeatHeader has following format. The first byte defines type of run
  31844. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  31845. // (in addition to the second byte from the header), n = 129 through 255 -
  31846. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  31847. var repeatHeader = this.str.getBytes(2);
  31848. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  31849. this.eof = true;
  31850. return;
  31851. }
  31852. var bufferLength = this.bufferLength;
  31853. var n = repeatHeader[0];
  31854. if (n < 128) {
  31855. // copy n bytes
  31856. var buffer = this.ensureBuffer(bufferLength + n + 1);
  31857. buffer[bufferLength++] = repeatHeader[1];
  31858. if (n > 0) {
  31859. var source = this.str.getBytes(n);
  31860. buffer.set(source, bufferLength);
  31861. bufferLength += n;
  31862. }
  31863. } else {
  31864. n = 257 - n;
  31865. var b = repeatHeader[1];
  31866. var buffer = this.ensureBuffer(bufferLength + n + 1);
  31867. for (var i = 0; i < n; i++)
  31868. buffer[bufferLength++] = b;
  31869. }
  31870. this.bufferLength = bufferLength;
  31871. };
  31872. return RunLengthStream;
  31873. })();
  31874. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  31875. var ccittEOL = -2;
  31876. var twoDimPass = 0;
  31877. var twoDimHoriz = 1;
  31878. var twoDimVert0 = 2;
  31879. var twoDimVertR1 = 3;
  31880. var twoDimVertL1 = 4;
  31881. var twoDimVertR2 = 5;
  31882. var twoDimVertL2 = 6;
  31883. var twoDimVertR3 = 7;
  31884. var twoDimVertL3 = 8;
  31885. var twoDimTable = [
  31886. [-1, -1], [-1, -1], // 000000x
  31887. [7, twoDimVertL3], // 0000010
  31888. [7, twoDimVertR3], // 0000011
  31889. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  31890. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  31891. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  31892. [4, twoDimPass], [4, twoDimPass],
  31893. [4, twoDimPass], [4, twoDimPass],
  31894. [4, twoDimPass], [4, twoDimPass],
  31895. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  31896. [3, twoDimHoriz], [3, twoDimHoriz],
  31897. [3, twoDimHoriz], [3, twoDimHoriz],
  31898. [3, twoDimHoriz], [3, twoDimHoriz],
  31899. [3, twoDimHoriz], [3, twoDimHoriz],
  31900. [3, twoDimHoriz], [3, twoDimHoriz],
  31901. [3, twoDimHoriz], [3, twoDimHoriz],
  31902. [3, twoDimHoriz], [3, twoDimHoriz],
  31903. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  31904. [3, twoDimVertL1], [3, twoDimVertL1],
  31905. [3, twoDimVertL1], [3, twoDimVertL1],
  31906. [3, twoDimVertL1], [3, twoDimVertL1],
  31907. [3, twoDimVertL1], [3, twoDimVertL1],
  31908. [3, twoDimVertL1], [3, twoDimVertL1],
  31909. [3, twoDimVertL1], [3, twoDimVertL1],
  31910. [3, twoDimVertL1], [3, twoDimVertL1],
  31911. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  31912. [3, twoDimVertR1], [3, twoDimVertR1],
  31913. [3, twoDimVertR1], [3, twoDimVertR1],
  31914. [3, twoDimVertR1], [3, twoDimVertR1],
  31915. [3, twoDimVertR1], [3, twoDimVertR1],
  31916. [3, twoDimVertR1], [3, twoDimVertR1],
  31917. [3, twoDimVertR1], [3, twoDimVertR1],
  31918. [3, twoDimVertR1], [3, twoDimVertR1],
  31919. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  31920. [1, twoDimVert0], [1, twoDimVert0],
  31921. [1, twoDimVert0], [1, twoDimVert0],
  31922. [1, twoDimVert0], [1, twoDimVert0],
  31923. [1, twoDimVert0], [1, twoDimVert0],
  31924. [1, twoDimVert0], [1, twoDimVert0],
  31925. [1, twoDimVert0], [1, twoDimVert0],
  31926. [1, twoDimVert0], [1, twoDimVert0],
  31927. [1, twoDimVert0], [1, twoDimVert0],
  31928. [1, twoDimVert0], [1, twoDimVert0],
  31929. [1, twoDimVert0], [1, twoDimVert0],
  31930. [1, twoDimVert0], [1, twoDimVert0],
  31931. [1, twoDimVert0], [1, twoDimVert0],
  31932. [1, twoDimVert0], [1, twoDimVert0],
  31933. [1, twoDimVert0], [1, twoDimVert0],
  31934. [1, twoDimVert0], [1, twoDimVert0],
  31935. [1, twoDimVert0], [1, twoDimVert0],
  31936. [1, twoDimVert0], [1, twoDimVert0],
  31937. [1, twoDimVert0], [1, twoDimVert0],
  31938. [1, twoDimVert0], [1, twoDimVert0],
  31939. [1, twoDimVert0], [1, twoDimVert0],
  31940. [1, twoDimVert0], [1, twoDimVert0],
  31941. [1, twoDimVert0], [1, twoDimVert0],
  31942. [1, twoDimVert0], [1, twoDimVert0],
  31943. [1, twoDimVert0], [1, twoDimVert0],
  31944. [1, twoDimVert0], [1, twoDimVert0],
  31945. [1, twoDimVert0], [1, twoDimVert0],
  31946. [1, twoDimVert0], [1, twoDimVert0],
  31947. [1, twoDimVert0], [1, twoDimVert0],
  31948. [1, twoDimVert0], [1, twoDimVert0],
  31949. [1, twoDimVert0], [1, twoDimVert0],
  31950. [1, twoDimVert0], [1, twoDimVert0]
  31951. ];
  31952. var whiteTable1 = [
  31953. [-1, -1], // 00000
  31954. [12, ccittEOL], // 00001
  31955. [-1, -1], [-1, -1], // 0001x
  31956. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  31957. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  31958. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  31959. [11, 1792], [11, 1792], // 1000x
  31960. [12, 1984], // 10010
  31961. [12, 2048], // 10011
  31962. [12, 2112], // 10100
  31963. [12, 2176], // 10101
  31964. [12, 2240], // 10110
  31965. [12, 2304], // 10111
  31966. [11, 1856], [11, 1856], // 1100x
  31967. [11, 1920], [11, 1920], // 1101x
  31968. [12, 2368], // 11100
  31969. [12, 2432], // 11101
  31970. [12, 2496], // 11110
  31971. [12, 2560] // 11111
  31972. ];
  31973. var whiteTable2 = [
  31974. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  31975. [8, 29], [8, 29], // 00000010x
  31976. [8, 30], [8, 30], // 00000011x
  31977. [8, 45], [8, 45], // 00000100x
  31978. [8, 46], [8, 46], // 00000101x
  31979. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  31980. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  31981. [8, 47], [8, 47], // 00001010x
  31982. [8, 48], [8, 48], // 00001011x
  31983. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  31984. [6, 13], [6, 13], [6, 13], [6, 13],
  31985. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  31986. [8, 33], [8, 33], // 00010010x
  31987. [8, 34], [8, 34], // 00010011x
  31988. [8, 35], [8, 35], // 00010100x
  31989. [8, 36], [8, 36], // 00010101x
  31990. [8, 37], [8, 37], // 00010110x
  31991. [8, 38], [8, 38], // 00010111x
  31992. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  31993. [8, 31], [8, 31], // 00011010x
  31994. [8, 32], [8, 32], // 00011011x
  31995. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  31996. [6, 1], [6, 1], [6, 1], [6, 1],
  31997. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  31998. [6, 12], [6, 12], [6, 12], [6, 12],
  31999. [8, 53], [8, 53], // 00100100x
  32000. [8, 54], [8, 54], // 00100101x
  32001. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  32002. [8, 39], [8, 39], // 00101000x
  32003. [8, 40], [8, 40], // 00101001x
  32004. [8, 41], [8, 41], // 00101010x
  32005. [8, 42], [8, 42], // 00101011x
  32006. [8, 43], [8, 43], // 00101100x
  32007. [8, 44], [8, 44], // 00101101x
  32008. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  32009. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  32010. [8, 61], [8, 61], // 00110010x
  32011. [8, 62], [8, 62], // 00110011x
  32012. [8, 63], [8, 63], // 00110100x
  32013. [8, 0], [8, 0], // 00110101x
  32014. [8, 320], [8, 320], // 00110110x
  32015. [8, 384], [8, 384], // 00110111x
  32016. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  32017. [5, 10], [5, 10], [5, 10], [5, 10],
  32018. [5, 10], [5, 10], [5, 10], [5, 10],
  32019. [5, 10], [5, 10], [5, 10], [5, 10],
  32020. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  32021. [5, 11], [5, 11], [5, 11], [5, 11],
  32022. [5, 11], [5, 11], [5, 11], [5, 11],
  32023. [5, 11], [5, 11], [5, 11], [5, 11],
  32024. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  32025. [8, 59], [8, 59], // 01001010x
  32026. [8, 60], [8, 60], // 01001011x
  32027. [9, 1472], // 010011000
  32028. [9, 1536], // 010011001
  32029. [9, 1600], // 010011010
  32030. [9, 1728], // 010011011
  32031. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  32032. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  32033. [8, 49], [8, 49], // 01010010x
  32034. [8, 50], [8, 50], // 01010011x
  32035. [8, 51], [8, 51], // 01010100x
  32036. [8, 52], [8, 52], // 01010101x
  32037. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  32038. [8, 55], [8, 55], // 01011000x
  32039. [8, 56], [8, 56], // 01011001x
  32040. [8, 57], [8, 57], // 01011010x
  32041. [8, 58], [8, 58], // 01011011x
  32042. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  32043. [6, 192], [6, 192], [6, 192], [6, 192],
  32044. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  32045. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  32046. [8, 448], [8, 448], // 01100100x
  32047. [8, 512], [8, 512], // 01100101x
  32048. [9, 704], // 011001100
  32049. [9, 768], // 011001101
  32050. [8, 640], [8, 640], // 01100111x
  32051. [8, 576], [8, 576], // 01101000x
  32052. [9, 832], // 011010010
  32053. [9, 896], // 011010011
  32054. [9, 960], // 011010100
  32055. [9, 1024], // 011010101
  32056. [9, 1088], // 011010110
  32057. [9, 1152], // 011010111
  32058. [9, 1216], // 011011000
  32059. [9, 1280], // 011011001
  32060. [9, 1344], // 011011010
  32061. [9, 1408], // 011011011
  32062. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  32063. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  32064. [4, 2], [4, 2], [4, 2], [4, 2],
  32065. [4, 2], [4, 2], [4, 2], [4, 2],
  32066. [4, 2], [4, 2], [4, 2], [4, 2],
  32067. [4, 2], [4, 2], [4, 2], [4, 2],
  32068. [4, 2], [4, 2], [4, 2], [4, 2],
  32069. [4, 2], [4, 2], [4, 2], [4, 2],
  32070. [4, 2], [4, 2], [4, 2], [4, 2],
  32071. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  32072. [4, 3], [4, 3], [4, 3], [4, 3],
  32073. [4, 3], [4, 3], [4, 3], [4, 3],
  32074. [4, 3], [4, 3], [4, 3], [4, 3],
  32075. [4, 3], [4, 3], [4, 3], [4, 3],
  32076. [4, 3], [4, 3], [4, 3], [4, 3],
  32077. [4, 3], [4, 3], [4, 3], [4, 3],
  32078. [4, 3], [4, 3], [4, 3], [4, 3],
  32079. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  32080. [5, 128], [5, 128], [5, 128], [5, 128],
  32081. [5, 128], [5, 128], [5, 128], [5, 128],
  32082. [5, 128], [5, 128], [5, 128], [5, 128],
  32083. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  32084. [5, 8], [5, 8], [5, 8], [5, 8],
  32085. [5, 8], [5, 8], [5, 8], [5, 8],
  32086. [5, 8], [5, 8], [5, 8], [5, 8],
  32087. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  32088. [5, 9], [5, 9], [5, 9], [5, 9],
  32089. [5, 9], [5, 9], [5, 9], [5, 9],
  32090. [5, 9], [5, 9], [5, 9], [5, 9],
  32091. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  32092. [6, 16], [6, 16], [6, 16], [6, 16],
  32093. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  32094. [6, 17], [6, 17], [6, 17], [6, 17],
  32095. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  32096. [4, 4], [4, 4], [4, 4], [4, 4],
  32097. [4, 4], [4, 4], [4, 4], [4, 4],
  32098. [4, 4], [4, 4], [4, 4], [4, 4],
  32099. [4, 4], [4, 4], [4, 4], [4, 4],
  32100. [4, 4], [4, 4], [4, 4], [4, 4],
  32101. [4, 4], [4, 4], [4, 4], [4, 4],
  32102. [4, 4], [4, 4], [4, 4], [4, 4],
  32103. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  32104. [4, 5], [4, 5], [4, 5], [4, 5],
  32105. [4, 5], [4, 5], [4, 5], [4, 5],
  32106. [4, 5], [4, 5], [4, 5], [4, 5],
  32107. [4, 5], [4, 5], [4, 5], [4, 5],
  32108. [4, 5], [4, 5], [4, 5], [4, 5],
  32109. [4, 5], [4, 5], [4, 5], [4, 5],
  32110. [4, 5], [4, 5], [4, 5], [4, 5],
  32111. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  32112. [6, 14], [6, 14], [6, 14], [6, 14],
  32113. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  32114. [6, 15], [6, 15], [6, 15], [6, 15],
  32115. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  32116. [5, 64], [5, 64], [5, 64], [5, 64],
  32117. [5, 64], [5, 64], [5, 64], [5, 64],
  32118. [5, 64], [5, 64], [5, 64], [5, 64],
  32119. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  32120. [4, 6], [4, 6], [4, 6], [4, 6],
  32121. [4, 6], [4, 6], [4, 6], [4, 6],
  32122. [4, 6], [4, 6], [4, 6], [4, 6],
  32123. [4, 6], [4, 6], [4, 6], [4, 6],
  32124. [4, 6], [4, 6], [4, 6], [4, 6],
  32125. [4, 6], [4, 6], [4, 6], [4, 6],
  32126. [4, 6], [4, 6], [4, 6], [4, 6],
  32127. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  32128. [4, 7], [4, 7], [4, 7], [4, 7],
  32129. [4, 7], [4, 7], [4, 7], [4, 7],
  32130. [4, 7], [4, 7], [4, 7], [4, 7],
  32131. [4, 7], [4, 7], [4, 7], [4, 7],
  32132. [4, 7], [4, 7], [4, 7], [4, 7],
  32133. [4, 7], [4, 7], [4, 7], [4, 7],
  32134. [4, 7], [4, 7], [4, 7], [4, 7]
  32135. ];
  32136. var blackTable1 = [
  32137. [-1, -1], [-1, -1], // 000000000000x
  32138. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  32139. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  32140. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  32141. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  32142. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  32143. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  32144. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  32145. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  32146. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  32147. [12, 1984], [12, 1984], // 000000010010x
  32148. [12, 2048], [12, 2048], // 000000010011x
  32149. [12, 2112], [12, 2112], // 000000010100x
  32150. [12, 2176], [12, 2176], // 000000010101x
  32151. [12, 2240], [12, 2240], // 000000010110x
  32152. [12, 2304], [12, 2304], // 000000010111x
  32153. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  32154. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  32155. [12, 2368], [12, 2368], // 000000011100x
  32156. [12, 2432], [12, 2432], // 000000011101x
  32157. [12, 2496], [12, 2496], // 000000011110x
  32158. [12, 2560], [12, 2560], // 000000011111x
  32159. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  32160. [10, 18], [10, 18], [10, 18], [10, 18],
  32161. [12, 52], [12, 52], // 000000100100x
  32162. [13, 640], // 0000001001010
  32163. [13, 704], // 0000001001011
  32164. [13, 768], // 0000001001100
  32165. [13, 832], // 0000001001101
  32166. [12, 55], [12, 55], // 000000100111x
  32167. [12, 56], [12, 56], // 000000101000x
  32168. [13, 1280], // 0000001010010
  32169. [13, 1344], // 0000001010011
  32170. [13, 1408], // 0000001010100
  32171. [13, 1472], // 0000001010101
  32172. [12, 59], [12, 59], // 000000101011x
  32173. [12, 60], [12, 60], // 000000101100x
  32174. [13, 1536], // 0000001011010
  32175. [13, 1600], // 0000001011011
  32176. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  32177. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  32178. [13, 1664], // 0000001100100
  32179. [13, 1728], // 0000001100101
  32180. [12, 320], [12, 320], // 000000110011x
  32181. [12, 384], [12, 384], // 000000110100x
  32182. [12, 448], [12, 448], // 000000110101x
  32183. [13, 512], // 0000001101100
  32184. [13, 576], // 0000001101101
  32185. [12, 53], [12, 53], // 000000110111x
  32186. [12, 54], [12, 54], // 000000111000x
  32187. [13, 896], // 0000001110010
  32188. [13, 960], // 0000001110011
  32189. [13, 1024], // 0000001110100
  32190. [13, 1088], // 0000001110101
  32191. [13, 1152], // 0000001110110
  32192. [13, 1216], // 0000001110111
  32193. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  32194. [10, 64], [10, 64], [10, 64], [10, 64]
  32195. ];
  32196. var blackTable2 = [
  32197. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  32198. [8, 13], [8, 13], [8, 13], [8, 13],
  32199. [8, 13], [8, 13], [8, 13], [8, 13],
  32200. [8, 13], [8, 13], [8, 13], [8, 13],
  32201. [11, 23], [11, 23], // 00000101000x
  32202. [12, 50], // 000001010010
  32203. [12, 51], // 000001010011
  32204. [12, 44], // 000001010100
  32205. [12, 45], // 000001010101
  32206. [12, 46], // 000001010110
  32207. [12, 47], // 000001010111
  32208. [12, 57], // 000001011000
  32209. [12, 58], // 000001011001
  32210. [12, 61], // 000001011010
  32211. [12, 256], // 000001011011
  32212. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  32213. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  32214. [12, 48], // 000001100100
  32215. [12, 49], // 000001100101
  32216. [12, 62], // 000001100110
  32217. [12, 63], // 000001100111
  32218. [12, 30], // 000001101000
  32219. [12, 31], // 000001101001
  32220. [12, 32], // 000001101010
  32221. [12, 33], // 000001101011
  32222. [12, 40], // 000001101100
  32223. [12, 41], // 000001101101
  32224. [11, 22], [11, 22], // 00000110111x
  32225. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  32226. [8, 14], [8, 14], [8, 14], [8, 14],
  32227. [8, 14], [8, 14], [8, 14], [8, 14],
  32228. [8, 14], [8, 14], [8, 14], [8, 14],
  32229. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  32230. [7, 10], [7, 10], [7, 10], [7, 10],
  32231. [7, 10], [7, 10], [7, 10], [7, 10],
  32232. [7, 10], [7, 10], [7, 10], [7, 10],
  32233. [7, 10], [7, 10], [7, 10], [7, 10],
  32234. [7, 10], [7, 10], [7, 10], [7, 10],
  32235. [7, 10], [7, 10], [7, 10], [7, 10],
  32236. [7, 10], [7, 10], [7, 10], [7, 10],
  32237. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  32238. [7, 11], [7, 11], [7, 11], [7, 11],
  32239. [7, 11], [7, 11], [7, 11], [7, 11],
  32240. [7, 11], [7, 11], [7, 11], [7, 11],
  32241. [7, 11], [7, 11], [7, 11], [7, 11],
  32242. [7, 11], [7, 11], [7, 11], [7, 11],
  32243. [7, 11], [7, 11], [7, 11], [7, 11],
  32244. [7, 11], [7, 11], [7, 11], [7, 11],
  32245. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  32246. [9, 15], [9, 15], [9, 15], [9, 15],
  32247. [12, 128], // 000011001000
  32248. [12, 192], // 000011001001
  32249. [12, 26], // 000011001010
  32250. [12, 27], // 000011001011
  32251. [12, 28], // 000011001100
  32252. [12, 29], // 000011001101
  32253. [11, 19], [11, 19], // 00001100111x
  32254. [11, 20], [11, 20], // 00001101000x
  32255. [12, 34], // 000011010010
  32256. [12, 35], // 000011010011
  32257. [12, 36], // 000011010100
  32258. [12, 37], // 000011010101
  32259. [12, 38], // 000011010110
  32260. [12, 39], // 000011010111
  32261. [11, 21], [11, 21], // 00001101100x
  32262. [12, 42], // 000011011010
  32263. [12, 43], // 000011011011
  32264. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  32265. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  32266. [7, 12], [7, 12], [7, 12], [7, 12],
  32267. [7, 12], [7, 12], [7, 12], [7, 12],
  32268. [7, 12], [7, 12], [7, 12], [7, 12],
  32269. [7, 12], [7, 12], [7, 12], [7, 12],
  32270. [7, 12], [7, 12], [7, 12], [7, 12],
  32271. [7, 12], [7, 12], [7, 12], [7, 12],
  32272. [7, 12], [7, 12], [7, 12], [7, 12]
  32273. ];
  32274. var blackTable3 = [
  32275. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  32276. [6, 9], // 000100
  32277. [6, 8], // 000101
  32278. [5, 7], [5, 7], // 00011x
  32279. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  32280. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  32281. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  32282. [3, 1], [3, 1], [3, 1], [3, 1],
  32283. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  32284. [3, 4], [3, 4], [3, 4], [3, 4],
  32285. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  32286. [2, 3], [2, 3], [2, 3], [2, 3],
  32287. [2, 3], [2, 3], [2, 3], [2, 3],
  32288. [2, 3], [2, 3], [2, 3], [2, 3],
  32289. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  32290. [2, 2], [2, 2], [2, 2], [2, 2],
  32291. [2, 2], [2, 2], [2, 2], [2, 2],
  32292. [2, 2], [2, 2], [2, 2], [2, 2]
  32293. ];
  32294. function CCITTFaxStream(str, params) {
  32295. this.str = str;
  32296. this.dict = str.dict;
  32297. params = params || new Dict();
  32298. this.encoding = params.get('K') || 0;
  32299. this.eoline = params.get('EndOfLine') || false;
  32300. this.byteAlign = params.get('EncodedByteAlign') || false;
  32301. this.columns = params.get('Columns') || 1728;
  32302. this.rows = params.get('Rows') || 0;
  32303. var eoblock = params.get('EndOfBlock');
  32304. if (eoblock === null || eoblock === undefined)
  32305. eoblock = true;
  32306. this.eoblock = eoblock;
  32307. this.black = params.get('BlackIs1') || false;
  32308. this.codingLine = new Uint32Array(this.columns + 1);
  32309. this.refLine = new Uint32Array(this.columns + 2);
  32310. this.codingLine[0] = this.columns;
  32311. this.codingPos = 0;
  32312. this.row = 0;
  32313. this.nextLine2D = this.encoding < 0;
  32314. this.inputBits = 0;
  32315. this.inputBuf = 0;
  32316. this.outputBits = 0;
  32317. this.buf = EOF;
  32318. var code1;
  32319. while ((code1 = this.lookBits(12)) === 0) {
  32320. this.eatBits(1);
  32321. }
  32322. if (code1 == 1) {
  32323. this.eatBits(12);
  32324. }
  32325. if (this.encoding > 0) {
  32326. this.nextLine2D = !this.lookBits(1);
  32327. this.eatBits(1);
  32328. }
  32329. DecodeStream.call(this);
  32330. }
  32331. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  32332. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  32333. while (!this.eof) {
  32334. var c = this.lookChar();
  32335. this.buf = EOF;
  32336. this.ensureBuffer(this.bufferLength + 1);
  32337. this.buffer[this.bufferLength++] = c;
  32338. }
  32339. };
  32340. CCITTFaxStream.prototype.addPixels =
  32341. function ccittFaxStreamAddPixels(a1, blackPixels) {
  32342. var codingLine = this.codingLine;
  32343. var codingPos = this.codingPos;
  32344. if (a1 > codingLine[codingPos]) {
  32345. if (a1 > this.columns) {
  32346. info('row is wrong length');
  32347. this.err = true;
  32348. a1 = this.columns;
  32349. }
  32350. if ((codingPos & 1) ^ blackPixels) {
  32351. ++codingPos;
  32352. }
  32353. codingLine[codingPos] = a1;
  32354. }
  32355. this.codingPos = codingPos;
  32356. };
  32357. CCITTFaxStream.prototype.addPixelsNeg =
  32358. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  32359. var codingLine = this.codingLine;
  32360. var codingPos = this.codingPos;
  32361. if (a1 > codingLine[codingPos]) {
  32362. if (a1 > this.columns) {
  32363. info('row is wrong length');
  32364. this.err = true;
  32365. a1 = this.columns;
  32366. }
  32367. if ((codingPos & 1) ^ blackPixels)
  32368. ++codingPos;
  32369. codingLine[codingPos] = a1;
  32370. } else if (a1 < codingLine[codingPos]) {
  32371. if (a1 < 0) {
  32372. info('invalid code');
  32373. this.err = true;
  32374. a1 = 0;
  32375. }
  32376. while (codingPos > 0 && a1 < codingLine[codingPos - 1])
  32377. --codingPos;
  32378. codingLine[codingPos] = a1;
  32379. }
  32380. this.codingPos = codingPos;
  32381. };
  32382. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  32383. if (this.buf != EOF)
  32384. return this.buf;
  32385. var refLine = this.refLine;
  32386. var codingLine = this.codingLine;
  32387. var columns = this.columns;
  32388. var refPos, blackPixels, bits;
  32389. if (this.outputBits === 0) {
  32390. if (this.eof)
  32391. return null;
  32392. this.err = false;
  32393. var code1, code2, code3;
  32394. if (this.nextLine2D) {
  32395. for (var i = 0; codingLine[i] < columns; ++i)
  32396. refLine[i] = codingLine[i];
  32397. refLine[i++] = columns;
  32398. refLine[i] = columns;
  32399. codingLine[0] = 0;
  32400. this.codingPos = 0;
  32401. refPos = 0;
  32402. blackPixels = 0;
  32403. while (codingLine[this.codingPos] < columns) {
  32404. code1 = this.getTwoDimCode();
  32405. switch (code1) {
  32406. case twoDimPass:
  32407. this.addPixels(refLine[refPos + 1], blackPixels);
  32408. if (refLine[refPos + 1] < columns)
  32409. refPos += 2;
  32410. break;
  32411. case twoDimHoriz:
  32412. code1 = code2 = 0;
  32413. if (blackPixels) {
  32414. do {
  32415. code1 += (code3 = this.getBlackCode());
  32416. } while (code3 >= 64);
  32417. do {
  32418. code2 += (code3 = this.getWhiteCode());
  32419. } while (code3 >= 64);
  32420. } else {
  32421. do {
  32422. code1 += (code3 = this.getWhiteCode());
  32423. } while (code3 >= 64);
  32424. do {
  32425. code2 += (code3 = this.getBlackCode());
  32426. } while (code3 >= 64);
  32427. }
  32428. this.addPixels(codingLine[this.codingPos] +
  32429. code1, blackPixels);
  32430. if (codingLine[this.codingPos] < columns) {
  32431. this.addPixels(codingLine[this.codingPos] + code2,
  32432. blackPixels ^ 1);
  32433. }
  32434. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32435. refLine[refPos] < columns) {
  32436. refPos += 2;
  32437. }
  32438. break;
  32439. case twoDimVertR3:
  32440. this.addPixels(refLine[refPos] + 3, blackPixels);
  32441. blackPixels ^= 1;
  32442. if (codingLine[this.codingPos] < columns) {
  32443. ++refPos;
  32444. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32445. refLine[refPos] < columns)
  32446. refPos += 2;
  32447. }
  32448. break;
  32449. case twoDimVertR2:
  32450. this.addPixels(refLine[refPos] + 2, blackPixels);
  32451. blackPixels ^= 1;
  32452. if (codingLine[this.codingPos] < columns) {
  32453. ++refPos;
  32454. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32455. refLine[refPos] < columns) {
  32456. refPos += 2;
  32457. }
  32458. }
  32459. break;
  32460. case twoDimVertR1:
  32461. this.addPixels(refLine[refPos] + 1, blackPixels);
  32462. blackPixels ^= 1;
  32463. if (codingLine[this.codingPos] < columns) {
  32464. ++refPos;
  32465. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32466. refLine[refPos] < columns)
  32467. refPos += 2;
  32468. }
  32469. break;
  32470. case twoDimVert0:
  32471. this.addPixels(refLine[refPos], blackPixels);
  32472. blackPixels ^= 1;
  32473. if (codingLine[this.codingPos] < columns) {
  32474. ++refPos;
  32475. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32476. refLine[refPos] < columns)
  32477. refPos += 2;
  32478. }
  32479. break;
  32480. case twoDimVertL3:
  32481. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  32482. blackPixels ^= 1;
  32483. if (codingLine[this.codingPos] < columns) {
  32484. if (refPos > 0)
  32485. --refPos;
  32486. else
  32487. ++refPos;
  32488. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32489. refLine[refPos] < columns)
  32490. refPos += 2;
  32491. }
  32492. break;
  32493. case twoDimVertL2:
  32494. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  32495. blackPixels ^= 1;
  32496. if (codingLine[this.codingPos] < columns) {
  32497. if (refPos > 0)
  32498. --refPos;
  32499. else
  32500. ++refPos;
  32501. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32502. refLine[refPos] < columns)
  32503. refPos += 2;
  32504. }
  32505. break;
  32506. case twoDimVertL1:
  32507. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  32508. blackPixels ^= 1;
  32509. if (codingLine[this.codingPos] < columns) {
  32510. if (refPos > 0)
  32511. --refPos;
  32512. else
  32513. ++refPos;
  32514. while (refLine[refPos] <= codingLine[this.codingPos] &&
  32515. refLine[refPos] < columns)
  32516. refPos += 2;
  32517. }
  32518. break;
  32519. case EOF:
  32520. this.addPixels(columns, 0);
  32521. this.eof = true;
  32522. break;
  32523. default:
  32524. info('bad 2d code');
  32525. this.addPixels(columns, 0);
  32526. this.err = true;
  32527. }
  32528. }
  32529. } else {
  32530. codingLine[0] = 0;
  32531. this.codingPos = 0;
  32532. blackPixels = 0;
  32533. while (codingLine[this.codingPos] < columns) {
  32534. code1 = 0;
  32535. if (blackPixels) {
  32536. do {
  32537. code1 += (code3 = this.getBlackCode());
  32538. } while (code3 >= 64);
  32539. } else {
  32540. do {
  32541. code1 += (code3 = this.getWhiteCode());
  32542. } while (code3 >= 64);
  32543. }
  32544. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  32545. blackPixels ^= 1;
  32546. }
  32547. }
  32548. if (this.byteAlign)
  32549. this.inputBits &= ~7;
  32550. var gotEOL = false;
  32551. if (!this.eoblock && this.row == this.rows - 1) {
  32552. this.eof = true;
  32553. } else {
  32554. code1 = this.lookBits(12);
  32555. while (code1 === 0) {
  32556. this.eatBits(1);
  32557. code1 = this.lookBits(12);
  32558. }
  32559. if (code1 == 1) {
  32560. this.eatBits(12);
  32561. gotEOL = true;
  32562. } else if (code1 == EOF) {
  32563. this.eof = true;
  32564. }
  32565. }
  32566. if (!this.eof && this.encoding > 0) {
  32567. this.nextLine2D = !this.lookBits(1);
  32568. this.eatBits(1);
  32569. }
  32570. if (this.eoblock && gotEOL) {
  32571. code1 = this.lookBits(12);
  32572. if (code1 == 1) {
  32573. this.eatBits(12);
  32574. if (this.encoding > 0) {
  32575. this.lookBits(1);
  32576. this.eatBits(1);
  32577. }
  32578. if (this.encoding >= 0) {
  32579. for (var i = 0; i < 4; ++i) {
  32580. code1 = this.lookBits(12);
  32581. if (code1 != 1)
  32582. info('bad rtc code: ' + code1);
  32583. this.eatBits(12);
  32584. if (this.encoding > 0) {
  32585. this.lookBits(1);
  32586. this.eatBits(1);
  32587. }
  32588. }
  32589. }
  32590. this.eof = true;
  32591. }
  32592. } else if (this.err && this.eoline) {
  32593. while (true) {
  32594. code1 = this.lookBits(13);
  32595. if (code1 == EOF) {
  32596. this.eof = true;
  32597. return null;
  32598. }
  32599. if ((code1 >> 1) == 1) {
  32600. break;
  32601. }
  32602. this.eatBits(1);
  32603. }
  32604. this.eatBits(12);
  32605. if (this.encoding > 0) {
  32606. this.eatBits(1);
  32607. this.nextLine2D = !(code1 & 1);
  32608. }
  32609. }
  32610. if (codingLine[0] > 0)
  32611. this.outputBits = codingLine[this.codingPos = 0];
  32612. else
  32613. this.outputBits = codingLine[this.codingPos = 1];
  32614. this.row++;
  32615. }
  32616. if (this.outputBits >= 8) {
  32617. this.buf = (this.codingPos & 1) ? 0 : 0xFF;
  32618. this.outputBits -= 8;
  32619. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  32620. this.codingPos++;
  32621. this.outputBits = (codingLine[this.codingPos] -
  32622. codingLine[this.codingPos - 1]);
  32623. }
  32624. } else {
  32625. var bits = 8;
  32626. this.buf = 0;
  32627. do {
  32628. if (this.outputBits > bits) {
  32629. this.buf <<= bits;
  32630. if (!(this.codingPos & 1)) {
  32631. this.buf |= 0xFF >> (8 - bits);
  32632. }
  32633. this.outputBits -= bits;
  32634. bits = 0;
  32635. } else {
  32636. this.buf <<= this.outputBits;
  32637. if (!(this.codingPos & 1)) {
  32638. this.buf |= 0xFF >> (8 - this.outputBits);
  32639. }
  32640. bits -= this.outputBits;
  32641. this.outputBits = 0;
  32642. if (codingLine[this.codingPos] < columns) {
  32643. this.codingPos++;
  32644. this.outputBits = (codingLine[this.codingPos] -
  32645. codingLine[this.codingPos - 1]);
  32646. } else if (bits > 0) {
  32647. this.buf <<= bits;
  32648. bits = 0;
  32649. }
  32650. }
  32651. } while (bits);
  32652. }
  32653. if (this.black) {
  32654. this.buf ^= 0xFF;
  32655. }
  32656. return this.buf;
  32657. };
  32658. // This functions returns the code found from the table.
  32659. // The start and end parameters set the boundaries for searching the table.
  32660. // The limit parameter is optional. Function returns an array with three
  32661. // values. The first array element indicates whether a valid code is being
  32662. // returned. The second array element is the actual code. The third array
  32663. // element indicates whether EOF was reached.
  32664. CCITTFaxStream.prototype.findTableCode =
  32665. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  32666. var limitValue = limit || 0;
  32667. for (var i = start; i <= end; ++i) {
  32668. var code = this.lookBits(i);
  32669. if (code == EOF)
  32670. return [true, 1, false];
  32671. if (i < end)
  32672. code <<= end - i;
  32673. if (!limitValue || code >= limitValue) {
  32674. var p = table[code - limitValue];
  32675. if (p[0] == i) {
  32676. this.eatBits(i);
  32677. return [true, p[1], true];
  32678. }
  32679. }
  32680. }
  32681. return [false, 0, false];
  32682. };
  32683. CCITTFaxStream.prototype.getTwoDimCode =
  32684. function ccittFaxStreamGetTwoDimCode() {
  32685. var code = 0;
  32686. var p;
  32687. if (this.eoblock) {
  32688. code = this.lookBits(7);
  32689. p = twoDimTable[code];
  32690. if (p && p[0] > 0) {
  32691. this.eatBits(p[0]);
  32692. return p[1];
  32693. }
  32694. } else {
  32695. var result = this.findTableCode(1, 7, twoDimTable);
  32696. if (result[0] && result[2])
  32697. return result[1];
  32698. }
  32699. info('Bad two dim code');
  32700. return EOF;
  32701. };
  32702. CCITTFaxStream.prototype.getWhiteCode =
  32703. function ccittFaxStreamGetWhiteCode() {
  32704. var code = 0;
  32705. var p;
  32706. var n;
  32707. if (this.eoblock) {
  32708. code = this.lookBits(12);
  32709. if (code == EOF)
  32710. return 1;
  32711. if ((code >> 5) === 0)
  32712. p = whiteTable1[code];
  32713. else
  32714. p = whiteTable2[code >> 3];
  32715. if (p[0] > 0) {
  32716. this.eatBits(p[0]);
  32717. return p[1];
  32718. }
  32719. } else {
  32720. var result = this.findTableCode(1, 9, whiteTable2);
  32721. if (result[0])
  32722. return result[1];
  32723. result = this.findTableCode(11, 12, whiteTable1);
  32724. if (result[0])
  32725. return result[1];
  32726. }
  32727. info('bad white code');
  32728. this.eatBits(1);
  32729. return 1;
  32730. };
  32731. CCITTFaxStream.prototype.getBlackCode =
  32732. function ccittFaxStreamGetBlackCode() {
  32733. var code, p;
  32734. if (this.eoblock) {
  32735. code = this.lookBits(13);
  32736. if (code == EOF)
  32737. return 1;
  32738. if ((code >> 7) === 0)
  32739. p = blackTable1[code];
  32740. else if ((code >> 9) === 0 && (code >> 7) !== 0)
  32741. p = blackTable2[(code >> 1) - 64];
  32742. else
  32743. p = blackTable3[code >> 7];
  32744. if (p[0] > 0) {
  32745. this.eatBits(p[0]);
  32746. return p[1];
  32747. }
  32748. } else {
  32749. var result = this.findTableCode(2, 6, blackTable3);
  32750. if (result[0])
  32751. return result[1];
  32752. result = this.findTableCode(7, 12, blackTable2, 64);
  32753. if (result[0])
  32754. return result[1];
  32755. result = this.findTableCode(10, 13, blackTable1);
  32756. if (result[0])
  32757. return result[1];
  32758. }
  32759. info('bad black code');
  32760. this.eatBits(1);
  32761. return 1;
  32762. };
  32763. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  32764. var c;
  32765. while (this.inputBits < n) {
  32766. if ((c = this.str.getByte()) === -1) {
  32767. if (this.inputBits === 0)
  32768. return EOF;
  32769. return ((this.inputBuf << (n - this.inputBits)) &
  32770. (0xFFFF >> (16 - n)));
  32771. }
  32772. this.inputBuf = (this.inputBuf << 8) + c;
  32773. this.inputBits += 8;
  32774. }
  32775. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  32776. };
  32777. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  32778. if ((this.inputBits -= n) < 0)
  32779. this.inputBits = 0;
  32780. };
  32781. return CCITTFaxStream;
  32782. })();
  32783. var LZWStream = (function LZWStreamClosure() {
  32784. function LZWStream(str, earlyChange) {
  32785. this.str = str;
  32786. this.dict = str.dict;
  32787. this.cachedData = 0;
  32788. this.bitsCached = 0;
  32789. var maxLzwDictionarySize = 4096;
  32790. var lzwState = {
  32791. earlyChange: earlyChange,
  32792. codeLength: 9,
  32793. nextCode: 258,
  32794. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  32795. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  32796. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  32797. currentSequence: new Uint8Array(maxLzwDictionarySize),
  32798. currentSequenceLength: 0
  32799. };
  32800. for (var i = 0; i < 256; ++i) {
  32801. lzwState.dictionaryValues[i] = i;
  32802. lzwState.dictionaryLengths[i] = 1;
  32803. }
  32804. this.lzwState = lzwState;
  32805. DecodeStream.call(this);
  32806. }
  32807. LZWStream.prototype = Object.create(DecodeStream.prototype);
  32808. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  32809. var bitsCached = this.bitsCached;
  32810. var cachedData = this.cachedData;
  32811. while (bitsCached < n) {
  32812. var c = this.str.getByte();
  32813. if (c === -1) {
  32814. this.eof = true;
  32815. return null;
  32816. }
  32817. cachedData = (cachedData << 8) | c;
  32818. bitsCached += 8;
  32819. }
  32820. this.bitsCached = (bitsCached -= n);
  32821. this.cachedData = cachedData;
  32822. this.lastCode = null;
  32823. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  32824. };
  32825. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  32826. var blockSize = 512;
  32827. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  32828. var i, j, q;
  32829. var lzwState = this.lzwState;
  32830. if (!lzwState)
  32831. return; // eof was found
  32832. var earlyChange = lzwState.earlyChange;
  32833. var nextCode = lzwState.nextCode;
  32834. var dictionaryValues = lzwState.dictionaryValues;
  32835. var dictionaryLengths = lzwState.dictionaryLengths;
  32836. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  32837. var codeLength = lzwState.codeLength;
  32838. var prevCode = lzwState.prevCode;
  32839. var currentSequence = lzwState.currentSequence;
  32840. var currentSequenceLength = lzwState.currentSequenceLength;
  32841. var decodedLength = 0;
  32842. var currentBufferLength = this.bufferLength;
  32843. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  32844. for (i = 0; i < blockSize; i++) {
  32845. var code = this.readBits(codeLength);
  32846. var hasPrev = currentSequenceLength > 0;
  32847. if (code < 256) {
  32848. currentSequence[0] = code;
  32849. currentSequenceLength = 1;
  32850. } else if (code >= 258) {
  32851. if (code < nextCode) {
  32852. currentSequenceLength = dictionaryLengths[code];
  32853. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  32854. currentSequence[j] = dictionaryValues[q];
  32855. q = dictionaryPrevCodes[q];
  32856. }
  32857. } else {
  32858. currentSequence[currentSequenceLength++] = currentSequence[0];
  32859. }
  32860. } else if (code == 256) {
  32861. codeLength = 9;
  32862. nextCode = 258;
  32863. currentSequenceLength = 0;
  32864. continue;
  32865. } else {
  32866. this.eof = true;
  32867. delete this.lzwState;
  32868. break;
  32869. }
  32870. if (hasPrev) {
  32871. dictionaryPrevCodes[nextCode] = prevCode;
  32872. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  32873. dictionaryValues[nextCode] = currentSequence[0];
  32874. nextCode++;
  32875. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  32876. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  32877. 0.6931471805599453 + 1, 12) | 0;
  32878. }
  32879. prevCode = code;
  32880. decodedLength += currentSequenceLength;
  32881. if (estimatedDecodedSize < decodedLength) {
  32882. do {
  32883. estimatedDecodedSize += decodedSizeDelta;
  32884. } while (estimatedDecodedSize < decodedLength);
  32885. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  32886. }
  32887. for (j = 0; j < currentSequenceLength; j++)
  32888. buffer[currentBufferLength++] = currentSequence[j];
  32889. }
  32890. lzwState.nextCode = nextCode;
  32891. lzwState.codeLength = codeLength;
  32892. lzwState.prevCode = prevCode;
  32893. lzwState.currentSequenceLength = currentSequenceLength;
  32894. this.bufferLength = currentBufferLength;
  32895. };
  32896. return LZWStream;
  32897. })();
  32898. var NullStream = (function NullStreamClosure() {
  32899. function NullStream() {
  32900. Stream.call(this, new Uint8Array(0));
  32901. }
  32902. NullStream.prototype = Stream.prototype;
  32903. return NullStream;
  32904. })();
  32905. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  32906. setup: function wphSetup(handler) {
  32907. var pdfManager;
  32908. function loadDocument(recoveryMode) {
  32909. var loadDocumentPromise = new LegacyPromise();
  32910. var parseSuccess = function parseSuccess() {
  32911. var numPagesPromise = pdfManager.ensureModel('numPages');
  32912. var fingerprintPromise = pdfManager.ensureModel('fingerprint');
  32913. var outlinePromise = pdfManager.ensureCatalog('documentOutline');
  32914. var infoPromise = pdfManager.ensureModel('documentInfo');
  32915. var metadataPromise = pdfManager.ensureCatalog('metadata');
  32916. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  32917. var javaScriptPromise = pdfManager.ensureCatalog('javaScript');
  32918. Promise.all([numPagesPromise, fingerprintPromise, outlinePromise,
  32919. infoPromise, metadataPromise, encryptedPromise,
  32920. javaScriptPromise]).then(
  32921. function onDocReady(results) {
  32922. var doc = {
  32923. numPages: results[0],
  32924. fingerprint: results[1],
  32925. outline: results[2],
  32926. info: results[3],
  32927. metadata: results[4],
  32928. encrypted: !!results[5],
  32929. javaScript: results[6]
  32930. };
  32931. loadDocumentPromise.resolve(doc);
  32932. },
  32933. parseFailure);
  32934. };
  32935. var parseFailure = function parseFailure(e) {
  32936. loadDocumentPromise.reject(e);
  32937. };
  32938. pdfManager.ensureModel('checkHeader', []).then(function() {
  32939. pdfManager.ensureModel('parseStartXRef', []).then(function() {
  32940. pdfManager.ensureModel('parse', [recoveryMode]).then(
  32941. parseSuccess, parseFailure);
  32942. }, parseFailure);
  32943. }, parseFailure);
  32944. return loadDocumentPromise;
  32945. }
  32946. function getPdfManager(data) {
  32947. var pdfManagerPromise = new LegacyPromise();
  32948. var source = data.source;
  32949. var disableRange = data.disableRange;
  32950. if (source.data) {
  32951. try {
  32952. pdfManager = new LocalPdfManager(source.data, source.password);
  32953. pdfManagerPromise.resolve();
  32954. } catch (ex) {
  32955. pdfManagerPromise.reject(ex);
  32956. }
  32957. return pdfManagerPromise;
  32958. } else if (source.chunkedViewerLoading) {
  32959. try {
  32960. pdfManager = new NetworkPdfManager(source, handler);
  32961. pdfManagerPromise.resolve();
  32962. } catch (ex) {
  32963. pdfManagerPromise.reject(ex);
  32964. }
  32965. return pdfManagerPromise;
  32966. }
  32967. var networkManager = new NetworkManager(source.url, {
  32968. httpHeaders: source.httpHeaders,
  32969. withCredentials: source.withCredentials
  32970. });
  32971. var fullRequestXhrId = networkManager.requestFull({
  32972. onHeadersReceived: function onHeadersReceived() {
  32973. if (disableRange) {
  32974. return;
  32975. }
  32976. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  32977. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  32978. return;
  32979. }
  32980. var contentEncoding =
  32981. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  32982. if (contentEncoding !== 'identity') {
  32983. return;
  32984. }
  32985. var length = fullRequestXhr.getResponseHeader('Content-Length');
  32986. length = parseInt(length, 10);
  32987. if (!isInt(length)) {
  32988. return;
  32989. }
  32990. // NOTE: by cancelling the full request, and then issuing range
  32991. // requests, there will be an issue for sites where you can only
  32992. // request the pdf once. However, if this is the case, then the
  32993. // server should not be returning that it can support range requests.
  32994. networkManager.abortRequest(fullRequestXhrId);
  32995. source.length = length;
  32996. try {
  32997. pdfManager = new NetworkPdfManager(source, handler);
  32998. pdfManagerPromise.resolve(pdfManager);
  32999. } catch (ex) {
  33000. pdfManagerPromise.reject(ex);
  33001. }
  33002. },
  33003. onDone: function onDone(args) {
  33004. // the data is array, instantiating directly from it
  33005. try {
  33006. pdfManager = new LocalPdfManager(args.chunk, source.password);
  33007. pdfManagerPromise.resolve();
  33008. } catch (ex) {
  33009. pdfManagerPromise.reject(ex);
  33010. }
  33011. },
  33012. onError: function onError(status) {
  33013. if (status == 404) {
  33014. var exception = new MissingPDFException( 'Missing PDF "' +
  33015. source.url + '".');
  33016. handler.send('MissingPDF', { exception: exception });
  33017. } else {
  33018. handler.send('DocError', 'Unexpected server response (' +
  33019. status + ') while retrieving PDF "' +
  33020. source.url + '".');
  33021. }
  33022. },
  33023. onProgress: function onProgress(evt) {
  33024. handler.send('DocProgress', {
  33025. loaded: evt.loaded,
  33026. total: evt.lengthComputable ? evt.total : void(0)
  33027. });
  33028. }
  33029. });
  33030. return pdfManagerPromise;
  33031. }
  33032. handler.on('test', function wphSetupTest(data) {
  33033. // check if Uint8Array can be sent to worker
  33034. if (!(data instanceof Uint8Array)) {
  33035. handler.send('test', false);
  33036. return;
  33037. }
  33038. // making sure postMessage transfers are working
  33039. var supportTransfers = data[0] === 255;
  33040. handler.postMessageTransfers = supportTransfers;
  33041. // check if the response property is supported by xhr
  33042. var xhr = new XMLHttpRequest();
  33043. var responseExists = 'response' in xhr;
  33044. // check if the property is actually implemented
  33045. try {
  33046. var dummy = xhr.responseType;
  33047. } catch (e) {
  33048. responseExists = false;
  33049. }
  33050. if (!responseExists) {
  33051. handler.send('test', false);
  33052. return;
  33053. }
  33054. handler.send('test', {
  33055. supportTypedArray: true,
  33056. supportTransfers: supportTransfers
  33057. });
  33058. });
  33059. handler.on('GetDocRequest', function wphSetupDoc(data) {
  33060. var onSuccess = function(doc) {
  33061. handler.send('GetDoc', { pdfInfo: doc });
  33062. };
  33063. var onFailure = function(e) {
  33064. if (e instanceof PasswordException) {
  33065. if (e.code === PasswordResponses.NEED_PASSWORD) {
  33066. handler.send('NeedPassword', {
  33067. exception: e
  33068. });
  33069. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  33070. handler.send('IncorrectPassword', {
  33071. exception: e
  33072. });
  33073. }
  33074. } else if (e instanceof InvalidPDFException) {
  33075. handler.send('InvalidPDF', {
  33076. exception: e
  33077. });
  33078. } else if (e instanceof MissingPDFException) {
  33079. handler.send('MissingPDF', {
  33080. exception: e
  33081. });
  33082. } else {
  33083. handler.send('UnknownError', {
  33084. exception: new UnknownErrorException(e.message, e.toString())
  33085. });
  33086. }
  33087. };
  33088. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  33089. -1 : data.maxImageSize;
  33090. PDFJS.disableFontFace = data.disableFontFace;
  33091. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  33092. PDFJS.verbosity = data.verbosity;
  33093. getPdfManager(data).then(function pdfManagerReady() {
  33094. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  33095. // Try again with recoveryMode == true
  33096. if (!(ex instanceof XRefParseException)) {
  33097. if (ex instanceof PasswordException) {
  33098. // after password exception prepare to receive a new password
  33099. // to repeat loading
  33100. pdfManager.passwordChangedPromise =
  33101. new LegacyPromise();
  33102. pdfManager.passwordChangedPromise.then(pdfManagerReady);
  33103. }
  33104. onFailure(ex);
  33105. return;
  33106. }
  33107. pdfManager.requestLoadedStream();
  33108. pdfManager.onLoadedStream().then(function() {
  33109. loadDocument(true).then(onSuccess, onFailure);
  33110. });
  33111. }, onFailure);
  33112. }, onFailure);
  33113. });
  33114. handler.on('GetPageRequest', function wphSetupGetPage(data) {
  33115. var pageIndex = data.pageIndex;
  33116. pdfManager.getPage(pageIndex).then(function(page) {
  33117. var rotatePromise = pdfManager.ensure(page, 'rotate');
  33118. var refPromise = pdfManager.ensure(page, 'ref');
  33119. var viewPromise = pdfManager.ensure(page, 'view');
  33120. Promise.all([rotatePromise, refPromise, viewPromise]).then(
  33121. function(results) {
  33122. var page = {
  33123. pageIndex: data.pageIndex,
  33124. rotate: results[0],
  33125. ref: results[1],
  33126. view: results[2]
  33127. };
  33128. handler.send('GetPage', { pageInfo: page });
  33129. });
  33130. });
  33131. });
  33132. handler.on('GetPageIndex', function wphSetupGetPageIndex(data, deferred) {
  33133. var ref = new Ref(data.ref.num, data.ref.gen);
  33134. pdfManager.pdfModel.catalog.getPageIndex(ref).then(function (pageIndex) {
  33135. deferred.resolve(pageIndex);
  33136. }, deferred.reject);
  33137. });
  33138. handler.on('GetDestinations',
  33139. function wphSetupGetDestinations(data, deferred) {
  33140. pdfManager.ensureCatalog('destinations').then(function(destinations) {
  33141. deferred.resolve(destinations);
  33142. });
  33143. }
  33144. );
  33145. handler.on('GetData', function wphSetupGetData(data, deferred) {
  33146. pdfManager.requestLoadedStream();
  33147. pdfManager.onLoadedStream().then(function(stream) {
  33148. deferred.resolve(stream.bytes);
  33149. });
  33150. });
  33151. handler.on('DataLoaded', function wphSetupDataLoaded(data, deferred) {
  33152. pdfManager.onLoadedStream().then(function(stream) {
  33153. deferred.resolve({ length: stream.bytes.byteLength });
  33154. });
  33155. });
  33156. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  33157. pdfManager.updatePassword(data);
  33158. });
  33159. handler.on('GetAnnotationsRequest', function wphSetupGetAnnotations(data) {
  33160. pdfManager.getPage(data.pageIndex).then(function(page) {
  33161. pdfManager.ensure(page, 'getAnnotationsData', []).then(
  33162. function(annotationsData) {
  33163. handler.send('GetAnnotations', {
  33164. pageIndex: data.pageIndex,
  33165. annotations: annotationsData
  33166. });
  33167. }
  33168. );
  33169. });
  33170. });
  33171. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  33172. pdfManager.getPage(data.pageIndex).then(function(page) {
  33173. var pageNum = data.pageIndex + 1;
  33174. var start = Date.now();
  33175. // Pre compile the pdf page and fetch the fonts/images.
  33176. page.getOperatorList(handler).then(function(operatorList) {
  33177. info('page=%d - getOperatorList: time=%dms, len=%d', pageNum,
  33178. Date.now() - start, operatorList.fnArray.length);
  33179. }, function(e) {
  33180. var minimumStackMessage =
  33181. 'worker.js: while trying to getPage() and getOperatorList()';
  33182. var wrappedException;
  33183. // Turn the error into an obj that can be serialized
  33184. if (typeof e === 'string') {
  33185. wrappedException = {
  33186. message: e,
  33187. stack: minimumStackMessage
  33188. };
  33189. } else if (typeof e === 'object') {
  33190. wrappedException = {
  33191. message: e.message || e.toString(),
  33192. stack: e.stack || minimumStackMessage
  33193. };
  33194. } else {
  33195. wrappedException = {
  33196. message: 'Unknown exception type: ' + (typeof e),
  33197. stack: minimumStackMessage
  33198. };
  33199. }
  33200. handler.send('PageError', {
  33201. pageNum: pageNum,
  33202. error: wrappedException
  33203. });
  33204. });
  33205. });
  33206. }, this);
  33207. handler.on('GetTextContent', function wphExtractText(data, deferred) {
  33208. pdfManager.getPage(data.pageIndex).then(function(page) {
  33209. var pageNum = data.pageIndex + 1;
  33210. var start = Date.now();
  33211. page.extractTextContent().then(function(textContent) {
  33212. deferred.resolve(textContent);
  33213. info('text indexing: page=%d - time=%dms', pageNum,
  33214. Date.now() - start);
  33215. }, function (e) {
  33216. // Skip errored pages
  33217. deferred.reject(e);
  33218. });
  33219. });
  33220. });
  33221. handler.on('Cleanup', function wphCleanup(data, deferred) {
  33222. pdfManager.cleanup();
  33223. deferred.resolve(true);
  33224. });
  33225. handler.on('Terminate', function wphTerminate(data, deferred) {
  33226. pdfManager.terminate();
  33227. deferred.resolve();
  33228. });
  33229. }
  33230. };
  33231. var consoleTimer = {};
  33232. var workerConsole = {
  33233. log: function log() {
  33234. var args = Array.prototype.slice.call(arguments);
  33235. globalScope.postMessage({
  33236. action: 'console_log',
  33237. data: args
  33238. });
  33239. },
  33240. error: function error() {
  33241. var args = Array.prototype.slice.call(arguments);
  33242. globalScope.postMessage({
  33243. action: 'console_error',
  33244. data: args
  33245. });
  33246. throw 'pdf.js execution error';
  33247. },
  33248. time: function time(name) {
  33249. consoleTimer[name] = Date.now();
  33250. },
  33251. timeEnd: function timeEnd(name) {
  33252. var time = consoleTimer[name];
  33253. if (!time) {
  33254. error('Unknown timer name ' + name);
  33255. }
  33256. this.log('Timer:', name, Date.now() - time);
  33257. }
  33258. };
  33259. // Worker thread?
  33260. if (typeof window === 'undefined') {
  33261. if (!('console' in globalScope)) {
  33262. globalScope.console = workerConsole;
  33263. }
  33264. // Listen for unsupported features so we can pass them on to the main thread.
  33265. PDFJS.UnsupportedManager.listen(function (msg) {
  33266. globalScope.postMessage({
  33267. action: '_unsupported_feature',
  33268. data: msg
  33269. });
  33270. });
  33271. var handler = new MessageHandler('worker_processor', this);
  33272. WorkerMessageHandler.setup(handler);
  33273. }
  33274. var JpxImage = (function JpxImageClosure() {
  33275. // Table E.1
  33276. var SubbandsGainLog2 = {
  33277. 'LL': 0,
  33278. 'LH': 1,
  33279. 'HL': 1,
  33280. 'HH': 2
  33281. };
  33282. function JpxImage() {
  33283. this.failOnCorruptedImage = false;
  33284. }
  33285. JpxImage.prototype = {
  33286. load: function JpxImage_load(url) {
  33287. var xhr = new XMLHttpRequest();
  33288. xhr.open('GET', url, true);
  33289. xhr.responseType = 'arraybuffer';
  33290. xhr.onload = (function() {
  33291. // TODO catch parse error
  33292. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  33293. this.parse(data);
  33294. if (this.onload)
  33295. this.onload();
  33296. }).bind(this);
  33297. xhr.send(null);
  33298. },
  33299. parse: function JpxImage_parse(data) {
  33300. function readUint(data, offset, bytes) {
  33301. var n = 0;
  33302. for (var i = 0; i < bytes; i++)
  33303. n = n * 256 + (data[offset + i] & 0xFF);
  33304. return n;
  33305. }
  33306. var position = 0, length = data.length;
  33307. while (position < length) {
  33308. var headerSize = 8;
  33309. var lbox = readUint(data, position, 4);
  33310. var tbox = readUint(data, position + 4, 4);
  33311. position += headerSize;
  33312. if (lbox == 1) {
  33313. lbox = readUint(data, position, 8);
  33314. position += 8;
  33315. headerSize += 8;
  33316. }
  33317. if (lbox === 0)
  33318. lbox = length - position + headerSize;
  33319. if (lbox < headerSize)
  33320. error('JPX error: Invalid box field size');
  33321. var dataLength = lbox - headerSize;
  33322. var jumpDataLength = true;
  33323. switch (tbox) {
  33324. case 0x6A501A1A: // 'jP\032\032'
  33325. // TODO
  33326. break;
  33327. case 0x6A703268: // 'jp2h'
  33328. jumpDataLength = false; // parsing child boxes
  33329. break;
  33330. case 0x636F6C72: // 'colr'
  33331. // TODO
  33332. break;
  33333. case 0x6A703263: // 'jp2c'
  33334. this.parseCodestream(data, position, position + dataLength);
  33335. break;
  33336. }
  33337. if (jumpDataLength)
  33338. position += dataLength;
  33339. }
  33340. },
  33341. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  33342. var context = {};
  33343. try {
  33344. var position = start;
  33345. while (position < end) {
  33346. var code = readUint16(data, position);
  33347. position += 2;
  33348. var length = 0, j;
  33349. switch (code) {
  33350. case 0xFF4F: // Start of codestream (SOC)
  33351. context.mainHeader = true;
  33352. break;
  33353. case 0xFFD9: // End of codestream (EOC)
  33354. break;
  33355. case 0xFF51: // Image and tile size (SIZ)
  33356. length = readUint16(data, position);
  33357. var siz = {};
  33358. siz.Xsiz = readUint32(data, position + 4);
  33359. siz.Ysiz = readUint32(data, position + 8);
  33360. siz.XOsiz = readUint32(data, position + 12);
  33361. siz.YOsiz = readUint32(data, position + 16);
  33362. siz.XTsiz = readUint32(data, position + 20);
  33363. siz.YTsiz = readUint32(data, position + 24);
  33364. siz.XTOsiz = readUint32(data, position + 28);
  33365. siz.YTOsiz = readUint32(data, position + 32);
  33366. var componentsCount = readUint16(data, position + 36);
  33367. siz.Csiz = componentsCount;
  33368. var components = [];
  33369. j = position + 38;
  33370. for (var i = 0; i < componentsCount; i++) {
  33371. var component = {
  33372. precision: (data[j] & 0x7F) + 1,
  33373. isSigned: !!(data[j] & 0x80),
  33374. XRsiz: data[j + 1],
  33375. YRsiz: data[j + 1]
  33376. };
  33377. calculateComponentDimensions(component, siz);
  33378. components.push(component);
  33379. }
  33380. context.SIZ = siz;
  33381. context.components = components;
  33382. calculateTileGrids(context, components);
  33383. context.QCC = [];
  33384. context.COC = [];
  33385. break;
  33386. case 0xFF5C: // Quantization default (QCD)
  33387. length = readUint16(data, position);
  33388. var qcd = {};
  33389. j = position + 2;
  33390. var sqcd = data[j++];
  33391. var spqcdSize, scalarExpounded;
  33392. switch (sqcd & 0x1F) {
  33393. case 0:
  33394. spqcdSize = 8;
  33395. scalarExpounded = true;
  33396. break;
  33397. case 1:
  33398. spqcdSize = 16;
  33399. scalarExpounded = false;
  33400. break;
  33401. case 2:
  33402. spqcdSize = 16;
  33403. scalarExpounded = true;
  33404. break;
  33405. default:
  33406. throw 'Invalid SQcd value ' + sqcd;
  33407. }
  33408. qcd.noQuantization = spqcdSize == 8;
  33409. qcd.scalarExpounded = scalarExpounded;
  33410. qcd.guardBits = sqcd >> 5;
  33411. var spqcds = [];
  33412. while (j < length + position) {
  33413. var spqcd = {};
  33414. if (spqcdSize == 8) {
  33415. spqcd.epsilon = data[j++] >> 3;
  33416. spqcd.mu = 0;
  33417. } else {
  33418. spqcd.epsilon = data[j] >> 3;
  33419. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  33420. j += 2;
  33421. }
  33422. spqcds.push(spqcd);
  33423. }
  33424. qcd.SPqcds = spqcds;
  33425. if (context.mainHeader)
  33426. context.QCD = qcd;
  33427. else {
  33428. context.currentTile.QCD = qcd;
  33429. context.currentTile.QCC = [];
  33430. }
  33431. break;
  33432. case 0xFF5D: // Quantization component (QCC)
  33433. length = readUint16(data, position);
  33434. var qcc = {};
  33435. j = position + 2;
  33436. var cqcc;
  33437. if (context.SIZ.Csiz < 257)
  33438. cqcc = data[j++];
  33439. else {
  33440. cqcc = readUint16(data, j);
  33441. j += 2;
  33442. }
  33443. var sqcd = data[j++];
  33444. var spqcdSize, scalarExpounded;
  33445. switch (sqcd & 0x1F) {
  33446. case 0:
  33447. spqcdSize = 8;
  33448. scalarExpounded = true;
  33449. break;
  33450. case 1:
  33451. spqcdSize = 16;
  33452. scalarExpounded = false;
  33453. break;
  33454. case 2:
  33455. spqcdSize = 16;
  33456. scalarExpounded = true;
  33457. break;
  33458. default:
  33459. throw 'Invalid SQcd value ' + sqcd;
  33460. }
  33461. qcc.noQuantization = spqcdSize == 8;
  33462. qcc.scalarExpounded = scalarExpounded;
  33463. qcc.guardBits = sqcd >> 5;
  33464. var spqcds = [];
  33465. while (j < length + position) {
  33466. var spqcd = {};
  33467. if (spqcdSize == 8) {
  33468. spqcd.epsilon = data[j++] >> 3;
  33469. spqcd.mu = 0;
  33470. } else {
  33471. spqcd.epsilon = data[j] >> 3;
  33472. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  33473. j += 2;
  33474. }
  33475. spqcds.push(spqcd);
  33476. }
  33477. qcc.SPqcds = spqcds;
  33478. if (context.mainHeader)
  33479. context.QCC[cqcc] = qcc;
  33480. else
  33481. context.currentTile.QCC[cqcc] = qcc;
  33482. break;
  33483. case 0xFF52: // Coding style default (COD)
  33484. length = readUint16(data, position);
  33485. var cod = {};
  33486. j = position + 2;
  33487. var scod = data[j++];
  33488. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  33489. cod.sopMarkerUsed = !!(scod & 2);
  33490. cod.ephMarkerUsed = !!(scod & 4);
  33491. var codingStyle = {};
  33492. cod.progressionOrder = data[j++];
  33493. cod.layersCount = readUint16(data, j);
  33494. j += 2;
  33495. cod.multipleComponentTransform = data[j++];
  33496. cod.decompositionLevelsCount = data[j++];
  33497. cod.xcb = (data[j++] & 0xF) + 2;
  33498. cod.ycb = (data[j++] & 0xF) + 2;
  33499. var blockStyle = data[j++];
  33500. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  33501. cod.resetContextProbabilities = !!(blockStyle & 2);
  33502. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  33503. cod.verticalyStripe = !!(blockStyle & 8);
  33504. cod.predictableTermination = !!(blockStyle & 16);
  33505. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  33506. cod.transformation = data[j++];
  33507. if (cod.entropyCoderWithCustomPrecincts) {
  33508. var precinctsSizes = {};
  33509. while (j < length + position) {
  33510. var precinctsSize = data[j];
  33511. precinctsSizes.push({
  33512. PPx: precinctsSize & 0xF,
  33513. PPy: precinctsSize >> 4
  33514. });
  33515. }
  33516. cod.precinctsSizes = precinctsSizes;
  33517. }
  33518. if (cod.sopMarkerUsed || cod.ephMarkerUsed ||
  33519. cod.selectiveArithmeticCodingBypass ||
  33520. cod.resetContextProbabilities ||
  33521. cod.terminationOnEachCodingPass ||
  33522. cod.verticalyStripe || cod.predictableTermination)
  33523. throw 'Unsupported COD options: ' +
  33524. globalScope.JSON.stringify(cod);
  33525. if (context.mainHeader)
  33526. context.COD = cod;
  33527. else {
  33528. context.currentTile.COD = cod;
  33529. context.currentTile.COC = [];
  33530. }
  33531. break;
  33532. case 0xFF90: // Start of tile-part (SOT)
  33533. length = readUint16(data, position);
  33534. var tile = {};
  33535. tile.index = readUint16(data, position + 2);
  33536. tile.length = readUint32(data, position + 4);
  33537. tile.dataEnd = tile.length + position - 2;
  33538. tile.partIndex = data[position + 8];
  33539. tile.partsCount = data[position + 9];
  33540. context.mainHeader = false;
  33541. if (tile.partIndex === 0) {
  33542. // reset component specific settings
  33543. tile.COD = context.COD;
  33544. tile.COC = context.COC.slice(0); // clone of the global COC
  33545. tile.QCD = context.QCD;
  33546. tile.QCC = context.QCC.slice(0); // clone of the global COC
  33547. }
  33548. context.currentTile = tile;
  33549. break;
  33550. case 0xFF93: // Start of data (SOD)
  33551. var tile = context.currentTile;
  33552. if (tile.partIndex === 0) {
  33553. initializeTile(context, tile.index);
  33554. buildPackets(context);
  33555. }
  33556. // moving to the end of the data
  33557. length = tile.dataEnd - position;
  33558. parseTilePackets(context, data, position, length);
  33559. break;
  33560. case 0xFF64: // Comment (COM)
  33561. length = readUint16(data, position);
  33562. // skipping content
  33563. break;
  33564. default:
  33565. throw 'Unknown codestream code: ' + code.toString(16);
  33566. }
  33567. position += length;
  33568. }
  33569. } catch (e) {
  33570. if (this.failOnCorruptedImage)
  33571. error('JPX error: ' + e);
  33572. else
  33573. warn('JPX error: ' + e + '. Trying to recover');
  33574. }
  33575. this.tiles = transformComponents(context);
  33576. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  33577. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  33578. this.componentsCount = context.SIZ.Csiz;
  33579. }
  33580. };
  33581. function readUint32(data, offset) {
  33582. return (data[offset] << 24) | (data[offset + 1] << 16) |
  33583. (data[offset + 2] << 8) | data[offset + 3];
  33584. }
  33585. function readUint16(data, offset) {
  33586. return (data[offset] << 8) | data[offset + 1];
  33587. }
  33588. function log2(x) {
  33589. var n = 1, i = 0;
  33590. while (x > n) {
  33591. n <<= 1;
  33592. i++;
  33593. }
  33594. return i;
  33595. }
  33596. function calculateComponentDimensions(component, siz) {
  33597. // Section B.2 Component mapping
  33598. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  33599. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  33600. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  33601. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  33602. component.width = component.x1 - component.x0;
  33603. component.height = component.y1 - component.y0;
  33604. }
  33605. function calculateTileGrids(context, components) {
  33606. var siz = context.SIZ;
  33607. // Section B.3 Division into tile and tile-components
  33608. var tiles = [];
  33609. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  33610. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  33611. for (var q = 0; q < numYtiles; q++) {
  33612. for (var p = 0; p < numXtiles; p++) {
  33613. var tile = {};
  33614. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  33615. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  33616. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  33617. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  33618. tile.width = tile.tx1 - tile.tx0;
  33619. tile.height = tile.ty1 - tile.ty0;
  33620. tile.components = [];
  33621. tiles.push(tile);
  33622. }
  33623. }
  33624. context.tiles = tiles;
  33625. var componentsCount = siz.Csiz;
  33626. for (var i = 0, ii = componentsCount; i < ii; i++) {
  33627. var component = components[i];
  33628. var tileComponents = [];
  33629. for (var j = 0, jj = tiles.length; j < jj; j++) {
  33630. var tileComponent = {}, tile = tiles[j];
  33631. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  33632. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  33633. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  33634. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  33635. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  33636. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  33637. tile.components[i] = tileComponent;
  33638. }
  33639. }
  33640. }
  33641. function getBlocksDimensions(context, component, r) {
  33642. var codOrCoc = component.codingStyleParameters;
  33643. var result = {};
  33644. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  33645. result.PPx = 15;
  33646. result.PPy = 15;
  33647. } else {
  33648. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  33649. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  33650. }
  33651. // calculate codeblock size as described in section B.7
  33652. result.xcb_ = r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  33653. Math.min(codOrCoc.xcb, result.PPx);
  33654. result.ycb_ = r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  33655. Math.min(codOrCoc.ycb, result.PPy);
  33656. return result;
  33657. }
  33658. function buildPrecincts(context, resolution, dimensions) {
  33659. // Section B.6 Division resolution to precincts
  33660. var precinctWidth = 1 << dimensions.PPx;
  33661. var precinctHeight = 1 << dimensions.PPy;
  33662. var numprecinctswide = resolution.trx1 > resolution.trx0 ?
  33663. Math.ceil(resolution.trx1 / precinctWidth) -
  33664. Math.floor(resolution.trx0 / precinctWidth) : 0;
  33665. var numprecinctshigh = resolution.try1 > resolution.try0 ?
  33666. Math.ceil(resolution.try1 / precinctHeight) -
  33667. Math.floor(resolution.try0 / precinctHeight) : 0;
  33668. var numprecincts = numprecinctswide * numprecinctshigh;
  33669. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  33670. precinctWidth;
  33671. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  33672. precinctHeight;
  33673. resolution.precinctParameters = {
  33674. precinctXOffset: precinctXOffset,
  33675. precinctYOffset: precinctYOffset,
  33676. precinctWidth: precinctWidth,
  33677. precinctHeight: precinctHeight,
  33678. numprecinctswide: numprecinctswide,
  33679. numprecinctshigh: numprecinctshigh,
  33680. numprecincts: numprecincts
  33681. };
  33682. }
  33683. function buildCodeblocks(context, subband, dimensions) {
  33684. // Section B.7 Division sub-band into code-blocks
  33685. var xcb_ = dimensions.xcb_;
  33686. var ycb_ = dimensions.ycb_;
  33687. var codeblockWidth = 1 << xcb_;
  33688. var codeblockHeight = 1 << ycb_;
  33689. var cbx0 = Math.floor(subband.tbx0 / codeblockWidth);
  33690. var cby0 = Math.floor(subband.tby0 / codeblockHeight);
  33691. var cbx1 = Math.ceil(subband.tbx1 / codeblockWidth);
  33692. var cby1 = Math.ceil(subband.tby1 / codeblockHeight);
  33693. var precinctParameters = subband.resolution.precinctParameters;
  33694. var codeblocks = [];
  33695. var precincts = [];
  33696. for (var j = cby0; j < cby1; j++) {
  33697. for (var i = cbx0; i < cbx1; i++) {
  33698. var codeblock = {
  33699. cbx: i,
  33700. cby: j,
  33701. tbx0: codeblockWidth * i,
  33702. tby0: codeblockHeight * j,
  33703. tbx1: codeblockWidth * (i + 1),
  33704. tby1: codeblockHeight * (j + 1)
  33705. };
  33706. // calculate precinct number
  33707. var pi = Math.floor((codeblock.tbx0 -
  33708. precinctParameters.precinctXOffset) /
  33709. precinctParameters.precinctWidth);
  33710. var pj = Math.floor((codeblock.tby0 -
  33711. precinctParameters.precinctYOffset) /
  33712. precinctParameters.precinctHeight);
  33713. var precinctNumber = pj +
  33714. pi * precinctParameters.numprecinctswide;
  33715. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  33716. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  33717. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  33718. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  33719. codeblock.precinctNumber = precinctNumber;
  33720. codeblock.subbandType = subband.type;
  33721. var coefficientsLength = (codeblock.tbx1_ - codeblock.tbx0_) *
  33722. (codeblock.tby1_ - codeblock.tby0_);
  33723. codeblock.Lblock = 3;
  33724. codeblocks.push(codeblock);
  33725. // building precinct for the sub-band
  33726. var precinct;
  33727. if (precinctNumber in precincts) {
  33728. precinct = precincts[precinctNumber];
  33729. precinct.cbxMin = Math.min(precinct.cbxMin, i);
  33730. precinct.cbyMin = Math.min(precinct.cbyMin, j);
  33731. precinct.cbxMax = Math.max(precinct.cbxMax, i);
  33732. precinct.cbyMax = Math.max(precinct.cbyMax, j);
  33733. } else {
  33734. precincts[precinctNumber] = precinct = {
  33735. cbxMin: i,
  33736. cbyMin: j,
  33737. cbxMax: i,
  33738. cbyMax: j
  33739. };
  33740. }
  33741. codeblock.precinct = precinct;
  33742. }
  33743. }
  33744. subband.codeblockParameters = {
  33745. codeblockWidth: xcb_,
  33746. codeblockHeight: ycb_,
  33747. numcodeblockwide: cbx1 - cbx0 + 1,
  33748. numcodeblockhigh: cby1 - cby1 + 1
  33749. };
  33750. subband.codeblocks = codeblocks;
  33751. for (var i = 0, ii = codeblocks.length; i < ii; i++) {
  33752. var codeblock = codeblocks[i];
  33753. var precinctNumber = codeblock.precinctNumber;
  33754. }
  33755. subband.precincts = precincts;
  33756. }
  33757. function createPacket(resolution, precinctNumber, layerNumber) {
  33758. var precinctCodeblocks = [];
  33759. // Section B.10.8 Order of info in packet
  33760. var subbands = resolution.subbands;
  33761. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  33762. for (var i = 0, ii = subbands.length; i < ii; i++) {
  33763. var subband = subbands[i];
  33764. var codeblocks = subband.codeblocks;
  33765. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  33766. var codeblock = codeblocks[j];
  33767. if (codeblock.precinctNumber != precinctNumber)
  33768. continue;
  33769. precinctCodeblocks.push(codeblock);
  33770. }
  33771. }
  33772. return {
  33773. layerNumber: layerNumber,
  33774. codeblocks: precinctCodeblocks
  33775. };
  33776. }
  33777. function LayerResolutionComponentPositionIterator(context) {
  33778. var siz = context.SIZ;
  33779. var tileIndex = context.currentTile.index;
  33780. var tile = context.tiles[tileIndex];
  33781. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  33782. var componentsCount = siz.Csiz;
  33783. var maxDecompositionLevelsCount = 0;
  33784. for (var q = 0; q < componentsCount; q++) {
  33785. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  33786. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  33787. }
  33788. var l = 0, r = 0, i = 0, k = 0;
  33789. this.nextPacket = function JpxImage_nextPacket() {
  33790. // Section B.12.1.1 Layer-resolution-component-position
  33791. for (; l < layersCount; l++) {
  33792. for (; r <= maxDecompositionLevelsCount; r++) {
  33793. for (; i < componentsCount; i++) {
  33794. var component = tile.components[i];
  33795. if (r > component.codingStyleParameters.decompositionLevelsCount)
  33796. continue;
  33797. var resolution = component.resolutions[r];
  33798. var numprecincts = resolution.precinctParameters.numprecincts;
  33799. for (; k < numprecincts;) {
  33800. var packet = createPacket(resolution, k, l);
  33801. k++;
  33802. return packet;
  33803. }
  33804. k = 0;
  33805. }
  33806. i = 0;
  33807. }
  33808. r = 0;
  33809. }
  33810. throw 'Out of packets';
  33811. };
  33812. }
  33813. function ResolutionLayerComponentPositionIterator(context) {
  33814. var siz = context.SIZ;
  33815. var tileIndex = context.currentTile.index;
  33816. var tile = context.tiles[tileIndex];
  33817. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  33818. var componentsCount = siz.Csiz;
  33819. var maxDecompositionLevelsCount = 0;
  33820. for (var q = 0; q < componentsCount; q++) {
  33821. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  33822. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  33823. }
  33824. var r = 0, l = 0, i = 0, k = 0;
  33825. this.nextPacket = function JpxImage_nextPacket() {
  33826. // Section B.12.1.2 Resolution-layer-component-position
  33827. for (; r <= maxDecompositionLevelsCount; r++) {
  33828. for (; l < layersCount; l++) {
  33829. for (; i < componentsCount; i++) {
  33830. var component = tile.components[i];
  33831. if (r > component.codingStyleParameters.decompositionLevelsCount)
  33832. continue;
  33833. var resolution = component.resolutions[r];
  33834. var numprecincts = resolution.precinctParameters.numprecincts;
  33835. for (; k < numprecincts;) {
  33836. var packet = createPacket(resolution, k, l);
  33837. k++;
  33838. return packet;
  33839. }
  33840. k = 0;
  33841. }
  33842. i = 0;
  33843. }
  33844. l = 0;
  33845. }
  33846. throw 'Out of packets';
  33847. };
  33848. }
  33849. function buildPackets(context) {
  33850. var siz = context.SIZ;
  33851. var tileIndex = context.currentTile.index;
  33852. var tile = context.tiles[tileIndex];
  33853. var componentsCount = siz.Csiz;
  33854. // Creating resolutions and sub-bands for each component
  33855. for (var c = 0; c < componentsCount; c++) {
  33856. var component = tile.components[c];
  33857. var decompositionLevelsCount =
  33858. component.codingStyleParameters.decompositionLevelsCount;
  33859. // Section B.5 Resolution levels and sub-bands
  33860. var resolutions = [];
  33861. var subbands = [];
  33862. for (var r = 0; r <= decompositionLevelsCount; r++) {
  33863. var blocksDimensions = getBlocksDimensions(context, component, r);
  33864. var resolution = {};
  33865. var scale = 1 << (decompositionLevelsCount - r);
  33866. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  33867. resolution.try0 = Math.ceil(component.tcy0 / scale);
  33868. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  33869. resolution.try1 = Math.ceil(component.tcy1 / scale);
  33870. buildPrecincts(context, resolution, blocksDimensions);
  33871. resolutions.push(resolution);
  33872. var subband;
  33873. if (r === 0) {
  33874. // one sub-band (LL) with last decomposition
  33875. subband = {};
  33876. subband.type = 'LL';
  33877. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  33878. subband.tby0 = Math.ceil(component.tcy0 / scale);
  33879. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  33880. subband.tby1 = Math.ceil(component.tcy1 / scale);
  33881. subband.resolution = resolution;
  33882. buildCodeblocks(context, subband, blocksDimensions);
  33883. subbands.push(subband);
  33884. resolution.subbands = [subband];
  33885. } else {
  33886. var bscale = 1 << (decompositionLevelsCount - r + 1);
  33887. var resolutionSubbands = [];
  33888. // three sub-bands (HL, LH and HH) with rest of decompositions
  33889. subband = {};
  33890. subband.type = 'HL';
  33891. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  33892. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  33893. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  33894. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  33895. subband.resolution = resolution;
  33896. buildCodeblocks(context, subband, blocksDimensions);
  33897. subbands.push(subband);
  33898. resolutionSubbands.push(subband);
  33899. subband = {};
  33900. subband.type = 'LH';
  33901. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  33902. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  33903. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  33904. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  33905. subband.resolution = resolution;
  33906. buildCodeblocks(context, subband, blocksDimensions);
  33907. subbands.push(subband);
  33908. resolutionSubbands.push(subband);
  33909. subband = {};
  33910. subband.type = 'HH';
  33911. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  33912. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  33913. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  33914. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  33915. subband.resolution = resolution;
  33916. buildCodeblocks(context, subband, blocksDimensions);
  33917. subbands.push(subband);
  33918. resolutionSubbands.push(subband);
  33919. resolution.subbands = resolutionSubbands;
  33920. }
  33921. }
  33922. component.resolutions = resolutions;
  33923. component.subbands = subbands;
  33924. }
  33925. // Generate the packets sequence
  33926. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  33927. var packetsIterator;
  33928. switch (progressionOrder) {
  33929. case 0:
  33930. tile.packetsIterator =
  33931. new LayerResolutionComponentPositionIterator(context);
  33932. break;
  33933. case 1:
  33934. tile.packetsIterator =
  33935. new ResolutionLayerComponentPositionIterator(context);
  33936. break;
  33937. default:
  33938. throw 'Unsupported progression order ' + progressionOrder;
  33939. }
  33940. }
  33941. function parseTilePackets(context, data, offset, dataLength) {
  33942. var position = 0;
  33943. var buffer, bufferSize = 0, skipNextBit = false;
  33944. function readBits(count) {
  33945. while (bufferSize < count) {
  33946. var b = data[offset + position];
  33947. position++;
  33948. if (skipNextBit) {
  33949. buffer = (buffer << 7) | b;
  33950. bufferSize += 7;
  33951. skipNextBit = false;
  33952. } else {
  33953. buffer = (buffer << 8) | b;
  33954. bufferSize += 8;
  33955. }
  33956. if (b == 0xFF) {
  33957. skipNextBit = true;
  33958. }
  33959. }
  33960. bufferSize -= count;
  33961. return (buffer >>> bufferSize) & ((1 << count) - 1);
  33962. }
  33963. function alignToByte() {
  33964. bufferSize = 0;
  33965. if (skipNextBit) {
  33966. position++;
  33967. skipNextBit = false;
  33968. }
  33969. }
  33970. function readCodingpasses() {
  33971. var value = readBits(1);
  33972. if (value === 0)
  33973. return 1;
  33974. value = (value << 1) | readBits(1);
  33975. if (value == 0x02)
  33976. return 2;
  33977. value = (value << 2) | readBits(2);
  33978. if (value <= 0x0E)
  33979. return (value & 0x03) + 3;
  33980. value = (value << 5) | readBits(5);
  33981. if (value <= 0x1FE)
  33982. return (value & 0x1F) + 6;
  33983. value = (value << 7) | readBits(7);
  33984. return (value & 0x7F) + 37;
  33985. }
  33986. var tileIndex = context.currentTile.index;
  33987. var tile = context.tiles[tileIndex];
  33988. var packetsIterator = tile.packetsIterator;
  33989. while (position < dataLength) {
  33990. var packet = packetsIterator.nextPacket();
  33991. if (!readBits(1)) {
  33992. alignToByte();
  33993. continue;
  33994. }
  33995. var layerNumber = packet.layerNumber;
  33996. var queue = [];
  33997. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  33998. var codeblock = packet.codeblocks[i];
  33999. var precinct = codeblock.precinct;
  34000. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  34001. var codeblockRow = codeblock.cby - precinct.cbyMin;
  34002. var codeblockIncluded = false;
  34003. var firstTimeInclusion = false;
  34004. if ('included' in codeblock) {
  34005. codeblockIncluded = !!readBits(1);
  34006. } else {
  34007. // reading inclusion tree
  34008. var precinct = codeblock.precinct;
  34009. var inclusionTree, zeroBitPlanesTree;
  34010. if ('inclusionTree' in precinct) {
  34011. inclusionTree = precinct.inclusionTree;
  34012. } else {
  34013. // building inclusion and zero bit-planes trees
  34014. var width = precinct.cbxMax - precinct.cbxMin + 1;
  34015. var height = precinct.cbyMax - precinct.cbyMin + 1;
  34016. inclusionTree = new InclusionTree(width, height, layerNumber);
  34017. zeroBitPlanesTree = new TagTree(width, height);
  34018. precinct.inclusionTree = inclusionTree;
  34019. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  34020. }
  34021. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  34022. while (true) {
  34023. if (readBits(1)) {
  34024. var valueReady = !inclusionTree.nextLevel();
  34025. if (valueReady) {
  34026. codeblock.included = true;
  34027. codeblockIncluded = firstTimeInclusion = true;
  34028. break;
  34029. }
  34030. } else {
  34031. inclusionTree.incrementValue(layerNumber);
  34032. break;
  34033. }
  34034. }
  34035. }
  34036. }
  34037. if (!codeblockIncluded)
  34038. continue;
  34039. if (firstTimeInclusion) {
  34040. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  34041. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  34042. while (true) {
  34043. if (readBits(1)) {
  34044. var valueReady = !zeroBitPlanesTree.nextLevel();
  34045. if (valueReady)
  34046. break;
  34047. } else
  34048. zeroBitPlanesTree.incrementValue();
  34049. }
  34050. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  34051. }
  34052. var codingpasses = readCodingpasses();
  34053. while (readBits(1))
  34054. codeblock.Lblock++;
  34055. var codingpassesLog2 = log2(codingpasses);
  34056. // rounding down log2
  34057. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  34058. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  34059. var codedDataLength = readBits(bits);
  34060. queue.push({
  34061. codeblock: codeblock,
  34062. codingpasses: codingpasses,
  34063. dataLength: codedDataLength
  34064. });
  34065. }
  34066. alignToByte();
  34067. while (queue.length > 0) {
  34068. var packetItem = queue.shift();
  34069. var codeblock = packetItem.codeblock;
  34070. if (!('data' in codeblock))
  34071. codeblock.data = [];
  34072. codeblock.data.push({
  34073. data: data,
  34074. start: offset + position,
  34075. end: offset + position + packetItem.dataLength,
  34076. codingpasses: packetItem.codingpasses
  34077. });
  34078. position += packetItem.dataLength;
  34079. }
  34080. }
  34081. return position;
  34082. }
  34083. function copyCoefficients(coefficients, x0, y0, width, height,
  34084. delta, mb, codeblocks, transformation,
  34085. segmentationSymbolUsed) {
  34086. var r = 0.5; // formula (E-6)
  34087. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  34088. var codeblock = codeblocks[i];
  34089. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  34090. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  34091. if (blockWidth === 0 || blockHeight === 0)
  34092. continue;
  34093. if (!('data' in codeblock))
  34094. continue;
  34095. var bitModel, currentCodingpassType;
  34096. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  34097. codeblock.zeroBitPlanes);
  34098. currentCodingpassType = 2; // first bit plane starts from cleanup
  34099. // collect data
  34100. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  34101. for (var q = 0, qq = data.length; q < qq; q++) {
  34102. var dataItem = data[q];
  34103. totalLength += dataItem.end - dataItem.start;
  34104. codingpasses += dataItem.codingpasses;
  34105. }
  34106. var encodedData = new Uint8Array(totalLength), k = 0;
  34107. for (var q = 0, qq = data.length; q < qq; q++) {
  34108. var dataItem = data[q];
  34109. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  34110. encodedData.set(chunk, k);
  34111. k += chunk.length;
  34112. }
  34113. // decoding the item
  34114. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  34115. bitModel.setDecoder(decoder);
  34116. for (var q = 0; q < codingpasses; q++) {
  34117. switch (currentCodingpassType) {
  34118. case 0:
  34119. bitModel.runSignificancePropogationPass();
  34120. break;
  34121. case 1:
  34122. bitModel.runMagnitudeRefinementPass();
  34123. break;
  34124. case 2:
  34125. bitModel.runCleanupPass();
  34126. if (segmentationSymbolUsed)
  34127. bitModel.checkSegmentationSymbol();
  34128. break;
  34129. }
  34130. currentCodingpassType = (currentCodingpassType + 1) % 3;
  34131. }
  34132. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  34133. var position = 0;
  34134. for (var j = 0; j < blockHeight; j++) {
  34135. for (var k = 0; k < blockWidth; k++) {
  34136. var n = (bitModel.coefficentsSign[position] ? -1 : 1) *
  34137. bitModel.coefficentsMagnitude[position];
  34138. var nb = bitModel.bitsDecoded[position], correction;
  34139. if (transformation === 0 || mb > nb) {
  34140. // use r only if transformation is irreversible or
  34141. // not all bitplanes were decoded for reversible transformation
  34142. n += n < 0 ? n - r : n > 0 ? n + r : 0;
  34143. correction = 1 << (mb - nb);
  34144. } else
  34145. correction = 1;
  34146. coefficients[offset++] = n * correction * delta;
  34147. position++;
  34148. }
  34149. offset += width - blockWidth;
  34150. }
  34151. }
  34152. }
  34153. function transformTile(context, tile, c) {
  34154. var component = tile.components[c];
  34155. var codingStyleParameters = component.codingStyleParameters;
  34156. var quantizationParameters = component.quantizationParameters;
  34157. var decompositionLevelsCount =
  34158. codingStyleParameters.decompositionLevelsCount;
  34159. var spqcds = quantizationParameters.SPqcds;
  34160. var scalarExpounded = quantizationParameters.scalarExpounded;
  34161. var guardBits = quantizationParameters.guardBits;
  34162. var transformation = codingStyleParameters.transformation;
  34163. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  34164. var precision = context.components[c].precision;
  34165. var subbandCoefficients = [];
  34166. var k = 0, b = 0;
  34167. for (var i = 0; i <= decompositionLevelsCount; i++) {
  34168. var resolution = component.resolutions[i];
  34169. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  34170. var mu, epsilon;
  34171. if (!scalarExpounded) {
  34172. // formula E-5
  34173. mu = spqcds[0].mu;
  34174. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  34175. } else {
  34176. mu = spqcds[b].mu;
  34177. epsilon = spqcds[b].epsilon;
  34178. }
  34179. var subband = resolution.subbands[j];
  34180. var width = subband.tbx1 - subband.tbx0;
  34181. var height = subband.tby1 - subband.tby0;
  34182. var gainLog2 = SubbandsGainLog2[subband.type];
  34183. // calulate quantization coefficient (Section E.1.1.1)
  34184. var delta = Math.pow(2, (precision + gainLog2) - epsilon) *
  34185. (1 + mu / 2048);
  34186. var mb = (guardBits + epsilon - 1);
  34187. var coefficients = new Float32Array(width * height);
  34188. copyCoefficients(coefficients, subband.tbx0, subband.tby0,
  34189. width, height, delta, mb, subband.codeblocks, transformation,
  34190. segmentationSymbolUsed);
  34191. subbandCoefficients.push({
  34192. width: width,
  34193. height: height,
  34194. items: coefficients
  34195. });
  34196. b++;
  34197. }
  34198. }
  34199. var transformation = codingStyleParameters.transformation;
  34200. var transform = transformation === 0 ? new IrreversibleTransform() :
  34201. new ReversibleTransform();
  34202. var result = transform.calculate(subbandCoefficients,
  34203. component.tcx0, component.tcy0);
  34204. return {
  34205. left: component.tcx0,
  34206. top: component.tcy0,
  34207. width: result.width,
  34208. height: result.height,
  34209. items: result.items
  34210. };
  34211. }
  34212. function transformComponents(context) {
  34213. var siz = context.SIZ;
  34214. var components = context.components;
  34215. var componentsCount = siz.Csiz;
  34216. var resultImages = [];
  34217. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  34218. var tile = context.tiles[i];
  34219. var result = [];
  34220. for (var c = 0; c < componentsCount; c++) {
  34221. var image = transformTile(context, tile, c);
  34222. result.push(image);
  34223. }
  34224. // Section G.2.2 Inverse multi component transform
  34225. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  34226. var y0items = result[0].items;
  34227. var y1items = result[1].items;
  34228. var y2items = result[2].items;
  34229. for (var j = 0, jj = y0items.length; j < jj; j++) {
  34230. var y0 = y0items[j], y1 = y1items[j], y2 = y2items[j];
  34231. var i1 = y0 - ((y2 + y1) >> 2);
  34232. y1items[j] = i1;
  34233. y0items[j] = y2 + i1;
  34234. y2items[j] = y1 + i1;
  34235. }
  34236. }
  34237. // Section G.1 DC level shifting to unsigned component values
  34238. for (var c = 0; c < componentsCount; c++) {
  34239. var component = components[c];
  34240. if (component.isSigned)
  34241. continue;
  34242. var offset = 1 << (component.precision - 1);
  34243. var tileImage = result[c];
  34244. var items = tileImage.items;
  34245. for (var j = 0, jj = items.length; j < jj; j++)
  34246. items[j] += offset;
  34247. }
  34248. // To simplify things: shift and clamp output to 8 bit unsigned
  34249. for (var c = 0; c < componentsCount; c++) {
  34250. var component = components[c];
  34251. var offset = component.isSigned ? 128 : 0;
  34252. var shift = component.precision - 8;
  34253. var tileImage = result[c];
  34254. var items = tileImage.items;
  34255. var data = new Uint8Array(items.length);
  34256. for (var j = 0, jj = items.length; j < jj; j++) {
  34257. var value = (items[j] >> shift) + offset;
  34258. data[j] = value < 0 ? 0 : value > 255 ? 255 : value;
  34259. }
  34260. result[c].items = data;
  34261. }
  34262. resultImages.push(result);
  34263. }
  34264. return resultImages;
  34265. }
  34266. function initializeTile(context, tileIndex) {
  34267. var siz = context.SIZ;
  34268. var componentsCount = siz.Csiz;
  34269. var tile = context.tiles[tileIndex];
  34270. var resultTiles = [];
  34271. for (var c = 0; c < componentsCount; c++) {
  34272. var component = tile.components[c];
  34273. var qcdOrQcc = c in context.currentTile.QCC ?
  34274. context.currentTile.QCC[c] : context.currentTile.QCD;
  34275. component.quantizationParameters = qcdOrQcc;
  34276. var codOrCoc = c in context.currentTile.COC ?
  34277. context.currentTile.COC[c] : context.currentTile.COD;
  34278. component.codingStyleParameters = codOrCoc;
  34279. }
  34280. tile.codingStyleDefaultParameters = context.currentTile.COD;
  34281. }
  34282. // Section B.10.2 Tag trees
  34283. var TagTree = (function TagTreeClosure() {
  34284. function TagTree(width, height) {
  34285. var levelsLength = log2(Math.max(width, height)) + 1;
  34286. this.levels = [];
  34287. for (var i = 0; i < levelsLength; i++) {
  34288. var level = {
  34289. width: width,
  34290. height: height,
  34291. items: []
  34292. };
  34293. this.levels.push(level);
  34294. width = Math.ceil(width / 2);
  34295. height = Math.ceil(height / 2);
  34296. }
  34297. }
  34298. TagTree.prototype = {
  34299. reset: function TagTree_reset(i, j) {
  34300. var currentLevel = 0, value = 0;
  34301. while (currentLevel < this.levels.length) {
  34302. var level = this.levels[currentLevel];
  34303. var index = i + j * level.width;
  34304. if (index in level.items) {
  34305. value = level.items[index];
  34306. break;
  34307. }
  34308. level.index = index;
  34309. i >>= 1;
  34310. j >>= 1;
  34311. currentLevel++;
  34312. }
  34313. currentLevel--;
  34314. var level = this.levels[currentLevel];
  34315. level.items[level.index] = value;
  34316. this.currentLevel = currentLevel;
  34317. delete this.value;
  34318. },
  34319. incrementValue: function TagTree_incrementValue() {
  34320. var level = this.levels[this.currentLevel];
  34321. level.items[level.index]++;
  34322. },
  34323. nextLevel: function TagTree_nextLevel() {
  34324. var currentLevel = this.currentLevel;
  34325. var level = this.levels[currentLevel];
  34326. var value = level.items[level.index];
  34327. currentLevel--;
  34328. if (currentLevel < 0) {
  34329. this.value = value;
  34330. return false;
  34331. }
  34332. this.currentLevel = currentLevel;
  34333. var level = this.levels[currentLevel];
  34334. level.items[level.index] = value;
  34335. return true;
  34336. }
  34337. };
  34338. return TagTree;
  34339. })();
  34340. var InclusionTree = (function InclusionTreeClosure() {
  34341. function InclusionTree(width, height, defaultValue) {
  34342. var levelsLength = log2(Math.max(width, height)) + 1;
  34343. this.levels = [];
  34344. for (var i = 0; i < levelsLength; i++) {
  34345. var items = new Uint8Array(width * height);
  34346. for (var j = 0, jj = items.length; j < jj; j++)
  34347. items[j] = defaultValue;
  34348. var level = {
  34349. width: width,
  34350. height: height,
  34351. items: items
  34352. };
  34353. this.levels.push(level);
  34354. width = Math.ceil(width / 2);
  34355. height = Math.ceil(height / 2);
  34356. }
  34357. }
  34358. InclusionTree.prototype = {
  34359. reset: function InclusionTree_reset(i, j, stopValue) {
  34360. var currentLevel = 0;
  34361. while (currentLevel < this.levels.length) {
  34362. var level = this.levels[currentLevel];
  34363. var index = i + j * level.width;
  34364. level.index = index;
  34365. var value = level.items[index];
  34366. if (value == 0xFF)
  34367. break;
  34368. if (value > stopValue) {
  34369. this.currentLevel = currentLevel;
  34370. // already know about this one, propagating the value to top levels
  34371. this.propagateValues();
  34372. return false;
  34373. }
  34374. i >>= 1;
  34375. j >>= 1;
  34376. currentLevel++;
  34377. }
  34378. this.currentLevel = currentLevel - 1;
  34379. return true;
  34380. },
  34381. incrementValue: function InclusionTree_incrementValue(stopValue) {
  34382. var level = this.levels[this.currentLevel];
  34383. level.items[level.index] = stopValue + 1;
  34384. this.propagateValues();
  34385. },
  34386. propagateValues: function InclusionTree_propagateValues() {
  34387. var levelIndex = this.currentLevel;
  34388. var level = this.levels[levelIndex];
  34389. var currentValue = level.items[level.index];
  34390. while (--levelIndex >= 0) {
  34391. var level = this.levels[levelIndex];
  34392. level.items[level.index] = currentValue;
  34393. }
  34394. },
  34395. nextLevel: function InclusionTree_nextLevel() {
  34396. var currentLevel = this.currentLevel;
  34397. var level = this.levels[currentLevel];
  34398. var value = level.items[level.index];
  34399. level.items[level.index] = 0xFF;
  34400. currentLevel--;
  34401. if (currentLevel < 0)
  34402. return false;
  34403. this.currentLevel = currentLevel;
  34404. var level = this.levels[currentLevel];
  34405. level.items[level.index] = value;
  34406. return true;
  34407. }
  34408. };
  34409. return InclusionTree;
  34410. })();
  34411. // Implements C.3. Arithmetic decoding procedures
  34412. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  34413. var QeTable = [
  34414. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  34415. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  34416. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  34417. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  34418. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  34419. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  34420. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  34421. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  34422. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  34423. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  34424. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  34425. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  34426. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  34427. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  34428. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  34429. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  34430. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  34431. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  34432. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  34433. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  34434. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  34435. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  34436. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  34437. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  34438. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  34439. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  34440. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  34441. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  34442. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  34443. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  34444. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  34445. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  34446. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  34447. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  34448. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  34449. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  34450. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  34451. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  34452. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  34453. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  34454. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  34455. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  34456. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  34457. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  34458. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  34459. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  34460. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  34461. ];
  34462. function ArithmeticDecoder(data, start, end) {
  34463. this.data = data;
  34464. this.bp = start;
  34465. this.dataEnd = end;
  34466. this.chigh = data[start];
  34467. this.clow = 0;
  34468. this.byteIn();
  34469. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  34470. this.clow = (this.clow << 7) & 0xFFFF;
  34471. this.ct -= 7;
  34472. this.a = 0x8000;
  34473. }
  34474. ArithmeticDecoder.prototype = {
  34475. byteIn: function ArithmeticDecoder_byteIn() {
  34476. var data = this.data;
  34477. var bp = this.bp;
  34478. if (data[bp] == 0xFF) {
  34479. var b1 = data[bp + 1];
  34480. if (b1 > 0x8F) {
  34481. this.clow += 0xFF00;
  34482. this.ct = 8;
  34483. } else {
  34484. bp++;
  34485. this.clow += (data[bp] << 9);
  34486. this.ct = 7;
  34487. this.bp = bp;
  34488. }
  34489. } else {
  34490. bp++;
  34491. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  34492. this.ct = 8;
  34493. this.bp = bp;
  34494. }
  34495. if (this.clow > 0xFFFF) {
  34496. this.chigh += (this.clow >> 16);
  34497. this.clow &= 0xFFFF;
  34498. }
  34499. },
  34500. readBit: function ArithmeticDecoder_readBit(cx) {
  34501. var qeIcx = QeTable[cx.index].qe;
  34502. this.a -= qeIcx;
  34503. if (this.chigh < qeIcx) {
  34504. var d = this.exchangeLps(cx);
  34505. this.renormD();
  34506. return d;
  34507. } else {
  34508. this.chigh -= qeIcx;
  34509. if ((this.a & 0x8000) === 0) {
  34510. var d = this.exchangeMps(cx);
  34511. this.renormD();
  34512. return d;
  34513. } else {
  34514. return cx.mps;
  34515. }
  34516. }
  34517. },
  34518. renormD: function ArithmeticDecoder_renormD() {
  34519. do {
  34520. if (this.ct === 0)
  34521. this.byteIn();
  34522. this.a <<= 1;
  34523. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  34524. this.clow = (this.clow << 1) & 0xFFFF;
  34525. this.ct--;
  34526. } while ((this.a & 0x8000) === 0);
  34527. },
  34528. exchangeMps: function ArithmeticDecoder_exchangeMps(cx) {
  34529. var d;
  34530. var qeTableIcx = QeTable[cx.index];
  34531. if (this.a < qeTableIcx.qe) {
  34532. d = 1 - cx.mps;
  34533. if (qeTableIcx.switchFlag == 1) {
  34534. cx.mps = 1 - cx.mps;
  34535. }
  34536. cx.index = qeTableIcx.nlps;
  34537. } else {
  34538. d = cx.mps;
  34539. cx.index = qeTableIcx.nmps;
  34540. }
  34541. return d;
  34542. },
  34543. exchangeLps: function ArithmeticDecoder_exchangeLps(cx) {
  34544. var d;
  34545. var qeTableIcx = QeTable[cx.index];
  34546. if (this.a < qeTableIcx.qe) {
  34547. this.a = qeTableIcx.qe;
  34548. d = cx.mps;
  34549. cx.index = qeTableIcx.nmps;
  34550. } else {
  34551. this.a = qeTableIcx.qe;
  34552. d = 1 - cx.mps;
  34553. if (qeTableIcx.switchFlag == 1) {
  34554. cx.mps = 1 - cx.mps;
  34555. }
  34556. cx.index = qeTableIcx.nlps;
  34557. }
  34558. return d;
  34559. }
  34560. };
  34561. return ArithmeticDecoder;
  34562. })();
  34563. // Section D. Coefficient bit modeling
  34564. var BitModel = (function BitModelClosure() {
  34565. // Table D-1
  34566. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  34567. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  34568. var LLAndLHContextsLabel = new Uint8Array([
  34569. 0, 5, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 1, 6, 8, 0, 3, 7, 8, 0, 4,
  34570. 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6,
  34571. 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8
  34572. ]);
  34573. var HLContextLabel = new Uint8Array([
  34574. 0, 3, 4, 0, 5, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 1, 3, 4, 0, 6, 7, 7, 0, 8,
  34575. 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3,
  34576. 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8
  34577. ]);
  34578. var HHContextLabel = new Uint8Array([
  34579. 0, 1, 2, 0, 1, 2, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 3, 4, 5, 0, 4, 5, 5, 0, 5,
  34580. 5, 5, 0, 0, 0, 0, 0, 6, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 0, 0, 0, 0, 8, 8,
  34581. 8, 0, 8, 8, 8, 0, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 8, 8, 8, 0, 8, 8, 8
  34582. ]);
  34583. // Table D-2
  34584. function calcSignContribution(significance0, sign0, significance1, sign1) {
  34585. if (significance1) {
  34586. if (!sign1)
  34587. return significance0 ? (!sign0 ? 1 : 0) : 1;
  34588. else
  34589. return significance0 ? (!sign0 ? 0 : -1) : -1;
  34590. } else
  34591. return significance0 ? (!sign0 ? 1 : -1) : 0;
  34592. }
  34593. // Table D-3
  34594. var SignContextLabels = [
  34595. {contextLabel: 13, xorBit: 0},
  34596. {contextLabel: 12, xorBit: 0},
  34597. {contextLabel: 11, xorBit: 0},
  34598. {contextLabel: 10, xorBit: 0},
  34599. {contextLabel: 9, xorBit: 0},
  34600. {contextLabel: 10, xorBit: 1},
  34601. {contextLabel: 11, xorBit: 1},
  34602. {contextLabel: 12, xorBit: 1},
  34603. {contextLabel: 13, xorBit: 1}
  34604. ];
  34605. function BitModel(width, height, subband, zeroBitPlanes) {
  34606. this.width = width;
  34607. this.height = height;
  34608. this.contextLabelTable = subband == 'HH' ? HHContextLabel :
  34609. subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel;
  34610. var coefficientCount = width * height;
  34611. // coefficients outside the encoding region treated as insignificant
  34612. // add border state cells for significanceState
  34613. this.neighborsSignificance = new Uint8Array(coefficientCount);
  34614. this.coefficentsSign = new Uint8Array(coefficientCount);
  34615. this.coefficentsMagnitude = new Uint32Array(coefficientCount);
  34616. this.processingFlags = new Uint8Array(coefficientCount);
  34617. var bitsDecoded = new Uint8Array(this.width * this.height);
  34618. for (var i = 0, ii = bitsDecoded.length; i < ii; i++)
  34619. bitsDecoded[i] = zeroBitPlanes;
  34620. this.bitsDecoded = bitsDecoded;
  34621. this.reset();
  34622. }
  34623. BitModel.prototype = {
  34624. setDecoder: function BitModel_setDecoder(decoder) {
  34625. this.decoder = decoder;
  34626. },
  34627. reset: function BitModel_reset() {
  34628. this.uniformContext = {index: 46, mps: 0};
  34629. this.runLengthContext = {index: 3, mps: 0};
  34630. this.contexts = [];
  34631. this.contexts.push({index: 4, mps: 0});
  34632. for (var i = 1; i <= 16; i++)
  34633. this.contexts.push({index: 0, mps: 0});
  34634. },
  34635. setNeighborsSignificance:
  34636. function BitModel_setNeighborsSignificance(row, column) {
  34637. var neighborsSignificance = this.neighborsSignificance;
  34638. var width = this.width, height = this.height;
  34639. var index = row * width + column;
  34640. if (row > 0) {
  34641. if (column > 0)
  34642. neighborsSignificance[index - width - 1] += 0x10;
  34643. if (column + 1 < width)
  34644. neighborsSignificance[index - width + 1] += 0x10;
  34645. neighborsSignificance[index - width] += 0x04;
  34646. }
  34647. if (row + 1 < height) {
  34648. if (column > 0)
  34649. neighborsSignificance[index + width - 1] += 0x10;
  34650. if (column + 1 < width)
  34651. neighborsSignificance[index + width + 1] += 0x10;
  34652. neighborsSignificance[index + width] += 0x04;
  34653. }
  34654. if (column > 0)
  34655. neighborsSignificance[index - 1] += 0x01;
  34656. if (column + 1 < width)
  34657. neighborsSignificance[index + 1] += 0x01;
  34658. neighborsSignificance[index] |= 0x80;
  34659. },
  34660. runSignificancePropogationPass:
  34661. function BitModel_runSignificancePropogationPass() {
  34662. var decoder = this.decoder;
  34663. var width = this.width, height = this.height;
  34664. var coefficentsMagnitude = this.coefficentsMagnitude;
  34665. var coefficentsSign = this.coefficentsSign;
  34666. var contextLabels = this.contextLabels;
  34667. var neighborsSignificance = this.neighborsSignificance;
  34668. var processingFlags = this.processingFlags;
  34669. var contexts = this.contexts;
  34670. var labels = this.contextLabelTable;
  34671. var bitsDecoded = this.bitsDecoded;
  34672. // clear processed flag
  34673. var processedInverseMask = ~1;
  34674. var processedMask = 1;
  34675. var firstMagnitudeBitMask = 2;
  34676. for (var q = 0, qq = width * height; q < qq; q++)
  34677. processingFlags[q] &= processedInverseMask;
  34678. for (var i0 = 0; i0 < height; i0 += 4) {
  34679. for (var j = 0; j < width; j++) {
  34680. var index = i0 * width + j;
  34681. for (var i1 = 0; i1 < 4; i1++, index += width) {
  34682. var i = i0 + i1;
  34683. if (i >= height)
  34684. break;
  34685. if (coefficentsMagnitude[index] || !neighborsSignificance[index])
  34686. continue;
  34687. var contextLabel = labels[neighborsSignificance[index]];
  34688. var cx = contexts[contextLabel];
  34689. var decision = decoder.readBit(cx);
  34690. if (decision) {
  34691. var sign = this.decodeSignBit(i, j);
  34692. coefficentsSign[index] = sign;
  34693. coefficentsMagnitude[index] = 1;
  34694. this.setNeighborsSignificance(i, j);
  34695. processingFlags[index] |= firstMagnitudeBitMask;
  34696. }
  34697. bitsDecoded[index]++;
  34698. processingFlags[index] |= processedMask;
  34699. }
  34700. }
  34701. }
  34702. },
  34703. decodeSignBit: function BitModel_decodeSignBit(row, column) {
  34704. var width = this.width, height = this.height;
  34705. var index = row * width + column;
  34706. var coefficentsMagnitude = this.coefficentsMagnitude;
  34707. var coefficentsSign = this.coefficentsSign;
  34708. var horizontalContribution = calcSignContribution(
  34709. column > 0 && coefficentsMagnitude[index - 1],
  34710. coefficentsSign[index - 1],
  34711. column + 1 < width && coefficentsMagnitude[index + 1],
  34712. coefficentsSign[index + 1]);
  34713. var verticalContribution = calcSignContribution(
  34714. row > 0 && coefficentsMagnitude[index - width],
  34715. coefficentsSign[index - width],
  34716. row + 1 < height && coefficentsMagnitude[index + width],
  34717. coefficentsSign[index + width]);
  34718. var contextLabelAndXor = SignContextLabels[
  34719. 3 * (1 - horizontalContribution) + (1 - verticalContribution)];
  34720. var contextLabel = contextLabelAndXor.contextLabel;
  34721. var cx = this.contexts[contextLabel];
  34722. var decoded = this.decoder.readBit(cx);
  34723. return decoded ^ contextLabelAndXor.xorBit;
  34724. },
  34725. runMagnitudeRefinementPass:
  34726. function BitModel_runMagnitudeRefinementPass() {
  34727. var decoder = this.decoder;
  34728. var width = this.width, height = this.height;
  34729. var coefficentsMagnitude = this.coefficentsMagnitude;
  34730. var neighborsSignificance = this.neighborsSignificance;
  34731. var contexts = this.contexts;
  34732. var bitsDecoded = this.bitsDecoded;
  34733. var processingFlags = this.processingFlags;
  34734. var processedMask = 1;
  34735. var firstMagnitudeBitMask = 2;
  34736. for (var i0 = 0; i0 < height; i0 += 4) {
  34737. for (var j = 0; j < width; j++) {
  34738. for (var i1 = 0; i1 < 4; i1++) {
  34739. var i = i0 + i1;
  34740. if (i >= height)
  34741. break;
  34742. var index = i * width + j;
  34743. // significant but not those that have just become
  34744. if (!coefficentsMagnitude[index] ||
  34745. (processingFlags[index] & processedMask) !== 0)
  34746. continue;
  34747. var contextLabel = 16;
  34748. if ((processingFlags[index] &
  34749. firstMagnitudeBitMask) !== 0) {
  34750. processingFlags[i * width + j] ^= firstMagnitudeBitMask;
  34751. // first refinement
  34752. var significance = neighborsSignificance[index];
  34753. var sumOfSignificance = (significance & 3) +
  34754. ((significance >> 2) & 3) + ((significance >> 4) & 7);
  34755. contextLabel = sumOfSignificance >= 1 ? 15 : 14;
  34756. }
  34757. var cx = contexts[contextLabel];
  34758. var bit = decoder.readBit(cx);
  34759. coefficentsMagnitude[index] =
  34760. (coefficentsMagnitude[index] << 1) | bit;
  34761. bitsDecoded[index]++;
  34762. processingFlags[index] |= processedMask;
  34763. }
  34764. }
  34765. }
  34766. },
  34767. runCleanupPass: function BitModel_runCleanupPass() {
  34768. var decoder = this.decoder;
  34769. var width = this.width, height = this.height;
  34770. var neighborsSignificance = this.neighborsSignificance;
  34771. var significanceState = this.significanceState;
  34772. var coefficentsMagnitude = this.coefficentsMagnitude;
  34773. var coefficentsSign = this.coefficentsSign;
  34774. var contexts = this.contexts;
  34775. var labels = this.contextLabelTable;
  34776. var bitsDecoded = this.bitsDecoded;
  34777. var processingFlags = this.processingFlags;
  34778. var processedMask = 1;
  34779. var firstMagnitudeBitMask = 2;
  34780. var oneRowDown = width;
  34781. var twoRowsDown = width * 2;
  34782. var threeRowsDown = width * 3;
  34783. for (var i0 = 0; i0 < height; i0 += 4) {
  34784. for (var j = 0; j < width; j++) {
  34785. var index0 = i0 * width + j;
  34786. // using the property: labels[neighborsSignificance[index]] == 0
  34787. // when neighborsSignificance[index] == 0
  34788. var allEmpty = i0 + 3 < height &&
  34789. processingFlags[index0] === 0 &&
  34790. processingFlags[index0 + oneRowDown] === 0 &&
  34791. processingFlags[index0 + twoRowsDown] === 0 &&
  34792. processingFlags[index0 + threeRowsDown] === 0 &&
  34793. neighborsSignificance[index0] === 0 &&
  34794. neighborsSignificance[index0 + oneRowDown] === 0 &&
  34795. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  34796. neighborsSignificance[index0 + threeRowsDown] === 0;
  34797. var i1 = 0, index = index0;
  34798. var cx, i;
  34799. if (allEmpty) {
  34800. cx = this.runLengthContext;
  34801. var hasSignificantCoefficent = decoder.readBit(cx);
  34802. if (!hasSignificantCoefficent) {
  34803. bitsDecoded[index0]++;
  34804. bitsDecoded[index0 + oneRowDown]++;
  34805. bitsDecoded[index0 + twoRowsDown]++;
  34806. bitsDecoded[index0 + threeRowsDown]++;
  34807. continue; // next column
  34808. }
  34809. cx = this.uniformContext;
  34810. i1 = (decoder.readBit(cx) << 1) | decoder.readBit(cx);
  34811. i = i0 + i1;
  34812. index += i1 * width;
  34813. var sign = this.decodeSignBit(i, j);
  34814. coefficentsSign[index] = sign;
  34815. coefficentsMagnitude[index] = 1;
  34816. this.setNeighborsSignificance(i, j);
  34817. processingFlags[index] |= firstMagnitudeBitMask;
  34818. index = index0;
  34819. for (var i2 = i0; i2 <= i; i2++, index += width)
  34820. bitsDecoded[index]++;
  34821. i1++;
  34822. }
  34823. for (; i1 < 4; i1++, index += width) {
  34824. i = i0 + i1;
  34825. if (i >= height)
  34826. break;
  34827. if (coefficentsMagnitude[index] ||
  34828. (processingFlags[index] & processedMask) !== 0)
  34829. continue;
  34830. var contextLabel = labels[neighborsSignificance[index]];
  34831. cx = contexts[contextLabel];
  34832. var decision = decoder.readBit(cx);
  34833. if (decision == 1) {
  34834. var sign = this.decodeSignBit(i, j);
  34835. coefficentsSign[index] = sign;
  34836. coefficentsMagnitude[index] = 1;
  34837. this.setNeighborsSignificance(i, j);
  34838. processingFlags[index] |= firstMagnitudeBitMask;
  34839. }
  34840. bitsDecoded[index]++;
  34841. }
  34842. }
  34843. }
  34844. },
  34845. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  34846. var decoder = this.decoder;
  34847. var cx = this.uniformContext;
  34848. var symbol = (decoder.readBit(cx) << 3) | (decoder.readBit(cx) << 2) |
  34849. (decoder.readBit(cx) << 1) | decoder.readBit(cx);
  34850. if (symbol != 0xA)
  34851. throw 'Invalid segmentation symbol';
  34852. }
  34853. };
  34854. return BitModel;
  34855. })();
  34856. // Section F, Discrete wavelet transofrmation
  34857. var Transform = (function TransformClosure() {
  34858. function Transform() {
  34859. }
  34860. Transform.prototype.calculate =
  34861. function transformCalculate(subbands, u0, v0) {
  34862. var ll = subbands[0];
  34863. for (var i = 1, ii = subbands.length, j = 1; i < ii; i += 3, j++) {
  34864. ll = this.iterate(ll, subbands[i], subbands[i + 1],
  34865. subbands[i + 2], u0, v0);
  34866. }
  34867. return ll;
  34868. };
  34869. Transform.prototype.expand = function expand(buffer, bufferPadding, step) {
  34870. // Section F.3.7 extending... using max extension of 4
  34871. var i1 = bufferPadding - 1, j1 = bufferPadding + 1;
  34872. var i2 = bufferPadding + step - 2, j2 = bufferPadding + step;
  34873. buffer[i1--] = buffer[j1++];
  34874. buffer[j2++] = buffer[i2--];
  34875. buffer[i1--] = buffer[j1++];
  34876. buffer[j2++] = buffer[i2--];
  34877. buffer[i1--] = buffer[j1++];
  34878. buffer[j2++] = buffer[i2--];
  34879. buffer[i1--] = buffer[j1++];
  34880. buffer[j2++] = buffer[i2--];
  34881. };
  34882. Transform.prototype.iterate = function Transform_iterate(ll, hl, lh, hh,
  34883. u0, v0) {
  34884. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  34885. var hlWidth = hl.width, hlHeight = hl.height, hlItems = hl.items;
  34886. var lhWidth = lh.width, lhHeight = lh.height, lhItems = lh.items;
  34887. var hhWidth = hh.width, hhHeight = hh.height, hhItems = hh.items;
  34888. // Section F.3.3 interleave
  34889. var width = llWidth + hlWidth;
  34890. var height = llHeight + lhHeight;
  34891. var items = new Float32Array(width * height);
  34892. for (var i = 0, ii = llHeight; i < ii; i++) {
  34893. var k = i * llWidth, l = i * 2 * width;
  34894. for (var j = 0, jj = llWidth; j < jj; j++, k++, l += 2)
  34895. items[l] = llItems[k];
  34896. }
  34897. for (var i = 0, ii = hlHeight; i < ii; i++) {
  34898. var k = i * hlWidth, l = i * 2 * width + 1;
  34899. for (var j = 0, jj = hlWidth; j < jj; j++, k++, l += 2)
  34900. items[l] = hlItems[k];
  34901. }
  34902. for (var i = 0, ii = lhHeight; i < ii; i++) {
  34903. var k = i * lhWidth, l = (i * 2 + 1) * width;
  34904. for (var j = 0, jj = lhWidth; j < jj; j++, k++, l += 2)
  34905. items[l] = lhItems[k];
  34906. }
  34907. for (var i = 0, ii = hhHeight; i < ii; i++) {
  34908. var k = i * hhWidth, l = (i * 2 + 1) * width + 1;
  34909. for (var j = 0, jj = hhWidth; j < jj; j++, k++, l += 2)
  34910. items[l] = hhItems[k];
  34911. }
  34912. var bufferPadding = 4;
  34913. var bufferLength = new Float32Array(Math.max(width, height) +
  34914. 2 * bufferPadding);
  34915. var buffer = new Float32Array(bufferLength);
  34916. var bufferOut = new Float32Array(bufferLength);
  34917. // Section F.3.4 HOR_SR
  34918. for (var v = 0; v < height; v++) {
  34919. if (width == 1) {
  34920. // if width = 1, when u0 even keep items as is, when odd divide by 2
  34921. if ((u0 % 1) !== 0) {
  34922. items[v * width] /= 2;
  34923. }
  34924. continue;
  34925. }
  34926. var k = v * width;
  34927. var l = bufferPadding;
  34928. for (var u = 0; u < width; u++, k++, l++)
  34929. buffer[l] = items[k];
  34930. this.expand(buffer, bufferPadding, width);
  34931. this.filter(buffer, bufferPadding, width, u0, bufferOut);
  34932. k = v * width;
  34933. l = bufferPadding;
  34934. for (var u = 0; u < width; u++, k++, l++)
  34935. items[k] = bufferOut[l];
  34936. }
  34937. // Section F.3.5 VER_SR
  34938. for (var u = 0; u < width; u++) {
  34939. if (height == 1) {
  34940. // if height = 1, when v0 even keep items as is, when odd divide by 2
  34941. if ((v0 % 1) !== 0) {
  34942. items[u] /= 2;
  34943. }
  34944. continue;
  34945. }
  34946. var k = u;
  34947. var l = bufferPadding;
  34948. for (var v = 0; v < height; v++, k += width, l++)
  34949. buffer[l] = items[k];
  34950. this.expand(buffer, bufferPadding, height);
  34951. this.filter(buffer, bufferPadding, height, v0, bufferOut);
  34952. k = u;
  34953. l = bufferPadding;
  34954. for (var v = 0; v < height; v++, k += width, l++)
  34955. items[k] = bufferOut[l];
  34956. }
  34957. return {
  34958. width: width,
  34959. height: height,
  34960. items: items
  34961. };
  34962. };
  34963. return Transform;
  34964. })();
  34965. // Section 3.8.2 Irreversible 9-7 filter
  34966. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  34967. function IrreversibleTransform() {
  34968. Transform.call(this);
  34969. }
  34970. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  34971. IrreversibleTransform.prototype.filter =
  34972. function irreversibleTransformFilter(y, offset, length, i0, x) {
  34973. var i0_ = Math.floor(i0 / 2);
  34974. var i1_ = Math.floor((i0 + length) / 2);
  34975. var offset_ = offset - (i0 % 1);
  34976. var alpha = -1.586134342059924;
  34977. var beta = -0.052980118572961;
  34978. var gamma = 0.882911075530934;
  34979. var delta = 0.443506852043971;
  34980. var K = 1.230174104914001;
  34981. var K_ = 1 / K;
  34982. // step 1
  34983. var j = offset_ - 2;
  34984. for (var n = i0_ - 1, nn = i1_ + 2; n < nn; n++, j += 2)
  34985. x[j] = K * y[j];
  34986. // step 2
  34987. var j = offset_ - 3;
  34988. for (var n = i0_ - 2, nn = i1_ + 2; n < nn; n++, j += 2)
  34989. x[j] = K_ * y[j];
  34990. // step 3
  34991. var j = offset_ - 2;
  34992. for (var n = i0_ - 1, nn = i1_ + 2; n < nn; n++, j += 2)
  34993. x[j] -= delta * (x[j - 1] + x[j + 1]);
  34994. // step 4
  34995. var j = offset_ - 1;
  34996. for (var n = i0_ - 1, nn = i1_ + 1; n < nn; n++, j += 2)
  34997. x[j] -= gamma * (x[j - 1] + x[j + 1]);
  34998. // step 5
  34999. var j = offset_;
  35000. for (var n = i0_, nn = i1_ + 1; n < nn; n++, j += 2)
  35001. x[j] -= beta * (x[j - 1] + x[j + 1]);
  35002. // step 6
  35003. var j = offset_ + 1;
  35004. for (var n = i0_, nn = i1_; n < nn; n++, j += 2)
  35005. x[j] -= alpha * (x[j - 1] + x[j + 1]);
  35006. };
  35007. return IrreversibleTransform;
  35008. })();
  35009. // Section 3.8.1 Reversible 5-3 filter
  35010. var ReversibleTransform = (function ReversibleTransformClosure() {
  35011. function ReversibleTransform() {
  35012. Transform.call(this);
  35013. }
  35014. ReversibleTransform.prototype = Object.create(Transform.prototype);
  35015. ReversibleTransform.prototype.filter =
  35016. function reversibleTransformFilter(y, offset, length, i0, x) {
  35017. var i0_ = Math.floor(i0 / 2);
  35018. var i1_ = Math.floor((i0 + length) / 2);
  35019. var offset_ = offset - (i0 % 1);
  35020. for (var n = i0_, nn = i1_ + 1, j = offset_; n < nn; n++, j += 2)
  35021. x[j] = y[j] - Math.floor((y[j - 1] + y[j + 1] + 2) / 4);
  35022. for (var n = i0_, nn = i1_, j = offset_ + 1; n < nn; n++, j += 2)
  35023. x[j] = y[j] + Math.floor((x[j - 1] + x[j + 1]) / 2);
  35024. };
  35025. return ReversibleTransform;
  35026. })();
  35027. return JpxImage;
  35028. })();
  35029. var Jbig2Image = (function Jbig2ImageClosure() {
  35030. // Annex E. Arithmetic Coding
  35031. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  35032. var QeTable = [
  35033. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  35034. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  35035. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  35036. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  35037. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  35038. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  35039. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  35040. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  35041. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  35042. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  35043. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  35044. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  35045. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  35046. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  35047. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  35048. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  35049. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  35050. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  35051. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  35052. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  35053. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  35054. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  35055. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  35056. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  35057. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  35058. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  35059. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  35060. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  35061. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  35062. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  35063. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  35064. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  35065. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  35066. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  35067. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  35068. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  35069. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  35070. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  35071. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  35072. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  35073. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  35074. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  35075. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  35076. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  35077. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  35078. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  35079. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  35080. ];
  35081. function ArithmeticDecoder(data, start, end) {
  35082. this.data = data;
  35083. this.bp = start;
  35084. this.dataEnd = end;
  35085. this.chigh = data[start];
  35086. this.clow = 0;
  35087. this.byteIn();
  35088. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  35089. this.clow = (this.clow << 7) & 0xFFFF;
  35090. this.ct -= 7;
  35091. this.a = 0x8000;
  35092. }
  35093. ArithmeticDecoder.prototype = {
  35094. byteIn: function ArithmeticDecoder_byteIn() {
  35095. var data = this.data;
  35096. var bp = this.bp;
  35097. if (data[bp] == 0xFF) {
  35098. var b1 = data[bp + 1];
  35099. if (b1 > 0x8F) {
  35100. this.clow += 0xFF00;
  35101. this.ct = 8;
  35102. } else {
  35103. bp++;
  35104. this.clow += (data[bp] << 9);
  35105. this.ct = 7;
  35106. this.bp = bp;
  35107. }
  35108. } else {
  35109. bp++;
  35110. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  35111. this.ct = 8;
  35112. this.bp = bp;
  35113. }
  35114. if (this.clow > 0xFFFF) {
  35115. this.chigh += (this.clow >> 16);
  35116. this.clow &= 0xFFFF;
  35117. }
  35118. },
  35119. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  35120. // contexts are packed into 1 byte:
  35121. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  35122. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  35123. var qeTableIcx = QeTable[cx_index];
  35124. var qeIcx = qeTableIcx.qe;
  35125. var nmpsIcx = qeTableIcx.nmps;
  35126. var nlpsIcx = qeTableIcx.nlps;
  35127. var switchIcx = qeTableIcx.switchFlag;
  35128. var d;
  35129. this.a -= qeIcx;
  35130. if (this.chigh < qeIcx) {
  35131. // exchangeLps
  35132. if (this.a < qeIcx) {
  35133. this.a = qeIcx;
  35134. d = cx_mps;
  35135. cx_index = nmpsIcx;
  35136. } else {
  35137. this.a = qeIcx;
  35138. d = 1 - cx_mps;
  35139. if (switchIcx) {
  35140. cx_mps = d;
  35141. }
  35142. cx_index = nlpsIcx;
  35143. }
  35144. } else {
  35145. this.chigh -= qeIcx;
  35146. if ((this.a & 0x8000) !== 0) {
  35147. return cx_mps;
  35148. }
  35149. // exchangeMps
  35150. if (this.a < qeIcx) {
  35151. d = 1 - cx_mps;
  35152. if (switchIcx) {
  35153. cx_mps = d;
  35154. }
  35155. cx_index = nlpsIcx;
  35156. } else {
  35157. d = cx_mps;
  35158. cx_index = nmpsIcx;
  35159. }
  35160. }
  35161. // renormD;
  35162. do {
  35163. if (this.ct === 0)
  35164. this.byteIn();
  35165. this.a <<= 1;
  35166. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  35167. this.clow = (this.clow << 1) & 0xFFFF;
  35168. this.ct--;
  35169. } while ((this.a & 0x8000) === 0);
  35170. contexts[pos] = cx_index << 1 | cx_mps;
  35171. return d;
  35172. }
  35173. };
  35174. return ArithmeticDecoder;
  35175. })();
  35176. // Utility data structures
  35177. function ContextCache() {}
  35178. ContextCache.prototype = {
  35179. getContexts: function(id) {
  35180. if (id in this)
  35181. return this[id];
  35182. return (this[id] = new Int8Array(1<<16));
  35183. }
  35184. };
  35185. function DecodingContext(data, start, end) {
  35186. this.data = data;
  35187. this.start = start;
  35188. this.end = end;
  35189. }
  35190. DecodingContext.prototype = {
  35191. get decoder() {
  35192. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  35193. return shadow(this, 'decoder', decoder);
  35194. },
  35195. get contextCache() {
  35196. var cache = new ContextCache();
  35197. return shadow(this, 'contextCache', cache);
  35198. }
  35199. };
  35200. // Annex A. Arithmetic Integer Decoding Procedure
  35201. // A.2 Procedure for decoding values
  35202. function decodeInteger(contextCache, procedure, decoder) {
  35203. var contexts = contextCache.getContexts(procedure);
  35204. var prev = 1;
  35205. var state = 1, v = 0, s;
  35206. var toRead = 32, offset = 4436; // defaults for state 7
  35207. while (state) {
  35208. var bit = decoder.readBit(contexts, prev);
  35209. prev = prev < 256 ? (prev << 1) | bit :
  35210. (((prev << 1) | bit) & 511) | 256;
  35211. switch (state) {
  35212. case 1:
  35213. s = !!bit;
  35214. break;
  35215. case 2:
  35216. if (bit) break;
  35217. state = 7;
  35218. toRead = 2;
  35219. offset = 0;
  35220. break;
  35221. case 3:
  35222. if (bit) break;
  35223. state = 7;
  35224. toRead = 4;
  35225. offset = 4;
  35226. break;
  35227. case 4:
  35228. if (bit) break;
  35229. state = 7;
  35230. toRead = 6;
  35231. offset = 20;
  35232. break;
  35233. case 5:
  35234. if (bit) break;
  35235. state = 7;
  35236. toRead = 8;
  35237. offset = 84;
  35238. break;
  35239. case 6:
  35240. if (bit) break;
  35241. state = 7;
  35242. toRead = 12;
  35243. offset = 340;
  35244. break;
  35245. default:
  35246. v = v * 2 + bit;
  35247. if (--toRead === 0)
  35248. state = 0;
  35249. continue;
  35250. }
  35251. state++;
  35252. }
  35253. v += offset;
  35254. return !s ? v : v > 0 ? -v : null;
  35255. }
  35256. // A.3 The IAID decoding procedure
  35257. function decodeIAID(contextCache, decoder, codeLength) {
  35258. var contexts = contextCache.getContexts('IAID');
  35259. var prev = 1;
  35260. for (var i = 0; i < codeLength; i++) {
  35261. var bit = decoder.readBit(contexts, prev);
  35262. prev = (prev * 2) + bit;
  35263. }
  35264. if (codeLength < 31)
  35265. return prev & ((1 << codeLength) - 1);
  35266. else
  35267. return prev - Math.pow(2, codeLength);
  35268. }
  35269. // 7.3 Segment types
  35270. var SegmentTypes = [
  35271. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  35272. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  35273. null, null, null, null, null, 'patternDictionary', null, null, null,
  35274. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  35275. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  35276. null, null, null, null, null, 'IntermediateGenericRegion', null,
  35277. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  35278. 'IntermediateGenericRefinementRegion', null,
  35279. 'ImmediateGenericRefinementRegion',
  35280. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  35281. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  35282. 'Tables', null, null, null, null, null, null, null, null,
  35283. 'Extension'
  35284. ];
  35285. var CodingTemplates = [
  35286. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  35287. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  35288. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  35289. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  35290. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  35291. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  35292. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  35293. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  35294. {x: -1, y: 0}],
  35295. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  35296. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  35297. ];
  35298. var RefinementTemplates = [
  35299. {
  35300. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  35301. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  35302. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  35303. },
  35304. {
  35305. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  35306. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  35307. {x: 0, y: 1}, {x: 1, y: 1}]
  35308. }
  35309. ];
  35310. var ReusedContexts = [
  35311. 0x1CD3, // '00111001101' (template) + '0011' (at),
  35312. 0x079A, // '001111001101' + '0',
  35313. 0x00E3, // '001110001' + '1',
  35314. 0x018B // '011000101' + '1'
  35315. ];
  35316. var RefinementReusedContexts = [
  35317. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  35318. 0x0008 // '0000' + '001000'
  35319. ];
  35320. function log2(x) {
  35321. var n = 1, i = 0;
  35322. while (x > n) {
  35323. n <<= 1;
  35324. i++;
  35325. }
  35326. return i;
  35327. }
  35328. function readInt32(data, start) {
  35329. return (data[start] << 24) | (data[start + 1] << 16) |
  35330. (data[start + 2] << 8) | data[start + 3];
  35331. }
  35332. function readUint32(data, start) {
  35333. var value = readInt32(data, start);
  35334. return value & 0x80000000 ? (value + 4294967296) : value;
  35335. }
  35336. function readUint16(data, start) {
  35337. return (data[start] << 8) | data[start + 1];
  35338. }
  35339. function readInt8(data, start) {
  35340. return (data[start] << 24) >> 24;
  35341. }
  35342. // 6.2 Generic Region Decoding Procedure
  35343. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  35344. decodingContext) {
  35345. if (mmr)
  35346. error('JBIG2 error: MMR encoding is not supported');
  35347. var useskip = !!skip;
  35348. var template = CodingTemplates[templateIndex].concat(at);
  35349. var templateLength = template.length;
  35350. var templateX = new Int32Array(templateLength);
  35351. var templateY = new Int32Array(templateLength);
  35352. for (var k = 0; k < templateLength; k++) {
  35353. templateX[k] = template[k].x;
  35354. templateY[k] = template[k].y;
  35355. }
  35356. var pseudoPixelContext = ReusedContexts[templateIndex];
  35357. var bitmap = [];
  35358. var decoder = decodingContext.decoder;
  35359. var contexts = decodingContext.contextCache.getContexts('GB');
  35360. var ltp = 0;
  35361. for (var i = 0; i < height; i++) {
  35362. if (prediction) {
  35363. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  35364. ltp ^= sltp;
  35365. }
  35366. if (ltp) {
  35367. bitmap.push(bitmap[bitmap.length - 1]); // duplicate previous row
  35368. continue;
  35369. }
  35370. var row = new Uint8Array(width);
  35371. bitmap.push(row);
  35372. for (var j = 0; j < width; j++) {
  35373. if (useskip && skip[i][j]) {
  35374. row[j] = 0;
  35375. continue;
  35376. }
  35377. var contextLabel = 0;
  35378. for (var k = 0; k < templateLength; k++) {
  35379. var i0 = i + templateY[k], j0 = j + templateX[k];
  35380. if (i0 < 0 || j0 < 0 || j0 >= width)
  35381. contextLabel <<= 1; // out of bound pixel
  35382. else
  35383. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  35384. }
  35385. var pixel = decoder.readBit(contexts, contextLabel);
  35386. row[j] = pixel;
  35387. }
  35388. }
  35389. return bitmap;
  35390. }
  35391. // 6.3.2 Generic Refinement Region Decoding Procedure
  35392. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  35393. offsetX, offsetY, prediction, at,
  35394. decodingContext) {
  35395. var codingTemplate = RefinementTemplates[templateIndex].coding;
  35396. if (templateIndex === 0)
  35397. codingTemplate = codingTemplate.concat([at[0]]);
  35398. var codingTemplateLength = codingTemplate.length;
  35399. var codingTemplateX = new Int32Array(codingTemplateLength);
  35400. var codingTemplateY = new Int32Array(codingTemplateLength);
  35401. for (var k = 0; k < codingTemplateLength; k++) {
  35402. codingTemplateX[k] = codingTemplate[k].x;
  35403. codingTemplateY[k] = codingTemplate[k].y;
  35404. }
  35405. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  35406. if (templateIndex === 0)
  35407. referenceTemplate = referenceTemplate.concat([at[1]]);
  35408. var referenceTemplateLength = referenceTemplate.length;
  35409. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  35410. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  35411. for (var k = 0; k < referenceTemplateLength; k++) {
  35412. referenceTemplateX[k] = referenceTemplate[k].x;
  35413. referenceTemplateY[k] = referenceTemplate[k].y;
  35414. }
  35415. var referenceWidth = referenceBitmap[0].length;
  35416. var referenceHeight = referenceBitmap.length;
  35417. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  35418. var bitmap = [];
  35419. var decoder = decodingContext.decoder;
  35420. var contexts = decodingContext.contextCache.getContexts('GR');
  35421. var ltp = 0;
  35422. for (var i = 0; i < height; i++) {
  35423. if (prediction) {
  35424. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  35425. ltp ^= sltp;
  35426. }
  35427. var row = new Uint8Array(width);
  35428. bitmap.push(row);
  35429. for (var j = 0; j < width; j++) {
  35430. if (ltp)
  35431. error('JBIG2 error: prediction is not supported');
  35432. var contextLabel = 0;
  35433. for (var k = 0; k < codingTemplateLength; k++) {
  35434. var i0 = i + codingTemplateY[k], j0 = j + codingTemplateX[k];
  35435. if (i0 < 0 || j0 < 0 || j0 >= width)
  35436. contextLabel <<= 1; // out of bound pixel
  35437. else
  35438. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  35439. }
  35440. for (var k = 0; k < referenceTemplateLength; k++) {
  35441. var i0 = i + referenceTemplateY[k] + offsetY;
  35442. var j0 = j + referenceTemplateX[k] + offsetX;
  35443. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 || j0 >= referenceWidth)
  35444. contextLabel <<= 1; // out of bound pixel
  35445. else
  35446. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  35447. }
  35448. var pixel = decoder.readBit(contexts, contextLabel);
  35449. row[j] = pixel;
  35450. }
  35451. }
  35452. return bitmap;
  35453. }
  35454. // 6.5.5 Decoding the symbol dictionary
  35455. function decodeSymbolDictionary(huffman, refinement, symbols,
  35456. numberOfNewSymbols, numberOfExportedSymbols,
  35457. huffmanTables, templateIndex, at,
  35458. refinementTemplateIndex, refinementAt,
  35459. decodingContext) {
  35460. if (huffman)
  35461. error('JBIG2 error: huffman is not supported');
  35462. var newSymbols = [];
  35463. var currentHeight = 0;
  35464. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  35465. var decoder = decodingContext.decoder;
  35466. var contextCache = decodingContext.contextCache;
  35467. while (newSymbols.length < numberOfNewSymbols) {
  35468. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  35469. currentHeight += deltaHeight;
  35470. var currentWidth = 0;
  35471. var totalWidth = 0;
  35472. while (true) {
  35473. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  35474. if (deltaWidth === null)
  35475. break; // OOB
  35476. currentWidth += deltaWidth;
  35477. totalWidth += currentWidth;
  35478. var bitmap;
  35479. if (refinement) {
  35480. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  35481. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  35482. if (numberOfInstances > 1)
  35483. error('JBIG2 error: number of instances > 1 is not supported');
  35484. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  35485. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  35486. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  35487. var symbol = symbolId < symbols.length ? symbols[symbolId] :
  35488. newSymbols[symbolId - symbols.length];
  35489. bitmap = decodeRefinement(currentWidth, currentHeight,
  35490. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  35491. decodingContext);
  35492. } else {
  35493. // 6.5.8.1 Direct-coded symbol bitmap
  35494. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  35495. templateIndex, false, null, at, decodingContext);
  35496. }
  35497. newSymbols.push(bitmap);
  35498. }
  35499. }
  35500. // 6.5.10 Exported symbols
  35501. var exportedSymbols = [];
  35502. var flags = [], currentFlag = false;
  35503. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  35504. while (flags.length < totalSymbolsLength) {
  35505. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  35506. while (runLength--)
  35507. flags.push(currentFlag);
  35508. currentFlag = !currentFlag;
  35509. }
  35510. for (var i = 0, ii = symbols.length; i < ii; i++)
  35511. if (flags[i]) exportedSymbols.push(symbols[i]);
  35512. for (var j = 0; j < numberOfNewSymbols; i++, j++)
  35513. if (flags[i]) exportedSymbols.push(newSymbols[j]);
  35514. return exportedSymbols;
  35515. }
  35516. function decodeTextRegion(huffman, refinement, width, height,
  35517. defaultPixelValue, numberOfSymbolInstances,
  35518. stripSize, inputSymbols, symbolCodeLength,
  35519. transposed, dsOffset, referenceCorner,
  35520. combinationOperator, huffmanTables,
  35521. refinementTemplateIndex, refinementAt,
  35522. decodingContext) {
  35523. if (huffman)
  35524. error('JBIG2 error: huffman is not supported');
  35525. // Prepare bitmap
  35526. var bitmap = [];
  35527. for (var i = 0; i < height; i++) {
  35528. var row = new Uint8Array(width);
  35529. if (defaultPixelValue) {
  35530. for (var j = 0; j < width; j++)
  35531. row[j] = defaultPixelValue;
  35532. }
  35533. bitmap.push(row);
  35534. }
  35535. var decoder = decodingContext.decoder;
  35536. var contextCache = decodingContext.contextCache;
  35537. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  35538. var firstS = 0;
  35539. var i = 0;
  35540. while (i < numberOfSymbolInstances) {
  35541. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  35542. stripT += deltaT;
  35543. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  35544. firstS += deltaFirstS;
  35545. var currentS = firstS;
  35546. do {
  35547. var currentT = stripSize == 1 ? 0 :
  35548. decodeInteger(contextCache, 'IAIT', decoder); // 6.4.9
  35549. var t = stripSize * stripT + currentT;
  35550. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  35551. var applyRefinement = refinement &&
  35552. decodeInteger(contextCache, 'IARI', decoder);
  35553. var symbolBitmap = inputSymbols[symbolId];
  35554. var symbolWidth = symbolBitmap[0].length;
  35555. var symbolHeight = symbolBitmap.length;
  35556. if (applyRefinement) {
  35557. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  35558. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  35559. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  35560. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  35561. symbolWidth += rdw;
  35562. symbolHeight += rdh;
  35563. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  35564. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  35565. (rdh >> 1) + rdy, false, refinementAt,
  35566. decodingContext);
  35567. }
  35568. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  35569. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  35570. if (transposed) {
  35571. // Place Symbol Bitmap from T1,S1
  35572. for (var s2 = 0; s2 < symbolHeight; s2++) {
  35573. var row = bitmap[offsetS + s2];
  35574. if (!row) {
  35575. continue;
  35576. }
  35577. var symbolRow = symbolBitmap[s2];
  35578. // To ignore Parts of Symbol bitmap which goes
  35579. // outside bitmap region
  35580. var maxWidth = Math.min(width - offsetT, symbolWidth);
  35581. switch (combinationOperator) {
  35582. case 0: // OR
  35583. for (var t2 = 0; t2 < maxWidth; t2++) {
  35584. row[offsetT + t2] |= symbolRow[t2];
  35585. }
  35586. break;
  35587. case 2: // XOR
  35588. for (var t2 = 0; t2 < maxWidth; t2++) {
  35589. row[offsetT + t2] ^= symbolRow[t2];
  35590. }
  35591. break;
  35592. default:
  35593. error('JBIG2 error: operator ' + combinationOperator +
  35594. ' is not supported');
  35595. }
  35596. }
  35597. currentS += symbolHeight - 1;
  35598. } else {
  35599. for (var t2 = 0; t2 < symbolHeight; t2++) {
  35600. var row = bitmap[offsetT + t2];
  35601. if (!row) {
  35602. continue;
  35603. }
  35604. var symbolRow = symbolBitmap[t2];
  35605. switch (combinationOperator) {
  35606. case 0: // OR
  35607. for (var s2 = 0; s2 < symbolWidth; s2++) {
  35608. row[offsetS + s2] |= symbolRow[s2];
  35609. }
  35610. break;
  35611. case 2: // XOR
  35612. for (var s2 = 0; s2 < symbolWidth; s2++) {
  35613. row[offsetS + s2] ^= symbolRow[s2];
  35614. }
  35615. break;
  35616. default:
  35617. error('JBIG2 error: operator ' + combinationOperator +
  35618. ' is not supported');
  35619. }
  35620. }
  35621. currentS += symbolWidth - 1;
  35622. }
  35623. i++;
  35624. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  35625. if (deltaS === null)
  35626. break; // OOB
  35627. currentS += deltaS + dsOffset;
  35628. } while (true);
  35629. }
  35630. return bitmap;
  35631. }
  35632. function readSegmentHeader(data, start) {
  35633. var segmentHeader = {};
  35634. segmentHeader.number = readUint32(data, start);
  35635. var flags = data[start + 4];
  35636. var segmentType = flags & 0x3F;
  35637. if (!SegmentTypes[segmentType])
  35638. error('JBIG2 error: invalid segment type: ' + segmentType);
  35639. segmentHeader.type = segmentType;
  35640. segmentHeader.typeName = SegmentTypes[segmentType];
  35641. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  35642. var pageAssociationFieldSize = !!(flags & 0x40);
  35643. var referredFlags = data[start + 5];
  35644. var referredToCount = (referredFlags >> 5) & 7;
  35645. var retainBits = [referredFlags & 31];
  35646. var position = start + 6;
  35647. if (referredFlags == 7) {
  35648. referredToCount = readInt32(data, position - 1) & 0x1FFFFFFF;
  35649. position += 3;
  35650. var bytes = (referredToCount + 7) >> 3;
  35651. retainBits[0] = data[position++];
  35652. while (--bytes > 0) {
  35653. retainBits.push(data[position++]);
  35654. }
  35655. } else if (referredFlags == 5 || referredFlags == 6)
  35656. error('JBIG2 error: invalid referred-to flags');
  35657. segmentHeader.retainBits = retainBits;
  35658. var referredToSegmentNumberSize = segmentHeader.number <= 256 ? 1 :
  35659. segmentHeader.number <= 65536 ? 2 : 4;
  35660. var referredTo = [];
  35661. for (var i = 0; i < referredToCount; i++) {
  35662. var number = referredToSegmentNumberSize == 1 ? data[position] :
  35663. referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  35664. readUint32(data, position);
  35665. referredTo.push(number);
  35666. position += referredToSegmentNumberSize;
  35667. }
  35668. segmentHeader.referredTo = referredTo;
  35669. if (!pageAssociationFieldSize)
  35670. segmentHeader.pageAssociation = data[position++];
  35671. else {
  35672. segmentHeader.pageAssociation = readUint32(data, position);
  35673. position += 4;
  35674. }
  35675. segmentHeader.length = readUint32(data, position);
  35676. position += 4;
  35677. if (segmentHeader.length == 0xFFFFFFFF) {
  35678. // 7.2.7 Segment data length, unknown segment length
  35679. if (segmentType === 38) { // ImmediateGenericRegion
  35680. var genericRegionInfo = readRegionSegmentInformation(data, position);
  35681. var genericRegionSegmentFlags = data[position +
  35682. RegionSegmentInformationFieldLength];
  35683. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  35684. // searching for the segment end
  35685. var searchPatternLength = 6;
  35686. var searchPattern = new Uint8Array(searchPatternLength);
  35687. if (!genericRegionMmr) {
  35688. searchPattern[0] = 0xFF;
  35689. searchPattern[1] = 0xAC;
  35690. }
  35691. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  35692. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  35693. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  35694. searchPattern[5] = genericRegionInfo.height & 0xFF;
  35695. for (var i = position, ii = data.length; i < ii; i++) {
  35696. var j = 0;
  35697. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  35698. j++;
  35699. }
  35700. if (j == searchPatternLength) {
  35701. segmentHeader.length = i + searchPatternLength;
  35702. break;
  35703. }
  35704. }
  35705. if (segmentHeader.length == 0xFFFFFFFF) {
  35706. error('JBIG2 error: segment end was not found');
  35707. }
  35708. } else {
  35709. error('JBIG2 error: invalid unknown segment length');
  35710. }
  35711. }
  35712. segmentHeader.headerEnd = position;
  35713. return segmentHeader;
  35714. }
  35715. function readSegments(header, data, start, end) {
  35716. var segments = [];
  35717. var position = start;
  35718. while (position < end) {
  35719. var segmentHeader = readSegmentHeader(data, position);
  35720. position = segmentHeader.headerEnd;
  35721. var segment = {
  35722. header: segmentHeader,
  35723. data: data
  35724. };
  35725. if (!header.randomAccess) {
  35726. segment.start = position;
  35727. position += segmentHeader.length;
  35728. segment.end = position;
  35729. }
  35730. segments.push(segment);
  35731. if (segmentHeader.type == 51)
  35732. break; // end of file is found
  35733. }
  35734. if (header.randomAccess) {
  35735. for (var i = 0, ii = segments.length; i < ii; i++) {
  35736. segments[i].start = position;
  35737. position += segments[i].header.length;
  35738. segments[i].end = position;
  35739. }
  35740. }
  35741. return segments;
  35742. }
  35743. // 7.4.1 Region segment information field
  35744. function readRegionSegmentInformation(data, start) {
  35745. return {
  35746. width: readUint32(data, start),
  35747. height: readUint32(data, start + 4),
  35748. x: readUint32(data, start + 8),
  35749. y: readUint32(data, start + 12),
  35750. combinationOperator: data[start + 16] & 7
  35751. };
  35752. }
  35753. var RegionSegmentInformationFieldLength = 17;
  35754. function processSegment(segment, visitor) {
  35755. var header = segment.header;
  35756. var data = segment.data, position = segment.start, end = segment.end;
  35757. var args;
  35758. switch (header.type) {
  35759. case 0: // SymbolDictionary
  35760. // 7.4.2 Symbol dictionary segment syntax
  35761. var dictionary = {};
  35762. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  35763. dictionary.huffman = !!(dictionaryFlags & 1);
  35764. dictionary.refinement = !!(dictionaryFlags & 2);
  35765. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  35766. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  35767. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  35768. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  35769. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  35770. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  35771. dictionary.template = (dictionaryFlags >> 10) & 3;
  35772. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  35773. position += 2;
  35774. if (!dictionary.huffman) {
  35775. var atLength = dictionary.template === 0 ? 4 : 1;
  35776. var at = [];
  35777. for (var i = 0; i < atLength; i++) {
  35778. at.push({
  35779. x: readInt8(data, position),
  35780. y: readInt8(data, position + 1)
  35781. });
  35782. position += 2;
  35783. }
  35784. dictionary.at = at;
  35785. }
  35786. if (dictionary.refinement && !dictionary.refinementTemplate) {
  35787. var at = [];
  35788. for (var i = 0; i < 2; i++) {
  35789. at.push({
  35790. x: readInt8(data, position),
  35791. y: readInt8(data, position + 1)
  35792. });
  35793. position += 2;
  35794. }
  35795. dictionary.refinementAt = at;
  35796. }
  35797. dictionary.numberOfExportedSymbols = readUint32(data, position);
  35798. position += 4;
  35799. dictionary.numberOfNewSymbols = readUint32(data, position);
  35800. position += 4;
  35801. args = [dictionary, header.number, header.referredTo,
  35802. data, position, end];
  35803. break;
  35804. case 6: // ImmediateTextRegion
  35805. case 7: // ImmediateLosslessTextRegion
  35806. var textRegion = {};
  35807. textRegion.info = readRegionSegmentInformation(data, position);
  35808. position += RegionSegmentInformationFieldLength;
  35809. var textRegionSegmentFlags = readUint16(data, position);
  35810. position += 2;
  35811. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  35812. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  35813. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  35814. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  35815. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  35816. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  35817. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  35818. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  35819. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  35820. if (textRegion.huffman) {
  35821. var textRegionHuffmanFlags = readUint16(data, position);
  35822. position += 2;
  35823. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  35824. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  35825. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  35826. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  35827. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  35828. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  35829. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  35830. textRegion.huffmanRefinementSizeSelector =
  35831. !!(textRegionHuffmanFlags & 14);
  35832. }
  35833. if (textRegion.refinement && !textRegion.refinementTemplate) {
  35834. var at = [];
  35835. for (var i = 0; i < 2; i++) {
  35836. at.push({
  35837. x: readInt8(data, position),
  35838. y: readInt8(data, position + 1)
  35839. });
  35840. position += 2;
  35841. }
  35842. textRegion.refinementAt = at;
  35843. }
  35844. textRegion.numberOfSymbolInstances = readUint32(data, position);
  35845. position += 4;
  35846. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  35847. if (textRegion.huffman)
  35848. error('JBIG2 error: huffman is not supported');
  35849. args = [textRegion, header.referredTo, data, position, end];
  35850. break;
  35851. case 38: // ImmediateGenericRegion
  35852. case 39: // ImmediateLosslessGenericRegion
  35853. var genericRegion = {};
  35854. genericRegion.info = readRegionSegmentInformation(data, position);
  35855. position += RegionSegmentInformationFieldLength;
  35856. var genericRegionSegmentFlags = data[position++];
  35857. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  35858. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  35859. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  35860. if (!genericRegion.mmr) {
  35861. var atLength = genericRegion.template === 0 ? 4 : 1;
  35862. var at = [];
  35863. for (var i = 0; i < atLength; i++) {
  35864. at.push({
  35865. x: readInt8(data, position),
  35866. y: readInt8(data, position + 1)
  35867. });
  35868. position += 2;
  35869. }
  35870. genericRegion.at = at;
  35871. }
  35872. args = [genericRegion, data, position, end];
  35873. break;
  35874. case 48: // PageInformation
  35875. var pageInfo = {
  35876. width: readUint32(data, position),
  35877. height: readUint32(data, position + 4),
  35878. resolutionX: readUint32(data, position + 8),
  35879. resolutionY: readUint32(data, position + 12)
  35880. };
  35881. if (pageInfo.height == 0xFFFFFFFF)
  35882. delete pageInfo.height;
  35883. var pageSegmentFlags = data[position + 16];
  35884. var pageStripingInformatiom = readUint16(data, position + 17);
  35885. pageInfo.lossless = !!(pageSegmentFlags & 1);
  35886. pageInfo.refinement = !!(pageSegmentFlags & 2);
  35887. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  35888. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  35889. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  35890. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  35891. args = [pageInfo];
  35892. break;
  35893. case 49: // EndOfPage
  35894. break;
  35895. case 50: // EndOfStripe
  35896. break;
  35897. case 51: // EndOfFile
  35898. break;
  35899. case 62: // 7.4.15 defines 2 extension types which
  35900. // are comments and can be ignored.
  35901. break;
  35902. default:
  35903. error('JBIG2 error: segment type ' + header.typeName + '(' +
  35904. header.type + ') is not implemented');
  35905. }
  35906. var callbackName = 'on' + header.typeName;
  35907. if (callbackName in visitor)
  35908. visitor[callbackName].apply(visitor, args);
  35909. }
  35910. function processSegments(segments, visitor) {
  35911. for (var i = 0, ii = segments.length; i < ii; i++)
  35912. processSegment(segments[i], visitor);
  35913. }
  35914. function parseJbig2(data, start, end) {
  35915. var position = start;
  35916. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  35917. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  35918. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  35919. data[position + 6] != 0x1A || data[position + 7] != 0x0A)
  35920. error('JBIG2 error: invalid header');
  35921. var header = {};
  35922. position += 8;
  35923. var flags = data[position++];
  35924. header.randomAccess = !(flags & 1);
  35925. if (!(flags & 2)) {
  35926. header.numberOfPages = readUint32(data, position);
  35927. position += 4;
  35928. }
  35929. var segments = readSegments(header, data, position, end);
  35930. error('Not implemented');
  35931. // processSegments(segments, new SimpleSegmentVisitor());
  35932. }
  35933. function parseJbig2Chunks(chunks) {
  35934. var visitor = new SimpleSegmentVisitor();
  35935. for (var i = 0, ii = chunks.length; i < ii; i++) {
  35936. var chunk = chunks[i];
  35937. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  35938. processSegments(segments, visitor);
  35939. }
  35940. return visitor.buffer;
  35941. }
  35942. function SimpleSegmentVisitor() {}
  35943. SimpleSegmentVisitor.prototype = {
  35944. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  35945. this.currentPageInfo = info;
  35946. var rowSize = (info.width + 7) >> 3;
  35947. var buffer = new Uint8Array(rowSize * info.height);
  35948. var fill = info.defaultPixelValue ? 0xFF : 0;
  35949. for (var i = 0, ii = buffer.length; i < ii; i++)
  35950. buffer[i] = fill;
  35951. this.buffer = buffer;
  35952. },
  35953. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  35954. var pageInfo = this.currentPageInfo;
  35955. var width = regionInfo.width, height = regionInfo.height;
  35956. var rowSize = (pageInfo.width + 7) >> 3;
  35957. var combinationOperator = pageInfo.combinationOperatorOverride ?
  35958. regionInfo.combinationOperator : pageInfo.combinationOperator;
  35959. var buffer = this.buffer;
  35960. for (var i = 0; i < height; i++) {
  35961. var mask = 128 >> (regionInfo.x & 7);
  35962. var offset = (i + regionInfo.y) * rowSize + (regionInfo.x >> 3);
  35963. switch (combinationOperator) {
  35964. case 0: // OR
  35965. for (var j = 0; j < width; j++) {
  35966. buffer[offset] |= bitmap[i][j] ? mask : 0;
  35967. mask >>= 1;
  35968. if (!mask) {
  35969. mask = 128;
  35970. offset++;
  35971. }
  35972. }
  35973. break;
  35974. case 2: // XOR
  35975. for (var j = 0; j < width; j++) {
  35976. buffer[offset] ^= bitmap[i][j] ? mask : 0;
  35977. mask >>= 1;
  35978. if (!mask) {
  35979. mask = 128;
  35980. offset++;
  35981. }
  35982. }
  35983. break;
  35984. default:
  35985. error('JBIG2 error: operator ' + combinationOperator +
  35986. ' is not supported');
  35987. }
  35988. }
  35989. },
  35990. onImmediateGenericRegion:
  35991. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  35992. start, end) {
  35993. var regionInfo = region.info;
  35994. var decodingContext = new DecodingContext(data, start, end);
  35995. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  35996. region.template, region.prediction, null,
  35997. region.at, decodingContext);
  35998. this.drawBitmap(regionInfo, bitmap);
  35999. },
  36000. onImmediateLosslessGenericRegion:
  36001. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  36002. this.onImmediateGenericRegion.apply(this, arguments);
  36003. },
  36004. onSymbolDictionary:
  36005. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  36006. currentSegment,
  36007. referredSegments,
  36008. data, start, end) {
  36009. var huffmanTables;
  36010. if (dictionary.huffman)
  36011. error('JBIG2 error: huffman is not supported');
  36012. // Combines exported symbols from all referred segments
  36013. var symbols = this.symbols;
  36014. if (!symbols)
  36015. this.symbols = symbols = {};
  36016. var inputSymbols = [];
  36017. for (var i = 0, ii = referredSegments.length; i < ii; i++)
  36018. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  36019. var decodingContext = new DecodingContext(data, start, end);
  36020. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  36021. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  36022. dictionary.numberOfExportedSymbols, huffmanTables,
  36023. dictionary.template, dictionary.at,
  36024. dictionary.refinementTemplate, dictionary.refinementAt,
  36025. decodingContext);
  36026. },
  36027. onImmediateTextRegion:
  36028. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  36029. referredSegments,
  36030. data, start, end) {
  36031. var regionInfo = region.info;
  36032. var huffmanTables;
  36033. // Combines exported symbols from all referred segments
  36034. var symbols = this.symbols;
  36035. var inputSymbols = [];
  36036. for (var i = 0, ii = referredSegments.length; i < ii; i++)
  36037. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  36038. var symbolCodeLength = log2(inputSymbols.length);
  36039. var decodingContext = new DecodingContext(data, start, end);
  36040. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  36041. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  36042. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  36043. symbolCodeLength, region.transposed, region.dsOffset,
  36044. region.referenceCorner, region.combinationOperator, huffmanTables,
  36045. region.refinementTemplate, region.refinementAt, decodingContext);
  36046. this.drawBitmap(regionInfo, bitmap);
  36047. },
  36048. onImmediateLosslessTextRegion:
  36049. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  36050. this.onImmediateTextRegion.apply(this, arguments);
  36051. }
  36052. };
  36053. function Jbig2Image() {}
  36054. Jbig2Image.prototype = {
  36055. parseChunks: function Jbig2Image_parseChunks(chunks) {
  36056. return parseJbig2Chunks(chunks);
  36057. }
  36058. };
  36059. return Jbig2Image;
  36060. })();
  36061. var bidi = PDFJS.bidi = (function bidiClosure() {
  36062. // Character types for symbols from 0000 to 00FF.
  36063. var baseTypes = [
  36064. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  36065. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  36066. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  36067. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  36068. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  36069. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36070. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  36071. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36072. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36073. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  36074. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  36075. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  36076. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  36077. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  36078. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36079. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36080. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36081. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  36082. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  36083. ];
  36084. // Character types for symbols from 0600 to 06FF
  36085. var arabicTypes = [
  36086. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36087. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  36088. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36089. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36090. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36091. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36092. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  36093. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  36094. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  36095. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  36096. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36097. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36098. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36099. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36100. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36101. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36102. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36103. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36104. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  36105. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  36106. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  36107. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  36108. ];
  36109. function isOdd(i) {
  36110. return (i & 1) !== 0;
  36111. }
  36112. function isEven(i) {
  36113. return (i & 1) === 0;
  36114. }
  36115. function findUnequal(arr, start, value) {
  36116. var j;
  36117. for (var j = start, jj = arr.length; j < jj; ++j) {
  36118. if (arr[j] != value)
  36119. return j;
  36120. }
  36121. return j;
  36122. }
  36123. function setValues(arr, start, end, value) {
  36124. for (var j = start; j < end; ++j) {
  36125. arr[j] = value;
  36126. }
  36127. }
  36128. function reverseValues(arr, start, end) {
  36129. for (var i = start, j = end - 1; i < j; ++i, --j) {
  36130. var temp = arr[i];
  36131. arr[i] = arr[j];
  36132. arr[j] = temp;
  36133. }
  36134. }
  36135. function mirrorGlyphs(c) {
  36136. /*
  36137. # BidiMirroring-1.txt
  36138. 0028; 0029 # LEFT PARENTHESIS
  36139. 0029; 0028 # RIGHT PARENTHESIS
  36140. 003C; 003E # LESS-THAN SIGN
  36141. 003E; 003C # GREATER-THAN SIGN
  36142. 005B; 005D # LEFT SQUARE BRACKET
  36143. 005D; 005B # RIGHT SQUARE BRACKET
  36144. 007B; 007D # LEFT CURLY BRACKET
  36145. 007D; 007B # RIGHT CURLY BRACKET
  36146. 00AB; 00BB # LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
  36147. 00BB; 00AB # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
  36148. */
  36149. switch (c) {
  36150. case '(':
  36151. return ')';
  36152. case ')':
  36153. return '(';
  36154. case '<':
  36155. return '>';
  36156. case '>':
  36157. return '<';
  36158. case ']':
  36159. return '[';
  36160. case '[':
  36161. return ']';
  36162. case '}':
  36163. return '{';
  36164. case '{':
  36165. return '}';
  36166. case '\u00AB':
  36167. return '\u00BB';
  36168. case '\u00BB':
  36169. return '\u00AB';
  36170. default:
  36171. return c;
  36172. }
  36173. }
  36174. function BidiResult(str, isLTR, vertical) {
  36175. this.str = str;
  36176. this.dir = vertical ? 'ttb' : isLTR ? 'ltr' : 'rtl';
  36177. }
  36178. function bidi(str, startLevel, vertical) {
  36179. var isLTR = true;
  36180. var strLength = str.length;
  36181. if (strLength === 0 || vertical)
  36182. return new BidiResult(str, isLTR, vertical);
  36183. // get types, fill arrays
  36184. var chars = [];
  36185. var types = [];
  36186. var oldtypes = [];
  36187. var numBidi = 0;
  36188. for (var i = 0; i < strLength; ++i) {
  36189. chars[i] = str.charAt(i);
  36190. var charCode = str.charCodeAt(i);
  36191. var charType = 'L';
  36192. if (charCode <= 0x00ff)
  36193. charType = baseTypes[charCode];
  36194. else if (0x0590 <= charCode && charCode <= 0x05f4)
  36195. charType = 'R';
  36196. else if (0x0600 <= charCode && charCode <= 0x06ff)
  36197. charType = arabicTypes[charCode & 0xff];
  36198. else if (0x0700 <= charCode && charCode <= 0x08AC)
  36199. charType = 'AL';
  36200. if (charType == 'R' || charType == 'AL' || charType == 'AN')
  36201. numBidi++;
  36202. oldtypes[i] = types[i] = charType;
  36203. }
  36204. // detect the bidi method
  36205. // if there are no rtl characters then no bidi needed
  36206. // if less than 30% chars are rtl then string is primarily ltr
  36207. // if more than 30% chars are rtl then string is primarily rtl
  36208. if (numBidi === 0) {
  36209. isLTR = true;
  36210. return new BidiResult(str, isLTR);
  36211. }
  36212. if (startLevel == -1) {
  36213. if ((strLength / numBidi) < 0.3) {
  36214. isLTR = true;
  36215. startLevel = 0;
  36216. } else {
  36217. isLTR = false;
  36218. startLevel = 1;
  36219. }
  36220. }
  36221. var levels = [];
  36222. for (var i = 0; i < strLength; ++i) {
  36223. levels[i] = startLevel;
  36224. }
  36225. /*
  36226. X1-X10: skip most of this, since we are NOT doing the embeddings.
  36227. */
  36228. var e = isOdd(startLevel) ? 'R' : 'L';
  36229. var sor = e;
  36230. var eor = sor;
  36231. /*
  36232. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  36233. type of the NSM to the type of the previous character. If the NSM is at the
  36234. start of the level run, it will get the type of sor.
  36235. */
  36236. var lastType = sor;
  36237. for (var i = 0; i < strLength; ++i) {
  36238. if (types[i] == 'NSM')
  36239. types[i] = lastType;
  36240. else
  36241. lastType = types[i];
  36242. }
  36243. /*
  36244. W2. Search backwards from each instance of a European number until the
  36245. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  36246. the type of the European number to Arabic number.
  36247. */
  36248. var lastType = sor;
  36249. for (var i = 0; i < strLength; ++i) {
  36250. var t = types[i];
  36251. if (t == 'EN')
  36252. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  36253. else if (t == 'R' || t == 'L' || t == 'AL')
  36254. lastType = t;
  36255. }
  36256. /*
  36257. W3. Change all ALs to R.
  36258. */
  36259. for (var i = 0; i < strLength; ++i) {
  36260. var t = types[i];
  36261. if (t == 'AL')
  36262. types[i] = 'R';
  36263. }
  36264. /*
  36265. W4. A single European separator between two European numbers changes to a
  36266. European number. A single common separator between two numbers of the same
  36267. type changes to that type:
  36268. */
  36269. for (var i = 1; i < strLength - 1; ++i) {
  36270. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN')
  36271. types[i] = 'EN';
  36272. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  36273. types[i + 1] == types[i - 1])
  36274. types[i] = types[i - 1];
  36275. }
  36276. /*
  36277. W5. A sequence of European terminators adjacent to European numbers changes
  36278. to all European numbers:
  36279. */
  36280. for (var i = 0; i < strLength; ++i) {
  36281. if (types[i] == 'EN') {
  36282. // do before
  36283. for (var j = i - 1; j >= 0; --j) {
  36284. if (types[j] != 'ET')
  36285. break;
  36286. types[j] = 'EN';
  36287. }
  36288. // do after
  36289. for (var j = i + 1; j < strLength; --j) {
  36290. if (types[j] != 'ET')
  36291. break;
  36292. types[j] = 'EN';
  36293. }
  36294. }
  36295. }
  36296. /*
  36297. W6. Otherwise, separators and terminators change to Other Neutral:
  36298. */
  36299. for (var i = 0; i < strLength; ++i) {
  36300. var t = types[i];
  36301. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS')
  36302. types[i] = 'ON';
  36303. }
  36304. /*
  36305. W7. Search backwards from each instance of a European number until the
  36306. first strong type (R, L, or sor) is found. If an L is found, then change
  36307. the type of the European number to L.
  36308. */
  36309. var lastType = sor;
  36310. for (var i = 0; i < strLength; ++i) {
  36311. var t = types[i];
  36312. if (t == 'EN')
  36313. types[i] = (lastType == 'L') ? 'L' : 'EN';
  36314. else if (t == 'R' || t == 'L')
  36315. lastType = t;
  36316. }
  36317. /*
  36318. N1. A sequence of neutrals takes the direction of the surrounding strong
  36319. text if the text on both sides has the same direction. European and Arabic
  36320. numbers are treated as though they were R. Start-of-level-run (sor) and
  36321. end-of-level-run (eor) are used at level run boundaries.
  36322. */
  36323. for (var i = 0; i < strLength; ++i) {
  36324. if (types[i] == 'ON') {
  36325. var end = findUnequal(types, i + 1, 'ON');
  36326. var before = sor;
  36327. if (i > 0)
  36328. before = types[i - 1];
  36329. var after = eor;
  36330. if (end + 1 < strLength)
  36331. after = types[end + 1];
  36332. if (before != 'L')
  36333. before = 'R';
  36334. if (after != 'L')
  36335. after = 'R';
  36336. if (before == after)
  36337. setValues(types, i, end, before);
  36338. i = end - 1; // reset to end (-1 so next iteration is ok)
  36339. }
  36340. }
  36341. /*
  36342. N2. Any remaining neutrals take the embedding direction.
  36343. */
  36344. for (var i = 0; i < strLength; ++i) {
  36345. if (types[i] == 'ON')
  36346. types[i] = e;
  36347. }
  36348. /*
  36349. I1. For all characters with an even (left-to-right) embedding direction,
  36350. those of type R go up one level and those of type AN or EN go up two
  36351. levels.
  36352. I2. For all characters with an odd (right-to-left) embedding direction,
  36353. those of type L, EN or AN go up one level.
  36354. */
  36355. for (var i = 0; i < strLength; ++i) {
  36356. var t = types[i];
  36357. if (isEven(levels[i])) {
  36358. if (t == 'R') {
  36359. levels[i] += 1;
  36360. } else if (t == 'AN' || t == 'EN') {
  36361. levels[i] += 2;
  36362. }
  36363. } else { // isOdd, so
  36364. if (t == 'L' || t == 'AN' || t == 'EN') {
  36365. levels[i] += 1;
  36366. }
  36367. }
  36368. }
  36369. /*
  36370. L1. On each line, reset the embedding level of the following characters to
  36371. the paragraph embedding level:
  36372. segment separators,
  36373. paragraph separators,
  36374. any sequence of whitespace characters preceding a segment separator or
  36375. paragraph separator, and any sequence of white space characters at the end
  36376. of the line.
  36377. */
  36378. // don't bother as text is only single line
  36379. /*
  36380. L2. From the highest level found in the text to the lowest odd level on
  36381. each line, reverse any contiguous sequence of characters that are at that
  36382. level or higher.
  36383. */
  36384. // find highest level & lowest odd level
  36385. var highestLevel = -1;
  36386. var lowestOddLevel = 99;
  36387. for (var i = 0, ii = levels.length; i < ii; ++i) {
  36388. var level = levels[i];
  36389. if (highestLevel < level)
  36390. highestLevel = level;
  36391. if (lowestOddLevel > level && isOdd(level))
  36392. lowestOddLevel = level;
  36393. }
  36394. // now reverse between those limits
  36395. for (var level = highestLevel; level >= lowestOddLevel; --level) {
  36396. // find segments to reverse
  36397. var start = -1;
  36398. for (var i = 0, ii = levels.length; i < ii; ++i) {
  36399. if (levels[i] < level) {
  36400. if (start >= 0) {
  36401. reverseValues(chars, start, i);
  36402. start = -1;
  36403. }
  36404. } else if (start < 0) {
  36405. start = i;
  36406. }
  36407. }
  36408. if (start >= 0) {
  36409. reverseValues(chars, start, levels.length);
  36410. }
  36411. }
  36412. /*
  36413. L3. Combining marks applied to a right-to-left base character will at this
  36414. point precede their base character. If the rendering engine expects them to
  36415. follow the base characters in the final display process, then the ordering
  36416. of the marks and the base character must be reversed.
  36417. */
  36418. // don't bother for now
  36419. /*
  36420. L4. A character that possesses the mirrored property as specified by
  36421. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  36422. directionality of that character is R.
  36423. */
  36424. // don't mirror as characters are already mirrored in the pdf
  36425. // Finally, return string
  36426. var result = '';
  36427. for (var i = 0, ii = chars.length; i < ii; ++i) {
  36428. var ch = chars[i];
  36429. if (ch != '<' && ch != '>')
  36430. result += ch;
  36431. }
  36432. return new BidiResult(result, isLTR);
  36433. }
  36434. return bidi;
  36435. })();
  36436. var CMAP_CODESPACES = {
  36437. 'Adobe-CNS1-0': [[], [0, 14335]],
  36438. 'Adobe-CNS1-1': [[], [0, 17407]],
  36439. 'Adobe-CNS1-2': [[], [0, 17663]],
  36440. 'Adobe-CNS1-3': [[], [0, 18943]],
  36441. 'Adobe-CNS1-4': [[], [0, 19199]],
  36442. 'Adobe-CNS1-5': [[], [0, 19199]],
  36443. 'Adobe-CNS1-6': [[], [0, 19199]],
  36444. 'Adobe-CNS1-UCS2': [[], [0, 65535]],
  36445. 'B5-H': [[0, 128], [41280, 65278]],
  36446. 'B5-V': [[0, 128], [41280, 65278]],
  36447. 'B5pc-H': [[0, 128, 253, 255], [41280, 64766]],
  36448. 'B5pc-V': [[0, 128, 253, 255], [41280, 64766]],
  36449. 'CNS-EUC-H': [[0, 128], [41377, 65278], [],
  36450. [2392957345, 2392981246, 2393022881, 2393046782, 2393088417, 2393112318]],
  36451. 'CNS-EUC-V': [[0, 128], [41377, 65278], [],
  36452. [2392957345, 2392981246, 2393022881, 2393046782, 2393088417, 2393112318]],
  36453. 'CNS1-H': [[], [8481, 32382]],
  36454. 'CNS1-V': [[], [8481, 32382]],
  36455. 'CNS2-H': [[], [8481, 32382]],
  36456. 'CNS2-V': [[], [8481, 32382]],
  36457. 'ETen-B5-H': [[0, 128], [41280, 65278]],
  36458. 'ETen-B5-V': [[0, 128], [41280, 65278]],
  36459. 'ETenms-B5-H': [[0, 128], [41280, 65278]],
  36460. 'ETenms-B5-V': [[0, 128], [41280, 65278]],
  36461. 'ETHK-B5-H': [[0, 128], [34624, 65278]],
  36462. 'ETHK-B5-V': [[0, 128], [34624, 65278]],
  36463. 'HKdla-B5-H': [[0, 128], [41280, 65278]],
  36464. 'HKdla-B5-V': [[0, 128], [41280, 65278]],
  36465. 'HKdlb-B5-H': [[0, 128], [36416, 65278]],
  36466. 'HKdlb-B5-V': [[0, 128], [36416, 65278]],
  36467. 'HKgccs-B5-H': [[0, 128], [35392, 65278]],
  36468. 'HKgccs-B5-V': [[0, 128], [35392, 65278]],
  36469. 'HKm314-B5-H': [[0, 128], [41280, 65278]],
  36470. 'HKm314-B5-V': [[0, 128], [41280, 65278]],
  36471. 'HKm471-B5-H': [[0, 128], [41280, 65278]],
  36472. 'HKm471-B5-V': [[0, 128], [41280, 65278]],
  36473. 'HKscs-B5-H': [[0, 128], [34624, 65278]],
  36474. 'HKscs-B5-V': [[0, 128], [34624, 65278]],
  36475. 'UniCNS-UCS2-H': [[], [0, 55295, 57344, 65535]],
  36476. 'UniCNS-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36477. 'UniCNS-UTF16-H': [[], [0, 55295, 57344, 65535], [],
  36478. [3623934976, 3690979327]],
  36479. 'UniCNS-UTF16-V': [[], [0, 55295, 57344, 65535], [],
  36480. [3623934976, 3690979327]],
  36481. 'Adobe-GB1-0': [[], [0, 7935]],
  36482. 'Adobe-GB1-1': [[], [0, 9983]],
  36483. 'Adobe-GB1-2': [[], [0, 22271]],
  36484. 'Adobe-GB1-3': [[], [0, 22527]],
  36485. 'Adobe-GB1-4': [[], [0, 29183]],
  36486. 'Adobe-GB1-5': [[], [0, 30463]],
  36487. 'Adobe-GB1-UCS2': [[], [0, 65535]],
  36488. 'GB-EUC-H': [[0, 128], [41377, 65278]],
  36489. 'GB-EUC-V': [[0, 128], [41377, 65278]],
  36490. 'GB-H': [[], [8481, 32382]],
  36491. 'GB-V': [[], [8481, 32382]],
  36492. 'GBK-EUC-H': [[0, 128], [33088, 65278]],
  36493. 'GBK-EUC-V': [[0, 128], [33088, 65278]],
  36494. 'GBK2K-H': [[0, 127], [33088, 65278], [], [2167439664, 4265213497]],
  36495. 'GBK2K-V': [[0, 127], [33088, 65278], [], [2167439664, 4265213497]],
  36496. 'GBKp-EUC-H': [[0, 128], [33088, 65278]],
  36497. 'GBKp-EUC-V': [[0, 128], [33088, 65278]],
  36498. 'GBpc-EUC-H': [[0, 128, 253, 255], [41377, 64766]],
  36499. 'GBpc-EUC-V': [[0, 128, 253, 255], [41377, 64766]],
  36500. 'GBT-EUC-H': [[0, 128], [41377, 65278]],
  36501. 'GBT-EUC-V': [[0, 128], [41377, 65278]],
  36502. 'GBT-H': [[], [8481, 32382]],
  36503. 'GBT-V': [[], [8481, 32382]],
  36504. 'GBTpc-EUC-H': [[0, 128, 253, 255], [41377, 64766]],
  36505. 'GBTpc-EUC-V': [[0, 128, 253, 255], [41377, 64766]],
  36506. 'UniGB-UCS2-H': [[], [0, 55295, 57344, 65535]],
  36507. 'UniGB-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36508. 'UniGB-UTF16-H': [[], [0, 55295, 57344, 65535], [], [3623934976, 3690979327]],
  36509. 'UniGB-UTF16-V': [[], [0, 55295, 57344, 65535], [], [3623934976, 3690979327]],
  36510. '78-EUC-H': [[0, 128], [36512, 36575, 41377, 65278]],
  36511. '78-EUC-V': [[0, 128], [36512, 36575, 41377, 65278]],
  36512. '78-H': [[], [8481, 32382]],
  36513. '78-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36514. '78-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36515. '78-V': [[], [8481, 32382]],
  36516. '78ms-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36517. '78ms-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36518. '83pv-RKSJ-H': [[0, 128, 160, 223, 253, 255], [33088, 40956, 57408, 64764]],
  36519. '90ms-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36520. '90ms-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36521. '90msp-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36522. '90msp-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36523. '90pv-RKSJ-H': [[0, 128, 160, 223, 253, 255], [33088, 40956, 57408, 64764]],
  36524. '90pv-RKSJ-V': [[0, 128, 160, 223, 253, 255], [33088, 40956, 57408, 64764]],
  36525. 'Add-H': [[], [8481, 32382]],
  36526. 'Add-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36527. 'Add-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36528. 'Add-V': [[], [8481, 32382]],
  36529. 'Adobe-Japan1-0': [[], [0, 8447]],
  36530. 'Adobe-Japan1-1': [[], [0, 8447]],
  36531. 'Adobe-Japan1-2': [[], [0, 8959]],
  36532. 'Adobe-Japan1-3': [[], [0, 9471]],
  36533. 'Adobe-Japan1-4': [[], [0, 15615]],
  36534. 'Adobe-Japan1-5': [[], [0, 20479]],
  36535. 'Adobe-Japan1-6': [[], [0, 23295]],
  36536. 'Adobe-Japan1-UCS2': [[], [0, 65535]],
  36537. 'Adobe-Japan2-0': [[], [0, 6143]],
  36538. 'EUC-H': [[0, 128], [36512, 36575, 41377, 65278]],
  36539. 'EUC-V': [[0, 128], [36512, 36575, 41377, 65278]],
  36540. 'Ext-H': [[], [8481, 32382]],
  36541. 'Ext-RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36542. 'Ext-RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36543. 'Ext-V': [[], [8481, 32382]],
  36544. 'H': [[], [8481, 32382]],
  36545. 'Hankaku': [[0, 255], []],
  36546. 'Hiragana': [[0, 255], []],
  36547. 'Hojo-EUC-H': [[], [], [9413025, 9436926], []],
  36548. 'Hojo-EUC-V': [[], [], [9413025, 9436926], []],
  36549. 'Hojo-H': [[], [8481, 32382]],
  36550. 'Hojo-V': [[], [8481, 32382]],
  36551. 'Katakana': [[0, 255], []],
  36552. 'NWP-H': [[], [8481, 32382]],
  36553. 'NWP-V': [[], [8481, 32382]],
  36554. 'RKSJ-H': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36555. 'RKSJ-V': [[0, 128, 160, 223], [33088, 40956, 57408, 64764]],
  36556. 'Roman': [[0, 255], []],
  36557. 'UniHojo-UCS2-H': [[], [0, 55295, 57344, 65535]],
  36558. 'UniHojo-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36559. 'UniHojo-UTF16-H': [[], [0, 55295, 57344, 65535], [],
  36560. [3623934976, 3690979327]],
  36561. 'UniHojo-UTF16-V': [[], [0, 55295, 57344, 65535], [],
  36562. [3623934976, 3690979327]],
  36563. 'UniJIS-UCS2-H': [[], [0, 55295, 57344, 65535]],
  36564. 'UniJIS-UCS2-HW-H': [[], [0, 55295, 57344, 65535]],
  36565. 'UniJIS-UCS2-HW-V': [[], [0, 55295, 57344, 65535]],
  36566. 'UniJIS-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36567. 'UniJIS-UTF16-H': [[], [0, 55295, 57344, 65535], [],
  36568. [3623934976, 3690979327]],
  36569. 'UniJIS-UTF16-V': [[], [0, 55295, 57344, 65535], [],
  36570. [3623934976, 3690979327]],
  36571. 'UniJISPro-UCS2-HW-V': [[], [0, 55295, 57344, 65535]],
  36572. 'UniJISPro-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36573. 'V': [[], [8481, 32382]],
  36574. 'WP-Symbol': [[0, 255], []],
  36575. 'Adobe-Korea1-0': [[], [0, 9471]],
  36576. 'Adobe-Korea1-1': [[], [0, 18175]],
  36577. 'Adobe-Korea1-2': [[], [0, 18431]],
  36578. 'Adobe-Korea1-UCS2': [[], [0, 65535]],
  36579. 'KSC-EUC-H': [[0, 128], [41377, 65278]],
  36580. 'KSC-EUC-V': [[0, 128], [41377, 65278]],
  36581. 'KSC-H': [[], [8481, 32382]],
  36582. 'KSC-Johab-H': [[0, 128], [33857, 54270, 55345, 57086, 57393, 63998]],
  36583. 'KSC-Johab-V': [[0, 128], [33857, 54270, 55345, 57086, 57393, 63998]],
  36584. 'KSC-V': [[], [8481, 32382]],
  36585. 'KSCms-UHC-H': [[0, 128], [33089, 65278]],
  36586. 'KSCms-UHC-HW-H': [[0, 128], [33089, 65278]],
  36587. 'KSCms-UHC-HW-V': [[0, 128], [33089, 65278]],
  36588. 'KSCms-UHC-V': [[0, 128], [33089, 65278]],
  36589. 'KSCpc-EUC-H': [[0, 132, 254, 255], [41281, 65022]],
  36590. 'KSCpc-EUC-V': [[0, 132, 254, 255], [41281, 65022]],
  36591. 'UniKS-UCS2-H': [[], [0, 55295, 57344, 65535]],
  36592. 'UniKS-UCS2-V': [[], [0, 55295, 57344, 65535]],
  36593. 'UniKS-UTF16-H': [[], [0, 55295, 57344, 65535], [], [3623934976, 3690979327]],
  36594. 'UniKS-UTF16-V': [[], [0, 55295, 57344, 65535], [], [3623934976, 3690979327]]
  36595. };
  36596. // CMap, not to be confused with TrueType's cmap.
  36597. var CMap = (function CMapClosure() {
  36598. function CMap() {
  36599. // Codespace ranges are stored as follows:
  36600. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  36601. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  36602. this.codespaceRanges = [[], [], [], []];
  36603. this.map = [];
  36604. this.vertical = false;
  36605. }
  36606. CMap.prototype = {
  36607. addCodespaceRange: function(n, low, high) {
  36608. this.codespaceRanges[n - 1].push(low, high);
  36609. },
  36610. mapRange: function(low, high, dstLow) {
  36611. var lastByte = dstLow.length - 1;
  36612. while (low <= high) {
  36613. this.map[low] = dstLow;
  36614. // Only the last byte has to be incremented.
  36615. dstLow = dstLow.substr(0, lastByte) +
  36616. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  36617. ++low;
  36618. }
  36619. },
  36620. mapRangeToArray: function(low, high, array) {
  36621. var i = 0;
  36622. while (low <= high) {
  36623. this.map[low] = array[i++];
  36624. ++low;
  36625. }
  36626. },
  36627. mapOne: function(src, dst) {
  36628. this.map[src] = dst;
  36629. },
  36630. lookup: function(code) {
  36631. return this.map[code];
  36632. },
  36633. readCharCode: function(str, offset) {
  36634. var c = 0;
  36635. var codespaceRanges = this.codespaceRanges;
  36636. var codespaceRangesLen = this.codespaceRanges.length;
  36637. // 9.7.6.2 CMap Mapping
  36638. // The code length is at most 4.
  36639. for (var n = 0; n < codespaceRangesLen; n++) {
  36640. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  36641. // Check each codespace range to see if it falls within.
  36642. var codespaceRange = codespaceRanges[n];
  36643. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  36644. var low = codespaceRange[k++];
  36645. var high = codespaceRange[k++];
  36646. if (c >= low && c <= high) {
  36647. return [c, n + 1];
  36648. }
  36649. }
  36650. }
  36651. return [0, 1];
  36652. }
  36653. };
  36654. return CMap;
  36655. })();
  36656. var IdentityCMap = (function IdentityCMapClosure() {
  36657. function IdentityCMap(vertical, n) {
  36658. CMap.call(this);
  36659. this.vertical = vertical;
  36660. this.addCodespaceRange(n, 0, 0xffff);
  36661. this.mapRange(0, 0xffff, '\u0000');
  36662. }
  36663. Util.inherit(IdentityCMap, CMap, {});
  36664. return IdentityCMap;
  36665. })();
  36666. var CMapFactory = (function CMapFactoryClosure() {
  36667. function strToInt(str) {
  36668. var a = 0;
  36669. for (var i = 0; i < str.length; i++) {
  36670. a = (a << 8) | str.charCodeAt(i);
  36671. }
  36672. return a >>> 0;
  36673. }
  36674. function expectString(obj) {
  36675. if (!isString(obj)) {
  36676. error('Malformed CMap: expected string.');
  36677. }
  36678. }
  36679. function expectInt(obj) {
  36680. if (!isInt(obj)) {
  36681. error('Malformed CMap: expected int.');
  36682. }
  36683. }
  36684. function parseBfChar(cMap, lexer) {
  36685. while (true) {
  36686. var obj = lexer.getObj();
  36687. if (isEOF(obj)) {
  36688. break;
  36689. }
  36690. if (isCmd(obj, 'endbfchar')) {
  36691. return;
  36692. }
  36693. expectString(obj);
  36694. var src = strToInt(obj);
  36695. obj = lexer.getObj();
  36696. // TODO are /dstName used?
  36697. expectString(obj);
  36698. var dst = obj;
  36699. cMap.mapOne(src, dst);
  36700. }
  36701. }
  36702. function parseBfRange(cMap, lexer) {
  36703. while (true) {
  36704. var obj = lexer.getObj();
  36705. if (isEOF(obj)) {
  36706. break;
  36707. }
  36708. if (isCmd(obj, 'endbfrange')) {
  36709. return;
  36710. }
  36711. expectString(obj);
  36712. var low = strToInt(obj);
  36713. obj = lexer.getObj();
  36714. expectString(obj);
  36715. var high = strToInt(obj);
  36716. obj = lexer.getObj();
  36717. if (isInt(obj) || isString(obj)) {
  36718. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  36719. cMap.mapRange(low, high, dstLow);
  36720. } else if (isCmd(obj, '[')) {
  36721. obj = lexer.getObj();
  36722. var array = [];
  36723. while (!isCmd(obj, ']') && !isEOF(obj)) {
  36724. array.push(obj);
  36725. obj = lexer.getObj();
  36726. }
  36727. cMap.mapRangeToArray(low, high, array);
  36728. } else {
  36729. break;
  36730. }
  36731. }
  36732. error('Invalid bf range.');
  36733. }
  36734. function parseCidChar(cMap, lexer) {
  36735. while (true) {
  36736. var obj = lexer.getObj();
  36737. if (isEOF(obj)) {
  36738. break;
  36739. }
  36740. if (isCmd(obj, 'endcidchar')) {
  36741. return;
  36742. }
  36743. expectString(obj);
  36744. var src = strToInt(obj);
  36745. obj = lexer.getObj();
  36746. expectInt(obj);
  36747. var dst = String.fromCharCode(obj);
  36748. cMap.mapOne(src, dst);
  36749. }
  36750. }
  36751. function parseCidRange(cMap, lexer) {
  36752. while (true) {
  36753. var obj = lexer.getObj();
  36754. if (isEOF(obj)) {
  36755. break;
  36756. }
  36757. if (isCmd(obj, 'endcidrange')) {
  36758. return;
  36759. }
  36760. expectString(obj);
  36761. var low = strToInt(obj);
  36762. obj = lexer.getObj();
  36763. expectString(obj);
  36764. var high = strToInt(obj);
  36765. obj = lexer.getObj();
  36766. expectInt(obj);
  36767. var dstLow = String.fromCharCode(obj);
  36768. cMap.mapRange(low, high, dstLow);
  36769. }
  36770. }
  36771. function parseCodespaceRange(cMap, lexer) {
  36772. while (true) {
  36773. var obj = lexer.getObj();
  36774. if (isEOF(obj)) {
  36775. break;
  36776. }
  36777. if (isCmd(obj, 'endcodespacerange')) {
  36778. return;
  36779. }
  36780. if (!isString(obj)) {
  36781. break;
  36782. }
  36783. var low = strToInt(obj);
  36784. obj = lexer.getObj();
  36785. if (!isString(obj)) {
  36786. break;
  36787. }
  36788. var high = strToInt(obj);
  36789. cMap.addCodespaceRange(obj.length, low, high);
  36790. }
  36791. error('Invalid codespace range.');
  36792. }
  36793. function parseCmap(cMap, lexer) {
  36794. objLoop: while (true) {
  36795. var obj = lexer.getObj();
  36796. if (isEOF(obj)) {
  36797. break;
  36798. } else if (isCmd(obj)) {
  36799. switch (obj.cmd) {
  36800. case 'endcMap':
  36801. break objLoop;
  36802. case 'usecMap':
  36803. // TODO
  36804. break;
  36805. case 'begincodespacerange':
  36806. parseCodespaceRange(cMap, lexer);
  36807. break;
  36808. case 'beginbfchar':
  36809. parseBfChar(cMap, lexer);
  36810. break;
  36811. case 'begincidchar':
  36812. parseCidChar(cMap, lexer);
  36813. break;
  36814. case 'beginbfrange':
  36815. parseBfRange(cMap, lexer);
  36816. break;
  36817. case 'begincidrange':
  36818. parseCidRange(cMap, lexer);
  36819. break;
  36820. }
  36821. }
  36822. }
  36823. }
  36824. return {
  36825. create: function (encoding) {
  36826. if (isName(encoding)) {
  36827. switch (encoding.name) {
  36828. case 'Identity-H':
  36829. return new IdentityCMap(false, 2);
  36830. case 'Identity-V':
  36831. return new IdentityCMap(true, 2);
  36832. default:
  36833. if (encoding.name in CMAP_CODESPACES) {
  36834. // XXX: Temporary hack so the correct amount of bytes are read in
  36835. // CMap.readCharCode.
  36836. var cMap = new CMap();
  36837. cMap.codespaceRanges = CMAP_CODESPACES[encoding.name];
  36838. return cMap;
  36839. }
  36840. return null;
  36841. }
  36842. } else if (isStream(encoding)) {
  36843. var cMap = new CMap();
  36844. var lexer = new Lexer(encoding);
  36845. try {
  36846. parseCmap(cMap, lexer);
  36847. } catch (e) {
  36848. warn('Invalid CMap data. ' + e);
  36849. }
  36850. return cMap;
  36851. }
  36852. error('Encoding required.');
  36853. }
  36854. };
  36855. })();
  36856. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
  36857. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  36858. /*
  36859. Copyright 2011 notmasteryet
  36860. Licensed under the Apache License, Version 2.0 (the "License");
  36861. you may not use this file except in compliance with the License.
  36862. You may obtain a copy of the License at
  36863. http://www.apache.org/licenses/LICENSE-2.0
  36864. Unless required by applicable law or agreed to in writing, software
  36865. distributed under the License is distributed on an "AS IS" BASIS,
  36866. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  36867. See the License for the specific language governing permissions and
  36868. limitations under the License.
  36869. */
  36870. // - The JPEG specification can be found in the ITU CCITT Recommendation T.81
  36871. // (www.w3.org/Graphics/JPEG/itu-t81.pdf)
  36872. // - The JFIF specification can be found in the JPEG File Interchange Format
  36873. // (www.w3.org/Graphics/JPEG/jfif3.pdf)
  36874. // - The Adobe Application-Specific JPEG markers in the Supporting the DCT Filters
  36875. // in PostScript Level 2, Technical Note #5116
  36876. // (partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf)
  36877. var JpegImage = (function jpegImage() {
  36878. "use strict";
  36879. var dctZigZag = new Int32Array([
  36880. 0,
  36881. 1, 8,
  36882. 16, 9, 2,
  36883. 3, 10, 17, 24,
  36884. 32, 25, 18, 11, 4,
  36885. 5, 12, 19, 26, 33, 40,
  36886. 48, 41, 34, 27, 20, 13, 6,
  36887. 7, 14, 21, 28, 35, 42, 49, 56,
  36888. 57, 50, 43, 36, 29, 22, 15,
  36889. 23, 30, 37, 44, 51, 58,
  36890. 59, 52, 45, 38, 31,
  36891. 39, 46, 53, 60,
  36892. 61, 54, 47,
  36893. 55, 62,
  36894. 63
  36895. ]);
  36896. var dctCos1 = 4017 // cos(pi/16)
  36897. var dctSin1 = 799 // sin(pi/16)
  36898. var dctCos3 = 3406 // cos(3*pi/16)
  36899. var dctSin3 = 2276 // sin(3*pi/16)
  36900. var dctCos6 = 1567 // cos(6*pi/16)
  36901. var dctSin6 = 3784 // sin(6*pi/16)
  36902. var dctSqrt2 = 5793 // sqrt(2)
  36903. var dctSqrt1d2 = 2896 // sqrt(2) / 2
  36904. function constructor() {
  36905. }
  36906. function buildHuffmanTable(codeLengths, values) {
  36907. var k = 0, code = [], i, j, length = 16;
  36908. while (length > 0 && !codeLengths[length - 1])
  36909. length--;
  36910. code.push({children: [], index: 0});
  36911. var p = code[0], q;
  36912. for (i = 0; i < length; i++) {
  36913. for (j = 0; j < codeLengths[i]; j++) {
  36914. p = code.pop();
  36915. p.children[p.index] = values[k];
  36916. while (p.index > 0) {
  36917. p = code.pop();
  36918. }
  36919. p.index++;
  36920. code.push(p);
  36921. while (code.length <= i) {
  36922. code.push(q = {children: [], index: 0});
  36923. p.children[p.index] = q.children;
  36924. p = q;
  36925. }
  36926. k++;
  36927. }
  36928. if (i + 1 < length) {
  36929. // p here points to last code
  36930. code.push(q = {children: [], index: 0});
  36931. p.children[p.index] = q.children;
  36932. p = q;
  36933. }
  36934. }
  36935. return code[0].children;
  36936. }
  36937. function decodeScan(data, offset,
  36938. frame, components, resetInterval,
  36939. spectralStart, spectralEnd,
  36940. successivePrev, successive) {
  36941. var precision = frame.precision;
  36942. var samplesPerLine = frame.samplesPerLine;
  36943. var scanLines = frame.scanLines;
  36944. var mcusPerLine = frame.mcusPerLine;
  36945. var progressive = frame.progressive;
  36946. var maxH = frame.maxH, maxV = frame.maxV;
  36947. var startOffset = offset, bitsData = 0, bitsCount = 0;
  36948. function readBit() {
  36949. if (bitsCount > 0) {
  36950. bitsCount--;
  36951. return (bitsData >> bitsCount) & 1;
  36952. }
  36953. bitsData = data[offset++];
  36954. if (bitsData == 0xFF) {
  36955. var nextByte = data[offset++];
  36956. if (nextByte) {
  36957. throw "unexpected marker: " + ((bitsData << 8) | nextByte).toString(16);
  36958. }
  36959. // unstuff 0
  36960. }
  36961. bitsCount = 7;
  36962. return bitsData >>> 7;
  36963. }
  36964. function decodeHuffman(tree) {
  36965. var node = tree, bit;
  36966. while ((bit = readBit()) !== null) {
  36967. node = node[bit];
  36968. if (typeof node === 'number')
  36969. return node;
  36970. if (typeof node !== 'object')
  36971. throw "invalid huffman sequence";
  36972. }
  36973. return null;
  36974. }
  36975. function receive(length) {
  36976. var n = 0;
  36977. while (length > 0) {
  36978. var bit = readBit();
  36979. if (bit === null) return;
  36980. n = (n << 1) | bit;
  36981. length--;
  36982. }
  36983. return n;
  36984. }
  36985. function receiveAndExtend(length) {
  36986. var n = receive(length);
  36987. if (n >= 1 << (length - 1))
  36988. return n;
  36989. return n + (-1 << length) + 1;
  36990. }
  36991. function decodeBaseline(component, zz) {
  36992. var t = decodeHuffman(component.huffmanTableDC);
  36993. var diff = t === 0 ? 0 : receiveAndExtend(t);
  36994. zz[0]= (component.pred += diff);
  36995. var k = 1;
  36996. while (k < 64) {
  36997. var rs = decodeHuffman(component.huffmanTableAC);
  36998. var s = rs & 15, r = rs >> 4;
  36999. if (s === 0) {
  37000. if (r < 15)
  37001. break;
  37002. k += 16;
  37003. continue;
  37004. }
  37005. k += r;
  37006. var z = dctZigZag[k];
  37007. zz[z] = receiveAndExtend(s);
  37008. k++;
  37009. }
  37010. }
  37011. function decodeDCFirst(component, zz) {
  37012. var t = decodeHuffman(component.huffmanTableDC);
  37013. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  37014. zz[0] = (component.pred += diff);
  37015. }
  37016. function decodeDCSuccessive(component, zz) {
  37017. zz[0] |= readBit() << successive;
  37018. }
  37019. var eobrun = 0;
  37020. function decodeACFirst(component, zz) {
  37021. if (eobrun > 0) {
  37022. eobrun--;
  37023. return;
  37024. }
  37025. var k = spectralStart, e = spectralEnd;
  37026. while (k <= e) {
  37027. var rs = decodeHuffman(component.huffmanTableAC);
  37028. var s = rs & 15, r = rs >> 4;
  37029. if (s === 0) {
  37030. if (r < 15) {
  37031. eobrun = receive(r) + (1 << r) - 1;
  37032. break;
  37033. }
  37034. k += 16;
  37035. continue;
  37036. }
  37037. k += r;
  37038. var z = dctZigZag[k];
  37039. zz[z] = receiveAndExtend(s) * (1 << successive);
  37040. k++;
  37041. }
  37042. }
  37043. var successiveACState = 0, successiveACNextValue;
  37044. function decodeACSuccessive(component, zz) {
  37045. var k = spectralStart, e = spectralEnd, r = 0;
  37046. while (k <= e) {
  37047. var z = dctZigZag[k];
  37048. switch (successiveACState) {
  37049. case 0: // initial state
  37050. var rs = decodeHuffman(component.huffmanTableAC);
  37051. var s = rs & 15, r = rs >> 4;
  37052. if (s === 0) {
  37053. if (r < 15) {
  37054. eobrun = receive(r) + (1 << r);
  37055. successiveACState = 4;
  37056. } else {
  37057. r = 16;
  37058. successiveACState = 1;
  37059. }
  37060. } else {
  37061. if (s !== 1)
  37062. throw "invalid ACn encoding";
  37063. successiveACNextValue = receiveAndExtend(s);
  37064. successiveACState = r ? 2 : 3;
  37065. }
  37066. continue;
  37067. case 1: // skipping r zero items
  37068. case 2:
  37069. if (zz[z])
  37070. zz[z] += (readBit() << successive);
  37071. else {
  37072. r--;
  37073. if (r === 0)
  37074. successiveACState = successiveACState == 2 ? 3 : 0;
  37075. }
  37076. break;
  37077. case 3: // set value for a zero item
  37078. if (zz[z])
  37079. zz[z] += (readBit() << successive);
  37080. else {
  37081. zz[z] = successiveACNextValue << successive;
  37082. successiveACState = 0;
  37083. }
  37084. break;
  37085. case 4: // eob
  37086. if (zz[z])
  37087. zz[z] += (readBit() << successive);
  37088. break;
  37089. }
  37090. k++;
  37091. }
  37092. if (successiveACState === 4) {
  37093. eobrun--;
  37094. if (eobrun === 0)
  37095. successiveACState = 0;
  37096. }
  37097. }
  37098. function decodeMcu(component, decode, mcu, row, col) {
  37099. var mcuRow = (mcu / mcusPerLine) | 0;
  37100. var mcuCol = mcu % mcusPerLine;
  37101. var blockRow = mcuRow * component.v + row;
  37102. var blockCol = mcuCol * component.h + col;
  37103. decode(component, component.blocks[blockRow][blockCol]);
  37104. }
  37105. function decodeBlock(component, decode, mcu) {
  37106. var blockRow = (mcu / component.blocksPerLine) | 0;
  37107. var blockCol = mcu % component.blocksPerLine;
  37108. decode(component, component.blocks[blockRow][blockCol]);
  37109. }
  37110. var componentsLength = components.length;
  37111. var component, i, j, k, n;
  37112. var decodeFn;
  37113. if (progressive) {
  37114. if (spectralStart === 0)
  37115. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  37116. else
  37117. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  37118. } else {
  37119. decodeFn = decodeBaseline;
  37120. }
  37121. var mcu = 0, marker;
  37122. var mcuExpected;
  37123. if (componentsLength == 1) {
  37124. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  37125. } else {
  37126. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  37127. }
  37128. if (!resetInterval) resetInterval = mcuExpected;
  37129. var h, v;
  37130. while (mcu < mcuExpected) {
  37131. // reset interval stuff
  37132. for (i = 0; i < componentsLength; i++)
  37133. components[i].pred = 0;
  37134. eobrun = 0;
  37135. if (componentsLength == 1) {
  37136. component = components[0];
  37137. for (n = 0; n < resetInterval; n++) {
  37138. decodeBlock(component, decodeFn, mcu);
  37139. mcu++;
  37140. }
  37141. } else {
  37142. for (n = 0; n < resetInterval; n++) {
  37143. for (i = 0; i < componentsLength; i++) {
  37144. component = components[i];
  37145. h = component.h;
  37146. v = component.v;
  37147. for (j = 0; j < v; j++) {
  37148. for (k = 0; k < h; k++) {
  37149. decodeMcu(component, decodeFn, mcu, j, k);
  37150. }
  37151. }
  37152. }
  37153. mcu++;
  37154. }
  37155. }
  37156. // find marker
  37157. bitsCount = 0;
  37158. marker = (data[offset] << 8) | data[offset + 1];
  37159. if (marker <= 0xFF00) {
  37160. throw "marker was not found";
  37161. }
  37162. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  37163. offset += 2;
  37164. }
  37165. else
  37166. break;
  37167. }
  37168. return offset - startOffset;
  37169. }
  37170. function buildComponentData(frame, component) {
  37171. var lines = [];
  37172. var blocksPerLine = component.blocksPerLine;
  37173. var blocksPerColumn = component.blocksPerColumn;
  37174. var samplesPerLine = blocksPerLine << 3;
  37175. var R = new Int32Array(64), r = new Uint8Array(64);
  37176. // A port of poppler's IDCT method which in turn is taken from:
  37177. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  37178. // "Practical Fast 1-D DCT Algorithms with 11 Multiplications",
  37179. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  37180. // 988-991.
  37181. function quantizeAndInverse(zz, dataOut, dataIn) {
  37182. var qt = component.quantizationTable;
  37183. var v0, v1, v2, v3, v4, v5, v6, v7, t;
  37184. var p = dataIn;
  37185. var i;
  37186. // dequant
  37187. for (i = 0; i < 64; i++)
  37188. p[i] = zz[i] * qt[i];
  37189. // inverse DCT on rows
  37190. for (i = 0; i < 8; ++i) {
  37191. var row = 8 * i;
  37192. // check for all-zero AC coefficients
  37193. if (p[1 + row] == 0 && p[2 + row] == 0 && p[3 + row] == 0 &&
  37194. p[4 + row] == 0 && p[5 + row] == 0 && p[6 + row] == 0 &&
  37195. p[7 + row] == 0) {
  37196. t = (dctSqrt2 * p[0 + row] + 512) >> 10;
  37197. p[0 + row] = t;
  37198. p[1 + row] = t;
  37199. p[2 + row] = t;
  37200. p[3 + row] = t;
  37201. p[4 + row] = t;
  37202. p[5 + row] = t;
  37203. p[6 + row] = t;
  37204. p[7 + row] = t;
  37205. continue;
  37206. }
  37207. // stage 4
  37208. v0 = (dctSqrt2 * p[0 + row] + 128) >> 8;
  37209. v1 = (dctSqrt2 * p[4 + row] + 128) >> 8;
  37210. v2 = p[2 + row];
  37211. v3 = p[6 + row];
  37212. v4 = (dctSqrt1d2 * (p[1 + row] - p[7 + row]) + 128) >> 8;
  37213. v7 = (dctSqrt1d2 * (p[1 + row] + p[7 + row]) + 128) >> 8;
  37214. v5 = p[3 + row] << 4;
  37215. v6 = p[5 + row] << 4;
  37216. // stage 3
  37217. t = (v0 - v1+ 1) >> 1;
  37218. v0 = (v0 + v1 + 1) >> 1;
  37219. v1 = t;
  37220. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  37221. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  37222. v3 = t;
  37223. t = (v4 - v6 + 1) >> 1;
  37224. v4 = (v4 + v6 + 1) >> 1;
  37225. v6 = t;
  37226. t = (v7 + v5 + 1) >> 1;
  37227. v5 = (v7 - v5 + 1) >> 1;
  37228. v7 = t;
  37229. // stage 2
  37230. t = (v0 - v3 + 1) >> 1;
  37231. v0 = (v0 + v3 + 1) >> 1;
  37232. v3 = t;
  37233. t = (v1 - v2 + 1) >> 1;
  37234. v1 = (v1 + v2 + 1) >> 1;
  37235. v2 = t;
  37236. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37237. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37238. v7 = t;
  37239. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37240. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37241. v6 = t;
  37242. // stage 1
  37243. p[0 + row] = v0 + v7;
  37244. p[7 + row] = v0 - v7;
  37245. p[1 + row] = v1 + v6;
  37246. p[6 + row] = v1 - v6;
  37247. p[2 + row] = v2 + v5;
  37248. p[5 + row] = v2 - v5;
  37249. p[3 + row] = v3 + v4;
  37250. p[4 + row] = v3 - v4;
  37251. }
  37252. // inverse DCT on columns
  37253. for (i = 0; i < 8; ++i) {
  37254. var col = i;
  37255. // check for all-zero AC coefficients
  37256. if (p[1*8 + col] == 0 && p[2*8 + col] == 0 && p[3*8 + col] == 0 &&
  37257. p[4*8 + col] == 0 && p[5*8 + col] == 0 && p[6*8 + col] == 0 &&
  37258. p[7*8 + col] == 0) {
  37259. t = (dctSqrt2 * dataIn[i+0] + 8192) >> 14;
  37260. p[0*8 + col] = t;
  37261. p[1*8 + col] = t;
  37262. p[2*8 + col] = t;
  37263. p[3*8 + col] = t;
  37264. p[4*8 + col] = t;
  37265. p[5*8 + col] = t;
  37266. p[6*8 + col] = t;
  37267. p[7*8 + col] = t;
  37268. continue;
  37269. }
  37270. // stage 4
  37271. v0 = (dctSqrt2 * p[0*8 + col] + 2048) >> 12;
  37272. v1 = (dctSqrt2 * p[4*8 + col] + 2048) >> 12;
  37273. v2 = p[2*8 + col];
  37274. v3 = p[6*8 + col];
  37275. v4 = (dctSqrt1d2 * (p[1*8 + col] - p[7*8 + col]) + 2048) >> 12;
  37276. v7 = (dctSqrt1d2 * (p[1*8 + col] + p[7*8 + col]) + 2048) >> 12;
  37277. v5 = p[3*8 + col];
  37278. v6 = p[5*8 + col];
  37279. // stage 3
  37280. t = (v0 - v1 + 1) >> 1;
  37281. v0 = (v0 + v1 + 1) >> 1;
  37282. v1 = t;
  37283. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  37284. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  37285. v3 = t;
  37286. t = (v4 - v6 + 1) >> 1;
  37287. v4 = (v4 + v6 + 1) >> 1;
  37288. v6 = t;
  37289. t = (v7 + v5 + 1) >> 1;
  37290. v5 = (v7 - v5 + 1) >> 1;
  37291. v7 = t;
  37292. // stage 2
  37293. t = (v0 - v3 + 1) >> 1;
  37294. v0 = (v0 + v3 + 1) >> 1;
  37295. v3 = t;
  37296. t = (v1 - v2 + 1) >> 1;
  37297. v1 = (v1 + v2 + 1) >> 1;
  37298. v2 = t;
  37299. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37300. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37301. v7 = t;
  37302. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37303. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37304. v6 = t;
  37305. // stage 1
  37306. p[0*8 + col] = v0 + v7;
  37307. p[7*8 + col] = v0 - v7;
  37308. p[1*8 + col] = v1 + v6;
  37309. p[6*8 + col] = v1 - v6;
  37310. p[2*8 + col] = v2 + v5;
  37311. p[5*8 + col] = v2 - v5;
  37312. p[3*8 + col] = v3 + v4;
  37313. p[4*8 + col] = v3 - v4;
  37314. }
  37315. // convert to 8-bit integers
  37316. for (i = 0; i < 64; ++i) {
  37317. var sample = 128 + ((p[i] + 8) >> 4);
  37318. dataOut[i] = sample < 0 ? 0 : sample > 0xFF ? 0xFF : sample;
  37319. }
  37320. }
  37321. var i, j;
  37322. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  37323. var scanLine = blockRow << 3;
  37324. for (i = 0; i < 8; i++)
  37325. lines.push(new Uint8Array(samplesPerLine));
  37326. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  37327. quantizeAndInverse(component.blocks[blockRow][blockCol], r, R);
  37328. var offset = 0, sample = blockCol << 3;
  37329. for (j = 0; j < 8; j++) {
  37330. var line = lines[scanLine + j];
  37331. for (i = 0; i < 8; i++)
  37332. line[sample + i] = r[offset++];
  37333. }
  37334. }
  37335. }
  37336. return lines;
  37337. }
  37338. function clampTo8bit(a) {
  37339. return a < 0 ? 0 : a > 255 ? 255 : a;
  37340. }
  37341. constructor.prototype = {
  37342. load: function load(path) {
  37343. var xhr = new XMLHttpRequest();
  37344. xhr.open("GET", path, true);
  37345. xhr.responseType = "arraybuffer";
  37346. xhr.onload = (function() {
  37347. // TODO catch parse error
  37348. var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
  37349. this.parse(data);
  37350. if (this.onload)
  37351. this.onload();
  37352. }).bind(this);
  37353. xhr.send(null);
  37354. },
  37355. parse: function parse(data) {
  37356. var offset = 0, length = data.length;
  37357. function readUint16() {
  37358. var value = (data[offset] << 8) | data[offset + 1];
  37359. offset += 2;
  37360. return value;
  37361. }
  37362. function readDataBlock() {
  37363. var length = readUint16();
  37364. var array = data.subarray(offset, offset + length - 2);
  37365. offset += array.length;
  37366. return array;
  37367. }
  37368. function prepareComponents(frame) {
  37369. var maxH = 0, maxV = 0;
  37370. var component, componentId;
  37371. for (componentId in frame.components) {
  37372. if (frame.components.hasOwnProperty(componentId)) {
  37373. component = frame.components[componentId];
  37374. if (maxH < component.h) maxH = component.h;
  37375. if (maxV < component.v) maxV = component.v;
  37376. }
  37377. }
  37378. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / maxH);
  37379. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / maxV);
  37380. for (componentId in frame.components) {
  37381. if (frame.components.hasOwnProperty(componentId)) {
  37382. component = frame.components[componentId];
  37383. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) * component.h / maxH);
  37384. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) * component.v / maxV);
  37385. var blocksPerLineForMcu = mcusPerLine * component.h;
  37386. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  37387. var blocks = [];
  37388. for (var i = 0; i < blocksPerColumnForMcu; i++) {
  37389. var row = [];
  37390. for (var j = 0; j < blocksPerLineForMcu; j++)
  37391. row.push(new Int32Array(64));
  37392. blocks.push(row);
  37393. }
  37394. component.blocksPerLine = blocksPerLine;
  37395. component.blocksPerColumn = blocksPerColumn;
  37396. component.blocks = blocks;
  37397. }
  37398. }
  37399. frame.maxH = maxH;
  37400. frame.maxV = maxV;
  37401. frame.mcusPerLine = mcusPerLine;
  37402. frame.mcusPerColumn = mcusPerColumn;
  37403. }
  37404. var jfif = null;
  37405. var adobe = null;
  37406. var pixels = null;
  37407. var frame, resetInterval;
  37408. var quantizationTables = [], frames = [];
  37409. var huffmanTablesAC = [], huffmanTablesDC = [];
  37410. var fileMarker = readUint16();
  37411. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  37412. throw "SOI not found";
  37413. }
  37414. fileMarker = readUint16();
  37415. while (fileMarker != 0xFFD9) { // EOI (End of image)
  37416. var i, j, l;
  37417. switch(fileMarker) {
  37418. case 0xFFE0: // APP0 (Application Specific)
  37419. case 0xFFE1: // APP1
  37420. case 0xFFE2: // APP2
  37421. case 0xFFE3: // APP3
  37422. case 0xFFE4: // APP4
  37423. case 0xFFE5: // APP5
  37424. case 0xFFE6: // APP6
  37425. case 0xFFE7: // APP7
  37426. case 0xFFE8: // APP8
  37427. case 0xFFE9: // APP9
  37428. case 0xFFEA: // APP10
  37429. case 0xFFEB: // APP11
  37430. case 0xFFEC: // APP12
  37431. case 0xFFED: // APP13
  37432. case 0xFFEE: // APP14
  37433. case 0xFFEF: // APP15
  37434. case 0xFFFE: // COM (Comment)
  37435. var appData = readDataBlock();
  37436. if (fileMarker === 0xFFE0) {
  37437. if (appData[0] === 0x4A && appData[1] === 0x46 && appData[2] === 0x49 &&
  37438. appData[3] === 0x46 && appData[4] === 0) { // 'JFIF\x00'
  37439. jfif = {
  37440. version: { major: appData[5], minor: appData[6] },
  37441. densityUnits: appData[7],
  37442. xDensity: (appData[8] << 8) | appData[9],
  37443. yDensity: (appData[10] << 8) | appData[11],
  37444. thumbWidth: appData[12],
  37445. thumbHeight: appData[13],
  37446. thumbData: appData.subarray(14, 14 + 3 * appData[12] * appData[13])
  37447. };
  37448. }
  37449. }
  37450. // TODO APP1 - Exif
  37451. if (fileMarker === 0xFFEE) {
  37452. if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6F &&
  37453. appData[3] === 0x62 && appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  37454. adobe = {
  37455. version: appData[6],
  37456. flags0: (appData[7] << 8) | appData[8],
  37457. flags1: (appData[9] << 8) | appData[10],
  37458. transformCode: appData[11]
  37459. };
  37460. }
  37461. }
  37462. break;
  37463. case 0xFFDB: // DQT (Define Quantization Tables)
  37464. var quantizationTablesLength = readUint16();
  37465. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  37466. while (offset < quantizationTablesEnd) {
  37467. var quantizationTableSpec = data[offset++];
  37468. var tableData = new Int32Array(64);
  37469. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  37470. for (j = 0; j < 64; j++) {
  37471. var z = dctZigZag[j];
  37472. tableData[z] = data[offset++];
  37473. }
  37474. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  37475. for (j = 0; j < 64; j++) {
  37476. var z = dctZigZag[j];
  37477. tableData[z] = readUint16();
  37478. }
  37479. } else
  37480. throw "DQT: invalid table spec";
  37481. quantizationTables[quantizationTableSpec & 15] = tableData;
  37482. }
  37483. break;
  37484. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  37485. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  37486. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  37487. readUint16(); // skip data length
  37488. frame = {};
  37489. frame.extended = (fileMarker === 0xFFC1);
  37490. frame.progressive = (fileMarker === 0xFFC2);
  37491. frame.precision = data[offset++];
  37492. frame.scanLines = readUint16();
  37493. frame.samplesPerLine = readUint16();
  37494. frame.components = {};
  37495. frame.componentsOrder = [];
  37496. var componentsCount = data[offset++], componentId;
  37497. var maxH = 0, maxV = 0;
  37498. for (i = 0; i < componentsCount; i++) {
  37499. componentId = data[offset];
  37500. var h = data[offset + 1] >> 4;
  37501. var v = data[offset + 1] & 15;
  37502. var qId = data[offset + 2];
  37503. frame.componentsOrder.push(componentId);
  37504. frame.components[componentId] = {
  37505. h: h,
  37506. v: v,
  37507. quantizationTable: quantizationTables[qId]
  37508. };
  37509. offset += 3;
  37510. }
  37511. prepareComponents(frame);
  37512. frames.push(frame);
  37513. break;
  37514. case 0xFFC4: // DHT (Define Huffman Tables)
  37515. var huffmanLength = readUint16();
  37516. for (i = 2; i < huffmanLength;) {
  37517. var huffmanTableSpec = data[offset++];
  37518. var codeLengths = new Uint8Array(16);
  37519. var codeLengthSum = 0;
  37520. for (j = 0; j < 16; j++, offset++)
  37521. codeLengthSum += (codeLengths[j] = data[offset]);
  37522. var huffmanValues = new Uint8Array(codeLengthSum);
  37523. for (j = 0; j < codeLengthSum; j++, offset++)
  37524. huffmanValues[j] = data[offset];
  37525. i += 17 + codeLengthSum;
  37526. ((huffmanTableSpec >> 4) === 0 ?
  37527. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  37528. buildHuffmanTable(codeLengths, huffmanValues);
  37529. }
  37530. break;
  37531. case 0xFFDD: // DRI (Define Restart Interval)
  37532. readUint16(); // skip data length
  37533. resetInterval = readUint16();
  37534. break;
  37535. case 0xFFDA: // SOS (Start of Scan)
  37536. var scanLength = readUint16();
  37537. var selectorsCount = data[offset++];
  37538. var components = [], component;
  37539. for (i = 0; i < selectorsCount; i++) {
  37540. component = frame.components[data[offset++]];
  37541. var tableSpec = data[offset++];
  37542. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  37543. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  37544. components.push(component);
  37545. }
  37546. var spectralStart = data[offset++];
  37547. var spectralEnd = data[offset++];
  37548. var successiveApproximation = data[offset++];
  37549. var processed = decodeScan(data, offset,
  37550. frame, components, resetInterval,
  37551. spectralStart, spectralEnd,
  37552. successiveApproximation >> 4, successiveApproximation & 15);
  37553. offset += processed;
  37554. break;
  37555. default:
  37556. if (data[offset - 3] == 0xFF &&
  37557. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  37558. // could be incorrect encoding -- last 0xFF byte of the previous
  37559. // block was eaten by the encoder
  37560. offset -= 3;
  37561. break;
  37562. }
  37563. throw "unknown JPEG marker " + fileMarker.toString(16);
  37564. }
  37565. fileMarker = readUint16();
  37566. }
  37567. if (frames.length != 1)
  37568. throw "only single frame JPEGs supported";
  37569. this.width = frame.samplesPerLine;
  37570. this.height = frame.scanLines;
  37571. this.jfif = jfif;
  37572. this.adobe = adobe;
  37573. this.components = [];
  37574. for (var i = 0; i < frame.componentsOrder.length; i++) {
  37575. var component = frame.components[frame.componentsOrder[i]];
  37576. this.components.push({
  37577. lines: buildComponentData(frame, component),
  37578. scaleX: component.h / frame.maxH,
  37579. scaleY: component.v / frame.maxV
  37580. });
  37581. }
  37582. },
  37583. getData: function getData(width, height) {
  37584. var scaleX = this.width / width, scaleY = this.height / height;
  37585. var component1, component2, component3, component4;
  37586. var component1Line, component2Line, component3Line, component4Line;
  37587. var x, y;
  37588. var offset = 0;
  37589. var Y, Cb, Cr, K, C, M, Ye, R, G, B;
  37590. var colorTransform;
  37591. var dataLength = width * height * this.components.length;
  37592. var data = new Uint8Array(dataLength);
  37593. switch (this.components.length) {
  37594. case 1:
  37595. component1 = this.components[0];
  37596. for (y = 0; y < height; y++) {
  37597. component1Line = component1.lines[0 | (y * component1.scaleY * scaleY)];
  37598. for (x = 0; x < width; x++) {
  37599. Y = component1Line[0 | (x * component1.scaleX * scaleX)];
  37600. data[offset++] = Y;
  37601. }
  37602. }
  37603. break;
  37604. case 2:
  37605. // PDF might compress two component data in custom colorspace
  37606. component1 = this.components[0];
  37607. component2 = this.components[1];
  37608. for (y = 0; y < height; y++) {
  37609. component1Line = component1.lines[0 | (y * component1.scaleY * scaleY)];
  37610. component2Line = component2.lines[0 | (y * component2.scaleY * scaleY)];
  37611. for (x = 0; x < width; x++) {
  37612. Y = component1Line[0 | (x * component1.scaleX * scaleX)];
  37613. data[offset++] = Y;
  37614. Y = component2Line[0 | (x * component2.scaleX * scaleX)];
  37615. data[offset++] = Y;
  37616. }
  37617. }
  37618. break;
  37619. case 3:
  37620. // The default transform for three components is true
  37621. colorTransform = true;
  37622. // The adobe transform marker overrides any previous setting
  37623. if (this.adobe && this.adobe.transformCode)
  37624. colorTransform = true;
  37625. else if (typeof this.colorTransform !== 'undefined')
  37626. colorTransform = !!this.colorTransform;
  37627. component1 = this.components[0];
  37628. component2 = this.components[1];
  37629. component3 = this.components[2];
  37630. for (y = 0; y < height; y++) {
  37631. component1Line = component1.lines[0 | (y * component1.scaleY * scaleY)];
  37632. component2Line = component2.lines[0 | (y * component2.scaleY * scaleY)];
  37633. component3Line = component3.lines[0 | (y * component3.scaleY * scaleY)];
  37634. for (x = 0; x < width; x++) {
  37635. if (!colorTransform) {
  37636. R = component1Line[0 | (x * component1.scaleX * scaleX)];
  37637. G = component2Line[0 | (x * component2.scaleX * scaleX)];
  37638. B = component3Line[0 | (x * component3.scaleX * scaleX)];
  37639. } else {
  37640. Y = component1Line[0 | (x * component1.scaleX * scaleX)];
  37641. Cb = component2Line[0 | (x * component2.scaleX * scaleX)];
  37642. Cr = component3Line[0 | (x * component3.scaleX * scaleX)];
  37643. R = clampTo8bit(Y + 1.402 * (Cr - 128));
  37644. G = clampTo8bit(Y - 0.3441363 * (Cb - 128) - 0.71413636 * (Cr - 128));
  37645. B = clampTo8bit(Y + 1.772 * (Cb - 128));
  37646. }
  37647. data[offset++] = R;
  37648. data[offset++] = G;
  37649. data[offset++] = B;
  37650. }
  37651. }
  37652. break;
  37653. case 4:
  37654. // The default transform for four components is false
  37655. colorTransform = false;
  37656. // The adobe transform marker overrides any previous setting
  37657. if (this.adobe && this.adobe.transformCode)
  37658. colorTransform = true;
  37659. else if (typeof this.colorTransform !== 'undefined')
  37660. colorTransform = !!this.colorTransform;
  37661. component1 = this.components[0];
  37662. component2 = this.components[1];
  37663. component3 = this.components[2];
  37664. component4 = this.components[3];
  37665. for (y = 0; y < height; y++) {
  37666. component1Line = component1.lines[0 | (y * component1.scaleY * scaleY)];
  37667. component2Line = component2.lines[0 | (y * component2.scaleY * scaleY)];
  37668. component3Line = component3.lines[0 | (y * component3.scaleY * scaleY)];
  37669. component4Line = component4.lines[0 | (y * component4.scaleY * scaleY)];
  37670. for (x = 0; x < width; x++) {
  37671. if (!colorTransform) {
  37672. C = component1Line[0 | (x * component1.scaleX * scaleX)];
  37673. M = component2Line[0 | (x * component2.scaleX * scaleX)];
  37674. Ye = component3Line[0 | (x * component3.scaleX * scaleX)];
  37675. K = component4Line[0 | (x * component4.scaleX * scaleX)];
  37676. } else {
  37677. Y = component1Line[0 | (x * component1.scaleX * scaleX)];
  37678. Cb = component2Line[0 | (x * component2.scaleX * scaleX)];
  37679. Cr = component3Line[0 | (x * component3.scaleX * scaleX)];
  37680. K = component4Line[0 | (x * component4.scaleX * scaleX)];
  37681. C = 255 - clampTo8bit(Y + 1.402 * (Cr - 128));
  37682. M = 255 - clampTo8bit(Y - 0.3441363 * (Cb - 128) - 0.71413636 * (Cr - 128));
  37683. Ye = 255 - clampTo8bit(Y + 1.772 * (Cb - 128));
  37684. }
  37685. data[offset++] = C;
  37686. data[offset++] = M;
  37687. data[offset++] = Ye;
  37688. data[offset++] = K;
  37689. }
  37690. }
  37691. break;
  37692. default:
  37693. throw 'Unsupported color mode';
  37694. }
  37695. return data;
  37696. },
  37697. copyToImageData: function copyToImageData(imageData) {
  37698. var width = imageData.width, height = imageData.height;
  37699. var imageDataArray = imageData.data;
  37700. var data = this.getData(width, height);
  37701. var i = 0, j = 0, x, y;
  37702. var Y, K, C, M, R, G, B;
  37703. switch (this.components.length) {
  37704. case 1:
  37705. for (y = 0; y < height; y++) {
  37706. for (x = 0; x < width; x++) {
  37707. Y = data[i++];
  37708. imageDataArray[j++] = Y;
  37709. imageDataArray[j++] = Y;
  37710. imageDataArray[j++] = Y;
  37711. imageDataArray[j++] = 255;
  37712. }
  37713. }
  37714. break;
  37715. case 3:
  37716. for (y = 0; y < height; y++) {
  37717. for (x = 0; x < width; x++) {
  37718. R = data[i++];
  37719. G = data[i++];
  37720. B = data[i++];
  37721. imageDataArray[j++] = R;
  37722. imageDataArray[j++] = G;
  37723. imageDataArray[j++] = B;
  37724. imageDataArray[j++] = 255;
  37725. }
  37726. }
  37727. break;
  37728. case 4:
  37729. for (y = 0; y < height; y++) {
  37730. for (x = 0; x < width; x++) {
  37731. C = data[i++];
  37732. M = data[i++];
  37733. Y = data[i++];
  37734. K = data[i++];
  37735. R = 255 - clampTo8bit(C * (1 - K / 255) + K);
  37736. G = 255 - clampTo8bit(M * (1 - K / 255) + K);
  37737. B = 255 - clampTo8bit(Y * (1 - K / 255) + K);
  37738. imageDataArray[j++] = R;
  37739. imageDataArray[j++] = G;
  37740. imageDataArray[j++] = B;
  37741. imageDataArray[j++] = 255;
  37742. }
  37743. }
  37744. break;
  37745. default:
  37746. throw 'Unsupported color mode';
  37747. }
  37748. }
  37749. };
  37750. return constructor;
  37751. })();
  37752. }).call((typeof window === 'undefined') ? this : window);
  37753. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  37754. // workerSrc is not set -- using last script url to define default location
  37755. PDFJS.workerSrc = (function () {
  37756. 'use strict';
  37757. var scriptTagContainer = document.body ||
  37758. document.getElementsByTagName('head')[0];
  37759. var pdfjsSrc = scriptTagContainer.lastChild.src;
  37760. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  37761. })();
  37762. }